satori-cf 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -0
- package/dist/assets/emoji.d.ts +15 -0
- package/dist/assets/emoji.d.ts.map +1 -0
- package/dist/assets/font.d.ts +10 -0
- package/dist/assets/font.d.ts.map +1 -0
- package/dist/core/yoga.d.ts +12 -0
- package/dist/core/yoga.d.ts.map +1 -0
- package/dist/errors.d.ts +31 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/generators/batch.d.ts +26 -0
- package/dist/generators/batch.d.ts.map +1 -0
- package/dist/generators/single.d.ts +23 -0
- package/dist/generators/single.d.ts.map +1 -0
- package/dist/generators/stream.d.ts +21 -0
- package/dist/generators/stream.d.ts.map +1 -0
- package/dist/html/parser.d.ts +13 -0
- package/dist/html/parser.d.ts.map +1 -0
- package/dist/html/utils.d.ts +13 -0
- package/dist/html/utils.d.ts.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +80 -0
- package/dist/types.d.ts +169 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/response.d.ts +18 -0
- package/dist/utils/response.d.ts.map +1 -0
- package/dist/yoga-ZMNYPE6Z.wasm +0 -0
- package/package.json +51 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
var Gu=Object.create;var Xa=Object.defineProperty;var Bu=Object.getOwnPropertyDescriptor;var $u=Object.getOwnPropertyNames;var ju=Object.getPrototypeOf,zu=Object.prototype.hasOwnProperty;var Je=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Vu=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of $u(t))!zu.call(e,i)&&i!==r&&Xa(e,i,{get:()=>t[i],enumerable:!(n=Bu(t,i))||n.enumerable});return e};var Tt=(e,t,r)=>(r=e!=null?Gu(ju(e)):{},Vu(t||!e||!e.__esModule?Xa(r,"default",{value:e,enumerable:!0}):r,e));var io=Je((xb,no)=>{var ci=0,Ja=-3;function Nr(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function Hu(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new Nr,this.dtree=new Nr}var Qa=new Nr,Ka=new Nr,pi=new Uint8Array(30),hi=new Uint16Array(30),eo=new Uint8Array(30),to=new Uint16Array(30),Xu=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),qa=new Nr,Mt=new Uint8Array(320);function ro(e,t,r,n){var i,a;for(i=0;i<r;++i)e[i]=0;for(i=0;i<30-r;++i)e[i+r]=i/r|0;for(a=n,i=0;i<30;++i)t[i]=a,a+=1<<e[i]}function qu(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}var Ya=new Uint16Array(16);function ui(e,t,r,n){var i,a;for(i=0;i<16;++i)e.table[i]=0;for(i=0;i<n;++i)e.table[t[r+i]]++;for(e.table[0]=0,a=0,i=0;i<16;++i)Ya[i]=a,a+=e.table[i];for(i=0;i<n;++i)t[r+i]&&(e.trans[Ya[t[r+i]]++]=i)}function Yu(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=e.tag&1;return e.tag>>>=1,t}function Wt(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var n=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,n+r}function fi(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var r=0,n=0,i=0,a=e.tag;do n=2*n+(a&1),a>>>=1,++i,r+=t.table[i],n-=t.table[i];while(n>=0);return e.tag=a,e.bitcount-=i,t.trans[r+n]}function Zu(e,t,r){var n,i,a,o,l,s;for(n=Wt(e,5,257),i=Wt(e,5,1),a=Wt(e,4,4),o=0;o<19;++o)Mt[o]=0;for(o=0;o<a;++o){var u=Wt(e,3,0);Mt[Xu[o]]=u}for(ui(qa,Mt,0,19),l=0;l<n+i;){var f=fi(e,qa);switch(f){case 16:var c=Mt[l-1];for(s=Wt(e,2,3);s;--s)Mt[l++]=c;break;case 17:for(s=Wt(e,3,3);s;--s)Mt[l++]=0;break;case 18:for(s=Wt(e,7,11);s;--s)Mt[l++]=0;break;default:Mt[l++]=f;break}}ui(t,Mt,0,n),ui(r,Mt,n,i)}function Za(e,t,r){for(;;){var n=fi(e,t);if(n===256)return ci;if(n<256)e.dest[e.destLen++]=n;else{var i,a,o,l;for(n-=257,i=Wt(e,pi[n],hi[n]),a=fi(e,r),o=e.destLen-Wt(e,eo[a],to[a]),l=o;l<o+i;++l)e.dest[e.destLen++]=e.dest[l]}}}function Ju(e){for(var t,r,n;e.bitcount>8;)e.sourceIndex--,e.bitcount-=8;if(t=e.source[e.sourceIndex+1],t=256*t+e.source[e.sourceIndex],r=e.source[e.sourceIndex+3],r=256*r+e.source[e.sourceIndex+2],t!==(~r&65535))return Ja;for(e.sourceIndex+=4,n=t;n;--n)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,ci}function Qu(e,t){var r=new Hu(e,t),n,i,a;do{switch(n=Yu(r),i=Wt(r,2,0),i){case 0:a=Ju(r);break;case 1:a=Za(r,Qa,Ka);break;case 2:Zu(r,r.ltree,r.dtree),a=Za(r,r.ltree,r.dtree);break;default:a=Ja}if(a!==ci)throw new Error("Data error")}while(!n);return r.destLen<r.dest.length?typeof r.dest.slice=="function"?r.dest.slice(0,r.destLen):r.dest.subarray(0,r.destLen):r.dest}qu(Qa,Ka);ro(pi,hi,4,3);ro(eo,to,2,1);pi[28]=0;hi[28]=258;no.exports=Qu});var so=Je((wb,oo)=>{var Ku=new Uint8Array(new Uint32Array([305419896]).buffer)[0]===18,ao=(e,t,r)=>{let n=e[t];e[t]=e[r],e[r]=n},ef=e=>{let t=e.length;for(let r=0;r<t;r+=4)ao(e,r,r+3),ao(e,r+1,r+2)},tf=e=>{Ku&&ef(e)};oo.exports={swap32LE:tf}});var co=Je((Sb,fo)=>{var lo=io(),{swap32LE:rf}=so(),gi=11,pr=5,nf=gi-pr,af=65536>>gi,of=1<<nf,sf=of-1,vn=2,lf=1<<pr,di=lf-1,uo=65536>>pr,uf=1024>>pr,ff=uo+uf,cf=ff,pf=32,hf=cf+pf,df=1<<vn,vi=class{constructor(t){let r=typeof t.readUInt32BE=="function"&&typeof t.slice=="function";if(r||t instanceof Uint8Array){let n;if(r)this.highStart=t.readUInt32LE(0),this.errorValue=t.readUInt32LE(4),n=t.readUInt32LE(8),t=t.slice(12);else{let i=new DataView(t.buffer);this.highStart=i.getUint32(0,!0),this.errorValue=i.getUint32(4,!0),n=i.getUint32(8,!0),t=t.subarray(12)}t=lo(t,new Uint8Array(n)),t=lo(t,new Uint8Array(n)),rf(t),this.data=new Uint32Array(t.buffer)}else({data:this.data,highStart:this.highStart,errorValue:this.errorValue}=t)}get(t){let r;return t<0||t>1114111?this.errorValue:t<55296||t>56319&&t<=65535?(r=(this.data[t>>pr]<<vn)+(t&di),this.data[r]):t<=65535?(r=(this.data[uo+(t-55296>>pr)]<<vn)+(t&di),this.data[r]):t<this.highStart?(r=this.data[hf-af+(t>>gi)],r=this.data[r+(t>>pr&sf)],r=(r<<vn)+(t&di),this.data[r]):this.data[this.data.length-df]}};fo.exports=vi});var po=Je(gn=>{var vf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(e){"use strict";var t=typeof Uint8Array<"u"?Uint8Array:Array,r=43,n=47,i=48,a=97,o=65,l=45,s=95;function u(p){var h=p.charCodeAt(0);if(h===r||h===l)return 62;if(h===n||h===s)return 63;if(h<i)return-1;if(h<i+10)return h-i+26+26;if(h<o+26)return h-o;if(h<a+26)return h-a+26}function f(p){var h,m,d,g,b,x;if(p.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var _=p.length;b=p.charAt(_-2)==="="?2:p.charAt(_-1)==="="?1:0,x=new t(p.length*3/4-b),d=b>0?p.length-4:p.length;var L=0;function T(E){x[L++]=E}for(h=0,m=0;h<d;h+=4,m+=3)g=u(p.charAt(h))<<18|u(p.charAt(h+1))<<12|u(p.charAt(h+2))<<6|u(p.charAt(h+3)),T((g&16711680)>>16),T((g&65280)>>8),T(g&255);return b===2?(g=u(p.charAt(h))<<2|u(p.charAt(h+1))>>4,T(g&255)):b===1&&(g=u(p.charAt(h))<<10|u(p.charAt(h+1))<<4|u(p.charAt(h+2))>>2,T(g>>8&255),T(g&255)),x}function c(p){var h,m=p.length%3,d="",g,b;function x(L){return vf.charAt(L)}function _(L){return x(L>>18&63)+x(L>>12&63)+x(L>>6&63)+x(L&63)}for(h=0,b=p.length-m;h<b;h+=3)g=(p[h]<<16)+(p[h+1]<<8)+p[h+2],d+=_(g);switch(m){case 1:g=p[p.length-1],d+=x(g>>2),d+=x(g<<4&63),d+="==";break;case 2:g=(p[p.length-2]<<8)+p[p.length-1],d+=x(g>>10),d+=x(g>>4&63),d+=x(g<<2&63),d+="=";break}return d}e.toByteArray=f,e.fromByteArray=c})(typeof gn>"u"?gn.base64js={}:gn)});var ko=Je((Tb,Eo)=>{var wi=40,Si=41,yn=39,Ei=34,ki=92,Cr=47,Ti=44,_i=58,bn=42,Of=117,Af=85,If=43,Pf=/^[a-f0-9?-]+$/i;Eo.exports=function(e){for(var t=[],r=e,n,i,a,o,l,s,u,f,c=0,p=r.charCodeAt(c),h=r.length,m=[{nodes:t}],d=0,g,b="",x="",_="";c<h;)if(p<=32){n=c;do n+=1,p=r.charCodeAt(n);while(p<=32);o=r.slice(c,n),a=t[t.length-1],p===Si&&d?_=o:a&&a.type==="div"?(a.after=o,a.sourceEndIndex+=o.length):p===Ti||p===_i||p===Cr&&r.charCodeAt(n+1)!==bn&&(!g||g&&g.type==="function"&&g.value!=="calc")?x=o:t.push({type:"space",sourceIndex:c,sourceEndIndex:n,value:o}),c=n}else if(p===yn||p===Ei){n=c,i=p===yn?"'":'"',o={type:"string",sourceIndex:c,quote:i};do if(l=!1,n=r.indexOf(i,n+1),~n)for(s=n;r.charCodeAt(s-1)===ki;)s-=1,l=!l;else r+=i,n=r.length-1,o.unclosed=!0;while(l);o.value=r.slice(c+1,n),o.sourceEndIndex=o.unclosed?n:n+1,t.push(o),c=n+1,p=r.charCodeAt(c)}else if(p===Cr&&r.charCodeAt(c+1)===bn)n=r.indexOf("*/",c),o={type:"comment",sourceIndex:c,sourceEndIndex:n+2},n===-1&&(o.unclosed=!0,n=r.length,o.sourceEndIndex=n),o.value=r.slice(c+2,n),t.push(o),c=n+2,p=r.charCodeAt(c);else if((p===Cr||p===bn)&&g&&g.type==="function"&&g.value==="calc")o=r[c],t.push({type:"word",sourceIndex:c-x.length,sourceEndIndex:c+o.length,value:o}),c+=1,p=r.charCodeAt(c);else if(p===Cr||p===Ti||p===_i)o=r[c],t.push({type:"div",sourceIndex:c-x.length,sourceEndIndex:c+o.length,value:o,before:x,after:""}),x="",c+=1,p=r.charCodeAt(c);else if(wi===p){n=c;do n+=1,p=r.charCodeAt(n);while(p<=32);if(f=c,o={type:"function",sourceIndex:c-b.length,value:b,before:r.slice(f+1,n)},c=n,b==="url"&&p!==yn&&p!==Ei){n-=1;do if(l=!1,n=r.indexOf(")",n+1),~n)for(s=n;r.charCodeAt(s-1)===ki;)s-=1,l=!l;else r+=")",n=r.length-1,o.unclosed=!0;while(l);u=n;do u-=1,p=r.charCodeAt(u);while(p<=32);f<u?(c!==u+1?o.nodes=[{type:"word",sourceIndex:c,sourceEndIndex:u+1,value:r.slice(c,u+1)}]:o.nodes=[],o.unclosed&&u+1!==n?(o.after="",o.nodes.push({type:"space",sourceIndex:u+1,sourceEndIndex:n,value:r.slice(u+1,n)})):(o.after=r.slice(u+1,n),o.sourceEndIndex=n)):(o.after="",o.nodes=[]),c=n+1,o.sourceEndIndex=o.unclosed?n:c,p=r.charCodeAt(c),t.push(o)}else d+=1,o.after="",o.sourceEndIndex=c+1,t.push(o),m.push(o),t=o.nodes=[],g=o;b=""}else if(Si===p&&d)c+=1,p=r.charCodeAt(c),g.after=_,g.sourceEndIndex+=_.length,_="",d-=1,m[m.length-1].sourceEndIndex=c,m.pop(),g=m[d],t=g.nodes;else{n=c;do p===ki&&(n+=1),n+=1,p=r.charCodeAt(n);while(n<h&&!(p<=32||p===yn||p===Ei||p===Ti||p===_i||p===Cr||p===wi||p===bn&&g&&g.type==="function"&&g.value==="calc"||p===Cr&&g.type==="function"&&g.value==="calc"||p===Si&&d));o=r.slice(c,n),wi===p?b=o:(Of===o.charCodeAt(0)||Af===o.charCodeAt(0))&&If===o.charCodeAt(1)&&Pf.test(o.slice(2))?t.push({type:"unicode-range",sourceIndex:c,sourceEndIndex:n,value:o}):t.push({type:"word",sourceIndex:c,sourceEndIndex:n,value:o}),c=n}for(c=m.length-1;c;c-=1)m[c].unclosed=!0,m[c].sourceEndIndex=r.length;return m[0].nodes}});var _o=Je((_b,To)=>{To.exports=function e(t,r,n){var i,a,o,l;for(i=0,a=t.length;i<a;i+=1)o=t[i],n||(l=r(o,i,t)),l!==!1&&o.type==="function"&&Array.isArray(o.nodes)&&e(o.nodes,r,n),n&&r(o,i,t)}});var Ao=Je((Lb,Oo)=>{function Lo(e,t){var r=e.type,n=e.value,i,a;return t&&(a=t(e))!==void 0?a:r==="word"||r==="space"?n:r==="string"?(i=e.quote||"",i+n+(e.unclosed?"":i)):r==="comment"?"/*"+n+(e.unclosed?"":"*/"):r==="div"?(e.before||"")+n+(e.after||""):Array.isArray(e.nodes)?(i=Co(e.nodes,t),r!=="function"?i:n+"("+(e.before||"")+i+(e.after||"")+(e.unclosed?"":")")):n}function Co(e,t){var r,n;if(Array.isArray(e)){for(r="",n=e.length-1;~n;n-=1)r=Lo(e[n],t)+r;return r}return Lo(e,t)}Oo.exports=Co});var Po=Je((Cb,Io)=>{var xn=45,wn=43,Li=46,Rf=101,Ff=69;function Df(e){var t=e.charCodeAt(0),r;if(t===wn||t===xn){if(r=e.charCodeAt(1),r>=48&&r<=57)return!0;var n=e.charCodeAt(2);return r===Li&&n>=48&&n<=57}return t===Li?(r=e.charCodeAt(1),r>=48&&r<=57):t>=48&&t<=57}Io.exports=function(e){var t=0,r=e.length,n,i,a;if(r===0||!Df(e))return!1;for(n=e.charCodeAt(t),(n===wn||n===xn)&&t++;t<r&&(n=e.charCodeAt(t),!(n<48||n>57));)t+=1;if(n=e.charCodeAt(t),i=e.charCodeAt(t+1),n===Li&&i>=48&&i<=57)for(t+=2;t<r&&(n=e.charCodeAt(t),!(n<48||n>57));)t+=1;if(n=e.charCodeAt(t),i=e.charCodeAt(t+1),a=e.charCodeAt(t+2),(n===Rf||n===Ff)&&(i>=48&&i<=57||(i===wn||i===xn)&&a>=48&&a<=57))for(t+=i===wn||i===xn?3:2;t<r&&(n=e.charCodeAt(t),!(n<48||n>57));)t+=1;return{number:e.slice(0,t),unit:e.slice(t)}}});var Ci=Je((Ob,Do)=>{var Uf=ko(),Ro=_o(),Fo=Ao();function Kt(e){return this instanceof Kt?(this.nodes=Uf(e),this):new Kt(e)}Kt.prototype.toString=function(){return Array.isArray(this.nodes)?Fo(this.nodes):""};Kt.prototype.walk=function(e,t){return Ro(this.nodes,e,t),this};Kt.unit=Po();Kt.walk=Ro;Kt.stringify=Fo;Do.exports=Kt});var Mo=Je((Ab,No)=>{"use strict";No.exports=function(e){return typeof e=="string"?Uo(e):Oi(e)};function Oi(e){return!e||typeof e!="object"||Mf(e)||Wf(e)?e:Nf(e)?$f(e,Oi):jf(Bf(e),function(t,r){var n=Uo(r);return t[n]=Oi(e[r]),t},{})}function Uo(e){return e.replace(/[_.-](\w|$)/g,function(t,r){return r.toUpperCase()})}var Nf=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},Mf=function(e){return Object.prototype.toString.call(e)==="[object Date]"},Wf=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Gf=Object.prototype.hasOwnProperty,Bf=Object.keys||function(e){var t=[];for(var r in e)Gf.call(e,r)&&t.push(r);return t};function $f(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}function jf(e,t,r){if(e.reduce)return e.reduce(t,r);for(var n=0;n<e.length;n++)r=t(r,e[n],n);return r}});var Wo=Je((Ib,zf)=>{zf.exports={black:"#000000",silver:"#c0c0c0",gray:"#808080",white:"#ffffff",maroon:"#800000",red:"#ff0000",purple:"#800080",fuchsia:"#ff00ff",green:"#008000",lime:"#00ff00",olive:"#808000",yellow:"#ffff00",navy:"#000080",blue:"#0000ff",teal:"#008080",aqua:"#00ffff",orange:"#ffa500",aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",blanchedalmond:"#ffebcd",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",limegreen:"#32cd32",linen:"#faf0e6",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",oldlace:"#fdf5e6",olivedrab:"#6b8e23",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",whitesmoke:"#f5f5f5",yellowgreen:"#9acd32",rebeccapurple:"#663399"}});var Bo=Je((Pb,Go)=>{"use strict";Go.exports=Wo()});var En=Je(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});function Fi(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var zo=Ci(),Vf=Fi(zo),Hf=Fi(Mo()),Xf=Fi(Bo()),qf=function(t){return t.type!=="string"?null:t.value.replace(/\\([0-9a-f]{1,6})(?:\s|$)/gi,function(r,n){return String.fromCharCode(parseInt(n,16))}).replace(/\\/g,"")},Yf=/^(#(?:[0-9a-f]{3,4}){1,2})$/i,Zf=/^(rgba?|hsla?|hwb|lab|lch|gray|color)$/,Jf=function(t){return t.type==="word"&&(Yf.test(t.value)||t.value in Xf||t.value==="transparent")?t.value:t.type==="function"&&Zf.test(t.value)?zo.stringify(t):null},Qf=/^(none)$/i,Kf=/^(auto)$/i,ec=/(^-?[_a-z][_a-z0-9-]*$)/i,tc=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)$/i,rc=/^(0$|(?:[+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?=px$))/i,nc=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(ch|em|ex|rem|vh|vw|vmin|vmax|cm|mm|in|pc|pt))$/i,ic=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(?:deg|rad))$/i,ac=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?%)$/i,Di=function(t){return function(r){return t(r)?"<token>":null}},oc=function(t){return function(r){return r.type===t?r.value:null}},He=function(t,r){return r===void 0&&(r=String),function(n){if(n.type!=="word")return null;var i=n.value.match(t);if(i===null)return null;var a=r(i[1]);return a}},Ye=Di(function(e){return e.type==="space"}),Vo=Di(function(e){return e.type==="div"&&e.value==="/"}),sc=Di(function(e){return e.type==="div"&&e.value===","}),lc=oc("word"),Ui=He(Qf),Pi=He(Kf),Ar=He(tc,Number),ht=He(rc,Number),Ht=He(nc),Ho=He(ic,function(e){return e.toLowerCase()}),Ni=He(ac),Sn=He(ec),uc=qf,Gr=Jf,Ri=He(/^(none|underline|line-through)$/i),fc=function(t){var r=t.expect(Ar);return t.hasTokens()&&(t.expect(Vo),r/=t.expect(Ar)),{aspectRatio:r}},cc=He(/^(solid|dashed|dotted)$/),pc=1,hc="black",dc="solid",vc=function(t){var r,n,i;if(t.matches(Ui))return t.expectEmpty(),{borderWidth:0,borderColor:"black",borderStyle:"solid"};for(var a=0;a<3&&t.hasTokens();)a!==0&&t.expect(Ye),r===void 0&&t.matches(ht,Ht)?r=t.lastValue:n===void 0&&t.matches(Gr)?n=t.lastValue:i===void 0&&t.matches(cc)?i=t.lastValue:t.throw(),a+=1;return t.expectEmpty(),r===void 0&&(r=pc),n===void 0&&(n=hc),i===void 0&&(i=dc),{borderWidth:r,borderColor:n,borderStyle:i}},Br=function(t){var r=t.types,n=r===void 0?[ht,Ht,Ni]:r,i=t.directions,a=i===void 0?["Top","Right","Bottom","Left"]:i,o=t.prefix,l=o===void 0?"":o,s=t.suffix,u=s===void 0?"":s;return function(f){var c,p=[];for(p.push(f.expect.apply(f,n));p.length<4&&f.hasTokens();)f.expect(Ye),p.push(f.expect.apply(f,n));f.expectEmpty();var h=p[0],m=p[1],d=m===void 0?h:m,g=p[2],b=g===void 0?h:g,x=p[3],_=x===void 0?d:x,L=function(E){return""+l+a[E]+u};return c={},c[L(0)]=h,c[L(1)]=d,c[L(2)]=b,c[L(3)]=_,c}},Xo=function(t){var r=t.expect(ht),n=t.matches(Ye)?t.expect(ht):r;return t.expectEmpty(),{width:r,height:n}},qo=function(t){var r,n,i,a;if(t.matches(Ui))return t.expectEmpty(),{offset:{width:0,height:0},radius:0,color:"black"};for(var o=!1;t.hasTokens();)o&&t.expect(Ye),r===void 0&&t.matches(ht,Ht)?(r=t.lastValue,t.expect(Ye),n=t.expect(ht,Ht),t.saveRewindPoint(),t.matches(Ye)&&t.matches(ht,Ht)?i=t.lastValue:t.rewind()):a===void 0&&t.matches(Gr)?a=t.lastValue:t.throw(),o=!0;return r===void 0&&t.throw(),{offset:{width:r,height:n},radius:i!==void 0?i:0,color:a!==void 0?a:"black"}},gc=function(t){var r=qo(t),n=r.offset,i=r.radius,a=r.color;return{shadowOffset:n,shadowRadius:i,shadowColor:a,shadowOpacity:1}},mc=1,yc=1,bc=0,xc=function(t){var r,n,i;if(t.matches(Ui))return t.expectEmpty(),{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(t.saveRewindPoint(),t.matches(Pi)&&!t.hasTokens())return{flexGrow:1,flexShrink:1,flexBasis:"auto"};t.rewind();for(var a=0;a<2&&t.hasTokens();)a!==0&&t.expect(Ye),r===void 0&&t.matches(Ar)?(r=t.lastValue,t.saveRewindPoint(),t.matches(Ye)&&t.matches(Ar)?n=t.lastValue:t.rewind()):i===void 0&&t.matches(ht,Ht,Ni)?i=t.lastValue:i===void 0&&t.matches(Pi)?i="auto":t.throw(),a+=1;return t.expectEmpty(),r===void 0&&(r=mc),n===void 0&&(n=yc),i===void 0&&(i=bc),{flexGrow:r,flexShrink:n,flexBasis:i}},wc=He(/(nowrap|wrap|wrap-reverse)/),Sc=He(/(row|row-reverse|column|column-reverse)/),Ec="nowrap",kc="row",Tc=function(t){for(var r,n,i=0;i<2&&t.hasTokens();)i!==0&&t.expect(Ye),r===void 0&&t.matches(wc)?r=t.lastValue:n===void 0&&t.matches(Sc)?n=t.lastValue:t.throw(),i+=1;return t.expectEmpty(),r===void 0&&(r=Ec),n===void 0&&(n=kc),{flexWrap:r,flexDirection:n}},Yo=function(t){var r;if(t.matches(uc))r=t.lastValue;else for(r=t.expect(Sn);t.hasTokens();){t.expect(Ye);var n=t.expect(Sn);r+=" "+n}return t.expectEmpty(),{fontFamily:r}},_c=He(/^(normal)$/),Lc=He(/^(italic)$/),Cc=He(/^([1-9]00|bold)$/),Oc=He(/^(small-caps)$/),Ac="normal",Ic="normal",Pc=[],Rc=function(t){for(var r,n,i,a,o=0;o<3&&t.hasTokens();){if(!t.matches(_c))if(r===void 0&&t.matches(Lc))r=t.lastValue;else if(n===void 0&&t.matches(Cc))n=t.lastValue;else if(i===void 0&&t.matches(Oc))i=[t.lastValue];else break;t.expect(Ye),o+=1}var l=t.expect(ht,Ht);t.matches(Vo)&&(a=t.expect(ht,Ht)),t.expect(Ye);var s=Yo(t),u=s.fontFamily;r===void 0&&(r=Ac),n===void 0&&(n=Ic),i===void 0&&(i=Pc);var f={fontStyle:r,fontWeight:n,fontVariant:i,fontSize:l,fontFamily:u};return a!==void 0&&(f.lineHeight=a),f},Fc=function(t){for(var r=[t.expect(Sn)];t.hasTokens();)t.expect(Ye),r.push(t.expect(Sn));return{fontVariant:r}},Dc=He(/(flex-(?:start|end)|center|stretch|space-(?:between|around))/),Uc=He(/(flex-(?:start|end)|center|space-(?:between|around|evenly))/),Nc=function(t){var r=t.expect(Dc),n;return t.hasTokens()?(t.expect(Ye),n=t.expect(Uc)):n="stretch",t.expectEmpty(),{alignContent:r,justifyContent:n}},Mc=He(/^(solid|double|dotted|dashed)$/),Wc="none",Gc="solid",Bc="black",$c=function(t){for(var r,n,i,a=!1;t.hasTokens();){if(a&&t.expect(Ye),r===void 0&&t.matches(Ri)){var o=[t.lastValue.toLowerCase()];t.saveRewindPoint(),o[0]!=="none"&&t.matches(Ye)&&t.matches(Ri)?(o.push(t.lastValue.toLowerCase()),o.sort().reverse()):t.rewind(),r=o.join(" ")}else n===void 0&&t.matches(Mc)?n=t.lastValue:i===void 0&&t.matches(Gr)?i=t.lastValue:t.throw();a=!0}return{textDecorationLine:r!==void 0?r:Wc,textDecorationColor:i!==void 0?i:Bc,textDecorationStyle:n!==void 0?n:Gc}},jc=function(t){for(var r=[],n=!1;t.hasTokens();)n&&t.expect(Ye),r.push(t.expect(Ri).toLowerCase()),n=!0;return r.sort().reverse(),{textDecorationLine:r.join(" ")}},zc=function(t){var r=qo(t),n=r.offset,i=r.radius,a=r.color;return{textShadowOffset:n,textShadowRadius:i,textShadowColor:a}},Mi=function(t){return function(r){var n=r.expect(t);return r.expectEmpty(),n}},Ai=Mi(Ar),$o=Mi(ht),Or=Mi(Ho),Wi=function(t){return function(r,n){return function(i){var a,o,l=i.expect(t),s;if(i.hasTokens())i.expect(sc),s=i.expect(t);else if(n!==void 0)s=n;else return l;return i.expectEmpty(),[(a={},a[r+"Y"]=s,a),(o={},o[r+"X"]=l,o)]}}},Vc=Wi(Ar),Hc=Wi(ht),Xc=Wi(Ho),qc={perspective:Ai,scale:Vc("scale"),scaleX:Ai,scaleY:Ai,translate:Hc("translate",0),translateX:$o,translateY:$o,rotate:Or,rotateX:Or,rotateY:Or,rotateZ:Or,skewX:Or,skewY:Or,skew:Xc("skew","0deg")},Yc=function(t){for(var r=[],n=!1;t.hasTokens();){n&&t.expect(Ye);var i=t.expectFunction(),a=i.functionName,o=qc[a](i);if(!Array.isArray(o)){var l;o=[(l={},l[a]=o,l)]}r=o.concat(r),n=!0}return{transform:r}},Zc=function(t){return{backgroundColor:t.expect(Gr)}},Jc=Br({types:[Gr],prefix:"border",suffix:"Color"}),Qc=Br({directions:["TopLeft","TopRight","BottomRight","BottomLeft"],prefix:"border",suffix:"Radius"}),Kc=Br({prefix:"border",suffix:"Width"}),ep=Br({types:[ht,Ht,Ni,Pi],prefix:"margin"}),tp=Br({prefix:"padding"}),rp=function(t){return{fontWeight:t.expect(lc)}},np=function(t){return{shadowOffset:Xo(t)}},ip=function(t){return{textShadowOffset:Xo(t)}},Zo={aspectRatio:fc,background:Zc,border:vc,borderColor:Jc,borderRadius:Qc,borderWidth:Kc,boxShadow:gc,flex:xc,flexFlow:Tc,font:Rc,fontFamily:Yo,fontVariant:Fc,fontWeight:rp,margin:ep,padding:tp,placeContent:Nc,shadowOffset:np,textShadow:zc,textShadowOffset:ip,textDecoration:$c,textDecorationLine:jc,transform:Yc},jo,Rb=jo!=null?new RegExp(jo.join("|")):null,Ii="SYMBOL_MATCH",ap=function(){function e(r,n){this.index=0,this.nodes=r,this.functionName=n!=null?n.value:null,this.lastValue=null,this.rewindIndex=-1}var t=e.prototype;return t.hasTokens=function(){return this.index<=this.nodes.length-1},t[Ii]=function(){if(!this.hasTokens())return null;for(var r=this.nodes[this.index],n=0;n<arguments.length;n+=1){var i=n<0||arguments.length<=n?void 0:arguments[n],a=i(r);if(a!==null)return this.index+=1,this.lastValue=a,a}return null},t.matches=function(){return this[Ii].apply(this,arguments)!==null},t.expect=function(){var n=this[Ii].apply(this,arguments);return n!==null?n:this.throw()},t.matchesFunction=function(){var n=this.nodes[this.index];if(n.type!=="function")return null;var i=new e(n.nodes,n);return this.index+=1,this.lastValue=null,i},t.expectFunction=function(){var n=this.matchesFunction();return n!==null?n:this.throw()},t.expectEmpty=function(){this.hasTokens()&&this.throw()},t.throw=function(){throw new Error("Unexpected token type: "+this.nodes[this.index].type)},t.saveRewindPoint=function(){this.rewindIndex=this.index},t.rewind=function(){if(this.rewindIndex===-1)throw new Error("Internal error");this.index=this.rewindIndex,this.lastValue=null},e}(),op=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?:px)?$/i,sp=/^true|false$/i,lp=/^null$/i,up=/^undefined$/i,Jo=function(t,r){if(0)var n,i;var a=r.match(op);if(a!==null)return Number(a[1]);var o=r.match(sp);if(o!==null)return o[0].toLowerCase()==="true";var l=r.match(lp);if(l!==null)return null;var s=r.match(up);if(s===null)return r},fp=function(t,r){var n=Vf(r),i=new ap(n.nodes);return Zo[t](i)},cp=fp,Qo=function(t,r,n){var i,a=n===!1||!(t in Zo),o=r.trim(),l=a?(i={},i[t]=Jo(t,o),i):cp(t,o);return l},Ko=function(t){var r=/^--\w+/.test(t);return r?t:Hf(t)},pp=function(t,r){return r===void 0&&(r=[]),t.reduce(function(n,i){var a=Ko(i[0]),o=i[1],l=r.indexOf(a)===-1;return Object.assign(n,Qo(a,o,l))},{})};Ir.default=pp;Ir.getPropertyName=Ko;Ir.getStylesForProperty=Qo;Ir.transformRawValue=Jo});var ts=Je((es,kn)=>{(function(e){function t(o){if(!(this instanceof t))return new t;this.backgrounds=o||[]}t.prototype.toString=function(){return this.backgrounds.join(", ")};function r(o){if(!(this instanceof r))return new r(o);o=o||{};var l=this;function s(u,f){l[u]=u in o?o[u]:f}s("color",""),s("image","none"),s("attachment","scroll"),s("clip","border-box"),s("origin","padding-box"),s("position","0% 0%"),s("repeat","repeat"),s("size","auto")}r.prototype.toString=function(){var o=[this.image,this.repeat,this.attachment,this.position+" / "+this.size,this.origin,this.clip];return this.color&&o.unshift(this.color),o.join(" ")},e.BackgroundList=t,e.Background=r;function n(o){var l=[],s=/[,\(\)]/,u=0,f="";if(o==null)return l;for(;o.length;){var c=s.exec(o);if(!c)break;var p=c[0],h=!1;switch(p){case",":u||(l.push(f.trim()),f="",h=!0);break;case"(":u++;break;case")":u--;break}var m=c.index+1;f+=o.slice(0,h?m-1:m),o=o.slice(m)}return(f.length||o.length)&&l.push((f+o).trim()),l}function i(o){return o.trim()}function a(o){return(o||"").split(",").map(i)}e.parseElementStyle=function(o){var l=new t;if(o==null)return l;for(var s=n(o.backgroundImage),u=o.backgroundColor,f=a(o.backgroundAttachment),c=a(o.backgroundClip),p=a(o.backgroundOrigin),h=a(o.backgroundPosition),m=a(o.backgroundRepeat),d=a(o.backgroundSize),g,b=0,x=s.length;b<x;b++)g=new r({image:s[b],attachment:f[b%f.length],clip:c[b%c.length],origin:p[b%p.length],position:h[b%h.length],repeat:m[b%m.length],size:d[b%d.length]}),b===x-1&&(g.color=u),l.backgrounds.push(g);return l}})(function(e){return typeof kn<"u"&&kn.exports!==void 0?kn.exports:e.cssBgParser={}}(es))});var ns=Je((Db,rs)=>{var hp=/,(?![^\(]*\))/,dp=/\s(?![^(]*\))/,vp=/^[0-9]+[a-zA-Z%]+?$/,gp=e=>{let t=e.split(dp),r=t.includes("inset"),n=t.slice(-1)[0],i=yp(n)?void 0:n,a=t.filter(f=>f!=="inset").filter(f=>f!==i).map(bp),[o,l,s,u]=a;return{inset:r,offsetX:o,offsetY:l,blurRadius:s,spreadRadius:u,color:i}},mp=e=>{let{inset:t,offsetX:r=0,offsetY:n=0,blurRadius:i=0,spreadRadius:a,color:o}=e||{};return[t?"inset":null,r,n,i,a,o].filter(l=>l!=null).map(xp).map(l=>(""+l).trim()).join(" ")},yp=e=>e==="0"||vp.test(e),bp=e=>{if(!/px$/.test(e)&&e!=="0")return e;let t=parseFloat(e);return isNaN(t)?e:t},xp=e=>typeof e=="number"&&e!==0?e+"px":e,wp=e=>e.split(hp).map(t=>t.trim()).map(gp),Sp=e=>e.map(mp).join(", ");rs.exports={parse:wp,stringify:Sp}});var $i=Je((Gi,Bi)=>{(function(e,t){typeof Gi=="object"&&typeof Bi<"u"?Bi.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self).parseCssColor=t()})(Gi,function(){"use strict";var e={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},t=new RegExp(/^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/,"i"),r="-?\\d*(?:\\.\\d+)",n="("+r+"?)",i="("+r+"?%)",a=(`^
|
|
2
|
+
hsla?\\(
|
|
3
|
+
\\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*,
|
|
4
|
+
\\s*`+i+`\\s*,
|
|
5
|
+
\\s*`+i+`\\s*
|
|
6
|
+
(?:,\\s*(-?\\d*(?:\\.\\d+)?%?)\\s*)?
|
|
7
|
+
\\)
|
|
8
|
+
$
|
|
9
|
+
`).replace(/\n|\s/g,""),o=new RegExp(a),l=(`^
|
|
10
|
+
hsla?\\(
|
|
11
|
+
\\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*
|
|
12
|
+
\\s+`+i+`
|
|
13
|
+
\\s+`+i+`
|
|
14
|
+
\\s*(?:\\s*\\/\\s*(-?\\d*(?:\\.\\d+)?%?)\\s*)?
|
|
15
|
+
\\)
|
|
16
|
+
$
|
|
17
|
+
`).replace(/\n|\s/g,""),s=new RegExp(l),u=(`^
|
|
18
|
+
rgba?\\(
|
|
19
|
+
\\s*`+n+`\\s*,
|
|
20
|
+
\\s*`+n+`\\s*,
|
|
21
|
+
\\s*`+n+`\\s*
|
|
22
|
+
(?:,\\s*(-?\\d*(?:\\.\\d+)?%?)\\s*)?
|
|
23
|
+
\\)
|
|
24
|
+
$
|
|
25
|
+
`).replace(/\n|\s/g,""),f=new RegExp(u),c=(`^
|
|
26
|
+
rgba?\\(
|
|
27
|
+
\\s*`+i+`\\s*,
|
|
28
|
+
\\s*`+i+`\\s*,
|
|
29
|
+
\\s*`+i+`\\s*
|
|
30
|
+
(?:,\\s*(-?\\d*(?:\\.\\d+)?%?)\\s*)?
|
|
31
|
+
\\)
|
|
32
|
+
$
|
|
33
|
+
`).replace(/\n|\s/g,""),p=new RegExp(c),h=(`^
|
|
34
|
+
rgba?\\(
|
|
35
|
+
\\s*`+n+`
|
|
36
|
+
\\s+`+n+`
|
|
37
|
+
\\s+`+n+`
|
|
38
|
+
\\s*(?:\\s*\\/\\s*(-?\\d*(?:\\.\\d+)?%?)\\s*)?
|
|
39
|
+
\\)
|
|
40
|
+
$
|
|
41
|
+
`).replace(/\n|\s/g,""),m=new RegExp(h),d=(`^
|
|
42
|
+
rgba?\\(
|
|
43
|
+
\\s*`+i+`
|
|
44
|
+
\\s+`+i+`
|
|
45
|
+
\\s+`+i+`
|
|
46
|
+
\\s*(?:\\s*\\/\\s*(-?\\d*(?:\\.\\d+)?%?)\\s*)?
|
|
47
|
+
\\)
|
|
48
|
+
$
|
|
49
|
+
`).replace(/\n|\s/g,""),g=new RegExp(d),b=new RegExp(/^transparent$/,"i"),x=new RegExp("[^#a-f\\d]","gi"),_=new RegExp("^#?[a-f\\d]{3}[a-f\\d]?$|^#?[a-f\\d]{6}([a-f\\d]{2})?$","i"),L=function(M,H,Q){return Math.min(Math.max(H,M),Q)},T=function(M){var H=M;return typeof H!="number"&&(H=H.endsWith("%")?255*parseFloat(H)/100:parseFloat(H)),L(Math.round(H),0,255)},E=function(M){return L(parseFloat(M),0,100)};function R(M){var H=M;return typeof H!="number"&&(H=H.endsWith("%")?parseFloat(H)/100:parseFloat(H)),L(H,0,1)}function C(M){var H=function(Q,ee){if(ee===void 0&&(ee={}),typeof Q!="string"||x.test(Q)||!_.test(Q))throw new TypeError("Expected a valid hex string");var I=1;(Q=Q.replace(/^#/,"")).length===8&&(I=Number.parseInt(Q.slice(6,8),16)/255,Q=Q.slice(0,6)),Q.length===4&&(I=Number.parseInt(Q.slice(3,4).repeat(2),16)/255,Q=Q.slice(0,3)),Q.length===3&&(Q=Q[0]+Q[0]+Q[1]+Q[1]+Q[2]+Q[2]);var U=Number.parseInt(Q,16),O=U>>16,q=U>>8&255,K=255&U,ne=typeof ee.alpha=="number"?ee.alpha:I;return ee.format==="array"?[O,q,K,ne]:ee.format==="css"?"rgb("+O+" "+q+" "+K+(ne===1?"":" / "+Number((100*ne).toFixed(2))+"%")+")":{red:O,green:q,blue:K,alpha:ne}}(M,{format:"array"});return D([null,H[0],H[1],H[2],H[3]])}function D(M){var H=M[1],Q=M[2],ee=M[3],I=M[4];return I===void 0&&(I=1),{type:"rgb",values:[H,Q,ee].map(T),alpha:R(I===null?1:I)}}return function(M){if(typeof M!="string")return null;var H=t.exec(M);if(H)return C(H[0]);var Q=s.exec(M)||o.exec(M);if(Q)return function(U){var O=U[1],q=U[2],K=U[3],ne=U[4];ne===void 0&&(ne=1);var ie=O;return{type:"hsl",values:[ie=ie.endsWith("turn")?360*parseFloat(ie)/1:ie.endsWith("rad")?Math.round(180*parseFloat(ie)/Math.PI):parseFloat(ie),E(q),E(K)],alpha:R(ne===null?1:ne)}}(Q);var ee=m.exec(M)||g.exec(M)||f.exec(M)||p.exec(M);if(ee)return D(ee);if(b.exec(M))return D([null,0,0,0,0]);var I=e[M.toLowerCase()];return I?D([null,I[0],I[1],I[2],1]):null}})});var as=Je((Ub,is)=>{"use strict";var Ep=/["'&<>]/;is.exports=kp;function kp(e){var t=""+e,r=Ep.exec(t);if(!r)return t;var n,i="",a=0,o=0;for(a=r.index;a<t.length;a++){switch(t.charCodeAt(a)){case 34:n=""";break;case 38:n="&";break;case 39:n="'";break;case 60:n="<";break;case 62:n=">";break;default:continue}o!==a&&(i+=t.substring(o,a)),o=a+1,i+=n}return o!==a?i+t.substring(o,a):i}});var bo=Tt(co(),1),xo=Tt(po(),1),xi={};var gf=5;var ho=12,mf=13;var yf=16,bf=17;var xf=22;var vo=28;var go=31;var wf=33,mn=34,Sf=35,mi=36,yi=37,wo=38,Ef=39,kf=40,Mr=41,Tf=42,v=0,y=1,Te=2,So=3,k=4,_f=[[k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,So,k,k,k,k,k,k,k,k,k,k,k],[v,k,k,y,y,k,k,k,k,y,y,v,v,v,v,y,y,y,v,v,k,Te,k,v,v,v,v,v,v,v,v,y,v],[v,k,k,y,y,k,k,k,k,y,y,y,y,y,v,y,y,y,v,v,k,Te,k,v,v,v,v,v,v,v,v,y,v],[k,k,k,y,y,y,k,k,k,y,y,y,y,y,y,y,y,y,y,y,k,Te,k,y,y,y,y,y,y,y,y,y,y],[y,k,k,y,y,y,k,k,k,y,y,y,y,y,y,y,y,y,y,y,k,Te,k,y,y,y,y,y,y,y,y,y,y],[v,k,k,y,y,y,k,k,k,v,v,v,v,v,v,y,y,y,v,v,k,Te,k,v,v,v,v,v,v,v,v,y,v],[v,k,k,y,y,y,k,k,k,v,v,v,v,v,v,y,y,y,v,v,k,Te,k,v,v,v,v,v,v,v,v,y,v],[v,k,k,y,y,y,k,k,k,v,v,y,v,y,v,y,y,y,v,v,k,Te,k,v,v,v,v,v,v,v,v,y,v],[v,k,k,y,y,y,k,k,k,v,v,y,y,y,v,y,y,y,v,v,k,Te,k,v,v,v,v,v,v,v,v,y,v],[y,k,k,y,y,y,k,k,k,v,v,y,y,y,y,y,y,y,v,v,k,Te,k,y,y,y,y,y,v,y,y,y,v],[y,k,k,y,y,y,k,k,k,v,v,y,y,y,v,y,y,y,v,v,k,Te,k,v,v,v,v,v,v,v,v,y,v],[y,k,k,y,y,y,k,k,k,y,y,y,y,y,v,y,y,y,v,v,k,Te,k,v,v,v,v,v,v,v,v,y,v],[y,k,k,y,y,y,k,k,k,y,y,y,y,y,v,y,y,y,v,v,k,Te,k,v,v,v,v,v,v,v,v,y,v],[y,k,k,y,y,y,k,k,k,y,y,y,y,y,v,y,y,y,v,v,k,Te,k,v,v,v,v,v,v,v,v,y,v],[v,k,k,y,y,y,k,k,k,v,y,v,v,v,v,y,y,y,v,v,k,Te,k,v,v,v,v,v,v,v,v,y,v],[v,k,k,y,y,y,k,k,k,v,v,v,v,v,v,y,y,y,v,v,k,Te,k,v,v,v,v,v,v,v,v,y,v],[v,k,k,y,v,y,k,k,k,v,v,y,v,v,v,y,y,y,v,v,k,Te,k,v,v,v,v,v,v,v,v,y,v],[v,k,k,y,v,y,k,k,k,v,v,v,v,v,v,y,y,y,v,v,k,Te,k,v,v,v,v,v,v,v,v,y,v],[y,k,k,y,y,y,k,k,k,y,y,y,y,y,y,y,y,y,y,y,k,Te,k,y,y,y,y,y,y,y,y,y,v],[v,k,k,y,y,y,k,k,k,v,v,v,v,v,v,y,y,y,v,k,k,Te,k,v,v,v,v,v,v,v,v,y,v],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,k,v,v,v,v,v,v,v,v,v,v,v,v],[y,k,k,y,y,y,k,k,k,y,y,y,y,y,v,y,y,y,v,v,k,Te,k,v,v,v,v,v,v,v,v,y,v],[y,k,k,y,y,y,k,k,k,y,y,y,y,y,y,y,y,y,y,y,k,Te,k,y,y,y,y,y,y,y,y,y,y],[v,k,k,y,y,y,k,k,k,v,y,v,v,v,v,y,y,y,v,v,k,Te,k,v,v,v,y,y,v,v,v,y,v],[v,k,k,y,y,y,k,k,k,v,y,v,v,v,v,y,y,y,v,v,k,Te,k,v,v,v,v,y,v,v,v,y,v],[v,k,k,y,y,y,k,k,k,v,y,v,v,v,v,y,y,y,v,v,k,Te,k,y,y,y,y,v,v,v,v,y,v],[v,k,k,y,y,y,k,k,k,v,y,v,v,v,v,y,y,y,v,v,k,Te,k,v,v,v,y,y,v,v,v,y,v],[v,k,k,y,y,y,k,k,k,v,y,v,v,v,v,y,y,y,v,v,k,Te,k,v,v,v,v,y,v,v,v,y,v],[v,k,k,y,y,y,k,k,k,v,v,v,v,v,v,y,y,y,v,v,k,Te,k,v,v,v,v,v,y,v,v,y,v],[v,k,k,y,y,y,k,k,k,v,y,v,v,v,v,y,y,y,v,v,k,Te,k,v,v,v,v,v,v,v,y,y,v],[v,k,k,y,y,y,k,k,k,v,y,v,v,v,v,y,y,y,v,v,k,Te,k,v,v,v,v,v,v,v,v,y,v],[y,k,k,y,y,y,k,k,k,y,y,y,y,y,v,y,y,y,v,v,k,Te,k,v,v,v,v,v,v,v,v,y,v],[v,k,k,y,y,v,k,k,k,v,v,v,v,v,v,v,v,v,v,v,k,Te,k,v,v,v,v,v,v,v,v,y,v]],Lf=xo.default.toByteArray("AAgOAAAAAAAQ4QAAAQ0P8vDtnQuMXUUZx+eyu7d7797d9m5bHoWltKVUlsjLWE0VJNigQoMVqkStEoNQQUl5GIo1KKmogEgqkKbBRki72lYabZMGKoGAjQRtJJDaCCIRiiigREBQS3z+xzOTnZ3O+3HOhd5NfpkzZx7fN9988zivu2M9hGwB28F94DnwEngd/Asc1EtIs9c/bIPDwCxwLDgezHcodyo4w5C+CCwBS8FnwSXgCnA1uFbI93XwbXAbWAfWgx+CzWAb+An4KfgFeAzsYWWfYuFz4CXwGvgb+Dfo6yNkEEwGh4CZYB44FpwI3g1OY+kfBItZOo2fB84Hy8DF4HJwNbiWpV8PVoO1LH4n2NRXyN+KcAd4kNVP9XsY4aPgcfAbsBfs6SniL4K/sPjfEf6HlanXCRkCw2BGvUh/keWfXS/CY+pFXs7x9XHmM94LTmWIeU2cgbxnS/k/B3kf86jDhU8L9V2E40vAFWAlWFUfb++NOL4F3C7JX4/4GiE+hvgWsF0oS7mXldspnN+F493gyXrh9xTav0cg3EvzgVfBG6wsmVSEkxBOBgdPGpd7JI6PnqRvJ68/xlbHof53gPeA94OzwLngk+ACsAwsByvASrAK3MB0Ws3CtQjvBJvAVrADPMDSHkb4CNijaccTwvnf4fiPEs8Lxy+D18A/QU8/xjgYBjPAbDAKTgYLwOngTHAO+EQ/8wuEF4EvsPiVCFf2+9tsFStzA8LVHuXXBsi6QyqzUYiPMR/7Mc7dAx7oL8bzw/3u/Bw8Bp4Az4AXwCtgHzsmDXP5fiF9iiVvly5d0sHngar16NKlS5cuXbp06fLmYlqHXrcd3ph4P0THUY3iXh49novju4S0tzfs5d+JPKewfAsRntZb3K9ZhOMlrO6lCC8An28U9+OuovcPcPxlVu5rCL/VmHh/iHIrzn3fIPu7SN8Axmg+8AOwEWwCm7tp3bRuWjetm5Y8bSu4B9zbKO6ZVsnORrVU3f4uXTqZ2H3sLoyx3eDXjfDndE9qyj6L838CfwVvgFpzYnof4oNgOhgBc8Fos9DrZIQLmtXPP1MmF6wGj4H+KXoWguvADkXaPil+YpuQy8Am8Ey7ODdtmJDF4HowBp4De6HDTNjhfHAHeBr0DBBy0kDxfPbcgSIusgrcWhtnJ8vL+TPix7UIOQtcBq4C28Cr4KRBnANbwSuDE+s50JgyNNFuXbp06XIgsXjIvPafjvXozKY+fVFz/z0LT1uCtKVSWbrOLWPnztG8e0Xfy7ol8XtZJi7WtG+5od2UFXQ/A12vUeS7jp27yVKHjdsU9lXB869TyNvAzt0lpP2oWbwLdjiO78bx/Sz+EMJHwK9Y/LcIfw+eZ3F67/Hl5vh9xX80J+rwX8SvRDhpgL17iPAQMHNArfPrqHPewLheI+AERV6efwV418B4nOZ/H+IfYHV8GOF5LJ3eAz0fx8sM9S0fUNud39O9CulfGZhY5huI3wzWgNvBelbHZoTbNPVpfYjKQpkHwUNgl0LWblbnk0LbbDxr0OMFpL3iqWdu9nWYPlVAWkXY39LnGdCkDbeqv1YNbfcMQ3t9oe8lzm6NH9N1ZB6Ln4BwfkJZJk7RyFnYKt6b/JDQXx9p5X+eFdqOjzM9P9MB/lUlFzr20aXIdzlY4dmn9F3YqtvoO76/2hp/D/xA5Zue88nNyL8GbFbs075X0tyUig3Qd2MCnf//HjnzpbsR3g9+1kHzzVjdnE71/qVBX9rGPUh/ysNWe1neFzvIDi5zAufV1sT0N0poR22wkFUfTOPfA4N2mbZ5fSrqOHSw+IbkSBbOGSzSRgf91/GTUWYBOB2cIZQ/G8cfBZ8CFwrnL8XxF8FKcA24jqXdiPA7Qr61OF7H4mMItwzuv2/YLth1ISt3Hzu3k4W7EH5JqPdRHD/O4k+z8A8IX5Lq3y7Z4nXE9xn6kX6vQ4bKfy+ok+hH+xf3hq9dnTTHhjKd2GmDuWA242iHMq4cC7A8kJ7i8o1+skSa7Jieo38HCWnoNjKFhdSFBxzpZ7QE6lI8N4S14aASZcryaV/WWHw66f6NHuCoxuQxmvM56GX9QMd8Q4D65ywGP+ZzRJuM+zQvx/MOS2VFeqQ4IXnH26zM9Xe6/E6D+4foAzzuajPZp8Qyw5ayZVDWuH0z0BtYRkeIDqH9KO9VbH1btd/lhNqCzvl8zeLnG0S/hnU6baHfpiuO6yy0rd+DHURo/zYF5H26j03rQsip2ndzz82u1z9N4VjWKWeb68Tedpt95HRVXp7H1R6p+/Wt4FPy/PpWwscOLRJ+PVWF/+W0iVyGzs18TIvXkOJ1Wxm66vSXz+vylenrZcj1ub439W+K8RNCGTJi2p/TJ1K23VaXr35tRpnzmjxequgfcfyk6B/TGBVlyedsNgpdd/h+W1U3P99QyFPNo1X3TwpM/WLTIWYfoBqXrv6iskHZ/RFr79R6hIyHBrH3f1nrUVnjP8SnZZ+rYtzr9Exld5MNbPNErusAPg+77u/eDOPftU9yj39TH7rezxd1LvsZQJlzkWlOirG/79zjMj/mtHUKu7vKy+3/LnXr9okyKedjX5/0He9iP/j63LwOQdarEVlfy8OO/Lqw023j6xcqmwxLiOd6heM2i9cV9LJy8jMJ23yQ+rpbfu7EQ/pXE8KYvUSqvVnb4XzZa6LrHMXHR+zcLvqWbm/Bn0/HzIs6fWPHoat8XfnDKmZGxRxeMbn2UqZ5Q94nmcZRbqqUXbZ8+lcjE+cPX11t814orvvAXNcG8vqj2vvk1MGn3anlj0bIT72v47bvE+Lc98T9b6r7AKn6j+8Duf7D0nnZx/j7Zjn0j9nbpSTndaLr9WNLivP+iN23xF7L+fqv6ZouFyb78jxVXvv5jJ9YUs9/sddO8h7KNg5jrhfaJGztT6G7KF+1d6yCmD5Kdb2fan60rSc552fZr3zeQ9DpnPp+Si5cx5Ktv2QfSzF/mMbWdOm46rFI4XstnU9xeqX4NKb7TKEdcr6pZOK3ID1k/LvFHkVczEuZLEDr499YqvqBym1aEHWgcvoYOtv0M91qQl5TfpO/in6rWx8OVpT1Wedkv3f5xom3T/xeR/6Gx6V86PWAOB4bBpqWdN+yTcVxjIyGRz/FrDGu6w/3d7kPm8StX8RyPu+uuvpNju/vTLJV37GpvoM0oZPnW87VLnL/5pDno1NoW1R6yedU6TyUv3u19a3KFnIbTLYz+ZCLP4T0tU1uivFgso0pnsJ/UtXvarNY28Xq5cvkBDrQP/E5ZaiuQwwfmTlsOiQRU1fMuqrDd/3ISSuwjOwXOfTyGUMpZIXq4GpLn3pUcdfzch2x7XO1u2uZHOPb1G6b3Xg9PH1IIWeEpJlPQtqos2EKW8b0u8rnuP1UeVLoXJb9be0uG9nnbchjU+XTszT5VeNBThPHnc5OKj1U9aj0GTHIVaGy1YhEWT4ixns00DT+XEzWn/7VAsIc63Cov3OdyhwjrnaqQqZvWKXdypRdlq+k8msZ031U+Rm4fA+3TtyeR9hwfW9G9yxDN0fZMN33F+9TE6md4hwoxumfaUzI9fN3PFT3xVV2msrQ3UsnChm6Nulk8TndpS28D3zX9tTIPsF/z7Am5OkTjm1tI1JZW74+4VgsZ0N3L1yXV3WeP5uR7TGHHdvC3JQlxybfpd22tDlk/2eofRK8TzrN/qnar/K/OUTth6I/+jAnEptNbPvFHP2gs40N3+dfMWtwqvVct7/wfd8gtQ7imifial9ZJ9/3IHLYU6eDj3+4PhsNhX+vwvcWLnu6kGfEMe8DuciPfUfGZB8X/7HJy/Gefe5n+VRGFd/wyP2ta7/LO4yh/sbLV/k9lev6kfO9Dt/5U67b1/6u/epqB1U9Me23jfHY9sscAg4tkbLl+e4/U36rJ9ddxfd6sg5vq5ice42Wpk/pb9FOJ36/W9tpv4kbC79nUbZceX8Zu6/qJ+P3WvhvA8v3reh7Jbn2d6rrNC7XNZTLma4Ba0JI9efX2uLzF5scG/w9UNU1ZxW+ymUfzELeTllXlQ1rUuhzjS5fp9c964iFBOqeSz63bU065nZKdU+mDEz3qHIjjifquw0pnb/raRtvrnsYcb46ihT3taoYz6brdNW9l6rWRnE/navdPn1XlR1km7hcz1WlH/elKuSOSvLLuE8U6m8uzwRdfcGl73VyTHuyMvzJ1Sa2cWDTP/Z63Kc94n2B1PYr24dz1JlyHLlcP+S4B6vD1c9EW4q2LWstCvUjeVy63k/LMYdUNd5D1xQfvVTzX1VjkMsUv88N8VH5fReVn/Fjn++/h6X6Q8a6b1/q3g/i/ewi0/Scs8zxXeV6mWIOUPlPzBgdFerW+bZrm2P18dnjuK6HunEp+rHvPMXbr+sHVb/lnL+pTP57jPw9Cvk3PW178JD9qChfzuvTf7Htl38L1QUf/VKu9SFjwWbTWPvFEvu7Uq76y7+31g6QlYPc669pbsm9Xur2LWI9Pu8ypfDXqm3A2z8s1FWGn4ntL9NfQu2oSlftX9uetvTtv7J8Ql4zxfXGZ3zk8PeQ9w59x2uMfqI8/q5eKh/l9cb2rwsu9rSNl06ZP2Pmxtz+rNMx93yno0n2/82rVH7rQ+y9P15H6FyRun9ViH81ATmffI7nJ5r8uXXW6enbP6b/B8/l5OifVHYLnb9S39s2zcc+Ph+rh8+eQgVPS72elzGWY/tUtbbabBpDiI7yN1q6/4th2y+ErAc5+9BVvu/7KamJbWNZeuqI/R4tRf+YyD1HmOZM1bMV3/14Sn10c0Xu+Sj1nOXb5jL73ncdy02uvlXZNde65dOHYl7Vs4KYuS6FzWLn2zJlpZqPXPVPOa5yzKOyn1VhT9lmMfdbfH7D11Wf2PXN5h9y+dD287+qxgSnaYmnIrRtIb8pJe6/Uv9OVer6Whn0zfGO/BEloZI9ojmfAlUflClDd178bTmVHVTpZXOkAlk/lb42UujmI89HH5V+cl7XtowY6vTxLVWok6UrGzoGTHN+bB+6ri05687VNpvfuvRfaP2uMlNQth1D5JjGelm/8yn+9p3p/7qk9gnfeddXZmq/Sm333PJT659Kv1zjNbZ9uv2Oi//67CV8/N1nj1DmviyXDNVeJkaeaX8UsyesYg8cu2+NvdaPfb+lLDu5tvt/"),Cf=new bo.default(Lf),mo=function(e){switch(e){case wf:return ho;case Ef:case kf:case Tf:return ho;case Sf:return gf;default:return e}},yo=function(e){switch(e){case yi:case wo:return mn;case Mr:return xf;default:return e}},Wr=class{constructor(t,r=!1){this.position=t,this.required=r}},bi=class{nextCodePoint(){let t=this.string.charCodeAt(this.pos++),r=this.string.charCodeAt(this.pos);return 55296<=t&&t<=56319&&56320<=r&&r<=57343?(this.pos++,(t-55296)*1024+(r-56320)+65536):t}nextCharClass(){return mo(Cf.get(this.nextCodePoint()))}getSimpleBreak(){switch(this.nextClass){case Mr:return!1;case mn:case yi:case wo:return this.curClass=mn,!1;case mi:return this.curClass=mi,!1}return null}getPairTableBreak(t){let r=!1;switch(_f[this.curClass][this.nextClass]){case v:r=!0;break;case y:r=t===Mr;break;case Te:if(r=t===Mr,!r)return r=!1,r;break;case So:if(t!==Mr)return r;break;case k:break}return this.LB8a&&(r=!1),this.LB21a&&(this.curClass===yf||this.curClass===bf)?(r=!1,this.LB21a=!1):this.LB21a=this.curClass===mf,this.curClass===vo?(this.LB30a++,this.LB30a==2&&this.nextClass===vo&&(r=!0,this.LB30a=0)):this.LB30a=0,this.curClass=this.nextClass,r}nextBreak(){if(this.curClass==null){let t=this.nextCharClass();this.curClass=yo(t),this.nextClass=t,this.LB8a=t===go,this.LB30a=0}for(;this.pos<this.string.length;){this.lastPos=this.pos;let t=this.nextClass;if(this.nextClass=this.nextCharClass(),this.curClass===mn||this.curClass===mi&&this.nextClass!==yi)return this.curClass=yo(mo(this.nextClass)),new Wr(this.lastPos,!0);let r=this.getSimpleBreak();if(r===null&&(r=this.getPairTableBreak(t)),this.LB8a=this.nextClass===go,r)return new Wr(this.lastPos)}return this.lastPos<this.string.length?(this.lastPos=this.string.length,new Wr(this.string.length)):null}constructor(t){this.string=t,this.pos=0,this.lastPos=0,this.curClass=null,this.nextClass=null,this.LB8a=!1,this.LB21a=!1,this.LB30a=0}};xi=bi;var Pt=Tt(En(),1),vu=Tt(ts(),1),gu=Tt(ns(),1),mu=Tt($i(),1),yu=Tt(Ci(),1),bu=Tt(En(),1),Sa=Tt(as(),1);function zi(e,t=","){let r=[],n=0,i=0;t=new RegExp(t);for(let a=0;a<e.length;a++)e[a]==="("?i++:e[a]===")"&&i--,i===0&&t.test(e[a])&&(r.push(e.slice(n,a).trim()),n=a+1);return r.push(e.slice(n).trim()),r}function ji(e){let t=[];for(let r=0,n=e.length;r<n;){let[i,a]=zi(e[r],/\s+/);Tp(e[r+1])?(t.push({color:i,offset:hr(a),hint:hr(e[r+1])}),r+=2):(t.push({color:i,offset:hr(a)}),r++)}return t}var ls=/^(-?\d+\.?\d*)(%|vw|vh|px|em|rem|deg|rad|grad|turn)$/;function Tp(e){return ls.test(e)}function hr(e){if(!e)return;let[,t,r]=e.trim().match(ls)||[];return{value:t,unit:r}}function us(e){if(!/^(repeating-)?linear-gradient/.test(e))throw new SyntaxError(`could not find syntax for this item: ${e}`);let[,t,r]=e.match(/(repeating-)?linear-gradient\((.+)\)/),n={orientation:{type:"directional",value:"bottom"},repeating:!!t,stops:[]},i=zi(r),a=_p(i[0]);return a&&(n.orientation=a,i.shift()),{...n,stops:ji(i)}}function _p(e){return e.startsWith("to ")?{type:"directional",value:e.replace("to ","")}:["turn","deg","grad","rad"].some(t=>e.endsWith(t))?{type:"angular",value:hr(e)}:null}var Lp=new Set(["closest-corner","closest-side","farthest-corner","farthest-side"]),Cp=new Set(["center","left","top","right","bottom"]);function os(e){return Lp.has(e)}function ss(e){return Cp.has(e)}function Op(e){let t=Array(2).fill("");for(let r=0;r<2;r++)e[r]?t[r]=e[r]:t[r]="center";return t}function fs(e){if(!/(repeating-)?radial-gradient/.test(e))throw new SyntaxError(`could not find syntax for this item: ${e}`);let[,t,r]=e.match(/(repeating-)?radial-gradient\((.+)\)/),n={shape:"ellipse",repeating:!!t,size:[{type:"keyword",value:"farthest-corner"}],position:{x:{type:"keyword",value:"center"},y:{type:"keyword",value:"center"}},stops:[]},i=zi(r);if(Ap(i[0]))return{...n,stops:ji(i)};let a=i[0].split("at").map(u=>u.trim()),o=((a[0]||"").match(/(circle|ellipse)/)||[])[1],l=(a[0]||"").match(/(-?\d+\.?\d*(vw|vh|px|em|rem|%|rad|grad|turn|deg)?|closest-corner|closest-side|farthest-corner|farthest-side)/g)||[],s=Op((a[1]||"").split(" "));return o?n.shape=o:l.length===1&&!os(l[0])?n.shape="circle":n.shape="ellipse",l.length===0&&l.push("farthest-corner"),n.size=l.map(u=>os(u)?{type:"keyword",value:u}:{type:"length",value:hr(u)}),n.position.x=ss(s[0])?{type:"keyword",value:s[0]}:{type:"length",value:hr(s[0])},n.position.y=ss(s[1])?{type:"keyword",value:s[1]}:{type:"length",value:hr(s[1])},(o||l.length>0||a[1])&&i.shift(),{...n,stops:ji(i)}}function Ap(e){return/(circle|ellipse|at)/.test(e)?!1:/^(rgba?|hwb|hsl|lab|lch|oklab|color|#|[a-zA-Z]+)/.test(e)}var Eu=Tt($i(),1);var Ea=Tt(En(),1);var bt=Uint8Array,vr=Uint16Array,Ms=Uint32Array,Ws=new bt([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Gs=new bt([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Ip=new bt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Bs=function(e,t){for(var r=new vr(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var i=new Ms(r[30]),n=1;n<30;++n)for(var a=r[n];a<r[n+1];++a)i[a]=a-r[n]<<5|n;return[r,i]},$s=Bs(Ws,2),js=$s[0],Pp=$s[1];js[28]=258,Pp[258]=28;var Rp=Bs(Gs,0),Fp=Rp[0],ea=new vr(32768);for(Ce=0;Ce<32768;++Ce)Xt=(Ce&43690)>>>1|(Ce&21845)<<1,Xt=(Xt&52428)>>>2|(Xt&13107)<<2,Xt=(Xt&61680)>>>4|(Xt&3855)<<4,ea[Ce]=((Xt&65280)>>>8|(Xt&255)<<8)>>>1;var Xt,Ce,jr=function(e,t,r){for(var n=e.length,i=0,a=new vr(t);i<n;++i)e[i]&&++a[e[i]-1];var o=new vr(t);for(i=0;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var l;if(r){l=new vr(1<<t);var s=15-t;for(i=0;i<n;++i)if(e[i])for(var u=i<<4|e[i],f=t-e[i],c=o[e[i]-1]++<<f,p=c|(1<<f)-1;c<=p;++c)l[ea[c]>>>s]=u}else for(l=new vr(n),i=0;i<n;++i)e[i]&&(l[i]=ea[o[e[i]-1]++]>>>15-e[i]);return l},Hr=new bt(288);for(Ce=0;Ce<144;++Ce)Hr[Ce]=8;var Ce;for(Ce=144;Ce<256;++Ce)Hr[Ce]=9;var Ce;for(Ce=256;Ce<280;++Ce)Hr[Ce]=7;var Ce;for(Ce=280;Ce<288;++Ce)Hr[Ce]=8;var Ce,zs=new bt(32);for(Ce=0;Ce<32;++Ce)zs[Ce]=5;var Ce,Dp=jr(Hr,9,1),Up=jr(zs,5,1),Vi=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},_t=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(t&7)&r},Hi=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Np=function(e){return(e+7)/8|0},Mp=function(e,t,r){(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length);var n=new(e.BYTES_PER_ELEMENT==2?vr:e.BYTES_PER_ELEMENT==4?Ms:bt)(r-t);return n.set(e.subarray(t,r)),n},Wp=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],rr=function(e,t,r){var n=new Error(t||Wp[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,rr),!r)throw n;return n},Gp=function(e,t,r){var n=e.length;if(!n||r&&r.f&&!r.l)return t||new bt(0);var i=!t||r,a=!r||r.i;r||(r={}),t||(t=new bt(n*3));var o=function($){var pe=t.length;if($>pe){var fe=new bt(Math.max(pe*2,$));fe.set(t),t=fe}},l=r.f||0,s=r.p||0,u=r.b||0,f=r.l,c=r.d,p=r.m,h=r.n,m=n*8;do{if(!f){l=_t(e,s,1);var d=_t(e,s+1,3);if(s+=3,d)if(d==1)f=Dp,c=Up,p=9,h=5;else if(d==2){var _=_t(e,s,31)+257,L=_t(e,s+10,15)+4,T=_+_t(e,s+5,31)+1;s+=14;for(var E=new bt(T),R=new bt(19),C=0;C<L;++C)R[Ip[C]]=_t(e,s+C*3,7);s+=L*3;for(var D=Vi(R),M=(1<<D)-1,H=jr(R,D,1),C=0;C<T;){var Q=H[_t(e,s,M)];s+=Q&15;var g=Q>>>4;if(g<16)E[C++]=g;else{var ee=0,I=0;for(g==16?(I=3+_t(e,s,3),s+=2,ee=E[C-1]):g==17?(I=3+_t(e,s,7),s+=3):g==18&&(I=11+_t(e,s,127),s+=7);I--;)E[C++]=ee}}var U=E.subarray(0,_),O=E.subarray(_);p=Vi(U),h=Vi(O),f=jr(U,p,1),c=jr(O,h,1)}else rr(1);else{var g=Np(s)+4,b=e[g-4]|e[g-3]<<8,x=g+b;if(x>n){a&&rr(0);break}i&&o(u+b),t.set(e.subarray(g,x),u),r.b=u+=b,r.p=s=x*8,r.f=l;continue}if(s>m){a&&rr(0);break}}i&&o(u+131072);for(var q=(1<<p)-1,K=(1<<h)-1,ne=s;;ne=s){var ee=f[Hi(e,s)&q],ie=ee>>>4;if(s+=ee&15,s>m){a&&rr(0);break}if(ee||rr(2),ie<256)t[u++]=ie;else if(ie==256){ne=s,f=null;break}else{var V=ie-254;if(ie>264){var C=ie-257,Y=Ws[C];V=_t(e,s,(1<<Y)-1)+js[C],s+=Y}var A=c[Hi(e,s)&K],G=A>>>4;A||rr(3),s+=A&15;var O=Fp[G];if(G>3){var Y=Gs[G];O+=Hi(e,s)&(1<<Y)-1,s+=Y}if(s>m){a&&rr(0);break}i&&o(u+131072);for(var ae=u+V;u<ae;u+=4)t[u]=t[u-O],t[u+1]=t[u+1-O],t[u+2]=t[u+2-O],t[u+3]=t[u+3-O];u=ae}}r.l=f,r.p=ne,r.b=u,r.f=l,f&&(l=1,r.m=p,r.d=c,r.n=h)}while(!l);return u==t.length?t:Mp(t,0,u)},Bp=new bt(0);function $p(e,t){return Gp(e,t)}var jp=typeof TextDecoder<"u"&&new TextDecoder,zp=0;try{jp.decode(Bp,{stream:!0}),zp=1}catch{}function nt(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}nt.prototype.moveTo=function(e,t){this.commands.push({type:"M",x:e,y:t})};nt.prototype.lineTo=function(e,t){this.commands.push({type:"L",x:e,y:t})};nt.prototype.curveTo=nt.prototype.bezierCurveTo=function(e,t,r,n,i,a){this.commands.push({type:"C",x1:e,y1:t,x2:r,y2:n,x:i,y:a})};nt.prototype.quadTo=nt.prototype.quadraticCurveTo=function(e,t,r,n){this.commands.push({type:"Q",x1:e,y1:t,x:r,y:n})};nt.prototype.close=nt.prototype.closePath=function(){this.commands.push({type:"Z"})};nt.prototype.extend=function(e){e.commands&&(e=e.commands),Array.prototype.push.apply(this.commands,e)};nt.prototype.toPathData=function(e){e=e!==void 0?e:2;function t(o){return Math.round(o)===o?""+Math.round(o):o.toFixed(e)}function r(){for(var o=arguments,l="",s=0;s<arguments.length;s+=1){var u=o[s];u>=0&&s>0&&(l+=" "),l+=t(u)}return l}for(var n="",i=0;i<this.commands.length;i+=1){var a=this.commands[i];a.type==="M"?n+="M"+r(a.x,a.y):a.type==="L"?n+="L"+r(a.x,a.y):a.type==="C"?n+="C"+r(a.x1,a.y1,a.x2,a.y2,a.x,a.y):a.type==="Q"?n+="Q"+r(a.x1,a.y1,a.x,a.y):a.type==="Z"&&(n+="Z")}return n};var Vp=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","266 ff","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],Hp=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],Xp=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];function Vs(e){this.font=e}Vs.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r){for(var n=0;n<r.length;n+=1)for(var i=r.get(n),a=0;a<i.unicodes.length;a+=1)if(i.unicodes[a]===t)return n}return null};function Hs(e){this.cmap=e}Hs.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0};function Cn(e,t){this.encoding=e,this.charset=t}Cn.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)};function qp(e){for(var t,r=e.tables.cmap.glyphIndexMap,n=Object.keys(r),i=0;i<n.length;i+=1){var a=n[i],o=r[a];t=e.glyphs.get(o),t.addUnicode(parseInt(a))}}function Yp(e){e._IndexToUnicodeMap={};for(var t=e.tables.cmap.glyphIndexMap,r=Object.keys(t),n=0;n<r.length;n+=1){var i=r[n],a=t[i];e._IndexToUnicodeMap[a]===void 0?e._IndexToUnicodeMap[a]={unicodes:[parseInt(i)]}:e._IndexToUnicodeMap[a].unicodes.push(parseInt(i))}}function Zp(e,t){t.lowMemory?Yp(e):qp(e)}function Xs(e){throw new Error(e)}function cs(e,t){e||Xs(t)}var Oe={fail:Xs,argument:cs,assert:cs};function Jp(e,t){var r=t||new nt;return{configurable:!0,get:function(){return typeof r=="function"&&(r=r()),r},set:function(n){r=n}}}function Zt(e){this.bindConstructorValues(e)}Zt.prototype.bindConstructorValues=function(e){this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||e.unicode!==void 0?[e.unicode]:[],"xMin"in e&&(this.xMin=e.xMin),"yMin"in e&&(this.yMin=e.yMin),"xMax"in e&&(this.xMax=e.xMax),"yMax"in e&&(this.yMax=e.yMax),"advanceWidth"in e&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,"path",Jp(this,e.path))};Zt.prototype.addUnicode=function(e){this.unicodes.length===0&&(this.unicode=e),this.unicodes.push(e)};Zt.prototype.getPath=function(e,t,r,n,i){e=e!==void 0?e:0,t=t!==void 0?t:0,r=r!==void 0?r:72;var a,o;n||(n={});var l=n.xScale,s=n.yScale;if(n.hinting&&i&&i.hinting&&(o=this.path&&i.hinting.exec(this,r)),o)a=i.hinting.getCommands(o),e=Math.round(e),t=Math.round(t),l=s=1;else{a=this.path.commands;var u=1/(this.path.unitsPerEm||1e3)*r;l===void 0&&(l=u),s===void 0&&(s=u)}for(var f=new nt,c=0;c<a.length;c+=1){var p=a[c];p.type==="M"?f.moveTo(e+p.x*l,t+-p.y*s):p.type==="L"?f.lineTo(e+p.x*l,t+-p.y*s):p.type==="Q"?f.quadraticCurveTo(e+p.x1*l,t+-p.y1*s,e+p.x*l,t+-p.y*s):p.type==="C"?f.curveTo(e+p.x1*l,t+-p.y1*s,e+p.x2*l,t+-p.y2*s,e+p.x*l,t+-p.y*s):p.type==="Z"&&f.closePath()}return f};Zt.prototype.getContours=function(){if(this.points===void 0)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var n=this.points[r];t.push(n),n.lastPointOfContour&&(e.push(t),t=[])}return Oe.argument(t.length===0,"There are still points left in the current contour."),e};Zt.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],n=0;n<e.length;n+=1){var i=e[n];i.type!=="Z"&&(t.push(i.x),r.push(i.y)),(i.type==="Q"||i.type==="C")&&(t.push(i.x1),r.push(i.y1)),i.type==="C"&&(t.push(i.x2),r.push(i.y2))}var a={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(a.xMin)||(a.xMin=0),isFinite(a.xMax)||(a.xMax=this.advanceWidth),isFinite(a.yMin)||(a.yMin=0),isFinite(a.yMax)||(a.yMax=0),a.rightSideBearing=this.advanceWidth-a.leftSideBearing-(a.xMax-a.xMin),a};function Tn(e,t,r){Object.defineProperty(e,t,{get:function(){return e.path,e[r]},set:function(n){e[r]=n},enumerable:!0,configurable:!0})}function na(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];n.path.unitsPerEm=e.unitsPerEm,this.glyphs[r]=n}this.length=t&&t.length||0}na.prototype.get=function(e){if(this.glyphs[e]===void 0){this.font._push(e),typeof this.glyphs[e]=="function"&&(this.glyphs[e]=this.glyphs[e]());var t=this.glyphs[e],r=this.font._IndexToUnicodeMap[e];if(r)for(var n=0;n<r.unicodes.length;n++)t.addUnicode(r.unicodes[n]);this.glyphs[e].advanceWidth=this.font._hmtxTableData[e].advanceWidth,this.glyphs[e].leftSideBearing=this.font._hmtxTableData[e].leftSideBearing}else typeof this.glyphs[e]=="function"&&(this.glyphs[e]=this.glyphs[e]());return this.glyphs[e]};na.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};function Qp(e,t){return new Zt({index:t,font:e})}function Kp(e,t,r,n,i,a){return function(){var o=new Zt({index:t,font:e});return o.path=function(){r(o,n,i);var l=a(e.glyphs,o);return l.unitsPerEm=e.unitsPerEm,l},Tn(o,"xMin","_xMin"),Tn(o,"xMax","_xMax"),Tn(o,"yMin","_yMin"),Tn(o,"yMax","_yMax"),o}}function eh(e,t,r,n){return function(){var i=new Zt({index:t,font:e});return i.path=function(){var a=r(e,i,n);return a.unitsPerEm=e.unitsPerEm,a},i}}var Bt={GlyphSet:na,glyphLoader:Qp,ttfGlyphLoader:Kp,cffGlyphLoader:eh};function Xi(e,t){for(var r=0,n=e.length-1;r<=n;){var i=r+n>>>1,a=e[i].tag;if(a===t)return i;a<t?r=i+1:n=i-1}return-r-1}function ps(e,t){for(var r=0,n=e.length-1;r<=n;){var i=r+n>>>1,a=e[i];if(a===t)return i;a<t?r=i+1:n=i-1}return-r-1}function hs(e,t){for(var r,n=0,i=e.length-1;n<=i;){var a=n+i>>>1;r=e[a];var o=r.start;if(o===t)return r;o<t?n=a+1:i=a-1}if(n>0)return r=e[n-1],t>r.end?0:r}function Xr(e,t){this.font=e,this.tableName=t}Xr.prototype={searchTag:Xi,binSearch:ps,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var n=e.scripts[r].tag;if(n==="DFLT")return n;n==="latn"&&(t=!0)}if(t)return"latn"}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||"DFLT";var n=r.scripts,i=Xi(r.scripts,e);if(i>=0)return n[i].script;if(t){var a={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return n.splice(-1-i,0,a),a.script}}},getLangSysTable:function(e,t,r){var n=this.getScriptTable(e,r);if(n){if(!t||t==="dflt"||t==="DFLT")return n.defaultLangSys;var i=Xi(n.langSysRecords,t);if(i>=0)return n.langSysRecords[i].langSys;if(r){var a={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return n.langSysRecords.splice(-1-i,0,a),a.langSys}}},getFeatureTable:function(e,t,r,n){var i=this.getLangSysTable(e,t,n);if(i){for(var a,o=i.featureIndexes,l=this.font.tables[this.tableName].features,s=0;s<o.length;s++)if(a=l[o[s]],a.tag===r)return a.feature;if(n){var u=l.length;return Oe.assert(u===0||r>=l[u-1].tag,"Features must be added in alphabetical order."),a={tag:r,feature:{params:0,lookupListIndexes:[]}},l.push(a),o.push(u),a.feature}}},getLookupTables:function(e,t,r,n,i){var a=this.getFeatureTable(e,t,r,i),o=[];if(a){for(var l,s=a.lookupListIndexes,u=this.font.tables[this.tableName].lookups,f=0;f<s.length;f++)l=u[s[f]],l.lookupType===n&&o.push(l);if(o.length===0&&i){l={lookupType:n,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(l),s.push(c),[l]}}return o},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=hs(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=ps(e.glyphs,t);return r>=0?r:-1;case 2:var n=hs(e.ranges,t);return n?n.index+t-n.start:-1}},expandCoverage:function(e){if(e.format===1)return e.glyphs;for(var t=[],r=e.ranges,n=0;n<r.length;n++)for(var i=r[n],a=i.start,o=i.end,l=a;l<=o;l++)t.push(l);return t}};function qr(e){Xr.call(this,e,"gpos")}qr.prototype=Xr.prototype;qr.prototype.init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)};qr.prototype.getKerningValue=function(e,t,r){for(var n=0;n<e.length;n++)for(var i=e[n].subtables,a=0;a<i.length;a++){var o=i[a],l=this.getCoverageIndex(o.coverage,t);if(!(l<0))switch(o.posFormat){case 1:for(var s=o.pairSets[l],u=0;u<s.length;u++){var f=s[u];if(f.secondGlyph===r)return f.value1&&f.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(o.classDef1,t),p=this.getGlyphClass(o.classDef2,r),h=o.classRecords[c][p];return h.value1&&h.value1.xAdvance||0}}return 0};qr.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,"kern",2)};function dt(e){Xr.call(this,e,"gsub")}function th(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function ia(e,t,r){for(var n=e.subtables,i=0;i<n.length;i++){var a=n[i];if(a.substFormat===t)return a}if(r)return n.push(r),r}dt.prototype=Xr.prototype;dt.prototype.createDefaultTable=function(){return{version:1,scripts:[{tag:"DFLT",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}};dt.prototype.getSingle=function(e,t,r){for(var n=[],i=this.getLookupTables(t,r,e,1),a=0;a<i.length;a++)for(var o=i[a].subtables,l=0;l<o.length;l++){var s=o[l],u=this.expandCoverage(s.coverage),f=void 0;if(s.substFormat===1){var c=s.deltaGlyphId;for(f=0;f<u.length;f++){var p=u[f];n.push({sub:p,by:p+c})}}else{var h=s.substitute;for(f=0;f<u.length;f++)n.push({sub:u[f],by:h[f]})}}return n};dt.prototype.getMultiple=function(e,t,r){for(var n=[],i=this.getLookupTables(t,r,e,2),a=0;a<i.length;a++)for(var o=i[a].subtables,l=0;l<o.length;l++){var s=o[l],u=this.expandCoverage(s.coverage),f=void 0;for(f=0;f<u.length;f++){var c=u[f],p=s.sequences[f];n.push({sub:c,by:p})}}return n};dt.prototype.getAlternates=function(e,t,r){for(var n=[],i=this.getLookupTables(t,r,e,3),a=0;a<i.length;a++)for(var o=i[a].subtables,l=0;l<o.length;l++)for(var s=o[l],u=this.expandCoverage(s.coverage),f=s.alternateSets,c=0;c<u.length;c++)n.push({sub:u[c],by:f[c]});return n};dt.prototype.getLigatures=function(e,t,r){for(var n=[],i=this.getLookupTables(t,r,e,4),a=0;a<i.length;a++)for(var o=i[a].subtables,l=0;l<o.length;l++)for(var s=o[l],u=this.expandCoverage(s.coverage),f=s.ligatureSets,c=0;c<u.length;c++)for(var p=u[c],h=f[c],m=0;m<h.length;m++){var d=h[m];n.push({sub:[p].concat(d.components),by:d.ligGlyph})}return n};dt.prototype.addSingle=function(e,t,r,n){var i=this.getLookupTables(r,n,e,1,!0)[0],a=ia(i,2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});Oe.assert(a.coverage.format===1,"Single: unable to modify coverage table format "+a.coverage.format);var o=t.sub,l=this.binSearch(a.coverage.glyphs,o);l<0&&(l=-1-l,a.coverage.glyphs.splice(l,0,o),a.substitute.splice(l,0,0)),a.substitute[l]=t.by};dt.prototype.addMultiple=function(e,t,r,n){Oe.assert(t.by instanceof Array&&t.by.length>1,'Multiple: "by" must be an array of two or more ids');var i=this.getLookupTables(r,n,e,2,!0)[0],a=ia(i,1,{substFormat:1,coverage:{format:1,glyphs:[]},sequences:[]});Oe.assert(a.coverage.format===1,"Multiple: unable to modify coverage table format "+a.coverage.format);var o=t.sub,l=this.binSearch(a.coverage.glyphs,o);l<0&&(l=-1-l,a.coverage.glyphs.splice(l,0,o),a.sequences.splice(l,0,0)),a.sequences[l]=t.by};dt.prototype.addAlternate=function(e,t,r,n){var i=this.getLookupTables(r,n,e,3,!0)[0],a=ia(i,1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});Oe.assert(a.coverage.format===1,"Alternate: unable to modify coverage table format "+a.coverage.format);var o=t.sub,l=this.binSearch(a.coverage.glyphs,o);l<0&&(l=-1-l,a.coverage.glyphs.splice(l,0,o),a.alternateSets.splice(l,0,0)),a.alternateSets[l]=t.by};dt.prototype.addLigature=function(e,t,r,n){var i=this.getLookupTables(r,n,e,4,!0)[0],a=i.subtables[0];a||(a={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},i.subtables[0]=a),Oe.assert(a.coverage.format===1,"Ligature: unable to modify coverage table format "+a.coverage.format);var o=t.sub[0],l=t.sub.slice(1),s={ligGlyph:t.by,components:l},u=this.binSearch(a.coverage.glyphs,o);if(u>=0){for(var f=a.ligatureSets[u],c=0;c<f.length;c++)if(th(f[c].components,l))return;f.push(s)}else u=-1-u,a.coverage.glyphs.splice(u,0,o),a.ligatureSets.splice(u,0,[s])};dt.prototype.getFeature=function(e,t,r){if(/ss\d\d/.test(e))return this.getSingle(e,t,r);switch(e){case"aalt":case"salt":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case"dlig":case"liga":case"rlig":return this.getLigatures(e,t,r);case"ccmp":return this.getMultiple(e,t,r).concat(this.getLigatures(e,t,r));case"stch":return this.getMultiple(e,t,r)}};dt.prototype.add=function(e,t,r,n){if(/ss\d\d/.test(e))return this.addSingle(e,t,r,n);switch(e){case"aalt":case"salt":return typeof t.by=="number"?this.addSingle(e,t,r,n):this.addAlternate(e,t,r,n);case"dlig":case"liga":case"rlig":return this.addLigature(e,t,r,n);case"ccmp":return t.by instanceof Array?this.addMultiple(e,t,r,n):this.addLigature(e,t,r,n)}};function $r(e,t){if(!e)throw t}function ds(e,t){return e.getUint8(t)}function On(e,t){return e.getUint16(t,!1)}function rh(e,t){return e.getInt16(t,!1)}function aa(e,t){return e.getUint32(t,!1)}function qs(e,t){var r=e.getInt16(t,!1),n=e.getUint16(t+2,!1);return r+n/65535}function nh(e,t){for(var r="",n=t;n<t+4;n+=1)r+=String.fromCharCode(e.getInt8(n));return r}function ih(e,t,r){for(var n=0,i=0;i<r;i+=1)n<<=8,n+=e.getUint8(t+i);return n}function ah(e,t,r){for(var n=[],i=t;i<r;i+=1)n.push(e.getUint8(i));return n}function oh(e){for(var t="",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t}var sh={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function W(e,t){this.data=e,this.offset=t,this.relativeOffset=0}W.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e};W.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e};W.prototype.parseCard8=W.prototype.parseByte;W.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e};W.prototype.parseCard16=W.prototype.parseUShort;W.prototype.parseSID=W.prototype.parseUShort;W.prototype.parseOffset16=W.prototype.parseUShort;W.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e};W.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e};W.prototype.parseULong=function(){var e=aa(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e};W.prototype.parseOffset32=W.prototype.parseULong;W.prototype.parseFixed=function(){var e=qs(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e};W.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,n="";this.relativeOffset+=e;for(var i=0;i<e;i++)n+=String.fromCharCode(t.getUint8(r+i));return n};W.prototype.parseTag=function(){return this.parseString(4)};W.prototype.parseLongDateTime=function(){var e=aa(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e};W.prototype.parseVersion=function(e){var t=On(this.data,this.offset+this.relativeOffset),r=On(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,e===void 0&&(e=4096),t+r/e/10};W.prototype.skip=function(e,t){t===void 0&&(t=1),this.relativeOffset+=sh[e]*t};W.prototype.parseULongList=function(e){e===void 0&&(e=this.parseULong());for(var t=new Array(e),r=this.data,n=this.offset+this.relativeOffset,i=0;i<e;i++)t[i]=r.getUint32(n),n+=4;return this.relativeOffset+=e*4,t};W.prototype.parseOffset16List=W.prototype.parseUShortList=function(e){e===void 0&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,n=this.offset+this.relativeOffset,i=0;i<e;i++)t[i]=r.getUint16(n),n+=2;return this.relativeOffset+=e*2,t};W.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,n=this.offset+this.relativeOffset,i=0;i<e;i++)t[i]=r.getInt16(n),n+=2;return this.relativeOffset+=e*2,t};W.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,n=this.offset+this.relativeOffset,i=0;i<e;i++)t[i]=r.getUint8(n++);return this.relativeOffset+=e,t};W.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),n=0;n<e;n++)r[n]=t.call(this);return r};W.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),n=0;n<e;n++)r[n]=t.call(this);return r};W.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),n=Object.keys(t),i=0;i<e;i++){for(var a={},o=0;o<n.length;o++){var l=n[o],s=t[l];a[l]=s.call(this)}r[i]=a}return r};W.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),n=Object.keys(t),i=0;i<e;i++){for(var a={},o=0;o<n.length;o++){var l=n[o],s=t[l];a[l]=s.call(this)}r[i]=a}return r};W.prototype.parseStruct=function(e){if(typeof e=="function")return e.call(this);for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n],a=e[i];r[i]=a.call(this)}return r};W.prototype.parseValueRecord=function(e){if(e===void 0&&(e=this.parseUShort()),e!==0){var t={};return e&1&&(t.xPlacement=this.parseShort()),e&2&&(t.yPlacement=this.parseShort()),e&4&&(t.xAdvance=this.parseShort()),e&8&&(t.yAdvance=this.parseShort()),e&16&&(t.xPlaDevice=void 0,this.parseShort()),e&32&&(t.yPlaDevice=void 0,this.parseShort()),e&64&&(t.xAdvDevice=void 0,this.parseShort()),e&128&&(t.yAdvDevice=void 0,this.parseShort()),t}};W.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),n=0;n<t;n++)r[n]=this.parseValueRecord(e);return r};W.prototype.parsePointer=function(e){var t=this.parseOffset16();if(t>0)return new W(this.data,this.offset+t).parseStruct(e)};W.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(t>0)return new W(this.data,this.offset+t).parseStruct(e)};W.prototype.parseListOfLists=function(e){for(var t=this.parseOffset16List(),r=t.length,n=this.relativeOffset,i=new Array(r),a=0;a<r;a++){var o=t[a];if(o===0){i[a]=void 0;continue}if(this.relativeOffset=o,e){for(var l=this.parseOffset16List(),s=new Array(l.length),u=0;u<l.length;u++)this.relativeOffset=o+l[u],s[u]=e.call(this);i[a]=s}else i[a]=this.parseUShortList()}return this.relativeOffset=n,i};W.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(t===1)return{format:1,glyphs:this.parseUShortList(r)};if(t===2){for(var n=new Array(r),i=0;i<r;i++)n[i]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:n}}throw new Error("0x"+e.toString(16)+": Coverage format must be 1 or 2.")};W.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(t===1)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(t===2)return{format:2,ranges:this.parseRecordList({start:W.uShort,end:W.uShort,classId:W.uShort})};throw new Error("0x"+e.toString(16)+": ClassDef format must be 1 or 2.")};W.list=function(e,t){return function(){return this.parseList(e,t)}};W.list32=function(e,t){return function(){return this.parseList32(e,t)}};W.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}};W.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}};W.pointer=function(e){return function(){return this.parsePointer(e)}};W.pointer32=function(e){return function(){return this.parsePointer32(e)}};W.tag=W.prototype.parseTag;W.byte=W.prototype.parseByte;W.uShort=W.offset16=W.prototype.parseUShort;W.uShortList=W.prototype.parseUShortList;W.uLong=W.offset32=W.prototype.parseULong;W.uLongList=W.prototype.parseULongList;W.struct=W.prototype.parseStruct;W.coverage=W.prototype.parseCoverage;W.classDef=W.prototype.parseClassDef;var vs={reserved:W.uShort,reqFeatureIndex:W.uShort,featureIndexes:W.uShortList};W.prototype.parseScriptList=function(){return this.parsePointer(W.recordList({tag:W.tag,script:W.pointer({defaultLangSys:W.pointer(vs),langSysRecords:W.recordList({tag:W.tag,langSys:W.pointer(vs)})})}))||[]};W.prototype.parseFeatureList=function(){return this.parsePointer(W.recordList({tag:W.tag,feature:W.pointer({featureParams:W.offset16,lookupListIndexes:W.uShortList})}))||[]};W.prototype.parseLookupList=function(e){return this.parsePointer(W.list(W.pointer(function(){var t=this.parseUShort();Oe.argument(1<=t&&t<=9,"GPOS/GSUB lookup type "+t+" unknown.");var r=this.parseUShort(),n=r&16;return{lookupType:t,lookupFlag:r,subtables:this.parseList(W.pointer(e[t])),markFilteringSet:n?this.parseUShort():void 0}})))||[]};W.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();Oe.argument(e===1&&t<1,"GPOS/GSUB feature variations table unknown.");var r=this.parseRecordList32({conditionSetOffset:W.offset32,featureTableSubstitutionOffset:W.offset32});return r})||[]};var se={getByte:ds,getCard8:ds,getUShort:On,getCard16:On,getShort:rh,getULong:aa,getFixed:qs,getTag:nh,getOffset:ih,getBytes:ah,bytesToString:oh,Parser:W};function gs(e,t,r,n,i){var a;return(t&n)>0?(a=e.parseByte(),t&i||(a=-a),a=r+a):(t&i)>0?a=r:a=r+e.parseShort(),a}function Ys(e,t,r){var n=new se.Parser(t,r);e.numberOfContours=n.parseShort(),e._xMin=n.parseShort(),e._yMin=n.parseShort(),e._xMax=n.parseShort(),e._yMax=n.parseShort();var i,a;if(e.numberOfContours>0){for(var o=e.endPointIndices=[],l=0;l<e.numberOfContours;l+=1)o.push(n.parseUShort());e.instructionLength=n.parseUShort(),e.instructions=[];for(var s=0;s<e.instructionLength;s+=1)e.instructions.push(n.parseByte());var u=o[o.length-1]+1;i=[];for(var f=0;f<u;f+=1)if(a=n.parseByte(),i.push(a),(a&8)>0)for(var c=n.parseByte(),p=0;p<c;p+=1)i.push(a),f+=1;if(Oe.argument(i.length===u,"Bad flags."),o.length>0){var h=[],m;if(u>0){for(var d=0;d<u;d+=1)a=i[d],m={},m.onCurve=!!(a&1),m.lastPointOfContour=o.indexOf(d)>=0,h.push(m);for(var g=0,b=0;b<u;b+=1)a=i[b],m=h[b],m.x=gs(n,a,g,2,16),g=m.x;for(var x=0,_=0;_<u;_+=1)a=i[_],m=h[_],m.y=gs(n,a,x,4,32),x=m.y}e.points=h}else e.points=[]}else if(e.numberOfContours===0)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var L=!0;L;){i=n.parseUShort();var T={glyphIndex:n.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};(i&1)>0?(i&2)>0?(T.dx=n.parseShort(),T.dy=n.parseShort()):T.matchedPoints=[n.parseUShort(),n.parseUShort()]:(i&2)>0?(T.dx=n.parseChar(),T.dy=n.parseChar()):T.matchedPoints=[n.parseByte(),n.parseByte()],(i&8)>0?T.xScale=T.yScale=n.parseF2Dot14():(i&64)>0?(T.xScale=n.parseF2Dot14(),T.yScale=n.parseF2Dot14()):(i&128)>0&&(T.xScale=n.parseF2Dot14(),T.scale01=n.parseF2Dot14(),T.scale10=n.parseF2Dot14(),T.yScale=n.parseF2Dot14()),e.components.push(T),L=!!(i&32)}if(i&256){e.instructionLength=n.parseUShort(),e.instructions=[];for(var E=0;E<e.instructionLength;E+=1)e.instructions.push(n.parseByte())}}}function qi(e,t){for(var r=[],n=0;n<e.length;n+=1){var i=e[n],a={x:t.xScale*i.x+t.scale01*i.y+t.dx,y:t.scale10*i.x+t.yScale*i.y+t.dy,onCurve:i.onCurve,lastPointOfContour:i.lastPointOfContour};r.push(a)}return r}function lh(e){for(var t=[],r=[],n=0;n<e.length;n+=1){var i=e[n];r.push(i),i.lastPointOfContour&&(t.push(r),r=[])}return Oe.argument(r.length===0,"There are still points left in the current contour."),t}function Zs(e){var t=new nt;if(!e)return t;for(var r=lh(e),n=0;n<r.length;++n){var i=r[n],a=null,o=i[i.length-1],l=i[0];if(o.onCurve)t.moveTo(o.x,o.y);else if(l.onCurve)t.moveTo(l.x,l.y);else{var s={x:(o.x+l.x)*.5,y:(o.y+l.y)*.5};t.moveTo(s.x,s.y)}for(var u=0;u<i.length;++u)if(a=o,o=l,l=i[(u+1)%i.length],o.onCurve)t.lineTo(o.x,o.y);else{var f=a,c=l;a.onCurve||(f={x:(o.x+a.x)*.5,y:(o.y+a.y)*.5}),l.onCurve||(c={x:(o.x+l.x)*.5,y:(o.y+l.y)*.5}),t.quadraticCurveTo(o.x,o.y,c.x,c.y)}t.closePath()}return t}function Js(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var n=t.components[r],i=e.get(n.glyphIndex);if(i.getPath(),i.points){var a=void 0;if(n.matchedPoints===void 0)a=qi(i.points,n);else{if(n.matchedPoints[0]>t.points.length-1||n.matchedPoints[1]>i.points.length-1)throw Error("Matched points out of range in "+t.name);var o=t.points[n.matchedPoints[0]],l=i.points[n.matchedPoints[1]],s={xScale:n.xScale,scale01:n.scale01,scale10:n.scale10,yScale:n.yScale,dx:0,dy:0};l=qi([l],s)[0],s.dx=o.x-l.x,s.dy=o.y-l.y,a=qi(i.points,s)}t.points=t.points.concat(a)}}return Zs(t.points)}function uh(e,t,r,n){for(var i=new Bt.GlyphSet(n),a=0;a<r.length-1;a+=1){var o=r[a],l=r[a+1];o!==l?i.push(a,Bt.ttfGlyphLoader(n,a,Ys,e,t+o,Js)):i.push(a,Bt.glyphLoader(n,a))}return i}function fh(e,t,r,n){var i=new Bt.GlyphSet(n);return n._push=function(a){var o=r[a],l=r[a+1];o!==l?i.push(a,Bt.ttfGlyphLoader(n,a,Ys,e,t+o,Js)):i.push(a,Bt.glyphLoader(n,a))},i}function ch(e,t,r,n,i){return i.lowMemory?fh(e,t,r,n):uh(e,t,r,n)}var Qs={getPath:Zs,parse:ch},Ks,gr,el,ta;function tl(e){this.font=e,this.getCommands=function(t){return Qs.getPath(t).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function ph(e){return e}function rl(e){return Math.sign(e)*Math.round(Math.abs(e))}function hh(e){return Math.sign(e)*Math.round(Math.abs(e*2))/2}function dh(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function vh(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function gh(e){return Math.sign(e)*Math.floor(Math.abs(e))}var nl=function(e){var t=this.srPeriod,r=this.srPhase,n=this.srThreshold,i=1;return e<0&&(e=-e,i=-1),e+=n-r,e=Math.trunc(e/t)*t,e+=r,e<0?r*i:e*i},Gt={x:1,y:0,axis:"x",distance:function(e,t,r,n){return(r?e.xo:e.x)-(n?t.xo:t.x)},interpolate:function(e,t,r,n){var i,a,o,l,s,u,f;if(!n||n===this){if(i=e.xo-t.xo,a=e.xo-r.xo,s=t.x-t.xo,u=r.x-r.xo,o=Math.abs(i),l=Math.abs(a),f=o+l,f===0){e.x=e.xo+(s+u)/2;return}e.x=e.xo+(s*l+u*o)/f;return}if(i=n.distance(e,t,!0,!0),a=n.distance(e,r,!0,!0),s=n.distance(t,t,!1,!0),u=n.distance(r,r,!1,!0),o=Math.abs(i),l=Math.abs(a),f=o+l,f===0){Gt.setRelative(e,e,(s+u)/2,n,!0);return}Gt.setRelative(e,e,(s*l+u*o)/f,n,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,n,i){if(!n||n===this){e.x=(i?t.xo:t.x)+r;return}var a=i?t.xo:t.x,o=i?t.yo:t.y,l=a+r*n.x,s=o+r*n.y;e.x=l+(e.y-s)/n.normalSlope},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:"y",distance:function(e,t,r,n){return(r?e.yo:e.y)-(n?t.yo:t.y)},interpolate:function(e,t,r,n){var i,a,o,l,s,u,f;if(!n||n===this){if(i=e.yo-t.yo,a=e.yo-r.yo,s=t.y-t.yo,u=r.y-r.yo,o=Math.abs(i),l=Math.abs(a),f=o+l,f===0){e.y=e.yo+(s+u)/2;return}e.y=e.yo+(s*l+u*o)/f;return}if(i=n.distance(e,t,!0,!0),a=n.distance(e,r,!0,!0),s=n.distance(t,t,!1,!0),u=n.distance(r,r,!1,!0),o=Math.abs(i),l=Math.abs(a),f=o+l,f===0){qt.setRelative(e,e,(s+u)/2,n,!0);return}qt.setRelative(e,e,(s*l+u*o)/f,n,!0)},normalSlope:0,setRelative:function(e,t,r,n,i){if(!n||n===this){e.y=(i?t.yo:t.y)+r;return}var a=i?t.xo:t.x,o=i?t.yo:t.y,l=a+r*n.x,s=o+r*n.y;e.y=s+n.normalSlope*(e.x-l)},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};Object.freeze(Gt);Object.freeze(qt);function Yr(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}Yr.prototype.distance=function(e,t,r,n){return this.x*Gt.distance(e,t,r,n)+this.y*qt.distance(e,t,r,n)};Yr.prototype.interpolate=function(e,t,r,n){var i,a,o,l,s,u,f;if(o=n.distance(e,t,!0,!0),l=n.distance(e,r,!0,!0),i=n.distance(t,t,!1,!0),a=n.distance(r,r,!1,!0),s=Math.abs(o),u=Math.abs(l),f=s+u,f===0){this.setRelative(e,e,(i+a)/2,n,!0);return}this.setRelative(e,e,(i*u+a*s)/f,n,!0)};Yr.prototype.setRelative=function(e,t,r,n,i){n=n||this;var a=i?t.xo:t.x,o=i?t.yo:t.y,l=a+r*n.x,s=o+r*n.y,u=n.normalSlope,f=this.slope,c=e.x,p=e.y;e.x=(f*c-u*l+s-p)/(f-u),e.y=f*(e.x-c)+p};Yr.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0};function Zr(e,t){var r=Math.sqrt(e*e+t*t);return e/=r,t/=r,e===1&&t===0?Gt:e===0&&t===1?qt:new Yr(e,t)}function Yt(e,t,r,n){this.x=this.xo=Math.round(e*64)/64,this.y=this.yo=Math.round(t*64)/64,this.lastPointOfContour=r,this.onCurve=n,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Yt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t};Yt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Vr=Object.freeze(new Yt(0,0)),mh={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function ir(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case"glyf":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case"prep":this.fv=this.pv=this.dpv=Gt,this.round=rl}}tl.prototype.exec=function(e,t){if(typeof t!="number")throw new Error("Point size is not a number!");if(!(this._errorState>2)){var r=this.font,n=this._prepState;if(!n||n.ppem!==t){var i=this._fpgmState;if(!i){ir.prototype=mh,i=this._fpgmState=new ir("fpgm",r.tables.fpgm),i.funcs=[],i.font=r,exports.DEBUG&&(console.log("---EXEC FPGM---"),i.step=-1);try{gr(i)}catch(u){console.log("Hinting error in FPGM:"+u),this._errorState=3;return}}ir.prototype=i,n=this._prepState=new ir("prep",r.tables.prep),n.ppem=t;var a=r.tables.cvt;if(a)for(var o=n.cvt=new Array(a.length),l=t/r.unitsPerEm,s=0;s<a.length;s++)o[s]=a[s]*l;else n.cvt=[];exports.DEBUG&&(console.log("---EXEC PREP---"),n.step=-1);try{gr(n)}catch(u){this._errorState<2&&console.log("Hinting error in PREP:"+u),this._errorState=2}}if(!(this._errorState>1))try{return el(e,n)}catch(u){this._errorState<1&&(console.log("Hinting error:"+u),console.log("Note: further hinting errors are silenced")),this._errorState=1;return}}};el=function(e,t){var r=t.ppem/t.font.unitsPerEm,n=r,i=e.components,a,o,l;if(ir.prototype=t,!i)l=new ir("glyf",e.instructions),exports.DEBUG&&(console.log("---EXEC GLYPH---"),l.step=-1),ta(e,l,r,n),o=l.gZone;else{var s=t.font;o=[],a=[];for(var u=0;u<i.length;u++){var f=i[u],c=s.glyphs.get(f.glyphIndex);l=new ir("glyf",c.instructions),exports.DEBUG&&(console.log("---EXEC COMP "+u+"---"),l.step=-1),ta(c,l,r,n);for(var p=Math.round(f.dx*r),h=Math.round(f.dy*n),m=l.gZone,d=l.contours,g=0;g<m.length;g++){var b=m[g];b.xTouched=b.yTouched=!1,b.xo=b.x=b.x+p,b.yo=b.y=b.y+h}var x=o.length;o.push.apply(o,m);for(var _=0;_<d.length;_++)a.push(d[_]+x)}e.instructions&&!l.inhibitGridFit&&(l=new ir("glyf",e.instructions),l.gZone=l.z0=l.z1=l.z2=o,l.contours=a,o.push(new Yt(0,0),new Yt(Math.round(e.advanceWidth*r),0)),exports.DEBUG&&(console.log("---EXEC COMPOSITE---"),l.step=-1),gr(l),o.length-=2)}return o};ta=function(e,t,r,n){for(var i=e.points||[],a=i.length,o=t.gZone=t.z0=t.z1=t.z2=[],l=t.contours=[],s,u=0;u<a;u++)s=i[u],o[u]=new Yt(s.x*r,s.y*n,s.lastPointOfContour,s.onCurve);for(var f,c,p=0;p<a;p++)s=o[p],f||(f=s,l.push(p)),s.lastPointOfContour?(s.nextPointOnContour=f,f.prevPointOnContour=s,f=void 0):(c=o[p+1],s.nextPointOnContour=c,c.prevPointOnContour=s);if(!t.inhibitGridFit){if(exports.DEBUG){console.log("PROCESSING GLYPH",t.stack);for(var h=0;h<a;h++)console.log(h,o[h].x,o[h].y)}if(o.push(new Yt(0,0),new Yt(Math.round(e.advanceWidth*r),0)),gr(t),o.length-=2,exports.DEBUG){console.log("FINISHED GLYPH",t.stack);for(var m=0;m<a;m++)console.log(m,o[m].x,o[m].y)}}};gr=function(e){var t=e.prog;if(t){var r=t.length,n;for(e.ip=0;e.ip<r;e.ip++){if(exports.DEBUG&&e.step++,n=Ks[t[e.ip]],!n)throw new Error("unknown instruction: 0x"+Number(t[e.ip]).toString(16));n(e)}}};function An(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Yt(0,0)}function il(e,t){var r=e.prog,n=e.ip,i=1,a;do if(a=r[++n],a===88)i++;else if(a===89)i--;else if(a===64)n+=r[n+1]+1;else if(a===65)n+=2*r[n+1]+1;else if(a>=176&&a<=183)n+=a-176+1;else if(a>=184&&a<=191)n+=(a-184+1)*2;else if(t&&i===1&&a===27)break;while(i>0);e.ip=n}function ms(e,t){exports.DEBUG&&console.log(t.step,"SVTCA["+e.axis+"]"),t.fv=t.pv=t.dpv=e}function ys(e,t){exports.DEBUG&&console.log(t.step,"SPVTCA["+e.axis+"]"),t.pv=t.dpv=e}function bs(e,t){exports.DEBUG&&console.log(t.step,"SFVTCA["+e.axis+"]"),t.fv=e}function xs(e,t){var r=t.stack,n=r.pop(),i=r.pop(),a=t.z2[n],o=t.z1[i];exports.DEBUG&&console.log("SPVTL["+e+"]",n,i);var l,s;e?(l=a.y-o.y,s=o.x-a.x):(l=o.x-a.x,s=o.y-a.y),t.pv=t.dpv=Zr(l,s)}function ws(e,t){var r=t.stack,n=r.pop(),i=r.pop(),a=t.z2[n],o=t.z1[i];exports.DEBUG&&console.log("SFVTL["+e+"]",n,i);var l,s;e?(l=a.y-o.y,s=o.x-a.x):(l=o.x-a.x,s=o.y-a.y),t.fv=Zr(l,s)}function yh(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"SPVFS[]",r,n),e.pv=e.dpv=Zr(n,r)}function bh(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"SPVFS[]",r,n),e.fv=Zr(n,r)}function xh(e){var t=e.stack,r=e.pv;exports.DEBUG&&console.log(e.step,"GPV[]"),t.push(r.x*16384),t.push(r.y*16384)}function wh(e){var t=e.stack,r=e.fv;exports.DEBUG&&console.log(e.step,"GFV[]"),t.push(r.x*16384),t.push(r.y*16384)}function Sh(e){e.fv=e.pv,exports.DEBUG&&console.log(e.step,"SFVTPV[]")}function Eh(e){var t=e.stack,r=t.pop(),n=t.pop(),i=t.pop(),a=t.pop(),o=t.pop(),l=e.z0,s=e.z1,u=l[r],f=l[n],c=s[i],p=s[a],h=e.z2[o];exports.DEBUG&&console.log("ISECT[], ",r,n,i,a,o);var m=u.x,d=u.y,g=f.x,b=f.y,x=c.x,_=c.y,L=p.x,T=p.y,E=(m-g)*(_-T)-(d-b)*(x-L),R=m*b-d*g,C=x*T-_*L;h.x=(R*(x-L)-C*(m-g))/E,h.y=(R*(_-T)-C*(d-b))/E}function kh(e){e.rp0=e.stack.pop(),exports.DEBUG&&console.log(e.step,"SRP0[]",e.rp0)}function Th(e){e.rp1=e.stack.pop(),exports.DEBUG&&console.log(e.step,"SRP1[]",e.rp1)}function _h(e){e.rp2=e.stack.pop(),exports.DEBUG&&console.log(e.step,"SRP2[]",e.rp2)}function Lh(e){var t=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"SZP0[]",t),e.zp0=t,t){case 0:e.tZone||An(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error("Invalid zone pointer")}}function Ch(e){var t=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"SZP1[]",t),e.zp1=t,t){case 0:e.tZone||An(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error("Invalid zone pointer")}}function Oh(e){var t=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"SZP2[]",t),e.zp2=t,t){case 0:e.tZone||An(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error("Invalid zone pointer")}}function Ah(e){var t=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"SZPS[]",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||An(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error("Invalid zone pointer")}}function Ih(e){e.loop=e.stack.pop(),exports.DEBUG&&console.log(e.step,"SLOOP[]",e.loop)}function Ph(e){exports.DEBUG&&console.log(e.step,"RTG[]"),e.round=rl}function Rh(e){exports.DEBUG&&console.log(e.step,"RTHG[]"),e.round=dh}function Fh(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SMD[]",t),e.minDis=t/64}function Dh(e){exports.DEBUG&&console.log(e.step,"ELSE[]"),il(e,!1)}function Uh(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"JMPR[]",t),e.ip+=t-1}function Nh(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SCVTCI[]",t),e.cvCutIn=t/64}function Mh(e){var t=e.stack;exports.DEBUG&&console.log(e.step,"DUP[]"),t.push(t[t.length-1])}function Yi(e){exports.DEBUG&&console.log(e.step,"POP[]"),e.stack.pop()}function Wh(e){exports.DEBUG&&console.log(e.step,"CLEAR[]"),e.stack.length=0}function Gh(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"SWAP[]"),t.push(r),t.push(n)}function Bh(e){var t=e.stack;exports.DEBUG&&console.log(e.step,"DEPTH[]"),t.push(t.length)}function $h(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"LOOPCALL[]",r,n);var i=e.ip,a=e.prog;e.prog=e.funcs[r];for(var o=0;o<n;o++)gr(e),exports.DEBUG&&console.log(++e.step,o+1<n?"next loopcall":"done loopcall",o);e.ip=i,e.prog=a}function jh(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"CALL[]",t);var r=e.ip,n=e.prog;e.prog=e.funcs[t],gr(e),e.ip=r,e.prog=n,exports.DEBUG&&console.log(++e.step,"returning from",t)}function zh(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"CINDEX[]",r),t.push(t[t.length-r])}function Vh(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"MINDEX[]",r),t.push(t.splice(t.length-r,1)[0])}function Hh(e){if(e.env!=="fpgm")throw new Error("FDEF not allowed here");var t=e.stack,r=e.prog,n=e.ip,i=t.pop(),a=n;for(exports.DEBUG&&console.log(e.step,"FDEF[]",i);r[++n]!==45;);e.ip=n,e.funcs[i]=r.slice(a+1,n)}function Ss(e,t){var r=t.stack.pop(),n=t.z0[r],i=t.fv,a=t.pv;exports.DEBUG&&console.log(t.step,"MDAP["+e+"]",r);var o=a.distance(n,Vr);e&&(o=t.round(o)),i.setRelative(n,Vr,o,a),i.touch(n),t.rp0=t.rp1=r}function Es(e,t){var r=t.z2,n=r.length-2,i,a,o;exports.DEBUG&&console.log(t.step,"IUP["+e.axis+"]");for(var l=0;l<n;l++)i=r[l],!e.touched(i)&&(a=i.prevTouched(e),a!==i&&(o=i.nextTouched(e),a===o&&e.setRelative(i,i,e.distance(a,a,!1,!0),e,!0),e.interpolate(i,a,o,e)))}function ks(e,t){for(var r=t.stack,n=e?t.rp1:t.rp2,i=(e?t.z0:t.z1)[n],a=t.fv,o=t.pv,l=t.loop,s=t.z2;l--;){var u=r.pop(),f=s[u],c=o.distance(i,i,!1,!0);a.setRelative(f,f,c,o),a.touch(f),exports.DEBUG&&console.log(t.step,(t.loop>1?"loop "+(t.loop-l)+": ":"")+"SHP["+(e?"rp1":"rp2")+"]",u)}t.loop=1}function Ts(e,t){var r=t.stack,n=e?t.rp1:t.rp2,i=(e?t.z0:t.z1)[n],a=t.fv,o=t.pv,l=r.pop(),s=t.z2[t.contours[l]],u=s;exports.DEBUG&&console.log(t.step,"SHC["+e+"]",l);var f=o.distance(i,i,!1,!0);do u!==i&&a.setRelative(u,u,f,o),u=u.nextPointOnContour;while(u!==s)}function _s(e,t){var r=t.stack,n=e?t.rp1:t.rp2,i=(e?t.z0:t.z1)[n],a=t.fv,o=t.pv,l=r.pop();exports.DEBUG&&console.log(t.step,"SHZ["+e+"]",l);var s;switch(l){case 0:s=t.tZone;break;case 1:s=t.gZone;break;default:throw new Error("Invalid zone")}for(var u,f=o.distance(i,i,!1,!0),c=s.length-2,p=0;p<c;p++)u=s[p],a.setRelative(u,u,f,o)}function Xh(e){for(var t=e.stack,r=e.loop,n=e.fv,i=t.pop()/64,a=e.z2;r--;){var o=t.pop(),l=a[o];exports.DEBUG&&console.log(e.step,(e.loop>1?"loop "+(e.loop-r)+": ":"")+"SHPIX[]",o,i),n.setRelative(l,l,i),n.touch(l)}e.loop=1}function qh(e){for(var t=e.stack,r=e.rp1,n=e.rp2,i=e.loop,a=e.z0[r],o=e.z1[n],l=e.fv,s=e.dpv,u=e.z2;i--;){var f=t.pop(),c=u[f];exports.DEBUG&&console.log(e.step,(e.loop>1?"loop "+(e.loop-i)+": ":"")+"IP[]",f,r,"<->",n),l.interpolate(c,a,o,s),l.touch(c)}e.loop=1}function Ls(e,t){var r=t.stack,n=r.pop()/64,i=r.pop(),a=t.z1[i],o=t.z0[t.rp0],l=t.fv,s=t.pv;l.setRelative(a,o,n,s),l.touch(a),exports.DEBUG&&console.log(t.step,"MSIRP["+e+"]",n,i),t.rp1=t.rp0,t.rp2=i,e&&(t.rp0=i)}function Yh(e){for(var t=e.stack,r=e.rp0,n=e.z0[r],i=e.loop,a=e.fv,o=e.pv,l=e.z1;i--;){var s=t.pop(),u=l[s];exports.DEBUG&&console.log(e.step,(e.loop>1?"loop "+(e.loop-i)+": ":"")+"ALIGNRP[]",s),a.setRelative(u,n,0,o),a.touch(u)}e.loop=1}function Zh(e){exports.DEBUG&&console.log(e.step,"RTDG[]"),e.round=hh}function Cs(e,t){var r=t.stack,n=r.pop(),i=r.pop(),a=t.z0[i],o=t.fv,l=t.pv,s=t.cvt[n];exports.DEBUG&&console.log(t.step,"MIAP["+e+"]",n,"(",s,")",i);var u=l.distance(a,Vr);e&&(Math.abs(u-s)<t.cvCutIn&&(u=s),u=t.round(u)),o.setRelative(a,Vr,u,l),t.zp0===0&&(a.xo=a.x,a.yo=a.y),o.touch(a),t.rp0=t.rp1=i}function Jh(e){var t=e.prog,r=e.ip,n=e.stack,i=t[++r];exports.DEBUG&&console.log(e.step,"NPUSHB[]",i);for(var a=0;a<i;a++)n.push(t[++r]);e.ip=r}function Qh(e){var t=e.ip,r=e.prog,n=e.stack,i=r[++t];exports.DEBUG&&console.log(e.step,"NPUSHW[]",i);for(var a=0;a<i;a++){var o=r[++t]<<8|r[++t];o&32768&&(o=-((o^65535)+1)),n.push(o)}e.ip=t}function Kh(e){var t=e.stack,r=e.store;r||(r=e.store=[]);var n=t.pop(),i=t.pop();exports.DEBUG&&console.log(e.step,"WS",n,i),r[i]=n}function ed(e){var t=e.stack,r=e.store,n=t.pop();exports.DEBUG&&console.log(e.step,"RS",n);var i=r&&r[n]||0;t.push(i)}function td(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"WCVTP",r,n),e.cvt[n]=r/64}function rd(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"RCVT",r),t.push(e.cvt[r]*64)}function Os(e,t){var r=t.stack,n=r.pop(),i=t.z2[n];exports.DEBUG&&console.log(t.step,"GC["+e+"]",n),r.push(t.dpv.distance(i,Vr,e,!1)*64)}function As(e,t){var r=t.stack,n=r.pop(),i=r.pop(),a=t.z1[n],o=t.z0[i],l=t.dpv.distance(o,a,e,e);exports.DEBUG&&console.log(t.step,"MD["+e+"]",n,i,"->",l),t.stack.push(Math.round(l*64))}function nd(e){exports.DEBUG&&console.log(e.step,"MPPEM[]"),e.stack.push(e.ppem)}function id(e){exports.DEBUG&&console.log(e.step,"FLIPON[]"),e.autoFlip=!0}function ad(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"LT[]",r,n),t.push(n<r?1:0)}function od(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"LTEQ[]",r,n),t.push(n<=r?1:0)}function sd(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"GT[]",r,n),t.push(n>r?1:0)}function ld(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"GTEQ[]",r,n),t.push(n>=r?1:0)}function ud(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"EQ[]",r,n),t.push(r===n?1:0)}function fd(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"NEQ[]",r,n),t.push(r!==n?1:0)}function cd(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"ODD[]",r),t.push(Math.trunc(r)%2?1:0)}function pd(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"EVEN[]",r),t.push(Math.trunc(r)%2?0:1)}function hd(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"IF[]",t),t||(il(e,!0),exports.DEBUG&&console.log(e.step,"EIF[]"))}function dd(e){exports.DEBUG&&console.log(e.step,"EIF[]")}function vd(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"AND[]",r,n),t.push(r&&n?1:0)}function gd(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"OR[]",r,n),t.push(r||n?1:0)}function md(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"NOT[]",r),t.push(r?0:1)}function Zi(e,t){var r=t.stack,n=r.pop(),i=t.fv,a=t.pv,o=t.ppem,l=t.deltaBase+(e-1)*16,s=t.deltaShift,u=t.z0;exports.DEBUG&&console.log(t.step,"DELTAP["+e+"]",n,r);for(var f=0;f<n;f++){var c=r.pop(),p=r.pop(),h=l+((p&240)>>4);if(h===o){var m=(p&15)-8;m>=0&&m++,exports.DEBUG&&console.log(t.step,"DELTAPFIX",c,"by",m*s);var d=u[c];i.setRelative(d,d,m*s,a)}}}function yd(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"SDB[]",r),e.deltaBase=r}function bd(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"SDS[]",r),e.deltaShift=Math.pow(.5,r)}function xd(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"ADD[]",r,n),t.push(n+r)}function wd(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"SUB[]",r,n),t.push(n-r)}function Sd(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"DIV[]",r,n),t.push(n*64/r)}function Ed(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"MUL[]",r,n),t.push(n*r/64)}function kd(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"ABS[]",r),t.push(Math.abs(r))}function Td(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"NEG[]",r),t.push(-r)}function _d(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"FLOOR[]",r),t.push(Math.floor(r/64)*64)}function Ld(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"CEILING[]",r),t.push(Math.ceil(r/64)*64)}function _n(e,t){var r=t.stack,n=r.pop();exports.DEBUG&&console.log(t.step,"ROUND[]"),r.push(t.round(n/64)*64)}function Cd(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"WCVTF[]",r,n),e.cvt[n]=r*e.ppem/e.font.unitsPerEm}function Ji(e,t){var r=t.stack,n=r.pop(),i=t.ppem,a=t.deltaBase+(e-1)*16,o=t.deltaShift;exports.DEBUG&&console.log(t.step,"DELTAC["+e+"]",n,r);for(var l=0;l<n;l++){var s=r.pop(),u=r.pop(),f=a+((u&240)>>4);if(f===i){var c=(u&15)-8;c>=0&&c++;var p=c*o;exports.DEBUG&&console.log(t.step,"DELTACFIX",s,"by",p),t.cvt[s]+=p}}}function Od(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SROUND[]",t),e.round=nl;var r;switch(t&192){case 0:r=.5;break;case 64:r=1;break;case 128:r=2;break;default:throw new Error("invalid SROUND value")}switch(e.srPeriod=r,t&48){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*r;break;case 32:e.srPhase=.5*r;break;case 48:e.srPhase=.75*r;break;default:throw new Error("invalid SROUND value")}t&=15,t===0?e.srThreshold=0:e.srThreshold=(t/8-.5)*r}function Ad(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"S45ROUND[]",t),e.round=nl;var r;switch(t&192){case 0:r=Math.sqrt(2)/2;break;case 64:r=Math.sqrt(2);break;case 128:r=2*Math.sqrt(2);break;default:throw new Error("invalid S45ROUND value")}switch(e.srPeriod=r,t&48){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*r;break;case 32:e.srPhase=.5*r;break;case 48:e.srPhase=.75*r;break;default:throw new Error("invalid S45ROUND value")}t&=15,t===0?e.srThreshold=0:e.srThreshold=(t/8-.5)*r}function Id(e){exports.DEBUG&&console.log(e.step,"ROFF[]"),e.round=ph}function Pd(e){exports.DEBUG&&console.log(e.step,"RUTG[]"),e.round=vh}function Rd(e){exports.DEBUG&&console.log(e.step,"RDTG[]"),e.round=gh}function Fd(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SCANCTRL[]",t)}function Is(e,t){var r=t.stack,n=r.pop(),i=r.pop(),a=t.z2[n],o=t.z1[i];exports.DEBUG&&console.log(t.step,"SDPVTL["+e+"]",n,i);var l,s;e?(l=a.y-o.y,s=o.x-a.x):(l=o.x-a.x,s=o.y-a.y),t.dpv=Zr(l,s)}function Dd(e){var t=e.stack,r=t.pop(),n=0;exports.DEBUG&&console.log(e.step,"GETINFO[]",r),r&1&&(n=35),r&32&&(n|=4096),t.push(n)}function Ud(e){var t=e.stack,r=t.pop(),n=t.pop(),i=t.pop();exports.DEBUG&&console.log(e.step,"ROLL[]"),t.push(n),t.push(r),t.push(i)}function Nd(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"MAX[]",r,n),t.push(Math.max(n,r))}function Md(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"MIN[]",r,n),t.push(Math.min(n,r))}function Wd(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SCANTYPE[]",t)}function Gd(e){var t=e.stack.pop(),r=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"INSTCTRL[]",t,r),t){case 1:e.inhibitGridFit=!!r;return;case 2:e.ignoreCvt=!!r;return;default:throw new Error("invalid INSTCTRL[] selector")}}function er(e,t){var r=t.stack,n=t.prog,i=t.ip;exports.DEBUG&&console.log(t.step,"PUSHB["+e+"]");for(var a=0;a<e;a++)r.push(n[++i]);t.ip=i}function tr(e,t){var r=t.ip,n=t.prog,i=t.stack;exports.DEBUG&&console.log(t.ip,"PUSHW["+e+"]");for(var a=0;a<e;a++){var o=n[++r]<<8|n[++r];o&32768&&(o=-((o^65535)+1)),i.push(o)}t.ip=r}function oe(e,t,r,n,i,a){var o=a.stack,l=e&&o.pop(),s=o.pop(),u=a.rp0,f=a.z0[u],c=a.z1[s],p=a.minDis,h=a.fv,m=a.dpv,d,g,b,x;g=d=m.distance(c,f,!0,!0),b=g>=0?1:-1,g=Math.abs(g),e&&(x=a.cvt[l],n&&Math.abs(g-x)<a.cvCutIn&&(g=x)),r&&g<p&&(g=p),n&&(g=a.round(g)),h.setRelative(c,f,b*g,m),h.touch(c),exports.DEBUG&&console.log(a.step,(e?"MIRP[":"MDRP[")+(t?"M":"m")+(r?">":"_")+(n?"R":"_")+(i===0?"Gr":i===1?"Bl":i===2?"Wh":"")+"]",e?l+"("+a.cvt[l]+","+x+")":"",s,"(d =",d,"->",b*g,")"),a.rp1=a.rp0,a.rp2=s,t&&(a.rp0=s)}Ks=[ms.bind(void 0,qt),ms.bind(void 0,Gt),ys.bind(void 0,qt),ys.bind(void 0,Gt),bs.bind(void 0,qt),bs.bind(void 0,Gt),xs.bind(void 0,0),xs.bind(void 0,1),ws.bind(void 0,0),ws.bind(void 0,1),yh,bh,xh,wh,Sh,Eh,kh,Th,_h,Lh,Ch,Oh,Ah,Ih,Ph,Rh,Fh,Dh,Uh,Nh,void 0,void 0,Mh,Yi,Wh,Gh,Bh,zh,Vh,void 0,void 0,void 0,$h,jh,Hh,void 0,Ss.bind(void 0,0),Ss.bind(void 0,1),Es.bind(void 0,qt),Es.bind(void 0,Gt),ks.bind(void 0,0),ks.bind(void 0,1),Ts.bind(void 0,0),Ts.bind(void 0,1),_s.bind(void 0,0),_s.bind(void 0,1),Xh,qh,Ls.bind(void 0,0),Ls.bind(void 0,1),Yh,Zh,Cs.bind(void 0,0),Cs.bind(void 0,1),Jh,Qh,Kh,ed,td,rd,Os.bind(void 0,0),Os.bind(void 0,1),void 0,As.bind(void 0,0),As.bind(void 0,1),nd,void 0,id,void 0,void 0,ad,od,sd,ld,ud,fd,cd,pd,hd,dd,vd,gd,md,Zi.bind(void 0,1),yd,bd,xd,wd,Sd,Ed,kd,Td,_d,Ld,_n.bind(void 0,0),_n.bind(void 0,1),_n.bind(void 0,2),_n.bind(void 0,3),void 0,void 0,void 0,void 0,Cd,Zi.bind(void 0,2),Zi.bind(void 0,3),Ji.bind(void 0,1),Ji.bind(void 0,2),Ji.bind(void 0,3),Od,Ad,void 0,void 0,Id,void 0,Pd,Rd,Yi,Yi,void 0,void 0,void 0,void 0,void 0,Fd,Is.bind(void 0,0),Is.bind(void 0,1),Dd,void 0,Ud,Nd,Md,Wd,Gd,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,er.bind(void 0,1),er.bind(void 0,2),er.bind(void 0,3),er.bind(void 0,4),er.bind(void 0,5),er.bind(void 0,6),er.bind(void 0,7),er.bind(void 0,8),tr.bind(void 0,1),tr.bind(void 0,2),tr.bind(void 0,3),tr.bind(void 0,4),tr.bind(void 0,5),tr.bind(void 0,6),tr.bind(void 0,7),tr.bind(void 0,8),oe.bind(void 0,0,0,0,0,0),oe.bind(void 0,0,0,0,0,1),oe.bind(void 0,0,0,0,0,2),oe.bind(void 0,0,0,0,0,3),oe.bind(void 0,0,0,0,1,0),oe.bind(void 0,0,0,0,1,1),oe.bind(void 0,0,0,0,1,2),oe.bind(void 0,0,0,0,1,3),oe.bind(void 0,0,0,1,0,0),oe.bind(void 0,0,0,1,0,1),oe.bind(void 0,0,0,1,0,2),oe.bind(void 0,0,0,1,0,3),oe.bind(void 0,0,0,1,1,0),oe.bind(void 0,0,0,1,1,1),oe.bind(void 0,0,0,1,1,2),oe.bind(void 0,0,0,1,1,3),oe.bind(void 0,0,1,0,0,0),oe.bind(void 0,0,1,0,0,1),oe.bind(void 0,0,1,0,0,2),oe.bind(void 0,0,1,0,0,3),oe.bind(void 0,0,1,0,1,0),oe.bind(void 0,0,1,0,1,1),oe.bind(void 0,0,1,0,1,2),oe.bind(void 0,0,1,0,1,3),oe.bind(void 0,0,1,1,0,0),oe.bind(void 0,0,1,1,0,1),oe.bind(void 0,0,1,1,0,2),oe.bind(void 0,0,1,1,0,3),oe.bind(void 0,0,1,1,1,0),oe.bind(void 0,0,1,1,1,1),oe.bind(void 0,0,1,1,1,2),oe.bind(void 0,0,1,1,1,3),oe.bind(void 0,1,0,0,0,0),oe.bind(void 0,1,0,0,0,1),oe.bind(void 0,1,0,0,0,2),oe.bind(void 0,1,0,0,0,3),oe.bind(void 0,1,0,0,1,0),oe.bind(void 0,1,0,0,1,1),oe.bind(void 0,1,0,0,1,2),oe.bind(void 0,1,0,0,1,3),oe.bind(void 0,1,0,1,0,0),oe.bind(void 0,1,0,1,0,1),oe.bind(void 0,1,0,1,0,2),oe.bind(void 0,1,0,1,0,3),oe.bind(void 0,1,0,1,1,0),oe.bind(void 0,1,0,1,1,1),oe.bind(void 0,1,0,1,1,2),oe.bind(void 0,1,0,1,1,3),oe.bind(void 0,1,1,0,0,0),oe.bind(void 0,1,1,0,0,1),oe.bind(void 0,1,1,0,0,2),oe.bind(void 0,1,1,0,0,3),oe.bind(void 0,1,1,0,1,0),oe.bind(void 0,1,1,0,1,1),oe.bind(void 0,1,1,0,1,2),oe.bind(void 0,1,1,0,1,3),oe.bind(void 0,1,1,1,0,0),oe.bind(void 0,1,1,1,0,1),oe.bind(void 0,1,1,1,0,2),oe.bind(void 0,1,1,1,0,3),oe.bind(void 0,1,1,1,1,0),oe.bind(void 0,1,1,1,1,1),oe.bind(void 0,1,1,1,1,2),oe.bind(void 0,1,1,1,1,3)];function Rr(e){this.char=e,this.state={},this.activeState=null}function oa(e,t,r){this.contextName=r,this.startIndex=e,this.endOffset=t}function Bd(e,t,r){this.contextName=e,this.openRange=null,this.ranges=[],this.checkStart=t,this.checkEnd=r}function Lt(e,t){this.context=e,this.index=t,this.length=e.length,this.current=e[t],this.backtrack=e.slice(0,t),this.lookahead=e.slice(t+1)}function In(e){this.eventId=e,this.subscribers=[]}function $d(e){var t=this,r=["start","end","next","newToken","contextStart","contextEnd","insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD","updateContextsRanges"];r.forEach(function(i){Object.defineProperty(t.events,i,{value:new In(i)})}),e&&r.forEach(function(i){var a=e[i];typeof a=="function"&&t.events[i].subscribe(a)});var n=["insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD"];n.forEach(function(i){t.events[i].subscribe(t.updateContextsRanges)})}function Me(e){this.tokens=[],this.registeredContexts={},this.contextCheckers=[],this.events={},this.registeredModifiers=[],$d.call(this,e)}Rr.prototype.setState=function(e,t){return this.state[e]=t,this.activeState={key:e,value:this.state[e]},this.activeState};Rr.prototype.getState=function(e){return this.state[e]||null};Me.prototype.inboundIndex=function(e){return e>=0&&e<this.tokens.length};Me.prototype.composeRUD=function(e){var t=this,r=!0,n=e.map(function(a){return t[a[0]].apply(t,a.slice(1).concat(r))}),i=function(a){return typeof a=="object"&&a.hasOwnProperty("FAIL")};if(n.every(i))return{FAIL:"composeRUD: one or more operations hasn't completed successfully",report:n.filter(i)};this.dispatch("composeRUD",[n.filter(function(a){return!i(a)})])};Me.prototype.replaceRange=function(e,t,r,n){t=t!==null?t:this.tokens.length;var i=r.every(function(o){return o instanceof Rr});if(!isNaN(e)&&this.inboundIndex(e)&&i){var a=this.tokens.splice.apply(this.tokens,[e,t].concat(r));return n||this.dispatch("replaceToken",[e,t,r]),[a,r]}else return{FAIL:"replaceRange: invalid tokens or startIndex."}};Me.prototype.replaceToken=function(e,t,r){if(!isNaN(e)&&this.inboundIndex(e)&&t instanceof Rr){var n=this.tokens.splice(e,1,t);return r||this.dispatch("replaceToken",[e,t]),[n[0],t]}else return{FAIL:"replaceToken: invalid token or index."}};Me.prototype.removeRange=function(e,t,r){t=isNaN(t)?this.tokens.length:t;var n=this.tokens.splice(e,t);return r||this.dispatch("removeRange",[n,e,t]),n};Me.prototype.removeToken=function(e,t){if(!isNaN(e)&&this.inboundIndex(e)){var r=this.tokens.splice(e,1);return t||this.dispatch("removeToken",[r,e]),r}else return{FAIL:"removeToken: invalid token index."}};Me.prototype.insertToken=function(e,t,r){var n=e.every(function(i){return i instanceof Rr});return n?(this.tokens.splice.apply(this.tokens,[t,0].concat(e)),r||this.dispatch("insertToken",[e,t]),e):{FAIL:"insertToken: invalid token(s)."}};Me.prototype.registerModifier=function(e,t,r){this.events.newToken.subscribe(function(n,i){var a=[n,i],o=t===null||t.apply(this,a)===!0,l=[n,i];if(o){var s=r.apply(this,l);n.setState(e,s)}}),this.registeredModifiers.push(e)};In.prototype.subscribe=function(e){return typeof e=="function"?this.subscribers.push(e)-1:{FAIL:"invalid '"+this.eventId+"' event handler"}};In.prototype.unsubscribe=function(e){this.subscribers.splice(e,1)};Lt.prototype.setCurrentIndex=function(e){this.index=e,this.current=this.context[e],this.backtrack=this.context.slice(0,e),this.lookahead=this.context.slice(e+1)};Lt.prototype.get=function(e){switch(!0){case e===0:return this.current;case(e<0&&Math.abs(e)<=this.backtrack.length):return this.backtrack.slice(e)[0];case(e>0&&e<=this.lookahead.length):return this.lookahead[e-1];default:return null}};Me.prototype.rangeToText=function(e){if(e instanceof oa)return this.getRangeTokens(e).map(function(t){return t.char}).join("")};Me.prototype.getText=function(){return this.tokens.map(function(e){return e.char}).join("")};Me.prototype.getContext=function(e){var t=this.registeredContexts[e];return t||null};Me.prototype.on=function(e,t){var r=this.events[e];return r?r.subscribe(t):null};Me.prototype.dispatch=function(e,t){var r=this,n=this.events[e];n instanceof In&&n.subscribers.forEach(function(i){i.apply(r,t||[])})};Me.prototype.registerContextChecker=function(e,t,r){if(this.getContext(e))return{FAIL:"context name '"+e+"' is already registered."};if(typeof t!="function")return{FAIL:"missing context start check."};if(typeof r!="function")return{FAIL:"missing context end check."};var n=new Bd(e,t,r);return this.registeredContexts[e]=n,this.contextCheckers.push(n),n};Me.prototype.getRangeTokens=function(e){var t=e.startIndex+e.endOffset;return[].concat(this.tokens.slice(e.startIndex,t))};Me.prototype.getContextRanges=function(e){var t=this.getContext(e);return t?t.ranges:{FAIL:"context checker '"+e+"' is not registered."}};Me.prototype.resetContextsRanges=function(){var e=this.registeredContexts;for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];r.ranges=[]}};Me.prototype.updateContextsRanges=function(){this.resetContextsRanges();for(var e=this.tokens.map(function(n){return n.char}),t=0;t<e.length;t++){var r=new Lt(e,t);this.runContextCheck(r)}this.dispatch("updateContextsRanges",[this.registeredContexts])};Me.prototype.setEndOffset=function(e,t){var r=this.getContext(t).openRange.startIndex,n=new oa(r,e,t),i=this.getContext(t).ranges;return n.rangeId=t+"."+i.length,i.push(n),this.getContext(t).openRange=null,n};Me.prototype.runContextCheck=function(e){var t=this,r=e.index;this.contextCheckers.forEach(function(n){var i=n.contextName,a=t.getContext(i).openRange;if(!a&&n.checkStart(e)&&(a=new oa(r,null,i),t.getContext(i).openRange=a,t.dispatch("contextStart",[i,r])),a&&n.checkEnd(e)){var o=r-a.startIndex+1,l=t.setEndOffset(o,i);t.dispatch("contextEnd",[i,l])}})};Me.prototype.tokenize=function(e){this.tokens=[],this.resetContextsRanges();var t=Array.from(e);this.dispatch("start");for(var r=0;r<t.length;r++){var n=t[r],i=new Lt(t,r);this.dispatch("next",[i]),this.runContextCheck(i);var a=new Rr(n);this.tokens.push(a),this.dispatch("newToken",[a,i])}return this.dispatch("end",[this.tokens]),this.tokens};function ar(e){return/[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(e)}function al(e){return/[\u0630\u0690\u0621\u0631\u0661\u0671\u0622\u0632\u0672\u0692\u06C2\u0623\u0673\u0693\u06C3\u0624\u0694\u06C4\u0625\u0675\u0695\u06C5\u06E5\u0676\u0696\u06C6\u0627\u0677\u0697\u06C7\u0648\u0688\u0698\u06C8\u0689\u0699\u06C9\u068A\u06CA\u066B\u068B\u06CB\u068C\u068D\u06CD\u06FD\u068E\u06EE\u06FE\u062F\u068F\u06CF\u06EF]/.test(e)}function or(e){return/[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(e)}function Ln(e){return/[A-z]/.test(e)}function jd(e){return/\s/.test(e)}function vt(e){this.font=e,this.features={}}function dr(e){this.id=e.id,this.tag=e.tag,this.substitution=e.substitution}function Jr(e,t){if(!e)return-1;switch(t.format){case 1:return t.glyphs.indexOf(e);case 2:for(var r=t.ranges,n=0;n<r.length;n++){var i=r[n];if(e>=i.start&&e<=i.end){var a=e-i.start;return i.index+a}}break;default:return-1}return-1}function zd(e,t){var r=Jr(e,t.coverage);return r===-1?null:e+t.deltaGlyphId}function Vd(e,t){var r=Jr(e,t.coverage);return r===-1?null:t.substitute[r]}function Qi(e,t){for(var r=[],n=0;n<e.length;n++){var i=e[n],a=t.current;a=Array.isArray(a)?a[0]:a;var o=Jr(a,i);o!==-1&&r.push(o)}return r.length!==e.length?-1:r}function Hd(e,t){var r=t.inputCoverage.length+t.lookaheadCoverage.length+t.backtrackCoverage.length;if(e.context.length<r)return[];var n=Qi(t.inputCoverage,e);if(n===-1)return[];var i=t.inputCoverage.length-1;if(e.lookahead.length<t.lookaheadCoverage.length)return[];for(var a=e.lookahead.slice(i);a.length&&or(a[0].char);)a.shift();var o=new Lt(a,0),l=Qi(t.lookaheadCoverage,o),s=[].concat(e.backtrack);for(s.reverse();s.length&&or(s[0].char);)s.shift();if(s.length<t.backtrackCoverage.length)return[];var u=new Lt(s,0),f=Qi(t.backtrackCoverage,u),c=n.length===t.inputCoverage.length&&l.length===t.lookaheadCoverage.length&&f.length===t.backtrackCoverage.length,p=[];if(c)for(var h=0;h<t.lookupRecords.length;h++)for(var m=t.lookupRecords[h],d=m.lookupListIndex,g=this.getLookupByIndex(d),b=0;b<g.subtables.length;b++){var x=g.subtables[b],_=this.getLookupMethod(g,x),L=this.getSubstitutionType(g,x);if(L==="12")for(var T=0;T<n.length;T++){var E=e.get(T),R=_(E);R&&p.push(R)}}return p}function Xd(e,t){var r=e.current,n=Jr(r,t.coverage);if(n===-1)return null;for(var i,a=t.ligatureSets[n],o=0;o<a.length;o++){i=a[o];for(var l=0;l<i.components.length;l++){var s=e.lookahead[l],u=i.components[l];if(s!==u)break;if(l===i.components.length-1)return i}}return null}function qd(e,t){var r=Jr(e,t.coverage);return r===-1?null:t.sequences[r]}vt.prototype.getDefaultScriptFeaturesIndexes=function(){for(var e=this.font.tables.gsub.scripts,t=0;t<e.length;t++){var r=e[t];if(r.tag==="DFLT")return r.script.defaultLangSys.featureIndexes}return[]};vt.prototype.getScriptFeaturesIndexes=function(e){var t=this.font.tables;if(!t.gsub)return[];if(!e)return this.getDefaultScriptFeaturesIndexes();for(var r=this.font.tables.gsub.scripts,n=0;n<r.length;n++){var i=r[n];if(i.tag===e&&i.script.defaultLangSys)return i.script.defaultLangSys.featureIndexes;var a=i.langSysRecords;if(a)for(var o=0;o<a.length;o++){var l=a[o];if(l.tag===e){var s=l.langSys;return s.featureIndexes}}}return this.getDefaultScriptFeaturesIndexes()};vt.prototype.mapTagsToFeatures=function(e,t){for(var r={},n=0;n<e.length;n++){var i=e[n].tag,a=e[n].feature;r[i]=a}this.features[t].tags=r};vt.prototype.getScriptFeatures=function(e){var t=this.features[e];if(this.features.hasOwnProperty(e))return t;var r=this.getScriptFeaturesIndexes(e);if(!r)return null;var n=this.font.tables.gsub;return t=r.map(function(i){return n.features[i]}),this.features[e]=t,this.mapTagsToFeatures(t,e),t};vt.prototype.getSubstitutionType=function(e,t){var r=e.lookupType.toString(),n=t.substFormat.toString();return r+n};vt.prototype.getLookupMethod=function(e,t){var r=this,n=this.getSubstitutionType(e,t);switch(n){case"11":return function(i){return zd.apply(r,[i,t])};case"12":return function(i){return Vd.apply(r,[i,t])};case"63":return function(i){return Hd.apply(r,[i,t])};case"41":return function(i){return Xd.apply(r,[i,t])};case"21":return function(i){return qd.apply(r,[i,t])};default:throw new Error("lookupType: "+e.lookupType+" - substFormat: "+t.substFormat+" is not yet supported")}};vt.prototype.lookupFeature=function(e){var t=e.contextParams,r=t.index,n=this.getFeature({tag:e.tag,script:e.script});if(!n)return new Error("font '"+this.font.names.fullName.en+"' doesn't support feature '"+e.tag+"' for script '"+e.script+"'.");for(var i=this.getFeatureLookups(n),a=[].concat(t.context),o=0;o<i.length;o++)for(var l=i[o],s=this.getLookupSubtables(l),u=0;u<s.length;u++){var f=s[u],c=this.getSubstitutionType(l,f),p=this.getLookupMethod(l,f),h=void 0;switch(c){case"11":h=p(t.current),h&&a.splice(r,1,new dr({id:11,tag:e.tag,substitution:h}));break;case"12":h=p(t.current),h&&a.splice(r,1,new dr({id:12,tag:e.tag,substitution:h}));break;case"63":h=p(t),Array.isArray(h)&&h.length&&a.splice(r,1,new dr({id:63,tag:e.tag,substitution:h}));break;case"41":h=p(t),h&&a.splice(r,1,new dr({id:41,tag:e.tag,substitution:h}));break;case"21":h=p(t.current),h&&a.splice(r,1,new dr({id:21,tag:e.tag,substitution:h}));break}t=new Lt(a,r),!(Array.isArray(h)&&!h.length)&&(h=null)}return a.length?a:null};vt.prototype.supports=function(e){if(!e.script)return!1;this.getScriptFeatures(e.script);var t=this.features.hasOwnProperty(e.script);if(!e.tag)return t;var r=this.features[e.script].some(function(n){return n.tag===e.tag});return t&&r};vt.prototype.getLookupSubtables=function(e){return e.subtables||null};vt.prototype.getLookupByIndex=function(e){var t=this.font.tables.gsub.lookups;return t[e]||null};vt.prototype.getFeatureLookups=function(e){return e.lookupListIndexes.map(this.getLookupByIndex.bind(this))};vt.prototype.getFeature=function(t){if(!this.font)return{FAIL:"No font was found"};this.features.hasOwnProperty(t.script)||this.getScriptFeatures(t.script);var r=this.features[t.script];return r?r.tags[t.tag]?this.features[t.script].tags[t.tag]:null:{FAIL:"No feature for script "+t.script}};function Yd(e){var t=e.current,r=e.get(-1);return r===null&&ar(t)||!ar(r)&&ar(t)}function Zd(e){var t=e.get(1);return t===null||!ar(t)}var Jd={startCheck:Yd,endCheck:Zd};function Qd(e){var t=e.current,r=e.get(-1);return(ar(t)||or(t))&&!ar(r)}function Kd(e){var t=e.get(1);switch(!0){case t===null:return!0;case(!ar(t)&&!or(t)):var r=jd(t);if(!r)return!0;if(r){var n=!1;if(n=e.lookahead.some(function(i){return ar(i)||or(i)}),!n)return!0}break;default:return!1}}var e0={startCheck:Qd,endCheck:Kd};function t0(e,t,r){t[r].setState(e.tag,e.substitution)}function r0(e,t,r){t[r].setState(e.tag,e.substitution)}function n0(e,t,r){e.substitution.forEach(function(n,i){var a=t[r+i];a.setState(e.tag,n)})}function i0(e,t,r){var n=t[r];n.setState(e.tag,e.substitution.ligGlyph);for(var i=e.substitution.components.length,a=0;a<i;a++)n=t[r+a+1],n.setState("deleted",!0)}var Ps={11:t0,12:r0,63:n0,41:i0};function sa(e,t,r){e instanceof dr&&Ps[e.id]&&Ps[e.id](e,t,r)}function a0(e){for(var t=[].concat(e.backtrack),r=t.length-1;r>=0;r--){var n=t[r],i=al(n),a=or(n);if(!i&&!a)return!0;if(i)return!1}return!1}function o0(e){if(al(e.current))return!1;for(var t=0;t<e.lookahead.length;t++){var r=e.lookahead[t],n=or(r);if(!n)return!0}return!1}function s0(e){var t=this,r="arab",n=this.featuresTags[r],i=this.tokenizer.getRangeTokens(e);if(i.length!==1){var a=new Lt(i.map(function(l){return l.getState("glyphIndex")}),0),o=new Lt(i.map(function(l){return l.char}),0);i.forEach(function(l,s){if(!or(l.char)){a.setCurrentIndex(s),o.setCurrentIndex(s);var u=0;a0(o)&&(u|=1),o0(o)&&(u|=2);var f;switch(u){case 1:f="fina";break;case 2:f="init";break;case 3:f="medi";break}if(n.indexOf(f)!==-1){var c=t.query.lookupFeature({tag:f,script:r,contextParams:a});if(c instanceof Error)return console.info(c.message);c.forEach(function(p,h){p instanceof dr&&(sa(p,i,h),a.context[h]=p.substitution)})}}})}}function Rs(e,t){var r=e.map(function(n){return n.activeState.value});return new Lt(r,t||0)}function l0(e){var t=this,r="arab",n=this.tokenizer.getRangeTokens(e),i=Rs(n);i.context.forEach(function(a,o){i.setCurrentIndex(o);var l=t.query.lookupFeature({tag:"rlig",script:r,contextParams:i});l.length&&(l.forEach(function(s){return sa(s,n,o)}),i=Rs(n))})}function u0(e){var t=e.current,r=e.get(-1);return r===null&&Ln(t)||!Ln(r)&&Ln(t)}function f0(e){var t=e.get(1);return t===null||!Ln(t)}var c0={startCheck:u0,endCheck:f0};function Fs(e,t){var r=e.map(function(n){return n.activeState.value});return new Lt(r,t||0)}function p0(e){var t=this,r="latn",n=this.tokenizer.getRangeTokens(e),i=Fs(n);i.context.forEach(function(a,o){i.setCurrentIndex(o);var l=t.query.lookupFeature({tag:"liga",script:r,contextParams:i});l.length&&(l.forEach(function(s){return sa(s,n,o)}),i=Fs(n))})}function At(e){this.baseDir=e||"ltr",this.tokenizer=new Me,this.featuresTags={}}At.prototype.setText=function(e){this.text=e};At.prototype.contextChecks={latinWordCheck:c0,arabicWordCheck:Jd,arabicSentenceCheck:e0};function Ki(e){var t=this.contextChecks[e+"Check"];return this.tokenizer.registerContextChecker(e,t.startCheck,t.endCheck)}function h0(){return Ki.call(this,"latinWord"),Ki.call(this,"arabicWord"),Ki.call(this,"arabicSentence"),this.tokenizer.tokenize(this.text)}function d0(){var e=this,t=this.tokenizer.getContextRanges("arabicSentence");t.forEach(function(r){var n=e.tokenizer.getRangeTokens(r);e.tokenizer.replaceRange(r.startIndex,r.endOffset,n.reverse())})}At.prototype.registerFeatures=function(e,t){var r=this,n=t.filter(function(i){return r.query.supports({script:e,tag:i})});this.featuresTags.hasOwnProperty(e)?this.featuresTags[e]=this.featuresTags[e].concat(n):this.featuresTags[e]=n};At.prototype.applyFeatures=function(e,t){if(!e)throw new Error("No valid font was provided to apply features");this.query||(this.query=new vt(e));for(var r=0;r<t.length;r++){var n=t[r];this.query.supports({script:n.script})&&this.registerFeatures(n.script,n.tags)}};At.prototype.registerModifier=function(e,t,r){this.tokenizer.registerModifier(e,t,r)};function la(){if(this.tokenizer.registeredModifiers.indexOf("glyphIndex")===-1)throw new Error("glyphIndex modifier is required to apply arabic presentation features.")}function v0(){var e=this,t="arab";if(this.featuresTags.hasOwnProperty(t)){la.call(this);var r=this.tokenizer.getContextRanges("arabicWord");r.forEach(function(n){s0.call(e,n)})}}function g0(){var e=this,t="arab";if(this.featuresTags.hasOwnProperty(t)){var r=this.featuresTags[t];if(r.indexOf("rlig")!==-1){la.call(this);var n=this.tokenizer.getContextRanges("arabicWord");n.forEach(function(i){l0.call(e,i)})}}}function m0(){var e=this,t="latn";if(this.featuresTags.hasOwnProperty(t)){var r=this.featuresTags[t];if(r.indexOf("liga")!==-1){la.call(this);var n=this.tokenizer.getContextRanges("latinWord");n.forEach(function(i){p0.call(e,i)})}}}At.prototype.checkContextReady=function(e){return!!this.tokenizer.getContext(e)};At.prototype.applyFeaturesToContexts=function(){this.checkContextReady("arabicWord")&&(v0.call(this),g0.call(this)),this.checkContextReady("latinWord")&&m0.call(this),this.checkContextReady("arabicSentence")&&d0.call(this)};At.prototype.processText=function(e){(!this.text||this.text!==e)&&(this.setText(e),h0.call(this),this.applyFeaturesToContexts())};At.prototype.getBidiText=function(e){return this.processText(e),this.tokenizer.getText()};At.prototype.getTextGlyphs=function(e){this.processText(e);for(var t=[],r=0;r<this.tokenizer.tokens.length;r++){var n=this.tokenizer.tokens[r];if(!n.state.deleted){var i=n.activeState.value;t.push(Array.isArray(i)?i[0]:i)}}return t};function it(e){e=e||{},e.tables=e.tables||{},e.empty||($r(e.familyName,"When creating a new Font object, familyName is required."),$r(e.styleName,"When creating a new Font object, styleName is required."),$r(e.unitsPerEm,"When creating a new Font object, unitsPerEm is required."),$r(e.ascender,"When creating a new Font object, ascender is required."),$r(e.descender<=0,"When creating a new Font object, negative descender value is required."),this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables=Object.assign(e.tables,{os2:Object.assign({usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR},e.tables.os2)})),this.supported=!0,this.glyphs=new Bt.GlyphSet(this,e.glyphs||[]),this.encoding=new Vs(this),this.position=new qr(this),this.substitution=new dt(this),this.tables=this.tables||{},this._push=null,this._hmtxTableData={},Object.defineProperty(this,"hinting",{get:function(){if(this._hinting)return this._hinting;if(this.outlinesFormat==="truetype")return this._hinting=new tl(this)}})}it.prototype.hasChar=function(e){return this.encoding.charToGlyphIndex(e)!==null};it.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)};it.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r||(r=this.glyphs.get(0)),r};it.prototype.updateFeatures=function(e){return this.defaultRenderOptions.features.map(function(t){return t.script==="latn"?{script:"latn",tags:t.tags.filter(function(r){return e[r]})}:t})};it.prototype.stringToGlyphs=function(e,t){var r=this,n=new At,i=function(c){return r.charToGlyphIndex(c.char)};n.registerModifier("glyphIndex",null,i);var a=t?this.updateFeatures(t.features):this.defaultRenderOptions.features;n.applyFeatures(this,a);for(var o=n.getTextGlyphs(e),l=o.length,s=new Array(l),u=this.glyphs.get(0),f=0;f<l;f+=1)s[f]=this.glyphs.get(o[f])||u;return s};it.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+","+t]||0};it.prototype.defaultRenderOptions={kerning:!0,features:[{script:"arab",tags:["init","medi","fina","rlig"]},{script:"latn",tags:["liga","rlig"]}]};it.prototype.forEachGlyph=function(e,t,r,n,i,a){t=t!==void 0?t:0,r=r!==void 0?r:0,n=n!==void 0?n:72,i=Object.assign({},this.defaultRenderOptions,i);var o=1/this.unitsPerEm*n,l=this.stringToGlyphs(e,i),s;if(i.kerning){var u=i.script||this.position.getDefaultScriptName();s=this.position.getKerningTables(u,i.language)}for(var f=0;f<l.length;f+=1){var c=l[f];if(a.call(this,c,t,r,n,i),c.advanceWidth&&(t+=c.advanceWidth*o),i.kerning&&f<l.length-1){var p=s?this.position.getKerningValue(s,c.index,l[f+1].index):this.getKerningValue(c,l[f+1]);t+=p*o}i.letterSpacing?t+=i.letterSpacing*n:i.tracking&&(t+=i.tracking/1e3*n)}return t};it.prototype.getPath=function(e,t,r,n,i){var a=new nt;return this.forEachGlyph(e,t,r,n,i,function(o,l,s,u){var f=o.getPath(l,s,u,i,this);a.extend(f)}),a};it.prototype.getPaths=function(e,t,r,n,i){var a=[];return this.forEachGlyph(e,t,r,n,i,function(o,l,s,u){var f=o.getPath(l,s,u,i,this);a.push(f)}),a};it.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})};it.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512};it.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9};it.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};function y0(e,t){t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong();var r;e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var n=0;n<r;n+=1)for(var i=t.parseULong(),a=t.parseULong(),o=t.parseULong(),l=i;l<=a;l+=1)e.glyphIndexMap[l]=o,o++}function b0(e,t,r,n,i){e.length=t.parseUShort(),e.language=t.parseUShort();var a;e.segCount=a=t.parseUShort()>>1,t.skip("uShort",3),e.glyphIndexMap={};for(var o=new se.Parser(r,n+i+14),l=new se.Parser(r,n+i+16+a*2),s=new se.Parser(r,n+i+16+a*4),u=new se.Parser(r,n+i+16+a*6),f=n+i+16+a*8,c=0;c<a-1;c+=1)for(var p=void 0,h=o.parseUShort(),m=l.parseUShort(),d=s.parseShort(),g=u.parseUShort(),b=m;b<=h;b+=1)g!==0?(f=u.offset+u.relativeOffset-2,f+=g,f+=(b-m)*2,p=se.getUShort(r,f),p!==0&&(p=p+d&65535)):p=b+d&65535,e.glyphIndexMap[b]=p}function x0(e,t){var r={};r.version=se.getUShort(e,t),Oe.argument(r.version===0,"cmap table version should be 0."),r.numTables=se.getUShort(e,t+2);for(var n=-1,i=r.numTables-1;i>=0;i-=1){var a=se.getUShort(e,t+4+i*8),o=se.getUShort(e,t+4+i*8+2);if(a===3&&(o===0||o===1||o===10)||a===0&&(o===0||o===1||o===2||o===3||o===4)){n=se.getULong(e,t+4+i*8+4);break}}if(n===-1)throw new Error("No valid cmap sub-tables found.");var l=new se.Parser(e,t+n);if(r.format=l.parseUShort(),r.format===12)y0(r,l);else if(r.format===4)b0(r,l,e,t,n);else throw new Error("Only format 4 and 12 cmap tables are supported (found format "+r.format+").");return r}var w0={parse:x0};function ra(e){var t;return e.length<1240?t=107:e.length<33900?t=1131:t=32768,t}function nr(e,t,r){var n=[],i=[],a=se.getCard16(e,t),o,l;if(a!==0){var s=se.getByte(e,t+2);o=t+(a+1)*s+2;for(var u=t+3,f=0;f<a+1;f+=1)n.push(se.getOffset(e,u,s)),u+=s;l=o+n[a]}else l=t+2;for(var c=0;c<n.length-1;c+=1){var p=se.getBytes(e,o+n[c],o+n[c+1]);r&&(p=r(p)),i.push(p)}return{objects:i,startOffset:t,endOffset:l}}function S0(e,t){var r=[],n=se.getCard16(e,t),i,a;if(n!==0){var o=se.getByte(e,t+2);i=t+(n+1)*o+2;for(var l=t+3,s=0;s<n+1;s+=1)r.push(se.getOffset(e,l,o)),l+=o;a=i+r[n]}else a=t+2;return{offsets:r,startOffset:t,endOffset:a}}function E0(e,t,r,n,i){var a=se.getCard16(r,n),o=0;if(a!==0){var l=se.getByte(r,n+2);o=n+(a+1)*l+2}var s=se.getBytes(r,o+t[e],o+t[e+1]);return i&&(s=i(s)),s}function k0(e){for(var t="",r=15,n=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];;){var i=e.parseByte(),a=i>>4,o=i&15;if(a===r||(t+=n[a],o===r))break;t+=n[o]}return parseFloat(t)}function T0(e,t){var r,n,i,a;if(t===28)return r=e.parseByte(),n=e.parseByte(),r<<8|n;if(t===29)return r=e.parseByte(),n=e.parseByte(),i=e.parseByte(),a=e.parseByte(),r<<24|n<<16|i<<8|a;if(t===30)return k0(e);if(t>=32&&t<=246)return t-139;if(t>=247&&t<=250)return r=e.parseByte(),(t-247)*256+r+108;if(t>=251&&t<=254)return r=e.parseByte(),-(t-251)*256-r-108;throw new Error("Invalid b0 "+t)}function _0(e){for(var t={},r=0;r<e.length;r+=1){var n=e[r][0],i=e[r][1],a=void 0;if(i.length===1?a=i[0]:a=i,t.hasOwnProperty(n)&&!isNaN(t[n]))throw new Error("Object "+t+" already has key "+n);t[n]=a}return t}function ol(e,t,r){t=t!==void 0?t:0;var n=new se.Parser(e,t),i=[],a=[];for(r=r!==void 0?r:e.length;n.relativeOffset<r;){var o=n.parseByte();o<=21?(o===12&&(o=1200+n.parseByte()),i.push([o,a]),a=[]):a.push(T0(n,o))}return _0(i)}function zr(e,t){return t<=390?t=Vp[t]:t=e[t-391],t}function sl(e,t,r){for(var n={},i,a=0;a<t.length;a+=1){var o=t[a];if(Array.isArray(o.type)){var l=[];l.length=o.type.length;for(var s=0;s<o.type.length;s++)i=e[o.op]!==void 0?e[o.op][s]:void 0,i===void 0&&(i=o.value!==void 0&&o.value[s]!==void 0?o.value[s]:null),o.type[s]==="SID"&&(i=zr(r,i)),l[s]=i;n[o.name]=l}else i=e[o.op],i===void 0&&(i=o.value!==void 0?o.value:null),o.type==="SID"&&(i=zr(r,i)),n[o.name]=i}return n}function L0(e,t){var r={};return r.formatMajor=se.getCard8(e,t),r.formatMinor=se.getCard8(e,t+1),r.size=se.getCard8(e,t+2),r.offsetSize=se.getCard8(e,t+3),r.startOffset=t,r.endOffset=t+4,r}var C0=[{name:"version",op:0,type:"SID"},{name:"notice",op:1,type:"SID"},{name:"copyright",op:1200,type:"SID"},{name:"fullName",op:2,type:"SID"},{name:"familyName",op:3,type:"SID"},{name:"weight",op:4,type:"SID"},{name:"isFixedPitch",op:1201,type:"number",value:0},{name:"italicAngle",op:1202,type:"number",value:0},{name:"underlinePosition",op:1203,type:"number",value:-100},{name:"underlineThickness",op:1204,type:"number",value:50},{name:"paintType",op:1205,type:"number",value:0},{name:"charstringType",op:1206,type:"number",value:2},{name:"fontMatrix",op:1207,type:["real","real","real","real","real","real"],value:[.001,0,0,.001,0,0]},{name:"uniqueId",op:13,type:"number"},{name:"fontBBox",op:5,type:["number","number","number","number"],value:[0,0,0,0]},{name:"strokeWidth",op:1208,type:"number",value:0},{name:"xuid",op:14,type:[],value:null},{name:"charset",op:15,type:"offset",value:0},{name:"encoding",op:16,type:"offset",value:0},{name:"charStrings",op:17,type:"offset",value:0},{name:"private",op:18,type:["number","offset"],value:[0,0]},{name:"ros",op:1230,type:["SID","SID","number"]},{name:"cidFontVersion",op:1231,type:"number",value:0},{name:"cidFontRevision",op:1232,type:"number",value:0},{name:"cidFontType",op:1233,type:"number",value:0},{name:"cidCount",op:1234,type:"number",value:8720},{name:"uidBase",op:1235,type:"number"},{name:"fdArray",op:1236,type:"offset"},{name:"fdSelect",op:1237,type:"offset"},{name:"fontName",op:1238,type:"SID"}],O0=[{name:"subrs",op:19,type:"offset",value:0},{name:"defaultWidthX",op:20,type:"number",value:0},{name:"nominalWidthX",op:21,type:"number",value:0}];function A0(e,t){var r=ol(e,0,e.byteLength);return sl(r,C0,t)}function ll(e,t,r,n){var i=ol(e,t,r);return sl(i,O0,n)}function Ds(e,t,r,n){for(var i=[],a=0;a<r.length;a+=1){var o=new DataView(new Uint8Array(r[a]).buffer),l=A0(o,n);l._subrs=[],l._subrsBias=0,l._defaultWidthX=0,l._nominalWidthX=0;var s=l.private[0],u=l.private[1];if(s!==0&&u!==0){var f=ll(e,u+t,s,n);if(l._defaultWidthX=f.defaultWidthX,l._nominalWidthX=f.nominalWidthX,f.subrs!==0){var c=u+f.subrs,p=nr(e,c+t);l._subrs=p.objects,l._subrsBias=ra(l._subrs)}l._privateDict=f}i.push(l)}return i}function I0(e,t,r,n){var i,a,o=new se.Parser(e,t);r-=1;var l=[".notdef"],s=o.parseCard8();if(s===0)for(var u=0;u<r;u+=1)i=o.parseSID(),l.push(zr(n,i));else if(s===1)for(;l.length<=r;){i=o.parseSID(),a=o.parseCard8();for(var f=0;f<=a;f+=1)l.push(zr(n,i)),i+=1}else if(s===2)for(;l.length<=r;){i=o.parseSID(),a=o.parseCard16();for(var c=0;c<=a;c+=1)l.push(zr(n,i)),i+=1}else throw new Error("Unknown charset format "+s);return l}function P0(e,t,r){var n,i={},a=new se.Parser(e,t),o=a.parseCard8();if(o===0)for(var l=a.parseCard8(),s=0;s<l;s+=1)n=a.parseCard8(),i[n]=s;else if(o===1){var u=a.parseCard8();n=1;for(var f=0;f<u;f+=1)for(var c=a.parseCard8(),p=a.parseCard8(),h=c;h<=c+p;h+=1)i[h]=n,n+=1}else throw new Error("Unknown encoding format "+o);return new Cn(i,r)}function Us(e,t,r){var n,i,a,o,l=new nt,s=[],u=0,f=!1,c=!1,p=0,h=0,m,d,g,b;if(e.isCIDFont){var x=e.tables.cff.topDict._fdSelect[t.index],_=e.tables.cff.topDict._fdArray[x];m=_._subrs,d=_._subrsBias,g=_._defaultWidthX,b=_._nominalWidthX}else m=e.tables.cff.topDict._subrs,d=e.tables.cff.topDict._subrsBias,g=e.tables.cff.topDict._defaultWidthX,b=e.tables.cff.topDict._nominalWidthX;var L=g;function T(C,D){c&&l.closePath(),l.moveTo(C,D),c=!0}function E(){var C;C=s.length%2!==0,C&&!f&&(L=s.shift()+b),u+=s.length>>1,s.length=0,f=!0}function R(C){for(var D,M,H,Q,ee,I,U,O,q,K,ne,ie,V=0;V<C.length;){var Y=C[V];switch(V+=1,Y){case 1:E();break;case 3:E();break;case 4:s.length>1&&!f&&(L=s.shift()+b,f=!0),h+=s.pop(),T(p,h);break;case 5:for(;s.length>0;)p+=s.shift(),h+=s.shift(),l.lineTo(p,h);break;case 6:for(;s.length>0&&(p+=s.shift(),l.lineTo(p,h),s.length!==0);)h+=s.shift(),l.lineTo(p,h);break;case 7:for(;s.length>0&&(h+=s.shift(),l.lineTo(p,h),s.length!==0);)p+=s.shift(),l.lineTo(p,h);break;case 8:for(;s.length>0;)n=p+s.shift(),i=h+s.shift(),a=n+s.shift(),o=i+s.shift(),p=a+s.shift(),h=o+s.shift(),l.curveTo(n,i,a,o,p,h);break;case 10:ee=s.pop()+d,I=m[ee],I&&R(I);break;case 11:return;case 12:switch(Y=C[V],V+=1,Y){case 35:n=p+s.shift(),i=h+s.shift(),a=n+s.shift(),o=i+s.shift(),U=a+s.shift(),O=o+s.shift(),q=U+s.shift(),K=O+s.shift(),ne=q+s.shift(),ie=K+s.shift(),p=ne+s.shift(),h=ie+s.shift(),s.shift(),l.curveTo(n,i,a,o,U,O),l.curveTo(q,K,ne,ie,p,h);break;case 34:n=p+s.shift(),i=h,a=n+s.shift(),o=i+s.shift(),U=a+s.shift(),O=o,q=U+s.shift(),K=o,ne=q+s.shift(),ie=h,p=ne+s.shift(),l.curveTo(n,i,a,o,U,O),l.curveTo(q,K,ne,ie,p,h);break;case 36:n=p+s.shift(),i=h+s.shift(),a=n+s.shift(),o=i+s.shift(),U=a+s.shift(),O=o,q=U+s.shift(),K=o,ne=q+s.shift(),ie=K+s.shift(),p=ne+s.shift(),l.curveTo(n,i,a,o,U,O),l.curveTo(q,K,ne,ie,p,h);break;case 37:n=p+s.shift(),i=h+s.shift(),a=n+s.shift(),o=i+s.shift(),U=a+s.shift(),O=o+s.shift(),q=U+s.shift(),K=O+s.shift(),ne=q+s.shift(),ie=K+s.shift(),Math.abs(ne-p)>Math.abs(ie-h)?p=ne+s.shift():h=ie+s.shift(),l.curveTo(n,i,a,o,U,O),l.curveTo(q,K,ne,ie,p,h);break;default:console.log("Glyph "+t.index+": unknown operator 1200"+Y),s.length=0}break;case 14:s.length>0&&!f&&(L=s.shift()+b,f=!0),c&&(l.closePath(),c=!1);break;case 18:E();break;case 19:case 20:E(),V+=u+7>>3;break;case 21:s.length>2&&!f&&(L=s.shift()+b,f=!0),h+=s.pop(),p+=s.pop(),T(p,h);break;case 22:s.length>1&&!f&&(L=s.shift()+b,f=!0),p+=s.pop(),T(p,h);break;case 23:E();break;case 24:for(;s.length>2;)n=p+s.shift(),i=h+s.shift(),a=n+s.shift(),o=i+s.shift(),p=a+s.shift(),h=o+s.shift(),l.curveTo(n,i,a,o,p,h);p+=s.shift(),h+=s.shift(),l.lineTo(p,h);break;case 25:for(;s.length>6;)p+=s.shift(),h+=s.shift(),l.lineTo(p,h);n=p+s.shift(),i=h+s.shift(),a=n+s.shift(),o=i+s.shift(),p=a+s.shift(),h=o+s.shift(),l.curveTo(n,i,a,o,p,h);break;case 26:for(s.length%2&&(p+=s.shift());s.length>0;)n=p,i=h+s.shift(),a=n+s.shift(),o=i+s.shift(),p=a,h=o+s.shift(),l.curveTo(n,i,a,o,p,h);break;case 27:for(s.length%2&&(h+=s.shift());s.length>0;)n=p+s.shift(),i=h,a=n+s.shift(),o=i+s.shift(),p=a+s.shift(),h=o,l.curveTo(n,i,a,o,p,h);break;case 28:D=C[V],M=C[V+1],s.push((D<<24|M<<16)>>16),V+=2;break;case 29:ee=s.pop()+e.gsubrsBias,I=e.gsubrs[ee],I&&R(I);break;case 30:for(;s.length>0&&(n=p,i=h+s.shift(),a=n+s.shift(),o=i+s.shift(),p=a+s.shift(),h=o+(s.length===1?s.shift():0),l.curveTo(n,i,a,o,p,h),s.length!==0);)n=p+s.shift(),i=h,a=n+s.shift(),o=i+s.shift(),h=o+s.shift(),p=a+(s.length===1?s.shift():0),l.curveTo(n,i,a,o,p,h);break;case 31:for(;s.length>0&&(n=p+s.shift(),i=h,a=n+s.shift(),o=i+s.shift(),h=o+s.shift(),p=a+(s.length===1?s.shift():0),l.curveTo(n,i,a,o,p,h),s.length!==0);)n=p,i=h+s.shift(),a=n+s.shift(),o=i+s.shift(),p=a+s.shift(),h=o+(s.length===1?s.shift():0),l.curveTo(n,i,a,o,p,h);break;default:Y<32?console.log("Glyph "+t.index+": unknown operator "+Y):Y<247?s.push(Y-139):Y<251?(D=C[V],V+=1,s.push((Y-247)*256+D+108)):Y<255?(D=C[V],V+=1,s.push(-(Y-251)*256-D-108)):(D=C[V],M=C[V+1],H=C[V+2],Q=C[V+3],V+=4,s.push((D<<24|M<<16|H<<8|Q)/65536))}}}return R(r),t.advanceWidth=L,l}function R0(e,t,r,n){var i=[],a,o=new se.Parser(e,t),l=o.parseCard8();if(l===0)for(var s=0;s<r;s++){if(a=o.parseCard8(),a>=n)throw new Error("CFF table CID Font FDSelect has bad FD index value "+a+" (FD count "+n+")");i.push(a)}else if(l===3){var u=o.parseCard16(),f=o.parseCard16();if(f!==0)throw new Error("CFF Table CID Font FDSelect format 3 range has bad initial GID "+f);for(var c,p=0;p<u;p++){if(a=o.parseCard8(),c=o.parseCard16(),a>=n)throw new Error("CFF table CID Font FDSelect has bad FD index value "+a+" (FD count "+n+")");if(c>r)throw new Error("CFF Table CID Font FDSelect format 3 range has bad GID "+c);for(;f<c;f++)i.push(a);f=c}if(c!==r)throw new Error("CFF Table CID Font FDSelect format 3 range has bad final GID "+c)}else throw new Error("CFF Table CID Font FDSelect table has unsupported format "+l);return i}function F0(e,t,r,n){r.tables.cff={};var i=L0(e,t),a=nr(e,i.endOffset,se.bytesToString),o=nr(e,a.endOffset),l=nr(e,o.endOffset,se.bytesToString),s=nr(e,l.endOffset);r.gsubrs=s.objects,r.gsubrsBias=ra(r.gsubrs);var u=Ds(e,t,o.objects,l.objects);if(u.length!==1)throw new Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = "+u.length);var f=u[0];if(r.tables.cff.topDict=f,f._privateDict&&(r.defaultWidthX=f._privateDict.defaultWidthX,r.nominalWidthX=f._privateDict.nominalWidthX),f.ros[0]!==void 0&&f.ros[1]!==void 0&&(r.isCIDFont=!0),r.isCIDFont){var c=f.fdArray,p=f.fdSelect;if(c===0||p===0)throw new Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");c+=t;var h=nr(e,c),m=Ds(e,t,h.objects,l.objects);f._fdArray=m,p+=t,f._fdSelect=R0(e,p,r.numGlyphs,m.length)}var d=t+f.private[1],g=ll(e,d,f.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,g.subrs!==0){var b=d+g.subrs,x=nr(e,b);r.subrs=x.objects,r.subrsBias=ra(r.subrs)}else r.subrs=[],r.subrsBias=0;var _;n.lowMemory?(_=S0(e,t+f.charStrings),r.nGlyphs=_.offsets.length):(_=nr(e,t+f.charStrings),r.nGlyphs=_.objects.length);var L=I0(e,t+f.charset,r.nGlyphs,l.objects);if(f.encoding===0?r.cffEncoding=new Cn(Hp,L):f.encoding===1?r.cffEncoding=new Cn(Xp,L):r.cffEncoding=P0(e,t+f.encoding,L),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new Bt.GlyphSet(r),n.lowMemory)r._push=function(R){var C=E0(R,_.offsets,e,t+f.charStrings);r.glyphs.push(R,Bt.cffGlyphLoader(r,R,Us,C))};else for(var T=0;T<r.nGlyphs;T+=1){var E=_.objects[T];r.glyphs.push(T,Bt.cffGlyphLoader(r,T,Us,E))}}var D0={parse:F0};function U0(e,t,r){var n={},i=new se.Parser(e,t);return n.tag=i.parseTag(),n.minValue=i.parseFixed(),n.defaultValue=i.parseFixed(),n.maxValue=i.parseFixed(),i.skip("uShort",1),n.name=r[i.parseUShort()]||{},n}function N0(e,t,r,n){var i={},a=new se.Parser(e,t);i.name=n[a.parseUShort()]||{},a.skip("uShort",1),i.coordinates={};for(var o=0;o<r.length;++o)i.coordinates[r[o].tag]=a.parseFixed();return i}function M0(e,t,r){var n=new se.Parser(e,t),i=n.parseULong();Oe.argument(i===65536,"Unsupported fvar table version.");var a=n.parseOffset16();n.skip("uShort",1);for(var o=n.parseUShort(),l=n.parseUShort(),s=n.parseUShort(),u=n.parseUShort(),f=[],c=0;c<o;c++)f.push(U0(e,t+a+c*l,r));for(var p=[],h=t+a+o*l,m=0;m<s;m++)p.push(N0(e,h+m*u,f,r));return{axes:f,instances:p}}var W0={parse:M0},G0=function(){return{coverage:this.parsePointer(W.coverage),attachPoints:this.parseList(W.pointer(W.uShortList))}},B0=function(){var e=this.parseUShort();if(Oe.argument(e===1||e===2||e===3,"Unsupported CaretValue table version."),e===1)return{coordinate:this.parseShort()};if(e===2)return{pointindex:this.parseShort()};if(e===3)return{coordinate:this.parseShort()}},$0=function(){return this.parseList(W.pointer(B0))},j0=function(){return{coverage:this.parsePointer(W.coverage),ligGlyphs:this.parseList(W.pointer($0))}},z0=function(){return this.parseUShort(),this.parseList(W.pointer(W.coverage))};function V0(e,t){t=t||0;var r=new W(e,t),n=r.parseVersion(1);Oe.argument(n===1||n===1.2||n===1.3,"Unsupported GDEF table version.");var i={version:n,classDef:r.parsePointer(W.classDef),attachList:r.parsePointer(G0),ligCaretList:r.parsePointer(j0),markAttachClassDef:r.parsePointer(W.classDef)};return n>=1.2&&(i.markGlyphSets=r.parsePointer(z0)),i}var H0={parse:V0},Ct=new Array(10);Ct[1]=function(){var t=this.offset+this.relativeOffset,r=this.parseUShort();if(r===1)return{posFormat:1,coverage:this.parsePointer(W.coverage),value:this.parseValueRecord()};if(r===2)return{posFormat:2,coverage:this.parsePointer(W.coverage),values:this.parseValueRecordList()};Oe.assert(!1,"0x"+t.toString(16)+": GPOS lookup type 1 format must be 1 or 2.")};Ct[2]=function(){var t=this.offset+this.relativeOffset,r=this.parseUShort();Oe.assert(r===1||r===2,"0x"+t.toString(16)+": GPOS lookup type 2 format must be 1 or 2.");var n=this.parsePointer(W.coverage),i=this.parseUShort(),a=this.parseUShort();if(r===1)return{posFormat:r,coverage:n,valueFormat1:i,valueFormat2:a,pairSets:this.parseList(W.pointer(W.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(a)}})))};if(r===2){var o=this.parsePointer(W.classDef),l=this.parsePointer(W.classDef),s=this.parseUShort(),u=this.parseUShort();return{posFormat:r,coverage:n,valueFormat1:i,valueFormat2:a,classDef1:o,classDef2:l,class1Count:s,class2Count:u,classRecords:this.parseList(s,W.list(u,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(a)}}))}}};Ct[3]=function(){return{error:"GPOS Lookup 3 not supported"}};Ct[4]=function(){return{error:"GPOS Lookup 4 not supported"}};Ct[5]=function(){return{error:"GPOS Lookup 5 not supported"}};Ct[6]=function(){return{error:"GPOS Lookup 6 not supported"}};Ct[7]=function(){return{error:"GPOS Lookup 7 not supported"}};Ct[8]=function(){return{error:"GPOS Lookup 8 not supported"}};Ct[9]=function(){return{error:"GPOS Lookup 9 not supported"}};function X0(e,t){t=t||0;var r=new W(e,t),n=r.parseVersion(1);return Oe.argument(n===1||n===1.1,"Unsupported GPOS table version "+n),n===1?{version:n,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(Ct)}:{version:n,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(Ct),variations:r.parseFeatureVariationsList()}}var q0={parse:X0},Ot=new Array(9);Ot[1]=function(){var t=this.offset+this.relativeOffset,r=this.parseUShort();if(r===1)return{substFormat:1,coverage:this.parsePointer(W.coverage),deltaGlyphId:this.parseUShort()};if(r===2)return{substFormat:2,coverage:this.parsePointer(W.coverage),substitute:this.parseOffset16List()};Oe.assert(!1,"0x"+t.toString(16)+": lookup type 1 format must be 1 or 2.")};Ot[2]=function(){var t=this.parseUShort();return Oe.argument(t===1,"GSUB Multiple Substitution Subtable identifier-format must be 1"),{substFormat:t,coverage:this.parsePointer(W.coverage),sequences:this.parseListOfLists()}};Ot[3]=function(){var t=this.parseUShort();return Oe.argument(t===1,"GSUB Alternate Substitution Subtable identifier-format must be 1"),{substFormat:t,coverage:this.parsePointer(W.coverage),alternateSets:this.parseListOfLists()}};Ot[4]=function(){var t=this.parseUShort();return Oe.argument(t===1,"GSUB ligature table identifier-format must be 1"),{substFormat:t,coverage:this.parsePointer(W.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var Pr={sequenceIndex:W.uShort,lookupListIndex:W.uShort};Ot[5]=function(){var t=this.offset+this.relativeOffset,r=this.parseUShort();if(r===1)return{substFormat:r,coverage:this.parsePointer(W.coverage),ruleSets:this.parseListOfLists(function(){var a=this.parseUShort(),o=this.parseUShort();return{input:this.parseUShortList(a-1),lookupRecords:this.parseRecordList(o,Pr)}})};if(r===2)return{substFormat:r,coverage:this.parsePointer(W.coverage),classDef:this.parsePointer(W.classDef),classSets:this.parseListOfLists(function(){var a=this.parseUShort(),o=this.parseUShort();return{classes:this.parseUShortList(a-1),lookupRecords:this.parseRecordList(o,Pr)}})};if(r===3){var n=this.parseUShort(),i=this.parseUShort();return{substFormat:r,coverages:this.parseList(n,W.pointer(W.coverage)),lookupRecords:this.parseRecordList(i,Pr)}}Oe.assert(!1,"0x"+t.toString(16)+": lookup type 5 format must be 1, 2 or 3.")};Ot[6]=function(){var t=this.offset+this.relativeOffset,r=this.parseUShort();if(r===1)return{substFormat:1,coverage:this.parsePointer(W.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(Pr)}})};if(r===2)return{substFormat:2,coverage:this.parsePointer(W.coverage),backtrackClassDef:this.parsePointer(W.classDef),inputClassDef:this.parsePointer(W.classDef),lookaheadClassDef:this.parsePointer(W.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(Pr)}})};if(r===3)return{substFormat:3,backtrackCoverage:this.parseList(W.pointer(W.coverage)),inputCoverage:this.parseList(W.pointer(W.coverage)),lookaheadCoverage:this.parseList(W.pointer(W.coverage)),lookupRecords:this.parseRecordList(Pr)};Oe.assert(!1,"0x"+t.toString(16)+": lookup type 6 format must be 1, 2 or 3.")};Ot[7]=function(){var t=this.parseUShort();Oe.argument(t===1,"GSUB Extension Substitution subtable identifier-format must be 1");var r=this.parseUShort(),n=new W(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:r,extension:Ot[r].call(n)}};Ot[8]=function(){var t=this.parseUShort();return Oe.argument(t===1,"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"),{substFormat:t,coverage:this.parsePointer(W.coverage),backtrackCoverage:this.parseList(W.pointer(W.coverage)),lookaheadCoverage:this.parseList(W.pointer(W.coverage)),substitutes:this.parseUShortList()}};function Y0(e,t){t=t||0;var r=new W(e,t),n=r.parseVersion(1);return Oe.argument(n===1||n===1.1,"Unsupported GSUB table version."),n===1?{version:n,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(Ot)}:{version:n,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(Ot),variations:r.parseFeatureVariationsList()}}var Z0={parse:Y0};function J0(e,t){var r={},n=new se.Parser(e,t);return r.version=n.parseVersion(),r.fontRevision=Math.round(n.parseFixed()*1e3)/1e3,r.checkSumAdjustment=n.parseULong(),r.magicNumber=n.parseULong(),Oe.argument(r.magicNumber===1594834165,"Font header has wrong magic number."),r.flags=n.parseUShort(),r.unitsPerEm=n.parseUShort(),r.created=n.parseLongDateTime(),r.modified=n.parseLongDateTime(),r.xMin=n.parseShort(),r.yMin=n.parseShort(),r.xMax=n.parseShort(),r.yMax=n.parseShort(),r.macStyle=n.parseUShort(),r.lowestRecPPEM=n.parseUShort(),r.fontDirectionHint=n.parseShort(),r.indexToLocFormat=n.parseShort(),r.glyphDataFormat=n.parseShort(),r}var Q0={parse:J0};function K0(e,t){var r={},n=new se.Parser(e,t);return r.version=n.parseVersion(),r.ascender=n.parseShort(),r.descender=n.parseShort(),r.lineGap=n.parseShort(),r.advanceWidthMax=n.parseUShort(),r.minLeftSideBearing=n.parseShort(),r.minRightSideBearing=n.parseShort(),r.xMaxExtent=n.parseShort(),r.caretSlopeRise=n.parseShort(),r.caretSlopeRun=n.parseShort(),r.caretOffset=n.parseShort(),n.relativeOffset+=8,r.metricDataFormat=n.parseShort(),r.numberOfHMetrics=n.parseUShort(),r}var ev={parse:K0};function tv(e,t,r,n,i){for(var a,o,l=new se.Parser(e,t),s=0;s<n;s+=1){s<r&&(a=l.parseUShort(),o=l.parseShort());var u=i.get(s);u.advanceWidth=a,u.leftSideBearing=o}}function rv(e,t,r,n,i){e._hmtxTableData={};for(var a,o,l=new se.Parser(t,r),s=0;s<i;s+=1)s<n&&(a=l.parseUShort(),o=l.parseShort()),e._hmtxTableData[s]={advanceWidth:a,leftSideBearing:o}}function nv(e,t,r,n,i,a,o){o.lowMemory?rv(e,t,r,n,i):tv(t,r,n,i,a)}var iv={parse:nv};function av(e){var t={};e.skip("uShort");var r=e.parseUShort();Oe.argument(r===0,"Unsupported kern sub-table version."),e.skip("uShort",2);var n=e.parseUShort();e.skip("uShort",3);for(var i=0;i<n;i+=1){var a=e.parseUShort(),o=e.parseUShort(),l=e.parseShort();t[a+","+o]=l}return t}function ov(e){var t={};e.skip("uShort");var r=e.parseULong();r>1&&console.warn("Only the first kern subtable is supported."),e.skip("uLong");var n=e.parseUShort(),i=n&255;if(e.skip("uShort"),i===0){var a=e.parseUShort();e.skip("uShort",3);for(var o=0;o<a;o+=1){var l=e.parseUShort(),s=e.parseUShort(),u=e.parseShort();t[l+","+s]=u}}return t}function sv(e,t){var r=new se.Parser(e,t),n=r.parseUShort();if(n===0)return av(r);if(n===1)return ov(r);throw new Error("Unsupported kern table version ("+n+").")}var lv={parse:sv};function uv(e,t){var r=new se.Parser(e,t),n=r.parseULong();Oe.argument(n===1,"Unsupported ltag table version."),r.skip("uLong",1);for(var i=r.parseULong(),a=[],o=0;o<i;o++){for(var l="",s=t+r.parseUShort(),u=r.parseUShort(),f=s;f<s+u;++f)l+=String.fromCharCode(e.getInt8(f));a.push(l)}return a}var fv={parse:uv};function cv(e,t,r,n){for(var i=new se.Parser(e,t),a=n?i.parseUShort:i.parseULong,o=[],l=0;l<r+1;l+=1){var s=a.call(i);n&&(s*=2),o.push(s)}return o}var pv={parse:cv};function hv(e,t){var r={},n=new se.Parser(e,t);return r.version=n.parseVersion(),r.numGlyphs=n.parseUShort(),r.version===1&&(r.maxPoints=n.parseUShort(),r.maxContours=n.parseUShort(),r.maxCompositePoints=n.parseUShort(),r.maxCompositeContours=n.parseUShort(),r.maxZones=n.parseUShort(),r.maxTwilightPoints=n.parseUShort(),r.maxStorage=n.parseUShort(),r.maxFunctionDefs=n.parseUShort(),r.maxInstructionDefs=n.parseUShort(),r.maxStackElements=n.parseUShort(),r.maxSizeOfInstructions=n.parseUShort(),r.maxComponentElements=n.parseUShort(),r.maxComponentDepth=n.parseUShort()),r}var dv={parse:hv};function vv(e,t){var r={},n=new se.Parser(e,t);r.version=n.parseUShort(),r.xAvgCharWidth=n.parseShort(),r.usWeightClass=n.parseUShort(),r.usWidthClass=n.parseUShort(),r.fsType=n.parseUShort(),r.ySubscriptXSize=n.parseShort(),r.ySubscriptYSize=n.parseShort(),r.ySubscriptXOffset=n.parseShort(),r.ySubscriptYOffset=n.parseShort(),r.ySuperscriptXSize=n.parseShort(),r.ySuperscriptYSize=n.parseShort(),r.ySuperscriptXOffset=n.parseShort(),r.ySuperscriptYOffset=n.parseShort(),r.yStrikeoutSize=n.parseShort(),r.yStrikeoutPosition=n.parseShort(),r.sFamilyClass=n.parseShort(),r.panose=[];for(var i=0;i<10;i++)r.panose[i]=n.parseByte();return r.ulUnicodeRange1=n.parseULong(),r.ulUnicodeRange2=n.parseULong(),r.ulUnicodeRange3=n.parseULong(),r.ulUnicodeRange4=n.parseULong(),r.achVendID=String.fromCharCode(n.parseByte(),n.parseByte(),n.parseByte(),n.parseByte()),r.fsSelection=n.parseUShort(),r.usFirstCharIndex=n.parseUShort(),r.usLastCharIndex=n.parseUShort(),r.sTypoAscender=n.parseShort(),r.sTypoDescender=n.parseShort(),r.sTypoLineGap=n.parseShort(),r.usWinAscent=n.parseUShort(),r.usWinDescent=n.parseUShort(),r.version>=1&&(r.ulCodePageRange1=n.parseULong(),r.ulCodePageRange2=n.parseULong()),r.version>=2&&(r.sxHeight=n.parseShort(),r.sCapHeight=n.parseShort(),r.usDefaultChar=n.parseUShort(),r.usBreakChar=n.parseUShort(),r.usMaxContent=n.parseUShort()),r}var gv={parse:vv};function mv(e,t){var r={},n=new se.Parser(e,t);switch(r.version=n.parseVersion(),r.italicAngle=n.parseFixed(),r.underlinePosition=n.parseShort(),r.underlineThickness=n.parseShort(),r.isFixedPitch=n.parseULong(),r.minMemType42=n.parseULong(),r.maxMemType42=n.parseULong(),r.minMemType1=n.parseULong(),r.maxMemType1=n.parseULong(),r.names=[],r.version){case 1:break;case 2:r.numberOfGlyphs=n.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var i=0;i<r.numberOfGlyphs;i++)r.glyphNameIndex[i]=n.parseUShort();break;case 2.5:r.numberOfGlyphs=n.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var a=0;a<r.numberOfGlyphs;a++)r.offset[a]=n.parseChar();break}return r}var yv={parse:mv},Pn={};Pn.UTF8=function(e,t,r){for(var n=[],i=r,a=0;a<i;a++,t+=1)n[a]=e.getUint8(t);return String.fromCharCode.apply(null,n)};Pn.UTF16=function(e,t,r){for(var n=[],i=r/2,a=0;a<i;a++,t+=2)n[a]=e.getUint16(t);return String.fromCharCode.apply(null,n)};var bv={"x-mac-croatian":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\u0160\u2122\xB4\xA8\u2260\u017D\xD8\u221E\xB1\u2264\u2265\u2206\xB5\u2202\u2211\u220F\u0161\u222B\xAA\xBA\u03A9\u017E\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u0106\xAB\u010C\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u0110\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\uF8FF\xA9\u2044\u20AC\u2039\u203A\xC6\xBB\u2013\xB7\u201A\u201E\u2030\xC2\u0107\xC1\u010D\xC8\xCD\xCE\xCF\xCC\xD3\xD4\u0111\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u03C0\xCB\u02DA\xB8\xCA\xE6\u02C7","x-mac-cyrillic":"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u2020\xB0\u0490\xA3\xA7\u2022\xB6\u0406\xAE\xA9\u2122\u0402\u0452\u2260\u0403\u0453\u221E\xB1\u2264\u2265\u0456\xB5\u0491\u0408\u0404\u0454\u0407\u0457\u0409\u0459\u040A\u045A\u0458\u0405\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\u040B\u045B\u040C\u045C\u0455\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u201E\u040E\u045E\u040F\u045F\u2116\u0401\u0451\u044F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E","x-mac-gaelic":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u1E02\xB1\u2264\u2265\u1E03\u010A\u010B\u1E0A\u1E0B\u1E1E\u1E1F\u0120\u0121\u1E40\xE6\xF8\u1E41\u1E56\u1E57\u027C\u0192\u017F\u1E60\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\u1E61\u1E9B\xFF\u0178\u1E6A\u20AC\u2039\u203A\u0176\u0177\u1E6B\xB7\u1EF2\u1EF3\u204A\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\u2663\xD2\xDA\xDB\xD9\u0131\xDD\xFD\u0174\u0175\u1E84\u1E85\u1E80\u1E81\u1E82\u1E83","x-mac-greek":"\xC4\xB9\xB2\xC9\xB3\xD6\xDC\u0385\xE0\xE2\xE4\u0384\xA8\xE7\xE9\xE8\xEA\xEB\xA3\u2122\xEE\xEF\u2022\xBD\u2030\xF4\xF6\xA6\u20AC\xF9\xFB\xFC\u2020\u0393\u0394\u0398\u039B\u039E\u03A0\xDF\xAE\xA9\u03A3\u03AA\xA7\u2260\xB0\xB7\u0391\xB1\u2264\u2265\xA5\u0392\u0395\u0396\u0397\u0399\u039A\u039C\u03A6\u03AB\u03A8\u03A9\u03AC\u039D\xAC\u039F\u03A1\u2248\u03A4\xAB\xBB\u2026\xA0\u03A5\u03A7\u0386\u0388\u0153\u2013\u2015\u201C\u201D\u2018\u2019\xF7\u0389\u038A\u038C\u038E\u03AD\u03AE\u03AF\u03CC\u038F\u03CD\u03B1\u03B2\u03C8\u03B4\u03B5\u03C6\u03B3\u03B7\u03B9\u03BE\u03BA\u03BB\u03BC\u03BD\u03BF\u03C0\u03CE\u03C1\u03C3\u03C4\u03B8\u03C9\u03C2\u03C7\u03C5\u03B6\u03CA\u03CB\u0390\u03B0\xAD","x-mac-icelandic":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\xDD\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u03A9\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\u20AC\xD0\xF0\xDE\xFE\xFD\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uF8FF\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7","x-mac-inuit":"\u1403\u1404\u1405\u1406\u140A\u140B\u1431\u1432\u1433\u1434\u1438\u1439\u1449\u144E\u144F\u1450\u1451\u1455\u1456\u1466\u146D\u146E\u146F\u1470\u1472\u1473\u1483\u148B\u148C\u148D\u148E\u1490\u1491\xB0\u14A1\u14A5\u14A6\u2022\xB6\u14A7\xAE\xA9\u2122\u14A8\u14AA\u14AB\u14BB\u14C2\u14C3\u14C4\u14C5\u14C7\u14C8\u14D0\u14EF\u14F0\u14F1\u14F2\u14F4\u14F5\u1505\u14D5\u14D6\u14D7\u14D8\u14DA\u14DB\u14EA\u1528\u1529\u152A\u152B\u152D\u2026\xA0\u152E\u153E\u1555\u1556\u1557\u2013\u2014\u201C\u201D\u2018\u2019\u1558\u1559\u155A\u155D\u1546\u1547\u1548\u1549\u154B\u154C\u1550\u157F\u1580\u1581\u1582\u1583\u1584\u1585\u158F\u1590\u1591\u1592\u1593\u1594\u1595\u1671\u1672\u1673\u1674\u1675\u1676\u1596\u15A0\u15A1\u15A2\u15A3\u15A4\u15A5\u15A6\u157C\u0141\u0142","x-mac-ce":"\xC4\u0100\u0101\xC9\u0104\xD6\xDC\xE1\u0105\u010C\xE4\u010D\u0106\u0107\xE9\u0179\u017A\u010E\xED\u010F\u0112\u0113\u0116\xF3\u0117\xF4\xF6\xF5\xFA\u011A\u011B\xFC\u2020\xB0\u0118\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\u0119\xA8\u2260\u0123\u012E\u012F\u012A\u2264\u2265\u012B\u0136\u2202\u2211\u0142\u013B\u013C\u013D\u013E\u0139\u013A\u0145\u0146\u0143\xAC\u221A\u0144\u0147\u2206\xAB\xBB\u2026\xA0\u0148\u0150\xD5\u0151\u014C\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\u014D\u0154\u0155\u0158\u2039\u203A\u0159\u0156\u0157\u0160\u201A\u201E\u0161\u015A\u015B\xC1\u0164\u0165\xCD\u017D\u017E\u016A\xD3\xD4\u016B\u016E\xDA\u016F\u0170\u0171\u0172\u0173\xDD\xFD\u0137\u017B\u0141\u017C\u0122\u02C7",macintosh:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u03A9\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\u20AC\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uF8FF\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7","x-mac-romanian":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\u0102\u0218\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u03A9\u0103\u0219\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\u20AC\u2039\u203A\u021A\u021B\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uF8FF\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7","x-mac-turkish":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u03A9\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u011E\u011F\u0130\u0131\u015E\u015F\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uF8FF\xD2\xDA\xDB\xD9\uF8A0\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"};Pn.MACSTRING=function(e,t,r,n){var i=bv[n];if(i!==void 0){for(var a="",o=0;o<r;o++){var l=e.getUint8(t+o);l<=127?a+=String.fromCharCode(l):a+=i[l&127]}return a}};function xv(e,t){var r=new se.Parser(e,t),n=r.parseULong();Oe.argument(n===1,"Unsupported META table version."),r.parseULong(),r.parseULong();for(var i=r.parseULong(),a={},o=0;o<i;o++){var l=r.parseTag(),s=r.parseULong(),u=r.parseULong(),f=Pn.UTF8(e,t+s,u);a[l]=f}return a}var wv={parse:xv};function Ns(e,t){for(var r=[],n=12,i=0;i<t;i+=1){var a=se.getTag(e,n),o=se.getULong(e,n+4),l=se.getULong(e,n+8),s=se.getULong(e,n+12);r.push({tag:a,checksum:o,offset:l,length:s,compression:!1}),n+=16}return r}function Sv(e,t){for(var r=[],n=44,i=0;i<t;i+=1){var a=se.getTag(e,n),o=se.getULong(e,n+4),l=se.getULong(e,n+8),s=se.getULong(e,n+12),u=void 0;l<s?u="WOFF":u=!1,r.push({tag:a,offset:o,compression:u,compressedLength:l,length:s}),n+=20}return r}function $e(e,t){if(t.compression==="WOFF"){var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),n=new Uint8Array(t.length);if($p(r,n),n.byteLength!==t.length)throw new Error("Decompression error: "+t.tag+" decompressed length doesn't match recorded length");var i=new DataView(n.buffer,0);return{data:i,offset:0}}else return{data:e,offset:t.offset}}function Ev(e,t){t=t??{};var r,n=new it({empty:!0}),i=new DataView(e,0),a,o=[],l=se.getTag(i,0);if(l==="\0\0\0"||l==="true"||l==="typ1")n.outlinesFormat="truetype",a=se.getUShort(i,4),o=Ns(i,a);else if(l==="OTTO")n.outlinesFormat="cff",a=se.getUShort(i,4),o=Ns(i,a);else if(l==="wOFF"){var s=se.getTag(i,4);if(s==="\0\0\0")n.outlinesFormat="truetype";else if(s==="OTTO")n.outlinesFormat="cff";else throw new Error("Unsupported OpenType flavor "+l);a=se.getUShort(i,12),o=Sv(i,a)}else throw new Error("Unsupported OpenType signature "+l);for(var u,f,c,p,h,m,d,g,b,x,_,L=0;L<a;L+=1){var T=o[L],E=void 0;switch(T.tag){case"cmap":E=$e(i,T),n.tables.cmap=w0.parse(E.data,E.offset),n.encoding=new Hs(n.tables.cmap);break;case"cvt ":E=$e(i,T),_=new se.Parser(E.data,E.offset),n.tables.cvt=_.parseShortList(T.length/2);break;case"fvar":f=T;break;case"fpgm":E=$e(i,T),_=new se.Parser(E.data,E.offset),n.tables.fpgm=_.parseByteList(T.length);break;case"head":E=$e(i,T),n.tables.head=Q0.parse(E.data,E.offset),n.unitsPerEm=n.tables.head.unitsPerEm,r=n.tables.head.indexToLocFormat;break;case"hhea":E=$e(i,T),n.tables.hhea=ev.parse(E.data,E.offset),n.ascender=n.tables.hhea.ascender,n.descender=n.tables.hhea.descender,n.numberOfHMetrics=n.tables.hhea.numberOfHMetrics;break;case"hmtx":d=T;break;case"ltag":E=$e(i,T),ltagTable=fv.parse(E.data,E.offset);break;case"maxp":E=$e(i,T),n.tables.maxp=dv.parse(E.data,E.offset),n.numGlyphs=n.tables.maxp.numGlyphs;break;case"OS/2":E=$e(i,T),n.tables.os2=gv.parse(E.data,E.offset);break;case"post":E=$e(i,T),n.tables.post=yv.parse(E.data,E.offset);break;case"prep":E=$e(i,T),_=new se.Parser(E.data,E.offset),n.tables.prep=_.parseByteList(T.length);break;case"glyf":c=T;break;case"loca":b=T;break;case"CFF ":u=T;break;case"kern":g=T;break;case"GDEF":p=T;break;case"GPOS":h=T;break;case"GSUB":m=T;break;case"meta":x=T;break}}if(c&&b){var R=r===0,C=$e(i,b),D=pv.parse(C.data,C.offset,n.numGlyphs,R),M=$e(i,c);n.glyphs=Qs.parse(M.data,M.offset,D,n,t)}else if(u){var H=$e(i,u);D0.parse(H.data,H.offset,n,t)}else throw new Error("Font doesn't contain TrueType or CFF outlines.");var Q=$e(i,d);if(iv.parse(n,Q.data,Q.offset,n.numberOfHMetrics,n.numGlyphs,n.glyphs,t),Zp(n,t),g){var ee=$e(i,g);n.kerningPairs=lv.parse(ee.data,ee.offset)}else n.kerningPairs={};if(p){var I=$e(i,p);n.tables.gdef=H0.parse(I.data,I.offset)}if(h){var U=$e(i,h);n.tables.gpos=q0.parse(U.data,U.offset),n.position.init()}if(m){var O=$e(i,m);n.tables.gsub=Z0.parse(O.data,O.offset)}if(f){var q=$e(i,f);n.tables.fvar=W0.parse(q.data,q.offset,n.names)}if(x){var K=$e(i,x);n.tables.meta=wv.parse(K.data,K.offset),n.metas=n.tables.meta}return n}function kv(){}function Tv(){}var _v=Object.freeze({__proto__:null,Font:it,Glyph:Zt,Path:nt,_parse:se,parse:Ev,load:kv,loadSync:Tv}),Rn=_v;var Lv=Object.create,Jn=Object.defineProperty,Cv=Object.getOwnPropertyDescriptor,Ov=Object.getOwnPropertyNames,Av=Object.getPrototypeOf,Iv=Object.prototype.hasOwnProperty,La=(e,t)=>()=>(e&&(t=e(e=0)),t),ue=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ca=(e,t)=>{for(var r in t)Jn(e,r,{get:t[r],enumerable:!0})},Dl=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ov(t))!Iv.call(e,i)&&i!==r&&Jn(e,i,{get:()=>t[i],enumerable:!(n=Cv(t,i))||n.enumerable});return e},Pv=(e,t,r)=>(r=e!=null?Lv(Av(e)):{},Dl(t||!e||!e.__esModule?Jn(r,"default",{value:e,enumerable:!0}):r,e)),Yn=e=>Dl(Jn({},"__esModule",{value:!0}),e),Ul={};Ca(Ul,{getYogaModule:()=>Rv});async function Rv(){return{}}var Fv=La(()=>{}),Nl=ue(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:()=>t});function t(r){if(r=`${r}`,r==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(r))return r.replace(/^[+-]?/,n=>n==="-"?"":"-");if(r.includes("var(")||r.includes("calc("))return`calc(${r} * -1)`}}),Dv=ue(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:()=>t});var t=["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","display","aspectRatio","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","whitespace","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","content"]}),Uv=ue(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:()=>t});function t(r,n){return r===void 0?n:Array.isArray(r)?r:[...new Set(n.filter(i=>r!==!1&&r[i]!==!1).concat(Object.keys(r).filter(i=>r[i]!==!1)))]}}),Ml=ue((e,t)=>{t.exports={content:[],presets:[],darkMode:"media",theme:{screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:({colors:r})=>({inherit:r.inherit,current:r.current,transparent:r.transparent,black:r.black,white:r.white,slate:r.slate,gray:r.gray,zinc:r.zinc,neutral:r.neutral,stone:r.stone,red:r.red,orange:r.orange,amber:r.amber,yellow:r.yellow,lime:r.lime,green:r.green,emerald:r.emerald,teal:r.teal,cyan:r.cyan,sky:r.sky,blue:r.blue,indigo:r.indigo,violet:r.violet,purple:r.purple,fuchsia:r.fuchsia,pink:r.pink,rose:r.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:r})=>r("blur"),backdropBrightness:({theme:r})=>r("brightness"),backdropContrast:({theme:r})=>r("contrast"),backdropGrayscale:({theme:r})=>r("grayscale"),backdropHueRotate:({theme:r})=>r("hueRotate"),backdropInvert:({theme:r})=>r("invert"),backdropOpacity:({theme:r})=>r("opacity"),backdropSaturate:({theme:r})=>r("saturate"),backdropSepia:({theme:r})=>r("sepia"),backgroundColor:({theme:r})=>r("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:r})=>r("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},borderColor:({theme:r})=>({...r("colors"),DEFAULT:r("colors.gray.200","currentColor")}),borderOpacity:({theme:r})=>r("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:r})=>({...r("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:r})=>r("colors"),caretColor:({theme:r})=>r("colors"),accentColor:({theme:r})=>({...r("colors"),auto:"auto"}),contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},container:{},content:{none:"none"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:r})=>r("borderColor"),divideOpacity:({theme:r})=>r("borderOpacity"),divideWidth:({theme:r})=>r("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:r})=>r("colors"),grayscale:{0:"0",DEFAULT:"100%"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{0:"0",DEFAULT:"100%"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:r})=>({auto:"auto",...r("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:r})=>r("spacing"),gradientColorStops:({theme:r})=>r("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-full":"1 / -1"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridTemplateColumns:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))"},height:({theme:r})=>({auto:"auto",...r("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),inset:({theme:r})=>({auto:"auto",...r("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},margin:({theme:r})=>({auto:"auto",...r("spacing")}),maxHeight:({theme:r})=>({...r("spacing"),full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:r,breakpoints:n})=>({none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...n(r("screens"))}),minHeight:{0:"0px",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},padding:({theme:r})=>r("spacing"),placeholderColor:({theme:r})=>r("colors"),placeholderOpacity:({theme:r})=>r("opacity"),outlineColor:({theme:r})=>r("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringColor:({theme:r})=>({DEFAULT:r("colors.blue.500","#3b82f6"),...r("colors")}),ringOffsetColor:({theme:r})=>r("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:r})=>({DEFAULT:"0.5",...r("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},scrollMargin:({theme:r})=>({...r("spacing")}),scrollPadding:({theme:r})=>r("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:r})=>({...r("spacing")}),stroke:({theme:r})=>r("colors"),strokeWidth:{0:"0",1:"1",2:"2"},textColor:({theme:r})=>r("colors"),textDecorationColor:({theme:r})=>r("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:r})=>({...r("spacing")}),textOpacity:({theme:r})=>r("opacity"),transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:r})=>({...r("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),width:({theme:r})=>({auto:"auto",...r("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},variantOrder:["first","last","odd","even","visited","checked","empty","read-only","group-hover","group-focus","focus-within","hover","focus","focus-visible","active","disabled"],plugins:[]}}),Qn={};Ca(Qn,{default:()=>Wl});var Wl,Oa=La(()=>{Wl={info(e,t){console.info(...Array.isArray(e)?[e]:[t,e])},warn(e,t){console.warn(...Array.isArray(e)?[e]:[t,e])},risk(e,t){console.error(...Array.isArray(e)?[e]:[t,e])}}}),Nv=ue(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:()=>i});var t=r((Oa(),Yn(Qn)));function r(a){return a&&a.__esModule?a:{default:a}}function n({version:a,from:o,to:l}){t.default.warn(`${o}-color-renamed`,[`As of Tailwind CSS ${a}, \`${o}\` has been renamed to \`${l}\`.`,"Update your configuration file to silence this warning."])}var i={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return n({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return n({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return n({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return n({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return n({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}),Mv=ue(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"defaults",{enumerable:!0,get:()=>t});function t(r,...n){for(let o of n){for(let l in o){var i;!(r==null||(i=r.hasOwnProperty)===null||i===void 0)&&i.call(r,l)||(r[l]=o[l])}for(let l of Object.getOwnPropertySymbols(o)){var a;!(r==null||(a=r.hasOwnProperty)===null||a===void 0)&&a.call(r,l)||(r[l]=o[l])}}return r}}),Wv=ue(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"toPath",{enumerable:!0,get:()=>t});function t(r){if(Array.isArray(r))return r;let n=r.split("[").length-1,i=r.split("]").length-1;if(n!==i)throw new Error(`Path is invalid. Has unbalanced brackets: ${r}`);return r.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}}),Gv=ue(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeConfig",{enumerable:!0,get:()=>i});var t=n((Oa(),Yn(Qn)));function r(a){if(typeof WeakMap!="function")return null;var o=new WeakMap,l=new WeakMap;return(r=function(s){return s?l:o})(a)}function n(a,o){if(!o&&a&&a.__esModule)return a;if(a===null||typeof a!="object"&&typeof a!="function")return{default:a};var l=r(o);if(l&&l.has(a))return l.get(a);var s={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in a)if(f!=="default"&&Object.prototype.hasOwnProperty.call(a,f)){var c=u?Object.getOwnPropertyDescriptor(a,f):null;c&&(c.get||c.set)?Object.defineProperty(s,f,c):s[f]=a[f]}return s.default=a,l&&l.set(a,s),s}function i(a){if((()=>{if(a.purge||!a.content||!Array.isArray(a.content)&&!(typeof a.content=="object"&&a.content!==null))return!1;if(Array.isArray(a.content))return a.content.every(l=>typeof l=="string"?!0:!(typeof l?.raw!="string"||l!=null&&l.extension&&typeof l?.extension!="string"));if(typeof a.content=="object"&&a.content!==null){if(Object.keys(a.content).some(l=>!["files","extract","transform"].includes(l)))return!1;if(Array.isArray(a.content.files)){if(!a.content.files.every(l=>typeof l=="string"?!0:!(typeof l?.raw!="string"||l!=null&&l.extension&&typeof l?.extension!="string")))return!1;if(typeof a.content.extract=="object"){for(let l of Object.values(a.content.extract))if(typeof l!="function")return!1}else if(!(a.content.extract===void 0||typeof a.content.extract=="function"))return!1;if(typeof a.content.transform=="object"){for(let l of Object.values(a.content.transform))if(typeof l!="function")return!1}else if(!(a.content.transform===void 0||typeof a.content.transform=="function"))return!1}return!0}return!1})()||t.default.warn("purge-deprecation",["The `purge`/`content` options have changed in Tailwind CSS v3.0.","Update your configuration file to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]),a.safelist=(()=>{var l;let{content:s,purge:u,safelist:f}=a;return Array.isArray(f)?f:Array.isArray(s?.safelist)?s.safelist:Array.isArray(u?.safelist)?u.safelist:Array.isArray(u==null||(l=u.options)===null||l===void 0?void 0:l.safelist)?u.options.safelist:[]})(),typeof a.prefix=="function")t.default.warn("prefix-function",["As of Tailwind CSS v3.0, `prefix` cannot be a function.","Update `prefix` in your configuration to be a string to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]),a.prefix="";else{var o;a.prefix=(o=a.prefix)!==null&&o!==void 0?o:""}a.content={files:(()=>{let{content:l,purge:s}=a;return Array.isArray(s)?s:Array.isArray(s?.content)?s.content:Array.isArray(l)?l:Array.isArray(l?.content)?l.content:Array.isArray(l?.files)?l.files:[]})(),extract:(()=>{let l=(()=>{var f,c,p,h,m,d,g,b,x,_;return!((f=a.purge)===null||f===void 0)&&f.extract?a.purge.extract:!((c=a.content)===null||c===void 0)&&c.extract?a.content.extract:!((p=a.purge)===null||p===void 0||(h=p.extract)===null||h===void 0)&&h.DEFAULT?a.purge.extract.DEFAULT:!((m=a.content)===null||m===void 0||(d=m.extract)===null||d===void 0)&&d.DEFAULT?a.content.extract.DEFAULT:!((g=a.purge)===null||g===void 0||(b=g.options)===null||b===void 0)&&b.extractors?a.purge.options.extractors:!((x=a.content)===null||x===void 0||(_=x.options)===null||_===void 0)&&_.extractors?a.content.options.extractors:{}})(),s={},u=(()=>{var f,c,p,h;if(!((f=a.purge)===null||f===void 0||(c=f.options)===null||c===void 0)&&c.defaultExtractor)return a.purge.options.defaultExtractor;if(!((p=a.content)===null||p===void 0||(h=p.options)===null||h===void 0)&&h.defaultExtractor)return a.content.options.defaultExtractor})();if(u!==void 0&&(s.DEFAULT=u),typeof l=="function")s.DEFAULT=l;else if(Array.isArray(l))for(let{extensions:f,extractor:c}of l??[])for(let p of f)s[p]=c;else typeof l=="object"&&l!==null&&Object.assign(s,l);return s})(),transform:(()=>{let l=(()=>{var u,f,c,p,h,m;return!((u=a.purge)===null||u===void 0)&&u.transform?a.purge.transform:!((f=a.content)===null||f===void 0)&&f.transform?a.content.transform:!((c=a.purge)===null||c===void 0||(p=c.transform)===null||p===void 0)&&p.DEFAULT?a.purge.transform.DEFAULT:!((h=a.content)===null||h===void 0||(m=h.transform)===null||m===void 0)&&m.DEFAULT?a.content.transform.DEFAULT:{}})(),s={};return typeof l=="function"&&(s.DEFAULT=l),typeof l=="object"&&l!==null&&Object.assign(s,l),s})()};for(let l of a.content.files)if(typeof l=="string"&&/{([^,]*?)}/g.test(l)){t.default.warn("invalid-glob-braces",[`The glob pattern ${(0,t.dim)(l)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,t.dim)(l.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return a}}),Bv=ue(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:()=>t});function t(r){if(Object.prototype.toString.call(r)!=="[object Object]")return!1;let n=Object.getPrototypeOf(r);return n===null||n===Object.prototype}}),$v=ue(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"cloneDeep",{enumerable:!0,get:()=>t});function t(r){return Array.isArray(r)?r.map(n=>t(n)):typeof r=="object"&&r!==null?Object.fromEntries(Object.entries(r).map(([n,i])=>[n,t(i)])):r}}),Gl=ue((e,t)=>{"use strict";e.__esModule=!0,e.default=i;function r(a){for(var o=a.toLowerCase(),l="",s=!1,u=0;u<6&&o[u]!==void 0;u++){var f=o.charCodeAt(u),c=f>=97&&f<=102||f>=48&&f<=57;if(s=f===32,!c)break;l+=o[u]}if(l.length!==0){var p=parseInt(l,16),h=p>=55296&&p<=57343;return h||p===0||p>1114111?["\uFFFD",l.length+(s?1:0)]:[String.fromCodePoint(p),l.length+(s?1:0)]}}var n=/\\/;function i(a){var o=n.test(a);if(!o)return a;for(var l="",s=0;s<a.length;s++){if(a[s]==="\\"){var u=r(a.slice(s+1,s+7));if(u!==void 0){l+=u[0],s+=u[1];continue}if(a[s+1]==="\\"){l+="\\",s++;continue}a.length===s+1&&(l+=a[s]);continue}l+=a[s]}return l}t.exports=e.default}),jv=ue((e,t)=>{"use strict";e.__esModule=!0,e.default=r;function r(n){for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];for(;a.length>0;){var l=a.shift();if(!n[l])return;n=n[l]}return n}t.exports=e.default}),zv=ue((e,t)=>{"use strict";e.__esModule=!0,e.default=r;function r(n){for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];for(;a.length>0;){var l=a.shift();n[l]||(n[l]={}),n=n[l]}}t.exports=e.default}),Vv=ue((e,t)=>{"use strict";e.__esModule=!0,e.default=r;function r(n){for(var i="",a=n.indexOf("/*"),o=0;a>=0;){i=i+n.slice(o,a);var l=n.indexOf("*/",a+2);if(l<0)return i;o=l+2,a=n.indexOf("/*",o)}return i=i+n.slice(o),i}t.exports=e.default}),Kn=ue(e=>{"use strict";e.__esModule=!0,e.stripComments=e.ensureObject=e.getProp=e.unesc=void 0;var t=a(Gl());e.unesc=t.default;var r=a(jv());e.getProp=r.default;var n=a(zv());e.ensureObject=n.default;var i=a(Vv());e.stripComments=i.default;function a(o){return o&&o.__esModule?o:{default:o}}}),lr=ue((e,t)=>{"use strict";e.__esModule=!0,e.default=void 0;var r=Kn();function n(l,s){for(var u=0;u<s.length;u++){var f=s[u];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(l,f.key,f)}}function i(l,s,u){return s&&n(l.prototype,s),u&&n(l,u),l}var a=function l(s,u){if(typeof s!="object"||s===null)return s;var f=new s.constructor;for(var c in s)if(s.hasOwnProperty(c)){var p=s[c],h=typeof p;c==="parent"&&h==="object"?u&&(f[c]=u):p instanceof Array?f[c]=p.map(function(m){return l(m,f)}):f[c]=l(p,f)}return f},o=function(){function l(u){u===void 0&&(u={}),Object.assign(this,u),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var s=l.prototype;return s.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},s.replaceWith=function(){if(this.parent){for(var u in arguments)this.parent.insertBefore(this,arguments[u]);this.remove()}return this},s.next=function(){return this.parent.at(this.parent.index(this)+1)},s.prev=function(){return this.parent.at(this.parent.index(this)-1)},s.clone=function(u){u===void 0&&(u={});var f=a(this);for(var c in u)f[c]=u[c];return f},s.appendToPropertyAndEscape=function(u,f,c){this.raws||(this.raws={});var p=this[u],h=this.raws[u];this[u]=p+f,h||c!==f?this.raws[u]=(h||p)+c:delete this.raws[u]},s.setPropertyAndEscape=function(u,f,c){this.raws||(this.raws={}),this[u]=f,this.raws[u]=c},s.setPropertyWithoutEscape=function(u,f){this[u]=f,this.raws&&delete this.raws[u]},s.isAtPosition=function(u,f){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>u||this.source.end.line<u||this.source.start.line===u&&this.source.start.column>f||this.source.end.line===u&&this.source.end.column<f)},s.stringifyProperty=function(u){return this.raws&&this.raws[u]||this[u]},s.valueToString=function(){return String(this.stringifyProperty("value"))},s.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},i(l,[{key:"rawSpaceBefore",get:function(){var u=this.raws&&this.raws.spaces&&this.raws.spaces.before;return u===void 0&&(u=this.spaces&&this.spaces.before),u||""},set:function(u){(0,r.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=u}},{key:"rawSpaceAfter",get:function(){var u=this.raws&&this.raws.spaces&&this.raws.spaces.after;return u===void 0&&(u=this.spaces.after),u||""},set:function(u){(0,r.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=u}}]),l}();e.default=o,t.exports=e.default}),at=ue(e=>{"use strict";e.__esModule=!0,e.UNIVERSAL=e.ATTRIBUTE=e.CLASS=e.COMBINATOR=e.COMMENT=e.ID=e.NESTING=e.PSEUDO=e.ROOT=e.SELECTOR=e.STRING=e.TAG=void 0;var t="tag";e.TAG=t;var r="string";e.STRING=r;var n="selector";e.SELECTOR=n;var i="root";e.ROOT=i;var a="pseudo";e.PSEUDO=a;var o="nesting";e.NESTING=o;var l="id";e.ID=l;var s="comment";e.COMMENT=s;var u="combinator";e.COMBINATOR=u;var f="class";e.CLASS=f;var c="attribute";e.ATTRIBUTE=c;var p="universal";e.UNIVERSAL=p}),Aa=ue((e,t)=>{"use strict";e.__esModule=!0,e.default=void 0;var r=o(lr()),n=a(at());function i(){if(typeof WeakMap!="function")return null;var d=new WeakMap;return i=function(){return d},d}function a(d){if(d&&d.__esModule)return d;if(d===null||typeof d!="object"&&typeof d!="function")return{default:d};var g=i();if(g&&g.has(d))return g.get(d);var b={},x=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in d)if(Object.prototype.hasOwnProperty.call(d,_)){var L=x?Object.getOwnPropertyDescriptor(d,_):null;L&&(L.get||L.set)?Object.defineProperty(b,_,L):b[_]=d[_]}return b.default=d,g&&g.set(d,b),b}function o(d){return d&&d.__esModule?d:{default:d}}function l(d,g){var b;if(typeof Symbol>"u"||d[Symbol.iterator]==null){if(Array.isArray(d)||(b=s(d))||g&&d&&typeof d.length=="number"){b&&(d=b);var x=0;return function(){return x>=d.length?{done:!0}:{done:!1,value:d[x++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
50
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return b=d[Symbol.iterator](),b.next.bind(b)}function s(d,g){if(d){if(typeof d=="string")return u(d,g);var b=Object.prototype.toString.call(d).slice(8,-1);if(b==="Object"&&d.constructor&&(b=d.constructor.name),b==="Map"||b==="Set")return Array.from(d);if(b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return u(d,g)}}function u(d,g){(g==null||g>d.length)&&(g=d.length);for(var b=0,x=new Array(g);b<g;b++)x[b]=d[b];return x}function f(d,g){for(var b=0;b<g.length;b++){var x=g[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(d,x.key,x)}}function c(d,g,b){return g&&f(d.prototype,g),b&&f(d,b),d}function p(d,g){d.prototype=Object.create(g.prototype),d.prototype.constructor=d,h(d,g)}function h(d,g){return h=Object.setPrototypeOf||function(b,x){return b.__proto__=x,b},h(d,g)}var m=function(d){p(g,d);function g(x){var _;return _=d.call(this,x)||this,_.nodes||(_.nodes=[]),_}var b=g.prototype;return b.append=function(x){return x.parent=this,this.nodes.push(x),this},b.prepend=function(x){return x.parent=this,this.nodes.unshift(x),this},b.at=function(x){return this.nodes[x]},b.index=function(x){return typeof x=="number"?x:this.nodes.indexOf(x)},b.removeChild=function(x){x=this.index(x),this.at(x).parent=void 0,this.nodes.splice(x,1);var _;for(var L in this.indexes)_=this.indexes[L],_>=x&&(this.indexes[L]=_-1);return this},b.removeAll=function(){for(var x=l(this.nodes),_;!(_=x()).done;){var L=_.value;L.parent=void 0}return this.nodes=[],this},b.empty=function(){return this.removeAll()},b.insertAfter=function(x,_){_.parent=this;var L=this.index(x);this.nodes.splice(L+1,0,_),_.parent=this;var T;for(var E in this.indexes)T=this.indexes[E],L<=T&&(this.indexes[E]=T+1);return this},b.insertBefore=function(x,_){_.parent=this;var L=this.index(x);this.nodes.splice(L,0,_),_.parent=this;var T;for(var E in this.indexes)T=this.indexes[E],T<=L&&(this.indexes[E]=T+1);return this},b._findChildAtPosition=function(x,_){var L=void 0;return this.each(function(T){if(T.atPosition){var E=T.atPosition(x,_);if(E)return L=E,!1}else if(T.isAtPosition(x,_))return L=T,!1}),L},b.atPosition=function(x,_){if(this.isAtPosition(x,_))return this._findChildAtPosition(x,_)||this},b._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},b.each=function(x){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var _=this.lastEach;if(this.indexes[_]=0,!!this.length){for(var L,T;this.indexes[_]<this.length&&(L=this.indexes[_],T=x(this.at(L),L),T!==!1);)this.indexes[_]+=1;if(delete this.indexes[_],T===!1)return!1}},b.walk=function(x){return this.each(function(_,L){var T=x(_,L);if(T!==!1&&_.length&&(T=_.walk(x)),T===!1)return!1})},b.walkAttributes=function(x){var _=this;return this.walk(function(L){if(L.type===n.ATTRIBUTE)return x.call(_,L)})},b.walkClasses=function(x){var _=this;return this.walk(function(L){if(L.type===n.CLASS)return x.call(_,L)})},b.walkCombinators=function(x){var _=this;return this.walk(function(L){if(L.type===n.COMBINATOR)return x.call(_,L)})},b.walkComments=function(x){var _=this;return this.walk(function(L){if(L.type===n.COMMENT)return x.call(_,L)})},b.walkIds=function(x){var _=this;return this.walk(function(L){if(L.type===n.ID)return x.call(_,L)})},b.walkNesting=function(x){var _=this;return this.walk(function(L){if(L.type===n.NESTING)return x.call(_,L)})},b.walkPseudos=function(x){var _=this;return this.walk(function(L){if(L.type===n.PSEUDO)return x.call(_,L)})},b.walkTags=function(x){var _=this;return this.walk(function(L){if(L.type===n.TAG)return x.call(_,L)})},b.walkUniversals=function(x){var _=this;return this.walk(function(L){if(L.type===n.UNIVERSAL)return x.call(_,L)})},b.split=function(x){var _=this,L=[];return this.reduce(function(T,E,R){var C=x.call(_,E);return L.push(E),C?(T.push(L),L=[]):R===_.length-1&&T.push(L),T},[])},b.map=function(x){return this.nodes.map(x)},b.reduce=function(x,_){return this.nodes.reduce(x,_)},b.every=function(x){return this.nodes.every(x)},b.some=function(x){return this.nodes.some(x)},b.filter=function(x){return this.nodes.filter(x)},b.sort=function(x){return this.nodes.sort(x)},b.toString=function(){return this.map(String).join("")},c(g,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),g}(r.default);e.default=m,t.exports=e.default}),Bl=ue((e,t)=>{"use strict";e.__esModule=!0,e.default=void 0;var r=i(Aa()),n=at();function i(f){return f&&f.__esModule?f:{default:f}}function a(f,c){for(var p=0;p<c.length;p++){var h=c[p];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}function o(f,c,p){return c&&a(f.prototype,c),p&&a(f,p),f}function l(f,c){f.prototype=Object.create(c.prototype),f.prototype.constructor=f,s(f,c)}function s(f,c){return s=Object.setPrototypeOf||function(p,h){return p.__proto__=h,p},s(f,c)}var u=function(f){l(c,f);function c(h){var m;return m=f.call(this,h)||this,m.type=n.ROOT,m}var p=c.prototype;return p.toString=function(){var h=this.reduce(function(m,d){return m.push(String(d)),m},[]).join(",");return this.trailingComma?h+",":h},p.error=function(h,m){return this._error?this._error(h,m):new Error(h)},o(c,[{key:"errorGenerator",set:function(h){this._error=h}}]),c}(r.default);e.default=u,t.exports=e.default}),$l=ue((e,t)=>{"use strict";e.__esModule=!0,e.default=void 0;var r=i(Aa()),n=at();function i(s){return s&&s.__esModule?s:{default:s}}function a(s,u){s.prototype=Object.create(u.prototype),s.prototype.constructor=s,o(s,u)}function o(s,u){return o=Object.setPrototypeOf||function(f,c){return f.__proto__=c,f},o(s,u)}var l=function(s){a(u,s);function u(f){var c;return c=s.call(this,f)||this,c.type=n.SELECTOR,c}return u}(r.default);e.default=l,t.exports=e.default}),Ia=ue((e,t)=>{"use strict";var r={},n=r.hasOwnProperty,i=function(u,f){if(!u)return f;var c={};for(var p in f)c[p]=n.call(u,p)?u[p]:f[p];return c},a=/[ -,\.\/:-@\[-\^`\{-~]/,o=/[ -,\.\/:-@\[\]\^`\{-~]/,l=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,s=function u(f,c){c=i(c,u.options),c.quotes!="single"&&c.quotes!="double"&&(c.quotes="single");for(var p=c.quotes=="double"?'"':"'",h=c.isIdentifier,m=f.charAt(0),d="",g=0,b=f.length;g<b;){var x=f.charAt(g++),_=x.charCodeAt(),L=void 0;if(_<32||_>126){if(_>=55296&&_<=56319&&g<b){var T=f.charCodeAt(g++);(T&64512)==56320?_=((_&1023)<<10)+(T&1023)+65536:g--}L="\\"+_.toString(16).toUpperCase()+" "}else c.escapeEverything?a.test(x)?L="\\"+x:L="\\"+_.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(x)?L="\\"+_.toString(16).toUpperCase()+" ":x=="\\"||!h&&(x=='"'&&p==x||x=="'"&&p==x)||h&&o.test(x)?L="\\"+x:L=x;d+=L}return h&&(/^-[-\d]/.test(d)?d="\\-"+d.slice(1):/\d/.test(m)&&(d="\\3"+m+" "+d.slice(1))),d=d.replace(l,function(E,R,C){return R&&R.length%2?E:(R||"")+C}),!h&&c.wrap?p+d+p:d};s.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},s.version="3.0.0",t.exports=s}),jl=ue((e,t)=>{"use strict";e.__esModule=!0,e.default=void 0;var r=o(Ia()),n=Kn(),i=o(lr()),a=at();function o(p){return p&&p.__esModule?p:{default:p}}function l(p,h){for(var m=0;m<h.length;m++){var d=h[m];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(p,d.key,d)}}function s(p,h,m){return h&&l(p.prototype,h),m&&l(p,m),p}function u(p,h){p.prototype=Object.create(h.prototype),p.prototype.constructor=p,f(p,h)}function f(p,h){return f=Object.setPrototypeOf||function(m,d){return m.__proto__=d,m},f(p,h)}var c=function(p){u(h,p);function h(d){var g;return g=p.call(this,d)||this,g.type=a.CLASS,g._constructed=!0,g}var m=h.prototype;return m.valueToString=function(){return"."+p.prototype.valueToString.call(this)},s(h,[{key:"value",get:function(){return this._value},set:function(d){if(this._constructed){var g=(0,r.default)(d,{isIdentifier:!0});g!==d?((0,n.ensureObject)(this,"raws"),this.raws.value=g):this.raws&&delete this.raws.value}this._value=d}}]),h}(i.default);e.default=c,t.exports=e.default}),zl=ue((e,t)=>{"use strict";e.__esModule=!0,e.default=void 0;var r=i(lr()),n=at();function i(s){return s&&s.__esModule?s:{default:s}}function a(s,u){s.prototype=Object.create(u.prototype),s.prototype.constructor=s,o(s,u)}function o(s,u){return o=Object.setPrototypeOf||function(f,c){return f.__proto__=c,f},o(s,u)}var l=function(s){a(u,s);function u(f){var c;return c=s.call(this,f)||this,c.type=n.COMMENT,c}return u}(r.default);e.default=l,t.exports=e.default}),Vl=ue((e,t)=>{"use strict";e.__esModule=!0,e.default=void 0;var r=i(lr()),n=at();function i(s){return s&&s.__esModule?s:{default:s}}function a(s,u){s.prototype=Object.create(u.prototype),s.prototype.constructor=s,o(s,u)}function o(s,u){return o=Object.setPrototypeOf||function(f,c){return f.__proto__=c,f},o(s,u)}var l=function(s){a(u,s);function u(c){var p;return p=s.call(this,c)||this,p.type=n.ID,p}var f=u.prototype;return f.valueToString=function(){return"#"+s.prototype.valueToString.call(this)},u}(r.default);e.default=l,t.exports=e.default}),Pa=ue((e,t)=>{"use strict";e.__esModule=!0,e.default=void 0;var r=a(Ia()),n=Kn(),i=a(lr());function a(c){return c&&c.__esModule?c:{default:c}}function o(c,p){for(var h=0;h<p.length;h++){var m=p[h];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(c,m.key,m)}}function l(c,p,h){return p&&o(c.prototype,p),h&&o(c,h),c}function s(c,p){c.prototype=Object.create(p.prototype),c.prototype.constructor=c,u(c,p)}function u(c,p){return u=Object.setPrototypeOf||function(h,m){return h.__proto__=m,h},u(c,p)}var f=function(c){s(p,c);function p(){return c.apply(this,arguments)||this}var h=p.prototype;return h.qualifiedName=function(m){return this.namespace?this.namespaceString+"|"+m:m},h.valueToString=function(){return this.qualifiedName(c.prototype.valueToString.call(this))},l(p,[{key:"namespace",get:function(){return this._namespace},set:function(m){if(m===!0||m==="*"||m==="&"){this._namespace=m,this.raws&&delete this.raws.namespace;return}var d=(0,r.default)(m,{isIdentifier:!0});this._namespace=m,d!==m?((0,n.ensureObject)(this,"raws"),this.raws.namespace=d):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(m){this.namespace=m}},{key:"namespaceString",get:function(){if(this.namespace){var m=this.stringifyProperty("namespace");return m===!0?"":m}else return""}}]),p}(i.default);e.default=f,t.exports=e.default}),Hl=ue((e,t)=>{"use strict";e.__esModule=!0,e.default=void 0;var r=i(Pa()),n=at();function i(s){return s&&s.__esModule?s:{default:s}}function a(s,u){s.prototype=Object.create(u.prototype),s.prototype.constructor=s,o(s,u)}function o(s,u){return o=Object.setPrototypeOf||function(f,c){return f.__proto__=c,f},o(s,u)}var l=function(s){a(u,s);function u(f){var c;return c=s.call(this,f)||this,c.type=n.TAG,c}return u}(r.default);e.default=l,t.exports=e.default}),Xl=ue((e,t)=>{"use strict";e.__esModule=!0,e.default=void 0;var r=i(lr()),n=at();function i(s){return s&&s.__esModule?s:{default:s}}function a(s,u){s.prototype=Object.create(u.prototype),s.prototype.constructor=s,o(s,u)}function o(s,u){return o=Object.setPrototypeOf||function(f,c){return f.__proto__=c,f},o(s,u)}var l=function(s){a(u,s);function u(f){var c;return c=s.call(this,f)||this,c.type=n.STRING,c}return u}(r.default);e.default=l,t.exports=e.default}),ql=ue((e,t)=>{"use strict";e.__esModule=!0,e.default=void 0;var r=i(Aa()),n=at();function i(s){return s&&s.__esModule?s:{default:s}}function a(s,u){s.prototype=Object.create(u.prototype),s.prototype.constructor=s,o(s,u)}function o(s,u){return o=Object.setPrototypeOf||function(f,c){return f.__proto__=c,f},o(s,u)}var l=function(s){a(u,s);function u(c){var p;return p=s.call(this,c)||this,p.type=n.PSEUDO,p}var f=u.prototype;return f.toString=function(){var c=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),c,this.rawSpaceAfter].join("")},u}(r.default);e.default=l,t.exports=e.default}),Hv=ue((e,t)=>{t.exports=function(r,n){return function(...i){return console.warn(n),r(...i)}}}),Yl=ue(e=>{"use strict";e.__esModule=!0,e.unescapeValue=g,e.default=void 0;var t=o(Ia()),r=o(Gl()),n=o(Pa()),i=at(),a;function o(T){return T&&T.__esModule?T:{default:T}}function l(T,E){for(var R=0;R<E.length;R++){var C=E[R];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(T,C.key,C)}}function s(T,E,R){return E&&l(T.prototype,E),R&&l(T,R),T}function u(T,E){T.prototype=Object.create(E.prototype),T.prototype.constructor=T,f(T,E)}function f(T,E){return f=Object.setPrototypeOf||function(R,C){return R.__proto__=C,R},f(T,E)}var c=Hv(),p=/^('|")([^]*)\1$/,h=c(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),m=c(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),d=c(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function g(T){var E=!1,R=null,C=T,D=C.match(p);return D&&(R=D[1],C=D[2]),C=(0,r.default)(C),C!==T&&(E=!0),{deprecatedUsage:E,unescaped:C,quoteMark:R}}function b(T){if(T.quoteMark!==void 0||T.value===void 0)return T;d();var E=g(T.value),R=E.quoteMark,C=E.unescaped;return T.raws||(T.raws={}),T.raws.value===void 0&&(T.raws.value=T.value),T.value=C,T.quoteMark=R,T}var x=function(T){u(E,T);function E(C){var D;return C===void 0&&(C={}),D=T.call(this,b(C))||this,D.type=i.ATTRIBUTE,D.raws=D.raws||{},Object.defineProperty(D.raws,"unquoted",{get:c(function(){return D.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:c(function(){return D.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),D._constructed=!0,D}var R=E.prototype;return R.getQuotedValue=function(C){C===void 0&&(C={});var D=this._determineQuoteMark(C),M=_[D],H=(0,t.default)(this._value,M);return H},R._determineQuoteMark=function(C){return C.smart?this.smartQuoteMark(C):this.preferredQuoteMark(C)},R.setValue=function(C,D){D===void 0&&(D={}),this._value=C,this._quoteMark=this._determineQuoteMark(D),this._syncRawValue()},R.smartQuoteMark=function(C){var D=this.value,M=D.replace(/[^']/g,"").length,H=D.replace(/[^"]/g,"").length;if(M+H===0){var Q=(0,t.default)(D,{isIdentifier:!0});if(Q===D)return E.NO_QUOTE;var ee=this.preferredQuoteMark(C);if(ee===E.NO_QUOTE){var I=this.quoteMark||C.quoteMark||E.DOUBLE_QUOTE,U=_[I],O=(0,t.default)(D,U);if(O.length<Q.length)return I}return ee}else return H===M?this.preferredQuoteMark(C):H<M?E.DOUBLE_QUOTE:E.SINGLE_QUOTE},R.preferredQuoteMark=function(C){var D=C.preferCurrentQuoteMark?this.quoteMark:C.quoteMark;return D===void 0&&(D=C.preferCurrentQuoteMark?C.quoteMark:this.quoteMark),D===void 0&&(D=E.DOUBLE_QUOTE),D},R._syncRawValue=function(){var C=(0,t.default)(this._value,_[this.quoteMark]);C===this._value?this.raws&&delete this.raws.value:this.raws.value=C},R._handleEscapes=function(C,D){if(this._constructed){var M=(0,t.default)(D,{isIdentifier:!0});M!==D?this.raws[C]=M:delete this.raws[C]}},R._spacesFor=function(C){var D={before:"",after:""},M=this.spaces[C]||{},H=this.raws.spaces&&this.raws.spaces[C]||{};return Object.assign(D,M,H)},R._stringFor=function(C,D,M){D===void 0&&(D=C),M===void 0&&(M=L);var H=this._spacesFor(D);return M(this.stringifyProperty(C),H)},R.offsetOf=function(C){var D=1,M=this._spacesFor("attribute");if(D+=M.before.length,C==="namespace"||C==="ns")return this.namespace?D:-1;if(C==="attributeNS"||(D+=this.namespaceString.length,this.namespace&&(D+=1),C==="attribute"))return D;D+=this.stringifyProperty("attribute").length,D+=M.after.length;var H=this._spacesFor("operator");D+=H.before.length;var Q=this.stringifyProperty("operator");if(C==="operator")return Q?D:-1;D+=Q.length,D+=H.after.length;var ee=this._spacesFor("value");D+=ee.before.length;var I=this.stringifyProperty("value");if(C==="value")return I?D:-1;D+=I.length,D+=ee.after.length;var U=this._spacesFor("insensitive");return D+=U.before.length,C==="insensitive"&&this.insensitive?D:-1},R.toString=function(){var C=this,D=[this.rawSpaceBefore,"["];return D.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(D.push(this._stringFor("operator")),D.push(this._stringFor("value")),D.push(this._stringFor("insensitiveFlag","insensitive",function(M,H){return M.length>0&&!C.quoted&&H.before.length===0&&!(C.spaces.value&&C.spaces.value.after)&&(H.before=" "),L(M,H)}))),D.push("]"),D.push(this.rawSpaceAfter),D.join("")},s(E,[{key:"quoted",get:function(){var C=this.quoteMark;return C==="'"||C==='"'},set:function(C){m()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(C){if(!this._constructed){this._quoteMark=C;return}this._quoteMark!==C&&(this._quoteMark=C,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(C){if(this._constructed){var D=g(C),M=D.deprecatedUsage,H=D.unescaped,Q=D.quoteMark;if(M&&h(),H===this._value&&Q===this._quoteMark)return;this._value=H,this._quoteMark=Q,this._syncRawValue()}else this._value=C}},{key:"attribute",get:function(){return this._attribute},set:function(C){this._handleEscapes("attribute",C),this._attribute=C}}]),E}(n.default);e.default=x,x.NO_QUOTE=null,x.SINGLE_QUOTE="'",x.DOUBLE_QUOTE='"';var _=(a={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},a[null]={isIdentifier:!0},a);function L(T,E){return""+E.before+T+E.after}}),Zl=ue((e,t)=>{"use strict";e.__esModule=!0,e.default=void 0;var r=i(Pa()),n=at();function i(s){return s&&s.__esModule?s:{default:s}}function a(s,u){s.prototype=Object.create(u.prototype),s.prototype.constructor=s,o(s,u)}function o(s,u){return o=Object.setPrototypeOf||function(f,c){return f.__proto__=c,f},o(s,u)}var l=function(s){a(u,s);function u(f){var c;return c=s.call(this,f)||this,c.type=n.UNIVERSAL,c.value="*",c}return u}(r.default);e.default=l,t.exports=e.default}),Jl=ue((e,t)=>{"use strict";e.__esModule=!0,e.default=void 0;var r=i(lr()),n=at();function i(s){return s&&s.__esModule?s:{default:s}}function a(s,u){s.prototype=Object.create(u.prototype),s.prototype.constructor=s,o(s,u)}function o(s,u){return o=Object.setPrototypeOf||function(f,c){return f.__proto__=c,f},o(s,u)}var l=function(s){a(u,s);function u(f){var c;return c=s.call(this,f)||this,c.type=n.COMBINATOR,c}return u}(r.default);e.default=l,t.exports=e.default}),Ql=ue((e,t)=>{"use strict";e.__esModule=!0,e.default=void 0;var r=i(lr()),n=at();function i(s){return s&&s.__esModule?s:{default:s}}function a(s,u){s.prototype=Object.create(u.prototype),s.prototype.constructor=s,o(s,u)}function o(s,u){return o=Object.setPrototypeOf||function(f,c){return f.__proto__=c,f},o(s,u)}var l=function(s){a(u,s);function u(f){var c;return c=s.call(this,f)||this,c.type=n.NESTING,c.value="&",c}return u}(r.default);e.default=l,t.exports=e.default}),Xv=ue((e,t)=>{"use strict";e.__esModule=!0,e.default=r;function r(n){return n.sort(function(i,a){return i-a})}t.exports=e.default}),Kl=ue(e=>{"use strict";e.__esModule=!0,e.combinator=e.word=e.comment=e.str=e.tab=e.newline=e.feed=e.cr=e.backslash=e.bang=e.slash=e.doubleQuote=e.singleQuote=e.space=e.greaterThan=e.pipe=e.equals=e.plus=e.caret=e.tilde=e.dollar=e.closeSquare=e.openSquare=e.closeParenthesis=e.openParenthesis=e.semicolon=e.colon=e.comma=e.at=e.asterisk=e.ampersand=void 0;var t=38;e.ampersand=t;var r=42;e.asterisk=r;var n=64;e.at=n;var i=44;e.comma=i;var a=58;e.colon=a;var o=59;e.semicolon=o;var l=40;e.openParenthesis=l;var s=41;e.closeParenthesis=s;var u=91;e.openSquare=u;var f=93;e.closeSquare=f;var c=36;e.dollar=c;var p=126;e.tilde=p;var h=94;e.caret=h;var m=43;e.plus=m;var d=61;e.equals=d;var g=124;e.pipe=g;var b=62;e.greaterThan=b;var x=32;e.space=x;var _=39;e.singleQuote=_;var L=34;e.doubleQuote=L;var T=47;e.slash=T;var E=33;e.bang=E;var R=92;e.backslash=R;var C=13;e.cr=C;var D=12;e.feed=D;var M=10;e.newline=M;var H=9;e.tab=H;var Q=_;e.str=Q;var ee=-1;e.comment=ee;var I=-2;e.word=I;var U=-3;e.combinator=U}),qv=ue(e=>{"use strict";e.__esModule=!0,e.default=m,e.FIELDS=void 0;var t=a(Kl()),r,n;function i(){if(typeof WeakMap!="function")return null;var d=new WeakMap;return i=function(){return d},d}function a(d){if(d&&d.__esModule)return d;if(d===null||typeof d!="object"&&typeof d!="function")return{default:d};var g=i();if(g&&g.has(d))return g.get(d);var b={},x=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in d)if(Object.prototype.hasOwnProperty.call(d,_)){var L=x?Object.getOwnPropertyDescriptor(d,_):null;L&&(L.get||L.set)?Object.defineProperty(b,_,L):b[_]=d[_]}return b.default=d,g&&g.set(d,b),b}var o=(r={},r[t.tab]=!0,r[t.newline]=!0,r[t.cr]=!0,r[t.feed]=!0,r),l=(n={},n[t.space]=!0,n[t.tab]=!0,n[t.newline]=!0,n[t.cr]=!0,n[t.feed]=!0,n[t.ampersand]=!0,n[t.asterisk]=!0,n[t.bang]=!0,n[t.comma]=!0,n[t.colon]=!0,n[t.semicolon]=!0,n[t.openParenthesis]=!0,n[t.closeParenthesis]=!0,n[t.openSquare]=!0,n[t.closeSquare]=!0,n[t.singleQuote]=!0,n[t.doubleQuote]=!0,n[t.plus]=!0,n[t.pipe]=!0,n[t.tilde]=!0,n[t.greaterThan]=!0,n[t.equals]=!0,n[t.dollar]=!0,n[t.caret]=!0,n[t.slash]=!0,n),s={},u="0123456789abcdefABCDEF";for(f=0;f<u.length;f++)s[u.charCodeAt(f)]=!0;var f;function c(d,g){var b=g,x;do{if(x=d.charCodeAt(b),l[x])return b-1;x===t.backslash?b=p(d,b)+1:b++}while(b<d.length);return b-1}function p(d,g){var b=g,x=d.charCodeAt(b+1);if(!o[x])if(s[x]){var _=0;do b++,_++,x=d.charCodeAt(b+1);while(s[x]&&_<6);_<6&&x===t.space&&b++}else b++;return b}var h={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};e.FIELDS=h;function m(d){var g=[],b=d.css.valueOf(),x=b,_=x.length,L=-1,T=1,E=0,R=0,C,D,M,H,Q,ee,I,U,O,q,K,ne,ie;function V(Y,A){if(d.safe)b+=A,O=b.length-1;else throw d.error("Unclosed "+Y,T,E-L,E)}for(;E<_;){switch(C=b.charCodeAt(E),C===t.newline&&(L=E,T+=1),C){case t.space:case t.tab:case t.newline:case t.cr:case t.feed:O=E;do O+=1,C=b.charCodeAt(O),C===t.newline&&(L=O,T+=1);while(C===t.space||C===t.newline||C===t.tab||C===t.cr||C===t.feed);ie=t.space,H=T,M=O-L-1,R=O;break;case t.plus:case t.greaterThan:case t.tilde:case t.pipe:O=E;do O+=1,C=b.charCodeAt(O);while(C===t.plus||C===t.greaterThan||C===t.tilde||C===t.pipe);ie=t.combinator,H=T,M=E-L,R=O;break;case t.asterisk:case t.ampersand:case t.bang:case t.comma:case t.equals:case t.dollar:case t.caret:case t.openSquare:case t.closeSquare:case t.colon:case t.semicolon:case t.openParenthesis:case t.closeParenthesis:O=E,ie=C,H=T,M=E-L,R=O+1;break;case t.singleQuote:case t.doubleQuote:ne=C===t.singleQuote?"'":'"',O=E;do for(Q=!1,O=b.indexOf(ne,O+1),O===-1&&V("quote",ne),ee=O;b.charCodeAt(ee-1)===t.backslash;)ee-=1,Q=!Q;while(Q);ie=t.str,H=T,M=E-L,R=O+1;break;default:C===t.slash&&b.charCodeAt(E+1)===t.asterisk?(O=b.indexOf("*/",E+2)+1,O===0&&V("comment","*/"),D=b.slice(E,O+1),U=D.split(`
|
|
51
|
+
`),I=U.length-1,I>0?(q=T+I,K=O-U[I].length):(q=T,K=L),ie=t.comment,T=q,H=q,M=O-K):C===t.slash?(O=E,ie=C,H=T,M=E-L,R=O+1):(O=c(b,E),ie=t.word,H=T,M=O-L),R=O+1;break}g.push([ie,T,E-L,H,M,E,R]),K&&(L=K,K=null),E=R}return g}}),Yv=ue((e,t)=>{"use strict";e.__esModule=!0,e.default=void 0;var r=R(Bl()),n=R($l()),i=R(jl()),a=R(zl()),o=R(Vl()),l=R(Hl()),s=R(Xl()),u=R(ql()),f=E(Yl()),c=R(Zl()),p=R(Jl()),h=R(Ql()),m=R(Xv()),d=E(qv()),g=E(Kl()),b=E(at()),x=Kn(),_,L;function T(){if(typeof WeakMap!="function")return null;var V=new WeakMap;return T=function(){return V},V}function E(V){if(V&&V.__esModule)return V;if(V===null||typeof V!="object"&&typeof V!="function")return{default:V};var Y=T();if(Y&&Y.has(V))return Y.get(V);var A={},G=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ae in V)if(Object.prototype.hasOwnProperty.call(V,ae)){var $=G?Object.getOwnPropertyDescriptor(V,ae):null;$&&($.get||$.set)?Object.defineProperty(A,ae,$):A[ae]=V[ae]}return A.default=V,Y&&Y.set(V,A),A}function R(V){return V&&V.__esModule?V:{default:V}}function C(V,Y){for(var A=0;A<Y.length;A++){var G=Y[A];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(V,G.key,G)}}function D(V,Y,A){return Y&&C(V.prototype,Y),A&&C(V,A),V}var M=(_={},_[g.space]=!0,_[g.cr]=!0,_[g.feed]=!0,_[g.newline]=!0,_[g.tab]=!0,_),H=Object.assign({},M,(L={},L[g.comment]=!0,L));function Q(V){return{line:V[d.FIELDS.START_LINE],column:V[d.FIELDS.START_COL]}}function ee(V){return{line:V[d.FIELDS.END_LINE],column:V[d.FIELDS.END_COL]}}function I(V,Y,A,G){return{start:{line:V,column:Y},end:{line:A,column:G}}}function U(V){return I(V[d.FIELDS.START_LINE],V[d.FIELDS.START_COL],V[d.FIELDS.END_LINE],V[d.FIELDS.END_COL])}function O(V,Y){if(V)return I(V[d.FIELDS.START_LINE],V[d.FIELDS.START_COL],Y[d.FIELDS.END_LINE],Y[d.FIELDS.END_COL])}function q(V,Y){var A=V[Y];if(typeof A=="string")return A.indexOf("\\")!==-1&&((0,x.ensureObject)(V,"raws"),V[Y]=(0,x.unesc)(A),V.raws[Y]===void 0&&(V.raws[Y]=A)),V}function K(V,Y){for(var A=-1,G=[];(A=V.indexOf(Y,A+1))!==-1;)G.push(A);return G}function ne(){var V=Array.prototype.concat.apply([],arguments);return V.filter(function(Y,A){return A===V.indexOf(Y)})}var ie=function(){function V(A,G){G===void 0&&(G={}),this.rule=A,this.options=Object.assign({lossy:!1,safe:!1},G),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,d.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var ae=O(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new r.default({source:ae}),this.root.errorGenerator=this._errorGenerator();var $=new n.default({source:{start:{line:1,column:1}}});this.root.append($),this.current=$,this.loop()}var Y=V.prototype;return Y._errorGenerator=function(){var A=this;return function(G,ae){return typeof A.rule=="string"?new Error(G):A.rule.error(G,ae)}},Y.attribute=function(){var A=[],G=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[d.FIELDS.TYPE]!==g.closeSquare;)A.push(this.currToken),this.position++;if(this.currToken[d.FIELDS.TYPE]!==g.closeSquare)return this.expected("closing square bracket",this.currToken[d.FIELDS.START_POS]);var ae=A.length,$={source:I(G[1],G[2],this.currToken[3],this.currToken[4]),sourceIndex:G[d.FIELDS.START_POS]};if(ae===1&&!~[g.word].indexOf(A[0][d.FIELDS.TYPE]))return this.expected("attribute",A[0][d.FIELDS.START_POS]);for(var pe=0,fe="",ve="",ce=null,xe=!1;pe<ae;){var Ie=A[pe],he=this.content(Ie),ye=A[pe+1];switch(Ie[d.FIELDS.TYPE]){case g.space:if(xe=!0,this.options.lossy)break;if(ce){(0,x.ensureObject)($,"spaces",ce);var We=$.spaces[ce].after||"";$.spaces[ce].after=We+he;var Qe=(0,x.getProp)($,"raws","spaces",ce,"after")||null;Qe&&($.raws.spaces[ce].after=Qe+he)}else fe=fe+he,ve=ve+he;break;case g.asterisk:if(ye[d.FIELDS.TYPE]===g.equals)$.operator=he,ce="operator";else if((!$.namespace||ce==="namespace"&&!xe)&&ye){fe&&((0,x.ensureObject)($,"spaces","attribute"),$.spaces.attribute.before=fe,fe=""),ve&&((0,x.ensureObject)($,"raws","spaces","attribute"),$.raws.spaces.attribute.before=fe,ve=""),$.namespace=($.namespace||"")+he;var Ge=(0,x.getProp)($,"raws","namespace")||null;Ge&&($.raws.namespace+=he),ce="namespace"}xe=!1;break;case g.dollar:if(ce==="value"){var Ne=(0,x.getProp)($,"raws","value");$.value+="$",Ne&&($.raws.value=Ne+"$");break}case g.caret:ye[d.FIELDS.TYPE]===g.equals&&($.operator=he,ce="operator"),xe=!1;break;case g.combinator:if(he==="~"&&ye[d.FIELDS.TYPE]===g.equals&&($.operator=he,ce="operator"),he!=="|"){xe=!1;break}ye[d.FIELDS.TYPE]===g.equals?($.operator=he,ce="operator"):!$.namespace&&!$.attribute&&($.namespace=!0),xe=!1;break;case g.word:if(ye&&this.content(ye)==="|"&&A[pe+2]&&A[pe+2][d.FIELDS.TYPE]!==g.equals&&!$.operator&&!$.namespace)$.namespace=he,ce="namespace";else if(!$.attribute||ce==="attribute"&&!xe){fe&&((0,x.ensureObject)($,"spaces","attribute"),$.spaces.attribute.before=fe,fe=""),ve&&((0,x.ensureObject)($,"raws","spaces","attribute"),$.raws.spaces.attribute.before=ve,ve=""),$.attribute=($.attribute||"")+he;var Xe=(0,x.getProp)($,"raws","attribute")||null;Xe&&($.raws.attribute+=he),ce="attribute"}else if(!$.value&&$.value!==""||ce==="value"&&!xe){var Ke=(0,x.unesc)(he),et=(0,x.getProp)($,"raws","value")||"",tt=$.value||"";$.value=tt+Ke,$.quoteMark=null,(Ke!==he||et)&&((0,x.ensureObject)($,"raws"),$.raws.value=(et||tt)+he),ce="value"}else{var rt=he==="i"||he==="I";($.value||$.value==="")&&($.quoteMark||xe)?($.insensitive=rt,(!rt||he==="I")&&((0,x.ensureObject)($,"raws"),$.raws.insensitiveFlag=he),ce="insensitive",fe&&((0,x.ensureObject)($,"spaces","insensitive"),$.spaces.insensitive.before=fe,fe=""),ve&&((0,x.ensureObject)($,"raws","spaces","insensitive"),$.raws.spaces.insensitive.before=ve,ve="")):($.value||$.value==="")&&(ce="value",$.value+=he,$.raws.value&&($.raws.value+=he))}xe=!1;break;case g.str:if(!$.attribute||!$.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:Ie[d.FIELDS.START_POS]});var je=(0,f.unescapeValue)(he),Et=je.unescaped,gt=je.quoteMark;$.value=Et,$.quoteMark=gt,ce="value",(0,x.ensureObject)($,"raws"),$.raws.value=he,xe=!1;break;case g.equals:if(!$.attribute)return this.expected("attribute",Ie[d.FIELDS.START_POS],he);if($.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:Ie[d.FIELDS.START_POS]});$.operator=$.operator?$.operator+he:he,ce="operator",xe=!1;break;case g.comment:if(ce)if(xe||ye&&ye[d.FIELDS.TYPE]===g.space||ce==="insensitive"){var st=(0,x.getProp)($,"spaces",ce,"after")||"",lt=(0,x.getProp)($,"raws","spaces",ce,"after")||st;(0,x.ensureObject)($,"raws","spaces",ce),$.raws.spaces[ce].after=lt+he}else{var zt=$[ce]||"",ot=(0,x.getProp)($,"raws",ce)||zt;(0,x.ensureObject)($,"raws"),$.raws[ce]=ot+he}else ve=ve+he;break;default:return this.error('Unexpected "'+he+'" found.',{index:Ie[d.FIELDS.START_POS]})}pe++}q($,"attribute"),q($,"namespace"),this.newNode(new f.default($)),this.position++},Y.parseWhitespaceEquivalentTokens=function(A){A<0&&(A=this.tokens.length);var G=this.position,ae=[],$="",pe=void 0;do if(M[this.currToken[d.FIELDS.TYPE]])this.options.lossy||($+=this.content());else if(this.currToken[d.FIELDS.TYPE]===g.comment){var fe={};$&&(fe.before=$,$=""),pe=new a.default({value:this.content(),source:U(this.currToken),sourceIndex:this.currToken[d.FIELDS.START_POS],spaces:fe}),ae.push(pe)}while(++this.position<A);if($){if(pe)pe.spaces.after=$;else if(!this.options.lossy){var ve=this.tokens[G],ce=this.tokens[this.position-1];ae.push(new s.default({value:"",source:I(ve[d.FIELDS.START_LINE],ve[d.FIELDS.START_COL],ce[d.FIELDS.END_LINE],ce[d.FIELDS.END_COL]),sourceIndex:ve[d.FIELDS.START_POS],spaces:{before:$,after:""}}))}}return ae},Y.convertWhitespaceNodesToSpace=function(A,G){var ae=this;G===void 0&&(G=!1);var $="",pe="";A.forEach(function(ve){var ce=ae.lossySpace(ve.spaces.before,G),xe=ae.lossySpace(ve.rawSpaceBefore,G);$+=ce+ae.lossySpace(ve.spaces.after,G&&ce.length===0),pe+=ce+ve.value+ae.lossySpace(ve.rawSpaceAfter,G&&xe.length===0)}),pe===$&&(pe=void 0);var fe={space:$,rawSpace:pe};return fe},Y.isNamedCombinator=function(A){return A===void 0&&(A=this.position),this.tokens[A+0]&&this.tokens[A+0][d.FIELDS.TYPE]===g.slash&&this.tokens[A+1]&&this.tokens[A+1][d.FIELDS.TYPE]===g.word&&this.tokens[A+2]&&this.tokens[A+2][d.FIELDS.TYPE]===g.slash},Y.namedCombinator=function(){if(this.isNamedCombinator()){var A=this.content(this.tokens[this.position+1]),G=(0,x.unesc)(A).toLowerCase(),ae={};G!==A&&(ae.value="/"+A+"/");var $=new p.default({value:"/"+G+"/",source:I(this.currToken[d.FIELDS.START_LINE],this.currToken[d.FIELDS.START_COL],this.tokens[this.position+2][d.FIELDS.END_LINE],this.tokens[this.position+2][d.FIELDS.END_COL]),sourceIndex:this.currToken[d.FIELDS.START_POS],raws:ae});return this.position=this.position+3,$}else this.unexpected()},Y.combinator=function(){var A=this;if(this.content()==="|")return this.namespace();var G=this.locateNextMeaningfulToken(this.position);if(G<0||this.tokens[G][d.FIELDS.TYPE]===g.comma){var ae=this.parseWhitespaceEquivalentTokens(G);if(ae.length>0){var $=this.current.last;if($){var pe=this.convertWhitespaceNodesToSpace(ae),fe=pe.space,ve=pe.rawSpace;ve!==void 0&&($.rawSpaceAfter+=ve),$.spaces.after+=fe}else ae.forEach(function(et){return A.newNode(et)})}return}var ce=this.currToken,xe=void 0;G>this.position&&(xe=this.parseWhitespaceEquivalentTokens(G));var Ie;if(this.isNamedCombinator()?Ie=this.namedCombinator():this.currToken[d.FIELDS.TYPE]===g.combinator?(Ie=new p.default({value:this.content(),source:U(this.currToken),sourceIndex:this.currToken[d.FIELDS.START_POS]}),this.position++):M[this.currToken[d.FIELDS.TYPE]]||xe||this.unexpected(),Ie){if(xe){var he=this.convertWhitespaceNodesToSpace(xe),ye=he.space,We=he.rawSpace;Ie.spaces.before=ye,Ie.rawSpaceBefore=We}}else{var Qe=this.convertWhitespaceNodesToSpace(xe,!0),Ge=Qe.space,Ne=Qe.rawSpace;Ne||(Ne=Ge);var Xe={},Ke={spaces:{}};Ge.endsWith(" ")&&Ne.endsWith(" ")?(Xe.before=Ge.slice(0,Ge.length-1),Ke.spaces.before=Ne.slice(0,Ne.length-1)):Ge.startsWith(" ")&&Ne.startsWith(" ")?(Xe.after=Ge.slice(1),Ke.spaces.after=Ne.slice(1)):Ke.value=Ne,Ie=new p.default({value:" ",source:O(ce,this.tokens[this.position-1]),sourceIndex:ce[d.FIELDS.START_POS],spaces:Xe,raws:Ke})}return this.currToken&&this.currToken[d.FIELDS.TYPE]===g.space&&(Ie.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(Ie)},Y.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var A=new n.default({source:{start:Q(this.tokens[this.position+1])}});this.current.parent.append(A),this.current=A,this.position++},Y.comment=function(){var A=this.currToken;this.newNode(new a.default({value:this.content(),source:U(A),sourceIndex:A[d.FIELDS.START_POS]})),this.position++},Y.error=function(A,G){throw this.root.error(A,G)},Y.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[d.FIELDS.START_POS]})},Y.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[d.FIELDS.START_POS])},Y.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[d.FIELDS.START_POS])},Y.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[d.FIELDS.START_POS])},Y.namespace=function(){var A=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[d.FIELDS.TYPE]===g.word)return this.position++,this.word(A);if(this.nextToken[d.FIELDS.TYPE]===g.asterisk)return this.position++,this.universal(A)},Y.nesting=function(){if(this.nextToken){var A=this.content(this.nextToken);if(A==="|"){this.position++;return}}var G=this.currToken;this.newNode(new h.default({value:this.content(),source:U(G),sourceIndex:G[d.FIELDS.START_POS]})),this.position++},Y.parentheses=function(){var A=this.current.last,G=1;if(this.position++,A&&A.type===b.PSEUDO){var ae=new n.default({source:{start:Q(this.tokens[this.position-1])}}),$=this.current;for(A.append(ae),this.current=ae;this.position<this.tokens.length&&G;)this.currToken[d.FIELDS.TYPE]===g.openParenthesis&&G++,this.currToken[d.FIELDS.TYPE]===g.closeParenthesis&&G--,G?this.parse():(this.current.source.end=ee(this.currToken),this.current.parent.source.end=ee(this.currToken),this.position++);this.current=$}else{for(var pe=this.currToken,fe="(",ve;this.position<this.tokens.length&&G;)this.currToken[d.FIELDS.TYPE]===g.openParenthesis&&G++,this.currToken[d.FIELDS.TYPE]===g.closeParenthesis&&G--,ve=this.currToken,fe+=this.parseParenthesisToken(this.currToken),this.position++;A?A.appendToPropertyAndEscape("value",fe,fe):this.newNode(new s.default({value:fe,source:I(pe[d.FIELDS.START_LINE],pe[d.FIELDS.START_COL],ve[d.FIELDS.END_LINE],ve[d.FIELDS.END_COL]),sourceIndex:pe[d.FIELDS.START_POS]}))}if(G)return this.expected("closing parenthesis",this.currToken[d.FIELDS.START_POS])},Y.pseudo=function(){for(var A=this,G="",ae=this.currToken;this.currToken&&this.currToken[d.FIELDS.TYPE]===g.colon;)G+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[d.FIELDS.TYPE]===g.word)this.splitWord(!1,function($,pe){G+=$,A.newNode(new u.default({value:G,source:O(ae,A.currToken),sourceIndex:ae[d.FIELDS.START_POS]})),pe>1&&A.nextToken&&A.nextToken[d.FIELDS.TYPE]===g.openParenthesis&&A.error("Misplaced parenthesis.",{index:A.nextToken[d.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[d.FIELDS.START_POS])},Y.space=function(){var A=this.content();this.position===0||this.prevToken[d.FIELDS.TYPE]===g.comma||this.prevToken[d.FIELDS.TYPE]===g.openParenthesis||this.current.nodes.every(function(G){return G.type==="comment"})?(this.spaces=this.optionalSpace(A),this.position++):this.position===this.tokens.length-1||this.nextToken[d.FIELDS.TYPE]===g.comma||this.nextToken[d.FIELDS.TYPE]===g.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(A),this.position++):this.combinator()},Y.string=function(){var A=this.currToken;this.newNode(new s.default({value:this.content(),source:U(A),sourceIndex:A[d.FIELDS.START_POS]})),this.position++},Y.universal=function(A){var G=this.nextToken;if(G&&this.content(G)==="|")return this.position++,this.namespace();var ae=this.currToken;this.newNode(new c.default({value:this.content(),source:U(ae),sourceIndex:ae[d.FIELDS.START_POS]}),A),this.position++},Y.splitWord=function(A,G){for(var ae=this,$=this.nextToken,pe=this.content();$&&~[g.dollar,g.caret,g.equals,g.word].indexOf($[d.FIELDS.TYPE]);){this.position++;var fe=this.content();if(pe+=fe,fe.lastIndexOf("\\")===fe.length-1){var ve=this.nextToken;ve&&ve[d.FIELDS.TYPE]===g.space&&(pe+=this.requiredSpace(this.content(ve)),this.position++)}$=this.nextToken}var ce=K(pe,".").filter(function(ye){var We=pe[ye-1]==="\\",Qe=/^\d+\.\d+%$/.test(pe);return!We&&!Qe}),xe=K(pe,"#").filter(function(ye){return pe[ye-1]!=="\\"}),Ie=K(pe,"#{");Ie.length&&(xe=xe.filter(function(ye){return!~Ie.indexOf(ye)}));var he=(0,m.default)(ne([0].concat(ce,xe)));he.forEach(function(ye,We){var Qe=he[We+1]||pe.length,Ge=pe.slice(ye,Qe);if(We===0&&G)return G.call(ae,Ge,he.length);var Ne,Xe=ae.currToken,Ke=Xe[d.FIELDS.START_POS]+he[We],et=I(Xe[1],Xe[2]+ye,Xe[3],Xe[2]+(Qe-1));if(~ce.indexOf(ye)){var tt={value:Ge.slice(1),source:et,sourceIndex:Ke};Ne=new i.default(q(tt,"value"))}else if(~xe.indexOf(ye)){var rt={value:Ge.slice(1),source:et,sourceIndex:Ke};Ne=new o.default(q(rt,"value"))}else{var je={value:Ge,source:et,sourceIndex:Ke};q(je,"value"),Ne=new l.default(je)}ae.newNode(Ne,A),A=null}),this.position++},Y.word=function(A){var G=this.nextToken;return G&&this.content(G)==="|"?(this.position++,this.namespace()):this.splitWord(A)},Y.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},Y.parse=function(A){switch(this.currToken[d.FIELDS.TYPE]){case g.space:this.space();break;case g.comment:this.comment();break;case g.openParenthesis:this.parentheses();break;case g.closeParenthesis:A&&this.missingParenthesis();break;case g.openSquare:this.attribute();break;case g.dollar:case g.caret:case g.equals:case g.word:this.word();break;case g.colon:this.pseudo();break;case g.comma:this.comma();break;case g.asterisk:this.universal();break;case g.ampersand:this.nesting();break;case g.slash:case g.combinator:this.combinator();break;case g.str:this.string();break;case g.closeSquare:this.missingSquareBracket();case g.semicolon:this.missingBackslash();default:this.unexpected()}},Y.expected=function(A,G,ae){if(Array.isArray(A)){var $=A.pop();A=A.join(", ")+" or "+$}var pe=/^[aeiou]/.test(A[0])?"an":"a";return ae?this.error("Expected "+pe+" "+A+', found "'+ae+'" instead.',{index:G}):this.error("Expected "+pe+" "+A+".",{index:G})},Y.requiredSpace=function(A){return this.options.lossy?" ":A},Y.optionalSpace=function(A){return this.options.lossy?"":A},Y.lossySpace=function(A,G){return this.options.lossy?G?" ":"":A},Y.parseParenthesisToken=function(A){var G=this.content(A);return A[d.FIELDS.TYPE]===g.space?this.requiredSpace(G):G},Y.newNode=function(A,G){return G&&(/^ +$/.test(G)&&(this.options.lossy||(this.spaces=(this.spaces||"")+G),G=!0),A.namespace=G,q(A,"namespace")),this.spaces&&(A.spaces.before=this.spaces,this.spaces=""),this.current.append(A)},Y.content=function(A){return A===void 0&&(A=this.currToken),this.css.slice(A[d.FIELDS.START_POS],A[d.FIELDS.END_POS])},Y.locateNextMeaningfulToken=function(A){A===void 0&&(A=this.position+1);for(var G=A;G<this.tokens.length;)if(H[this.tokens[G][d.FIELDS.TYPE]]){G++;continue}else return G;return-1},D(V,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),V}();e.default=ie,t.exports=e.default}),Zv=ue((e,t)=>{"use strict";e.__esModule=!0,e.default=void 0;var r=n(Yv());function n(a){return a&&a.__esModule?a:{default:a}}var i=function(){function a(l,s){this.func=l||function(){},this.funcRes=null,this.options=s}var o=a.prototype;return o._shouldUpdateSelector=function(l,s){s===void 0&&(s={});var u=Object.assign({},this.options,s);return u.updateSelector===!1?!1:typeof l!="string"},o._isLossy=function(l){l===void 0&&(l={});var s=Object.assign({},this.options,l);return s.lossless===!1},o._root=function(l,s){s===void 0&&(s={});var u=new r.default(l,this._parseOptions(s));return u.root},o._parseOptions=function(l){return{lossy:this._isLossy(l)}},o._run=function(l,s){var u=this;return s===void 0&&(s={}),new Promise(function(f,c){try{var p=u._root(l,s);Promise.resolve(u.func(p)).then(function(h){var m=void 0;return u._shouldUpdateSelector(l,s)&&(m=p.toString(),l.selector=m),{transform:h,root:p,string:m}}).then(f,c)}catch(h){c(h);return}})},o._runSync=function(l,s){s===void 0&&(s={});var u=this._root(l,s),f=this.func(u);if(f&&typeof f.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var c=void 0;return s.updateSelector&&typeof l!="string"&&(c=u.toString(),l.selector=c),{transform:f,root:u,string:c}},o.ast=function(l,s){return this._run(l,s).then(function(u){return u.root})},o.astSync=function(l,s){return this._runSync(l,s).root},o.transform=function(l,s){return this._run(l,s).then(function(u){return u.transform})},o.transformSync=function(l,s){return this._runSync(l,s).transform},o.process=function(l,s){return this._run(l,s).then(function(u){return u.string||u.root.toString()})},o.processSync=function(l,s){var u=this._runSync(l,s);return u.string||u.root.toString()},a}();e.default=i,t.exports=e.default}),Jv=ue(e=>{"use strict";e.__esModule=!0,e.universal=e.tag=e.string=e.selector=e.root=e.pseudo=e.nesting=e.id=e.comment=e.combinator=e.className=e.attribute=void 0;var t=h(Yl()),r=h(jl()),n=h(Jl()),i=h(zl()),a=h(Vl()),o=h(Ql()),l=h(ql()),s=h(Bl()),u=h($l()),f=h(Xl()),c=h(Hl()),p=h(Zl());function h(M){return M&&M.__esModule?M:{default:M}}var m=function(M){return new t.default(M)};e.attribute=m;var d=function(M){return new r.default(M)};e.className=d;var g=function(M){return new n.default(M)};e.combinator=g;var b=function(M){return new i.default(M)};e.comment=b;var x=function(M){return new a.default(M)};e.id=x;var _=function(M){return new o.default(M)};e.nesting=_;var L=function(M){return new l.default(M)};e.pseudo=L;var T=function(M){return new s.default(M)};e.root=T;var E=function(M){return new u.default(M)};e.selector=E;var R=function(M){return new f.default(M)};e.string=R;var C=function(M){return new c.default(M)};e.tag=C;var D=function(M){return new p.default(M)};e.universal=D}),Qv=ue(e=>{"use strict";e.__esModule=!0,e.isNode=i,e.isPseudoElement=x,e.isPseudoClass=_,e.isContainer=L,e.isNamespace=T,e.isUniversal=e.isTag=e.isString=e.isSelector=e.isRoot=e.isPseudo=e.isNesting=e.isIdentifier=e.isComment=e.isCombinator=e.isClassName=e.isAttribute=void 0;var t=at(),r,n=(r={},r[t.ATTRIBUTE]=!0,r[t.CLASS]=!0,r[t.COMBINATOR]=!0,r[t.COMMENT]=!0,r[t.ID]=!0,r[t.NESTING]=!0,r[t.PSEUDO]=!0,r[t.ROOT]=!0,r[t.SELECTOR]=!0,r[t.STRING]=!0,r[t.TAG]=!0,r[t.UNIVERSAL]=!0,r);function i(E){return typeof E=="object"&&n[E.type]}function a(E,R){return i(R)&&R.type===E}var o=a.bind(null,t.ATTRIBUTE);e.isAttribute=o;var l=a.bind(null,t.CLASS);e.isClassName=l;var s=a.bind(null,t.COMBINATOR);e.isCombinator=s;var u=a.bind(null,t.COMMENT);e.isComment=u;var f=a.bind(null,t.ID);e.isIdentifier=f;var c=a.bind(null,t.NESTING);e.isNesting=c;var p=a.bind(null,t.PSEUDO);e.isPseudo=p;var h=a.bind(null,t.ROOT);e.isRoot=h;var m=a.bind(null,t.SELECTOR);e.isSelector=m;var d=a.bind(null,t.STRING);e.isString=d;var g=a.bind(null,t.TAG);e.isTag=g;var b=a.bind(null,t.UNIVERSAL);e.isUniversal=b;function x(E){return p(E)&&E.value&&(E.value.startsWith("::")||E.value.toLowerCase()===":before"||E.value.toLowerCase()===":after"||E.value.toLowerCase()===":first-letter"||E.value.toLowerCase()===":first-line")}function _(E){return p(E)&&!x(E)}function L(E){return!!(i(E)&&E.walk)}function T(E){return o(E)||g(E)}}),Kv=ue(e=>{"use strict";e.__esModule=!0;var t=at();Object.keys(t).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===t[i]||(e[i]=t[i])});var r=Jv();Object.keys(r).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===r[i]||(e[i]=r[i])});var n=Qv();Object.keys(n).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===n[i]||(e[i]=n[i])})}),eg=ue((e,t)=>{"use strict";e.__esModule=!0,e.default=void 0;var r=o(Zv()),n=a(Kv());function i(){if(typeof WeakMap!="function")return null;var u=new WeakMap;return i=function(){return u},u}function a(u){if(u&&u.__esModule)return u;if(u===null||typeof u!="object"&&typeof u!="function")return{default:u};var f=i();if(f&&f.has(u))return f.get(u);var c={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in u)if(Object.prototype.hasOwnProperty.call(u,h)){var m=p?Object.getOwnPropertyDescriptor(u,h):null;m&&(m.get||m.set)?Object.defineProperty(c,h,m):c[h]=u[h]}return c.default=u,f&&f.set(u,c),c}function o(u){return u&&u.__esModule?u:{default:u}}var l=function(u){return new r.default(u)};Object.assign(l,n),delete l.__esModule;var s=l;e.default=s,t.exports=e.default}),tg=ue(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:()=>t});function t(r){return r.replace(/\\,/g,"\\2c ")}}),rg=ue((e,t)=>{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),eu=ue(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});function t(m,d){for(var g in d)Object.defineProperty(m,g,{enumerable:!0,get:d[g]})}t(e,{parseColor:()=>p,formatColor:()=>h});var r=n(rg());function n(m){return m&&m.__esModule?m:{default:m}}var i=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,a=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,o=/(?:\d+|\d*\.\d+)%?/,l=/(?:\s*,\s*|\s+)/,s=/\s*[,/]\s*/,u=/var\(--(?:[^ )]*?)\)/,f=new RegExp(`^(rgb)a?\\(\\s*(${o.source}|${u.source})(?:${l.source}(${o.source}|${u.source}))?(?:${l.source}(${o.source}|${u.source}))?(?:${s.source}(${o.source}|${u.source}))?\\s*\\)$`),c=new RegExp(`^(hsl)a?\\(\\s*((?:${o.source})(?:deg|rad|grad|turn)?|${u.source})(?:${l.source}(${o.source}|${u.source}))?(?:${l.source}(${o.source}|${u.source}))?(?:${s.source}(${o.source}|${u.source}))?\\s*\\)$`);function p(m,{loose:d=!1}={}){var g,b;if(typeof m!="string")return null;if(m=m.trim(),m==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(m in r.default)return{mode:"rgb",color:r.default[m].map(E=>E.toString())};let x=m.replace(a,(E,R,C,D,M)=>["#",R,R,C,C,D,D,M?M+M:""].join("")).match(i);if(x!==null)return{mode:"rgb",color:[parseInt(x[1],16),parseInt(x[2],16),parseInt(x[3],16)].map(E=>E.toString()),alpha:x[4]?(parseInt(x[4],16)/255).toString():void 0};var _;let L=(_=m.match(f))!==null&&_!==void 0?_:m.match(c);if(L===null)return null;let T=[L[2],L[3],L[4]].filter(Boolean).map(E=>E.toString());return!d&&T.length!==3||T.length<3&&!T.some(E=>/^var\(.*?\)$/.test(E))?null:{mode:L[1],color:T,alpha:(g=L[5])===null||g===void 0||(b=g.toString)===null||b===void 0?void 0:b.call(g)}}function h({mode:m,color:d,alpha:g}){let b=g!==void 0;return`${m}(${d.join(" ")}${b?` / ${g}`:""})`}}),tu=ue(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});function t(a,o){for(var l in o)Object.defineProperty(a,l,{enumerable:!0,get:o[l]})}t(e,{withAlphaValue:()=>n,default:()=>i});var r=eu();function n(a,o,l){if(typeof a=="function")return a({opacityValue:o});let s=(0,r.parseColor)(a,{loose:!0});return s===null?l:(0,r.formatColor)({...s,alpha:o})}function i({color:a,property:o,variable:l}){let s=[].concat(o);if(typeof a=="function")return{[l]:"1",...Object.fromEntries(s.map(f=>[f,a({opacityVariable:l,opacityValue:`var(${l})`})]))};let u=(0,r.parseColor)(a);return u===null?Object.fromEntries(s.map(f=>[f,a])):u.alpha!==void 0?Object.fromEntries(s.map(f=>[f,a])):{[l]:"1",...Object.fromEntries(s.map(f=>[f,(0,r.formatColor)({...u,alpha:`var(${l})`})]))}}}),ng=ue(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});function t(p,h){for(var m in h)Object.defineProperty(p,m,{enumerable:!0,get:h[m]})}t(e,{pattern:()=>a,withoutCapturing:()=>o,any:()=>l,optional:()=>s,zeroOrMore:()=>u,nestedBrackets:()=>f,escape:()=>c});var r=/[\\^$.*+?()[\]{}|]/g,n=RegExp(r.source);function i(p){return p=Array.isArray(p)?p:[p],p=p.map(h=>h instanceof RegExp?h.source:h),p.join("")}function a(p){return new RegExp(i(p),"g")}function o(p){return new RegExp(`(?:${i(p)})`,"g")}function l(p){return`(?:${p.map(i).join("|")})`}function s(p){return`(?:${i(p)})?`}function u(p){return`(?:${i(p)})*`}function f(p,h,m=1){return o([c(p),/[^\s]*/,m===1?`[^${c(p)}${c(h)}s]*`:l([`[^${c(p)}${c(h)}s]*`,f(p,h,m-1)]),/[^\s]*/,c(h)])}function c(p){return p&&n.test(p)?p.replace(r,"\\$&"):p||""}}),ig=ue(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"splitAtTopLevelOnly",{enumerable:!0,get:()=>i});var t=n(ng());function r(a){if(typeof WeakMap!="function")return null;var o=new WeakMap,l=new WeakMap;return(r=function(s){return s?l:o})(a)}function n(a,o){if(!o&&a&&a.__esModule)return a;if(a===null||typeof a!="object"&&typeof a!="function")return{default:a};var l=r(o);if(l&&l.has(a))return l.get(a);var s={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in a)if(f!=="default"&&Object.prototype.hasOwnProperty.call(a,f)){var c=u?Object.getOwnPropertyDescriptor(a,f):null;c&&(c.get||c.set)?Object.defineProperty(s,f,c):s[f]=a[f]}return s.default=a,l&&l.set(a,s),s}function*i(a,o){let l=new RegExp(`[(){}\\[\\]${t.escape(o)}]`,"g"),s=0,u=0,f=!1,c=0,p=0,h=o.length;for(let m of a.matchAll(l)){let d=m[0]===o[c],g=c===h-1,b=d&&g;m[0]==="("&&s++,m[0]===")"&&s--,m[0]==="["&&s++,m[0]==="]"&&s--,m[0]==="{"&&s++,m[0]==="}"&&s--,d&&s===0&&(p===0&&(p=m.index),c++),b&&s===0&&(f=!0,yield a.substring(u,p),u=p+h),c===h&&(c=0,p=0)}f?yield a.substring(u):yield a}}),ag=ue(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});function t(s,u){for(var f in u)Object.defineProperty(s,f,{enumerable:!0,get:u[f]})}t(e,{parseBoxShadowValue:()=>o,formatBoxShadowValue:()=>l});var r=ig(),n=new Set(["inset","inherit","initial","revert","unset"]),i=/\ +(?![^(]*\))/g,a=/^-?(\d+|\.\d+)(.*?)$/g;function o(s){return Array.from((0,r.splitAtTopLevelOnly)(s,",")).map(u=>{let f=u.trim(),c={raw:f},p=f.split(i),h=new Set;for(let m of p)a.lastIndex=0,!h.has("KEYWORD")&&n.has(m)?(c.keyword=m,h.add("KEYWORD")):a.test(m)?h.has("X")?h.has("Y")?h.has("BLUR")?h.has("SPREAD")||(c.spread=m,h.add("SPREAD")):(c.blur=m,h.add("BLUR")):(c.y=m,h.add("Y")):(c.x=m,h.add("X")):c.color?(c.unknown||(c.unknown=[]),c.unknown.push(m)):c.color=m;return c.valid=c.x!==void 0&&c.y!==void 0,c})}function l(s){return s.map(u=>u.valid?[u.keyword,u.x,u.y,u.blur,u.spread,u.color].filter(Boolean).join(" "):u.raw).join(", ")}}),og=ue(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});function t(I,U){for(var O in U)Object.defineProperty(I,O,{enumerable:!0,get:U[O]})}t(e,{normalize:()=>l,url:()=>s,number:()=>u,percentage:()=>f,length:()=>h,lineWidth:()=>d,shadow:()=>g,color:()=>b,image:()=>x,gradient:()=>L,position:()=>E,familyName:()=>R,genericName:()=>D,absoluteSize:()=>H,relativeSize:()=>ee});var r=eu(),n=ag(),i=["min","max","clamp","calc"],a=/,(?![^(]*\))/g,o=/_(?![^(]*\))/g;function l(I,U=!0){return I.includes("url(")?I.split(/(url\(.*?\))/g).filter(Boolean).map(O=>/^url\(.*?\)$/.test(O)?O:l(O,!1)).join(""):(I=I.replace(/([^\\])_+/g,(O,q)=>q+" ".repeat(O.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),U&&(I=I.trim()),I=I.replace(/(calc|min|max|clamp)\(.+\)/g,O=>O.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),I)}function s(I){return I.startsWith("url(")}function u(I){return!isNaN(Number(I))||i.some(U=>new RegExp(`^${U}\\(.+?`).test(I))}function f(I){return I.split(o).every(U=>/%$/g.test(U)||i.some(O=>new RegExp(`^${O}\\(.+?%`).test(U)))}var c=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],p=`(?:${c.join("|")})`;function h(I){return I.split(o).every(U=>U==="0"||new RegExp(`${p}$`).test(U)||i.some(O=>new RegExp(`^${O}\\(.+?${p}`).test(U)))}var m=new Set(["thin","medium","thick"]);function d(I){return m.has(I)}function g(I){let U=(0,n.parseBoxShadowValue)(l(I));for(let O of U)if(!O.valid)return!1;return!0}function b(I){let U=0;return I.split(o).every(O=>(O=l(O),O.startsWith("var(")?!0:(0,r.parseColor)(O,{loose:!0})!==null?(U++,!0):!1))?U>0:!1}function x(I){let U=0;return I.split(a).every(O=>(O=l(O),O.startsWith("var(")?!0:s(O)||L(O)||["element(","image(","cross-fade(","image-set("].some(q=>O.startsWith(q))?(U++,!0):!1))?U>0:!1}var _=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function L(I){I=l(I);for(let U of _)if(I.startsWith(`${U}(`))return!0;return!1}var T=new Set(["center","top","right","bottom","left"]);function E(I){let U=0;return I.split(o).every(O=>(O=l(O),O.startsWith("var(")?!0:T.has(O)||h(O)||f(O)?(U++,!0):!1))?U>0:!1}function R(I){let U=0;return I.split(a).every(O=>(O=l(O),O.startsWith("var(")?!0:O.includes(" ")&&!/(['"])([^"']+)\1/g.test(O)||/^\d/g.test(O)?!1:(U++,!0)))?U>0:!1}var C=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function D(I){return C.has(I)}var M=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function H(I){return M.has(I)}var Q=new Set(["larger","smaller"]);function ee(I){return Q.has(I)}}),sg=ue(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});function t(E,R){for(var C in R)Object.defineProperty(E,C,{enumerable:!0,get:R[C]})}t(e,{updateAllClasses:()=>s,asValue:()=>c,parseColorFormat:()=>m,asColor:()=>d,asLookupValue:()=>g,coerceValue:()=>T});var r=l(eg()),n=l(tg()),i=tu(),a=og(),o=l(Nl());function l(E){return E&&E.__esModule?E:{default:E}}function s(E,R){return(0,r.default)(C=>{C.walkClasses(D=>{let M=R(D.value);D.value=M,D.raws&&D.raws.value&&(D.raws.value=(0,n.default)(D.raws.value))})}).processSync(E)}function u(E,R){if(!p(E))return;let C=E.slice(1,-1);if(R(C))return(0,a.normalize)(C)}function f(E,R={},C){let D=R[E];if(D!==void 0)return(0,o.default)(D);if(p(E)){let M=u(E,C);return M===void 0?void 0:(0,o.default)(M)}}function c(E,R={},{validate:C=()=>!0}={}){var D;let M=(D=R.values)===null||D===void 0?void 0:D[E];return M!==void 0?M:R.supportsNegativeValues&&E.startsWith("-")?f(E.slice(1),R.values,C):u(E,C)}function p(E){return E.startsWith("[")&&E.endsWith("]")}function h(E){let R=E.lastIndexOf("/");return R===-1||R===E.length-1?[E]:[E.slice(0,R),E.slice(R+1)]}function m(E){if(typeof E=="string"&&E.includes("<alpha-value>")){let R=E;return({opacityValue:C=1})=>R.replace("<alpha-value>",C)}return E}function d(E,R={},{tailwindConfig:C={}}={}){var D;if(((D=R.values)===null||D===void 0?void 0:D[E])!==void 0){var M;return m((M=R.values)===null||M===void 0?void 0:M[E])}let[H,Q]=h(E);if(Q!==void 0){var ee,I,U,O;let q=(O=(ee=R.values)===null||ee===void 0?void 0:ee[H])!==null&&O!==void 0?O:p(H)?H.slice(1,-1):void 0;return q===void 0?void 0:(q=m(q),p(Q)?(0,i.withAlphaValue)(q,Q.slice(1,-1)):((I=C.theme)===null||I===void 0||(U=I.opacity)===null||U===void 0?void 0:U[Q])===void 0?void 0:(0,i.withAlphaValue)(q,C.theme.opacity[Q]))}return c(E,R,{validate:a.color})}function g(E,R={}){var C;return(C=R.values)===null||C===void 0?void 0:C[E]}function b(E){return(R,C)=>c(R,C,{validate:E})}var x={any:c,color:d,url:b(a.url),image:b(a.image),length:b(a.length),percentage:b(a.percentage),position:b(a.position),lookup:g,"generic-name":b(a.genericName),"family-name":b(a.familyName),number:b(a.number),"line-width":b(a.lineWidth),"absolute-size":b(a.absoluteSize),"relative-size":b(a.relativeSize),shadow:b(a.shadow)},_=Object.keys(x);function L(E,R){let C=E.indexOf(R);return C===-1?[void 0,E]:[E.slice(0,C),E.slice(C+1)]}function T(E,R,C,D){if(p(R)){let M=R.slice(1,-1),[H,Q]=L(M,":");if(!/^[\w-_]+$/g.test(H))Q=M;else if(H!==void 0&&!_.includes(H))return[];if(Q.length>0&&_.includes(H))return[c(`[${Q}]`,C),H]}for(let M of[].concat(E)){let H=x[M](R,C,{tailwindConfig:D});if(H!==void 0)return[H,M]}return[]}}),lg=ue(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:()=>t});function t(r){return typeof r=="function"?r({}):r}}),ug=ue(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:()=>ee});var t=m(Nl()),r=m(Dv()),n=m(Uv()),i=m(Ml()),a=m(Nv()),o=Mv(),l=Wv(),s=Gv(),u=m(Bv()),f=$v(),c=sg(),p=tu(),h=m(lg());function m(I){return I&&I.__esModule?I:{default:I}}function d(I){return typeof I=="function"}function g(I){return typeof I=="object"&&I!==null}function b(I,...U){let O=U.pop();for(let q of U)for(let K in q){let ne=O(I[K],q[K]);ne===void 0?g(I[K])&&g(q[K])?I[K]=b(I[K],q[K],O):I[K]=q[K]:I[K]=ne}return I}var x={colors:a.default,negative(I){return Object.keys(I).filter(U=>I[U]!=="0").reduce((U,O)=>{let q=(0,t.default)(I[O]);return q!==void 0&&(U[`-${O}`]=q),U},{})},breakpoints(I){return Object.keys(I).filter(U=>typeof I[U]=="string").reduce((U,O)=>({...U,[`screen-${O}`]:I[O]}),{})}};function _(I,...U){return d(I)?I(...U):I}function L(I){return I.reduce((U,{extend:O})=>b(U,O,(q,K)=>q===void 0?[K]:Array.isArray(q)?[K,...q]:[K,q]),{})}function T(I){return{...I.reduce((U,O)=>(0,o.defaults)(U,O),{}),extend:L(I)}}function E(I,U){if(Array.isArray(I)&&g(I[0]))return I.concat(U);if(Array.isArray(U)&&g(U[0])&&g(I))return[I,...U];if(Array.isArray(U))return U}function R({extend:I,...U}){return b(U,I,(O,q)=>!d(O)&&!q.some(d)?b({},O,...q,E):(K,ne)=>b({},...[O,...q].map(ie=>_(ie,K,ne)),E))}function*C(I){let U=(0,l.toPath)(I);if(U.length===0||(yield U,Array.isArray(I)))return;let O=/^(.*?)\s*\/\s*([^/]+)$/,q=I.match(O);if(q!==null){let[,K,ne]=q,ie=(0,l.toPath)(K);ie.alpha=ne,yield ie}}function D(I){let U=(O,q)=>{for(let K of C(O)){let ne=0,ie=I;for(;ie!=null&&ne<K.length;)ie=ie[K[ne++]],ie=d(ie)&&(K.alpha===void 0||ne<=K.length-1)?ie(U,x):ie;if(ie!==void 0){if(K.alpha!==void 0){let V=(0,c.parseColorFormat)(ie);return(0,p.withAlphaValue)(V,K.alpha,(0,h.default)(V))}return(0,u.default)(ie)?(0,f.cloneDeep)(ie):ie}}return q};return Object.assign(U,{theme:U,...x}),Object.keys(I).reduce((O,q)=>(O[q]=d(I[q])?I[q](U,x):I[q],O),{})}function M(I){let U=[];return I.forEach(O=>{U=[...U,O];var q;let K=(q=O?.plugins)!==null&&q!==void 0?q:[];K.length!==0&&K.forEach(ne=>{ne.__isOptionsFunction&&(ne=ne());var ie;U=[...U,...M([(ie=ne?.config)!==null&&ie!==void 0?ie:{}])]})}),U}function H(I){return[...I].reduceRight((U,O)=>d(O)?O({corePlugins:U}):(0,n.default)(O,U),r.default)}function Q(I){return[...I].reduceRight((U,O)=>[...U,...O],[])}function ee(I){let U=[...M(I),{prefix:"",important:!1,separator:":",variantOrder:i.default.variantOrder}];var O,q;return(0,s.normalizeConfig)((0,o.defaults)({theme:D(R(T(U.map(K=>(O=K?.theme)!==null&&O!==void 0?O:{})))),corePlugins:H(U.map(K=>K.corePlugins)),plugins:Q(I.map(K=>(q=K?.plugins)!==null&&q!==void 0?q:[]))},...U))}}),ru={};Ca(ru,{default:()=>nu});var nu,fg=La(()=>{nu={yellow:e=>e}}),cg=ue(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});function t(c,p){for(var h in p)Object.defineProperty(c,h,{enumerable:!0,get:p[h]})}t(e,{flagEnabled:()=>l,issueFlagNotices:()=>u,default:()=>f});var r=i((fg(),Yn(ru))),n=i((Oa(),Yn(Qn)));function i(c){return c&&c.__esModule?c:{default:c}}var a={optimizeUniversalDefaults:!1},o={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function l(c,p){if(o.future.includes(p)){var h,m,d;return c.future==="all"||((d=(m=c==null||(h=c.future)===null||h===void 0?void 0:h[p])!==null&&m!==void 0?m:a[p])!==null&&d!==void 0?d:!1)}if(o.experimental.includes(p)){var g,b,x;return c.experimental==="all"||((x=(b=c==null||(g=c.experimental)===null||g===void 0?void 0:g[p])!==null&&b!==void 0?b:a[p])!==null&&x!==void 0?x:!1)}return!1}function s(c){if(c.experimental==="all")return o.experimental;var p;return Object.keys((p=c?.experimental)!==null&&p!==void 0?p:{}).filter(h=>o.experimental.includes(h)&&c.experimental[h])}function u(c){if(process.env.JEST_WORKER_ID===void 0&&s(c).length>0){let p=s(c).map(h=>r.default.yellow(h)).join(", ");n.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${p}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}var f=o}),pg=ue(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:()=>i});var t=n(Ml()),r=cg();function n(a){return a&&a.__esModule?a:{default:a}}function i(a){var o;let l=((o=a?.presets)!==null&&o!==void 0?o:[t.default]).slice().reverse().flatMap(f=>i(typeof f=="function"?f():f)),s={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},u=Object.keys(s).filter(f=>(0,r.flagEnabled)(a,f)).map(f=>s[f]);return[a,...u,...l]}}),hg=ue(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:()=>i});var t=n(ug()),r=n(pg());function n(a){return a&&a.__esModule?a:{default:a}}function i(...a){let[,...o]=(0,r.default)(a[0]);return(0,t.default)([...a,...o])}}),dg=ue((e,t)=>{var r=hg();t.exports=(r.__esModule?r:{default:r}).default}),nn;function iu(e){nn=e}var Qr=null;async function ei(){return nn||(Qr?(await Qr,nn):(Qr=Promise.resolve().then(()=>(Fv(),Ul)).then(e=>e.getYogaModule()).then(e=>nn=e),await Qr,Qr=null,nn))}var sn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),vg=sn((e,t)=>{t.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),gg=sn((e,t)=>{t.exports=["deg","grad","rad","turn"]}),mg=sn((e,t)=>{t.exports=["dpi","dpcm","dppx"]}),yg=sn((e,t)=>{t.exports=["Hz","kHz"]}),bg=sn((e,t)=>{t.exports=["s","ms"]}),xg=vg(),au=gg(),ou=mg(),su=yg(),lu=bg();function Ra(e){if(/\.\D?$/.test(e))throw new Error("The dot should be followed by a number");if(/^[+-]{2}/.test(e))throw new Error("Only one leading +/- is allowed");if(wg(e)>1)throw new Error("Only one dot is allowed");if(/%$/.test(e)){this.type="percentage",this.value=ua(e),this.unit="%";return}var t=Eg(e);if(!t){this.type="number",this.value=ua(e);return}this.type=Tg(t),this.value=ua(e.substr(0,e.length-t.length)),this.unit=t}Ra.prototype.valueOf=function(){return this.value};Ra.prototype.toString=function(){return this.value+(this.unit||"")};function ln(e){return new Ra(e)}function wg(e){var t=e.match(/\./g);return t?t.length:0}function ua(e){var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid number: "+e);return t}var Sg=[].concat(au,su,xg,ou,lu);function Eg(e){var t=e.match(/\D+$/),r=t&&t[0];if(r&&Sg.indexOf(r)===-1)throw new Error("Invalid unit: "+r);return r}var kg=Object.assign(Fn(au,"angle"),Fn(su,"frequency"),Fn(ou,"resolution"),Fn(lu,"time"));function Fn(e,t){return Object.fromEntries(e.map(r=>[r,t]))}function Tg(e){return kg[e]||"length"}function zn(e){let t=typeof e;return!(t==="number"||t==="bigint"||t==="string"||t==="boolean")}function _g(e){return/^class\s/.test(e.toString())}function Lg(e){return"dangerouslySetInnerHTML"in e}function Cg(e){let t=typeof e>"u"?[]:[].concat(e).flat(1/0),r=[];for(let n=0;n<t.length;n++){let i=t[n];typeof i>"u"||typeof i=="boolean"||i===null||(typeof i=="number"&&(i=String(i)),typeof i=="string"&&r.length&&typeof r[r.length-1]=="string"?r[r.length-1]+=i:r.push(i))}return r}function Ae(e,t,r,n,i=!1){if(typeof e=="number")return e;try{if(e=e.trim(),/[ /\(,]/.test(e))return;if(e===String(+e))return+e;let a=new ln(e);if(a.type==="length")switch(a.unit){case"em":return a.value*t;case"rem":return a.value*16;case"vw":return~~(a.value*n._viewportWidth/100);case"vh":return~~(a.value*n._viewportHeight/100);default:return a.value}else{if(a.type==="angle")return uu(e);if(a.type==="percentage"&&i)return a.value/100*r}}catch{}}function uu(e){let t=new ln(e);switch(t.unit){case"deg":return t.value;case"rad":return t.value*180/Math.PI;case"turn":return t.value*360;case"grad":return .9*t.value}}function Vn(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}function It(e,t,r,n){let i=t[e];if(typeof i>"u"){if(n&&typeof e<"u")throw new Error(`Invalid value for CSS property "${n}". Allowed values: ${Object.keys(t).map(a=>`"${a}"`).join(" | ")}. Received: "${e}".`);i=r}return i}var fa,ca,Og=[32,160,4961,65792,65793,4153,4241,10].map(e=>String.fromCodePoint(e));function Rt(e,t,r){if(!fa||!ca){if(!(typeof Intl<"u"&&"Segmenter"in Intl))throw new Error("Intl.Segmenter does not exist, please use import a polyfill.");fa=new Intl.Segmenter(r,{granularity:"word"}),ca=new Intl.Segmenter(r,{granularity:"grapheme"})}if(t==="grapheme")return[...ca.segment(e)].map(n=>n.segment);{let n=[...fa.segment(e)].map(o=>o.segment),i=[],a=0;for(;a<n.length;){let o=n[a];if(o=="\xA0"){let l=a===0?"":i.pop(),s=a===n.length-1?"":n[a+1];i.push(l+"\xA0"+s),a+=2}else i.push(o),a++}return i}}function le(e,t,r){let n="";for(let[i,a]of Object.entries(t))typeof a<"u"&&(n+=` ${i}="${a}"`);return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}/>`}function Ag(e=20){let t=new Map;function r(a,o){if(t.size>=e){let l=t.keys().next().value;t.delete(l)}t.set(a,o)}function n(a){if(!t.has(a))return;let o=t.get(a);return t.delete(a),t.set(a,o),o}function i(){t.clear()}return{set:r,get:n,clear:i}}function Fa(e){return e?e.split(/[, ]/).filter(Boolean).map(Number):null}function Ig(e){return Object.prototype.toString.call(e)}function fu(e){return typeof e=="string"}function Pg(e){return typeof e=="number"}function Rg(e){return Ig(e)==="[object Undefined]"}function Fg(e,t){if(t==="break-all")return{words:Rt(e,"grapheme"),requiredBreaks:[]};if(t==="keep-all")return{words:Rt(e,"word"),requiredBreaks:[]};let r=new xi(e),n=0,i=r.nextBreak(),a=[],o=[!1];for(;i;){let l=e.slice(n,i.position);a.push(l),i.required?o.push(!0):o.push(!1),n=i.position,i=r.nextBreak()}return{words:a,requiredBreaks:o}}var Dg=e=>e.replaceAll(/([A-Z])/g,(t,r)=>`-${r.toLowerCase()}`);function cu(e,t=","){let r=[],n=0,i=0;t=new RegExp(t);for(let a=0;a<e.length;a++)e[a]==="("?i++:e[a]===")"&&i--,i===0&&t.test(e[a])&&(r.push(e.slice(n,a).trim()),n=a+1);return r.push(e.slice(n).trim()),r}var Ug="image/avif",Ng="image/webp",ti="image/apng",ri="image/png",ni="image/jpeg",ii="image/gif",Da="image/svg+xml";function pu(e){let t=new DataView(e),r=4,n=t.byteLength;for(;r<n;){let i=t.getUint16(r,!1);if(i>n)throw new TypeError("Invalid JPEG");let a=t.getUint8(i+1+r);if(a===192||a===193||a===194)return[t.getUint16(i+7+r,!1),t.getUint16(i+5+r,!1)];r+=i+2}throw new TypeError("Invalid JPEG")}function hu(e){let t=new Uint8Array(e.slice(6,10));return[t[0]|t[1]<<8,t[2]|t[3]<<8]}function du(e){let t=new DataView(e);return[t.getUint16(18,!1),t.getUint16(22,!1)]}var sr=Ag(100),Hn=new Map,Mg=[ri,ti,ni,ii,Da];function Wg(e){let t="",r=new Uint8Array(e);for(let n=0;n<r.byteLength;n++)t+=String.fromCharCode(r[n]);return btoa(t)}function Gg(e){let t=atob(e),r=t.length,n=new Uint8Array(r);for(let i=0;i<r;i++)n[i]=t.charCodeAt(i);return n.buffer}function ul(e,t){let r=t.match(/<svg[^>]*>/)[0],n=r.match(/viewBox=['"](.+)['"]/),i=n?Fa(n[1]):null,a=r.match(/width=['"](\d*\.\d+|\d+)['"]/),o=r.match(/height=['"](\d*\.\d+|\d+)['"]/);if(!i&&(!a||!o))throw new Error(`Failed to parse SVG from ${e}: missing "viewBox"`);let l=i?[i[2],i[3]]:[+a[1],+o[1]],s=l[0]/l[1];return a&&o?[+a[1],+o[1]]:a?[+a[1],+a[1]/s]:o?[+o[1]*s,+o[1]]:[l[0],l[1]]}function fl(e){let t,r=Bg(new Uint8Array(e));switch(r){case ri:case ti:t=du(e);break;case ii:t=hu(e);break;case ni:t=pu(e);break}if(!Mg.includes(r))throw new Error(`Unsupported image type: ${r||"unknown"}`);return[`data:${r};base64,${Wg(e)}`,t]}async function Ua(e){if(!e)throw new Error("Image source is not provided.");if(typeof e=="object"){let[i,a]=fl(e);return[i,...a]}if((e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1)),typeof window>"u"&&!e.startsWith("http")&&!e.startsWith("data:"))throw new Error(`Image source must be an absolute URL: ${e}`);if(e.startsWith("data:")){let i;try{i=/data:(?<imageType>[a-z/+]+)(;[^;=]+=[^;=]+)*?(;(?<encodingType>[^;,]+))?,(?<dataString>.*)/g.exec(e).groups}catch{return console.warn("Image data URI resolved without size:"+e),[e]}let{imageType:a,encodingType:o,dataString:l}=i;if(a===Da){let s=o==="base64"?atob(l):decodeURIComponent(l.replace(/ /g,"%20")),u=o==="base64"?e:`data:image/svg+xml;base64,${btoa(s)}`,f=ul(e,s);return sr.set(e,[u,...f]),[u,...f]}else if(o==="base64"){let s,u=Gg(l);switch(a){case ri:case ti:s=du(u);break;case ii:s=hu(u);break;case ni:s=pu(u);break}return sr.set(e,[e,...s]),[e,...s]}else return console.warn("Image data URI resolved without size:"+e),sr.set(e,[e]),[e]}if(!globalThis.fetch)throw new Error("`fetch` is required to be polyfilled to load images.");if(Hn.has(e))return Hn.get(e);let t=sr.get(e);if(t)return t;let r=e,n=fetch(r).then(i=>{let a=i.headers.get("content-type");return a==="image/svg+xml"||a==="application/svg+xml"?i.text():i.arrayBuffer()}).then(i=>{if(typeof i=="string")try{let l=`data:image/svg+xml;base64,${btoa(i)}`,s=ul(r,i);return[l,...s]}catch(l){throw new Error(`Failed to parse SVG image: ${l.message}`)}let[a,o]=fl(i);return[a,...o]}).then(i=>(sr.set(r,i),i)).catch(i=>(console.error(`Can't load image ${r}: `+i.message),sr.set(r,[]),[]));return Hn.set(r,n),n}function Bg(e){return[255,216,255].every((t,r)=>e[r]===t)?ni:[137,80,78,71,13,10,26,10].every((t,r)=>e[r]===t)?$g(e)?ti:ri:[71,73,70,56].every((t,r)=>e[r]===t)?ii:[82,73,70,70,0,0,0,0,87,69,66,80].every((t,r)=>!t||e[r]===t)?Ng:[60,63,120,109,108].every((t,r)=>e[r]===t)?Da:[0,0,0,0,102,116,121,112,97,118,105,102].every((t,r)=>!t||e[r]===t)?Ug:null}function $g(e){let t=new DataView(e.buffer),r,n,i=8,a=!1;for(;!a&&r!=="IEND"&&i<e.length;){n=t.getUint32(i);let o=e.subarray(i+4,i+8);r=String.fromCharCode(...o),a=r==="acTL",i+=12+n}return a}var xa={accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",href:"href",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space",xmlnsXlink:"xmlns:xlink"},jg=/[\r\n%#()<>?[\\\]^`{|}"']/g;function wa(e,t){if(!e)return"";if(Array.isArray(e))return e.map(u=>wa(u,t)).join("");if(typeof e!="object")return String(e);let r=e.type;if(r==="text")throw new Error("<text> nodes are not currently supported, please convert them to <path>");let{children:n,style:i,...a}=e.props||{},o=i?.color||t,l=`${Object.entries(a).map(([u,f])=>(typeof f=="string"&&f.toLowerCase()==="currentcolor"&&(f=o),u==="href"&&r==="image"?` ${xa[u]||u}="${sr.get(f)[0]}"`:` ${xa[u]||u}="${f}"`)).join("")}`,s=i?` style="${Object.entries(i).map(([u,f])=>`${Dg(u)}:${f}`).join(";")}"`:"";return`<${r}${l}${s}>${wa(n,o)}</${r}>`}async function zg(e){let t=new Set,r=n=>{if(n&&zn(n)){if(Array.isArray(n)){n.forEach(i=>r(i));return}else typeof n=="object"&&(n.type==="image"?t.has(n.props.href)||t.add(n.props.href):n.type==="img"&&(t.has(n.props.src)||t.add(n.props.src)));Array.isArray(n.props.children)?n.props.children.map(i=>r(i)):r(n.props.children)}};return r(e),Promise.all(Array.from(t).map(n=>Ua(n)))}async function Vg(e,t){let{viewBox:r,viewbox:n,width:i,height:a,className:o,style:l,children:s,...u}=e.props||{};r||=n,u.xmlns="http://www.w3.org/2000/svg";let f=l?.color||t,c=Fa(r),p=c?c[3]/c[2]:null;return i=i||p&&a?a/p:null,a=a||p&&i?i*p:null,u.width=i,u.height=a,r&&(u.viewBox=r),`data:image/svg+xml;utf8,${`<svg ${Object.entries(u).map(([h,m])=>(typeof m=="string"&&m.toLowerCase()==="currentcolor"&&(m=f),` ${xa[h]||h}="${m}"`)).join("")}>${wa(s,f)}</svg>`.replace(jg,encodeURIComponent)}`}var xt="flex",Hg={p:{display:xt,marginTop:"1em",marginBottom:"1em"},div:{display:xt},blockquote:{display:xt,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:xt,textAlign:"center"},hr:{display:xt,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:xt,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:xt,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:xt,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:xt,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:xt,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:xt,fontSize:"0.67em",marginTop:"2.33em",marginBottom:"2.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},u:{textDecoration:"underline"},strong:{fontWeight:"bold"},b:{fontWeight:"bold"},i:{fontStyle:"italic"},em:{fontStyle:"italic"},code:{fontFamily:"monospace"},kbd:{fontFamily:"monospace"},pre:{display:xt,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}},Xg=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textTransform","textShadowOffset","textShadowColor","textShadowRadius","WebkitTextStrokeWidth","WebkitTextStrokeColor","textDecorationLine","textDecorationStyle","textDecorationColor","whiteSpace","transform","wordBreak","tabSize","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath"]);function qg(e){let t={};for(let r in e)Xg.has(r)&&(t[r]=e[r]);return t}function Yg(e,t){try{let r=new ln(e);switch(r.unit){case"px":return{absolute:r.value};case"em":return{absolute:r.value*t};case"rem":return{absolute:r.value*16};case"%":return{relative:r.value};default:return{}}}catch{return{}}}function pa(e,t,r){switch(e){case"top":return{yRelative:0};case"left":return{xRelative:0};case"right":return{xRelative:100};case"bottom":return{yRelative:100};case"center":return{};default:{let n=Yg(e,t);return n.absolute?{[r?"xAbsolute":"yAbsolute"]:n.absolute}:n.relative?{[r?"xRelative":"yRelative"]:n.relative}:{}}}}function Zg(e,t){if(typeof e=="number")return{xAbsolute:e};let r;try{r=(0,yu.default)(e).nodes.filter(n=>n.type==="word").map(n=>n.value)}catch{return{}}return r.length===1?pa(r[0],t,!0):r.length===2?((r[0]==="top"||r[0]==="bottom"||r[1]==="left"||r[1]==="right")&&r.reverse(),{...pa(r[0],t,!0),...pa(r[1],t,!1)}):{}}function Kr(e,t){let r=(0,bu.getPropertyName)(`mask-${t}`);return e[r]||e[`WebkitM${r.substring(1)}`]}function Jg(e){let t=e.maskImage||e.WebkitMaskImage,r={position:Kr(e,"position")||"0% 0%",size:Kr(e,"size")||"100% 100%",repeat:Kr(e,"repeat")||"repeat",origin:Kr(e,"origin")||"border-box",clip:Kr(e,"origin")||"border-box"};return cu(t).filter(n=>n&&n!=="none").reverse().map(n=>({image:n,...r}))}var Qg=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),Kg=new Set(["lineHeight"]);function em(e,t,r,n){return e==="textDecoration"&&!r.includes(t.textDecorationColor)&&(t.textDecorationColor=n),t}function mr(e,t){let r=Number(t);return isNaN(r)?t:Qg.has(e)?Kg.has(e)?r:String(t):r+"px"}function tm(e,t,r){if(e==="lineHeight")return{lineHeight:mr(e,t)};if(e==="fontFamily")return{fontFamily:t.split(",").map(n=>n.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(e==="borderRadius"){if(typeof t!="string"||!t.includes("/"))return;let[n,i]=t.split("/"),a=(0,Pt.getStylesForProperty)(e,n,!0),o=(0,Pt.getStylesForProperty)(e,i,!0);for(let l in a)o[l]=mr(e,a[l])+" "+mr(e,o[l]);return o}if(/^border(Top|Right|Bottom|Left)?$/.test(e)){let n=(0,Pt.getStylesForProperty)("border",t,!0);n.borderWidth===1&&!String(t).includes("1px")&&(n.borderWidth=3),n.borderColor==="black"&&!String(t).includes("black")&&(n.borderColor=r);let i={Width:mr(e+"Width",n.borderWidth),Style:It(n.borderStyle,{solid:"solid",dashed:"dashed"},"solid",e+"Style"),Color:n.borderColor},a={};for(let o of e==="border"?["Top","Right","Bottom","Left"]:[e.slice(6)])for(let l in i)a["border"+o+l]=i[l];return a}if(e==="boxShadow"){if(!t)throw new Error('Invalid `boxShadow` value: "'+t+'".');return{[e]:typeof t=="string"?(0,gu.parse)(t):t}}if(e==="transform"){if(typeof t!="string")throw new Error("Invalid `transform` value.");let n={},i=t.replace(/(-?[\d.]+%)/g,(o,l)=>{let s=~~(Math.random()*1e9);return n[s]=l,s+"px"}),a=(0,Pt.getStylesForProperty)("transform",i,!0);for(let o of a.transform)for(let l in o)n[o[l]]&&(o[l]=n[o[l]]);return a}if(e==="background")return t=t.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient)\(/.test(t)?(0,Pt.getStylesForProperty)("backgroundImage",t,!0):(0,Pt.getStylesForProperty)("background",t,!0);if(e==="textShadow"){t=t.toString().trim();let n={},i=cu(t);for(let a of i){let o=(0,Pt.getStylesForProperty)("textShadow",a,!0);for(let l in o)n[l]?n[l].push(o[l]):n[l]=[o[l]]}return n}if(e==="WebkitTextStroke"){t=t.toString().trim();let n=t.split(" ");if(n.length!==2)throw new Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:mr(e,n[0]),WebkitTextStrokeColor:mr(e,n[1])}}}function cl(e){return e==="transform"?" Only absolute lengths such as `10px` are supported.":""}var pl=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function xu(e){if(typeof e=="string"&&pl.test(e.trim()))return e.trim().replace(pl,(t,r,n,i,a)=>`rgba(${r}, ${n}, ${i}, ${a})`);if(typeof e=="object"&&e!==null){for(let t in e)e[t]=xu(e[t]);return e}return e}function hl(e,t){let r={};if(e){let i=nm(e.color,t.color);r.color=i;for(let a in e){if(a.startsWith("_")){r[a]=e[a];continue}if(a==="color")continue;let o=(0,Pt.getPropertyName)(a),l=am(e[a],i);try{let s=tm(o,l,i)||em(o,(0,Pt.getStylesForProperty)(o,mr(o,l),!0),l,i);Object.assign(r,s)}catch(s){throw new Error(s.message+(s.message.includes(l)?`
|
|
52
|
+
`+cl(o):`
|
|
53
|
+
in CSS rule \`${o}: ${l}\`.${cl(o)}`))}}}if(r.backgroundImage){let{backgrounds:i}=(0,vu.parseElementStyle)(r);r.backgroundImage=i}(r.maskImage||r.WebkitMaskImage)&&(r.maskImage=Jg(r));let n=rm(r.fontSize,t.fontSize);typeof r.fontSize<"u"&&(r.fontSize=n),r.transformOrigin&&(r.transformOrigin=Zg(r.transformOrigin,n));for(let i in r){let a=r[i];if(i==="lineHeight")typeof a=="string"&&a!=="normal"&&(a=r[i]=Ae(a,n,n,t,!0)/n);else{if(typeof a=="string"){let o=Ae(a,n,n,t);typeof o<"u"&&(r[i]=o),a=r[i]}if(typeof a=="string"||typeof a=="object"){let o=xu(a);o&&(r[i]=o),a=r[i]}}if(i==="opacity"&&typeof a=="number"&&(r.opacity=a*t.opacity),i==="transform"){let o=a;for(let l of o){let s=Object.keys(l)[0],u=l[s],f=typeof u=="string"?Ae(u,n,n,t)??u:u;l[s]=f}}if(i==="textShadowRadius"){let o=a;r.textShadowRadius=o.map(l=>Ae(l,n,0,t,!1))}if(i==="textShadowOffset"){let o=a;r.textShadowOffset=o.map(({height:l,width:s})=>({height:Ae(l,n,0,t,!1),width:Ae(s,n,0,t,!1)}))}}return r}function rm(e,t){if(typeof e=="number")return e;try{let r=new ln(e);switch(r.unit){case"em":return r.value*t;case"rem":return r.value*16}}catch{return t}}function dl(e){if(e.startsWith("hsl")){let t=(0,mu.default)(e),[r,n,i]=t.values;return`hsl(${[r,`${n}%`,`${i}%`].concat(t.alpha===1?[]:[t.alpha]).join(",")})`}return e}function nm(e,t){return e&&e.toLowerCase()!=="currentcolor"?dl(e):dl(t)}function im(e,t){return e.replace(/currentcolor/gi,t)}function am(e,t){return fu(e)&&(e=im(e,t)),e}async function om(e,t,r,n,i){let a=await ei(),o={...r,...hl(Hg[t],r),...hl(n,r)};if(t==="img"){let[l,s,u]=await Ua(i.src);if(s===void 0&&u===void 0){if(i.width===void 0||i.height===void 0)throw new Error("Image size cannot be determined. Please provide the width and height of the image.");s=parseInt(i.width),u=parseInt(i.height)}let f=u/s,c=(o.borderLeftWidth||0)+(o.borderRightWidth||0)+(o.paddingLeft||0)+(o.paddingRight||0),p=(o.borderTopWidth||0)+(o.borderBottomWidth||0)+(o.paddingTop||0)+(o.paddingBottom||0),h=o.width||i.width,m=o.height||i.height,d=typeof h=="number"&&typeof m=="number";d&&(h-=c,m-=p),h===void 0&&m===void 0?(h="100%",e.setAspectRatio(1/f)):h===void 0?typeof m=="number"?h=m/f:e.setAspectRatio(1/f):m===void 0&&(typeof h=="number"?m=h*f:e.setAspectRatio(1/f)),o.width=d?h+c:h,o.height=d?m+p:m,o.__src=l}if(t==="svg"){let l=i.viewBox||i.viewbox,s=Fa(l),u=s?s[3]/s[2]:null,{width:f,height:c}=i;typeof f>"u"&&c?u==null?f=0:typeof c=="string"&&c.endsWith("%")?f=parseInt(c)/u+"%":(c=Ae(c,r.fontSize,1,r),f=c/u):typeof c>"u"&&f?u==null?f=0:typeof f=="string"&&f.endsWith("%")?c=parseInt(f)*u+"%":(f=Ae(f,r.fontSize,1,r),c=f*u):(typeof f<"u"&&(f=Ae(f,r.fontSize,1,r)||f),typeof c<"u"&&(c=Ae(c,r.fontSize,1,r)||c),f||=s?.[2],c||=s?.[3]),!o.width&&f&&(o.width=f),!o.height&&c&&(o.height=c)}return e.setDisplay(It(o.display,{flex:a.DISPLAY_FLEX,block:a.DISPLAY_FLEX,none:a.DISPLAY_NONE,"-webkit-box":a.DISPLAY_FLEX},a.DISPLAY_FLEX,"display")),e.setAlignContent(It(o.alignContent,{stretch:a.ALIGN_STRETCH,center:a.ALIGN_CENTER,"flex-start":a.ALIGN_FLEX_START,"flex-end":a.ALIGN_FLEX_END,"space-between":a.ALIGN_SPACE_BETWEEN,"space-around":a.ALIGN_SPACE_AROUND,baseline:a.ALIGN_BASELINE,normal:a.ALIGN_AUTO},a.ALIGN_AUTO,"alignContent")),e.setAlignItems(It(o.alignItems,{stretch:a.ALIGN_STRETCH,center:a.ALIGN_CENTER,"flex-start":a.ALIGN_FLEX_START,"flex-end":a.ALIGN_FLEX_END,baseline:a.ALIGN_BASELINE,normal:a.ALIGN_AUTO},a.ALIGN_STRETCH,"alignItems")),e.setAlignSelf(It(o.alignSelf,{stretch:a.ALIGN_STRETCH,center:a.ALIGN_CENTER,"flex-start":a.ALIGN_FLEX_START,"flex-end":a.ALIGN_FLEX_END,baseline:a.ALIGN_BASELINE,normal:a.ALIGN_AUTO},a.ALIGN_AUTO,"alignSelf")),e.setJustifyContent(It(o.justifyContent,{center:a.JUSTIFY_CENTER,"flex-start":a.JUSTIFY_FLEX_START,"flex-end":a.JUSTIFY_FLEX_END,"space-between":a.JUSTIFY_SPACE_BETWEEN,"space-around":a.JUSTIFY_SPACE_AROUND},a.JUSTIFY_FLEX_START,"justifyContent")),e.setFlexDirection(It(o.flexDirection,{row:a.FLEX_DIRECTION_ROW,column:a.FLEX_DIRECTION_COLUMN,"row-reverse":a.FLEX_DIRECTION_ROW_REVERSE,"column-reverse":a.FLEX_DIRECTION_COLUMN_REVERSE},a.FLEX_DIRECTION_ROW,"flexDirection")),e.setFlexWrap(It(o.flexWrap,{wrap:a.WRAP_WRAP,nowrap:a.WRAP_NO_WRAP,"wrap-reverse":a.WRAP_WRAP_REVERSE},a.WRAP_NO_WRAP,"flexWrap")),typeof o.gap<"u"&&e.setGap(a.GUTTER_ALL,o.gap),typeof o.rowGap<"u"&&e.setGap(a.GUTTER_ROW,o.rowGap),typeof o.columnGap<"u"&&e.setGap(a.GUTTER_COLUMN,o.columnGap),typeof o.flexBasis<"u"&&e.setFlexBasis(o.flexBasis),e.setFlexGrow(typeof o.flexGrow>"u"?0:o.flexGrow),e.setFlexShrink(typeof o.flexShrink>"u"?0:o.flexShrink),typeof o.maxHeight<"u"&&e.setMaxHeight(o.maxHeight),typeof o.maxWidth<"u"&&e.setMaxWidth(o.maxWidth),typeof o.minHeight<"u"&&e.setMinHeight(o.minHeight),typeof o.minWidth<"u"&&e.setMinWidth(o.minWidth),e.setOverflow(It(o.overflow,{visible:a.OVERFLOW_VISIBLE,hidden:a.OVERFLOW_HIDDEN},a.OVERFLOW_VISIBLE,"overflow")),e.setMargin(a.EDGE_TOP,o.marginTop||0),e.setMargin(a.EDGE_BOTTOM,o.marginBottom||0),e.setMargin(a.EDGE_LEFT,o.marginLeft||0),e.setMargin(a.EDGE_RIGHT,o.marginRight||0),e.setBorder(a.EDGE_TOP,o.borderTopWidth||0),e.setBorder(a.EDGE_BOTTOM,o.borderBottomWidth||0),e.setBorder(a.EDGE_LEFT,o.borderLeftWidth||0),e.setBorder(a.EDGE_RIGHT,o.borderRightWidth||0),e.setPadding(a.EDGE_TOP,o.paddingTop||0),e.setPadding(a.EDGE_BOTTOM,o.paddingBottom||0),e.setPadding(a.EDGE_LEFT,o.paddingLeft||0),e.setPadding(a.EDGE_RIGHT,o.paddingRight||0),e.setPositionType(It(o.position,{absolute:a.POSITION_TYPE_ABSOLUTE,relative:a.POSITION_TYPE_RELATIVE},a.POSITION_TYPE_RELATIVE,"position")),typeof o.top<"u"&&e.setPosition(a.EDGE_TOP,o.top),typeof o.bottom<"u"&&e.setPosition(a.EDGE_BOTTOM,o.bottom),typeof o.left<"u"&&e.setPosition(a.EDGE_LEFT,o.left),typeof o.right<"u"&&e.setPosition(a.EDGE_RIGHT,o.right),typeof o.height<"u"?e.setHeight(o.height):e.setHeightAuto(),typeof o.width<"u"?e.setWidth(o.width):e.setWidthAuto(),[o,qg(o)]}var vl=[1,0,0,1,0,0];function sm(e,t,r){let n=[...vl];for(let i of e){let a=Object.keys(i)[0],o=i[a];if(typeof o=="string")if(a==="translateX")o=parseFloat(o)/100*t,i[a]=o;else if(a==="translateY")o=parseFloat(o)/100*r,i[a]=o;else throw new Error(`Invalid transform: "${a}: ${o}".`);let l=o,s=[...vl];switch(a){case"translateX":s[4]=l;break;case"translateY":s[5]=l;break;case"scale":s[0]=l,s[3]=l;break;case"scaleX":s[0]=l;break;case"scaleY":s[3]=l;break;case"rotate":{let u=l*Math.PI/180,f=Math.cos(u),c=Math.sin(u);s[0]=f,s[1]=c,s[2]=-c,s[3]=f;break}case"skewX":s[2]=Math.tan(l*Math.PI/180);break;case"skewY":s[1]=Math.tan(l*Math.PI/180);break}n=Vn(s,n)}e.splice(0,e.length),e.push(...n),e.__resolved=!0}function wu({left:e,top:t,width:r,height:n},i,a,o){let l;i.__resolved||sm(i,r,n);let s=i;if(a)l=s;else{let u=o?.xAbsolute??(o?.xRelative??50)*r/100,f=o?.yAbsolute??(o?.yRelative??50)*n/100,c=e+u,p=t+f;l=Vn([1,0,0,1,c,p],Vn(s,[1,0,0,1,-c,-p])),s.__parent&&(l=Vn(s.__parent,l)),s.splice(0,6,...l)}return`matrix(${l.map(u=>u.toFixed(2)).join(",")})`}function lm({left:e,top:t,width:r,height:n,isInheritingTransform:i},a){let o="",l=1;return a.transform&&(o=wu({left:e,top:t,width:r,height:n},a.transform,i,a.transformOrigin)),a.opacity!==void 0&&(l=+a.opacity),{matrix:o,opacity:l}}function um({id:e,content:t,filter:r,left:n,top:i,width:a,height:o,matrix:l,opacity:s,image:u,clipPathId:f,debug:c,shape:p,decorationShape:h},m){let d="";if(c&&(d=le("rect",{x:n,y:i-o,width:a,height:o,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:l||void 0,"clip-path":f?`url(#${f})`:void 0})),u){let b={href:u,x:n,y:i,width:a,height:o,transform:l||void 0,"clip-path":f?`url(#${f})`:void 0,style:m.filter?`filter:${m.filter}`:void 0};return[(r?`${r}<g filter="url(#satori_s-${e})">`:"")+le("image",{...b,opacity:s!==1?s:void 0})+(h||"")+(r?"</g>":"")+d,""]}let g={x:n,y:i,width:a,height:o,"font-weight":m.fontWeight,"font-style":m.fontStyle,"font-size":m.fontSize,"font-family":m.fontFamily,"letter-spacing":m.letterSpacing||void 0,transform:l||void 0,"clip-path":f?`url(#${f})`:void 0,style:m.filter?`filter:${m.filter}`:void 0,"stroke-width":m.WebkitTextStrokeWidth?`${m.WebkitTextStrokeWidth}px`:void 0,stroke:m.WebkitTextStrokeWidth?m.WebkitTextStrokeColor:void 0,"stroke-linejoin":m.WebkitTextStrokeWidth?"round":void 0,"paint-order":m.WebkitTextStrokeWidth?"stroke":void 0};return[(r?`${r}<g filter="url(#satori_s-${e})">`:"")+le("text",{...g,fill:m.color,opacity:s!==1?s:void 0},(0,Sa.default)(t))+(h||"")+(r?"</g>":"")+d,p?le("text",g,(0,Sa.default)(t)):""]}function fm(e,t,r){return e.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(n,i,a,o){return i+(parseFloat(a)+t)+","+(parseFloat(o)+r)})}var Dn=1.1;function cm({id:e,width:t,height:r},n){if(!n.shadowColor||!n.shadowOffset||typeof n.shadowRadius>"u")return"";let i=n.shadowColor.length,a="",o="",l=0,s=t,u=0,f=r;for(let c=0;c<i;c++){let p=n.shadowRadius[c]*n.shadowRadius[c]/4;l=Math.min(n.shadowOffset[c].width-p,l),s=Math.max(n.shadowOffset[c].width+p+t,s),u=Math.min(n.shadowOffset[c].height-p,u),f=Math.max(n.shadowOffset[c].height+p+r,f),a+=le("feDropShadow",{dx:n.shadowOffset[c].width,dy:n.shadowOffset[c].height,stdDeviation:n.shadowRadius[c]/2,"flood-color":n.shadowColor[c],"flood-opacity":1,...i>1?{in:"SourceGraphic",result:`satori_s-${e}-result-${c}`}:{}}),i>1&&(o=le("feMergeNode",{in:`satori_s-${e}-result-${c}`})+o)}return le("filter",{id:`satori_s-${e}`,x:(l/t*100*Dn).toFixed(2)+"%",y:(u/r*100*Dn).toFixed(2)+"%",width:((s-l)/t*100*Dn).toFixed(2)+"%",height:((f-u)/r*100*Dn).toFixed(2)+"%"},a+(o?le("feMerge",{},o):""))}function pm({width:e,height:t,shape:r,opacity:n,id:i},a){if(!a.boxShadow)return null;let o="",l="";for(let s=a.boxShadow.length-1;s>=0;s--){let u="",f=a.boxShadow[s];f.spreadRadius&&f.inset&&(f.spreadRadius=-f.spreadRadius);let c=f.blurRadius*f.blurRadius/4+(f.spreadRadius||0),p=Math.min(-c-(f.inset?f.offsetX:0),0),h=Math.max(c+e-(f.inset?f.offsetX:0),e),m=Math.min(-c-(f.inset?f.offsetY:0),0),d=Math.max(c+t-(f.inset?f.offsetY:0),t),g=`satori_s-${i}-${s}`,b=`satori_ms-${i}-${s}`,x=f.spreadRadius?r.replace('stroke-width="0"',`stroke-width="${f.spreadRadius*2}"`):r;u+=le("mask",{id:b,maskUnits:"userSpaceOnUse"},le("rect",{x:0,y:0,width:a._viewportWidth||"100%",height:a._viewportHeight||"100%",fill:f.inset?"#000":"#fff"})+x.replace('fill="#fff"',f.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let _=x.replace(/d="([^"]+)"/,(L,T)=>'d="'+fm(T,f.offsetX,f.offsetY)+'"').replace(/x="([^"]+)"/,(L,T)=>'x="'+(parseFloat(T)+f.offsetX)+'"').replace(/y="([^"]+)"/,(L,T)=>'y="'+(parseFloat(T)+f.offsetY)+'"');f.spreadRadius&&f.spreadRadius<0&&(u+=le("mask",{id:b+"-neg",maskUnits:"userSpaceOnUse"},_.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-f.spreadRadius*2}"`))),f.spreadRadius&&f.spreadRadius<0&&(_=le("g",{mask:`url(#${b}-neg)`},_)),u+=le("defs",{},le("filter",{id:g,x:`${p/e*100}%`,y:`${m/t*100}%`,width:`${(h-p)/e*100}%`,height:`${(d-m)/t*100}%`},le("feGaussianBlur",{stdDeviation:f.blurRadius/2,result:"b"})+le("feFlood",{"flood-color":f.color,in:"SourceGraphic",result:"f"})+le("feComposite",{in:"f",in2:"b",operator:f.inset?"out":"in"})))+le("g",{mask:`url(#${b})`,filter:`url(#${g})`,opacity:n},_),f.inset?l+=u:o+=u}return[o,l]}function hm({width:e,left:t,top:r,ascender:n,clipPathId:i,matrix:a},o){let{textDecorationColor:l,textDecorationStyle:s,textDecorationLine:u,fontSize:f,color:c}=o;if(!u||u==="none")return"";let p=Math.max(1,f*.1),h=u==="line-through"?r+n*.7:u==="underline"?r+n*1.1:r,m=s==="dashed"?`${p*1.2} ${p*2}`:s==="dotted"?`0 ${p*2}`:void 0,d=s==="double"?le("line",{x1:t,y1:h+p+1,x2:t+e,y2:h+p+1,stroke:l||c,"stroke-width":p,"stroke-dasharray":m,"stroke-linecap":s==="dotted"?"round":"square",transform:a}):"";return(i?`<g clip-path="url(#${i})">`:"")+le("line",{x1:t,y1:h,x2:t+e,y2:h,stroke:l||c,"stroke-width":p,"stroke-dasharray":m,"stroke-linecap":s==="dotted"?"round":"square",transform:a})+d+(i?"</g>":"")}function Na(e){return e=e.replace("U+","0x"),String.fromCodePoint(Number(e))}var on=Na("U+0020"),Su=Na("U+0009"),Xn=Na("U+2026");function dm(e,t,r){let{fontSize:n,letterSpacing:i}=r,a=new Map;function o(u){if(a.has(u))return a.get(u);let f=e.measure(u,{fontSize:n,letterSpacing:i});return a.set(u,f),f}function l(u){let f=0;for(let c of u)t(c)?f+=n:f+=o(c);return f}function s(u){return l(Rt(u,"grapheme"))}return{measureGrapheme:o,measureGraphemeArray:l,measureText:s}}function vm(e,t,r){let{textTransform:n,whiteSpace:i,wordBreak:a}=t;e=gm(e,n,r);let{content:o,shouldCollapseTabsAndSpaces:l,allowSoftWrap:s}=bm(e,i),{words:u,requiredBreaks:f,allowBreakWord:c}=ym(o,a),[p,h]=mm(t,s);return{words:u,requiredBreaks:f,allowSoftWrap:s,allowBreakWord:c,processedContent:o,shouldCollapseTabsAndSpaces:l,lineLimit:p,blockEllipsis:h}}function gm(e,t,r){return t==="uppercase"?e=e.toLocaleUpperCase(r):t==="lowercase"?e=e.toLocaleLowerCase(r):t==="capitalize"&&(e=Rt(e,"word",r).map(n=>Rt(n,"grapheme",r).map((i,a)=>a===0?i.toLocaleUpperCase(r):i).join("")).join("")),e}function mm(e,t){let{textOverflow:r,lineClamp:n,WebkitLineClamp:i,WebkitBoxOrient:a,overflow:o,display:l}=e;if(l==="block"&&n){let[s,u=Xn]=xm(n);if(s)return[s,u]}return r==="ellipsis"&&l==="-webkit-box"&&a==="vertical"&&Pg(i)&&i>0?[i,Xn]:r==="ellipsis"&&o==="hidden"&&!t?[1,Xn]:[1/0]}function ym(e,t){let r=["break-all","break-word"].includes(t),{words:n,requiredBreaks:i}=Fg(e,t);return{words:n,requiredBreaks:i,allowBreakWord:r}}function bm(e,t){let r=["pre","pre-wrap","pre-line"].includes(t),n=["normal","nowrap","pre-line"].includes(t),i=!["pre","nowrap"].includes(t);return r||(e=e.replace(/\n/g,on)),n&&(e=e.replace(/([ ]|\t)+/g,on).replace(/^[ ]|[ ]$/g,"")),{content:e,shouldCollapseTabsAndSpaces:n,allowSoftWrap:i}}function xm(e){if(typeof e=="number")return[e];let t=/^(\d+)\s*"(.*)"$/,r=/^(\d+)\s*'(.*)'$/,n=t.exec(e),i=r.exec(e);if(n){let a=+n[1],o=n[2];return[a,o]}else if(i){let a=+i[1],o=i[2];return[a,o]}return[]}var wm=new Set([Su]);function Sm(e){return wm.has(e)}async function*Em(e,t){let r=await ei(),{parentStyle:n,inheritedStyle:i,parent:a,font:o,id:l,isInheritingTransform:s,debug:u,embedFont:f,graphemeImages:c,locale:p,canLoadAdditionalAssets:h}=t,{textAlign:m,lineHeight:d,textWrap:g,fontSize:b,filter:x,tabSize:_=8,letterSpacing:L,_inheritedBackgroundClipTextPath:T,flexShrink:E}=n,{words:R,requiredBreaks:C,allowSoftWrap:D,allowBreakWord:M,processedContent:H,shouldCollapseTabsAndSpaces:Q,lineLimit:ee,blockEllipsis:I}=vm(e,n,p),U=km(r,m);a.insertChild(U,a.getChildCount()),Rg(E)&&a.setFlexShrink(1);let O=o.getEngine(b,d,n,p),q=h?Rt(H,"grapheme").filter(de=>!Sm(de)&&!O.has(de)):[];yield q.map(de=>({word:de,locale:p})),q.length&&(O=o.getEngine(b,d,n,p));function K(de){return!!(c&&c[de])}let{measureGrapheme:ne,measureGraphemeArray:ie,measureText:V}=dm(O,K,{fontSize:b,letterSpacing:L}),Y=fu(_)?Ae(_,b,1,n):ne(on)*_,A=(de,we)=>{if(de.length===0)return{originWidth:0,endingSpacesWidth:0,text:de};let{index:De,tabCount:Se}=Tm(de),Ue=0;if(Se>0){let Be=de.slice(0,De),_e=de.slice(De+Se),ke=V(Be),ut=ke+we;Ue=(Y===0?ke:(Math.floor(ut/Y)+Se)*Y)+V(_e)}else Ue=V(de);let Ee=de.trimEnd()===de?Ue:V(de.trimEnd());return{originWidth:Ue,endingSpacesWidth:Ue-Ee,text:de}},G=[],ae=[],$=[],pe=[],fe=[];function ve(de){let we=0,De=0,Se=-1,Ue=0,Ee=0,Be=0,_e=0;G=[],$=[0],pe=[],fe=[];let ke=0,ut=0;for(;ke<R.length&&we<ee;){let ge=R[ke],Dt=C[ke],Ze=0,{originWidth:mt,endingSpacesWidth:Qt,text:yt}=A(ge,Ee);ge=yt,Ze=mt;let Re=Qt;Dt&&Be===0&&(Be=O.height(ge));let ze=m==="justify",ft=ke&&Ee+Ze>de+Re&&D;if(M&&Ze>de&&(!Ee||ft||Dt)){let kt=Rt(ge,"grapheme");R.splice(ke,1,...kt),Ee>0&&(G.push(Ee-ut),ae.push(_e),we++,Ue+=Be,Ee=0,Be=0,_e=0,$.push(1),Se=-1),ut=Re;continue}if(Dt||ft)Q&&ge===on&&(Ze=0),G.push(Ee-ut),ae.push(_e),we++,Ue+=Be,Ee=Ze,Be=Ze?Math.round(O.height(ge)):0,_e=Ze?Math.round(O.baseline(ge)):0,$.push(1),Se=-1,Dt||(De=Math.max(De,de));else{Ee+=Ze;let kt=Math.round(O.height(ge));kt>Be&&(Be=kt,_e=Math.round(O.baseline(ge))),ze&&$[$.length-1]++}ze&&Se++,De=Math.max(De,Ee);let ur=Ee-Ze;if(Ze===0)fe.push({y:Ue,x:ur,width:0,line:we,lineIndex:Se,isImage:!1});else{let kt=Rt(ge,"word");for(let ct=0;ct<kt.length;ct++){let pt=kt[ct],Ut=0,Nt=!1;K(pt)?(Ut=b,Nt=!0):Ut=ne(pt),pe.push(pt),fe.push({y:Ue,x:ur,width:Ut,line:we,lineIndex:Se,isImage:Nt}),ur+=Ut}}ke++,ut=Re}return Ee&&(we<ee&&(Ue+=Be),we++,G.push(Ee),ae.push(_e)),{width:De,height:Ue}}let ce={width:0,height:0};U.setMeasureFunc(de=>{let{width:we,height:De}=ve(de);if(g==="balance"){let Ue=we/2,Ee=we,Be=we;for(;Ue+1<Ee;){Be=(Ue+Ee)/2;let{height:ke}=ve(Be);ke>De?Ue=Be:Ee=Be}ve(Ee);let _e=Math.ceil(Ee);return ce={width:_e,height:De},{width:_e,height:De}}if(g==="pretty"&&G[G.length-1]<we/3){let Ue=we*.9,Ee=ve(Ue);if(Ee.height<=De*1.3)return ce={width:we,height:Ee.height},{width:we,height:Ee.height}}let Se=Math.ceil(we);return ce={width:Se,height:De},{width:Se,height:De}});let[xe,Ie]=yield,he="",ye="",We=i._inheritedClipPathId,Qe=i._inheritedMaskId,{left:Ge,top:Ne,width:Xe,height:Ke}=U.getComputedLayout(),et=a.getComputedWidth()-a.getComputedPadding(r.EDGE_LEFT)-a.getComputedPadding(r.EDGE_RIGHT)-a.getComputedBorder(r.EDGE_LEFT)-a.getComputedBorder(r.EDGE_RIGHT),tt=xe+Ge,rt=Ie+Ne,{matrix:je,opacity:Et}=lm({left:Ge,top:Ne,width:Xe,height:Ke,isInheritingTransform:s},n),gt="";if(n.textShadowOffset){let{textShadowColor:de,textShadowOffset:we,textShadowRadius:De}=n;gt=cm({width:ce.width,height:ce.height,id:l},{shadowColor:de,shadowOffset:we,shadowRadius:De}),gt=le("defs",{},gt)}let st="",lt="",zt="",ot=-1,Ft={},qe=null,Tr=0;for(let de=0;de<pe.length;de++){let we=fe[de],De=fe[de+1];if(!we)continue;let Se=pe[de],Ue=null,Ee=!1,Be=c?c[Se]:null,_e=we.y,ke=we.x,ut=we.width,ge=we.line;if(ge===ot)continue;let Dt=!1;if(G.length>1){let Re=Xe-G[ge];if(m==="right"||m==="end")ke+=Re;else if(m==="center")ke+=Re/2;else if(m==="justify"&&ge<G.length-1){let ze=$[ge],ft=ze>1?Re/(ze-1):0;ke+=ft*we.lineIndex,Dt=!0}ke=Math.round(ke)}let Ze=ae[ge],mt=O.baseline(Se),Qt=O.height(Se),yt=Ze-mt;if(Ft[ge]||(Ft[ge]=[ke,rt+_e+yt,mt,Dt?Xe:G[ge]]),ee!==1/0){let Re=function(ct,pt){let Ut=Rt(pt,"grapheme",p),Nt="",fr=0;for(let Dr of Ut){let hn=ct+ie([Nt+Dr]);if(Nt&&hn+ft>et)break;Nt+=Dr,fr=hn}return{subset:Nt,resolvedWidth:fr}},ze=I,ft=ne(I);ft>et&&(ze=Xn,ft=ne(ze));let ur=ne(on),kt=ge<G.length-1;if(ge+1===ee&&(kt||G[ge]>et)){if(ke+ut+ft+ur>et){let{subset:ct,resolvedWidth:pt}=Re(ke,Se);Se=ct+ze,ot=ge,Ft[ge][2]=pt,Ee=!0}else if(De&&De.line!==ge)if(m==="center"){let{subset:ct,resolvedWidth:pt}=Re(ke,Se);Se=ct+ze,ot=ge,Ft[ge][2]=pt,Ee=!0}else{let ct=pe[de+1],{subset:pt,resolvedWidth:Ut}=Re(ut+ke,ct);Se=Se+pt+ze,ot=ge,Ft[ge][2]=Ut,Ee=!0}}}if(Be)_e+=0;else if(f){if(!Se.includes(Su)&&!Og.includes(Se)&&pe[de+1]&&De&&!De.isImage&&_e===De.y&&!Ee){qe===null&&(Tr=ke),qe=qe===null?Se:qe+Se;continue}let Re=qe===null?Se:qe+Se,ze=qe===null?ke:Tr,ft=we.width+ke-ze;Ue=O.getSVG(Re.replace(/(\t)+/g,""),{fontSize:b,left:tt+ze,top:rt+_e+mt+yt,letterSpacing:L}),qe=null,u&&(zt+=le("rect",{x:tt+ze,y:rt+_e+yt,width:ft,height:Qt,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:je||void 0,"clip-path":We?`url(#${We})`:void 0})+le("line",{x1:tt+ke,x2:tt+ke+we.width,y1:rt+_e+yt+mt,y2:rt+_e+yt+mt,stroke:"#14c000","stroke-width":1,transform:je||void 0,"clip-path":We?`url(#${We})`:void 0}))}else _e+=mt+yt;if(n.textDecorationLine){let Re=Ft[ge];Re&&!Re[4]&&(st+=hm({left:tt+Re[0],top:Re[1],width:Re[3],ascender:Re[2],clipPathId:We,matrix:je},n),Re[4]=1)}if(Ue!==null)lt+=Ue+" ";else{let[Re,ze]=um({content:Se,filter:gt,id:l,left:tt+ke,top:rt+_e,width:ut,height:Qt,matrix:je,opacity:Et,image:Be,clipPathId:We,debug:u,shape:!!T,decorationShape:st},n);he+=Re,ye+=ze,st=""}if(Ee)break}if(lt){let de=n.color!=="transparent"&&Et!==0?`<g ${Qe?`mask="url(#${Qe})"`:""} ${We?`clip-path="url(#${We})"`:""}>`+le("path",{fill:n.color,d:lt,transform:je||void 0,opacity:Et!==1?Et:void 0,style:x?`filter:${x}`:void 0,"stroke-width":i.WebkitTextStrokeWidth?`${i.WebkitTextStrokeWidth}px`:void 0,stroke:i.WebkitTextStrokeWidth?i.WebkitTextStrokeColor:void 0,"stroke-linejoin":i.WebkitTextStrokeWidth?"round":void 0,"paint-order":i.WebkitTextStrokeWidth?"stroke":void 0})+"</g>":"";T&&(ye=le("path",{d:lt,transform:je||void 0})),he+=(gt?gt+le("g",{filter:`url(#satori_s-${l})`},de+st):de+st)+zt}return ye&&(n._inheritedBackgroundClipTextPath.value+=ye),he}function km(e,t){let r=e.Node.create();return r.setAlignItems(e.ALIGN_BASELINE),r.setJustifyContent(It(t,{left:e.JUSTIFY_FLEX_START,right:e.JUSTIFY_FLEX_END,center:e.JUSTIFY_CENTER,justify:e.JUSTIFY_SPACE_BETWEEN,start:e.JUSTIFY_FLEX_START,end:e.JUSTIFY_FLEX_END},e.JUSTIFY_FLEX_START,"textAlign")),r}function Tm(e){let t=/(\t)+/.exec(e);return t?{index:t.index,tabCount:t[0].length}:{index:null,tabCount:0}}function ku(e,t,r,n,i){let a=[];for(let u of t){let{color:f}=u;if(!a.length&&(a.push({offset:0,color:f}),!u.offset||u.offset.value==="0"))continue;let c=typeof u.offset>"u"?void 0:u.offset.unit==="%"?+u.offset.value/100:Number(Ae(`${u.offset.value}${u.offset.unit}`,r.fontSize,e,r,!0))/e;a.push({offset:c,color:f})}a.length||a.push({offset:0,color:"transparent"});let o=a[a.length-1];o.offset!==1&&(typeof o.offset>"u"?o.offset=1:n?a[a.length-1]={offset:1,color:o.color}:a.push({offset:1,color:o.color}));let l=0,s=1;for(let u=0;u<a.length;u++)if(typeof a[u].offset>"u"){for(s<u&&(s=u);typeof a[s].offset>"u";)s++;a[u].offset=(a[s].offset-a[l].offset)/(s-l)*(u-l)+a[l].offset}else l=u;return i==="mask"?a.map(u=>{let f=(0,Eu.default)(u.color);return f?f.alpha===0?{...u,color:"rgba(0, 0, 0, 1)"}:{...u,color:`rgba(255, 255, 255, ${f.alpha})`}:u}):a}function _m({id:e,width:t,height:r,repeatX:n,repeatY:i},a,o,l,s,u){let f=us(a),[c,p]=o,h=a.startsWith("repeating"),m,d,g;if(f.orientation.type==="directional")m=Cm(f.orientation.value),d=Math.sqrt(Math.pow((m.x2-m.x1)*c,2)+Math.pow((m.y2-m.y1)*p,2));else if(f.orientation.type==="angular"){let{length:T,...E}=Om(uu(`${f.orientation.value.value}${f.orientation.value.unit}`)/180*Math.PI,c,p);d=T,m=E}g=h?Am(f.stops,d,m,s):m;let b=ku(h?Lm(f.stops,d):d,f.stops,s,h,u),x=`satori_bi${e}`,_=`satori_pattern_${e}`,L=le("pattern",{id:_,x:l[0]/t,y:l[1]/r,width:n?c/t:"1",height:i?p/r:"1",patternUnits:"objectBoundingBox"},le("linearGradient",{id:x,...g,spreadMethod:h?"repeat":"pad"},b.map(T=>le("stop",{offset:(T.offset??0)*100+"%","stop-color":T.color})).join(""))+le("rect",{x:0,y:0,width:c,height:p,fill:`url(#${x})`}));return[_,L]}function Lm(e,t){let r=e[e.length-1],{offset:n}=r;return n?n.unit==="%"?Number(n.value)/100*t:Number(n.value):t}function Cm(e){let t=0,r=0,n=0,i=0;return e.includes("top")?r=1:e.includes("bottom")&&(i=1),e.includes("left")?t=1:e.includes("right")&&(n=1),!t&&!n&&!r&&!i&&(r=1),{x1:t,y1:r,x2:n,y2:i}}function Om(e,t,r){let n=Math.pow(r/t,2);e=(e%(Math.PI*2)+Math.PI*2)%(Math.PI*2);let i,a,o,l,s,u,f,c,p=h=>{if(h===0){i=0,a=r,o=0,l=0,s=r;return}else if(h===Math.PI/2){i=0,a=0,o=t,l=0,s=t;return}if(h>0&&h<Math.PI/2){i=(n*t/2/Math.tan(h)-r/2)/(Math.tan(h)+n/Math.tan(h)),a=Math.tan(h)*i+r,o=Math.abs(t/2-i)+t/2,l=r/2-Math.abs(a-r/2),s=Math.sqrt(Math.pow(o-i,2)+Math.pow(l-a,2)),f=(t/2/Math.tan(h)-r/2)/(Math.tan(h)+1/Math.tan(h)),c=Math.tan(h)*f+r,s=2*Math.sqrt(Math.pow(t/2-f,2)+Math.pow(r/2-c,2));return}else if(h>Math.PI/2&&h<Math.PI){i=(r/2+n*t/2/Math.tan(h))/(Math.tan(h)+n/Math.tan(h)),a=Math.tan(h)*i,o=Math.abs(t/2-i)+t/2,l=r/2+Math.abs(a-r/2),f=(t/2/Math.tan(h)+r/2)/(Math.tan(h)+1/Math.tan(h)),c=Math.tan(h)*f,s=2*Math.sqrt(Math.pow(t/2-f,2)+Math.pow(r/2-c,2));return}else h>=Math.PI&&(p(h-Math.PI),u=i,i=o,o=u,u=a,a=l,l=u)};return p(e),{x1:i/t,y1:a/r,x2:o/t,y2:l/r,length:s}}function Am(e,t,r,n){let{x1:i,x2:a,y1:o,y2:l}=r,s=e[0].offset?e[0].offset.unit==="%"?Number(e[0].offset.value)/100:Ae(`${e[0].offset.value}${e[0].offset.unit}`,n.fontSize,t,n,!0)/t:0,u=e.at(-1).offset?e.at(-1).offset.unit==="%"?Number(e.at(-1).offset.value)/100:Ae(`${e.at(-1).offset.value}${e.at(-1).offset.unit}`,n.fontSize,t,n,!0)/t:1,f=(a-i)*s+i,c=(l-o)*s+o,p=(a-i)*u+i,h=(l-o)*u+o;return{x1:f,y1:c,x2:p,y2:h}}function Im({id:e,width:t,height:r,repeatX:n,repeatY:i},a,o,l,s,u){var f;let{shape:c,stops:p,position:h,size:m}=fs(a),[d,g]=o,b=d/2,x=g/2,_=Pm(h.x,h.y,d,g,s.fontSize,s);b=_.x,x=_.y;let L=ku(t,p,s,!1,u),T=`satori_radial_${e}`,E=`satori_pattern_${e}`,R=`satori_mask_${e}`,C=Rm(c,m,s.fontSize,{x:b,y:x},[d,g],s),D=le("pattern",{id:E,x:l[0]/t,y:l[1]/r,width:n?d/t:"1",height:i?g/r:"1",patternUnits:"objectBoundingBox"},le("radialGradient",{id:T},L.map(M=>le("stop",{offset:M.offset||0,"stop-color":M.color})).join(""))+le("mask",{id:R},le("rect",{x:0,y:0,width:d,height:g,fill:"#fff"}))+le("rect",{x:0,y:0,width:d,height:g,fill:((f=L.at(-1))==null?void 0:f.color)||"transparent"})+le(c,{cx:b,cy:x,width:d,height:g,...C,fill:`url(#${T})`,mask:`url(#${R})`}));return[E,D]}function Pm(e,t,r,n,i,a){let o={x:r/2,y:n/2};return e.type==="keyword"?Object.assign(o,gl(e.value,r,n,"x")):o.x=Ae(`${e.value.value}${e.value.unit}`,i,r,a,!0)||r/2,t.type==="keyword"?Object.assign(o,gl(t.value,r,n,"y")):o.y=Ae(`${t.value.value}${t.value.unit}`,i,n,a,!0)||n/2,o}function gl(e,t,r,n){switch(e){case"center":return{[n]:n==="x"?t/2:r/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:t};case"bottom":return{y:r}}}function Rm(e,t,r,n,i,a){let[o,l]=i,{x:s,y:u}=n,f={},c=0,p=0;if(Fm(t)){if(t.some(h=>h.value.value.startsWith("-")))throw new Error("disallow setting negative values to the size of the shape. Check https://w3c.github.io/csswg-drafts/css-images/#valdef-rg-size-length-0");return e==="circle"?{r:Number(Ae(`${t[0].value.value}${t[0].value.unit}`,r,o,a,!0))}:{rx:Number(Ae(`${t[0].value.value}${t[0].value.unit}`,r,o,a,!0)),ry:Number(Ae(`${t[1].value.value}${t[1].value.unit}`,r,l,a,!0))}}switch(t[0].value){case"farthest-corner":c=Math.max(Math.abs(o-s),Math.abs(s)),p=Math.max(Math.abs(l-u),Math.abs(u));break;case"closest-corner":c=Math.min(Math.abs(o-s),Math.abs(s)),p=Math.min(Math.abs(l-u),Math.abs(u));break;case"farthest-side":return e==="circle"?f.r=Math.max(Math.abs(o-s),Math.abs(s),Math.abs(l-u),Math.abs(u)):(f.rx=Math.max(Math.abs(o-s),Math.abs(s)),f.ry=Math.max(Math.abs(l-u),Math.abs(u))),f;case"closest-side":return e==="circle"?f.r=Math.min(Math.abs(o-s),Math.abs(s),Math.abs(l-u),Math.abs(u)):(f.rx=Math.min(Math.abs(o-s),Math.abs(s)),f.ry=Math.min(Math.abs(l-u),Math.abs(u))),f}if(e==="circle")f.r=Math.sqrt(c*c+p*p);else{let h=p!==0?c/p:1;c===0?(f.rx=0,f.ry=0):(f.ry=Math.sqrt(c*c+p*p*h*h)/h,f.rx=f.ry*h)}return f}function Fm(e){return!e.some(t=>t.type==="keyword")}function Dm(e,t){return typeof e=="string"&&e.endsWith("%")?t*parseFloat(e)/100:+e}function ha(e,{x:t,y:r,defaultX:n,defaultY:i}){return(e?e.split(" ").map(a=>{try{let o=new ln(a);return o.type==="length"||o.type==="number"?o.value:o.value+o.unit}catch{return null}}).filter(a=>a!==null):[n,i]).map((a,o)=>Dm(a,[t,r][o]))}async function Tu({id:e,width:t,height:r,left:n,top:i},{image:a,size:o,position:l,repeat:s},u,f){s=s||"repeat",f=f||"background";let c=s==="repeat-x"||s==="repeat",p=s==="repeat-y"||s==="repeat",h=ha(o,{x:t,y:r,defaultX:t,defaultY:r}),m=ha(l,{x:t,y:r,defaultX:0,defaultY:0});if(a.startsWith("linear-gradient(")||a.startsWith("repeating-linear-gradient("))return _m({id:e,width:t,height:r,repeatX:c,repeatY:p},a,h,m,u,f);if(a.startsWith("radial-gradient("))return Im({id:e,width:t,height:r,repeatX:c,repeatY:p},a,h,m,u,f);if(a.startsWith("url(")){let d=ha(o,{x:t,y:r,defaultX:0,defaultY:0}),[g,b,x]=await Ua(a.slice(4,-1)),_=f==="mask"?b||d[0]:d[0]||b,L=f==="mask"?x||d[1]:d[1]||x;return[`satori_bi${e}`,le("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:m[0]+n,y:m[1]+i,width:c?_:"100%",height:p?L:"100%"},le("image",{x:0,y:0,width:_,height:L,preserveAspectRatio:"none",href:g}))]}throw new Error(`Invalid background image: "${a}"`)}function Um([e,t]){return Math.round(e*1e3)===0&&Math.round(t*1e3)===0?0:Math.round(e*t/Math.sqrt(e*e+t*t)*1e3)/1e3}function Un(e,t,r){return r<e+t&&(r/2<e&&r/2<t?e=t=r/2:r/2<e?e=r-t:r/2<t&&(t=r-e)),[e,t]}function Nn(e){e[0]=e[1]=Math.min(e[0],e[1])}function Mn(e,t,r,n,i){if(typeof e=="string"){let a=e.split(" ").map(l=>l.trim()),o=!a[1]&&!a[0].endsWith("%");return a[1]=a[1]||a[0],[o,[Math.min(Ae(a[0],n,t,i,!0),t),Math.min(Ae(a[1],n,r,i,!0),r)]]}return typeof e=="number"?[!0,[Math.min(e,t),Math.min(e,r)]]:[!0,void 0]}var Wn=e=>e&&e[0]!==0&&e[1]!==0;function Nm({id:e,borderRadiusPath:t,borderType:r,left:n,top:i,width:a,height:o},l){let s=`satori_brc-${e}`;return[le("clipPath",{id:s},le(r,{x:n,y:i,width:a,height:o,d:t||void 0})),s]}function Zn({left:e,top:t,width:r,height:n},i,a){let{borderTopLeftRadius:o,borderTopRightRadius:l,borderBottomLeftRadius:s,borderBottomRightRadius:u,fontSize:f}=i,c,p,h,m;if([c,o]=Mn(o,r,n,f,i),[p,l]=Mn(l,r,n,f,i),[h,s]=Mn(s,r,n,f,i),[m,u]=Mn(u,r,n,f,i),!a&&!Wn(o)&&!Wn(l)&&!Wn(s)&&!Wn(u))return"";o||=[0,0],l||=[0,0],s||=[0,0],u||=[0,0],[o[0],l[0]]=Un(o[0],l[0],r),[s[0],u[0]]=Un(s[0],u[0],r),[o[1],s[1]]=Un(o[1],s[1],n),[l[1],u[1]]=Un(l[1],u[1],n),c&&Nn(o),p&&Nn(l),h&&Nn(s),m&&Nn(u);let d=[];d[0]=[l,l],d[1]=[u,[-u[0],u[1]]],d[2]=[s,[-s[0],-s[1]]],d[3]=[o,[o[0],-o[1]]];let g=`h${r-o[0]-l[0]} a${d[0][0]} 0 0 1 ${d[0][1]}`,b=`v${n-l[1]-u[1]} a${d[1][0]} 0 0 1 ${d[1][1]}`,x=`h${u[0]+s[0]-r} a${d[2][0]} 0 0 1 ${d[2][1]}`,_=`v${s[1]+o[1]-n} a${d[3][0]} 0 0 1 ${d[3][1]}`;if(a){let L=function(Q){let ee=Um([o,l,u,s][Q]);return Q===0?[[e+o[0]-ee,t+o[1]-ee],[e+o[0],t]]:Q===1?[[e+r-l[0]+ee,t+l[1]-ee],[e+r,t+l[1]]]:Q===2?[[e+r-u[0]+ee,t+n-u[1]+ee],[e+r-u[0],t+n]]:[[e+s[0]-ee,t+n-s[1]+ee],[e,t+n-s[1]]]},T=a.indexOf(!1);if(!a.includes(!0))throw new Error("Invalid `partialSides`.");if(T===-1)T=0;else for(;!a[T];)T=(T+1)%4;let E="",R=L(T),C=`M${R[0]} A${d[(T+3)%4][0]} 0 0 1 ${R[1]}`,D=0;for(;D<4&&a[(T+D)%4];D++)E+=C+" ",C=[g,b,x,_][(T+D)%4];let M=(T+D)%4;E+=C.split(" ")[0];let H=L(M);return E+=` A${d[(M+3)%4][0]} 0 0 1 ${H[0]}`,E}return`M${e+o[0]},${t} ${g} ${b} ${x} ${_}`}function ml(e,t,r){return r[e+"Width"]===r[t+"Width"]&&r[e+"Style"]===r[t+"Style"]&&r[e+"Color"]===r[t+"Color"]}function Mm({id:e,currentClipPathId:t,borderPath:r,borderType:n,left:i,top:a,width:o,height:l},s){if(!(s.borderTopWidth||s.borderRightWidth||s.borderBottomWidth||s.borderLeftWidth))return null;let u=`satori_bc-${e}`;return[le("clipPath",{id:u,"clip-path":t?`url(#${t})`:void 0},le(n,{x:i,y:a,width:o,height:l,d:r||void 0})),u]}function _u({left:e,top:t,width:r,height:n,props:i,asContentMask:a,maskBorderOnly:o},l){let s=["borderTop","borderRight","borderBottom","borderLeft"];if(!a&&!s.some(h=>l[h+"Width"]))return"";let u="",f=0;for(;f>0&&ml(s[f],s[(f+3)%4],l);)f=(f+3)%4;let c=[!1,!1,!1,!1],p=[];for(let h=0;h<4;h++){let m=(f+h)%4,d=(f+h+1)%4,g=s[m],b=s[d];if(c[m]=!0,p=[l[g+"Width"],l[g+"Style"],l[g+"Color"],g],!ml(g,b,l)){let x=(p[0]||0)+(a&&!o&&l[g.replace("border","padding")]||0);x&&(u+=le("path",{width:r,height:n,...i,fill:"none",stroke:a?"#000":p[2],"stroke-width":x*2,"stroke-dasharray":!a&&p[1]==="dashed"?x*2+" "+x:void 0,d:Zn({left:e,top:t,width:r,height:n},l,c)})),c=[!1,!1,!1,!1]}}if(c.some(Boolean)){let h=(p[0]||0)+(a&&!o&&l[p[3].replace("border","padding")]||0);h&&(u+=le("path",{width:r,height:n,...i,fill:"none",stroke:a?"#000":p[2],"stroke-width":h*2,"stroke-dasharray":!a&&p[1]==="dashed"?h*2+" "+h:void 0,d:Zn({left:e,top:t,width:r,height:n},l,c)}))}return u}function Wm({id:e,left:t,top:r,width:n,height:i,matrix:a,borderOnly:o},l){let s=(l.borderLeftWidth||0)+(o?0:l.paddingLeft||0),u=(l.borderTopWidth||0)+(o?0:l.paddingTop||0),f=(l.borderRightWidth||0)+(o?0:l.paddingRight||0),c=(l.borderBottomWidth||0)+(o?0:l.paddingBottom||0),p={x:t+s,y:r+u,width:n-s-f,height:i-u-c};return le("mask",{id:e},le("rect",{...p,fill:"#fff",transform:l.overflow==="hidden"&&l.transform&&a?a:void 0,mask:l._inheritedMaskId?`url(#${l._inheritedMaskId})`:void 0})+_u({left:t,top:r,width:n,height:i,props:{transform:a||void 0},asContentMask:!0,maskBorderOnly:o},l))}var en={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/};function Gm({width:e,height:t},r,n){function i(u){let f=u.match(en.circle);if(!f)return null;let[,c]=f,[p,h=""]=c.split("at").map(g=>g.trim()),{x:m,y:d}=bl(h,e,t);return{type:"circle",r:Ae(p,n.fontSize,Math.sqrt(Math.pow(e,2)+Math.pow(t,2))/Math.sqrt(2),n,!0),cx:Ae(m,n.fontSize,e,n,!0),cy:Ae(d,n.fontSize,t,n,!0)}}function a(u){let f=u.match(en.ellipse);if(!f)return null;let[,c]=f,[p,h=""]=c.split("at").map(x=>x.trim()),[m,d]=p.split(" "),{x:g,y:b}=bl(h,e,t);return{type:"ellipse",rx:Ae(m||"50%",n.fontSize,e,n,!0),ry:Ae(d||"50%",n.fontSize,t,n,!0),cx:Ae(g,n.fontSize,e,n,!0),cy:Ae(b,n.fontSize,t,n,!0)}}function o(u){let f=u.match(en.path);if(!f)return null;let[c,p]=yl(f[1]);return{type:"path",d:p,"fill-rule":c}}function l(u){let f=u.match(en.polygon);if(!f)return null;let[c,p]=yl(f[1]);return{type:"polygon","fill-rule":c,points:p.split(",").map(h=>h.split(" ").map((m,d)=>Ae(m,n.fontSize,d===0?e:t,n,!0)).join(" ")).join(",")}}function s(u){let f=u.match(en.inset);if(!f)return null;let[c,p]=(f[1].includes("round")?f[1]:`${f[1].trim()} round 0`).split("round"),h=(0,Ea.getStylesForProperty)("borderRadius",p,!0),m=Object.values(h).map(L=>String(L)).map((L,T)=>Ae(L,n.fontSize,T===0||T===2?t:e,n,!0)||0),d=Object.values((0,Ea.getStylesForProperty)("margin",c,!0)).map(L=>String(L)).map((L,T)=>Ae(L,n.fontSize,T===0||T===2?t:e,n,!0)||0),g=d[3],b=d[0],x=e-(d[1]+d[3]),_=t-(d[0]+d[2]);return m.some(L=>L>0)?{type:"path",d:Zn({left:g,top:b,width:x,height:_},{...r,...h})}:{type:"rect",x:g,y:b,width:x,height:_}}return{parseCircle:i,parseEllipse:a,parsePath:o,parsePolygon:l,parseInset:s}}function yl(e){let[,t="nonzero",r]=e.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[t,r]}function bl(e,t,r){let n=e.split(" "),i={x:n[0]||"50%",y:n[1]||"50%"};return n.forEach(a=>{a==="top"?i.y=0:a==="bottom"?i.y=r:a==="left"?i.x=0:a==="right"?i.x=t:a==="center"&&(i.x=t/2,i.y=r/2)}),i}function Ma(e){return`satori_cp-${e}`}function Bm(e){return`url(#${Ma(e)})`}function $m(e,t,r){if(t.clipPath==="none")return"";let n=Gm(e,t,r),i=t.clipPath,a={type:""};for(let o of Object.keys(n))if(a=n[o](i),a)break;if(a){let{type:o,...l}=a;return le("clipPath",{id:Ma(e.id),"clip-path":e.currentClipPath,transform:`translate(${e.left}, ${e.top})`},le(o,l))}return""}function jm({left:e,top:t,width:r,height:n,path:i,matrix:a,id:o,currentClipPath:l,src:s},u,f){let c="",p=u.clipPath&&u.clipPath!=="none"?$m({left:e,top:t,width:r,height:n,path:i,id:o,matrix:a,currentClipPath:l,src:s},u,f):"";if(u.overflow!=="hidden"&&!s)c="";else{let m=p?`satori_ocp-${o}`:Ma(o);c=le("clipPath",{id:m,"clip-path":l},le(i?"path":"rect",{x:e,y:t,width:r,height:n,d:i||void 0,transform:u.overflow==="hidden"&&u.transform&&a?a:void 0}))}let h=Wm({id:`satori_om-${o}`,left:e,top:t,width:r,height:n,matrix:a,borderOnly:!s},u);return p+c+h}var zm=e=>`satori_mi-${e}`;async function Vm(e,t,r){if(!t.maskImage)return["",""];let{left:n,top:i,width:a,height:o,id:l}=e,s=t.maskImage,u=s.length;if(!u)return["",""];let f=zm(l),c="";for(let p=0;p<u;p++){let h=s[p],[m,d]=await Tu({id:`${f}-${p}`,left:n,top:i,width:a,height:o},h,r,"mask");c+=d+le("rect",{x:n,y:i,width:a,height:o,fill:`url(#${m})`})}return c=le("mask",{id:f},c),[f,c]}async function da({id:e,left:t,top:r,width:n,height:i,isInheritingTransform:a,src:o,debug:l},s,u){if(s.display==="none")return"";let f=!!o,c="rect",p="",h="",m=[],d=1,g="";s.backgroundColor&&m.push(s.backgroundColor),s.opacity!==void 0&&(d=+s.opacity),s.transform&&(p=wu({left:t,top:r,width:n,height:i},s.transform,a,s.transformOrigin));let b="";if(s.backgroundImage){let U=[];for(let O=0;O<s.backgroundImage.length;O++){let q=s.backgroundImage[O],K=await Tu({id:e+"_"+O,width:n,height:i,left:t,top:r},q,u);K&&U.unshift(K)}for(let O of U)m.push(`url(#${O[0]})`),h+=O[1],O[2]&&(b+=O[2])}let[x,_]=await Vm({id:e,left:t,top:r,width:n,height:i},s,u);h+=_;let L=x?`url(#${x})`:s._inheritedMaskId?`url(#${s._inheritedMaskId})`:void 0,T=Zn({left:t,top:r,width:n,height:i},s);T&&(c="path");let E=s._inheritedClipPathId;l&&(g=le("rect",{x:t,y:r,width:n,height:i,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:p||void 0,"clip-path":E?`url(#${E})`:void 0}));let{backgroundClip:R,filter:C}=s,D=R==="text"?`url(#satori_bct-${e})`:E?`url(#${E})`:s.clipPath?Bm(e):void 0,M=jm({left:t,top:r,width:n,height:i,path:T,id:e,matrix:p,currentClipPath:D,src:o},s,u),H=m.map(U=>le(c,{x:t,y:r,width:n,height:i,fill:U,d:T||void 0,transform:p||void 0,"clip-path":s.transform?void 0:D,style:C?`filter:${C}`:void 0,mask:s.transform?void 0:L})).join(""),Q=Mm({id:e,left:t,top:r,width:n,height:i,currentClipPathId:E,borderPath:T,borderType:c},s),ee;if(f){let U=(s.borderLeftWidth||0)+(s.paddingLeft||0),O=(s.borderTopWidth||0)+(s.paddingTop||0),q=(s.borderRightWidth||0)+(s.paddingRight||0),K=(s.borderBottomWidth||0)+(s.paddingBottom||0),ne=s.objectFit==="contain"?"xMidYMid":s.objectFit==="cover"?"xMidYMid slice":"none";s.transform&&(ee=Nm({id:e,borderRadiusPath:T,borderType:c,left:t,top:r,width:n,height:i},s)),H+=le("image",{x:t+U,y:r+O,width:n-U-q,height:i-O-K,href:o,preserveAspectRatio:ne,transform:p||void 0,style:C?`filter:${C}`:void 0,"clip-path":s.transform?ee?`url(#${ee[1]})`:void 0:`url(#satori_cp-${e})`,mask:s.transform?void 0:x?`url(#${x})`:`url(#satori_om-${e})`})}if(Q){h+=Q[0];let U=Q[1];H+=_u({left:t,top:r,width:n,height:i,props:{transform:p||void 0,"clip-path":`url(#${U})`}},s)}let I=pm({width:n,height:i,id:e,opacity:d,shape:le(c,{x:t,y:r,width:n,height:i,fill:"#fff",stroke:"#fff","stroke-width":0,d:T||void 0,transform:p||void 0,"clip-path":D,mask:L})},s);return(h?le("defs",{},h):"")+(I?I[0]:"")+(ee?ee[0]:"")+M+(d!==1?`<g opacity="${d}">`:"")+(s.transform&&(D||L)?`<g${D?` clip-path="${D}"`:""}${L?` mask="${L}"`:""}>`:"")+(b||H)+(s.transform&&(D||L)?"</g>":"")+(d!==1?"</g>":"")+(I?I[1]:"")+g}var Lu=String.raw,xl=Lu`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,Hm=()=>new RegExp(Lu`\p{RI}{2}|(?)${xl}(?:\u200D${xl})*`,"gu"),Xm=new RegExp(Hm(),"u"),ka={emoji:Xm,symbol:/\p{Symbol}/u,math:/\p{Math}/u},Ta={"ja-JP":/\p{scx=Hira}|\p{scx=Kana}|\p{scx=Han}|[\u3000]|[\uFF00-\uFFEF]/u,"ko-KR":/\p{scx=Hangul}/u,"zh-CN":/\p{scx=Han}/u,"zh-TW":/\p{scx=Han}/u,"zh-HK":/\p{scx=Han}/u,"th-TH":/\p{scx=Thai}/u,"bn-IN":/\p{scx=Bengali}/u,"ar-AR":/\p{scx=Arabic}/u,"ta-IN":/\p{scx=Tamil}/u,"ml-IN":/\p{scx=Malayalam}/u,"he-IL":/\p{scx=Hebrew}/u,"te-IN":/\p{scx=Telugu}/u,devanagari:/\p{scx=Devanagari}/u,kannada:/\p{scx=Kannada}/u},Wa=Object.keys({...Ta,...ka});function qm(e){return Wa.includes(e)}function Ym(e,t){for(let n of Object.keys(ka))if(ka[n].test(e))return[n];let r=Object.keys(Ta).filter(n=>Ta[n].test(e));if(r.length===0)return["unknown"];if(t){let n=r.findIndex(i=>i===t);n!==-1&&(r.splice(n,1),r.unshift(t))}return r}function Zm(e){if(e)return Wa.find(t=>t.toLowerCase().startsWith(e.toLowerCase()))}async function*_a(e,t){var r;let n=await ei(),{id:i,inheritedStyle:a,parent:o,font:l,debug:s,locale:u,embedFont:f=!0,graphemeImages:c,canLoadAdditionalAssets:p,getTwStyles:h}=t;if(e===null||typeof e>"u")return yield,yield,"";if(!zn(e)||typeof e.type=="function"){let G;if(!zn(e))G=Em(String(e),t),yield(await G.next()).value;else{if(_g(e.type))throw new Error("Class component is not supported.");G=_a(await e.type(e.props),t),yield(await G.next()).value}await G.next();let ae=yield;return(await G.next(ae)).value}let{type:m,props:d}=e;if(d&&Lg(d))throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:g,children:b,tw:x,lang:_=u}=d||{},L=Zm(_);if(x){let G=h(x,g);g=Object.assign(G,g)}let T=n.Node.create();o.insertChild(T,o.getChildCount());let[E,R]=await om(T,m,a,g,d),C=E.transform===a.transform;if(C||(E.transform.__parent=a.transform),(E.overflow==="hidden"||E.clipPath&&E.clipPath!=="none")&&(R._inheritedClipPathId=`satori_cp-${i}`,R._inheritedMaskId=`satori_om-${i}`),E.maskImage&&(R._inheritedMaskId=`satori_mi-${i}`),E.backgroundClip==="text"){let G={value:""};R._inheritedBackgroundClipTextPath=G,E._inheritedBackgroundClipTextPath=G}let D=Cg(b),M=[],H=0,Q=[];for(let G of D){let ae=_a(G,{id:i+"-"+H++,parentStyle:E,inheritedStyle:R,isInheritingTransform:!0,parent:T,font:l,embedFont:f,debug:s,graphemeImages:c,canLoadAdditionalAssets:p,locale:L,getTwStyles:h,onNodeDetected:t.onNodeDetected});p?Q.push(...(await ae.next()).value||[]):await ae.next(),M.push(ae)}yield Q;for(let G of M)await G.next();let[ee,I]=yield,{left:U,top:O,width:q,height:K}=T.getComputedLayout();U+=ee,O+=I;let ne="",ie="",V="",{children:Y,...A}=d;if((r=t.onNodeDetected)==null||r.call(t,{left:U,top:O,width:q,height:K,type:m,props:A,key:e.key,textContent:zn(Y)?void 0:Y}),m==="img"){let G=E.__src;ie=await da({id:i,left:U,top:O,width:q,height:K,src:G,isInheritingTransform:C,debug:s},E,R)}else if(m==="svg"){let G=E.color,ae=await Vg(e,G);ie=await da({id:i,left:U,top:O,width:q,height:K,src:ae,isInheritingTransform:C,debug:s},E,R)}else{let G=g?.display;if(m==="div"&&b&&typeof b!="string"&&G!=="flex"&&G!=="none")throw new Error('Expected <div> to have explicit "display: flex" or "display: none" if it has more than one child node.');ie=await da({id:i,left:U,top:O,width:q,height:K,isInheritingTransform:C,debug:s},E,R)}for(let G of M)ne+=(await G.next([U,O])).value;return E._inheritedBackgroundClipTextPath&&(V+=le("clipPath",{id:`satori_bct-${i}`,"clip-path":E._inheritedClipPathId?`url(#${E._inheritedClipPathId})`:void 0},E._inheritedBackgroundClipTextPath.value)),V+ie+ne}var Cu="unknown";function Jm(e,t,[r,n],[i,a]){if(r!==i)return r?!i||r===e?-1:i===e?1:e===400&&r===500||e===500&&r===400?-1:e===400&&i===500||e===500&&i===400?1:e<400?r<e&&i<e?i-r:r<e?-1:i<e?1:r-i:e<r&&e<i?r-i:e<r?-1:e<i?1:i-r:1;if(n!==a){if(n===t)return-1;if(a===t)return 1}return-1}var Qm=class{defaultFont;fonts=new Map;constructor(e){this.addFonts(e)}get({name:e,weight:t,style:r}){if(!this.fonts.has(e))return null;t==="normal"&&(t=400),t==="bold"&&(t=700),typeof t=="string"&&(t=Number.parseInt(t,10));let n=[...this.fonts.get(e)],i=n[0];for(let a=1;a<n.length;a++){let[,o,l]=i,[,s,u]=n[a];Jm(t,r,[o,l],[s,u])>0&&(i=n[a])}return i[0]}addFonts(e){for(let t of e){let{name:r,data:n,lang:i}=t;if(i&&!qm(i))throw new Error(`Invalid value for props \`lang\`: "${i}". The value must be one of the following: ${Wa.join(", ")}.`);let a=i??Cu,o=Rn.parse("buffer"in n?n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength):n,{lowMemory:!0}),l=o.charToGlyphIndex;o.charToGlyphIndex=u=>{let f=l.call(o,u);return f===0&&o._trackBrokenChars&&o._trackBrokenChars.push(u),f},this.defaultFont||(this.defaultFont=o);let s=`${r.toLowerCase()}_${a}`;this.fonts.has(s)||this.fonts.set(s,[]),this.fonts.get(s).push([o,t.weight,t.style])}}getEngine(e=16,t="normal",{fontFamily:r="sans-serif",fontWeight:n=400,fontStyle:i="normal"},a){if(!this.fonts.size)throw new Error("No fonts are loaded. At least one font is required to calculate the layout.");r=(Array.isArray(r)?r:[r]).map(b=>b.toLowerCase());let o=[];r.forEach(b=>{let x=this.get({name:b,weight:n,style:i});if(x){o.push(x);return}let _=this.get({name:b+"_unknown",weight:n,style:i});if(_){o.push(_);return}});let l=Array.from(this.fonts.keys()),s=[],u=[],f=[];for(let b of l)if(!r.includes(b))if(a){let x=Km(b);x?x===a?s.push(this.get({name:b,weight:n,style:i})):u.push(this.get({name:b,weight:n,style:i})):f.push(this.get({name:b,weight:n,style:i}))}else f.push(this.get({name:b,weight:n,style:i}));let c=new Map,p=(b,x=!0)=>{let _=[...o,...f,...s,...x?u:[]];if(typeof b>"u")return x?_[_.length-1]:void 0;let L=b.charCodeAt(0);if(c.has(L))return c.get(L);let T=_.find((E,R)=>!!E.charToGlyphIndex(b)||x&&R===_.length-1);return T&&c.set(L,T),T},h=(b,x=!1)=>{var _,L;return((x?(L=(_=b.tables)==null?void 0:_.os2)==null?void 0:L.sTypoAscender:0)||b.ascender)/b.unitsPerEm*e},m=(b,x=!1)=>{var _,L;return((x?(L=(_=b.tables)==null?void 0:_.os2)==null?void 0:L.sTypoDescender:0)||b.descender)/b.unitsPerEm*e},d=(b,x=!1)=>{var _,L;if(typeof t=="string"&&t==="normal"){let T=(x?(L=(_=b.tables)==null?void 0:_.os2)==null?void 0:L.sTypoLineGap:0)||0;return h(b,x)-m(b,x)+T/b.unitsPerEm*e}else if(typeof t=="number")return e*t},g=b=>p(b,!1);return{has:b=>{if(b===`
|
|
54
|
+
`)return!0;let x=g(b);return x?(x._trackBrokenChars=[],x.stringToGlyphs(b),x._trackBrokenChars.length?(x._trackBrokenChars=void 0,!1):!0):!1},baseline:(b,x=typeof b>"u"?o[0]:p(b))=>{let _=h(x),L=m(x),T=_-L;return _+(d(x)-T)/2},height:(b,x=typeof b>"u"?o[0]:p(b))=>d(x),measure:(b,x)=>this.measure(p,b,x),getSVG:(b,x)=>this.getSVG(p,b,x)}}patchFontFallbackResolver(e,t){let r=[];e._trackBrokenChars=r;let n=e.stringToGlyphs;return e.stringToGlyphs=(i,...a)=>{let o=n.call(e,i,...a);for(let l=0;l<o.length;l++)if(o[l].unicode===void 0){let s=r.shift(),u=t(s);if(u!==e){let f=u.charToGlyph(s),c=e.unitsPerEm/u.unitsPerEm,p=new Rn.Path;p.unitsPerEm=e.unitsPerEm,p.commands=f.path.commands.map(m=>{let d={...m};for(let g in d)typeof d[g]=="number"&&(d[g]*=c);return d});let h=new Rn.Glyph({...f,advanceWidth:f.advanceWidth*c,xMin:f.xMin*c,xMax:f.xMax*c,yMin:f.yMin*c,yMax:f.yMax*c,path:p});o[l]=h}}return o},()=>{e.stringToGlyphs=n,e._trackBrokenChars=void 0}}measure(e,t,{fontSize:r,letterSpacing:n=0}){let i=e(t),a=this.patchFontFallbackResolver(i,e);try{return i.getAdvanceWidth(t,r,{letterSpacing:n/r})}finally{a()}}getSVG(e,t,{fontSize:r,top:n,left:i,letterSpacing:a=0}){let o=e(t),l=this.patchFontFallbackResolver(o,e);try{return r===0?"":o.getPath(t.replace(/\n/g,""),i,n,r,{letterSpacing:a/r}).toPathData(1)}finally{l()}}};function Km(e){let t=e.split("_"),r=t[t.length-1];return r===Cu?void 0:r}function e1({width:e,height:t,content:r}){return le("svg",{width:e,height:t,viewBox:`0 0 ${e} ${t}`,xmlns:"http://www.w3.org/2000/svg"},r)}var t1=Pv(dg()),r1=["ios","android","windows","macos","web"];function n1(e){return r1.includes(e)}var i1=["portrait","landscape"];function a1(e){return i1.includes(e)}var wl;(function(e){e.fontSize="fontSize",e.lineHeight="lineHeight"})(wl||(wl={}));var Fe;(function(e){e.rem="rem",e.em="em",e.px="px",e.percent="%",e.vw="vw",e.vh="vh",e.none="<no-css-unit>"})(Fe||(Fe={}));function Sl(e){return typeof e=="string"}function El(e){return typeof e=="object"}var va;function j(e){return{kind:"complete",style:e}}function wt(e,t={}){let{fractions:r}=t;if(r&&e.includes("/")){let[a="",o=""]=e.split("/",2),l=wt(a),s=wt(o);return!l||!s?null:[l[0]/s[0],s[1]]}let n=parseFloat(e);if(Number.isNaN(n))return null;let i=e.match(/(([a-z]{2,}|%))$/);if(!i)return[n,Fe.none];switch(i?.[1]){case"rem":return[n,Fe.rem];case"px":return[n,Fe.px];case"em":return[n,Fe.em];case"%":return[n,Fe.percent];case"vw":return[n,Fe.vw];case"vh":return[n,Fe.vh];default:return null}}function un(e,t,r={}){let n=yr(t,r);return n===null?null:j({[e]:n})}function ga(e,t,r){let n=yr(t);return n!==null&&(r[e]=n),r}function o1(e,t){let r=yr(t);return r===null?null:{[e]:r}}function yr(e,t={}){if(e===void 0)return null;let r=wt(String(e),t);return r?fn(...r,t):null}function fn(e,t,r={}){let{isNegative:n,device:i}=r;switch(t){case Fe.rem:return e*16*(n?-1:1);case Fe.px:return e*(n?-1:1);case Fe.percent:return`${n?"-":""}${e}%`;case Fe.none:return e*(n?-1:1);case Fe.vw:return i!=null&&i.windowDimensions?i.windowDimensions.width*(e/100):(Jt("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case Fe.vh:return i!=null&&i.windowDimensions?i.windowDimensions.height*(e/100):(Jt("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function kl(e){let t=wt(e);if(!t)return null;let[r,n]=t;switch(n){case Fe.rem:return r*16;case Fe.px:return r;default:return null}}var s1={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function Ou(e){return s1[e??""]||"All"}function Au(e){let t="All";return[e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(r,n)=>(t=Ou(n),"")),t]}function ai(e,t={}){if(e.includes("/")){let r=Tl(e,{...t,fractions:!0});if(r)return r}return e[0]==="["&&(e=e.slice(1,-1)),Tl(e,t)}function br(e,t,r={}){let n=ai(t,r);return n===null?null:j({[e]:n})}function Tl(e,t={}){if(e==="px")return 1;let r=wt(e,t);if(!r)return null;let[n,i]=r;return t.fractions&&(i=Fe.percent,n*=100),i===Fe.none&&(n=n/4,i=Fe.rem),fn(n,i,t)}function l1(...e){console.warn(...e)}function u1(...e){}var Jt=typeof process>"u"||((va=process==null?void 0:process.env)===null||va===void 0?void 0:va.JEST_WORKER_ID)===void 0?l1:u1,f1=[["aspect-square",j({aspectRatio:1})],["aspect-video",j({aspectRatio:16/9})],["items-center",j({alignItems:"center"})],["items-start",j({alignItems:"flex-start"})],["items-end",j({alignItems:"flex-end"})],["items-baseline",j({alignItems:"baseline"})],["items-stretch",j({alignItems:"stretch"})],["justify-start",j({justifyContent:"flex-start"})],["justify-end",j({justifyContent:"flex-end"})],["justify-center",j({justifyContent:"center"})],["justify-between",j({justifyContent:"space-between"})],["justify-around",j({justifyContent:"space-around"})],["justify-evenly",j({justifyContent:"space-evenly"})],["content-start",j({alignContent:"flex-start"})],["content-end",j({alignContent:"flex-end"})],["content-between",j({alignContent:"space-between"})],["content-around",j({alignContent:"space-around"})],["content-stretch",j({alignContent:"stretch"})],["content-center",j({alignContent:"center"})],["self-auto",j({alignSelf:"auto"})],["self-start",j({alignSelf:"flex-start"})],["self-end",j({alignSelf:"flex-end"})],["self-center",j({alignSelf:"center"})],["self-stretch",j({alignSelf:"stretch"})],["self-baseline",j({alignSelf:"baseline"})],["direction-inherit",j({direction:"inherit"})],["direction-ltr",j({direction:"ltr"})],["direction-rtl",j({direction:"rtl"})],["hidden",j({display:"none"})],["flex",j({display:"flex"})],["flex-row",j({flexDirection:"row"})],["flex-row-reverse",j({flexDirection:"row-reverse"})],["flex-col",j({flexDirection:"column"})],["flex-col-reverse",j({flexDirection:"column-reverse"})],["flex-wrap",j({flexWrap:"wrap"})],["flex-wrap-reverse",j({flexWrap:"wrap-reverse"})],["flex-nowrap",j({flexWrap:"nowrap"})],["flex-auto",j({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",j({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",j({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",j({overflow:"hidden"})],["overflow-visible",j({overflow:"visible"})],["overflow-scroll",j({overflow:"scroll"})],["absolute",j({position:"absolute"})],["relative",j({position:"relative"})],["italic",j({fontStyle:"italic"})],["not-italic",j({fontStyle:"normal"})],["oldstyle-nums",tn("oldstyle-nums")],["small-caps",tn("small-caps")],["lining-nums",tn("lining-nums")],["tabular-nums",tn("tabular-nums")],["proportional-nums",tn("proportional-nums")],["font-thin",j({fontWeight:"100"})],["font-100",j({fontWeight:"100"})],["font-extralight",j({fontWeight:"200"})],["font-200",j({fontWeight:"200"})],["font-light",j({fontWeight:"300"})],["font-300",j({fontWeight:"300"})],["font-normal",j({fontWeight:"normal"})],["font-400",j({fontWeight:"400"})],["font-medium",j({fontWeight:"500"})],["font-500",j({fontWeight:"500"})],["font-semibold",j({fontWeight:"600"})],["font-600",j({fontWeight:"600"})],["font-bold",j({fontWeight:"bold"})],["font-700",j({fontWeight:"700"})],["font-extrabold",j({fontWeight:"800"})],["font-800",j({fontWeight:"800"})],["font-black",j({fontWeight:"900"})],["font-900",j({fontWeight:"900"})],["include-font-padding",j({includeFontPadding:!0})],["remove-font-padding",j({includeFontPadding:!1})],["max-w-none",j({maxWidth:"99999%"})],["text-left",j({textAlign:"left"})],["text-center",j({textAlign:"center"})],["text-right",j({textAlign:"right"})],["text-justify",j({textAlign:"justify"})],["text-auto",j({textAlign:"auto"})],["underline",j({textDecorationLine:"underline"})],["line-through",j({textDecorationLine:"line-through"})],["no-underline",j({textDecorationLine:"none"})],["uppercase",j({textTransform:"uppercase"})],["lowercase",j({textTransform:"lowercase"})],["capitalize",j({textTransform:"capitalize"})],["normal-case",j({textTransform:"none"})],["w-auto",j({width:"auto"})],["h-auto",j({height:"auto"})],["shadow-sm",j({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.025,elevation:1})],["shadow",j({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.075,elevation:2})],["shadow-md",j({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:.125,elevation:3})],["shadow-lg",j({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.15,shadowRadius:8,elevation:8})],["shadow-xl",j({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.19,shadowRadius:20,elevation:12})],["shadow-2xl",j({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.25,shadowRadius:30,elevation:16})],["shadow-none",j({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],_l=f1;function tn(e){return{kind:"dependent",complete(t){(!t.fontVariant||!Array.isArray(t.fontVariant))&&(t.fontVariant=[]),t.fontVariant.push(e)}}}var c1=class{constructor(e){this.ir=new Map(_l),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([..._l,...e??[]])}getStyle(e){return this.styles.get(e)}setStyle(e,t){this.styles.set(e,t)}getIr(e){return this.ir.get(e)}setIr(e,t){this.ir.set(e,t)}getPrefixMatch(e){return this.prefixes.get(e)}setPrefixMatch(e,t){this.prefixes.set(e,t)}};function p1(e,t,r={}){let n=t?.[e];if(!n)return br("fontSize",e,r);if(typeof n=="string")return un("fontSize",n);let i={},[a,o]=n,l=o1("fontSize",a);if(l&&(i=l),typeof o=="string")return j(ga("lineHeight",Ll(o,i),i));let{lineHeight:s,letterSpacing:u}=o;return s&&ga("lineHeight",Ll(s,i),i),u&&ga("letterSpacing",u,i),j(i)}function Ll(e,t){let r=wt(e);if(r){let[n,i]=r;if((i===Fe.none||i===Fe.em)&&typeof t.fontSize=="number")return t.fontSize*n}return e}function h1(e,t){var r;let n=(r=t?.[e])!==null&&r!==void 0?r:e.startsWith("[")?e.slice(1,-1):e,i=wt(n);if(!i)return null;let[a,o]=i;if(o===Fe.none)return{kind:"dependent",complete(s){if(typeof s.fontSize!="number")return"relative line-height utilities require that font-size be set";s.lineHeight=s.fontSize*a}};let l=fn(a,o);return l!==null?j({lineHeight:l}):null}function d1(e,t,r,n,i){let a="";if(n[0]==="[")a=n.slice(1,-1);else{let u=i?.[n];if(u)a=u;else{let f=ai(n);return f&&typeof f=="number"?Cl(f,Fe.px,t,e):null}}if(a==="auto")return Iu(t,e,"auto");let o=wt(a);if(!o)return null;let[l,s]=o;return r&&(l=-l),Cl(l,s,t,e)}function Cl(e,t,r,n){let i=fn(e,t);return i===null?null:Iu(r,n,i)}function Iu(e,t,r){switch(e){case"All":return{kind:"complete",style:{[`${t}Top`]:r,[`${t}Right`]:r,[`${t}Bottom`]:r,[`${t}Left`]:r}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${t}${e}`]:r}};case"Vertical":return{kind:"complete",style:{[`${t}Top`]:r,[`${t}Bottom`]:r}};case"Horizontal":return{kind:"complete",style:{[`${t}Left`]:r,[`${t}Right`]:r}};default:return null}}function v1(e){if(!e)return{};let t=Object.entries(e).reduce((i,[a,o])=>{let l=[0,1/0,0],s=typeof o=="string"?{min:o}:o,u=s.min?kl(s.min):0;u===null?Jt(`invalid screen config value: ${a}->min: ${s.min}`):l[0]=u;let f=s.max?kl(s.max):1/0;return f===null?Jt(`invalid screen config value: ${a}->max: ${s.max}`):l[1]=f,i[a]=l,i},{}),r=Object.values(t);r.sort((i,a)=>{let[o,l]=i,[s,u]=a;return l===1/0||u===1/0?o-s:l-u});let n=0;return r.forEach(i=>i[2]=n++),t}function g1(e,t){let r=t?.[e];if(!r)return null;if(typeof r=="string")return j({fontFamily:r});let n=r[0];return n?j({fontFamily:n}):null}function an(e,t,r){if(!r)return null;let n;t.includes("/")&&([t="",n]=t.split("/",2));let i="";if(t.startsWith("[#")||t.startsWith("[rgb")?i=t.slice(1,-1):i=Pu(t,r),!i)return null;if(n){let a=Number(n);if(!Number.isNaN(a))return i=Ol(i,a/100),j({[qn[e].color]:i})}return{kind:"dependent",complete(a){let o=qn[e].opacity,l=a[o];typeof l=="number"&&(i=Ol(i,l)),a[qn[e].color]=i}}}function Gn(e,t){let r=parseInt(t,10);if(Number.isNaN(r))return null;let n=r/100;return{kind:"complete",style:{[qn[e].opacity]:n}}}function Ol(e,t){return e.startsWith("#")?e=y1(e):e.startsWith("rgb(")&&(e=e.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),e.replace(/, ?\d*\.?(\d+)\)$/,`, ${t})`)}function m1(e){for(let t in e)t.startsWith("__opacity_")&&delete e[t]}var qn={bg:{opacity:"__opacity_bg",color:"backgroundColor"},text:{opacity:"__opacity_text",color:"color"},border:{opacity:"__opacity_border",color:"borderColor"},borderTop:{opacity:"__opacity_border",color:"borderTopColor"},borderBottom:{opacity:"__opacity_border",color:"borderBottomColor"},borderLeft:{opacity:"__opacity_border",color:"borderLeftColor"},borderRight:{opacity:"__opacity_border",color:"borderRightColor"},shadow:{opacity:"__opacity_shadow",color:"shadowColor"},tint:{opacity:"__opacity_tint",color:"tintColor"}};function y1(e){let t=e;e=e.replace(b1,(o,l,s,u)=>l+l+s+s+u+u);let r=x1.exec(e);if(!r)return Jt(`invalid config hex color value: ${t}`),"rgba(0, 0, 0, 1)";let n=parseInt(r[1],16),i=parseInt(r[2],16),a=parseInt(r[3],16);return`rgba(${n}, ${i}, ${a}, 1)`}function Pu(e,t){let r=t[e];if(Sl(r))return r;if(El(r)&&Sl(r.DEFAULT))return r.DEFAULT;let[n="",...i]=e.split("-");for(;n!==e;){let a=t[n];if(El(a))return Pu(i.join("-"),a);if(i.length===0)return"";n=`${n}-${i.shift()}`}return""}var b1=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,x1=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function w1(e,t){let[r,n]=Au(e);if(r.match(/^(-?(\d)+)?$/))return S1(r,n,t?.borderWidth);if(r=r.replace(/^-/,""),["dashed","solid","dotted"].includes(r))return j({borderStyle:r});let i="border";switch(n){case"Bottom":i="borderBottom";break;case"Top":i="borderTop";break;case"Left":i="borderLeft";break;case"Right":i="borderRight";break}let a=an(i,r,t?.borderColor);if(a)return a;let o=`border${n==="All"?"":n}Width`;r=r.replace(/^-/,"");let l=r.slice(1,-1),s=br(o,l);return typeof s?.style[o]!="number"?null:s}function S1(e,t,r){if(!r)return null;e=e.replace(/^-/,"");let n=r[e===""?"DEFAULT":e];if(n===void 0)return null;let i=`border${t==="All"?"":t}Width`;return un(i,n)}function E1(e,t){if(!t)return null;let[r,n]=Au(e);r=r.replace(/^-/,""),r===""&&(r="DEFAULT");let i=`border${n==="All"?"":n}Radius`,a=t[r];if(a)return Al(un(i,a));let o=br(i,r);return typeof o?.style[i]!="number"?null:Al(o)}function Al(e){if(e?.kind!=="complete")return e;let t=e.style.borderTopRadius;t!==void 0&&(e.style.borderTopLeftRadius=t,e.style.borderTopRightRadius=t,delete e.style.borderTopRadius);let r=e.style.borderBottomRadius;r!==void 0&&(e.style.borderBottomLeftRadius=r,e.style.borderBottomRightRadius=r,delete e.style.borderBottomRadius);let n=e.style.borderLeftRadius;n!==void 0&&(e.style.borderBottomLeftRadius=n,e.style.borderTopLeftRadius=n,delete e.style.borderLeftRadius);let i=e.style.borderRightRadius;return i!==void 0&&(e.style.borderBottomRightRadius=i,e.style.borderTopRightRadius=i,delete e.style.borderRightRadius),e}function rn(e,t,r,n){let i=null;e==="inset"&&(t=t.replace(/^(x|y)-/,(l,s)=>(i=s==="x"?"x":"y","")));let a=n?.[t];if(a){let l=yr(a,{isNegative:r});if(l!==null)return Il(e,i,l)}let o=ai(t,{isNegative:r});return o!==null?Il(e,i,o):null}function Il(e,t,r){if(e!=="inset")return j({[e]:r});switch(t){case null:return j({top:r,left:r,right:r,bottom:r});case"y":return j({top:r,bottom:r});case"x":return j({left:r,right:r})}}function Bn(e,t,r){var n;t=t.replace(/^-/,"");let i=t===""?"DEFAULT":t,a=Number((n=r?.[i])!==null&&n!==void 0?n:t);return Number.isNaN(a)?null:j({[`flex${e}`]:a})}function k1(e,t){var r,n;if(e=t?.[e]||e,["min-content","revert","unset"].includes(e))return null;if(e.match(/^\d+(\.\d+)?$/))return j({flexGrow:Number(e),flexBasis:"0%"});let i=e.match(/^(\d+)\s+(\d+)$/);if(i)return j({flexGrow:Number(i[1]),flexShrink:Number(i[2])});if(i=e.match(/^(\d+)\s+([^ ]+)$/),i){let a=yr((r=i[2])!==null&&r!==void 0?r:"");return a?j({flexGrow:Number(i[1]),flexBasis:a}):null}if(i=e.match(/^(\d+)\s+(\d+)\s+(.+)$/),i){let a=yr((n=i[3])!==null&&n!==void 0?n:"");return a?j({flexGrow:Number(i[1]),flexShrink:Number(i[2]),flexBasis:a}):null}return null}function Pl(e,t,r={},n){let i=n?.[t];return i!==void 0?un(e,i,r):br(e,t,r)}function $n(e,t,r={},n){let i=yr(n?.[t],r);return i?j({[e]:i}):(t==="screen"&&(t=e.includes("Width")?"100vw":"100vh"),br(e,t,r))}function T1(e,t,r){let n=r?.[e];if(n){let i=wt(n,{isNegative:t});if(!i)return null;let[a,o]=i;if(o===Fe.em)return _1(a);if(o===Fe.percent)return Jt("percentage-based letter-spacing configuration currently unsupported, switch to `em`s, or open an issue if you'd like to see support added."),null;let l=fn(a,o,{isNegative:t});return l!==null?j({letterSpacing:l}):null}return br("letterSpacing",e,{isNegative:t})}function _1(e){return{kind:"dependent",complete(t){let r=t.fontSize;if(typeof r!="number"||Number.isNaN(r))return"tracking-X relative letter spacing classes require font-size to be set";t.letterSpacing=Math.round((e*r+Number.EPSILON)*100)/100}}}function L1(e,t){let r=t?.[e];if(r){let i=wt(String(r));if(i)return j({opacity:i[0]})}let n=wt(e);return n?j({opacity:n[0]/100}):null}function C1(e){let t=parseInt(e,10);return Number.isNaN(t)?null:{kind:"complete",style:{shadowOpacity:t/100}}}function O1(e){if(e.includes("/")){let[r="",n=""]=e.split("/",2),i=ma(r),a=ma(n);return i===null||a===null?null:{kind:"complete",style:{shadowOffset:{width:i,height:a}}}}let t=ma(e);return t===null?null:{kind:"complete",style:{shadowOffset:{width:t,height:t}}}}function ma(e){let t=ai(e);return typeof t=="number"?t:null}var Rl=class{constructor(e,t={},r,n,i){var a,o,l,s,u,f;this.config=t,this.cache=r,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=n;let c=e.trim().split(":"),p=[];c.length===1?this.string=e:(this.string=(a=c.pop())!==null&&a!==void 0?a:"",p=c),this.char=this.string[0];let h=v1((o=this.config.theme)===null||o===void 0?void 0:o.screens);for(let m of p)if(h[m]){let d=(l=h[m])===null||l===void 0?void 0:l[2];d!==void 0&&(this.order=((s=this.order)!==null&&s!==void 0?s:0)+d);let g=(u=n.windowDimensions)===null||u===void 0?void 0:u.width;if(g){let[b,x]=(f=h[m])!==null&&f!==void 0?f:[0,0];(g<=b||g>x)&&(this.isNull=!0)}else this.isNull=!0}else n1(m)?this.isNull=m!==i:a1(m)?n.windowDimensions?(n.windowDimensions.width>n.windowDimensions.height?"landscape":"portrait")!==m?this.isNull=!0:this.incrementOrder():this.isNull=!0:m==="retina"?n.pixelDensity===2?this.incrementOrder():this.isNull=!0:m==="dark"?n.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(m)||(this.isNull=!0)}parse(){if(this.isNull)return{kind:"null"};let e=this.cache.getIr(this.rest);if(e)return e;this.parseIsNegative();let t=this.parseUtility();return t?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:t}:t:{kind:"null"}}parseUtility(){var e,t,r,n,i;let a=this.config.theme,o=null;switch(this.char){case"m":case"p":{let l=this.peekSlice(1,3).match(/^(t|b|r|l|x|y)?-/);if(l){let s=this.char==="m"?"margin":"padding";this.advance(((t=(e=l[0])===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:0)+1);let u=Ou(l[1]),f=d1(s,u,this.isNegative,this.rest,(r=this.config.theme)===null||r===void 0?void 0:r[s]);if(f)return f}}}if(this.consumePeeked("h-")&&(o=Pl("height",this.rest,this.context,a?.height),o)||this.consumePeeked("w-")&&(o=Pl("width",this.rest,this.context,a?.width),o)||this.consumePeeked("min-w-")&&(o=$n("minWidth",this.rest,this.context,a?.minWidth),o)||this.consumePeeked("min-h-")&&(o=$n("minHeight",this.rest,this.context,a?.minHeight),o)||this.consumePeeked("max-w-")&&(o=$n("maxWidth",this.rest,this.context,a?.maxWidth),o)||this.consumePeeked("max-h-")&&(o=$n("maxHeight",this.rest,this.context,a?.maxHeight),o)||this.consumePeeked("leading-")&&(o=h1(this.rest,a?.lineHeight),o)||this.consumePeeked("text-")&&(o=p1(this.rest,a?.fontSize,this.context),o||(o=an("text",this.rest,a?.textColor),o)||this.consumePeeked("opacity-")&&(o=Gn("text",this.rest),o))||this.consumePeeked("font-")&&(o=g1(this.rest,a?.fontFamily),o)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&Jt("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),o=un("aspectRatio",this.rest,{fractions:!0}),o)||this.consumePeeked("tint-")&&(o=an("tint",this.rest,a?.colors),o)||this.consumePeeked("bg-")&&(o=an("bg",this.rest,a?.backgroundColor),o||this.consumePeeked("opacity-")&&(o=Gn("bg",this.rest),o))||this.consumePeeked("border")&&(o=w1(this.rest,a),o||this.consumePeeked("-opacity-")&&(o=Gn("border",this.rest),o))||this.consumePeeked("rounded")&&(o=E1(this.rest,a?.borderRadius),o)||this.consumePeeked("bottom-")&&(o=rn("bottom",this.rest,this.isNegative,a?.inset),o)||this.consumePeeked("top-")&&(o=rn("top",this.rest,this.isNegative,a?.inset),o)||this.consumePeeked("left-")&&(o=rn("left",this.rest,this.isNegative,a?.inset),o)||this.consumePeeked("right-")&&(o=rn("right",this.rest,this.isNegative,a?.inset),o)||this.consumePeeked("inset-")&&(o=rn("inset",this.rest,this.isNegative,a?.inset),o)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?o=Bn("Grow",this.rest,a?.flexGrow):this.consumePeeked("shrink")?o=Bn("Shrink",this.rest,a?.flexShrink):o=k1(this.rest,a?.flex),o)||this.consumePeeked("grow")&&(o=Bn("Grow",this.rest,a?.flexGrow),o)||this.consumePeeked("shrink")&&(o=Bn("Shrink",this.rest,a?.flexShrink),o)||this.consumePeeked("shadow-color-opacity-")&&(o=Gn("shadow",this.rest),o)||this.consumePeeked("shadow-opacity-")&&(o=C1(this.rest),o)||this.consumePeeked("shadow-offset-")&&(o=O1(this.rest),o)||this.consumePeeked("shadow-radius-")&&(o=br("shadowRadius",this.rest),o)||this.consumePeeked("shadow-")&&(o=an("shadow",this.rest,a?.colors),o))return o;if(this.consumePeeked("elevation-")){let l=parseInt(this.rest,10);if(!Number.isNaN(l))return j({elevation:l})}if(this.consumePeeked("opacity-")&&(o=L1(this.rest,a?.opacity),o)||this.consumePeeked("tracking-")&&(o=T1(this.rest,this.isNegative,a?.letterSpacing),o))return o;if(this.consumePeeked("z-")){let l=Number((i=(n=a?.zIndex)===null||n===void 0?void 0:n[this.rest])!==null&&i!==void 0?i:this.rest);if(!Number.isNaN(l))return j({zIndex:l})}return Jt(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(e){var t;if(e[0]!=="m")return!1;let r=e.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!r)return!1;if(!(!((t=this.context.device)===null||t===void 0)&&t.windowDimensions))return this.isNull=!0,!0;let n=this.context.device.windowDimensions,[,i="",a="",o=""]=r,l=a==="w"?n.width:n.height,s=wt(o,this.context);if(s===null)return this.isNull=!0,!0;let[u,f]=s;return f!=="px"&&(this.isNull=!0),(i==="min"?l>=u:l<=u)?this.incrementOrder():this.isNull=!0,!0}advance(e=1){this.position+=e,this.char=this.string[this.position]}get rest(){return this.peekSlice(0,this.string.length)}peekSlice(e,t){return this.string.slice(this.position+e,this.position+t)}consumePeeked(e){return this.peekSlice(0,e.length)===e?(this.advance(e.length),!0):!1}parseIsNegative(){this.char==="-"&&(this.advance(),this.isNegative=!0,this.context.isNegative=!0)}incrementOrder(){var e;this.order=((e=this.order)!==null&&e!==void 0?e:0)+1}};function A1(e){let t=[],r=null;return e.forEach(n=>{if(typeof n=="string")t=[...t,...ya(n)];else if(Array.isArray(n))t=[...t,...n.flatMap(ya)];else if(typeof n=="object"&&n!==null)for(let[i,a]of Object.entries(n))typeof a=="boolean"?t=[...t,...a?ya(i):[]]:r?r[i]=a:r={[i]:a}}),[t.filter(Boolean).filter(I1),r]}function ya(e){return e.trim().split(/\s+/)}function I1(e,t,r){return r.indexOf(e)===t}function P1(e){var t;return(t=e?.reduce((r,n)=>({...r,...R1(n.handler)}),{}))!==null&&t!==void 0?t:{}}function R1(e){let t={};return e({addUtilities:r=>{t=r},...F1}),t}function $t(e){throw new Error(`tailwindcss plugin function argument object prop "${e}" not implemented`)}var F1={addComponents:$t,addBase:$t,addVariant:$t,e:$t,prefix:$t,theme:$t,variants:$t,config:$t,corePlugins:$t,matchUtilities:$t,postcss:null};function D1(e,t){let r=(0,t1.default)(U1(e)),n={},i=P1(r.plugins),a={},o=Object.entries(i).map(([m,d])=>typeof d=="string"?(a[m]=d,[m,{kind:"null"}]):[m,j(d)]).filter(([,m])=>m.kind!=="null");function l(){return[n.windowDimensions?`w${n.windowDimensions.width}`:!1,n.windowDimensions?`h${n.windowDimensions.height}`:!1,n.fontScale?`fs${n.fontScale}`:!1,n.colorScheme==="dark"?"dark":!1,n.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let s=l(),u={};function f(){let m=u[s];if(m)return m;let d=new c1(o);return u[s]=d,d}function c(...m){let d=f(),g={},b=[],x=[],[_,L]=A1(m),T=_.join(" "),E=d.getStyle(T);if(E)return{...E,...L||{}};for(let R of _){let C=d.getIr(R);if(!C&&R in a){let D=c(a[R]);d.setIr(R,j(D)),g={...g,...D};continue}switch(C=new Rl(R,r,d,n,t).parse(),C.kind){case"complete":g={...g,...C.style},d.setIr(R,C);break;case"dependent":b.push(C);break;case"ordered":x.push(C);break;case"null":d.setIr(R,C);break}}if(x.length>0){x.sort((R,C)=>R.order-C.order);for(let R of x)switch(R.styleIr.kind){case"complete":g={...g,...R.styleIr.style};break;case"dependent":b.push(R.styleIr);break}}if(b.length>0){for(let R of b){let C=R.complete(g);C&&Jt(C)}m1(g)}return T!==""&&d.setStyle(T,g),L&&(g={...g,...L}),g}function p(m){let d=c(m.split(/\s+/g).map(g=>g.replace(/^(bg|text|border)-/,"")).map(g=>`bg-${g}`).join(" "));return typeof d.backgroundColor=="string"?d.backgroundColor:void 0}let h=(m,...d)=>{let g="";return m.forEach((b,x)=>{var _;g+=b+((_=d[x])!==null&&_!==void 0?_:"")}),c(g)};return h.style=c,h.color=p,h.prefixMatch=(...m)=>{let d=m.sort().join(":"),g=f(),b=g.getPrefixMatch(d);if(b!==void 0)return b;let x=new Rl(`${d}:flex`,r,g,n,t).parse().kind!=="null";return g.setPrefixMatch(d,x),x},h.setWindowDimensions=m=>{n.windowDimensions=m,s=l()},h.setFontScale=m=>{n.fontScale=m,s=l()},h.setPixelDensity=m=>{n.pixelDensity=m,s=l()},h.setColorScheme=m=>{n.colorScheme=m,s=l()},h}function U1(e){return{...e,content:["_no_warnings_please"]}}var N1={handler:({addUtilities:e})=>{e({"shadow-sm":{boxShadow:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},shadow:{boxShadow:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"},"shadow-md":{boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"},"shadow-lg":{boxShadow:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"},"shadow-xl":{boxShadow:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"},"shadow-2xl":{boxShadow:"0 25px 50px -12px rgb(0 0 0 / 0.25)"},"shadow-inner":{boxShadow:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"},"shadow-none":{boxShadow:"0 0 #0000"}})}};function M1(e){return D1({...e,plugins:[...e?.plugins??[],N1]},"web")}var jn;function W1({width:e,height:t,config:r}){return jn||(jn=M1(r)),jn.setWindowDimensions({width:+e,height:+t}),jn}var ba=new WeakMap;async function Fr(e,t){let r=await ei();if(!r||!r.Node)throw new Error("Satori is not initialized: expect `yoga` to be loaded, got "+r);t.fonts=t.fonts||[];let n;ba.has(t.fonts)?n=ba.get(t.fonts):ba.set(t.fonts,n=new Qm(t.fonts));let i="width"in t?t.width:void 0,a="height"in t?t.height:void 0,o=G1(r,t.pointScaleFactor);i&&o.setWidth(i),a&&o.setHeight(a),o.setFlexDirection(r.FLEX_DIRECTION_ROW),o.setFlexWrap(r.WRAP_WRAP),o.setAlignContent(r.ALIGN_AUTO),o.setAlignItems(r.ALIGN_FLEX_START),o.setJustifyContent(r.JUSTIFY_FLEX_START),o.setOverflow(r.OVERFLOW_HIDDEN);let l={...t.graphemeImages},s=new Set;sr.clear(),Hn.clear(),await zg(e);let u=_a(e,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:"normal",color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:i,_viewportHeight:a},parent:o,font:n,embedFont:t.embedFont,debug:t.debug,graphemeImages:l,canLoadAdditionalAssets:!!t.loadAdditionalAsset,onNodeDetected:t.onNodeDetected,getTwStyles:(m,d)=>{let g={...W1({width:i,height:a,config:t.tailwindConfig})([m])};return typeof g.lineHeight=="number"&&(g.lineHeight=g.lineHeight/(+g.fontSize||d.fontSize||16)),g.shadowColor&&g.boxShadow&&(g.boxShadow=g.boxShadow.replace(/rgba?\([^)]+\)/,g.shadowColor)),g}}),f=(await u.next()).value;if(t.loadAdditionalAsset&&f.length){let m=B1(f),d=[],g={};await Promise.all(Object.entries(m).flatMap(([b,x])=>x.map(_=>{let L=`${b}_${_}`;return s.has(L)?null:(s.add(L),t.loadAdditionalAsset(b,_).then(T=>{typeof T=="string"?g[_]=T:T&&(Array.isArray(T)?d.push(...T):d.push(T))}))}))),n.addFonts(d),Object.assign(l,g)}await u.next(),o.calculateLayout(i,a,r.DIRECTION_LTR);let c=(await u.next([0,0])).value,p=o.getComputedWidth(),h=o.getComputedHeight();return o.freeRecursive(),e1({width:p,height:h,content:c})}function G1(e,t){if(t){let r=e.Config.create();return r.setPointScaleFactor(t),e.Node.createWithConfig(r)}else return e.Node.create()}function B1(e){let t={},r={};for(let{word:n,locale:i}of e){let a=Ym(n,i).join("|");r[a]=r[a]||"",r[a]+=n}return Object.keys(r).forEach(n=>{t[n]=t[n]||[],n==="emoji"?t[n].push(...Fl(Rt(r[n],"grapheme"))):(t[n][0]=t[n][0]||"",t[n][0]+=Fl(Rt(r[n],"grapheme",n==="unknown"?void 0:n)).join(""))}),t}function Fl(e){return Array.from(new Set(e))}var re={},$1=re.ALIGN_AUTO=0,j1=re.ALIGN_FLEX_START=1,z1=re.ALIGN_CENTER=2,V1=re.ALIGN_FLEX_END=3,H1=re.ALIGN_STRETCH=4,X1=re.ALIGN_BASELINE=5,q1=re.ALIGN_SPACE_BETWEEN=6,Y1=re.ALIGN_SPACE_AROUND=7,Z1=re.DIMENSION_WIDTH=0,J1=re.DIMENSION_HEIGHT=1,Q1=re.DIRECTION_INHERIT=0,K1=re.DIRECTION_LTR=1,ey=re.DIRECTION_RTL=2,ty=re.DISPLAY_FLEX=0,ry=re.DISPLAY_NONE=1,ny=re.EDGE_LEFT=0,iy=re.EDGE_TOP=1,ay=re.EDGE_RIGHT=2,oy=re.EDGE_BOTTOM=3,sy=re.EDGE_START=4,ly=re.EDGE_END=5,uy=re.EDGE_HORIZONTAL=6,fy=re.EDGE_VERTICAL=7,cy=re.EDGE_ALL=8,py=re.EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS=0,hy=re.EXPERIMENTAL_FEATURE_ABSOLUTE_PERCENTAGE_AGAINST_PADDING_EDGE=1,dy=re.EXPERIMENTAL_FEATURE_FIX_ABSOLUTE_TRAILING_COLUMN_MARGIN=2,vy=re.FLEX_DIRECTION_COLUMN=0,gy=re.FLEX_DIRECTION_COLUMN_REVERSE=1,my=re.FLEX_DIRECTION_ROW=2,yy=re.FLEX_DIRECTION_ROW_REVERSE=3,by=re.GUTTER_COLUMN=0,xy=re.GUTTER_ROW=1,wy=re.GUTTER_ALL=2,Sy=re.JUSTIFY_FLEX_START=0,Ey=re.JUSTIFY_CENTER=1,ky=re.JUSTIFY_FLEX_END=2,Ty=re.JUSTIFY_SPACE_BETWEEN=3,_y=re.JUSTIFY_SPACE_AROUND=4,Ly=re.JUSTIFY_SPACE_EVENLY=5,Cy=re.LOG_LEVEL_ERROR=0,Oy=re.LOG_LEVEL_WARN=1,Ay=re.LOG_LEVEL_INFO=2,Iy=re.LOG_LEVEL_DEBUG=3,Py=re.LOG_LEVEL_VERBOSE=4,Ry=re.LOG_LEVEL_FATAL=5,Fy=re.MEASURE_MODE_UNDEFINED=0,Dy=re.MEASURE_MODE_EXACTLY=1,Uy=re.MEASURE_MODE_AT_MOST=2,Ny=re.NODE_TYPE_DEFAULT=0,My=re.NODE_TYPE_TEXT=1,Wy=re.OVERFLOW_VISIBLE=0,Gy=re.OVERFLOW_HIDDEN=1,By=re.OVERFLOW_SCROLL=2,$y=re.POSITION_TYPE_STATIC=0,jy=re.POSITION_TYPE_RELATIVE=1,zy=re.POSITION_TYPE_ABSOLUTE=2,Vy=re.PRINT_OPTIONS_LAYOUT=1,Hy=re.PRINT_OPTIONS_STYLE=2,Xy=re.PRINT_OPTIONS_CHILDREN=4,qy=re.UNIT_UNDEFINED=0,Yy=re.UNIT_POINT=1,Zy=re.UNIT_PERCENT=2,Jy=re.UNIT_AUTO=3,Qy=re.WRAP_NO_WRAP=0,Ky=re.WRAP_WRAP=1,eb=re.WRAP_WRAP_REVERSE=2;var Ru=e=>{function t(i,a,o){let l=i[a];i[a]=function(...s){return o.call(this,l,...s)}}for(let i of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding"]){let a={[re.UNIT_POINT]:e.Node.prototype[i],[re.UNIT_PERCENT]:e.Node.prototype[`${i}Percent`],[re.UNIT_AUTO]:e.Node.prototype[`${i}Auto`]};t(e.Node.prototype,i,function(o,...l){let s,u,f=l.pop();if(f==="auto")s=re.UNIT_AUTO,u=void 0;else if(typeof f=="object")s=f.unit,u=f.valueOf();else if(s=typeof f=="string"&&f.endsWith("%")?re.UNIT_PERCENT:re.UNIT_POINT,u=parseFloat(f),!Number.isNaN(f)&&Number.isNaN(u))throw Error(`Invalid value ${f} for ${i}`);if(!a[s])throw Error(`Failed to execute "${i}": Unsupported unit '${f}'`);return u!==void 0?a[s].call(this,...l,u):a[s].call(this,...l)})}function r(i){return e.MeasureCallback.implement({measure:(...a)=>{let{width:o,height:l}=i(...a);return{width:o??NaN,height:l??NaN}}})}function n(i){return e.DirtiedCallback.implement({dirtied:i})}return t(e.Node.prototype,"setMeasureFunc",function(i,a){return a?i.call(this,r(a)):this.unsetMeasureFunc()}),t(e.Node.prototype,"setDirtiedFunc",function(i,a){i.call(this,n(a))}),t(e.Config.prototype,"free",function(){e.Config.destroy(this)}),t(e.Node,"create",(i,a)=>a?e.Node.createWithConfig(a):e.Node.createDefault()),t(e.Node.prototype,"free",function(){e.Node.destroy(this)}),t(e.Node.prototype,"freeRecursive",function(){for(let i=0,a=this.getChildCount();i<a;++i)this.getChild(0).freeRecursive();this.free()}),t(e.Node.prototype,"calculateLayout",function(i,a=NaN,o=NaN,l=re.DIRECTION_LTR){return i.call(this,a,o,l)}),{Config:e.Config,Node:e.Node,...re}};var tb=(()=>{var e=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(t={}){s||(s=t!==void 0?t:{}),s.ready=new Promise(function(S,w){u=S,f=w});var r,n,i=Object.assign({},s),a="";typeof document<"u"&&document.currentScript&&(a=document.currentScript.src),e&&(a=e),a=a.indexOf("blob:")!==0?a.substr(0,a.replace(/[?#].*/,"").lastIndexOf("/")+1):"";var o=console.log.bind(console),l=console.warn.bind(console);Object.assign(s,i),i=null,typeof WebAssembly!="object"&&ee("no native wasm support detected");var s,u,f,c,p=!1;function h(S,w,P){P=w+P;for(var N="";!(w>=P);){var F=S[w++];if(!F)break;if(128&F){var B=63&S[w++];if((224&F)==192)N+=String.fromCharCode((31&F)<<6|B);else{var Z=63&S[w++];65536>(F=(240&F)==224?(15&F)<<12|B<<6|Z:(7&F)<<18|B<<12|Z<<6|63&S[w++])?N+=String.fromCharCode(F):(F-=65536,N+=String.fromCharCode(55296|F>>10,56320|1023&F))}}else N+=String.fromCharCode(F)}return N}function m(){var S=c.buffer;s.HEAP8=d=new Int8Array(S),s.HEAP16=b=new Int16Array(S),s.HEAP32=_=new Int32Array(S),s.HEAPU8=g=new Uint8Array(S),s.HEAPU16=x=new Uint16Array(S),s.HEAPU32=L=new Uint32Array(S),s.HEAPF32=T=new Float32Array(S),s.HEAPF64=E=new Float64Array(S)}var d,g,b,x,_,L,T,E,R,C=[],D=[],M=[],H=0,Q=null;function ee(S){throw l(S="Aborted("+S+")"),p=!0,f(S=new WebAssembly.RuntimeError(S+". Build with -sASSERTIONS for more info.")),S}function I(){return r.startsWith("data:application/octet-stream;base64,")}function U(){try{throw"both async and sync fetching of the wasm failed"}catch(S){ee(S)}}function O(S){for(;0<S.length;)S.shift()(s)}function q(S){if(S===void 0)return"_unknown";var w=(S=S.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=w&&57>=w?"_"+S:S}function K(S,w){return S=q(S),function(){return w.apply(this,arguments)}}r="yoga.wasm",I()||(r=a+r);var ne=[{},{value:void 0},{value:null},{value:!0},{value:!1}],ie=[];function V(S){var w=Error,P=K(S,function(N){this.name=S,this.message=N,(N=Error(N).stack)!==void 0&&(this.stack=this.toString()+`
|
|
55
|
+
`+N.replace(/^Error(:[^\n]*)?\n/,""))});return P.prototype=Object.create(w.prototype),P.prototype.constructor=P,P.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},P}var Y=void 0;function A(S){throw new Y(S)}var G=S=>(S||A("Cannot use deleted val. handle = "+S),ne[S].value),ae=S=>{switch(S){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var w=ie.length?ie.pop():ne.length;return ne[w]={fa:1,value:S},w}},$=void 0,pe=void 0;function fe(S){for(var w="";g[S];)w+=pe[g[S++]];return w}var ve=[];function ce(){for(;ve.length;){var S=ve.pop();S.L.Z=!1,S.delete()}}var xe=void 0,Ie={};function he(S,w){for(w===void 0&&A("ptr should not be undefined");S.P;)w=S.aa(w),S=S.P;return w}var ye={};function We(S){var w=fe(S=ja(S));return Vt(S),w}function Qe(S,w){var P=ye[S];return P===void 0&&A(w+" has unknown type "+We(S)),P}function Ge(){}var Ne=!1;function Xe(S){--S.count.value,S.count.value===0&&(S.S?S.T.V(S.S):S.O.M.V(S.N))}var Ke={},et=void 0;function tt(S){throw new et(S)}function rt(S,w){return w.O&&w.N||tt("makeClassHandle requires ptr and ptrType"),!!w.T!=!!w.S&&tt("Both smartPtrType and smartPtr must be specified"),w.count={value:1},je(Object.create(S,{L:{value:w}}))}function je(S){return typeof FinalizationRegistry>"u"?(je=w=>w,S):(Ne=new FinalizationRegistry(w=>{Xe(w.L)}),je=w=>{var P=w.L;return P.S&&Ne.register(w,{L:P},w),w},Ge=w=>{Ne.unregister(w)},je(S))}var Et={};function gt(S){for(;S.length;){var w=S.pop();S.pop()(w)}}function st(S){return this.fromWireType(_[S>>2])}var lt={},zt={};function ot(S,w,P){function N(z){(z=P(z)).length!==S.length&&tt("Mismatched type converter count");for(var J=0;J<S.length;++J)qe(S[J],z[J])}S.forEach(function(z){zt[z]=w});var F=Array(w.length),B=[],Z=0;w.forEach((z,J)=>{ye.hasOwnProperty(z)?F[J]=ye[z]:(B.push(z),lt.hasOwnProperty(z)||(lt[z]=[]),lt[z].push(()=>{F[J]=ye[z],++Z===B.length&&N(F)}))}),B.length===0&&N(F)}function Ft(S){switch(S){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw TypeError("Unknown type size: "+S)}}function qe(S,w,P={}){if(!("argPackAdvance"in w))throw TypeError("registerType registeredInstance requires argPackAdvance");var N=w.name;if(S||A('type "'+N+'" must have a positive integer typeid pointer'),ye.hasOwnProperty(S)){if(P.ta)return;A("Cannot register type '"+N+"' twice")}ye[S]=w,delete zt[S],lt.hasOwnProperty(S)&&(w=lt[S],delete lt[S],w.forEach(F=>F()))}function Tr(S){A(S.L.O.M.name+" instance already deleted")}function de(){}function we(S,w,P){if(S[w].R===void 0){var N=S[w];S[w]=function(){return S[w].R.hasOwnProperty(arguments.length)||A("Function '"+P+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+S[w].R+")!"),S[w].R[arguments.length].apply(this,arguments)},S[w].R=[],S[w].R[N.Y]=N}}function De(S,w,P,N,F,B,Z,z){this.name=S,this.constructor=w,this.W=P,this.V=N,this.P=F,this.oa=B,this.aa=Z,this.ma=z,this.ia=[]}function Se(S,w,P){for(;w!==P;)w.aa||A("Expected null or instance of "+P.name+", got an instance of "+w.name),S=w.aa(S),w=w.P;return S}function Ue(S,w){return w===null?(this.da&&A("null is not a valid "+this.name),0):(w.L||A('Cannot pass "'+Re(w)+'" as a '+this.name),w.L.N||A("Cannot pass deleted object as a pointer of type "+this.name),Se(w.L.N,w.L.O.M,this.M))}function Ee(S,w){if(w===null){if(this.da&&A("null is not a valid "+this.name),this.ca){var P=this.ea();return S!==null&&S.push(this.V,P),P}return 0}if(w.L||A('Cannot pass "'+Re(w)+'" as a '+this.name),w.L.N||A("Cannot pass deleted object as a pointer of type "+this.name),!this.ba&&w.L.O.ba&&A("Cannot convert argument of type "+(w.L.T?w.L.T.name:w.L.O.name)+" to parameter type "+this.name),P=Se(w.L.N,w.L.O.M,this.M),this.ca)switch(w.L.S===void 0&&A("Passing raw pointer to smart pointer is illegal"),this.Aa){case 0:w.L.T===this?P=w.L.S:A("Cannot convert argument of type "+(w.L.T?w.L.T.name:w.L.O.name)+" to parameter type "+this.name);break;case 1:P=w.L.S;break;case 2:if(w.L.T===this)P=w.L.S;else{var N=w.clone();P=this.wa(P,ae(function(){N.delete()})),S!==null&&S.push(this.V,P)}break;default:A("Unsupporting sharing policy")}return P}function Be(S,w){return w===null?(this.da&&A("null is not a valid "+this.name),0):(w.L||A('Cannot pass "'+Re(w)+'" as a '+this.name),w.L.N||A("Cannot pass deleted object as a pointer of type "+this.name),w.L.O.ba&&A("Cannot convert argument of type "+w.L.O.name+" to parameter type "+this.name),Se(w.L.N,w.L.O.M,this.M))}function _e(S,w,P,N){this.name=S,this.M=w,this.da=P,this.ba=N,this.ca=!1,this.V=this.wa=this.ea=this.ja=this.Aa=this.va=void 0,w.P!==void 0?this.toWireType=Ee:(this.toWireType=N?Ue:Be,this.U=null)}var ke=[];function ut(S){var w=ke[S];return w||(S>=ke.length&&(ke.length=S+1),ke[S]=w=R.get(S)),w}function ge(S,w){var P,N,F=(S=fe(S)).includes("j")?(P=S,N=[],function(){if(N.length=0,Object.assign(N,arguments),P.includes("j")){var B=s["dynCall_"+P];B=N&&N.length?B.apply(null,[w].concat(N)):B.call(null,w)}else B=ut(w).apply(null,N);return B}):ut(w);return typeof F!="function"&&A("unknown function pointer with signature "+S+": "+w),F}var Dt=void 0;function Ze(S,w){var P=[],N={};throw w.forEach(function F(B){N[B]||ye[B]||(zt[B]?zt[B].forEach(F):(P.push(B),N[B]=!0))}),new Dt(S+": "+P.map(We).join([", "]))}function mt(S,w,P,N,F){var B=w.length;2>B&&A("argTypes array size mismatch! Must at least get return value and 'this' types!");var Z=w[1]!==null&&P!==null,z=!1;for(P=1;P<w.length;++P)if(w[P]!==null&&w[P].U===void 0){z=!0;break}var J=w[0].name!=="void",X=B-2,te=Array(X),me=[],be=[];return function(){if(arguments.length!==X&&A("function "+S+" called with "+arguments.length+" arguments, expected "+X+" args!"),be.length=0,me.length=Z?2:1,me[0]=F,Z){var Pe=w[1].toWireType(be,this);me[1]=Pe}for(var Le=0;Le<X;++Le)te[Le]=w[Le+2].toWireType(be,arguments[Le]),me.push(te[Le]);if(Le=N.apply(null,me),z)gt(be);else for(var Ve=Z?1:2;Ve<w.length;Ve++){var _r=Ve===1?Pe:te[Ve-2];w[Ve].U!==null&&w[Ve].U(_r)}return J?w[0].fromWireType(Le):void 0}}function Qt(S,w){for(var P=[],N=0;N<S;N++)P.push(L[w+4*N>>2]);return P}function yt(S){4<S&&--ne[S].fa==0&&(ne[S]=void 0,ie.push(S))}function Re(S){if(S===null)return"null";var w=typeof S;return w==="object"||w==="array"||w==="function"?S.toString():""+S}function ze(S,w){for(var P="",N=0;!(N>=w/2);++N){var F=b[S+2*N>>1];if(F==0)break;P+=String.fromCharCode(F)}return P}function ft(S,w,P){if(P===void 0&&(P=2147483647),2>P)return 0;P-=2;var N=w;P=P<2*S.length?P/2:S.length;for(var F=0;F<P;++F)b[w>>1]=S.charCodeAt(F),w+=2;return b[w>>1]=0,w-N}function ur(S){return 2*S.length}function kt(S,w){for(var P=0,N="";!(P>=w/4);){var F=_[S+4*P>>2];if(F==0)break;++P,65536<=F?(F-=65536,N+=String.fromCharCode(55296|F>>10,56320|1023&F)):N+=String.fromCharCode(F)}return N}function ct(S,w,P){if(P===void 0&&(P=2147483647),4>P)return 0;var N=w;P=N+P-4;for(var F=0;F<S.length;++F){var B=S.charCodeAt(F);if(55296<=B&&57343>=B&&(B=65536+((1023&B)<<10)|1023&S.charCodeAt(++F)),_[w>>2]=B,(w+=4)+4>P)break}return _[w>>2]=0,w-N}function pt(S){for(var w=0,P=0;P<S.length;++P){var N=S.charCodeAt(P);55296<=N&&57343>=N&&++P,w+=4}return w}var Ut={};function Nt(S){var w=Ut[S];return w===void 0?fe(S):w}var fr=[],Dr=[],hn=[null,[],[]];Y=s.BindingError=V("BindingError"),s.count_emval_handles=function(){for(var S=0,w=5;w<ne.length;++w)ne[w]!==void 0&&++S;return S},s.get_first_emval=function(){for(var S=5;S<ne.length;++S)if(ne[S]!==void 0)return ne[S];return null},$=s.PureVirtualError=V("PureVirtualError");for(var $a=Array(256),dn=0;256>dn;++dn)$a[dn]=String.fromCharCode(dn);pe=$a,s.getInheritedInstanceCount=function(){return Object.keys(Ie).length},s.getLiveInheritedInstances=function(){var S,w=[];for(S in Ie)Ie.hasOwnProperty(S)&&w.push(Ie[S]);return w},s.flushPendingDeletes=ce,s.setDelayFunction=function(S){xe=S,ve.length&&xe&&xe(ce)},et=s.InternalError=V("InternalError"),de.prototype.isAliasOf=function(S){if(!(this instanceof de&&S instanceof de))return!1;var w=this.L.O.M,P=this.L.N,N=S.L.O.M;for(S=S.L.N;w.P;)P=w.aa(P),w=w.P;for(;N.P;)S=N.aa(S),N=N.P;return w===N&&P===S},de.prototype.clone=function(){if(this.L.N||Tr(this),this.L.$)return this.L.count.value+=1,this;var S=je,w=Object,P=w.create,N=Object.getPrototypeOf(this),F=this.L;return S=S(P.call(w,N,{L:{value:{count:F.count,Z:F.Z,$:F.$,N:F.N,O:F.O,S:F.S,T:F.T}}})),S.L.count.value+=1,S.L.Z=!1,S},de.prototype.delete=function(){this.L.N||Tr(this),this.L.Z&&!this.L.$&&A("Object already scheduled for deletion"),Ge(this),Xe(this.L),this.L.$||(this.L.S=void 0,this.L.N=void 0)},de.prototype.isDeleted=function(){return!this.L.N},de.prototype.deleteLater=function(){return this.L.N||Tr(this),this.L.Z&&!this.L.$&&A("Object already scheduled for deletion"),ve.push(this),ve.length===1&&xe&&xe(ce),this.L.Z=!0,this},_e.prototype.pa=function(S){return this.ja&&(S=this.ja(S)),S},_e.prototype.ga=function(S){this.V&&this.V(S)},_e.prototype.argPackAdvance=8,_e.prototype.readValueFromPointer=st,_e.prototype.deleteObject=function(S){S!==null&&S.delete()},_e.prototype.fromWireType=function(S){function w(){return this.ca?rt(this.M.W,{O:this.va,N,T:this,S}):rt(this.M.W,{O:this,N:S})}var P,N=this.pa(S);if(!N)return this.ga(S),null;var F=Ie[he(this.M,N)];if(F!==void 0)return F.L.count.value===0?(F.L.N=N,F.L.S=S,F.clone()):(F=F.clone(),this.ga(S),F);if(!(F=Ke[F=this.M.oa(N)]))return w.call(this);F=this.ba?F.ka:F.pointerType;var B=function Z(z,J,X){return J===X?z:X.P===void 0||(z=Z(z,J,X.P))===null?null:X.ma(z)}(N,this.M,F.M);return B===null?w.call(this):this.ca?rt(F.M.W,{O:F,N:B,T:this,S}):rt(F.M.W,{O:F,N:B})},Dt=s.UnboundTypeError=V("UnboundTypeError");var Wu={q:function(S,w,P){S=fe(S),w=Qe(w,"wrapper"),P=G(P);var N=[].slice,F=w.M,B=F.W,Z=F.P.W,z=F.P.constructor;for(var J in S=K(S,function(){F.P.ia.forEach(function(X){if(this[X]===Z[X])throw new $("Pure virtual function "+X+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:B}),this.__construct.apply(this,N.call(arguments))}),B.__construct=function(){this===B&&A("Pass correct 'this' to __construct");var X=z.implement.apply(void 0,[this].concat(N.call(arguments)));Ge(X);var te=X.L;X.notifyOnDestruction(),te.$=!0,Object.defineProperties(this,{L:{value:te}}),je(this),X=he(F,X=te.N),Ie.hasOwnProperty(X)?A("Tried to register registered instance: "+X):Ie[X]=this},B.__destruct=function(){this===B&&A("Pass correct 'this' to __destruct"),Ge(this);var X=this.L.N;X=he(F,X),Ie.hasOwnProperty(X)?delete Ie[X]:A("Tried to unregister unregistered instance: "+X)},S.prototype=Object.create(B),P)S.prototype[J]=P[J];return ae(S)},l:function(S){var w=Et[S];delete Et[S];var P=w.ea,N=w.V,F=w.ha;ot([S],F.map(B=>B.sa).concat(F.map(B=>B.ya)),B=>{var Z={};return F.forEach((z,J)=>{var X=B[J],te=z.qa,me=z.ra,be=B[J+F.length],Pe=z.xa,Le=z.za;Z[z.na]={read:Ve=>X.fromWireType(te(me,Ve)),write:(Ve,_r)=>{var cr=[];Pe(Le,Ve,be.toWireType(cr,_r)),gt(cr)}}}),[{name:w.name,fromWireType:function(z){var J,X={};for(J in Z)X[J]=Z[J].read(z);return N(z),X},toWireType:function(z,J){for(var X in Z)if(!(X in J))throw TypeError('Missing field: "'+X+'"');var te=P();for(X in Z)Z[X].write(te,J[X]);return z!==null&&z.push(N,te),te},argPackAdvance:8,readValueFromPointer:st,U:N}]})},v:function(){},B:function(S,w,P,N,F){var B=Ft(P);qe(S,{name:w=fe(w),fromWireType:function(Z){return!!Z},toWireType:function(Z,z){return z?N:F},argPackAdvance:8,readValueFromPointer:function(Z){if(P===1)var z=d;else if(P===2)z=b;else if(P===4)z=_;else throw TypeError("Unknown boolean type size: "+w);return this.fromWireType(z[Z>>B])},U:null})},h:function(S,w,P,N,F,B,Z,z,J,X,te,me,be){te=fe(te),B=ge(F,B),z&&(z=ge(Z,z)),X&&(X=ge(J,X)),be=ge(me,be);var Pe,Le=q(te);Pe=function(){Ze("Cannot construct "+te+" due to unbound types",[N])},s.hasOwnProperty(Le)?(A("Cannot register public name '"+Le+"' twice"),we(s,Le,Le),s.hasOwnProperty(void 0)&&A("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),s[Le].R[void 0]=Pe):s[Le]=Pe,ot([S,w,P],N?[N]:[],function(Ve){if(Ve=Ve[0],N)var _r,cr=Ve.M,Ur=cr.W;else Ur=de.prototype;Ve=K(Le,function(){if(Object.getPrototypeOf(this)!==li)throw new Y("Use 'new' to construct "+te);if(Lr.X===void 0)throw new Y(te+" has no accessible constructor");var Ha=Lr.X[arguments.length];if(Ha===void 0)throw new Y("Tried to invoke ctor of "+te+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(Lr.X).toString()+") parameters instead!");return Ha.apply(this,arguments)});var li=Object.create(Ur,{constructor:{value:Ve}});Ve.prototype=li;var Lr=new De(te,Ve,li,be,cr,B,z,X);cr=new _e(te,Lr,!0,!1),Ur=new _e(te+"*",Lr,!1,!1);var Va=new _e(te+" const*",Lr,!1,!0);return Ke[S]={pointerType:Ur,ka:Va},_r=Ve,s.hasOwnProperty(Le)||tt("Replacing nonexistant public symbol"),s[Le]=_r,s[Le].Y=void 0,[cr,Ur,Va]})},d:function(S,w,P,N,F,B,Z){var z=Qt(P,N);w=fe(w),B=ge(F,B),ot([],[S],function(J){function X(){Ze("Cannot call "+te+" due to unbound types",z)}var te=(J=J[0]).name+"."+w;w.startsWith("@@")&&(w=Symbol[w.substring(2)]);var me=J.M.constructor;return me[w]===void 0?(X.Y=P-1,me[w]=X):(we(me,w,te),me[w].R[P-1]=X),ot([],z,function(be){return be=mt(te,[be[0],null].concat(be.slice(1)),null,B,Z),me[w].R===void 0?(be.Y=P-1,me[w]=be):me[w].R[P-1]=be,[]}),[]})},p:function(S,w,P,N,F,B){0<w||ee();var Z=Qt(w,P);F=ge(N,F),ot([],[S],function(z){var J="constructor "+(z=z[0]).name;if(z.M.X===void 0&&(z.M.X=[]),z.M.X[w-1]!==void 0)throw new Y("Cannot register multiple constructors with identical number of parameters ("+(w-1)+") for class '"+z.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return z.M.X[w-1]=()=>{Ze("Cannot construct "+z.name+" due to unbound types",Z)},ot([],Z,function(X){return X.splice(1,0,null),z.M.X[w-1]=mt(J,X,null,F,B),[]}),[]})},a:function(S,w,P,N,F,B,Z,z){var J=Qt(P,N);w=fe(w),B=ge(F,B),ot([],[S],function(X){function te(){Ze("Cannot call "+me+" due to unbound types",J)}var me=(X=X[0]).name+"."+w;w.startsWith("@@")&&(w=Symbol[w.substring(2)]),z&&X.M.ia.push(w);var be=X.M.W,Pe=be[w];return Pe===void 0||Pe.R===void 0&&Pe.className!==X.name&&Pe.Y===P-2?(te.Y=P-2,te.className=X.name,be[w]=te):(we(be,w,me),be[w].R[P-2]=te),ot([],J,function(Le){return Le=mt(me,Le,X,B,Z),be[w].R===void 0?(Le.Y=P-2,be[w]=Le):be[w].R[P-2]=Le,[]}),[]})},A:function(S,w){qe(S,{name:w=fe(w),fromWireType:function(P){var N=G(P);return yt(P),N},toWireType:function(P,N){return ae(N)},argPackAdvance:8,readValueFromPointer:st,U:null})},n:function(S,w,P){P=Ft(P),qe(S,{name:w=fe(w),fromWireType:function(N){return N},toWireType:function(N,F){return F},argPackAdvance:8,readValueFromPointer:function(N,F){switch(F){case 2:return function(B){return this.fromWireType(T[B>>2])};case 3:return function(B){return this.fromWireType(E[B>>3])};default:throw TypeError("Unknown float type: "+N)}}(w,P),U:null})},e:function(S,w,P,N,F){w=fe(w),F===-1&&(F=4294967295),F=Ft(P);var B=z=>z;if(N===0){var Z=32-8*P;B=z=>z<<Z>>>Z}P=w.includes("unsigned")?function(z,J){return J>>>0}:function(z,J){return J},qe(S,{name:w,fromWireType:B,toWireType:P,argPackAdvance:8,readValueFromPointer:function(z,J,X){switch(J){case 0:return X?function(te){return d[te]}:function(te){return g[te]};case 1:return X?function(te){return b[te>>1]}:function(te){return x[te>>1]};case 2:return X?function(te){return _[te>>2]}:function(te){return L[te>>2]};default:throw TypeError("Unknown integer type: "+z)}}(w,F,N!==0),U:null})},b:function(S,w,P){function N(B){B>>=2;var Z=L;return new F(Z.buffer,Z[B+1],Z[B])}var F=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][w];qe(S,{name:P=fe(P),fromWireType:N,argPackAdvance:8,readValueFromPointer:N},{ta:!0})},o:function(S,w){var P=(w=fe(w))==="std::string";qe(S,{name:w,fromWireType:function(N){var F=L[N>>2],B=N+4;if(P)for(var Z=B,z=0;z<=F;++z){var J=B+z;if(z==F||g[J]==0){if(Z=Z?h(g,Z,J-Z):"",X===void 0)var X=Z;else X+="\0"+Z;Z=J+1}}else{for(z=0,X=Array(F);z<F;++z)X[z]=String.fromCharCode(g[B+z]);X=X.join("")}return Vt(N),X},toWireType:function(N,F){F instanceof ArrayBuffer&&(F=new Uint8Array(F));var B,Z=typeof F=="string";if(Z||F instanceof Uint8Array||F instanceof Uint8ClampedArray||F instanceof Int8Array||A("Cannot pass non-string to std::string"),P&&Z){var z=0;for(B=0;B<F.length;++B){var J=F.charCodeAt(B);127>=J?z++:2047>=J?z+=2:55296<=J&&57343>=J?(z+=4,++B):z+=3}B=z}else B=F.length;if(J=(z=si(4+B+1))+4,L[z>>2]=B,P&&Z){if(Z=J,J=B+1,B=g,0<J){J=Z+J-1;for(var X=0;X<F.length;++X){var te=F.charCodeAt(X);if(55296<=te&&57343>=te&&(te=65536+((1023&te)<<10)|1023&F.charCodeAt(++X)),127>=te){if(Z>=J)break;B[Z++]=te}else{if(2047>=te){if(Z+1>=J)break;B[Z++]=192|te>>6}else{if(65535>=te){if(Z+2>=J)break;B[Z++]=224|te>>12}else{if(Z+3>=J)break;B[Z++]=240|te>>18,B[Z++]=128|te>>12&63}B[Z++]=128|te>>6&63}B[Z++]=128|63&te}}B[Z]=0}}else if(Z)for(Z=0;Z<B;++Z)255<(X=F.charCodeAt(Z))&&(Vt(J),A("String has UTF-16 code units that do not fit in 8 bits")),g[J+Z]=X;else for(Z=0;Z<B;++Z)g[J+Z]=F[Z];return N!==null&&N.push(Vt,z),z},argPackAdvance:8,readValueFromPointer:st,U:function(N){Vt(N)}})},k:function(S,w,P){if(P=fe(P),w===2)var N=ze,F=ft,B=ur,Z=()=>x,z=1;else w===4&&(N=kt,F=ct,B=pt,Z=()=>L,z=2);qe(S,{name:P,fromWireType:function(J){for(var X,te=L[J>>2],me=Z(),be=J+4,Pe=0;Pe<=te;++Pe){var Le=J+4+Pe*w;(Pe==te||me[Le>>z]==0)&&(be=N(be,Le-be),X===void 0?X=be:X+="\0"+be,be=Le+w)}return Vt(J),X},toWireType:function(J,X){typeof X!="string"&&A("Cannot pass non-string to C++ string type "+P);var te=B(X),me=si(4+te+w);return L[me>>2]=te>>z,F(X,me+4,te+w),J!==null&&J.push(Vt,me),me},argPackAdvance:8,readValueFromPointer:st,U:function(J){Vt(J)}})},m:function(S,w,P,N,F,B){Et[S]={name:fe(w),ea:ge(P,N),V:ge(F,B),ha:[]}},c:function(S,w,P,N,F,B,Z,z,J,X){Et[S].ha.push({na:fe(w),sa:P,qa:ge(N,F),ra:B,ya:Z,xa:ge(z,J),za:X})},C:function(S,w){qe(S,{ua:!0,name:w=fe(w),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},t:function(S,w,P,N,F){S=fr[S],w=G(w),P=Nt(P);var B=[];return L[N>>2]=ae(B),S(w,P,B,F)},j:function(S,w,P,N){S=fr[S],S(w=G(w),P=Nt(P),null,N)},f:yt,g:function(S,w){var P,N,F=function(J,X){for(var te=Array(J),me=0;me<J;++me)te[me]=Qe(L[X+4*me>>2],"parameter "+me);return te}(S,w),B=F[0],Z=Dr[w=B.name+"_$"+F.slice(1).map(function(J){return J.name}).join("_")+"$"];if(Z!==void 0)return Z;var z=Array(S-1);return P=(J,X,te,me)=>{for(var be=0,Pe=0;Pe<S-1;++Pe)z[Pe]=F[Pe+1].readValueFromPointer(me+be),be+=F[Pe+1].argPackAdvance;for(Pe=0,J=J[X].apply(J,z);Pe<S-1;++Pe)F[Pe+1].la&&F[Pe+1].la(z[Pe]);if(!B.ua)return B.toWireType(te,J)},N=fr.length,fr.push(P),Z=N,Dr[w]=Z},r:function(S){4<S&&(ne[S].fa+=1)},s:function(S){gt(G(S)),yt(S)},i:function(){ee("")},x:function(S,w,P){g.copyWithin(S,w,w+P)},w:function(S){var w=g.length;if(2147483648<(S>>>=0))return!1;for(var P=1;4>=P;P*=2){var N=w*(1+.2/P);N=Math.min(N,S+100663296);var F=Math,B=F.min;N=Math.max(S,N),N+=(65536-N%65536)%65536;e:{var Z=c.buffer;try{c.grow(B.call(F,2147483648,N)-Z.byteLength+65535>>>16),m();var z=1;break e}catch{}z=void 0}if(z)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(S,w,P,N){for(var F=0,B=0;B<P;B++){var Z=L[w>>2],z=L[w+4>>2];w+=8;for(var J=0;J<z;J++){var X=g[Z+J],te=hn[S];X===0||X===10?((S===1?o:l)(h(te,0)),te.length=0):te.push(X)}F+=z}return L[N>>2]=F,0}};(function(){function S(F){s.asm=F.exports,c=s.asm.D,m(),R=s.asm.I,D.unshift(s.asm.E),--H==0&&Q&&(F=Q,Q=null,F())}function w(F){S(F.instance)}function P(F){return(typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(function(B){if(!B.ok)throw"failed to load wasm binary file at '"+r+"'";return B.arrayBuffer()}).catch(function(){return U()}):Promise.resolve().then(function(){return U()})).then(function(B){return WebAssembly.instantiate(B,N)}).then(function(B){return B}).then(F,function(B){l("failed to asynchronously prepare wasm: "+B),ee(B)})}var N={a:Wu};if(H++,s.instantiateWasm)try{return s.instantiateWasm(N,S)}catch(F){l("Module.instantiateWasm callback failed with error: "+F),f(F)}(typeof WebAssembly.instantiateStreaming!="function"||I()||typeof fetch!="function"?P(w):fetch(r,{credentials:"same-origin"}).then(function(F){return WebAssembly.instantiateStreaming(F,N).then(w,function(B){return l("wasm streaming compile failed: "+B),l("falling back to ArrayBuffer instantiation"),P(w)})})).catch(f)})();var ja=s.___getTypeName=function(){return(ja=s.___getTypeName=s.asm.F).apply(null,arguments)};function si(){return(si=s.asm.H).apply(null,arguments)}function Vt(){return(Vt=s.asm.J).apply(null,arguments)}function za(){0<H||(O(C),0<H||n||(n=!0,s.calledRun=!0,p||(O(D),u(s),O(M))))}return s.__embind_initialize_bindings=function(){return(s.__embind_initialize_bindings=s.asm.G).apply(null,arguments)},s.dynCall_jiji=function(){return(s.dynCall_jiji=s.asm.K).apply(null,arguments)},Q=function S(){n||za(),n||(Q=S)},za(),t.ready}})();async function Fu(e){let t=await tb({instantiateWasm(r,n){WebAssembly.instantiate(e,r).then(i=>{i instanceof WebAssembly.Instance?n(i):n(i.instance)})}});return Ru(t)}import rb from"./yoga-ZMNYPE6Z.wasm";var jt={yoga:null,initialized:!1,initializing:null};async function xr(){if(!jt.initialized)return jt.initializing||(jt.initializing=(async()=>{try{let e=await Fu(rb);iu(e),jt.yoga=e,jt.initialized=!0}catch(e){if(e instanceof Error&&e.message.includes("Already initialized")){jt.initialized=!0;return}throw e}finally{jt.initializing=null}})()),jt.initializing}function nb(){return jt.initialized}var Du=lb,ib=/[\s\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,\-.\/:;<=>?@\[\]^_`{|}~]+/,ab=/^[a-z\u00E0-\u00FCA-Z\u00C0-\u00DC][\d|a-z\u00E0-\u00FCA-Z\u00C0-\u00DC]*$/,ob=/([A-Z\u00C0-\u00DC]{4,})/g,sb=/^[A-Z\u00C0-\u00DC]+$/;function lb(e){for(var t=e.split(ib),r=t.length,n=new Array(r),i=0;i<r;i++){var a=t[i];if(a!==""){var o=ab.test(a)&&!sb.test(a);o&&(a=a.replace(ob,function(s,u,f){return ub(s,a.length-f-s.length==0)}));var l=a[0];l=i>0?l.toUpperCase():l.toLowerCase(),n[i]=l+(o?a.slice(1):a.slice(1).toLowerCase())}}return n.join("")}function ub(e,t){var r=e.split(""),n=r.shift().toUpperCase(),i=t?r.pop().toLowerCase():r.pop();return n+r.join("").toLowerCase()+i}var cn=e=>e.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\f/g,"\\f").replace(/"/g,'\\"'),Uu=e=>{let t="",r=e.getAttribute("style");if(r){let a=r.replace(/\n/g,"").replace(/\s\s+/g," ").split(/;(?![^(]*\))/).reduce((o,l)=>{let[s,u]=l.split(/:(.+)/);return s&&u&&(o+=`"${Du(s.trim())}": "${cn(u.trim())}",`),o},"");a.endsWith(",")&&(a=a.slice(0,-1)),a&&(t+=`"style":{${a}},`)}let n=e.getAttribute("src");if(n){let i=e.getAttribute("width"),a=e.getAttribute("height");i&&a?t+=`"src":"${cn(n)}", "width":"${i}", "height":"${a}",`:(console.warn("Image missing width or height attribute as required by Satori"),t+=`"src":"${cn(n)}",`)}return t},oi=e=>e.endsWith(",")?e.slice(0,-1):e;async function wr(e){let t="";await new HTMLRewriter().on("*",{element(n){let i=Uu(n);t+=`{"type":"${n.tagName}", "props":{${i}"children": [`;try{n.onEndTag(()=>{t=oi(t),t+="]}},"})}catch{t=oi(t),t+="]}},"}},text(n){if(n.text){let i=cn(n.text);i&&(t+=`"${i}",`)}}}).transform(new Response(`<div style="display: flex; flex-direction: column;">${e}</div>`)).text(),t=oi(t);try{return JSON.parse(t)}catch(n){return console.error(n),null}}var Sr=class extends Error{constructor(t){super(t),this.name="SatoriCFError"}},Ga=class extends Sr{constructor(t){super(t),this.name="WASMInitError"}},pn=class extends Sr{constructor(t){super(t),this.name="FontLoadError"}},Ba=class extends Sr{constructor(t){super(t),this.name="HTMLParseError"}},St=class extends Sr{constructor(t){super(t),this.name="SVGGenerationError"}};async function Er({family:e,weight:t,text:r}){let n={family:`${encodeURIComponent(e)}${t?`:wght@${t}`:""}`};r?n.text=r:n.subset="latin";let i=`https://fonts.googleapis.com/css2?${Object.keys(n).map(f=>`${f}=${n[f]}`).join("&")}`,a=caches.default,o=i,l=await a.match(o);l||(l=await fetch(`${i}`,{headers:{"User-Agent":"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_8; de-at) AppleWebKit/533.21.1 (KHTML, like Gecko) Version/5.0.5 Safari/533.21.1"}}),l=new Response(l.body,l),l.headers.append("Cache-Control","s-maxage=3600"),await a.put(o,l.clone()));let u=(await l.text()).match(/src: url\((.+)\) format\('(opentype|truetype)'\)/)?.[1];if(!u)throw new pn(`Could not find font URL for ${e}`);return fetch(u).then(f=>f.arrayBuffer())}var Nu=new Map,fb="\u200D",cb=/\uFE0F/g;function pb(e){return hb(e.indexOf(fb)<0?e.replace(cb,""):e)}function hb(e){let t=[],r=0,n=0,i=0;for(;i<e.length;)r=e.charCodeAt(i++),n?(t.push((65536+(n-55296<<10)+(r-56320)).toString(16)),n=0):55296<=r&&r<=56319?n=r:t.push(r.toString(16));return t.join("-")}var Mu={twemoji:e=>"https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/"+e.toLowerCase()+".svg",openmoji:"https://cdn.jsdelivr.net/npm/@svgmoji/openmoji@2.0.0/svg/",blobmoji:"https://cdn.jsdelivr.net/npm/@svgmoji/blob@2.0.0/svg/",noto:"https://cdn.jsdelivr.net/gh/svgmoji/svgmoji/packages/svgmoji__noto/svg/",fluent:e=>"https://cdn.jsdelivr.net/gh/shuding/fluentui-emoji-unicode/assets/"+e.toLowerCase()+"_color.svg",fluentFlat:e=>"https://cdn.jsdelivr.net/gh/shuding/fluentui-emoji-unicode/assets/"+e.toLowerCase()+"_flat.svg"};function db(e,t){(!t||!Mu[t])&&(t="twemoji");let r=Mu[t];return fetch(typeof r=="function"?r(e):`${r}${e.toUpperCase()}.svg`)}var kr=({emoji:e})=>{let t=async(r,n)=>{if(r==="emoji")return"data:image/svg+xml;base64,"+btoa(await(await db(pb(n),e)).text())};return async(r,n)=>{let i=JSON.stringify([r,n]),a=Nu.get(i);if(a)return a;let o=await t(r,n);return o?(Nu.set(i,o),o):[]}};async function vb(e,t={}){try{await xr();let r=typeof e=="string"?await wr(e):e;if(r===null)return{ok:!1,error:new St("Failed to parse HTML element")};let n=t.width??1200,i=t.height??630,a=t.fonts?.length?t.fonts:[{name:"Bitter",data:await Er({family:"Bitter",weight:600}),weight:500,style:"normal"}];return{ok:!0,value:await Fr(r,{width:n,height:i,fonts:a,loadAdditionalAsset:t.emoji?kr({emoji:t.emoji}):void 0})}}catch(r){return{ok:!1,error:r instanceof Error?r:new St(String(r))}}}async function gb(e,t={}){let{concurrency:r=5,failFast:n=!1,...i}=t;await xr();let a=i.fonts?.length?i.fonts:[{name:"Bitter",data:await Er({family:"Bitter",weight:600}),weight:500,style:"normal"}],o=i.width??1200,l=i.height??630,s=[],u=!1;for(let f=0;f<e.length&&!u;f+=r){let p=e.slice(f,f+r).map(async(m,d)=>{let g=f+d;try{let b=typeof m.element=="string"?await wr(m.element):m.element;if(b===null)return{index:g,result:{ok:!1,error:new St("Failed to parse HTML element")}};let x=m.options?.width??o,_=m.options?.height??l,L=m.options?.fonts?.length?m.options.fonts:a,T=m.options?.emoji??i.emoji,E=await Fr(b,{width:x,height:_,fonts:L,loadAdditionalAsset:T?kr({emoji:T}):void 0});return{index:g,result:{ok:!0,value:E}}}catch(b){let x=b instanceof Error?b:new St(String(b));return{index:g,result:{ok:!1,error:x}}}}),h=await Promise.all(p);s.push(...h),n&&h.some(d=>!d.result.ok)&&(u=!0)}return s.sort((f,c)=>f.index-c.index),s}async function*mb(e,t={}){let{prefetch:r=3,...n}=t;await xr();let i=n.fonts?.length?n.fonts:[{name:"Bitter",data:await Er({family:"Bitter",weight:600}),weight:500,style:"normal"}],a=n.width??1200,o=n.height??630;async function l(c,p){try{let h=typeof c.element=="string"?await wr(c.element):c.element;if(h===null)return{index:p,result:{ok:!1,error:new St("Failed to parse HTML element")}};let m=c.options?.width??a,d=c.options?.height??o,g=c.options?.fonts?.length?c.options.fonts:i,b=c.options?.emoji??n.emoji,x=await Fr(h,{width:m,height:d,fonts:g,loadAdditionalAsset:b?kr({emoji:b}):void 0});return{index:p,result:{ok:!0,value:x}}}catch(h){let m=h instanceof Error?h:new St(String(h));return{index:p,result:{ok:!1,error:m}}}}let s=[],u=0,f=Symbol.asyncIterator in e?e[Symbol.asyncIterator]():e[Symbol.iterator]();for(let c=0;c<r;c++){let p=await f.next();if(p.done)break;s.push(l(p.value,u++))}for(;s.length>0;){yield await s.shift();let p=await f.next();p.done||s.push(l(p.value,u++))}}function yb(e,t={}){let{headers:r={},status:n=200,statusText:i,debug:a=!1}=t;return new Response(e,{headers:{"Content-Type":"image/svg+xml","Cache-Control":a?"no-cache, no-store":"public, immutable, no-transform, max-age=31536000",...r},status:n,statusText:i})}export{pn as FontLoadError,Ba as HTMLParseError,mb as OGStream,St as SVGGenerationError,Sr as SatoriCFError,Ga as WASMInitError,yb as createSVGResponse,xr as ensureYogaInitialized,vb as generateOG,gb as generateOGBatch,nb as isInitialized,kr as loadDynamicAsset,Er as loadGoogleFont,wr as parseHtml};
|
|
56
|
+
/*! Bundled license information:
|
|
57
|
+
|
|
58
|
+
css-background-parser/index.js:
|
|
59
|
+
(*!
|
|
60
|
+
* https://github.com/gilmoreorless/css-background-parser
|
|
61
|
+
* Copyright © 2015 Gilmore Davidson under the MIT license: http://gilmoreorless.mit-license.org/
|
|
62
|
+
*)
|
|
63
|
+
|
|
64
|
+
parse-css-color/dist/index.umd.js:
|
|
65
|
+
(**
|
|
66
|
+
* parse-css-color
|
|
67
|
+
* @version v0.2.1
|
|
68
|
+
* @link http://github.com/noeldelgado/parse-css-color/
|
|
69
|
+
* @license MIT
|
|
70
|
+
*)
|
|
71
|
+
|
|
72
|
+
escape-html/index.js:
|
|
73
|
+
(*!
|
|
74
|
+
* escape-html
|
|
75
|
+
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
76
|
+
* Copyright(c) 2015 Andreas Lubbe
|
|
77
|
+
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
78
|
+
* MIT Licensed
|
|
79
|
+
*)
|
|
80
|
+
*/
|