gemi 0.26.0 → 0.26.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/dist/facades/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{A as O0,p as u4,q as t4,r as q1,s as J6,t as a0,u as E0,v as W0,x as i4,y as a8,z as O8}from"../http/index.js";import{D as C0}from"../chunk-x6ntsv3z.js";import{E as dK}from"../chunk-g0qf8xfk.js";import{Fa as o8,Ha as p1,Ia as MV,Ja as p4}from"../chunk-33p2e7s6.js";import{La as l0}from"../chunk-9rxwxky2.js";import{Na as e0,Oa as y0,Pa as aH}from"../chunk-cbdnkfkw.js";var z9=y0((M$,w9)=>{var V6=0,Y9=-3;function L8(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function YY(J,K){this.source=J,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=K,this.destLen=0,this.ltree=new L8,this.dtree=new L8}var X9=new L8,Z9=new L8,$6=new Uint8Array(30),B6=new Uint16Array(30),Q9=new Uint8Array(30),W9=new Uint16Array(30),XY=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),e4=new L8,M1=new Uint8Array(320);function H9(J,K,Y,X){var Z,Q;for(Z=0;Z<Y;++Z)J[Z]=0;for(Z=0;Z<30-Y;++Z)J[Z+Y]=Z/Y|0;for(Q=X,Z=0;Z<30;++Z)K[Z]=Q,Q+=1<<J[Z]}function ZY(J,K){var Y;for(Y=0;Y<7;++Y)J.table[Y]=0;J.table[7]=24,J.table[8]=152,J.table[9]=112;for(Y=0;Y<24;++Y)J.trans[Y]=256+Y;for(Y=0;Y<144;++Y)J.trans[24+Y]=Y;for(Y=0;Y<8;++Y)J.trans[168+Y]=280+Y;for(Y=0;Y<112;++Y)J.trans[176+Y]=144+Y;for(Y=0;Y<5;++Y)K.table[Y]=0;K.table[5]=32;for(Y=0;Y<32;++Y)K.trans[Y]=Y}var J9=new Uint16Array(16);function z6(J,K,Y,X){var Z,Q;for(Z=0;Z<16;++Z)J.table[Z]=0;for(Z=0;Z<X;++Z)J.table[K[Y+Z]]++;J.table[0]=0;for(Q=0,Z=0;Z<16;++Z)J9[Z]=Q,Q+=J.table[Z];for(Z=0;Z<X;++Z)if(K[Y+Z])J.trans[J9[K[Y+Z]]++]=Z}function QY(J){if(!J.bitcount--)J.tag=J.source[J.sourceIndex++],J.bitcount=7;var K=J.tag&1;return J.tag>>>=1,K}function N1(J,K,Y){if(!K)return Y;while(J.bitcount<24)J.tag|=J.source[J.sourceIndex++]<<J.bitcount,J.bitcount+=8;var X=J.tag&65535>>>16-K;return J.tag>>>=K,J.bitcount-=K,X+Y}function U6(J,K){while(J.bitcount<24)J.tag|=J.source[J.sourceIndex++]<<J.bitcount,J.bitcount+=8;var Y=0,X=0,Z=0,Q=J.tag;do X=2*X+(Q&1),Q>>>=1,++Z,Y+=K.table[Z],X-=K.table[Z];while(X>=0);return J.tag=Q,J.bitcount-=Z,K.trans[Y+X]}function WY(J,K,Y){var X,Z,Q,W,w,H;X=N1(J,5,257),Z=N1(J,5,1),Q=N1(J,4,4);for(W=0;W<19;++W)M1[W]=0;for(W=0;W<Q;++W){var z=N1(J,3,0);M1[XY[W]]=z}z6(e4,M1,0,19);for(w=0;w<X+Z;){var U=U6(J,e4);switch(U){case 16:var V=M1[w-1];for(H=N1(J,2,3);H;--H)M1[w++]=V;break;case 17:for(H=N1(J,3,3);H;--H)M1[w++]=0;break;case 18:for(H=N1(J,7,11);H;--H)M1[w++]=0;break;default:M1[w++]=U;break}}z6(K,M1,0,X),z6(Y,M1,X,Z)}function K9(J,K,Y){while(!0){var X=U6(J,K);if(X===256)return V6;if(X<256)J.dest[J.destLen++]=X;else{var Z,Q,W,w;X-=257,Z=N1(J,$6[X],B6[X]),Q=U6(J,Y),W=J.destLen-N1(J,Q9[Q],W9[Q]);for(w=W;w<W+Z;++w)J.dest[J.destLen++]=J.dest[w]}}}function HY(J){var K,Y,X;while(J.bitcount>8)J.sourceIndex--,J.bitcount-=8;if(K=J.source[J.sourceIndex+1],K=256*K+J.source[J.sourceIndex],Y=J.source[J.sourceIndex+3],Y=256*Y+J.source[J.sourceIndex+2],K!==(~Y&65535))return Y9;J.sourceIndex+=4;for(X=K;X;--X)J.dest[J.destLen++]=J.source[J.sourceIndex++];return J.bitcount=0,V6}function wY(J,K){var Y=new YY(J,K),X,Z,Q;do{switch(X=QY(Y),Z=N1(Y,2,0),Z){case 0:Q=HY(Y);break;case 1:Q=K9(Y,X9,Z9);break;case 2:WY(Y,Y.ltree,Y.dtree),Q=K9(Y,Y.ltree,Y.dtree);break;default:Q=Y9}if(Q!==V6)throw Error("Data error")}while(!X);if(Y.destLen<Y.dest.length)if(typeof Y.dest.slice==="function")return Y.dest.slice(0,Y.destLen);else return Y.dest.subarray(0,Y.destLen);return Y.dest}ZY(X9,Z9);H9($6,B6,4,3);H9(Q9,W9,2,1);$6[28]=0;B6[28]=258;w9.exports=wY});var $9=y0((N$,V9)=>{var zY=new Uint8Array(new Uint32Array([305419896]).buffer)[0]===18,U9=(J,K,Y)=>{let X=J[K];J[K]=J[Y],J[Y]=X},UY=(J)=>{let K=J.length;for(let Y=0;Y<K;Y+=4)U9(J,Y,Y+3),U9(J,Y+1,Y+2)},VY=(J)=>{if(zY)UY(J)};V9.exports={swap32LE:VY}});var q9=y0((O$,G9)=>{var B9=z9(),{swap32LE:$Y}=$9();class A9{constructor(J){let K=typeof J.readUInt32BE==="function"&&typeof J.slice==="function";if(K||J instanceof Uint8Array){let Y;if(K)this.highStart=J.readUInt32LE(0),this.errorValue=J.readUInt32LE(4),Y=J.readUInt32LE(8),J=J.slice(12);else{let X=new DataView(J.buffer);this.highStart=X.getUint32(0,!0),this.errorValue=X.getUint32(4,!0),Y=X.getUint32(8,!0),J=J.subarray(12)}J=B9(J,new Uint8Array(Y)),J=B9(J,new Uint8Array(Y)),$Y(J),this.data=new Uint32Array(J.buffer)}else({data:this.data,highStart:this.highStart,errorValue:this.errorValue}=J)}get(J){let K;if(J<0||J>1114111)return this.errorValue;if(J<55296||J>56319&&J<=65535)return K=(this.data[J>>5]<<2)+(J&31),this.data[K];if(J<=65535)return K=(this.data[2048+(J-55296>>5)]<<2)+(J&31),this.data[K];if(J<this.highStart)return K=this.data[2080+(J>>11)],K=this.data[K+(J>>5&63)],K=(K<<2)+(J&31),this.data[K];return this.data[this.data.length-4]}}G9.exports=A9});var M9=y0((t8)=>{var BY="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(J){var K=typeof Uint8Array<"u"?Uint8Array:Array,Y=43,X=47,Z=48,Q=97,W=65,w=45,H=95;function z($){var B=$.charCodeAt(0);if(B===Y||B===w)return 62;if(B===X||B===H)return 63;if(B<Z)return-1;if(B<Z+10)return B-Z+26+26;if(B<W+26)return B-W;if(B<Q+26)return B-Q+26}function U($){var B,M,G,q,O,j;if($.length%4>0)throw Error("Invalid string. Length must be a multiple of 4");var _=$.length;O=$.charAt(_-2)==="="?2:$.charAt(_-1)==="="?1:0,j=new K($.length*3/4-O),G=O>0?$.length-4:$.length;var R=0;function E(L){j[R++]=L}for(B=0,M=0;B<G;B+=4,M+=3)q=z($.charAt(B))<<18|z($.charAt(B+1))<<12|z($.charAt(B+2))<<6|z($.charAt(B+3)),E((q&16711680)>>16),E((q&65280)>>8),E(q&255);if(O===2)q=z($.charAt(B))<<2|z($.charAt(B+1))>>4,E(q&255);else if(O===1)q=z($.charAt(B))<<10|z($.charAt(B+1))<<4|z($.charAt(B+2))>>2,E(q>>8&255),E(q&255);return j}function V($){var B,M=$.length%3,G="",q,O;function j(R){return BY.charAt(R)}function _(R){return j(R>>18&63)+j(R>>12&63)+j(R>>6&63)+j(R&63)}for(B=0,O=$.length-M;B<O;B+=3)q=($[B]<<16)+($[B+1]<<8)+$[B+2],G+=_(q);switch(M){case 1:q=$[$.length-1],G+=j(q>>2),G+=j(q<<4&63),G+="==";break;case 2:q=($[$.length-2]<<8)+$[$.length-1],G+=j(q>>10),G+=j(q>>4&63),G+=j(q<<2&63),G+="=";break}return G}J.toByteArray=U,J.fromByteArray=V})(typeof t8>"u"?t8.base64js={}:t8)});var C9=y0((F$,T9)=>{var M6=40,N6=41,K5=39,O6=34,j6=92,z8=47,L6=44,F6=58,Y5=42,IY=117,TY=85,CY=43,PY=/^[a-f0-9?-]+$/i;T9.exports=function(J){var K=[],Y=J,X,Z,Q,W,w,H,z,U,V=0,$=Y.charCodeAt(V),B=Y.length,M=[{nodes:K}],G=0,q,O="",j="",_="";while(V<B)if($<=32){X=V;do X+=1,$=Y.charCodeAt(X);while($<=32);if(W=Y.slice(V,X),Q=K[K.length-1],$===N6&&G)_=W;else if(Q&&Q.type==="div")Q.after=W,Q.sourceEndIndex+=W.length;else if($===L6||$===F6||$===z8&&Y.charCodeAt(X+1)!==Y5&&(!q||q&&q.type==="function"&&q.value!=="calc"))j=W;else K.push({type:"space",sourceIndex:V,sourceEndIndex:X,value:W});V=X}else if($===K5||$===O6){X=V,Z=$===K5?"'":'"',W={type:"string",sourceIndex:V,quote:Z};do if(w=!1,X=Y.indexOf(Z,X+1),~X){H=X;while(Y.charCodeAt(H-1)===j6)H-=1,w=!w}else Y+=Z,X=Y.length-1,W.unclosed=!0;while(w);W.value=Y.slice(V+1,X),W.sourceEndIndex=W.unclosed?X:X+1,K.push(W),V=X+1,$=Y.charCodeAt(V)}else if($===z8&&Y.charCodeAt(V+1)===Y5){if(X=Y.indexOf("*/",V),W={type:"comment",sourceIndex:V,sourceEndIndex:X+2},X===-1)W.unclosed=!0,X=Y.length,W.sourceEndIndex=X;W.value=Y.slice(V+2,X),K.push(W),V=X+2,$=Y.charCodeAt(V)}else if(($===z8||$===Y5)&&q&&q.type==="function"&&q.value==="calc")W=Y[V],K.push({type:"word",sourceIndex:V-j.length,sourceEndIndex:V+W.length,value:W}),V+=1,$=Y.charCodeAt(V);else if($===z8||$===L6||$===F6)W=Y[V],K.push({type:"div",sourceIndex:V-j.length,sourceEndIndex:V+W.length,value:W,before:j,after:""}),j="",V+=1,$=Y.charCodeAt(V);else if(M6===$){X=V;do X+=1,$=Y.charCodeAt(X);while($<=32);if(U=V,W={type:"function",sourceIndex:V-O.length,value:O,before:Y.slice(U+1,X)},V=X,O==="url"&&$!==K5&&$!==O6){X-=1;do if(w=!1,X=Y.indexOf(")",X+1),~X){H=X;while(Y.charCodeAt(H-1)===j6)H-=1,w=!w}else Y+=")",X=Y.length-1,W.unclosed=!0;while(w);z=X;do z-=1,$=Y.charCodeAt(z);while($<=32);if(U<z){if(V!==z+1)W.nodes=[{type:"word",sourceIndex:V,sourceEndIndex:z+1,value:Y.slice(V,z+1)}];else W.nodes=[];if(W.unclosed&&z+1!==X)W.after="",W.nodes.push({type:"space",sourceIndex:z+1,sourceEndIndex:X,value:Y.slice(z+1,X)});else W.after=Y.slice(z+1,X),W.sourceEndIndex=X}else W.after="",W.nodes=[];V=X+1,W.sourceEndIndex=W.unclosed?X:V,$=Y.charCodeAt(V),K.push(W)}else G+=1,W.after="",W.sourceEndIndex=V+1,K.push(W),M.push(W),K=W.nodes=[],q=W;O=""}else if(N6===$&&G)V+=1,$=Y.charCodeAt(V),q.after=_,q.sourceEndIndex+=_.length,_="",G-=1,M[M.length-1].sourceEndIndex=V,M.pop(),q=M[G],K=q.nodes;else{X=V;do{if($===j6)X+=1;X+=1,$=Y.charCodeAt(X)}while(X<B&&!($<=32||$===K5||$===O6||$===L6||$===F6||$===z8||$===M6||$===Y5&&q&&q.type==="function"&&q.value==="calc"||$===z8&&q.type==="function"&&q.value==="calc"||$===N6&&G));if(W=Y.slice(V,X),M6===$)O=W;else if((IY===W.charCodeAt(0)||TY===W.charCodeAt(0))&&CY===W.charCodeAt(1)&&PY.test(W.slice(2)))K.push({type:"unicode-range",sourceIndex:V,sourceEndIndex:X,value:W});else K.push({type:"word",sourceIndex:V,sourceEndIndex:X,value:W});V=X}for(V=M.length-1;V;V-=1)M[V].unclosed=!0,M[V].sourceEndIndex=Y.length;return M[0].nodes}});var S9=y0((E$,P9)=>{P9.exports=function J(K,Y,X){var Z,Q,W,w;for(Z=0,Q=K.length;Z<Q;Z+=1){if(W=K[Z],!X)w=Y(W,Z,K);if(w!==!1&&W.type==="function"&&Array.isArray(W.nodes))J(W.nodes,Y,X);if(X)Y(W,Z,K)}}});var g9=y0((_$,k9)=>{function v9(J,K){var{type:Y,value:X}=J,Z,Q;if(K&&(Q=K(J))!==void 0)return Q;else if(Y==="word"||Y==="space")return X;else if(Y==="string")return Z=J.quote||"",Z+X+(J.unclosed?"":Z);else if(Y==="comment")return"/*"+X+(J.unclosed?"":"*/");else if(Y==="div")return(J.before||"")+X+(J.after||"");else if(Array.isArray(J.nodes)){if(Z=y9(J.nodes,K),Y!=="function")return Z;return X+"("+(J.before||"")+Z+(J.after||"")+(J.unclosed?"":")")}return X}function y9(J,K){var Y,X;if(Array.isArray(J)){Y="";for(X=J.length-1;~X;X-=1)Y=v9(J[X],K)+Y;return Y}return v9(J,K)}k9.exports=y9});var b9=y0((R$,x9)=>{var X5=45,Z5=43,E6=46,SY=101,vY=69;function yY(J){var K=J.charCodeAt(0),Y;if(K===Z5||K===X5){if(Y=J.charCodeAt(1),Y>=48&&Y<=57)return!0;var X=J.charCodeAt(2);if(Y===E6&&X>=48&&X<=57)return!0;return!1}if(K===E6){if(Y=J.charCodeAt(1),Y>=48&&Y<=57)return!0;return!1}if(K>=48&&K<=57)return!0;return!1}x9.exports=function(J){var K=0,Y=J.length,X,Z,Q;if(Y===0||!yY(J))return!1;if(X=J.charCodeAt(K),X===Z5||X===X5)K++;while(K<Y){if(X=J.charCodeAt(K),X<48||X>57)break;K+=1}if(X=J.charCodeAt(K),Z=J.charCodeAt(K+1),X===E6&&Z>=48&&Z<=57){K+=2;while(K<Y){if(X=J.charCodeAt(K),X<48||X>57)break;K+=1}}if(X=J.charCodeAt(K),Z=J.charCodeAt(K+1),Q=J.charCodeAt(K+2),(X===SY||X===vY)&&(Z>=48&&Z<=57||(Z===Z5||Z===X5)&&Q>=48&&Q<=57)){K+=Z===Z5||Z===X5?3:2;while(K<Y){if(X=J.charCodeAt(K),X<48||X>57)break;K+=1}}return{number:J.slice(0,K),unit:J.slice(K)}}});var _6=y0((D$,f9)=>{var kY=C9(),h9=S9(),m9=g9();function g1(J){if(this instanceof g1)return this.nodes=kY(J),this;return new g1(J)}g1.prototype.toString=function(){return Array.isArray(this.nodes)?m9(this.nodes):""};g1.prototype.walk=function(J,K){return h9(this.nodes,J,K),this};g1.unit=b9();g1.walk=h9;g1.stringify=m9;f9.exports=g1});var c9=y0((I$,l9)=>{l9.exports=function(J){if(typeof J==="string")return d9(J);return R6(J)};function R6(J){if(!J||typeof J!=="object")return J;if(xY(J)||bY(J))return J;if(gY(J))return fY(J,R6);return dY(mY(J),function(K,Y){var X=d9(Y);return K[X]=R6(J[Y]),K},{})}function d9(J){return J.replace(/[_.-](\w|$)/g,function(K,Y){return Y.toUpperCase()})}var gY=Array.isArray||function(J){return Object.prototype.toString.call(J)==="[object Array]"},xY=function(J){return Object.prototype.toString.call(J)==="[object Date]"},bY=function(J){return Object.prototype.toString.call(J)==="[object RegExp]"},hY=Object.prototype.hasOwnProperty,mY=Object.keys||function(J){var K=[];for(var Y in J)if(hY.call(J,Y))K.push(Y);return K};function fY(J,K){if(J.map)return J.map(K);var Y=[];for(var X=0;X<J.length;X++)Y.push(K(J[X],X));return Y}function dY(J,K,Y){if(J.reduce)return J.reduce(K,Y);for(var X=0;X<J.length;X++)Y=K(Y,J[X],X);return Y}});var u9=y0((T$,lY)=>{lY.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 W5=y0((X7)=>{Object.defineProperty(X7,"__esModule",{value:!0});function P6(J){return J&&typeof J==="object"&&"default"in J?J.default:J}var o9=_6(),cY=P6(o9),uY=P6(c9()),pY=P6(u9()),iY=function(K){if(K.type!=="string")return null;return K.value.replace(/\\([0-9a-f]{1,6})(?:\s|$)/gi,function(Y,X){return String.fromCharCode(parseInt(X,16))}).replace(/\\/g,"")},oY=/^(#(?:[0-9a-f]{3,4}){1,2})$/i,rY=/^(rgba?|hsla?|hwb|lab|lch|gray|color)$/,nY=function(K){if(K.type==="word"&&(oY.test(K.value)||(K.value in pY)||K.value==="transparent"))return K.value;else if(K.type==="function"&&rY.test(K.value))return o9.stringify(K);return null},sY=/^(none)$/i,aY=/^(auto)$/i,tY=/(^-?[_a-z][_a-z0-9-]*$)/i,eY=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)$/i,JX=/^(0$|(?:[+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?=px$))/i,KX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(ch|em|ex|rem|vh|vw|vmin|vmax|cm|mm|in|pc|pt))$/i,YX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(?:deg|rad))$/i,XX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?%)$/i,S6=function(K){return function(Y){return K(Y)?"<token>":null}},ZX=function(K){return function(Y){return Y.type===K?Y.value:null}},P0=function(K,Y){if(Y===void 0)Y=String;return function(X){if(X.type!=="word")return null;var Z=X.value.match(K);if(Z===null)return null;var Q=Y(Z[1]);return Q}},v0=S6(function(J){return J.type==="space"}),r9=S6(function(J){return J.type==="div"&&J.value==="/"}),QX=S6(function(J){return J.type==="div"&&J.value===","}),WX=ZX("word"),v6=P0(sY),T6=P0(aY),V8=P0(eY,Number),i0=P0(JX,Number),R1=P0(KX),n9=P0(YX,function(J){return J.toLowerCase()}),y6=P0(XX),Q5=P0(tY),HX=iY,E8=nY,C6=P0(/^(none|underline|line-through)$/i),wX=function(K){var Y=K.expect(V8);if(K.hasTokens())K.expect(r9),Y/=K.expect(V8);return{aspectRatio:Y}},zX=P0(/^(solid|dashed|dotted)$/),UX=1,VX="black",$X="solid",BX=function(K){var Y,X,Z;if(K.matches(v6))return K.expectEmpty(),{borderWidth:0,borderColor:"black",borderStyle:"solid"};var Q=0;while(Q<3&&K.hasTokens()){if(Q!==0)K.expect(v0);if(Y===void 0&&K.matches(i0,R1))Y=K.lastValue;else if(X===void 0&&K.matches(E8))X=K.lastValue;else if(Z===void 0&&K.matches(zX))Z=K.lastValue;else K.throw();Q+=1}if(K.expectEmpty(),Y===void 0)Y=UX;if(X===void 0)X=VX;if(Z===void 0)Z=$X;return{borderWidth:Y,borderColor:X,borderStyle:Z}},_8=function(K){var Y=K.types,X=Y===void 0?[i0,R1,y6]:Y,Z=K.directions,Q=Z===void 0?["Top","Right","Bottom","Left"]:Z,W=K.prefix,w=W===void 0?"":W,H=K.suffix,z=H===void 0?"":H;return function(U){var V,$=[];$.push(U.expect.apply(U,X));while($.length<4&&U.hasTokens())U.expect(v0),$.push(U.expect.apply(U,X));U.expectEmpty();var B=$[0],M=$[1],G=M===void 0?B:M,q=$[2],O=q===void 0?B:q,j=$[3],_=j===void 0?G:j,R=function(L){return""+w+Q[L]+z};return V={},V[R(0)]=B,V[R(1)]=G,V[R(2)]=O,V[R(3)]=_,V}},s9=function(K){var Y=K.expect(i0),X=K.matches(v0)?K.expect(i0):Y;return K.expectEmpty(),{width:Y,height:X}},a9=function(K){var Y,X,Z,Q;if(K.matches(v6))return K.expectEmpty(),{offset:{width:0,height:0},radius:0,color:"black"};var W=!1;while(K.hasTokens()){if(W)K.expect(v0);if(Y===void 0&&K.matches(i0,R1))if(Y=K.lastValue,K.expect(v0),X=K.expect(i0,R1),K.saveRewindPoint(),K.matches(v0)&&K.matches(i0,R1))Z=K.lastValue;else K.rewind();else if(Q===void 0&&K.matches(E8))Q=K.lastValue;else K.throw();W=!0}if(Y===void 0)K.throw();return{offset:{width:Y,height:X},radius:Z!==void 0?Z:0,color:Q!==void 0?Q:"black"}},AX=function(K){var Y=a9(K),X=Y.offset,Z=Y.radius,Q=Y.color;return{shadowOffset:X,shadowRadius:Z,shadowColor:Q,shadowOpacity:1}},GX=1,qX=1,MX=0,NX=function(K){var Y,X,Z;if(K.matches(v6))return K.expectEmpty(),{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(K.saveRewindPoint(),K.matches(T6)&&!K.hasTokens())return{flexGrow:1,flexShrink:1,flexBasis:"auto"};K.rewind();var Q=0;while(Q<2&&K.hasTokens()){if(Q!==0)K.expect(v0);if(Y===void 0&&K.matches(V8))if(Y=K.lastValue,K.saveRewindPoint(),K.matches(v0)&&K.matches(V8))X=K.lastValue;else K.rewind();else if(Z===void 0&&K.matches(i0,R1,y6))Z=K.lastValue;else if(Z===void 0&&K.matches(T6))Z="auto";else K.throw();Q+=1}if(K.expectEmpty(),Y===void 0)Y=GX;if(X===void 0)X=qX;if(Z===void 0)Z=MX;return{flexGrow:Y,flexShrink:X,flexBasis:Z}},OX=P0(/(nowrap|wrap|wrap-reverse)/),jX=P0(/(row|row-reverse|column|column-reverse)/),LX="nowrap",FX="row",EX=function(K){var Y,X,Z=0;while(Z<2&&K.hasTokens()){if(Z!==0)K.expect(v0);if(Y===void 0&&K.matches(OX))Y=K.lastValue;else if(X===void 0&&K.matches(jX))X=K.lastValue;else K.throw();Z+=1}if(K.expectEmpty(),Y===void 0)Y=LX;if(X===void 0)X=FX;return{flexWrap:Y,flexDirection:X}},t9=function(K){var Y;if(K.matches(HX))Y=K.lastValue;else{Y=K.expect(Q5);while(K.hasTokens()){K.expect(v0);var X=K.expect(Q5);Y+=" "+X}}return K.expectEmpty(),{fontFamily:Y}},_X=P0(/^(normal)$/),RX=P0(/^(italic)$/),DX=P0(/^([1-9]00|bold)$/),IX=P0(/^(small-caps)$/),TX="normal",CX="normal",PX=[],SX=function(K){var Y,X,Z,Q,W=0;while(W<3&&K.hasTokens()){if(K.matches(_X));else if(Y===void 0&&K.matches(RX))Y=K.lastValue;else if(X===void 0&&K.matches(DX))X=K.lastValue;else if(Z===void 0&&K.matches(IX))Z=[K.lastValue];else break;K.expect(v0),W+=1}var w=K.expect(i0,R1);if(K.matches(r9))Q=K.expect(i0,R1);K.expect(v0);var H=t9(K),z=H.fontFamily;if(Y===void 0)Y=TX;if(X===void 0)X=CX;if(Z===void 0)Z=PX;var U={fontStyle:Y,fontWeight:X,fontVariant:Z,fontSize:w,fontFamily:z};if(Q!==void 0)U.lineHeight=Q;return U},vX=function(K){var Y=[K.expect(Q5)];while(K.hasTokens())K.expect(v0),Y.push(K.expect(Q5));return{fontVariant:Y}},yX=P0(/(flex-(?:start|end)|center|stretch|space-(?:between|around))/),kX=P0(/(flex-(?:start|end)|center|space-(?:between|around|evenly))/),gX=function(K){var Y=K.expect(yX),X;if(K.hasTokens())K.expect(v0),X=K.expect(kX);else X="stretch";return K.expectEmpty(),{alignContent:Y,justifyContent:X}},xX=P0(/^(solid|double|dotted|dashed)$/),bX="none",hX="solid",mX="black",fX=function(K){var Y,X,Z,Q=!1;while(K.hasTokens()){if(Q)K.expect(v0);if(Y===void 0&&K.matches(C6)){var W=[K.lastValue.toLowerCase()];if(K.saveRewindPoint(),W[0]!=="none"&&K.matches(v0)&&K.matches(C6))W.push(K.lastValue.toLowerCase()),W.sort().reverse();else K.rewind();Y=W.join(" ")}else if(X===void 0&&K.matches(xX))X=K.lastValue;else if(Z===void 0&&K.matches(E8))Z=K.lastValue;else K.throw();Q=!0}return{textDecorationLine:Y!==void 0?Y:bX,textDecorationColor:Z!==void 0?Z:mX,textDecorationStyle:X!==void 0?X:hX}},dX=function(K){var Y=[],X=!1;while(K.hasTokens()){if(X)K.expect(v0);Y.push(K.expect(C6).toLowerCase()),X=!0}return Y.sort().reverse(),{textDecorationLine:Y.join(" ")}},lX=function(K){var Y=a9(K),X=Y.offset,Z=Y.radius,Q=Y.color;return{textShadowOffset:X,textShadowRadius:Z,textShadowColor:Q}},k6=function(K){return function(Y){var X=Y.expect(K);return Y.expectEmpty(),X}},D6=k6(V8),p9=k6(i0),U8=k6(n9),g6=function(K){return function(Y,X){return function(Z){var Q,W,w=Z.expect(K),H;if(Z.hasTokens())Z.expect(QX),H=Z.expect(K);else if(X!==void 0)H=X;else return w;return Z.expectEmpty(),[(Q={},Q[Y+"Y"]=H,Q),(W={},W[Y+"X"]=w,W)]}}},cX=g6(V8),uX=g6(i0),pX=g6(n9),iX={perspective:D6,scale:cX("scale"),scaleX:D6,scaleY:D6,translate:uX("translate",0),translateX:p9,translateY:p9,rotate:U8,rotateX:U8,rotateY:U8,rotateZ:U8,skewX:U8,skewY:U8,skew:pX("skew","0deg")},oX=function(K){var Y=[],X=!1;while(K.hasTokens()){if(X)K.expect(v0);var Z=K.expectFunction(),Q=Z.functionName,W=iX[Q](Z);if(!Array.isArray(W)){var w;W=[(w={},w[Q]=W,w)]}Y=W.concat(Y),X=!0}return{transform:Y}},rX=function(K){return{backgroundColor:K.expect(E8)}},nX=_8({types:[E8],prefix:"border",suffix:"Color"}),sX=_8({directions:["TopLeft","TopRight","BottomRight","BottomLeft"],prefix:"border",suffix:"Radius"}),aX=_8({prefix:"border",suffix:"Width"}),tX=_8({types:[i0,R1,y6,T6],prefix:"margin"}),eX=_8({prefix:"padding"}),JZ=function(K){return{fontWeight:K.expect(WX)}},KZ=function(K){return{shadowOffset:s9(K)}},YZ=function(K){return{textShadowOffset:s9(K)}},e9={aspectRatio:wX,background:rX,border:BX,borderColor:nX,borderRadius:sX,borderWidth:aX,boxShadow:AX,flex:NX,flexFlow:EX,font:SX,fontFamily:t9,fontVariant:vX,fontWeight:JZ,margin:tX,padding:eX,placeContent:gX,shadowOffset:KZ,textShadow:lX,textShadowOffset:YZ,textDecoration:fX,textDecorationLine:dX,transform:oX},i9,C$=i9!=null?new RegExp(i9.join("|")):null,I6="SYMBOL_MATCH",XZ=function(){function J(Y,X){this.index=0,this.nodes=Y,this.functionName=X!=null?X.value:null,this.lastValue=null,this.rewindIndex=-1}var K=J.prototype;return K.hasTokens=function(){return this.index<=this.nodes.length-1},K[I6]=function(){if(!this.hasTokens())return null;var Y=this.nodes[this.index];for(var X=0;X<arguments.length;X+=1){var Z=X<0||arguments.length<=X?void 0:arguments[X],Q=Z(Y);if(Q!==null)return this.index+=1,this.lastValue=Q,Q}return null},K.matches=function(){return this[I6].apply(this,arguments)!==null},K.expect=function(){var X=this[I6].apply(this,arguments);return X!==null?X:this.throw()},K.matchesFunction=function(){var X=this.nodes[this.index];if(X.type!=="function")return null;var Z=new J(X.nodes,X);return this.index+=1,this.lastValue=null,Z},K.expectFunction=function(){var X=this.matchesFunction();return X!==null?X:this.throw()},K.expectEmpty=function(){if(this.hasTokens())this.throw()},K.throw=function(){throw Error("Unexpected token type: "+this.nodes[this.index].type)},K.saveRewindPoint=function(){this.rewindIndex=this.index},K.rewind=function(){if(this.rewindIndex===-1)throw Error("Internal error");this.index=this.rewindIndex,this.lastValue=null},J}(),ZZ=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?:px)?$/i,QZ=/^true|false$/i,WZ=/^null$/i,HZ=/^undefined$/i,J7=function(K,Y){if(!1)var X,Z;var Q=Y.match(ZZ);if(Q!==null)return Number(Q[1]);var W=Y.match(QZ);if(W!==null)return W[0].toLowerCase()==="true";var w=Y.match(WZ);if(w!==null)return null;var H=Y.match(HZ);if(H!==null)return;return Y},wZ=function(K,Y){var X=cY(Y),Z=new XZ(X.nodes);return e9[K](Z)},zZ=wZ,K7=function(K,Y,X){var Z,Q=X===!1||!(K in e9),W=Y.trim(),w=Q?(Z={},Z[K]=J7(K,W),Z):zZ(K,W);return w},Y7=function(K){var Y=/^--\w+/.test(K);if(Y)return K;return uY(K)},UZ=function(K,Y){if(Y===void 0)Y=[];return K.reduce(function(X,Z){var Q=Y7(Z[0]),W=Z[1],w=Y.indexOf(Q)===-1;return Object.assign(X,K7(Q,W,w))},{})};X7.default=UZ;X7.getPropertyName=Y7;X7.getStylesForProperty=K7;X7.transformRawValue=J7});var Q7=y0((Z7,H5)=>{/*!
|
|
2
|
+
import{A as O0,p as u4,q as t4,r as q1,s as J6,t as a0,u as E0,v as W0,x as i4,y as a8,z as O8}from"../http/index.js";import{D as C0}from"../chunk-x6ntsv3z.js";import{E as dK}from"../chunk-g0qf8xfk.js";import{Fa as o8,Ha as p1,Ia as MV,Ja as p4}from"../chunk-33p2e7s6.js";import{La as l0}from"../chunk-9rxwxky2.js";import{Na as e0,Oa as y0,Pa as aH}from"../chunk-cbdnkfkw.js";var z9=y0((M$,w9)=>{var V6=0,Y9=-3;function L8(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function YY(J,K){this.source=J,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=K,this.destLen=0,this.ltree=new L8,this.dtree=new L8}var X9=new L8,Z9=new L8,$6=new Uint8Array(30),B6=new Uint16Array(30),Q9=new Uint8Array(30),W9=new Uint16Array(30),XY=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),e4=new L8,M1=new Uint8Array(320);function H9(J,K,Y,X){var Z,Q;for(Z=0;Z<Y;++Z)J[Z]=0;for(Z=0;Z<30-Y;++Z)J[Z+Y]=Z/Y|0;for(Q=X,Z=0;Z<30;++Z)K[Z]=Q,Q+=1<<J[Z]}function ZY(J,K){var Y;for(Y=0;Y<7;++Y)J.table[Y]=0;J.table[7]=24,J.table[8]=152,J.table[9]=112;for(Y=0;Y<24;++Y)J.trans[Y]=256+Y;for(Y=0;Y<144;++Y)J.trans[24+Y]=Y;for(Y=0;Y<8;++Y)J.trans[168+Y]=280+Y;for(Y=0;Y<112;++Y)J.trans[176+Y]=144+Y;for(Y=0;Y<5;++Y)K.table[Y]=0;K.table[5]=32;for(Y=0;Y<32;++Y)K.trans[Y]=Y}var J9=new Uint16Array(16);function z6(J,K,Y,X){var Z,Q;for(Z=0;Z<16;++Z)J.table[Z]=0;for(Z=0;Z<X;++Z)J.table[K[Y+Z]]++;J.table[0]=0;for(Q=0,Z=0;Z<16;++Z)J9[Z]=Q,Q+=J.table[Z];for(Z=0;Z<X;++Z)if(K[Y+Z])J.trans[J9[K[Y+Z]]++]=Z}function QY(J){if(!J.bitcount--)J.tag=J.source[J.sourceIndex++],J.bitcount=7;var K=J.tag&1;return J.tag>>>=1,K}function N1(J,K,Y){if(!K)return Y;while(J.bitcount<24)J.tag|=J.source[J.sourceIndex++]<<J.bitcount,J.bitcount+=8;var X=J.tag&65535>>>16-K;return J.tag>>>=K,J.bitcount-=K,X+Y}function U6(J,K){while(J.bitcount<24)J.tag|=J.source[J.sourceIndex++]<<J.bitcount,J.bitcount+=8;var Y=0,X=0,Z=0,Q=J.tag;do X=2*X+(Q&1),Q>>>=1,++Z,Y+=K.table[Z],X-=K.table[Z];while(X>=0);return J.tag=Q,J.bitcount-=Z,K.trans[Y+X]}function WY(J,K,Y){var X,Z,Q,W,w,H;X=N1(J,5,257),Z=N1(J,5,1),Q=N1(J,4,4);for(W=0;W<19;++W)M1[W]=0;for(W=0;W<Q;++W){var z=N1(J,3,0);M1[XY[W]]=z}z6(e4,M1,0,19);for(w=0;w<X+Z;){var U=U6(J,e4);switch(U){case 16:var V=M1[w-1];for(H=N1(J,2,3);H;--H)M1[w++]=V;break;case 17:for(H=N1(J,3,3);H;--H)M1[w++]=0;break;case 18:for(H=N1(J,7,11);H;--H)M1[w++]=0;break;default:M1[w++]=U;break}}z6(K,M1,0,X),z6(Y,M1,X,Z)}function K9(J,K,Y){while(!0){var X=U6(J,K);if(X===256)return V6;if(X<256)J.dest[J.destLen++]=X;else{var Z,Q,W,w;X-=257,Z=N1(J,$6[X],B6[X]),Q=U6(J,Y),W=J.destLen-N1(J,Q9[Q],W9[Q]);for(w=W;w<W+Z;++w)J.dest[J.destLen++]=J.dest[w]}}}function HY(J){var K,Y,X;while(J.bitcount>8)J.sourceIndex--,J.bitcount-=8;if(K=J.source[J.sourceIndex+1],K=256*K+J.source[J.sourceIndex],Y=J.source[J.sourceIndex+3],Y=256*Y+J.source[J.sourceIndex+2],K!==(~Y&65535))return Y9;J.sourceIndex+=4;for(X=K;X;--X)J.dest[J.destLen++]=J.source[J.sourceIndex++];return J.bitcount=0,V6}function wY(J,K){var Y=new YY(J,K),X,Z,Q;do{switch(X=QY(Y),Z=N1(Y,2,0),Z){case 0:Q=HY(Y);break;case 1:Q=K9(Y,X9,Z9);break;case 2:WY(Y,Y.ltree,Y.dtree),Q=K9(Y,Y.ltree,Y.dtree);break;default:Q=Y9}if(Q!==V6)throw Error("Data error")}while(!X);if(Y.destLen<Y.dest.length)if(typeof Y.dest.slice==="function")return Y.dest.slice(0,Y.destLen);else return Y.dest.subarray(0,Y.destLen);return Y.dest}ZY(X9,Z9);H9($6,B6,4,3);H9(Q9,W9,2,1);$6[28]=0;B6[28]=258;w9.exports=wY});var $9=y0((N$,V9)=>{var zY=new Uint8Array(new Uint32Array([305419896]).buffer)[0]===18,U9=(J,K,Y)=>{let X=J[K];J[K]=J[Y],J[Y]=X},UY=(J)=>{let K=J.length;for(let Y=0;Y<K;Y+=4)U9(J,Y,Y+3),U9(J,Y+1,Y+2)},VY=(J)=>{if(zY)UY(J)};V9.exports={swap32LE:VY}});var q9=y0((O$,G9)=>{var B9=z9(),{swap32LE:$Y}=$9();class A9{constructor(J){let K=typeof J.readUInt32BE==="function"&&typeof J.slice==="function";if(K||J instanceof Uint8Array){let Y;if(K)this.highStart=J.readUInt32LE(0),this.errorValue=J.readUInt32LE(4),Y=J.readUInt32LE(8),J=J.slice(12);else{let X=new DataView(J.buffer);this.highStart=X.getUint32(0,!0),this.errorValue=X.getUint32(4,!0),Y=X.getUint32(8,!0),J=J.subarray(12)}J=B9(J,new Uint8Array(Y)),J=B9(J,new Uint8Array(Y)),$Y(J),this.data=new Uint32Array(J.buffer)}else({data:this.data,highStart:this.highStart,errorValue:this.errorValue}=J)}get(J){let K;if(J<0||J>1114111)return this.errorValue;if(J<55296||J>56319&&J<=65535)return K=(this.data[J>>5]<<2)+(J&31),this.data[K];if(J<=65535)return K=(this.data[2048+(J-55296>>5)]<<2)+(J&31),this.data[K];if(J<this.highStart)return K=this.data[2080+(J>>11)],K=this.data[K+(J>>5&63)],K=(K<<2)+(J&31),this.data[K];return this.data[this.data.length-4]}}G9.exports=A9});var M9=y0((t8)=>{var BY="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(J){var K=typeof Uint8Array<"u"?Uint8Array:Array,Y=43,X=47,Z=48,Q=97,W=65,w=45,H=95;function z($){var B=$.charCodeAt(0);if(B===Y||B===w)return 62;if(B===X||B===H)return 63;if(B<Z)return-1;if(B<Z+10)return B-Z+26+26;if(B<W+26)return B-W;if(B<Q+26)return B-Q+26}function U($){var B,M,G,q,O,j;if($.length%4>0)throw Error("Invalid string. Length must be a multiple of 4");var E=$.length;O=$.charAt(E-2)==="="?2:$.charAt(E-1)==="="?1:0,j=new K($.length*3/4-O),G=O>0?$.length-4:$.length;var R=0;function _(L){j[R++]=L}for(B=0,M=0;B<G;B+=4,M+=3)q=z($.charAt(B))<<18|z($.charAt(B+1))<<12|z($.charAt(B+2))<<6|z($.charAt(B+3)),_((q&16711680)>>16),_((q&65280)>>8),_(q&255);if(O===2)q=z($.charAt(B))<<2|z($.charAt(B+1))>>4,_(q&255);else if(O===1)q=z($.charAt(B))<<10|z($.charAt(B+1))<<4|z($.charAt(B+2))>>2,_(q>>8&255),_(q&255);return j}function V($){var B,M=$.length%3,G="",q,O;function j(R){return BY.charAt(R)}function E(R){return j(R>>18&63)+j(R>>12&63)+j(R>>6&63)+j(R&63)}for(B=0,O=$.length-M;B<O;B+=3)q=($[B]<<16)+($[B+1]<<8)+$[B+2],G+=E(q);switch(M){case 1:q=$[$.length-1],G+=j(q>>2),G+=j(q<<4&63),G+="==";break;case 2:q=($[$.length-2]<<8)+$[$.length-1],G+=j(q>>10),G+=j(q>>4&63),G+=j(q<<2&63),G+="=";break}return G}J.toByteArray=U,J.fromByteArray=V})(typeof t8>"u"?t8.base64js={}:t8)});var C9=y0((F$,T9)=>{var M6=40,N6=41,K5=39,O6=34,j6=92,z8=47,L6=44,F6=58,Y5=42,IY=117,TY=85,CY=43,PY=/^[a-f0-9?-]+$/i;T9.exports=function(J){var K=[],Y=J,X,Z,Q,W,w,H,z,U,V=0,$=Y.charCodeAt(V),B=Y.length,M=[{nodes:K}],G=0,q,O="",j="",E="";while(V<B)if($<=32){X=V;do X+=1,$=Y.charCodeAt(X);while($<=32);if(W=Y.slice(V,X),Q=K[K.length-1],$===N6&&G)E=W;else if(Q&&Q.type==="div")Q.after=W,Q.sourceEndIndex+=W.length;else if($===L6||$===F6||$===z8&&Y.charCodeAt(X+1)!==Y5&&(!q||q&&q.type==="function"&&q.value!=="calc"))j=W;else K.push({type:"space",sourceIndex:V,sourceEndIndex:X,value:W});V=X}else if($===K5||$===O6){X=V,Z=$===K5?"'":'"',W={type:"string",sourceIndex:V,quote:Z};do if(w=!1,X=Y.indexOf(Z,X+1),~X){H=X;while(Y.charCodeAt(H-1)===j6)H-=1,w=!w}else Y+=Z,X=Y.length-1,W.unclosed=!0;while(w);W.value=Y.slice(V+1,X),W.sourceEndIndex=W.unclosed?X:X+1,K.push(W),V=X+1,$=Y.charCodeAt(V)}else if($===z8&&Y.charCodeAt(V+1)===Y5){if(X=Y.indexOf("*/",V),W={type:"comment",sourceIndex:V,sourceEndIndex:X+2},X===-1)W.unclosed=!0,X=Y.length,W.sourceEndIndex=X;W.value=Y.slice(V+2,X),K.push(W),V=X+2,$=Y.charCodeAt(V)}else if(($===z8||$===Y5)&&q&&q.type==="function"&&q.value==="calc")W=Y[V],K.push({type:"word",sourceIndex:V-j.length,sourceEndIndex:V+W.length,value:W}),V+=1,$=Y.charCodeAt(V);else if($===z8||$===L6||$===F6)W=Y[V],K.push({type:"div",sourceIndex:V-j.length,sourceEndIndex:V+W.length,value:W,before:j,after:""}),j="",V+=1,$=Y.charCodeAt(V);else if(M6===$){X=V;do X+=1,$=Y.charCodeAt(X);while($<=32);if(U=V,W={type:"function",sourceIndex:V-O.length,value:O,before:Y.slice(U+1,X)},V=X,O==="url"&&$!==K5&&$!==O6){X-=1;do if(w=!1,X=Y.indexOf(")",X+1),~X){H=X;while(Y.charCodeAt(H-1)===j6)H-=1,w=!w}else Y+=")",X=Y.length-1,W.unclosed=!0;while(w);z=X;do z-=1,$=Y.charCodeAt(z);while($<=32);if(U<z){if(V!==z+1)W.nodes=[{type:"word",sourceIndex:V,sourceEndIndex:z+1,value:Y.slice(V,z+1)}];else W.nodes=[];if(W.unclosed&&z+1!==X)W.after="",W.nodes.push({type:"space",sourceIndex:z+1,sourceEndIndex:X,value:Y.slice(z+1,X)});else W.after=Y.slice(z+1,X),W.sourceEndIndex=X}else W.after="",W.nodes=[];V=X+1,W.sourceEndIndex=W.unclosed?X:V,$=Y.charCodeAt(V),K.push(W)}else G+=1,W.after="",W.sourceEndIndex=V+1,K.push(W),M.push(W),K=W.nodes=[],q=W;O=""}else if(N6===$&&G)V+=1,$=Y.charCodeAt(V),q.after=E,q.sourceEndIndex+=E.length,E="",G-=1,M[M.length-1].sourceEndIndex=V,M.pop(),q=M[G],K=q.nodes;else{X=V;do{if($===j6)X+=1;X+=1,$=Y.charCodeAt(X)}while(X<B&&!($<=32||$===K5||$===O6||$===L6||$===F6||$===z8||$===M6||$===Y5&&q&&q.type==="function"&&q.value==="calc"||$===z8&&q.type==="function"&&q.value==="calc"||$===N6&&G));if(W=Y.slice(V,X),M6===$)O=W;else if((IY===W.charCodeAt(0)||TY===W.charCodeAt(0))&&CY===W.charCodeAt(1)&&PY.test(W.slice(2)))K.push({type:"unicode-range",sourceIndex:V,sourceEndIndex:X,value:W});else K.push({type:"word",sourceIndex:V,sourceEndIndex:X,value:W});V=X}for(V=M.length-1;V;V-=1)M[V].unclosed=!0,M[V].sourceEndIndex=Y.length;return M[0].nodes}});var S9=y0((E$,P9)=>{P9.exports=function J(K,Y,X){var Z,Q,W,w;for(Z=0,Q=K.length;Z<Q;Z+=1){if(W=K[Z],!X)w=Y(W,Z,K);if(w!==!1&&W.type==="function"&&Array.isArray(W.nodes))J(W.nodes,Y,X);if(X)Y(W,Z,K)}}});var g9=y0((_$,k9)=>{function v9(J,K){var{type:Y,value:X}=J,Z,Q;if(K&&(Q=K(J))!==void 0)return Q;else if(Y==="word"||Y==="space")return X;else if(Y==="string")return Z=J.quote||"",Z+X+(J.unclosed?"":Z);else if(Y==="comment")return"/*"+X+(J.unclosed?"":"*/");else if(Y==="div")return(J.before||"")+X+(J.after||"");else if(Array.isArray(J.nodes)){if(Z=y9(J.nodes,K),Y!=="function")return Z;return X+"("+(J.before||"")+Z+(J.after||"")+(J.unclosed?"":")")}return X}function y9(J,K){var Y,X;if(Array.isArray(J)){Y="";for(X=J.length-1;~X;X-=1)Y=v9(J[X],K)+Y;return Y}return v9(J,K)}k9.exports=y9});var b9=y0((R$,x9)=>{var X5=45,Z5=43,E6=46,SY=101,vY=69;function yY(J){var K=J.charCodeAt(0),Y;if(K===Z5||K===X5){if(Y=J.charCodeAt(1),Y>=48&&Y<=57)return!0;var X=J.charCodeAt(2);if(Y===E6&&X>=48&&X<=57)return!0;return!1}if(K===E6){if(Y=J.charCodeAt(1),Y>=48&&Y<=57)return!0;return!1}if(K>=48&&K<=57)return!0;return!1}x9.exports=function(J){var K=0,Y=J.length,X,Z,Q;if(Y===0||!yY(J))return!1;if(X=J.charCodeAt(K),X===Z5||X===X5)K++;while(K<Y){if(X=J.charCodeAt(K),X<48||X>57)break;K+=1}if(X=J.charCodeAt(K),Z=J.charCodeAt(K+1),X===E6&&Z>=48&&Z<=57){K+=2;while(K<Y){if(X=J.charCodeAt(K),X<48||X>57)break;K+=1}}if(X=J.charCodeAt(K),Z=J.charCodeAt(K+1),Q=J.charCodeAt(K+2),(X===SY||X===vY)&&(Z>=48&&Z<=57||(Z===Z5||Z===X5)&&Q>=48&&Q<=57)){K+=Z===Z5||Z===X5?3:2;while(K<Y){if(X=J.charCodeAt(K),X<48||X>57)break;K+=1}}return{number:J.slice(0,K),unit:J.slice(K)}}});var _6=y0((D$,f9)=>{var kY=C9(),h9=S9(),m9=g9();function g1(J){if(this instanceof g1)return this.nodes=kY(J),this;return new g1(J)}g1.prototype.toString=function(){return Array.isArray(this.nodes)?m9(this.nodes):""};g1.prototype.walk=function(J,K){return h9(this.nodes,J,K),this};g1.unit=b9();g1.walk=h9;g1.stringify=m9;f9.exports=g1});var c9=y0((I$,l9)=>{l9.exports=function(J){if(typeof J==="string")return d9(J);return R6(J)};function R6(J){if(!J||typeof J!=="object")return J;if(xY(J)||bY(J))return J;if(gY(J))return fY(J,R6);return dY(mY(J),function(K,Y){var X=d9(Y);return K[X]=R6(J[Y]),K},{})}function d9(J){return J.replace(/[_.-](\w|$)/g,function(K,Y){return Y.toUpperCase()})}var gY=Array.isArray||function(J){return Object.prototype.toString.call(J)==="[object Array]"},xY=function(J){return Object.prototype.toString.call(J)==="[object Date]"},bY=function(J){return Object.prototype.toString.call(J)==="[object RegExp]"},hY=Object.prototype.hasOwnProperty,mY=Object.keys||function(J){var K=[];for(var Y in J)if(hY.call(J,Y))K.push(Y);return K};function fY(J,K){if(J.map)return J.map(K);var Y=[];for(var X=0;X<J.length;X++)Y.push(K(J[X],X));return Y}function dY(J,K,Y){if(J.reduce)return J.reduce(K,Y);for(var X=0;X<J.length;X++)Y=K(Y,J[X],X);return Y}});var u9=y0((T$,lY)=>{lY.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 W5=y0((X7)=>{Object.defineProperty(X7,"__esModule",{value:!0});function P6(J){return J&&typeof J==="object"&&"default"in J?J.default:J}var o9=_6(),cY=P6(o9),uY=P6(c9()),pY=P6(u9()),iY=function(K){if(K.type!=="string")return null;return K.value.replace(/\\([0-9a-f]{1,6})(?:\s|$)/gi,function(Y,X){return String.fromCharCode(parseInt(X,16))}).replace(/\\/g,"")},oY=/^(#(?:[0-9a-f]{3,4}){1,2})$/i,rY=/^(rgba?|hsla?|hwb|lab|lch|gray|color)$/,nY=function(K){if(K.type==="word"&&(oY.test(K.value)||(K.value in pY)||K.value==="transparent"))return K.value;else if(K.type==="function"&&rY.test(K.value))return o9.stringify(K);return null},sY=/^(none)$/i,aY=/^(auto)$/i,tY=/(^-?[_a-z][_a-z0-9-]*$)/i,eY=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)$/i,JX=/^(0$|(?:[+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?=px$))/i,KX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(ch|em|ex|rem|vh|vw|vmin|vmax|cm|mm|in|pc|pt))$/i,YX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(?:deg|rad))$/i,XX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?%)$/i,S6=function(K){return function(Y){return K(Y)?"<token>":null}},ZX=function(K){return function(Y){return Y.type===K?Y.value:null}},P0=function(K,Y){if(Y===void 0)Y=String;return function(X){if(X.type!=="word")return null;var Z=X.value.match(K);if(Z===null)return null;var Q=Y(Z[1]);return Q}},v0=S6(function(J){return J.type==="space"}),r9=S6(function(J){return J.type==="div"&&J.value==="/"}),QX=S6(function(J){return J.type==="div"&&J.value===","}),WX=ZX("word"),v6=P0(sY),T6=P0(aY),V8=P0(eY,Number),i0=P0(JX,Number),R1=P0(KX),n9=P0(YX,function(J){return J.toLowerCase()}),y6=P0(XX),Q5=P0(tY),HX=iY,E8=nY,C6=P0(/^(none|underline|line-through)$/i),wX=function(K){var Y=K.expect(V8);if(K.hasTokens())K.expect(r9),Y/=K.expect(V8);return{aspectRatio:Y}},zX=P0(/^(solid|dashed|dotted)$/),UX=1,VX="black",$X="solid",BX=function(K){var Y,X,Z;if(K.matches(v6))return K.expectEmpty(),{borderWidth:0,borderColor:"black",borderStyle:"solid"};var Q=0;while(Q<3&&K.hasTokens()){if(Q!==0)K.expect(v0);if(Y===void 0&&K.matches(i0,R1))Y=K.lastValue;else if(X===void 0&&K.matches(E8))X=K.lastValue;else if(Z===void 0&&K.matches(zX))Z=K.lastValue;else K.throw();Q+=1}if(K.expectEmpty(),Y===void 0)Y=UX;if(X===void 0)X=VX;if(Z===void 0)Z=$X;return{borderWidth:Y,borderColor:X,borderStyle:Z}},_8=function(K){var Y=K.types,X=Y===void 0?[i0,R1,y6]:Y,Z=K.directions,Q=Z===void 0?["Top","Right","Bottom","Left"]:Z,W=K.prefix,w=W===void 0?"":W,H=K.suffix,z=H===void 0?"":H;return function(U){var V,$=[];$.push(U.expect.apply(U,X));while($.length<4&&U.hasTokens())U.expect(v0),$.push(U.expect.apply(U,X));U.expectEmpty();var B=$[0],M=$[1],G=M===void 0?B:M,q=$[2],O=q===void 0?B:q,j=$[3],E=j===void 0?G:j,R=function(L){return""+w+Q[L]+z};return V={},V[R(0)]=B,V[R(1)]=G,V[R(2)]=O,V[R(3)]=E,V}},s9=function(K){var Y=K.expect(i0),X=K.matches(v0)?K.expect(i0):Y;return K.expectEmpty(),{width:Y,height:X}},a9=function(K){var Y,X,Z,Q;if(K.matches(v6))return K.expectEmpty(),{offset:{width:0,height:0},radius:0,color:"black"};var W=!1;while(K.hasTokens()){if(W)K.expect(v0);if(Y===void 0&&K.matches(i0,R1))if(Y=K.lastValue,K.expect(v0),X=K.expect(i0,R1),K.saveRewindPoint(),K.matches(v0)&&K.matches(i0,R1))Z=K.lastValue;else K.rewind();else if(Q===void 0&&K.matches(E8))Q=K.lastValue;else K.throw();W=!0}if(Y===void 0)K.throw();return{offset:{width:Y,height:X},radius:Z!==void 0?Z:0,color:Q!==void 0?Q:"black"}},AX=function(K){var Y=a9(K),X=Y.offset,Z=Y.radius,Q=Y.color;return{shadowOffset:X,shadowRadius:Z,shadowColor:Q,shadowOpacity:1}},GX=1,qX=1,MX=0,NX=function(K){var Y,X,Z;if(K.matches(v6))return K.expectEmpty(),{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(K.saveRewindPoint(),K.matches(T6)&&!K.hasTokens())return{flexGrow:1,flexShrink:1,flexBasis:"auto"};K.rewind();var Q=0;while(Q<2&&K.hasTokens()){if(Q!==0)K.expect(v0);if(Y===void 0&&K.matches(V8))if(Y=K.lastValue,K.saveRewindPoint(),K.matches(v0)&&K.matches(V8))X=K.lastValue;else K.rewind();else if(Z===void 0&&K.matches(i0,R1,y6))Z=K.lastValue;else if(Z===void 0&&K.matches(T6))Z="auto";else K.throw();Q+=1}if(K.expectEmpty(),Y===void 0)Y=GX;if(X===void 0)X=qX;if(Z===void 0)Z=MX;return{flexGrow:Y,flexShrink:X,flexBasis:Z}},OX=P0(/(nowrap|wrap|wrap-reverse)/),jX=P0(/(row|row-reverse|column|column-reverse)/),LX="nowrap",FX="row",EX=function(K){var Y,X,Z=0;while(Z<2&&K.hasTokens()){if(Z!==0)K.expect(v0);if(Y===void 0&&K.matches(OX))Y=K.lastValue;else if(X===void 0&&K.matches(jX))X=K.lastValue;else K.throw();Z+=1}if(K.expectEmpty(),Y===void 0)Y=LX;if(X===void 0)X=FX;return{flexWrap:Y,flexDirection:X}},t9=function(K){var Y;if(K.matches(HX))Y=K.lastValue;else{Y=K.expect(Q5);while(K.hasTokens()){K.expect(v0);var X=K.expect(Q5);Y+=" "+X}}return K.expectEmpty(),{fontFamily:Y}},_X=P0(/^(normal)$/),RX=P0(/^(italic)$/),DX=P0(/^([1-9]00|bold)$/),IX=P0(/^(small-caps)$/),TX="normal",CX="normal",PX=[],SX=function(K){var Y,X,Z,Q,W=0;while(W<3&&K.hasTokens()){if(K.matches(_X));else if(Y===void 0&&K.matches(RX))Y=K.lastValue;else if(X===void 0&&K.matches(DX))X=K.lastValue;else if(Z===void 0&&K.matches(IX))Z=[K.lastValue];else break;K.expect(v0),W+=1}var w=K.expect(i0,R1);if(K.matches(r9))Q=K.expect(i0,R1);K.expect(v0);var H=t9(K),z=H.fontFamily;if(Y===void 0)Y=TX;if(X===void 0)X=CX;if(Z===void 0)Z=PX;var U={fontStyle:Y,fontWeight:X,fontVariant:Z,fontSize:w,fontFamily:z};if(Q!==void 0)U.lineHeight=Q;return U},vX=function(K){var Y=[K.expect(Q5)];while(K.hasTokens())K.expect(v0),Y.push(K.expect(Q5));return{fontVariant:Y}},yX=P0(/(flex-(?:start|end)|center|stretch|space-(?:between|around))/),kX=P0(/(flex-(?:start|end)|center|space-(?:between|around|evenly))/),gX=function(K){var Y=K.expect(yX),X;if(K.hasTokens())K.expect(v0),X=K.expect(kX);else X="stretch";return K.expectEmpty(),{alignContent:Y,justifyContent:X}},xX=P0(/^(solid|double|dotted|dashed)$/),bX="none",hX="solid",mX="black",fX=function(K){var Y,X,Z,Q=!1;while(K.hasTokens()){if(Q)K.expect(v0);if(Y===void 0&&K.matches(C6)){var W=[K.lastValue.toLowerCase()];if(K.saveRewindPoint(),W[0]!=="none"&&K.matches(v0)&&K.matches(C6))W.push(K.lastValue.toLowerCase()),W.sort().reverse();else K.rewind();Y=W.join(" ")}else if(X===void 0&&K.matches(xX))X=K.lastValue;else if(Z===void 0&&K.matches(E8))Z=K.lastValue;else K.throw();Q=!0}return{textDecorationLine:Y!==void 0?Y:bX,textDecorationColor:Z!==void 0?Z:mX,textDecorationStyle:X!==void 0?X:hX}},dX=function(K){var Y=[],X=!1;while(K.hasTokens()){if(X)K.expect(v0);Y.push(K.expect(C6).toLowerCase()),X=!0}return Y.sort().reverse(),{textDecorationLine:Y.join(" ")}},lX=function(K){var Y=a9(K),X=Y.offset,Z=Y.radius,Q=Y.color;return{textShadowOffset:X,textShadowRadius:Z,textShadowColor:Q}},k6=function(K){return function(Y){var X=Y.expect(K);return Y.expectEmpty(),X}},D6=k6(V8),p9=k6(i0),U8=k6(n9),g6=function(K){return function(Y,X){return function(Z){var Q,W,w=Z.expect(K),H;if(Z.hasTokens())Z.expect(QX),H=Z.expect(K);else if(X!==void 0)H=X;else return w;return Z.expectEmpty(),[(Q={},Q[Y+"Y"]=H,Q),(W={},W[Y+"X"]=w,W)]}}},cX=g6(V8),uX=g6(i0),pX=g6(n9),iX={perspective:D6,scale:cX("scale"),scaleX:D6,scaleY:D6,translate:uX("translate",0),translateX:p9,translateY:p9,rotate:U8,rotateX:U8,rotateY:U8,rotateZ:U8,skewX:U8,skewY:U8,skew:pX("skew","0deg")},oX=function(K){var Y=[],X=!1;while(K.hasTokens()){if(X)K.expect(v0);var Z=K.expectFunction(),Q=Z.functionName,W=iX[Q](Z);if(!Array.isArray(W)){var w;W=[(w={},w[Q]=W,w)]}Y=W.concat(Y),X=!0}return{transform:Y}},rX=function(K){return{backgroundColor:K.expect(E8)}},nX=_8({types:[E8],prefix:"border",suffix:"Color"}),sX=_8({directions:["TopLeft","TopRight","BottomRight","BottomLeft"],prefix:"border",suffix:"Radius"}),aX=_8({prefix:"border",suffix:"Width"}),tX=_8({types:[i0,R1,y6,T6],prefix:"margin"}),eX=_8({prefix:"padding"}),JZ=function(K){return{fontWeight:K.expect(WX)}},KZ=function(K){return{shadowOffset:s9(K)}},YZ=function(K){return{textShadowOffset:s9(K)}},e9={aspectRatio:wX,background:rX,border:BX,borderColor:nX,borderRadius:sX,borderWidth:aX,boxShadow:AX,flex:NX,flexFlow:EX,font:SX,fontFamily:t9,fontVariant:vX,fontWeight:JZ,margin:tX,padding:eX,placeContent:gX,shadowOffset:KZ,textShadow:lX,textShadowOffset:YZ,textDecoration:fX,textDecorationLine:dX,transform:oX},i9,C$=i9!=null?new RegExp(i9.join("|")):null,I6="SYMBOL_MATCH",XZ=function(){function J(Y,X){this.index=0,this.nodes=Y,this.functionName=X!=null?X.value:null,this.lastValue=null,this.rewindIndex=-1}var K=J.prototype;return K.hasTokens=function(){return this.index<=this.nodes.length-1},K[I6]=function(){if(!this.hasTokens())return null;var Y=this.nodes[this.index];for(var X=0;X<arguments.length;X+=1){var Z=X<0||arguments.length<=X?void 0:arguments[X],Q=Z(Y);if(Q!==null)return this.index+=1,this.lastValue=Q,Q}return null},K.matches=function(){return this[I6].apply(this,arguments)!==null},K.expect=function(){var X=this[I6].apply(this,arguments);return X!==null?X:this.throw()},K.matchesFunction=function(){var X=this.nodes[this.index];if(X.type!=="function")return null;var Z=new J(X.nodes,X);return this.index+=1,this.lastValue=null,Z},K.expectFunction=function(){var X=this.matchesFunction();return X!==null?X:this.throw()},K.expectEmpty=function(){if(this.hasTokens())this.throw()},K.throw=function(){throw Error("Unexpected token type: "+this.nodes[this.index].type)},K.saveRewindPoint=function(){this.rewindIndex=this.index},K.rewind=function(){if(this.rewindIndex===-1)throw Error("Internal error");this.index=this.rewindIndex,this.lastValue=null},J}(),ZZ=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?:px)?$/i,QZ=/^true|false$/i,WZ=/^null$/i,HZ=/^undefined$/i,J7=function(K,Y){if(!1)var X,Z;var Q=Y.match(ZZ);if(Q!==null)return Number(Q[1]);var W=Y.match(QZ);if(W!==null)return W[0].toLowerCase()==="true";var w=Y.match(WZ);if(w!==null)return null;var H=Y.match(HZ);if(H!==null)return;return Y},wZ=function(K,Y){var X=cY(Y),Z=new XZ(X.nodes);return e9[K](Z)},zZ=wZ,K7=function(K,Y,X){var Z,Q=X===!1||!(K in e9),W=Y.trim(),w=Q?(Z={},Z[K]=J7(K,W),Z):zZ(K,W);return w},Y7=function(K){var Y=/^--\w+/.test(K);if(Y)return K;return uY(K)},UZ=function(K,Y){if(Y===void 0)Y=[];return K.reduce(function(X,Z){var Q=Y7(Z[0]),W=Z[1],w=Y.indexOf(Q)===-1;return Object.assign(X,K7(Q,W,w))},{})};X7.default=UZ;X7.getPropertyName=Y7;X7.getStylesForProperty=K7;X7.transformRawValue=J7});var Q7=y0((Z7,H5)=>{/*!
|
|
3
3
|
* https://github.com/gilmoreorless/css-background-parser
|
|
4
4
|
* Copyright © 2015 Gilmore Davidson under the MIT license: http://gilmoreorless.mit-license.org/
|
|
5
5
|
*/(function(J){function K(W){if(!(this instanceof K))return new K;this.backgrounds=W||[]}K.prototype.toString=function(){return this.backgrounds.join(", ")};function Y(W){if(!(this instanceof Y))return new Y(W);W=W||{};var w=this;function H(z,U){w[z]=z in W?W[z]:U}H("color",""),H("image","none"),H("attachment","scroll"),H("clip","border-box"),H("origin","padding-box"),H("position","0% 0%"),H("repeat","repeat"),H("size","auto")}Y.prototype.toString=function(){var W=[this.image,this.repeat,this.attachment,this.position+" / "+this.size,this.origin,this.clip];if(this.color)W.unshift(this.color);return W.join(" ")},J.BackgroundList=K,J.Background=Y;function X(W){var w=[],H=/[,\(\)]/,z=0,U="";if(W==null)return w;while(W.length){var V=H.exec(W);if(!V)break;var $=V[0],B=!1;switch($){case",":if(!z)w.push(U.trim()),U="",B=!0;break;case"(":z++;break;case")":z--;break}var M=V.index+1;U+=W.slice(0,B?M-1:M),W=W.slice(M)}if(U.length||W.length)w.push((U+W).trim());return w}function Z(W){return W.trim()}function Q(W){return(W||"").split(",").map(Z)}J.parseElementStyle=function(W){var w=new K;if(W==null)return w;var H=X(W.backgroundImage),z=W.backgroundColor,U=Q(W.backgroundAttachment),V=Q(W.backgroundClip),$=Q(W.backgroundOrigin),B=Q(W.backgroundPosition),M=Q(W.backgroundRepeat),G=Q(W.backgroundSize),q;for(var O=0,j=H.length;O<j;O++){if(q=new Y({image:H[O],attachment:U[O%U.length],clip:V[O%V.length],origin:$[O%$.length],position:B[O%B.length],repeat:M[O%M.length],size:G[O%G.length]}),O===j-1)q.color=z;w.backgrounds.push(q)}return w}})(function(J){if(typeof H5<"u"&&Z7!==void 0)return Z7;return J.cssBgParser={}}(Z7))});var H7=y0((S$,W7)=>{var GZ=/,(?![^\(]*\))/,qZ=/\s(?![^(]*\))/,MZ=/^[0-9]+[a-zA-Z%]+?$/,NZ=(J)=>{let K=J.split(qZ),Y=K.includes("inset"),X=K.slice(-1)[0],Z=!jZ(X)?X:void 0,Q=K.filter((U)=>U!=="inset").filter((U)=>U!==Z).map(LZ),[W,w,H,z]=Q;return{inset:Y,offsetX:W,offsetY:w,blurRadius:H,spreadRadius:z,color:Z}},OZ=(J)=>{let{inset:K,offsetX:Y=0,offsetY:X=0,blurRadius:Z=0,spreadRadius:Q,color:W}=J||{};return[K?"inset":null,Y,X,Z,Q,W].filter((w)=>w!==null&&w!==void 0).map(FZ).map((w)=>(""+w).trim()).join(" ")},jZ=(J)=>J==="0"||MZ.test(J),LZ=(J)=>{if(!/px$/.test(J)&&J!=="0")return J;let K=parseFloat(J);return!isNaN(K)?K:J},FZ=(J)=>typeof J==="number"&&J!==0?J+"px":J,EZ=(J)=>J.split(GZ).map((K)=>K.trim()).map(NZ),_Z=(J)=>J.map(OZ).join(", ");W7.exports={parse:EZ,stringify:_Z}});var z7=y0((v$,w7)=>{w7.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]}});var V7=y0((y$,U7)=>{var RZ=new RegExp("[^#a-f\\d]","gi"),DZ=new RegExp("^#?[a-f\\d]{3}[a-f\\d]?$|^#?[a-f\\d]{6}([a-f\\d]{2})?$","i");U7.exports=(J,K={})=>{if(typeof J!=="string"||RZ.test(J)||!DZ.test(J))throw TypeError("Expected a valid hex string");J=J.replace(/^#/,"");let Y=1;if(J.length===8)Y=Number.parseInt(J.slice(6,8),16)/255,J=J.slice(0,6);if(J.length===4)Y=Number.parseInt(J.slice(3,4).repeat(2),16)/255,J=J.slice(0,3);if(J.length===3)J=J[0]+J[0]+J[1]+J[1]+J[2]+J[2];let X=Number.parseInt(J,16),Z=X>>16,Q=X>>8&255,W=X&255,w=typeof K.alpha==="number"?K.alpha:Y;if(K.format==="array")return[Z,Q,W,w];if(K.format==="css"){let H=w===1?"":` / ${Number((w*100).toFixed(2))}%`;return`rgb(${Z} ${Q} ${W}${H})`}return{red:Z,green:Q,blue:W,alpha:w}}});var M7=y0((g$,q7)=>{/*!
|
|
@@ -58,12 +58,12 @@ $
|
|
|
58
58
|
\\s*(?:\\s*\\/\\s*${B8}\\s*)?
|
|
59
59
|
\\)
|
|
60
60
|
$
|
|
61
|
-
`.replace(/\n|\s/g,""),fZ=new RegExp(mZ),dZ=/^transparent$/,lZ=new RegExp(dZ,"i"),b6=(J,K,Y)=>Math.min(Math.max(K,J),Y),cZ=(J)=>{let K=J;if(typeof K!=="number")K=K.endsWith("%")?parseFloat(K)*255/100:parseFloat(K);return b6(Math.round(K),0,255)},$7=(J)=>b6(parseFloat(J),0,100);function G7(J){let K=J;if(typeof K!=="number")K=K.endsWith("%")?parseFloat(K)/100:parseFloat(K);return b6(K,0,1)}function uZ(J){let[K,Y,X,Z]=A7.default(J,{format:"array"});return w5([null,K,Y,X,Z])}function pZ([,J,K,Y,X=1]){let Z=J;if(Z.endsWith("turn"))Z=parseFloat(Z)*360/1;else if(Z.endsWith("rad"))Z=Math.round(parseFloat(Z)*180/Math.PI);else Z=parseFloat(Z);return{type:"hsl",values:[Z,$7(K),$7(Y)],alpha:G7(X===null?1:X)}}function w5([,J,K,Y,X=1]){return{type:"rgb",values:[J,K,Y].map(cZ),alpha:G7(X===null?1:X)}}var iZ=(J)=>{if(typeof J!=="string")return null;let K=TZ.exec(J);if(K)return uZ(K[0]);let Y=vZ.exec(J)||PZ.exec(J);if(Y)return pZ(Y);let X=hZ.exec(J)||fZ.exec(J)||kZ.exec(J)||xZ.exec(J);if(X)return w5(X);if(lZ.exec(J))return w5([null,0,0,0,0]);let Z=B7.default[J.toLowerCase()];if(Z)return w5([null,Z[0],Z[1],Z[2],1]);return null},z5=iZ;var IK=e0(_6(),1),TK=e0(W5(),1),M4=e0(M7(),1);function m6(J,K=","){let Y=[],X=0,Z=0;K=new RegExp(K);for(let Q=0;Q<J.length;Q++)J[Q]==="("?Z++:J[Q]===")"&&Z--,Z===0&&K.test(J[Q])&&(Y.push(J.slice(X,Q).trim()),X=Q+1);return Y.push(J.slice(X).trim()),Y}function h6(J){let K=[];for(let Y=0,X=J.length;Y<X;){let[Z,Q]=m6(J[Y],/\s+/);nZ(J[Y+1])?(K.push({color:Z,offset:s1(Q),hint:s1(J[Y+1])}),Y+=2):(K.push({color:Z,offset:s1(Q)}),Y++)}return K}var j7=/^(-?\d+\.?\d*)(%|vw|vh|px|em|rem|deg|rad|grad|turn)$/;function nZ(J){return j7.test(J)}function s1(J){if(!J)return;let[,K,Y]=J.trim().match(j7)||[];return{value:K,unit:Y}}function L7(J){if(!/^(repeating-)?linear-gradient/.test(J))throw SyntaxError(`could not find syntax for this item: ${J}`);let[,K,Y]=J.match(/(repeating-)?linear-gradient\((.+)\)/),X={orientation:{type:"directional",value:"bottom"},repeating:!!K,stops:[]},Z=m6(Y),Q=sZ(Z[0]);return Q&&(X.orientation=Q,Z.shift()),{...X,stops:h6(Z)}}function sZ(J){return J.startsWith("to ")?{type:"directional",value:J.replace("to ","")}:["turn","deg","grad","rad"].some((K)=>J.endsWith(K))?{type:"angular",value:s1(J)}:null}var aZ=new Set(["closest-corner","closest-side","farthest-corner","farthest-side"]),tZ=new Set(["center","left","top","right","bottom"]);function N7(J){return aZ.has(J)}function O7(J){return tZ.has(J)}function eZ(J){let K=Array(2).fill("");for(let Y=0;Y<2;Y++)J[Y]?K[Y]=J[Y]:K[Y]="center";return K}function F7(J){if(!/(repeating-)?radial-gradient/.test(J))throw SyntaxError(`could not find syntax for this item: ${J}`);let[,K,Y]=J.match(/(repeating-)?radial-gradient\((.+)\)/),X={shape:"ellipse",repeating:!!K,size:[{type:"keyword",value:"farthest-corner"}],position:{x:{type:"keyword",value:"center"},y:{type:"keyword",value:"center"}},stops:[]},Z=m6(Y);if(JQ(Z[0]))return{...X,stops:h6(Z)};let Q=Z[0].split("at").map((z)=>z.trim()),W=((Q[0]||"").match(/(circle|ellipse)/)||[])[1],w=(Q[0]||"").match(/(-?\d+\.?\d*(vw|vh|px|em|rem|%|rad|grad|turn|deg)?|closest-corner|closest-side|farthest-corner|farthest-side)/g)||[],H=eZ((Q[1]||"").split(" "));return W?X.shape=W:w.length===1&&!N7(w[0])?X.shape="circle":X.shape="ellipse",w.length===0&&w.push("farthest-corner"),X.size=w.map((z)=>N7(z)?{type:"keyword",value:z}:{type:"length",value:s1(z)}),X.position.x=O7(H[0])?{type:"keyword",value:H[0]}:{type:"length",value:s1(H[0])},X.position.y=O7(H[1])?{type:"keyword",value:H[1]}:{type:"length",value:s1(H[1])},(W||w.length>0||Q[1])&&Z.shift(),{...X,stops:h6(Z)}}function JQ(J){return/(circle|ellipse|at)/.test(J)?!1:/^(rgba?|hwb|hsl|lab|lch|oklab|color|#|[a-zA-Z]+)/.test(J)}var N4=e0(W5(),1);var J1=Uint8Array,t1=Uint16Array,s7=Uint32Array,a7=new J1([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]),t7=new J1([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]),KQ=new J1([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),e7=function(J,K){var Y=new t1(31);for(var X=0;X<31;++X)Y[X]=K+=1<<J[X-1];var Z=new s7(Y[30]);for(var X=1;X<30;++X)for(var Q=Y[X];Q<Y[X+1];++Q)Z[Q]=Q-Y[X]<<5|X;return[Y,Z]},JJ=e7(a7,2),KJ=JJ[0],YQ=JJ[1];KJ[28]=258,YQ[258]=28;var XQ=e7(t7,0),ZQ=XQ[0],n6=new t1(32768);for(Z0=0;Z0<32768;++Z0)j1=(Z0&43690)>>>1|(Z0&21845)<<1,j1=(j1&52428)>>>2|(j1&13107)<<2,j1=(j1&61680)>>>4|(j1&3855)<<4,n6[Z0]=((j1&65280)>>>8|(j1&255)<<8)>>>1;var j1,Z0,D8=function(J,K,Y){var X=J.length,Z=0,Q=new t1(K);for(;Z<X;++Z)if(J[Z])++Q[J[Z]-1];var W=new t1(K);for(Z=0;Z<K;++Z)W[Z]=W[Z-1]+Q[Z-1]<<1;var w;if(Y){w=new t1(1<<K);var H=15-K;for(Z=0;Z<X;++Z)if(J[Z]){var z=Z<<4|J[Z],U=K-J[Z],V=W[J[Z]-1]++<<U;for(var $=V|(1<<U)-1;V<=$;++V)w[n6[V]>>>H]=z}}else{w=new t1(X);for(Z=0;Z<X;++Z)if(J[Z])w[Z]=n6[W[J[Z]-1]++]>>>15-J[Z]}return w},C8=new J1(288);for(Z0=0;Z0<144;++Z0)C8[Z0]=8;var Z0;for(Z0=144;Z0<256;++Z0)C8[Z0]=9;var Z0;for(Z0=256;Z0<280;++Z0)C8[Z0]=7;var Z0;for(Z0=280;Z0<288;++Z0)C8[Z0]=8;var Z0,YJ=new J1(32);for(Z0=0;Z0<32;++Z0)YJ[Z0]=5;var Z0,QQ=D8(C8,9,1),WQ=D8(YJ,5,1),f6=function(J){var K=J[0];for(var Y=1;Y<J.length;++Y)if(J[Y]>K)K=J[Y];return K},H1=function(J,K,Y){var X=K/8|0;return(J[X]|J[X+1]<<8)>>(K&7)&Y},d6=function(J,K){var Y=K/8|0;return(J[Y]|J[Y+1]<<8|J[Y+2]<<16)>>(K&7)},HQ=function(J){return(J+7)/8|0},wQ=function(J,K,Y){if(K==null||K<0)K=0;if(Y==null||Y>J.length)Y=J.length;var X=new(J.BYTES_PER_ELEMENT==2?t1:J.BYTES_PER_ELEMENT==4?s7:J1)(Y-K);return X.set(J.subarray(K,Y)),X},zQ=["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"],h1=function(J,K,Y){var X=Error(K||zQ[J]);if(X.code=J,Error.captureStackTrace)Error.captureStackTrace(X,h1);if(!Y)throw X;return X},UQ=function(J,K,Y){var X=J.length;if(!X||Y&&Y.f&&!Y.l)return K||new J1(0);var Z=!K||Y,Q=!Y||Y.i;if(!Y)Y={};if(!K)K=new J1(X*3);var W=function(x){var e=K.length;if(x>e){var Y0=new J1(Math.max(e*2,x));Y0.set(K),K=Y0}},w=Y.f||0,H=Y.p||0,z=Y.b||0,U=Y.l,V=Y.d,$=Y.m,B=Y.n,M=X*8;do{if(!U){w=H1(J,H,1);var G=H1(J,H+1,3);if(H+=3,!G){var q=HQ(H)+4,O=J[q-4]|J[q-3]<<8,j=q+O;if(j>X){if(Q)h1(0);break}if(Z)W(z+O);K.set(J.subarray(q,j),z),Y.b=z+=O,Y.p=H=j*8,Y.f=w;continue}else if(G==1)U=QQ,V=WQ,$=9,B=5;else if(G==2){var _=H1(J,H,31)+257,R=H1(J,H+10,15)+4,E=_+H1(J,H+5,31)+1;H+=14;var L=new J1(E),T=new J1(19);for(var D=0;D<R;++D)T[KQ[D]]=H1(J,H+D*3,7);H+=R*3;var P=f6(T),k=(1<<P)-1,c=D8(T,P,1);for(var D=0;D<E;){var n=c[H1(J,H,k)];H+=n&15;var q=n>>>4;if(q<16)L[D++]=q;else{var u=0,C=0;if(q==16)C=3+H1(J,H,3),H+=2,u=L[D-1];else if(q==17)C=3+H1(J,H,7),H+=3;else if(q==18)C=11+H1(J,H,127),H+=7;while(C--)L[D++]=u}}var S=L.subarray(0,_),I=L.subarray(_);$=f6(S),B=f6(I),U=D8(S,$,1),V=D8(I,B,1)}else h1(1);if(H>M){if(Q)h1(0);break}}if(Z)W(z+131072);var d=(1<<$)-1,m=(1<<B)-1,s=H;for(;;s=H){var u=U[d6(J,H)&d],p=u>>>4;if(H+=u&15,H>M){if(Q)h1(0);break}if(!u)h1(2);if(p<256)K[z++]=p;else if(p==256){s=H,U=null;break}else{var f=p-254;if(p>264){var D=p-257,l=a7[D];f=H1(J,H,(1<<l)-1)+KJ[D],H+=l}var y=V[d6(J,H)&m],g=y>>>4;if(!y)h1(3);H+=y&15;var I=ZQ[g];if(g>3){var l=t7[g];I+=d6(J,H)&(1<<l)-1,H+=l}if(H>M){if(Q)h1(0);break}if(Z)W(z+131072);var r=z+f;for(;z<r;z+=4)K[z]=K[z-I],K[z+1]=K[z+1-I],K[z+2]=K[z+2-I],K[z+3]=K[z+3-I];z=r}}if(Y.l=U,Y.p=s,Y.b=z,Y.f=w,U)w=1,Y.m=$,Y.d=V,Y.n=B}while(!w);return z==K.length?K:wQ(K,0,z)},VQ=new J1(0);function $Q(J,K){return UQ(J,K)}var BQ=typeof TextDecoder<"u"&&new TextDecoder,AQ=0;try{BQ.decode(VQ,{stream:!0}),AQ=1}catch(J){}function b0(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}b0.prototype.moveTo=function(J,K){this.commands.push({type:"M",x:J,y:K})};b0.prototype.lineTo=function(J,K){this.commands.push({type:"L",x:J,y:K})};b0.prototype.curveTo=b0.prototype.bezierCurveTo=function(J,K,Y,X,Z,Q){this.commands.push({type:"C",x1:J,y1:K,x2:Y,y2:X,x:Z,y:Q})};b0.prototype.quadTo=b0.prototype.quadraticCurveTo=function(J,K,Y,X){this.commands.push({type:"Q",x1:J,y1:K,x:Y,y:X})};b0.prototype.close=b0.prototype.closePath=function(){this.commands.push({type:"Z"})};b0.prototype.extend=function(J){if(J.commands)J=J.commands;Array.prototype.push.apply(this.commands,J)};b0.prototype.toPathData=function(J){J=J!==void 0?J:2;function K(W){if(Math.round(W)===W)return""+Math.round(W);else return W.toFixed(J)}function Y(){var W=arguments,w="";for(var H=0;H<arguments.length;H+=1){var z=W[H];if(z>=0&&H>0)w+=" ";w+=K(z)}return w}var X="";for(var Z=0;Z<this.commands.length;Z+=1){var Q=this.commands[Z];if(Q.type==="M")X+="M"+Y(Q.x,Q.y);else if(Q.type==="L")X+="L"+Y(Q.x,Q.y);else if(Q.type==="C")X+="C"+Y(Q.x1,Q.y1,Q.x2,Q.y2,Q.x,Q.y);else if(Q.type==="Q")X+="Q"+Y(Q.x1,Q.y1,Q.x,Q.y);else if(Q.type==="Z")X+="Z"}return X};var GQ=[".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"],qQ=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],MQ=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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 XJ(J){this.font=J}XJ.prototype.charToGlyphIndex=function(J){var K=J.codePointAt(0),Y=this.font.glyphs;if(Y)for(var X=0;X<Y.length;X+=1){var Z=Y.get(X);for(var Q=0;Q<Z.unicodes.length;Q+=1)if(Z.unicodes[Q]===K)return X}return null};function ZJ(J){this.cmap=J}ZJ.prototype.charToGlyphIndex=function(J){return this.cmap.glyphIndexMap[J.codePointAt(0)]||0};function B5(J,K){this.encoding=J,this.charset=K}B5.prototype.charToGlyphIndex=function(J){var K=J.codePointAt(0),Y=this.encoding[K];return this.charset.indexOf(Y)};function NQ(J){var K,Y=J.tables.cmap.glyphIndexMap,X=Object.keys(Y);for(var Z=0;Z<X.length;Z+=1){var Q=X[Z],W=Y[Q];K=J.glyphs.get(W),K.addUnicode(parseInt(Q))}}function OQ(J){J._IndexToUnicodeMap={};var K=J.tables.cmap.glyphIndexMap,Y=Object.keys(K);for(var X=0;X<Y.length;X+=1){var Z=Y[X],Q=K[Z];if(J._IndexToUnicodeMap[Q]===void 0)J._IndexToUnicodeMap[Q]={unicodes:[parseInt(Z)]};else J._IndexToUnicodeMap[Q].unicodes.push(parseInt(Z))}}function jQ(J,K){if(K.lowMemory)OQ(J);else NQ(J)}function QJ(J){throw Error(J)}function E7(J,K){if(!J)QJ(K)}var z0={fail:QJ,argument:E7,assert:E7};function LQ(J,K){var Y=K||new b0;return{configurable:!0,get:function(){if(typeof Y==="function")Y=Y();return Y},set:function(X){Y=X}}}function T1(J){this.bindConstructorValues(J)}T1.prototype.bindConstructorValues=function(J){if(this.index=J.index||0,this.name=J.name||null,this.unicode=J.unicode||void 0,this.unicodes=J.unicodes||J.unicode!==void 0?[J.unicode]:[],"xMin"in J)this.xMin=J.xMin;if("yMin"in J)this.yMin=J.yMin;if("xMax"in J)this.xMax=J.xMax;if("yMax"in J)this.yMax=J.yMax;if("advanceWidth"in J)this.advanceWidth=J.advanceWidth;Object.defineProperty(this,"path",LQ(this,J.path))};T1.prototype.addUnicode=function(J){if(this.unicodes.length===0)this.unicode=J;this.unicodes.push(J)};T1.prototype.getPath=function(J,K,Y,X,Z){J=J!==void 0?J:0,K=K!==void 0?K:0,Y=Y!==void 0?Y:72;var Q,W;if(!X)X={};var{xScale:w,yScale:H}=X;if(X.hinting&&Z&&Z.hinting)W=this.path&&Z.hinting.exec(this,Y);if(W)Q=Z.hinting.getCommands(W),J=Math.round(J),K=Math.round(K),w=H=1;else{Q=this.path.commands;var z=1/(this.path.unitsPerEm||1000)*Y;if(w===void 0)w=z;if(H===void 0)H=z}var U=new b0;for(var V=0;V<Q.length;V+=1){var $=Q[V];if($.type==="M")U.moveTo(J+$.x*w,K+-$.y*H);else if($.type==="L")U.lineTo(J+$.x*w,K+-$.y*H);else if($.type==="Q")U.quadraticCurveTo(J+$.x1*w,K+-$.y1*H,J+$.x*w,K+-$.y*H);else if($.type==="C")U.curveTo(J+$.x1*w,K+-$.y1*H,J+$.x2*w,K+-$.y2*H,J+$.x*w,K+-$.y*H);else if($.type==="Z")U.closePath()}return U};T1.prototype.getContours=function(){if(this.points===void 0)return[];var J=[],K=[];for(var Y=0;Y<this.points.length;Y+=1){var X=this.points[Y];if(K.push(X),X.lastPointOfContour)J.push(K),K=[]}return z0.argument(K.length===0,"There are still points left in the current contour."),J};T1.prototype.getMetrics=function(){var J=this.path.commands,K=[],Y=[];for(var X=0;X<J.length;X+=1){var Z=J[X];if(Z.type!=="Z")K.push(Z.x),Y.push(Z.y);if(Z.type==="Q"||Z.type==="C")K.push(Z.x1),Y.push(Z.y1);if(Z.type==="C")K.push(Z.x2),Y.push(Z.y2)}var Q={xMin:Math.min.apply(null,K),yMin:Math.min.apply(null,Y),xMax:Math.max.apply(null,K),yMax:Math.max.apply(null,Y),leftSideBearing:this.leftSideBearing};if(!isFinite(Q.xMin))Q.xMin=0;if(!isFinite(Q.xMax))Q.xMax=this.advanceWidth;if(!isFinite(Q.yMin))Q.yMin=0;if(!isFinite(Q.yMax))Q.yMax=0;return Q.rightSideBearing=this.advanceWidth-Q.leftSideBearing-(Q.xMax-Q.xMin),Q};function U5(J,K,Y){Object.defineProperty(J,K,{get:function(){return J.path,J[Y]},set:function(X){J[Y]=X},enumerable:!0,configurable:!0})}function t6(J,K){if(this.font=J,this.glyphs={},Array.isArray(K))for(var Y=0;Y<K.length;Y++){var X=K[Y];X.path.unitsPerEm=J.unitsPerEm,this.glyphs[Y]=X}this.length=K&&K.length||0}t6.prototype.get=function(J){if(this.glyphs[J]===void 0){if(this.font._push(J),typeof this.glyphs[J]==="function")this.glyphs[J]=this.glyphs[J]();var K=this.glyphs[J],Y=this.font._IndexToUnicodeMap[J];if(Y)for(var X=0;X<Y.unicodes.length;X++)K.addUnicode(Y.unicodes[X]);this.glyphs[J].advanceWidth=this.font._hmtxTableData[J].advanceWidth,this.glyphs[J].leftSideBearing=this.font._hmtxTableData[J].leftSideBearing}else if(typeof this.glyphs[J]==="function")this.glyphs[J]=this.glyphs[J]();return this.glyphs[J]};t6.prototype.push=function(J,K){this.glyphs[J]=K,this.length++};function FQ(J,K){return new T1({index:K,font:J})}function EQ(J,K,Y,X,Z,Q){return function(){var W=new T1({index:K,font:J});return W.path=function(){Y(W,X,Z);var w=Q(J.glyphs,W);return w.unitsPerEm=J.unitsPerEm,w},U5(W,"xMin","_xMin"),U5(W,"xMax","_xMax"),U5(W,"yMin","_yMin"),U5(W,"yMax","_yMax"),W}}function _Q(J,K,Y,X){return function(){var Z=new T1({index:K,font:J});return Z.path=function(){var Q=Y(J,Z,X);return Q.unitsPerEm=J.unitsPerEm,Q},Z}}var F1={GlyphSet:t6,glyphLoader:FQ,ttfGlyphLoader:EQ,cffGlyphLoader:_Q};function l6(J,K){var Y=0,X=J.length-1;while(Y<=X){var Z=Y+X>>>1,Q=J[Z].tag;if(Q===K)return Z;else if(Q<K)Y=Z+1;else X=Z-1}return-Y-1}function _7(J,K){var Y=0,X=J.length-1;while(Y<=X){var Z=Y+X>>>1,Q=J[Z];if(Q===K)return Z;else if(Q<K)Y=Z+1;else X=Z-1}return-Y-1}function R7(J,K){var Y,X=0,Z=J.length-1;while(X<=Z){var Q=X+Z>>>1;Y=J[Q];var W=Y.start;if(W===K)return Y;else if(W<K)X=Q+1;else Z=Q-1}if(X>0){if(Y=J[X-1],K>Y.end)return 0;return Y}}function P8(J,K){this.font=J,this.tableName=K}P8.prototype={searchTag:l6,binSearch:_7,getTable:function(J){var K=this.font.tables[this.tableName];if(!K&&J)K=this.font.tables[this.tableName]=this.createDefaultTable();return K},getDefaultScriptName:function(){var J=this.getTable();if(!J)return;var K=!1;for(var Y=0;Y<J.scripts.length;Y++){var X=J.scripts[Y].tag;if(X==="DFLT")return X;if(X==="latn")K=!0}if(K)return"latn"},getScriptTable:function(J,K){var Y=this.getTable(K);if(Y){J=J||"DFLT";var X=Y.scripts,Z=l6(Y.scripts,J);if(Z>=0)return X[Z].script;else if(K){var Q={tag:J,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return X.splice(-1-Z,0,Q),Q.script}}},getLangSysTable:function(J,K,Y){var X=this.getScriptTable(J,Y);if(X){if(!K||K==="dflt"||K==="DFLT")return X.defaultLangSys;var Z=l6(X.langSysRecords,K);if(Z>=0)return X.langSysRecords[Z].langSys;else if(Y){var Q={tag:K,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return X.langSysRecords.splice(-1-Z,0,Q),Q.langSys}}},getFeatureTable:function(J,K,Y,X){var Z=this.getLangSysTable(J,K,X);if(Z){var Q,W=Z.featureIndexes,w=this.font.tables[this.tableName].features;for(var H=0;H<W.length;H++)if(Q=w[W[H]],Q.tag===Y)return Q.feature;if(X){var z=w.length;return z0.assert(z===0||Y>=w[z-1].tag,"Features must be added in alphabetical order."),Q={tag:Y,feature:{params:0,lookupListIndexes:[]}},w.push(Q),W.push(z),Q.feature}}},getLookupTables:function(J,K,Y,X,Z){var Q=this.getFeatureTable(J,K,Y,Z),W=[];if(Q){var w,H=Q.lookupListIndexes,z=this.font.tables[this.tableName].lookups;for(var U=0;U<H.length;U++)if(w=z[H[U]],w.lookupType===X)W.push(w);if(W.length===0&&Z){w={lookupType:X,lookupFlag:0,subtables:[],markFilteringSet:void 0};var V=z.length;return z.push(w),H.push(V),[w]}}return W},getGlyphClass:function(J,K){switch(J.format){case 1:if(J.startGlyph<=K&&K<J.startGlyph+J.classes.length)return J.classes[K-J.startGlyph];return 0;case 2:var Y=R7(J.ranges,K);return Y?Y.classId:0}},getCoverageIndex:function(J,K){switch(J.format){case 1:var Y=_7(J.glyphs,K);return Y>=0?Y:-1;case 2:var X=R7(J.ranges,K);return X?X.index+K-X.start:-1}},expandCoverage:function(J){if(J.format===1)return J.glyphs;else{var K=[],Y=J.ranges;for(var X=0;X<Y.length;X++){var Z=Y[X],Q=Z.start,W=Z.end;for(var w=Q;w<=W;w++)K.push(w)}return K}}};function S8(J){P8.call(this,J,"gpos")}S8.prototype=P8.prototype;S8.prototype.init=function(){var J=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(J)};S8.prototype.getKerningValue=function(J,K,Y){for(var X=0;X<J.length;X++){var Z=J[X].subtables;for(var Q=0;Q<Z.length;Q++){var W=Z[Q],w=this.getCoverageIndex(W.coverage,K);if(w<0)continue;switch(W.posFormat){case 1:var H=W.pairSets[w];for(var z=0;z<H.length;z++){var U=H[z];if(U.secondGlyph===Y)return U.value1&&U.value1.xAdvance||0}break;case 2:var V=this.getGlyphClass(W.classDef1,K),$=this.getGlyphClass(W.classDef2,Y),B=W.classRecords[V][$];return B.value1&&B.value1.xAdvance||0}}}return 0};S8.prototype.getKerningTables=function(J,K){if(this.font.tables.gpos)return this.getLookupTables(J,K,"kern",2)};function o0(J){P8.call(this,J,"gsub")}function RQ(J,K){var Y=J.length;if(Y!==K.length)return!1;for(var X=0;X<Y;X++)if(J[X]!==K[X])return!1;return!0}function e6(J,K,Y){var X=J.subtables;for(var Z=0;Z<X.length;Z++){var Q=X[Z];if(Q.substFormat===K)return Q}if(Y)return X.push(Y),Y;return}o0.prototype=P8.prototype;o0.prototype.createDefaultTable=function(){return{version:1,scripts:[{tag:"DFLT",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}};o0.prototype.getSingle=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,1);for(var Q=0;Q<Z.length;Q++){var W=Z[Q].subtables;for(var w=0;w<W.length;w++){var H=W[w],z=this.expandCoverage(H.coverage),U=void 0;if(H.substFormat===1){var V=H.deltaGlyphId;for(U=0;U<z.length;U++){var $=z[U];X.push({sub:$,by:$+V})}}else{var B=H.substitute;for(U=0;U<z.length;U++)X.push({sub:z[U],by:B[U]})}}}return X};o0.prototype.getMultiple=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,2);for(var Q=0;Q<Z.length;Q++){var W=Z[Q].subtables;for(var w=0;w<W.length;w++){var H=W[w],z=this.expandCoverage(H.coverage),U=void 0;for(U=0;U<z.length;U++){var V=z[U],$=H.sequences[U];X.push({sub:V,by:$})}}}return X};o0.prototype.getAlternates=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,3);for(var Q=0;Q<Z.length;Q++){var W=Z[Q].subtables;for(var w=0;w<W.length;w++){var H=W[w],z=this.expandCoverage(H.coverage),U=H.alternateSets;for(var V=0;V<z.length;V++)X.push({sub:z[V],by:U[V]})}}return X};o0.prototype.getLigatures=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,4);for(var Q=0;Q<Z.length;Q++){var W=Z[Q].subtables;for(var w=0;w<W.length;w++){var H=W[w],z=this.expandCoverage(H.coverage),U=H.ligatureSets;for(var V=0;V<z.length;V++){var $=z[V],B=U[V];for(var M=0;M<B.length;M++){var G=B[M];X.push({sub:[$].concat(G.components),by:G.ligGlyph})}}}}return X};o0.prototype.addSingle=function(J,K,Y,X){var Z=this.getLookupTables(Y,X,J,1,!0)[0],Q=e6(Z,2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});z0.assert(Q.coverage.format===1,"Single: unable to modify coverage table format "+Q.coverage.format);var W=K.sub,w=this.binSearch(Q.coverage.glyphs,W);if(w<0)w=-1-w,Q.coverage.glyphs.splice(w,0,W),Q.substitute.splice(w,0,0);Q.substitute[w]=K.by};o0.prototype.addMultiple=function(J,K,Y,X){z0.assert(K.by instanceof Array&&K.by.length>1,'Multiple: "by" must be an array of two or more ids');var Z=this.getLookupTables(Y,X,J,2,!0)[0],Q=e6(Z,1,{substFormat:1,coverage:{format:1,glyphs:[]},sequences:[]});z0.assert(Q.coverage.format===1,"Multiple: unable to modify coverage table format "+Q.coverage.format);var W=K.sub,w=this.binSearch(Q.coverage.glyphs,W);if(w<0)w=-1-w,Q.coverage.glyphs.splice(w,0,W),Q.sequences.splice(w,0,0);Q.sequences[w]=K.by};o0.prototype.addAlternate=function(J,K,Y,X){var Z=this.getLookupTables(Y,X,J,3,!0)[0],Q=e6(Z,1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});z0.assert(Q.coverage.format===1,"Alternate: unable to modify coverage table format "+Q.coverage.format);var W=K.sub,w=this.binSearch(Q.coverage.glyphs,W);if(w<0)w=-1-w,Q.coverage.glyphs.splice(w,0,W),Q.alternateSets.splice(w,0,0);Q.alternateSets[w]=K.by};o0.prototype.addLigature=function(J,K,Y,X){var Z=this.getLookupTables(Y,X,J,4,!0)[0],Q=Z.subtables[0];if(!Q)Q={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},Z.subtables[0]=Q;z0.assert(Q.coverage.format===1,"Ligature: unable to modify coverage table format "+Q.coverage.format);var W=K.sub[0],w=K.sub.slice(1),H={ligGlyph:K.by,components:w},z=this.binSearch(Q.coverage.glyphs,W);if(z>=0){var U=Q.ligatureSets[z];for(var V=0;V<U.length;V++)if(RQ(U[V].components,w))return;U.push(H)}else z=-1-z,Q.coverage.glyphs.splice(z,0,W),Q.ligatureSets.splice(z,0,[H])};o0.prototype.getFeature=function(J,K,Y){if(/ss\d\d/.test(J))return this.getSingle(J,K,Y);switch(J){case"aalt":case"salt":return this.getSingle(J,K,Y).concat(this.getAlternates(J,K,Y));case"dlig":case"liga":case"rlig":return this.getLigatures(J,K,Y);case"ccmp":return this.getMultiple(J,K,Y).concat(this.getLigatures(J,K,Y));case"stch":return this.getMultiple(J,K,Y)}return};o0.prototype.add=function(J,K,Y,X){if(/ss\d\d/.test(J))return this.addSingle(J,K,Y,X);switch(J){case"aalt":case"salt":if(typeof K.by==="number")return this.addSingle(J,K,Y,X);return this.addAlternate(J,K,Y,X);case"dlig":case"liga":case"rlig":return this.addLigature(J,K,Y,X);case"ccmp":if(K.by instanceof Array)return this.addMultiple(J,K,Y,X);return this.addLigature(J,K,Y,X)}return};function R8(J,K){if(!J)throw K}function D7(J,K){return J.getUint8(K)}function A5(J,K){return J.getUint16(K,!1)}function DQ(J,K){return J.getInt16(K,!1)}function J4(J,K){return J.getUint32(K,!1)}function WJ(J,K){var Y=J.getInt16(K,!1),X=J.getUint16(K+2,!1);return Y+X/65535}function IQ(J,K){var Y="";for(var X=K;X<K+4;X+=1)Y+=String.fromCharCode(J.getInt8(X));return Y}function TQ(J,K,Y){var X=0;for(var Z=0;Z<Y;Z+=1)X<<=8,X+=J.getUint8(K+Z);return X}function CQ(J,K,Y){var X=[];for(var Z=K;Z<Y;Z+=1)X.push(J.getUint8(Z));return X}function PQ(J){var K="";for(var Y=0;Y<J.length;Y+=1)K+=String.fromCharCode(J[Y]);return K}var SQ={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function v(J,K){this.data=J,this.offset=K,this.relativeOffset=0}v.prototype.parseByte=function(){var J=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,J};v.prototype.parseChar=function(){var J=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,J};v.prototype.parseCard8=v.prototype.parseByte;v.prototype.parseUShort=function(){var J=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,J};v.prototype.parseCard16=v.prototype.parseUShort;v.prototype.parseSID=v.prototype.parseUShort;v.prototype.parseOffset16=v.prototype.parseUShort;v.prototype.parseShort=function(){var J=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,J};v.prototype.parseF2Dot14=function(){var J=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,J};v.prototype.parseULong=function(){var J=J4(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,J};v.prototype.parseOffset32=v.prototype.parseULong;v.prototype.parseFixed=function(){var J=WJ(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,J};v.prototype.parseString=function(J){var K=this.data,Y=this.offset+this.relativeOffset,X="";this.relativeOffset+=J;for(var Z=0;Z<J;Z++)X+=String.fromCharCode(K.getUint8(Y+Z));return X};v.prototype.parseTag=function(){return this.parseString(4)};v.prototype.parseLongDateTime=function(){var J=J4(this.data,this.offset+this.relativeOffset+4);return J-=2082844800,this.relativeOffset+=8,J};v.prototype.parseVersion=function(J){var K=A5(this.data,this.offset+this.relativeOffset),Y=A5(this.data,this.offset+this.relativeOffset+2);if(this.relativeOffset+=4,J===void 0)J=4096;return K+Y/J/10};v.prototype.skip=function(J,K){if(K===void 0)K=1;this.relativeOffset+=SQ[J]*K};v.prototype.parseULongList=function(J){if(J===void 0)J=this.parseULong();var K=Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getUint32(X),X+=4;return this.relativeOffset+=J*4,K};v.prototype.parseOffset16List=v.prototype.parseUShortList=function(J){if(J===void 0)J=this.parseUShort();var K=Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getUint16(X),X+=2;return this.relativeOffset+=J*2,K};v.prototype.parseShortList=function(J){var K=Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getInt16(X),X+=2;return this.relativeOffset+=J*2,K};v.prototype.parseByteList=function(J){var K=Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getUint8(X++);return this.relativeOffset+=J,K};v.prototype.parseList=function(J,K){if(!K)K=J,J=this.parseUShort();var Y=Array(J);for(var X=0;X<J;X++)Y[X]=K.call(this);return Y};v.prototype.parseList32=function(J,K){if(!K)K=J,J=this.parseULong();var Y=Array(J);for(var X=0;X<J;X++)Y[X]=K.call(this);return Y};v.prototype.parseRecordList=function(J,K){if(!K)K=J,J=this.parseUShort();var Y=Array(J),X=Object.keys(K);for(var Z=0;Z<J;Z++){var Q={};for(var W=0;W<X.length;W++){var w=X[W],H=K[w];Q[w]=H.call(this)}Y[Z]=Q}return Y};v.prototype.parseRecordList32=function(J,K){if(!K)K=J,J=this.parseULong();var Y=Array(J),X=Object.keys(K);for(var Z=0;Z<J;Z++){var Q={};for(var W=0;W<X.length;W++){var w=X[W],H=K[w];Q[w]=H.call(this)}Y[Z]=Q}return Y};v.prototype.parseStruct=function(J){if(typeof J==="function")return J.call(this);else{var K=Object.keys(J),Y={};for(var X=0;X<K.length;X++){var Z=K[X],Q=J[Z];Y[Z]=Q.call(this)}return Y}};v.prototype.parseValueRecord=function(J){if(J===void 0)J=this.parseUShort();if(J===0)return;var K={};if(J&1)K.xPlacement=this.parseShort();if(J&2)K.yPlacement=this.parseShort();if(J&4)K.xAdvance=this.parseShort();if(J&8)K.yAdvance=this.parseShort();if(J&16)K.xPlaDevice=void 0,this.parseShort();if(J&32)K.yPlaDevice=void 0,this.parseShort();if(J&64)K.xAdvDevice=void 0,this.parseShort();if(J&128)K.yAdvDevice=void 0,this.parseShort();return K};v.prototype.parseValueRecordList=function(){var J=this.parseUShort(),K=this.parseUShort(),Y=Array(K);for(var X=0;X<K;X++)Y[X]=this.parseValueRecord(J);return Y};v.prototype.parsePointer=function(J){var K=this.parseOffset16();if(K>0)return new v(this.data,this.offset+K).parseStruct(J);return};v.prototype.parsePointer32=function(J){var K=this.parseOffset32();if(K>0)return new v(this.data,this.offset+K).parseStruct(J);return};v.prototype.parseListOfLists=function(J){var K=this.parseOffset16List(),Y=K.length,X=this.relativeOffset,Z=Array(Y);for(var Q=0;Q<Y;Q++){var W=K[Q];if(W===0){Z[Q]=void 0;continue}if(this.relativeOffset=W,J){var w=this.parseOffset16List(),H=Array(w.length);for(var z=0;z<w.length;z++)this.relativeOffset=W+w[z],H[z]=J.call(this);Z[Q]=H}else Z[Q]=this.parseUShortList()}return this.relativeOffset=X,Z};v.prototype.parseCoverage=function(){var J=this.offset+this.relativeOffset,K=this.parseUShort(),Y=this.parseUShort();if(K===1)return{format:1,glyphs:this.parseUShortList(Y)};else if(K===2){var X=Array(Y);for(var Z=0;Z<Y;Z++)X[Z]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:X}}throw Error("0x"+J.toString(16)+": Coverage format must be 1 or 2.")};v.prototype.parseClassDef=function(){var J=this.offset+this.relativeOffset,K=this.parseUShort();if(K===1)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};else if(K===2)return{format:2,ranges:this.parseRecordList({start:v.uShort,end:v.uShort,classId:v.uShort})};throw Error("0x"+J.toString(16)+": ClassDef format must be 1 or 2.")};v.list=function(J,K){return function(){return this.parseList(J,K)}};v.list32=function(J,K){return function(){return this.parseList32(J,K)}};v.recordList=function(J,K){return function(){return this.parseRecordList(J,K)}};v.recordList32=function(J,K){return function(){return this.parseRecordList32(J,K)}};v.pointer=function(J){return function(){return this.parsePointer(J)}};v.pointer32=function(J){return function(){return this.parsePointer32(J)}};v.tag=v.prototype.parseTag;v.byte=v.prototype.parseByte;v.uShort=v.offset16=v.prototype.parseUShort;v.uShortList=v.prototype.parseUShortList;v.uLong=v.offset32=v.prototype.parseULong;v.uLongList=v.prototype.parseULongList;v.struct=v.prototype.parseStruct;v.coverage=v.prototype.parseCoverage;v.classDef=v.prototype.parseClassDef;var I7={reserved:v.uShort,reqFeatureIndex:v.uShort,featureIndexes:v.uShortList};v.prototype.parseScriptList=function(){return this.parsePointer(v.recordList({tag:v.tag,script:v.pointer({defaultLangSys:v.pointer(I7),langSysRecords:v.recordList({tag:v.tag,langSys:v.pointer(I7)})})}))||[]};v.prototype.parseFeatureList=function(){return this.parsePointer(v.recordList({tag:v.tag,feature:v.pointer({featureParams:v.offset16,lookupListIndexes:v.uShortList})}))||[]};v.prototype.parseLookupList=function(J){return this.parsePointer(v.list(v.pointer(function(){var K=this.parseUShort();z0.argument(1<=K&&K<=9,"GPOS/GSUB lookup type "+K+" unknown.");var Y=this.parseUShort(),X=Y&16;return{lookupType:K,lookupFlag:Y,subtables:this.parseList(v.pointer(J[K])),markFilteringSet:X?this.parseUShort():void 0}})))||[]};v.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var J=this.parseUShort(),K=this.parseUShort();z0.argument(J===1&&K<1,"GPOS/GSUB feature variations table unknown.");var Y=this.parseRecordList32({conditionSetOffset:v.offset32,featureTableSubstitutionOffset:v.offset32});return Y})||[]};var o={getByte:D7,getCard8:D7,getUShort:A5,getCard16:A5,getShort:DQ,getULong:J4,getFixed:WJ,getTag:IQ,getOffset:TQ,getBytes:CQ,bytesToString:PQ,Parser:v};function T7(J,K,Y,X,Z){var Q;if((K&X)>0){if(Q=J.parseByte(),(K&Z)===0)Q=-Q;Q=Y+Q}else if((K&Z)>0)Q=Y;else Q=Y+J.parseShort();return Q}function HJ(J,K,Y){var X=new o.Parser(K,Y);J.numberOfContours=X.parseShort(),J._xMin=X.parseShort(),J._yMin=X.parseShort(),J._xMax=X.parseShort(),J._yMax=X.parseShort();var Z,Q;if(J.numberOfContours>0){var W=J.endPointIndices=[];for(var w=0;w<J.numberOfContours;w+=1)W.push(X.parseUShort());J.instructionLength=X.parseUShort(),J.instructions=[];for(var H=0;H<J.instructionLength;H+=1)J.instructions.push(X.parseByte());var z=W[W.length-1]+1;Z=[];for(var U=0;U<z;U+=1)if(Q=X.parseByte(),Z.push(Q),(Q&8)>0){var V=X.parseByte();for(var $=0;$<V;$+=1)Z.push(Q),U+=1}if(z0.argument(Z.length===z,"Bad flags."),W.length>0){var B=[],M;if(z>0){for(var G=0;G<z;G+=1)Q=Z[G],M={},M.onCurve=!!(Q&1),M.lastPointOfContour=W.indexOf(G)>=0,B.push(M);var q=0;for(var O=0;O<z;O+=1)Q=Z[O],M=B[O],M.x=T7(X,Q,q,2,16),q=M.x;var j=0;for(var _=0;_<z;_+=1)Q=Z[_],M=B[_],M.y=T7(X,Q,j,4,32),j=M.y}J.points=B}else J.points=[]}else if(J.numberOfContours===0)J.points=[];else{J.isComposite=!0,J.points=[],J.components=[];var R=!0;while(R){Z=X.parseUShort();var E={glyphIndex:X.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};if((Z&1)>0)if((Z&2)>0)E.dx=X.parseShort(),E.dy=X.parseShort();else E.matchedPoints=[X.parseUShort(),X.parseUShort()];else if((Z&2)>0)E.dx=X.parseChar(),E.dy=X.parseChar();else E.matchedPoints=[X.parseByte(),X.parseByte()];if((Z&8)>0)E.xScale=E.yScale=X.parseF2Dot14();else if((Z&64)>0)E.xScale=X.parseF2Dot14(),E.yScale=X.parseF2Dot14();else if((Z&128)>0)E.xScale=X.parseF2Dot14(),E.scale01=X.parseF2Dot14(),E.scale10=X.parseF2Dot14(),E.yScale=X.parseF2Dot14();J.components.push(E),R=!!(Z&32)}if(Z&256){J.instructionLength=X.parseUShort(),J.instructions=[];for(var L=0;L<J.instructionLength;L+=1)J.instructions.push(X.parseByte())}}}function c6(J,K){var Y=[];for(var X=0;X<J.length;X+=1){var Z=J[X],Q={x:K.xScale*Z.x+K.scale01*Z.y+K.dx,y:K.scale10*Z.x+K.yScale*Z.y+K.dy,onCurve:Z.onCurve,lastPointOfContour:Z.lastPointOfContour};Y.push(Q)}return Y}function vQ(J){var K=[],Y=[];for(var X=0;X<J.length;X+=1){var Z=J[X];if(Y.push(Z),Z.lastPointOfContour)K.push(Y),Y=[]}return z0.argument(Y.length===0,"There are still points left in the current contour."),K}function wJ(J){var K=new b0;if(!J)return K;var Y=vQ(J);for(var X=0;X<Y.length;++X){var Z=Y[X],Q=null,W=Z[Z.length-1],w=Z[0];if(W.onCurve)K.moveTo(W.x,W.y);else if(w.onCurve)K.moveTo(w.x,w.y);else{var H={x:(W.x+w.x)*0.5,y:(W.y+w.y)*0.5};K.moveTo(H.x,H.y)}for(var z=0;z<Z.length;++z)if(Q=W,W=w,w=Z[(z+1)%Z.length],W.onCurve)K.lineTo(W.x,W.y);else{var U=Q,V=w;if(!Q.onCurve)U={x:(W.x+Q.x)*0.5,y:(W.y+Q.y)*0.5};if(!w.onCurve)V={x:(W.x+w.x)*0.5,y:(W.y+w.y)*0.5};K.quadraticCurveTo(W.x,W.y,V.x,V.y)}K.closePath()}return K}function zJ(J,K){if(K.isComposite)for(var Y=0;Y<K.components.length;Y+=1){var X=K.components[Y],Z=J.get(X.glyphIndex);if(Z.getPath(),Z.points){var Q=void 0;if(X.matchedPoints===void 0)Q=c6(Z.points,X);else{if(X.matchedPoints[0]>K.points.length-1||X.matchedPoints[1]>Z.points.length-1)throw Error("Matched points out of range in "+K.name);var W=K.points[X.matchedPoints[0]],w=Z.points[X.matchedPoints[1]],H={xScale:X.xScale,scale01:X.scale01,scale10:X.scale10,yScale:X.yScale,dx:0,dy:0};w=c6([w],H)[0],H.dx=W.x-w.x,H.dy=W.y-w.y,Q=c6(Z.points,H)}K.points=K.points.concat(Q)}}return wJ(K.points)}function yQ(J,K,Y,X){var Z=new F1.GlyphSet(X);for(var Q=0;Q<Y.length-1;Q+=1){var W=Y[Q],w=Y[Q+1];if(W!==w)Z.push(Q,F1.ttfGlyphLoader(X,Q,HJ,J,K+W,zJ));else Z.push(Q,F1.glyphLoader(X,Q))}return Z}function kQ(J,K,Y,X){var Z=new F1.GlyphSet(X);return X._push=function(Q){var W=Y[Q],w=Y[Q+1];if(W!==w)Z.push(Q,F1.ttfGlyphLoader(X,Q,HJ,J,K+W,zJ));else Z.push(Q,F1.glyphLoader(X,Q))},Z}function gQ(J,K,Y,X,Z){if(Z.lowMemory)return kQ(J,K,Y,X);else return yQ(J,K,Y,X)}var UJ={getPath:wJ,parse:gQ},VJ,e1,$J,s6;function BJ(J){this.font=J,this.getCommands=function(K){return UJ.getPath(K).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function xQ(J){return J}function AJ(J){return Math.sign(J)*Math.round(Math.abs(J))}function bQ(J){return Math.sign(J)*Math.round(Math.abs(J*2))/2}function hQ(J){return Math.sign(J)*(Math.round(Math.abs(J)+0.5)-0.5)}function mQ(J){return Math.sign(J)*Math.ceil(Math.abs(J))}function fQ(J){return Math.sign(J)*Math.floor(Math.abs(J))}var GJ=function(J){var K=this.srPeriod,Y=this.srPhase,X=this.srThreshold,Z=1;if(J<0)J=-J,Z=-1;if(J+=X-Y,J=Math.trunc(J/K)*K,J+=Y,J<0)return Y*Z;return J*Z},L1={x:1,y:0,axis:"x",distance:function(J,K,Y,X){return(Y?J.xo:J.x)-(X?K.xo:K.x)},interpolate:function(J,K,Y,X){var Z,Q,W,w,H,z,U;if(!X||X===this){if(Z=J.xo-K.xo,Q=J.xo-Y.xo,H=K.x-K.xo,z=Y.x-Y.xo,W=Math.abs(Z),w=Math.abs(Q),U=W+w,U===0){J.x=J.xo+(H+z)/2;return}J.x=J.xo+(H*w+z*W)/U;return}if(Z=X.distance(J,K,!0,!0),Q=X.distance(J,Y,!0,!0),H=X.distance(K,K,!1,!0),z=X.distance(Y,Y,!1,!0),W=Math.abs(Z),w=Math.abs(Q),U=W+w,U===0){L1.setRelative(J,J,(H+z)/2,X,!0);return}L1.setRelative(J,J,(H*w+z*W)/U,X,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(J,K,Y,X,Z){if(!X||X===this){J.x=(Z?K.xo:K.x)+Y;return}var Q=Z?K.xo:K.x,W=Z?K.yo:K.y,w=Q+Y*X.x,H=W+Y*X.y;J.x=w+(J.y-H)/X.normalSlope},slope:0,touch:function(J){J.xTouched=!0},touched:function(J){return J.xTouched},untouch:function(J){J.xTouched=!1}},D1={x:0,y:1,axis:"y",distance:function(J,K,Y,X){return(Y?J.yo:J.y)-(X?K.yo:K.y)},interpolate:function(J,K,Y,X){var Z,Q,W,w,H,z,U;if(!X||X===this){if(Z=J.yo-K.yo,Q=J.yo-Y.yo,H=K.y-K.yo,z=Y.y-Y.yo,W=Math.abs(Z),w=Math.abs(Q),U=W+w,U===0){J.y=J.yo+(H+z)/2;return}J.y=J.yo+(H*w+z*W)/U;return}if(Z=X.distance(J,K,!0,!0),Q=X.distance(J,Y,!0,!0),H=X.distance(K,K,!1,!0),z=X.distance(Y,Y,!1,!0),W=Math.abs(Z),w=Math.abs(Q),U=W+w,U===0){D1.setRelative(J,J,(H+z)/2,X,!0);return}D1.setRelative(J,J,(H*w+z*W)/U,X,!0)},normalSlope:0,setRelative:function(J,K,Y,X,Z){if(!X||X===this){J.y=(Z?K.yo:K.y)+Y;return}var Q=Z?K.xo:K.x,W=Z?K.yo:K.y,w=Q+Y*X.x,H=W+Y*X.y;J.y=H+X.normalSlope*(J.x-w)},slope:Number.POSITIVE_INFINITY,touch:function(J){J.yTouched=!0},touched:function(J){return J.yTouched},untouch:function(J){J.yTouched=!1}};Object.freeze(L1);Object.freeze(D1);function v8(J,K){this.x=J,this.y=K,this.axis=void 0,this.slope=K/J,this.normalSlope=-J/K,Object.freeze(this)}v8.prototype.distance=function(J,K,Y,X){return this.x*L1.distance(J,K,Y,X)+this.y*D1.distance(J,K,Y,X)};v8.prototype.interpolate=function(J,K,Y,X){var Z,Q,W,w,H,z,U;if(W=X.distance(J,K,!0,!0),w=X.distance(J,Y,!0,!0),Z=X.distance(K,K,!1,!0),Q=X.distance(Y,Y,!1,!0),H=Math.abs(W),z=Math.abs(w),U=H+z,U===0){this.setRelative(J,J,(Z+Q)/2,X,!0);return}this.setRelative(J,J,(Z*z+Q*H)/U,X,!0)};v8.prototype.setRelative=function(J,K,Y,X,Z){X=X||this;var Q=Z?K.xo:K.x,W=Z?K.yo:K.y,w=Q+Y*X.x,H=W+Y*X.y,z=X.normalSlope,U=this.slope,V=J.x,$=J.y;J.x=(U*V-z*w+H-$)/(U-z),J.y=U*(J.x-V)+$};v8.prototype.touch=function(J){J.xTouched=!0,J.yTouched=!0};function y8(J,K){var Y=Math.sqrt(J*J+K*K);if(J/=Y,K/=Y,J===1&&K===0)return L1;else if(J===0&&K===1)return D1;else return new v8(J,K)}function I1(J,K,Y,X){this.x=this.xo=Math.round(J*64)/64,this.y=this.yo=Math.round(K*64)/64,this.lastPointOfContour=Y,this.onCurve=X,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}I1.prototype.nextTouched=function(J){var K=this.nextPointOnContour;while(!J.touched(K)&&K!==this)K=K.nextPointOnContour;return K};I1.prototype.prevTouched=function(J){var K=this.prevPointOnContour;while(!J.touched(K)&&K!==this)K=K.prevPointOnContour;return K};var T8=Object.freeze(new I1(0,0)),dQ={cvCutIn:1.0625,deltaBase:9,deltaShift:0.125,loop:1,minDis:1,autoFlip:!0};function f1(J,K){switch(this.env=J,this.stack=[],this.prog=K,J){case"glyf":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case"prep":this.fv=this.pv=this.dpv=L1,this.round=AJ}}BJ.prototype.exec=function(J,K){if(typeof K!=="number")throw Error("Point size is not a number!");if(this._errorState>2)return;var Y=this.font,X=this._prepState;if(!X||X.ppem!==K){var Z=this._fpgmState;if(!Z){if(f1.prototype=dQ,Z=this._fpgmState=new f1("fpgm",Y.tables.fpgm),Z.funcs=[],Z.font=Y,b$.DEBUG)console.log("---EXEC FPGM---"),Z.step=-1;try{e1(Z)}catch(z){console.log("Hinting error in FPGM:"+z),this._errorState=3;return}}f1.prototype=Z,X=this._prepState=new f1("prep",Y.tables.prep),X.ppem=K;var Q=Y.tables.cvt;if(Q){var W=X.cvt=Array(Q.length),w=K/Y.unitsPerEm;for(var H=0;H<Q.length;H++)W[H]=Q[H]*w}else X.cvt=[];if(b$.DEBUG)console.log("---EXEC PREP---"),X.step=-1;try{e1(X)}catch(z){if(this._errorState<2)console.log("Hinting error in PREP:"+z);this._errorState=2}}if(this._errorState>1)return;try{return $J(J,X)}catch(z){if(this._errorState<1)console.log("Hinting error:"+z),console.log("Note: further hinting errors are silenced");this._errorState=1;return}};$J=function(J,K){var Y=K.ppem/K.font.unitsPerEm,X=Y,Z=J.components,Q,W,w;if(f1.prototype=K,!Z){if(w=new f1("glyf",J.instructions),b$.DEBUG)console.log("---EXEC GLYPH---"),w.step=-1;s6(J,w,Y,X),W=w.gZone}else{var H=K.font;W=[],Q=[];for(var z=0;z<Z.length;z++){var U=Z[z],V=H.glyphs.get(U.glyphIndex);if(w=new f1("glyf",V.instructions),b$.DEBUG)console.log("---EXEC COMP "+z+"---"),w.step=-1;s6(V,w,Y,X);var $=Math.round(U.dx*Y),B=Math.round(U.dy*X),M=w.gZone,G=w.contours;for(var q=0;q<M.length;q++){var O=M[q];O.xTouched=O.yTouched=!1,O.xo=O.x=O.x+$,O.yo=O.y=O.y+B}var j=W.length;W.push.apply(W,M);for(var _=0;_<G.length;_++)Q.push(G[_]+j)}if(J.instructions&&!w.inhibitGridFit){if(w=new f1("glyf",J.instructions),w.gZone=w.z0=w.z1=w.z2=W,w.contours=Q,W.push(new I1(0,0),new I1(Math.round(J.advanceWidth*Y),0)),b$.DEBUG)console.log("---EXEC COMPOSITE---"),w.step=-1;e1(w),W.length-=2}}return W};s6=function(J,K,Y,X){var Z=J.points||[],Q=Z.length,W=K.gZone=K.z0=K.z1=K.z2=[],w=K.contours=[],H;for(var z=0;z<Q;z++)H=Z[z],W[z]=new I1(H.x*Y,H.y*X,H.lastPointOfContour,H.onCurve);var U,V;for(var $=0;$<Q;$++){if(H=W[$],!U)U=H,w.push($);if(H.lastPointOfContour)H.nextPointOnContour=U,U.prevPointOnContour=H,U=void 0;else V=W[$+1],H.nextPointOnContour=V,V.prevPointOnContour=H}if(K.inhibitGridFit)return;if(b$.DEBUG){console.log("PROCESSING GLYPH",K.stack);for(var B=0;B<Q;B++)console.log(B,W[B].x,W[B].y)}if(W.push(new I1(0,0),new I1(Math.round(J.advanceWidth*Y),0)),e1(K),W.length-=2,b$.DEBUG){console.log("FINISHED GLYPH",K.stack);for(var M=0;M<Q;M++)console.log(M,W[M].x,W[M].y)}};e1=function(J){var K=J.prog;if(!K)return;var Y=K.length,X;for(J.ip=0;J.ip<Y;J.ip++){if(b$.DEBUG)J.step++;if(X=VJ[K[J.ip]],!X)throw Error("unknown instruction: 0x"+Number(K[J.ip]).toString(16));X(J)}};function G5(J){var K=J.tZone=Array(J.gZone.length);for(var Y=0;Y<K.length;Y++)K[Y]=new I1(0,0)}function qJ(J,K){var{prog:Y,ip:X}=J,Z=1,Q;do if(Q=Y[++X],Q===88)Z++;else if(Q===89)Z--;else if(Q===64)X+=Y[X+1]+1;else if(Q===65)X+=2*Y[X+1]+1;else if(Q>=176&&Q<=183)X+=Q-176+1;else if(Q>=184&&Q<=191)X+=(Q-184+1)*2;else if(K&&Z===1&&Q===27)break;while(Z>0);J.ip=X}function C7(J,K){if(b$.DEBUG)console.log(K.step,"SVTCA["+J.axis+"]");K.fv=K.pv=K.dpv=J}function P7(J,K){if(b$.DEBUG)console.log(K.step,"SPVTCA["+J.axis+"]");K.pv=K.dpv=J}function S7(J,K){if(b$.DEBUG)console.log(K.step,"SFVTCA["+J.axis+"]");K.fv=J}function v7(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z2[X],W=K.z1[Z];if(b$.DEBUG)console.log("SPVTL["+J+"]",X,Z);var w,H;if(!J)w=W.x-Q.x,H=W.y-Q.y;else w=Q.y-W.y,H=W.x-Q.x;K.pv=K.dpv=y8(w,H)}function y7(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z2[X],W=K.z1[Z];if(b$.DEBUG)console.log("SFVTL["+J+"]",X,Z);var w,H;if(!J)w=W.x-Q.x,H=W.y-Q.y;else w=Q.y-W.y,H=W.x-Q.x;K.fv=y8(w,H)}function lQ(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"SPVFS[]",Y,X);J.pv=J.dpv=y8(X,Y)}function cQ(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"SPVFS[]",Y,X);J.fv=y8(X,Y)}function uQ(J){var{stack:K,pv:Y}=J;if(b$.DEBUG)console.log(J.step,"GPV[]");K.push(Y.x*16384),K.push(Y.y*16384)}function pQ(J){var{stack:K,fv:Y}=J;if(b$.DEBUG)console.log(J.step,"GFV[]");K.push(Y.x*16384),K.push(Y.y*16384)}function iQ(J){if(J.fv=J.pv,b$.DEBUG)console.log(J.step,"SFVTPV[]")}function oQ(J){var K=J.stack,Y=K.pop(),X=K.pop(),Z=K.pop(),Q=K.pop(),W=K.pop(),w=J.z0,H=J.z1,z=w[Y],U=w[X],V=H[Z],$=H[Q],B=J.z2[W];if(b$.DEBUG)console.log("ISECT[], ",Y,X,Z,Q,W);var{x:M,y:G}=z,q=U.x,O=U.y,j=V.x,_=V.y,R=$.x,E=$.y,L=(M-q)*(_-E)-(G-O)*(j-R),T=M*O-G*q,D=j*E-_*R;B.x=(T*(j-R)-D*(M-q))/L,B.y=(T*(_-E)-D*(G-O))/L}function rQ(J){if(J.rp0=J.stack.pop(),b$.DEBUG)console.log(J.step,"SRP0[]",J.rp0)}function nQ(J){if(J.rp1=J.stack.pop(),b$.DEBUG)console.log(J.step,"SRP1[]",J.rp1)}function sQ(J){if(J.rp2=J.stack.pop(),b$.DEBUG)console.log(J.step,"SRP2[]",J.rp2)}function aQ(J){var K=J.stack.pop();if(b$.DEBUG)console.log(J.step,"SZP0[]",K);switch(J.zp0=K,K){case 0:if(!J.tZone)G5(J);J.z0=J.tZone;break;case 1:J.z0=J.gZone;break;default:throw Error("Invalid zone pointer")}}function tQ(J){var K=J.stack.pop();if(b$.DEBUG)console.log(J.step,"SZP1[]",K);switch(J.zp1=K,K){case 0:if(!J.tZone)G5(J);J.z1=J.tZone;break;case 1:J.z1=J.gZone;break;default:throw Error("Invalid zone pointer")}}function eQ(J){var K=J.stack.pop();if(b$.DEBUG)console.log(J.step,"SZP2[]",K);switch(J.zp2=K,K){case 0:if(!J.tZone)G5(J);J.z2=J.tZone;break;case 1:J.z2=J.gZone;break;default:throw Error("Invalid zone pointer")}}function J2(J){var K=J.stack.pop();if(b$.DEBUG)console.log(J.step,"SZPS[]",K);switch(J.zp0=J.zp1=J.zp2=K,K){case 0:if(!J.tZone)G5(J);J.z0=J.z1=J.z2=J.tZone;break;case 1:J.z0=J.z1=J.z2=J.gZone;break;default:throw Error("Invalid zone pointer")}}function K2(J){if(J.loop=J.stack.pop(),b$.DEBUG)console.log(J.step,"SLOOP[]",J.loop)}function Y2(J){if(b$.DEBUG)console.log(J.step,"RTG[]");J.round=AJ}function X2(J){if(b$.DEBUG)console.log(J.step,"RTHG[]");J.round=hQ}function Z2(J){var K=J.stack.pop();if(b$.DEBUG)console.log(J.step,"SMD[]",K);J.minDis=K/64}function Q2(J){if(b$.DEBUG)console.log(J.step,"ELSE[]");qJ(J,!1)}function W2(J){var K=J.stack.pop();if(b$.DEBUG)console.log(J.step,"JMPR[]",K);J.ip+=K-1}function H2(J){var K=J.stack.pop();if(b$.DEBUG)console.log(J.step,"SCVTCI[]",K);J.cvCutIn=K/64}function w2(J){var K=J.stack;if(b$.DEBUG)console.log(J.step,"DUP[]");K.push(K[K.length-1])}function u6(J){if(b$.DEBUG)console.log(J.step,"POP[]");J.stack.pop()}function z2(J){if(b$.DEBUG)console.log(J.step,"CLEAR[]");J.stack.length=0}function U2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"SWAP[]");K.push(Y),K.push(X)}function V2(J){var K=J.stack;if(b$.DEBUG)console.log(J.step,"DEPTH[]");K.push(K.length)}function $2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"LOOPCALL[]",Y,X);var{ip:Z,prog:Q}=J;J.prog=J.funcs[Y];for(var W=0;W<X;W++)if(e1(J),b$.DEBUG)console.log(++J.step,W+1<X?"next loopcall":"done loopcall",W);J.ip=Z,J.prog=Q}function B2(J){var K=J.stack.pop();if(b$.DEBUG)console.log(J.step,"CALL[]",K);var{ip:Y,prog:X}=J;if(J.prog=J.funcs[K],e1(J),J.ip=Y,J.prog=X,b$.DEBUG)console.log(++J.step,"returning from",K)}function A2(J){var K=J.stack,Y=K.pop();if(b$.DEBUG)console.log(J.step,"CINDEX[]",Y);K.push(K[K.length-Y])}function G2(J){var K=J.stack,Y=K.pop();if(b$.DEBUG)console.log(J.step,"MINDEX[]",Y);K.push(K.splice(K.length-Y,1)[0])}function q2(J){if(J.env!=="fpgm")throw Error("FDEF not allowed here");var{stack:K,prog:Y,ip:X}=J,Z=K.pop(),Q=X;if(b$.DEBUG)console.log(J.step,"FDEF[]",Z);while(Y[++X]!==45);J.ip=X,J.funcs[Z]=Y.slice(Q+1,X)}function k7(J,K){var Y=K.stack.pop(),X=K.z0[Y],Z=K.fv,Q=K.pv;if(b$.DEBUG)console.log(K.step,"MDAP["+J+"]",Y);var W=Q.distance(X,T8);if(J)W=K.round(W);Z.setRelative(X,T8,W,Q),Z.touch(X),K.rp0=K.rp1=Y}function g7(J,K){var Y=K.z2,X=Y.length-2,Z,Q,W;if(b$.DEBUG)console.log(K.step,"IUP["+J.axis+"]");for(var w=0;w<X;w++){if(Z=Y[w],J.touched(Z))continue;if(Q=Z.prevTouched(J),Q===Z)continue;if(W=Z.nextTouched(J),Q===W)J.setRelative(Z,Z,J.distance(Q,Q,!1,!0),J,!0);J.interpolate(Z,Q,W,J)}}function x7(J,K){var Y=K.stack,X=J?K.rp1:K.rp2,Z=(J?K.z0:K.z1)[X],Q=K.fv,W=K.pv,w=K.loop,H=K.z2;while(w--){var z=Y.pop(),U=H[z],V=W.distance(Z,Z,!1,!0);if(Q.setRelative(U,U,V,W),Q.touch(U),b$.DEBUG)console.log(K.step,(K.loop>1?"loop "+(K.loop-w)+": ":"")+"SHP["+(J?"rp1":"rp2")+"]",z)}K.loop=1}function b7(J,K){var Y=K.stack,X=J?K.rp1:K.rp2,Z=(J?K.z0:K.z1)[X],Q=K.fv,W=K.pv,w=Y.pop(),H=K.z2[K.contours[w]],z=H;if(b$.DEBUG)console.log(K.step,"SHC["+J+"]",w);var U=W.distance(Z,Z,!1,!0);do{if(z!==Z)Q.setRelative(z,z,U,W);z=z.nextPointOnContour}while(z!==H)}function h7(J,K){var Y=K.stack,X=J?K.rp1:K.rp2,Z=(J?K.z0:K.z1)[X],Q=K.fv,W=K.pv,w=Y.pop();if(b$.DEBUG)console.log(K.step,"SHZ["+J+"]",w);var H;switch(w){case 0:H=K.tZone;break;case 1:H=K.gZone;break;default:throw Error("Invalid zone")}var z,U=W.distance(Z,Z,!1,!0),V=H.length-2;for(var $=0;$<V;$++)z=H[$],Q.setRelative(z,z,U,W)}function M2(J){var{stack:K,loop:Y,fv:X}=J,Z=K.pop()/64,Q=J.z2;while(Y--){var W=K.pop(),w=Q[W];if(b$.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-Y)+": ":"")+"SHPIX[]",W,Z);X.setRelative(w,w,Z),X.touch(w)}J.loop=1}function N2(J){var{stack:K,rp1:Y,rp2:X,loop:Z}=J,Q=J.z0[Y],W=J.z1[X],w=J.fv,H=J.dpv,z=J.z2;while(Z--){var U=K.pop(),V=z[U];if(b$.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-Z)+": ":"")+"IP[]",U,Y,"<->",X);w.interpolate(V,Q,W,H),w.touch(V)}J.loop=1}function m7(J,K){var Y=K.stack,X=Y.pop()/64,Z=Y.pop(),Q=K.z1[Z],W=K.z0[K.rp0],w=K.fv,H=K.pv;if(w.setRelative(Q,W,X,H),w.touch(Q),b$.DEBUG)console.log(K.step,"MSIRP["+J+"]",X,Z);if(K.rp1=K.rp0,K.rp2=Z,J)K.rp0=Z}function O2(J){var{stack:K,rp0:Y}=J,X=J.z0[Y],Z=J.loop,Q=J.fv,W=J.pv,w=J.z1;while(Z--){var H=K.pop(),z=w[H];if(b$.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-Z)+": ":"")+"ALIGNRP[]",H);Q.setRelative(z,X,0,W),Q.touch(z)}J.loop=1}function j2(J){if(b$.DEBUG)console.log(J.step,"RTDG[]");J.round=bQ}function f7(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z0[Z],W=K.fv,w=K.pv,H=K.cvt[X];if(b$.DEBUG)console.log(K.step,"MIAP["+J+"]",X,"(",H,")",Z);var z=w.distance(Q,T8);if(J){if(Math.abs(z-H)<K.cvCutIn)z=H;z=K.round(z)}if(W.setRelative(Q,T8,z,w),K.zp0===0)Q.xo=Q.x,Q.yo=Q.y;W.touch(Q),K.rp0=K.rp1=Z}function L2(J){var{prog:K,ip:Y,stack:X}=J,Z=K[++Y];if(b$.DEBUG)console.log(J.step,"NPUSHB[]",Z);for(var Q=0;Q<Z;Q++)X.push(K[++Y]);J.ip=Y}function F2(J){var{ip:K,prog:Y,stack:X}=J,Z=Y[++K];if(b$.DEBUG)console.log(J.step,"NPUSHW[]",Z);for(var Q=0;Q<Z;Q++){var W=Y[++K]<<8|Y[++K];if(W&32768)W=-((W^65535)+1);X.push(W)}J.ip=K}function E2(J){var{stack:K,store:Y}=J;if(!Y)Y=J.store=[];var X=K.pop(),Z=K.pop();if(b$.DEBUG)console.log(J.step,"WS",X,Z);Y[Z]=X}function _2(J){var{stack:K,store:Y}=J,X=K.pop();if(b$.DEBUG)console.log(J.step,"RS",X);var Z=Y&&Y[X]||0;K.push(Z)}function R2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"WCVTP",Y,X);J.cvt[X]=Y/64}function D2(J){var K=J.stack,Y=K.pop();if(b$.DEBUG)console.log(J.step,"RCVT",Y);K.push(J.cvt[Y]*64)}function d7(J,K){var Y=K.stack,X=Y.pop(),Z=K.z2[X];if(b$.DEBUG)console.log(K.step,"GC["+J+"]",X);Y.push(K.dpv.distance(Z,T8,J,!1)*64)}function l7(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z1[X],W=K.z0[Z],w=K.dpv.distance(W,Q,J,J);if(b$.DEBUG)console.log(K.step,"MD["+J+"]",X,Z,"->",w);K.stack.push(Math.round(w*64))}function I2(J){if(b$.DEBUG)console.log(J.step,"MPPEM[]");J.stack.push(J.ppem)}function T2(J){if(b$.DEBUG)console.log(J.step,"FLIPON[]");J.autoFlip=!0}function C2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"LT[]",Y,X);K.push(X<Y?1:0)}function P2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"LTEQ[]",Y,X);K.push(X<=Y?1:0)}function S2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"GT[]",Y,X);K.push(X>Y?1:0)}function v2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"GTEQ[]",Y,X);K.push(X>=Y?1:0)}function y2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"EQ[]",Y,X);K.push(Y===X?1:0)}function k2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"NEQ[]",Y,X);K.push(Y!==X?1:0)}function g2(J){var K=J.stack,Y=K.pop();if(b$.DEBUG)console.log(J.step,"ODD[]",Y);K.push(Math.trunc(Y)%2?1:0)}function x2(J){var K=J.stack,Y=K.pop();if(b$.DEBUG)console.log(J.step,"EVEN[]",Y);K.push(Math.trunc(Y)%2?0:1)}function b2(J){var K=J.stack.pop();if(b$.DEBUG)console.log(J.step,"IF[]",K);if(!K){if(qJ(J,!0),b$.DEBUG)console.log(J.step,"EIF[]")}}function h2(J){if(b$.DEBUG)console.log(J.step,"EIF[]")}function m2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"AND[]",Y,X);K.push(Y&&X?1:0)}function f2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"OR[]",Y,X);K.push(Y||X?1:0)}function d2(J){var K=J.stack,Y=K.pop();if(b$.DEBUG)console.log(J.step,"NOT[]",Y);K.push(Y?0:1)}function p6(J,K){var Y=K.stack,X=Y.pop(),Z=K.fv,Q=K.pv,W=K.ppem,w=K.deltaBase+(J-1)*16,H=K.deltaShift,z=K.z0;if(b$.DEBUG)console.log(K.step,"DELTAP["+J+"]",X,Y);for(var U=0;U<X;U++){var V=Y.pop(),$=Y.pop(),B=w+(($&240)>>4);if(B!==W)continue;var M=($&15)-8;if(M>=0)M++;if(b$.DEBUG)console.log(K.step,"DELTAPFIX",V,"by",M*H);var G=z[V];Z.setRelative(G,G,M*H,Q)}}function l2(J){var K=J.stack,Y=K.pop();if(b$.DEBUG)console.log(J.step,"SDB[]",Y);J.deltaBase=Y}function c2(J){var K=J.stack,Y=K.pop();if(b$.DEBUG)console.log(J.step,"SDS[]",Y);J.deltaShift=Math.pow(0.5,Y)}function u2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"ADD[]",Y,X);K.push(X+Y)}function p2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"SUB[]",Y,X);K.push(X-Y)}function i2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"DIV[]",Y,X);K.push(X*64/Y)}function o2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"MUL[]",Y,X);K.push(X*Y/64)}function r2(J){var K=J.stack,Y=K.pop();if(b$.DEBUG)console.log(J.step,"ABS[]",Y);K.push(Math.abs(Y))}function n2(J){var K=J.stack,Y=K.pop();if(b$.DEBUG)console.log(J.step,"NEG[]",Y);K.push(-Y)}function s2(J){var K=J.stack,Y=K.pop();if(b$.DEBUG)console.log(J.step,"FLOOR[]",Y);K.push(Math.floor(Y/64)*64)}function a2(J){var K=J.stack,Y=K.pop();if(b$.DEBUG)console.log(J.step,"CEILING[]",Y);K.push(Math.ceil(Y/64)*64)}function V5(J,K){var Y=K.stack,X=Y.pop();if(b$.DEBUG)console.log(K.step,"ROUND[]");Y.push(K.round(X/64)*64)}function t2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"WCVTF[]",Y,X);J.cvt[X]=Y*J.ppem/J.font.unitsPerEm}function i6(J,K){var Y=K.stack,X=Y.pop(),Z=K.ppem,Q=K.deltaBase+(J-1)*16,W=K.deltaShift;if(b$.DEBUG)console.log(K.step,"DELTAC["+J+"]",X,Y);for(var w=0;w<X;w++){var H=Y.pop(),z=Y.pop(),U=Q+((z&240)>>4);if(U!==Z)continue;var V=(z&15)-8;if(V>=0)V++;var $=V*W;if(b$.DEBUG)console.log(K.step,"DELTACFIX",H,"by",$);K.cvt[H]+=$}}function e2(J){var K=J.stack.pop();if(b$.DEBUG)console.log(J.step,"SROUND[]",K);J.round=GJ;var Y;switch(K&192){case 0:Y=0.5;break;case 64:Y=1;break;case 128:Y=2;break;default:throw Error("invalid SROUND value")}switch(J.srPeriod=Y,K&48){case 0:J.srPhase=0;break;case 16:J.srPhase=0.25*Y;break;case 32:J.srPhase=0.5*Y;break;case 48:J.srPhase=0.75*Y;break;default:throw Error("invalid SROUND value")}if(K&=15,K===0)J.srThreshold=0;else J.srThreshold=(K/8-0.5)*Y}function JW(J){var K=J.stack.pop();if(b$.DEBUG)console.log(J.step,"S45ROUND[]",K);J.round=GJ;var Y;switch(K&192){case 0:Y=Math.sqrt(2)/2;break;case 64:Y=Math.sqrt(2);break;case 128:Y=2*Math.sqrt(2);break;default:throw Error("invalid S45ROUND value")}switch(J.srPeriod=Y,K&48){case 0:J.srPhase=0;break;case 16:J.srPhase=0.25*Y;break;case 32:J.srPhase=0.5*Y;break;case 48:J.srPhase=0.75*Y;break;default:throw Error("invalid S45ROUND value")}if(K&=15,K===0)J.srThreshold=0;else J.srThreshold=(K/8-0.5)*Y}function KW(J){if(b$.DEBUG)console.log(J.step,"ROFF[]");J.round=xQ}function YW(J){if(b$.DEBUG)console.log(J.step,"RUTG[]");J.round=mQ}function XW(J){if(b$.DEBUG)console.log(J.step,"RDTG[]");J.round=fQ}function ZW(J){var K=J.stack.pop();if(b$.DEBUG)console.log(J.step,"SCANCTRL[]",K)}function c7(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z2[X],W=K.z1[Z];if(b$.DEBUG)console.log(K.step,"SDPVTL["+J+"]",X,Z);var w,H;if(!J)w=W.x-Q.x,H=W.y-Q.y;else w=Q.y-W.y,H=W.x-Q.x;K.dpv=y8(w,H)}function QW(J){var K=J.stack,Y=K.pop(),X=0;if(b$.DEBUG)console.log(J.step,"GETINFO[]",Y);if(Y&1)X=35;if(Y&32)X|=4096;K.push(X)}function WW(J){var K=J.stack,Y=K.pop(),X=K.pop(),Z=K.pop();if(b$.DEBUG)console.log(J.step,"ROLL[]");K.push(X),K.push(Y),K.push(Z)}function HW(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"MAX[]",Y,X);K.push(Math.max(X,Y))}function wW(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"MIN[]",Y,X);K.push(Math.min(X,Y))}function zW(J){var K=J.stack.pop();if(b$.DEBUG)console.log(J.step,"SCANTYPE[]",K)}function UW(J){var K=J.stack.pop(),Y=J.stack.pop();if(b$.DEBUG)console.log(J.step,"INSTCTRL[]",K,Y);switch(K){case 1:J.inhibitGridFit=!!Y;return;case 2:J.ignoreCvt=!!Y;return;default:throw Error("invalid INSTCTRL[] selector")}}function x1(J,K){var{stack:Y,prog:X,ip:Z}=K;if(b$.DEBUG)console.log(K.step,"PUSHB["+J+"]");for(var Q=0;Q<J;Q++)Y.push(X[++Z]);K.ip=Z}function b1(J,K){var{ip:Y,prog:X,stack:Z}=K;if(b$.DEBUG)console.log(K.ip,"PUSHW["+J+"]");for(var Q=0;Q<J;Q++){var W=X[++Y]<<8|X[++Y];if(W&32768)W=-((W^65535)+1);Z.push(W)}K.ip=Y}function i(J,K,Y,X,Z,Q){var W=Q.stack,w=J&&W.pop(),H=W.pop(),z=Q.rp0,U=Q.z0[z],V=Q.z1[H],$=Q.minDis,B=Q.fv,M=Q.dpv,G,q,O,j;if(q=G=M.distance(V,U,!0,!0),O=q>=0?1:-1,q=Math.abs(q),J){if(j=Q.cvt[w],X&&Math.abs(q-j)<Q.cvCutIn)q=j}if(Y&&q<$)q=$;if(X)q=Q.round(q);if(B.setRelative(V,U,O*q,M),B.touch(V),b$.DEBUG)console.log(Q.step,(J?"MIRP[":"MDRP[")+(K?"M":"m")+(Y?">":"_")+(X?"R":"_")+(Z===0?"Gr":Z===1?"Bl":Z===2?"Wh":"")+"]",J?w+"("+Q.cvt[w]+","+j+")":"",H,"(d =",G,"->",O*q,")");if(Q.rp1=Q.rp0,Q.rp2=H,K)Q.rp0=H}VJ=[C7.bind(void 0,D1),C7.bind(void 0,L1),P7.bind(void 0,D1),P7.bind(void 0,L1),S7.bind(void 0,D1),S7.bind(void 0,L1),v7.bind(void 0,0),v7.bind(void 0,1),y7.bind(void 0,0),y7.bind(void 0,1),lQ,cQ,uQ,pQ,iQ,oQ,rQ,nQ,sQ,aQ,tQ,eQ,J2,K2,Y2,X2,Z2,Q2,W2,H2,void 0,void 0,w2,u6,z2,U2,V2,A2,G2,void 0,void 0,void 0,$2,B2,q2,void 0,k7.bind(void 0,0),k7.bind(void 0,1),g7.bind(void 0,D1),g7.bind(void 0,L1),x7.bind(void 0,0),x7.bind(void 0,1),b7.bind(void 0,0),b7.bind(void 0,1),h7.bind(void 0,0),h7.bind(void 0,1),M2,N2,m7.bind(void 0,0),m7.bind(void 0,1),O2,j2,f7.bind(void 0,0),f7.bind(void 0,1),L2,F2,E2,_2,R2,D2,d7.bind(void 0,0),d7.bind(void 0,1),void 0,l7.bind(void 0,0),l7.bind(void 0,1),I2,void 0,T2,void 0,void 0,C2,P2,S2,v2,y2,k2,g2,x2,b2,h2,m2,f2,d2,p6.bind(void 0,1),l2,c2,u2,p2,i2,o2,r2,n2,s2,a2,V5.bind(void 0,0),V5.bind(void 0,1),V5.bind(void 0,2),V5.bind(void 0,3),void 0,void 0,void 0,void 0,t2,p6.bind(void 0,2),p6.bind(void 0,3),i6.bind(void 0,1),i6.bind(void 0,2),i6.bind(void 0,3),e2,JW,void 0,void 0,KW,void 0,YW,XW,u6,u6,void 0,void 0,void 0,void 0,void 0,ZW,c7.bind(void 0,0),c7.bind(void 0,1),QW,void 0,WW,HW,wW,zW,UW,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,x1.bind(void 0,1),x1.bind(void 0,2),x1.bind(void 0,3),x1.bind(void 0,4),x1.bind(void 0,5),x1.bind(void 0,6),x1.bind(void 0,7),x1.bind(void 0,8),b1.bind(void 0,1),b1.bind(void 0,2),b1.bind(void 0,3),b1.bind(void 0,4),b1.bind(void 0,5),b1.bind(void 0,6),b1.bind(void 0,7),b1.bind(void 0,8),i.bind(void 0,0,0,0,0,0),i.bind(void 0,0,0,0,0,1),i.bind(void 0,0,0,0,0,2),i.bind(void 0,0,0,0,0,3),i.bind(void 0,0,0,0,1,0),i.bind(void 0,0,0,0,1,1),i.bind(void 0,0,0,0,1,2),i.bind(void 0,0,0,0,1,3),i.bind(void 0,0,0,1,0,0),i.bind(void 0,0,0,1,0,1),i.bind(void 0,0,0,1,0,2),i.bind(void 0,0,0,1,0,3),i.bind(void 0,0,0,1,1,0),i.bind(void 0,0,0,1,1,1),i.bind(void 0,0,0,1,1,2),i.bind(void 0,0,0,1,1,3),i.bind(void 0,0,1,0,0,0),i.bind(void 0,0,1,0,0,1),i.bind(void 0,0,1,0,0,2),i.bind(void 0,0,1,0,0,3),i.bind(void 0,0,1,0,1,0),i.bind(void 0,0,1,0,1,1),i.bind(void 0,0,1,0,1,2),i.bind(void 0,0,1,0,1,3),i.bind(void 0,0,1,1,0,0),i.bind(void 0,0,1,1,0,1),i.bind(void 0,0,1,1,0,2),i.bind(void 0,0,1,1,0,3),i.bind(void 0,0,1,1,1,0),i.bind(void 0,0,1,1,1,1),i.bind(void 0,0,1,1,1,2),i.bind(void 0,0,1,1,1,3),i.bind(void 0,1,0,0,0,0),i.bind(void 0,1,0,0,0,1),i.bind(void 0,1,0,0,0,2),i.bind(void 0,1,0,0,0,3),i.bind(void 0,1,0,0,1,0),i.bind(void 0,1,0,0,1,1),i.bind(void 0,1,0,0,1,2),i.bind(void 0,1,0,0,1,3),i.bind(void 0,1,0,1,0,0),i.bind(void 0,1,0,1,0,1),i.bind(void 0,1,0,1,0,2),i.bind(void 0,1,0,1,0,3),i.bind(void 0,1,0,1,1,0),i.bind(void 0,1,0,1,1,1),i.bind(void 0,1,0,1,1,2),i.bind(void 0,1,0,1,1,3),i.bind(void 0,1,1,0,0,0),i.bind(void 0,1,1,0,0,1),i.bind(void 0,1,1,0,0,2),i.bind(void 0,1,1,0,0,3),i.bind(void 0,1,1,0,1,0),i.bind(void 0,1,1,0,1,1),i.bind(void 0,1,1,0,1,2),i.bind(void 0,1,1,0,1,3),i.bind(void 0,1,1,1,0,0),i.bind(void 0,1,1,1,0,1),i.bind(void 0,1,1,1,0,2),i.bind(void 0,1,1,1,0,3),i.bind(void 0,1,1,1,1,0),i.bind(void 0,1,1,1,1,1),i.bind(void 0,1,1,1,1,2),i.bind(void 0,1,1,1,1,3)];function G8(J){this.char=J,this.state={},this.activeState=null}function K4(J,K,Y){this.contextName=Y,this.startIndex=J,this.endOffset=K}function VW(J,K,Y){this.contextName=J,this.openRange=null,this.ranges=[],this.checkStart=K,this.checkEnd=Y}function w1(J,K){this.context=J,this.index=K,this.length=J.length,this.current=J[K],this.backtrack=J.slice(0,K),this.lookahead=J.slice(K+1)}function q5(J){this.eventId=J,this.subscribers=[]}function $W(J){var K=this,Y=["start","end","next","newToken","contextStart","contextEnd","insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD","updateContextsRanges"];if(Y.forEach(function(Z){Object.defineProperty(K.events,Z,{value:new q5(Z)})}),J)Y.forEach(function(Z){var Q=J[Z];if(typeof Q==="function")K.events[Z].subscribe(Q)});var X=["insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD"];X.forEach(function(Z){K.events[Z].subscribe(K.updateContextsRanges)})}function L0(J){this.tokens=[],this.registeredContexts={},this.contextCheckers=[],this.events={},this.registeredModifiers=[],$W.call(this,J)}G8.prototype.setState=function(J,K){return this.state[J]=K,this.activeState={key:J,value:this.state[J]},this.activeState};G8.prototype.getState=function(J){return this.state[J]||null};L0.prototype.inboundIndex=function(J){return J>=0&&J<this.tokens.length};L0.prototype.composeRUD=function(J){var K=this,Y=!0,X=J.map(function(Q){return K[Q[0]].apply(K,Q.slice(1).concat(Y))}),Z=function(Q){return typeof Q==="object"&&Q.hasOwnProperty("FAIL")};if(X.every(Z))return{FAIL:"composeRUD: one or more operations hasn't completed successfully",report:X.filter(Z)};this.dispatch("composeRUD",[X.filter(function(Q){return!Z(Q)})])};L0.prototype.replaceRange=function(J,K,Y,X){K=K!==null?K:this.tokens.length;var Z=Y.every(function(W){return W instanceof G8});if(!isNaN(J)&&this.inboundIndex(J)&&Z){var Q=this.tokens.splice.apply(this.tokens,[J,K].concat(Y));if(!X)this.dispatch("replaceToken",[J,K,Y]);return[Q,Y]}else return{FAIL:"replaceRange: invalid tokens or startIndex."}};L0.prototype.replaceToken=function(J,K,Y){if(!isNaN(J)&&this.inboundIndex(J)&&K instanceof G8){var X=this.tokens.splice(J,1,K);if(!Y)this.dispatch("replaceToken",[J,K]);return[X[0],K]}else return{FAIL:"replaceToken: invalid token or index."}};L0.prototype.removeRange=function(J,K,Y){K=!isNaN(K)?K:this.tokens.length;var X=this.tokens.splice(J,K);if(!Y)this.dispatch("removeRange",[X,J,K]);return X};L0.prototype.removeToken=function(J,K){if(!isNaN(J)&&this.inboundIndex(J)){var Y=this.tokens.splice(J,1);if(!K)this.dispatch("removeToken",[Y,J]);return Y}else return{FAIL:"removeToken: invalid token index."}};L0.prototype.insertToken=function(J,K,Y){var X=J.every(function(Z){return Z instanceof G8});if(X){if(this.tokens.splice.apply(this.tokens,[K,0].concat(J)),!Y)this.dispatch("insertToken",[J,K]);return J}else return{FAIL:"insertToken: invalid token(s)."}};L0.prototype.registerModifier=function(J,K,Y){this.events.newToken.subscribe(function(X,Z){var Q=[X,Z],W=K===null||K.apply(this,Q)===!0,w=[X,Z];if(W){var H=Y.apply(this,w);X.setState(J,H)}}),this.registeredModifiers.push(J)};q5.prototype.subscribe=function(J){if(typeof J==="function")return this.subscribers.push(J)-1;else return{FAIL:"invalid '"+this.eventId+"' event handler"}};q5.prototype.unsubscribe=function(J){this.subscribers.splice(J,1)};w1.prototype.setCurrentIndex=function(J){this.index=J,this.current=this.context[J],this.backtrack=this.context.slice(0,J),this.lookahead=this.context.slice(J+1)};w1.prototype.get=function(J){switch(!0){case J===0:return this.current;case(J<0&&Math.abs(J)<=this.backtrack.length):return this.backtrack.slice(J)[0];case(J>0&&J<=this.lookahead.length):return this.lookahead[J-1];default:return null}};L0.prototype.rangeToText=function(J){if(J instanceof K4)return this.getRangeTokens(J).map(function(K){return K.char}).join("")};L0.prototype.getText=function(){return this.tokens.map(function(J){return J.char}).join("")};L0.prototype.getContext=function(J){var K=this.registeredContexts[J];return K?K:null};L0.prototype.on=function(J,K){var Y=this.events[J];if(Y)return Y.subscribe(K);else return null};L0.prototype.dispatch=function(J,K){var Y=this,X=this.events[J];if(X instanceof q5)X.subscribers.forEach(function(Z){Z.apply(Y,K||[])})};L0.prototype.registerContextChecker=function(J,K,Y){if(this.getContext(J))return{FAIL:"context name '"+J+"' is already registered."};if(typeof K!=="function")return{FAIL:"missing context start check."};if(typeof Y!=="function")return{FAIL:"missing context end check."};var X=new VW(J,K,Y);return this.registeredContexts[J]=X,this.contextCheckers.push(X),X};L0.prototype.getRangeTokens=function(J){var K=J.startIndex+J.endOffset;return[].concat(this.tokens.slice(J.startIndex,K))};L0.prototype.getContextRanges=function(J){var K=this.getContext(J);if(K)return K.ranges;else return{FAIL:"context checker '"+J+"' is not registered."}};L0.prototype.resetContextsRanges=function(){var J=this.registeredContexts;for(var K in J)if(J.hasOwnProperty(K)){var Y=J[K];Y.ranges=[]}};L0.prototype.updateContextsRanges=function(){this.resetContextsRanges();var J=this.tokens.map(function(X){return X.char});for(var K=0;K<J.length;K++){var Y=new w1(J,K);this.runContextCheck(Y)}this.dispatch("updateContextsRanges",[this.registeredContexts])};L0.prototype.setEndOffset=function(J,K){var Y=this.getContext(K).openRange.startIndex,X=new K4(Y,J,K),Z=this.getContext(K).ranges;return X.rangeId=K+"."+Z.length,Z.push(X),this.getContext(K).openRange=null,X};L0.prototype.runContextCheck=function(J){var K=this,Y=J.index;this.contextCheckers.forEach(function(X){var Z=X.contextName,Q=K.getContext(Z).openRange;if(!Q&&X.checkStart(J))Q=new K4(Y,null,Z),K.getContext(Z).openRange=Q,K.dispatch("contextStart",[Z,Y]);if(!!Q&&X.checkEnd(J)){var W=Y-Q.startIndex+1,w=K.setEndOffset(W,Z);K.dispatch("contextEnd",[Z,w])}})};L0.prototype.tokenize=function(J){this.tokens=[],this.resetContextsRanges();var K=Array.from(J);this.dispatch("start");for(var Y=0;Y<K.length;Y++){var X=K[Y],Z=new w1(K,Y);this.dispatch("next",[Z]),this.runContextCheck(Z);var Q=new G8(X);this.tokens.push(Q),this.dispatch("newToken",[Q,Z])}return this.dispatch("end",[this.tokens]),this.tokens};function d1(J){return/[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(J)}function MJ(J){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(J)}function l1(J){return/[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(J)}function $5(J){return/[A-z]/.test(J)}function BW(J){return/\s/.test(J)}function r0(J){this.font=J,this.features={}}function a1(J){this.id=J.id,this.tag=J.tag,this.substitution=J.substitution}function k8(J,K){if(!J)return-1;switch(K.format){case 1:return K.glyphs.indexOf(J);case 2:var Y=K.ranges;for(var X=0;X<Y.length;X++){var Z=Y[X];if(J>=Z.start&&J<=Z.end){var Q=J-Z.start;return Z.index+Q}}break;default:return-1}return-1}function AW(J,K){var Y=k8(J,K.coverage);if(Y===-1)return null;return J+K.deltaGlyphId}function GW(J,K){var Y=k8(J,K.coverage);if(Y===-1)return null;return K.substitute[Y]}function o6(J,K){var Y=[];for(var X=0;X<J.length;X++){var Z=J[X],Q=K.current;Q=Array.isArray(Q)?Q[0]:Q;var W=k8(Q,Z);if(W!==-1)Y.push(W)}if(Y.length!==J.length)return-1;return Y}function qW(J,K){var Y=K.inputCoverage.length+K.lookaheadCoverage.length+K.backtrackCoverage.length;if(J.context.length<Y)return[];var X=o6(K.inputCoverage,J);if(X===-1)return[];var Z=K.inputCoverage.length-1;if(J.lookahead.length<K.lookaheadCoverage.length)return[];var Q=J.lookahead.slice(Z);while(Q.length&&l1(Q[0].char))Q.shift();var W=new w1(Q,0),w=o6(K.lookaheadCoverage,W),H=[].concat(J.backtrack);H.reverse();while(H.length&&l1(H[0].char))H.shift();if(H.length<K.backtrackCoverage.length)return[];var z=new w1(H,0),U=o6(K.backtrackCoverage,z),V=X.length===K.inputCoverage.length&&w.length===K.lookaheadCoverage.length&&U.length===K.backtrackCoverage.length,$=[];if(V)for(var B=0;B<K.lookupRecords.length;B++){var M=K.lookupRecords[B],G=M.lookupListIndex,q=this.getLookupByIndex(G);for(var O=0;O<q.subtables.length;O++){var j=q.subtables[O],_=this.getLookupMethod(q,j),R=this.getSubstitutionType(q,j);if(R==="12")for(var E=0;E<X.length;E++){var L=J.get(E),T=_(L);if(T)$.push(T)}}}return $}function MW(J,K){var Y=J.current,X=k8(Y,K.coverage);if(X===-1)return null;var Z,Q=K.ligatureSets[X];for(var W=0;W<Q.length;W++){Z=Q[W];for(var w=0;w<Z.components.length;w++){var H=J.lookahead[w],z=Z.components[w];if(H!==z)break;if(w===Z.components.length-1)return Z}}return null}function NW(J,K){var Y=k8(J,K.coverage);if(Y===-1)return null;return K.sequences[Y]}r0.prototype.getDefaultScriptFeaturesIndexes=function(){var J=this.font.tables.gsub.scripts;for(var K=0;K<J.length;K++){var Y=J[K];if(Y.tag==="DFLT")return Y.script.defaultLangSys.featureIndexes}return[]};r0.prototype.getScriptFeaturesIndexes=function(J){var K=this.font.tables;if(!K.gsub)return[];if(!J)return this.getDefaultScriptFeaturesIndexes();var Y=this.font.tables.gsub.scripts;for(var X=0;X<Y.length;X++){var Z=Y[X];if(Z.tag===J&&Z.script.defaultLangSys)return Z.script.defaultLangSys.featureIndexes;else{var Q=Z.langSysRecords;if(Q)for(var W=0;W<Q.length;W++){var w=Q[W];if(w.tag===J){var H=w.langSys;return H.featureIndexes}}}}return this.getDefaultScriptFeaturesIndexes()};r0.prototype.mapTagsToFeatures=function(J,K){var Y={};for(var X=0;X<J.length;X++){var Z=J[X].tag,Q=J[X].feature;Y[Z]=Q}this.features[K].tags=Y};r0.prototype.getScriptFeatures=function(J){var K=this.features[J];if(this.features.hasOwnProperty(J))return K;var Y=this.getScriptFeaturesIndexes(J);if(!Y)return null;var X=this.font.tables.gsub;return K=Y.map(function(Z){return X.features[Z]}),this.features[J]=K,this.mapTagsToFeatures(K,J),K};r0.prototype.getSubstitutionType=function(J,K){var Y=J.lookupType.toString(),X=K.substFormat.toString();return Y+X};r0.prototype.getLookupMethod=function(J,K){var Y=this,X=this.getSubstitutionType(J,K);switch(X){case"11":return function(Z){return AW.apply(Y,[Z,K])};case"12":return function(Z){return GW.apply(Y,[Z,K])};case"63":return function(Z){return qW.apply(Y,[Z,K])};case"41":return function(Z){return MW.apply(Y,[Z,K])};case"21":return function(Z){return NW.apply(Y,[Z,K])};default:throw Error("lookupType: "+J.lookupType+" - substFormat: "+K.substFormat+" is not yet supported")}};r0.prototype.lookupFeature=function(J){var K=J.contextParams,Y=K.index,X=this.getFeature({tag:J.tag,script:J.script});if(!X)return Error("font '"+this.font.names.fullName.en+"' doesn't support feature '"+J.tag+"' for script '"+J.script+"'.");var Z=this.getFeatureLookups(X),Q=[].concat(K.context);for(var W=0;W<Z.length;W++){var w=Z[W],H=this.getLookupSubtables(w);for(var z=0;z<H.length;z++){var U=H[z],V=this.getSubstitutionType(w,U),$=this.getLookupMethod(w,U),B=void 0;switch(V){case"11":if(B=$(K.current),B)Q.splice(Y,1,new a1({id:11,tag:J.tag,substitution:B}));break;case"12":if(B=$(K.current),B)Q.splice(Y,1,new a1({id:12,tag:J.tag,substitution:B}));break;case"63":if(B=$(K),Array.isArray(B)&&B.length)Q.splice(Y,1,new a1({id:63,tag:J.tag,substitution:B}));break;case"41":if(B=$(K),B)Q.splice(Y,1,new a1({id:41,tag:J.tag,substitution:B}));break;case"21":if(B=$(K.current),B)Q.splice(Y,1,new a1({id:21,tag:J.tag,substitution:B}));break}if(K=new w1(Q,Y),Array.isArray(B)&&!B.length)continue;B=null}}return Q.length?Q:null};r0.prototype.supports=function(J){if(!J.script)return!1;this.getScriptFeatures(J.script);var K=this.features.hasOwnProperty(J.script);if(!J.tag)return K;var Y=this.features[J.script].some(function(X){return X.tag===J.tag});return K&&Y};r0.prototype.getLookupSubtables=function(J){return J.subtables||null};r0.prototype.getLookupByIndex=function(J){var K=this.font.tables.gsub.lookups;return K[J]||null};r0.prototype.getFeatureLookups=function(J){return J.lookupListIndexes.map(this.getLookupByIndex.bind(this))};r0.prototype.getFeature=function(K){if(!this.font)return{FAIL:"No font was found"};if(!this.features.hasOwnProperty(K.script))this.getScriptFeatures(K.script);var Y=this.features[K.script];if(!Y)return{FAIL:"No feature for script "+K.script};if(!Y.tags[K.tag])return null;return this.features[K.script].tags[K.tag]};function OW(J){var K=J.current,Y=J.get(-1);return Y===null&&d1(K)||!d1(Y)&&d1(K)}function jW(J){var K=J.get(1);return K===null||!d1(K)}var LW={startCheck:OW,endCheck:jW};function FW(J){var K=J.current,Y=J.get(-1);return(d1(K)||l1(K))&&!d1(Y)}function EW(J){var K=J.get(1);switch(!0){case K===null:return!0;case(!d1(K)&&!l1(K)):var Y=BW(K);if(!Y)return!0;if(Y){var X=!1;if(X=J.lookahead.some(function(Z){return d1(Z)||l1(Z)}),!X)return!0}break;default:return!1}}var _W={startCheck:FW,endCheck:EW};function RW(J,K,Y){K[Y].setState(J.tag,J.substitution)}function DW(J,K,Y){K[Y].setState(J.tag,J.substitution)}function IW(J,K,Y){J.substitution.forEach(function(X,Z){var Q=K[Y+Z];Q.setState(J.tag,X)})}function TW(J,K,Y){var X=K[Y];X.setState(J.tag,J.substitution.ligGlyph);var Z=J.substitution.components.length;for(var Q=0;Q<Z;Q++)X=K[Y+Q+1],X.setState("deleted",!0)}var u7={11:RW,12:DW,63:IW,41:TW};function Y4(J,K,Y){if(J instanceof a1&&u7[J.id])u7[J.id](J,K,Y)}function CW(J){var K=[].concat(J.backtrack);for(var Y=K.length-1;Y>=0;Y--){var X=K[Y],Z=MJ(X),Q=l1(X);if(!Z&&!Q)return!0;if(Z)return!1}return!1}function PW(J){if(MJ(J.current))return!1;for(var K=0;K<J.lookahead.length;K++){var Y=J.lookahead[K],X=l1(Y);if(!X)return!0}return!1}function SW(J){var K=this,Y="arab",X=this.featuresTags[Y],Z=this.tokenizer.getRangeTokens(J);if(Z.length===1)return;var Q=new w1(Z.map(function(w){return w.getState("glyphIndex")}),0),W=new w1(Z.map(function(w){return w.char}),0);Z.forEach(function(w,H){if(l1(w.char))return;Q.setCurrentIndex(H),W.setCurrentIndex(H);var z=0;if(CW(W))z|=1;if(PW(W))z|=2;var U;switch(z){case 1:U="fina";break;case 2:U="init";break;case 3:U="medi";break}if(X.indexOf(U)===-1)return;var V=K.query.lookupFeature({tag:U,script:Y,contextParams:Q});if(V instanceof Error)return console.info(V.message);V.forEach(function($,B){if($ instanceof a1)Y4($,Z,B),Q.context[B]=$.substitution})})}function p7(J,K){var Y=J.map(function(X){return X.activeState.value});return new w1(Y,K||0)}function vW(J){var K=this,Y="arab",X=this.tokenizer.getRangeTokens(J),Z=p7(X);Z.context.forEach(function(Q,W){Z.setCurrentIndex(W);var w=K.query.lookupFeature({tag:"rlig",script:Y,contextParams:Z});if(w.length)w.forEach(function(H){return Y4(H,X,W)}),Z=p7(X)})}function yW(J){var K=J.current,Y=J.get(-1);return Y===null&&$5(K)||!$5(Y)&&$5(K)}function kW(J){var K=J.get(1);return K===null||!$5(K)}var gW={startCheck:yW,endCheck:kW};function i7(J,K){var Y=J.map(function(X){return X.activeState.value});return new w1(Y,K||0)}function xW(J){var K=this,Y="latn",X=this.tokenizer.getRangeTokens(J),Z=i7(X);Z.context.forEach(function(Q,W){Z.setCurrentIndex(W);var w=K.query.lookupFeature({tag:"liga",script:Y,contextParams:Z});if(w.length)w.forEach(function(H){return Y4(H,X,W)}),Z=i7(X)})}function V1(J){this.baseDir=J||"ltr",this.tokenizer=new L0,this.featuresTags={}}V1.prototype.setText=function(J){this.text=J};V1.prototype.contextChecks={latinWordCheck:gW,arabicWordCheck:LW,arabicSentenceCheck:_W};function r6(J){var K=this.contextChecks[J+"Check"];return this.tokenizer.registerContextChecker(J,K.startCheck,K.endCheck)}function bW(){return r6.call(this,"latinWord"),r6.call(this,"arabicWord"),r6.call(this,"arabicSentence"),this.tokenizer.tokenize(this.text)}function hW(){var J=this,K=this.tokenizer.getContextRanges("arabicSentence");K.forEach(function(Y){var X=J.tokenizer.getRangeTokens(Y);J.tokenizer.replaceRange(Y.startIndex,Y.endOffset,X.reverse())})}V1.prototype.registerFeatures=function(J,K){var Y=this,X=K.filter(function(Z){return Y.query.supports({script:J,tag:Z})});if(!this.featuresTags.hasOwnProperty(J))this.featuresTags[J]=X;else this.featuresTags[J]=this.featuresTags[J].concat(X)};V1.prototype.applyFeatures=function(J,K){if(!J)throw Error("No valid font was provided to apply features");if(!this.query)this.query=new r0(J);for(var Y=0;Y<K.length;Y++){var X=K[Y];if(!this.query.supports({script:X.script}))continue;this.registerFeatures(X.script,X.tags)}};V1.prototype.registerModifier=function(J,K,Y){this.tokenizer.registerModifier(J,K,Y)};function X4(){if(this.tokenizer.registeredModifiers.indexOf("glyphIndex")===-1)throw Error("glyphIndex modifier is required to apply arabic presentation features.")}function mW(){var J=this,K="arab";if(!this.featuresTags.hasOwnProperty(K))return;X4.call(this);var Y=this.tokenizer.getContextRanges("arabicWord");Y.forEach(function(X){SW.call(J,X)})}function fW(){var J=this,K="arab";if(!this.featuresTags.hasOwnProperty(K))return;var Y=this.featuresTags[K];if(Y.indexOf("rlig")===-1)return;X4.call(this);var X=this.tokenizer.getContextRanges("arabicWord");X.forEach(function(Z){vW.call(J,Z)})}function dW(){var J=this,K="latn";if(!this.featuresTags.hasOwnProperty(K))return;var Y=this.featuresTags[K];if(Y.indexOf("liga")===-1)return;X4.call(this);var X=this.tokenizer.getContextRanges("latinWord");X.forEach(function(Z){xW.call(J,Z)})}V1.prototype.checkContextReady=function(J){return!!this.tokenizer.getContext(J)};V1.prototype.applyFeaturesToContexts=function(){if(this.checkContextReady("arabicWord"))mW.call(this),fW.call(this);if(this.checkContextReady("latinWord"))dW.call(this);if(this.checkContextReady("arabicSentence"))hW.call(this)};V1.prototype.processText=function(J){if(!this.text||this.text!==J)this.setText(J),bW.call(this),this.applyFeaturesToContexts()};V1.prototype.getBidiText=function(J){return this.processText(J),this.tokenizer.getText()};V1.prototype.getTextGlyphs=function(J){this.processText(J);var K=[];for(var Y=0;Y<this.tokenizer.tokens.length;Y++){var X=this.tokenizer.tokens[Y];if(X.state.deleted)continue;var Z=X.activeState.value;K.push(Array.isArray(Z)?Z[0]:Z)}return K};function h0(J){if(J=J||{},J.tables=J.tables||{},!J.empty)R8(J.familyName,"When creating a new Font object, familyName is required."),R8(J.styleName,"When creating a new Font object, styleName is required."),R8(J.unitsPerEm,"When creating a new Font object, unitsPerEm is required."),R8(J.ascender,"When creating a new Font object, ascender is required."),R8(J.descender<=0,"When creating a new Font object, negative descender value is required."),this.unitsPerEm=J.unitsPerEm||1000,this.ascender=J.ascender,this.descender=J.descender,this.createdTimestamp=J.createdTimestamp,this.tables=Object.assign(J.tables,{os2:Object.assign({usWeightClass:J.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:J.widthClass||this.usWidthClasses.MEDIUM,fsSelection:J.fsSelection||this.fsSelectionValues.REGULAR},J.tables.os2)});this.supported=!0,this.glyphs=new F1.GlyphSet(this,J.glyphs||[]),this.encoding=new XJ(this),this.position=new S8(this),this.substitution=new o0(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 BJ(this)}})}h0.prototype.hasChar=function(J){return this.encoding.charToGlyphIndex(J)!==null};h0.prototype.charToGlyphIndex=function(J){return this.encoding.charToGlyphIndex(J)};h0.prototype.charToGlyph=function(J){var K=this.charToGlyphIndex(J),Y=this.glyphs.get(K);if(!Y)Y=this.glyphs.get(0);return Y};h0.prototype.updateFeatures=function(J){return this.defaultRenderOptions.features.map(function(K){if(K.script==="latn")return{script:"latn",tags:K.tags.filter(function(Y){return J[Y]})};else return K})};h0.prototype.stringToGlyphs=function(J,K){var Y=this,X=new V1,Z=function(V){return Y.charToGlyphIndex(V.char)};X.registerModifier("glyphIndex",null,Z);var Q=K?this.updateFeatures(K.features):this.defaultRenderOptions.features;X.applyFeatures(this,Q);var W=X.getTextGlyphs(J),w=W.length,H=Array(w),z=this.glyphs.get(0);for(var U=0;U<w;U+=1)H[U]=this.glyphs.get(W[U])||z;return H};h0.prototype.getKerningValue=function(J,K){J=J.index||J,K=K.index||K;var Y=this.position.defaultKerningTables;if(Y)return this.position.getKerningValue(Y,J,K);return this.kerningPairs[J+","+K]||0};h0.prototype.defaultRenderOptions={kerning:!0,features:[{script:"arab",tags:["init","medi","fina","rlig"]},{script:"latn",tags:["liga","rlig"]}]};h0.prototype.forEachGlyph=function(J,K,Y,X,Z,Q){K=K!==void 0?K:0,Y=Y!==void 0?Y:0,X=X!==void 0?X:72,Z=Object.assign({},this.defaultRenderOptions,Z);var W=1/this.unitsPerEm*X,w=this.stringToGlyphs(J,Z),H;if(Z.kerning){var z=Z.script||this.position.getDefaultScriptName();H=this.position.getKerningTables(z,Z.language)}for(var U=0;U<w.length;U+=1){var V=w[U];if(Q.call(this,V,K,Y,X,Z),V.advanceWidth)K+=V.advanceWidth*W;if(Z.kerning&&U<w.length-1){var $=H?this.position.getKerningValue(H,V.index,w[U+1].index):this.getKerningValue(V,w[U+1]);K+=$*W}if(Z.letterSpacing)K+=Z.letterSpacing*X;else if(Z.tracking)K+=Z.tracking/1000*X}return K};h0.prototype.getPath=function(J,K,Y,X,Z){var Q=new b0;return this.forEachGlyph(J,K,Y,X,Z,function(W,w,H,z){var U=W.getPath(w,H,z,Z,this);Q.extend(U)}),Q};h0.prototype.getPaths=function(J,K,Y,X,Z){var Q=[];return this.forEachGlyph(J,K,Y,X,Z,function(W,w,H,z){var U=W.getPath(w,H,z,Z,this);Q.push(U)}),Q};h0.prototype.getAdvanceWidth=function(J,K,Y){return this.forEachGlyph(J,0,0,K,Y,function(){})};h0.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512};h0.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};h0.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};function lW(J,K){K.parseUShort(),J.length=K.parseULong(),J.language=K.parseULong();var Y;J.groupCount=Y=K.parseULong(),J.glyphIndexMap={};for(var X=0;X<Y;X+=1){var Z=K.parseULong(),Q=K.parseULong(),W=K.parseULong();for(var w=Z;w<=Q;w+=1)J.glyphIndexMap[w]=W,W++}}function cW(J,K,Y,X,Z){J.length=K.parseUShort(),J.language=K.parseUShort();var Q;J.segCount=Q=K.parseUShort()>>1,K.skip("uShort",3),J.glyphIndexMap={};var W=new o.Parser(Y,X+Z+14),w=new o.Parser(Y,X+Z+16+Q*2),H=new o.Parser(Y,X+Z+16+Q*4),z=new o.Parser(Y,X+Z+16+Q*6),U=X+Z+16+Q*8;for(var V=0;V<Q-1;V+=1){var $=void 0,B=W.parseUShort(),M=w.parseUShort(),G=H.parseShort(),q=z.parseUShort();for(var O=M;O<=B;O+=1){if(q!==0){if(U=z.offset+z.relativeOffset-2,U+=q,U+=(O-M)*2,$=o.getUShort(Y,U),$!==0)$=$+G&65535}else $=O+G&65535;J.glyphIndexMap[O]=$}}}function uW(J,K){var Y={};Y.version=o.getUShort(J,K),z0.argument(Y.version===0,"cmap table version should be 0."),Y.numTables=o.getUShort(J,K+2);var X=-1;for(var Z=Y.numTables-1;Z>=0;Z-=1){var Q=o.getUShort(J,K+4+Z*8),W=o.getUShort(J,K+4+Z*8+2);if(Q===3&&(W===0||W===1||W===10)||Q===0&&(W===0||W===1||W===2||W===3||W===4)){X=o.getULong(J,K+4+Z*8+4);break}}if(X===-1)throw Error("No valid cmap sub-tables found.");var w=new o.Parser(J,K+X);if(Y.format=w.parseUShort(),Y.format===12)lW(Y,w);else if(Y.format===4)cW(Y,w,J,K,X);else throw Error("Only format 4 and 12 cmap tables are supported (found format "+Y.format+").");return Y}var pW={parse:uW};function a6(J){var K;if(J.length<1240)K=107;else if(J.length<33900)K=1131;else K=32768;return K}function m1(J,K,Y){var X=[],Z=[],Q=o.getCard16(J,K),W,w;if(Q!==0){var H=o.getByte(J,K+2);W=K+(Q+1)*H+2;var z=K+3;for(var U=0;U<Q+1;U+=1)X.push(o.getOffset(J,z,H)),z+=H;w=W+X[Q]}else w=K+2;for(var V=0;V<X.length-1;V+=1){var $=o.getBytes(J,W+X[V],W+X[V+1]);if(Y)$=Y($);Z.push($)}return{objects:Z,startOffset:K,endOffset:w}}function iW(J,K){var Y=[],X=o.getCard16(J,K),Z,Q;if(X!==0){var W=o.getByte(J,K+2);Z=K+(X+1)*W+2;var w=K+3;for(var H=0;H<X+1;H+=1)Y.push(o.getOffset(J,w,W)),w+=W;Q=Z+Y[X]}else Q=K+2;return{offsets:Y,startOffset:K,endOffset:Q}}function oW(J,K,Y,X,Z){var Q=o.getCard16(Y,X),W=0;if(Q!==0){var w=o.getByte(Y,X+2);W=X+(Q+1)*w+2}var H=o.getBytes(Y,W+K[J],W+K[J+1]);if(Z)H=Z(H);return H}function rW(J){var K="",Y=15,X=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];while(!0){var Z=J.parseByte(),Q=Z>>4,W=Z&15;if(Q===Y)break;if(K+=X[Q],W===Y)break;K+=X[W]}return parseFloat(K)}function nW(J,K){var Y,X,Z,Q;if(K===28)return Y=J.parseByte(),X=J.parseByte(),Y<<8|X;if(K===29)return Y=J.parseByte(),X=J.parseByte(),Z=J.parseByte(),Q=J.parseByte(),Y<<24|X<<16|Z<<8|Q;if(K===30)return rW(J);if(K>=32&&K<=246)return K-139;if(K>=247&&K<=250)return Y=J.parseByte(),(K-247)*256+Y+108;if(K>=251&&K<=254)return Y=J.parseByte(),-(K-251)*256-Y-108;throw Error("Invalid b0 "+K)}function sW(J){var K={};for(var Y=0;Y<J.length;Y+=1){var X=J[Y][0],Z=J[Y][1],Q=void 0;if(Z.length===1)Q=Z[0];else Q=Z;if(K.hasOwnProperty(X)&&!isNaN(K[X]))throw Error("Object "+K+" already has key "+X);K[X]=Q}return K}function NJ(J,K,Y){K=K!==void 0?K:0;var X=new o.Parser(J,K),Z=[],Q=[];Y=Y!==void 0?Y:J.length;while(X.relativeOffset<Y){var W=X.parseByte();if(W<=21){if(W===12)W=1200+X.parseByte();Z.push([W,Q]),Q=[]}else Q.push(nW(X,W))}return sW(Z)}function I8(J,K){if(K<=390)K=GQ[K];else K=J[K-391];return K}function OJ(J,K,Y){var X={},Z;for(var Q=0;Q<K.length;Q+=1){var W=K[Q];if(Array.isArray(W.type)){var w=[];w.length=W.type.length;for(var H=0;H<W.type.length;H++){if(Z=J[W.op]!==void 0?J[W.op][H]:void 0,Z===void 0)Z=W.value!==void 0&&W.value[H]!==void 0?W.value[H]:null;if(W.type[H]==="SID")Z=I8(Y,Z);w[H]=Z}X[W.name]=w}else{if(Z=J[W.op],Z===void 0)Z=W.value!==void 0?W.value:null;if(W.type==="SID")Z=I8(Y,Z);X[W.name]=Z}}return X}function aW(J,K){var Y={};return Y.formatMajor=o.getCard8(J,K),Y.formatMinor=o.getCard8(J,K+1),Y.size=o.getCard8(J,K+2),Y.offsetSize=o.getCard8(J,K+3),Y.startOffset=K,Y.endOffset=K+4,Y}var tW=[{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:[0.001,0,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"}],eW=[{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 JH(J,K){var Y=NJ(J,0,J.byteLength);return OJ(Y,tW,K)}function jJ(J,K,Y,X){var Z=NJ(J,K,Y);return OJ(Z,eW,X)}function o7(J,K,Y,X){var Z=[];for(var Q=0;Q<Y.length;Q+=1){var W=new DataView(new Uint8Array(Y[Q]).buffer),w=JH(W,X);w._subrs=[],w._subrsBias=0,w._defaultWidthX=0,w._nominalWidthX=0;var H=w.private[0],z=w.private[1];if(H!==0&&z!==0){var U=jJ(J,z+K,H,X);if(w._defaultWidthX=U.defaultWidthX,w._nominalWidthX=U.nominalWidthX,U.subrs!==0){var V=z+U.subrs,$=m1(J,V+K);w._subrs=$.objects,w._subrsBias=a6(w._subrs)}w._privateDict=U}Z.push(w)}return Z}function KH(J,K,Y,X){var Z,Q,W=new o.Parser(J,K);Y-=1;var w=[".notdef"],H=W.parseCard8();if(H===0)for(var z=0;z<Y;z+=1)Z=W.parseSID(),w.push(I8(X,Z));else if(H===1)while(w.length<=Y){Z=W.parseSID(),Q=W.parseCard8();for(var U=0;U<=Q;U+=1)w.push(I8(X,Z)),Z+=1}else if(H===2)while(w.length<=Y){Z=W.parseSID(),Q=W.parseCard16();for(var V=0;V<=Q;V+=1)w.push(I8(X,Z)),Z+=1}else throw Error("Unknown charset format "+H);return w}function YH(J,K,Y){var X,Z={},Q=new o.Parser(J,K),W=Q.parseCard8();if(W===0){var w=Q.parseCard8();for(var H=0;H<w;H+=1)X=Q.parseCard8(),Z[X]=H}else if(W===1){var z=Q.parseCard8();X=1;for(var U=0;U<z;U+=1){var V=Q.parseCard8(),$=Q.parseCard8();for(var B=V;B<=V+$;B+=1)Z[B]=X,X+=1}}else throw Error("Unknown encoding format "+W);return new B5(Z,Y)}function r7(J,K,Y){var X,Z,Q,W,w=new b0,H=[],z=0,U=!1,V=!1,$=0,B=0,M,G,q,O;if(J.isCIDFont){var j=J.tables.cff.topDict._fdSelect[K.index],_=J.tables.cff.topDict._fdArray[j];M=_._subrs,G=_._subrsBias,q=_._defaultWidthX,O=_._nominalWidthX}else M=J.tables.cff.topDict._subrs,G=J.tables.cff.topDict._subrsBias,q=J.tables.cff.topDict._defaultWidthX,O=J.tables.cff.topDict._nominalWidthX;var R=q;function E(D,P){if(V)w.closePath();w.moveTo(D,P),V=!0}function L(){var D=H.length%2!==0;if(D&&!U)R=H.shift()+O;z+=H.length>>1,H.length=0,U=!0}function T(D){var P,k,c,n,u,C,S,I,d,m,s,p,f=0;while(f<D.length){var l=D[f];switch(f+=1,l){case 1:L();break;case 3:L();break;case 4:if(H.length>1&&!U)R=H.shift()+O,U=!0;B+=H.pop(),E($,B);break;case 5:while(H.length>0)$+=H.shift(),B+=H.shift(),w.lineTo($,B);break;case 6:while(H.length>0){if($+=H.shift(),w.lineTo($,B),H.length===0)break;B+=H.shift(),w.lineTo($,B)}break;case 7:while(H.length>0){if(B+=H.shift(),w.lineTo($,B),H.length===0)break;$+=H.shift(),w.lineTo($,B)}break;case 8:while(H.length>0)X=$+H.shift(),Z=B+H.shift(),Q=X+H.shift(),W=Z+H.shift(),$=Q+H.shift(),B=W+H.shift(),w.curveTo(X,Z,Q,W,$,B);break;case 10:if(u=H.pop()+G,C=M[u],C)T(C);break;case 11:return;case 12:switch(l=D[f],f+=1,l){case 35:X=$+H.shift(),Z=B+H.shift(),Q=X+H.shift(),W=Z+H.shift(),S=Q+H.shift(),I=W+H.shift(),d=S+H.shift(),m=I+H.shift(),s=d+H.shift(),p=m+H.shift(),$=s+H.shift(),B=p+H.shift(),H.shift(),w.curveTo(X,Z,Q,W,S,I),w.curveTo(d,m,s,p,$,B);break;case 34:X=$+H.shift(),Z=B,Q=X+H.shift(),W=Z+H.shift(),S=Q+H.shift(),I=W,d=S+H.shift(),m=W,s=d+H.shift(),p=B,$=s+H.shift(),w.curveTo(X,Z,Q,W,S,I),w.curveTo(d,m,s,p,$,B);break;case 36:X=$+H.shift(),Z=B+H.shift(),Q=X+H.shift(),W=Z+H.shift(),S=Q+H.shift(),I=W,d=S+H.shift(),m=W,s=d+H.shift(),p=m+H.shift(),$=s+H.shift(),w.curveTo(X,Z,Q,W,S,I),w.curveTo(d,m,s,p,$,B);break;case 37:if(X=$+H.shift(),Z=B+H.shift(),Q=X+H.shift(),W=Z+H.shift(),S=Q+H.shift(),I=W+H.shift(),d=S+H.shift(),m=I+H.shift(),s=d+H.shift(),p=m+H.shift(),Math.abs(s-$)>Math.abs(p-B))$=s+H.shift();else B=p+H.shift();w.curveTo(X,Z,Q,W,S,I),w.curveTo(d,m,s,p,$,B);break;default:console.log("Glyph "+K.index+": unknown operator 1200"+l),H.length=0}break;case 14:if(H.length>0&&!U)R=H.shift()+O,U=!0;if(V)w.closePath(),V=!1;break;case 18:L();break;case 19:case 20:L(),f+=z+7>>3;break;case 21:if(H.length>2&&!U)R=H.shift()+O,U=!0;B+=H.pop(),$+=H.pop(),E($,B);break;case 22:if(H.length>1&&!U)R=H.shift()+O,U=!0;$+=H.pop(),E($,B);break;case 23:L();break;case 24:while(H.length>2)X=$+H.shift(),Z=B+H.shift(),Q=X+H.shift(),W=Z+H.shift(),$=Q+H.shift(),B=W+H.shift(),w.curveTo(X,Z,Q,W,$,B);$+=H.shift(),B+=H.shift(),w.lineTo($,B);break;case 25:while(H.length>6)$+=H.shift(),B+=H.shift(),w.lineTo($,B);X=$+H.shift(),Z=B+H.shift(),Q=X+H.shift(),W=Z+H.shift(),$=Q+H.shift(),B=W+H.shift(),w.curveTo(X,Z,Q,W,$,B);break;case 26:if(H.length%2)$+=H.shift();while(H.length>0)X=$,Z=B+H.shift(),Q=X+H.shift(),W=Z+H.shift(),$=Q,B=W+H.shift(),w.curveTo(X,Z,Q,W,$,B);break;case 27:if(H.length%2)B+=H.shift();while(H.length>0)X=$+H.shift(),Z=B,Q=X+H.shift(),W=Z+H.shift(),$=Q+H.shift(),B=W,w.curveTo(X,Z,Q,W,$,B);break;case 28:P=D[f],k=D[f+1],H.push((P<<24|k<<16)>>16),f+=2;break;case 29:if(u=H.pop()+J.gsubrsBias,C=J.gsubrs[u],C)T(C);break;case 30:while(H.length>0){if(X=$,Z=B+H.shift(),Q=X+H.shift(),W=Z+H.shift(),$=Q+H.shift(),B=W+(H.length===1?H.shift():0),w.curveTo(X,Z,Q,W,$,B),H.length===0)break;X=$+H.shift(),Z=B,Q=X+H.shift(),W=Z+H.shift(),B=W+H.shift(),$=Q+(H.length===1?H.shift():0),w.curveTo(X,Z,Q,W,$,B)}break;case 31:while(H.length>0){if(X=$+H.shift(),Z=B,Q=X+H.shift(),W=Z+H.shift(),B=W+H.shift(),$=Q+(H.length===1?H.shift():0),w.curveTo(X,Z,Q,W,$,B),H.length===0)break;X=$,Z=B+H.shift(),Q=X+H.shift(),W=Z+H.shift(),$=Q+H.shift(),B=W+(H.length===1?H.shift():0),w.curveTo(X,Z,Q,W,$,B)}break;default:if(l<32)console.log("Glyph "+K.index+": unknown operator "+l);else if(l<247)H.push(l-139);else if(l<251)P=D[f],f+=1,H.push((l-247)*256+P+108);else if(l<255)P=D[f],f+=1,H.push(-(l-251)*256-P-108);else P=D[f],k=D[f+1],c=D[f+2],n=D[f+3],f+=4,H.push((P<<24|k<<16|c<<8|n)/65536)}}}return T(Y),K.advanceWidth=R,w}function XH(J,K,Y,X){var Z=[],Q,W=new o.Parser(J,K),w=W.parseCard8();if(w===0)for(var H=0;H<Y;H++){if(Q=W.parseCard8(),Q>=X)throw Error("CFF table CID Font FDSelect has bad FD index value "+Q+" (FD count "+X+")");Z.push(Q)}else if(w===3){var z=W.parseCard16(),U=W.parseCard16();if(U!==0)throw Error("CFF Table CID Font FDSelect format 3 range has bad initial GID "+U);var V;for(var $=0;$<z;$++){if(Q=W.parseCard8(),V=W.parseCard16(),Q>=X)throw Error("CFF table CID Font FDSelect has bad FD index value "+Q+" (FD count "+X+")");if(V>Y)throw Error("CFF Table CID Font FDSelect format 3 range has bad GID "+V);for(;U<V;U++)Z.push(Q);U=V}if(V!==Y)throw Error("CFF Table CID Font FDSelect format 3 range has bad final GID "+V)}else throw Error("CFF Table CID Font FDSelect table has unsupported format "+w);return Z}function ZH(J,K,Y,X){Y.tables.cff={};var Z=aW(J,K),Q=m1(J,Z.endOffset,o.bytesToString),W=m1(J,Q.endOffset),w=m1(J,W.endOffset,o.bytesToString),H=m1(J,w.endOffset);Y.gsubrs=H.objects,Y.gsubrsBias=a6(Y.gsubrs);var z=o7(J,K,W.objects,w.objects);if(z.length!==1)throw Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = "+z.length);var U=z[0];if(Y.tables.cff.topDict=U,U._privateDict)Y.defaultWidthX=U._privateDict.defaultWidthX,Y.nominalWidthX=U._privateDict.nominalWidthX;if(U.ros[0]!==void 0&&U.ros[1]!==void 0)Y.isCIDFont=!0;if(Y.isCIDFont){var{fdArray:V,fdSelect:$}=U;if(V===0||$===0)throw Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");V+=K;var B=m1(J,V),M=o7(J,K,B.objects,w.objects);U._fdArray=M,$+=K,U._fdSelect=XH(J,$,Y.numGlyphs,M.length)}var G=K+U.private[1],q=jJ(J,G,U.private[0],w.objects);if(Y.defaultWidthX=q.defaultWidthX,Y.nominalWidthX=q.nominalWidthX,q.subrs!==0){var O=G+q.subrs,j=m1(J,O);Y.subrs=j.objects,Y.subrsBias=a6(Y.subrs)}else Y.subrs=[],Y.subrsBias=0;var _;if(X.lowMemory)_=iW(J,K+U.charStrings),Y.nGlyphs=_.offsets.length;else _=m1(J,K+U.charStrings),Y.nGlyphs=_.objects.length;var R=KH(J,K+U.charset,Y.nGlyphs,w.objects);if(U.encoding===0)Y.cffEncoding=new B5(qQ,R);else if(U.encoding===1)Y.cffEncoding=new B5(MQ,R);else Y.cffEncoding=YH(J,K+U.encoding,R);if(Y.encoding=Y.encoding||Y.cffEncoding,Y.glyphs=new F1.GlyphSet(Y),X.lowMemory)Y._push=function(T){var D=oW(T,_.offsets,J,K+U.charStrings);Y.glyphs.push(T,F1.cffGlyphLoader(Y,T,r7,D))};else for(var E=0;E<Y.nGlyphs;E+=1){var L=_.objects[E];Y.glyphs.push(E,F1.cffGlyphLoader(Y,E,r7,L))}}var QH={parse:ZH};function WH(J,K,Y){var X={},Z=new o.Parser(J,K);return X.tag=Z.parseTag(),X.minValue=Z.parseFixed(),X.defaultValue=Z.parseFixed(),X.maxValue=Z.parseFixed(),Z.skip("uShort",1),X.name=Y[Z.parseUShort()]||{},X}function HH(J,K,Y,X){var Z={},Q=new o.Parser(J,K);Z.name=X[Q.parseUShort()]||{},Q.skip("uShort",1),Z.coordinates={};for(var W=0;W<Y.length;++W)Z.coordinates[Y[W].tag]=Q.parseFixed();return Z}function wH(J,K,Y){var X=new o.Parser(J,K),Z=X.parseULong();z0.argument(Z===65536,"Unsupported fvar table version.");var Q=X.parseOffset16();X.skip("uShort",1);var W=X.parseUShort(),w=X.parseUShort(),H=X.parseUShort(),z=X.parseUShort(),U=[];for(var V=0;V<W;V++)U.push(WH(J,K+Q+V*w,Y));var $=[],B=K+Q+W*w;for(var M=0;M<H;M++)$.push(HH(J,B+M*z,U,Y));return{axes:U,instances:$}}var zH={parse:wH},UH=function(){return{coverage:this.parsePointer(v.coverage),attachPoints:this.parseList(v.pointer(v.uShortList))}},VH=function(){var J=this.parseUShort();if(z0.argument(J===1||J===2||J===3,"Unsupported CaretValue table version."),J===1)return{coordinate:this.parseShort()};else if(J===2)return{pointindex:this.parseShort()};else if(J===3)return{coordinate:this.parseShort()}},$H=function(){return this.parseList(v.pointer(VH))},BH=function(){return{coverage:this.parsePointer(v.coverage),ligGlyphs:this.parseList(v.pointer($H))}},AH=function(){return this.parseUShort(),this.parseList(v.pointer(v.coverage))};function GH(J,K){K=K||0;var Y=new v(J,K),X=Y.parseVersion(1);z0.argument(X===1||X===1.2||X===1.3,"Unsupported GDEF table version.");var Z={version:X,classDef:Y.parsePointer(v.classDef),attachList:Y.parsePointer(UH),ligCaretList:Y.parsePointer(BH),markAttachClassDef:Y.parsePointer(v.classDef)};if(X>=1.2)Z.markGlyphSets=Y.parsePointer(AH);return Z}var qH={parse:GH},z1=[,,,,,,,,,,];z1[1]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{posFormat:1,coverage:this.parsePointer(v.coverage),value:this.parseValueRecord()};else if(Y===2)return{posFormat:2,coverage:this.parsePointer(v.coverage),values:this.parseValueRecordList()};z0.assert(!1,"0x"+K.toString(16)+": GPOS lookup type 1 format must be 1 or 2.")};z1[2]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();z0.assert(Y===1||Y===2,"0x"+K.toString(16)+": GPOS lookup type 2 format must be 1 or 2.");var X=this.parsePointer(v.coverage),Z=this.parseUShort(),Q=this.parseUShort();if(Y===1)return{posFormat:Y,coverage:X,valueFormat1:Z,valueFormat2:Q,pairSets:this.parseList(v.pointer(v.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(Z),value2:this.parseValueRecord(Q)}})))};else if(Y===2){var W=this.parsePointer(v.classDef),w=this.parsePointer(v.classDef),H=this.parseUShort(),z=this.parseUShort();return{posFormat:Y,coverage:X,valueFormat1:Z,valueFormat2:Q,classDef1:W,classDef2:w,class1Count:H,class2Count:z,classRecords:this.parseList(H,v.list(z,function(){return{value1:this.parseValueRecord(Z),value2:this.parseValueRecord(Q)}}))}}};z1[3]=function(){return{error:"GPOS Lookup 3 not supported"}};z1[4]=function(){return{error:"GPOS Lookup 4 not supported"}};z1[5]=function(){return{error:"GPOS Lookup 5 not supported"}};z1[6]=function(){return{error:"GPOS Lookup 6 not supported"}};z1[7]=function(){return{error:"GPOS Lookup 7 not supported"}};z1[8]=function(){return{error:"GPOS Lookup 8 not supported"}};z1[9]=function(){return{error:"GPOS Lookup 9 not supported"}};function MH(J,K){K=K||0;var Y=new v(J,K),X=Y.parseVersion(1);if(z0.argument(X===1||X===1.1,"Unsupported GPOS table version "+X),X===1)return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(z1)};else return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(z1),variations:Y.parseFeatureVariationsList()}}var NH={parse:MH},U1=[,,,,,,,,,];U1[1]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{substFormat:1,coverage:this.parsePointer(v.coverage),deltaGlyphId:this.parseUShort()};else if(Y===2)return{substFormat:2,coverage:this.parsePointer(v.coverage),substitute:this.parseOffset16List()};z0.assert(!1,"0x"+K.toString(16)+": lookup type 1 format must be 1 or 2.")};U1[2]=function(){var K=this.parseUShort();return z0.argument(K===1,"GSUB Multiple Substitution Subtable identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(v.coverage),sequences:this.parseListOfLists()}};U1[3]=function(){var K=this.parseUShort();return z0.argument(K===1,"GSUB Alternate Substitution Subtable identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(v.coverage),alternateSets:this.parseListOfLists()}};U1[4]=function(){var K=this.parseUShort();return z0.argument(K===1,"GSUB ligature table identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(v.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var A8={sequenceIndex:v.uShort,lookupListIndex:v.uShort};U1[5]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{substFormat:Y,coverage:this.parsePointer(v.coverage),ruleSets:this.parseListOfLists(function(){var Q=this.parseUShort(),W=this.parseUShort();return{input:this.parseUShortList(Q-1),lookupRecords:this.parseRecordList(W,A8)}})};else if(Y===2)return{substFormat:Y,coverage:this.parsePointer(v.coverage),classDef:this.parsePointer(v.classDef),classSets:this.parseListOfLists(function(){var Q=this.parseUShort(),W=this.parseUShort();return{classes:this.parseUShortList(Q-1),lookupRecords:this.parseRecordList(W,A8)}})};else if(Y===3){var X=this.parseUShort(),Z=this.parseUShort();return{substFormat:Y,coverages:this.parseList(X,v.pointer(v.coverage)),lookupRecords:this.parseRecordList(Z,A8)}}z0.assert(!1,"0x"+K.toString(16)+": lookup type 5 format must be 1, 2 or 3.")};U1[6]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{substFormat:1,coverage:this.parsePointer(v.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(A8)}})};else if(Y===2)return{substFormat:2,coverage:this.parsePointer(v.coverage),backtrackClassDef:this.parsePointer(v.classDef),inputClassDef:this.parsePointer(v.classDef),lookaheadClassDef:this.parsePointer(v.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(A8)}})};else if(Y===3)return{substFormat:3,backtrackCoverage:this.parseList(v.pointer(v.coverage)),inputCoverage:this.parseList(v.pointer(v.coverage)),lookaheadCoverage:this.parseList(v.pointer(v.coverage)),lookupRecords:this.parseRecordList(A8)};z0.assert(!1,"0x"+K.toString(16)+": lookup type 6 format must be 1, 2 or 3.")};U1[7]=function(){var K=this.parseUShort();z0.argument(K===1,"GSUB Extension Substitution subtable identifier-format must be 1");var Y=this.parseUShort(),X=new v(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:Y,extension:U1[Y].call(X)}};U1[8]=function(){var K=this.parseUShort();return z0.argument(K===1,"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(v.coverage),backtrackCoverage:this.parseList(v.pointer(v.coverage)),lookaheadCoverage:this.parseList(v.pointer(v.coverage)),substitutes:this.parseUShortList()}};function OH(J,K){K=K||0;var Y=new v(J,K),X=Y.parseVersion(1);if(z0.argument(X===1||X===1.1,"Unsupported GSUB table version."),X===1)return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(U1)};else return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(U1),variations:Y.parseFeatureVariationsList()}}var jH={parse:OH};function LH(J,K){var Y={},X=new o.Parser(J,K);return Y.version=X.parseVersion(),Y.fontRevision=Math.round(X.parseFixed()*1000)/1000,Y.checkSumAdjustment=X.parseULong(),Y.magicNumber=X.parseULong(),z0.argument(Y.magicNumber===1594834165,"Font header has wrong magic number."),Y.flags=X.parseUShort(),Y.unitsPerEm=X.parseUShort(),Y.created=X.parseLongDateTime(),Y.modified=X.parseLongDateTime(),Y.xMin=X.parseShort(),Y.yMin=X.parseShort(),Y.xMax=X.parseShort(),Y.yMax=X.parseShort(),Y.macStyle=X.parseUShort(),Y.lowestRecPPEM=X.parseUShort(),Y.fontDirectionHint=X.parseShort(),Y.indexToLocFormat=X.parseShort(),Y.glyphDataFormat=X.parseShort(),Y}var FH={parse:LH};function EH(J,K){var Y={},X=new o.Parser(J,K);return Y.version=X.parseVersion(),Y.ascender=X.parseShort(),Y.descender=X.parseShort(),Y.lineGap=X.parseShort(),Y.advanceWidthMax=X.parseUShort(),Y.minLeftSideBearing=X.parseShort(),Y.minRightSideBearing=X.parseShort(),Y.xMaxExtent=X.parseShort(),Y.caretSlopeRise=X.parseShort(),Y.caretSlopeRun=X.parseShort(),Y.caretOffset=X.parseShort(),X.relativeOffset+=8,Y.metricDataFormat=X.parseShort(),Y.numberOfHMetrics=X.parseUShort(),Y}var _H={parse:EH};function RH(J,K,Y,X,Z){var Q,W,w=new o.Parser(J,K);for(var H=0;H<X;H+=1){if(H<Y)Q=w.parseUShort(),W=w.parseShort();var z=Z.get(H);z.advanceWidth=Q,z.leftSideBearing=W}}function DH(J,K,Y,X,Z){J._hmtxTableData={};var Q,W,w=new o.Parser(K,Y);for(var H=0;H<Z;H+=1){if(H<X)Q=w.parseUShort(),W=w.parseShort();J._hmtxTableData[H]={advanceWidth:Q,leftSideBearing:W}}}function IH(J,K,Y,X,Z,Q,W){if(W.lowMemory)DH(J,K,Y,X,Z);else RH(K,Y,X,Z,Q)}var TH={parse:IH};function CH(J){var K={};J.skip("uShort");var Y=J.parseUShort();z0.argument(Y===0,"Unsupported kern sub-table version."),J.skip("uShort",2);var X=J.parseUShort();J.skip("uShort",3);for(var Z=0;Z<X;Z+=1){var Q=J.parseUShort(),W=J.parseUShort(),w=J.parseShort();K[Q+","+W]=w}return K}function PH(J){var K={};J.skip("uShort");var Y=J.parseULong();if(Y>1)console.warn("Only the first kern subtable is supported.");J.skip("uLong");var X=J.parseUShort(),Z=X&255;if(J.skip("uShort"),Z===0){var Q=J.parseUShort();J.skip("uShort",3);for(var W=0;W<Q;W+=1){var w=J.parseUShort(),H=J.parseUShort(),z=J.parseShort();K[w+","+H]=z}}return K}function SH(J,K){var Y=new o.Parser(J,K),X=Y.parseUShort();if(X===0)return CH(Y);else if(X===1)return PH(Y);else throw Error("Unsupported kern table version ("+X+").")}var vH={parse:SH};function yH(J,K){var Y=new o.Parser(J,K),X=Y.parseULong();z0.argument(X===1,"Unsupported ltag table version."),Y.skip("uLong",1);var Z=Y.parseULong(),Q=[];for(var W=0;W<Z;W++){var w="",H=K+Y.parseUShort(),z=Y.parseUShort();for(var U=H;U<H+z;++U)w+=String.fromCharCode(J.getInt8(U));Q.push(w)}return Q}var kH={parse:yH};function gH(J,K,Y,X){var Z=new o.Parser(J,K),Q=X?Z.parseUShort:Z.parseULong,W=[];for(var w=0;w<Y+1;w+=1){var H=Q.call(Z);if(X)H*=2;W.push(H)}return W}var xH={parse:gH};function bH(J,K){var Y={},X=new o.Parser(J,K);if(Y.version=X.parseVersion(),Y.numGlyphs=X.parseUShort(),Y.version===1)Y.maxPoints=X.parseUShort(),Y.maxContours=X.parseUShort(),Y.maxCompositePoints=X.parseUShort(),Y.maxCompositeContours=X.parseUShort(),Y.maxZones=X.parseUShort(),Y.maxTwilightPoints=X.parseUShort(),Y.maxStorage=X.parseUShort(),Y.maxFunctionDefs=X.parseUShort(),Y.maxInstructionDefs=X.parseUShort(),Y.maxStackElements=X.parseUShort(),Y.maxSizeOfInstructions=X.parseUShort(),Y.maxComponentElements=X.parseUShort(),Y.maxComponentDepth=X.parseUShort();return Y}var hH={parse:bH};function mH(J,K){var Y={},X=new o.Parser(J,K);Y.version=X.parseUShort(),Y.xAvgCharWidth=X.parseShort(),Y.usWeightClass=X.parseUShort(),Y.usWidthClass=X.parseUShort(),Y.fsType=X.parseUShort(),Y.ySubscriptXSize=X.parseShort(),Y.ySubscriptYSize=X.parseShort(),Y.ySubscriptXOffset=X.parseShort(),Y.ySubscriptYOffset=X.parseShort(),Y.ySuperscriptXSize=X.parseShort(),Y.ySuperscriptYSize=X.parseShort(),Y.ySuperscriptXOffset=X.parseShort(),Y.ySuperscriptYOffset=X.parseShort(),Y.yStrikeoutSize=X.parseShort(),Y.yStrikeoutPosition=X.parseShort(),Y.sFamilyClass=X.parseShort(),Y.panose=[];for(var Z=0;Z<10;Z++)Y.panose[Z]=X.parseByte();if(Y.ulUnicodeRange1=X.parseULong(),Y.ulUnicodeRange2=X.parseULong(),Y.ulUnicodeRange3=X.parseULong(),Y.ulUnicodeRange4=X.parseULong(),Y.achVendID=String.fromCharCode(X.parseByte(),X.parseByte(),X.parseByte(),X.parseByte()),Y.fsSelection=X.parseUShort(),Y.usFirstCharIndex=X.parseUShort(),Y.usLastCharIndex=X.parseUShort(),Y.sTypoAscender=X.parseShort(),Y.sTypoDescender=X.parseShort(),Y.sTypoLineGap=X.parseShort(),Y.usWinAscent=X.parseUShort(),Y.usWinDescent=X.parseUShort(),Y.version>=1)Y.ulCodePageRange1=X.parseULong(),Y.ulCodePageRange2=X.parseULong();if(Y.version>=2)Y.sxHeight=X.parseShort(),Y.sCapHeight=X.parseShort(),Y.usDefaultChar=X.parseUShort(),Y.usBreakChar=X.parseUShort(),Y.usMaxContent=X.parseUShort();return Y}var fH={parse:mH};function dH(J,K){var Y={},X=new o.Parser(J,K);switch(Y.version=X.parseVersion(),Y.italicAngle=X.parseFixed(),Y.underlinePosition=X.parseShort(),Y.underlineThickness=X.parseShort(),Y.isFixedPitch=X.parseULong(),Y.minMemType42=X.parseULong(),Y.maxMemType42=X.parseULong(),Y.minMemType1=X.parseULong(),Y.maxMemType1=X.parseULong(),Y.names=[],Y.version){case 1:break;case 2:Y.numberOfGlyphs=X.parseUShort(),Y.glyphNameIndex=Array(Y.numberOfGlyphs);for(var Z=0;Z<Y.numberOfGlyphs;Z++)Y.glyphNameIndex[Z]=X.parseUShort();break;case 2.5:Y.numberOfGlyphs=X.parseUShort(),Y.offset=Array(Y.numberOfGlyphs);for(var Q=0;Q<Y.numberOfGlyphs;Q++)Y.offset[Q]=X.parseChar();break}return Y}var lH={parse:dH},M5={};M5.UTF8=function(J,K,Y){var X=[],Z=Y;for(var Q=0;Q<Z;Q++,K+=1)X[Q]=J.getUint8(K);return String.fromCharCode.apply(null,X)};M5.UTF16=function(J,K,Y){var X=[],Z=Y/2;for(var Q=0;Q<Z;Q++,K+=2)X[Q]=J.getUint16(K);return String.fromCharCode.apply(null,X)};var cH={"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"};M5.MACSTRING=function(J,K,Y,X){var Z=cH[X];if(Z===void 0)return;var Q="";for(var W=0;W<Y;W++){var w=J.getUint8(K+W);if(w<=127)Q+=String.fromCharCode(w);else Q+=Z[w&127]}return Q};function uH(J,K){var Y=new o.Parser(J,K),X=Y.parseULong();z0.argument(X===1,"Unsupported META table version."),Y.parseULong(),Y.parseULong();var Z=Y.parseULong(),Q={};for(var W=0;W<Z;W++){var w=Y.parseTag(),H=Y.parseULong(),z=Y.parseULong(),U=M5.UTF8(J,K+H,z);Q[w]=U}return Q}var pH={parse:uH};function n7(J,K){var Y=[],X=12;for(var Z=0;Z<K;Z+=1){var Q=o.getTag(J,X),W=o.getULong(J,X+4),w=o.getULong(J,X+8),H=o.getULong(J,X+12);Y.push({tag:Q,checksum:W,offset:w,length:H,compression:!1}),X+=16}return Y}function iH(J,K){var Y=[],X=44;for(var Z=0;Z<K;Z+=1){var Q=o.getTag(J,X),W=o.getULong(J,X+4),w=o.getULong(J,X+8),H=o.getULong(J,X+12),z=void 0;if(w<H)z="WOFF";else z=!1;Y.push({tag:Q,offset:W,compression:z,compressedLength:w,length:H}),X+=20}return Y}function D0(J,K){if(K.compression==="WOFF"){var Y=new Uint8Array(J.buffer,K.offset+2,K.compressedLength-2),X=new Uint8Array(K.length);if($Q(Y,X),X.byteLength!==K.length)throw Error("Decompression error: "+K.tag+" decompressed length doesn't match recorded length");var Z=new DataView(X.buffer,0);return{data:Z,offset:0}}else return{data:J,offset:K.offset}}function oH(J,K){K=K===void 0||K===null?{}:K;var Y,X=new h0({empty:!0}),Z=new DataView(J,0),Q,W=[],w=o.getTag(Z,0);if(w===String.fromCharCode(0,1,0,0)||w==="true"||w==="typ1")X.outlinesFormat="truetype",Q=o.getUShort(Z,4),W=n7(Z,Q);else if(w==="OTTO")X.outlinesFormat="cff",Q=o.getUShort(Z,4),W=n7(Z,Q);else if(w==="wOFF"){var H=o.getTag(Z,4);if(H===String.fromCharCode(0,1,0,0))X.outlinesFormat="truetype";else if(H==="OTTO")X.outlinesFormat="cff";else throw Error("Unsupported OpenType flavor "+w);Q=o.getUShort(Z,12),W=iH(Z,Q)}else throw Error("Unsupported OpenType signature "+w);var z,U,V,$,B,M,G,q,O,j,_;for(var R=0;R<Q;R+=1){var E=W[R],L=void 0;switch(E.tag){case"cmap":L=D0(Z,E),X.tables.cmap=pW.parse(L.data,L.offset),X.encoding=new ZJ(X.tables.cmap);break;case"cvt ":L=D0(Z,E),_=new o.Parser(L.data,L.offset),X.tables.cvt=_.parseShortList(E.length/2);break;case"fvar":U=E;break;case"fpgm":L=D0(Z,E),_=new o.Parser(L.data,L.offset),X.tables.fpgm=_.parseByteList(E.length);break;case"head":L=D0(Z,E),X.tables.head=FH.parse(L.data,L.offset),X.unitsPerEm=X.tables.head.unitsPerEm,Y=X.tables.head.indexToLocFormat;break;case"hhea":L=D0(Z,E),X.tables.hhea=_H.parse(L.data,L.offset),X.ascender=X.tables.hhea.ascender,X.descender=X.tables.hhea.descender,X.numberOfHMetrics=X.tables.hhea.numberOfHMetrics;break;case"hmtx":G=E;break;case"ltag":L=D0(Z,E),ltagTable=kH.parse(L.data,L.offset);break;case"maxp":L=D0(Z,E),X.tables.maxp=hH.parse(L.data,L.offset),X.numGlyphs=X.tables.maxp.numGlyphs;break;case"OS/2":L=D0(Z,E),X.tables.os2=fH.parse(L.data,L.offset);break;case"post":L=D0(Z,E),X.tables.post=lH.parse(L.data,L.offset);break;case"prep":L=D0(Z,E),_=new o.Parser(L.data,L.offset),X.tables.prep=_.parseByteList(E.length);break;case"glyf":V=E;break;case"loca":O=E;break;case"CFF ":z=E;break;case"kern":q=E;break;case"GDEF":$=E;break;case"GPOS":B=E;break;case"GSUB":M=E;break;case"meta":j=E;break}}if(V&&O){var T=Y===0,D=D0(Z,O),P=xH.parse(D.data,D.offset,X.numGlyphs,T),k=D0(Z,V);X.glyphs=UJ.parse(k.data,k.offset,P,X,K)}else if(z){var c=D0(Z,z);QH.parse(c.data,c.offset,X,K)}else throw Error("Font doesn't contain TrueType or CFF outlines.");var n=D0(Z,G);if(TH.parse(X,n.data,n.offset,X.numberOfHMetrics,X.numGlyphs,X.glyphs,K),jQ(X,K),q){var u=D0(Z,q);X.kerningPairs=vH.parse(u.data,u.offset)}else X.kerningPairs={};if($){var C=D0(Z,$);X.tables.gdef=qH.parse(C.data,C.offset)}if(B){var S=D0(Z,B);X.tables.gpos=NH.parse(S.data,S.offset),X.position.init()}if(M){var I=D0(Z,M);X.tables.gsub=jH.parse(I.data,I.offset)}if(U){var d=D0(Z,U);X.tables.fvar=zH.parse(d.data,d.offset,X.names)}if(j){var m=D0(Z,j);X.tables.meta=pH.parse(m.data,m.offset),X.metas=X.tables.meta}return X}function rH(){}function nH(){}var sH=Object.freeze({__proto__:null,Font:h0,Glyph:T1,Path:b0,_parse:o,parse:oH,load:rH,loadSync:nH}),N5=sH;var{create:tH,defineProperty:b5,getOwnPropertyDescriptor:eH,getOwnPropertyNames:Jw,getPrototypeOf:Kw}=Object,Yw=Object.prototype.hasOwnProperty,F4=(J,K)=>()=>(J&&(K=J(J=0)),K),t=(J,K)=>()=>(K||J((K={exports:{}}).exports,K),K.exports),E4=(J,K)=>{for(var Y in K)b5(J,Y,{get:K[Y],enumerable:!0})},iJ=(J,K,Y,X)=>{if(K&&typeof K=="object"||typeof K=="function")for(let Z of Jw(K))!Yw.call(J,Z)&&Z!==Y&&b5(J,Z,{get:()=>K[Z],enumerable:!(X=eH(K,Z))||X.enumerable});return J},Xw=(J,K,Y)=>(Y=J!=null?tH(Kw(J)):{},iJ(K||!J||!J.__esModule?b5(Y,"default",{value:J,enumerable:!0}):Y,J)),g5=(J)=>iJ(b5({},"__esModule",{value:!0}),J),oJ={};E4(oJ,{getYogaModule:()=>Zw});async function Zw(){let{default:J}=await import("../chunk-f2qwngan.js");return J()}var Qw=F4(()=>{}),rJ=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y){if(Y=`${Y}`,Y==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(Y))return Y.replace(/^[+-]?/,(X)=>X==="-"?"":"-");if(Y.includes("var(")||Y.includes("calc("))return`calc(${Y} * -1)`}}),Ww=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});var K=["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"]}),Hw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y,X){return Y===void 0?X:Array.isArray(Y)?Y:[...new Set(X.filter((Z)=>Y!==!1&&Y[Z]!==!1).concat(Object.keys(Y).filter((Z)=>Y[Z]!==!1)))]}}),nJ=t((J,K)=>{K.exports={content:[],presets:[],darkMode:"media",theme:{screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:({colors:Y})=>({inherit:Y.inherit,current:Y.current,transparent:Y.transparent,black:Y.black,white:Y.white,slate:Y.slate,gray:Y.gray,zinc:Y.zinc,neutral:Y.neutral,stone:Y.stone,red:Y.red,orange:Y.orange,amber:Y.amber,yellow:Y.yellow,lime:Y.lime,green:Y.green,emerald:Y.emerald,teal:Y.teal,cyan:Y.cyan,sky:Y.sky,blue:Y.blue,indigo:Y.indigo,violet:Y.violet,purple:Y.purple,fuchsia:Y.fuchsia,pink:Y.pink,rose:Y.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",0.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:Y})=>Y("blur"),backdropBrightness:({theme:Y})=>Y("brightness"),backdropContrast:({theme:Y})=>Y("contrast"),backdropGrayscale:({theme:Y})=>Y("grayscale"),backdropHueRotate:({theme:Y})=>Y("hueRotate"),backdropInvert:({theme:Y})=>Y("invert"),backdropOpacity:({theme:Y})=>Y("opacity"),backdropSaturate:({theme:Y})=>Y("saturate"),backdropSepia:({theme:Y})=>Y("sepia"),backgroundColor:({theme:Y})=>Y("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:Y})=>Y("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:Y})=>({...Y("colors"),DEFAULT:Y("colors.gray.200","currentColor")}),borderOpacity:({theme:Y})=>Y("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:Y})=>({...Y("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:Y})=>Y("colors"),caretColor:({theme:Y})=>Y("colors"),accentColor:({theme:Y})=>({...Y("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:Y})=>Y("borderColor"),divideOpacity:({theme:Y})=>Y("borderOpacity"),divideWidth:({theme:Y})=>Y("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:Y})=>Y("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:Y})=>({auto:"auto",...Y("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:Y})=>Y("spacing"),gradientColorStops:({theme:Y})=>Y("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:Y})=>({auto:"auto",...Y("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:Y})=>({auto:"auto",...Y("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:Y})=>({auto:"auto",...Y("spacing")}),maxHeight:({theme:Y})=>({...Y("spacing"),full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:Y,breakpoints:X})=>({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",...X(Y("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:Y})=>Y("spacing"),placeholderColor:({theme:Y})=>Y("colors"),placeholderOpacity:({theme:Y})=>Y("opacity"),outlineColor:({theme:Y})=>Y("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:Y})=>({DEFAULT:Y("colors.blue.500","#3b82f6"),...Y("colors")}),ringOffsetColor:({theme:Y})=>Y("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:Y})=>({DEFAULT:"0.5",...Y("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:Y})=>({...Y("spacing")}),scrollPadding:({theme:Y})=>Y("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:Y})=>({...Y("spacing")}),stroke:({theme:Y})=>Y("colors"),strokeWidth:{0:"0",1:"1",2:"2"},textColor:({theme:Y})=>Y("colors"),textDecorationColor:({theme:Y})=>Y("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:Y})=>({...Y("spacing")}),textOpacity:({theme:Y})=>Y("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",1000:"1000ms"},transitionDuration:{DEFAULT:"150ms",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1000:"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:Y})=>({...Y("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:Y})=>({auto:"auto",...Y("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:[]}}),h5={};E4(h5,{default:()=>sJ});var sJ,_4=F4(()=>{sJ={info(J,K){console.info(...Array.isArray(J)?[J]:[K,J])},warn(J,K){console.warn(...Array.isArray(J)?[J]:[K,J])},risk(J,K){console.error(...Array.isArray(J)?[J]:[K,J])}}}),ww=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Z});var K=Y((_4(),g5(h5)));function Y(Q){return Q&&Q.__esModule?Q:{default:Q}}function X({version:Q,from:W,to:w}){K.default.warn(`${W}-color-renamed`,[`As of Tailwind CSS ${Q}, \`${W}\` has been renamed to \`${w}\`.`,"Update your configuration file to silence this warning."])}var Z={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 X({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return X({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return X({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return X({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return X({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}),zw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"defaults",{enumerable:!0,get:()=>K});function K(Y,...X){for(let W of X){for(let w in W){var Z;!(Y==null||(Z=Y.hasOwnProperty)===null||Z===void 0)&&Z.call(Y,w)||(Y[w]=W[w])}for(let w of Object.getOwnPropertySymbols(W)){var Q;!(Y==null||(Q=Y.hasOwnProperty)===null||Q===void 0)&&Q.call(Y,w)||(Y[w]=W[w])}}return Y}}),Uw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"toPath",{enumerable:!0,get:()=>K});function K(Y){if(Array.isArray(Y))return Y;let X=Y.split("[").length-1,Z=Y.split("]").length-1;if(X!==Z)throw Error(`Path is invalid. Has unbalanced brackets: ${Y}`);return Y.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}}),Vw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"normalizeConfig",{enumerable:!0,get:()=>Z});var K=X((_4(),g5(h5)));function Y(Q){if(typeof WeakMap!="function")return null;var W=new WeakMap,w=new WeakMap;return(Y=function(H){return H?w:W})(Q)}function X(Q,W){if(!W&&Q&&Q.__esModule)return Q;if(Q===null||typeof Q!="object"&&typeof Q!="function")return{default:Q};var w=Y(W);if(w&&w.has(Q))return w.get(Q);var H={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var U in Q)if(U!=="default"&&Object.prototype.hasOwnProperty.call(Q,U)){var V=z?Object.getOwnPropertyDescriptor(Q,U):null;V&&(V.get||V.set)?Object.defineProperty(H,U,V):H[U]=Q[U]}return H.default=Q,w&&w.set(Q,H),H}function Z(Q){if((()=>{if(Q.purge||!Q.content||!Array.isArray(Q.content)&&!(typeof Q.content=="object"&&Q.content!==null))return!1;if(Array.isArray(Q.content))return Q.content.every((w)=>typeof w=="string"?!0:!(typeof(w==null?void 0:w.raw)!="string"||w!=null&&w.extension&&typeof(w==null?void 0:w.extension)!="string"));if(typeof Q.content=="object"&&Q.content!==null){if(Object.keys(Q.content).some((w)=>!["files","extract","transform"].includes(w)))return!1;if(Array.isArray(Q.content.files)){if(!Q.content.files.every((w)=>typeof w=="string"?!0:!(typeof(w==null?void 0:w.raw)!="string"||w!=null&&w.extension&&typeof(w==null?void 0:w.extension)!="string")))return!1;if(typeof Q.content.extract=="object"){for(let w of Object.values(Q.content.extract))if(typeof w!="function")return!1}else if(!(Q.content.extract===void 0||typeof Q.content.extract=="function"))return!1;if(typeof Q.content.transform=="object"){for(let w of Object.values(Q.content.transform))if(typeof w!="function")return!1}else if(!(Q.content.transform===void 0||typeof Q.content.transform=="function"))return!1}return!0}return!1})()||K.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"]),Q.safelist=(()=>{var w;let{content:H,purge:z,safelist:U}=Q;return Array.isArray(U)?U:Array.isArray(H==null?void 0:H.safelist)?H.safelist:Array.isArray(z==null?void 0:z.safelist)?z.safelist:Array.isArray(z==null||(w=z.options)===null||w===void 0?void 0:w.safelist)?z.options.safelist:[]})(),typeof Q.prefix=="function")K.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"]),Q.prefix="";else{var W;Q.prefix=(W=Q.prefix)!==null&&W!==void 0?W:""}Q.content={files:(()=>{let{content:w,purge:H}=Q;return Array.isArray(H)?H:Array.isArray(H==null?void 0:H.content)?H.content:Array.isArray(w)?w:Array.isArray(w==null?void 0:w.content)?w.content:Array.isArray(w==null?void 0:w.files)?w.files:[]})(),extract:(()=>{let w=(()=>{var U,V,$,B,M,G,q,O,j,_;return!((U=Q.purge)===null||U===void 0)&&U.extract?Q.purge.extract:!((V=Q.content)===null||V===void 0)&&V.extract?Q.content.extract:!(($=Q.purge)===null||$===void 0||(B=$.extract)===null||B===void 0)&&B.DEFAULT?Q.purge.extract.DEFAULT:!((M=Q.content)===null||M===void 0||(G=M.extract)===null||G===void 0)&&G.DEFAULT?Q.content.extract.DEFAULT:!((q=Q.purge)===null||q===void 0||(O=q.options)===null||O===void 0)&&O.extractors?Q.purge.options.extractors:!((j=Q.content)===null||j===void 0||(_=j.options)===null||_===void 0)&&_.extractors?Q.content.options.extractors:{}})(),H={},z=(()=>{var U,V,$,B;if(!((U=Q.purge)===null||U===void 0||(V=U.options)===null||V===void 0)&&V.defaultExtractor)return Q.purge.options.defaultExtractor;if(!(($=Q.content)===null||$===void 0||(B=$.options)===null||B===void 0)&&B.defaultExtractor)return Q.content.options.defaultExtractor})();if(z!==void 0&&(H.DEFAULT=z),typeof w=="function")H.DEFAULT=w;else if(Array.isArray(w))for(let{extensions:U,extractor:V}of w??[])for(let $ of U)H[$]=V;else typeof w=="object"&&w!==null&&Object.assign(H,w);return H})(),transform:(()=>{let w=(()=>{var z,U,V,$,B,M;return!((z=Q.purge)===null||z===void 0)&&z.transform?Q.purge.transform:!((U=Q.content)===null||U===void 0)&&U.transform?Q.content.transform:!((V=Q.purge)===null||V===void 0||($=V.transform)===null||$===void 0)&&$.DEFAULT?Q.purge.transform.DEFAULT:!((B=Q.content)===null||B===void 0||(M=B.transform)===null||M===void 0)&&M.DEFAULT?Q.content.transform.DEFAULT:{}})(),H={};return typeof w=="function"&&(H.DEFAULT=w),typeof w=="object"&&w!==null&&Object.assign(H,w),H})()};for(let w of Q.content.files)if(typeof w=="string"&&/{([^,]*?)}/g.test(w)){K.default.warn("invalid-glob-braces",[`The glob pattern ${(0,K.dim)(w)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,K.dim)(w.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return Q}}),$w=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y){if(Object.prototype.toString.call(Y)!=="[object Object]")return!1;let X=Object.getPrototypeOf(Y);return X===null||X===Object.prototype}}),Bw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"cloneDeep",{enumerable:!0,get:()=>K});function K(Y){return Array.isArray(Y)?Y.map((X)=>K(X)):typeof Y=="object"&&Y!==null?Object.fromEntries(Object.entries(Y).map(([X,Z])=>[X,K(Z)])):Y}}),aJ=t((J,K)=>{J.__esModule=!0,J.default=Z;function Y(Q){for(var W=Q.toLowerCase(),w="",H=!1,z=0;z<6&&W[z]!==void 0;z++){var U=W.charCodeAt(z),V=U>=97&&U<=102||U>=48&&U<=57;if(H=U===32,!V)break;w+=W[z]}if(w.length!==0){var $=parseInt(w,16),B=$>=55296&&$<=57343;return B||$===0||$>1114111?["\uFFFD",w.length+(H?1:0)]:[String.fromCodePoint($),w.length+(H?1:0)]}}var X=/\\/;function Z(Q){var W=X.test(Q);if(!W)return Q;for(var w="",H=0;H<Q.length;H++){if(Q[H]==="\\"){var z=Y(Q.slice(H+1,H+7));if(z!==void 0){w+=z[0],H+=z[1];continue}if(Q[H+1]==="\\"){w+="\\",H++;continue}Q.length===H+1&&(w+=Q[H]);continue}w+=Q[H]}return w}K.exports=J.default}),Aw=t((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){for(var Z=arguments.length,Q=Array(Z>1?Z-1:0),W=1;W<Z;W++)Q[W-1]=arguments[W];for(;Q.length>0;){var w=Q.shift();if(!X[w])return;X=X[w]}return X}K.exports=J.default}),Gw=t((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){for(var Z=arguments.length,Q=Array(Z>1?Z-1:0),W=1;W<Z;W++)Q[W-1]=arguments[W];for(;Q.length>0;){var w=Q.shift();X[w]||(X[w]={}),X=X[w]}}K.exports=J.default}),qw=t((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){for(var Z="",Q=X.indexOf("/*"),W=0;Q>=0;){Z=Z+X.slice(W,Q);var w=X.indexOf("*/",Q+2);if(w<0)return Z;W=w+2,Q=X.indexOf("/*",W)}return Z=Z+X.slice(W),Z}K.exports=J.default}),m5=t((J)=>{J.__esModule=!0,J.stripComments=J.ensureObject=J.getProp=J.unesc=void 0;var K=Q(aJ());J.unesc=K.default;var Y=Q(Aw());J.getProp=Y.default;var X=Q(Gw());J.ensureObject=X.default;var Z=Q(qw());J.stripComments=Z.default;function Q(W){return W&&W.__esModule?W:{default:W}}}),u1=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=m5();function X(w,H){for(var z=0;z<H.length;z++){var U=H[z];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(w,U.key,U)}}function Z(w,H,z){return H&&X(w.prototype,H),z&&X(w,z),w}var Q=function w(H,z){if(typeof H!="object"||H===null)return H;var U=new H.constructor;for(var V in H)if(H.hasOwnProperty(V)){var $=H[V],B=typeof $;V==="parent"&&B==="object"?z&&(U[V]=z):$ instanceof Array?U[V]=$.map(function(M){return w(M,U)}):U[V]=w($,U)}return U},W=function(){function w(z){z===void 0&&(z={}),Object.assign(this,z),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var H=w.prototype;return H.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},H.replaceWith=function(){if(this.parent){for(var z in arguments)this.parent.insertBefore(this,arguments[z]);this.remove()}return this},H.next=function(){return this.parent.at(this.parent.index(this)+1)},H.prev=function(){return this.parent.at(this.parent.index(this)-1)},H.clone=function(z){z===void 0&&(z={});var U=Q(this);for(var V in z)U[V]=z[V];return U},H.appendToPropertyAndEscape=function(z,U,V){this.raws||(this.raws={});var $=this[z],B=this.raws[z];this[z]=$+U,B||V!==U?this.raws[z]=(B||$)+V:delete this.raws[z]},H.setPropertyAndEscape=function(z,U,V){this.raws||(this.raws={}),this[z]=U,this.raws[z]=V},H.setPropertyWithoutEscape=function(z,U){this[z]=U,this.raws&&delete this.raws[z]},H.isAtPosition=function(z,U){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>z||this.source.end.line<z||this.source.start.line===z&&this.source.start.column>U||this.source.end.line===z&&this.source.end.column<U)},H.stringifyProperty=function(z){return this.raws&&this.raws[z]||this[z]},H.valueToString=function(){return String(this.stringifyProperty("value"))},H.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},Z(w,[{key:"rawSpaceBefore",get:function(){var z=this.raws&&this.raws.spaces&&this.raws.spaces.before;return z===void 0&&(z=this.spaces&&this.spaces.before),z||""},set:function(z){(0,Y.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=z}},{key:"rawSpaceAfter",get:function(){var z=this.raws&&this.raws.spaces&&this.raws.spaces.after;return z===void 0&&(z=this.spaces.after),z||""},set:function(z){(0,Y.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=z}}]),w}();J.default=W,K.exports=J.default}),m0=t((J)=>{J.__esModule=!0,J.UNIVERSAL=J.ATTRIBUTE=J.CLASS=J.COMBINATOR=J.COMMENT=J.ID=J.NESTING=J.PSEUDO=J.ROOT=J.SELECTOR=J.STRING=J.TAG=void 0;var K="tag";J.TAG=K;var Y="string";J.STRING=Y;var X="selector";J.SELECTOR=X;var Z="root";J.ROOT=Z;var Q="pseudo";J.PSEUDO=Q;var W="nesting";J.NESTING=W;var w="id";J.ID=w;var H="comment";J.COMMENT=H;var z="combinator";J.COMBINATOR=z;var U="class";J.CLASS=U;var V="attribute";J.ATTRIBUTE=V;var $="universal";J.UNIVERSAL=$}),R4=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=W(u1()),X=Q(m0());function Z(){if(typeof WeakMap!="function")return null;var G=new WeakMap;return Z=function(){return G},G}function Q(G){if(G&&G.__esModule)return G;if(G===null||typeof G!="object"&&typeof G!="function")return{default:G};var q=Z();if(q&&q.has(G))return q.get(G);var O={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in G)if(Object.prototype.hasOwnProperty.call(G,_)){var R=j?Object.getOwnPropertyDescriptor(G,_):null;R&&(R.get||R.set)?Object.defineProperty(O,_,R):O[_]=G[_]}return O.default=G,q&&q.set(G,O),O}function W(G){return G&&G.__esModule?G:{default:G}}function w(G,q){var O;if(typeof Symbol>"u"||G[Symbol.iterator]==null){if(Array.isArray(G)||(O=H(G))||q&&G&&typeof G.length=="number"){O&&(G=O);var j=0;return function(){return j>=G.length?{done:!0}:{done:!1,value:G[j++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
62
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return O=G[Symbol.iterator](),O.next.bind(O)}function H(G,q){if(G){if(typeof G=="string")return z(G,q);var O=Object.prototype.toString.call(G).slice(8,-1);if(O==="Object"&&G.constructor&&(O=G.constructor.name),O==="Map"||O==="Set")return Array.from(G);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return z(G,q)}}function z(G,q){(q==null||q>G.length)&&(q=G.length);for(var O=0,j=Array(q);O<q;O++)j[O]=G[O];return j}function U(G,q){for(var O=0;O<q.length;O++){var j=q[O];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(G,j.key,j)}}function V(G,q,O){return q&&U(G.prototype,q),O&&U(G,O),G}function $(G,q){G.prototype=Object.create(q.prototype),G.prototype.constructor=G,B(G,q)}function B(G,q){return B=Object.setPrototypeOf||function(O,j){return O.__proto__=j,O},B(G,q)}var M=function(G){$(q,G);function q(j){var _;return _=G.call(this,j)||this,_.nodes||(_.nodes=[]),_}var O=q.prototype;return O.append=function(j){return j.parent=this,this.nodes.push(j),this},O.prepend=function(j){return j.parent=this,this.nodes.unshift(j),this},O.at=function(j){return this.nodes[j]},O.index=function(j){return typeof j=="number"?j:this.nodes.indexOf(j)},O.removeChild=function(j){j=this.index(j),this.at(j).parent=void 0,this.nodes.splice(j,1);var _;for(var R in this.indexes)_=this.indexes[R],_>=j&&(this.indexes[R]=_-1);return this},O.removeAll=function(){for(var j=w(this.nodes),_;!(_=j()).done;){var R=_.value;R.parent=void 0}return this.nodes=[],this},O.empty=function(){return this.removeAll()},O.insertAfter=function(j,_){_.parent=this;var R=this.index(j);this.nodes.splice(R+1,0,_),_.parent=this;var E;for(var L in this.indexes)E=this.indexes[L],R<=E&&(this.indexes[L]=E+1);return this},O.insertBefore=function(j,_){_.parent=this;var R=this.index(j);this.nodes.splice(R,0,_),_.parent=this;var E;for(var L in this.indexes)E=this.indexes[L],E<=R&&(this.indexes[L]=E+1);return this},O._findChildAtPosition=function(j,_){var R=void 0;return this.each(function(E){if(E.atPosition){var L=E.atPosition(j,_);if(L)return R=L,!1}else if(E.isAtPosition(j,_))return R=E,!1}),R},O.atPosition=function(j,_){if(this.isAtPosition(j,_))return this._findChildAtPosition(j,_)||this},O._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))},O.each=function(j){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var _=this.lastEach;if(this.indexes[_]=0,!!this.length){for(var R,E;this.indexes[_]<this.length&&(R=this.indexes[_],E=j(this.at(R),R),E!==!1);)this.indexes[_]+=1;if(delete this.indexes[_],E===!1)return!1}},O.walk=function(j){return this.each(function(_,R){var E=j(_,R);if(E!==!1&&_.length&&(E=_.walk(j)),E===!1)return!1})},O.walkAttributes=function(j){var _=this;return this.walk(function(R){if(R.type===X.ATTRIBUTE)return j.call(_,R)})},O.walkClasses=function(j){var _=this;return this.walk(function(R){if(R.type===X.CLASS)return j.call(_,R)})},O.walkCombinators=function(j){var _=this;return this.walk(function(R){if(R.type===X.COMBINATOR)return j.call(_,R)})},O.walkComments=function(j){var _=this;return this.walk(function(R){if(R.type===X.COMMENT)return j.call(_,R)})},O.walkIds=function(j){var _=this;return this.walk(function(R){if(R.type===X.ID)return j.call(_,R)})},O.walkNesting=function(j){var _=this;return this.walk(function(R){if(R.type===X.NESTING)return j.call(_,R)})},O.walkPseudos=function(j){var _=this;return this.walk(function(R){if(R.type===X.PSEUDO)return j.call(_,R)})},O.walkTags=function(j){var _=this;return this.walk(function(R){if(R.type===X.TAG)return j.call(_,R)})},O.walkUniversals=function(j){var _=this;return this.walk(function(R){if(R.type===X.UNIVERSAL)return j.call(_,R)})},O.split=function(j){var _=this,R=[];return this.reduce(function(E,L,T){var D=j.call(_,L);return R.push(L),D?(E.push(R),R=[]):T===_.length-1&&E.push(R),E},[])},O.map=function(j){return this.nodes.map(j)},O.reduce=function(j,_){return this.nodes.reduce(j,_)},O.every=function(j){return this.nodes.every(j)},O.some=function(j){return this.nodes.some(j)},O.filter=function(j){return this.nodes.filter(j)},O.sort=function(j){return this.nodes.sort(j)},O.toString=function(){return this.map(String).join("")},V(q,[{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}}]),q}(Y.default);J.default=M,K.exports=J.default}),tJ=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(R4()),X=m0();function Z(U){return U&&U.__esModule?U:{default:U}}function Q(U,V){for(var $=0;$<V.length;$++){var B=V[$];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(U,B.key,B)}}function W(U,V,$){return V&&Q(U.prototype,V),$&&Q(U,$),U}function w(U,V){U.prototype=Object.create(V.prototype),U.prototype.constructor=U,H(U,V)}function H(U,V){return H=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},H(U,V)}var z=function(U){w(V,U);function V(B){var M;return M=U.call(this,B)||this,M.type=X.ROOT,M}var $=V.prototype;return $.toString=function(){var B=this.reduce(function(M,G){return M.push(String(G)),M},[]).join(",");return this.trailingComma?B+",":B},$.error=function(B,M){return this._error?this._error(B,M):Error(B)},W(V,[{key:"errorGenerator",set:function(B){this._error=B}}]),V}(Y.default);J.default=z,K.exports=J.default}),eJ=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(R4()),X=m0();function Z(H){return H&&H.__esModule?H:{default:H}}function Q(H,z){H.prototype=Object.create(z.prototype),H.prototype.constructor=H,W(H,z)}function W(H,z){return W=Object.setPrototypeOf||function(U,V){return U.__proto__=V,U},W(H,z)}var w=function(H){Q(z,H);function z(U){var V;return V=H.call(this,U)||this,V.type=X.SELECTOR,V}return z}(Y.default);J.default=w,K.exports=J.default}),D4=t((J,K)=>{var Y={},X=Y.hasOwnProperty,Z=function(z,U){if(!z)return U;var V={};for(var $ in U)V[$]=X.call(z,$)?z[$]:U[$];return V},Q=/[ -,\.\/:-@\[-\^`\{-~]/,W=/[ -,\.\/:-@\[\]\^`\{-~]/,w=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,H=function z(U,V){V=Z(V,z.options),V.quotes!="single"&&V.quotes!="double"&&(V.quotes="single");for(var $=V.quotes=="double"?'"':"'",B=V.isIdentifier,M=U.charAt(0),G="",q=0,O=U.length;q<O;){var j=U.charAt(q++),_=j.charCodeAt(),R=void 0;if(_<32||_>126){if(_>=55296&&_<=56319&&q<O){var E=U.charCodeAt(q++);(E&64512)==56320?_=((_&1023)<<10)+(E&1023)+65536:q--}R="\\"+_.toString(16).toUpperCase()+" "}else V.escapeEverything?Q.test(j)?R="\\"+j:R="\\"+_.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(j)?R="\\"+_.toString(16).toUpperCase()+" ":j=="\\"||!B&&(j=='"'&&$==j||j=="'"&&$==j)||B&&W.test(j)?R="\\"+j:R=j;G+=R}return B&&(/^-[-\d]/.test(G)?G="\\-"+G.slice(1):/\d/.test(M)&&(G="\\3"+M+" "+G.slice(1))),G=G.replace(w,function(L,T,D){return T&&T.length%2?L:(T||"")+D}),!B&&V.wrap?$+G+$:G};H.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},H.version="3.0.0",K.exports=H}),JK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=W(D4()),X=m5(),Z=W(u1()),Q=m0();function W($){return $&&$.__esModule?$:{default:$}}function w($,B){for(var M=0;M<B.length;M++){var G=B[M];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty($,G.key,G)}}function H($,B,M){return B&&w($.prototype,B),M&&w($,M),$}function z($,B){$.prototype=Object.create(B.prototype),$.prototype.constructor=$,U($,B)}function U($,B){return U=Object.setPrototypeOf||function(M,G){return M.__proto__=G,M},U($,B)}var V=function($){z(B,$);function B(G){var q;return q=$.call(this,G)||this,q.type=Q.CLASS,q._constructed=!0,q}var M=B.prototype;return M.valueToString=function(){return"."+$.prototype.valueToString.call(this)},H(B,[{key:"value",get:function(){return this._value},set:function(G){if(this._constructed){var q=(0,Y.default)(G,{isIdentifier:!0});q!==G?((0,X.ensureObject)(this,"raws"),this.raws.value=q):this.raws&&delete this.raws.value}this._value=G}}]),B}(Z.default);J.default=V,K.exports=J.default}),KK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(u1()),X=m0();function Z(H){return H&&H.__esModule?H:{default:H}}function Q(H,z){H.prototype=Object.create(z.prototype),H.prototype.constructor=H,W(H,z)}function W(H,z){return W=Object.setPrototypeOf||function(U,V){return U.__proto__=V,U},W(H,z)}var w=function(H){Q(z,H);function z(U){var V;return V=H.call(this,U)||this,V.type=X.COMMENT,V}return z}(Y.default);J.default=w,K.exports=J.default}),YK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(u1()),X=m0();function Z(H){return H&&H.__esModule?H:{default:H}}function Q(H,z){H.prototype=Object.create(z.prototype),H.prototype.constructor=H,W(H,z)}function W(H,z){return W=Object.setPrototypeOf||function(U,V){return U.__proto__=V,U},W(H,z)}var w=function(H){Q(z,H);function z(V){var $;return $=H.call(this,V)||this,$.type=X.ID,$}var U=z.prototype;return U.valueToString=function(){return"#"+H.prototype.valueToString.call(this)},z}(Y.default);J.default=w,K.exports=J.default}),I4=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Q(D4()),X=m5(),Z=Q(u1());function Q(V){return V&&V.__esModule?V:{default:V}}function W(V,$){for(var B=0;B<$.length;B++){var M=$[B];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(V,M.key,M)}}function w(V,$,B){return $&&W(V.prototype,$),B&&W(V,B),V}function H(V,$){V.prototype=Object.create($.prototype),V.prototype.constructor=V,z(V,$)}function z(V,$){return z=Object.setPrototypeOf||function(B,M){return B.__proto__=M,B},z(V,$)}var U=function(V){H($,V);function $(){return V.apply(this,arguments)||this}var B=$.prototype;return B.qualifiedName=function(M){return this.namespace?this.namespaceString+"|"+M:M},B.valueToString=function(){return this.qualifiedName(V.prototype.valueToString.call(this))},w($,[{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 G=(0,Y.default)(M,{isIdentifier:!0});this._namespace=M,G!==M?((0,X.ensureObject)(this,"raws"),this.raws.namespace=G):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""}}]),$}(Z.default);J.default=U,K.exports=J.default}),XK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(I4()),X=m0();function Z(H){return H&&H.__esModule?H:{default:H}}function Q(H,z){H.prototype=Object.create(z.prototype),H.prototype.constructor=H,W(H,z)}function W(H,z){return W=Object.setPrototypeOf||function(U,V){return U.__proto__=V,U},W(H,z)}var w=function(H){Q(z,H);function z(U){var V;return V=H.call(this,U)||this,V.type=X.TAG,V}return z}(Y.default);J.default=w,K.exports=J.default}),ZK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(u1()),X=m0();function Z(H){return H&&H.__esModule?H:{default:H}}function Q(H,z){H.prototype=Object.create(z.prototype),H.prototype.constructor=H,W(H,z)}function W(H,z){return W=Object.setPrototypeOf||function(U,V){return U.__proto__=V,U},W(H,z)}var w=function(H){Q(z,H);function z(U){var V;return V=H.call(this,U)||this,V.type=X.STRING,V}return z}(Y.default);J.default=w,K.exports=J.default}),QK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(R4()),X=m0();function Z(H){return H&&H.__esModule?H:{default:H}}function Q(H,z){H.prototype=Object.create(z.prototype),H.prototype.constructor=H,W(H,z)}function W(H,z){return W=Object.setPrototypeOf||function(U,V){return U.__proto__=V,U},W(H,z)}var w=function(H){Q(z,H);function z(V){var $;return $=H.call(this,V)||this,$.type=X.PSEUDO,$}var U=z.prototype;return U.toString=function(){var V=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),V,this.rawSpaceAfter].join("")},z}(Y.default);J.default=w,K.exports=J.default}),Mw=t((J,K)=>{K.exports=function(Y,X){return function(...Z){return console.warn(X),Y(...Z)}}}),WK=t((J)=>{J.__esModule=!0,J.unescapeValue=q,J.default=void 0;var K=W(D4()),Y=W(aJ()),X=W(I4()),Z=m0(),Q;function W(E){return E&&E.__esModule?E:{default:E}}function w(E,L){for(var T=0;T<L.length;T++){var D=L[T];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(E,D.key,D)}}function H(E,L,T){return L&&w(E.prototype,L),T&&w(E,T),E}function z(E,L){E.prototype=Object.create(L.prototype),E.prototype.constructor=E,U(E,L)}function U(E,L){return U=Object.setPrototypeOf||function(T,D){return T.__proto__=D,T},U(E,L)}var V=Mw(),$=/^('|")([^]*)\1$/,B=V(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),M=V(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),G=V(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function q(E){var L=!1,T=null,D=E,P=D.match($);return P&&(T=P[1],D=P[2]),D=(0,Y.default)(D),D!==E&&(L=!0),{deprecatedUsage:L,unescaped:D,quoteMark:T}}function O(E){if(E.quoteMark!==void 0||E.value===void 0)return E;G();var L=q(E.value),T=L.quoteMark,D=L.unescaped;return E.raws||(E.raws={}),E.raws.value===void 0&&(E.raws.value=E.value),E.value=D,E.quoteMark=T,E}var j=function(E){z(L,E);function L(D){var P;return D===void 0&&(D={}),P=E.call(this,O(D))||this,P.type=Z.ATTRIBUTE,P.raws=P.raws||{},Object.defineProperty(P.raws,"unquoted",{get:V(function(){return P.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:V(function(){return P.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),P._constructed=!0,P}var T=L.prototype;return T.getQuotedValue=function(D){D===void 0&&(D={});var P=this._determineQuoteMark(D),k=_[P],c=(0,K.default)(this._value,k);return c},T._determineQuoteMark=function(D){return D.smart?this.smartQuoteMark(D):this.preferredQuoteMark(D)},T.setValue=function(D,P){P===void 0&&(P={}),this._value=D,this._quoteMark=this._determineQuoteMark(P),this._syncRawValue()},T.smartQuoteMark=function(D){var P=this.value,k=P.replace(/[^']/g,"").length,c=P.replace(/[^"]/g,"").length;if(k+c===0){var n=(0,K.default)(P,{isIdentifier:!0});if(n===P)return L.NO_QUOTE;var u=this.preferredQuoteMark(D);if(u===L.NO_QUOTE){var C=this.quoteMark||D.quoteMark||L.DOUBLE_QUOTE,S=_[C],I=(0,K.default)(P,S);if(I.length<n.length)return C}return u}else return c===k?this.preferredQuoteMark(D):c<k?L.DOUBLE_QUOTE:L.SINGLE_QUOTE},T.preferredQuoteMark=function(D){var P=D.preferCurrentQuoteMark?this.quoteMark:D.quoteMark;return P===void 0&&(P=D.preferCurrentQuoteMark?D.quoteMark:this.quoteMark),P===void 0&&(P=L.DOUBLE_QUOTE),P},T._syncRawValue=function(){var D=(0,K.default)(this._value,_[this.quoteMark]);D===this._value?this.raws&&delete this.raws.value:this.raws.value=D},T._handleEscapes=function(D,P){if(this._constructed){var k=(0,K.default)(P,{isIdentifier:!0});k!==P?this.raws[D]=k:delete this.raws[D]}},T._spacesFor=function(D){var P={before:"",after:""},k=this.spaces[D]||{},c=this.raws.spaces&&this.raws.spaces[D]||{};return Object.assign(P,k,c)},T._stringFor=function(D,P,k){P===void 0&&(P=D),k===void 0&&(k=R);var c=this._spacesFor(P);return k(this.stringifyProperty(D),c)},T.offsetOf=function(D){var P=1,k=this._spacesFor("attribute");if(P+=k.before.length,D==="namespace"||D==="ns")return this.namespace?P:-1;if(D==="attributeNS"||(P+=this.namespaceString.length,this.namespace&&(P+=1),D==="attribute"))return P;P+=this.stringifyProperty("attribute").length,P+=k.after.length;var c=this._spacesFor("operator");P+=c.before.length;var n=this.stringifyProperty("operator");if(D==="operator")return n?P:-1;P+=n.length,P+=c.after.length;var u=this._spacesFor("value");P+=u.before.length;var C=this.stringifyProperty("value");if(D==="value")return C?P:-1;P+=C.length,P+=u.after.length;var S=this._spacesFor("insensitive");return P+=S.before.length,D==="insensitive"&&this.insensitive?P:-1},T.toString=function(){var D=this,P=[this.rawSpaceBefore,"["];return P.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(P.push(this._stringFor("operator")),P.push(this._stringFor("value")),P.push(this._stringFor("insensitiveFlag","insensitive",function(k,c){return k.length>0&&!D.quoted&&c.before.length===0&&!(D.spaces.value&&D.spaces.value.after)&&(c.before=" "),R(k,c)}))),P.push("]"),P.push(this.rawSpaceAfter),P.join("")},H(L,[{key:"quoted",get:function(){var D=this.quoteMark;return D==="'"||D==='"'},set:function(D){M()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(D){if(!this._constructed){this._quoteMark=D;return}this._quoteMark!==D&&(this._quoteMark=D,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(D){if(this._constructed){var P=q(D),k=P.deprecatedUsage,c=P.unescaped,n=P.quoteMark;if(k&&B(),c===this._value&&n===this._quoteMark)return;this._value=c,this._quoteMark=n,this._syncRawValue()}else this._value=D}},{key:"attribute",get:function(){return this._attribute},set:function(D){this._handleEscapes("attribute",D),this._attribute=D}}]),L}(X.default);J.default=j,j.NO_QUOTE=null,j.SINGLE_QUOTE="'",j.DOUBLE_QUOTE='"';var _=(Q={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},Q[null]={isIdentifier:!0},Q);function R(E,L){return""+L.before+E+L.after}}),HK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(I4()),X=m0();function Z(H){return H&&H.__esModule?H:{default:H}}function Q(H,z){H.prototype=Object.create(z.prototype),H.prototype.constructor=H,W(H,z)}function W(H,z){return W=Object.setPrototypeOf||function(U,V){return U.__proto__=V,U},W(H,z)}var w=function(H){Q(z,H);function z(U){var V;return V=H.call(this,U)||this,V.type=X.UNIVERSAL,V.value="*",V}return z}(Y.default);J.default=w,K.exports=J.default}),wK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(u1()),X=m0();function Z(H){return H&&H.__esModule?H:{default:H}}function Q(H,z){H.prototype=Object.create(z.prototype),H.prototype.constructor=H,W(H,z)}function W(H,z){return W=Object.setPrototypeOf||function(U,V){return U.__proto__=V,U},W(H,z)}var w=function(H){Q(z,H);function z(U){var V;return V=H.call(this,U)||this,V.type=X.COMBINATOR,V}return z}(Y.default);J.default=w,K.exports=J.default}),zK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(u1()),X=m0();function Z(H){return H&&H.__esModule?H:{default:H}}function Q(H,z){H.prototype=Object.create(z.prototype),H.prototype.constructor=H,W(H,z)}function W(H,z){return W=Object.setPrototypeOf||function(U,V){return U.__proto__=V,U},W(H,z)}var w=function(H){Q(z,H);function z(U){var V;return V=H.call(this,U)||this,V.type=X.NESTING,V.value="&",V}return z}(Y.default);J.default=w,K.exports=J.default}),Nw=t((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){return X.sort(function(Z,Q){return Z-Q})}K.exports=J.default}),UK=t((J)=>{J.__esModule=!0,J.combinator=J.word=J.comment=J.str=J.tab=J.newline=J.feed=J.cr=J.backslash=J.bang=J.slash=J.doubleQuote=J.singleQuote=J.space=J.greaterThan=J.pipe=J.equals=J.plus=J.caret=J.tilde=J.dollar=J.closeSquare=J.openSquare=J.closeParenthesis=J.openParenthesis=J.semicolon=J.colon=J.comma=J.at=J.asterisk=J.ampersand=void 0;var K=38;J.ampersand=K;var Y=42;J.asterisk=Y;var X=64;J.at=X;var Z=44;J.comma=Z;var Q=58;J.colon=Q;var W=59;J.semicolon=W;var w=40;J.openParenthesis=w;var H=41;J.closeParenthesis=H;var z=91;J.openSquare=z;var U=93;J.closeSquare=U;var V=36;J.dollar=V;var $=126;J.tilde=$;var B=94;J.caret=B;var M=43;J.plus=M;var G=61;J.equals=G;var q=124;J.pipe=q;var O=62;J.greaterThan=O;var j=32;J.space=j;var _=39;J.singleQuote=_;var R=34;J.doubleQuote=R;var E=47;J.slash=E;var L=33;J.bang=L;var T=92;J.backslash=T;var D=13;J.cr=D;var P=12;J.feed=P;var k=10;J.newline=k;var c=9;J.tab=c;var n=_;J.str=n;var u=-1;J.comment=u;var C=-2;J.word=C;var S=-3;J.combinator=S}),Ow=t((J)=>{J.__esModule=!0,J.default=M,J.FIELDS=void 0;var K=Q(UK()),Y,X;function Z(){if(typeof WeakMap!="function")return null;var G=new WeakMap;return Z=function(){return G},G}function Q(G){if(G&&G.__esModule)return G;if(G===null||typeof G!="object"&&typeof G!="function")return{default:G};var q=Z();if(q&&q.has(G))return q.get(G);var O={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in G)if(Object.prototype.hasOwnProperty.call(G,_)){var R=j?Object.getOwnPropertyDescriptor(G,_):null;R&&(R.get||R.set)?Object.defineProperty(O,_,R):O[_]=G[_]}return O.default=G,q&&q.set(G,O),O}var W=(Y={},Y[K.tab]=!0,Y[K.newline]=!0,Y[K.cr]=!0,Y[K.feed]=!0,Y),w=(X={},X[K.space]=!0,X[K.tab]=!0,X[K.newline]=!0,X[K.cr]=!0,X[K.feed]=!0,X[K.ampersand]=!0,X[K.asterisk]=!0,X[K.bang]=!0,X[K.comma]=!0,X[K.colon]=!0,X[K.semicolon]=!0,X[K.openParenthesis]=!0,X[K.closeParenthesis]=!0,X[K.openSquare]=!0,X[K.closeSquare]=!0,X[K.singleQuote]=!0,X[K.doubleQuote]=!0,X[K.plus]=!0,X[K.pipe]=!0,X[K.tilde]=!0,X[K.greaterThan]=!0,X[K.equals]=!0,X[K.dollar]=!0,X[K.caret]=!0,X[K.slash]=!0,X),H={},z="0123456789abcdefABCDEF";for(U=0;U<z.length;U++)H[z.charCodeAt(U)]=!0;var U;function V(G,q){var O=q,j;do{if(j=G.charCodeAt(O),w[j])return O-1;j===K.backslash?O=$(G,O)+1:O++}while(O<G.length);return O-1}function $(G,q){var O=q,j=G.charCodeAt(O+1);if(!W[j])if(H[j]){var _=0;do O++,_++,j=G.charCodeAt(O+1);while(H[j]&&_<6);_<6&&j===K.space&&O++}else O++;return O}var B={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};J.FIELDS=B;function M(G){var q=[],O=G.css.valueOf(),j=O,_=j.length,R=-1,E=1,L=0,T=0,D,P,k,c,n,u,C,S,I,d,m,s,p;function f(l,y){if(G.safe)O+=y,I=O.length-1;else throw G.error("Unclosed "+l,E,L-R,L)}for(;L<_;){switch(D=O.charCodeAt(L),D===K.newline&&(R=L,E+=1),D){case K.space:case K.tab:case K.newline:case K.cr:case K.feed:I=L;do I+=1,D=O.charCodeAt(I),D===K.newline&&(R=I,E+=1);while(D===K.space||D===K.newline||D===K.tab||D===K.cr||D===K.feed);p=K.space,c=E,k=I-R-1,T=I;break;case K.plus:case K.greaterThan:case K.tilde:case K.pipe:I=L;do I+=1,D=O.charCodeAt(I);while(D===K.plus||D===K.greaterThan||D===K.tilde||D===K.pipe);p=K.combinator,c=E,k=L-R,T=I;break;case K.asterisk:case K.ampersand:case K.bang:case K.comma:case K.equals:case K.dollar:case K.caret:case K.openSquare:case K.closeSquare:case K.colon:case K.semicolon:case K.openParenthesis:case K.closeParenthesis:I=L,p=D,c=E,k=L-R,T=I+1;break;case K.singleQuote:case K.doubleQuote:s=D===K.singleQuote?"'":'"',I=L;do for(n=!1,I=O.indexOf(s,I+1),I===-1&&f("quote",s),u=I;O.charCodeAt(u-1)===K.backslash;)u-=1,n=!n;while(n);p=K.str,c=E,k=L-R,T=I+1;break;default:D===K.slash&&O.charCodeAt(L+1)===K.asterisk?(I=O.indexOf("*/",L+2)+1,I===0&&f("comment","*/"),P=O.slice(L,I+1),S=P.split(`
|
|
63
|
-
`),C=S.length-1,C>0?(d=E+C,m=I-S[C].length):(d=E,m=R),p=K.comment,E=d,c=d,k=I-m):D===K.slash?(I=L,p=D,c=E,k=L-R,T=I+1):(I=V(O,L),p=K.word,c=E,k=I-R),T=I+1;break}q.push([p,E,L-R,c,k,L,T]),m&&(R=m,m=null),L=T}return q}}),jw=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=T(tJ()),X=T(eJ()),Z=T(JK()),Q=T(KK()),W=T(YK()),w=T(XK()),H=T(ZK()),z=T(QK()),U=L(WK()),V=T(HK()),$=T(wK()),B=T(zK()),M=T(Nw()),G=L(Ow()),q=L(UK()),O=L(m0()),j=m5(),_,R;function E(){if(typeof WeakMap!="function")return null;var f=new WeakMap;return E=function(){return f},f}function L(f){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var l=E();if(l&&l.has(f))return l.get(f);var y={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in f)if(Object.prototype.hasOwnProperty.call(f,r)){var x=g?Object.getOwnPropertyDescriptor(f,r):null;x&&(x.get||x.set)?Object.defineProperty(y,r,x):y[r]=f[r]}return y.default=f,l&&l.set(f,y),y}function T(f){return f&&f.__esModule?f:{default:f}}function D(f,l){for(var y=0;y<l.length;y++){var g=l[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function P(f,l,y){return l&&D(f.prototype,l),y&&D(f,y),f}var k=(_={},_[q.space]=!0,_[q.cr]=!0,_[q.feed]=!0,_[q.newline]=!0,_[q.tab]=!0,_),c=Object.assign({},k,(R={},R[q.comment]=!0,R));function n(f){return{line:f[G.FIELDS.START_LINE],column:f[G.FIELDS.START_COL]}}function u(f){return{line:f[G.FIELDS.END_LINE],column:f[G.FIELDS.END_COL]}}function C(f,l,y,g){return{start:{line:f,column:l},end:{line:y,column:g}}}function S(f){return C(f[G.FIELDS.START_LINE],f[G.FIELDS.START_COL],f[G.FIELDS.END_LINE],f[G.FIELDS.END_COL])}function I(f,l){if(f)return C(f[G.FIELDS.START_LINE],f[G.FIELDS.START_COL],l[G.FIELDS.END_LINE],l[G.FIELDS.END_COL])}function d(f,l){var y=f[l];if(typeof y=="string")return y.indexOf("\\")!==-1&&((0,j.ensureObject)(f,"raws"),f[l]=(0,j.unesc)(y),f.raws[l]===void 0&&(f.raws[l]=y)),f}function m(f,l){for(var y=-1,g=[];(y=f.indexOf(l,y+1))!==-1;)g.push(y);return g}function s(){var f=Array.prototype.concat.apply([],arguments);return f.filter(function(l,y){return y===f.indexOf(l)})}var p=function(){function f(y,g){g===void 0&&(g={}),this.rule=y,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,G.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var r=I(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new Y.default({source:r}),this.root.errorGenerator=this._errorGenerator();var x=new X.default({source:{start:{line:1,column:1}}});this.root.append(x),this.current=x,this.loop()}var l=f.prototype;return l._errorGenerator=function(){var y=this;return function(g,r){return typeof y.rule=="string"?Error(g):y.rule.error(g,r)}},l.attribute=function(){var y=[],g=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[G.FIELDS.TYPE]!==q.closeSquare;)y.push(this.currToken),this.position++;if(this.currToken[G.FIELDS.TYPE]!==q.closeSquare)return this.expected("closing square bracket",this.currToken[G.FIELDS.START_POS]);var r=y.length,x={source:C(g[1],g[2],this.currToken[3],this.currToken[4]),sourceIndex:g[G.FIELDS.START_POS]};if(r===1&&!~[q.word].indexOf(y[0][G.FIELDS.TYPE]))return this.expected("attribute",y[0][G.FIELDS.START_POS]);for(var e=0,Y0="",X0="",J0=null,$0=!1;e<r;){var _0=y[e],K0=this.content(_0),A0=y[e+1];switch(_0[G.FIELDS.TYPE]){case q.space:if($0=!0,this.options.lossy)break;if(J0){(0,j.ensureObject)(x,"spaces",J0);var S0=x.spaces[J0].after||"";x.spaces[J0].after=S0+K0;var c0=(0,j.getProp)(x,"raws","spaces",J0,"after")||null;c0&&(x.raws.spaces[J0].after=c0+K0)}else Y0=Y0+K0,X0=X0+K0;break;case q.asterisk:if(A0[G.FIELDS.TYPE]===q.equals)x.operator=K0,J0="operator";else if((!x.namespace||J0==="namespace"&&!$0)&&A0){Y0&&((0,j.ensureObject)(x,"spaces","attribute"),x.spaces.attribute.before=Y0,Y0=""),X0&&((0,j.ensureObject)(x,"raws","spaces","attribute"),x.raws.spaces.attribute.before=Y0,X0=""),x.namespace=(x.namespace||"")+K0;var k0=(0,j.getProp)(x,"raws","namespace")||null;k0&&(x.raws.namespace+=K0),J0="namespace"}$0=!1;break;case q.dollar:if(J0==="value"){var I0=(0,j.getProp)(x,"raws","value");x.value+="$",I0&&(x.raws.value=I0+"$");break}case q.caret:A0[G.FIELDS.TYPE]===q.equals&&(x.operator=K0,J0="operator"),$0=!1;break;case q.combinator:if(K0==="~"&&A0[G.FIELDS.TYPE]===q.equals&&(x.operator=K0,J0="operator"),K0!=="|"){$0=!1;break}A0[G.FIELDS.TYPE]===q.equals?(x.operator=K0,J0="operator"):!x.namespace&&!x.attribute&&(x.namespace=!0),$0=!1;break;case q.word:if(A0&&this.content(A0)==="|"&&y[e+2]&&y[e+2][G.FIELDS.TYPE]!==q.equals&&!x.operator&&!x.namespace)x.namespace=K0,J0="namespace";else if(!x.attribute||J0==="attribute"&&!$0){Y0&&((0,j.ensureObject)(x,"spaces","attribute"),x.spaces.attribute.before=Y0,Y0=""),X0&&((0,j.ensureObject)(x,"raws","spaces","attribute"),x.raws.spaces.attribute.before=X0,X0=""),x.attribute=(x.attribute||"")+K0;var f0=(0,j.getProp)(x,"raws","attribute")||null;f0&&(x.raws.attribute+=K0),J0="attribute"}else if(!x.value&&x.value!==""||J0==="value"&&!$0){var u0=(0,j.unesc)(K0),p0=(0,j.getProp)(x,"raws","value")||"",X1=x.value||"";x.value=X1+u0,x.quoteMark=null,(u0!==K0||p0)&&((0,j.ensureObject)(x,"raws"),x.raws.value=(p0||X1)+K0),J0="value"}else{var Z1=K0==="i"||K0==="I";(x.value||x.value==="")&&(x.quoteMark||$0)?(x.insensitive=Z1,(!Z1||K0==="I")&&((0,j.ensureObject)(x,"raws"),x.raws.insensitiveFlag=K0),J0="insensitive",Y0&&((0,j.ensureObject)(x,"spaces","insensitive"),x.spaces.insensitive.before=Y0,Y0=""),X0&&((0,j.ensureObject)(x,"raws","spaces","insensitive"),x.raws.spaces.insensitive.before=X0,X0="")):(x.value||x.value==="")&&(J0="value",x.value+=K0,x.raws.value&&(x.raws.value+=K0))}$0=!1;break;case q.str:if(!x.attribute||!x.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:_0[G.FIELDS.START_POS]});var n0=(0,U.unescapeValue)(K0),X8=n0.unescaped,P1=n0.quoteMark;x.value=X8,x.quoteMark=P1,J0="value",(0,j.ensureObject)(x,"raws"),x.raws.value=K0,$0=!1;break;case q.equals:if(!x.attribute)return this.expected("attribute",_0[G.FIELDS.START_POS],K0);if(x.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:_0[G.FIELDS.START_POS]});x.operator=x.operator?x.operator+K0:K0,J0="operator",$0=!1;break;case q.comment:if(J0)if($0||A0&&A0[G.FIELDS.TYPE]===q.space||J0==="insensitive"){var i1=(0,j.getProp)(x,"spaces",J0,"after")||"",Z8=(0,j.getProp)(x,"raws","spaces",J0,"after")||i1;(0,j.ensureObject)(x,"raws","spaces",J0),x.raws.spaces[J0].after=Z8+K0}else{var r8=x[J0]||"",Q8=(0,j.getProp)(x,"raws",J0)||r8;(0,j.ensureObject)(x,"raws"),x.raws[J0]=Q8+K0}else X0=X0+K0;break;default:return this.error('Unexpected "'+K0+'" found.',{index:_0[G.FIELDS.START_POS]})}e++}d(x,"attribute"),d(x,"namespace"),this.newNode(new U.default(x)),this.position++},l.parseWhitespaceEquivalentTokens=function(y){y<0&&(y=this.tokens.length);var g=this.position,r=[],x="",e=void 0;do if(k[this.currToken[G.FIELDS.TYPE]])this.options.lossy||(x+=this.content());else if(this.currToken[G.FIELDS.TYPE]===q.comment){var Y0={};x&&(Y0.before=x,x=""),e=new Q.default({value:this.content(),source:S(this.currToken),sourceIndex:this.currToken[G.FIELDS.START_POS],spaces:Y0}),r.push(e)}while(++this.position<y);if(x){if(e)e.spaces.after=x;else if(!this.options.lossy){var X0=this.tokens[g],J0=this.tokens[this.position-1];r.push(new H.default({value:"",source:C(X0[G.FIELDS.START_LINE],X0[G.FIELDS.START_COL],J0[G.FIELDS.END_LINE],J0[G.FIELDS.END_COL]),sourceIndex:X0[G.FIELDS.START_POS],spaces:{before:x,after:""}}))}}return r},l.convertWhitespaceNodesToSpace=function(y,g){var r=this;g===void 0&&(g=!1);var x="",e="";y.forEach(function(X0){var J0=r.lossySpace(X0.spaces.before,g),$0=r.lossySpace(X0.rawSpaceBefore,g);x+=J0+r.lossySpace(X0.spaces.after,g&&J0.length===0),e+=J0+X0.value+r.lossySpace(X0.rawSpaceAfter,g&&$0.length===0)}),e===x&&(e=void 0);var Y0={space:x,rawSpace:e};return Y0},l.isNamedCombinator=function(y){return y===void 0&&(y=this.position),this.tokens[y+0]&&this.tokens[y+0][G.FIELDS.TYPE]===q.slash&&this.tokens[y+1]&&this.tokens[y+1][G.FIELDS.TYPE]===q.word&&this.tokens[y+2]&&this.tokens[y+2][G.FIELDS.TYPE]===q.slash},l.namedCombinator=function(){if(this.isNamedCombinator()){var y=this.content(this.tokens[this.position+1]),g=(0,j.unesc)(y).toLowerCase(),r={};g!==y&&(r.value="/"+y+"/");var x=new $.default({value:"/"+g+"/",source:C(this.currToken[G.FIELDS.START_LINE],this.currToken[G.FIELDS.START_COL],this.tokens[this.position+2][G.FIELDS.END_LINE],this.tokens[this.position+2][G.FIELDS.END_COL]),sourceIndex:this.currToken[G.FIELDS.START_POS],raws:r});return this.position=this.position+3,x}else this.unexpected()},l.combinator=function(){var y=this;if(this.content()==="|")return this.namespace();var g=this.locateNextMeaningfulToken(this.position);if(g<0||this.tokens[g][G.FIELDS.TYPE]===q.comma){var r=this.parseWhitespaceEquivalentTokens(g);if(r.length>0){var x=this.current.last;if(x){var e=this.convertWhitespaceNodesToSpace(r),Y0=e.space,X0=e.rawSpace;X0!==void 0&&(x.rawSpaceAfter+=X0),x.spaces.after+=Y0}else r.forEach(function(p0){return y.newNode(p0)})}return}var J0=this.currToken,$0=void 0;g>this.position&&($0=this.parseWhitespaceEquivalentTokens(g));var _0;if(this.isNamedCombinator()?_0=this.namedCombinator():this.currToken[G.FIELDS.TYPE]===q.combinator?(_0=new $.default({value:this.content(),source:S(this.currToken),sourceIndex:this.currToken[G.FIELDS.START_POS]}),this.position++):k[this.currToken[G.FIELDS.TYPE]]||$0||this.unexpected(),_0){if($0){var K0=this.convertWhitespaceNodesToSpace($0),A0=K0.space,S0=K0.rawSpace;_0.spaces.before=A0,_0.rawSpaceBefore=S0}}else{var c0=this.convertWhitespaceNodesToSpace($0,!0),k0=c0.space,I0=c0.rawSpace;I0||(I0=k0);var f0={},u0={spaces:{}};k0.endsWith(" ")&&I0.endsWith(" ")?(f0.before=k0.slice(0,k0.length-1),u0.spaces.before=I0.slice(0,I0.length-1)):k0.startsWith(" ")&&I0.startsWith(" ")?(f0.after=k0.slice(1),u0.spaces.after=I0.slice(1)):u0.value=I0,_0=new $.default({value:" ",source:I(J0,this.tokens[this.position-1]),sourceIndex:J0[G.FIELDS.START_POS],spaces:f0,raws:u0})}return this.currToken&&this.currToken[G.FIELDS.TYPE]===q.space&&(_0.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(_0)},l.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var y=new X.default({source:{start:n(this.tokens[this.position+1])}});this.current.parent.append(y),this.current=y,this.position++},l.comment=function(){var y=this.currToken;this.newNode(new Q.default({value:this.content(),source:S(y),sourceIndex:y[G.FIELDS.START_POS]})),this.position++},l.error=function(y,g){throw this.root.error(y,g)},l.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[G.FIELDS.START_POS]})},l.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[G.FIELDS.START_POS])},l.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[G.FIELDS.START_POS])},l.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[G.FIELDS.START_POS])},l.namespace=function(){var y=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[G.FIELDS.TYPE]===q.word)return this.position++,this.word(y);if(this.nextToken[G.FIELDS.TYPE]===q.asterisk)return this.position++,this.universal(y)},l.nesting=function(){if(this.nextToken){var y=this.content(this.nextToken);if(y==="|"){this.position++;return}}var g=this.currToken;this.newNode(new B.default({value:this.content(),source:S(g),sourceIndex:g[G.FIELDS.START_POS]})),this.position++},l.parentheses=function(){var y=this.current.last,g=1;if(this.position++,y&&y.type===O.PSEUDO){var r=new X.default({source:{start:n(this.tokens[this.position-1])}}),x=this.current;for(y.append(r),this.current=r;this.position<this.tokens.length&&g;)this.currToken[G.FIELDS.TYPE]===q.openParenthesis&&g++,this.currToken[G.FIELDS.TYPE]===q.closeParenthesis&&g--,g?this.parse():(this.current.source.end=u(this.currToken),this.current.parent.source.end=u(this.currToken),this.position++);this.current=x}else{for(var e=this.currToken,Y0="(",X0;this.position<this.tokens.length&&g;)this.currToken[G.FIELDS.TYPE]===q.openParenthesis&&g++,this.currToken[G.FIELDS.TYPE]===q.closeParenthesis&&g--,X0=this.currToken,Y0+=this.parseParenthesisToken(this.currToken),this.position++;y?y.appendToPropertyAndEscape("value",Y0,Y0):this.newNode(new H.default({value:Y0,source:C(e[G.FIELDS.START_LINE],e[G.FIELDS.START_COL],X0[G.FIELDS.END_LINE],X0[G.FIELDS.END_COL]),sourceIndex:e[G.FIELDS.START_POS]}))}if(g)return this.expected("closing parenthesis",this.currToken[G.FIELDS.START_POS])},l.pseudo=function(){for(var y=this,g="",r=this.currToken;this.currToken&&this.currToken[G.FIELDS.TYPE]===q.colon;)g+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[G.FIELDS.TYPE]===q.word)this.splitWord(!1,function(x,e){g+=x,y.newNode(new z.default({value:g,source:I(r,y.currToken),sourceIndex:r[G.FIELDS.START_POS]})),e>1&&y.nextToken&&y.nextToken[G.FIELDS.TYPE]===q.openParenthesis&&y.error("Misplaced parenthesis.",{index:y.nextToken[G.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[G.FIELDS.START_POS])},l.space=function(){var y=this.content();this.position===0||this.prevToken[G.FIELDS.TYPE]===q.comma||this.prevToken[G.FIELDS.TYPE]===q.openParenthesis||this.current.nodes.every(function(g){return g.type==="comment"})?(this.spaces=this.optionalSpace(y),this.position++):this.position===this.tokens.length-1||this.nextToken[G.FIELDS.TYPE]===q.comma||this.nextToken[G.FIELDS.TYPE]===q.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(y),this.position++):this.combinator()},l.string=function(){var y=this.currToken;this.newNode(new H.default({value:this.content(),source:S(y),sourceIndex:y[G.FIELDS.START_POS]})),this.position++},l.universal=function(y){var g=this.nextToken;if(g&&this.content(g)==="|")return this.position++,this.namespace();var r=this.currToken;this.newNode(new V.default({value:this.content(),source:S(r),sourceIndex:r[G.FIELDS.START_POS]}),y),this.position++},l.splitWord=function(y,g){for(var r=this,x=this.nextToken,e=this.content();x&&~[q.dollar,q.caret,q.equals,q.word].indexOf(x[G.FIELDS.TYPE]);){this.position++;var Y0=this.content();if(e+=Y0,Y0.lastIndexOf("\\")===Y0.length-1){var X0=this.nextToken;X0&&X0[G.FIELDS.TYPE]===q.space&&(e+=this.requiredSpace(this.content(X0)),this.position++)}x=this.nextToken}var J0=m(e,".").filter(function(A0){var S0=e[A0-1]==="\\",c0=/^\d+\.\d+%$/.test(e);return!S0&&!c0}),$0=m(e,"#").filter(function(A0){return e[A0-1]!=="\\"}),_0=m(e,"#{");_0.length&&($0=$0.filter(function(A0){return!~_0.indexOf(A0)}));var K0=(0,M.default)(s([0].concat(J0,$0)));K0.forEach(function(A0,S0){var c0=K0[S0+1]||e.length,k0=e.slice(A0,c0);if(S0===0&&g)return g.call(r,k0,K0.length);var I0,f0=r.currToken,u0=f0[G.FIELDS.START_POS]+K0[S0],p0=C(f0[1],f0[2]+A0,f0[3],f0[2]+(c0-1));if(~J0.indexOf(A0)){var X1={value:k0.slice(1),source:p0,sourceIndex:u0};I0=new Z.default(d(X1,"value"))}else if(~$0.indexOf(A0)){var Z1={value:k0.slice(1),source:p0,sourceIndex:u0};I0=new W.default(d(Z1,"value"))}else{var n0={value:k0,source:p0,sourceIndex:u0};d(n0,"value"),I0=new w.default(n0)}r.newNode(I0,y),y=null}),this.position++},l.word=function(y){var g=this.nextToken;return g&&this.content(g)==="|"?(this.position++,this.namespace()):this.splitWord(y)},l.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},l.parse=function(y){switch(this.currToken[G.FIELDS.TYPE]){case q.space:this.space();break;case q.comment:this.comment();break;case q.openParenthesis:this.parentheses();break;case q.closeParenthesis:y&&this.missingParenthesis();break;case q.openSquare:this.attribute();break;case q.dollar:case q.caret:case q.equals:case q.word:this.word();break;case q.colon:this.pseudo();break;case q.comma:this.comma();break;case q.asterisk:this.universal();break;case q.ampersand:this.nesting();break;case q.slash:case q.combinator:this.combinator();break;case q.str:this.string();break;case q.closeSquare:this.missingSquareBracket();case q.semicolon:this.missingBackslash();default:this.unexpected()}},l.expected=function(y,g,r){if(Array.isArray(y)){var x=y.pop();y=y.join(", ")+" or "+x}var e=/^[aeiou]/.test(y[0])?"an":"a";return r?this.error("Expected "+e+" "+y+', found "'+r+'" instead.',{index:g}):this.error("Expected "+e+" "+y+".",{index:g})},l.requiredSpace=function(y){return this.options.lossy?" ":y},l.optionalSpace=function(y){return this.options.lossy?"":y},l.lossySpace=function(y,g){return this.options.lossy?g?" ":"":y},l.parseParenthesisToken=function(y){var g=this.content(y);return y[G.FIELDS.TYPE]===q.space?this.requiredSpace(g):g},l.newNode=function(y,g){return g&&(/^ +$/.test(g)&&(this.options.lossy||(this.spaces=(this.spaces||"")+g),g=!0),y.namespace=g,d(y,"namespace")),this.spaces&&(y.spaces.before=this.spaces,this.spaces=""),this.current.append(y)},l.content=function(y){return y===void 0&&(y=this.currToken),this.css.slice(y[G.FIELDS.START_POS],y[G.FIELDS.END_POS])},l.locateNextMeaningfulToken=function(y){y===void 0&&(y=this.position+1);for(var g=y;g<this.tokens.length;)if(c[this.tokens[g][G.FIELDS.TYPE]]){g++;continue}else return g;return-1},P(f,[{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]}}]),f}();J.default=p,K.exports=J.default}),Lw=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=X(jw());function X(Q){return Q&&Q.__esModule?Q:{default:Q}}var Z=function(){function Q(w,H){this.func=w||function(){},this.funcRes=null,this.options=H}var W=Q.prototype;return W._shouldUpdateSelector=function(w,H){H===void 0&&(H={});var z=Object.assign({},this.options,H);return z.updateSelector===!1?!1:typeof w!="string"},W._isLossy=function(w){w===void 0&&(w={});var H=Object.assign({},this.options,w);return H.lossless===!1},W._root=function(w,H){H===void 0&&(H={});var z=new Y.default(w,this._parseOptions(H));return z.root},W._parseOptions=function(w){return{lossy:this._isLossy(w)}},W._run=function(w,H){var z=this;return H===void 0&&(H={}),new Promise(function(U,V){try{var $=z._root(w,H);Promise.resolve(z.func($)).then(function(B){var M=void 0;return z._shouldUpdateSelector(w,H)&&(M=$.toString(),w.selector=M),{transform:B,root:$,string:M}}).then(U,V)}catch(B){V(B);return}})},W._runSync=function(w,H){H===void 0&&(H={});var z=this._root(w,H),U=this.func(z);if(U&&typeof U.then=="function")throw Error("Selector processor returned a promise to a synchronous call.");var V=void 0;return H.updateSelector&&typeof w!="string"&&(V=z.toString(),w.selector=V),{transform:U,root:z,string:V}},W.ast=function(w,H){return this._run(w,H).then(function(z){return z.root})},W.astSync=function(w,H){return this._runSync(w,H).root},W.transform=function(w,H){return this._run(w,H).then(function(z){return z.transform})},W.transformSync=function(w,H){return this._runSync(w,H).transform},W.process=function(w,H){return this._run(w,H).then(function(z){return z.string||z.root.toString()})},W.processSync=function(w,H){var z=this._runSync(w,H);return z.string||z.root.toString()},Q}();J.default=Z,K.exports=J.default}),Fw=t((J)=>{J.__esModule=!0,J.universal=J.tag=J.string=J.selector=J.root=J.pseudo=J.nesting=J.id=J.comment=J.combinator=J.className=J.attribute=void 0;var K=B(WK()),Y=B(JK()),X=B(wK()),Z=B(KK()),Q=B(YK()),W=B(zK()),w=B(QK()),H=B(tJ()),z=B(eJ()),U=B(ZK()),V=B(XK()),$=B(HK());function B(k){return k&&k.__esModule?k:{default:k}}var M=function(k){return new K.default(k)};J.attribute=M;var G=function(k){return new Y.default(k)};J.className=G;var q=function(k){return new X.default(k)};J.combinator=q;var O=function(k){return new Z.default(k)};J.comment=O;var j=function(k){return new Q.default(k)};J.id=j;var _=function(k){return new W.default(k)};J.nesting=_;var R=function(k){return new w.default(k)};J.pseudo=R;var E=function(k){return new H.default(k)};J.root=E;var L=function(k){return new z.default(k)};J.selector=L;var T=function(k){return new U.default(k)};J.string=T;var D=function(k){return new V.default(k)};J.tag=D;var P=function(k){return new $.default(k)};J.universal=P}),Ew=t((J)=>{J.__esModule=!0,J.isNode=Z,J.isPseudoElement=j,J.isPseudoClass=_,J.isContainer=R,J.isNamespace=E,J.isUniversal=J.isTag=J.isString=J.isSelector=J.isRoot=J.isPseudo=J.isNesting=J.isIdentifier=J.isComment=J.isCombinator=J.isClassName=J.isAttribute=void 0;var K=m0(),Y,X=(Y={},Y[K.ATTRIBUTE]=!0,Y[K.CLASS]=!0,Y[K.COMBINATOR]=!0,Y[K.COMMENT]=!0,Y[K.ID]=!0,Y[K.NESTING]=!0,Y[K.PSEUDO]=!0,Y[K.ROOT]=!0,Y[K.SELECTOR]=!0,Y[K.STRING]=!0,Y[K.TAG]=!0,Y[K.UNIVERSAL]=!0,Y);function Z(L){return typeof L=="object"&&X[L.type]}function Q(L,T){return Z(T)&&T.type===L}var W=Q.bind(null,K.ATTRIBUTE);J.isAttribute=W;var w=Q.bind(null,K.CLASS);J.isClassName=w;var H=Q.bind(null,K.COMBINATOR);J.isCombinator=H;var z=Q.bind(null,K.COMMENT);J.isComment=z;var U=Q.bind(null,K.ID);J.isIdentifier=U;var V=Q.bind(null,K.NESTING);J.isNesting=V;var $=Q.bind(null,K.PSEUDO);J.isPseudo=$;var B=Q.bind(null,K.ROOT);J.isRoot=B;var M=Q.bind(null,K.SELECTOR);J.isSelector=M;var G=Q.bind(null,K.STRING);J.isString=G;var q=Q.bind(null,K.TAG);J.isTag=q;var O=Q.bind(null,K.UNIVERSAL);J.isUniversal=O;function j(L){return $(L)&&L.value&&(L.value.startsWith("::")||L.value.toLowerCase()===":before"||L.value.toLowerCase()===":after"||L.value.toLowerCase()===":first-letter"||L.value.toLowerCase()===":first-line")}function _(L){return $(L)&&!j(L)}function R(L){return!!(Z(L)&&L.walk)}function E(L){return W(L)||q(L)}}),_w=t((J)=>{J.__esModule=!0;var K=m0();Object.keys(K).forEach(function(Z){Z==="default"||Z==="__esModule"||Z in J&&J[Z]===K[Z]||(J[Z]=K[Z])});var Y=Fw();Object.keys(Y).forEach(function(Z){Z==="default"||Z==="__esModule"||Z in J&&J[Z]===Y[Z]||(J[Z]=Y[Z])});var X=Ew();Object.keys(X).forEach(function(Z){Z==="default"||Z==="__esModule"||Z in J&&J[Z]===X[Z]||(J[Z]=X[Z])})}),Rw=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=W(Lw()),X=Q(_w());function Z(){if(typeof WeakMap!="function")return null;var z=new WeakMap;return Z=function(){return z},z}function Q(z){if(z&&z.__esModule)return z;if(z===null||typeof z!="object"&&typeof z!="function")return{default:z};var U=Z();if(U&&U.has(z))return U.get(z);var V={},$=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in z)if(Object.prototype.hasOwnProperty.call(z,B)){var M=$?Object.getOwnPropertyDescriptor(z,B):null;M&&(M.get||M.set)?Object.defineProperty(V,B,M):V[B]=z[B]}return V.default=z,U&&U.set(z,V),V}function W(z){return z&&z.__esModule?z:{default:z}}var w=function(z){return new Y.default(z)};Object.assign(w,X),delete w.__esModule;var H=w;J.default=H,K.exports=J.default}),Dw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y){return Y.replace(/\\,/g,"\\2c ")}}),Iw=t((J,K)=>{K.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]}}),VK=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(M,G){for(var q in G)Object.defineProperty(M,q,{enumerable:!0,get:G[q]})}K(J,{parseColor:()=>$,formatColor:()=>B});var Y=X(Iw());function X(M){return M&&M.__esModule?M:{default:M}}var Z=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,Q=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,W=/(?:\d+|\d*\.\d+)%?/,w=/(?:\s*,\s*|\s+)/,H=/\s*[,/]\s*/,z=/var\(--(?:[^ )]*?)\)/,U=new RegExp(`^(rgb)a?\\(\\s*(${W.source}|${z.source})(?:${w.source}(${W.source}|${z.source}))?(?:${w.source}(${W.source}|${z.source}))?(?:${H.source}(${W.source}|${z.source}))?\\s*\\)$`),V=new RegExp(`^(hsl)a?\\(\\s*((?:${W.source})(?:deg|rad|grad|turn)?|${z.source})(?:${w.source}(${W.source}|${z.source}))?(?:${w.source}(${W.source}|${z.source}))?(?:${H.source}(${W.source}|${z.source}))?\\s*\\)$`);function $(M,{loose:G=!1}={}){var q,O;if(typeof M!="string")return null;if(M=M.trim(),M==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(M in Y.default)return{mode:"rgb",color:Y.default[M].map((L)=>L.toString())};let j=M.replace(Q,(L,T,D,P,k)=>["#",T,T,D,D,P,P,k?k+k:""].join("")).match(Z);if(j!==null)return{mode:"rgb",color:[parseInt(j[1],16),parseInt(j[2],16),parseInt(j[3],16)].map((L)=>L.toString()),alpha:j[4]?(parseInt(j[4],16)/255).toString():void 0};var _;let R=(_=M.match(U))!==null&&_!==void 0?_:M.match(V);if(R===null)return null;let E=[R[2],R[3],R[4]].filter(Boolean).map((L)=>L.toString());return!G&&E.length!==3||E.length<3&&!E.some((L)=>/^var\(.*?\)$/.test(L))?null:{mode:R[1],color:E,alpha:(q=R[5])===null||q===void 0||(O=q.toString)===null||O===void 0?void 0:O.call(q)}}function B({mode:M,color:G,alpha:q}){let O=q!==void 0;return`${M}(${G.join(" ")}${O?` / ${q}`:""})`}}),$K=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(Q,W){for(var w in W)Object.defineProperty(Q,w,{enumerable:!0,get:W[w]})}K(J,{withAlphaValue:()=>X,default:()=>Z});var Y=VK();function X(Q,W,w){if(typeof Q=="function")return Q({opacityValue:W});let H=(0,Y.parseColor)(Q,{loose:!0});return H===null?w:(0,Y.formatColor)({...H,alpha:W})}function Z({color:Q,property:W,variable:w}){let H=[].concat(W);if(typeof Q=="function")return{[w]:"1",...Object.fromEntries(H.map((U)=>[U,Q({opacityVariable:w,opacityValue:`var(${w})`})]))};let z=(0,Y.parseColor)(Q);return z===null?Object.fromEntries(H.map((U)=>[U,Q])):z.alpha!==void 0?Object.fromEntries(H.map((U)=>[U,Q])):{[w]:"1",...Object.fromEntries(H.map((U)=>[U,(0,Y.formatColor)({...z,alpha:`var(${w})`})]))}}}),Tw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K($,B){for(var M in B)Object.defineProperty($,M,{enumerable:!0,get:B[M]})}K(J,{pattern:()=>Q,withoutCapturing:()=>W,any:()=>w,optional:()=>H,zeroOrMore:()=>z,nestedBrackets:()=>U,escape:()=>V});var Y=/[\\^$.*+?()[\]{}|]/g,X=RegExp(Y.source);function Z($){return $=Array.isArray($)?$:[$],$=$.map((B)=>B instanceof RegExp?B.source:B),$.join("")}function Q($){return new RegExp(Z($),"g")}function W($){return new RegExp(`(?:${Z($)})`,"g")}function w($){return`(?:${$.map(Z).join("|")})`}function H($){return`(?:${Z($)})?`}function z($){return`(?:${Z($)})*`}function U($,B,M=1){return W([V($),/[^\s]*/,M===1?`[^${V($)}${V(B)}s]*`:w([`[^${V($)}${V(B)}s]*`,U($,B,M-1)]),/[^\s]*/,V(B)])}function V($){return $&&X.test($)?$.replace(Y,"\\$&"):$||""}}),Cw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"splitAtTopLevelOnly",{enumerable:!0,get:()=>Z});var K=X(Tw());function Y(Q){if(typeof WeakMap!="function")return null;var W=new WeakMap,w=new WeakMap;return(Y=function(H){return H?w:W})(Q)}function X(Q,W){if(!W&&Q&&Q.__esModule)return Q;if(Q===null||typeof Q!="object"&&typeof Q!="function")return{default:Q};var w=Y(W);if(w&&w.has(Q))return w.get(Q);var H={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var U in Q)if(U!=="default"&&Object.prototype.hasOwnProperty.call(Q,U)){var V=z?Object.getOwnPropertyDescriptor(Q,U):null;V&&(V.get||V.set)?Object.defineProperty(H,U,V):H[U]=Q[U]}return H.default=Q,w&&w.set(Q,H),H}function*Z(Q,W){let w=new RegExp(`[(){}\\[\\]${K.escape(W)}]`,"g"),H=0,z=0,U=!1,V=0,$=0,B=W.length;for(let M of Q.matchAll(w)){let G=M[0]===W[V],q=V===B-1,O=G&&q;M[0]==="("&&H++,M[0]===")"&&H--,M[0]==="["&&H++,M[0]==="]"&&H--,M[0]==="{"&&H++,M[0]==="}"&&H--,G&&H===0&&($===0&&($=M.index),V++),O&&H===0&&(U=!0,yield Q.substring(z,$),z=$+B),V===B&&(V=0,$=0)}U?yield Q.substring(z):yield Q}}),Pw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(H,z){for(var U in z)Object.defineProperty(H,U,{enumerable:!0,get:z[U]})}K(J,{parseBoxShadowValue:()=>W,formatBoxShadowValue:()=>w});var Y=Cw(),X=new Set(["inset","inherit","initial","revert","unset"]),Z=/\ +(?![^(]*\))/g,Q=/^-?(\d+|\.\d+)(.*?)$/g;function W(H){return Array.from((0,Y.splitAtTopLevelOnly)(H,",")).map((z)=>{let U=z.trim(),V={raw:U},$=U.split(Z),B=new Set;for(let M of $)Q.lastIndex=0,!B.has("KEYWORD")&&X.has(M)?(V.keyword=M,B.add("KEYWORD")):Q.test(M)?B.has("X")?B.has("Y")?B.has("BLUR")?B.has("SPREAD")||(V.spread=M,B.add("SPREAD")):(V.blur=M,B.add("BLUR")):(V.y=M,B.add("Y")):(V.x=M,B.add("X")):V.color?(V.unknown||(V.unknown=[]),V.unknown.push(M)):V.color=M;return V.valid=V.x!==void 0&&V.y!==void 0,V})}function w(H){return H.map((z)=>z.valid?[z.keyword,z.x,z.y,z.blur,z.spread,z.color].filter(Boolean).join(" "):z.raw).join(", ")}}),Sw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(C,S){for(var I in S)Object.defineProperty(C,I,{enumerable:!0,get:S[I]})}K(J,{normalize:()=>w,url:()=>H,number:()=>z,percentage:()=>U,length:()=>B,lineWidth:()=>G,shadow:()=>q,color:()=>O,image:()=>j,gradient:()=>R,position:()=>L,familyName:()=>T,genericName:()=>P,absoluteSize:()=>c,relativeSize:()=>u});var Y=VK(),X=Pw(),Z=["min","max","clamp","calc"],Q=/,(?![^(]*\))/g,W=/_(?![^(]*\))/g;function w(C,S=!0){return C.includes("url(")?C.split(/(url\(.*?\))/g).filter(Boolean).map((I)=>/^url\(.*?\)$/.test(I)?I:w(I,!1)).join(""):(C=C.replace(/([^\\])_+/g,(I,d)=>d+" ".repeat(I.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),S&&(C=C.trim()),C=C.replace(/(calc|min|max|clamp)\(.+\)/g,(I)=>I.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),C)}function H(C){return C.startsWith("url(")}function z(C){return!isNaN(Number(C))||Z.some((S)=>new RegExp(`^${S}\\(.+?`).test(C))}function U(C){return C.split(W).every((S)=>/%$/g.test(S)||Z.some((I)=>new RegExp(`^${I}\\(.+?%`).test(S)))}var V=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],$=`(?:${V.join("|")})`;function B(C){return C.split(W).every((S)=>S==="0"||new RegExp(`${$}$`).test(S)||Z.some((I)=>new RegExp(`^${I}\\(.+?${$}`).test(S)))}var M=new Set(["thin","medium","thick"]);function G(C){return M.has(C)}function q(C){let S=(0,X.parseBoxShadowValue)(w(C));for(let I of S)if(!I.valid)return!1;return!0}function O(C){let S=0;return C.split(W).every((I)=>(I=w(I),I.startsWith("var(")?!0:(0,Y.parseColor)(I,{loose:!0})!==null?(S++,!0):!1))?S>0:!1}function j(C){let S=0;return C.split(Q).every((I)=>(I=w(I),I.startsWith("var(")?!0:H(I)||R(I)||["element(","image(","cross-fade(","image-set("].some((d)=>I.startsWith(d))?(S++,!0):!1))?S>0:!1}var _=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function R(C){C=w(C);for(let S of _)if(C.startsWith(`${S}(`))return!0;return!1}var E=new Set(["center","top","right","bottom","left"]);function L(C){let S=0;return C.split(W).every((I)=>(I=w(I),I.startsWith("var(")?!0:E.has(I)||B(I)||U(I)?(S++,!0):!1))?S>0:!1}function T(C){let S=0;return C.split(Q).every((I)=>(I=w(I),I.startsWith("var(")?!0:I.includes(" ")&&!/(['"])([^"']+)\1/g.test(I)||/^\d/g.test(I)?!1:(S++,!0)))?S>0:!1}var D=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function P(C){return D.has(C)}var k=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function c(C){return k.has(C)}var n=new Set(["larger","smaller"]);function u(C){return n.has(C)}}),vw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(L,T){for(var D in T)Object.defineProperty(L,D,{enumerable:!0,get:T[D]})}K(J,{updateAllClasses:()=>H,asValue:()=>V,parseColorFormat:()=>M,asColor:()=>G,asLookupValue:()=>q,coerceValue:()=>E});var Y=w(Rw()),X=w(Dw()),Z=$K(),Q=Sw(),W=w(rJ());function w(L){return L&&L.__esModule?L:{default:L}}function H(L,T){return(0,Y.default)((D)=>{D.walkClasses((P)=>{let k=T(P.value);P.value=k,P.raws&&P.raws.value&&(P.raws.value=(0,X.default)(P.raws.value))})}).processSync(L)}function z(L,T){if(!$(L))return;let D=L.slice(1,-1);if(T(D))return(0,Q.normalize)(D)}function U(L,T={},D){let P=T[L];if(P!==void 0)return(0,W.default)(P);if($(L)){let k=z(L,D);return k===void 0?void 0:(0,W.default)(k)}}function V(L,T={},{validate:D=()=>!0}={}){var P;let k=(P=T.values)===null||P===void 0?void 0:P[L];return k!==void 0?k:T.supportsNegativeValues&&L.startsWith("-")?U(L.slice(1),T.values,D):z(L,D)}function $(L){return L.startsWith("[")&&L.endsWith("]")}function B(L){let T=L.lastIndexOf("/");return T===-1||T===L.length-1?[L]:[L.slice(0,T),L.slice(T+1)]}function M(L){if(typeof L=="string"&&L.includes("<alpha-value>")){let T=L;return({opacityValue:D=1})=>T.replace("<alpha-value>",D)}return L}function G(L,T={},{tailwindConfig:D={}}={}){var P;if(((P=T.values)===null||P===void 0?void 0:P[L])!==void 0){var k;return M((k=T.values)===null||k===void 0?void 0:k[L])}let[c,n]=B(L);if(n!==void 0){var u,C,S,I;let d=(I=(u=T.values)===null||u===void 0?void 0:u[c])!==null&&I!==void 0?I:$(c)?c.slice(1,-1):void 0;return d===void 0?void 0:(d=M(d),$(n)?(0,Z.withAlphaValue)(d,n.slice(1,-1)):((C=D.theme)===null||C===void 0||(S=C.opacity)===null||S===void 0?void 0:S[n])===void 0?void 0:(0,Z.withAlphaValue)(d,D.theme.opacity[n]))}return V(L,T,{validate:Q.color})}function q(L,T={}){var D;return(D=T.values)===null||D===void 0?void 0:D[L]}function O(L){return(T,D)=>V(T,D,{validate:L})}var j={any:V,color:G,url:O(Q.url),image:O(Q.image),length:O(Q.length),percentage:O(Q.percentage),position:O(Q.position),lookup:q,"generic-name":O(Q.genericName),"family-name":O(Q.familyName),number:O(Q.number),"line-width":O(Q.lineWidth),"absolute-size":O(Q.absoluteSize),"relative-size":O(Q.relativeSize),shadow:O(Q.shadow)},_=Object.keys(j);function R(L,T){let D=L.indexOf(T);return D===-1?[void 0,L]:[L.slice(0,D),L.slice(D+1)]}function E(L,T,D,P){if($(T)){let k=T.slice(1,-1),[c,n]=R(k,":");if(!/^[\w-_]+$/g.test(c))n=k;else if(c!==void 0&&!_.includes(c))return[];if(n.length>0&&_.includes(c))return[V(`[${n}]`,D),c]}for(let k of[].concat(L)){let c=j[k](T,D,{tailwindConfig:P});if(c!==void 0)return[c,k]}return[]}}),yw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y){return typeof Y=="function"?Y({}):Y}}),kw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>u});var K=M(rJ()),Y=M(Ww()),X=M(Hw()),Z=M(nJ()),Q=M(ww()),W=zw(),w=Uw(),H=Vw(),z=M($w()),U=Bw(),V=vw(),$=$K(),B=M(yw());function M(C){return C&&C.__esModule?C:{default:C}}function G(C){return typeof C=="function"}function q(C){return typeof C=="object"&&C!==null}function O(C,...S){let I=S.pop();for(let d of S)for(let m in d){let s=I(C[m],d[m]);s===void 0?q(C[m])&&q(d[m])?C[m]=O(C[m],d[m],I):C[m]=d[m]:C[m]=s}return C}var j={colors:Q.default,negative(C){return Object.keys(C).filter((S)=>C[S]!=="0").reduce((S,I)=>{let d=(0,K.default)(C[I]);return d!==void 0&&(S[`-${I}`]=d),S},{})},breakpoints(C){return Object.keys(C).filter((S)=>typeof C[S]=="string").reduce((S,I)=>({...S,[`screen-${I}`]:C[I]}),{})}};function _(C,...S){return G(C)?C(...S):C}function R(C){return C.reduce((S,{extend:I})=>O(S,I,(d,m)=>d===void 0?[m]:Array.isArray(d)?[m,...d]:[m,d]),{})}function E(C){return{...C.reduce((S,I)=>(0,W.defaults)(S,I),{}),extend:R(C)}}function L(C,S){if(Array.isArray(C)&&q(C[0]))return C.concat(S);if(Array.isArray(S)&&q(S[0])&&q(C))return[C,...S];if(Array.isArray(S))return S}function T({extend:C,...S}){return O(S,C,(I,d)=>!G(I)&&!d.some(G)?O({},I,...d,L):(m,s)=>O({},...[I,...d].map((p)=>_(p,m,s)),L))}function*D(C){let S=(0,w.toPath)(C);if(S.length===0||(yield S,Array.isArray(C)))return;let I=/^(.*?)\s*\/\s*([^/]+)$/,d=C.match(I);if(d!==null){let[,m,s]=d,p=(0,w.toPath)(m);p.alpha=s,yield p}}function P(C){let S=(I,d)=>{for(let m of D(I)){let s=0,p=C;for(;p!=null&&s<m.length;)p=p[m[s++]],p=G(p)&&(m.alpha===void 0||s<=m.length-1)?p(S,j):p;if(p!==void 0){if(m.alpha!==void 0){let f=(0,V.parseColorFormat)(p);return(0,$.withAlphaValue)(f,m.alpha,(0,B.default)(f))}return(0,z.default)(p)?(0,U.cloneDeep)(p):p}}return d};return Object.assign(S,{theme:S,...j}),Object.keys(C).reduce((I,d)=>(I[d]=G(C[d])?C[d](S,j):C[d],I),{})}function k(C){let S=[];return C.forEach((I)=>{S=[...S,I];var d;let m=(d=I==null?void 0:I.plugins)!==null&&d!==void 0?d:[];m.length!==0&&m.forEach((s)=>{s.__isOptionsFunction&&(s=s());var p;S=[...S,...k([(p=s==null?void 0:s.config)!==null&&p!==void 0?p:{}])]})}),S}function c(C){return[...C].reduceRight((S,I)=>G(I)?I({corePlugins:S}):(0,X.default)(I,S),Y.default)}function n(C){return[...C].reduceRight((S,I)=>[...S,...I],[])}function u(C){let S=[...k(C),{prefix:"",important:!1,separator:":",variantOrder:Z.default.variantOrder}];var I,d;return(0,H.normalizeConfig)((0,W.defaults)({theme:P(T(E(S.map((m)=>(I=m==null?void 0:m.theme)!==null&&I!==void 0?I:{})))),corePlugins:c(S.map((m)=>m.corePlugins)),plugins:n(C.map((m)=>(d=m==null?void 0:m.plugins)!==null&&d!==void 0?d:[]))},...S))}}),BK={};E4(BK,{default:()=>AK});var AK,gw=F4(()=>{AK={yellow:(J)=>J}}),xw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(V,$){for(var B in $)Object.defineProperty(V,B,{enumerable:!0,get:$[B]})}K(J,{flagEnabled:()=>w,issueFlagNotices:()=>z,default:()=>U});var Y=Z((gw(),g5(BK))),X=Z((_4(),g5(h5)));function Z(V){return V&&V.__esModule?V:{default:V}}var Q={optimizeUniversalDefaults:!1},W={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function w(V,$){if(W.future.includes($)){var B,M,G;return V.future==="all"||((G=(M=V==null||(B=V.future)===null||B===void 0?void 0:B[$])!==null&&M!==void 0?M:Q[$])!==null&&G!==void 0?G:!1)}if(W.experimental.includes($)){var q,O,j;return V.experimental==="all"||((j=(O=V==null||(q=V.experimental)===null||q===void 0?void 0:q[$])!==null&&O!==void 0?O:Q[$])!==null&&j!==void 0?j:!1)}return!1}function H(V){if(V.experimental==="all")return W.experimental;var $;return Object.keys(($=V==null?void 0:V.experimental)!==null&&$!==void 0?$:{}).filter((B)=>W.experimental.includes(B)&&V.experimental[B])}function z(V){if(process.env.JEST_WORKER_ID===void 0&&H(V).length>0){let $=H(V).map((B)=>Y.default.yellow(B)).join(", ");X.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${$}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}var U=W}),bw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Z});var K=X(nJ()),Y=xw();function X(Q){return Q&&Q.__esModule?Q:{default:Q}}function Z(Q){var W;let w=((W=Q==null?void 0:Q.presets)!==null&&W!==void 0?W:[K.default]).slice().reverse().flatMap((U)=>Z(typeof U=="function"?U():U)),H={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},z=Object.keys(H).filter((U)=>(0,Y.flagEnabled)(Q,U)).map((U)=>H[U]);return[Q,...z,...w]}}),hw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Z});var K=X(kw()),Y=X(bw());function X(Q){return Q&&Q.__esModule?Q:{default:Q}}function Z(...Q){let[,...W]=(0,Y.default)(Q[0]);return(0,K.default)([...Q,...W])}}),mw=t((J,K)=>{var Y=hw();K.exports=(Y.__esModule?Y:{default:Y}).default}),O5;var g8=null;async function f5(){return O5||(g8?(await g8,O5):(g8=Promise.resolve().then(()=>(Qw(),oJ)).then((J)=>J.getYogaModule()).then((J)=>O5=J),await g8,g8=null,O5))}var l8=(J,K)=>()=>(K||J((K={exports:{}}).exports,K),K.exports),fw=l8((J,K)=>{K.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),dw=l8((J,K)=>{K.exports=["deg","grad","rad","turn"]}),lw=l8((J,K)=>{K.exports=["dpi","dpcm","dppx"]}),cw=l8((J,K)=>{K.exports=["Hz","kHz"]}),uw=l8((J,K)=>{K.exports=["s","ms"]}),pw=fw(),GK=dw(),qK=lw(),MK=cw(),NK=uw();function T4(J){if(/\.\D?$/.test(J))throw Error("The dot should be followed by a number");if(/^[+-]{2}/.test(J))throw Error("Only one leading +/- is allowed");if(iw(J)>1)throw Error("Only one dot is allowed");if(/%$/.test(J)){this.type="percentage",this.value=Z4(J),this.unit="%";return}var K=rw(J);if(!K){this.type="number",this.value=Z4(J);return}this.type=sw(K),this.value=Z4(J.substr(0,J.length-K.length)),this.unit=K}T4.prototype.valueOf=function(){return this.value};T4.prototype.toString=function(){return this.value+(this.unit||"")};function c8(J){return new T4(J)}function iw(J){var K=J.match(/\./g);return K?K.length:0}function Z4(J){var K=parseFloat(J);if(isNaN(K))throw Error("Invalid number: "+J);return K}var ow=[].concat(GK,MK,pw,qK,NK);function rw(J){var K=J.match(/\D+$/),Y=K&&K[0];if(Y&&ow.indexOf(Y)===-1)throw Error("Invalid unit: "+Y);return Y}var nw=Object.assign(j5(GK,"angle"),j5(MK,"frequency"),j5(qK,"resolution"),j5(NK,"time"));function j5(J,K){return Object.fromEntries(J.map((Y)=>[Y,K]))}function sw(J){return nw[J]||"length"}function P5(J){let K=typeof J;return!(K==="number"||K==="bigint"||K==="string"||K==="boolean")}function aw(J){return/^class\s/.test(J.toString())}function tw(J){return"dangerouslySetInnerHTML"in J}function ew(J){let K=typeof J>"u"?[]:[].concat(J).flat(1/0),Y=[];for(let X=0;X<K.length;X++){let Z=K[X];typeof Z>"u"||typeof Z=="boolean"||Z===null||(typeof Z=="number"&&(Z=String(Z)),typeof Z=="string"&&Y.length&&typeof Y[Y.length-1]=="string"?Y[Y.length-1]+=Z:Y.push(Z))}return Y}function U0(J,K,Y,X,Z=!1){if(typeof J=="number")return J;try{if(J=J.trim(),/[ /\(,]/.test(J))return;if(J===String(+J))return+J;let Q=new c8(J);if(Q.type==="length")switch(Q.unit){case"em":return Q.value*K;case"rem":return Q.value*16;case"vw":return~~(Q.value*X._viewportWidth/100);case"vh":return~~(Q.value*X._viewportHeight/100);default:return Q.value}else{if(Q.type==="angle")return OK(J);if(Q.type==="percentage"&&Z)return Q.value/100*Y}}catch{}}function OK(J){let K=new c8(J);switch(K.unit){case"deg":return K.value;case"rad":return K.value*180/Math.PI;case"turn":return K.value*360;case"grad":return 0.9*K.value}}function S5(J,K){return[J[0]*K[0]+J[2]*K[1],J[1]*K[0]+J[3]*K[1],J[0]*K[2]+J[2]*K[3],J[1]*K[2]+J[3]*K[3],J[0]*K[4]+J[2]*K[5]+J[4],J[1]*K[4]+J[3]*K[5]+J[5]]}function $1(J,K,Y,X){let Z=K[J];if(typeof Z>"u"){if(X&&typeof J<"u")throw Error(`Invalid value for CSS property "${X}". Allowed values: ${Object.keys(K).map((Q)=>`"${Q}"`).join(" | ")}. Received: "${J}".`);Z=Y}return Z}var Q4,W4,Jz=[32,160,4961,65792,65793,4153,4241,10].map((J)=>String.fromCodePoint(J));function A1(J,K,Y){if(!Q4||!W4){if(!(typeof Intl<"u"&&("Segmenter"in Intl)))throw Error("Intl.Segmenter does not exist, please use import a polyfill.");Q4=new Intl.Segmenter(Y,{granularity:"word"}),W4=new Intl.Segmenter(Y,{granularity:"grapheme"})}if(K==="grapheme")return[...W4.segment(J)].map((X)=>X.segment);{let X=[...Q4.segment(J)].map((W)=>W.segment),Z=[],Q=0;for(;Q<X.length;){let W=X[Q];if(W=="\xA0"){let w=Q===0?"":Z.pop(),H=Q===X.length-1?"":X[Q+1];Z.push(w+"\xA0"+H),Q+=2}else Z.push(W),Q++}return Z}}function a(J,K,Y){let X="";for(let[Z,Q]of Object.entries(K))typeof Q<"u"&&(X+=` ${Z}="${Q}"`);return Y?`<${J}${X}>${Y}</${J}>`:`<${J}${X}/>`}function Kz(J=20){let K=new Map;function Y(Q,W){if(K.size>=J){let w=K.keys().next().value;K.delete(w)}K.set(Q,W)}function X(Q){if(!K.has(Q))return;let W=K.get(Q);return K.delete(Q),K.set(Q,W),W}function Z(){K.clear()}return{set:Y,get:X,clear:Z}}function C4(J){return J?J.split(/[, ]/).filter(Boolean).map(Number):null}function Yz(J){return Object.prototype.toString.call(J)}function jK(J){return typeof J=="string"}function Xz(J){return typeof J=="number"}function Zz(J){return Yz(J)==="[object Undefined]"}function Qz(J,K){if(K==="break-all")return{words:A1(J,"grapheme"),requiredBreaks:[]};if(K==="keep-all")return{words:A1(J,"word"),requiredBreaks:[]};let Y=new q6(J),X=0,Z=Y.nextBreak(),Q=[],W=[!1];for(;Z;){let w=J.slice(X,Z.position);Q.push(w),Z.required?W.push(!0):W.push(!1),X=Z.position,Z=Y.nextBreak()}return{words:Q,requiredBreaks:W}}var Wz=(J)=>J.replaceAll(/([A-Z])/g,(K,Y)=>`-${Y.toLowerCase()}`);function LK(J,K=","){let Y=[],X=0,Z=0;K=new RegExp(K);for(let Q=0;Q<J.length;Q++)J[Q]==="("?Z++:J[Q]===")"&&Z--,Z===0&&K.test(J[Q])&&(Y.push(J.slice(X,Q).trim()),X=Q+1);return Y.push(J.slice(X).trim()),Y}var Hz="image/avif",wz="image/webp",d5="image/apng",l5="image/png",c5="image/jpeg",u5="image/gif",P4="image/svg+xml";function FK(J){let K=new DataView(J),Y=4,X=K.byteLength;for(;Y<X;){let Z=K.getUint16(Y,!1);if(Z>X)throw TypeError("Invalid JPEG");let Q=K.getUint8(Z+1+Y);if(Q===192||Q===193||Q===194)return[K.getUint16(Z+7+Y,!1),K.getUint16(Z+5+Y,!1)];Y+=Z+2}throw TypeError("Invalid JPEG")}function EK(J){let K=new Uint8Array(J.slice(6,10));return[K[0]|K[1]<<8,K[2]|K[3]<<8]}function _K(J){let K=new DataView(J);return[K.getUint16(18,!1),K.getUint16(22,!1)]}var c1=Kz(100),v5=new Map,zz=[l5,d5,c5,u5,P4];function Uz(J){let K="",Y=new Uint8Array(J);for(let X=0;X<Y.byteLength;X++)K+=String.fromCharCode(Y[X]);return btoa(K)}function Vz(J){let K=atob(J),Y=K.length,X=new Uint8Array(Y);for(let Z=0;Z<Y;Z++)X[Z]=K.charCodeAt(Z);return X.buffer}function LJ(J,K){let Y=K.match(/<svg[^>]*>/)[0],X=Y.match(/viewBox=['"](.+)['"]/),Z=X?C4(X[1]):null,Q=Y.match(/width=['"](\d*\.\d+|\d+)['"]/),W=Y.match(/height=['"](\d*\.\d+|\d+)['"]/);if(!Z&&(!Q||!W))throw Error(`Failed to parse SVG from ${J}: missing "viewBox"`);let w=Z?[Z[2],Z[3]]:[+Q[1],+W[1]],H=w[0]/w[1];return Q&&W?[+Q[1],+W[1]]:Q?[+Q[1],+Q[1]/H]:W?[+W[1]*H,+W[1]]:[w[0],w[1]]}function FJ(J){let K,Y=$z(new Uint8Array(J));switch(Y){case l5:case d5:K=_K(J);break;case u5:K=EK(J);break;case c5:K=FK(J);break}if(!zz.includes(Y))throw Error(`Unsupported image type: ${Y||"unknown"}`);return[`data:${Y};base64,${Uz(J)}`,K]}async function S4(J){if(!J)throw Error("Image source is not provided.");if(typeof J=="object"){let[Z,Q]=FJ(J);return[Z,...Q]}if((J.startsWith('"')&&J.endsWith('"')||J.startsWith("'")&&J.endsWith("'"))&&(J=J.slice(1,-1)),typeof window>"u"&&!J.startsWith("http")&&!J.startsWith("data:"))throw Error(`Image source must be an absolute URL: ${J}`);if(J.startsWith("data:")){let Z;try{Z=/data:(?<imageType>[a-z/+]+)(;[^;=]+=[^;=]+)*?(;(?<encodingType>[^;,]+))?,(?<dataString>.*)/g.exec(J).groups}catch{return console.warn("Image data URI resolved without size:"+J),[J]}let{imageType:Q,encodingType:W,dataString:w}=Z;if(Q===P4){let H=W==="base64"?atob(w):decodeURIComponent(w.replace(/ /g,"%20")),z=W==="base64"?J:`data:image/svg+xml;base64,${btoa(H)}`,U=LJ(J,H);return c1.set(J,[z,...U]),[z,...U]}else if(W==="base64"){let H,z=Vz(w);switch(Q){case l5:case d5:H=_K(z);break;case u5:H=EK(z);break;case c5:H=FK(z);break}return c1.set(J,[J,...H]),[J,...H]}else return console.warn("Image data URI resolved without size:"+J),c1.set(J,[J]),[J]}if(!globalThis.fetch)throw Error("`fetch` is required to be polyfilled to load images.");if(v5.has(J))return v5.get(J);let K=c1.get(J);if(K)return K;let Y=J,X=fetch(Y).then((Z)=>{let Q=Z.headers.get("content-type");return Q==="image/svg+xml"||Q==="application/svg+xml"?Z.text():Z.arrayBuffer()}).then((Z)=>{if(typeof Z=="string")try{let w=`data:image/svg+xml;base64,${btoa(Z)}`,H=LJ(Y,Z);return[w,...H]}catch(w){throw Error(`Failed to parse SVG image: ${w.message}`)}let[Q,W]=FJ(Z);return[Q,...W]}).then((Z)=>(c1.set(Y,Z),Z)).catch((Z)=>(console.error(`Can't load image ${Y}: `+Z.message),c1.set(Y,[]),[]));return v5.set(Y,X),X}function $z(J){return[255,216,255].every((K,Y)=>J[Y]===K)?c5:[137,80,78,71,13,10,26,10].every((K,Y)=>J[Y]===K)?Bz(J)?d5:l5:[71,73,70,56].every((K,Y)=>J[Y]===K)?u5:[82,73,70,70,0,0,0,0,87,69,66,80].every((K,Y)=>!K||J[Y]===K)?wz:[60,63,120,109,108].every((K,Y)=>J[Y]===K)?P4:[0,0,0,0,102,116,121,112,97,118,105,102].every((K,Y)=>!K||J[Y]===K)?Hz:null}function Bz(J){let K=new DataView(J.buffer),Y,X,Z=8,Q=!1;for(;!Q&&Y!=="IEND"&&Z<J.length;){X=K.getUint32(Z);let W=J.subarray(Z+4,Z+8);Y=String.fromCharCode(...W),Q=Y==="acTL",Z+=12+X}return Q}var G4={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"},Az=/[\r\n%#()<>?[\\\]^`{|}"']/g;function q4(J,K){if(!J)return"";if(Array.isArray(J))return J.map((z)=>q4(z,K)).join("");if(typeof J!="object")return String(J);let Y=J.type;if(Y==="text")throw Error("<text> nodes are not currently supported, please convert them to <path>");let{children:X,style:Z,...Q}=J.props||{},W=(Z==null?void 0:Z.color)||K,w=`${Object.entries(Q).map(([z,U])=>(typeof U=="string"&&U.toLowerCase()==="currentcolor"&&(U=W),z==="href"&&Y==="image"?` ${G4[z]||z}="${c1.get(U)[0]}"`:` ${G4[z]||z}="${U}"`)).join("")}`,H=Z?` style="${Object.entries(Z).map(([z,U])=>`${Wz(z)}:${U}`).join(";")}"`:"";return`<${Y}${w}${H}>${q4(X,W)}</${Y}>`}async function Gz(J){let K=new Set,Y=(X)=>{if(X&&P5(X)){if(Array.isArray(X)){X.forEach((Z)=>Y(Z));return}else typeof X=="object"&&(X.type==="image"?K.has(X.props.href)||K.add(X.props.href):X.type==="img"&&(K.has(X.props.src)||K.add(X.props.src)));Array.isArray(X.props.children)?X.props.children.map((Z)=>Y(Z)):Y(X.props.children)}};return Y(J),Promise.all(Array.from(K).map((X)=>S4(X)))}async function qz(J,K){let{viewBox:Y,viewbox:X,width:Z,height:Q,className:W,style:w,children:H,...z}=J.props||{};Y||=X,z.xmlns="http://www.w3.org/2000/svg";let U=(w==null?void 0:w.color)||K,V=C4(Y),$=V?V[3]/V[2]:null;return Z=Z||$&&Q?Q/$:null,Q=Q||$&&Z?Z*$:null,z.width=Z,z.height=Q,Y&&(z.viewBox=Y),`data:image/svg+xml;utf8,${`<svg ${Object.entries(z).map(([B,M])=>(typeof M=="string"&&M.toLowerCase()==="currentcolor"&&(M=U),` ${G4[B]||B}="${M}"`)).join("")}>${q4(H,U)}</svg>`.replace(Az,encodeURIComponent)}`}var K1="flex",Mz={p:{display:K1,marginTop:"1em",marginBottom:"1em"},div:{display:K1},blockquote:{display:K1,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:K1,textAlign:"center"},hr:{display:K1,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:K1,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:K1,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:K1,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:K1,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:K1,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:K1,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:K1,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}},Nz=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 Oz(J){let K={};for(let Y in J)Nz.has(Y)&&(K[Y]=J[Y]);return K}function jz(J,K){try{let Y=new c8(J);switch(Y.unit){case"px":return{absolute:Y.value};case"em":return{absolute:Y.value*K};case"rem":return{absolute:Y.value*16};case"%":return{relative:Y.value};default:return{}}}catch{return{}}}function H4(J,K,Y){switch(J){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 X=jz(J,K);return X.absolute?{[Y?"xAbsolute":"yAbsolute"]:X.absolute}:X.relative?{[Y?"xRelative":"yRelative"]:X.relative}:{}}}}function Lz(J,K){if(typeof J=="number")return{xAbsolute:J};let Y;try{Y=IK.default(J).nodes.filter((X)=>X.type==="word").map((X)=>X.value)}catch{return{}}return Y.length===1?H4(Y[0],K,!0):Y.length===2?((Y[0]==="top"||Y[0]==="bottom"||Y[1]==="left"||Y[1]==="right")&&Y.reverse(),{...H4(Y[0],K,!0),...H4(Y[1],K,!1)}):{}}function x8(J,K){let Y=TK.getPropertyName(`mask-${K}`);return J[Y]||J[`WebkitM${Y.substring(1)}`]}function Fz(J){let K=J.maskImage||J.WebkitMaskImage,Y={position:x8(J,"position")||"0% 0%",size:x8(J,"size")||"100% 100%",repeat:x8(J,"repeat")||"repeat",origin:x8(J,"origin")||"border-box",clip:x8(J,"origin")||"border-box"};return LK(K).filter((X)=>X&&X!=="none").reverse().map((X)=>({image:X,...Y}))}var Ez=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),_z=new Set(["lineHeight"]);function Rz(J,K,Y,X){return J==="textDecoration"&&!Y.includes(K.textDecorationColor)&&(K.textDecorationColor=X),K}function J8(J,K){let Y=Number(K);return isNaN(Y)?K:Ez.has(J)?_z.has(J)?Y:String(K):Y+"px"}function Dz(J,K,Y){if(J==="lineHeight")return{lineHeight:J8(J,K)};if(J==="fontFamily")return{fontFamily:K.split(",").map((X)=>X.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(J==="borderRadius"){if(typeof K!="string"||!K.includes("/"))return;let[X,Z]=K.split("/"),Q=B1.getStylesForProperty(J,X,!0),W=B1.getStylesForProperty(J,Z,!0);for(let w in Q)W[w]=J8(J,Q[w])+" "+J8(J,W[w]);return W}if(/^border(Top|Right|Bottom|Left)?$/.test(J)){let X=B1.getStylesForProperty("border",K,!0);X.borderWidth===1&&!String(K).includes("1px")&&(X.borderWidth=3),X.borderColor==="black"&&!String(K).includes("black")&&(X.borderColor=Y);let Z={Width:J8(J+"Width",X.borderWidth),Style:$1(X.borderStyle,{solid:"solid",dashed:"dashed"},"solid",J+"Style"),Color:X.borderColor},Q={};for(let W of J==="border"?["Top","Right","Bottom","Left"]:[J.slice(6)])for(let w in Z)Q["border"+W+w]=Z[w];return Q}if(J==="boxShadow"){if(!K)throw Error('Invalid `boxShadow` value: "'+K+'".');return{[J]:typeof K=="string"?DK.parse(K):K}}if(J==="transform"){if(typeof K!="string")throw Error("Invalid `transform` value.");let X={},Z=K.replace(/(-?[\d.]+%)/g,(W,w)=>{let H=~~(Math.random()*1e9);return X[H]=w,H+"px"}),Q=B1.getStylesForProperty("transform",Z,!0);for(let W of Q.transform)for(let w in W)X[W[w]]&&(W[w]=X[W[w]]);return Q}if(J==="background")return K=K.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient)\(/.test(K)?B1.getStylesForProperty("backgroundImage",K,!0):B1.getStylesForProperty("background",K,!0);if(J==="textShadow"){K=K.toString().trim();let X={},Z=LK(K);for(let Q of Z){let W=B1.getStylesForProperty("textShadow",Q,!0);for(let w in W)X[w]?X[w].push(W[w]):X[w]=[W[w]]}return X}if(J==="WebkitTextStroke"){K=K.toString().trim();let X=K.split(" ");if(X.length!==2)throw Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:J8(J,X[0]),WebkitTextStrokeColor:J8(J,X[1])}}}function EJ(J){return J==="transform"?" Only absolute lengths such as `10px` are supported.":""}var _J=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function CK(J){if(typeof J=="string"&&_J.test(J.trim()))return J.trim().replace(_J,(K,Y,X,Z,Q)=>`rgba(${Y}, ${X}, ${Z}, ${Q})`);if(typeof J=="object"&&J!==null){for(let K in J)J[K]=CK(J[K]);return J}return J}function RJ(J,K){let Y={};if(J){let Z=Tz(J.color,K.color);Y.color=Z;for(let Q in J){if(Q.startsWith("_")){Y[Q]=J[Q];continue}if(Q==="color")continue;let W=B1.getPropertyName(Q),w=Pz(J[Q],Z);try{let H=Dz(W,w,Z)||Rz(W,B1.getStylesForProperty(W,J8(W,w),!0),w,Z);Object.assign(Y,H)}catch(H){throw Error(H.message+(H.message.includes(w)?`
|
|
61
|
+
`.replace(/\n|\s/g,""),fZ=new RegExp(mZ),dZ=/^transparent$/,lZ=new RegExp(dZ,"i"),b6=(J,K,Y)=>Math.min(Math.max(K,J),Y),cZ=(J)=>{let K=J;if(typeof K!=="number")K=K.endsWith("%")?parseFloat(K)*255/100:parseFloat(K);return b6(Math.round(K),0,255)},$7=(J)=>b6(parseFloat(J),0,100);function G7(J){let K=J;if(typeof K!=="number")K=K.endsWith("%")?parseFloat(K)/100:parseFloat(K);return b6(K,0,1)}function uZ(J){let[K,Y,X,Z]=A7.default(J,{format:"array"});return w5([null,K,Y,X,Z])}function pZ([,J,K,Y,X=1]){let Z=J;if(Z.endsWith("turn"))Z=parseFloat(Z)*360/1;else if(Z.endsWith("rad"))Z=Math.round(parseFloat(Z)*180/Math.PI);else Z=parseFloat(Z);return{type:"hsl",values:[Z,$7(K),$7(Y)],alpha:G7(X===null?1:X)}}function w5([,J,K,Y,X=1]){return{type:"rgb",values:[J,K,Y].map(cZ),alpha:G7(X===null?1:X)}}var iZ=(J)=>{if(typeof J!=="string")return null;let K=TZ.exec(J);if(K)return uZ(K[0]);let Y=vZ.exec(J)||PZ.exec(J);if(Y)return pZ(Y);let X=hZ.exec(J)||fZ.exec(J)||kZ.exec(J)||xZ.exec(J);if(X)return w5(X);if(lZ.exec(J))return w5([null,0,0,0,0]);let Z=B7.default[J.toLowerCase()];if(Z)return w5([null,Z[0],Z[1],Z[2],1]);return null},z5=iZ;var IK=e0(_6(),1),TK=e0(W5(),1),M4=e0(M7(),1);function m6(J,K=","){let Y=[],X=0,Z=0;K=new RegExp(K);for(let Q=0;Q<J.length;Q++)J[Q]==="("?Z++:J[Q]===")"&&Z--,Z===0&&K.test(J[Q])&&(Y.push(J.slice(X,Q).trim()),X=Q+1);return Y.push(J.slice(X).trim()),Y}function h6(J){let K=[];for(let Y=0,X=J.length;Y<X;){let[Z,Q]=m6(J[Y],/\s+/);nZ(J[Y+1])?(K.push({color:Z,offset:s1(Q),hint:s1(J[Y+1])}),Y+=2):(K.push({color:Z,offset:s1(Q)}),Y++)}return K}var j7=/^(-?\d+\.?\d*)(%|vw|vh|px|em|rem|deg|rad|grad|turn)$/;function nZ(J){return j7.test(J)}function s1(J){if(!J)return;let[,K,Y]=J.trim().match(j7)||[];return{value:K,unit:Y}}function L7(J){if(!/^(repeating-)?linear-gradient/.test(J))throw SyntaxError(`could not find syntax for this item: ${J}`);let[,K,Y]=J.match(/(repeating-)?linear-gradient\((.+)\)/),X={orientation:{type:"directional",value:"bottom"},repeating:!!K,stops:[]},Z=m6(Y),Q=sZ(Z[0]);return Q&&(X.orientation=Q,Z.shift()),{...X,stops:h6(Z)}}function sZ(J){return J.startsWith("to ")?{type:"directional",value:J.replace("to ","")}:["turn","deg","grad","rad"].some((K)=>J.endsWith(K))?{type:"angular",value:s1(J)}:null}var aZ=new Set(["closest-corner","closest-side","farthest-corner","farthest-side"]),tZ=new Set(["center","left","top","right","bottom"]);function N7(J){return aZ.has(J)}function O7(J){return tZ.has(J)}function eZ(J){let K=Array(2).fill("");for(let Y=0;Y<2;Y++)J[Y]?K[Y]=J[Y]:K[Y]="center";return K}function F7(J){if(!/(repeating-)?radial-gradient/.test(J))throw SyntaxError(`could not find syntax for this item: ${J}`);let[,K,Y]=J.match(/(repeating-)?radial-gradient\((.+)\)/),X={shape:"ellipse",repeating:!!K,size:[{type:"keyword",value:"farthest-corner"}],position:{x:{type:"keyword",value:"center"},y:{type:"keyword",value:"center"}},stops:[]},Z=m6(Y);if(JQ(Z[0]))return{...X,stops:h6(Z)};let Q=Z[0].split("at").map((z)=>z.trim()),W=((Q[0]||"").match(/(circle|ellipse)/)||[])[1],w=(Q[0]||"").match(/(-?\d+\.?\d*(vw|vh|px|em|rem|%|rad|grad|turn|deg)?|closest-corner|closest-side|farthest-corner|farthest-side)/g)||[],H=eZ((Q[1]||"").split(" "));return W?X.shape=W:w.length===1&&!N7(w[0])?X.shape="circle":X.shape="ellipse",w.length===0&&w.push("farthest-corner"),X.size=w.map((z)=>N7(z)?{type:"keyword",value:z}:{type:"length",value:s1(z)}),X.position.x=O7(H[0])?{type:"keyword",value:H[0]}:{type:"length",value:s1(H[0])},X.position.y=O7(H[1])?{type:"keyword",value:H[1]}:{type:"length",value:s1(H[1])},(W||w.length>0||Q[1])&&Z.shift(),{...X,stops:h6(Z)}}function JQ(J){return/(circle|ellipse|at)/.test(J)?!1:/^(rgba?|hwb|hsl|lab|lch|oklab|color|#|[a-zA-Z]+)/.test(J)}var N4=e0(W5(),1);var J1=Uint8Array,t1=Uint16Array,s7=Uint32Array,a7=new J1([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]),t7=new J1([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]),KQ=new J1([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),e7=function(J,K){var Y=new t1(31);for(var X=0;X<31;++X)Y[X]=K+=1<<J[X-1];var Z=new s7(Y[30]);for(var X=1;X<30;++X)for(var Q=Y[X];Q<Y[X+1];++Q)Z[Q]=Q-Y[X]<<5|X;return[Y,Z]},JJ=e7(a7,2),KJ=JJ[0],YQ=JJ[1];KJ[28]=258,YQ[258]=28;var XQ=e7(t7,0),ZQ=XQ[0],n6=new t1(32768);for(Z0=0;Z0<32768;++Z0)j1=(Z0&43690)>>>1|(Z0&21845)<<1,j1=(j1&52428)>>>2|(j1&13107)<<2,j1=(j1&61680)>>>4|(j1&3855)<<4,n6[Z0]=((j1&65280)>>>8|(j1&255)<<8)>>>1;var j1,Z0,D8=function(J,K,Y){var X=J.length,Z=0,Q=new t1(K);for(;Z<X;++Z)if(J[Z])++Q[J[Z]-1];var W=new t1(K);for(Z=0;Z<K;++Z)W[Z]=W[Z-1]+Q[Z-1]<<1;var w;if(Y){w=new t1(1<<K);var H=15-K;for(Z=0;Z<X;++Z)if(J[Z]){var z=Z<<4|J[Z],U=K-J[Z],V=W[J[Z]-1]++<<U;for(var $=V|(1<<U)-1;V<=$;++V)w[n6[V]>>>H]=z}}else{w=new t1(X);for(Z=0;Z<X;++Z)if(J[Z])w[Z]=n6[W[J[Z]-1]++]>>>15-J[Z]}return w},C8=new J1(288);for(Z0=0;Z0<144;++Z0)C8[Z0]=8;var Z0;for(Z0=144;Z0<256;++Z0)C8[Z0]=9;var Z0;for(Z0=256;Z0<280;++Z0)C8[Z0]=7;var Z0;for(Z0=280;Z0<288;++Z0)C8[Z0]=8;var Z0,YJ=new J1(32);for(Z0=0;Z0<32;++Z0)YJ[Z0]=5;var Z0,QQ=D8(C8,9,1),WQ=D8(YJ,5,1),f6=function(J){var K=J[0];for(var Y=1;Y<J.length;++Y)if(J[Y]>K)K=J[Y];return K},H1=function(J,K,Y){var X=K/8|0;return(J[X]|J[X+1]<<8)>>(K&7)&Y},d6=function(J,K){var Y=K/8|0;return(J[Y]|J[Y+1]<<8|J[Y+2]<<16)>>(K&7)},HQ=function(J){return(J+7)/8|0},wQ=function(J,K,Y){if(K==null||K<0)K=0;if(Y==null||Y>J.length)Y=J.length;var X=new(J.BYTES_PER_ELEMENT==2?t1:J.BYTES_PER_ELEMENT==4?s7:J1)(Y-K);return X.set(J.subarray(K,Y)),X},zQ=["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"],h1=function(J,K,Y){var X=Error(K||zQ[J]);if(X.code=J,Error.captureStackTrace)Error.captureStackTrace(X,h1);if(!Y)throw X;return X},UQ=function(J,K,Y){var X=J.length;if(!X||Y&&Y.f&&!Y.l)return K||new J1(0);var Z=!K||Y,Q=!Y||Y.i;if(!Y)Y={};if(!K)K=new J1(X*3);var W=function(x){var e=K.length;if(x>e){var Y0=new J1(Math.max(e*2,x));Y0.set(K),K=Y0}},w=Y.f||0,H=Y.p||0,z=Y.b||0,U=Y.l,V=Y.d,$=Y.m,B=Y.n,M=X*8;do{if(!U){w=H1(J,H,1);var G=H1(J,H+1,3);if(H+=3,!G){var q=HQ(H)+4,O=J[q-4]|J[q-3]<<8,j=q+O;if(j>X){if(Q)h1(0);break}if(Z)W(z+O);K.set(J.subarray(q,j),z),Y.b=z+=O,Y.p=H=j*8,Y.f=w;continue}else if(G==1)U=QQ,V=WQ,$=9,B=5;else if(G==2){var E=H1(J,H,31)+257,R=H1(J,H+10,15)+4,_=E+H1(J,H+5,31)+1;H+=14;var L=new J1(_),T=new J1(19);for(var D=0;D<R;++D)T[KQ[D]]=H1(J,H+D*3,7);H+=R*3;var P=f6(T),g=(1<<P)-1,u=D8(T,P,1);for(var D=0;D<_;){var n=u[H1(J,H,g)];H+=n&15;var q=n>>>4;if(q<16)L[D++]=q;else{var i=0,C=0;if(q==16)C=3+H1(J,H,3),H+=2,i=L[D-1];else if(q==17)C=3+H1(J,H,7),H+=3;else if(q==18)C=11+H1(J,H,127),H+=7;while(C--)L[D++]=i}}var S=L.subarray(0,E),I=L.subarray(E);$=f6(S),B=f6(I),U=D8(S,$,1),V=D8(I,B,1)}else h1(1);if(H>M){if(Q)h1(0);break}}if(Z)W(z+131072);var f=(1<<$)-1,l=(1<<B)-1,c=H;for(;;c=H){var i=U[d6(J,H)&f],p=i>>>4;if(H+=i&15,H>M){if(Q)h1(0);break}if(!i)h1(2);if(p<256)K[z++]=p;else if(p==256){c=H,U=null;break}else{var m=p-254;if(p>264){var D=p-257,d=a7[D];m=H1(J,H,(1<<d)-1)+KJ[D],H+=d}var y=V[d6(J,H)&l],k=y>>>4;if(!y)h1(3);H+=y&15;var I=ZQ[k];if(k>3){var d=t7[k];I+=d6(J,H)&(1<<d)-1,H+=d}if(H>M){if(Q)h1(0);break}if(Z)W(z+131072);var s=z+m;for(;z<s;z+=4)K[z]=K[z-I],K[z+1]=K[z+1-I],K[z+2]=K[z+2-I],K[z+3]=K[z+3-I];z=s}}if(Y.l=U,Y.p=c,Y.b=z,Y.f=w,U)w=1,Y.m=$,Y.d=V,Y.n=B}while(!w);return z==K.length?K:wQ(K,0,z)},VQ=new J1(0);function $Q(J,K){return UQ(J,K)}var BQ=typeof TextDecoder<"u"&&new TextDecoder,AQ=0;try{BQ.decode(VQ,{stream:!0}),AQ=1}catch(J){}function b0(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}b0.prototype.moveTo=function(J,K){this.commands.push({type:"M",x:J,y:K})};b0.prototype.lineTo=function(J,K){this.commands.push({type:"L",x:J,y:K})};b0.prototype.curveTo=b0.prototype.bezierCurveTo=function(J,K,Y,X,Z,Q){this.commands.push({type:"C",x1:J,y1:K,x2:Y,y2:X,x:Z,y:Q})};b0.prototype.quadTo=b0.prototype.quadraticCurveTo=function(J,K,Y,X){this.commands.push({type:"Q",x1:J,y1:K,x:Y,y:X})};b0.prototype.close=b0.prototype.closePath=function(){this.commands.push({type:"Z"})};b0.prototype.extend=function(J){if(J.commands)J=J.commands;Array.prototype.push.apply(this.commands,J)};b0.prototype.toPathData=function(J){J=J!==void 0?J:2;function K(W){if(Math.round(W)===W)return""+Math.round(W);else return W.toFixed(J)}function Y(){var W=arguments,w="";for(var H=0;H<arguments.length;H+=1){var z=W[H];if(z>=0&&H>0)w+=" ";w+=K(z)}return w}var X="";for(var Z=0;Z<this.commands.length;Z+=1){var Q=this.commands[Z];if(Q.type==="M")X+="M"+Y(Q.x,Q.y);else if(Q.type==="L")X+="L"+Y(Q.x,Q.y);else if(Q.type==="C")X+="C"+Y(Q.x1,Q.y1,Q.x2,Q.y2,Q.x,Q.y);else if(Q.type==="Q")X+="Q"+Y(Q.x1,Q.y1,Q.x,Q.y);else if(Q.type==="Z")X+="Z"}return X};var GQ=[".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"],qQ=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],MQ=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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 XJ(J){this.font=J}XJ.prototype.charToGlyphIndex=function(J){var K=J.codePointAt(0),Y=this.font.glyphs;if(Y)for(var X=0;X<Y.length;X+=1){var Z=Y.get(X);for(var Q=0;Q<Z.unicodes.length;Q+=1)if(Z.unicodes[Q]===K)return X}return null};function ZJ(J){this.cmap=J}ZJ.prototype.charToGlyphIndex=function(J){return this.cmap.glyphIndexMap[J.codePointAt(0)]||0};function B5(J,K){this.encoding=J,this.charset=K}B5.prototype.charToGlyphIndex=function(J){var K=J.codePointAt(0),Y=this.encoding[K];return this.charset.indexOf(Y)};function NQ(J){var K,Y=J.tables.cmap.glyphIndexMap,X=Object.keys(Y);for(var Z=0;Z<X.length;Z+=1){var Q=X[Z],W=Y[Q];K=J.glyphs.get(W),K.addUnicode(parseInt(Q))}}function OQ(J){J._IndexToUnicodeMap={};var K=J.tables.cmap.glyphIndexMap,Y=Object.keys(K);for(var X=0;X<Y.length;X+=1){var Z=Y[X],Q=K[Z];if(J._IndexToUnicodeMap[Q]===void 0)J._IndexToUnicodeMap[Q]={unicodes:[parseInt(Z)]};else J._IndexToUnicodeMap[Q].unicodes.push(parseInt(Z))}}function jQ(J,K){if(K.lowMemory)OQ(J);else NQ(J)}function QJ(J){throw Error(J)}function E7(J,K){if(!J)QJ(K)}var z0={fail:QJ,argument:E7,assert:E7};function LQ(J,K){var Y=K||new b0;return{configurable:!0,get:function(){if(typeof Y==="function")Y=Y();return Y},set:function(X){Y=X}}}function T1(J){this.bindConstructorValues(J)}T1.prototype.bindConstructorValues=function(J){if(this.index=J.index||0,this.name=J.name||null,this.unicode=J.unicode||void 0,this.unicodes=J.unicodes||J.unicode!==void 0?[J.unicode]:[],"xMin"in J)this.xMin=J.xMin;if("yMin"in J)this.yMin=J.yMin;if("xMax"in J)this.xMax=J.xMax;if("yMax"in J)this.yMax=J.yMax;if("advanceWidth"in J)this.advanceWidth=J.advanceWidth;Object.defineProperty(this,"path",LQ(this,J.path))};T1.prototype.addUnicode=function(J){if(this.unicodes.length===0)this.unicode=J;this.unicodes.push(J)};T1.prototype.getPath=function(J,K,Y,X,Z){J=J!==void 0?J:0,K=K!==void 0?K:0,Y=Y!==void 0?Y:72;var Q,W;if(!X)X={};var{xScale:w,yScale:H}=X;if(X.hinting&&Z&&Z.hinting)W=this.path&&Z.hinting.exec(this,Y);if(W)Q=Z.hinting.getCommands(W),J=Math.round(J),K=Math.round(K),w=H=1;else{Q=this.path.commands;var z=1/(this.path.unitsPerEm||1000)*Y;if(w===void 0)w=z;if(H===void 0)H=z}var U=new b0;for(var V=0;V<Q.length;V+=1){var $=Q[V];if($.type==="M")U.moveTo(J+$.x*w,K+-$.y*H);else if($.type==="L")U.lineTo(J+$.x*w,K+-$.y*H);else if($.type==="Q")U.quadraticCurveTo(J+$.x1*w,K+-$.y1*H,J+$.x*w,K+-$.y*H);else if($.type==="C")U.curveTo(J+$.x1*w,K+-$.y1*H,J+$.x2*w,K+-$.y2*H,J+$.x*w,K+-$.y*H);else if($.type==="Z")U.closePath()}return U};T1.prototype.getContours=function(){if(this.points===void 0)return[];var J=[],K=[];for(var Y=0;Y<this.points.length;Y+=1){var X=this.points[Y];if(K.push(X),X.lastPointOfContour)J.push(K),K=[]}return z0.argument(K.length===0,"There are still points left in the current contour."),J};T1.prototype.getMetrics=function(){var J=this.path.commands,K=[],Y=[];for(var X=0;X<J.length;X+=1){var Z=J[X];if(Z.type!=="Z")K.push(Z.x),Y.push(Z.y);if(Z.type==="Q"||Z.type==="C")K.push(Z.x1),Y.push(Z.y1);if(Z.type==="C")K.push(Z.x2),Y.push(Z.y2)}var Q={xMin:Math.min.apply(null,K),yMin:Math.min.apply(null,Y),xMax:Math.max.apply(null,K),yMax:Math.max.apply(null,Y),leftSideBearing:this.leftSideBearing};if(!isFinite(Q.xMin))Q.xMin=0;if(!isFinite(Q.xMax))Q.xMax=this.advanceWidth;if(!isFinite(Q.yMin))Q.yMin=0;if(!isFinite(Q.yMax))Q.yMax=0;return Q.rightSideBearing=this.advanceWidth-Q.leftSideBearing-(Q.xMax-Q.xMin),Q};function U5(J,K,Y){Object.defineProperty(J,K,{get:function(){return J.path,J[Y]},set:function(X){J[Y]=X},enumerable:!0,configurable:!0})}function t6(J,K){if(this.font=J,this.glyphs={},Array.isArray(K))for(var Y=0;Y<K.length;Y++){var X=K[Y];X.path.unitsPerEm=J.unitsPerEm,this.glyphs[Y]=X}this.length=K&&K.length||0}t6.prototype.get=function(J){if(this.glyphs[J]===void 0){if(this.font._push(J),typeof this.glyphs[J]==="function")this.glyphs[J]=this.glyphs[J]();var K=this.glyphs[J],Y=this.font._IndexToUnicodeMap[J];if(Y)for(var X=0;X<Y.unicodes.length;X++)K.addUnicode(Y.unicodes[X]);this.glyphs[J].advanceWidth=this.font._hmtxTableData[J].advanceWidth,this.glyphs[J].leftSideBearing=this.font._hmtxTableData[J].leftSideBearing}else if(typeof this.glyphs[J]==="function")this.glyphs[J]=this.glyphs[J]();return this.glyphs[J]};t6.prototype.push=function(J,K){this.glyphs[J]=K,this.length++};function FQ(J,K){return new T1({index:K,font:J})}function EQ(J,K,Y,X,Z,Q){return function(){var W=new T1({index:K,font:J});return W.path=function(){Y(W,X,Z);var w=Q(J.glyphs,W);return w.unitsPerEm=J.unitsPerEm,w},U5(W,"xMin","_xMin"),U5(W,"xMax","_xMax"),U5(W,"yMin","_yMin"),U5(W,"yMax","_yMax"),W}}function _Q(J,K,Y,X){return function(){var Z=new T1({index:K,font:J});return Z.path=function(){var Q=Y(J,Z,X);return Q.unitsPerEm=J.unitsPerEm,Q},Z}}var F1={GlyphSet:t6,glyphLoader:FQ,ttfGlyphLoader:EQ,cffGlyphLoader:_Q};function l6(J,K){var Y=0,X=J.length-1;while(Y<=X){var Z=Y+X>>>1,Q=J[Z].tag;if(Q===K)return Z;else if(Q<K)Y=Z+1;else X=Z-1}return-Y-1}function _7(J,K){var Y=0,X=J.length-1;while(Y<=X){var Z=Y+X>>>1,Q=J[Z];if(Q===K)return Z;else if(Q<K)Y=Z+1;else X=Z-1}return-Y-1}function R7(J,K){var Y,X=0,Z=J.length-1;while(X<=Z){var Q=X+Z>>>1;Y=J[Q];var W=Y.start;if(W===K)return Y;else if(W<K)X=Q+1;else Z=Q-1}if(X>0){if(Y=J[X-1],K>Y.end)return 0;return Y}}function P8(J,K){this.font=J,this.tableName=K}P8.prototype={searchTag:l6,binSearch:_7,getTable:function(J){var K=this.font.tables[this.tableName];if(!K&&J)K=this.font.tables[this.tableName]=this.createDefaultTable();return K},getDefaultScriptName:function(){var J=this.getTable();if(!J)return;var K=!1;for(var Y=0;Y<J.scripts.length;Y++){var X=J.scripts[Y].tag;if(X==="DFLT")return X;if(X==="latn")K=!0}if(K)return"latn"},getScriptTable:function(J,K){var Y=this.getTable(K);if(Y){J=J||"DFLT";var X=Y.scripts,Z=l6(Y.scripts,J);if(Z>=0)return X[Z].script;else if(K){var Q={tag:J,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return X.splice(-1-Z,0,Q),Q.script}}},getLangSysTable:function(J,K,Y){var X=this.getScriptTable(J,Y);if(X){if(!K||K==="dflt"||K==="DFLT")return X.defaultLangSys;var Z=l6(X.langSysRecords,K);if(Z>=0)return X.langSysRecords[Z].langSys;else if(Y){var Q={tag:K,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return X.langSysRecords.splice(-1-Z,0,Q),Q.langSys}}},getFeatureTable:function(J,K,Y,X){var Z=this.getLangSysTable(J,K,X);if(Z){var Q,W=Z.featureIndexes,w=this.font.tables[this.tableName].features;for(var H=0;H<W.length;H++)if(Q=w[W[H]],Q.tag===Y)return Q.feature;if(X){var z=w.length;return z0.assert(z===0||Y>=w[z-1].tag,"Features must be added in alphabetical order."),Q={tag:Y,feature:{params:0,lookupListIndexes:[]}},w.push(Q),W.push(z),Q.feature}}},getLookupTables:function(J,K,Y,X,Z){var Q=this.getFeatureTable(J,K,Y,Z),W=[];if(Q){var w,H=Q.lookupListIndexes,z=this.font.tables[this.tableName].lookups;for(var U=0;U<H.length;U++)if(w=z[H[U]],w.lookupType===X)W.push(w);if(W.length===0&&Z){w={lookupType:X,lookupFlag:0,subtables:[],markFilteringSet:void 0};var V=z.length;return z.push(w),H.push(V),[w]}}return W},getGlyphClass:function(J,K){switch(J.format){case 1:if(J.startGlyph<=K&&K<J.startGlyph+J.classes.length)return J.classes[K-J.startGlyph];return 0;case 2:var Y=R7(J.ranges,K);return Y?Y.classId:0}},getCoverageIndex:function(J,K){switch(J.format){case 1:var Y=_7(J.glyphs,K);return Y>=0?Y:-1;case 2:var X=R7(J.ranges,K);return X?X.index+K-X.start:-1}},expandCoverage:function(J){if(J.format===1)return J.glyphs;else{var K=[],Y=J.ranges;for(var X=0;X<Y.length;X++){var Z=Y[X],Q=Z.start,W=Z.end;for(var w=Q;w<=W;w++)K.push(w)}return K}}};function S8(J){P8.call(this,J,"gpos")}S8.prototype=P8.prototype;S8.prototype.init=function(){var J=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(J)};S8.prototype.getKerningValue=function(J,K,Y){for(var X=0;X<J.length;X++){var Z=J[X].subtables;for(var Q=0;Q<Z.length;Q++){var W=Z[Q],w=this.getCoverageIndex(W.coverage,K);if(w<0)continue;switch(W.posFormat){case 1:var H=W.pairSets[w];for(var z=0;z<H.length;z++){var U=H[z];if(U.secondGlyph===Y)return U.value1&&U.value1.xAdvance||0}break;case 2:var V=this.getGlyphClass(W.classDef1,K),$=this.getGlyphClass(W.classDef2,Y),B=W.classRecords[V][$];return B.value1&&B.value1.xAdvance||0}}}return 0};S8.prototype.getKerningTables=function(J,K){if(this.font.tables.gpos)return this.getLookupTables(J,K,"kern",2)};function o0(J){P8.call(this,J,"gsub")}function RQ(J,K){var Y=J.length;if(Y!==K.length)return!1;for(var X=0;X<Y;X++)if(J[X]!==K[X])return!1;return!0}function e6(J,K,Y){var X=J.subtables;for(var Z=0;Z<X.length;Z++){var Q=X[Z];if(Q.substFormat===K)return Q}if(Y)return X.push(Y),Y;return}o0.prototype=P8.prototype;o0.prototype.createDefaultTable=function(){return{version:1,scripts:[{tag:"DFLT",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}};o0.prototype.getSingle=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,1);for(var Q=0;Q<Z.length;Q++){var W=Z[Q].subtables;for(var w=0;w<W.length;w++){var H=W[w],z=this.expandCoverage(H.coverage),U=void 0;if(H.substFormat===1){var V=H.deltaGlyphId;for(U=0;U<z.length;U++){var $=z[U];X.push({sub:$,by:$+V})}}else{var B=H.substitute;for(U=0;U<z.length;U++)X.push({sub:z[U],by:B[U]})}}}return X};o0.prototype.getMultiple=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,2);for(var Q=0;Q<Z.length;Q++){var W=Z[Q].subtables;for(var w=0;w<W.length;w++){var H=W[w],z=this.expandCoverage(H.coverage),U=void 0;for(U=0;U<z.length;U++){var V=z[U],$=H.sequences[U];X.push({sub:V,by:$})}}}return X};o0.prototype.getAlternates=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,3);for(var Q=0;Q<Z.length;Q++){var W=Z[Q].subtables;for(var w=0;w<W.length;w++){var H=W[w],z=this.expandCoverage(H.coverage),U=H.alternateSets;for(var V=0;V<z.length;V++)X.push({sub:z[V],by:U[V]})}}return X};o0.prototype.getLigatures=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,4);for(var Q=0;Q<Z.length;Q++){var W=Z[Q].subtables;for(var w=0;w<W.length;w++){var H=W[w],z=this.expandCoverage(H.coverage),U=H.ligatureSets;for(var V=0;V<z.length;V++){var $=z[V],B=U[V];for(var M=0;M<B.length;M++){var G=B[M];X.push({sub:[$].concat(G.components),by:G.ligGlyph})}}}}return X};o0.prototype.addSingle=function(J,K,Y,X){var Z=this.getLookupTables(Y,X,J,1,!0)[0],Q=e6(Z,2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});z0.assert(Q.coverage.format===1,"Single: unable to modify coverage table format "+Q.coverage.format);var W=K.sub,w=this.binSearch(Q.coverage.glyphs,W);if(w<0)w=-1-w,Q.coverage.glyphs.splice(w,0,W),Q.substitute.splice(w,0,0);Q.substitute[w]=K.by};o0.prototype.addMultiple=function(J,K,Y,X){z0.assert(K.by instanceof Array&&K.by.length>1,'Multiple: "by" must be an array of two or more ids');var Z=this.getLookupTables(Y,X,J,2,!0)[0],Q=e6(Z,1,{substFormat:1,coverage:{format:1,glyphs:[]},sequences:[]});z0.assert(Q.coverage.format===1,"Multiple: unable to modify coverage table format "+Q.coverage.format);var W=K.sub,w=this.binSearch(Q.coverage.glyphs,W);if(w<0)w=-1-w,Q.coverage.glyphs.splice(w,0,W),Q.sequences.splice(w,0,0);Q.sequences[w]=K.by};o0.prototype.addAlternate=function(J,K,Y,X){var Z=this.getLookupTables(Y,X,J,3,!0)[0],Q=e6(Z,1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});z0.assert(Q.coverage.format===1,"Alternate: unable to modify coverage table format "+Q.coverage.format);var W=K.sub,w=this.binSearch(Q.coverage.glyphs,W);if(w<0)w=-1-w,Q.coverage.glyphs.splice(w,0,W),Q.alternateSets.splice(w,0,0);Q.alternateSets[w]=K.by};o0.prototype.addLigature=function(J,K,Y,X){var Z=this.getLookupTables(Y,X,J,4,!0)[0],Q=Z.subtables[0];if(!Q)Q={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},Z.subtables[0]=Q;z0.assert(Q.coverage.format===1,"Ligature: unable to modify coverage table format "+Q.coverage.format);var W=K.sub[0],w=K.sub.slice(1),H={ligGlyph:K.by,components:w},z=this.binSearch(Q.coverage.glyphs,W);if(z>=0){var U=Q.ligatureSets[z];for(var V=0;V<U.length;V++)if(RQ(U[V].components,w))return;U.push(H)}else z=-1-z,Q.coverage.glyphs.splice(z,0,W),Q.ligatureSets.splice(z,0,[H])};o0.prototype.getFeature=function(J,K,Y){if(/ss\d\d/.test(J))return this.getSingle(J,K,Y);switch(J){case"aalt":case"salt":return this.getSingle(J,K,Y).concat(this.getAlternates(J,K,Y));case"dlig":case"liga":case"rlig":return this.getLigatures(J,K,Y);case"ccmp":return this.getMultiple(J,K,Y).concat(this.getLigatures(J,K,Y));case"stch":return this.getMultiple(J,K,Y)}return};o0.prototype.add=function(J,K,Y,X){if(/ss\d\d/.test(J))return this.addSingle(J,K,Y,X);switch(J){case"aalt":case"salt":if(typeof K.by==="number")return this.addSingle(J,K,Y,X);return this.addAlternate(J,K,Y,X);case"dlig":case"liga":case"rlig":return this.addLigature(J,K,Y,X);case"ccmp":if(K.by instanceof Array)return this.addMultiple(J,K,Y,X);return this.addLigature(J,K,Y,X)}return};function R8(J,K){if(!J)throw K}function D7(J,K){return J.getUint8(K)}function A5(J,K){return J.getUint16(K,!1)}function DQ(J,K){return J.getInt16(K,!1)}function J4(J,K){return J.getUint32(K,!1)}function WJ(J,K){var Y=J.getInt16(K,!1),X=J.getUint16(K+2,!1);return Y+X/65535}function IQ(J,K){var Y="";for(var X=K;X<K+4;X+=1)Y+=String.fromCharCode(J.getInt8(X));return Y}function TQ(J,K,Y){var X=0;for(var Z=0;Z<Y;Z+=1)X<<=8,X+=J.getUint8(K+Z);return X}function CQ(J,K,Y){var X=[];for(var Z=K;Z<Y;Z+=1)X.push(J.getUint8(Z));return X}function PQ(J){var K="";for(var Y=0;Y<J.length;Y+=1)K+=String.fromCharCode(J[Y]);return K}var SQ={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function v(J,K){this.data=J,this.offset=K,this.relativeOffset=0}v.prototype.parseByte=function(){var J=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,J};v.prototype.parseChar=function(){var J=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,J};v.prototype.parseCard8=v.prototype.parseByte;v.prototype.parseUShort=function(){var J=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,J};v.prototype.parseCard16=v.prototype.parseUShort;v.prototype.parseSID=v.prototype.parseUShort;v.prototype.parseOffset16=v.prototype.parseUShort;v.prototype.parseShort=function(){var J=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,J};v.prototype.parseF2Dot14=function(){var J=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,J};v.prototype.parseULong=function(){var J=J4(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,J};v.prototype.parseOffset32=v.prototype.parseULong;v.prototype.parseFixed=function(){var J=WJ(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,J};v.prototype.parseString=function(J){var K=this.data,Y=this.offset+this.relativeOffset,X="";this.relativeOffset+=J;for(var Z=0;Z<J;Z++)X+=String.fromCharCode(K.getUint8(Y+Z));return X};v.prototype.parseTag=function(){return this.parseString(4)};v.prototype.parseLongDateTime=function(){var J=J4(this.data,this.offset+this.relativeOffset+4);return J-=2082844800,this.relativeOffset+=8,J};v.prototype.parseVersion=function(J){var K=A5(this.data,this.offset+this.relativeOffset),Y=A5(this.data,this.offset+this.relativeOffset+2);if(this.relativeOffset+=4,J===void 0)J=4096;return K+Y/J/10};v.prototype.skip=function(J,K){if(K===void 0)K=1;this.relativeOffset+=SQ[J]*K};v.prototype.parseULongList=function(J){if(J===void 0)J=this.parseULong();var K=Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getUint32(X),X+=4;return this.relativeOffset+=J*4,K};v.prototype.parseOffset16List=v.prototype.parseUShortList=function(J){if(J===void 0)J=this.parseUShort();var K=Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getUint16(X),X+=2;return this.relativeOffset+=J*2,K};v.prototype.parseShortList=function(J){var K=Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getInt16(X),X+=2;return this.relativeOffset+=J*2,K};v.prototype.parseByteList=function(J){var K=Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getUint8(X++);return this.relativeOffset+=J,K};v.prototype.parseList=function(J,K){if(!K)K=J,J=this.parseUShort();var Y=Array(J);for(var X=0;X<J;X++)Y[X]=K.call(this);return Y};v.prototype.parseList32=function(J,K){if(!K)K=J,J=this.parseULong();var Y=Array(J);for(var X=0;X<J;X++)Y[X]=K.call(this);return Y};v.prototype.parseRecordList=function(J,K){if(!K)K=J,J=this.parseUShort();var Y=Array(J),X=Object.keys(K);for(var Z=0;Z<J;Z++){var Q={};for(var W=0;W<X.length;W++){var w=X[W],H=K[w];Q[w]=H.call(this)}Y[Z]=Q}return Y};v.prototype.parseRecordList32=function(J,K){if(!K)K=J,J=this.parseULong();var Y=Array(J),X=Object.keys(K);for(var Z=0;Z<J;Z++){var Q={};for(var W=0;W<X.length;W++){var w=X[W],H=K[w];Q[w]=H.call(this)}Y[Z]=Q}return Y};v.prototype.parseStruct=function(J){if(typeof J==="function")return J.call(this);else{var K=Object.keys(J),Y={};for(var X=0;X<K.length;X++){var Z=K[X],Q=J[Z];Y[Z]=Q.call(this)}return Y}};v.prototype.parseValueRecord=function(J){if(J===void 0)J=this.parseUShort();if(J===0)return;var K={};if(J&1)K.xPlacement=this.parseShort();if(J&2)K.yPlacement=this.parseShort();if(J&4)K.xAdvance=this.parseShort();if(J&8)K.yAdvance=this.parseShort();if(J&16)K.xPlaDevice=void 0,this.parseShort();if(J&32)K.yPlaDevice=void 0,this.parseShort();if(J&64)K.xAdvDevice=void 0,this.parseShort();if(J&128)K.yAdvDevice=void 0,this.parseShort();return K};v.prototype.parseValueRecordList=function(){var J=this.parseUShort(),K=this.parseUShort(),Y=Array(K);for(var X=0;X<K;X++)Y[X]=this.parseValueRecord(J);return Y};v.prototype.parsePointer=function(J){var K=this.parseOffset16();if(K>0)return new v(this.data,this.offset+K).parseStruct(J);return};v.prototype.parsePointer32=function(J){var K=this.parseOffset32();if(K>0)return new v(this.data,this.offset+K).parseStruct(J);return};v.prototype.parseListOfLists=function(J){var K=this.parseOffset16List(),Y=K.length,X=this.relativeOffset,Z=Array(Y);for(var Q=0;Q<Y;Q++){var W=K[Q];if(W===0){Z[Q]=void 0;continue}if(this.relativeOffset=W,J){var w=this.parseOffset16List(),H=Array(w.length);for(var z=0;z<w.length;z++)this.relativeOffset=W+w[z],H[z]=J.call(this);Z[Q]=H}else Z[Q]=this.parseUShortList()}return this.relativeOffset=X,Z};v.prototype.parseCoverage=function(){var J=this.offset+this.relativeOffset,K=this.parseUShort(),Y=this.parseUShort();if(K===1)return{format:1,glyphs:this.parseUShortList(Y)};else if(K===2){var X=Array(Y);for(var Z=0;Z<Y;Z++)X[Z]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:X}}throw Error("0x"+J.toString(16)+": Coverage format must be 1 or 2.")};v.prototype.parseClassDef=function(){var J=this.offset+this.relativeOffset,K=this.parseUShort();if(K===1)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};else if(K===2)return{format:2,ranges:this.parseRecordList({start:v.uShort,end:v.uShort,classId:v.uShort})};throw Error("0x"+J.toString(16)+": ClassDef format must be 1 or 2.")};v.list=function(J,K){return function(){return this.parseList(J,K)}};v.list32=function(J,K){return function(){return this.parseList32(J,K)}};v.recordList=function(J,K){return function(){return this.parseRecordList(J,K)}};v.recordList32=function(J,K){return function(){return this.parseRecordList32(J,K)}};v.pointer=function(J){return function(){return this.parsePointer(J)}};v.pointer32=function(J){return function(){return this.parsePointer32(J)}};v.tag=v.prototype.parseTag;v.byte=v.prototype.parseByte;v.uShort=v.offset16=v.prototype.parseUShort;v.uShortList=v.prototype.parseUShortList;v.uLong=v.offset32=v.prototype.parseULong;v.uLongList=v.prototype.parseULongList;v.struct=v.prototype.parseStruct;v.coverage=v.prototype.parseCoverage;v.classDef=v.prototype.parseClassDef;var I7={reserved:v.uShort,reqFeatureIndex:v.uShort,featureIndexes:v.uShortList};v.prototype.parseScriptList=function(){return this.parsePointer(v.recordList({tag:v.tag,script:v.pointer({defaultLangSys:v.pointer(I7),langSysRecords:v.recordList({tag:v.tag,langSys:v.pointer(I7)})})}))||[]};v.prototype.parseFeatureList=function(){return this.parsePointer(v.recordList({tag:v.tag,feature:v.pointer({featureParams:v.offset16,lookupListIndexes:v.uShortList})}))||[]};v.prototype.parseLookupList=function(J){return this.parsePointer(v.list(v.pointer(function(){var K=this.parseUShort();z0.argument(1<=K&&K<=9,"GPOS/GSUB lookup type "+K+" unknown.");var Y=this.parseUShort(),X=Y&16;return{lookupType:K,lookupFlag:Y,subtables:this.parseList(v.pointer(J[K])),markFilteringSet:X?this.parseUShort():void 0}})))||[]};v.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var J=this.parseUShort(),K=this.parseUShort();z0.argument(J===1&&K<1,"GPOS/GSUB feature variations table unknown.");var Y=this.parseRecordList32({conditionSetOffset:v.offset32,featureTableSubstitutionOffset:v.offset32});return Y})||[]};var r={getByte:D7,getCard8:D7,getUShort:A5,getCard16:A5,getShort:DQ,getULong:J4,getFixed:WJ,getTag:IQ,getOffset:TQ,getBytes:CQ,bytesToString:PQ,Parser:v};function T7(J,K,Y,X,Z){var Q;if((K&X)>0){if(Q=J.parseByte(),(K&Z)===0)Q=-Q;Q=Y+Q}else if((K&Z)>0)Q=Y;else Q=Y+J.parseShort();return Q}function HJ(J,K,Y){var X=new r.Parser(K,Y);J.numberOfContours=X.parseShort(),J._xMin=X.parseShort(),J._yMin=X.parseShort(),J._xMax=X.parseShort(),J._yMax=X.parseShort();var Z,Q;if(J.numberOfContours>0){var W=J.endPointIndices=[];for(var w=0;w<J.numberOfContours;w+=1)W.push(X.parseUShort());J.instructionLength=X.parseUShort(),J.instructions=[];for(var H=0;H<J.instructionLength;H+=1)J.instructions.push(X.parseByte());var z=W[W.length-1]+1;Z=[];for(var U=0;U<z;U+=1)if(Q=X.parseByte(),Z.push(Q),(Q&8)>0){var V=X.parseByte();for(var $=0;$<V;$+=1)Z.push(Q),U+=1}if(z0.argument(Z.length===z,"Bad flags."),W.length>0){var B=[],M;if(z>0){for(var G=0;G<z;G+=1)Q=Z[G],M={},M.onCurve=!!(Q&1),M.lastPointOfContour=W.indexOf(G)>=0,B.push(M);var q=0;for(var O=0;O<z;O+=1)Q=Z[O],M=B[O],M.x=T7(X,Q,q,2,16),q=M.x;var j=0;for(var E=0;E<z;E+=1)Q=Z[E],M=B[E],M.y=T7(X,Q,j,4,32),j=M.y}J.points=B}else J.points=[]}else if(J.numberOfContours===0)J.points=[];else{J.isComposite=!0,J.points=[],J.components=[];var R=!0;while(R){Z=X.parseUShort();var _={glyphIndex:X.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};if((Z&1)>0)if((Z&2)>0)_.dx=X.parseShort(),_.dy=X.parseShort();else _.matchedPoints=[X.parseUShort(),X.parseUShort()];else if((Z&2)>0)_.dx=X.parseChar(),_.dy=X.parseChar();else _.matchedPoints=[X.parseByte(),X.parseByte()];if((Z&8)>0)_.xScale=_.yScale=X.parseF2Dot14();else if((Z&64)>0)_.xScale=X.parseF2Dot14(),_.yScale=X.parseF2Dot14();else if((Z&128)>0)_.xScale=X.parseF2Dot14(),_.scale01=X.parseF2Dot14(),_.scale10=X.parseF2Dot14(),_.yScale=X.parseF2Dot14();J.components.push(_),R=!!(Z&32)}if(Z&256){J.instructionLength=X.parseUShort(),J.instructions=[];for(var L=0;L<J.instructionLength;L+=1)J.instructions.push(X.parseByte())}}}function c6(J,K){var Y=[];for(var X=0;X<J.length;X+=1){var Z=J[X],Q={x:K.xScale*Z.x+K.scale01*Z.y+K.dx,y:K.scale10*Z.x+K.yScale*Z.y+K.dy,onCurve:Z.onCurve,lastPointOfContour:Z.lastPointOfContour};Y.push(Q)}return Y}function vQ(J){var K=[],Y=[];for(var X=0;X<J.length;X+=1){var Z=J[X];if(Y.push(Z),Z.lastPointOfContour)K.push(Y),Y=[]}return z0.argument(Y.length===0,"There are still points left in the current contour."),K}function wJ(J){var K=new b0;if(!J)return K;var Y=vQ(J);for(var X=0;X<Y.length;++X){var Z=Y[X],Q=null,W=Z[Z.length-1],w=Z[0];if(W.onCurve)K.moveTo(W.x,W.y);else if(w.onCurve)K.moveTo(w.x,w.y);else{var H={x:(W.x+w.x)*0.5,y:(W.y+w.y)*0.5};K.moveTo(H.x,H.y)}for(var z=0;z<Z.length;++z)if(Q=W,W=w,w=Z[(z+1)%Z.length],W.onCurve)K.lineTo(W.x,W.y);else{var U=Q,V=w;if(!Q.onCurve)U={x:(W.x+Q.x)*0.5,y:(W.y+Q.y)*0.5};if(!w.onCurve)V={x:(W.x+w.x)*0.5,y:(W.y+w.y)*0.5};K.quadraticCurveTo(W.x,W.y,V.x,V.y)}K.closePath()}return K}function zJ(J,K){if(K.isComposite)for(var Y=0;Y<K.components.length;Y+=1){var X=K.components[Y],Z=J.get(X.glyphIndex);if(Z.getPath(),Z.points){var Q=void 0;if(X.matchedPoints===void 0)Q=c6(Z.points,X);else{if(X.matchedPoints[0]>K.points.length-1||X.matchedPoints[1]>Z.points.length-1)throw Error("Matched points out of range in "+K.name);var W=K.points[X.matchedPoints[0]],w=Z.points[X.matchedPoints[1]],H={xScale:X.xScale,scale01:X.scale01,scale10:X.scale10,yScale:X.yScale,dx:0,dy:0};w=c6([w],H)[0],H.dx=W.x-w.x,H.dy=W.y-w.y,Q=c6(Z.points,H)}K.points=K.points.concat(Q)}}return wJ(K.points)}function yQ(J,K,Y,X){var Z=new F1.GlyphSet(X);for(var Q=0;Q<Y.length-1;Q+=1){var W=Y[Q],w=Y[Q+1];if(W!==w)Z.push(Q,F1.ttfGlyphLoader(X,Q,HJ,J,K+W,zJ));else Z.push(Q,F1.glyphLoader(X,Q))}return Z}function kQ(J,K,Y,X){var Z=new F1.GlyphSet(X);return X._push=function(Q){var W=Y[Q],w=Y[Q+1];if(W!==w)Z.push(Q,F1.ttfGlyphLoader(X,Q,HJ,J,K+W,zJ));else Z.push(Q,F1.glyphLoader(X,Q))},Z}function gQ(J,K,Y,X,Z){if(Z.lowMemory)return kQ(J,K,Y,X);else return yQ(J,K,Y,X)}var UJ={getPath:wJ,parse:gQ},VJ,e1,$J,s6;function BJ(J){this.font=J,this.getCommands=function(K){return UJ.getPath(K).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function xQ(J){return J}function AJ(J){return Math.sign(J)*Math.round(Math.abs(J))}function bQ(J){return Math.sign(J)*Math.round(Math.abs(J*2))/2}function hQ(J){return Math.sign(J)*(Math.round(Math.abs(J)+0.5)-0.5)}function mQ(J){return Math.sign(J)*Math.ceil(Math.abs(J))}function fQ(J){return Math.sign(J)*Math.floor(Math.abs(J))}var GJ=function(J){var K=this.srPeriod,Y=this.srPhase,X=this.srThreshold,Z=1;if(J<0)J=-J,Z=-1;if(J+=X-Y,J=Math.trunc(J/K)*K,J+=Y,J<0)return Y*Z;return J*Z},L1={x:1,y:0,axis:"x",distance:function(J,K,Y,X){return(Y?J.xo:J.x)-(X?K.xo:K.x)},interpolate:function(J,K,Y,X){var Z,Q,W,w,H,z,U;if(!X||X===this){if(Z=J.xo-K.xo,Q=J.xo-Y.xo,H=K.x-K.xo,z=Y.x-Y.xo,W=Math.abs(Z),w=Math.abs(Q),U=W+w,U===0){J.x=J.xo+(H+z)/2;return}J.x=J.xo+(H*w+z*W)/U;return}if(Z=X.distance(J,K,!0,!0),Q=X.distance(J,Y,!0,!0),H=X.distance(K,K,!1,!0),z=X.distance(Y,Y,!1,!0),W=Math.abs(Z),w=Math.abs(Q),U=W+w,U===0){L1.setRelative(J,J,(H+z)/2,X,!0);return}L1.setRelative(J,J,(H*w+z*W)/U,X,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(J,K,Y,X,Z){if(!X||X===this){J.x=(Z?K.xo:K.x)+Y;return}var Q=Z?K.xo:K.x,W=Z?K.yo:K.y,w=Q+Y*X.x,H=W+Y*X.y;J.x=w+(J.y-H)/X.normalSlope},slope:0,touch:function(J){J.xTouched=!0},touched:function(J){return J.xTouched},untouch:function(J){J.xTouched=!1}},D1={x:0,y:1,axis:"y",distance:function(J,K,Y,X){return(Y?J.yo:J.y)-(X?K.yo:K.y)},interpolate:function(J,K,Y,X){var Z,Q,W,w,H,z,U;if(!X||X===this){if(Z=J.yo-K.yo,Q=J.yo-Y.yo,H=K.y-K.yo,z=Y.y-Y.yo,W=Math.abs(Z),w=Math.abs(Q),U=W+w,U===0){J.y=J.yo+(H+z)/2;return}J.y=J.yo+(H*w+z*W)/U;return}if(Z=X.distance(J,K,!0,!0),Q=X.distance(J,Y,!0,!0),H=X.distance(K,K,!1,!0),z=X.distance(Y,Y,!1,!0),W=Math.abs(Z),w=Math.abs(Q),U=W+w,U===0){D1.setRelative(J,J,(H+z)/2,X,!0);return}D1.setRelative(J,J,(H*w+z*W)/U,X,!0)},normalSlope:0,setRelative:function(J,K,Y,X,Z){if(!X||X===this){J.y=(Z?K.yo:K.y)+Y;return}var Q=Z?K.xo:K.x,W=Z?K.yo:K.y,w=Q+Y*X.x,H=W+Y*X.y;J.y=H+X.normalSlope*(J.x-w)},slope:Number.POSITIVE_INFINITY,touch:function(J){J.yTouched=!0},touched:function(J){return J.yTouched},untouch:function(J){J.yTouched=!1}};Object.freeze(L1);Object.freeze(D1);function v8(J,K){this.x=J,this.y=K,this.axis=void 0,this.slope=K/J,this.normalSlope=-J/K,Object.freeze(this)}v8.prototype.distance=function(J,K,Y,X){return this.x*L1.distance(J,K,Y,X)+this.y*D1.distance(J,K,Y,X)};v8.prototype.interpolate=function(J,K,Y,X){var Z,Q,W,w,H,z,U;if(W=X.distance(J,K,!0,!0),w=X.distance(J,Y,!0,!0),Z=X.distance(K,K,!1,!0),Q=X.distance(Y,Y,!1,!0),H=Math.abs(W),z=Math.abs(w),U=H+z,U===0){this.setRelative(J,J,(Z+Q)/2,X,!0);return}this.setRelative(J,J,(Z*z+Q*H)/U,X,!0)};v8.prototype.setRelative=function(J,K,Y,X,Z){X=X||this;var Q=Z?K.xo:K.x,W=Z?K.yo:K.y,w=Q+Y*X.x,H=W+Y*X.y,z=X.normalSlope,U=this.slope,V=J.x,$=J.y;J.x=(U*V-z*w+H-$)/(U-z),J.y=U*(J.x-V)+$};v8.prototype.touch=function(J){J.xTouched=!0,J.yTouched=!0};function y8(J,K){var Y=Math.sqrt(J*J+K*K);if(J/=Y,K/=Y,J===1&&K===0)return L1;else if(J===0&&K===1)return D1;else return new v8(J,K)}function I1(J,K,Y,X){this.x=this.xo=Math.round(J*64)/64,this.y=this.yo=Math.round(K*64)/64,this.lastPointOfContour=Y,this.onCurve=X,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}I1.prototype.nextTouched=function(J){var K=this.nextPointOnContour;while(!J.touched(K)&&K!==this)K=K.nextPointOnContour;return K};I1.prototype.prevTouched=function(J){var K=this.prevPointOnContour;while(!J.touched(K)&&K!==this)K=K.prevPointOnContour;return K};var T8=Object.freeze(new I1(0,0)),dQ={cvCutIn:1.0625,deltaBase:9,deltaShift:0.125,loop:1,minDis:1,autoFlip:!0};function f1(J,K){switch(this.env=J,this.stack=[],this.prog=K,J){case"glyf":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case"prep":this.fv=this.pv=this.dpv=L1,this.round=AJ}}BJ.prototype.exec=function(J,K){if(typeof K!=="number")throw Error("Point size is not a number!");if(this._errorState>2)return;var Y=this.font,X=this._prepState;if(!X||X.ppem!==K){var Z=this._fpgmState;if(!Z){if(f1.prototype=dQ,Z=this._fpgmState=new f1("fpgm",Y.tables.fpgm),Z.funcs=[],Z.font=Y,b$.DEBUG)console.log("---EXEC FPGM---"),Z.step=-1;try{e1(Z)}catch(z){console.log("Hinting error in FPGM:"+z),this._errorState=3;return}}f1.prototype=Z,X=this._prepState=new f1("prep",Y.tables.prep),X.ppem=K;var Q=Y.tables.cvt;if(Q){var W=X.cvt=Array(Q.length),w=K/Y.unitsPerEm;for(var H=0;H<Q.length;H++)W[H]=Q[H]*w}else X.cvt=[];if(b$.DEBUG)console.log("---EXEC PREP---"),X.step=-1;try{e1(X)}catch(z){if(this._errorState<2)console.log("Hinting error in PREP:"+z);this._errorState=2}}if(this._errorState>1)return;try{return $J(J,X)}catch(z){if(this._errorState<1)console.log("Hinting error:"+z),console.log("Note: further hinting errors are silenced");this._errorState=1;return}};$J=function(J,K){var Y=K.ppem/K.font.unitsPerEm,X=Y,Z=J.components,Q,W,w;if(f1.prototype=K,!Z){if(w=new f1("glyf",J.instructions),b$.DEBUG)console.log("---EXEC GLYPH---"),w.step=-1;s6(J,w,Y,X),W=w.gZone}else{var H=K.font;W=[],Q=[];for(var z=0;z<Z.length;z++){var U=Z[z],V=H.glyphs.get(U.glyphIndex);if(w=new f1("glyf",V.instructions),b$.DEBUG)console.log("---EXEC COMP "+z+"---"),w.step=-1;s6(V,w,Y,X);var $=Math.round(U.dx*Y),B=Math.round(U.dy*X),M=w.gZone,G=w.contours;for(var q=0;q<M.length;q++){var O=M[q];O.xTouched=O.yTouched=!1,O.xo=O.x=O.x+$,O.yo=O.y=O.y+B}var j=W.length;W.push.apply(W,M);for(var E=0;E<G.length;E++)Q.push(G[E]+j)}if(J.instructions&&!w.inhibitGridFit){if(w=new f1("glyf",J.instructions),w.gZone=w.z0=w.z1=w.z2=W,w.contours=Q,W.push(new I1(0,0),new I1(Math.round(J.advanceWidth*Y),0)),b$.DEBUG)console.log("---EXEC COMPOSITE---"),w.step=-1;e1(w),W.length-=2}}return W};s6=function(J,K,Y,X){var Z=J.points||[],Q=Z.length,W=K.gZone=K.z0=K.z1=K.z2=[],w=K.contours=[],H;for(var z=0;z<Q;z++)H=Z[z],W[z]=new I1(H.x*Y,H.y*X,H.lastPointOfContour,H.onCurve);var U,V;for(var $=0;$<Q;$++){if(H=W[$],!U)U=H,w.push($);if(H.lastPointOfContour)H.nextPointOnContour=U,U.prevPointOnContour=H,U=void 0;else V=W[$+1],H.nextPointOnContour=V,V.prevPointOnContour=H}if(K.inhibitGridFit)return;if(b$.DEBUG){console.log("PROCESSING GLYPH",K.stack);for(var B=0;B<Q;B++)console.log(B,W[B].x,W[B].y)}if(W.push(new I1(0,0),new I1(Math.round(J.advanceWidth*Y),0)),e1(K),W.length-=2,b$.DEBUG){console.log("FINISHED GLYPH",K.stack);for(var M=0;M<Q;M++)console.log(M,W[M].x,W[M].y)}};e1=function(J){var K=J.prog;if(!K)return;var Y=K.length,X;for(J.ip=0;J.ip<Y;J.ip++){if(b$.DEBUG)J.step++;if(X=VJ[K[J.ip]],!X)throw Error("unknown instruction: 0x"+Number(K[J.ip]).toString(16));X(J)}};function G5(J){var K=J.tZone=Array(J.gZone.length);for(var Y=0;Y<K.length;Y++)K[Y]=new I1(0,0)}function qJ(J,K){var{prog:Y,ip:X}=J,Z=1,Q;do if(Q=Y[++X],Q===88)Z++;else if(Q===89)Z--;else if(Q===64)X+=Y[X+1]+1;else if(Q===65)X+=2*Y[X+1]+1;else if(Q>=176&&Q<=183)X+=Q-176+1;else if(Q>=184&&Q<=191)X+=(Q-184+1)*2;else if(K&&Z===1&&Q===27)break;while(Z>0);J.ip=X}function C7(J,K){if(b$.DEBUG)console.log(K.step,"SVTCA["+J.axis+"]");K.fv=K.pv=K.dpv=J}function P7(J,K){if(b$.DEBUG)console.log(K.step,"SPVTCA["+J.axis+"]");K.pv=K.dpv=J}function S7(J,K){if(b$.DEBUG)console.log(K.step,"SFVTCA["+J.axis+"]");K.fv=J}function v7(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z2[X],W=K.z1[Z];if(b$.DEBUG)console.log("SPVTL["+J+"]",X,Z);var w,H;if(!J)w=W.x-Q.x,H=W.y-Q.y;else w=Q.y-W.y,H=W.x-Q.x;K.pv=K.dpv=y8(w,H)}function y7(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z2[X],W=K.z1[Z];if(b$.DEBUG)console.log("SFVTL["+J+"]",X,Z);var w,H;if(!J)w=W.x-Q.x,H=W.y-Q.y;else w=Q.y-W.y,H=W.x-Q.x;K.fv=y8(w,H)}function lQ(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"SPVFS[]",Y,X);J.pv=J.dpv=y8(X,Y)}function cQ(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"SPVFS[]",Y,X);J.fv=y8(X,Y)}function uQ(J){var{stack:K,pv:Y}=J;if(b$.DEBUG)console.log(J.step,"GPV[]");K.push(Y.x*16384),K.push(Y.y*16384)}function pQ(J){var{stack:K,fv:Y}=J;if(b$.DEBUG)console.log(J.step,"GFV[]");K.push(Y.x*16384),K.push(Y.y*16384)}function iQ(J){if(J.fv=J.pv,b$.DEBUG)console.log(J.step,"SFVTPV[]")}function oQ(J){var K=J.stack,Y=K.pop(),X=K.pop(),Z=K.pop(),Q=K.pop(),W=K.pop(),w=J.z0,H=J.z1,z=w[Y],U=w[X],V=H[Z],$=H[Q],B=J.z2[W];if(b$.DEBUG)console.log("ISECT[], ",Y,X,Z,Q,W);var{x:M,y:G}=z,q=U.x,O=U.y,j=V.x,E=V.y,R=$.x,_=$.y,L=(M-q)*(E-_)-(G-O)*(j-R),T=M*O-G*q,D=j*_-E*R;B.x=(T*(j-R)-D*(M-q))/L,B.y=(T*(E-_)-D*(G-O))/L}function rQ(J){if(J.rp0=J.stack.pop(),b$.DEBUG)console.log(J.step,"SRP0[]",J.rp0)}function nQ(J){if(J.rp1=J.stack.pop(),b$.DEBUG)console.log(J.step,"SRP1[]",J.rp1)}function sQ(J){if(J.rp2=J.stack.pop(),b$.DEBUG)console.log(J.step,"SRP2[]",J.rp2)}function aQ(J){var K=J.stack.pop();if(b$.DEBUG)console.log(J.step,"SZP0[]",K);switch(J.zp0=K,K){case 0:if(!J.tZone)G5(J);J.z0=J.tZone;break;case 1:J.z0=J.gZone;break;default:throw Error("Invalid zone pointer")}}function tQ(J){var K=J.stack.pop();if(b$.DEBUG)console.log(J.step,"SZP1[]",K);switch(J.zp1=K,K){case 0:if(!J.tZone)G5(J);J.z1=J.tZone;break;case 1:J.z1=J.gZone;break;default:throw Error("Invalid zone pointer")}}function eQ(J){var K=J.stack.pop();if(b$.DEBUG)console.log(J.step,"SZP2[]",K);switch(J.zp2=K,K){case 0:if(!J.tZone)G5(J);J.z2=J.tZone;break;case 1:J.z2=J.gZone;break;default:throw Error("Invalid zone pointer")}}function J2(J){var K=J.stack.pop();if(b$.DEBUG)console.log(J.step,"SZPS[]",K);switch(J.zp0=J.zp1=J.zp2=K,K){case 0:if(!J.tZone)G5(J);J.z0=J.z1=J.z2=J.tZone;break;case 1:J.z0=J.z1=J.z2=J.gZone;break;default:throw Error("Invalid zone pointer")}}function K2(J){if(J.loop=J.stack.pop(),b$.DEBUG)console.log(J.step,"SLOOP[]",J.loop)}function Y2(J){if(b$.DEBUG)console.log(J.step,"RTG[]");J.round=AJ}function X2(J){if(b$.DEBUG)console.log(J.step,"RTHG[]");J.round=hQ}function Z2(J){var K=J.stack.pop();if(b$.DEBUG)console.log(J.step,"SMD[]",K);J.minDis=K/64}function Q2(J){if(b$.DEBUG)console.log(J.step,"ELSE[]");qJ(J,!1)}function W2(J){var K=J.stack.pop();if(b$.DEBUG)console.log(J.step,"JMPR[]",K);J.ip+=K-1}function H2(J){var K=J.stack.pop();if(b$.DEBUG)console.log(J.step,"SCVTCI[]",K);J.cvCutIn=K/64}function w2(J){var K=J.stack;if(b$.DEBUG)console.log(J.step,"DUP[]");K.push(K[K.length-1])}function u6(J){if(b$.DEBUG)console.log(J.step,"POP[]");J.stack.pop()}function z2(J){if(b$.DEBUG)console.log(J.step,"CLEAR[]");J.stack.length=0}function U2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"SWAP[]");K.push(Y),K.push(X)}function V2(J){var K=J.stack;if(b$.DEBUG)console.log(J.step,"DEPTH[]");K.push(K.length)}function $2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"LOOPCALL[]",Y,X);var{ip:Z,prog:Q}=J;J.prog=J.funcs[Y];for(var W=0;W<X;W++)if(e1(J),b$.DEBUG)console.log(++J.step,W+1<X?"next loopcall":"done loopcall",W);J.ip=Z,J.prog=Q}function B2(J){var K=J.stack.pop();if(b$.DEBUG)console.log(J.step,"CALL[]",K);var{ip:Y,prog:X}=J;if(J.prog=J.funcs[K],e1(J),J.ip=Y,J.prog=X,b$.DEBUG)console.log(++J.step,"returning from",K)}function A2(J){var K=J.stack,Y=K.pop();if(b$.DEBUG)console.log(J.step,"CINDEX[]",Y);K.push(K[K.length-Y])}function G2(J){var K=J.stack,Y=K.pop();if(b$.DEBUG)console.log(J.step,"MINDEX[]",Y);K.push(K.splice(K.length-Y,1)[0])}function q2(J){if(J.env!=="fpgm")throw Error("FDEF not allowed here");var{stack:K,prog:Y,ip:X}=J,Z=K.pop(),Q=X;if(b$.DEBUG)console.log(J.step,"FDEF[]",Z);while(Y[++X]!==45);J.ip=X,J.funcs[Z]=Y.slice(Q+1,X)}function k7(J,K){var Y=K.stack.pop(),X=K.z0[Y],Z=K.fv,Q=K.pv;if(b$.DEBUG)console.log(K.step,"MDAP["+J+"]",Y);var W=Q.distance(X,T8);if(J)W=K.round(W);Z.setRelative(X,T8,W,Q),Z.touch(X),K.rp0=K.rp1=Y}function g7(J,K){var Y=K.z2,X=Y.length-2,Z,Q,W;if(b$.DEBUG)console.log(K.step,"IUP["+J.axis+"]");for(var w=0;w<X;w++){if(Z=Y[w],J.touched(Z))continue;if(Q=Z.prevTouched(J),Q===Z)continue;if(W=Z.nextTouched(J),Q===W)J.setRelative(Z,Z,J.distance(Q,Q,!1,!0),J,!0);J.interpolate(Z,Q,W,J)}}function x7(J,K){var Y=K.stack,X=J?K.rp1:K.rp2,Z=(J?K.z0:K.z1)[X],Q=K.fv,W=K.pv,w=K.loop,H=K.z2;while(w--){var z=Y.pop(),U=H[z],V=W.distance(Z,Z,!1,!0);if(Q.setRelative(U,U,V,W),Q.touch(U),b$.DEBUG)console.log(K.step,(K.loop>1?"loop "+(K.loop-w)+": ":"")+"SHP["+(J?"rp1":"rp2")+"]",z)}K.loop=1}function b7(J,K){var Y=K.stack,X=J?K.rp1:K.rp2,Z=(J?K.z0:K.z1)[X],Q=K.fv,W=K.pv,w=Y.pop(),H=K.z2[K.contours[w]],z=H;if(b$.DEBUG)console.log(K.step,"SHC["+J+"]",w);var U=W.distance(Z,Z,!1,!0);do{if(z!==Z)Q.setRelative(z,z,U,W);z=z.nextPointOnContour}while(z!==H)}function h7(J,K){var Y=K.stack,X=J?K.rp1:K.rp2,Z=(J?K.z0:K.z1)[X],Q=K.fv,W=K.pv,w=Y.pop();if(b$.DEBUG)console.log(K.step,"SHZ["+J+"]",w);var H;switch(w){case 0:H=K.tZone;break;case 1:H=K.gZone;break;default:throw Error("Invalid zone")}var z,U=W.distance(Z,Z,!1,!0),V=H.length-2;for(var $=0;$<V;$++)z=H[$],Q.setRelative(z,z,U,W)}function M2(J){var{stack:K,loop:Y,fv:X}=J,Z=K.pop()/64,Q=J.z2;while(Y--){var W=K.pop(),w=Q[W];if(b$.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-Y)+": ":"")+"SHPIX[]",W,Z);X.setRelative(w,w,Z),X.touch(w)}J.loop=1}function N2(J){var{stack:K,rp1:Y,rp2:X,loop:Z}=J,Q=J.z0[Y],W=J.z1[X],w=J.fv,H=J.dpv,z=J.z2;while(Z--){var U=K.pop(),V=z[U];if(b$.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-Z)+": ":"")+"IP[]",U,Y,"<->",X);w.interpolate(V,Q,W,H),w.touch(V)}J.loop=1}function m7(J,K){var Y=K.stack,X=Y.pop()/64,Z=Y.pop(),Q=K.z1[Z],W=K.z0[K.rp0],w=K.fv,H=K.pv;if(w.setRelative(Q,W,X,H),w.touch(Q),b$.DEBUG)console.log(K.step,"MSIRP["+J+"]",X,Z);if(K.rp1=K.rp0,K.rp2=Z,J)K.rp0=Z}function O2(J){var{stack:K,rp0:Y}=J,X=J.z0[Y],Z=J.loop,Q=J.fv,W=J.pv,w=J.z1;while(Z--){var H=K.pop(),z=w[H];if(b$.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-Z)+": ":"")+"ALIGNRP[]",H);Q.setRelative(z,X,0,W),Q.touch(z)}J.loop=1}function j2(J){if(b$.DEBUG)console.log(J.step,"RTDG[]");J.round=bQ}function f7(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z0[Z],W=K.fv,w=K.pv,H=K.cvt[X];if(b$.DEBUG)console.log(K.step,"MIAP["+J+"]",X,"(",H,")",Z);var z=w.distance(Q,T8);if(J){if(Math.abs(z-H)<K.cvCutIn)z=H;z=K.round(z)}if(W.setRelative(Q,T8,z,w),K.zp0===0)Q.xo=Q.x,Q.yo=Q.y;W.touch(Q),K.rp0=K.rp1=Z}function L2(J){var{prog:K,ip:Y,stack:X}=J,Z=K[++Y];if(b$.DEBUG)console.log(J.step,"NPUSHB[]",Z);for(var Q=0;Q<Z;Q++)X.push(K[++Y]);J.ip=Y}function F2(J){var{ip:K,prog:Y,stack:X}=J,Z=Y[++K];if(b$.DEBUG)console.log(J.step,"NPUSHW[]",Z);for(var Q=0;Q<Z;Q++){var W=Y[++K]<<8|Y[++K];if(W&32768)W=-((W^65535)+1);X.push(W)}J.ip=K}function E2(J){var{stack:K,store:Y}=J;if(!Y)Y=J.store=[];var X=K.pop(),Z=K.pop();if(b$.DEBUG)console.log(J.step,"WS",X,Z);Y[Z]=X}function _2(J){var{stack:K,store:Y}=J,X=K.pop();if(b$.DEBUG)console.log(J.step,"RS",X);var Z=Y&&Y[X]||0;K.push(Z)}function R2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"WCVTP",Y,X);J.cvt[X]=Y/64}function D2(J){var K=J.stack,Y=K.pop();if(b$.DEBUG)console.log(J.step,"RCVT",Y);K.push(J.cvt[Y]*64)}function d7(J,K){var Y=K.stack,X=Y.pop(),Z=K.z2[X];if(b$.DEBUG)console.log(K.step,"GC["+J+"]",X);Y.push(K.dpv.distance(Z,T8,J,!1)*64)}function l7(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z1[X],W=K.z0[Z],w=K.dpv.distance(W,Q,J,J);if(b$.DEBUG)console.log(K.step,"MD["+J+"]",X,Z,"->",w);K.stack.push(Math.round(w*64))}function I2(J){if(b$.DEBUG)console.log(J.step,"MPPEM[]");J.stack.push(J.ppem)}function T2(J){if(b$.DEBUG)console.log(J.step,"FLIPON[]");J.autoFlip=!0}function C2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"LT[]",Y,X);K.push(X<Y?1:0)}function P2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"LTEQ[]",Y,X);K.push(X<=Y?1:0)}function S2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"GT[]",Y,X);K.push(X>Y?1:0)}function v2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"GTEQ[]",Y,X);K.push(X>=Y?1:0)}function y2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"EQ[]",Y,X);K.push(Y===X?1:0)}function k2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"NEQ[]",Y,X);K.push(Y!==X?1:0)}function g2(J){var K=J.stack,Y=K.pop();if(b$.DEBUG)console.log(J.step,"ODD[]",Y);K.push(Math.trunc(Y)%2?1:0)}function x2(J){var K=J.stack,Y=K.pop();if(b$.DEBUG)console.log(J.step,"EVEN[]",Y);K.push(Math.trunc(Y)%2?0:1)}function b2(J){var K=J.stack.pop();if(b$.DEBUG)console.log(J.step,"IF[]",K);if(!K){if(qJ(J,!0),b$.DEBUG)console.log(J.step,"EIF[]")}}function h2(J){if(b$.DEBUG)console.log(J.step,"EIF[]")}function m2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"AND[]",Y,X);K.push(Y&&X?1:0)}function f2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"OR[]",Y,X);K.push(Y||X?1:0)}function d2(J){var K=J.stack,Y=K.pop();if(b$.DEBUG)console.log(J.step,"NOT[]",Y);K.push(Y?0:1)}function p6(J,K){var Y=K.stack,X=Y.pop(),Z=K.fv,Q=K.pv,W=K.ppem,w=K.deltaBase+(J-1)*16,H=K.deltaShift,z=K.z0;if(b$.DEBUG)console.log(K.step,"DELTAP["+J+"]",X,Y);for(var U=0;U<X;U++){var V=Y.pop(),$=Y.pop(),B=w+(($&240)>>4);if(B!==W)continue;var M=($&15)-8;if(M>=0)M++;if(b$.DEBUG)console.log(K.step,"DELTAPFIX",V,"by",M*H);var G=z[V];Z.setRelative(G,G,M*H,Q)}}function l2(J){var K=J.stack,Y=K.pop();if(b$.DEBUG)console.log(J.step,"SDB[]",Y);J.deltaBase=Y}function c2(J){var K=J.stack,Y=K.pop();if(b$.DEBUG)console.log(J.step,"SDS[]",Y);J.deltaShift=Math.pow(0.5,Y)}function u2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"ADD[]",Y,X);K.push(X+Y)}function p2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"SUB[]",Y,X);K.push(X-Y)}function i2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"DIV[]",Y,X);K.push(X*64/Y)}function o2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"MUL[]",Y,X);K.push(X*Y/64)}function r2(J){var K=J.stack,Y=K.pop();if(b$.DEBUG)console.log(J.step,"ABS[]",Y);K.push(Math.abs(Y))}function n2(J){var K=J.stack,Y=K.pop();if(b$.DEBUG)console.log(J.step,"NEG[]",Y);K.push(-Y)}function s2(J){var K=J.stack,Y=K.pop();if(b$.DEBUG)console.log(J.step,"FLOOR[]",Y);K.push(Math.floor(Y/64)*64)}function a2(J){var K=J.stack,Y=K.pop();if(b$.DEBUG)console.log(J.step,"CEILING[]",Y);K.push(Math.ceil(Y/64)*64)}function V5(J,K){var Y=K.stack,X=Y.pop();if(b$.DEBUG)console.log(K.step,"ROUND[]");Y.push(K.round(X/64)*64)}function t2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"WCVTF[]",Y,X);J.cvt[X]=Y*J.ppem/J.font.unitsPerEm}function i6(J,K){var Y=K.stack,X=Y.pop(),Z=K.ppem,Q=K.deltaBase+(J-1)*16,W=K.deltaShift;if(b$.DEBUG)console.log(K.step,"DELTAC["+J+"]",X,Y);for(var w=0;w<X;w++){var H=Y.pop(),z=Y.pop(),U=Q+((z&240)>>4);if(U!==Z)continue;var V=(z&15)-8;if(V>=0)V++;var $=V*W;if(b$.DEBUG)console.log(K.step,"DELTACFIX",H,"by",$);K.cvt[H]+=$}}function e2(J){var K=J.stack.pop();if(b$.DEBUG)console.log(J.step,"SROUND[]",K);J.round=GJ;var Y;switch(K&192){case 0:Y=0.5;break;case 64:Y=1;break;case 128:Y=2;break;default:throw Error("invalid SROUND value")}switch(J.srPeriod=Y,K&48){case 0:J.srPhase=0;break;case 16:J.srPhase=0.25*Y;break;case 32:J.srPhase=0.5*Y;break;case 48:J.srPhase=0.75*Y;break;default:throw Error("invalid SROUND value")}if(K&=15,K===0)J.srThreshold=0;else J.srThreshold=(K/8-0.5)*Y}function JW(J){var K=J.stack.pop();if(b$.DEBUG)console.log(J.step,"S45ROUND[]",K);J.round=GJ;var Y;switch(K&192){case 0:Y=Math.sqrt(2)/2;break;case 64:Y=Math.sqrt(2);break;case 128:Y=2*Math.sqrt(2);break;default:throw Error("invalid S45ROUND value")}switch(J.srPeriod=Y,K&48){case 0:J.srPhase=0;break;case 16:J.srPhase=0.25*Y;break;case 32:J.srPhase=0.5*Y;break;case 48:J.srPhase=0.75*Y;break;default:throw Error("invalid S45ROUND value")}if(K&=15,K===0)J.srThreshold=0;else J.srThreshold=(K/8-0.5)*Y}function KW(J){if(b$.DEBUG)console.log(J.step,"ROFF[]");J.round=xQ}function YW(J){if(b$.DEBUG)console.log(J.step,"RUTG[]");J.round=mQ}function XW(J){if(b$.DEBUG)console.log(J.step,"RDTG[]");J.round=fQ}function ZW(J){var K=J.stack.pop();if(b$.DEBUG)console.log(J.step,"SCANCTRL[]",K)}function c7(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z2[X],W=K.z1[Z];if(b$.DEBUG)console.log(K.step,"SDPVTL["+J+"]",X,Z);var w,H;if(!J)w=W.x-Q.x,H=W.y-Q.y;else w=Q.y-W.y,H=W.x-Q.x;K.dpv=y8(w,H)}function QW(J){var K=J.stack,Y=K.pop(),X=0;if(b$.DEBUG)console.log(J.step,"GETINFO[]",Y);if(Y&1)X=35;if(Y&32)X|=4096;K.push(X)}function WW(J){var K=J.stack,Y=K.pop(),X=K.pop(),Z=K.pop();if(b$.DEBUG)console.log(J.step,"ROLL[]");K.push(X),K.push(Y),K.push(Z)}function HW(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"MAX[]",Y,X);K.push(Math.max(X,Y))}function wW(J){var K=J.stack,Y=K.pop(),X=K.pop();if(b$.DEBUG)console.log(J.step,"MIN[]",Y,X);K.push(Math.min(X,Y))}function zW(J){var K=J.stack.pop();if(b$.DEBUG)console.log(J.step,"SCANTYPE[]",K)}function UW(J){var K=J.stack.pop(),Y=J.stack.pop();if(b$.DEBUG)console.log(J.step,"INSTCTRL[]",K,Y);switch(K){case 1:J.inhibitGridFit=!!Y;return;case 2:J.ignoreCvt=!!Y;return;default:throw Error("invalid INSTCTRL[] selector")}}function x1(J,K){var{stack:Y,prog:X,ip:Z}=K;if(b$.DEBUG)console.log(K.step,"PUSHB["+J+"]");for(var Q=0;Q<J;Q++)Y.push(X[++Z]);K.ip=Z}function b1(J,K){var{ip:Y,prog:X,stack:Z}=K;if(b$.DEBUG)console.log(K.ip,"PUSHW["+J+"]");for(var Q=0;Q<J;Q++){var W=X[++Y]<<8|X[++Y];if(W&32768)W=-((W^65535)+1);Z.push(W)}K.ip=Y}function o(J,K,Y,X,Z,Q){var W=Q.stack,w=J&&W.pop(),H=W.pop(),z=Q.rp0,U=Q.z0[z],V=Q.z1[H],$=Q.minDis,B=Q.fv,M=Q.dpv,G,q,O,j;if(q=G=M.distance(V,U,!0,!0),O=q>=0?1:-1,q=Math.abs(q),J){if(j=Q.cvt[w],X&&Math.abs(q-j)<Q.cvCutIn)q=j}if(Y&&q<$)q=$;if(X)q=Q.round(q);if(B.setRelative(V,U,O*q,M),B.touch(V),b$.DEBUG)console.log(Q.step,(J?"MIRP[":"MDRP[")+(K?"M":"m")+(Y?">":"_")+(X?"R":"_")+(Z===0?"Gr":Z===1?"Bl":Z===2?"Wh":"")+"]",J?w+"("+Q.cvt[w]+","+j+")":"",H,"(d =",G,"->",O*q,")");if(Q.rp1=Q.rp0,Q.rp2=H,K)Q.rp0=H}VJ=[C7.bind(void 0,D1),C7.bind(void 0,L1),P7.bind(void 0,D1),P7.bind(void 0,L1),S7.bind(void 0,D1),S7.bind(void 0,L1),v7.bind(void 0,0),v7.bind(void 0,1),y7.bind(void 0,0),y7.bind(void 0,1),lQ,cQ,uQ,pQ,iQ,oQ,rQ,nQ,sQ,aQ,tQ,eQ,J2,K2,Y2,X2,Z2,Q2,W2,H2,void 0,void 0,w2,u6,z2,U2,V2,A2,G2,void 0,void 0,void 0,$2,B2,q2,void 0,k7.bind(void 0,0),k7.bind(void 0,1),g7.bind(void 0,D1),g7.bind(void 0,L1),x7.bind(void 0,0),x7.bind(void 0,1),b7.bind(void 0,0),b7.bind(void 0,1),h7.bind(void 0,0),h7.bind(void 0,1),M2,N2,m7.bind(void 0,0),m7.bind(void 0,1),O2,j2,f7.bind(void 0,0),f7.bind(void 0,1),L2,F2,E2,_2,R2,D2,d7.bind(void 0,0),d7.bind(void 0,1),void 0,l7.bind(void 0,0),l7.bind(void 0,1),I2,void 0,T2,void 0,void 0,C2,P2,S2,v2,y2,k2,g2,x2,b2,h2,m2,f2,d2,p6.bind(void 0,1),l2,c2,u2,p2,i2,o2,r2,n2,s2,a2,V5.bind(void 0,0),V5.bind(void 0,1),V5.bind(void 0,2),V5.bind(void 0,3),void 0,void 0,void 0,void 0,t2,p6.bind(void 0,2),p6.bind(void 0,3),i6.bind(void 0,1),i6.bind(void 0,2),i6.bind(void 0,3),e2,JW,void 0,void 0,KW,void 0,YW,XW,u6,u6,void 0,void 0,void 0,void 0,void 0,ZW,c7.bind(void 0,0),c7.bind(void 0,1),QW,void 0,WW,HW,wW,zW,UW,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,x1.bind(void 0,1),x1.bind(void 0,2),x1.bind(void 0,3),x1.bind(void 0,4),x1.bind(void 0,5),x1.bind(void 0,6),x1.bind(void 0,7),x1.bind(void 0,8),b1.bind(void 0,1),b1.bind(void 0,2),b1.bind(void 0,3),b1.bind(void 0,4),b1.bind(void 0,5),b1.bind(void 0,6),b1.bind(void 0,7),b1.bind(void 0,8),o.bind(void 0,0,0,0,0,0),o.bind(void 0,0,0,0,0,1),o.bind(void 0,0,0,0,0,2),o.bind(void 0,0,0,0,0,3),o.bind(void 0,0,0,0,1,0),o.bind(void 0,0,0,0,1,1),o.bind(void 0,0,0,0,1,2),o.bind(void 0,0,0,0,1,3),o.bind(void 0,0,0,1,0,0),o.bind(void 0,0,0,1,0,1),o.bind(void 0,0,0,1,0,2),o.bind(void 0,0,0,1,0,3),o.bind(void 0,0,0,1,1,0),o.bind(void 0,0,0,1,1,1),o.bind(void 0,0,0,1,1,2),o.bind(void 0,0,0,1,1,3),o.bind(void 0,0,1,0,0,0),o.bind(void 0,0,1,0,0,1),o.bind(void 0,0,1,0,0,2),o.bind(void 0,0,1,0,0,3),o.bind(void 0,0,1,0,1,0),o.bind(void 0,0,1,0,1,1),o.bind(void 0,0,1,0,1,2),o.bind(void 0,0,1,0,1,3),o.bind(void 0,0,1,1,0,0),o.bind(void 0,0,1,1,0,1),o.bind(void 0,0,1,1,0,2),o.bind(void 0,0,1,1,0,3),o.bind(void 0,0,1,1,1,0),o.bind(void 0,0,1,1,1,1),o.bind(void 0,0,1,1,1,2),o.bind(void 0,0,1,1,1,3),o.bind(void 0,1,0,0,0,0),o.bind(void 0,1,0,0,0,1),o.bind(void 0,1,0,0,0,2),o.bind(void 0,1,0,0,0,3),o.bind(void 0,1,0,0,1,0),o.bind(void 0,1,0,0,1,1),o.bind(void 0,1,0,0,1,2),o.bind(void 0,1,0,0,1,3),o.bind(void 0,1,0,1,0,0),o.bind(void 0,1,0,1,0,1),o.bind(void 0,1,0,1,0,2),o.bind(void 0,1,0,1,0,3),o.bind(void 0,1,0,1,1,0),o.bind(void 0,1,0,1,1,1),o.bind(void 0,1,0,1,1,2),o.bind(void 0,1,0,1,1,3),o.bind(void 0,1,1,0,0,0),o.bind(void 0,1,1,0,0,1),o.bind(void 0,1,1,0,0,2),o.bind(void 0,1,1,0,0,3),o.bind(void 0,1,1,0,1,0),o.bind(void 0,1,1,0,1,1),o.bind(void 0,1,1,0,1,2),o.bind(void 0,1,1,0,1,3),o.bind(void 0,1,1,1,0,0),o.bind(void 0,1,1,1,0,1),o.bind(void 0,1,1,1,0,2),o.bind(void 0,1,1,1,0,3),o.bind(void 0,1,1,1,1,0),o.bind(void 0,1,1,1,1,1),o.bind(void 0,1,1,1,1,2),o.bind(void 0,1,1,1,1,3)];function G8(J){this.char=J,this.state={},this.activeState=null}function K4(J,K,Y){this.contextName=Y,this.startIndex=J,this.endOffset=K}function VW(J,K,Y){this.contextName=J,this.openRange=null,this.ranges=[],this.checkStart=K,this.checkEnd=Y}function w1(J,K){this.context=J,this.index=K,this.length=J.length,this.current=J[K],this.backtrack=J.slice(0,K),this.lookahead=J.slice(K+1)}function q5(J){this.eventId=J,this.subscribers=[]}function $W(J){var K=this,Y=["start","end","next","newToken","contextStart","contextEnd","insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD","updateContextsRanges"];if(Y.forEach(function(Z){Object.defineProperty(K.events,Z,{value:new q5(Z)})}),J)Y.forEach(function(Z){var Q=J[Z];if(typeof Q==="function")K.events[Z].subscribe(Q)});var X=["insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD"];X.forEach(function(Z){K.events[Z].subscribe(K.updateContextsRanges)})}function L0(J){this.tokens=[],this.registeredContexts={},this.contextCheckers=[],this.events={},this.registeredModifiers=[],$W.call(this,J)}G8.prototype.setState=function(J,K){return this.state[J]=K,this.activeState={key:J,value:this.state[J]},this.activeState};G8.prototype.getState=function(J){return this.state[J]||null};L0.prototype.inboundIndex=function(J){return J>=0&&J<this.tokens.length};L0.prototype.composeRUD=function(J){var K=this,Y=!0,X=J.map(function(Q){return K[Q[0]].apply(K,Q.slice(1).concat(Y))}),Z=function(Q){return typeof Q==="object"&&Q.hasOwnProperty("FAIL")};if(X.every(Z))return{FAIL:"composeRUD: one or more operations hasn't completed successfully",report:X.filter(Z)};this.dispatch("composeRUD",[X.filter(function(Q){return!Z(Q)})])};L0.prototype.replaceRange=function(J,K,Y,X){K=K!==null?K:this.tokens.length;var Z=Y.every(function(W){return W instanceof G8});if(!isNaN(J)&&this.inboundIndex(J)&&Z){var Q=this.tokens.splice.apply(this.tokens,[J,K].concat(Y));if(!X)this.dispatch("replaceToken",[J,K,Y]);return[Q,Y]}else return{FAIL:"replaceRange: invalid tokens or startIndex."}};L0.prototype.replaceToken=function(J,K,Y){if(!isNaN(J)&&this.inboundIndex(J)&&K instanceof G8){var X=this.tokens.splice(J,1,K);if(!Y)this.dispatch("replaceToken",[J,K]);return[X[0],K]}else return{FAIL:"replaceToken: invalid token or index."}};L0.prototype.removeRange=function(J,K,Y){K=!isNaN(K)?K:this.tokens.length;var X=this.tokens.splice(J,K);if(!Y)this.dispatch("removeRange",[X,J,K]);return X};L0.prototype.removeToken=function(J,K){if(!isNaN(J)&&this.inboundIndex(J)){var Y=this.tokens.splice(J,1);if(!K)this.dispatch("removeToken",[Y,J]);return Y}else return{FAIL:"removeToken: invalid token index."}};L0.prototype.insertToken=function(J,K,Y){var X=J.every(function(Z){return Z instanceof G8});if(X){if(this.tokens.splice.apply(this.tokens,[K,0].concat(J)),!Y)this.dispatch("insertToken",[J,K]);return J}else return{FAIL:"insertToken: invalid token(s)."}};L0.prototype.registerModifier=function(J,K,Y){this.events.newToken.subscribe(function(X,Z){var Q=[X,Z],W=K===null||K.apply(this,Q)===!0,w=[X,Z];if(W){var H=Y.apply(this,w);X.setState(J,H)}}),this.registeredModifiers.push(J)};q5.prototype.subscribe=function(J){if(typeof J==="function")return this.subscribers.push(J)-1;else return{FAIL:"invalid '"+this.eventId+"' event handler"}};q5.prototype.unsubscribe=function(J){this.subscribers.splice(J,1)};w1.prototype.setCurrentIndex=function(J){this.index=J,this.current=this.context[J],this.backtrack=this.context.slice(0,J),this.lookahead=this.context.slice(J+1)};w1.prototype.get=function(J){switch(!0){case J===0:return this.current;case(J<0&&Math.abs(J)<=this.backtrack.length):return this.backtrack.slice(J)[0];case(J>0&&J<=this.lookahead.length):return this.lookahead[J-1];default:return null}};L0.prototype.rangeToText=function(J){if(J instanceof K4)return this.getRangeTokens(J).map(function(K){return K.char}).join("")};L0.prototype.getText=function(){return this.tokens.map(function(J){return J.char}).join("")};L0.prototype.getContext=function(J){var K=this.registeredContexts[J];return K?K:null};L0.prototype.on=function(J,K){var Y=this.events[J];if(Y)return Y.subscribe(K);else return null};L0.prototype.dispatch=function(J,K){var Y=this,X=this.events[J];if(X instanceof q5)X.subscribers.forEach(function(Z){Z.apply(Y,K||[])})};L0.prototype.registerContextChecker=function(J,K,Y){if(this.getContext(J))return{FAIL:"context name '"+J+"' is already registered."};if(typeof K!=="function")return{FAIL:"missing context start check."};if(typeof Y!=="function")return{FAIL:"missing context end check."};var X=new VW(J,K,Y);return this.registeredContexts[J]=X,this.contextCheckers.push(X),X};L0.prototype.getRangeTokens=function(J){var K=J.startIndex+J.endOffset;return[].concat(this.tokens.slice(J.startIndex,K))};L0.prototype.getContextRanges=function(J){var K=this.getContext(J);if(K)return K.ranges;else return{FAIL:"context checker '"+J+"' is not registered."}};L0.prototype.resetContextsRanges=function(){var J=this.registeredContexts;for(var K in J)if(J.hasOwnProperty(K)){var Y=J[K];Y.ranges=[]}};L0.prototype.updateContextsRanges=function(){this.resetContextsRanges();var J=this.tokens.map(function(X){return X.char});for(var K=0;K<J.length;K++){var Y=new w1(J,K);this.runContextCheck(Y)}this.dispatch("updateContextsRanges",[this.registeredContexts])};L0.prototype.setEndOffset=function(J,K){var Y=this.getContext(K).openRange.startIndex,X=new K4(Y,J,K),Z=this.getContext(K).ranges;return X.rangeId=K+"."+Z.length,Z.push(X),this.getContext(K).openRange=null,X};L0.prototype.runContextCheck=function(J){var K=this,Y=J.index;this.contextCheckers.forEach(function(X){var Z=X.contextName,Q=K.getContext(Z).openRange;if(!Q&&X.checkStart(J))Q=new K4(Y,null,Z),K.getContext(Z).openRange=Q,K.dispatch("contextStart",[Z,Y]);if(!!Q&&X.checkEnd(J)){var W=Y-Q.startIndex+1,w=K.setEndOffset(W,Z);K.dispatch("contextEnd",[Z,w])}})};L0.prototype.tokenize=function(J){this.tokens=[],this.resetContextsRanges();var K=Array.from(J);this.dispatch("start");for(var Y=0;Y<K.length;Y++){var X=K[Y],Z=new w1(K,Y);this.dispatch("next",[Z]),this.runContextCheck(Z);var Q=new G8(X);this.tokens.push(Q),this.dispatch("newToken",[Q,Z])}return this.dispatch("end",[this.tokens]),this.tokens};function d1(J){return/[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(J)}function MJ(J){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(J)}function l1(J){return/[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(J)}function $5(J){return/[A-z]/.test(J)}function BW(J){return/\s/.test(J)}function r0(J){this.font=J,this.features={}}function a1(J){this.id=J.id,this.tag=J.tag,this.substitution=J.substitution}function k8(J,K){if(!J)return-1;switch(K.format){case 1:return K.glyphs.indexOf(J);case 2:var Y=K.ranges;for(var X=0;X<Y.length;X++){var Z=Y[X];if(J>=Z.start&&J<=Z.end){var Q=J-Z.start;return Z.index+Q}}break;default:return-1}return-1}function AW(J,K){var Y=k8(J,K.coverage);if(Y===-1)return null;return J+K.deltaGlyphId}function GW(J,K){var Y=k8(J,K.coverage);if(Y===-1)return null;return K.substitute[Y]}function o6(J,K){var Y=[];for(var X=0;X<J.length;X++){var Z=J[X],Q=K.current;Q=Array.isArray(Q)?Q[0]:Q;var W=k8(Q,Z);if(W!==-1)Y.push(W)}if(Y.length!==J.length)return-1;return Y}function qW(J,K){var Y=K.inputCoverage.length+K.lookaheadCoverage.length+K.backtrackCoverage.length;if(J.context.length<Y)return[];var X=o6(K.inputCoverage,J);if(X===-1)return[];var Z=K.inputCoverage.length-1;if(J.lookahead.length<K.lookaheadCoverage.length)return[];var Q=J.lookahead.slice(Z);while(Q.length&&l1(Q[0].char))Q.shift();var W=new w1(Q,0),w=o6(K.lookaheadCoverage,W),H=[].concat(J.backtrack);H.reverse();while(H.length&&l1(H[0].char))H.shift();if(H.length<K.backtrackCoverage.length)return[];var z=new w1(H,0),U=o6(K.backtrackCoverage,z),V=X.length===K.inputCoverage.length&&w.length===K.lookaheadCoverage.length&&U.length===K.backtrackCoverage.length,$=[];if(V)for(var B=0;B<K.lookupRecords.length;B++){var M=K.lookupRecords[B],G=M.lookupListIndex,q=this.getLookupByIndex(G);for(var O=0;O<q.subtables.length;O++){var j=q.subtables[O],E=this.getLookupMethod(q,j),R=this.getSubstitutionType(q,j);if(R==="12")for(var _=0;_<X.length;_++){var L=J.get(_),T=E(L);if(T)$.push(T)}}}return $}function MW(J,K){var Y=J.current,X=k8(Y,K.coverage);if(X===-1)return null;var Z,Q=K.ligatureSets[X];for(var W=0;W<Q.length;W++){Z=Q[W];for(var w=0;w<Z.components.length;w++){var H=J.lookahead[w],z=Z.components[w];if(H!==z)break;if(w===Z.components.length-1)return Z}}return null}function NW(J,K){var Y=k8(J,K.coverage);if(Y===-1)return null;return K.sequences[Y]}r0.prototype.getDefaultScriptFeaturesIndexes=function(){var J=this.font.tables.gsub.scripts;for(var K=0;K<J.length;K++){var Y=J[K];if(Y.tag==="DFLT")return Y.script.defaultLangSys.featureIndexes}return[]};r0.prototype.getScriptFeaturesIndexes=function(J){var K=this.font.tables;if(!K.gsub)return[];if(!J)return this.getDefaultScriptFeaturesIndexes();var Y=this.font.tables.gsub.scripts;for(var X=0;X<Y.length;X++){var Z=Y[X];if(Z.tag===J&&Z.script.defaultLangSys)return Z.script.defaultLangSys.featureIndexes;else{var Q=Z.langSysRecords;if(Q)for(var W=0;W<Q.length;W++){var w=Q[W];if(w.tag===J){var H=w.langSys;return H.featureIndexes}}}}return this.getDefaultScriptFeaturesIndexes()};r0.prototype.mapTagsToFeatures=function(J,K){var Y={};for(var X=0;X<J.length;X++){var Z=J[X].tag,Q=J[X].feature;Y[Z]=Q}this.features[K].tags=Y};r0.prototype.getScriptFeatures=function(J){var K=this.features[J];if(this.features.hasOwnProperty(J))return K;var Y=this.getScriptFeaturesIndexes(J);if(!Y)return null;var X=this.font.tables.gsub;return K=Y.map(function(Z){return X.features[Z]}),this.features[J]=K,this.mapTagsToFeatures(K,J),K};r0.prototype.getSubstitutionType=function(J,K){var Y=J.lookupType.toString(),X=K.substFormat.toString();return Y+X};r0.prototype.getLookupMethod=function(J,K){var Y=this,X=this.getSubstitutionType(J,K);switch(X){case"11":return function(Z){return AW.apply(Y,[Z,K])};case"12":return function(Z){return GW.apply(Y,[Z,K])};case"63":return function(Z){return qW.apply(Y,[Z,K])};case"41":return function(Z){return MW.apply(Y,[Z,K])};case"21":return function(Z){return NW.apply(Y,[Z,K])};default:throw Error("lookupType: "+J.lookupType+" - substFormat: "+K.substFormat+" is not yet supported")}};r0.prototype.lookupFeature=function(J){var K=J.contextParams,Y=K.index,X=this.getFeature({tag:J.tag,script:J.script});if(!X)return Error("font '"+this.font.names.fullName.en+"' doesn't support feature '"+J.tag+"' for script '"+J.script+"'.");var Z=this.getFeatureLookups(X),Q=[].concat(K.context);for(var W=0;W<Z.length;W++){var w=Z[W],H=this.getLookupSubtables(w);for(var z=0;z<H.length;z++){var U=H[z],V=this.getSubstitutionType(w,U),$=this.getLookupMethod(w,U),B=void 0;switch(V){case"11":if(B=$(K.current),B)Q.splice(Y,1,new a1({id:11,tag:J.tag,substitution:B}));break;case"12":if(B=$(K.current),B)Q.splice(Y,1,new a1({id:12,tag:J.tag,substitution:B}));break;case"63":if(B=$(K),Array.isArray(B)&&B.length)Q.splice(Y,1,new a1({id:63,tag:J.tag,substitution:B}));break;case"41":if(B=$(K),B)Q.splice(Y,1,new a1({id:41,tag:J.tag,substitution:B}));break;case"21":if(B=$(K.current),B)Q.splice(Y,1,new a1({id:21,tag:J.tag,substitution:B}));break}if(K=new w1(Q,Y),Array.isArray(B)&&!B.length)continue;B=null}}return Q.length?Q:null};r0.prototype.supports=function(J){if(!J.script)return!1;this.getScriptFeatures(J.script);var K=this.features.hasOwnProperty(J.script);if(!J.tag)return K;var Y=this.features[J.script].some(function(X){return X.tag===J.tag});return K&&Y};r0.prototype.getLookupSubtables=function(J){return J.subtables||null};r0.prototype.getLookupByIndex=function(J){var K=this.font.tables.gsub.lookups;return K[J]||null};r0.prototype.getFeatureLookups=function(J){return J.lookupListIndexes.map(this.getLookupByIndex.bind(this))};r0.prototype.getFeature=function(K){if(!this.font)return{FAIL:"No font was found"};if(!this.features.hasOwnProperty(K.script))this.getScriptFeatures(K.script);var Y=this.features[K.script];if(!Y)return{FAIL:"No feature for script "+K.script};if(!Y.tags[K.tag])return null;return this.features[K.script].tags[K.tag]};function OW(J){var K=J.current,Y=J.get(-1);return Y===null&&d1(K)||!d1(Y)&&d1(K)}function jW(J){var K=J.get(1);return K===null||!d1(K)}var LW={startCheck:OW,endCheck:jW};function FW(J){var K=J.current,Y=J.get(-1);return(d1(K)||l1(K))&&!d1(Y)}function EW(J){var K=J.get(1);switch(!0){case K===null:return!0;case(!d1(K)&&!l1(K)):var Y=BW(K);if(!Y)return!0;if(Y){var X=!1;if(X=J.lookahead.some(function(Z){return d1(Z)||l1(Z)}),!X)return!0}break;default:return!1}}var _W={startCheck:FW,endCheck:EW};function RW(J,K,Y){K[Y].setState(J.tag,J.substitution)}function DW(J,K,Y){K[Y].setState(J.tag,J.substitution)}function IW(J,K,Y){J.substitution.forEach(function(X,Z){var Q=K[Y+Z];Q.setState(J.tag,X)})}function TW(J,K,Y){var X=K[Y];X.setState(J.tag,J.substitution.ligGlyph);var Z=J.substitution.components.length;for(var Q=0;Q<Z;Q++)X=K[Y+Q+1],X.setState("deleted",!0)}var u7={11:RW,12:DW,63:IW,41:TW};function Y4(J,K,Y){if(J instanceof a1&&u7[J.id])u7[J.id](J,K,Y)}function CW(J){var K=[].concat(J.backtrack);for(var Y=K.length-1;Y>=0;Y--){var X=K[Y],Z=MJ(X),Q=l1(X);if(!Z&&!Q)return!0;if(Z)return!1}return!1}function PW(J){if(MJ(J.current))return!1;for(var K=0;K<J.lookahead.length;K++){var Y=J.lookahead[K],X=l1(Y);if(!X)return!0}return!1}function SW(J){var K=this,Y="arab",X=this.featuresTags[Y],Z=this.tokenizer.getRangeTokens(J);if(Z.length===1)return;var Q=new w1(Z.map(function(w){return w.getState("glyphIndex")}),0),W=new w1(Z.map(function(w){return w.char}),0);Z.forEach(function(w,H){if(l1(w.char))return;Q.setCurrentIndex(H),W.setCurrentIndex(H);var z=0;if(CW(W))z|=1;if(PW(W))z|=2;var U;switch(z){case 1:U="fina";break;case 2:U="init";break;case 3:U="medi";break}if(X.indexOf(U)===-1)return;var V=K.query.lookupFeature({tag:U,script:Y,contextParams:Q});if(V instanceof Error)return console.info(V.message);V.forEach(function($,B){if($ instanceof a1)Y4($,Z,B),Q.context[B]=$.substitution})})}function p7(J,K){var Y=J.map(function(X){return X.activeState.value});return new w1(Y,K||0)}function vW(J){var K=this,Y="arab",X=this.tokenizer.getRangeTokens(J),Z=p7(X);Z.context.forEach(function(Q,W){Z.setCurrentIndex(W);var w=K.query.lookupFeature({tag:"rlig",script:Y,contextParams:Z});if(w.length)w.forEach(function(H){return Y4(H,X,W)}),Z=p7(X)})}function yW(J){var K=J.current,Y=J.get(-1);return Y===null&&$5(K)||!$5(Y)&&$5(K)}function kW(J){var K=J.get(1);return K===null||!$5(K)}var gW={startCheck:yW,endCheck:kW};function i7(J,K){var Y=J.map(function(X){return X.activeState.value});return new w1(Y,K||0)}function xW(J){var K=this,Y="latn",X=this.tokenizer.getRangeTokens(J),Z=i7(X);Z.context.forEach(function(Q,W){Z.setCurrentIndex(W);var w=K.query.lookupFeature({tag:"liga",script:Y,contextParams:Z});if(w.length)w.forEach(function(H){return Y4(H,X,W)}),Z=i7(X)})}function V1(J){this.baseDir=J||"ltr",this.tokenizer=new L0,this.featuresTags={}}V1.prototype.setText=function(J){this.text=J};V1.prototype.contextChecks={latinWordCheck:gW,arabicWordCheck:LW,arabicSentenceCheck:_W};function r6(J){var K=this.contextChecks[J+"Check"];return this.tokenizer.registerContextChecker(J,K.startCheck,K.endCheck)}function bW(){return r6.call(this,"latinWord"),r6.call(this,"arabicWord"),r6.call(this,"arabicSentence"),this.tokenizer.tokenize(this.text)}function hW(){var J=this,K=this.tokenizer.getContextRanges("arabicSentence");K.forEach(function(Y){var X=J.tokenizer.getRangeTokens(Y);J.tokenizer.replaceRange(Y.startIndex,Y.endOffset,X.reverse())})}V1.prototype.registerFeatures=function(J,K){var Y=this,X=K.filter(function(Z){return Y.query.supports({script:J,tag:Z})});if(!this.featuresTags.hasOwnProperty(J))this.featuresTags[J]=X;else this.featuresTags[J]=this.featuresTags[J].concat(X)};V1.prototype.applyFeatures=function(J,K){if(!J)throw Error("No valid font was provided to apply features");if(!this.query)this.query=new r0(J);for(var Y=0;Y<K.length;Y++){var X=K[Y];if(!this.query.supports({script:X.script}))continue;this.registerFeatures(X.script,X.tags)}};V1.prototype.registerModifier=function(J,K,Y){this.tokenizer.registerModifier(J,K,Y)};function X4(){if(this.tokenizer.registeredModifiers.indexOf("glyphIndex")===-1)throw Error("glyphIndex modifier is required to apply arabic presentation features.")}function mW(){var J=this,K="arab";if(!this.featuresTags.hasOwnProperty(K))return;X4.call(this);var Y=this.tokenizer.getContextRanges("arabicWord");Y.forEach(function(X){SW.call(J,X)})}function fW(){var J=this,K="arab";if(!this.featuresTags.hasOwnProperty(K))return;var Y=this.featuresTags[K];if(Y.indexOf("rlig")===-1)return;X4.call(this);var X=this.tokenizer.getContextRanges("arabicWord");X.forEach(function(Z){vW.call(J,Z)})}function dW(){var J=this,K="latn";if(!this.featuresTags.hasOwnProperty(K))return;var Y=this.featuresTags[K];if(Y.indexOf("liga")===-1)return;X4.call(this);var X=this.tokenizer.getContextRanges("latinWord");X.forEach(function(Z){xW.call(J,Z)})}V1.prototype.checkContextReady=function(J){return!!this.tokenizer.getContext(J)};V1.prototype.applyFeaturesToContexts=function(){if(this.checkContextReady("arabicWord"))mW.call(this),fW.call(this);if(this.checkContextReady("latinWord"))dW.call(this);if(this.checkContextReady("arabicSentence"))hW.call(this)};V1.prototype.processText=function(J){if(!this.text||this.text!==J)this.setText(J),bW.call(this),this.applyFeaturesToContexts()};V1.prototype.getBidiText=function(J){return this.processText(J),this.tokenizer.getText()};V1.prototype.getTextGlyphs=function(J){this.processText(J);var K=[];for(var Y=0;Y<this.tokenizer.tokens.length;Y++){var X=this.tokenizer.tokens[Y];if(X.state.deleted)continue;var Z=X.activeState.value;K.push(Array.isArray(Z)?Z[0]:Z)}return K};function h0(J){if(J=J||{},J.tables=J.tables||{},!J.empty)R8(J.familyName,"When creating a new Font object, familyName is required."),R8(J.styleName,"When creating a new Font object, styleName is required."),R8(J.unitsPerEm,"When creating a new Font object, unitsPerEm is required."),R8(J.ascender,"When creating a new Font object, ascender is required."),R8(J.descender<=0,"When creating a new Font object, negative descender value is required."),this.unitsPerEm=J.unitsPerEm||1000,this.ascender=J.ascender,this.descender=J.descender,this.createdTimestamp=J.createdTimestamp,this.tables=Object.assign(J.tables,{os2:Object.assign({usWeightClass:J.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:J.widthClass||this.usWidthClasses.MEDIUM,fsSelection:J.fsSelection||this.fsSelectionValues.REGULAR},J.tables.os2)});this.supported=!0,this.glyphs=new F1.GlyphSet(this,J.glyphs||[]),this.encoding=new XJ(this),this.position=new S8(this),this.substitution=new o0(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 BJ(this)}})}h0.prototype.hasChar=function(J){return this.encoding.charToGlyphIndex(J)!==null};h0.prototype.charToGlyphIndex=function(J){return this.encoding.charToGlyphIndex(J)};h0.prototype.charToGlyph=function(J){var K=this.charToGlyphIndex(J),Y=this.glyphs.get(K);if(!Y)Y=this.glyphs.get(0);return Y};h0.prototype.updateFeatures=function(J){return this.defaultRenderOptions.features.map(function(K){if(K.script==="latn")return{script:"latn",tags:K.tags.filter(function(Y){return J[Y]})};else return K})};h0.prototype.stringToGlyphs=function(J,K){var Y=this,X=new V1,Z=function(V){return Y.charToGlyphIndex(V.char)};X.registerModifier("glyphIndex",null,Z);var Q=K?this.updateFeatures(K.features):this.defaultRenderOptions.features;X.applyFeatures(this,Q);var W=X.getTextGlyphs(J),w=W.length,H=Array(w),z=this.glyphs.get(0);for(var U=0;U<w;U+=1)H[U]=this.glyphs.get(W[U])||z;return H};h0.prototype.getKerningValue=function(J,K){J=J.index||J,K=K.index||K;var Y=this.position.defaultKerningTables;if(Y)return this.position.getKerningValue(Y,J,K);return this.kerningPairs[J+","+K]||0};h0.prototype.defaultRenderOptions={kerning:!0,features:[{script:"arab",tags:["init","medi","fina","rlig"]},{script:"latn",tags:["liga","rlig"]}]};h0.prototype.forEachGlyph=function(J,K,Y,X,Z,Q){K=K!==void 0?K:0,Y=Y!==void 0?Y:0,X=X!==void 0?X:72,Z=Object.assign({},this.defaultRenderOptions,Z);var W=1/this.unitsPerEm*X,w=this.stringToGlyphs(J,Z),H;if(Z.kerning){var z=Z.script||this.position.getDefaultScriptName();H=this.position.getKerningTables(z,Z.language)}for(var U=0;U<w.length;U+=1){var V=w[U];if(Q.call(this,V,K,Y,X,Z),V.advanceWidth)K+=V.advanceWidth*W;if(Z.kerning&&U<w.length-1){var $=H?this.position.getKerningValue(H,V.index,w[U+1].index):this.getKerningValue(V,w[U+1]);K+=$*W}if(Z.letterSpacing)K+=Z.letterSpacing*X;else if(Z.tracking)K+=Z.tracking/1000*X}return K};h0.prototype.getPath=function(J,K,Y,X,Z){var Q=new b0;return this.forEachGlyph(J,K,Y,X,Z,function(W,w,H,z){var U=W.getPath(w,H,z,Z,this);Q.extend(U)}),Q};h0.prototype.getPaths=function(J,K,Y,X,Z){var Q=[];return this.forEachGlyph(J,K,Y,X,Z,function(W,w,H,z){var U=W.getPath(w,H,z,Z,this);Q.push(U)}),Q};h0.prototype.getAdvanceWidth=function(J,K,Y){return this.forEachGlyph(J,0,0,K,Y,function(){})};h0.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512};h0.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};h0.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};function lW(J,K){K.parseUShort(),J.length=K.parseULong(),J.language=K.parseULong();var Y;J.groupCount=Y=K.parseULong(),J.glyphIndexMap={};for(var X=0;X<Y;X+=1){var Z=K.parseULong(),Q=K.parseULong(),W=K.parseULong();for(var w=Z;w<=Q;w+=1)J.glyphIndexMap[w]=W,W++}}function cW(J,K,Y,X,Z){J.length=K.parseUShort(),J.language=K.parseUShort();var Q;J.segCount=Q=K.parseUShort()>>1,K.skip("uShort",3),J.glyphIndexMap={};var W=new r.Parser(Y,X+Z+14),w=new r.Parser(Y,X+Z+16+Q*2),H=new r.Parser(Y,X+Z+16+Q*4),z=new r.Parser(Y,X+Z+16+Q*6),U=X+Z+16+Q*8;for(var V=0;V<Q-1;V+=1){var $=void 0,B=W.parseUShort(),M=w.parseUShort(),G=H.parseShort(),q=z.parseUShort();for(var O=M;O<=B;O+=1){if(q!==0){if(U=z.offset+z.relativeOffset-2,U+=q,U+=(O-M)*2,$=r.getUShort(Y,U),$!==0)$=$+G&65535}else $=O+G&65535;J.glyphIndexMap[O]=$}}}function uW(J,K){var Y={};Y.version=r.getUShort(J,K),z0.argument(Y.version===0,"cmap table version should be 0."),Y.numTables=r.getUShort(J,K+2);var X=-1;for(var Z=Y.numTables-1;Z>=0;Z-=1){var Q=r.getUShort(J,K+4+Z*8),W=r.getUShort(J,K+4+Z*8+2);if(Q===3&&(W===0||W===1||W===10)||Q===0&&(W===0||W===1||W===2||W===3||W===4)){X=r.getULong(J,K+4+Z*8+4);break}}if(X===-1)throw Error("No valid cmap sub-tables found.");var w=new r.Parser(J,K+X);if(Y.format=w.parseUShort(),Y.format===12)lW(Y,w);else if(Y.format===4)cW(Y,w,J,K,X);else throw Error("Only format 4 and 12 cmap tables are supported (found format "+Y.format+").");return Y}var pW={parse:uW};function a6(J){var K;if(J.length<1240)K=107;else if(J.length<33900)K=1131;else K=32768;return K}function m1(J,K,Y){var X=[],Z=[],Q=r.getCard16(J,K),W,w;if(Q!==0){var H=r.getByte(J,K+2);W=K+(Q+1)*H+2;var z=K+3;for(var U=0;U<Q+1;U+=1)X.push(r.getOffset(J,z,H)),z+=H;w=W+X[Q]}else w=K+2;for(var V=0;V<X.length-1;V+=1){var $=r.getBytes(J,W+X[V],W+X[V+1]);if(Y)$=Y($);Z.push($)}return{objects:Z,startOffset:K,endOffset:w}}function iW(J,K){var Y=[],X=r.getCard16(J,K),Z,Q;if(X!==0){var W=r.getByte(J,K+2);Z=K+(X+1)*W+2;var w=K+3;for(var H=0;H<X+1;H+=1)Y.push(r.getOffset(J,w,W)),w+=W;Q=Z+Y[X]}else Q=K+2;return{offsets:Y,startOffset:K,endOffset:Q}}function oW(J,K,Y,X,Z){var Q=r.getCard16(Y,X),W=0;if(Q!==0){var w=r.getByte(Y,X+2);W=X+(Q+1)*w+2}var H=r.getBytes(Y,W+K[J],W+K[J+1]);if(Z)H=Z(H);return H}function rW(J){var K="",Y=15,X=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];while(!0){var Z=J.parseByte(),Q=Z>>4,W=Z&15;if(Q===Y)break;if(K+=X[Q],W===Y)break;K+=X[W]}return parseFloat(K)}function nW(J,K){var Y,X,Z,Q;if(K===28)return Y=J.parseByte(),X=J.parseByte(),Y<<8|X;if(K===29)return Y=J.parseByte(),X=J.parseByte(),Z=J.parseByte(),Q=J.parseByte(),Y<<24|X<<16|Z<<8|Q;if(K===30)return rW(J);if(K>=32&&K<=246)return K-139;if(K>=247&&K<=250)return Y=J.parseByte(),(K-247)*256+Y+108;if(K>=251&&K<=254)return Y=J.parseByte(),-(K-251)*256-Y-108;throw Error("Invalid b0 "+K)}function sW(J){var K={};for(var Y=0;Y<J.length;Y+=1){var X=J[Y][0],Z=J[Y][1],Q=void 0;if(Z.length===1)Q=Z[0];else Q=Z;if(K.hasOwnProperty(X)&&!isNaN(K[X]))throw Error("Object "+K+" already has key "+X);K[X]=Q}return K}function NJ(J,K,Y){K=K!==void 0?K:0;var X=new r.Parser(J,K),Z=[],Q=[];Y=Y!==void 0?Y:J.length;while(X.relativeOffset<Y){var W=X.parseByte();if(W<=21){if(W===12)W=1200+X.parseByte();Z.push([W,Q]),Q=[]}else Q.push(nW(X,W))}return sW(Z)}function I8(J,K){if(K<=390)K=GQ[K];else K=J[K-391];return K}function OJ(J,K,Y){var X={},Z;for(var Q=0;Q<K.length;Q+=1){var W=K[Q];if(Array.isArray(W.type)){var w=[];w.length=W.type.length;for(var H=0;H<W.type.length;H++){if(Z=J[W.op]!==void 0?J[W.op][H]:void 0,Z===void 0)Z=W.value!==void 0&&W.value[H]!==void 0?W.value[H]:null;if(W.type[H]==="SID")Z=I8(Y,Z);w[H]=Z}X[W.name]=w}else{if(Z=J[W.op],Z===void 0)Z=W.value!==void 0?W.value:null;if(W.type==="SID")Z=I8(Y,Z);X[W.name]=Z}}return X}function aW(J,K){var Y={};return Y.formatMajor=r.getCard8(J,K),Y.formatMinor=r.getCard8(J,K+1),Y.size=r.getCard8(J,K+2),Y.offsetSize=r.getCard8(J,K+3),Y.startOffset=K,Y.endOffset=K+4,Y}var tW=[{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:[0.001,0,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"}],eW=[{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 JH(J,K){var Y=NJ(J,0,J.byteLength);return OJ(Y,tW,K)}function jJ(J,K,Y,X){var Z=NJ(J,K,Y);return OJ(Z,eW,X)}function o7(J,K,Y,X){var Z=[];for(var Q=0;Q<Y.length;Q+=1){var W=new DataView(new Uint8Array(Y[Q]).buffer),w=JH(W,X);w._subrs=[],w._subrsBias=0,w._defaultWidthX=0,w._nominalWidthX=0;var H=w.private[0],z=w.private[1];if(H!==0&&z!==0){var U=jJ(J,z+K,H,X);if(w._defaultWidthX=U.defaultWidthX,w._nominalWidthX=U.nominalWidthX,U.subrs!==0){var V=z+U.subrs,$=m1(J,V+K);w._subrs=$.objects,w._subrsBias=a6(w._subrs)}w._privateDict=U}Z.push(w)}return Z}function KH(J,K,Y,X){var Z,Q,W=new r.Parser(J,K);Y-=1;var w=[".notdef"],H=W.parseCard8();if(H===0)for(var z=0;z<Y;z+=1)Z=W.parseSID(),w.push(I8(X,Z));else if(H===1)while(w.length<=Y){Z=W.parseSID(),Q=W.parseCard8();for(var U=0;U<=Q;U+=1)w.push(I8(X,Z)),Z+=1}else if(H===2)while(w.length<=Y){Z=W.parseSID(),Q=W.parseCard16();for(var V=0;V<=Q;V+=1)w.push(I8(X,Z)),Z+=1}else throw Error("Unknown charset format "+H);return w}function YH(J,K,Y){var X,Z={},Q=new r.Parser(J,K),W=Q.parseCard8();if(W===0){var w=Q.parseCard8();for(var H=0;H<w;H+=1)X=Q.parseCard8(),Z[X]=H}else if(W===1){var z=Q.parseCard8();X=1;for(var U=0;U<z;U+=1){var V=Q.parseCard8(),$=Q.parseCard8();for(var B=V;B<=V+$;B+=1)Z[B]=X,X+=1}}else throw Error("Unknown encoding format "+W);return new B5(Z,Y)}function r7(J,K,Y){var X,Z,Q,W,w=new b0,H=[],z=0,U=!1,V=!1,$=0,B=0,M,G,q,O;if(J.isCIDFont){var j=J.tables.cff.topDict._fdSelect[K.index],E=J.tables.cff.topDict._fdArray[j];M=E._subrs,G=E._subrsBias,q=E._defaultWidthX,O=E._nominalWidthX}else M=J.tables.cff.topDict._subrs,G=J.tables.cff.topDict._subrsBias,q=J.tables.cff.topDict._defaultWidthX,O=J.tables.cff.topDict._nominalWidthX;var R=q;function _(D,P){if(V)w.closePath();w.moveTo(D,P),V=!0}function L(){var D=H.length%2!==0;if(D&&!U)R=H.shift()+O;z+=H.length>>1,H.length=0,U=!0}function T(D){var P,g,u,n,i,C,S,I,f,l,c,p,m=0;while(m<D.length){var d=D[m];switch(m+=1,d){case 1:L();break;case 3:L();break;case 4:if(H.length>1&&!U)R=H.shift()+O,U=!0;B+=H.pop(),_($,B);break;case 5:while(H.length>0)$+=H.shift(),B+=H.shift(),w.lineTo($,B);break;case 6:while(H.length>0){if($+=H.shift(),w.lineTo($,B),H.length===0)break;B+=H.shift(),w.lineTo($,B)}break;case 7:while(H.length>0){if(B+=H.shift(),w.lineTo($,B),H.length===0)break;$+=H.shift(),w.lineTo($,B)}break;case 8:while(H.length>0)X=$+H.shift(),Z=B+H.shift(),Q=X+H.shift(),W=Z+H.shift(),$=Q+H.shift(),B=W+H.shift(),w.curveTo(X,Z,Q,W,$,B);break;case 10:if(i=H.pop()+G,C=M[i],C)T(C);break;case 11:return;case 12:switch(d=D[m],m+=1,d){case 35:X=$+H.shift(),Z=B+H.shift(),Q=X+H.shift(),W=Z+H.shift(),S=Q+H.shift(),I=W+H.shift(),f=S+H.shift(),l=I+H.shift(),c=f+H.shift(),p=l+H.shift(),$=c+H.shift(),B=p+H.shift(),H.shift(),w.curveTo(X,Z,Q,W,S,I),w.curveTo(f,l,c,p,$,B);break;case 34:X=$+H.shift(),Z=B,Q=X+H.shift(),W=Z+H.shift(),S=Q+H.shift(),I=W,f=S+H.shift(),l=W,c=f+H.shift(),p=B,$=c+H.shift(),w.curveTo(X,Z,Q,W,S,I),w.curveTo(f,l,c,p,$,B);break;case 36:X=$+H.shift(),Z=B+H.shift(),Q=X+H.shift(),W=Z+H.shift(),S=Q+H.shift(),I=W,f=S+H.shift(),l=W,c=f+H.shift(),p=l+H.shift(),$=c+H.shift(),w.curveTo(X,Z,Q,W,S,I),w.curveTo(f,l,c,p,$,B);break;case 37:if(X=$+H.shift(),Z=B+H.shift(),Q=X+H.shift(),W=Z+H.shift(),S=Q+H.shift(),I=W+H.shift(),f=S+H.shift(),l=I+H.shift(),c=f+H.shift(),p=l+H.shift(),Math.abs(c-$)>Math.abs(p-B))$=c+H.shift();else B=p+H.shift();w.curveTo(X,Z,Q,W,S,I),w.curveTo(f,l,c,p,$,B);break;default:console.log("Glyph "+K.index+": unknown operator 1200"+d),H.length=0}break;case 14:if(H.length>0&&!U)R=H.shift()+O,U=!0;if(V)w.closePath(),V=!1;break;case 18:L();break;case 19:case 20:L(),m+=z+7>>3;break;case 21:if(H.length>2&&!U)R=H.shift()+O,U=!0;B+=H.pop(),$+=H.pop(),_($,B);break;case 22:if(H.length>1&&!U)R=H.shift()+O,U=!0;$+=H.pop(),_($,B);break;case 23:L();break;case 24:while(H.length>2)X=$+H.shift(),Z=B+H.shift(),Q=X+H.shift(),W=Z+H.shift(),$=Q+H.shift(),B=W+H.shift(),w.curveTo(X,Z,Q,W,$,B);$+=H.shift(),B+=H.shift(),w.lineTo($,B);break;case 25:while(H.length>6)$+=H.shift(),B+=H.shift(),w.lineTo($,B);X=$+H.shift(),Z=B+H.shift(),Q=X+H.shift(),W=Z+H.shift(),$=Q+H.shift(),B=W+H.shift(),w.curveTo(X,Z,Q,W,$,B);break;case 26:if(H.length%2)$+=H.shift();while(H.length>0)X=$,Z=B+H.shift(),Q=X+H.shift(),W=Z+H.shift(),$=Q,B=W+H.shift(),w.curveTo(X,Z,Q,W,$,B);break;case 27:if(H.length%2)B+=H.shift();while(H.length>0)X=$+H.shift(),Z=B,Q=X+H.shift(),W=Z+H.shift(),$=Q+H.shift(),B=W,w.curveTo(X,Z,Q,W,$,B);break;case 28:P=D[m],g=D[m+1],H.push((P<<24|g<<16)>>16),m+=2;break;case 29:if(i=H.pop()+J.gsubrsBias,C=J.gsubrs[i],C)T(C);break;case 30:while(H.length>0){if(X=$,Z=B+H.shift(),Q=X+H.shift(),W=Z+H.shift(),$=Q+H.shift(),B=W+(H.length===1?H.shift():0),w.curveTo(X,Z,Q,W,$,B),H.length===0)break;X=$+H.shift(),Z=B,Q=X+H.shift(),W=Z+H.shift(),B=W+H.shift(),$=Q+(H.length===1?H.shift():0),w.curveTo(X,Z,Q,W,$,B)}break;case 31:while(H.length>0){if(X=$+H.shift(),Z=B,Q=X+H.shift(),W=Z+H.shift(),B=W+H.shift(),$=Q+(H.length===1?H.shift():0),w.curveTo(X,Z,Q,W,$,B),H.length===0)break;X=$,Z=B+H.shift(),Q=X+H.shift(),W=Z+H.shift(),$=Q+H.shift(),B=W+(H.length===1?H.shift():0),w.curveTo(X,Z,Q,W,$,B)}break;default:if(d<32)console.log("Glyph "+K.index+": unknown operator "+d);else if(d<247)H.push(d-139);else if(d<251)P=D[m],m+=1,H.push((d-247)*256+P+108);else if(d<255)P=D[m],m+=1,H.push(-(d-251)*256-P-108);else P=D[m],g=D[m+1],u=D[m+2],n=D[m+3],m+=4,H.push((P<<24|g<<16|u<<8|n)/65536)}}}return T(Y),K.advanceWidth=R,w}function XH(J,K,Y,X){var Z=[],Q,W=new r.Parser(J,K),w=W.parseCard8();if(w===0)for(var H=0;H<Y;H++){if(Q=W.parseCard8(),Q>=X)throw Error("CFF table CID Font FDSelect has bad FD index value "+Q+" (FD count "+X+")");Z.push(Q)}else if(w===3){var z=W.parseCard16(),U=W.parseCard16();if(U!==0)throw Error("CFF Table CID Font FDSelect format 3 range has bad initial GID "+U);var V;for(var $=0;$<z;$++){if(Q=W.parseCard8(),V=W.parseCard16(),Q>=X)throw Error("CFF table CID Font FDSelect has bad FD index value "+Q+" (FD count "+X+")");if(V>Y)throw Error("CFF Table CID Font FDSelect format 3 range has bad GID "+V);for(;U<V;U++)Z.push(Q);U=V}if(V!==Y)throw Error("CFF Table CID Font FDSelect format 3 range has bad final GID "+V)}else throw Error("CFF Table CID Font FDSelect table has unsupported format "+w);return Z}function ZH(J,K,Y,X){Y.tables.cff={};var Z=aW(J,K),Q=m1(J,Z.endOffset,r.bytesToString),W=m1(J,Q.endOffset),w=m1(J,W.endOffset,r.bytesToString),H=m1(J,w.endOffset);Y.gsubrs=H.objects,Y.gsubrsBias=a6(Y.gsubrs);var z=o7(J,K,W.objects,w.objects);if(z.length!==1)throw Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = "+z.length);var U=z[0];if(Y.tables.cff.topDict=U,U._privateDict)Y.defaultWidthX=U._privateDict.defaultWidthX,Y.nominalWidthX=U._privateDict.nominalWidthX;if(U.ros[0]!==void 0&&U.ros[1]!==void 0)Y.isCIDFont=!0;if(Y.isCIDFont){var{fdArray:V,fdSelect:$}=U;if(V===0||$===0)throw Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");V+=K;var B=m1(J,V),M=o7(J,K,B.objects,w.objects);U._fdArray=M,$+=K,U._fdSelect=XH(J,$,Y.numGlyphs,M.length)}var G=K+U.private[1],q=jJ(J,G,U.private[0],w.objects);if(Y.defaultWidthX=q.defaultWidthX,Y.nominalWidthX=q.nominalWidthX,q.subrs!==0){var O=G+q.subrs,j=m1(J,O);Y.subrs=j.objects,Y.subrsBias=a6(Y.subrs)}else Y.subrs=[],Y.subrsBias=0;var E;if(X.lowMemory)E=iW(J,K+U.charStrings),Y.nGlyphs=E.offsets.length;else E=m1(J,K+U.charStrings),Y.nGlyphs=E.objects.length;var R=KH(J,K+U.charset,Y.nGlyphs,w.objects);if(U.encoding===0)Y.cffEncoding=new B5(qQ,R);else if(U.encoding===1)Y.cffEncoding=new B5(MQ,R);else Y.cffEncoding=YH(J,K+U.encoding,R);if(Y.encoding=Y.encoding||Y.cffEncoding,Y.glyphs=new F1.GlyphSet(Y),X.lowMemory)Y._push=function(T){var D=oW(T,E.offsets,J,K+U.charStrings);Y.glyphs.push(T,F1.cffGlyphLoader(Y,T,r7,D))};else for(var _=0;_<Y.nGlyphs;_+=1){var L=E.objects[_];Y.glyphs.push(_,F1.cffGlyphLoader(Y,_,r7,L))}}var QH={parse:ZH};function WH(J,K,Y){var X={},Z=new r.Parser(J,K);return X.tag=Z.parseTag(),X.minValue=Z.parseFixed(),X.defaultValue=Z.parseFixed(),X.maxValue=Z.parseFixed(),Z.skip("uShort",1),X.name=Y[Z.parseUShort()]||{},X}function HH(J,K,Y,X){var Z={},Q=new r.Parser(J,K);Z.name=X[Q.parseUShort()]||{},Q.skip("uShort",1),Z.coordinates={};for(var W=0;W<Y.length;++W)Z.coordinates[Y[W].tag]=Q.parseFixed();return Z}function wH(J,K,Y){var X=new r.Parser(J,K),Z=X.parseULong();z0.argument(Z===65536,"Unsupported fvar table version.");var Q=X.parseOffset16();X.skip("uShort",1);var W=X.parseUShort(),w=X.parseUShort(),H=X.parseUShort(),z=X.parseUShort(),U=[];for(var V=0;V<W;V++)U.push(WH(J,K+Q+V*w,Y));var $=[],B=K+Q+W*w;for(var M=0;M<H;M++)$.push(HH(J,B+M*z,U,Y));return{axes:U,instances:$}}var zH={parse:wH},UH=function(){return{coverage:this.parsePointer(v.coverage),attachPoints:this.parseList(v.pointer(v.uShortList))}},VH=function(){var J=this.parseUShort();if(z0.argument(J===1||J===2||J===3,"Unsupported CaretValue table version."),J===1)return{coordinate:this.parseShort()};else if(J===2)return{pointindex:this.parseShort()};else if(J===3)return{coordinate:this.parseShort()}},$H=function(){return this.parseList(v.pointer(VH))},BH=function(){return{coverage:this.parsePointer(v.coverage),ligGlyphs:this.parseList(v.pointer($H))}},AH=function(){return this.parseUShort(),this.parseList(v.pointer(v.coverage))};function GH(J,K){K=K||0;var Y=new v(J,K),X=Y.parseVersion(1);z0.argument(X===1||X===1.2||X===1.3,"Unsupported GDEF table version.");var Z={version:X,classDef:Y.parsePointer(v.classDef),attachList:Y.parsePointer(UH),ligCaretList:Y.parsePointer(BH),markAttachClassDef:Y.parsePointer(v.classDef)};if(X>=1.2)Z.markGlyphSets=Y.parsePointer(AH);return Z}var qH={parse:GH},z1=[,,,,,,,,,,];z1[1]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{posFormat:1,coverage:this.parsePointer(v.coverage),value:this.parseValueRecord()};else if(Y===2)return{posFormat:2,coverage:this.parsePointer(v.coverage),values:this.parseValueRecordList()};z0.assert(!1,"0x"+K.toString(16)+": GPOS lookup type 1 format must be 1 or 2.")};z1[2]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();z0.assert(Y===1||Y===2,"0x"+K.toString(16)+": GPOS lookup type 2 format must be 1 or 2.");var X=this.parsePointer(v.coverage),Z=this.parseUShort(),Q=this.parseUShort();if(Y===1)return{posFormat:Y,coverage:X,valueFormat1:Z,valueFormat2:Q,pairSets:this.parseList(v.pointer(v.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(Z),value2:this.parseValueRecord(Q)}})))};else if(Y===2){var W=this.parsePointer(v.classDef),w=this.parsePointer(v.classDef),H=this.parseUShort(),z=this.parseUShort();return{posFormat:Y,coverage:X,valueFormat1:Z,valueFormat2:Q,classDef1:W,classDef2:w,class1Count:H,class2Count:z,classRecords:this.parseList(H,v.list(z,function(){return{value1:this.parseValueRecord(Z),value2:this.parseValueRecord(Q)}}))}}};z1[3]=function(){return{error:"GPOS Lookup 3 not supported"}};z1[4]=function(){return{error:"GPOS Lookup 4 not supported"}};z1[5]=function(){return{error:"GPOS Lookup 5 not supported"}};z1[6]=function(){return{error:"GPOS Lookup 6 not supported"}};z1[7]=function(){return{error:"GPOS Lookup 7 not supported"}};z1[8]=function(){return{error:"GPOS Lookup 8 not supported"}};z1[9]=function(){return{error:"GPOS Lookup 9 not supported"}};function MH(J,K){K=K||0;var Y=new v(J,K),X=Y.parseVersion(1);if(z0.argument(X===1||X===1.1,"Unsupported GPOS table version "+X),X===1)return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(z1)};else return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(z1),variations:Y.parseFeatureVariationsList()}}var NH={parse:MH},U1=[,,,,,,,,,];U1[1]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{substFormat:1,coverage:this.parsePointer(v.coverage),deltaGlyphId:this.parseUShort()};else if(Y===2)return{substFormat:2,coverage:this.parsePointer(v.coverage),substitute:this.parseOffset16List()};z0.assert(!1,"0x"+K.toString(16)+": lookup type 1 format must be 1 or 2.")};U1[2]=function(){var K=this.parseUShort();return z0.argument(K===1,"GSUB Multiple Substitution Subtable identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(v.coverage),sequences:this.parseListOfLists()}};U1[3]=function(){var K=this.parseUShort();return z0.argument(K===1,"GSUB Alternate Substitution Subtable identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(v.coverage),alternateSets:this.parseListOfLists()}};U1[4]=function(){var K=this.parseUShort();return z0.argument(K===1,"GSUB ligature table identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(v.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var A8={sequenceIndex:v.uShort,lookupListIndex:v.uShort};U1[5]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{substFormat:Y,coverage:this.parsePointer(v.coverage),ruleSets:this.parseListOfLists(function(){var Q=this.parseUShort(),W=this.parseUShort();return{input:this.parseUShortList(Q-1),lookupRecords:this.parseRecordList(W,A8)}})};else if(Y===2)return{substFormat:Y,coverage:this.parsePointer(v.coverage),classDef:this.parsePointer(v.classDef),classSets:this.parseListOfLists(function(){var Q=this.parseUShort(),W=this.parseUShort();return{classes:this.parseUShortList(Q-1),lookupRecords:this.parseRecordList(W,A8)}})};else if(Y===3){var X=this.parseUShort(),Z=this.parseUShort();return{substFormat:Y,coverages:this.parseList(X,v.pointer(v.coverage)),lookupRecords:this.parseRecordList(Z,A8)}}z0.assert(!1,"0x"+K.toString(16)+": lookup type 5 format must be 1, 2 or 3.")};U1[6]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{substFormat:1,coverage:this.parsePointer(v.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(A8)}})};else if(Y===2)return{substFormat:2,coverage:this.parsePointer(v.coverage),backtrackClassDef:this.parsePointer(v.classDef),inputClassDef:this.parsePointer(v.classDef),lookaheadClassDef:this.parsePointer(v.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(A8)}})};else if(Y===3)return{substFormat:3,backtrackCoverage:this.parseList(v.pointer(v.coverage)),inputCoverage:this.parseList(v.pointer(v.coverage)),lookaheadCoverage:this.parseList(v.pointer(v.coverage)),lookupRecords:this.parseRecordList(A8)};z0.assert(!1,"0x"+K.toString(16)+": lookup type 6 format must be 1, 2 or 3.")};U1[7]=function(){var K=this.parseUShort();z0.argument(K===1,"GSUB Extension Substitution subtable identifier-format must be 1");var Y=this.parseUShort(),X=new v(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:Y,extension:U1[Y].call(X)}};U1[8]=function(){var K=this.parseUShort();return z0.argument(K===1,"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(v.coverage),backtrackCoverage:this.parseList(v.pointer(v.coverage)),lookaheadCoverage:this.parseList(v.pointer(v.coverage)),substitutes:this.parseUShortList()}};function OH(J,K){K=K||0;var Y=new v(J,K),X=Y.parseVersion(1);if(z0.argument(X===1||X===1.1,"Unsupported GSUB table version."),X===1)return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(U1)};else return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(U1),variations:Y.parseFeatureVariationsList()}}var jH={parse:OH};function LH(J,K){var Y={},X=new r.Parser(J,K);return Y.version=X.parseVersion(),Y.fontRevision=Math.round(X.parseFixed()*1000)/1000,Y.checkSumAdjustment=X.parseULong(),Y.magicNumber=X.parseULong(),z0.argument(Y.magicNumber===1594834165,"Font header has wrong magic number."),Y.flags=X.parseUShort(),Y.unitsPerEm=X.parseUShort(),Y.created=X.parseLongDateTime(),Y.modified=X.parseLongDateTime(),Y.xMin=X.parseShort(),Y.yMin=X.parseShort(),Y.xMax=X.parseShort(),Y.yMax=X.parseShort(),Y.macStyle=X.parseUShort(),Y.lowestRecPPEM=X.parseUShort(),Y.fontDirectionHint=X.parseShort(),Y.indexToLocFormat=X.parseShort(),Y.glyphDataFormat=X.parseShort(),Y}var FH={parse:LH};function EH(J,K){var Y={},X=new r.Parser(J,K);return Y.version=X.parseVersion(),Y.ascender=X.parseShort(),Y.descender=X.parseShort(),Y.lineGap=X.parseShort(),Y.advanceWidthMax=X.parseUShort(),Y.minLeftSideBearing=X.parseShort(),Y.minRightSideBearing=X.parseShort(),Y.xMaxExtent=X.parseShort(),Y.caretSlopeRise=X.parseShort(),Y.caretSlopeRun=X.parseShort(),Y.caretOffset=X.parseShort(),X.relativeOffset+=8,Y.metricDataFormat=X.parseShort(),Y.numberOfHMetrics=X.parseUShort(),Y}var _H={parse:EH};function RH(J,K,Y,X,Z){var Q,W,w=new r.Parser(J,K);for(var H=0;H<X;H+=1){if(H<Y)Q=w.parseUShort(),W=w.parseShort();var z=Z.get(H);z.advanceWidth=Q,z.leftSideBearing=W}}function DH(J,K,Y,X,Z){J._hmtxTableData={};var Q,W,w=new r.Parser(K,Y);for(var H=0;H<Z;H+=1){if(H<X)Q=w.parseUShort(),W=w.parseShort();J._hmtxTableData[H]={advanceWidth:Q,leftSideBearing:W}}}function IH(J,K,Y,X,Z,Q,W){if(W.lowMemory)DH(J,K,Y,X,Z);else RH(K,Y,X,Z,Q)}var TH={parse:IH};function CH(J){var K={};J.skip("uShort");var Y=J.parseUShort();z0.argument(Y===0,"Unsupported kern sub-table version."),J.skip("uShort",2);var X=J.parseUShort();J.skip("uShort",3);for(var Z=0;Z<X;Z+=1){var Q=J.parseUShort(),W=J.parseUShort(),w=J.parseShort();K[Q+","+W]=w}return K}function PH(J){var K={};J.skip("uShort");var Y=J.parseULong();if(Y>1)console.warn("Only the first kern subtable is supported.");J.skip("uLong");var X=J.parseUShort(),Z=X&255;if(J.skip("uShort"),Z===0){var Q=J.parseUShort();J.skip("uShort",3);for(var W=0;W<Q;W+=1){var w=J.parseUShort(),H=J.parseUShort(),z=J.parseShort();K[w+","+H]=z}}return K}function SH(J,K){var Y=new r.Parser(J,K),X=Y.parseUShort();if(X===0)return CH(Y);else if(X===1)return PH(Y);else throw Error("Unsupported kern table version ("+X+").")}var vH={parse:SH};function yH(J,K){var Y=new r.Parser(J,K),X=Y.parseULong();z0.argument(X===1,"Unsupported ltag table version."),Y.skip("uLong",1);var Z=Y.parseULong(),Q=[];for(var W=0;W<Z;W++){var w="",H=K+Y.parseUShort(),z=Y.parseUShort();for(var U=H;U<H+z;++U)w+=String.fromCharCode(J.getInt8(U));Q.push(w)}return Q}var kH={parse:yH};function gH(J,K,Y,X){var Z=new r.Parser(J,K),Q=X?Z.parseUShort:Z.parseULong,W=[];for(var w=0;w<Y+1;w+=1){var H=Q.call(Z);if(X)H*=2;W.push(H)}return W}var xH={parse:gH};function bH(J,K){var Y={},X=new r.Parser(J,K);if(Y.version=X.parseVersion(),Y.numGlyphs=X.parseUShort(),Y.version===1)Y.maxPoints=X.parseUShort(),Y.maxContours=X.parseUShort(),Y.maxCompositePoints=X.parseUShort(),Y.maxCompositeContours=X.parseUShort(),Y.maxZones=X.parseUShort(),Y.maxTwilightPoints=X.parseUShort(),Y.maxStorage=X.parseUShort(),Y.maxFunctionDefs=X.parseUShort(),Y.maxInstructionDefs=X.parseUShort(),Y.maxStackElements=X.parseUShort(),Y.maxSizeOfInstructions=X.parseUShort(),Y.maxComponentElements=X.parseUShort(),Y.maxComponentDepth=X.parseUShort();return Y}var hH={parse:bH};function mH(J,K){var Y={},X=new r.Parser(J,K);Y.version=X.parseUShort(),Y.xAvgCharWidth=X.parseShort(),Y.usWeightClass=X.parseUShort(),Y.usWidthClass=X.parseUShort(),Y.fsType=X.parseUShort(),Y.ySubscriptXSize=X.parseShort(),Y.ySubscriptYSize=X.parseShort(),Y.ySubscriptXOffset=X.parseShort(),Y.ySubscriptYOffset=X.parseShort(),Y.ySuperscriptXSize=X.parseShort(),Y.ySuperscriptYSize=X.parseShort(),Y.ySuperscriptXOffset=X.parseShort(),Y.ySuperscriptYOffset=X.parseShort(),Y.yStrikeoutSize=X.parseShort(),Y.yStrikeoutPosition=X.parseShort(),Y.sFamilyClass=X.parseShort(),Y.panose=[];for(var Z=0;Z<10;Z++)Y.panose[Z]=X.parseByte();if(Y.ulUnicodeRange1=X.parseULong(),Y.ulUnicodeRange2=X.parseULong(),Y.ulUnicodeRange3=X.parseULong(),Y.ulUnicodeRange4=X.parseULong(),Y.achVendID=String.fromCharCode(X.parseByte(),X.parseByte(),X.parseByte(),X.parseByte()),Y.fsSelection=X.parseUShort(),Y.usFirstCharIndex=X.parseUShort(),Y.usLastCharIndex=X.parseUShort(),Y.sTypoAscender=X.parseShort(),Y.sTypoDescender=X.parseShort(),Y.sTypoLineGap=X.parseShort(),Y.usWinAscent=X.parseUShort(),Y.usWinDescent=X.parseUShort(),Y.version>=1)Y.ulCodePageRange1=X.parseULong(),Y.ulCodePageRange2=X.parseULong();if(Y.version>=2)Y.sxHeight=X.parseShort(),Y.sCapHeight=X.parseShort(),Y.usDefaultChar=X.parseUShort(),Y.usBreakChar=X.parseUShort(),Y.usMaxContent=X.parseUShort();return Y}var fH={parse:mH};function dH(J,K){var Y={},X=new r.Parser(J,K);switch(Y.version=X.parseVersion(),Y.italicAngle=X.parseFixed(),Y.underlinePosition=X.parseShort(),Y.underlineThickness=X.parseShort(),Y.isFixedPitch=X.parseULong(),Y.minMemType42=X.parseULong(),Y.maxMemType42=X.parseULong(),Y.minMemType1=X.parseULong(),Y.maxMemType1=X.parseULong(),Y.names=[],Y.version){case 1:break;case 2:Y.numberOfGlyphs=X.parseUShort(),Y.glyphNameIndex=Array(Y.numberOfGlyphs);for(var Z=0;Z<Y.numberOfGlyphs;Z++)Y.glyphNameIndex[Z]=X.parseUShort();break;case 2.5:Y.numberOfGlyphs=X.parseUShort(),Y.offset=Array(Y.numberOfGlyphs);for(var Q=0;Q<Y.numberOfGlyphs;Q++)Y.offset[Q]=X.parseChar();break}return Y}var lH={parse:dH},M5={};M5.UTF8=function(J,K,Y){var X=[],Z=Y;for(var Q=0;Q<Z;Q++,K+=1)X[Q]=J.getUint8(K);return String.fromCharCode.apply(null,X)};M5.UTF16=function(J,K,Y){var X=[],Z=Y/2;for(var Q=0;Q<Z;Q++,K+=2)X[Q]=J.getUint16(K);return String.fromCharCode.apply(null,X)};var cH={"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"};M5.MACSTRING=function(J,K,Y,X){var Z=cH[X];if(Z===void 0)return;var Q="";for(var W=0;W<Y;W++){var w=J.getUint8(K+W);if(w<=127)Q+=String.fromCharCode(w);else Q+=Z[w&127]}return Q};function uH(J,K){var Y=new r.Parser(J,K),X=Y.parseULong();z0.argument(X===1,"Unsupported META table version."),Y.parseULong(),Y.parseULong();var Z=Y.parseULong(),Q={};for(var W=0;W<Z;W++){var w=Y.parseTag(),H=Y.parseULong(),z=Y.parseULong(),U=M5.UTF8(J,K+H,z);Q[w]=U}return Q}var pH={parse:uH};function n7(J,K){var Y=[],X=12;for(var Z=0;Z<K;Z+=1){var Q=r.getTag(J,X),W=r.getULong(J,X+4),w=r.getULong(J,X+8),H=r.getULong(J,X+12);Y.push({tag:Q,checksum:W,offset:w,length:H,compression:!1}),X+=16}return Y}function iH(J,K){var Y=[],X=44;for(var Z=0;Z<K;Z+=1){var Q=r.getTag(J,X),W=r.getULong(J,X+4),w=r.getULong(J,X+8),H=r.getULong(J,X+12),z=void 0;if(w<H)z="WOFF";else z=!1;Y.push({tag:Q,offset:W,compression:z,compressedLength:w,length:H}),X+=20}return Y}function D0(J,K){if(K.compression==="WOFF"){var Y=new Uint8Array(J.buffer,K.offset+2,K.compressedLength-2),X=new Uint8Array(K.length);if($Q(Y,X),X.byteLength!==K.length)throw Error("Decompression error: "+K.tag+" decompressed length doesn't match recorded length");var Z=new DataView(X.buffer,0);return{data:Z,offset:0}}else return{data:J,offset:K.offset}}function oH(J,K){K=K===void 0||K===null?{}:K;var Y,X=new h0({empty:!0}),Z=new DataView(J,0),Q,W=[],w=r.getTag(Z,0);if(w===String.fromCharCode(0,1,0,0)||w==="true"||w==="typ1")X.outlinesFormat="truetype",Q=r.getUShort(Z,4),W=n7(Z,Q);else if(w==="OTTO")X.outlinesFormat="cff",Q=r.getUShort(Z,4),W=n7(Z,Q);else if(w==="wOFF"){var H=r.getTag(Z,4);if(H===String.fromCharCode(0,1,0,0))X.outlinesFormat="truetype";else if(H==="OTTO")X.outlinesFormat="cff";else throw Error("Unsupported OpenType flavor "+w);Q=r.getUShort(Z,12),W=iH(Z,Q)}else throw Error("Unsupported OpenType signature "+w);var z,U,V,$,B,M,G,q,O,j,E;for(var R=0;R<Q;R+=1){var _=W[R],L=void 0;switch(_.tag){case"cmap":L=D0(Z,_),X.tables.cmap=pW.parse(L.data,L.offset),X.encoding=new ZJ(X.tables.cmap);break;case"cvt ":L=D0(Z,_),E=new r.Parser(L.data,L.offset),X.tables.cvt=E.parseShortList(_.length/2);break;case"fvar":U=_;break;case"fpgm":L=D0(Z,_),E=new r.Parser(L.data,L.offset),X.tables.fpgm=E.parseByteList(_.length);break;case"head":L=D0(Z,_),X.tables.head=FH.parse(L.data,L.offset),X.unitsPerEm=X.tables.head.unitsPerEm,Y=X.tables.head.indexToLocFormat;break;case"hhea":L=D0(Z,_),X.tables.hhea=_H.parse(L.data,L.offset),X.ascender=X.tables.hhea.ascender,X.descender=X.tables.hhea.descender,X.numberOfHMetrics=X.tables.hhea.numberOfHMetrics;break;case"hmtx":G=_;break;case"ltag":L=D0(Z,_),ltagTable=kH.parse(L.data,L.offset);break;case"maxp":L=D0(Z,_),X.tables.maxp=hH.parse(L.data,L.offset),X.numGlyphs=X.tables.maxp.numGlyphs;break;case"OS/2":L=D0(Z,_),X.tables.os2=fH.parse(L.data,L.offset);break;case"post":L=D0(Z,_),X.tables.post=lH.parse(L.data,L.offset);break;case"prep":L=D0(Z,_),E=new r.Parser(L.data,L.offset),X.tables.prep=E.parseByteList(_.length);break;case"glyf":V=_;break;case"loca":O=_;break;case"CFF ":z=_;break;case"kern":q=_;break;case"GDEF":$=_;break;case"GPOS":B=_;break;case"GSUB":M=_;break;case"meta":j=_;break}}if(V&&O){var T=Y===0,D=D0(Z,O),P=xH.parse(D.data,D.offset,X.numGlyphs,T),g=D0(Z,V);X.glyphs=UJ.parse(g.data,g.offset,P,X,K)}else if(z){var u=D0(Z,z);QH.parse(u.data,u.offset,X,K)}else throw Error("Font doesn't contain TrueType or CFF outlines.");var n=D0(Z,G);if(TH.parse(X,n.data,n.offset,X.numberOfHMetrics,X.numGlyphs,X.glyphs,K),jQ(X,K),q){var i=D0(Z,q);X.kerningPairs=vH.parse(i.data,i.offset)}else X.kerningPairs={};if($){var C=D0(Z,$);X.tables.gdef=qH.parse(C.data,C.offset)}if(B){var S=D0(Z,B);X.tables.gpos=NH.parse(S.data,S.offset),X.position.init()}if(M){var I=D0(Z,M);X.tables.gsub=jH.parse(I.data,I.offset)}if(U){var f=D0(Z,U);X.tables.fvar=zH.parse(f.data,f.offset,X.names)}if(j){var l=D0(Z,j);X.tables.meta=pH.parse(l.data,l.offset),X.metas=X.tables.meta}return X}function rH(){}function nH(){}var sH=Object.freeze({__proto__:null,Font:h0,Glyph:T1,Path:b0,_parse:r,parse:oH,load:rH,loadSync:nH}),N5=sH;var{create:tH,defineProperty:b5,getOwnPropertyDescriptor:eH,getOwnPropertyNames:Jw,getPrototypeOf:Kw}=Object,Yw=Object.prototype.hasOwnProperty,F4=(J,K)=>()=>(J&&(K=J(J=0)),K),t=(J,K)=>()=>(K||J((K={exports:{}}).exports,K),K.exports),E4=(J,K)=>{for(var Y in K)b5(J,Y,{get:K[Y],enumerable:!0})},iJ=(J,K,Y,X)=>{if(K&&typeof K=="object"||typeof K=="function")for(let Z of Jw(K))!Yw.call(J,Z)&&Z!==Y&&b5(J,Z,{get:()=>K[Z],enumerable:!(X=eH(K,Z))||X.enumerable});return J},Xw=(J,K,Y)=>(Y=J!=null?tH(Kw(J)):{},iJ(K||!J||!J.__esModule?b5(Y,"default",{value:J,enumerable:!0}):Y,J)),g5=(J)=>iJ(b5({},"__esModule",{value:!0}),J),oJ={};E4(oJ,{getYogaModule:()=>Zw});async function Zw(){let{default:J}=await import("../chunk-f2qwngan.js");return J()}var Qw=F4(()=>{}),rJ=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y){if(Y=`${Y}`,Y==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(Y))return Y.replace(/^[+-]?/,(X)=>X==="-"?"":"-");if(Y.includes("var(")||Y.includes("calc("))return`calc(${Y} * -1)`}}),Ww=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});var K=["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"]}),Hw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y,X){return Y===void 0?X:Array.isArray(Y)?Y:[...new Set(X.filter((Z)=>Y!==!1&&Y[Z]!==!1).concat(Object.keys(Y).filter((Z)=>Y[Z]!==!1)))]}}),nJ=t((J,K)=>{K.exports={content:[],presets:[],darkMode:"media",theme:{screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:({colors:Y})=>({inherit:Y.inherit,current:Y.current,transparent:Y.transparent,black:Y.black,white:Y.white,slate:Y.slate,gray:Y.gray,zinc:Y.zinc,neutral:Y.neutral,stone:Y.stone,red:Y.red,orange:Y.orange,amber:Y.amber,yellow:Y.yellow,lime:Y.lime,green:Y.green,emerald:Y.emerald,teal:Y.teal,cyan:Y.cyan,sky:Y.sky,blue:Y.blue,indigo:Y.indigo,violet:Y.violet,purple:Y.purple,fuchsia:Y.fuchsia,pink:Y.pink,rose:Y.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",0.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:Y})=>Y("blur"),backdropBrightness:({theme:Y})=>Y("brightness"),backdropContrast:({theme:Y})=>Y("contrast"),backdropGrayscale:({theme:Y})=>Y("grayscale"),backdropHueRotate:({theme:Y})=>Y("hueRotate"),backdropInvert:({theme:Y})=>Y("invert"),backdropOpacity:({theme:Y})=>Y("opacity"),backdropSaturate:({theme:Y})=>Y("saturate"),backdropSepia:({theme:Y})=>Y("sepia"),backgroundColor:({theme:Y})=>Y("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:Y})=>Y("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:Y})=>({...Y("colors"),DEFAULT:Y("colors.gray.200","currentColor")}),borderOpacity:({theme:Y})=>Y("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:Y})=>({...Y("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:Y})=>Y("colors"),caretColor:({theme:Y})=>Y("colors"),accentColor:({theme:Y})=>({...Y("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:Y})=>Y("borderColor"),divideOpacity:({theme:Y})=>Y("borderOpacity"),divideWidth:({theme:Y})=>Y("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:Y})=>Y("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:Y})=>({auto:"auto",...Y("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:Y})=>Y("spacing"),gradientColorStops:({theme:Y})=>Y("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:Y})=>({auto:"auto",...Y("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:Y})=>({auto:"auto",...Y("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:Y})=>({auto:"auto",...Y("spacing")}),maxHeight:({theme:Y})=>({...Y("spacing"),full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:Y,breakpoints:X})=>({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",...X(Y("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:Y})=>Y("spacing"),placeholderColor:({theme:Y})=>Y("colors"),placeholderOpacity:({theme:Y})=>Y("opacity"),outlineColor:({theme:Y})=>Y("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:Y})=>({DEFAULT:Y("colors.blue.500","#3b82f6"),...Y("colors")}),ringOffsetColor:({theme:Y})=>Y("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:Y})=>({DEFAULT:"0.5",...Y("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:Y})=>({...Y("spacing")}),scrollPadding:({theme:Y})=>Y("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:Y})=>({...Y("spacing")}),stroke:({theme:Y})=>Y("colors"),strokeWidth:{0:"0",1:"1",2:"2"},textColor:({theme:Y})=>Y("colors"),textDecorationColor:({theme:Y})=>Y("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:Y})=>({...Y("spacing")}),textOpacity:({theme:Y})=>Y("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",1000:"1000ms"},transitionDuration:{DEFAULT:"150ms",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1000:"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:Y})=>({...Y("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:Y})=>({auto:"auto",...Y("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:[]}}),h5={};E4(h5,{default:()=>sJ});var sJ,_4=F4(()=>{sJ={info(J,K){console.info(...Array.isArray(J)?[J]:[K,J])},warn(J,K){console.warn(...Array.isArray(J)?[J]:[K,J])},risk(J,K){console.error(...Array.isArray(J)?[J]:[K,J])}}}),ww=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Z});var K=Y((_4(),g5(h5)));function Y(Q){return Q&&Q.__esModule?Q:{default:Q}}function X({version:Q,from:W,to:w}){K.default.warn(`${W}-color-renamed`,[`As of Tailwind CSS ${Q}, \`${W}\` has been renamed to \`${w}\`.`,"Update your configuration file to silence this warning."])}var Z={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 X({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return X({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return X({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return X({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return X({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}),zw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"defaults",{enumerable:!0,get:()=>K});function K(Y,...X){for(let W of X){for(let w in W){var Z;!(Y==null||(Z=Y.hasOwnProperty)===null||Z===void 0)&&Z.call(Y,w)||(Y[w]=W[w])}for(let w of Object.getOwnPropertySymbols(W)){var Q;!(Y==null||(Q=Y.hasOwnProperty)===null||Q===void 0)&&Q.call(Y,w)||(Y[w]=W[w])}}return Y}}),Uw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"toPath",{enumerable:!0,get:()=>K});function K(Y){if(Array.isArray(Y))return Y;let X=Y.split("[").length-1,Z=Y.split("]").length-1;if(X!==Z)throw Error(`Path is invalid. Has unbalanced brackets: ${Y}`);return Y.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}}),Vw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"normalizeConfig",{enumerable:!0,get:()=>Z});var K=X((_4(),g5(h5)));function Y(Q){if(typeof WeakMap!="function")return null;var W=new WeakMap,w=new WeakMap;return(Y=function(H){return H?w:W})(Q)}function X(Q,W){if(!W&&Q&&Q.__esModule)return Q;if(Q===null||typeof Q!="object"&&typeof Q!="function")return{default:Q};var w=Y(W);if(w&&w.has(Q))return w.get(Q);var H={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var U in Q)if(U!=="default"&&Object.prototype.hasOwnProperty.call(Q,U)){var V=z?Object.getOwnPropertyDescriptor(Q,U):null;V&&(V.get||V.set)?Object.defineProperty(H,U,V):H[U]=Q[U]}return H.default=Q,w&&w.set(Q,H),H}function Z(Q){if((()=>{if(Q.purge||!Q.content||!Array.isArray(Q.content)&&!(typeof Q.content=="object"&&Q.content!==null))return!1;if(Array.isArray(Q.content))return Q.content.every((w)=>typeof w=="string"?!0:!(typeof(w==null?void 0:w.raw)!="string"||w!=null&&w.extension&&typeof(w==null?void 0:w.extension)!="string"));if(typeof Q.content=="object"&&Q.content!==null){if(Object.keys(Q.content).some((w)=>!["files","extract","transform"].includes(w)))return!1;if(Array.isArray(Q.content.files)){if(!Q.content.files.every((w)=>typeof w=="string"?!0:!(typeof(w==null?void 0:w.raw)!="string"||w!=null&&w.extension&&typeof(w==null?void 0:w.extension)!="string")))return!1;if(typeof Q.content.extract=="object"){for(let w of Object.values(Q.content.extract))if(typeof w!="function")return!1}else if(!(Q.content.extract===void 0||typeof Q.content.extract=="function"))return!1;if(typeof Q.content.transform=="object"){for(let w of Object.values(Q.content.transform))if(typeof w!="function")return!1}else if(!(Q.content.transform===void 0||typeof Q.content.transform=="function"))return!1}return!0}return!1})()||K.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"]),Q.safelist=(()=>{var w;let{content:H,purge:z,safelist:U}=Q;return Array.isArray(U)?U:Array.isArray(H==null?void 0:H.safelist)?H.safelist:Array.isArray(z==null?void 0:z.safelist)?z.safelist:Array.isArray(z==null||(w=z.options)===null||w===void 0?void 0:w.safelist)?z.options.safelist:[]})(),typeof Q.prefix=="function")K.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"]),Q.prefix="";else{var W;Q.prefix=(W=Q.prefix)!==null&&W!==void 0?W:""}Q.content={files:(()=>{let{content:w,purge:H}=Q;return Array.isArray(H)?H:Array.isArray(H==null?void 0:H.content)?H.content:Array.isArray(w)?w:Array.isArray(w==null?void 0:w.content)?w.content:Array.isArray(w==null?void 0:w.files)?w.files:[]})(),extract:(()=>{let w=(()=>{var U,V,$,B,M,G,q,O,j,E;return!((U=Q.purge)===null||U===void 0)&&U.extract?Q.purge.extract:!((V=Q.content)===null||V===void 0)&&V.extract?Q.content.extract:!(($=Q.purge)===null||$===void 0||(B=$.extract)===null||B===void 0)&&B.DEFAULT?Q.purge.extract.DEFAULT:!((M=Q.content)===null||M===void 0||(G=M.extract)===null||G===void 0)&&G.DEFAULT?Q.content.extract.DEFAULT:!((q=Q.purge)===null||q===void 0||(O=q.options)===null||O===void 0)&&O.extractors?Q.purge.options.extractors:!((j=Q.content)===null||j===void 0||(E=j.options)===null||E===void 0)&&E.extractors?Q.content.options.extractors:{}})(),H={},z=(()=>{var U,V,$,B;if(!((U=Q.purge)===null||U===void 0||(V=U.options)===null||V===void 0)&&V.defaultExtractor)return Q.purge.options.defaultExtractor;if(!(($=Q.content)===null||$===void 0||(B=$.options)===null||B===void 0)&&B.defaultExtractor)return Q.content.options.defaultExtractor})();if(z!==void 0&&(H.DEFAULT=z),typeof w=="function")H.DEFAULT=w;else if(Array.isArray(w))for(let{extensions:U,extractor:V}of w??[])for(let $ of U)H[$]=V;else typeof w=="object"&&w!==null&&Object.assign(H,w);return H})(),transform:(()=>{let w=(()=>{var z,U,V,$,B,M;return!((z=Q.purge)===null||z===void 0)&&z.transform?Q.purge.transform:!((U=Q.content)===null||U===void 0)&&U.transform?Q.content.transform:!((V=Q.purge)===null||V===void 0||($=V.transform)===null||$===void 0)&&$.DEFAULT?Q.purge.transform.DEFAULT:!((B=Q.content)===null||B===void 0||(M=B.transform)===null||M===void 0)&&M.DEFAULT?Q.content.transform.DEFAULT:{}})(),H={};return typeof w=="function"&&(H.DEFAULT=w),typeof w=="object"&&w!==null&&Object.assign(H,w),H})()};for(let w of Q.content.files)if(typeof w=="string"&&/{([^,]*?)}/g.test(w)){K.default.warn("invalid-glob-braces",[`The glob pattern ${(0,K.dim)(w)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,K.dim)(w.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return Q}}),$w=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y){if(Object.prototype.toString.call(Y)!=="[object Object]")return!1;let X=Object.getPrototypeOf(Y);return X===null||X===Object.prototype}}),Bw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"cloneDeep",{enumerable:!0,get:()=>K});function K(Y){return Array.isArray(Y)?Y.map((X)=>K(X)):typeof Y=="object"&&Y!==null?Object.fromEntries(Object.entries(Y).map(([X,Z])=>[X,K(Z)])):Y}}),aJ=t((J,K)=>{J.__esModule=!0,J.default=Z;function Y(Q){for(var W=Q.toLowerCase(),w="",H=!1,z=0;z<6&&W[z]!==void 0;z++){var U=W.charCodeAt(z),V=U>=97&&U<=102||U>=48&&U<=57;if(H=U===32,!V)break;w+=W[z]}if(w.length!==0){var $=parseInt(w,16),B=$>=55296&&$<=57343;return B||$===0||$>1114111?["\uFFFD",w.length+(H?1:0)]:[String.fromCodePoint($),w.length+(H?1:0)]}}var X=/\\/;function Z(Q){var W=X.test(Q);if(!W)return Q;for(var w="",H=0;H<Q.length;H++){if(Q[H]==="\\"){var z=Y(Q.slice(H+1,H+7));if(z!==void 0){w+=z[0],H+=z[1];continue}if(Q[H+1]==="\\"){w+="\\",H++;continue}Q.length===H+1&&(w+=Q[H]);continue}w+=Q[H]}return w}K.exports=J.default}),Aw=t((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){for(var Z=arguments.length,Q=Array(Z>1?Z-1:0),W=1;W<Z;W++)Q[W-1]=arguments[W];for(;Q.length>0;){var w=Q.shift();if(!X[w])return;X=X[w]}return X}K.exports=J.default}),Gw=t((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){for(var Z=arguments.length,Q=Array(Z>1?Z-1:0),W=1;W<Z;W++)Q[W-1]=arguments[W];for(;Q.length>0;){var w=Q.shift();X[w]||(X[w]={}),X=X[w]}}K.exports=J.default}),qw=t((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){for(var Z="",Q=X.indexOf("/*"),W=0;Q>=0;){Z=Z+X.slice(W,Q);var w=X.indexOf("*/",Q+2);if(w<0)return Z;W=w+2,Q=X.indexOf("/*",W)}return Z=Z+X.slice(W),Z}K.exports=J.default}),m5=t((J)=>{J.__esModule=!0,J.stripComments=J.ensureObject=J.getProp=J.unesc=void 0;var K=Q(aJ());J.unesc=K.default;var Y=Q(Aw());J.getProp=Y.default;var X=Q(Gw());J.ensureObject=X.default;var Z=Q(qw());J.stripComments=Z.default;function Q(W){return W&&W.__esModule?W:{default:W}}}),u1=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=m5();function X(w,H){for(var z=0;z<H.length;z++){var U=H[z];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(w,U.key,U)}}function Z(w,H,z){return H&&X(w.prototype,H),z&&X(w,z),w}var Q=function w(H,z){if(typeof H!="object"||H===null)return H;var U=new H.constructor;for(var V in H)if(H.hasOwnProperty(V)){var $=H[V],B=typeof $;V==="parent"&&B==="object"?z&&(U[V]=z):$ instanceof Array?U[V]=$.map(function(M){return w(M,U)}):U[V]=w($,U)}return U},W=function(){function w(z){z===void 0&&(z={}),Object.assign(this,z),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var H=w.prototype;return H.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},H.replaceWith=function(){if(this.parent){for(var z in arguments)this.parent.insertBefore(this,arguments[z]);this.remove()}return this},H.next=function(){return this.parent.at(this.parent.index(this)+1)},H.prev=function(){return this.parent.at(this.parent.index(this)-1)},H.clone=function(z){z===void 0&&(z={});var U=Q(this);for(var V in z)U[V]=z[V];return U},H.appendToPropertyAndEscape=function(z,U,V){this.raws||(this.raws={});var $=this[z],B=this.raws[z];this[z]=$+U,B||V!==U?this.raws[z]=(B||$)+V:delete this.raws[z]},H.setPropertyAndEscape=function(z,U,V){this.raws||(this.raws={}),this[z]=U,this.raws[z]=V},H.setPropertyWithoutEscape=function(z,U){this[z]=U,this.raws&&delete this.raws[z]},H.isAtPosition=function(z,U){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>z||this.source.end.line<z||this.source.start.line===z&&this.source.start.column>U||this.source.end.line===z&&this.source.end.column<U)},H.stringifyProperty=function(z){return this.raws&&this.raws[z]||this[z]},H.valueToString=function(){return String(this.stringifyProperty("value"))},H.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},Z(w,[{key:"rawSpaceBefore",get:function(){var z=this.raws&&this.raws.spaces&&this.raws.spaces.before;return z===void 0&&(z=this.spaces&&this.spaces.before),z||""},set:function(z){(0,Y.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=z}},{key:"rawSpaceAfter",get:function(){var z=this.raws&&this.raws.spaces&&this.raws.spaces.after;return z===void 0&&(z=this.spaces.after),z||""},set:function(z){(0,Y.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=z}}]),w}();J.default=W,K.exports=J.default}),m0=t((J)=>{J.__esModule=!0,J.UNIVERSAL=J.ATTRIBUTE=J.CLASS=J.COMBINATOR=J.COMMENT=J.ID=J.NESTING=J.PSEUDO=J.ROOT=J.SELECTOR=J.STRING=J.TAG=void 0;var K="tag";J.TAG=K;var Y="string";J.STRING=Y;var X="selector";J.SELECTOR=X;var Z="root";J.ROOT=Z;var Q="pseudo";J.PSEUDO=Q;var W="nesting";J.NESTING=W;var w="id";J.ID=w;var H="comment";J.COMMENT=H;var z="combinator";J.COMBINATOR=z;var U="class";J.CLASS=U;var V="attribute";J.ATTRIBUTE=V;var $="universal";J.UNIVERSAL=$}),R4=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=W(u1()),X=Q(m0());function Z(){if(typeof WeakMap!="function")return null;var G=new WeakMap;return Z=function(){return G},G}function Q(G){if(G&&G.__esModule)return G;if(G===null||typeof G!="object"&&typeof G!="function")return{default:G};var q=Z();if(q&&q.has(G))return q.get(G);var O={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in G)if(Object.prototype.hasOwnProperty.call(G,E)){var R=j?Object.getOwnPropertyDescriptor(G,E):null;R&&(R.get||R.set)?Object.defineProperty(O,E,R):O[E]=G[E]}return O.default=G,q&&q.set(G,O),O}function W(G){return G&&G.__esModule?G:{default:G}}function w(G,q){var O;if(typeof Symbol>"u"||G[Symbol.iterator]==null){if(Array.isArray(G)||(O=H(G))||q&&G&&typeof G.length=="number"){O&&(G=O);var j=0;return function(){return j>=G.length?{done:!0}:{done:!1,value:G[j++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
62
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return O=G[Symbol.iterator](),O.next.bind(O)}function H(G,q){if(G){if(typeof G=="string")return z(G,q);var O=Object.prototype.toString.call(G).slice(8,-1);if(O==="Object"&&G.constructor&&(O=G.constructor.name),O==="Map"||O==="Set")return Array.from(G);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return z(G,q)}}function z(G,q){(q==null||q>G.length)&&(q=G.length);for(var O=0,j=Array(q);O<q;O++)j[O]=G[O];return j}function U(G,q){for(var O=0;O<q.length;O++){var j=q[O];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(G,j.key,j)}}function V(G,q,O){return q&&U(G.prototype,q),O&&U(G,O),G}function $(G,q){G.prototype=Object.create(q.prototype),G.prototype.constructor=G,B(G,q)}function B(G,q){return B=Object.setPrototypeOf||function(O,j){return O.__proto__=j,O},B(G,q)}var M=function(G){$(q,G);function q(j){var E;return E=G.call(this,j)||this,E.nodes||(E.nodes=[]),E}var O=q.prototype;return O.append=function(j){return j.parent=this,this.nodes.push(j),this},O.prepend=function(j){return j.parent=this,this.nodes.unshift(j),this},O.at=function(j){return this.nodes[j]},O.index=function(j){return typeof j=="number"?j:this.nodes.indexOf(j)},O.removeChild=function(j){j=this.index(j),this.at(j).parent=void 0,this.nodes.splice(j,1);var E;for(var R in this.indexes)E=this.indexes[R],E>=j&&(this.indexes[R]=E-1);return this},O.removeAll=function(){for(var j=w(this.nodes),E;!(E=j()).done;){var R=E.value;R.parent=void 0}return this.nodes=[],this},O.empty=function(){return this.removeAll()},O.insertAfter=function(j,E){E.parent=this;var R=this.index(j);this.nodes.splice(R+1,0,E),E.parent=this;var _;for(var L in this.indexes)_=this.indexes[L],R<=_&&(this.indexes[L]=_+1);return this},O.insertBefore=function(j,E){E.parent=this;var R=this.index(j);this.nodes.splice(R,0,E),E.parent=this;var _;for(var L in this.indexes)_=this.indexes[L],_<=R&&(this.indexes[L]=_+1);return this},O._findChildAtPosition=function(j,E){var R=void 0;return this.each(function(_){if(_.atPosition){var L=_.atPosition(j,E);if(L)return R=L,!1}else if(_.isAtPosition(j,E))return R=_,!1}),R},O.atPosition=function(j,E){if(this.isAtPosition(j,E))return this._findChildAtPosition(j,E)||this},O._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))},O.each=function(j){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var E=this.lastEach;if(this.indexes[E]=0,!!this.length){for(var R,_;this.indexes[E]<this.length&&(R=this.indexes[E],_=j(this.at(R),R),_!==!1);)this.indexes[E]+=1;if(delete this.indexes[E],_===!1)return!1}},O.walk=function(j){return this.each(function(E,R){var _=j(E,R);if(_!==!1&&E.length&&(_=E.walk(j)),_===!1)return!1})},O.walkAttributes=function(j){var E=this;return this.walk(function(R){if(R.type===X.ATTRIBUTE)return j.call(E,R)})},O.walkClasses=function(j){var E=this;return this.walk(function(R){if(R.type===X.CLASS)return j.call(E,R)})},O.walkCombinators=function(j){var E=this;return this.walk(function(R){if(R.type===X.COMBINATOR)return j.call(E,R)})},O.walkComments=function(j){var E=this;return this.walk(function(R){if(R.type===X.COMMENT)return j.call(E,R)})},O.walkIds=function(j){var E=this;return this.walk(function(R){if(R.type===X.ID)return j.call(E,R)})},O.walkNesting=function(j){var E=this;return this.walk(function(R){if(R.type===X.NESTING)return j.call(E,R)})},O.walkPseudos=function(j){var E=this;return this.walk(function(R){if(R.type===X.PSEUDO)return j.call(E,R)})},O.walkTags=function(j){var E=this;return this.walk(function(R){if(R.type===X.TAG)return j.call(E,R)})},O.walkUniversals=function(j){var E=this;return this.walk(function(R){if(R.type===X.UNIVERSAL)return j.call(E,R)})},O.split=function(j){var E=this,R=[];return this.reduce(function(_,L,T){var D=j.call(E,L);return R.push(L),D?(_.push(R),R=[]):T===E.length-1&&_.push(R),_},[])},O.map=function(j){return this.nodes.map(j)},O.reduce=function(j,E){return this.nodes.reduce(j,E)},O.every=function(j){return this.nodes.every(j)},O.some=function(j){return this.nodes.some(j)},O.filter=function(j){return this.nodes.filter(j)},O.sort=function(j){return this.nodes.sort(j)},O.toString=function(){return this.map(String).join("")},V(q,[{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}}]),q}(Y.default);J.default=M,K.exports=J.default}),tJ=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(R4()),X=m0();function Z(U){return U&&U.__esModule?U:{default:U}}function Q(U,V){for(var $=0;$<V.length;$++){var B=V[$];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(U,B.key,B)}}function W(U,V,$){return V&&Q(U.prototype,V),$&&Q(U,$),U}function w(U,V){U.prototype=Object.create(V.prototype),U.prototype.constructor=U,H(U,V)}function H(U,V){return H=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},H(U,V)}var z=function(U){w(V,U);function V(B){var M;return M=U.call(this,B)||this,M.type=X.ROOT,M}var $=V.prototype;return $.toString=function(){var B=this.reduce(function(M,G){return M.push(String(G)),M},[]).join(",");return this.trailingComma?B+",":B},$.error=function(B,M){return this._error?this._error(B,M):Error(B)},W(V,[{key:"errorGenerator",set:function(B){this._error=B}}]),V}(Y.default);J.default=z,K.exports=J.default}),eJ=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(R4()),X=m0();function Z(H){return H&&H.__esModule?H:{default:H}}function Q(H,z){H.prototype=Object.create(z.prototype),H.prototype.constructor=H,W(H,z)}function W(H,z){return W=Object.setPrototypeOf||function(U,V){return U.__proto__=V,U},W(H,z)}var w=function(H){Q(z,H);function z(U){var V;return V=H.call(this,U)||this,V.type=X.SELECTOR,V}return z}(Y.default);J.default=w,K.exports=J.default}),D4=t((J,K)=>{var Y={},X=Y.hasOwnProperty,Z=function(z,U){if(!z)return U;var V={};for(var $ in U)V[$]=X.call(z,$)?z[$]:U[$];return V},Q=/[ -,\.\/:-@\[-\^`\{-~]/,W=/[ -,\.\/:-@\[\]\^`\{-~]/,w=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,H=function z(U,V){V=Z(V,z.options),V.quotes!="single"&&V.quotes!="double"&&(V.quotes="single");for(var $=V.quotes=="double"?'"':"'",B=V.isIdentifier,M=U.charAt(0),G="",q=0,O=U.length;q<O;){var j=U.charAt(q++),E=j.charCodeAt(),R=void 0;if(E<32||E>126){if(E>=55296&&E<=56319&&q<O){var _=U.charCodeAt(q++);(_&64512)==56320?E=((E&1023)<<10)+(_&1023)+65536:q--}R="\\"+E.toString(16).toUpperCase()+" "}else V.escapeEverything?Q.test(j)?R="\\"+j:R="\\"+E.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(j)?R="\\"+E.toString(16).toUpperCase()+" ":j=="\\"||!B&&(j=='"'&&$==j||j=="'"&&$==j)||B&&W.test(j)?R="\\"+j:R=j;G+=R}return B&&(/^-[-\d]/.test(G)?G="\\-"+G.slice(1):/\d/.test(M)&&(G="\\3"+M+" "+G.slice(1))),G=G.replace(w,function(L,T,D){return T&&T.length%2?L:(T||"")+D}),!B&&V.wrap?$+G+$:G};H.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},H.version="3.0.0",K.exports=H}),JK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=W(D4()),X=m5(),Z=W(u1()),Q=m0();function W($){return $&&$.__esModule?$:{default:$}}function w($,B){for(var M=0;M<B.length;M++){var G=B[M];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty($,G.key,G)}}function H($,B,M){return B&&w($.prototype,B),M&&w($,M),$}function z($,B){$.prototype=Object.create(B.prototype),$.prototype.constructor=$,U($,B)}function U($,B){return U=Object.setPrototypeOf||function(M,G){return M.__proto__=G,M},U($,B)}var V=function($){z(B,$);function B(G){var q;return q=$.call(this,G)||this,q.type=Q.CLASS,q._constructed=!0,q}var M=B.prototype;return M.valueToString=function(){return"."+$.prototype.valueToString.call(this)},H(B,[{key:"value",get:function(){return this._value},set:function(G){if(this._constructed){var q=(0,Y.default)(G,{isIdentifier:!0});q!==G?((0,X.ensureObject)(this,"raws"),this.raws.value=q):this.raws&&delete this.raws.value}this._value=G}}]),B}(Z.default);J.default=V,K.exports=J.default}),KK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(u1()),X=m0();function Z(H){return H&&H.__esModule?H:{default:H}}function Q(H,z){H.prototype=Object.create(z.prototype),H.prototype.constructor=H,W(H,z)}function W(H,z){return W=Object.setPrototypeOf||function(U,V){return U.__proto__=V,U},W(H,z)}var w=function(H){Q(z,H);function z(U){var V;return V=H.call(this,U)||this,V.type=X.COMMENT,V}return z}(Y.default);J.default=w,K.exports=J.default}),YK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(u1()),X=m0();function Z(H){return H&&H.__esModule?H:{default:H}}function Q(H,z){H.prototype=Object.create(z.prototype),H.prototype.constructor=H,W(H,z)}function W(H,z){return W=Object.setPrototypeOf||function(U,V){return U.__proto__=V,U},W(H,z)}var w=function(H){Q(z,H);function z(V){var $;return $=H.call(this,V)||this,$.type=X.ID,$}var U=z.prototype;return U.valueToString=function(){return"#"+H.prototype.valueToString.call(this)},z}(Y.default);J.default=w,K.exports=J.default}),I4=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Q(D4()),X=m5(),Z=Q(u1());function Q(V){return V&&V.__esModule?V:{default:V}}function W(V,$){for(var B=0;B<$.length;B++){var M=$[B];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(V,M.key,M)}}function w(V,$,B){return $&&W(V.prototype,$),B&&W(V,B),V}function H(V,$){V.prototype=Object.create($.prototype),V.prototype.constructor=V,z(V,$)}function z(V,$){return z=Object.setPrototypeOf||function(B,M){return B.__proto__=M,B},z(V,$)}var U=function(V){H($,V);function $(){return V.apply(this,arguments)||this}var B=$.prototype;return B.qualifiedName=function(M){return this.namespace?this.namespaceString+"|"+M:M},B.valueToString=function(){return this.qualifiedName(V.prototype.valueToString.call(this))},w($,[{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 G=(0,Y.default)(M,{isIdentifier:!0});this._namespace=M,G!==M?((0,X.ensureObject)(this,"raws"),this.raws.namespace=G):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""}}]),$}(Z.default);J.default=U,K.exports=J.default}),XK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(I4()),X=m0();function Z(H){return H&&H.__esModule?H:{default:H}}function Q(H,z){H.prototype=Object.create(z.prototype),H.prototype.constructor=H,W(H,z)}function W(H,z){return W=Object.setPrototypeOf||function(U,V){return U.__proto__=V,U},W(H,z)}var w=function(H){Q(z,H);function z(U){var V;return V=H.call(this,U)||this,V.type=X.TAG,V}return z}(Y.default);J.default=w,K.exports=J.default}),ZK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(u1()),X=m0();function Z(H){return H&&H.__esModule?H:{default:H}}function Q(H,z){H.prototype=Object.create(z.prototype),H.prototype.constructor=H,W(H,z)}function W(H,z){return W=Object.setPrototypeOf||function(U,V){return U.__proto__=V,U},W(H,z)}var w=function(H){Q(z,H);function z(U){var V;return V=H.call(this,U)||this,V.type=X.STRING,V}return z}(Y.default);J.default=w,K.exports=J.default}),QK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(R4()),X=m0();function Z(H){return H&&H.__esModule?H:{default:H}}function Q(H,z){H.prototype=Object.create(z.prototype),H.prototype.constructor=H,W(H,z)}function W(H,z){return W=Object.setPrototypeOf||function(U,V){return U.__proto__=V,U},W(H,z)}var w=function(H){Q(z,H);function z(V){var $;return $=H.call(this,V)||this,$.type=X.PSEUDO,$}var U=z.prototype;return U.toString=function(){var V=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),V,this.rawSpaceAfter].join("")},z}(Y.default);J.default=w,K.exports=J.default}),Mw=t((J,K)=>{K.exports=function(Y,X){return function(...Z){return console.warn(X),Y(...Z)}}}),WK=t((J)=>{J.__esModule=!0,J.unescapeValue=q,J.default=void 0;var K=W(D4()),Y=W(aJ()),X=W(I4()),Z=m0(),Q;function W(_){return _&&_.__esModule?_:{default:_}}function w(_,L){for(var T=0;T<L.length;T++){var D=L[T];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(_,D.key,D)}}function H(_,L,T){return L&&w(_.prototype,L),T&&w(_,T),_}function z(_,L){_.prototype=Object.create(L.prototype),_.prototype.constructor=_,U(_,L)}function U(_,L){return U=Object.setPrototypeOf||function(T,D){return T.__proto__=D,T},U(_,L)}var V=Mw(),$=/^('|")([^]*)\1$/,B=V(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),M=V(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),G=V(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function q(_){var L=!1,T=null,D=_,P=D.match($);return P&&(T=P[1],D=P[2]),D=(0,Y.default)(D),D!==_&&(L=!0),{deprecatedUsage:L,unescaped:D,quoteMark:T}}function O(_){if(_.quoteMark!==void 0||_.value===void 0)return _;G();var L=q(_.value),T=L.quoteMark,D=L.unescaped;return _.raws||(_.raws={}),_.raws.value===void 0&&(_.raws.value=_.value),_.value=D,_.quoteMark=T,_}var j=function(_){z(L,_);function L(D){var P;return D===void 0&&(D={}),P=_.call(this,O(D))||this,P.type=Z.ATTRIBUTE,P.raws=P.raws||{},Object.defineProperty(P.raws,"unquoted",{get:V(function(){return P.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:V(function(){return P.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),P._constructed=!0,P}var T=L.prototype;return T.getQuotedValue=function(D){D===void 0&&(D={});var P=this._determineQuoteMark(D),g=E[P],u=(0,K.default)(this._value,g);return u},T._determineQuoteMark=function(D){return D.smart?this.smartQuoteMark(D):this.preferredQuoteMark(D)},T.setValue=function(D,P){P===void 0&&(P={}),this._value=D,this._quoteMark=this._determineQuoteMark(P),this._syncRawValue()},T.smartQuoteMark=function(D){var P=this.value,g=P.replace(/[^']/g,"").length,u=P.replace(/[^"]/g,"").length;if(g+u===0){var n=(0,K.default)(P,{isIdentifier:!0});if(n===P)return L.NO_QUOTE;var i=this.preferredQuoteMark(D);if(i===L.NO_QUOTE){var C=this.quoteMark||D.quoteMark||L.DOUBLE_QUOTE,S=E[C],I=(0,K.default)(P,S);if(I.length<n.length)return C}return i}else return u===g?this.preferredQuoteMark(D):u<g?L.DOUBLE_QUOTE:L.SINGLE_QUOTE},T.preferredQuoteMark=function(D){var P=D.preferCurrentQuoteMark?this.quoteMark:D.quoteMark;return P===void 0&&(P=D.preferCurrentQuoteMark?D.quoteMark:this.quoteMark),P===void 0&&(P=L.DOUBLE_QUOTE),P},T._syncRawValue=function(){var D=(0,K.default)(this._value,E[this.quoteMark]);D===this._value?this.raws&&delete this.raws.value:this.raws.value=D},T._handleEscapes=function(D,P){if(this._constructed){var g=(0,K.default)(P,{isIdentifier:!0});g!==P?this.raws[D]=g:delete this.raws[D]}},T._spacesFor=function(D){var P={before:"",after:""},g=this.spaces[D]||{},u=this.raws.spaces&&this.raws.spaces[D]||{};return Object.assign(P,g,u)},T._stringFor=function(D,P,g){P===void 0&&(P=D),g===void 0&&(g=R);var u=this._spacesFor(P);return g(this.stringifyProperty(D),u)},T.offsetOf=function(D){var P=1,g=this._spacesFor("attribute");if(P+=g.before.length,D==="namespace"||D==="ns")return this.namespace?P:-1;if(D==="attributeNS"||(P+=this.namespaceString.length,this.namespace&&(P+=1),D==="attribute"))return P;P+=this.stringifyProperty("attribute").length,P+=g.after.length;var u=this._spacesFor("operator");P+=u.before.length;var n=this.stringifyProperty("operator");if(D==="operator")return n?P:-1;P+=n.length,P+=u.after.length;var i=this._spacesFor("value");P+=i.before.length;var C=this.stringifyProperty("value");if(D==="value")return C?P:-1;P+=C.length,P+=i.after.length;var S=this._spacesFor("insensitive");return P+=S.before.length,D==="insensitive"&&this.insensitive?P:-1},T.toString=function(){var D=this,P=[this.rawSpaceBefore,"["];return P.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(P.push(this._stringFor("operator")),P.push(this._stringFor("value")),P.push(this._stringFor("insensitiveFlag","insensitive",function(g,u){return g.length>0&&!D.quoted&&u.before.length===0&&!(D.spaces.value&&D.spaces.value.after)&&(u.before=" "),R(g,u)}))),P.push("]"),P.push(this.rawSpaceAfter),P.join("")},H(L,[{key:"quoted",get:function(){var D=this.quoteMark;return D==="'"||D==='"'},set:function(D){M()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(D){if(!this._constructed){this._quoteMark=D;return}this._quoteMark!==D&&(this._quoteMark=D,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(D){if(this._constructed){var P=q(D),g=P.deprecatedUsage,u=P.unescaped,n=P.quoteMark;if(g&&B(),u===this._value&&n===this._quoteMark)return;this._value=u,this._quoteMark=n,this._syncRawValue()}else this._value=D}},{key:"attribute",get:function(){return this._attribute},set:function(D){this._handleEscapes("attribute",D),this._attribute=D}}]),L}(X.default);J.default=j,j.NO_QUOTE=null,j.SINGLE_QUOTE="'",j.DOUBLE_QUOTE='"';var E=(Q={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},Q[null]={isIdentifier:!0},Q);function R(_,L){return""+L.before+_+L.after}}),HK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(I4()),X=m0();function Z(H){return H&&H.__esModule?H:{default:H}}function Q(H,z){H.prototype=Object.create(z.prototype),H.prototype.constructor=H,W(H,z)}function W(H,z){return W=Object.setPrototypeOf||function(U,V){return U.__proto__=V,U},W(H,z)}var w=function(H){Q(z,H);function z(U){var V;return V=H.call(this,U)||this,V.type=X.UNIVERSAL,V.value="*",V}return z}(Y.default);J.default=w,K.exports=J.default}),wK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(u1()),X=m0();function Z(H){return H&&H.__esModule?H:{default:H}}function Q(H,z){H.prototype=Object.create(z.prototype),H.prototype.constructor=H,W(H,z)}function W(H,z){return W=Object.setPrototypeOf||function(U,V){return U.__proto__=V,U},W(H,z)}var w=function(H){Q(z,H);function z(U){var V;return V=H.call(this,U)||this,V.type=X.COMBINATOR,V}return z}(Y.default);J.default=w,K.exports=J.default}),zK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(u1()),X=m0();function Z(H){return H&&H.__esModule?H:{default:H}}function Q(H,z){H.prototype=Object.create(z.prototype),H.prototype.constructor=H,W(H,z)}function W(H,z){return W=Object.setPrototypeOf||function(U,V){return U.__proto__=V,U},W(H,z)}var w=function(H){Q(z,H);function z(U){var V;return V=H.call(this,U)||this,V.type=X.NESTING,V.value="&",V}return z}(Y.default);J.default=w,K.exports=J.default}),Nw=t((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){return X.sort(function(Z,Q){return Z-Q})}K.exports=J.default}),UK=t((J)=>{J.__esModule=!0,J.combinator=J.word=J.comment=J.str=J.tab=J.newline=J.feed=J.cr=J.backslash=J.bang=J.slash=J.doubleQuote=J.singleQuote=J.space=J.greaterThan=J.pipe=J.equals=J.plus=J.caret=J.tilde=J.dollar=J.closeSquare=J.openSquare=J.closeParenthesis=J.openParenthesis=J.semicolon=J.colon=J.comma=J.at=J.asterisk=J.ampersand=void 0;var K=38;J.ampersand=K;var Y=42;J.asterisk=Y;var X=64;J.at=X;var Z=44;J.comma=Z;var Q=58;J.colon=Q;var W=59;J.semicolon=W;var w=40;J.openParenthesis=w;var H=41;J.closeParenthesis=H;var z=91;J.openSquare=z;var U=93;J.closeSquare=U;var V=36;J.dollar=V;var $=126;J.tilde=$;var B=94;J.caret=B;var M=43;J.plus=M;var G=61;J.equals=G;var q=124;J.pipe=q;var O=62;J.greaterThan=O;var j=32;J.space=j;var E=39;J.singleQuote=E;var R=34;J.doubleQuote=R;var _=47;J.slash=_;var L=33;J.bang=L;var T=92;J.backslash=T;var D=13;J.cr=D;var P=12;J.feed=P;var g=10;J.newline=g;var u=9;J.tab=u;var n=E;J.str=n;var i=-1;J.comment=i;var C=-2;J.word=C;var S=-3;J.combinator=S}),Ow=t((J)=>{J.__esModule=!0,J.default=M,J.FIELDS=void 0;var K=Q(UK()),Y,X;function Z(){if(typeof WeakMap!="function")return null;var G=new WeakMap;return Z=function(){return G},G}function Q(G){if(G&&G.__esModule)return G;if(G===null||typeof G!="object"&&typeof G!="function")return{default:G};var q=Z();if(q&&q.has(G))return q.get(G);var O={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in G)if(Object.prototype.hasOwnProperty.call(G,E)){var R=j?Object.getOwnPropertyDescriptor(G,E):null;R&&(R.get||R.set)?Object.defineProperty(O,E,R):O[E]=G[E]}return O.default=G,q&&q.set(G,O),O}var W=(Y={},Y[K.tab]=!0,Y[K.newline]=!0,Y[K.cr]=!0,Y[K.feed]=!0,Y),w=(X={},X[K.space]=!0,X[K.tab]=!0,X[K.newline]=!0,X[K.cr]=!0,X[K.feed]=!0,X[K.ampersand]=!0,X[K.asterisk]=!0,X[K.bang]=!0,X[K.comma]=!0,X[K.colon]=!0,X[K.semicolon]=!0,X[K.openParenthesis]=!0,X[K.closeParenthesis]=!0,X[K.openSquare]=!0,X[K.closeSquare]=!0,X[K.singleQuote]=!0,X[K.doubleQuote]=!0,X[K.plus]=!0,X[K.pipe]=!0,X[K.tilde]=!0,X[K.greaterThan]=!0,X[K.equals]=!0,X[K.dollar]=!0,X[K.caret]=!0,X[K.slash]=!0,X),H={},z="0123456789abcdefABCDEF";for(U=0;U<z.length;U++)H[z.charCodeAt(U)]=!0;var U;function V(G,q){var O=q,j;do{if(j=G.charCodeAt(O),w[j])return O-1;j===K.backslash?O=$(G,O)+1:O++}while(O<G.length);return O-1}function $(G,q){var O=q,j=G.charCodeAt(O+1);if(!W[j])if(H[j]){var E=0;do O++,E++,j=G.charCodeAt(O+1);while(H[j]&&E<6);E<6&&j===K.space&&O++}else O++;return O}var B={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};J.FIELDS=B;function M(G){var q=[],O=G.css.valueOf(),j=O,E=j.length,R=-1,_=1,L=0,T=0,D,P,g,u,n,i,C,S,I,f,l,c,p;function m(d,y){if(G.safe)O+=y,I=O.length-1;else throw G.error("Unclosed "+d,_,L-R,L)}for(;L<E;){switch(D=O.charCodeAt(L),D===K.newline&&(R=L,_+=1),D){case K.space:case K.tab:case K.newline:case K.cr:case K.feed:I=L;do I+=1,D=O.charCodeAt(I),D===K.newline&&(R=I,_+=1);while(D===K.space||D===K.newline||D===K.tab||D===K.cr||D===K.feed);p=K.space,u=_,g=I-R-1,T=I;break;case K.plus:case K.greaterThan:case K.tilde:case K.pipe:I=L;do I+=1,D=O.charCodeAt(I);while(D===K.plus||D===K.greaterThan||D===K.tilde||D===K.pipe);p=K.combinator,u=_,g=L-R,T=I;break;case K.asterisk:case K.ampersand:case K.bang:case K.comma:case K.equals:case K.dollar:case K.caret:case K.openSquare:case K.closeSquare:case K.colon:case K.semicolon:case K.openParenthesis:case K.closeParenthesis:I=L,p=D,u=_,g=L-R,T=I+1;break;case K.singleQuote:case K.doubleQuote:c=D===K.singleQuote?"'":'"',I=L;do for(n=!1,I=O.indexOf(c,I+1),I===-1&&m("quote",c),i=I;O.charCodeAt(i-1)===K.backslash;)i-=1,n=!n;while(n);p=K.str,u=_,g=L-R,T=I+1;break;default:D===K.slash&&O.charCodeAt(L+1)===K.asterisk?(I=O.indexOf("*/",L+2)+1,I===0&&m("comment","*/"),P=O.slice(L,I+1),S=P.split(`
|
|
63
|
+
`),C=S.length-1,C>0?(f=_+C,l=I-S[C].length):(f=_,l=R),p=K.comment,_=f,u=f,g=I-l):D===K.slash?(I=L,p=D,u=_,g=L-R,T=I+1):(I=V(O,L),p=K.word,u=_,g=I-R),T=I+1;break}q.push([p,_,L-R,u,g,L,T]),l&&(R=l,l=null),L=T}return q}}),jw=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=T(tJ()),X=T(eJ()),Z=T(JK()),Q=T(KK()),W=T(YK()),w=T(XK()),H=T(ZK()),z=T(QK()),U=L(WK()),V=T(HK()),$=T(wK()),B=T(zK()),M=T(Nw()),G=L(Ow()),q=L(UK()),O=L(m0()),j=m5(),E,R;function _(){if(typeof WeakMap!="function")return null;var m=new WeakMap;return _=function(){return m},m}function L(m){if(m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var d=_();if(d&&d.has(m))return d.get(m);var y={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in m)if(Object.prototype.hasOwnProperty.call(m,s)){var x=k?Object.getOwnPropertyDescriptor(m,s):null;x&&(x.get||x.set)?Object.defineProperty(y,s,x):y[s]=m[s]}return y.default=m,d&&d.set(m,y),y}function T(m){return m&&m.__esModule?m:{default:m}}function D(m,d){for(var y=0;y<d.length;y++){var k=d[y];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(m,k.key,k)}}function P(m,d,y){return d&&D(m.prototype,d),y&&D(m,y),m}var g=(E={},E[q.space]=!0,E[q.cr]=!0,E[q.feed]=!0,E[q.newline]=!0,E[q.tab]=!0,E),u=Object.assign({},g,(R={},R[q.comment]=!0,R));function n(m){return{line:m[G.FIELDS.START_LINE],column:m[G.FIELDS.START_COL]}}function i(m){return{line:m[G.FIELDS.END_LINE],column:m[G.FIELDS.END_COL]}}function C(m,d,y,k){return{start:{line:m,column:d},end:{line:y,column:k}}}function S(m){return C(m[G.FIELDS.START_LINE],m[G.FIELDS.START_COL],m[G.FIELDS.END_LINE],m[G.FIELDS.END_COL])}function I(m,d){if(m)return C(m[G.FIELDS.START_LINE],m[G.FIELDS.START_COL],d[G.FIELDS.END_LINE],d[G.FIELDS.END_COL])}function f(m,d){var y=m[d];if(typeof y=="string")return y.indexOf("\\")!==-1&&((0,j.ensureObject)(m,"raws"),m[d]=(0,j.unesc)(y),m.raws[d]===void 0&&(m.raws[d]=y)),m}function l(m,d){for(var y=-1,k=[];(y=m.indexOf(d,y+1))!==-1;)k.push(y);return k}function c(){var m=Array.prototype.concat.apply([],arguments);return m.filter(function(d,y){return y===m.indexOf(d)})}var p=function(){function m(y,k){k===void 0&&(k={}),this.rule=y,this.options=Object.assign({lossy:!1,safe:!1},k),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,G.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var s=I(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new Y.default({source:s}),this.root.errorGenerator=this._errorGenerator();var x=new X.default({source:{start:{line:1,column:1}}});this.root.append(x),this.current=x,this.loop()}var d=m.prototype;return d._errorGenerator=function(){var y=this;return function(k,s){return typeof y.rule=="string"?Error(k):y.rule.error(k,s)}},d.attribute=function(){var y=[],k=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[G.FIELDS.TYPE]!==q.closeSquare;)y.push(this.currToken),this.position++;if(this.currToken[G.FIELDS.TYPE]!==q.closeSquare)return this.expected("closing square bracket",this.currToken[G.FIELDS.START_POS]);var s=y.length,x={source:C(k[1],k[2],this.currToken[3],this.currToken[4]),sourceIndex:k[G.FIELDS.START_POS]};if(s===1&&!~[q.word].indexOf(y[0][G.FIELDS.TYPE]))return this.expected("attribute",y[0][G.FIELDS.START_POS]);for(var e=0,Y0="",X0="",J0=null,$0=!1;e<s;){var _0=y[e],K0=this.content(_0),A0=y[e+1];switch(_0[G.FIELDS.TYPE]){case q.space:if($0=!0,this.options.lossy)break;if(J0){(0,j.ensureObject)(x,"spaces",J0);var S0=x.spaces[J0].after||"";x.spaces[J0].after=S0+K0;var c0=(0,j.getProp)(x,"raws","spaces",J0,"after")||null;c0&&(x.raws.spaces[J0].after=c0+K0)}else Y0=Y0+K0,X0=X0+K0;break;case q.asterisk:if(A0[G.FIELDS.TYPE]===q.equals)x.operator=K0,J0="operator";else if((!x.namespace||J0==="namespace"&&!$0)&&A0){Y0&&((0,j.ensureObject)(x,"spaces","attribute"),x.spaces.attribute.before=Y0,Y0=""),X0&&((0,j.ensureObject)(x,"raws","spaces","attribute"),x.raws.spaces.attribute.before=Y0,X0=""),x.namespace=(x.namespace||"")+K0;var k0=(0,j.getProp)(x,"raws","namespace")||null;k0&&(x.raws.namespace+=K0),J0="namespace"}$0=!1;break;case q.dollar:if(J0==="value"){var I0=(0,j.getProp)(x,"raws","value");x.value+="$",I0&&(x.raws.value=I0+"$");break}case q.caret:A0[G.FIELDS.TYPE]===q.equals&&(x.operator=K0,J0="operator"),$0=!1;break;case q.combinator:if(K0==="~"&&A0[G.FIELDS.TYPE]===q.equals&&(x.operator=K0,J0="operator"),K0!=="|"){$0=!1;break}A0[G.FIELDS.TYPE]===q.equals?(x.operator=K0,J0="operator"):!x.namespace&&!x.attribute&&(x.namespace=!0),$0=!1;break;case q.word:if(A0&&this.content(A0)==="|"&&y[e+2]&&y[e+2][G.FIELDS.TYPE]!==q.equals&&!x.operator&&!x.namespace)x.namespace=K0,J0="namespace";else if(!x.attribute||J0==="attribute"&&!$0){Y0&&((0,j.ensureObject)(x,"spaces","attribute"),x.spaces.attribute.before=Y0,Y0=""),X0&&((0,j.ensureObject)(x,"raws","spaces","attribute"),x.raws.spaces.attribute.before=X0,X0=""),x.attribute=(x.attribute||"")+K0;var f0=(0,j.getProp)(x,"raws","attribute")||null;f0&&(x.raws.attribute+=K0),J0="attribute"}else if(!x.value&&x.value!==""||J0==="value"&&!$0){var u0=(0,j.unesc)(K0),p0=(0,j.getProp)(x,"raws","value")||"",X1=x.value||"";x.value=X1+u0,x.quoteMark=null,(u0!==K0||p0)&&((0,j.ensureObject)(x,"raws"),x.raws.value=(p0||X1)+K0),J0="value"}else{var Z1=K0==="i"||K0==="I";(x.value||x.value==="")&&(x.quoteMark||$0)?(x.insensitive=Z1,(!Z1||K0==="I")&&((0,j.ensureObject)(x,"raws"),x.raws.insensitiveFlag=K0),J0="insensitive",Y0&&((0,j.ensureObject)(x,"spaces","insensitive"),x.spaces.insensitive.before=Y0,Y0=""),X0&&((0,j.ensureObject)(x,"raws","spaces","insensitive"),x.raws.spaces.insensitive.before=X0,X0="")):(x.value||x.value==="")&&(J0="value",x.value+=K0,x.raws.value&&(x.raws.value+=K0))}$0=!1;break;case q.str:if(!x.attribute||!x.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:_0[G.FIELDS.START_POS]});var n0=(0,U.unescapeValue)(K0),X8=n0.unescaped,P1=n0.quoteMark;x.value=X8,x.quoteMark=P1,J0="value",(0,j.ensureObject)(x,"raws"),x.raws.value=K0,$0=!1;break;case q.equals:if(!x.attribute)return this.expected("attribute",_0[G.FIELDS.START_POS],K0);if(x.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:_0[G.FIELDS.START_POS]});x.operator=x.operator?x.operator+K0:K0,J0="operator",$0=!1;break;case q.comment:if(J0)if($0||A0&&A0[G.FIELDS.TYPE]===q.space||J0==="insensitive"){var i1=(0,j.getProp)(x,"spaces",J0,"after")||"",Z8=(0,j.getProp)(x,"raws","spaces",J0,"after")||i1;(0,j.ensureObject)(x,"raws","spaces",J0),x.raws.spaces[J0].after=Z8+K0}else{var r8=x[J0]||"",Q8=(0,j.getProp)(x,"raws",J0)||r8;(0,j.ensureObject)(x,"raws"),x.raws[J0]=Q8+K0}else X0=X0+K0;break;default:return this.error('Unexpected "'+K0+'" found.',{index:_0[G.FIELDS.START_POS]})}e++}f(x,"attribute"),f(x,"namespace"),this.newNode(new U.default(x)),this.position++},d.parseWhitespaceEquivalentTokens=function(y){y<0&&(y=this.tokens.length);var k=this.position,s=[],x="",e=void 0;do if(g[this.currToken[G.FIELDS.TYPE]])this.options.lossy||(x+=this.content());else if(this.currToken[G.FIELDS.TYPE]===q.comment){var Y0={};x&&(Y0.before=x,x=""),e=new Q.default({value:this.content(),source:S(this.currToken),sourceIndex:this.currToken[G.FIELDS.START_POS],spaces:Y0}),s.push(e)}while(++this.position<y);if(x){if(e)e.spaces.after=x;else if(!this.options.lossy){var X0=this.tokens[k],J0=this.tokens[this.position-1];s.push(new H.default({value:"",source:C(X0[G.FIELDS.START_LINE],X0[G.FIELDS.START_COL],J0[G.FIELDS.END_LINE],J0[G.FIELDS.END_COL]),sourceIndex:X0[G.FIELDS.START_POS],spaces:{before:x,after:""}}))}}return s},d.convertWhitespaceNodesToSpace=function(y,k){var s=this;k===void 0&&(k=!1);var x="",e="";y.forEach(function(X0){var J0=s.lossySpace(X0.spaces.before,k),$0=s.lossySpace(X0.rawSpaceBefore,k);x+=J0+s.lossySpace(X0.spaces.after,k&&J0.length===0),e+=J0+X0.value+s.lossySpace(X0.rawSpaceAfter,k&&$0.length===0)}),e===x&&(e=void 0);var Y0={space:x,rawSpace:e};return Y0},d.isNamedCombinator=function(y){return y===void 0&&(y=this.position),this.tokens[y+0]&&this.tokens[y+0][G.FIELDS.TYPE]===q.slash&&this.tokens[y+1]&&this.tokens[y+1][G.FIELDS.TYPE]===q.word&&this.tokens[y+2]&&this.tokens[y+2][G.FIELDS.TYPE]===q.slash},d.namedCombinator=function(){if(this.isNamedCombinator()){var y=this.content(this.tokens[this.position+1]),k=(0,j.unesc)(y).toLowerCase(),s={};k!==y&&(s.value="/"+y+"/");var x=new $.default({value:"/"+k+"/",source:C(this.currToken[G.FIELDS.START_LINE],this.currToken[G.FIELDS.START_COL],this.tokens[this.position+2][G.FIELDS.END_LINE],this.tokens[this.position+2][G.FIELDS.END_COL]),sourceIndex:this.currToken[G.FIELDS.START_POS],raws:s});return this.position=this.position+3,x}else this.unexpected()},d.combinator=function(){var y=this;if(this.content()==="|")return this.namespace();var k=this.locateNextMeaningfulToken(this.position);if(k<0||this.tokens[k][G.FIELDS.TYPE]===q.comma){var s=this.parseWhitespaceEquivalentTokens(k);if(s.length>0){var x=this.current.last;if(x){var e=this.convertWhitespaceNodesToSpace(s),Y0=e.space,X0=e.rawSpace;X0!==void 0&&(x.rawSpaceAfter+=X0),x.spaces.after+=Y0}else s.forEach(function(p0){return y.newNode(p0)})}return}var J0=this.currToken,$0=void 0;k>this.position&&($0=this.parseWhitespaceEquivalentTokens(k));var _0;if(this.isNamedCombinator()?_0=this.namedCombinator():this.currToken[G.FIELDS.TYPE]===q.combinator?(_0=new $.default({value:this.content(),source:S(this.currToken),sourceIndex:this.currToken[G.FIELDS.START_POS]}),this.position++):g[this.currToken[G.FIELDS.TYPE]]||$0||this.unexpected(),_0){if($0){var K0=this.convertWhitespaceNodesToSpace($0),A0=K0.space,S0=K0.rawSpace;_0.spaces.before=A0,_0.rawSpaceBefore=S0}}else{var c0=this.convertWhitespaceNodesToSpace($0,!0),k0=c0.space,I0=c0.rawSpace;I0||(I0=k0);var f0={},u0={spaces:{}};k0.endsWith(" ")&&I0.endsWith(" ")?(f0.before=k0.slice(0,k0.length-1),u0.spaces.before=I0.slice(0,I0.length-1)):k0.startsWith(" ")&&I0.startsWith(" ")?(f0.after=k0.slice(1),u0.spaces.after=I0.slice(1)):u0.value=I0,_0=new $.default({value:" ",source:I(J0,this.tokens[this.position-1]),sourceIndex:J0[G.FIELDS.START_POS],spaces:f0,raws:u0})}return this.currToken&&this.currToken[G.FIELDS.TYPE]===q.space&&(_0.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(_0)},d.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var y=new X.default({source:{start:n(this.tokens[this.position+1])}});this.current.parent.append(y),this.current=y,this.position++},d.comment=function(){var y=this.currToken;this.newNode(new Q.default({value:this.content(),source:S(y),sourceIndex:y[G.FIELDS.START_POS]})),this.position++},d.error=function(y,k){throw this.root.error(y,k)},d.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[G.FIELDS.START_POS]})},d.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[G.FIELDS.START_POS])},d.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[G.FIELDS.START_POS])},d.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[G.FIELDS.START_POS])},d.namespace=function(){var y=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[G.FIELDS.TYPE]===q.word)return this.position++,this.word(y);if(this.nextToken[G.FIELDS.TYPE]===q.asterisk)return this.position++,this.universal(y)},d.nesting=function(){if(this.nextToken){var y=this.content(this.nextToken);if(y==="|"){this.position++;return}}var k=this.currToken;this.newNode(new B.default({value:this.content(),source:S(k),sourceIndex:k[G.FIELDS.START_POS]})),this.position++},d.parentheses=function(){var y=this.current.last,k=1;if(this.position++,y&&y.type===O.PSEUDO){var s=new X.default({source:{start:n(this.tokens[this.position-1])}}),x=this.current;for(y.append(s),this.current=s;this.position<this.tokens.length&&k;)this.currToken[G.FIELDS.TYPE]===q.openParenthesis&&k++,this.currToken[G.FIELDS.TYPE]===q.closeParenthesis&&k--,k?this.parse():(this.current.source.end=i(this.currToken),this.current.parent.source.end=i(this.currToken),this.position++);this.current=x}else{for(var e=this.currToken,Y0="(",X0;this.position<this.tokens.length&&k;)this.currToken[G.FIELDS.TYPE]===q.openParenthesis&&k++,this.currToken[G.FIELDS.TYPE]===q.closeParenthesis&&k--,X0=this.currToken,Y0+=this.parseParenthesisToken(this.currToken),this.position++;y?y.appendToPropertyAndEscape("value",Y0,Y0):this.newNode(new H.default({value:Y0,source:C(e[G.FIELDS.START_LINE],e[G.FIELDS.START_COL],X0[G.FIELDS.END_LINE],X0[G.FIELDS.END_COL]),sourceIndex:e[G.FIELDS.START_POS]}))}if(k)return this.expected("closing parenthesis",this.currToken[G.FIELDS.START_POS])},d.pseudo=function(){for(var y=this,k="",s=this.currToken;this.currToken&&this.currToken[G.FIELDS.TYPE]===q.colon;)k+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[G.FIELDS.TYPE]===q.word)this.splitWord(!1,function(x,e){k+=x,y.newNode(new z.default({value:k,source:I(s,y.currToken),sourceIndex:s[G.FIELDS.START_POS]})),e>1&&y.nextToken&&y.nextToken[G.FIELDS.TYPE]===q.openParenthesis&&y.error("Misplaced parenthesis.",{index:y.nextToken[G.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[G.FIELDS.START_POS])},d.space=function(){var y=this.content();this.position===0||this.prevToken[G.FIELDS.TYPE]===q.comma||this.prevToken[G.FIELDS.TYPE]===q.openParenthesis||this.current.nodes.every(function(k){return k.type==="comment"})?(this.spaces=this.optionalSpace(y),this.position++):this.position===this.tokens.length-1||this.nextToken[G.FIELDS.TYPE]===q.comma||this.nextToken[G.FIELDS.TYPE]===q.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(y),this.position++):this.combinator()},d.string=function(){var y=this.currToken;this.newNode(new H.default({value:this.content(),source:S(y),sourceIndex:y[G.FIELDS.START_POS]})),this.position++},d.universal=function(y){var k=this.nextToken;if(k&&this.content(k)==="|")return this.position++,this.namespace();var s=this.currToken;this.newNode(new V.default({value:this.content(),source:S(s),sourceIndex:s[G.FIELDS.START_POS]}),y),this.position++},d.splitWord=function(y,k){for(var s=this,x=this.nextToken,e=this.content();x&&~[q.dollar,q.caret,q.equals,q.word].indexOf(x[G.FIELDS.TYPE]);){this.position++;var Y0=this.content();if(e+=Y0,Y0.lastIndexOf("\\")===Y0.length-1){var X0=this.nextToken;X0&&X0[G.FIELDS.TYPE]===q.space&&(e+=this.requiredSpace(this.content(X0)),this.position++)}x=this.nextToken}var J0=l(e,".").filter(function(A0){var S0=e[A0-1]==="\\",c0=/^\d+\.\d+%$/.test(e);return!S0&&!c0}),$0=l(e,"#").filter(function(A0){return e[A0-1]!=="\\"}),_0=l(e,"#{");_0.length&&($0=$0.filter(function(A0){return!~_0.indexOf(A0)}));var K0=(0,M.default)(c([0].concat(J0,$0)));K0.forEach(function(A0,S0){var c0=K0[S0+1]||e.length,k0=e.slice(A0,c0);if(S0===0&&k)return k.call(s,k0,K0.length);var I0,f0=s.currToken,u0=f0[G.FIELDS.START_POS]+K0[S0],p0=C(f0[1],f0[2]+A0,f0[3],f0[2]+(c0-1));if(~J0.indexOf(A0)){var X1={value:k0.slice(1),source:p0,sourceIndex:u0};I0=new Z.default(f(X1,"value"))}else if(~$0.indexOf(A0)){var Z1={value:k0.slice(1),source:p0,sourceIndex:u0};I0=new W.default(f(Z1,"value"))}else{var n0={value:k0,source:p0,sourceIndex:u0};f(n0,"value"),I0=new w.default(n0)}s.newNode(I0,y),y=null}),this.position++},d.word=function(y){var k=this.nextToken;return k&&this.content(k)==="|"?(this.position++,this.namespace()):this.splitWord(y)},d.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},d.parse=function(y){switch(this.currToken[G.FIELDS.TYPE]){case q.space:this.space();break;case q.comment:this.comment();break;case q.openParenthesis:this.parentheses();break;case q.closeParenthesis:y&&this.missingParenthesis();break;case q.openSquare:this.attribute();break;case q.dollar:case q.caret:case q.equals:case q.word:this.word();break;case q.colon:this.pseudo();break;case q.comma:this.comma();break;case q.asterisk:this.universal();break;case q.ampersand:this.nesting();break;case q.slash:case q.combinator:this.combinator();break;case q.str:this.string();break;case q.closeSquare:this.missingSquareBracket();case q.semicolon:this.missingBackslash();default:this.unexpected()}},d.expected=function(y,k,s){if(Array.isArray(y)){var x=y.pop();y=y.join(", ")+" or "+x}var e=/^[aeiou]/.test(y[0])?"an":"a";return s?this.error("Expected "+e+" "+y+', found "'+s+'" instead.',{index:k}):this.error("Expected "+e+" "+y+".",{index:k})},d.requiredSpace=function(y){return this.options.lossy?" ":y},d.optionalSpace=function(y){return this.options.lossy?"":y},d.lossySpace=function(y,k){return this.options.lossy?k?" ":"":y},d.parseParenthesisToken=function(y){var k=this.content(y);return y[G.FIELDS.TYPE]===q.space?this.requiredSpace(k):k},d.newNode=function(y,k){return k&&(/^ +$/.test(k)&&(this.options.lossy||(this.spaces=(this.spaces||"")+k),k=!0),y.namespace=k,f(y,"namespace")),this.spaces&&(y.spaces.before=this.spaces,this.spaces=""),this.current.append(y)},d.content=function(y){return y===void 0&&(y=this.currToken),this.css.slice(y[G.FIELDS.START_POS],y[G.FIELDS.END_POS])},d.locateNextMeaningfulToken=function(y){y===void 0&&(y=this.position+1);for(var k=y;k<this.tokens.length;)if(u[this.tokens[k][G.FIELDS.TYPE]]){k++;continue}else return k;return-1},P(m,[{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]}}]),m}();J.default=p,K.exports=J.default}),Lw=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=X(jw());function X(Q){return Q&&Q.__esModule?Q:{default:Q}}var Z=function(){function Q(w,H){this.func=w||function(){},this.funcRes=null,this.options=H}var W=Q.prototype;return W._shouldUpdateSelector=function(w,H){H===void 0&&(H={});var z=Object.assign({},this.options,H);return z.updateSelector===!1?!1:typeof w!="string"},W._isLossy=function(w){w===void 0&&(w={});var H=Object.assign({},this.options,w);return H.lossless===!1},W._root=function(w,H){H===void 0&&(H={});var z=new Y.default(w,this._parseOptions(H));return z.root},W._parseOptions=function(w){return{lossy:this._isLossy(w)}},W._run=function(w,H){var z=this;return H===void 0&&(H={}),new Promise(function(U,V){try{var $=z._root(w,H);Promise.resolve(z.func($)).then(function(B){var M=void 0;return z._shouldUpdateSelector(w,H)&&(M=$.toString(),w.selector=M),{transform:B,root:$,string:M}}).then(U,V)}catch(B){V(B);return}})},W._runSync=function(w,H){H===void 0&&(H={});var z=this._root(w,H),U=this.func(z);if(U&&typeof U.then=="function")throw Error("Selector processor returned a promise to a synchronous call.");var V=void 0;return H.updateSelector&&typeof w!="string"&&(V=z.toString(),w.selector=V),{transform:U,root:z,string:V}},W.ast=function(w,H){return this._run(w,H).then(function(z){return z.root})},W.astSync=function(w,H){return this._runSync(w,H).root},W.transform=function(w,H){return this._run(w,H).then(function(z){return z.transform})},W.transformSync=function(w,H){return this._runSync(w,H).transform},W.process=function(w,H){return this._run(w,H).then(function(z){return z.string||z.root.toString()})},W.processSync=function(w,H){var z=this._runSync(w,H);return z.string||z.root.toString()},Q}();J.default=Z,K.exports=J.default}),Fw=t((J)=>{J.__esModule=!0,J.universal=J.tag=J.string=J.selector=J.root=J.pseudo=J.nesting=J.id=J.comment=J.combinator=J.className=J.attribute=void 0;var K=B(WK()),Y=B(JK()),X=B(wK()),Z=B(KK()),Q=B(YK()),W=B(zK()),w=B(QK()),H=B(tJ()),z=B(eJ()),U=B(ZK()),V=B(XK()),$=B(HK());function B(g){return g&&g.__esModule?g:{default:g}}var M=function(g){return new K.default(g)};J.attribute=M;var G=function(g){return new Y.default(g)};J.className=G;var q=function(g){return new X.default(g)};J.combinator=q;var O=function(g){return new Z.default(g)};J.comment=O;var j=function(g){return new Q.default(g)};J.id=j;var E=function(g){return new W.default(g)};J.nesting=E;var R=function(g){return new w.default(g)};J.pseudo=R;var _=function(g){return new H.default(g)};J.root=_;var L=function(g){return new z.default(g)};J.selector=L;var T=function(g){return new U.default(g)};J.string=T;var D=function(g){return new V.default(g)};J.tag=D;var P=function(g){return new $.default(g)};J.universal=P}),Ew=t((J)=>{J.__esModule=!0,J.isNode=Z,J.isPseudoElement=j,J.isPseudoClass=E,J.isContainer=R,J.isNamespace=_,J.isUniversal=J.isTag=J.isString=J.isSelector=J.isRoot=J.isPseudo=J.isNesting=J.isIdentifier=J.isComment=J.isCombinator=J.isClassName=J.isAttribute=void 0;var K=m0(),Y,X=(Y={},Y[K.ATTRIBUTE]=!0,Y[K.CLASS]=!0,Y[K.COMBINATOR]=!0,Y[K.COMMENT]=!0,Y[K.ID]=!0,Y[K.NESTING]=!0,Y[K.PSEUDO]=!0,Y[K.ROOT]=!0,Y[K.SELECTOR]=!0,Y[K.STRING]=!0,Y[K.TAG]=!0,Y[K.UNIVERSAL]=!0,Y);function Z(L){return typeof L=="object"&&X[L.type]}function Q(L,T){return Z(T)&&T.type===L}var W=Q.bind(null,K.ATTRIBUTE);J.isAttribute=W;var w=Q.bind(null,K.CLASS);J.isClassName=w;var H=Q.bind(null,K.COMBINATOR);J.isCombinator=H;var z=Q.bind(null,K.COMMENT);J.isComment=z;var U=Q.bind(null,K.ID);J.isIdentifier=U;var V=Q.bind(null,K.NESTING);J.isNesting=V;var $=Q.bind(null,K.PSEUDO);J.isPseudo=$;var B=Q.bind(null,K.ROOT);J.isRoot=B;var M=Q.bind(null,K.SELECTOR);J.isSelector=M;var G=Q.bind(null,K.STRING);J.isString=G;var q=Q.bind(null,K.TAG);J.isTag=q;var O=Q.bind(null,K.UNIVERSAL);J.isUniversal=O;function j(L){return $(L)&&L.value&&(L.value.startsWith("::")||L.value.toLowerCase()===":before"||L.value.toLowerCase()===":after"||L.value.toLowerCase()===":first-letter"||L.value.toLowerCase()===":first-line")}function E(L){return $(L)&&!j(L)}function R(L){return!!(Z(L)&&L.walk)}function _(L){return W(L)||q(L)}}),_w=t((J)=>{J.__esModule=!0;var K=m0();Object.keys(K).forEach(function(Z){Z==="default"||Z==="__esModule"||Z in J&&J[Z]===K[Z]||(J[Z]=K[Z])});var Y=Fw();Object.keys(Y).forEach(function(Z){Z==="default"||Z==="__esModule"||Z in J&&J[Z]===Y[Z]||(J[Z]=Y[Z])});var X=Ew();Object.keys(X).forEach(function(Z){Z==="default"||Z==="__esModule"||Z in J&&J[Z]===X[Z]||(J[Z]=X[Z])})}),Rw=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=W(Lw()),X=Q(_w());function Z(){if(typeof WeakMap!="function")return null;var z=new WeakMap;return Z=function(){return z},z}function Q(z){if(z&&z.__esModule)return z;if(z===null||typeof z!="object"&&typeof z!="function")return{default:z};var U=Z();if(U&&U.has(z))return U.get(z);var V={},$=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in z)if(Object.prototype.hasOwnProperty.call(z,B)){var M=$?Object.getOwnPropertyDescriptor(z,B):null;M&&(M.get||M.set)?Object.defineProperty(V,B,M):V[B]=z[B]}return V.default=z,U&&U.set(z,V),V}function W(z){return z&&z.__esModule?z:{default:z}}var w=function(z){return new Y.default(z)};Object.assign(w,X),delete w.__esModule;var H=w;J.default=H,K.exports=J.default}),Dw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y){return Y.replace(/\\,/g,"\\2c ")}}),Iw=t((J,K)=>{K.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]}}),VK=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(M,G){for(var q in G)Object.defineProperty(M,q,{enumerable:!0,get:G[q]})}K(J,{parseColor:()=>$,formatColor:()=>B});var Y=X(Iw());function X(M){return M&&M.__esModule?M:{default:M}}var Z=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,Q=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,W=/(?:\d+|\d*\.\d+)%?/,w=/(?:\s*,\s*|\s+)/,H=/\s*[,/]\s*/,z=/var\(--(?:[^ )]*?)\)/,U=new RegExp(`^(rgb)a?\\(\\s*(${W.source}|${z.source})(?:${w.source}(${W.source}|${z.source}))?(?:${w.source}(${W.source}|${z.source}))?(?:${H.source}(${W.source}|${z.source}))?\\s*\\)$`),V=new RegExp(`^(hsl)a?\\(\\s*((?:${W.source})(?:deg|rad|grad|turn)?|${z.source})(?:${w.source}(${W.source}|${z.source}))?(?:${w.source}(${W.source}|${z.source}))?(?:${H.source}(${W.source}|${z.source}))?\\s*\\)$`);function $(M,{loose:G=!1}={}){var q,O;if(typeof M!="string")return null;if(M=M.trim(),M==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(M in Y.default)return{mode:"rgb",color:Y.default[M].map((L)=>L.toString())};let j=M.replace(Q,(L,T,D,P,g)=>["#",T,T,D,D,P,P,g?g+g:""].join("")).match(Z);if(j!==null)return{mode:"rgb",color:[parseInt(j[1],16),parseInt(j[2],16),parseInt(j[3],16)].map((L)=>L.toString()),alpha:j[4]?(parseInt(j[4],16)/255).toString():void 0};var E;let R=(E=M.match(U))!==null&&E!==void 0?E:M.match(V);if(R===null)return null;let _=[R[2],R[3],R[4]].filter(Boolean).map((L)=>L.toString());return!G&&_.length!==3||_.length<3&&!_.some((L)=>/^var\(.*?\)$/.test(L))?null:{mode:R[1],color:_,alpha:(q=R[5])===null||q===void 0||(O=q.toString)===null||O===void 0?void 0:O.call(q)}}function B({mode:M,color:G,alpha:q}){let O=q!==void 0;return`${M}(${G.join(" ")}${O?` / ${q}`:""})`}}),$K=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(Q,W){for(var w in W)Object.defineProperty(Q,w,{enumerable:!0,get:W[w]})}K(J,{withAlphaValue:()=>X,default:()=>Z});var Y=VK();function X(Q,W,w){if(typeof Q=="function")return Q({opacityValue:W});let H=(0,Y.parseColor)(Q,{loose:!0});return H===null?w:(0,Y.formatColor)({...H,alpha:W})}function Z({color:Q,property:W,variable:w}){let H=[].concat(W);if(typeof Q=="function")return{[w]:"1",...Object.fromEntries(H.map((U)=>[U,Q({opacityVariable:w,opacityValue:`var(${w})`})]))};let z=(0,Y.parseColor)(Q);return z===null?Object.fromEntries(H.map((U)=>[U,Q])):z.alpha!==void 0?Object.fromEntries(H.map((U)=>[U,Q])):{[w]:"1",...Object.fromEntries(H.map((U)=>[U,(0,Y.formatColor)({...z,alpha:`var(${w})`})]))}}}),Tw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K($,B){for(var M in B)Object.defineProperty($,M,{enumerable:!0,get:B[M]})}K(J,{pattern:()=>Q,withoutCapturing:()=>W,any:()=>w,optional:()=>H,zeroOrMore:()=>z,nestedBrackets:()=>U,escape:()=>V});var Y=/[\\^$.*+?()[\]{}|]/g,X=RegExp(Y.source);function Z($){return $=Array.isArray($)?$:[$],$=$.map((B)=>B instanceof RegExp?B.source:B),$.join("")}function Q($){return new RegExp(Z($),"g")}function W($){return new RegExp(`(?:${Z($)})`,"g")}function w($){return`(?:${$.map(Z).join("|")})`}function H($){return`(?:${Z($)})?`}function z($){return`(?:${Z($)})*`}function U($,B,M=1){return W([V($),/[^\s]*/,M===1?`[^${V($)}${V(B)}s]*`:w([`[^${V($)}${V(B)}s]*`,U($,B,M-1)]),/[^\s]*/,V(B)])}function V($){return $&&X.test($)?$.replace(Y,"\\$&"):$||""}}),Cw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"splitAtTopLevelOnly",{enumerable:!0,get:()=>Z});var K=X(Tw());function Y(Q){if(typeof WeakMap!="function")return null;var W=new WeakMap,w=new WeakMap;return(Y=function(H){return H?w:W})(Q)}function X(Q,W){if(!W&&Q&&Q.__esModule)return Q;if(Q===null||typeof Q!="object"&&typeof Q!="function")return{default:Q};var w=Y(W);if(w&&w.has(Q))return w.get(Q);var H={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var U in Q)if(U!=="default"&&Object.prototype.hasOwnProperty.call(Q,U)){var V=z?Object.getOwnPropertyDescriptor(Q,U):null;V&&(V.get||V.set)?Object.defineProperty(H,U,V):H[U]=Q[U]}return H.default=Q,w&&w.set(Q,H),H}function*Z(Q,W){let w=new RegExp(`[(){}\\[\\]${K.escape(W)}]`,"g"),H=0,z=0,U=!1,V=0,$=0,B=W.length;for(let M of Q.matchAll(w)){let G=M[0]===W[V],q=V===B-1,O=G&&q;M[0]==="("&&H++,M[0]===")"&&H--,M[0]==="["&&H++,M[0]==="]"&&H--,M[0]==="{"&&H++,M[0]==="}"&&H--,G&&H===0&&($===0&&($=M.index),V++),O&&H===0&&(U=!0,yield Q.substring(z,$),z=$+B),V===B&&(V=0,$=0)}U?yield Q.substring(z):yield Q}}),Pw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(H,z){for(var U in z)Object.defineProperty(H,U,{enumerable:!0,get:z[U]})}K(J,{parseBoxShadowValue:()=>W,formatBoxShadowValue:()=>w});var Y=Cw(),X=new Set(["inset","inherit","initial","revert","unset"]),Z=/\ +(?![^(]*\))/g,Q=/^-?(\d+|\.\d+)(.*?)$/g;function W(H){return Array.from((0,Y.splitAtTopLevelOnly)(H,",")).map((z)=>{let U=z.trim(),V={raw:U},$=U.split(Z),B=new Set;for(let M of $)Q.lastIndex=0,!B.has("KEYWORD")&&X.has(M)?(V.keyword=M,B.add("KEYWORD")):Q.test(M)?B.has("X")?B.has("Y")?B.has("BLUR")?B.has("SPREAD")||(V.spread=M,B.add("SPREAD")):(V.blur=M,B.add("BLUR")):(V.y=M,B.add("Y")):(V.x=M,B.add("X")):V.color?(V.unknown||(V.unknown=[]),V.unknown.push(M)):V.color=M;return V.valid=V.x!==void 0&&V.y!==void 0,V})}function w(H){return H.map((z)=>z.valid?[z.keyword,z.x,z.y,z.blur,z.spread,z.color].filter(Boolean).join(" "):z.raw).join(", ")}}),Sw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(C,S){for(var I in S)Object.defineProperty(C,I,{enumerable:!0,get:S[I]})}K(J,{normalize:()=>w,url:()=>H,number:()=>z,percentage:()=>U,length:()=>B,lineWidth:()=>G,shadow:()=>q,color:()=>O,image:()=>j,gradient:()=>R,position:()=>L,familyName:()=>T,genericName:()=>P,absoluteSize:()=>u,relativeSize:()=>i});var Y=VK(),X=Pw(),Z=["min","max","clamp","calc"],Q=/,(?![^(]*\))/g,W=/_(?![^(]*\))/g;function w(C,S=!0){return C.includes("url(")?C.split(/(url\(.*?\))/g).filter(Boolean).map((I)=>/^url\(.*?\)$/.test(I)?I:w(I,!1)).join(""):(C=C.replace(/([^\\])_+/g,(I,f)=>f+" ".repeat(I.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),S&&(C=C.trim()),C=C.replace(/(calc|min|max|clamp)\(.+\)/g,(I)=>I.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),C)}function H(C){return C.startsWith("url(")}function z(C){return!isNaN(Number(C))||Z.some((S)=>new RegExp(`^${S}\\(.+?`).test(C))}function U(C){return C.split(W).every((S)=>/%$/g.test(S)||Z.some((I)=>new RegExp(`^${I}\\(.+?%`).test(S)))}var V=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],$=`(?:${V.join("|")})`;function B(C){return C.split(W).every((S)=>S==="0"||new RegExp(`${$}$`).test(S)||Z.some((I)=>new RegExp(`^${I}\\(.+?${$}`).test(S)))}var M=new Set(["thin","medium","thick"]);function G(C){return M.has(C)}function q(C){let S=(0,X.parseBoxShadowValue)(w(C));for(let I of S)if(!I.valid)return!1;return!0}function O(C){let S=0;return C.split(W).every((I)=>(I=w(I),I.startsWith("var(")?!0:(0,Y.parseColor)(I,{loose:!0})!==null?(S++,!0):!1))?S>0:!1}function j(C){let S=0;return C.split(Q).every((I)=>(I=w(I),I.startsWith("var(")?!0:H(I)||R(I)||["element(","image(","cross-fade(","image-set("].some((f)=>I.startsWith(f))?(S++,!0):!1))?S>0:!1}var E=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function R(C){C=w(C);for(let S of E)if(C.startsWith(`${S}(`))return!0;return!1}var _=new Set(["center","top","right","bottom","left"]);function L(C){let S=0;return C.split(W).every((I)=>(I=w(I),I.startsWith("var(")?!0:_.has(I)||B(I)||U(I)?(S++,!0):!1))?S>0:!1}function T(C){let S=0;return C.split(Q).every((I)=>(I=w(I),I.startsWith("var(")?!0:I.includes(" ")&&!/(['"])([^"']+)\1/g.test(I)||/^\d/g.test(I)?!1:(S++,!0)))?S>0:!1}var D=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function P(C){return D.has(C)}var g=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function u(C){return g.has(C)}var n=new Set(["larger","smaller"]);function i(C){return n.has(C)}}),vw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(L,T){for(var D in T)Object.defineProperty(L,D,{enumerable:!0,get:T[D]})}K(J,{updateAllClasses:()=>H,asValue:()=>V,parseColorFormat:()=>M,asColor:()=>G,asLookupValue:()=>q,coerceValue:()=>_});var Y=w(Rw()),X=w(Dw()),Z=$K(),Q=Sw(),W=w(rJ());function w(L){return L&&L.__esModule?L:{default:L}}function H(L,T){return(0,Y.default)((D)=>{D.walkClasses((P)=>{let g=T(P.value);P.value=g,P.raws&&P.raws.value&&(P.raws.value=(0,X.default)(P.raws.value))})}).processSync(L)}function z(L,T){if(!$(L))return;let D=L.slice(1,-1);if(T(D))return(0,Q.normalize)(D)}function U(L,T={},D){let P=T[L];if(P!==void 0)return(0,W.default)(P);if($(L)){let g=z(L,D);return g===void 0?void 0:(0,W.default)(g)}}function V(L,T={},{validate:D=()=>!0}={}){var P;let g=(P=T.values)===null||P===void 0?void 0:P[L];return g!==void 0?g:T.supportsNegativeValues&&L.startsWith("-")?U(L.slice(1),T.values,D):z(L,D)}function $(L){return L.startsWith("[")&&L.endsWith("]")}function B(L){let T=L.lastIndexOf("/");return T===-1||T===L.length-1?[L]:[L.slice(0,T),L.slice(T+1)]}function M(L){if(typeof L=="string"&&L.includes("<alpha-value>")){let T=L;return({opacityValue:D=1})=>T.replace("<alpha-value>",D)}return L}function G(L,T={},{tailwindConfig:D={}}={}){var P;if(((P=T.values)===null||P===void 0?void 0:P[L])!==void 0){var g;return M((g=T.values)===null||g===void 0?void 0:g[L])}let[u,n]=B(L);if(n!==void 0){var i,C,S,I;let f=(I=(i=T.values)===null||i===void 0?void 0:i[u])!==null&&I!==void 0?I:$(u)?u.slice(1,-1):void 0;return f===void 0?void 0:(f=M(f),$(n)?(0,Z.withAlphaValue)(f,n.slice(1,-1)):((C=D.theme)===null||C===void 0||(S=C.opacity)===null||S===void 0?void 0:S[n])===void 0?void 0:(0,Z.withAlphaValue)(f,D.theme.opacity[n]))}return V(L,T,{validate:Q.color})}function q(L,T={}){var D;return(D=T.values)===null||D===void 0?void 0:D[L]}function O(L){return(T,D)=>V(T,D,{validate:L})}var j={any:V,color:G,url:O(Q.url),image:O(Q.image),length:O(Q.length),percentage:O(Q.percentage),position:O(Q.position),lookup:q,"generic-name":O(Q.genericName),"family-name":O(Q.familyName),number:O(Q.number),"line-width":O(Q.lineWidth),"absolute-size":O(Q.absoluteSize),"relative-size":O(Q.relativeSize),shadow:O(Q.shadow)},E=Object.keys(j);function R(L,T){let D=L.indexOf(T);return D===-1?[void 0,L]:[L.slice(0,D),L.slice(D+1)]}function _(L,T,D,P){if($(T)){let g=T.slice(1,-1),[u,n]=R(g,":");if(!/^[\w-_]+$/g.test(u))n=g;else if(u!==void 0&&!E.includes(u))return[];if(n.length>0&&E.includes(u))return[V(`[${n}]`,D),u]}for(let g of[].concat(L)){let u=j[g](T,D,{tailwindConfig:P});if(u!==void 0)return[u,g]}return[]}}),yw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y){return typeof Y=="function"?Y({}):Y}}),kw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>i});var K=M(rJ()),Y=M(Ww()),X=M(Hw()),Z=M(nJ()),Q=M(ww()),W=zw(),w=Uw(),H=Vw(),z=M($w()),U=Bw(),V=vw(),$=$K(),B=M(yw());function M(C){return C&&C.__esModule?C:{default:C}}function G(C){return typeof C=="function"}function q(C){return typeof C=="object"&&C!==null}function O(C,...S){let I=S.pop();for(let f of S)for(let l in f){let c=I(C[l],f[l]);c===void 0?q(C[l])&&q(f[l])?C[l]=O(C[l],f[l],I):C[l]=f[l]:C[l]=c}return C}var j={colors:Q.default,negative(C){return Object.keys(C).filter((S)=>C[S]!=="0").reduce((S,I)=>{let f=(0,K.default)(C[I]);return f!==void 0&&(S[`-${I}`]=f),S},{})},breakpoints(C){return Object.keys(C).filter((S)=>typeof C[S]=="string").reduce((S,I)=>({...S,[`screen-${I}`]:C[I]}),{})}};function E(C,...S){return G(C)?C(...S):C}function R(C){return C.reduce((S,{extend:I})=>O(S,I,(f,l)=>f===void 0?[l]:Array.isArray(f)?[l,...f]:[l,f]),{})}function _(C){return{...C.reduce((S,I)=>(0,W.defaults)(S,I),{}),extend:R(C)}}function L(C,S){if(Array.isArray(C)&&q(C[0]))return C.concat(S);if(Array.isArray(S)&&q(S[0])&&q(C))return[C,...S];if(Array.isArray(S))return S}function T({extend:C,...S}){return O(S,C,(I,f)=>!G(I)&&!f.some(G)?O({},I,...f,L):(l,c)=>O({},...[I,...f].map((p)=>E(p,l,c)),L))}function*D(C){let S=(0,w.toPath)(C);if(S.length===0||(yield S,Array.isArray(C)))return;let I=/^(.*?)\s*\/\s*([^/]+)$/,f=C.match(I);if(f!==null){let[,l,c]=f,p=(0,w.toPath)(l);p.alpha=c,yield p}}function P(C){let S=(I,f)=>{for(let l of D(I)){let c=0,p=C;for(;p!=null&&c<l.length;)p=p[l[c++]],p=G(p)&&(l.alpha===void 0||c<=l.length-1)?p(S,j):p;if(p!==void 0){if(l.alpha!==void 0){let m=(0,V.parseColorFormat)(p);return(0,$.withAlphaValue)(m,l.alpha,(0,B.default)(m))}return(0,z.default)(p)?(0,U.cloneDeep)(p):p}}return f};return Object.assign(S,{theme:S,...j}),Object.keys(C).reduce((I,f)=>(I[f]=G(C[f])?C[f](S,j):C[f],I),{})}function g(C){let S=[];return C.forEach((I)=>{S=[...S,I];var f;let l=(f=I==null?void 0:I.plugins)!==null&&f!==void 0?f:[];l.length!==0&&l.forEach((c)=>{c.__isOptionsFunction&&(c=c());var p;S=[...S,...g([(p=c==null?void 0:c.config)!==null&&p!==void 0?p:{}])]})}),S}function u(C){return[...C].reduceRight((S,I)=>G(I)?I({corePlugins:S}):(0,X.default)(I,S),Y.default)}function n(C){return[...C].reduceRight((S,I)=>[...S,...I],[])}function i(C){let S=[...g(C),{prefix:"",important:!1,separator:":",variantOrder:Z.default.variantOrder}];var I,f;return(0,H.normalizeConfig)((0,W.defaults)({theme:P(T(_(S.map((l)=>(I=l==null?void 0:l.theme)!==null&&I!==void 0?I:{})))),corePlugins:u(S.map((l)=>l.corePlugins)),plugins:n(C.map((l)=>(f=l==null?void 0:l.plugins)!==null&&f!==void 0?f:[]))},...S))}}),BK={};E4(BK,{default:()=>AK});var AK,gw=F4(()=>{AK={yellow:(J)=>J}}),xw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(V,$){for(var B in $)Object.defineProperty(V,B,{enumerable:!0,get:$[B]})}K(J,{flagEnabled:()=>w,issueFlagNotices:()=>z,default:()=>U});var Y=Z((gw(),g5(BK))),X=Z((_4(),g5(h5)));function Z(V){return V&&V.__esModule?V:{default:V}}var Q={optimizeUniversalDefaults:!1},W={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function w(V,$){if(W.future.includes($)){var B,M,G;return V.future==="all"||((G=(M=V==null||(B=V.future)===null||B===void 0?void 0:B[$])!==null&&M!==void 0?M:Q[$])!==null&&G!==void 0?G:!1)}if(W.experimental.includes($)){var q,O,j;return V.experimental==="all"||((j=(O=V==null||(q=V.experimental)===null||q===void 0?void 0:q[$])!==null&&O!==void 0?O:Q[$])!==null&&j!==void 0?j:!1)}return!1}function H(V){if(V.experimental==="all")return W.experimental;var $;return Object.keys(($=V==null?void 0:V.experimental)!==null&&$!==void 0?$:{}).filter((B)=>W.experimental.includes(B)&&V.experimental[B])}function z(V){if(process.env.JEST_WORKER_ID===void 0&&H(V).length>0){let $=H(V).map((B)=>Y.default.yellow(B)).join(", ");X.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${$}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}var U=W}),bw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Z});var K=X(nJ()),Y=xw();function X(Q){return Q&&Q.__esModule?Q:{default:Q}}function Z(Q){var W;let w=((W=Q==null?void 0:Q.presets)!==null&&W!==void 0?W:[K.default]).slice().reverse().flatMap((U)=>Z(typeof U=="function"?U():U)),H={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},z=Object.keys(H).filter((U)=>(0,Y.flagEnabled)(Q,U)).map((U)=>H[U]);return[Q,...z,...w]}}),hw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Z});var K=X(kw()),Y=X(bw());function X(Q){return Q&&Q.__esModule?Q:{default:Q}}function Z(...Q){let[,...W]=(0,Y.default)(Q[0]);return(0,K.default)([...Q,...W])}}),mw=t((J,K)=>{var Y=hw();K.exports=(Y.__esModule?Y:{default:Y}).default}),O5;var g8=null;async function f5(){return O5||(g8?(await g8,O5):(g8=Promise.resolve().then(()=>(Qw(),oJ)).then((J)=>J.getYogaModule()).then((J)=>O5=J),await g8,g8=null,O5))}var l8=(J,K)=>()=>(K||J((K={exports:{}}).exports,K),K.exports),fw=l8((J,K)=>{K.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),dw=l8((J,K)=>{K.exports=["deg","grad","rad","turn"]}),lw=l8((J,K)=>{K.exports=["dpi","dpcm","dppx"]}),cw=l8((J,K)=>{K.exports=["Hz","kHz"]}),uw=l8((J,K)=>{K.exports=["s","ms"]}),pw=fw(),GK=dw(),qK=lw(),MK=cw(),NK=uw();function T4(J){if(/\.\D?$/.test(J))throw Error("The dot should be followed by a number");if(/^[+-]{2}/.test(J))throw Error("Only one leading +/- is allowed");if(iw(J)>1)throw Error("Only one dot is allowed");if(/%$/.test(J)){this.type="percentage",this.value=Z4(J),this.unit="%";return}var K=rw(J);if(!K){this.type="number",this.value=Z4(J);return}this.type=sw(K),this.value=Z4(J.substr(0,J.length-K.length)),this.unit=K}T4.prototype.valueOf=function(){return this.value};T4.prototype.toString=function(){return this.value+(this.unit||"")};function c8(J){return new T4(J)}function iw(J){var K=J.match(/\./g);return K?K.length:0}function Z4(J){var K=parseFloat(J);if(isNaN(K))throw Error("Invalid number: "+J);return K}var ow=[].concat(GK,MK,pw,qK,NK);function rw(J){var K=J.match(/\D+$/),Y=K&&K[0];if(Y&&ow.indexOf(Y)===-1)throw Error("Invalid unit: "+Y);return Y}var nw=Object.assign(j5(GK,"angle"),j5(MK,"frequency"),j5(qK,"resolution"),j5(NK,"time"));function j5(J,K){return Object.fromEntries(J.map((Y)=>[Y,K]))}function sw(J){return nw[J]||"length"}function P5(J){let K=typeof J;return!(K==="number"||K==="bigint"||K==="string"||K==="boolean")}function aw(J){return/^class\s/.test(J.toString())}function tw(J){return"dangerouslySetInnerHTML"in J}function ew(J){let K=typeof J>"u"?[]:[].concat(J).flat(1/0),Y=[];for(let X=0;X<K.length;X++){let Z=K[X];typeof Z>"u"||typeof Z=="boolean"||Z===null||(typeof Z=="number"&&(Z=String(Z)),typeof Z=="string"&&Y.length&&typeof Y[Y.length-1]=="string"?Y[Y.length-1]+=Z:Y.push(Z))}return Y}function U0(J,K,Y,X,Z=!1){if(typeof J=="number")return J;try{if(J=J.trim(),/[ /\(,]/.test(J))return;if(J===String(+J))return+J;let Q=new c8(J);if(Q.type==="length")switch(Q.unit){case"em":return Q.value*K;case"rem":return Q.value*16;case"vw":return~~(Q.value*X._viewportWidth/100);case"vh":return~~(Q.value*X._viewportHeight/100);default:return Q.value}else{if(Q.type==="angle")return OK(J);if(Q.type==="percentage"&&Z)return Q.value/100*Y}}catch{}}function OK(J){let K=new c8(J);switch(K.unit){case"deg":return K.value;case"rad":return K.value*180/Math.PI;case"turn":return K.value*360;case"grad":return 0.9*K.value}}function S5(J,K){return[J[0]*K[0]+J[2]*K[1],J[1]*K[0]+J[3]*K[1],J[0]*K[2]+J[2]*K[3],J[1]*K[2]+J[3]*K[3],J[0]*K[4]+J[2]*K[5]+J[4],J[1]*K[4]+J[3]*K[5]+J[5]]}function $1(J,K,Y,X){let Z=K[J];if(typeof Z>"u"){if(X&&typeof J<"u")throw Error(`Invalid value for CSS property "${X}". Allowed values: ${Object.keys(K).map((Q)=>`"${Q}"`).join(" | ")}. Received: "${J}".`);Z=Y}return Z}var Q4,W4,Jz=[32,160,4961,65792,65793,4153,4241,10].map((J)=>String.fromCodePoint(J));function A1(J,K,Y){if(!Q4||!W4){if(!(typeof Intl<"u"&&("Segmenter"in Intl)))throw Error("Intl.Segmenter does not exist, please use import a polyfill.");Q4=new Intl.Segmenter(Y,{granularity:"word"}),W4=new Intl.Segmenter(Y,{granularity:"grapheme"})}if(K==="grapheme")return[...W4.segment(J)].map((X)=>X.segment);{let X=[...Q4.segment(J)].map((W)=>W.segment),Z=[],Q=0;for(;Q<X.length;){let W=X[Q];if(W=="\xA0"){let w=Q===0?"":Z.pop(),H=Q===X.length-1?"":X[Q+1];Z.push(w+"\xA0"+H),Q+=2}else Z.push(W),Q++}return Z}}function a(J,K,Y){let X="";for(let[Z,Q]of Object.entries(K))typeof Q<"u"&&(X+=` ${Z}="${Q}"`);return Y?`<${J}${X}>${Y}</${J}>`:`<${J}${X}/>`}function Kz(J=20){let K=new Map;function Y(Q,W){if(K.size>=J){let w=K.keys().next().value;K.delete(w)}K.set(Q,W)}function X(Q){if(!K.has(Q))return;let W=K.get(Q);return K.delete(Q),K.set(Q,W),W}function Z(){K.clear()}return{set:Y,get:X,clear:Z}}function C4(J){return J?J.split(/[, ]/).filter(Boolean).map(Number):null}function Yz(J){return Object.prototype.toString.call(J)}function jK(J){return typeof J=="string"}function Xz(J){return typeof J=="number"}function Zz(J){return Yz(J)==="[object Undefined]"}function Qz(J,K){if(K==="break-all")return{words:A1(J,"grapheme"),requiredBreaks:[]};if(K==="keep-all")return{words:A1(J,"word"),requiredBreaks:[]};let Y=new q6(J),X=0,Z=Y.nextBreak(),Q=[],W=[!1];for(;Z;){let w=J.slice(X,Z.position);Q.push(w),Z.required?W.push(!0):W.push(!1),X=Z.position,Z=Y.nextBreak()}return{words:Q,requiredBreaks:W}}var Wz=(J)=>J.replaceAll(/([A-Z])/g,(K,Y)=>`-${Y.toLowerCase()}`);function LK(J,K=","){let Y=[],X=0,Z=0;K=new RegExp(K);for(let Q=0;Q<J.length;Q++)J[Q]==="("?Z++:J[Q]===")"&&Z--,Z===0&&K.test(J[Q])&&(Y.push(J.slice(X,Q).trim()),X=Q+1);return Y.push(J.slice(X).trim()),Y}var Hz="image/avif",wz="image/webp",d5="image/apng",l5="image/png",c5="image/jpeg",u5="image/gif",P4="image/svg+xml";function FK(J){let K=new DataView(J),Y=4,X=K.byteLength;for(;Y<X;){let Z=K.getUint16(Y,!1);if(Z>X)throw TypeError("Invalid JPEG");let Q=K.getUint8(Z+1+Y);if(Q===192||Q===193||Q===194)return[K.getUint16(Z+7+Y,!1),K.getUint16(Z+5+Y,!1)];Y+=Z+2}throw TypeError("Invalid JPEG")}function EK(J){let K=new Uint8Array(J.slice(6,10));return[K[0]|K[1]<<8,K[2]|K[3]<<8]}function _K(J){let K=new DataView(J);return[K.getUint16(18,!1),K.getUint16(22,!1)]}var c1=Kz(100),v5=new Map,zz=[l5,d5,c5,u5,P4];function Uz(J){let K="",Y=new Uint8Array(J);for(let X=0;X<Y.byteLength;X++)K+=String.fromCharCode(Y[X]);return btoa(K)}function Vz(J){let K=atob(J),Y=K.length,X=new Uint8Array(Y);for(let Z=0;Z<Y;Z++)X[Z]=K.charCodeAt(Z);return X.buffer}function LJ(J,K){let Y=K.match(/<svg[^>]*>/)[0],X=Y.match(/viewBox=['"](.+)['"]/),Z=X?C4(X[1]):null,Q=Y.match(/width=['"](\d*\.\d+|\d+)['"]/),W=Y.match(/height=['"](\d*\.\d+|\d+)['"]/);if(!Z&&(!Q||!W))throw Error(`Failed to parse SVG from ${J}: missing "viewBox"`);let w=Z?[Z[2],Z[3]]:[+Q[1],+W[1]],H=w[0]/w[1];return Q&&W?[+Q[1],+W[1]]:Q?[+Q[1],+Q[1]/H]:W?[+W[1]*H,+W[1]]:[w[0],w[1]]}function FJ(J){let K,Y=$z(new Uint8Array(J));switch(Y){case l5:case d5:K=_K(J);break;case u5:K=EK(J);break;case c5:K=FK(J);break}if(!zz.includes(Y))throw Error(`Unsupported image type: ${Y||"unknown"}`);return[`data:${Y};base64,${Uz(J)}`,K]}async function S4(J){if(!J)throw Error("Image source is not provided.");if(typeof J=="object"){let[Z,Q]=FJ(J);return[Z,...Q]}if((J.startsWith('"')&&J.endsWith('"')||J.startsWith("'")&&J.endsWith("'"))&&(J=J.slice(1,-1)),typeof window>"u"&&!J.startsWith("http")&&!J.startsWith("data:"))throw Error(`Image source must be an absolute URL: ${J}`);if(J.startsWith("data:")){let Z;try{Z=/data:(?<imageType>[a-z/+]+)(;[^;=]+=[^;=]+)*?(;(?<encodingType>[^;,]+))?,(?<dataString>.*)/g.exec(J).groups}catch{return console.warn("Image data URI resolved without size:"+J),[J]}let{imageType:Q,encodingType:W,dataString:w}=Z;if(Q===P4){let H=W==="base64"?atob(w):decodeURIComponent(w.replace(/ /g,"%20")),z=W==="base64"?J:`data:image/svg+xml;base64,${btoa(H)}`,U=LJ(J,H);return c1.set(J,[z,...U]),[z,...U]}else if(W==="base64"){let H,z=Vz(w);switch(Q){case l5:case d5:H=_K(z);break;case u5:H=EK(z);break;case c5:H=FK(z);break}return c1.set(J,[J,...H]),[J,...H]}else return console.warn("Image data URI resolved without size:"+J),c1.set(J,[J]),[J]}if(!globalThis.fetch)throw Error("`fetch` is required to be polyfilled to load images.");if(v5.has(J))return v5.get(J);let K=c1.get(J);if(K)return K;let Y=J,X=fetch(Y).then((Z)=>{let Q=Z.headers.get("content-type");return Q==="image/svg+xml"||Q==="application/svg+xml"?Z.text():Z.arrayBuffer()}).then((Z)=>{if(typeof Z=="string")try{let w=`data:image/svg+xml;base64,${btoa(Z)}`,H=LJ(Y,Z);return[w,...H]}catch(w){throw Error(`Failed to parse SVG image: ${w.message}`)}let[Q,W]=FJ(Z);return[Q,...W]}).then((Z)=>(c1.set(Y,Z),Z)).catch((Z)=>(console.error(`Can't load image ${Y}: `+Z.message),c1.set(Y,[]),[]));return v5.set(Y,X),X}function $z(J){return[255,216,255].every((K,Y)=>J[Y]===K)?c5:[137,80,78,71,13,10,26,10].every((K,Y)=>J[Y]===K)?Bz(J)?d5:l5:[71,73,70,56].every((K,Y)=>J[Y]===K)?u5:[82,73,70,70,0,0,0,0,87,69,66,80].every((K,Y)=>!K||J[Y]===K)?wz:[60,63,120,109,108].every((K,Y)=>J[Y]===K)?P4:[0,0,0,0,102,116,121,112,97,118,105,102].every((K,Y)=>!K||J[Y]===K)?Hz:null}function Bz(J){let K=new DataView(J.buffer),Y,X,Z=8,Q=!1;for(;!Q&&Y!=="IEND"&&Z<J.length;){X=K.getUint32(Z);let W=J.subarray(Z+4,Z+8);Y=String.fromCharCode(...W),Q=Y==="acTL",Z+=12+X}return Q}var G4={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"},Az=/[\r\n%#()<>?[\\\]^`{|}"']/g;function q4(J,K){if(!J)return"";if(Array.isArray(J))return J.map((z)=>q4(z,K)).join("");if(typeof J!="object")return String(J);let Y=J.type;if(Y==="text")throw Error("<text> nodes are not currently supported, please convert them to <path>");let{children:X,style:Z,...Q}=J.props||{},W=(Z==null?void 0:Z.color)||K,w=`${Object.entries(Q).map(([z,U])=>(typeof U=="string"&&U.toLowerCase()==="currentcolor"&&(U=W),z==="href"&&Y==="image"?` ${G4[z]||z}="${c1.get(U)[0]}"`:` ${G4[z]||z}="${U}"`)).join("")}`,H=Z?` style="${Object.entries(Z).map(([z,U])=>`${Wz(z)}:${U}`).join(";")}"`:"";return`<${Y}${w}${H}>${q4(X,W)}</${Y}>`}async function Gz(J){let K=new Set,Y=(X)=>{if(X&&P5(X)){if(Array.isArray(X)){X.forEach((Z)=>Y(Z));return}else typeof X=="object"&&(X.type==="image"?K.has(X.props.href)||K.add(X.props.href):X.type==="img"&&(K.has(X.props.src)||K.add(X.props.src)));Array.isArray(X.props.children)?X.props.children.map((Z)=>Y(Z)):Y(X.props.children)}};return Y(J),Promise.all(Array.from(K).map((X)=>S4(X)))}async function qz(J,K){let{viewBox:Y,viewbox:X,width:Z,height:Q,className:W,style:w,children:H,...z}=J.props||{};Y||=X,z.xmlns="http://www.w3.org/2000/svg";let U=(w==null?void 0:w.color)||K,V=C4(Y),$=V?V[3]/V[2]:null;return Z=Z||$&&Q?Q/$:null,Q=Q||$&&Z?Z*$:null,z.width=Z,z.height=Q,Y&&(z.viewBox=Y),`data:image/svg+xml;utf8,${`<svg ${Object.entries(z).map(([B,M])=>(typeof M=="string"&&M.toLowerCase()==="currentcolor"&&(M=U),` ${G4[B]||B}="${M}"`)).join("")}>${q4(H,U)}</svg>`.replace(Az,encodeURIComponent)}`}var K1="flex",Mz={p:{display:K1,marginTop:"1em",marginBottom:"1em"},div:{display:K1},blockquote:{display:K1,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:K1,textAlign:"center"},hr:{display:K1,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:K1,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:K1,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:K1,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:K1,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:K1,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:K1,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:K1,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}},Nz=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 Oz(J){let K={};for(let Y in J)Nz.has(Y)&&(K[Y]=J[Y]);return K}function jz(J,K){try{let Y=new c8(J);switch(Y.unit){case"px":return{absolute:Y.value};case"em":return{absolute:Y.value*K};case"rem":return{absolute:Y.value*16};case"%":return{relative:Y.value};default:return{}}}catch{return{}}}function H4(J,K,Y){switch(J){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 X=jz(J,K);return X.absolute?{[Y?"xAbsolute":"yAbsolute"]:X.absolute}:X.relative?{[Y?"xRelative":"yRelative"]:X.relative}:{}}}}function Lz(J,K){if(typeof J=="number")return{xAbsolute:J};let Y;try{Y=IK.default(J).nodes.filter((X)=>X.type==="word").map((X)=>X.value)}catch{return{}}return Y.length===1?H4(Y[0],K,!0):Y.length===2?((Y[0]==="top"||Y[0]==="bottom"||Y[1]==="left"||Y[1]==="right")&&Y.reverse(),{...H4(Y[0],K,!0),...H4(Y[1],K,!1)}):{}}function x8(J,K){let Y=TK.getPropertyName(`mask-${K}`);return J[Y]||J[`WebkitM${Y.substring(1)}`]}function Fz(J){let K=J.maskImage||J.WebkitMaskImage,Y={position:x8(J,"position")||"0% 0%",size:x8(J,"size")||"100% 100%",repeat:x8(J,"repeat")||"repeat",origin:x8(J,"origin")||"border-box",clip:x8(J,"origin")||"border-box"};return LK(K).filter((X)=>X&&X!=="none").reverse().map((X)=>({image:X,...Y}))}var Ez=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),_z=new Set(["lineHeight"]);function Rz(J,K,Y,X){return J==="textDecoration"&&!Y.includes(K.textDecorationColor)&&(K.textDecorationColor=X),K}function J8(J,K){let Y=Number(K);return isNaN(Y)?K:Ez.has(J)?_z.has(J)?Y:String(K):Y+"px"}function Dz(J,K,Y){if(J==="lineHeight")return{lineHeight:J8(J,K)};if(J==="fontFamily")return{fontFamily:K.split(",").map((X)=>X.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(J==="borderRadius"){if(typeof K!="string"||!K.includes("/"))return;let[X,Z]=K.split("/"),Q=B1.getStylesForProperty(J,X,!0),W=B1.getStylesForProperty(J,Z,!0);for(let w in Q)W[w]=J8(J,Q[w])+" "+J8(J,W[w]);return W}if(/^border(Top|Right|Bottom|Left)?$/.test(J)){let X=B1.getStylesForProperty("border",K,!0);X.borderWidth===1&&!String(K).includes("1px")&&(X.borderWidth=3),X.borderColor==="black"&&!String(K).includes("black")&&(X.borderColor=Y);let Z={Width:J8(J+"Width",X.borderWidth),Style:$1(X.borderStyle,{solid:"solid",dashed:"dashed"},"solid",J+"Style"),Color:X.borderColor},Q={};for(let W of J==="border"?["Top","Right","Bottom","Left"]:[J.slice(6)])for(let w in Z)Q["border"+W+w]=Z[w];return Q}if(J==="boxShadow"){if(!K)throw Error('Invalid `boxShadow` value: "'+K+'".');return{[J]:typeof K=="string"?DK.parse(K):K}}if(J==="transform"){if(typeof K!="string")throw Error("Invalid `transform` value.");let X={},Z=K.replace(/(-?[\d.]+%)/g,(W,w)=>{let H=~~(Math.random()*1e9);return X[H]=w,H+"px"}),Q=B1.getStylesForProperty("transform",Z,!0);for(let W of Q.transform)for(let w in W)X[W[w]]&&(W[w]=X[W[w]]);return Q}if(J==="background")return K=K.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient)\(/.test(K)?B1.getStylesForProperty("backgroundImage",K,!0):B1.getStylesForProperty("background",K,!0);if(J==="textShadow"){K=K.toString().trim();let X={},Z=LK(K);for(let Q of Z){let W=B1.getStylesForProperty("textShadow",Q,!0);for(let w in W)X[w]?X[w].push(W[w]):X[w]=[W[w]]}return X}if(J==="WebkitTextStroke"){K=K.toString().trim();let X=K.split(" ");if(X.length!==2)throw Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:J8(J,X[0]),WebkitTextStrokeColor:J8(J,X[1])}}}function EJ(J){return J==="transform"?" Only absolute lengths such as `10px` are supported.":""}var _J=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function CK(J){if(typeof J=="string"&&_J.test(J.trim()))return J.trim().replace(_J,(K,Y,X,Z,Q)=>`rgba(${Y}, ${X}, ${Z}, ${Q})`);if(typeof J=="object"&&J!==null){for(let K in J)J[K]=CK(J[K]);return J}return J}function RJ(J,K){let Y={};if(J){let Z=Tz(J.color,K.color);Y.color=Z;for(let Q in J){if(Q.startsWith("_")){Y[Q]=J[Q];continue}if(Q==="color")continue;let W=B1.getPropertyName(Q),w=Pz(J[Q],Z);try{let H=Dz(W,w,Z)||Rz(W,B1.getStylesForProperty(W,J8(W,w),!0),w,Z);Object.assign(Y,H)}catch(H){throw Error(H.message+(H.message.includes(w)?`
|
|
64
64
|
`+EJ(W):`
|
|
65
|
-
in CSS rule \`${W}: ${w}\`.${EJ(W)}`))}}}if(Y.backgroundImage){let{backgrounds:Z}=RK.parseElementStyle(Y);Y.backgroundImage=Z}(Y.maskImage||Y.WebkitMaskImage)&&(Y.maskImage=Fz(Y));let X=Iz(Y.fontSize,K.fontSize);typeof Y.fontSize<"u"&&(Y.fontSize=X),Y.transformOrigin&&(Y.transformOrigin=Lz(Y.transformOrigin,X));for(let Z in Y){let Q=Y[Z];if(Z==="lineHeight")typeof Q=="string"&&Q!=="normal"&&(Q=Y[Z]=U0(Q,X,X,K,!0)/X);else{if(typeof Q=="string"){let W=U0(Q,X,X,K);typeof W<"u"&&(Y[Z]=W),Q=Y[Z]}if(typeof Q=="string"||typeof Q=="object"){let W=CK(Q);W&&(Y[Z]=W),Q=Y[Z]}}if(Z==="opacity"&&typeof Q=="number"&&(Y.opacity=Q*K.opacity),Z==="transform"){let W=Q;for(let w of W){let H=Object.keys(w)[0],z=w[H],U=typeof z=="string"?U0(z,X,X,K)??z:z;w[H]=U}}if(Z==="textShadowRadius"){let W=Q;Y.textShadowRadius=W.map((w)=>U0(w,X,0,K,!1))}if(Z==="textShadowOffset"){let W=Q;Y.textShadowOffset=W.map(({height:w,width:H})=>({height:U0(w,X,0,K,!1),width:U0(H,X,0,K,!1)}))}}return Y}function Iz(J,K){if(typeof J=="number")return J;try{let Y=new c8(J);switch(Y.unit){case"em":return Y.value*K;case"rem":return Y.value*16}}catch{return K}}function DJ(J){if(J.startsWith("hsl")){let K=z5(J),[Y,X,Z]=K.values;return`hsl(${[Y,`${X}%`,`${Z}%`].concat(K.alpha===1?[]:[K.alpha]).join(",")})`}return J}function Tz(J,K){return J&&J.toLowerCase()!=="currentcolor"?DJ(J):DJ(K)}function Cz(J,K){return J.replace(/currentcolor/gi,K)}function Pz(J,K){return jK(J)&&(J=Cz(J,K)),J}async function Sz(J,K,Y,X,Z){let Q=await f5(),W={...Y,...RJ(Mz[K],Y),...RJ(X,Y)};if(K==="img"){let[w,H,z]=await S4(Z.src);if(H===void 0&&z===void 0){if(Z.width===void 0||Z.height===void 0)throw Error("Image size cannot be determined. Please provide the width and height of the image.");H=parseInt(Z.width),z=parseInt(Z.height)}let U=z/H,V=(W.borderLeftWidth||0)+(W.borderRightWidth||0)+(W.paddingLeft||0)+(W.paddingRight||0),$=(W.borderTopWidth||0)+(W.borderBottomWidth||0)+(W.paddingTop||0)+(W.paddingBottom||0),B=W.width||Z.width,M=W.height||Z.height,G=typeof B=="number"&&typeof M=="number";G&&(B-=V,M-=$),B===void 0&&M===void 0?(B="100%",J.setAspectRatio(1/U)):B===void 0?typeof M=="number"?B=M/U:J.setAspectRatio(1/U):M===void 0&&(typeof B=="number"?M=B*U:J.setAspectRatio(1/U)),W.width=G?B+V:B,W.height=G?M+$:M,W.__src=w}if(K==="svg"){let w=Z.viewBox||Z.viewbox,H=C4(w),z=H?H[3]/H[2]:null,{width:U,height:V}=Z;typeof U>"u"&&V?z==null?U=0:typeof V=="string"&&V.endsWith("%")?U=parseInt(V)/z+"%":(V=U0(V,Y.fontSize,1,Y),U=V/z):typeof V>"u"&&U?z==null?U=0:typeof U=="string"&&U.endsWith("%")?V=parseInt(U)*z+"%":(U=U0(U,Y.fontSize,1,Y),V=U*z):(typeof U<"u"&&(U=U0(U,Y.fontSize,1,Y)||U),typeof V<"u"&&(V=U0(V,Y.fontSize,1,Y)||V),U||=H==null?void 0:H[2],V||=H==null?void 0:H[3]),!W.width&&U&&(W.width=U),!W.height&&V&&(W.height=V)}return J.setDisplay($1(W.display,{flex:Q.DISPLAY_FLEX,block:Q.DISPLAY_FLEX,none:Q.DISPLAY_NONE,"-webkit-box":Q.DISPLAY_FLEX},Q.DISPLAY_FLEX,"display")),J.setAlignContent($1(W.alignContent,{stretch:Q.ALIGN_STRETCH,center:Q.ALIGN_CENTER,"flex-start":Q.ALIGN_FLEX_START,"flex-end":Q.ALIGN_FLEX_END,"space-between":Q.ALIGN_SPACE_BETWEEN,"space-around":Q.ALIGN_SPACE_AROUND,baseline:Q.ALIGN_BASELINE,normal:Q.ALIGN_AUTO},Q.ALIGN_AUTO,"alignContent")),J.setAlignItems($1(W.alignItems,{stretch:Q.ALIGN_STRETCH,center:Q.ALIGN_CENTER,"flex-start":Q.ALIGN_FLEX_START,"flex-end":Q.ALIGN_FLEX_END,baseline:Q.ALIGN_BASELINE,normal:Q.ALIGN_AUTO},Q.ALIGN_STRETCH,"alignItems")),J.setAlignSelf($1(W.alignSelf,{stretch:Q.ALIGN_STRETCH,center:Q.ALIGN_CENTER,"flex-start":Q.ALIGN_FLEX_START,"flex-end":Q.ALIGN_FLEX_END,baseline:Q.ALIGN_BASELINE,normal:Q.ALIGN_AUTO},Q.ALIGN_AUTO,"alignSelf")),J.setJustifyContent($1(W.justifyContent,{center:Q.JUSTIFY_CENTER,"flex-start":Q.JUSTIFY_FLEX_START,"flex-end":Q.JUSTIFY_FLEX_END,"space-between":Q.JUSTIFY_SPACE_BETWEEN,"space-around":Q.JUSTIFY_SPACE_AROUND},Q.JUSTIFY_FLEX_START,"justifyContent")),J.setFlexDirection($1(W.flexDirection,{row:Q.FLEX_DIRECTION_ROW,column:Q.FLEX_DIRECTION_COLUMN,"row-reverse":Q.FLEX_DIRECTION_ROW_REVERSE,"column-reverse":Q.FLEX_DIRECTION_COLUMN_REVERSE},Q.FLEX_DIRECTION_ROW,"flexDirection")),J.setFlexWrap($1(W.flexWrap,{wrap:Q.WRAP_WRAP,nowrap:Q.WRAP_NO_WRAP,"wrap-reverse":Q.WRAP_WRAP_REVERSE},Q.WRAP_NO_WRAP,"flexWrap")),typeof W.gap<"u"&&J.setGap(Q.GUTTER_ALL,W.gap),typeof W.rowGap<"u"&&J.setGap(Q.GUTTER_ROW,W.rowGap),typeof W.columnGap<"u"&&J.setGap(Q.GUTTER_COLUMN,W.columnGap),typeof W.flexBasis<"u"&&J.setFlexBasis(W.flexBasis),J.setFlexGrow(typeof W.flexGrow>"u"?0:W.flexGrow),J.setFlexShrink(typeof W.flexShrink>"u"?0:W.flexShrink),typeof W.maxHeight<"u"&&J.setMaxHeight(W.maxHeight),typeof W.maxWidth<"u"&&J.setMaxWidth(W.maxWidth),typeof W.minHeight<"u"&&J.setMinHeight(W.minHeight),typeof W.minWidth<"u"&&J.setMinWidth(W.minWidth),J.setOverflow($1(W.overflow,{visible:Q.OVERFLOW_VISIBLE,hidden:Q.OVERFLOW_HIDDEN},Q.OVERFLOW_VISIBLE,"overflow")),J.setMargin(Q.EDGE_TOP,W.marginTop||0),J.setMargin(Q.EDGE_BOTTOM,W.marginBottom||0),J.setMargin(Q.EDGE_LEFT,W.marginLeft||0),J.setMargin(Q.EDGE_RIGHT,W.marginRight||0),J.setBorder(Q.EDGE_TOP,W.borderTopWidth||0),J.setBorder(Q.EDGE_BOTTOM,W.borderBottomWidth||0),J.setBorder(Q.EDGE_LEFT,W.borderLeftWidth||0),J.setBorder(Q.EDGE_RIGHT,W.borderRightWidth||0),J.setPadding(Q.EDGE_TOP,W.paddingTop||0),J.setPadding(Q.EDGE_BOTTOM,W.paddingBottom||0),J.setPadding(Q.EDGE_LEFT,W.paddingLeft||0),J.setPadding(Q.EDGE_RIGHT,W.paddingRight||0),J.setPositionType($1(W.position,{absolute:Q.POSITION_TYPE_ABSOLUTE,relative:Q.POSITION_TYPE_RELATIVE},Q.POSITION_TYPE_RELATIVE,"position")),typeof W.top<"u"&&J.setPosition(Q.EDGE_TOP,W.top),typeof W.bottom<"u"&&J.setPosition(Q.EDGE_BOTTOM,W.bottom),typeof W.left<"u"&&J.setPosition(Q.EDGE_LEFT,W.left),typeof W.right<"u"&&J.setPosition(Q.EDGE_RIGHT,W.right),typeof W.height<"u"?J.setHeight(W.height):J.setHeightAuto(),typeof W.width<"u"?J.setWidth(W.width):J.setWidthAuto(),[W,Oz(W)]}var IJ=[1,0,0,1,0,0];function vz(J,K,Y){let X=[...IJ];for(let Z of J){let Q=Object.keys(Z)[0],W=Z[Q];if(typeof W=="string")if(Q==="translateX")W=parseFloat(W)/100*K,Z[Q]=W;else if(Q==="translateY")W=parseFloat(W)/100*Y,Z[Q]=W;else throw Error(`Invalid transform: "${Q}: ${W}".`);let w=W,H=[...IJ];switch(Q){case"translateX":H[4]=w;break;case"translateY":H[5]=w;break;case"scale":H[0]=w,H[3]=w;break;case"scaleX":H[0]=w;break;case"scaleY":H[3]=w;break;case"rotate":{let z=w*Math.PI/180,U=Math.cos(z),V=Math.sin(z);H[0]=U,H[1]=V,H[2]=-V,H[3]=U;break}case"skewX":H[2]=Math.tan(w*Math.PI/180);break;case"skewY":H[1]=Math.tan(w*Math.PI/180);break}X=S5(H,X)}J.splice(0,J.length),J.push(...X),J.__resolved=!0}function PK({left:J,top:K,width:Y,height:X},Z,Q,W){let w;Z.__resolved||vz(Z,Y,X);let H=Z;if(Q)w=H;else{let z=(W==null?void 0:W.xAbsolute)??((W==null?void 0:W.xRelative)??50)*Y/100,U=(W==null?void 0:W.yAbsolute)??((W==null?void 0:W.yRelative)??50)*X/100,V=J+z,$=K+U;w=S5([1,0,0,1,V,$],S5(H,[1,0,0,1,-V,-$])),H.__parent&&(w=S5(H.__parent,w)),H.splice(0,6,...w)}return`matrix(${w.map((z)=>z.toFixed(2)).join(",")})`}function yz({left:J,top:K,width:Y,height:X,isInheritingTransform:Z},Q){let W="",w=1;return Q.transform&&(W=PK({left:J,top:K,width:Y,height:X},Q.transform,Z,Q.transformOrigin)),Q.opacity!==void 0&&(w=+Q.opacity),{matrix:W,opacity:w}}function kz({id:J,content:K,filter:Y,left:X,top:Z,width:Q,height:W,matrix:w,opacity:H,image:z,clipPathId:U,debug:V,shape:$,decorationShape:B},M){let G="";if(V&&(G=a("rect",{x:X,y:Z-W,width:Q,height:W,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:w||void 0,"clip-path":U?`url(#${U})`:void 0})),z){let O={href:z,x:X,y:Z,width:Q,height:W,transform:w||void 0,"clip-path":U?`url(#${U})`:void 0,style:M.filter?`filter:${M.filter}`:void 0};return[(Y?`${Y}<g filter="url(#satori_s-${J})">`:"")+a("image",{...O,opacity:H!==1?H:void 0})+(B||"")+(Y?"</g>":"")+G,""]}let q={x:X,y:Z,width:Q,height:W,"font-weight":M.fontWeight,"font-style":M.fontStyle,"font-size":M.fontSize,"font-family":M.fontFamily,"letter-spacing":M.letterSpacing||void 0,transform:w||void 0,"clip-path":U?`url(#${U})`: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[(Y?`${Y}<g filter="url(#satori_s-${J})">`:"")+a("text",{...q,fill:M.color,opacity:H!==1?H:void 0},M4.default(K))+(B||"")+(Y?"</g>":"")+G,$?a("text",q,M4.default(K)):""]}function gz(J,K,Y){return J.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(X,Z,Q,W){return Z+(parseFloat(Q)+K)+","+(parseFloat(W)+Y)})}var L5=1.1;function xz({id:J,width:K,height:Y},X){if(!X.shadowColor||!X.shadowOffset||typeof X.shadowRadius>"u")return"";let Z=X.shadowColor.length,Q="",W="",w=0,H=K,z=0,U=Y;for(let V=0;V<Z;V++){let $=X.shadowRadius[V]*X.shadowRadius[V]/4;w=Math.min(X.shadowOffset[V].width-$,w),H=Math.max(X.shadowOffset[V].width+$+K,H),z=Math.min(X.shadowOffset[V].height-$,z),U=Math.max(X.shadowOffset[V].height+$+Y,U),Q+=a("feDropShadow",{dx:X.shadowOffset[V].width,dy:X.shadowOffset[V].height,stdDeviation:X.shadowRadius[V]/2,"flood-color":X.shadowColor[V],"flood-opacity":1,...Z>1?{in:"SourceGraphic",result:`satori_s-${J}-result-${V}`}:{}}),Z>1&&(W=a("feMergeNode",{in:`satori_s-${J}-result-${V}`})+W)}return a("filter",{id:`satori_s-${J}`,x:(w/K*100*L5).toFixed(2)+"%",y:(z/Y*100*L5).toFixed(2)+"%",width:((H-w)/K*100*L5).toFixed(2)+"%",height:((U-z)/Y*100*L5).toFixed(2)+"%"},Q+(W?a("feMerge",{},W):""))}function bz({width:J,height:K,shape:Y,opacity:X,id:Z},Q){if(!Q.boxShadow)return null;let W="",w="";for(let H=Q.boxShadow.length-1;H>=0;H--){let z="",U=Q.boxShadow[H];U.spreadRadius&&U.inset&&(U.spreadRadius=-U.spreadRadius);let V=U.blurRadius*U.blurRadius/4+(U.spreadRadius||0),$=Math.min(-V-(U.inset?U.offsetX:0),0),B=Math.max(V+J-(U.inset?U.offsetX:0),J),M=Math.min(-V-(U.inset?U.offsetY:0),0),G=Math.max(V+K-(U.inset?U.offsetY:0),K),q=`satori_s-${Z}-${H}`,O=`satori_ms-${Z}-${H}`,j=U.spreadRadius?Y.replace('stroke-width="0"',`stroke-width="${U.spreadRadius*2}"`):Y;z+=a("mask",{id:O,maskUnits:"userSpaceOnUse"},a("rect",{x:0,y:0,width:Q._viewportWidth||"100%",height:Q._viewportHeight||"100%",fill:U.inset?"#000":"#fff"})+j.replace('fill="#fff"',U.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let _=j.replace(/d="([^"]+)"/,(R,E)=>'d="'+gz(E,U.offsetX,U.offsetY)+'"').replace(/x="([^"]+)"/,(R,E)=>'x="'+(parseFloat(E)+U.offsetX)+'"').replace(/y="([^"]+)"/,(R,E)=>'y="'+(parseFloat(E)+U.offsetY)+'"');U.spreadRadius&&U.spreadRadius<0&&(z+=a("mask",{id:O+"-neg",maskUnits:"userSpaceOnUse"},_.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-U.spreadRadius*2}"`))),U.spreadRadius&&U.spreadRadius<0&&(_=a("g",{mask:`url(#${O}-neg)`},_)),z+=a("defs",{},a("filter",{id:q,x:`${$/J*100}%`,y:`${M/K*100}%`,width:`${(B-$)/J*100}%`,height:`${(G-M)/K*100}%`},a("feGaussianBlur",{stdDeviation:U.blurRadius/2,result:"b"})+a("feFlood",{"flood-color":U.color,in:"SourceGraphic",result:"f"})+a("feComposite",{in:"f",in2:"b",operator:U.inset?"out":"in"})))+a("g",{mask:`url(#${O})`,filter:`url(#${q})`,opacity:X},_),U.inset?w+=z:W+=z}return[W,w]}function hz({width:J,left:K,top:Y,ascender:X,clipPathId:Z,matrix:Q},W){let{textDecorationColor:w,textDecorationStyle:H,textDecorationLine:z,fontSize:U,color:V}=W;if(!z||z==="none")return"";let $=Math.max(1,U*0.1),B=z==="line-through"?Y+X*0.7:z==="underline"?Y+X*1.1:Y,M=H==="dashed"?`${$*1.2} ${$*2}`:H==="dotted"?`0 ${$*2}`:void 0;return(Z?`<g clip-path="url(#${Z})">`:"")+a("line",{x1:K,y1:B,x2:K+J,y2:B,stroke:w||V,"stroke-width":$,"stroke-dasharray":M,"stroke-linecap":H==="dotted"?"round":"square",transform:Q})+(Z?"</g>":"")}function v4(J){return J=J.replace("U+","0x"),String.fromCodePoint(Number(J))}var d8=v4("U+0020"),SK=v4("U+0009"),y5=v4("U+2026");function mz(J,K,Y){let{fontSize:X,letterSpacing:Z}=Y,Q=new Map;function W(z){if(Q.has(z))return Q.get(z);let U=J.measure(z,{fontSize:X,letterSpacing:Z});return Q.set(z,U),U}function w(z){let U=0;for(let V of z)K(V)?U+=X:U+=W(V);return U}function H(z){return w(A1(z,"grapheme"))}return{measureGrapheme:W,measureGraphemeArray:w,measureText:H}}function fz(J,K,Y){let{textTransform:X,whiteSpace:Z,wordBreak:Q}=K;J=dz(J,X,Y);let{content:W,shouldCollapseTabsAndSpaces:w,allowSoftWrap:H}=uz(J,Z),{words:z,requiredBreaks:U,allowBreakWord:V}=cz(W,Q),[$,B]=lz(K,H);return{words:z,requiredBreaks:U,allowSoftWrap:H,allowBreakWord:V,processedContent:W,shouldCollapseTabsAndSpaces:w,lineLimit:$,blockEllipsis:B}}function dz(J,K,Y){return K==="uppercase"?J=J.toLocaleUpperCase(Y):K==="lowercase"?J=J.toLocaleLowerCase(Y):K==="capitalize"&&(J=A1(J,"word",Y).map((X)=>A1(X,"grapheme",Y).map((Z,Q)=>Q===0?Z.toLocaleUpperCase(Y):Z).join("")).join("")),J}function lz(J,K){let{textOverflow:Y,lineClamp:X,WebkitLineClamp:Z,WebkitBoxOrient:Q,overflow:W,display:w}=J;if(w==="block"&&X){let[H,z=y5]=pz(X);if(H)return[H,z]}return Y==="ellipsis"&&w==="-webkit-box"&&Q==="vertical"&&Xz(Z)&&Z>0?[Z,y5]:Y==="ellipsis"&&W==="hidden"&&!K?[1,y5]:[1/0]}function cz(J,K){let Y=["break-all","break-word"].includes(K),{words:X,requiredBreaks:Z}=Qz(J,K);return{words:X,requiredBreaks:Z,allowBreakWord:Y}}function uz(J,K){let Y=["pre","pre-wrap","pre-line"].includes(K),X=["normal","nowrap","pre-line"].includes(K),Z=!["pre","nowrap"].includes(K);return Y||(J=J.replace(/\n/g,d8)),X&&(J=J.replace(/([ ]|\t)+/g,d8).replace(/^[ ]|[ ]$/g,"")),{content:J,shouldCollapseTabsAndSpaces:X,allowSoftWrap:Z}}function pz(J){if(typeof J=="number")return[J];let K=/^(\d+)\s*"(.*)"$/,Y=/^(\d+)\s*'(.*)'$/,X=K.exec(J),Z=Y.exec(J);if(X){let Q=+X[1],W=X[2];return[Q,W]}else if(Z){let Q=+Z[1],W=Z[2];return[Q,W]}return[]}var iz=new Set([SK]);function oz(J){return iz.has(J)}async function*rz(J,K){let Y=await f5(),{parentStyle:X,inheritedStyle:Z,parent:Q,font:W,id:w,isInheritingTransform:H,debug:z,embedFont:U,graphemeImages:V,locale:$,canLoadAdditionalAssets:B}=K,{textAlign:M,lineHeight:G,textWrap:q,fontSize:O,filter:j,tabSize:_=8,letterSpacing:R,_inheritedBackgroundClipTextPath:E,flexShrink:L}=X,{words:T,requiredBreaks:D,allowSoftWrap:P,allowBreakWord:k,processedContent:c,shouldCollapseTabsAndSpaces:n,lineLimit:u,blockEllipsis:C}=fz(J,X,$),S=nz(Y,M);Q.insertChild(S,Q.getChildCount()),Zz(L)&&Q.setFlexShrink(1);let I=W.getEngine(O,G,X,$),d=B?A1(c,"grapheme").filter((Q0)=>!oz(Q0)&&!I.has(Q0)):[];yield d.map((Q0)=>({word:Q0,locale:$})),d.length&&(I=W.getEngine(O,G,X,$));function m(Q0){return!!(V&&V[Q0])}let{measureGrapheme:s,measureGraphemeArray:p,measureText:f}=mz(I,m,{fontSize:O,letterSpacing:R}),l=jK(_)?U0(_,O,1,X):s(d8)*_,y=(Q0,M0)=>{if(Q0.length===0)return{originWidth:0,endingSpacesWidth:0,text:Q0};let{index:j0,tabCount:V0}=sz(Q0),R0=0;if(V0>0){let T0=Q0.slice(0,j0),F0=Q0.slice(j0+V0),G0=f(T0),G1=G0+M0;R0=(l===0?G0:(Math.floor(G1/l)+V0)*l)+f(F0)}else R0=f(Q0);let B0=Q0.trimEnd()===Q0?R0:f(Q0.trimEnd());return{originWidth:R0,endingSpacesWidth:R0-B0,text:Q0}},g=[],r=[],x=[],e=[],Y0=[];function X0(Q0){let M0=0,j0=0,V0=-1,R0=0,B0=0,T0=0,F0=0;g=[],x=[0],e=[],Y0=[];let G0=0,G1=0;for(;G0<T.length&&M0<u;){let w0=T[G0],o1=D[G0],s0=0,{originWidth:v1,endingSpacesWidth:n8,text:y1}=y(w0,B0);w0=y1,s0=v1;let N0=n8;o1&&T0===0&&(T0=I.height(w0));let g0=",.!?:-@)>]}%#".indexOf(w0[0])<0,Q1=!B0,s8=G0&&g0&&B0+s0>Q0+N0&&P;if(k&&s0>Q0&&(!B0||s8||o1)){let d0=A1(w0,"grapheme");T.splice(G0,1,...d0),B0>0&&(g.push(B0-G1),r.push(F0),M0++,R0+=T0,B0=0,T0=0,F0=0,x.push(1),V0=-1),G1=N0;continue}if(o1||s8)n&&w0===d8&&(s0=0),g.push(B0-G1),r.push(F0),M0++,R0+=T0,B0=s0,T0=s0?I.height(w0):0,F0=s0?I.baseline(w0):0,x.push(1),V0=-1,o1||(j0=Math.max(j0,Q0));else{B0+=s0;let d0=I.height(w0);d0>T0&&(T0=d0,F0=I.baseline(w0)),Q1&&x[x.length-1]++}Q1&&V0++,j0=Math.max(j0,B0);let q8=B0-s0;if(s0===0)Y0.push({y:R0,x:q8,width:0,line:M0,lineIndex:V0,isImage:!1});else{let d0=A1(w0,"word");for(let W1=0;W1<d0.length;W1++){let r1=d0[W1],_1=0,M8=!1;m(r1)?(_1=O,M8=!0):_1=s(r1),e.push(r1),Y0.push({y:R0,x:q8,width:_1,line:M0,lineIndex:V0,isImage:M8}),q8+=_1}}G0++,G1=N0}return B0&&(M0<u&&(R0+=T0),M0++,g.push(B0),r.push(F0)),{width:j0,height:R0}}let J0={width:0,height:0};S.setMeasureFunc((Q0)=>{let{width:M0,height:j0}=X0(Q0);if(q==="balance"){let R0=M0/2,B0=M0,T0=M0;for(;R0+1<B0;){T0=(R0+B0)/2;let{height:G0}=X0(T0);G0>j0?R0=T0:B0=T0}X0(B0);let F0=Math.ceil(B0);return J0={width:F0,height:j0},{width:F0,height:j0}}let V0=Math.ceil(M0);return J0={width:V0,height:j0},{width:V0,height:j0}});let[$0,_0]=yield,K0="",A0="",S0=Z._inheritedClipPathId,c0=Z._inheritedMaskId,{left:k0,top:I0,width:f0,height:u0}=S.getComputedLayout(),p0=Q.getComputedWidth()-Q.getComputedPadding(Y.EDGE_LEFT)-Q.getComputedPadding(Y.EDGE_RIGHT)-Q.getComputedBorder(Y.EDGE_LEFT)-Q.getComputedBorder(Y.EDGE_RIGHT),X1=$0+k0,Z1=_0+I0,{matrix:n0,opacity:X8}=yz({left:k0,top:I0,width:f0,height:u0,isInheritingTransform:H},X),P1="";if(X.textShadowOffset){let{textShadowColor:Q0,textShadowOffset:M0,textShadowRadius:j0}=X;P1=xz({width:J0.width,height:J0.height,id:w},{shadowColor:Q0,shadowOffset:M0,shadowRadius:j0}),P1=a("defs",{},P1)}let i1="",Z8="",r8="",Q8=-1,W8={},S1=null,m4=0;for(let Q0=0;Q0<e.length;Q0++){let M0=Y0[Q0],j0=Y0[Q0+1];if(!M0)continue;let V0=e[Q0],R0=null,B0=!1,T0=V?V[V0]:null,F0=M0.y,G0=M0.x,G1=M0.width,w0=M0.line;if(w0===Q8)continue;let o1=!1;if(g.length>1){let N0=f0-g[w0];if(M==="right"||M==="end")G0+=N0;else if(M==="center")G0+=N0/2;else if(M==="justify"&&w0<g.length-1){let g0=x[w0],Q1=g0>1?N0/(g0-1):0;G0+=Q1*M0.lineIndex,o1=!0}}let s0=r[w0],v1=I.baseline(V0),n8=I.height(V0),y1=s0-v1;if(W8[w0]||(W8[w0]=[G0,Z1+F0+y1,v1,o1?f0:g[w0]]),u!==1/0){let N0=function(d0,W1){let r1=A1(W1,"grapheme",$),_1="",M8=0;for(let f4 of r1){let d4=d0+p([_1+f4]);if(_1&&d4+Q1>p0)break;_1+=f4,M8=d4}return{subset:_1,resolvedWidth:M8}},g0=C,Q1=s(C);Q1>p0&&(g0=y5,Q1=s(g0));let s8=s(d8),q8=w0<g.length-1;if(w0+1===u&&(q8||g[w0]>p0)){if(G0+G1+Q1+s8>p0){let{subset:d0,resolvedWidth:W1}=N0(G0,V0);V0=d0+g0,Q8=w0,W8[w0][2]=W1,B0=!0}else if(j0&&j0.line!==w0)if(M==="center"){let{subset:d0,resolvedWidth:W1}=N0(G0,V0);V0=d0+g0,Q8=w0,W8[w0][2]=W1,B0=!0}else{let d0=e[Q0+1],{subset:W1,resolvedWidth:r1}=N0(G1+G0,d0);V0=V0+W1+g0,Q8=w0,W8[w0][2]=r1,B0=!0}}}if(T0)F0+=0;else if(U){if(!V0.includes(SK)&&!Jz.includes(V0)&&e[Q0+1]&&j0&&!j0.isImage&&F0===j0.y&&!B0){S1===null&&(m4=G0),S1=S1===null?V0:S1+V0;continue}let N0=S1===null?V0:S1+V0,g0=S1===null?G0:m4,Q1=M0.width+G0-g0;R0=I.getSVG(N0.replace(/(\t)+/g,""),{fontSize:O,left:X1+g0,top:Z1+F0+v1+y1,letterSpacing:R}),S1=null,z&&(r8+=a("rect",{x:X1+g0,y:Z1+F0+y1,width:Q1,height:n8,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:n0||void 0,"clip-path":S0?`url(#${S0})`:void 0})+a("line",{x1:X1+G0,x2:X1+G0+M0.width,y1:Z1+F0+y1+v1,y2:Z1+F0+y1+v1,stroke:"#14c000","stroke-width":1,transform:n0||void 0,"clip-path":S0?`url(#${S0})`:void 0}))}else F0+=v1+y1;if(X.textDecorationLine){let N0=W8[w0];N0&&!N0[4]&&(i1+=hz({left:X1+N0[0],top:N0[1],width:N0[3],ascender:N0[2],clipPathId:S0,matrix:n0},X),N0[4]=1)}if(R0!==null)Z8+=R0+" ";else{let[N0,g0]=kz({content:V0,filter:P1,id:w,left:X1+G0,top:Z1+F0,width:G1,height:n8,matrix:n0,opacity:X8,image:T0,clipPathId:S0,debug:z,shape:!!E,decorationShape:i1},X);K0+=N0,A0+=g0,i1=""}if(B0)break}if(Z8){let Q0=X.color!=="transparent"&&X8!==0?a("path",{fill:X.color,d:Z8,transform:n0||void 0,opacity:X8!==1?X8:void 0,"clip-path":S0?`url(#${S0})`:void 0,mask:c0?`url(#${c0})`:void 0,style:j?`filter:${j}`:void 0,"stroke-width":Z.WebkitTextStrokeWidth?`${Z.WebkitTextStrokeWidth}px`:void 0,stroke:Z.WebkitTextStrokeWidth?Z.WebkitTextStrokeColor:void 0,"stroke-linejoin":Z.WebkitTextStrokeWidth?"round":void 0,"paint-order":Z.WebkitTextStrokeWidth?"stroke":void 0}):"";E&&(A0=a("path",{d:Z8,transform:n0||void 0})),K0+=(P1?P1+a("g",{filter:`url(#satori_s-${w})`},Q0+i1):Q0+i1)+r8}return A0&&(X._inheritedBackgroundClipTextPath.value+=A0),K0}function nz(J,K){let Y=J.Node.create();return Y.setAlignItems(J.ALIGN_BASELINE),Y.setJustifyContent($1(K,{left:J.JUSTIFY_FLEX_START,right:J.JUSTIFY_FLEX_END,center:J.JUSTIFY_CENTER,justify:J.JUSTIFY_SPACE_BETWEEN,start:J.JUSTIFY_FLEX_START,end:J.JUSTIFY_FLEX_END},J.JUSTIFY_FLEX_START,"textAlign")),Y}function sz(J){let K=/(\t)+/.exec(J);return K?{index:K.index,tabCount:K[0].length}:{index:null,tabCount:0}}function vK(J,K,Y,X,Z){let Q=[];for(let z of K){let{color:U}=z;if(!Q.length&&(Q.push({offset:0,color:U}),!z.offset||z.offset.value==="0"))continue;let V=typeof z.offset>"u"?void 0:z.offset.unit==="%"?+z.offset.value/100:Number(U0(`${z.offset.value}${z.offset.unit}`,Y.fontSize,J,Y,!0))/J;Q.push({offset:V,color:U})}Q.length||Q.push({offset:0,color:"transparent"});let W=Q[Q.length-1];W.offset!==1&&(typeof W.offset>"u"?W.offset=1:X?Q[Q.length-1]={offset:1,color:W.color}:Q.push({offset:1,color:W.color}));let w=0,H=1;for(let z=0;z<Q.length;z++)if(typeof Q[z].offset>"u"){for(H<z&&(H=z);typeof Q[H].offset>"u";)H++;Q[z].offset=(Q[H].offset-Q[w].offset)/(H-w)*(z-w)+Q[w].offset}else w=z;return Z==="mask"?Q.map((z)=>{let U=z5(z.color);return U?U.alpha===0?{...z,color:"rgba(0, 0, 0, 1)"}:{...z,color:`rgba(255, 255, 255, ${U.alpha})`}:z}):Q}function az({id:J,width:K,height:Y,repeatX:X,repeatY:Z},Q,W,w,H,z){let U=L7(Q),[V,$]=W,B=Q.startsWith("repeating"),M,G,q;if(U.orientation.type==="directional")M=ez(U.orientation.value),G=Math.sqrt(Math.pow((M.x2-M.x1)*V,2)+Math.pow((M.y2-M.y1)*$,2));else if(U.orientation.type==="angular"){let{length:E,...L}=JU(OK(`${U.orientation.value.value}${U.orientation.value.unit}`)/180*Math.PI,V,$);G=E,M=L}q=B?KU(U.stops,G,M,H):M;let O=vK(B?tz(U.stops,G):G,U.stops,H,B,z),j=`satori_bi${J}`,_=`satori_pattern_${J}`,R=a("pattern",{id:_,x:w[0]/K,y:w[1]/Y,width:X?V/K:"1",height:Z?$/Y:"1",patternUnits:"objectBoundingBox"},a("linearGradient",{id:j,...q,spreadMethod:B?"repeat":"pad"},O.map((E)=>a("stop",{offset:(E.offset??0)*100+"%","stop-color":E.color})).join(""))+a("rect",{x:0,y:0,width:V,height:$,fill:`url(#${j})`}));return[_,R]}function tz(J,K){let Y=J[J.length-1],{offset:X}=Y;return X?X.unit==="%"?Number(X.value)/100*K:Number(X.value):K}function ez(J){let K=0,Y=0,X=0,Z=0;return J.includes("top")?Y=1:J.includes("bottom")&&(Z=1),J.includes("left")?K=1:J.includes("right")&&(X=1),!K&&!X&&!Y&&!Z&&(Y=1),{x1:K,y1:Y,x2:X,y2:Z}}function JU(J,K,Y){let X=Math.pow(Y/K,2);J=(J%(Math.PI*2)+Math.PI*2)%(Math.PI*2);let Z,Q,W,w,H,z,U,V,$=(B)=>{if(B===0){Z=0,Q=Y,W=0,w=0,H=Y;return}else if(B===Math.PI/2){Z=0,Q=0,W=K,w=0,H=K;return}if(B>0&&B<Math.PI/2){Z=(X*K/2/Math.tan(B)-Y/2)/(Math.tan(B)+X/Math.tan(B)),Q=Math.tan(B)*Z+Y,W=Math.abs(K/2-Z)+K/2,w=Y/2-Math.abs(Q-Y/2),H=Math.sqrt(Math.pow(W-Z,2)+Math.pow(w-Q,2)),U=(K/2/Math.tan(B)-Y/2)/(Math.tan(B)+1/Math.tan(B)),V=Math.tan(B)*U+Y,H=2*Math.sqrt(Math.pow(K/2-U,2)+Math.pow(Y/2-V,2));return}else if(B>Math.PI/2&&B<Math.PI){Z=(Y/2+X*K/2/Math.tan(B))/(Math.tan(B)+X/Math.tan(B)),Q=Math.tan(B)*Z,W=Math.abs(K/2-Z)+K/2,w=Y/2+Math.abs(Q-Y/2),U=(K/2/Math.tan(B)+Y/2)/(Math.tan(B)+1/Math.tan(B)),V=Math.tan(B)*U,H=2*Math.sqrt(Math.pow(K/2-U,2)+Math.pow(Y/2-V,2));return}else B>=Math.PI&&($(B-Math.PI),z=Z,Z=W,W=z,z=Q,Q=w,w=z)};return $(J),{x1:Z/K,y1:Q/Y,x2:W/K,y2:w/Y,length:H}}function KU(J,K,Y,X){let{x1:Z,x2:Q,y1:W,y2:w}=Y,H=J[0].offset?J[0].offset.unit==="%"?Number(J[0].offset.value)/100:U0(`${J[0].offset.value}${J[0].offset.unit}`,X.fontSize,K,X,!0)/K:0,z=J.at(-1).offset?J.at(-1).offset.unit==="%"?Number(J.at(-1).offset.value)/100:U0(`${J.at(-1).offset.value}${J.at(-1).offset.unit}`,X.fontSize,K,X,!0)/K:1,U=(Q-Z)*H+Z,V=(w-W)*H+W,$=(Q-Z)*z+Z,B=(w-W)*z+W;return{x1:U,y1:V,x2:$,y2:B}}function YU({id:J,width:K,height:Y,repeatX:X,repeatY:Z},Q,W,w,H,z){var U;let{shape:V,stops:$,position:B,size:M}=F7(Q),[G,q]=W,O=G/2,j=q/2,_=XU(B.x,B.y,G,q,H.fontSize,H);O=_.x,j=_.y;let R=vK(K,$,H,!1,z),E=`satori_radial_${J}`,L=`satori_pattern_${J}`,T=`satori_mask_${J}`,D=ZU(V,M,H.fontSize,{x:O,y:j},[G,q],H),P=a("pattern",{id:L,x:w[0]/K,y:w[1]/Y,width:X?G/K:"1",height:Z?q/Y:"1",patternUnits:"objectBoundingBox"},a("radialGradient",{id:E},R.map((k)=>a("stop",{offset:k.offset||0,"stop-color":k.color})).join(""))+a("mask",{id:T},a("rect",{x:0,y:0,width:G,height:q,fill:"#fff"}))+a("rect",{x:0,y:0,width:G,height:q,fill:((U=R.at(-1))==null?void 0:U.color)||"transparent"})+a(V,{cx:O,cy:j,width:G,height:q,...D,fill:`url(#${E})`,mask:`url(#${T})`}));return[L,P]}function XU(J,K,Y,X,Z,Q){let W={x:Y/2,y:X/2};return J.type==="keyword"?Object.assign(W,TJ(J.value,Y,X,"x")):W.x=U0(`${J.value.value}${J.value.unit}`,Z,Y,Q,!0)||Y/2,K.type==="keyword"?Object.assign(W,TJ(K.value,Y,X,"y")):W.y=U0(`${K.value.value}${K.value.unit}`,Z,X,Q,!0)||X/2,W}function TJ(J,K,Y,X){switch(J){case"center":return{[X]:X==="x"?K/2:Y/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:K};case"bottom":return{y:Y}}}function ZU(J,K,Y,X,Z,Q){let[W,w]=Z,{x:H,y:z}=X,U={},V=0,$=0;if(QU(K)){if(K.some((B)=>B.value.value.startsWith("-")))throw 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 J==="circle"?{r:Number(U0(`${K[0].value.value}${K[0].value.unit}`,Y,W,Q,!0))}:{rx:Number(U0(`${K[0].value.value}${K[0].value.unit}`,Y,W,Q,!0)),ry:Number(U0(`${K[1].value.value}${K[1].value.unit}`,Y,w,Q,!0))}}switch(K[0].value){case"farthest-corner":V=Math.max(Math.abs(W-H),Math.abs(H)),$=Math.max(Math.abs(w-z),Math.abs(z));break;case"closest-corner":V=Math.min(Math.abs(W-H),Math.abs(H)),$=Math.min(Math.abs(w-z),Math.abs(z));break;case"farthest-side":return J==="circle"?U.r=Math.max(Math.abs(W-H),Math.abs(H),Math.abs(w-z),Math.abs(z)):(U.rx=Math.max(Math.abs(W-H),Math.abs(H)),U.ry=Math.max(Math.abs(w-z),Math.abs(z))),U;case"closest-side":return J==="circle"?U.r=Math.min(Math.abs(W-H),Math.abs(H),Math.abs(w-z),Math.abs(z)):(U.rx=Math.min(Math.abs(W-H),Math.abs(H)),U.ry=Math.min(Math.abs(w-z),Math.abs(z))),U}if(J==="circle")U.r=Math.sqrt(V*V+$*$);else{let B=$!==0?V/$:1;V===0?(U.rx=0,U.ry=0):(U.ry=Math.sqrt(V*V+$*$*B*B)/B,U.rx=U.ry*B)}return U}function QU(J){return!J.some((K)=>K.type==="keyword")}function WU(J,K){return typeof J=="string"&&J.endsWith("%")?K*parseFloat(J)/100:+J}function w4(J,{x:K,y:Y,defaultX:X,defaultY:Z}){return(J?J.split(" ").map((Q)=>{try{let W=new c8(Q);return W.type==="length"||W.type==="number"?W.value:W.value+W.unit}catch{return null}}).filter((Q)=>Q!==null):[X,Z]).map((Q,W)=>WU(Q,[K,Y][W]))}async function yK({id:J,width:K,height:Y,left:X,top:Z},{image:Q,size:W,position:w,repeat:H},z,U){H=H||"repeat",U=U||"background";let V=H==="repeat-x"||H==="repeat",$=H==="repeat-y"||H==="repeat",B=w4(W,{x:K,y:Y,defaultX:K,defaultY:Y}),M=w4(w,{x:K,y:Y,defaultX:0,defaultY:0});if(Q.startsWith("linear-gradient(")||Q.startsWith("repeating-linear-gradient("))return az({id:J,width:K,height:Y,repeatX:V,repeatY:$},Q,B,M,z,U);if(Q.startsWith("radial-gradient("))return YU({id:J,width:K,height:Y,repeatX:V,repeatY:$},Q,B,M,z,U);if(Q.startsWith("url(")){let G=w4(W,{x:K,y:Y,defaultX:0,defaultY:0}),[q,O,j]=await S4(Q.slice(4,-1)),_=U==="mask"?O||G[0]:G[0]||O,R=U==="mask"?j||G[1]:G[1]||j;return[`satori_bi${J}`,a("pattern",{id:`satori_bi${J}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:M[0]+X,y:M[1]+Z,width:V?_:"100%",height:$?R:"100%"},a("image",{x:0,y:0,width:_,height:R,preserveAspectRatio:"none",href:q}))]}throw Error(`Invalid background image: "${Q}"`)}function HU([J,K]){return Math.round(J*1000)===0&&Math.round(K*1000)===0?0:Math.round(J*K/Math.sqrt(J*J+K*K)*1000)/1000}function F5(J,K,Y){return Y<J+K&&(Y/2<J&&Y/2<K?J=K=Y/2:Y/2<J?J=Y-K:Y/2<K&&(K=Y-J)),[J,K]}function E5(J){J[0]=J[1]=Math.min(J[0],J[1])}function _5(J,K,Y,X,Z){if(typeof J=="string"){let Q=J.split(" ").map((w)=>w.trim()),W=!Q[1]&&!Q[0].endsWith("%");return Q[1]=Q[1]||Q[0],[W,[Math.min(U0(Q[0],X,K,Z,!0),K),Math.min(U0(Q[1],X,Y,Z,!0),Y)]]}return typeof J=="number"?[!0,[Math.min(J,K),Math.min(J,Y)]]:[!0,void 0]}var R5=(J)=>J&&J[0]!==0&&J[1]!==0;function wU({id:J,borderRadiusPath:K,borderType:Y,left:X,top:Z,width:Q,height:W},w){let H=`satori_brc-${J}`;return[a("clipPath",{id:H},a(Y,{x:X,y:Z,width:Q,height:W,d:K||void 0})),H]}function x5({left:J,top:K,width:Y,height:X},Z,Q){let{borderTopLeftRadius:W,borderTopRightRadius:w,borderBottomLeftRadius:H,borderBottomRightRadius:z,fontSize:U}=Z,V,$,B,M;if([V,W]=_5(W,Y,X,U,Z),[$,w]=_5(w,Y,X,U,Z),[B,H]=_5(H,Y,X,U,Z),[M,z]=_5(z,Y,X,U,Z),!Q&&!R5(W)&&!R5(w)&&!R5(H)&&!R5(z))return"";W||=[0,0],w||=[0,0],H||=[0,0],z||=[0,0],[W[0],w[0]]=F5(W[0],w[0],Y),[H[0],z[0]]=F5(H[0],z[0],Y),[W[1],H[1]]=F5(W[1],H[1],X),[w[1],z[1]]=F5(w[1],z[1],X),V&&E5(W),$&&E5(w),B&&E5(H),M&&E5(z);let G=[];G[0]=[w,w],G[1]=[z,[-z[0],z[1]]],G[2]=[H,[-H[0],-H[1]]],G[3]=[W,[W[0],-W[1]]];let q=`h${Y-W[0]-w[0]} a${G[0][0]} 0 0 1 ${G[0][1]}`,O=`v${X-w[1]-z[1]} a${G[1][0]} 0 0 1 ${G[1][1]}`,j=`h${z[0]+H[0]-Y} a${G[2][0]} 0 0 1 ${G[2][1]}`,_=`v${H[1]+W[1]-X} a${G[3][0]} 0 0 1 ${G[3][1]}`;if(Q){let R=function(n){let u=HU([W,w,z,H][n]);return n===0?[[J+W[0]-u,K+W[1]-u],[J+W[0],K]]:n===1?[[J+Y-w[0]+u,K+w[1]-u],[J+Y,K+w[1]]]:n===2?[[J+Y-z[0]+u,K+X-z[1]+u],[J+Y-z[0],K+X]]:[[J+H[0]-u,K+X-H[1]+u],[J,K+X-H[1]]]},E=Q.indexOf(!1);if(!Q.includes(!0))throw Error("Invalid `partialSides`.");if(E===-1)E=0;else for(;!Q[E];)E=(E+1)%4;let L="",T=R(E),D=`M${T[0]} A${G[(E+3)%4][0]} 0 0 1 ${T[1]}`,P=0;for(;P<4&&Q[(E+P)%4];P++)L+=D+" ",D=[q,O,j,_][(E+P)%4];let k=(E+P)%4;L+=D.split(" ")[0];let c=R(k);return L+=` A${G[(k+3)%4][0]} 0 0 1 ${c[0]}`,L}return`M${J+W[0]},${K} ${q} ${O} ${j} ${_}`}function CJ(J,K,Y){return Y[J+"Width"]===Y[K+"Width"]&&Y[J+"Style"]===Y[K+"Style"]&&Y[J+"Color"]===Y[K+"Color"]}function zU({id:J,currentClipPathId:K,borderPath:Y,borderType:X,left:Z,top:Q,width:W,height:w},H){if(!(H.borderTopWidth||H.borderRightWidth||H.borderBottomWidth||H.borderLeftWidth))return null;let z=`satori_bc-${J}`;return[a("clipPath",{id:z,"clip-path":K?`url(#${K})`:void 0},a(X,{x:Z,y:Q,width:W,height:w,d:Y||void 0})),z]}function kK({left:J,top:K,width:Y,height:X,props:Z,asContentMask:Q,maskBorderOnly:W},w){let H=["borderTop","borderRight","borderBottom","borderLeft"];if(!Q&&!H.some((B)=>w[B+"Width"]))return"";let z="",U=0;for(;U>0&&CJ(H[U],H[(U+3)%4],w);)U=(U+3)%4;let V=[!1,!1,!1,!1],$=[];for(let B=0;B<4;B++){let M=(U+B)%4,G=(U+B+1)%4,q=H[M],O=H[G];if(V[M]=!0,$=[w[q+"Width"],w[q+"Style"],w[q+"Color"],q],!CJ(q,O,w)){let j=($[0]||0)+(Q&&!W&&w[q.replace("border","padding")]||0);j&&(z+=a("path",{width:Y,height:X,...Z,fill:"none",stroke:Q?"#000":$[2],"stroke-width":j*2,"stroke-dasharray":!Q&&$[1]==="dashed"?j*2+" "+j:void 0,d:x5({left:J,top:K,width:Y,height:X},w,V)})),V=[!1,!1,!1,!1]}}if(V.some(Boolean)){let B=($[0]||0)+(Q&&!W&&w[$[3].replace("border","padding")]||0);B&&(z+=a("path",{width:Y,height:X,...Z,fill:"none",stroke:Q?"#000":$[2],"stroke-width":B*2,"stroke-dasharray":!Q&&$[1]==="dashed"?B*2+" "+B:void 0,d:x5({left:J,top:K,width:Y,height:X},w,V)}))}return z}function UU({id:J,left:K,top:Y,width:X,height:Z,matrix:Q,borderOnly:W},w){let H=(w.borderLeftWidth||0)+(W?0:w.paddingLeft||0),z=(w.borderTopWidth||0)+(W?0:w.paddingTop||0),U=(w.borderRightWidth||0)+(W?0:w.paddingRight||0),V=(w.borderBottomWidth||0)+(W?0:w.paddingBottom||0),$={x:K+H,y:Y+z,width:X-H-U,height:Z-z-V};return a("mask",{id:J},a("rect",{...$,fill:"#fff",transform:w.overflow==="hidden"&&w.transform&&Q?Q:void 0,mask:w._inheritedMaskId?`url(#${w._inheritedMaskId})`:void 0})+kK({left:K,top:Y,width:X,height:Z,props:{transform:Q||void 0},asContentMask:!0,maskBorderOnly:W},w))}var b8={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/};function VU({width:J,height:K},Y,X){function Z(z){let U=z.match(b8.circle);if(!U)return null;let[,V]=U,[$,B=""]=V.split("at").map((q)=>q.trim()),{x:M,y:G}=SJ(B,J,K);return{type:"circle",r:U0($,X.fontSize,Math.sqrt(Math.pow(J,2)+Math.pow(K,2))/Math.sqrt(2),X,!0),cx:U0(M,X.fontSize,J,X,!0),cy:U0(G,X.fontSize,K,X,!0)}}function Q(z){let U=z.match(b8.ellipse);if(!U)return null;let[,V]=U,[$,B=""]=V.split("at").map((j)=>j.trim()),[M,G]=$.split(" "),{x:q,y:O}=SJ(B,J,K);return{type:"ellipse",rx:U0(M||"50%",X.fontSize,J,X,!0),ry:U0(G||"50%",X.fontSize,K,X,!0),cx:U0(q,X.fontSize,J,X,!0),cy:U0(O,X.fontSize,K,X,!0)}}function W(z){let U=z.match(b8.path);if(!U)return null;let[V,$]=PJ(U[1]);return{type:"path",d:$,"fill-rule":V}}function w(z){let U=z.match(b8.polygon);if(!U)return null;let[V,$]=PJ(U[1]);return{type:"polygon","fill-rule":V,points:$.split(",").map((B)=>B.split(" ").map((M,G)=>U0(M,X.fontSize,G===0?J:K,X,!0)).join(" ")).join(",")}}function H(z){let U=z.match(b8.inset);if(!U)return null;let[V,$]=(U[1].includes("round")?U[1]:`${U[1].trim()} round 0`).split("round"),B=N4.getStylesForProperty("borderRadius",$,!0),M=Object.values(B).map((R)=>String(R)).map((R,E)=>U0(R,X.fontSize,E===0||E===2?K:J,X,!0)||0),G=Object.values(N4.getStylesForProperty("margin",V,!0)).map((R)=>String(R)).map((R,E)=>U0(R,X.fontSize,E===0||E===2?K:J,X,!0)||0),q=G[3],O=G[0],j=J-(G[1]+G[3]),_=K-(G[0]+G[2]);return M.some((R)=>R>0)?{type:"path",d:x5({left:q,top:O,width:j,height:_},{...Y,...B})}:{type:"rect",x:q,y:O,width:j,height:_}}return{parseCircle:Z,parseEllipse:Q,parsePath:W,parsePolygon:w,parseInset:H}}function PJ(J){let[,K="nonzero",Y]=J.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[K,Y]}function SJ(J,K,Y){let X=J.split(" "),Z={x:X[0]||"50%",y:X[1]||"50%"};return X.forEach((Q)=>{Q==="top"?Z.y=0:Q==="bottom"?Z.y=Y:Q==="left"?Z.x=0:Q==="right"?Z.x=K:Q==="center"&&(Z.x=K/2,Z.y=Y/2)}),Z}function y4(J){return`satori_cp-${J}`}function $U(J){return`url(#${y4(J)})`}function BU(J,K,Y){if(K.clipPath==="none")return"";let X=VU(J,K,Y),Z=K.clipPath,Q={type:""};for(let W of Object.keys(X))if(Q=X[W](Z),Q)break;if(Q){let{type:W,...w}=Q;return a("clipPath",{id:y4(J.id),"clip-path":J.currentClipPath,transform:`translate(${J.left}, ${J.top})`},a(W,w))}return""}function AU({left:J,top:K,width:Y,height:X,path:Z,matrix:Q,id:W,currentClipPath:w,src:H},z,U){let V="",$=z.clipPath&&z.clipPath!=="none"?BU({left:J,top:K,width:Y,height:X,path:Z,id:W,matrix:Q,currentClipPath:w,src:H},z,U):"";if(z.overflow!=="hidden"&&!H)V="";else{let M=$?`satori_ocp-${W}`:y4(W);V=a("clipPath",{id:M,"clip-path":w},a(Z?"path":"rect",{x:J,y:K,width:Y,height:X,d:Z||void 0,transform:z.overflow==="hidden"&&z.transform&&Q?Q:void 0}))}let B=UU({id:`satori_om-${W}`,left:J,top:K,width:Y,height:X,matrix:Q,borderOnly:!H},z);return $+V+B}var GU=(J)=>`satori_mi-${J}`;async function qU(J,K,Y){if(!K.maskImage)return["",""];let{left:X,top:Z,width:Q,height:W,id:w}=J,H=K.maskImage,z=H.length;if(!z)return["",""];let U=GU(w),V="";for(let $=0;$<z;$++){let B=H[$],[M,G]=await yK({id:`${U}-${$}`,left:X,top:Z,width:Q,height:W},B,Y,"mask");V+=G+a("rect",{x:X,y:Z,width:Q,height:W,fill:`url(#${M})`})}return V=a("mask",{id:U},V),[U,V]}async function z4({id:J,left:K,top:Y,width:X,height:Z,isInheritingTransform:Q,src:W,debug:w},H,z){if(H.display==="none")return"";let U=!!W,V="rect",$="",B="",M=[],G=1,q="";H.backgroundColor&&M.push(H.backgroundColor),H.opacity!==void 0&&(G=+H.opacity),H.transform&&($=PK({left:K,top:Y,width:X,height:Z},H.transform,Q,H.transformOrigin));let O="";if(H.backgroundImage){let S=[];for(let I=0;I<H.backgroundImage.length;I++){let d=H.backgroundImage[I],m=await yK({id:J+"_"+I,width:X,height:Z,left:K,top:Y},d,z);m&&S.unshift(m)}for(let I of S)M.push(`url(#${I[0]})`),B+=I[1],I[2]&&(O+=I[2])}let[j,_]=await qU({id:J,left:K,top:Y,width:X,height:Z},H,z);B+=_;let R=j?`url(#${j})`:H._inheritedMaskId?`url(#${H._inheritedMaskId})`:void 0,E=x5({left:K,top:Y,width:X,height:Z},H);E&&(V="path");let L=H._inheritedClipPathId;w&&(q=a("rect",{x:K,y:Y,width:X,height:Z,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:$||void 0,"clip-path":L?`url(#${L})`:void 0}));let{backgroundClip:T,filter:D}=H,P=T==="text"?`url(#satori_bct-${J})`:L?`url(#${L})`:H.clipPath?$U(J):void 0,k=AU({left:K,top:Y,width:X,height:Z,path:E,id:J,matrix:$,currentClipPath:P,src:W},H,z),c=M.map((S)=>a(V,{x:K,y:Y,width:X,height:Z,fill:S,d:E||void 0,transform:$||void 0,"clip-path":H.transform?void 0:P,style:D?`filter:${D}`:void 0,mask:H.transform?void 0:R})).join(""),n=zU({id:J,left:K,top:Y,width:X,height:Z,currentClipPathId:L,borderPath:E,borderType:V},H),u;if(U){let S=(H.borderLeftWidth||0)+(H.paddingLeft||0),I=(H.borderTopWidth||0)+(H.paddingTop||0),d=(H.borderRightWidth||0)+(H.paddingRight||0),m=(H.borderBottomWidth||0)+(H.paddingBottom||0),s=H.objectFit==="contain"?"xMidYMid":H.objectFit==="cover"?"xMidYMid slice":"none";H.transform&&(u=wU({id:J,borderRadiusPath:E,borderType:V,left:K,top:Y,width:X,height:Z},H)),c+=a("image",{x:K+S,y:Y+I,width:X-S-d,height:Z-I-m,href:W,preserveAspectRatio:s,transform:$||void 0,style:D?`filter:${D}`:void 0,"clip-path":H.transform?u?`url(#${u[1]})`:void 0:`url(#satori_cp-${J})`,mask:H.transform?void 0:j?`url(#${j})`:`url(#satori_om-${J})`})}if(n){B+=n[0];let S=n[1];c+=kK({left:K,top:Y,width:X,height:Z,props:{transform:$||void 0,"clip-path":`url(#${S})`}},H)}let C=bz({width:X,height:Z,id:J,opacity:G,shape:a(V,{x:K,y:Y,width:X,height:Z,fill:"#fff",stroke:"#fff","stroke-width":0,d:E||void 0,transform:$||void 0,"clip-path":P,mask:R})},H);return(B?a("defs",{},B):"")+(C?C[0]:"")+(u?u[0]:"")+k+(G!==1?`<g opacity="${G}">`:"")+(H.transform&&(P||R)?`<g${P?` clip-path="${P}"`:""}${R?` mask="${R}"`:""}>`:"")+(O||c)+(H.transform&&(P||R)?"</g>":"")+(G!==1?"</g>":"")+(C?C[1]:"")+q}var MU=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,NU=new RegExp(MU(),""),O4={emoji:NU,symbol:/\p{Symbol}/u,math:/\p{Math}/u},j4={"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},k4=Object.keys({...j4,...O4});function OU(J){return k4.includes(J)}function jU(J,K){for(let X of Object.keys(O4))if(O4[X].test(J))return[X];let Y=Object.keys(j4).filter((X)=>j4[X].test(J));if(Y.length===0)return["unknown"];if(K){let X=Y.findIndex((Z)=>Z===K);X!==-1&&(Y.splice(X,1),Y.unshift(K))}return Y}function LU(J){if(J)return k4.find((K)=>K.toLowerCase().startsWith(J.toLowerCase()))}async function*L4(J,K){var Y;let X=await f5(),{id:Z,inheritedStyle:Q,parent:W,font:w,debug:H,locale:z,embedFont:U=!0,graphemeImages:V,canLoadAdditionalAssets:$,getTwStyles:B}=K;if(J===null||typeof J>"u")return yield,yield,"";if(!P5(J)||typeof J.type=="function"){let g;if(!P5(J))g=rz(String(J),K),yield(await g.next()).value;else{if(aw(J.type))throw Error("Class component is not supported.");g=L4(J.type(J.props),K),yield(await g.next()).value}await g.next();let r=yield;return(await g.next(r)).value}let{type:M,props:G}=J;if(G&&tw(G))throw Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:q,children:O,tw:j,lang:_=z}=G||{},R=LU(_);if(j){let g=B(j,q);q=Object.assign(g,q)}let E=X.Node.create();W.insertChild(E,W.getChildCount());let[L,T]=await Sz(E,M,Q,q,G),D=L.transform===Q.transform;if(D||(L.transform.__parent=Q.transform),(L.overflow==="hidden"||L.clipPath&&L.clipPath!=="none")&&(T._inheritedClipPathId=`satori_cp-${Z}`,T._inheritedMaskId=`satori_om-${Z}`),L.maskImage&&(T._inheritedMaskId=`satori_mi-${Z}`),L.backgroundClip==="text"){let g={value:""};T._inheritedBackgroundClipTextPath=g,L._inheritedBackgroundClipTextPath=g}let P=ew(O),k=[],c=0,n=[];for(let g of P){let r=L4(g,{id:Z+"-"+c++,parentStyle:L,inheritedStyle:T,isInheritingTransform:!0,parent:E,font:w,embedFont:U,debug:H,graphemeImages:V,canLoadAdditionalAssets:$,locale:R,getTwStyles:B,onNodeDetected:K.onNodeDetected});$?n.push(...(await r.next()).value||[]):await r.next(),k.push(r)}yield n;for(let g of k)await g.next();let[u,C]=yield,{left:S,top:I,width:d,height:m}=E.getComputedLayout();S+=u,I+=C;let s="",p="",f="",{children:l,...y}=G;if((Y=K.onNodeDetected)==null||Y.call(K,{left:S,top:I,width:d,height:m,type:M,props:y,key:J.key,textContent:P5(l)?void 0:l}),M==="img"){let g=L.__src;p=await z4({id:Z,left:S,top:I,width:d,height:m,src:g,isInheritingTransform:D,debug:H},L,T)}else if(M==="svg"){let g=L.color,r=await qz(J,g);p=await z4({id:Z,left:S,top:I,width:d,height:m,src:r,isInheritingTransform:D,debug:H},L,T)}else{let g=q==null?void 0:q.display;if(M==="div"&&O&&typeof O!="string"&&g!=="flex"&&g!=="none")throw Error('Expected <div> to have explicit "display: flex" or "display: none" if it has more than one child node.');p=await z4({id:Z,left:S,top:I,width:d,height:m,isInheritingTransform:D,debug:H},L,T)}for(let g of k)s+=(await g.next([S,I])).value;return L._inheritedBackgroundClipTextPath&&(f+=a("clipPath",{id:`satori_bct-${Z}`,"clip-path":L._inheritedClipPathId?`url(#${L._inheritedClipPathId})`:void 0},L._inheritedBackgroundClipTextPath.value)),f+p+s}var gK="unknown";function FU(J,K,[Y,X],[Z,Q]){if(Y!==Z)return Y?!Z||Y===J?-1:Z===J?1:J===400&&Y===500||J===500&&Y===400?-1:J===400&&Z===500||J===500&&Z===400?1:J<400?Y<J&&Z<J?Z-Y:Y<J?-1:Z<J?1:Y-Z:J<Y&&J<Z?Y-Z:J<Y?-1:J<Z?1:Z-Y:1;if(X!==Q){if(X===K)return-1;if(Q===K)return 1}return-1}var EU=class{constructor(J){this.fonts=new Map,this.addFonts(J)}get({name:J,weight:K,style:Y}){if(!this.fonts.has(J))return null;K==="normal"&&(K=400),K==="bold"&&(K=700),typeof K=="string"&&(K=Number.parseInt(K,10));let X=[...this.fonts.get(J)],Z=X[0];for(let Q=1;Q<X.length;Q++){let[,W,w]=Z,[,H,z]=X[Q];FU(K,Y,[W,w],[H,z])>0&&(Z=X[Q])}return Z[0]}addFonts(J){for(let K of J){let{name:Y,data:X,lang:Z}=K;if(Z&&!OU(Z))throw Error(`Invalid value for props \`lang\`: "${Z}". The value must be one of the following: ${k4.join(", ")}.`);let Q=Z??gK,W=N5.parse("buffer"in X?X.buffer.slice(X.byteOffset,X.byteOffset+X.byteLength):X,{lowMemory:!0}),w=W.charToGlyphIndex;W.charToGlyphIndex=(z)=>{let U=w.call(W,z);return U===0&&W._trackBrokenChars&&W._trackBrokenChars.push(z),U},this.defaultFont||(this.defaultFont=W);let H=`${Y.toLowerCase()}_${Q}`;this.fonts.has(H)||this.fonts.set(H,[]),this.fonts.get(H).push([W,K.weight,K.style])}}getEngine(J=16,K="normal",{fontFamily:Y="sans-serif",fontWeight:X=400,fontStyle:Z="normal"},Q){if(!this.fonts.size)throw Error("No fonts are loaded. At least one font is required to calculate the layout.");Y=(Array.isArray(Y)?Y:[Y]).map((O)=>O.toLowerCase());let W=[];Y.forEach((O)=>{let j=this.get({name:O,weight:X,style:Z});if(j){W.push(j);return}let _=this.get({name:O+"_unknown",weight:X,style:Z});if(_){W.push(_);return}});let w=Array.from(this.fonts.keys()),H=[],z=[],U=[];for(let O of w)if(!Y.includes(O))if(Q){let j=_U(O);j?j===Q?H.push(this.get({name:O,weight:X,style:Z})):z.push(this.get({name:O,weight:X,style:Z})):U.push(this.get({name:O,weight:X,style:Z}))}else U.push(this.get({name:O,weight:X,style:Z}));let V=new Map,$=(O,j=!0)=>{let _=[...W,...U,...H,...j?z:[]];if(typeof O>"u")return j?_[_.length-1]:void 0;let R=O.charCodeAt(0);if(V.has(R))return V.get(R);let E=_.find((L,T)=>!!L.charToGlyphIndex(O)||j&&T===_.length-1);return E&&V.set(R,E),E},B=(O,j=!1)=>{var _,R;return((j?(R=(_=O.tables)==null?void 0:_.os2)==null?void 0:R.sTypoAscender:0)||O.ascender)/O.unitsPerEm*J},M=(O,j=!1)=>{var _,R;return((j?(R=(_=O.tables)==null?void 0:_.os2)==null?void 0:R.sTypoDescender:0)||O.descender)/O.unitsPerEm*J},G=(O,j=!1)=>{var _,R;if(typeof K=="string"&&K==="normal"){let E=(j?(R=(_=O.tables)==null?void 0:_.os2)==null?void 0:R.sTypoLineGap:0)||0;return B(O,j)-M(O,j)+E/O.unitsPerEm*J}else if(typeof K=="number")return J*K},q=(O)=>$(O,!1);return{has:(O)=>{if(O===`
|
|
66
|
-
`)return!0;let j=q(O);return j?(j._trackBrokenChars=[],j.stringToGlyphs(O),j._trackBrokenChars.length?(j._trackBrokenChars=void 0,!1):!0):!1},baseline:(O,j=typeof O>"u"?W[0]:$(O))=>{let _=B(j),R=M(j),E=_-R;return _+(G(j)-E)/2},height:(O,j=typeof O>"u"?W[0]:$(O))=>G(j),measure:(O,j)=>this.measure($,O,j),getSVG:(O,j)=>this.getSVG($,O,j)}}patchFontFallbackResolver(J,K){let Y=[];J._trackBrokenChars=Y;let X=J.stringToGlyphs;return J.stringToGlyphs=(Z,...Q)=>{let W=X.call(J,Z,...Q);for(let w=0;w<W.length;w++)if(W[w].unicode===void 0){let H=Y.shift(),z=K(H);if(z!==J){let U=z.charToGlyph(H),V=J.unitsPerEm/z.unitsPerEm,$=new N5.Path;$.unitsPerEm=J.unitsPerEm,$.commands=U.path.commands.map((M)=>{let G={...M};for(let q in G)typeof G[q]=="number"&&(G[q]*=V);return G});let B=new N5.Glyph({...U,advanceWidth:U.advanceWidth*V,xMin:U.xMin*V,xMax:U.xMax*V,yMin:U.yMin*V,yMax:U.yMax*V,path:$});W[w]=B}}return W},()=>{J.stringToGlyphs=X,J._trackBrokenChars=void 0}}measure(J,K,{fontSize:Y,letterSpacing:X=0}){let Z=J(K),Q=this.patchFontFallbackResolver(Z,J);try{return Z.getAdvanceWidth(K,Y,{letterSpacing:X/Y})}finally{Q()}}getSVG(J,K,{fontSize:Y,top:X,left:Z,letterSpacing:Q=0}){let W=J(K),w=this.patchFontFallbackResolver(W,J);try{return Y===0?"":W.getPath(K.replace(/\n/g,""),Z,X,Y,{letterSpacing:Q/Y}).toPathData(1)}finally{w()}}};function _U(J){let K=J.split("_"),Y=K[K.length-1];return Y===gK?void 0:Y}function RU({width:J,height:K,content:Y}){return a("svg",{width:J,height:K,viewBox:`0 0 ${J} ${K}`,xmlns:"http://www.w3.org/2000/svg"},Y)}var DU=Xw(mw()),IU=["ios","android","windows","macos","web"];function TU(J){return IU.includes(J)}var CU=["portrait","landscape"];function PU(J){return CU.includes(J)}var vJ;(function(J){J.fontSize="fontSize",J.lineHeight="lineHeight"})(vJ||(vJ={}));var q0;(function(J){J.rem="rem",J.em="em",J.px="px",J.percent="%",J.vw="vw",J.vh="vh",J.none="<no-css-unit>"})(q0||(q0={}));function yJ(J){return typeof J=="string"}function kJ(J){return typeof J=="object"}var U4;function b(J){return{kind:"complete",style:J}}function Y1(J,K={}){let{fractions:Y}=K;if(Y&&J.includes("/")){let[Q="",W=""]=J.split("/",2),w=Y1(Q),H=Y1(W);return!w||!H?null:[w[0]/H[0],H[1]]}let X=parseFloat(J);if(Number.isNaN(X))return null;let Z=J.match(/(([a-z]{2,}|%))$/);if(!Z)return[X,q0.none];switch(Z==null?void 0:Z[1]){case"rem":return[X,q0.rem];case"px":return[X,q0.px];case"em":return[X,q0.em];case"%":return[X,q0.percent];case"vw":return[X,q0.vw];case"vh":return[X,q0.vh];default:return null}}function u8(J,K,Y={}){let X=K8(K,Y);return X===null?null:b({[J]:X})}function V4(J,K,Y){let X=K8(K);return X!==null&&(Y[J]=X),Y}function SU(J,K){let Y=K8(K);return Y===null?null:{[J]:Y}}function K8(J,K={}){if(J===void 0)return null;let Y=Y1(String(J),K);return Y?p8(...Y,K):null}function p8(J,K,Y={}){let{isNegative:X,device:Z}=Y;switch(K){case q0.rem:return J*16*(X?-1:1);case q0.px:return J*(X?-1:1);case q0.percent:return`${X?"-":""}${J}%`;case q0.none:return J*(X?-1:1);case q0.vw:return Z!=null&&Z.windowDimensions?Z.windowDimensions.width*(J/100):(C1("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case q0.vh:return Z!=null&&Z.windowDimensions?Z.windowDimensions.height*(J/100):(C1("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function gJ(J){let K=Y1(J);if(!K)return null;let[Y,X]=K;switch(X){case q0.rem:return Y*16;case q0.px:return Y;default:return null}}var vU={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function xK(J){return vU[J??""]||"All"}function bK(J){let K="All";return[J.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(Y,X)=>(K=xK(X),"")),K]}function p5(J,K={}){if(J.includes("/")){let Y=xJ(J,{...K,fractions:!0});if(Y)return Y}return J[0]==="["&&(J=J.slice(1,-1)),xJ(J,K)}function Y8(J,K,Y={}){let X=p5(K,Y);return X===null?null:b({[J]:X})}function xJ(J,K={}){if(J==="px")return 1;let Y=Y1(J,K);if(!Y)return null;let[X,Z]=Y;return K.fractions&&(Z=q0.percent,X*=100),Z===q0.none&&(X=X/4,Z=q0.rem),p8(X,Z,K)}function yU(...J){console.warn(...J)}function kU(...J){}var C1=typeof process>"u"||((U4=process==null?void 0:process.env)===null||U4===void 0?void 0:U4.JEST_WORKER_ID)===void 0?yU:kU,gU=[["aspect-square",b({aspectRatio:1})],["aspect-video",b({aspectRatio:1.7777777777777777})],["items-center",b({alignItems:"center"})],["items-start",b({alignItems:"flex-start"})],["items-end",b({alignItems:"flex-end"})],["items-baseline",b({alignItems:"baseline"})],["items-stretch",b({alignItems:"stretch"})],["justify-start",b({justifyContent:"flex-start"})],["justify-end",b({justifyContent:"flex-end"})],["justify-center",b({justifyContent:"center"})],["justify-between",b({justifyContent:"space-between"})],["justify-around",b({justifyContent:"space-around"})],["justify-evenly",b({justifyContent:"space-evenly"})],["content-start",b({alignContent:"flex-start"})],["content-end",b({alignContent:"flex-end"})],["content-between",b({alignContent:"space-between"})],["content-around",b({alignContent:"space-around"})],["content-stretch",b({alignContent:"stretch"})],["content-center",b({alignContent:"center"})],["self-auto",b({alignSelf:"auto"})],["self-start",b({alignSelf:"flex-start"})],["self-end",b({alignSelf:"flex-end"})],["self-center",b({alignSelf:"center"})],["self-stretch",b({alignSelf:"stretch"})],["self-baseline",b({alignSelf:"baseline"})],["direction-inherit",b({direction:"inherit"})],["direction-ltr",b({direction:"ltr"})],["direction-rtl",b({direction:"rtl"})],["hidden",b({display:"none"})],["flex",b({display:"flex"})],["flex-row",b({flexDirection:"row"})],["flex-row-reverse",b({flexDirection:"row-reverse"})],["flex-col",b({flexDirection:"column"})],["flex-col-reverse",b({flexDirection:"column-reverse"})],["flex-wrap",b({flexWrap:"wrap"})],["flex-wrap-reverse",b({flexWrap:"wrap-reverse"})],["flex-nowrap",b({flexWrap:"nowrap"})],["flex-auto",b({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",b({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",b({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",b({overflow:"hidden"})],["overflow-visible",b({overflow:"visible"})],["overflow-scroll",b({overflow:"scroll"})],["absolute",b({position:"absolute"})],["relative",b({position:"relative"})],["italic",b({fontStyle:"italic"})],["not-italic",b({fontStyle:"normal"})],["oldstyle-nums",h8("oldstyle-nums")],["small-caps",h8("small-caps")],["lining-nums",h8("lining-nums")],["tabular-nums",h8("tabular-nums")],["proportional-nums",h8("proportional-nums")],["font-thin",b({fontWeight:"100"})],["font-100",b({fontWeight:"100"})],["font-extralight",b({fontWeight:"200"})],["font-200",b({fontWeight:"200"})],["font-light",b({fontWeight:"300"})],["font-300",b({fontWeight:"300"})],["font-normal",b({fontWeight:"normal"})],["font-400",b({fontWeight:"400"})],["font-medium",b({fontWeight:"500"})],["font-500",b({fontWeight:"500"})],["font-semibold",b({fontWeight:"600"})],["font-600",b({fontWeight:"600"})],["font-bold",b({fontWeight:"bold"})],["font-700",b({fontWeight:"700"})],["font-extrabold",b({fontWeight:"800"})],["font-800",b({fontWeight:"800"})],["font-black",b({fontWeight:"900"})],["font-900",b({fontWeight:"900"})],["include-font-padding",b({includeFontPadding:!0})],["remove-font-padding",b({includeFontPadding:!1})],["max-w-none",b({maxWidth:"99999%"})],["text-left",b({textAlign:"left"})],["text-center",b({textAlign:"center"})],["text-right",b({textAlign:"right"})],["text-justify",b({textAlign:"justify"})],["text-auto",b({textAlign:"auto"})],["underline",b({textDecorationLine:"underline"})],["line-through",b({textDecorationLine:"line-through"})],["no-underline",b({textDecorationLine:"none"})],["uppercase",b({textTransform:"uppercase"})],["lowercase",b({textTransform:"lowercase"})],["capitalize",b({textTransform:"capitalize"})],["normal-case",b({textTransform:"none"})],["w-auto",b({width:"auto"})],["h-auto",b({height:"auto"})],["shadow-sm",b({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:0.025,elevation:1})],["shadow",b({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:0.075,elevation:2})],["shadow-md",b({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:0.125,elevation:3})],["shadow-lg",b({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:0.15,shadowRadius:8,elevation:8})],["shadow-xl",b({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:0.19,shadowRadius:20,elevation:12})],["shadow-2xl",b({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:0.25,shadowRadius:30,elevation:16})],["shadow-none",b({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],bJ=gU;function h8(J){return{kind:"dependent",complete(K){(!K.fontVariant||!Array.isArray(K.fontVariant))&&(K.fontVariant=[]),K.fontVariant.push(J)}}}var xU=class{constructor(J){this.ir=new Map(bJ),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...bJ,...J??[]])}getStyle(J){return this.styles.get(J)}setStyle(J,K){this.styles.set(J,K)}getIr(J){return this.ir.get(J)}setIr(J,K){this.ir.set(J,K)}getPrefixMatch(J){return this.prefixes.get(J)}setPrefixMatch(J,K){this.prefixes.set(J,K)}};function bU(J,K,Y={}){let X=K==null?void 0:K[J];if(!X)return Y8("fontSize",J,Y);if(typeof X=="string")return u8("fontSize",X);let Z={},[Q,W]=X,w=SU("fontSize",Q);if(w&&(Z=w),typeof W=="string")return b(V4("lineHeight",hJ(W,Z),Z));let{lineHeight:H,letterSpacing:z}=W;return H&&V4("lineHeight",hJ(H,Z),Z),z&&V4("letterSpacing",z,Z),b(Z)}function hJ(J,K){let Y=Y1(J);if(Y){let[X,Z]=Y;if((Z===q0.none||Z===q0.em)&&typeof K.fontSize=="number")return K.fontSize*X}return J}function hU(J,K){var Y;let X=(Y=K==null?void 0:K[J])!==null&&Y!==void 0?Y:J.startsWith("[")?J.slice(1,-1):J,Z=Y1(X);if(!Z)return null;let[Q,W]=Z;if(W===q0.none)return{kind:"dependent",complete(H){if(typeof H.fontSize!="number")return"relative line-height utilities require that font-size be set";H.lineHeight=H.fontSize*Q}};let w=p8(Q,W);return w!==null?b({lineHeight:w}):null}function mU(J,K,Y,X,Z){let Q="";if(X[0]==="[")Q=X.slice(1,-1);else{let z=Z==null?void 0:Z[X];if(z)Q=z;else{let U=p5(X);return U&&typeof U=="number"?mJ(U,q0.px,K,J):null}}if(Q==="auto")return hK(K,J,"auto");let W=Y1(Q);if(!W)return null;let[w,H]=W;return Y&&(w=-w),mJ(w,H,K,J)}function mJ(J,K,Y,X){let Z=p8(J,K);return Z===null?null:hK(Y,X,Z)}function hK(J,K,Y){switch(J){case"All":return{kind:"complete",style:{[`${K}Top`]:Y,[`${K}Right`]:Y,[`${K}Bottom`]:Y,[`${K}Left`]:Y}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${K}${J}`]:Y}};case"Vertical":return{kind:"complete",style:{[`${K}Top`]:Y,[`${K}Bottom`]:Y}};case"Horizontal":return{kind:"complete",style:{[`${K}Left`]:Y,[`${K}Right`]:Y}};default:return null}}function fU(J){if(!J)return{};let K=Object.entries(J).reduce((Z,[Q,W])=>{let w=[0,1/0,0],H=typeof W=="string"?{min:W}:W,z=H.min?gJ(H.min):0;z===null?C1(`invalid screen config value: ${Q}->min: ${H.min}`):w[0]=z;let U=H.max?gJ(H.max):1/0;return U===null?C1(`invalid screen config value: ${Q}->max: ${H.max}`):w[1]=U,Z[Q]=w,Z},{}),Y=Object.values(K);Y.sort((Z,Q)=>{let[W,w]=Z,[H,z]=Q;return w===1/0||z===1/0?W-H:w-z});let X=0;return Y.forEach((Z)=>Z[2]=X++),K}function dU(J,K){let Y=K==null?void 0:K[J];if(!Y)return null;if(typeof Y=="string")return b({fontFamily:Y});let X=Y[0];return X?b({fontFamily:X}):null}function f8(J,K,Y){if(!Y)return null;let X;K.includes("/")&&([K="",X]=K.split("/",2));let Z="";if(K.startsWith("[#")||K.startsWith("[rgb")?Z=K.slice(1,-1):Z=mK(K,Y),!Z)return null;if(X){let Q=Number(X);if(!Number.isNaN(Q))return Z=fJ(Z,Q/100),b({[k5[J].color]:Z})}return{kind:"dependent",complete(Q){let W=k5[J].opacity,w=Q[W];typeof w=="number"&&(Z=fJ(Z,w)),Q[k5[J].color]=Z}}}function D5(J,K){let Y=parseInt(K,10);if(Number.isNaN(Y))return null;let X=Y/100;return{kind:"complete",style:{[k5[J].opacity]:X}}}function fJ(J,K){return J.startsWith("#")?J=cU(J):J.startsWith("rgb(")&&(J=J.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),J.replace(/, ?\d*\.?(\d+)\)$/,`, ${K})`)}function lU(J){for(let K in J)K.startsWith("__opacity_")&&delete J[K]}var k5={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 cU(J){let K=J;J=J.replace(uU,(W,w,H,z)=>w+w+H+H+z+z);let Y=pU.exec(J);if(!Y)return C1(`invalid config hex color value: ${K}`),"rgba(0, 0, 0, 1)";let X=parseInt(Y[1],16),Z=parseInt(Y[2],16),Q=parseInt(Y[3],16);return`rgba(${X}, ${Z}, ${Q}, 1)`}function mK(J,K){let Y=K[J];if(yJ(Y))return Y;if(kJ(Y)&&yJ(Y.DEFAULT))return Y.DEFAULT;let[X="",...Z]=J.split("-");for(;X!==J;){let Q=K[X];if(kJ(Q))return mK(Z.join("-"),Q);if(Z.length===0)return"";X=`${X}-${Z.shift()}`}return""}var uU=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,pU=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function iU(J,K){let[Y,X]=bK(J);if(Y.match(/^(-?(\d)+)?$/))return oU(Y,X,K==null?void 0:K.borderWidth);if(Y=Y.replace(/^-/,""),["dashed","solid","dotted"].includes(Y))return b({borderStyle:Y});let Z="border";switch(X){case"Bottom":Z="borderBottom";break;case"Top":Z="borderTop";break;case"Left":Z="borderLeft";break;case"Right":Z="borderRight";break}let Q=f8(Z,Y,K==null?void 0:K.borderColor);if(Q)return Q;let W=`border${X==="All"?"":X}Width`;Y=Y.replace(/^-/,"");let w=Y.slice(1,-1),H=Y8(W,w);return typeof(H==null?void 0:H.style[W])!="number"?null:H}function oU(J,K,Y){if(!Y)return null;J=J.replace(/^-/,"");let X=Y[J===""?"DEFAULT":J];if(X===void 0)return null;let Z=`border${K==="All"?"":K}Width`;return u8(Z,X)}function rU(J,K){if(!K)return null;let[Y,X]=bK(J);Y=Y.replace(/^-/,""),Y===""&&(Y="DEFAULT");let Z=`border${X==="All"?"":X}Radius`,Q=K[Y];if(Q)return dJ(u8(Z,Q));let W=Y8(Z,Y);return typeof(W==null?void 0:W.style[Z])!="number"?null:dJ(W)}function dJ(J){if((J==null?void 0:J.kind)!=="complete")return J;let K=J.style.borderTopRadius;K!==void 0&&(J.style.borderTopLeftRadius=K,J.style.borderTopRightRadius=K,delete J.style.borderTopRadius);let Y=J.style.borderBottomRadius;Y!==void 0&&(J.style.borderBottomLeftRadius=Y,J.style.borderBottomRightRadius=Y,delete J.style.borderBottomRadius);let X=J.style.borderLeftRadius;X!==void 0&&(J.style.borderBottomLeftRadius=X,J.style.borderTopLeftRadius=X,delete J.style.borderLeftRadius);let Z=J.style.borderRightRadius;return Z!==void 0&&(J.style.borderBottomRightRadius=Z,J.style.borderTopRightRadius=Z,delete J.style.borderRightRadius),J}function m8(J,K,Y,X){let Z=null;J==="inset"&&(K=K.replace(/^(x|y)-/,(w,H)=>(Z=H==="x"?"x":"y","")));let Q=X==null?void 0:X[K];if(Q){let w=K8(Q,{isNegative:Y});if(w!==null)return lJ(J,Z,w)}let W=p5(K,{isNegative:Y});return W!==null?lJ(J,Z,W):null}function lJ(J,K,Y){if(J!=="inset")return b({[J]:Y});switch(K){case null:return b({top:Y,left:Y,right:Y,bottom:Y});case"y":return b({top:Y,bottom:Y});case"x":return b({left:Y,right:Y})}}function I5(J,K,Y){var X;K=K.replace(/^-/,"");let Z=K===""?"DEFAULT":K,Q=Number((X=Y==null?void 0:Y[Z])!==null&&X!==void 0?X:K);return Number.isNaN(Q)?null:b({[`flex${J}`]:Q})}function nU(J,K){var Y,X;if(J=(K==null?void 0:K[J])||J,["min-content","revert","unset"].includes(J))return null;if(J.match(/^\d+(\.\d+)?$/))return b({flexGrow:Number(J),flexBasis:"0%"});let Z=J.match(/^(\d+)\s+(\d+)$/);if(Z)return b({flexGrow:Number(Z[1]),flexShrink:Number(Z[2])});if(Z=J.match(/^(\d+)\s+([^ ]+)$/),Z){let Q=K8((Y=Z[2])!==null&&Y!==void 0?Y:"");return Q?b({flexGrow:Number(Z[1]),flexBasis:Q}):null}if(Z=J.match(/^(\d+)\s+(\d+)\s+(.+)$/),Z){let Q=K8((X=Z[3])!==null&&X!==void 0?X:"");return Q?b({flexGrow:Number(Z[1]),flexShrink:Number(Z[2]),flexBasis:Q}):null}return null}function cJ(J,K,Y={},X){let Z=X==null?void 0:X[K];return Z!==void 0?u8(J,Z,Y):Y8(J,K,Y)}function T5(J,K,Y={},X){let Z=K8(X==null?void 0:X[K],Y);return Z?b({[J]:Z}):(K==="screen"&&(K=J.includes("Width")?"100vw":"100vh"),Y8(J,K,Y))}function sU(J,K,Y){let X=Y==null?void 0:Y[J];if(X){let Z=Y1(X,{isNegative:K});if(!Z)return null;let[Q,W]=Z;if(W===q0.em)return aU(Q);if(W===q0.percent)return C1("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 w=p8(Q,W,{isNegative:K});return w!==null?b({letterSpacing:w}):null}return Y8("letterSpacing",J,{isNegative:K})}function aU(J){return{kind:"dependent",complete(K){let Y=K.fontSize;if(typeof Y!="number"||Number.isNaN(Y))return"tracking-X relative letter spacing classes require font-size to be set";K.letterSpacing=Math.round((J*Y+Number.EPSILON)*100)/100}}}function tU(J,K){let Y=K==null?void 0:K[J];if(Y){let Z=Y1(String(Y));if(Z)return b({opacity:Z[0]})}let X=Y1(J);return X?b({opacity:X[0]/100}):null}function eU(J){let K=parseInt(J,10);return Number.isNaN(K)?null:{kind:"complete",style:{shadowOpacity:K/100}}}function JV(J){if(J.includes("/")){let[Y="",X=""]=J.split("/",2),Z=$4(Y),Q=$4(X);return Z===null||Q===null?null:{kind:"complete",style:{shadowOffset:{width:Z,height:Q}}}}let K=$4(J);return K===null?null:{kind:"complete",style:{shadowOffset:{width:K,height:K}}}}function $4(J){let K=p5(J);return typeof K=="number"?K:null}var uJ=class{constructor(J,K={},Y,X,Z){var Q,W,w,H,z,U;this.config=K,this.cache=Y,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=X;let V=J.trim().split(":"),$=[];V.length===1?this.string=J:(this.string=(Q=V.pop())!==null&&Q!==void 0?Q:"",$=V),this.char=this.string[0];let B=fU((W=this.config.theme)===null||W===void 0?void 0:W.screens);for(let M of $)if(B[M]){let G=(w=B[M])===null||w===void 0?void 0:w[2];G!==void 0&&(this.order=((H=this.order)!==null&&H!==void 0?H:0)+G);let q=(z=X.windowDimensions)===null||z===void 0?void 0:z.width;if(q){let[O,j]=(U=B[M])!==null&&U!==void 0?U:[0,0];(q<=O||q>j)&&(this.isNull=!0)}else this.isNull=!0}else TU(M)?this.isNull=M!==Z:PU(M)?X.windowDimensions?(X.windowDimensions.width>X.windowDimensions.height?"landscape":"portrait")!==M?this.isNull=!0:this.incrementOrder():this.isNull=!0:M==="retina"?X.pixelDensity===2?this.incrementOrder():this.isNull=!0:M==="dark"?X.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(M)||(this.isNull=!0)}parse(){if(this.isNull)return{kind:"null"};let J=this.cache.getIr(this.rest);if(J)return J;this.parseIsNegative();let K=this.parseUtility();return K?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:K}:K:{kind:"null"}}parseUtility(){var J,K,Y,X,Z;let Q=this.config.theme,W=null;switch(this.char){case"m":case"p":{let w=this.peekSlice(1,3).match(/^(t|b|r|l|x|y)?-/);if(w){let H=this.char==="m"?"margin":"padding";this.advance(((K=(J=w[0])===null||J===void 0?void 0:J.length)!==null&&K!==void 0?K:0)+1);let z=xK(w[1]),U=mU(H,z,this.isNegative,this.rest,(Y=this.config.theme)===null||Y===void 0?void 0:Y[H]);if(U)return U}}}if(this.consumePeeked("h-")&&(W=cJ("height",this.rest,this.context,Q==null?void 0:Q.height),W)||this.consumePeeked("w-")&&(W=cJ("width",this.rest,this.context,Q==null?void 0:Q.width),W)||this.consumePeeked("min-w-")&&(W=T5("minWidth",this.rest,this.context,Q==null?void 0:Q.minWidth),W)||this.consumePeeked("min-h-")&&(W=T5("minHeight",this.rest,this.context,Q==null?void 0:Q.minHeight),W)||this.consumePeeked("max-w-")&&(W=T5("maxWidth",this.rest,this.context,Q==null?void 0:Q.maxWidth),W)||this.consumePeeked("max-h-")&&(W=T5("maxHeight",this.rest,this.context,Q==null?void 0:Q.maxHeight),W)||this.consumePeeked("leading-")&&(W=hU(this.rest,Q==null?void 0:Q.lineHeight),W)||this.consumePeeked("text-")&&(W=bU(this.rest,Q==null?void 0:Q.fontSize,this.context),W||(W=f8("text",this.rest,Q==null?void 0:Q.textColor),W)||this.consumePeeked("opacity-")&&(W=D5("text",this.rest),W))||this.consumePeeked("font-")&&(W=dU(this.rest,Q==null?void 0:Q.fontFamily),W)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&C1("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),W=u8("aspectRatio",this.rest,{fractions:!0}),W)||this.consumePeeked("tint-")&&(W=f8("tint",this.rest,Q==null?void 0:Q.colors),W)||this.consumePeeked("bg-")&&(W=f8("bg",this.rest,Q==null?void 0:Q.backgroundColor),W||this.consumePeeked("opacity-")&&(W=D5("bg",this.rest),W))||this.consumePeeked("border")&&(W=iU(this.rest,Q),W||this.consumePeeked("-opacity-")&&(W=D5("border",this.rest),W))||this.consumePeeked("rounded")&&(W=rU(this.rest,Q==null?void 0:Q.borderRadius),W)||this.consumePeeked("bottom-")&&(W=m8("bottom",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("top-")&&(W=m8("top",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("left-")&&(W=m8("left",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("right-")&&(W=m8("right",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("inset-")&&(W=m8("inset",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?W=I5("Grow",this.rest,Q==null?void 0:Q.flexGrow):this.consumePeeked("shrink")?W=I5("Shrink",this.rest,Q==null?void 0:Q.flexShrink):W=nU(this.rest,Q==null?void 0:Q.flex),W)||this.consumePeeked("grow")&&(W=I5("Grow",this.rest,Q==null?void 0:Q.flexGrow),W)||this.consumePeeked("shrink")&&(W=I5("Shrink",this.rest,Q==null?void 0:Q.flexShrink),W)||this.consumePeeked("shadow-color-opacity-")&&(W=D5("shadow",this.rest),W)||this.consumePeeked("shadow-opacity-")&&(W=eU(this.rest),W)||this.consumePeeked("shadow-offset-")&&(W=JV(this.rest),W)||this.consumePeeked("shadow-radius-")&&(W=Y8("shadowRadius",this.rest),W)||this.consumePeeked("shadow-")&&(W=f8("shadow",this.rest,Q==null?void 0:Q.colors),W))return W;if(this.consumePeeked("elevation-")){let w=parseInt(this.rest,10);if(!Number.isNaN(w))return b({elevation:w})}if(this.consumePeeked("opacity-")&&(W=tU(this.rest,Q==null?void 0:Q.opacity),W)||this.consumePeeked("tracking-")&&(W=sU(this.rest,this.isNegative,Q==null?void 0:Q.letterSpacing),W))return W;if(this.consumePeeked("z-")){let w=Number((Z=(X=Q==null?void 0:Q.zIndex)===null||X===void 0?void 0:X[this.rest])!==null&&Z!==void 0?Z:this.rest);if(!Number.isNaN(w))return b({zIndex:w})}return C1(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(J){var K;if(J[0]!=="m")return!1;let Y=J.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!Y)return!1;if(!(!((K=this.context.device)===null||K===void 0)&&K.windowDimensions))return this.isNull=!0,!0;let X=this.context.device.windowDimensions,[,Z="",Q="",W=""]=Y,w=Q==="w"?X.width:X.height,H=Y1(W,this.context);if(H===null)return this.isNull=!0,!0;let[z,U]=H;return U!=="px"&&(this.isNull=!0),(Z==="min"?w>=z:w<=z)?this.incrementOrder():this.isNull=!0,!0}advance(J=1){this.position+=J,this.char=this.string[this.position]}get rest(){return this.peekSlice(0,this.string.length)}peekSlice(J,K){return this.string.slice(this.position+J,this.position+K)}consumePeeked(J){return this.peekSlice(0,J.length)===J?(this.advance(J.length),!0):!1}parseIsNegative(){this.char==="-"&&(this.advance(),this.isNegative=!0,this.context.isNegative=!0)}incrementOrder(){var J;this.order=((J=this.order)!==null&&J!==void 0?J:0)+1}};function KV(J){let K=[],Y=null;return J.forEach((X)=>{if(typeof X=="string")K=[...K,...B4(X)];else if(Array.isArray(X))K=[...K,...X.flatMap(B4)];else if(typeof X=="object"&&X!==null)for(let[Z,Q]of Object.entries(X))typeof Q=="boolean"?K=[...K,...Q?B4(Z):[]]:Y?Y[Z]=Q:Y={[Z]:Q}}),[K.filter(Boolean).filter(YV),Y]}function B4(J){return J.trim().split(/\s+/)}function YV(J,K,Y){return Y.indexOf(J)===K}function XV(J){var K;return(K=J==null?void 0:J.reduce((Y,X)=>({...Y,...ZV(X.handler)}),{}))!==null&&K!==void 0?K:{}}function ZV(J){let K={};return J({addUtilities:(Y)=>{K=Y},...QV}),K}function E1(J){throw Error(`tailwindcss plugin function argument object prop "${J}" not implemented`)}var QV={addComponents:E1,addBase:E1,addVariant:E1,e:E1,prefix:E1,theme:E1,variants:E1,config:E1,corePlugins:E1,matchUtilities:E1,postcss:null};function WV(J,K){let Y=(0,DU.default)(HV(J)),X={},Z=XV(Y.plugins),Q={},W=Object.entries(Z).map(([M,G])=>typeof G=="string"?(Q[M]=G,[M,{kind:"null"}]):[M,b(G)]).filter(([,M])=>M.kind!=="null");function w(){return[X.windowDimensions?`w${X.windowDimensions.width}`:!1,X.windowDimensions?`h${X.windowDimensions.height}`:!1,X.fontScale?`fs${X.fontScale}`:!1,X.colorScheme==="dark"?"dark":!1,X.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let H=w(),z={};function U(){let M=z[H];if(M)return M;let G=new xU(W);return z[H]=G,G}function V(...M){let G=U(),q={},O=[],j=[],[_,R]=KV(M),E=_.join(" "),L=G.getStyle(E);if(L)return{...L,...R||{}};for(let T of _){let D=G.getIr(T);if(!D&&T in Q){let P=V(Q[T]);G.setIr(T,b(P)),q={...q,...P};continue}switch(D=new uJ(T,Y,G,X,K).parse(),D.kind){case"complete":q={...q,...D.style},G.setIr(T,D);break;case"dependent":O.push(D);break;case"ordered":j.push(D);break;case"null":G.setIr(T,D);break}}if(j.length>0){j.sort((T,D)=>T.order-D.order);for(let T of j)switch(T.styleIr.kind){case"complete":q={...q,...T.styleIr.style};break;case"dependent":O.push(T.styleIr);break}}if(O.length>0){for(let T of O){let D=T.complete(q);D&&C1(D)}lU(q)}return E!==""&&G.setStyle(E,q),R&&(q={...q,...R}),q}function $(M){let G=V(M.split(/\s+/g).map((q)=>q.replace(/^(bg|text|border)-/,"")).map((q)=>`bg-${q}`).join(" "));return typeof G.backgroundColor=="string"?G.backgroundColor:void 0}let B=(M,...G)=>{let q="";return M.forEach((O,j)=>{var _;q+=O+((_=G[j])!==null&&_!==void 0?_:"")}),V(q)};return B.style=V,B.color=$,B.prefixMatch=(...M)=>{let G=M.sort().join(":"),q=U(),O=q.getPrefixMatch(G);if(O!==void 0)return O;let j=new uJ(`${G}:flex`,Y,q,X,K).parse().kind!=="null";return q.setPrefixMatch(G,j),j},B.setWindowDimensions=(M)=>{X.windowDimensions=M,H=w()},B.setFontScale=(M)=>{X.fontScale=M,H=w()},B.setPixelDensity=(M)=>{X.pixelDensity=M,H=w()},B.setColorScheme=(M)=>{X.colorScheme=M,H=w()},B}function HV(J){return{...J,content:["_no_warnings_please"]}}var wV={handler:({addUtilities:J})=>{J({"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 zV(J){return WV({...J,plugins:[...(J==null?void 0:J.plugins)??[],wV]},"web")}var C5;function UV({width:J,height:K,config:Y}){return C5||(C5=zV(Y)),C5.setWindowDimensions({width:+J,height:+K}),C5}var A4=new WeakMap;async function fK(J,K){let Y=await f5();if(!Y||!Y.Node)throw Error("Satori is not initialized: expect `yoga` to be loaded, got "+Y);K.fonts=K.fonts||[];let X;A4.has(K.fonts)?X=A4.get(K.fonts):A4.set(K.fonts,X=new EU(K.fonts));let Z="width"in K?K.width:void 0,Q="height"in K?K.height:void 0,W=Y.Node.create();Z&&W.setWidth(Z),Q&&W.setHeight(Q),W.setFlexDirection(Y.FLEX_DIRECTION_ROW),W.setFlexWrap(Y.WRAP_WRAP),W.setAlignContent(Y.ALIGN_AUTO),W.setAlignItems(Y.ALIGN_FLEX_START),W.setJustifyContent(Y.JUSTIFY_FLEX_START),W.setOverflow(Y.OVERFLOW_HIDDEN);let w={...K.graphemeImages},H=new Set;c1.clear(),v5.clear(),await Gz(J);let z=L4(J,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:"normal",color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:Z,_viewportHeight:Q},parent:W,font:X,embedFont:K.embedFont,debug:K.debug,graphemeImages:w,canLoadAdditionalAssets:!!K.loadAdditionalAsset,onNodeDetected:K.onNodeDetected,getTwStyles:(M,G)=>{let q={...UV({width:Z,height:Q,config:K.tailwindConfig})([M])};return typeof q.lineHeight=="number"&&(q.lineHeight=q.lineHeight/(+q.fontSize||G.fontSize||16)),q.shadowColor&&q.boxShadow&&(q.boxShadow=q.boxShadow.replace(/rgba?\([^)]+\)/,q.shadowColor)),q}}),U=(await z.next()).value;if(K.loadAdditionalAsset&&U.length){let M=VV(U),G=[],q={};await Promise.all(Object.entries(M).flatMap(([O,j])=>j.map((_)=>{let R=`${O}_${_}`;return H.has(R)?null:(H.add(R),K.loadAdditionalAsset(O,_).then((E)=>{typeof E=="string"?q[_]=E:E&&(Array.isArray(E)?G.push(...E):G.push(E))}))}))),X.addFonts(G),Object.assign(w,q)}await z.next(),W.calculateLayout(Z,Q,Y.DIRECTION_LTR);let V=(await z.next([0,0])).value,$=W.getComputedWidth(),B=W.getComputedHeight();return W.freeRecursive(),RU({width:$,height:B,content:V})}function VV(J){let K={},Y={};for(let{word:X,locale:Z}of J){let Q=jU(X,Z).join("|");Y[Q]=Y[Q]||"",Y[Q]+=X}return Object.keys(Y).forEach((X)=>{K[X]=K[X]||[],X==="emoji"?K[X].push(...pJ(A1(Y[X],"grapheme"))):(K[X][0]=K[X][0]||"",K[X][0]+=pJ(A1(Y[X],"grapheme",X==="unknown"?void 0:X)).join(""))}),K}function pJ(J){return Array.from(new Set(J))}import BV from"sharp";function g4(J){return J.replace(/\([^)]*\)/g,"").replace(/\/\//g,"/")}function i5(J){let K={};for(let[Y,X]of Object.entries(J))if("run"in X){let Z=X;if("children"in Z){let Q=new Z.children,W=i5(Q.routes);for(let[w,{exec:H,middleware:z}]of Object.entries(W)){let U=Y==="/"?w:`${Y}${w}`,V=w==="/"&&Y!=="/"?Y:U,$=(B)=>Z.run.call(Z,B,Y);K[g4(V)]={exec:[$,...H],middleware:[...Z.middlewares,...z],viewPath:Z.viewPath}}}else{let Q=(W)=>Z.run.call(Z,W,Y);K[g4(Y)]={exec:[Q],middleware:Z.middlewares,viewPath:Z.viewPath}}}else{let Z=new X,Q=i5(Z.routes);for(let[W,{exec:w,middleware:H,viewPath:z}]of Object.entries(Q)){let U=Y==="/"?W:`${Y}${W}`,V=W==="/"&&Y!=="/"?Y:U;K[g4(V)]={exec:w,middleware:[...Z.middlewares,...H],viewPath:z}}}return Object.fromEntries(Object.entries(K).sort(([Y],[X])=>{let Z=Y.split("/").length+Y.split(":").length,Q=X.split("/").length+X.split(":").length;return Z-Q}))}import{renderToReadableStream as b4}from"react-dom/server.browser";import{createElement as i8,Fragment as AV}from"react";function $V(J){return J.replace(/\([^)]*\)/g,"").replace(/\/\//g,"/")}function o5(J){let K={};for(let[Y,X]of Object.entries(J))if("run"in X){let Z=X.viewPath;if("children"in X){K[Y]=[Z];let Q=new X.children,W=o5(Q.routes);for(let[w,H]of Object.entries(W)){let z=Y==="/"?w:`${Y}${w}`,U=w==="/"&&Y!=="/"?Y:z;K[U]=[Z,...H]}if(K[Y].length===1)delete K[Y]}else K[Y]=[Z]}else{let Z=new X,Q=o5(Z.routes);for(let[W,w]of Object.entries(Q)){let H=Y==="/"?W:`${Y}${W}`,z=W==="/"&&Y!=="/"?Y:H;K[z]=w}}return Object.fromEntries(Object.entries(K).map(([Y,X])=>[$V(Y),X]))}function r5(J){let K=[];for(let[Y,X]of Object.entries(J))if("run"in X){let Z=X.viewPath;if(Z==="__")continue;if(Z==="REDIRECT")continue;if(Z==="FILE")continue;if("children"in X){let Q=new X.children,W=r5(Q.routes);K.push([Z,W])}else K.push([Z,[]])}else{let Z=new X,Q=r5(Z.routes);K.push(...Q)}return K}function x4(J){let K=[];for(let[Y,X]of J)K.push(Y,...x4(X).flat());return Array.from(new Set(K))}class n5{static debug(J,K){t0.use().log("debug",J,K)}static info(J,K){t0.use().log("info",J,K)}static notice(J,K){t0.use().log("notice",J,K)}static warning(J,K){t0.use().log("warning",J,K)}static error(J,K){t0.use().log("error",J,K)}static critical(J,K){t0.use().log("critical",J,K)}static alert(J,K){t0.use().log("alert",J,K)}static emergency(J,K){t0.use().log("emergency",J,K)}}var GV=`
|
|
65
|
+
in CSS rule \`${W}: ${w}\`.${EJ(W)}`))}}}if(Y.backgroundImage){let{backgrounds:Z}=RK.parseElementStyle(Y);Y.backgroundImage=Z}(Y.maskImage||Y.WebkitMaskImage)&&(Y.maskImage=Fz(Y));let X=Iz(Y.fontSize,K.fontSize);typeof Y.fontSize<"u"&&(Y.fontSize=X),Y.transformOrigin&&(Y.transformOrigin=Lz(Y.transformOrigin,X));for(let Z in Y){let Q=Y[Z];if(Z==="lineHeight")typeof Q=="string"&&Q!=="normal"&&(Q=Y[Z]=U0(Q,X,X,K,!0)/X);else{if(typeof Q=="string"){let W=U0(Q,X,X,K);typeof W<"u"&&(Y[Z]=W),Q=Y[Z]}if(typeof Q=="string"||typeof Q=="object"){let W=CK(Q);W&&(Y[Z]=W),Q=Y[Z]}}if(Z==="opacity"&&typeof Q=="number"&&(Y.opacity=Q*K.opacity),Z==="transform"){let W=Q;for(let w of W){let H=Object.keys(w)[0],z=w[H],U=typeof z=="string"?U0(z,X,X,K)??z:z;w[H]=U}}if(Z==="textShadowRadius"){let W=Q;Y.textShadowRadius=W.map((w)=>U0(w,X,0,K,!1))}if(Z==="textShadowOffset"){let W=Q;Y.textShadowOffset=W.map(({height:w,width:H})=>({height:U0(w,X,0,K,!1),width:U0(H,X,0,K,!1)}))}}return Y}function Iz(J,K){if(typeof J=="number")return J;try{let Y=new c8(J);switch(Y.unit){case"em":return Y.value*K;case"rem":return Y.value*16}}catch{return K}}function DJ(J){if(J.startsWith("hsl")){let K=z5(J),[Y,X,Z]=K.values;return`hsl(${[Y,`${X}%`,`${Z}%`].concat(K.alpha===1?[]:[K.alpha]).join(",")})`}return J}function Tz(J,K){return J&&J.toLowerCase()!=="currentcolor"?DJ(J):DJ(K)}function Cz(J,K){return J.replace(/currentcolor/gi,K)}function Pz(J,K){return jK(J)&&(J=Cz(J,K)),J}async function Sz(J,K,Y,X,Z){let Q=await f5(),W={...Y,...RJ(Mz[K],Y),...RJ(X,Y)};if(K==="img"){let[w,H,z]=await S4(Z.src);if(H===void 0&&z===void 0){if(Z.width===void 0||Z.height===void 0)throw Error("Image size cannot be determined. Please provide the width and height of the image.");H=parseInt(Z.width),z=parseInt(Z.height)}let U=z/H,V=(W.borderLeftWidth||0)+(W.borderRightWidth||0)+(W.paddingLeft||0)+(W.paddingRight||0),$=(W.borderTopWidth||0)+(W.borderBottomWidth||0)+(W.paddingTop||0)+(W.paddingBottom||0),B=W.width||Z.width,M=W.height||Z.height,G=typeof B=="number"&&typeof M=="number";G&&(B-=V,M-=$),B===void 0&&M===void 0?(B="100%",J.setAspectRatio(1/U)):B===void 0?typeof M=="number"?B=M/U:J.setAspectRatio(1/U):M===void 0&&(typeof B=="number"?M=B*U:J.setAspectRatio(1/U)),W.width=G?B+V:B,W.height=G?M+$:M,W.__src=w}if(K==="svg"){let w=Z.viewBox||Z.viewbox,H=C4(w),z=H?H[3]/H[2]:null,{width:U,height:V}=Z;typeof U>"u"&&V?z==null?U=0:typeof V=="string"&&V.endsWith("%")?U=parseInt(V)/z+"%":(V=U0(V,Y.fontSize,1,Y),U=V/z):typeof V>"u"&&U?z==null?U=0:typeof U=="string"&&U.endsWith("%")?V=parseInt(U)*z+"%":(U=U0(U,Y.fontSize,1,Y),V=U*z):(typeof U<"u"&&(U=U0(U,Y.fontSize,1,Y)||U),typeof V<"u"&&(V=U0(V,Y.fontSize,1,Y)||V),U||=H==null?void 0:H[2],V||=H==null?void 0:H[3]),!W.width&&U&&(W.width=U),!W.height&&V&&(W.height=V)}return J.setDisplay($1(W.display,{flex:Q.DISPLAY_FLEX,block:Q.DISPLAY_FLEX,none:Q.DISPLAY_NONE,"-webkit-box":Q.DISPLAY_FLEX},Q.DISPLAY_FLEX,"display")),J.setAlignContent($1(W.alignContent,{stretch:Q.ALIGN_STRETCH,center:Q.ALIGN_CENTER,"flex-start":Q.ALIGN_FLEX_START,"flex-end":Q.ALIGN_FLEX_END,"space-between":Q.ALIGN_SPACE_BETWEEN,"space-around":Q.ALIGN_SPACE_AROUND,baseline:Q.ALIGN_BASELINE,normal:Q.ALIGN_AUTO},Q.ALIGN_AUTO,"alignContent")),J.setAlignItems($1(W.alignItems,{stretch:Q.ALIGN_STRETCH,center:Q.ALIGN_CENTER,"flex-start":Q.ALIGN_FLEX_START,"flex-end":Q.ALIGN_FLEX_END,baseline:Q.ALIGN_BASELINE,normal:Q.ALIGN_AUTO},Q.ALIGN_STRETCH,"alignItems")),J.setAlignSelf($1(W.alignSelf,{stretch:Q.ALIGN_STRETCH,center:Q.ALIGN_CENTER,"flex-start":Q.ALIGN_FLEX_START,"flex-end":Q.ALIGN_FLEX_END,baseline:Q.ALIGN_BASELINE,normal:Q.ALIGN_AUTO},Q.ALIGN_AUTO,"alignSelf")),J.setJustifyContent($1(W.justifyContent,{center:Q.JUSTIFY_CENTER,"flex-start":Q.JUSTIFY_FLEX_START,"flex-end":Q.JUSTIFY_FLEX_END,"space-between":Q.JUSTIFY_SPACE_BETWEEN,"space-around":Q.JUSTIFY_SPACE_AROUND},Q.JUSTIFY_FLEX_START,"justifyContent")),J.setFlexDirection($1(W.flexDirection,{row:Q.FLEX_DIRECTION_ROW,column:Q.FLEX_DIRECTION_COLUMN,"row-reverse":Q.FLEX_DIRECTION_ROW_REVERSE,"column-reverse":Q.FLEX_DIRECTION_COLUMN_REVERSE},Q.FLEX_DIRECTION_ROW,"flexDirection")),J.setFlexWrap($1(W.flexWrap,{wrap:Q.WRAP_WRAP,nowrap:Q.WRAP_NO_WRAP,"wrap-reverse":Q.WRAP_WRAP_REVERSE},Q.WRAP_NO_WRAP,"flexWrap")),typeof W.gap<"u"&&J.setGap(Q.GUTTER_ALL,W.gap),typeof W.rowGap<"u"&&J.setGap(Q.GUTTER_ROW,W.rowGap),typeof W.columnGap<"u"&&J.setGap(Q.GUTTER_COLUMN,W.columnGap),typeof W.flexBasis<"u"&&J.setFlexBasis(W.flexBasis),J.setFlexGrow(typeof W.flexGrow>"u"?0:W.flexGrow),J.setFlexShrink(typeof W.flexShrink>"u"?0:W.flexShrink),typeof W.maxHeight<"u"&&J.setMaxHeight(W.maxHeight),typeof W.maxWidth<"u"&&J.setMaxWidth(W.maxWidth),typeof W.minHeight<"u"&&J.setMinHeight(W.minHeight),typeof W.minWidth<"u"&&J.setMinWidth(W.minWidth),J.setOverflow($1(W.overflow,{visible:Q.OVERFLOW_VISIBLE,hidden:Q.OVERFLOW_HIDDEN},Q.OVERFLOW_VISIBLE,"overflow")),J.setMargin(Q.EDGE_TOP,W.marginTop||0),J.setMargin(Q.EDGE_BOTTOM,W.marginBottom||0),J.setMargin(Q.EDGE_LEFT,W.marginLeft||0),J.setMargin(Q.EDGE_RIGHT,W.marginRight||0),J.setBorder(Q.EDGE_TOP,W.borderTopWidth||0),J.setBorder(Q.EDGE_BOTTOM,W.borderBottomWidth||0),J.setBorder(Q.EDGE_LEFT,W.borderLeftWidth||0),J.setBorder(Q.EDGE_RIGHT,W.borderRightWidth||0),J.setPadding(Q.EDGE_TOP,W.paddingTop||0),J.setPadding(Q.EDGE_BOTTOM,W.paddingBottom||0),J.setPadding(Q.EDGE_LEFT,W.paddingLeft||0),J.setPadding(Q.EDGE_RIGHT,W.paddingRight||0),J.setPositionType($1(W.position,{absolute:Q.POSITION_TYPE_ABSOLUTE,relative:Q.POSITION_TYPE_RELATIVE},Q.POSITION_TYPE_RELATIVE,"position")),typeof W.top<"u"&&J.setPosition(Q.EDGE_TOP,W.top),typeof W.bottom<"u"&&J.setPosition(Q.EDGE_BOTTOM,W.bottom),typeof W.left<"u"&&J.setPosition(Q.EDGE_LEFT,W.left),typeof W.right<"u"&&J.setPosition(Q.EDGE_RIGHT,W.right),typeof W.height<"u"?J.setHeight(W.height):J.setHeightAuto(),typeof W.width<"u"?J.setWidth(W.width):J.setWidthAuto(),[W,Oz(W)]}var IJ=[1,0,0,1,0,0];function vz(J,K,Y){let X=[...IJ];for(let Z of J){let Q=Object.keys(Z)[0],W=Z[Q];if(typeof W=="string")if(Q==="translateX")W=parseFloat(W)/100*K,Z[Q]=W;else if(Q==="translateY")W=parseFloat(W)/100*Y,Z[Q]=W;else throw Error(`Invalid transform: "${Q}: ${W}".`);let w=W,H=[...IJ];switch(Q){case"translateX":H[4]=w;break;case"translateY":H[5]=w;break;case"scale":H[0]=w,H[3]=w;break;case"scaleX":H[0]=w;break;case"scaleY":H[3]=w;break;case"rotate":{let z=w*Math.PI/180,U=Math.cos(z),V=Math.sin(z);H[0]=U,H[1]=V,H[2]=-V,H[3]=U;break}case"skewX":H[2]=Math.tan(w*Math.PI/180);break;case"skewY":H[1]=Math.tan(w*Math.PI/180);break}X=S5(H,X)}J.splice(0,J.length),J.push(...X),J.__resolved=!0}function PK({left:J,top:K,width:Y,height:X},Z,Q,W){let w;Z.__resolved||vz(Z,Y,X);let H=Z;if(Q)w=H;else{let z=(W==null?void 0:W.xAbsolute)??((W==null?void 0:W.xRelative)??50)*Y/100,U=(W==null?void 0:W.yAbsolute)??((W==null?void 0:W.yRelative)??50)*X/100,V=J+z,$=K+U;w=S5([1,0,0,1,V,$],S5(H,[1,0,0,1,-V,-$])),H.__parent&&(w=S5(H.__parent,w)),H.splice(0,6,...w)}return`matrix(${w.map((z)=>z.toFixed(2)).join(",")})`}function yz({left:J,top:K,width:Y,height:X,isInheritingTransform:Z},Q){let W="",w=1;return Q.transform&&(W=PK({left:J,top:K,width:Y,height:X},Q.transform,Z,Q.transformOrigin)),Q.opacity!==void 0&&(w=+Q.opacity),{matrix:W,opacity:w}}function kz({id:J,content:K,filter:Y,left:X,top:Z,width:Q,height:W,matrix:w,opacity:H,image:z,clipPathId:U,debug:V,shape:$,decorationShape:B},M){let G="";if(V&&(G=a("rect",{x:X,y:Z-W,width:Q,height:W,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:w||void 0,"clip-path":U?`url(#${U})`:void 0})),z){let O={href:z,x:X,y:Z,width:Q,height:W,transform:w||void 0,"clip-path":U?`url(#${U})`:void 0,style:M.filter?`filter:${M.filter}`:void 0};return[(Y?`${Y}<g filter="url(#satori_s-${J})">`:"")+a("image",{...O,opacity:H!==1?H:void 0})+(B||"")+(Y?"</g>":"")+G,""]}let q={x:X,y:Z,width:Q,height:W,"font-weight":M.fontWeight,"font-style":M.fontStyle,"font-size":M.fontSize,"font-family":M.fontFamily,"letter-spacing":M.letterSpacing||void 0,transform:w||void 0,"clip-path":U?`url(#${U})`: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[(Y?`${Y}<g filter="url(#satori_s-${J})">`:"")+a("text",{...q,fill:M.color,opacity:H!==1?H:void 0},M4.default(K))+(B||"")+(Y?"</g>":"")+G,$?a("text",q,M4.default(K)):""]}function gz(J,K,Y){return J.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(X,Z,Q,W){return Z+(parseFloat(Q)+K)+","+(parseFloat(W)+Y)})}var L5=1.1;function xz({id:J,width:K,height:Y},X){if(!X.shadowColor||!X.shadowOffset||typeof X.shadowRadius>"u")return"";let Z=X.shadowColor.length,Q="",W="",w=0,H=K,z=0,U=Y;for(let V=0;V<Z;V++){let $=X.shadowRadius[V]*X.shadowRadius[V]/4;w=Math.min(X.shadowOffset[V].width-$,w),H=Math.max(X.shadowOffset[V].width+$+K,H),z=Math.min(X.shadowOffset[V].height-$,z),U=Math.max(X.shadowOffset[V].height+$+Y,U),Q+=a("feDropShadow",{dx:X.shadowOffset[V].width,dy:X.shadowOffset[V].height,stdDeviation:X.shadowRadius[V]/2,"flood-color":X.shadowColor[V],"flood-opacity":1,...Z>1?{in:"SourceGraphic",result:`satori_s-${J}-result-${V}`}:{}}),Z>1&&(W=a("feMergeNode",{in:`satori_s-${J}-result-${V}`})+W)}return a("filter",{id:`satori_s-${J}`,x:(w/K*100*L5).toFixed(2)+"%",y:(z/Y*100*L5).toFixed(2)+"%",width:((H-w)/K*100*L5).toFixed(2)+"%",height:((U-z)/Y*100*L5).toFixed(2)+"%"},Q+(W?a("feMerge",{},W):""))}function bz({width:J,height:K,shape:Y,opacity:X,id:Z},Q){if(!Q.boxShadow)return null;let W="",w="";for(let H=Q.boxShadow.length-1;H>=0;H--){let z="",U=Q.boxShadow[H];U.spreadRadius&&U.inset&&(U.spreadRadius=-U.spreadRadius);let V=U.blurRadius*U.blurRadius/4+(U.spreadRadius||0),$=Math.min(-V-(U.inset?U.offsetX:0),0),B=Math.max(V+J-(U.inset?U.offsetX:0),J),M=Math.min(-V-(U.inset?U.offsetY:0),0),G=Math.max(V+K-(U.inset?U.offsetY:0),K),q=`satori_s-${Z}-${H}`,O=`satori_ms-${Z}-${H}`,j=U.spreadRadius?Y.replace('stroke-width="0"',`stroke-width="${U.spreadRadius*2}"`):Y;z+=a("mask",{id:O,maskUnits:"userSpaceOnUse"},a("rect",{x:0,y:0,width:Q._viewportWidth||"100%",height:Q._viewportHeight||"100%",fill:U.inset?"#000":"#fff"})+j.replace('fill="#fff"',U.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let E=j.replace(/d="([^"]+)"/,(R,_)=>'d="'+gz(_,U.offsetX,U.offsetY)+'"').replace(/x="([^"]+)"/,(R,_)=>'x="'+(parseFloat(_)+U.offsetX)+'"').replace(/y="([^"]+)"/,(R,_)=>'y="'+(parseFloat(_)+U.offsetY)+'"');U.spreadRadius&&U.spreadRadius<0&&(z+=a("mask",{id:O+"-neg",maskUnits:"userSpaceOnUse"},E.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-U.spreadRadius*2}"`))),U.spreadRadius&&U.spreadRadius<0&&(E=a("g",{mask:`url(#${O}-neg)`},E)),z+=a("defs",{},a("filter",{id:q,x:`${$/J*100}%`,y:`${M/K*100}%`,width:`${(B-$)/J*100}%`,height:`${(G-M)/K*100}%`},a("feGaussianBlur",{stdDeviation:U.blurRadius/2,result:"b"})+a("feFlood",{"flood-color":U.color,in:"SourceGraphic",result:"f"})+a("feComposite",{in:"f",in2:"b",operator:U.inset?"out":"in"})))+a("g",{mask:`url(#${O})`,filter:`url(#${q})`,opacity:X},E),U.inset?w+=z:W+=z}return[W,w]}function hz({width:J,left:K,top:Y,ascender:X,clipPathId:Z,matrix:Q},W){let{textDecorationColor:w,textDecorationStyle:H,textDecorationLine:z,fontSize:U,color:V}=W;if(!z||z==="none")return"";let $=Math.max(1,U*0.1),B=z==="line-through"?Y+X*0.7:z==="underline"?Y+X*1.1:Y,M=H==="dashed"?`${$*1.2} ${$*2}`:H==="dotted"?`0 ${$*2}`:void 0;return(Z?`<g clip-path="url(#${Z})">`:"")+a("line",{x1:K,y1:B,x2:K+J,y2:B,stroke:w||V,"stroke-width":$,"stroke-dasharray":M,"stroke-linecap":H==="dotted"?"round":"square",transform:Q})+(Z?"</g>":"")}function v4(J){return J=J.replace("U+","0x"),String.fromCodePoint(Number(J))}var d8=v4("U+0020"),SK=v4("U+0009"),y5=v4("U+2026");function mz(J,K,Y){let{fontSize:X,letterSpacing:Z}=Y,Q=new Map;function W(z){if(Q.has(z))return Q.get(z);let U=J.measure(z,{fontSize:X,letterSpacing:Z});return Q.set(z,U),U}function w(z){let U=0;for(let V of z)K(V)?U+=X:U+=W(V);return U}function H(z){return w(A1(z,"grapheme"))}return{measureGrapheme:W,measureGraphemeArray:w,measureText:H}}function fz(J,K,Y){let{textTransform:X,whiteSpace:Z,wordBreak:Q}=K;J=dz(J,X,Y);let{content:W,shouldCollapseTabsAndSpaces:w,allowSoftWrap:H}=uz(J,Z),{words:z,requiredBreaks:U,allowBreakWord:V}=cz(W,Q),[$,B]=lz(K,H);return{words:z,requiredBreaks:U,allowSoftWrap:H,allowBreakWord:V,processedContent:W,shouldCollapseTabsAndSpaces:w,lineLimit:$,blockEllipsis:B}}function dz(J,K,Y){return K==="uppercase"?J=J.toLocaleUpperCase(Y):K==="lowercase"?J=J.toLocaleLowerCase(Y):K==="capitalize"&&(J=A1(J,"word",Y).map((X)=>A1(X,"grapheme",Y).map((Z,Q)=>Q===0?Z.toLocaleUpperCase(Y):Z).join("")).join("")),J}function lz(J,K){let{textOverflow:Y,lineClamp:X,WebkitLineClamp:Z,WebkitBoxOrient:Q,overflow:W,display:w}=J;if(w==="block"&&X){let[H,z=y5]=pz(X);if(H)return[H,z]}return Y==="ellipsis"&&w==="-webkit-box"&&Q==="vertical"&&Xz(Z)&&Z>0?[Z,y5]:Y==="ellipsis"&&W==="hidden"&&!K?[1,y5]:[1/0]}function cz(J,K){let Y=["break-all","break-word"].includes(K),{words:X,requiredBreaks:Z}=Qz(J,K);return{words:X,requiredBreaks:Z,allowBreakWord:Y}}function uz(J,K){let Y=["pre","pre-wrap","pre-line"].includes(K),X=["normal","nowrap","pre-line"].includes(K),Z=!["pre","nowrap"].includes(K);return Y||(J=J.replace(/\n/g,d8)),X&&(J=J.replace(/([ ]|\t)+/g,d8).replace(/^[ ]|[ ]$/g,"")),{content:J,shouldCollapseTabsAndSpaces:X,allowSoftWrap:Z}}function pz(J){if(typeof J=="number")return[J];let K=/^(\d+)\s*"(.*)"$/,Y=/^(\d+)\s*'(.*)'$/,X=K.exec(J),Z=Y.exec(J);if(X){let Q=+X[1],W=X[2];return[Q,W]}else if(Z){let Q=+Z[1],W=Z[2];return[Q,W]}return[]}var iz=new Set([SK]);function oz(J){return iz.has(J)}async function*rz(J,K){let Y=await f5(),{parentStyle:X,inheritedStyle:Z,parent:Q,font:W,id:w,isInheritingTransform:H,debug:z,embedFont:U,graphemeImages:V,locale:$,canLoadAdditionalAssets:B}=K,{textAlign:M,lineHeight:G,textWrap:q,fontSize:O,filter:j,tabSize:E=8,letterSpacing:R,_inheritedBackgroundClipTextPath:_,flexShrink:L}=X,{words:T,requiredBreaks:D,allowSoftWrap:P,allowBreakWord:g,processedContent:u,shouldCollapseTabsAndSpaces:n,lineLimit:i,blockEllipsis:C}=fz(J,X,$),S=nz(Y,M);Q.insertChild(S,Q.getChildCount()),Zz(L)&&Q.setFlexShrink(1);let I=W.getEngine(O,G,X,$),f=B?A1(u,"grapheme").filter((Q0)=>!oz(Q0)&&!I.has(Q0)):[];yield f.map((Q0)=>({word:Q0,locale:$})),f.length&&(I=W.getEngine(O,G,X,$));function l(Q0){return!!(V&&V[Q0])}let{measureGrapheme:c,measureGraphemeArray:p,measureText:m}=mz(I,l,{fontSize:O,letterSpacing:R}),d=jK(E)?U0(E,O,1,X):c(d8)*E,y=(Q0,M0)=>{if(Q0.length===0)return{originWidth:0,endingSpacesWidth:0,text:Q0};let{index:j0,tabCount:V0}=sz(Q0),R0=0;if(V0>0){let T0=Q0.slice(0,j0),F0=Q0.slice(j0+V0),G0=m(T0),G1=G0+M0;R0=(d===0?G0:(Math.floor(G1/d)+V0)*d)+m(F0)}else R0=m(Q0);let B0=Q0.trimEnd()===Q0?R0:m(Q0.trimEnd());return{originWidth:R0,endingSpacesWidth:R0-B0,text:Q0}},k=[],s=[],x=[],e=[],Y0=[];function X0(Q0){let M0=0,j0=0,V0=-1,R0=0,B0=0,T0=0,F0=0;k=[],x=[0],e=[],Y0=[];let G0=0,G1=0;for(;G0<T.length&&M0<i;){let w0=T[G0],o1=D[G0],s0=0,{originWidth:v1,endingSpacesWidth:n8,text:y1}=y(w0,B0);w0=y1,s0=v1;let N0=n8;o1&&T0===0&&(T0=I.height(w0));let g0=",.!?:-@)>]}%#".indexOf(w0[0])<0,Q1=!B0,s8=G0&&g0&&B0+s0>Q0+N0&&P;if(g&&s0>Q0&&(!B0||s8||o1)){let d0=A1(w0,"grapheme");T.splice(G0,1,...d0),B0>0&&(k.push(B0-G1),s.push(F0),M0++,R0+=T0,B0=0,T0=0,F0=0,x.push(1),V0=-1),G1=N0;continue}if(o1||s8)n&&w0===d8&&(s0=0),k.push(B0-G1),s.push(F0),M0++,R0+=T0,B0=s0,T0=s0?I.height(w0):0,F0=s0?I.baseline(w0):0,x.push(1),V0=-1,o1||(j0=Math.max(j0,Q0));else{B0+=s0;let d0=I.height(w0);d0>T0&&(T0=d0,F0=I.baseline(w0)),Q1&&x[x.length-1]++}Q1&&V0++,j0=Math.max(j0,B0);let q8=B0-s0;if(s0===0)Y0.push({y:R0,x:q8,width:0,line:M0,lineIndex:V0,isImage:!1});else{let d0=A1(w0,"word");for(let W1=0;W1<d0.length;W1++){let r1=d0[W1],_1=0,M8=!1;l(r1)?(_1=O,M8=!0):_1=c(r1),e.push(r1),Y0.push({y:R0,x:q8,width:_1,line:M0,lineIndex:V0,isImage:M8}),q8+=_1}}G0++,G1=N0}return B0&&(M0<i&&(R0+=T0),M0++,k.push(B0),s.push(F0)),{width:j0,height:R0}}let J0={width:0,height:0};S.setMeasureFunc((Q0)=>{let{width:M0,height:j0}=X0(Q0);if(q==="balance"){let R0=M0/2,B0=M0,T0=M0;for(;R0+1<B0;){T0=(R0+B0)/2;let{height:G0}=X0(T0);G0>j0?R0=T0:B0=T0}X0(B0);let F0=Math.ceil(B0);return J0={width:F0,height:j0},{width:F0,height:j0}}let V0=Math.ceil(M0);return J0={width:V0,height:j0},{width:V0,height:j0}});let[$0,_0]=yield,K0="",A0="",S0=Z._inheritedClipPathId,c0=Z._inheritedMaskId,{left:k0,top:I0,width:f0,height:u0}=S.getComputedLayout(),p0=Q.getComputedWidth()-Q.getComputedPadding(Y.EDGE_LEFT)-Q.getComputedPadding(Y.EDGE_RIGHT)-Q.getComputedBorder(Y.EDGE_LEFT)-Q.getComputedBorder(Y.EDGE_RIGHT),X1=$0+k0,Z1=_0+I0,{matrix:n0,opacity:X8}=yz({left:k0,top:I0,width:f0,height:u0,isInheritingTransform:H},X),P1="";if(X.textShadowOffset){let{textShadowColor:Q0,textShadowOffset:M0,textShadowRadius:j0}=X;P1=xz({width:J0.width,height:J0.height,id:w},{shadowColor:Q0,shadowOffset:M0,shadowRadius:j0}),P1=a("defs",{},P1)}let i1="",Z8="",r8="",Q8=-1,W8={},S1=null,m4=0;for(let Q0=0;Q0<e.length;Q0++){let M0=Y0[Q0],j0=Y0[Q0+1];if(!M0)continue;let V0=e[Q0],R0=null,B0=!1,T0=V?V[V0]:null,F0=M0.y,G0=M0.x,G1=M0.width,w0=M0.line;if(w0===Q8)continue;let o1=!1;if(k.length>1){let N0=f0-k[w0];if(M==="right"||M==="end")G0+=N0;else if(M==="center")G0+=N0/2;else if(M==="justify"&&w0<k.length-1){let g0=x[w0],Q1=g0>1?N0/(g0-1):0;G0+=Q1*M0.lineIndex,o1=!0}}let s0=s[w0],v1=I.baseline(V0),n8=I.height(V0),y1=s0-v1;if(W8[w0]||(W8[w0]=[G0,Z1+F0+y1,v1,o1?f0:k[w0]]),i!==1/0){let N0=function(d0,W1){let r1=A1(W1,"grapheme",$),_1="",M8=0;for(let f4 of r1){let d4=d0+p([_1+f4]);if(_1&&d4+Q1>p0)break;_1+=f4,M8=d4}return{subset:_1,resolvedWidth:M8}},g0=C,Q1=c(C);Q1>p0&&(g0=y5,Q1=c(g0));let s8=c(d8),q8=w0<k.length-1;if(w0+1===i&&(q8||k[w0]>p0)){if(G0+G1+Q1+s8>p0){let{subset:d0,resolvedWidth:W1}=N0(G0,V0);V0=d0+g0,Q8=w0,W8[w0][2]=W1,B0=!0}else if(j0&&j0.line!==w0)if(M==="center"){let{subset:d0,resolvedWidth:W1}=N0(G0,V0);V0=d0+g0,Q8=w0,W8[w0][2]=W1,B0=!0}else{let d0=e[Q0+1],{subset:W1,resolvedWidth:r1}=N0(G1+G0,d0);V0=V0+W1+g0,Q8=w0,W8[w0][2]=r1,B0=!0}}}if(T0)F0+=0;else if(U){if(!V0.includes(SK)&&!Jz.includes(V0)&&e[Q0+1]&&j0&&!j0.isImage&&F0===j0.y&&!B0){S1===null&&(m4=G0),S1=S1===null?V0:S1+V0;continue}let N0=S1===null?V0:S1+V0,g0=S1===null?G0:m4,Q1=M0.width+G0-g0;R0=I.getSVG(N0.replace(/(\t)+/g,""),{fontSize:O,left:X1+g0,top:Z1+F0+v1+y1,letterSpacing:R}),S1=null,z&&(r8+=a("rect",{x:X1+g0,y:Z1+F0+y1,width:Q1,height:n8,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:n0||void 0,"clip-path":S0?`url(#${S0})`:void 0})+a("line",{x1:X1+G0,x2:X1+G0+M0.width,y1:Z1+F0+y1+v1,y2:Z1+F0+y1+v1,stroke:"#14c000","stroke-width":1,transform:n0||void 0,"clip-path":S0?`url(#${S0})`:void 0}))}else F0+=v1+y1;if(X.textDecorationLine){let N0=W8[w0];N0&&!N0[4]&&(i1+=hz({left:X1+N0[0],top:N0[1],width:N0[3],ascender:N0[2],clipPathId:S0,matrix:n0},X),N0[4]=1)}if(R0!==null)Z8+=R0+" ";else{let[N0,g0]=kz({content:V0,filter:P1,id:w,left:X1+G0,top:Z1+F0,width:G1,height:n8,matrix:n0,opacity:X8,image:T0,clipPathId:S0,debug:z,shape:!!_,decorationShape:i1},X);K0+=N0,A0+=g0,i1=""}if(B0)break}if(Z8){let Q0=X.color!=="transparent"&&X8!==0?a("path",{fill:X.color,d:Z8,transform:n0||void 0,opacity:X8!==1?X8:void 0,"clip-path":S0?`url(#${S0})`:void 0,mask:c0?`url(#${c0})`:void 0,style:j?`filter:${j}`:void 0,"stroke-width":Z.WebkitTextStrokeWidth?`${Z.WebkitTextStrokeWidth}px`:void 0,stroke:Z.WebkitTextStrokeWidth?Z.WebkitTextStrokeColor:void 0,"stroke-linejoin":Z.WebkitTextStrokeWidth?"round":void 0,"paint-order":Z.WebkitTextStrokeWidth?"stroke":void 0}):"";_&&(A0=a("path",{d:Z8,transform:n0||void 0})),K0+=(P1?P1+a("g",{filter:`url(#satori_s-${w})`},Q0+i1):Q0+i1)+r8}return A0&&(X._inheritedBackgroundClipTextPath.value+=A0),K0}function nz(J,K){let Y=J.Node.create();return Y.setAlignItems(J.ALIGN_BASELINE),Y.setJustifyContent($1(K,{left:J.JUSTIFY_FLEX_START,right:J.JUSTIFY_FLEX_END,center:J.JUSTIFY_CENTER,justify:J.JUSTIFY_SPACE_BETWEEN,start:J.JUSTIFY_FLEX_START,end:J.JUSTIFY_FLEX_END},J.JUSTIFY_FLEX_START,"textAlign")),Y}function sz(J){let K=/(\t)+/.exec(J);return K?{index:K.index,tabCount:K[0].length}:{index:null,tabCount:0}}function vK(J,K,Y,X,Z){let Q=[];for(let z of K){let{color:U}=z;if(!Q.length&&(Q.push({offset:0,color:U}),!z.offset||z.offset.value==="0"))continue;let V=typeof z.offset>"u"?void 0:z.offset.unit==="%"?+z.offset.value/100:Number(U0(`${z.offset.value}${z.offset.unit}`,Y.fontSize,J,Y,!0))/J;Q.push({offset:V,color:U})}Q.length||Q.push({offset:0,color:"transparent"});let W=Q[Q.length-1];W.offset!==1&&(typeof W.offset>"u"?W.offset=1:X?Q[Q.length-1]={offset:1,color:W.color}:Q.push({offset:1,color:W.color}));let w=0,H=1;for(let z=0;z<Q.length;z++)if(typeof Q[z].offset>"u"){for(H<z&&(H=z);typeof Q[H].offset>"u";)H++;Q[z].offset=(Q[H].offset-Q[w].offset)/(H-w)*(z-w)+Q[w].offset}else w=z;return Z==="mask"?Q.map((z)=>{let U=z5(z.color);return U?U.alpha===0?{...z,color:"rgba(0, 0, 0, 1)"}:{...z,color:`rgba(255, 255, 255, ${U.alpha})`}:z}):Q}function az({id:J,width:K,height:Y,repeatX:X,repeatY:Z},Q,W,w,H,z){let U=L7(Q),[V,$]=W,B=Q.startsWith("repeating"),M,G,q;if(U.orientation.type==="directional")M=ez(U.orientation.value),G=Math.sqrt(Math.pow((M.x2-M.x1)*V,2)+Math.pow((M.y2-M.y1)*$,2));else if(U.orientation.type==="angular"){let{length:_,...L}=JU(OK(`${U.orientation.value.value}${U.orientation.value.unit}`)/180*Math.PI,V,$);G=_,M=L}q=B?KU(U.stops,G,M,H):M;let O=vK(B?tz(U.stops,G):G,U.stops,H,B,z),j=`satori_bi${J}`,E=`satori_pattern_${J}`,R=a("pattern",{id:E,x:w[0]/K,y:w[1]/Y,width:X?V/K:"1",height:Z?$/Y:"1",patternUnits:"objectBoundingBox"},a("linearGradient",{id:j,...q,spreadMethod:B?"repeat":"pad"},O.map((_)=>a("stop",{offset:(_.offset??0)*100+"%","stop-color":_.color})).join(""))+a("rect",{x:0,y:0,width:V,height:$,fill:`url(#${j})`}));return[E,R]}function tz(J,K){let Y=J[J.length-1],{offset:X}=Y;return X?X.unit==="%"?Number(X.value)/100*K:Number(X.value):K}function ez(J){let K=0,Y=0,X=0,Z=0;return J.includes("top")?Y=1:J.includes("bottom")&&(Z=1),J.includes("left")?K=1:J.includes("right")&&(X=1),!K&&!X&&!Y&&!Z&&(Y=1),{x1:K,y1:Y,x2:X,y2:Z}}function JU(J,K,Y){let X=Math.pow(Y/K,2);J=(J%(Math.PI*2)+Math.PI*2)%(Math.PI*2);let Z,Q,W,w,H,z,U,V,$=(B)=>{if(B===0){Z=0,Q=Y,W=0,w=0,H=Y;return}else if(B===Math.PI/2){Z=0,Q=0,W=K,w=0,H=K;return}if(B>0&&B<Math.PI/2){Z=(X*K/2/Math.tan(B)-Y/2)/(Math.tan(B)+X/Math.tan(B)),Q=Math.tan(B)*Z+Y,W=Math.abs(K/2-Z)+K/2,w=Y/2-Math.abs(Q-Y/2),H=Math.sqrt(Math.pow(W-Z,2)+Math.pow(w-Q,2)),U=(K/2/Math.tan(B)-Y/2)/(Math.tan(B)+1/Math.tan(B)),V=Math.tan(B)*U+Y,H=2*Math.sqrt(Math.pow(K/2-U,2)+Math.pow(Y/2-V,2));return}else if(B>Math.PI/2&&B<Math.PI){Z=(Y/2+X*K/2/Math.tan(B))/(Math.tan(B)+X/Math.tan(B)),Q=Math.tan(B)*Z,W=Math.abs(K/2-Z)+K/2,w=Y/2+Math.abs(Q-Y/2),U=(K/2/Math.tan(B)+Y/2)/(Math.tan(B)+1/Math.tan(B)),V=Math.tan(B)*U,H=2*Math.sqrt(Math.pow(K/2-U,2)+Math.pow(Y/2-V,2));return}else B>=Math.PI&&($(B-Math.PI),z=Z,Z=W,W=z,z=Q,Q=w,w=z)};return $(J),{x1:Z/K,y1:Q/Y,x2:W/K,y2:w/Y,length:H}}function KU(J,K,Y,X){let{x1:Z,x2:Q,y1:W,y2:w}=Y,H=J[0].offset?J[0].offset.unit==="%"?Number(J[0].offset.value)/100:U0(`${J[0].offset.value}${J[0].offset.unit}`,X.fontSize,K,X,!0)/K:0,z=J.at(-1).offset?J.at(-1).offset.unit==="%"?Number(J.at(-1).offset.value)/100:U0(`${J.at(-1).offset.value}${J.at(-1).offset.unit}`,X.fontSize,K,X,!0)/K:1,U=(Q-Z)*H+Z,V=(w-W)*H+W,$=(Q-Z)*z+Z,B=(w-W)*z+W;return{x1:U,y1:V,x2:$,y2:B}}function YU({id:J,width:K,height:Y,repeatX:X,repeatY:Z},Q,W,w,H,z){var U;let{shape:V,stops:$,position:B,size:M}=F7(Q),[G,q]=W,O=G/2,j=q/2,E=XU(B.x,B.y,G,q,H.fontSize,H);O=E.x,j=E.y;let R=vK(K,$,H,!1,z),_=`satori_radial_${J}`,L=`satori_pattern_${J}`,T=`satori_mask_${J}`,D=ZU(V,M,H.fontSize,{x:O,y:j},[G,q],H),P=a("pattern",{id:L,x:w[0]/K,y:w[1]/Y,width:X?G/K:"1",height:Z?q/Y:"1",patternUnits:"objectBoundingBox"},a("radialGradient",{id:_},R.map((g)=>a("stop",{offset:g.offset||0,"stop-color":g.color})).join(""))+a("mask",{id:T},a("rect",{x:0,y:0,width:G,height:q,fill:"#fff"}))+a("rect",{x:0,y:0,width:G,height:q,fill:((U=R.at(-1))==null?void 0:U.color)||"transparent"})+a(V,{cx:O,cy:j,width:G,height:q,...D,fill:`url(#${_})`,mask:`url(#${T})`}));return[L,P]}function XU(J,K,Y,X,Z,Q){let W={x:Y/2,y:X/2};return J.type==="keyword"?Object.assign(W,TJ(J.value,Y,X,"x")):W.x=U0(`${J.value.value}${J.value.unit}`,Z,Y,Q,!0)||Y/2,K.type==="keyword"?Object.assign(W,TJ(K.value,Y,X,"y")):W.y=U0(`${K.value.value}${K.value.unit}`,Z,X,Q,!0)||X/2,W}function TJ(J,K,Y,X){switch(J){case"center":return{[X]:X==="x"?K/2:Y/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:K};case"bottom":return{y:Y}}}function ZU(J,K,Y,X,Z,Q){let[W,w]=Z,{x:H,y:z}=X,U={},V=0,$=0;if(QU(K)){if(K.some((B)=>B.value.value.startsWith("-")))throw 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 J==="circle"?{r:Number(U0(`${K[0].value.value}${K[0].value.unit}`,Y,W,Q,!0))}:{rx:Number(U0(`${K[0].value.value}${K[0].value.unit}`,Y,W,Q,!0)),ry:Number(U0(`${K[1].value.value}${K[1].value.unit}`,Y,w,Q,!0))}}switch(K[0].value){case"farthest-corner":V=Math.max(Math.abs(W-H),Math.abs(H)),$=Math.max(Math.abs(w-z),Math.abs(z));break;case"closest-corner":V=Math.min(Math.abs(W-H),Math.abs(H)),$=Math.min(Math.abs(w-z),Math.abs(z));break;case"farthest-side":return J==="circle"?U.r=Math.max(Math.abs(W-H),Math.abs(H),Math.abs(w-z),Math.abs(z)):(U.rx=Math.max(Math.abs(W-H),Math.abs(H)),U.ry=Math.max(Math.abs(w-z),Math.abs(z))),U;case"closest-side":return J==="circle"?U.r=Math.min(Math.abs(W-H),Math.abs(H),Math.abs(w-z),Math.abs(z)):(U.rx=Math.min(Math.abs(W-H),Math.abs(H)),U.ry=Math.min(Math.abs(w-z),Math.abs(z))),U}if(J==="circle")U.r=Math.sqrt(V*V+$*$);else{let B=$!==0?V/$:1;V===0?(U.rx=0,U.ry=0):(U.ry=Math.sqrt(V*V+$*$*B*B)/B,U.rx=U.ry*B)}return U}function QU(J){return!J.some((K)=>K.type==="keyword")}function WU(J,K){return typeof J=="string"&&J.endsWith("%")?K*parseFloat(J)/100:+J}function w4(J,{x:K,y:Y,defaultX:X,defaultY:Z}){return(J?J.split(" ").map((Q)=>{try{let W=new c8(Q);return W.type==="length"||W.type==="number"?W.value:W.value+W.unit}catch{return null}}).filter((Q)=>Q!==null):[X,Z]).map((Q,W)=>WU(Q,[K,Y][W]))}async function yK({id:J,width:K,height:Y,left:X,top:Z},{image:Q,size:W,position:w,repeat:H},z,U){H=H||"repeat",U=U||"background";let V=H==="repeat-x"||H==="repeat",$=H==="repeat-y"||H==="repeat",B=w4(W,{x:K,y:Y,defaultX:K,defaultY:Y}),M=w4(w,{x:K,y:Y,defaultX:0,defaultY:0});if(Q.startsWith("linear-gradient(")||Q.startsWith("repeating-linear-gradient("))return az({id:J,width:K,height:Y,repeatX:V,repeatY:$},Q,B,M,z,U);if(Q.startsWith("radial-gradient("))return YU({id:J,width:K,height:Y,repeatX:V,repeatY:$},Q,B,M,z,U);if(Q.startsWith("url(")){let G=w4(W,{x:K,y:Y,defaultX:0,defaultY:0}),[q,O,j]=await S4(Q.slice(4,-1)),E=U==="mask"?O||G[0]:G[0]||O,R=U==="mask"?j||G[1]:G[1]||j;return[`satori_bi${J}`,a("pattern",{id:`satori_bi${J}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:M[0]+X,y:M[1]+Z,width:V?E:"100%",height:$?R:"100%"},a("image",{x:0,y:0,width:E,height:R,preserveAspectRatio:"none",href:q}))]}throw Error(`Invalid background image: "${Q}"`)}function HU([J,K]){return Math.round(J*1000)===0&&Math.round(K*1000)===0?0:Math.round(J*K/Math.sqrt(J*J+K*K)*1000)/1000}function F5(J,K,Y){return Y<J+K&&(Y/2<J&&Y/2<K?J=K=Y/2:Y/2<J?J=Y-K:Y/2<K&&(K=Y-J)),[J,K]}function E5(J){J[0]=J[1]=Math.min(J[0],J[1])}function _5(J,K,Y,X,Z){if(typeof J=="string"){let Q=J.split(" ").map((w)=>w.trim()),W=!Q[1]&&!Q[0].endsWith("%");return Q[1]=Q[1]||Q[0],[W,[Math.min(U0(Q[0],X,K,Z,!0),K),Math.min(U0(Q[1],X,Y,Z,!0),Y)]]}return typeof J=="number"?[!0,[Math.min(J,K),Math.min(J,Y)]]:[!0,void 0]}var R5=(J)=>J&&J[0]!==0&&J[1]!==0;function wU({id:J,borderRadiusPath:K,borderType:Y,left:X,top:Z,width:Q,height:W},w){let H=`satori_brc-${J}`;return[a("clipPath",{id:H},a(Y,{x:X,y:Z,width:Q,height:W,d:K||void 0})),H]}function x5({left:J,top:K,width:Y,height:X},Z,Q){let{borderTopLeftRadius:W,borderTopRightRadius:w,borderBottomLeftRadius:H,borderBottomRightRadius:z,fontSize:U}=Z,V,$,B,M;if([V,W]=_5(W,Y,X,U,Z),[$,w]=_5(w,Y,X,U,Z),[B,H]=_5(H,Y,X,U,Z),[M,z]=_5(z,Y,X,U,Z),!Q&&!R5(W)&&!R5(w)&&!R5(H)&&!R5(z))return"";W||=[0,0],w||=[0,0],H||=[0,0],z||=[0,0],[W[0],w[0]]=F5(W[0],w[0],Y),[H[0],z[0]]=F5(H[0],z[0],Y),[W[1],H[1]]=F5(W[1],H[1],X),[w[1],z[1]]=F5(w[1],z[1],X),V&&E5(W),$&&E5(w),B&&E5(H),M&&E5(z);let G=[];G[0]=[w,w],G[1]=[z,[-z[0],z[1]]],G[2]=[H,[-H[0],-H[1]]],G[3]=[W,[W[0],-W[1]]];let q=`h${Y-W[0]-w[0]} a${G[0][0]} 0 0 1 ${G[0][1]}`,O=`v${X-w[1]-z[1]} a${G[1][0]} 0 0 1 ${G[1][1]}`,j=`h${z[0]+H[0]-Y} a${G[2][0]} 0 0 1 ${G[2][1]}`,E=`v${H[1]+W[1]-X} a${G[3][0]} 0 0 1 ${G[3][1]}`;if(Q){let R=function(n){let i=HU([W,w,z,H][n]);return n===0?[[J+W[0]-i,K+W[1]-i],[J+W[0],K]]:n===1?[[J+Y-w[0]+i,K+w[1]-i],[J+Y,K+w[1]]]:n===2?[[J+Y-z[0]+i,K+X-z[1]+i],[J+Y-z[0],K+X]]:[[J+H[0]-i,K+X-H[1]+i],[J,K+X-H[1]]]},_=Q.indexOf(!1);if(!Q.includes(!0))throw Error("Invalid `partialSides`.");if(_===-1)_=0;else for(;!Q[_];)_=(_+1)%4;let L="",T=R(_),D=`M${T[0]} A${G[(_+3)%4][0]} 0 0 1 ${T[1]}`,P=0;for(;P<4&&Q[(_+P)%4];P++)L+=D+" ",D=[q,O,j,E][(_+P)%4];let g=(_+P)%4;L+=D.split(" ")[0];let u=R(g);return L+=` A${G[(g+3)%4][0]} 0 0 1 ${u[0]}`,L}return`M${J+W[0]},${K} ${q} ${O} ${j} ${E}`}function CJ(J,K,Y){return Y[J+"Width"]===Y[K+"Width"]&&Y[J+"Style"]===Y[K+"Style"]&&Y[J+"Color"]===Y[K+"Color"]}function zU({id:J,currentClipPathId:K,borderPath:Y,borderType:X,left:Z,top:Q,width:W,height:w},H){if(!(H.borderTopWidth||H.borderRightWidth||H.borderBottomWidth||H.borderLeftWidth))return null;let z=`satori_bc-${J}`;return[a("clipPath",{id:z,"clip-path":K?`url(#${K})`:void 0},a(X,{x:Z,y:Q,width:W,height:w,d:Y||void 0})),z]}function kK({left:J,top:K,width:Y,height:X,props:Z,asContentMask:Q,maskBorderOnly:W},w){let H=["borderTop","borderRight","borderBottom","borderLeft"];if(!Q&&!H.some((B)=>w[B+"Width"]))return"";let z="",U=0;for(;U>0&&CJ(H[U],H[(U+3)%4],w);)U=(U+3)%4;let V=[!1,!1,!1,!1],$=[];for(let B=0;B<4;B++){let M=(U+B)%4,G=(U+B+1)%4,q=H[M],O=H[G];if(V[M]=!0,$=[w[q+"Width"],w[q+"Style"],w[q+"Color"],q],!CJ(q,O,w)){let j=($[0]||0)+(Q&&!W&&w[q.replace("border","padding")]||0);j&&(z+=a("path",{width:Y,height:X,...Z,fill:"none",stroke:Q?"#000":$[2],"stroke-width":j*2,"stroke-dasharray":!Q&&$[1]==="dashed"?j*2+" "+j:void 0,d:x5({left:J,top:K,width:Y,height:X},w,V)})),V=[!1,!1,!1,!1]}}if(V.some(Boolean)){let B=($[0]||0)+(Q&&!W&&w[$[3].replace("border","padding")]||0);B&&(z+=a("path",{width:Y,height:X,...Z,fill:"none",stroke:Q?"#000":$[2],"stroke-width":B*2,"stroke-dasharray":!Q&&$[1]==="dashed"?B*2+" "+B:void 0,d:x5({left:J,top:K,width:Y,height:X},w,V)}))}return z}function UU({id:J,left:K,top:Y,width:X,height:Z,matrix:Q,borderOnly:W},w){let H=(w.borderLeftWidth||0)+(W?0:w.paddingLeft||0),z=(w.borderTopWidth||0)+(W?0:w.paddingTop||0),U=(w.borderRightWidth||0)+(W?0:w.paddingRight||0),V=(w.borderBottomWidth||0)+(W?0:w.paddingBottom||0),$={x:K+H,y:Y+z,width:X-H-U,height:Z-z-V};return a("mask",{id:J},a("rect",{...$,fill:"#fff",transform:w.overflow==="hidden"&&w.transform&&Q?Q:void 0,mask:w._inheritedMaskId?`url(#${w._inheritedMaskId})`:void 0})+kK({left:K,top:Y,width:X,height:Z,props:{transform:Q||void 0},asContentMask:!0,maskBorderOnly:W},w))}var b8={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/};function VU({width:J,height:K},Y,X){function Z(z){let U=z.match(b8.circle);if(!U)return null;let[,V]=U,[$,B=""]=V.split("at").map((q)=>q.trim()),{x:M,y:G}=SJ(B,J,K);return{type:"circle",r:U0($,X.fontSize,Math.sqrt(Math.pow(J,2)+Math.pow(K,2))/Math.sqrt(2),X,!0),cx:U0(M,X.fontSize,J,X,!0),cy:U0(G,X.fontSize,K,X,!0)}}function Q(z){let U=z.match(b8.ellipse);if(!U)return null;let[,V]=U,[$,B=""]=V.split("at").map((j)=>j.trim()),[M,G]=$.split(" "),{x:q,y:O}=SJ(B,J,K);return{type:"ellipse",rx:U0(M||"50%",X.fontSize,J,X,!0),ry:U0(G||"50%",X.fontSize,K,X,!0),cx:U0(q,X.fontSize,J,X,!0),cy:U0(O,X.fontSize,K,X,!0)}}function W(z){let U=z.match(b8.path);if(!U)return null;let[V,$]=PJ(U[1]);return{type:"path",d:$,"fill-rule":V}}function w(z){let U=z.match(b8.polygon);if(!U)return null;let[V,$]=PJ(U[1]);return{type:"polygon","fill-rule":V,points:$.split(",").map((B)=>B.split(" ").map((M,G)=>U0(M,X.fontSize,G===0?J:K,X,!0)).join(" ")).join(",")}}function H(z){let U=z.match(b8.inset);if(!U)return null;let[V,$]=(U[1].includes("round")?U[1]:`${U[1].trim()} round 0`).split("round"),B=N4.getStylesForProperty("borderRadius",$,!0),M=Object.values(B).map((R)=>String(R)).map((R,_)=>U0(R,X.fontSize,_===0||_===2?K:J,X,!0)||0),G=Object.values(N4.getStylesForProperty("margin",V,!0)).map((R)=>String(R)).map((R,_)=>U0(R,X.fontSize,_===0||_===2?K:J,X,!0)||0),q=G[3],O=G[0],j=J-(G[1]+G[3]),E=K-(G[0]+G[2]);return M.some((R)=>R>0)?{type:"path",d:x5({left:q,top:O,width:j,height:E},{...Y,...B})}:{type:"rect",x:q,y:O,width:j,height:E}}return{parseCircle:Z,parseEllipse:Q,parsePath:W,parsePolygon:w,parseInset:H}}function PJ(J){let[,K="nonzero",Y]=J.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[K,Y]}function SJ(J,K,Y){let X=J.split(" "),Z={x:X[0]||"50%",y:X[1]||"50%"};return X.forEach((Q)=>{Q==="top"?Z.y=0:Q==="bottom"?Z.y=Y:Q==="left"?Z.x=0:Q==="right"?Z.x=K:Q==="center"&&(Z.x=K/2,Z.y=Y/2)}),Z}function y4(J){return`satori_cp-${J}`}function $U(J){return`url(#${y4(J)})`}function BU(J,K,Y){if(K.clipPath==="none")return"";let X=VU(J,K,Y),Z=K.clipPath,Q={type:""};for(let W of Object.keys(X))if(Q=X[W](Z),Q)break;if(Q){let{type:W,...w}=Q;return a("clipPath",{id:y4(J.id),"clip-path":J.currentClipPath,transform:`translate(${J.left}, ${J.top})`},a(W,w))}return""}function AU({left:J,top:K,width:Y,height:X,path:Z,matrix:Q,id:W,currentClipPath:w,src:H},z,U){let V="",$=z.clipPath&&z.clipPath!=="none"?BU({left:J,top:K,width:Y,height:X,path:Z,id:W,matrix:Q,currentClipPath:w,src:H},z,U):"";if(z.overflow!=="hidden"&&!H)V="";else{let M=$?`satori_ocp-${W}`:y4(W);V=a("clipPath",{id:M,"clip-path":w},a(Z?"path":"rect",{x:J,y:K,width:Y,height:X,d:Z||void 0,transform:z.overflow==="hidden"&&z.transform&&Q?Q:void 0}))}let B=UU({id:`satori_om-${W}`,left:J,top:K,width:Y,height:X,matrix:Q,borderOnly:!H},z);return $+V+B}var GU=(J)=>`satori_mi-${J}`;async function qU(J,K,Y){if(!K.maskImage)return["",""];let{left:X,top:Z,width:Q,height:W,id:w}=J,H=K.maskImage,z=H.length;if(!z)return["",""];let U=GU(w),V="";for(let $=0;$<z;$++){let B=H[$],[M,G]=await yK({id:`${U}-${$}`,left:X,top:Z,width:Q,height:W},B,Y,"mask");V+=G+a("rect",{x:X,y:Z,width:Q,height:W,fill:`url(#${M})`})}return V=a("mask",{id:U},V),[U,V]}async function z4({id:J,left:K,top:Y,width:X,height:Z,isInheritingTransform:Q,src:W,debug:w},H,z){if(H.display==="none")return"";let U=!!W,V="rect",$="",B="",M=[],G=1,q="";H.backgroundColor&&M.push(H.backgroundColor),H.opacity!==void 0&&(G=+H.opacity),H.transform&&($=PK({left:K,top:Y,width:X,height:Z},H.transform,Q,H.transformOrigin));let O="";if(H.backgroundImage){let S=[];for(let I=0;I<H.backgroundImage.length;I++){let f=H.backgroundImage[I],l=await yK({id:J+"_"+I,width:X,height:Z,left:K,top:Y},f,z);l&&S.unshift(l)}for(let I of S)M.push(`url(#${I[0]})`),B+=I[1],I[2]&&(O+=I[2])}let[j,E]=await qU({id:J,left:K,top:Y,width:X,height:Z},H,z);B+=E;let R=j?`url(#${j})`:H._inheritedMaskId?`url(#${H._inheritedMaskId})`:void 0,_=x5({left:K,top:Y,width:X,height:Z},H);_&&(V="path");let L=H._inheritedClipPathId;w&&(q=a("rect",{x:K,y:Y,width:X,height:Z,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:$||void 0,"clip-path":L?`url(#${L})`:void 0}));let{backgroundClip:T,filter:D}=H,P=T==="text"?`url(#satori_bct-${J})`:L?`url(#${L})`:H.clipPath?$U(J):void 0,g=AU({left:K,top:Y,width:X,height:Z,path:_,id:J,matrix:$,currentClipPath:P,src:W},H,z),u=M.map((S)=>a(V,{x:K,y:Y,width:X,height:Z,fill:S,d:_||void 0,transform:$||void 0,"clip-path":H.transform?void 0:P,style:D?`filter:${D}`:void 0,mask:H.transform?void 0:R})).join(""),n=zU({id:J,left:K,top:Y,width:X,height:Z,currentClipPathId:L,borderPath:_,borderType:V},H),i;if(U){let S=(H.borderLeftWidth||0)+(H.paddingLeft||0),I=(H.borderTopWidth||0)+(H.paddingTop||0),f=(H.borderRightWidth||0)+(H.paddingRight||0),l=(H.borderBottomWidth||0)+(H.paddingBottom||0),c=H.objectFit==="contain"?"xMidYMid":H.objectFit==="cover"?"xMidYMid slice":"none";H.transform&&(i=wU({id:J,borderRadiusPath:_,borderType:V,left:K,top:Y,width:X,height:Z},H)),u+=a("image",{x:K+S,y:Y+I,width:X-S-f,height:Z-I-l,href:W,preserveAspectRatio:c,transform:$||void 0,style:D?`filter:${D}`:void 0,"clip-path":H.transform?i?`url(#${i[1]})`:void 0:`url(#satori_cp-${J})`,mask:H.transform?void 0:j?`url(#${j})`:`url(#satori_om-${J})`})}if(n){B+=n[0];let S=n[1];u+=kK({left:K,top:Y,width:X,height:Z,props:{transform:$||void 0,"clip-path":`url(#${S})`}},H)}let C=bz({width:X,height:Z,id:J,opacity:G,shape:a(V,{x:K,y:Y,width:X,height:Z,fill:"#fff",stroke:"#fff","stroke-width":0,d:_||void 0,transform:$||void 0,"clip-path":P,mask:R})},H);return(B?a("defs",{},B):"")+(C?C[0]:"")+(i?i[0]:"")+g+(G!==1?`<g opacity="${G}">`:"")+(H.transform&&(P||R)?`<g${P?` clip-path="${P}"`:""}${R?` mask="${R}"`:""}>`:"")+(O||u)+(H.transform&&(P||R)?"</g>":"")+(G!==1?"</g>":"")+(C?C[1]:"")+q}var MU=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,NU=new RegExp(MU(),""),O4={emoji:NU,symbol:/\p{Symbol}/u,math:/\p{Math}/u},j4={"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},k4=Object.keys({...j4,...O4});function OU(J){return k4.includes(J)}function jU(J,K){for(let X of Object.keys(O4))if(O4[X].test(J))return[X];let Y=Object.keys(j4).filter((X)=>j4[X].test(J));if(Y.length===0)return["unknown"];if(K){let X=Y.findIndex((Z)=>Z===K);X!==-1&&(Y.splice(X,1),Y.unshift(K))}return Y}function LU(J){if(J)return k4.find((K)=>K.toLowerCase().startsWith(J.toLowerCase()))}async function*L4(J,K){var Y;let X=await f5(),{id:Z,inheritedStyle:Q,parent:W,font:w,debug:H,locale:z,embedFont:U=!0,graphemeImages:V,canLoadAdditionalAssets:$,getTwStyles:B}=K;if(J===null||typeof J>"u")return yield,yield,"";if(!P5(J)||typeof J.type=="function"){let k;if(!P5(J))k=rz(String(J),K),yield(await k.next()).value;else{if(aw(J.type))throw Error("Class component is not supported.");k=L4(J.type(J.props),K),yield(await k.next()).value}await k.next();let s=yield;return(await k.next(s)).value}let{type:M,props:G}=J;if(G&&tw(G))throw Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:q,children:O,tw:j,lang:E=z}=G||{},R=LU(E);if(j){let k=B(j,q);q=Object.assign(k,q)}let _=X.Node.create();W.insertChild(_,W.getChildCount());let[L,T]=await Sz(_,M,Q,q,G),D=L.transform===Q.transform;if(D||(L.transform.__parent=Q.transform),(L.overflow==="hidden"||L.clipPath&&L.clipPath!=="none")&&(T._inheritedClipPathId=`satori_cp-${Z}`,T._inheritedMaskId=`satori_om-${Z}`),L.maskImage&&(T._inheritedMaskId=`satori_mi-${Z}`),L.backgroundClip==="text"){let k={value:""};T._inheritedBackgroundClipTextPath=k,L._inheritedBackgroundClipTextPath=k}let P=ew(O),g=[],u=0,n=[];for(let k of P){let s=L4(k,{id:Z+"-"+u++,parentStyle:L,inheritedStyle:T,isInheritingTransform:!0,parent:_,font:w,embedFont:U,debug:H,graphemeImages:V,canLoadAdditionalAssets:$,locale:R,getTwStyles:B,onNodeDetected:K.onNodeDetected});$?n.push(...(await s.next()).value||[]):await s.next(),g.push(s)}yield n;for(let k of g)await k.next();let[i,C]=yield,{left:S,top:I,width:f,height:l}=_.getComputedLayout();S+=i,I+=C;let c="",p="",m="",{children:d,...y}=G;if((Y=K.onNodeDetected)==null||Y.call(K,{left:S,top:I,width:f,height:l,type:M,props:y,key:J.key,textContent:P5(d)?void 0:d}),M==="img"){let k=L.__src;p=await z4({id:Z,left:S,top:I,width:f,height:l,src:k,isInheritingTransform:D,debug:H},L,T)}else if(M==="svg"){let k=L.color,s=await qz(J,k);p=await z4({id:Z,left:S,top:I,width:f,height:l,src:s,isInheritingTransform:D,debug:H},L,T)}else{let k=q==null?void 0:q.display;if(M==="div"&&O&&typeof O!="string"&&k!=="flex"&&k!=="none")throw Error('Expected <div> to have explicit "display: flex" or "display: none" if it has more than one child node.');p=await z4({id:Z,left:S,top:I,width:f,height:l,isInheritingTransform:D,debug:H},L,T)}for(let k of g)c+=(await k.next([S,I])).value;return L._inheritedBackgroundClipTextPath&&(m+=a("clipPath",{id:`satori_bct-${Z}`,"clip-path":L._inheritedClipPathId?`url(#${L._inheritedClipPathId})`:void 0},L._inheritedBackgroundClipTextPath.value)),m+p+c}var gK="unknown";function FU(J,K,[Y,X],[Z,Q]){if(Y!==Z)return Y?!Z||Y===J?-1:Z===J?1:J===400&&Y===500||J===500&&Y===400?-1:J===400&&Z===500||J===500&&Z===400?1:J<400?Y<J&&Z<J?Z-Y:Y<J?-1:Z<J?1:Y-Z:J<Y&&J<Z?Y-Z:J<Y?-1:J<Z?1:Z-Y:1;if(X!==Q){if(X===K)return-1;if(Q===K)return 1}return-1}var EU=class{constructor(J){this.fonts=new Map,this.addFonts(J)}get({name:J,weight:K,style:Y}){if(!this.fonts.has(J))return null;K==="normal"&&(K=400),K==="bold"&&(K=700),typeof K=="string"&&(K=Number.parseInt(K,10));let X=[...this.fonts.get(J)],Z=X[0];for(let Q=1;Q<X.length;Q++){let[,W,w]=Z,[,H,z]=X[Q];FU(K,Y,[W,w],[H,z])>0&&(Z=X[Q])}return Z[0]}addFonts(J){for(let K of J){let{name:Y,data:X,lang:Z}=K;if(Z&&!OU(Z))throw Error(`Invalid value for props \`lang\`: "${Z}". The value must be one of the following: ${k4.join(", ")}.`);let Q=Z??gK,W=N5.parse("buffer"in X?X.buffer.slice(X.byteOffset,X.byteOffset+X.byteLength):X,{lowMemory:!0}),w=W.charToGlyphIndex;W.charToGlyphIndex=(z)=>{let U=w.call(W,z);return U===0&&W._trackBrokenChars&&W._trackBrokenChars.push(z),U},this.defaultFont||(this.defaultFont=W);let H=`${Y.toLowerCase()}_${Q}`;this.fonts.has(H)||this.fonts.set(H,[]),this.fonts.get(H).push([W,K.weight,K.style])}}getEngine(J=16,K="normal",{fontFamily:Y="sans-serif",fontWeight:X=400,fontStyle:Z="normal"},Q){if(!this.fonts.size)throw Error("No fonts are loaded. At least one font is required to calculate the layout.");Y=(Array.isArray(Y)?Y:[Y]).map((O)=>O.toLowerCase());let W=[];Y.forEach((O)=>{let j=this.get({name:O,weight:X,style:Z});if(j){W.push(j);return}let E=this.get({name:O+"_unknown",weight:X,style:Z});if(E){W.push(E);return}});let w=Array.from(this.fonts.keys()),H=[],z=[],U=[];for(let O of w)if(!Y.includes(O))if(Q){let j=_U(O);j?j===Q?H.push(this.get({name:O,weight:X,style:Z})):z.push(this.get({name:O,weight:X,style:Z})):U.push(this.get({name:O,weight:X,style:Z}))}else U.push(this.get({name:O,weight:X,style:Z}));let V=new Map,$=(O,j=!0)=>{let E=[...W,...U,...H,...j?z:[]];if(typeof O>"u")return j?E[E.length-1]:void 0;let R=O.charCodeAt(0);if(V.has(R))return V.get(R);let _=E.find((L,T)=>!!L.charToGlyphIndex(O)||j&&T===E.length-1);return _&&V.set(R,_),_},B=(O,j=!1)=>{var E,R;return((j?(R=(E=O.tables)==null?void 0:E.os2)==null?void 0:R.sTypoAscender:0)||O.ascender)/O.unitsPerEm*J},M=(O,j=!1)=>{var E,R;return((j?(R=(E=O.tables)==null?void 0:E.os2)==null?void 0:R.sTypoDescender:0)||O.descender)/O.unitsPerEm*J},G=(O,j=!1)=>{var E,R;if(typeof K=="string"&&K==="normal"){let _=(j?(R=(E=O.tables)==null?void 0:E.os2)==null?void 0:R.sTypoLineGap:0)||0;return B(O,j)-M(O,j)+_/O.unitsPerEm*J}else if(typeof K=="number")return J*K},q=(O)=>$(O,!1);return{has:(O)=>{if(O===`
|
|
66
|
+
`)return!0;let j=q(O);return j?(j._trackBrokenChars=[],j.stringToGlyphs(O),j._trackBrokenChars.length?(j._trackBrokenChars=void 0,!1):!0):!1},baseline:(O,j=typeof O>"u"?W[0]:$(O))=>{let E=B(j),R=M(j),_=E-R;return E+(G(j)-_)/2},height:(O,j=typeof O>"u"?W[0]:$(O))=>G(j),measure:(O,j)=>this.measure($,O,j),getSVG:(O,j)=>this.getSVG($,O,j)}}patchFontFallbackResolver(J,K){let Y=[];J._trackBrokenChars=Y;let X=J.stringToGlyphs;return J.stringToGlyphs=(Z,...Q)=>{let W=X.call(J,Z,...Q);for(let w=0;w<W.length;w++)if(W[w].unicode===void 0){let H=Y.shift(),z=K(H);if(z!==J){let U=z.charToGlyph(H),V=J.unitsPerEm/z.unitsPerEm,$=new N5.Path;$.unitsPerEm=J.unitsPerEm,$.commands=U.path.commands.map((M)=>{let G={...M};for(let q in G)typeof G[q]=="number"&&(G[q]*=V);return G});let B=new N5.Glyph({...U,advanceWidth:U.advanceWidth*V,xMin:U.xMin*V,xMax:U.xMax*V,yMin:U.yMin*V,yMax:U.yMax*V,path:$});W[w]=B}}return W},()=>{J.stringToGlyphs=X,J._trackBrokenChars=void 0}}measure(J,K,{fontSize:Y,letterSpacing:X=0}){let Z=J(K),Q=this.patchFontFallbackResolver(Z,J);try{return Z.getAdvanceWidth(K,Y,{letterSpacing:X/Y})}finally{Q()}}getSVG(J,K,{fontSize:Y,top:X,left:Z,letterSpacing:Q=0}){let W=J(K),w=this.patchFontFallbackResolver(W,J);try{return Y===0?"":W.getPath(K.replace(/\n/g,""),Z,X,Y,{letterSpacing:Q/Y}).toPathData(1)}finally{w()}}};function _U(J){let K=J.split("_"),Y=K[K.length-1];return Y===gK?void 0:Y}function RU({width:J,height:K,content:Y}){return a("svg",{width:J,height:K,viewBox:`0 0 ${J} ${K}`,xmlns:"http://www.w3.org/2000/svg"},Y)}var DU=Xw(mw()),IU=["ios","android","windows","macos","web"];function TU(J){return IU.includes(J)}var CU=["portrait","landscape"];function PU(J){return CU.includes(J)}var vJ;(function(J){J.fontSize="fontSize",J.lineHeight="lineHeight"})(vJ||(vJ={}));var q0;(function(J){J.rem="rem",J.em="em",J.px="px",J.percent="%",J.vw="vw",J.vh="vh",J.none="<no-css-unit>"})(q0||(q0={}));function yJ(J){return typeof J=="string"}function kJ(J){return typeof J=="object"}var U4;function b(J){return{kind:"complete",style:J}}function Y1(J,K={}){let{fractions:Y}=K;if(Y&&J.includes("/")){let[Q="",W=""]=J.split("/",2),w=Y1(Q),H=Y1(W);return!w||!H?null:[w[0]/H[0],H[1]]}let X=parseFloat(J);if(Number.isNaN(X))return null;let Z=J.match(/(([a-z]{2,}|%))$/);if(!Z)return[X,q0.none];switch(Z==null?void 0:Z[1]){case"rem":return[X,q0.rem];case"px":return[X,q0.px];case"em":return[X,q0.em];case"%":return[X,q0.percent];case"vw":return[X,q0.vw];case"vh":return[X,q0.vh];default:return null}}function u8(J,K,Y={}){let X=K8(K,Y);return X===null?null:b({[J]:X})}function V4(J,K,Y){let X=K8(K);return X!==null&&(Y[J]=X),Y}function SU(J,K){let Y=K8(K);return Y===null?null:{[J]:Y}}function K8(J,K={}){if(J===void 0)return null;let Y=Y1(String(J),K);return Y?p8(...Y,K):null}function p8(J,K,Y={}){let{isNegative:X,device:Z}=Y;switch(K){case q0.rem:return J*16*(X?-1:1);case q0.px:return J*(X?-1:1);case q0.percent:return`${X?"-":""}${J}%`;case q0.none:return J*(X?-1:1);case q0.vw:return Z!=null&&Z.windowDimensions?Z.windowDimensions.width*(J/100):(C1("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case q0.vh:return Z!=null&&Z.windowDimensions?Z.windowDimensions.height*(J/100):(C1("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function gJ(J){let K=Y1(J);if(!K)return null;let[Y,X]=K;switch(X){case q0.rem:return Y*16;case q0.px:return Y;default:return null}}var vU={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function xK(J){return vU[J??""]||"All"}function bK(J){let K="All";return[J.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(Y,X)=>(K=xK(X),"")),K]}function p5(J,K={}){if(J.includes("/")){let Y=xJ(J,{...K,fractions:!0});if(Y)return Y}return J[0]==="["&&(J=J.slice(1,-1)),xJ(J,K)}function Y8(J,K,Y={}){let X=p5(K,Y);return X===null?null:b({[J]:X})}function xJ(J,K={}){if(J==="px")return 1;let Y=Y1(J,K);if(!Y)return null;let[X,Z]=Y;return K.fractions&&(Z=q0.percent,X*=100),Z===q0.none&&(X=X/4,Z=q0.rem),p8(X,Z,K)}function yU(...J){console.warn(...J)}function kU(...J){}var C1=typeof process>"u"||((U4=process==null?void 0:process.env)===null||U4===void 0?void 0:U4.JEST_WORKER_ID)===void 0?yU:kU,gU=[["aspect-square",b({aspectRatio:1})],["aspect-video",b({aspectRatio:1.7777777777777777})],["items-center",b({alignItems:"center"})],["items-start",b({alignItems:"flex-start"})],["items-end",b({alignItems:"flex-end"})],["items-baseline",b({alignItems:"baseline"})],["items-stretch",b({alignItems:"stretch"})],["justify-start",b({justifyContent:"flex-start"})],["justify-end",b({justifyContent:"flex-end"})],["justify-center",b({justifyContent:"center"})],["justify-between",b({justifyContent:"space-between"})],["justify-around",b({justifyContent:"space-around"})],["justify-evenly",b({justifyContent:"space-evenly"})],["content-start",b({alignContent:"flex-start"})],["content-end",b({alignContent:"flex-end"})],["content-between",b({alignContent:"space-between"})],["content-around",b({alignContent:"space-around"})],["content-stretch",b({alignContent:"stretch"})],["content-center",b({alignContent:"center"})],["self-auto",b({alignSelf:"auto"})],["self-start",b({alignSelf:"flex-start"})],["self-end",b({alignSelf:"flex-end"})],["self-center",b({alignSelf:"center"})],["self-stretch",b({alignSelf:"stretch"})],["self-baseline",b({alignSelf:"baseline"})],["direction-inherit",b({direction:"inherit"})],["direction-ltr",b({direction:"ltr"})],["direction-rtl",b({direction:"rtl"})],["hidden",b({display:"none"})],["flex",b({display:"flex"})],["flex-row",b({flexDirection:"row"})],["flex-row-reverse",b({flexDirection:"row-reverse"})],["flex-col",b({flexDirection:"column"})],["flex-col-reverse",b({flexDirection:"column-reverse"})],["flex-wrap",b({flexWrap:"wrap"})],["flex-wrap-reverse",b({flexWrap:"wrap-reverse"})],["flex-nowrap",b({flexWrap:"nowrap"})],["flex-auto",b({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",b({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",b({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",b({overflow:"hidden"})],["overflow-visible",b({overflow:"visible"})],["overflow-scroll",b({overflow:"scroll"})],["absolute",b({position:"absolute"})],["relative",b({position:"relative"})],["italic",b({fontStyle:"italic"})],["not-italic",b({fontStyle:"normal"})],["oldstyle-nums",h8("oldstyle-nums")],["small-caps",h8("small-caps")],["lining-nums",h8("lining-nums")],["tabular-nums",h8("tabular-nums")],["proportional-nums",h8("proportional-nums")],["font-thin",b({fontWeight:"100"})],["font-100",b({fontWeight:"100"})],["font-extralight",b({fontWeight:"200"})],["font-200",b({fontWeight:"200"})],["font-light",b({fontWeight:"300"})],["font-300",b({fontWeight:"300"})],["font-normal",b({fontWeight:"normal"})],["font-400",b({fontWeight:"400"})],["font-medium",b({fontWeight:"500"})],["font-500",b({fontWeight:"500"})],["font-semibold",b({fontWeight:"600"})],["font-600",b({fontWeight:"600"})],["font-bold",b({fontWeight:"bold"})],["font-700",b({fontWeight:"700"})],["font-extrabold",b({fontWeight:"800"})],["font-800",b({fontWeight:"800"})],["font-black",b({fontWeight:"900"})],["font-900",b({fontWeight:"900"})],["include-font-padding",b({includeFontPadding:!0})],["remove-font-padding",b({includeFontPadding:!1})],["max-w-none",b({maxWidth:"99999%"})],["text-left",b({textAlign:"left"})],["text-center",b({textAlign:"center"})],["text-right",b({textAlign:"right"})],["text-justify",b({textAlign:"justify"})],["text-auto",b({textAlign:"auto"})],["underline",b({textDecorationLine:"underline"})],["line-through",b({textDecorationLine:"line-through"})],["no-underline",b({textDecorationLine:"none"})],["uppercase",b({textTransform:"uppercase"})],["lowercase",b({textTransform:"lowercase"})],["capitalize",b({textTransform:"capitalize"})],["normal-case",b({textTransform:"none"})],["w-auto",b({width:"auto"})],["h-auto",b({height:"auto"})],["shadow-sm",b({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:0.025,elevation:1})],["shadow",b({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:0.075,elevation:2})],["shadow-md",b({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:0.125,elevation:3})],["shadow-lg",b({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:0.15,shadowRadius:8,elevation:8})],["shadow-xl",b({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:0.19,shadowRadius:20,elevation:12})],["shadow-2xl",b({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:0.25,shadowRadius:30,elevation:16})],["shadow-none",b({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],bJ=gU;function h8(J){return{kind:"dependent",complete(K){(!K.fontVariant||!Array.isArray(K.fontVariant))&&(K.fontVariant=[]),K.fontVariant.push(J)}}}var xU=class{constructor(J){this.ir=new Map(bJ),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...bJ,...J??[]])}getStyle(J){return this.styles.get(J)}setStyle(J,K){this.styles.set(J,K)}getIr(J){return this.ir.get(J)}setIr(J,K){this.ir.set(J,K)}getPrefixMatch(J){return this.prefixes.get(J)}setPrefixMatch(J,K){this.prefixes.set(J,K)}};function bU(J,K,Y={}){let X=K==null?void 0:K[J];if(!X)return Y8("fontSize",J,Y);if(typeof X=="string")return u8("fontSize",X);let Z={},[Q,W]=X,w=SU("fontSize",Q);if(w&&(Z=w),typeof W=="string")return b(V4("lineHeight",hJ(W,Z),Z));let{lineHeight:H,letterSpacing:z}=W;return H&&V4("lineHeight",hJ(H,Z),Z),z&&V4("letterSpacing",z,Z),b(Z)}function hJ(J,K){let Y=Y1(J);if(Y){let[X,Z]=Y;if((Z===q0.none||Z===q0.em)&&typeof K.fontSize=="number")return K.fontSize*X}return J}function hU(J,K){var Y;let X=(Y=K==null?void 0:K[J])!==null&&Y!==void 0?Y:J.startsWith("[")?J.slice(1,-1):J,Z=Y1(X);if(!Z)return null;let[Q,W]=Z;if(W===q0.none)return{kind:"dependent",complete(H){if(typeof H.fontSize!="number")return"relative line-height utilities require that font-size be set";H.lineHeight=H.fontSize*Q}};let w=p8(Q,W);return w!==null?b({lineHeight:w}):null}function mU(J,K,Y,X,Z){let Q="";if(X[0]==="[")Q=X.slice(1,-1);else{let z=Z==null?void 0:Z[X];if(z)Q=z;else{let U=p5(X);return U&&typeof U=="number"?mJ(U,q0.px,K,J):null}}if(Q==="auto")return hK(K,J,"auto");let W=Y1(Q);if(!W)return null;let[w,H]=W;return Y&&(w=-w),mJ(w,H,K,J)}function mJ(J,K,Y,X){let Z=p8(J,K);return Z===null?null:hK(Y,X,Z)}function hK(J,K,Y){switch(J){case"All":return{kind:"complete",style:{[`${K}Top`]:Y,[`${K}Right`]:Y,[`${K}Bottom`]:Y,[`${K}Left`]:Y}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${K}${J}`]:Y}};case"Vertical":return{kind:"complete",style:{[`${K}Top`]:Y,[`${K}Bottom`]:Y}};case"Horizontal":return{kind:"complete",style:{[`${K}Left`]:Y,[`${K}Right`]:Y}};default:return null}}function fU(J){if(!J)return{};let K=Object.entries(J).reduce((Z,[Q,W])=>{let w=[0,1/0,0],H=typeof W=="string"?{min:W}:W,z=H.min?gJ(H.min):0;z===null?C1(`invalid screen config value: ${Q}->min: ${H.min}`):w[0]=z;let U=H.max?gJ(H.max):1/0;return U===null?C1(`invalid screen config value: ${Q}->max: ${H.max}`):w[1]=U,Z[Q]=w,Z},{}),Y=Object.values(K);Y.sort((Z,Q)=>{let[W,w]=Z,[H,z]=Q;return w===1/0||z===1/0?W-H:w-z});let X=0;return Y.forEach((Z)=>Z[2]=X++),K}function dU(J,K){let Y=K==null?void 0:K[J];if(!Y)return null;if(typeof Y=="string")return b({fontFamily:Y});let X=Y[0];return X?b({fontFamily:X}):null}function f8(J,K,Y){if(!Y)return null;let X;K.includes("/")&&([K="",X]=K.split("/",2));let Z="";if(K.startsWith("[#")||K.startsWith("[rgb")?Z=K.slice(1,-1):Z=mK(K,Y),!Z)return null;if(X){let Q=Number(X);if(!Number.isNaN(Q))return Z=fJ(Z,Q/100),b({[k5[J].color]:Z})}return{kind:"dependent",complete(Q){let W=k5[J].opacity,w=Q[W];typeof w=="number"&&(Z=fJ(Z,w)),Q[k5[J].color]=Z}}}function D5(J,K){let Y=parseInt(K,10);if(Number.isNaN(Y))return null;let X=Y/100;return{kind:"complete",style:{[k5[J].opacity]:X}}}function fJ(J,K){return J.startsWith("#")?J=cU(J):J.startsWith("rgb(")&&(J=J.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),J.replace(/, ?\d*\.?(\d+)\)$/,`, ${K})`)}function lU(J){for(let K in J)K.startsWith("__opacity_")&&delete J[K]}var k5={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 cU(J){let K=J;J=J.replace(uU,(W,w,H,z)=>w+w+H+H+z+z);let Y=pU.exec(J);if(!Y)return C1(`invalid config hex color value: ${K}`),"rgba(0, 0, 0, 1)";let X=parseInt(Y[1],16),Z=parseInt(Y[2],16),Q=parseInt(Y[3],16);return`rgba(${X}, ${Z}, ${Q}, 1)`}function mK(J,K){let Y=K[J];if(yJ(Y))return Y;if(kJ(Y)&&yJ(Y.DEFAULT))return Y.DEFAULT;let[X="",...Z]=J.split("-");for(;X!==J;){let Q=K[X];if(kJ(Q))return mK(Z.join("-"),Q);if(Z.length===0)return"";X=`${X}-${Z.shift()}`}return""}var uU=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,pU=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function iU(J,K){let[Y,X]=bK(J);if(Y.match(/^(-?(\d)+)?$/))return oU(Y,X,K==null?void 0:K.borderWidth);if(Y=Y.replace(/^-/,""),["dashed","solid","dotted"].includes(Y))return b({borderStyle:Y});let Z="border";switch(X){case"Bottom":Z="borderBottom";break;case"Top":Z="borderTop";break;case"Left":Z="borderLeft";break;case"Right":Z="borderRight";break}let Q=f8(Z,Y,K==null?void 0:K.borderColor);if(Q)return Q;let W=`border${X==="All"?"":X}Width`;Y=Y.replace(/^-/,"");let w=Y.slice(1,-1),H=Y8(W,w);return typeof(H==null?void 0:H.style[W])!="number"?null:H}function oU(J,K,Y){if(!Y)return null;J=J.replace(/^-/,"");let X=Y[J===""?"DEFAULT":J];if(X===void 0)return null;let Z=`border${K==="All"?"":K}Width`;return u8(Z,X)}function rU(J,K){if(!K)return null;let[Y,X]=bK(J);Y=Y.replace(/^-/,""),Y===""&&(Y="DEFAULT");let Z=`border${X==="All"?"":X}Radius`,Q=K[Y];if(Q)return dJ(u8(Z,Q));let W=Y8(Z,Y);return typeof(W==null?void 0:W.style[Z])!="number"?null:dJ(W)}function dJ(J){if((J==null?void 0:J.kind)!=="complete")return J;let K=J.style.borderTopRadius;K!==void 0&&(J.style.borderTopLeftRadius=K,J.style.borderTopRightRadius=K,delete J.style.borderTopRadius);let Y=J.style.borderBottomRadius;Y!==void 0&&(J.style.borderBottomLeftRadius=Y,J.style.borderBottomRightRadius=Y,delete J.style.borderBottomRadius);let X=J.style.borderLeftRadius;X!==void 0&&(J.style.borderBottomLeftRadius=X,J.style.borderTopLeftRadius=X,delete J.style.borderLeftRadius);let Z=J.style.borderRightRadius;return Z!==void 0&&(J.style.borderBottomRightRadius=Z,J.style.borderTopRightRadius=Z,delete J.style.borderRightRadius),J}function m8(J,K,Y,X){let Z=null;J==="inset"&&(K=K.replace(/^(x|y)-/,(w,H)=>(Z=H==="x"?"x":"y","")));let Q=X==null?void 0:X[K];if(Q){let w=K8(Q,{isNegative:Y});if(w!==null)return lJ(J,Z,w)}let W=p5(K,{isNegative:Y});return W!==null?lJ(J,Z,W):null}function lJ(J,K,Y){if(J!=="inset")return b({[J]:Y});switch(K){case null:return b({top:Y,left:Y,right:Y,bottom:Y});case"y":return b({top:Y,bottom:Y});case"x":return b({left:Y,right:Y})}}function I5(J,K,Y){var X;K=K.replace(/^-/,"");let Z=K===""?"DEFAULT":K,Q=Number((X=Y==null?void 0:Y[Z])!==null&&X!==void 0?X:K);return Number.isNaN(Q)?null:b({[`flex${J}`]:Q})}function nU(J,K){var Y,X;if(J=(K==null?void 0:K[J])||J,["min-content","revert","unset"].includes(J))return null;if(J.match(/^\d+(\.\d+)?$/))return b({flexGrow:Number(J),flexBasis:"0%"});let Z=J.match(/^(\d+)\s+(\d+)$/);if(Z)return b({flexGrow:Number(Z[1]),flexShrink:Number(Z[2])});if(Z=J.match(/^(\d+)\s+([^ ]+)$/),Z){let Q=K8((Y=Z[2])!==null&&Y!==void 0?Y:"");return Q?b({flexGrow:Number(Z[1]),flexBasis:Q}):null}if(Z=J.match(/^(\d+)\s+(\d+)\s+(.+)$/),Z){let Q=K8((X=Z[3])!==null&&X!==void 0?X:"");return Q?b({flexGrow:Number(Z[1]),flexShrink:Number(Z[2]),flexBasis:Q}):null}return null}function cJ(J,K,Y={},X){let Z=X==null?void 0:X[K];return Z!==void 0?u8(J,Z,Y):Y8(J,K,Y)}function T5(J,K,Y={},X){let Z=K8(X==null?void 0:X[K],Y);return Z?b({[J]:Z}):(K==="screen"&&(K=J.includes("Width")?"100vw":"100vh"),Y8(J,K,Y))}function sU(J,K,Y){let X=Y==null?void 0:Y[J];if(X){let Z=Y1(X,{isNegative:K});if(!Z)return null;let[Q,W]=Z;if(W===q0.em)return aU(Q);if(W===q0.percent)return C1("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 w=p8(Q,W,{isNegative:K});return w!==null?b({letterSpacing:w}):null}return Y8("letterSpacing",J,{isNegative:K})}function aU(J){return{kind:"dependent",complete(K){let Y=K.fontSize;if(typeof Y!="number"||Number.isNaN(Y))return"tracking-X relative letter spacing classes require font-size to be set";K.letterSpacing=Math.round((J*Y+Number.EPSILON)*100)/100}}}function tU(J,K){let Y=K==null?void 0:K[J];if(Y){let Z=Y1(String(Y));if(Z)return b({opacity:Z[0]})}let X=Y1(J);return X?b({opacity:X[0]/100}):null}function eU(J){let K=parseInt(J,10);return Number.isNaN(K)?null:{kind:"complete",style:{shadowOpacity:K/100}}}function JV(J){if(J.includes("/")){let[Y="",X=""]=J.split("/",2),Z=$4(Y),Q=$4(X);return Z===null||Q===null?null:{kind:"complete",style:{shadowOffset:{width:Z,height:Q}}}}let K=$4(J);return K===null?null:{kind:"complete",style:{shadowOffset:{width:K,height:K}}}}function $4(J){let K=p5(J);return typeof K=="number"?K:null}var uJ=class{constructor(J,K={},Y,X,Z){var Q,W,w,H,z,U;this.config=K,this.cache=Y,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=X;let V=J.trim().split(":"),$=[];V.length===1?this.string=J:(this.string=(Q=V.pop())!==null&&Q!==void 0?Q:"",$=V),this.char=this.string[0];let B=fU((W=this.config.theme)===null||W===void 0?void 0:W.screens);for(let M of $)if(B[M]){let G=(w=B[M])===null||w===void 0?void 0:w[2];G!==void 0&&(this.order=((H=this.order)!==null&&H!==void 0?H:0)+G);let q=(z=X.windowDimensions)===null||z===void 0?void 0:z.width;if(q){let[O,j]=(U=B[M])!==null&&U!==void 0?U:[0,0];(q<=O||q>j)&&(this.isNull=!0)}else this.isNull=!0}else TU(M)?this.isNull=M!==Z:PU(M)?X.windowDimensions?(X.windowDimensions.width>X.windowDimensions.height?"landscape":"portrait")!==M?this.isNull=!0:this.incrementOrder():this.isNull=!0:M==="retina"?X.pixelDensity===2?this.incrementOrder():this.isNull=!0:M==="dark"?X.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(M)||(this.isNull=!0)}parse(){if(this.isNull)return{kind:"null"};let J=this.cache.getIr(this.rest);if(J)return J;this.parseIsNegative();let K=this.parseUtility();return K?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:K}:K:{kind:"null"}}parseUtility(){var J,K,Y,X,Z;let Q=this.config.theme,W=null;switch(this.char){case"m":case"p":{let w=this.peekSlice(1,3).match(/^(t|b|r|l|x|y)?-/);if(w){let H=this.char==="m"?"margin":"padding";this.advance(((K=(J=w[0])===null||J===void 0?void 0:J.length)!==null&&K!==void 0?K:0)+1);let z=xK(w[1]),U=mU(H,z,this.isNegative,this.rest,(Y=this.config.theme)===null||Y===void 0?void 0:Y[H]);if(U)return U}}}if(this.consumePeeked("h-")&&(W=cJ("height",this.rest,this.context,Q==null?void 0:Q.height),W)||this.consumePeeked("w-")&&(W=cJ("width",this.rest,this.context,Q==null?void 0:Q.width),W)||this.consumePeeked("min-w-")&&(W=T5("minWidth",this.rest,this.context,Q==null?void 0:Q.minWidth),W)||this.consumePeeked("min-h-")&&(W=T5("minHeight",this.rest,this.context,Q==null?void 0:Q.minHeight),W)||this.consumePeeked("max-w-")&&(W=T5("maxWidth",this.rest,this.context,Q==null?void 0:Q.maxWidth),W)||this.consumePeeked("max-h-")&&(W=T5("maxHeight",this.rest,this.context,Q==null?void 0:Q.maxHeight),W)||this.consumePeeked("leading-")&&(W=hU(this.rest,Q==null?void 0:Q.lineHeight),W)||this.consumePeeked("text-")&&(W=bU(this.rest,Q==null?void 0:Q.fontSize,this.context),W||(W=f8("text",this.rest,Q==null?void 0:Q.textColor),W)||this.consumePeeked("opacity-")&&(W=D5("text",this.rest),W))||this.consumePeeked("font-")&&(W=dU(this.rest,Q==null?void 0:Q.fontFamily),W)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&C1("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),W=u8("aspectRatio",this.rest,{fractions:!0}),W)||this.consumePeeked("tint-")&&(W=f8("tint",this.rest,Q==null?void 0:Q.colors),W)||this.consumePeeked("bg-")&&(W=f8("bg",this.rest,Q==null?void 0:Q.backgroundColor),W||this.consumePeeked("opacity-")&&(W=D5("bg",this.rest),W))||this.consumePeeked("border")&&(W=iU(this.rest,Q),W||this.consumePeeked("-opacity-")&&(W=D5("border",this.rest),W))||this.consumePeeked("rounded")&&(W=rU(this.rest,Q==null?void 0:Q.borderRadius),W)||this.consumePeeked("bottom-")&&(W=m8("bottom",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("top-")&&(W=m8("top",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("left-")&&(W=m8("left",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("right-")&&(W=m8("right",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("inset-")&&(W=m8("inset",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?W=I5("Grow",this.rest,Q==null?void 0:Q.flexGrow):this.consumePeeked("shrink")?W=I5("Shrink",this.rest,Q==null?void 0:Q.flexShrink):W=nU(this.rest,Q==null?void 0:Q.flex),W)||this.consumePeeked("grow")&&(W=I5("Grow",this.rest,Q==null?void 0:Q.flexGrow),W)||this.consumePeeked("shrink")&&(W=I5("Shrink",this.rest,Q==null?void 0:Q.flexShrink),W)||this.consumePeeked("shadow-color-opacity-")&&(W=D5("shadow",this.rest),W)||this.consumePeeked("shadow-opacity-")&&(W=eU(this.rest),W)||this.consumePeeked("shadow-offset-")&&(W=JV(this.rest),W)||this.consumePeeked("shadow-radius-")&&(W=Y8("shadowRadius",this.rest),W)||this.consumePeeked("shadow-")&&(W=f8("shadow",this.rest,Q==null?void 0:Q.colors),W))return W;if(this.consumePeeked("elevation-")){let w=parseInt(this.rest,10);if(!Number.isNaN(w))return b({elevation:w})}if(this.consumePeeked("opacity-")&&(W=tU(this.rest,Q==null?void 0:Q.opacity),W)||this.consumePeeked("tracking-")&&(W=sU(this.rest,this.isNegative,Q==null?void 0:Q.letterSpacing),W))return W;if(this.consumePeeked("z-")){let w=Number((Z=(X=Q==null?void 0:Q.zIndex)===null||X===void 0?void 0:X[this.rest])!==null&&Z!==void 0?Z:this.rest);if(!Number.isNaN(w))return b({zIndex:w})}return C1(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(J){var K;if(J[0]!=="m")return!1;let Y=J.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!Y)return!1;if(!(!((K=this.context.device)===null||K===void 0)&&K.windowDimensions))return this.isNull=!0,!0;let X=this.context.device.windowDimensions,[,Z="",Q="",W=""]=Y,w=Q==="w"?X.width:X.height,H=Y1(W,this.context);if(H===null)return this.isNull=!0,!0;let[z,U]=H;return U!=="px"&&(this.isNull=!0),(Z==="min"?w>=z:w<=z)?this.incrementOrder():this.isNull=!0,!0}advance(J=1){this.position+=J,this.char=this.string[this.position]}get rest(){return this.peekSlice(0,this.string.length)}peekSlice(J,K){return this.string.slice(this.position+J,this.position+K)}consumePeeked(J){return this.peekSlice(0,J.length)===J?(this.advance(J.length),!0):!1}parseIsNegative(){this.char==="-"&&(this.advance(),this.isNegative=!0,this.context.isNegative=!0)}incrementOrder(){var J;this.order=((J=this.order)!==null&&J!==void 0?J:0)+1}};function KV(J){let K=[],Y=null;return J.forEach((X)=>{if(typeof X=="string")K=[...K,...B4(X)];else if(Array.isArray(X))K=[...K,...X.flatMap(B4)];else if(typeof X=="object"&&X!==null)for(let[Z,Q]of Object.entries(X))typeof Q=="boolean"?K=[...K,...Q?B4(Z):[]]:Y?Y[Z]=Q:Y={[Z]:Q}}),[K.filter(Boolean).filter(YV),Y]}function B4(J){return J.trim().split(/\s+/)}function YV(J,K,Y){return Y.indexOf(J)===K}function XV(J){var K;return(K=J==null?void 0:J.reduce((Y,X)=>({...Y,...ZV(X.handler)}),{}))!==null&&K!==void 0?K:{}}function ZV(J){let K={};return J({addUtilities:(Y)=>{K=Y},...QV}),K}function E1(J){throw Error(`tailwindcss plugin function argument object prop "${J}" not implemented`)}var QV={addComponents:E1,addBase:E1,addVariant:E1,e:E1,prefix:E1,theme:E1,variants:E1,config:E1,corePlugins:E1,matchUtilities:E1,postcss:null};function WV(J,K){let Y=(0,DU.default)(HV(J)),X={},Z=XV(Y.plugins),Q={},W=Object.entries(Z).map(([M,G])=>typeof G=="string"?(Q[M]=G,[M,{kind:"null"}]):[M,b(G)]).filter(([,M])=>M.kind!=="null");function w(){return[X.windowDimensions?`w${X.windowDimensions.width}`:!1,X.windowDimensions?`h${X.windowDimensions.height}`:!1,X.fontScale?`fs${X.fontScale}`:!1,X.colorScheme==="dark"?"dark":!1,X.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let H=w(),z={};function U(){let M=z[H];if(M)return M;let G=new xU(W);return z[H]=G,G}function V(...M){let G=U(),q={},O=[],j=[],[E,R]=KV(M),_=E.join(" "),L=G.getStyle(_);if(L)return{...L,...R||{}};for(let T of E){let D=G.getIr(T);if(!D&&T in Q){let P=V(Q[T]);G.setIr(T,b(P)),q={...q,...P};continue}switch(D=new uJ(T,Y,G,X,K).parse(),D.kind){case"complete":q={...q,...D.style},G.setIr(T,D);break;case"dependent":O.push(D);break;case"ordered":j.push(D);break;case"null":G.setIr(T,D);break}}if(j.length>0){j.sort((T,D)=>T.order-D.order);for(let T of j)switch(T.styleIr.kind){case"complete":q={...q,...T.styleIr.style};break;case"dependent":O.push(T.styleIr);break}}if(O.length>0){for(let T of O){let D=T.complete(q);D&&C1(D)}lU(q)}return _!==""&&G.setStyle(_,q),R&&(q={...q,...R}),q}function $(M){let G=V(M.split(/\s+/g).map((q)=>q.replace(/^(bg|text|border)-/,"")).map((q)=>`bg-${q}`).join(" "));return typeof G.backgroundColor=="string"?G.backgroundColor:void 0}let B=(M,...G)=>{let q="";return M.forEach((O,j)=>{var E;q+=O+((E=G[j])!==null&&E!==void 0?E:"")}),V(q)};return B.style=V,B.color=$,B.prefixMatch=(...M)=>{let G=M.sort().join(":"),q=U(),O=q.getPrefixMatch(G);if(O!==void 0)return O;let j=new uJ(`${G}:flex`,Y,q,X,K).parse().kind!=="null";return q.setPrefixMatch(G,j),j},B.setWindowDimensions=(M)=>{X.windowDimensions=M,H=w()},B.setFontScale=(M)=>{X.fontScale=M,H=w()},B.setPixelDensity=(M)=>{X.pixelDensity=M,H=w()},B.setColorScheme=(M)=>{X.colorScheme=M,H=w()},B}function HV(J){return{...J,content:["_no_warnings_please"]}}var wV={handler:({addUtilities:J})=>{J({"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 zV(J){return WV({...J,plugins:[...(J==null?void 0:J.plugins)??[],wV]},"web")}var C5;function UV({width:J,height:K,config:Y}){return C5||(C5=zV(Y)),C5.setWindowDimensions({width:+J,height:+K}),C5}var A4=new WeakMap;async function fK(J,K){let Y=await f5();if(!Y||!Y.Node)throw Error("Satori is not initialized: expect `yoga` to be loaded, got "+Y);K.fonts=K.fonts||[];let X;A4.has(K.fonts)?X=A4.get(K.fonts):A4.set(K.fonts,X=new EU(K.fonts));let Z="width"in K?K.width:void 0,Q="height"in K?K.height:void 0,W=Y.Node.create();Z&&W.setWidth(Z),Q&&W.setHeight(Q),W.setFlexDirection(Y.FLEX_DIRECTION_ROW),W.setFlexWrap(Y.WRAP_WRAP),W.setAlignContent(Y.ALIGN_AUTO),W.setAlignItems(Y.ALIGN_FLEX_START),W.setJustifyContent(Y.JUSTIFY_FLEX_START),W.setOverflow(Y.OVERFLOW_HIDDEN);let w={...K.graphemeImages},H=new Set;c1.clear(),v5.clear(),await Gz(J);let z=L4(J,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:"normal",color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:Z,_viewportHeight:Q},parent:W,font:X,embedFont:K.embedFont,debug:K.debug,graphemeImages:w,canLoadAdditionalAssets:!!K.loadAdditionalAsset,onNodeDetected:K.onNodeDetected,getTwStyles:(M,G)=>{let q={...UV({width:Z,height:Q,config:K.tailwindConfig})([M])};return typeof q.lineHeight=="number"&&(q.lineHeight=q.lineHeight/(+q.fontSize||G.fontSize||16)),q.shadowColor&&q.boxShadow&&(q.boxShadow=q.boxShadow.replace(/rgba?\([^)]+\)/,q.shadowColor)),q}}),U=(await z.next()).value;if(K.loadAdditionalAsset&&U.length){let M=VV(U),G=[],q={};await Promise.all(Object.entries(M).flatMap(([O,j])=>j.map((E)=>{let R=`${O}_${E}`;return H.has(R)?null:(H.add(R),K.loadAdditionalAsset(O,E).then((_)=>{typeof _=="string"?q[E]=_:_&&(Array.isArray(_)?G.push(..._):G.push(_))}))}))),X.addFonts(G),Object.assign(w,q)}await z.next(),W.calculateLayout(Z,Q,Y.DIRECTION_LTR);let V=(await z.next([0,0])).value,$=W.getComputedWidth(),B=W.getComputedHeight();return W.freeRecursive(),RU({width:$,height:B,content:V})}function VV(J){let K={},Y={};for(let{word:X,locale:Z}of J){let Q=jU(X,Z).join("|");Y[Q]=Y[Q]||"",Y[Q]+=X}return Object.keys(Y).forEach((X)=>{K[X]=K[X]||[],X==="emoji"?K[X].push(...pJ(A1(Y[X],"grapheme"))):(K[X][0]=K[X][0]||"",K[X][0]+=pJ(A1(Y[X],"grapheme",X==="unknown"?void 0:X)).join(""))}),K}function pJ(J){return Array.from(new Set(J))}import BV from"sharp";function g4(J){return J.replace(/\([^)]*\)/g,"").replace(/\/\//g,"/")}function i5(J){let K={};for(let[Y,X]of Object.entries(J))if("run"in X){let Z=X;if("children"in Z){let Q=new Z.children,W=i5(Q.routes);for(let[w,{exec:H,middleware:z}]of Object.entries(W)){let U=Y==="/"?w:`${Y}${w}`,V=w==="/"&&Y!=="/"?Y:U,$=(B)=>Z.run.call(Z,B,Y);K[g4(V)]={exec:[$,...H],middleware:[...Z.middlewares,...z],viewPath:Z.viewPath}}}else{let Q=(W)=>Z.run.call(Z,W,Y);K[g4(Y)]={exec:[Q],middleware:Z.middlewares,viewPath:Z.viewPath}}}else{let Z=new X,Q=i5(Z.routes);for(let[W,{exec:w,middleware:H,viewPath:z}]of Object.entries(Q)){let U=Y==="/"?W:`${Y}${W}`,V=W==="/"&&Y!=="/"?Y:U;K[g4(V)]={exec:w,middleware:[...Z.middlewares,...H],viewPath:z}}}return Object.fromEntries(Object.entries(K).sort(([Y],[X])=>{let Z=Y.split("/").length+Y.split(":").length,Q=X.split("/").length+X.split(":").length;return Z-Q}))}import{renderToReadableStream as b4}from"react-dom/server.browser";import{createElement as i8,Fragment as AV}from"react";function $V(J){return J.replace(/\([^)]*\)/g,"").replace(/\/\//g,"/")}function o5(J){let K={};for(let[Y,X]of Object.entries(J))if("run"in X){let Z=X.viewPath;if("children"in X){K[Y]=[Z];let Q=new X.children,W=o5(Q.routes);for(let[w,H]of Object.entries(W)){let z=Y==="/"?w:`${Y}${w}`,U=w==="/"&&Y!=="/"?Y:z;K[U]=[Z,...H]}if(K[Y].length===1)delete K[Y]}else K[Y]=[Z]}else{let Z=new X,Q=o5(Z.routes);for(let[W,w]of Object.entries(Q)){let H=Y==="/"?W:`${Y}${W}`,z=W==="/"&&Y!=="/"?Y:H;K[z]=w}}return Object.fromEntries(Object.entries(K).map(([Y,X])=>[$V(Y),X]))}function r5(J){let K=[];for(let[Y,X]of Object.entries(J))if("run"in X){let Z=X.viewPath;if(Z==="__")continue;if(Z==="REDIRECT")continue;if(Z==="FILE")continue;if("children"in X){let Q=new X.children,W=r5(Q.routes);K.push([Z,W])}else K.push([Z,[]])}else{let Z=new X,Q=r5(Z.routes);K.push(...Q)}return K}function x4(J){let K=[];for(let[Y,X]of J)K.push(Y,...x4(X).flat());return Array.from(new Set(K))}class n5{static debug(J,K){t0.use().log("debug",J,K)}static info(J,K){t0.use().log("info",J,K)}static notice(J,K){t0.use().log("notice",J,K)}static warning(J,K){t0.use().log("warning",J,K)}static error(J,K){t0.use().log("error",J,K)}static critical(J,K){t0.use().log("critical",J,K)}static alert(J,K){t0.use().log("alert",J,K)}static emergency(J,K){t0.use().log("emergency",J,K)}}var GV=`
|
|
67
67
|
!function(){try{var d=document.documentElement,c=d.classList;
|
|
68
68
|
c.remove('light','dark');
|
|
69
69
|
var e=localStorage.getItem('theme');
|
|
@@ -74,6 +74,6 @@ if('system'===e||(!e&&'system'===defaultTheme)){
|
|
|
74
74
|
}else if(e){
|
|
75
75
|
c.add(e||'')
|
|
76
76
|
}}catch(e){}}()
|
|
77
|
-
`;async function qV(J,K,Y){let X=`${Y==="italic"?"italic,":""}wght@${Y==="italic"?"1,":""}${K}`,W=(await(await fetch(`https://fonts.googleapis.com/css2?family=${J}:${X}&display=swap`,{headers:{"User-Agent":"Mozilla/5.0 Firefox/1.0"}})).text()).match(/url\(([^)]+)\)/)?.[1];return await fetch(W).then((w)=>w.arrayBuffer())}class h4 extends l0{service;static _name="ViewRouterServiceContainer";flatViewRoutes={};routeManifest={};componentTree=[];flatComponentTree=[];root=null;constructor(J){super();this.service=J;let K={"/":J.rootRouter,"/auth":K6};this.flatViewRoutes=i5(K),this.routeManifest=o5(K),this.componentTree=r5(K),this.flatComponentTree=x4(this.componentTree),this.root=J.root}boot(){}async onRequestEnd(J){if(!J.cookies.has("session_id"))J.ctx().setCookie("session_id",Bun.randomUUIDv7(),{httpOnly:!0,secure:!0,sameSite:"Strict",expires:new Date(Date.now()+31536000000)});return await this.service.onRequestEnd(J)}async render(J){let{csrfTokenHMAC:K,currentPathName:Y,headers:X,i18n:Z,params:Q,pathname:W,prefetchedData:w,url:H,user:z,viewData:U,breadcrumbs:V,urlLocaleSegment:$,meta:B,isOgRequest:M}=J,G=W.replace(`/${$}`,""),q={kind:"view",data:{meta:B,pageData:{[G]:U},__csrf:K.toString("base64"),prefetchedData:w,i18n:Z,auth:{user:z},routeManifest:this.routeManifest,breadcrumbs:V,router:{urlLocaleSegment:$,pathname:Y,params:Q,currentPath:W,searchParams:H.search,is404:!Y?!0:!1},componentTree:[["404",[]],...this.componentTree]},head:{}},O=this.root,j=this.routeManifest[Y];return async(_)=>{let{bootstrapModules:R,loaders:E,getStyles:L,viewImportMap:T,cssManifest:D,ogMap:P}=_;if(M){let k=null,c=null;for(let u of j)if(typeof P[u]==="function")c=u,k=P[u];if(!k)return new Response("Not found",{status:404});let n=Object.values(q.data.pageData)[0];try{await b4(i8(k,n[c]),{onError:()=>{}})}catch(u){let{fonts:C,...S}=u.satoriOptions,I=await Promise.all(C.map((p)=>{return qV(p.name,p.weight,p.style).then((f)=>({...p,data:f}))})),d=new Headers(X);d.set("Content-Type","image/png");let m=await fK(u.jsx,{...S,fonts:I}),s=await BV(Buffer.from(m)).png({compressionLevel:0,effort:10}).toBuffer();return new Response(s,{headers:d})}return new Response("data")}q.data.cssManifest=D;try{let k=await b4(i8(AV,{children:[...await L(j),i8("script",{key:"theme-script",dangerouslySetInnerHTML:{__html:GV}}),i8(O,{data:q.data,viewImportMap:T,key:"root"})]}),{bootstrapScriptContent:`window.__GEMI_DATA__ = ${JSON.stringify(q.data)}; window.loaders=${E}`,bootstrapModules:R});return new Response(k,{status:!Y?404:200,headers:X})}catch(k){let c=await b4(i8("div"),{bootstrapScriptContent:`window.error= ${JSON.stringify(k.message)}; window.stack_trace=${JSON.stringify(k.stack)};window.__GEMI_DATA__ = ${JSON.stringify(q.data)}; window.loaders=${E}`,bootstrapModules:R});return new Response(c,{status:!Y?404:200,headers:X})}}}async handleViewRequest(J){let K=new URL(J.url),Y=K.pathname.endsWith(".json"),X=K.pathname.endsWith(".og"),Z=K.pathname.replace(".json","").replace(".og",""),[,Q,...W]=Z.split("/"),w=`/${W.join("/")}`,H=null,z=null,U=C0.use(),V=this.routeManifest[w],$=V[V.length-1]==="FILE";if(!U.service.supportedLocales.includes(Q))w=Z;else H=Q,z=Q;if(U.isEnabled&&!X){let j=C0.use().detectLocale(new W0(J,{},"view",w));if(z===null&&j!==U.service.defaultLocale){let _=C0.use().detectLocale(new W0(J,{},"view",w)),R=K.pathname==="/"?"":K.pathname;return new Response("",{status:302,headers:{"Cache-Control":"private, no-cache, no-store, max-age=0, must-revalidate",Location:`/${_}${R}`}})}}w=w.replace("//","/");let B=[],M=[],G=null,q={};try{for(let[j,_]of Object.entries(this.flatViewRoutes)){let R=new dK({pathname:j});if(R.test({pathname:w})){G=j,q=R.exec({pathname:w})?.pathname.groups,B=_.exec,M=_.middleware;break}}}catch(j){throw j}let O=new W0(J,q,"view",G);return await E0.run(O,async()=>{let j=null,_=E0.getStore();if(z){let E=z.replaceAll("/","");w8.setLocale(E)}else w8.setLocale();let R=_.req;try{await j8.use().runMiddleware(M);let E=C0.use(),L=E.isEnabled,T={};if(L){let m=null;if(z)m=z.replaceAll("/",""),_.setLocale(m);else m=E.detectLocale(new W0(J,R.params)),_.setLocale(m);let s=E.getPageTranslations(m,R.routePath);T={supportedLocales:E.service.supportedLocales,currentLocale:m,dictionary:{[m]:s},defaultLocale:E.service.defaultLocale}}let D=await Promise.all([...B.map((m)=>m(R)),...Array.from(_.prefetchPromiseQueue).map((m)=>m())]),P=_.cookies,k=_.headers,c=_.prefetchedResources;j={data:D,cookies:P,headers:k,user:_.user,prefetchedData:Object.fromEntries(c.entries()),currentPathName:R.routePath,params:R.params,urlLocaleSegment:H,meta:_.renderMeta()};let{params:n,currentPathName:u,user:C}=j,S={},I={};for(let m of D){let[s,p]=Object.entries(m)?.[0]??[];if(!s||!p)continue;I[`${s}:${u}`]=p.breadcrumb,S[s]=p}if($){let m=S.FILE;return k.set("Content-Type",m.type||"application/octet-stream"),new Response(m.stream(),{headers:k})}if(Y)return k.set("Content-Type","application/json"),P.forEach((m)=>k.append("Set-Cookie",m.toString())),await this.service.onRequestEnd(R),new Response(JSON.stringify({meta:j.meta,data:{[w]:S},breadcrumbs:I,prefetchedData:j.prefetchedData,i18n:T,is404:!u}),{headers:k});k.set("Content-Type","text/html");for(let m of P)k.append("Set-Cookie",m.toString());let d=Bun.CSRF.generate(process.env.SECRET);k.append("Set-Cookie",`csrf_token=${d}; HttpOnly; Secure; SameSite=Strict; Expires=${new Date(Date.now()+86400000).toUTCString()}`);try{await this.onRequestEnd(R)}catch(m){n5.error(m?.message??'Error in "onRequestEnd" event handler',{err:JSON.stringify(m)})}return await this.render({csrfTokenHMAC:Buffer.from(""),currentPathName:u,headers:k,i18n:T,params:n,pathname:K.pathname,prefetchedData:j.prefetchedData,url:K,user:C,viewData:S,breadcrumbs:I,urlLocaleSegment:H,meta:j.meta,isOgRequest:X})}catch(E){if(E.kind===o8)if(Y){let{status:L=400,data:T,directive:D,headers:P}=E.payload.api;return new Response(JSON.stringify({data:T,directive:D}),{headers:P,status:L})}else{let{status:L=400,error:T}=E.payload.view;return new Response(T?.message,{...E.payload.view,status:L})}throw this.service.onRequestFail(R,E),E}})}}class lK extends q1{routes={"/api-routes":this.get(()=>{let J=s5.use().flatRoutes,K=[];for(let[Y,X]of Object.entries(J))for(let[Z,Q]of Object.entries(X)){let{exec:W,middleware:w}=Q;K.push({path:Y,method:Z,middleware:w})}return K}),"/view-routes":this.get(()=>{let J=h4.use().flatViewRoutes,K=[];for(let[Y,{middleware:X,viewPath:Z}]of Object.entries(J))K.push({path:Y,method:"GET",viewPath:Z,middleware:X});return K})}}class s5 extends l0{service;static _name="ApiRouterServiceContainer";flatRoutes={};constructor(J){super();this.service=J;this.flatRoutes=w6({"/":this.service.rootRouter.bind(this.service),"/auth":Y6,"/__gemi__/services/i18n":X6,"/__gemi__/services/logs":H6,"/__gemi__/services/image":Z6,"/__gemi__/debug":lK})}getRouteHandlerAndParams(J){let Y=new URL(J.url).pathname.replace("/api",""),X={},Z;for(let[Q]of Object.entries(this.flatRoutes))try{let W=new URLPattern({pathname:Q});if(W.test({pathname:Y})){Z=Q,X=W.exec({pathname:Y})?.pathname.groups;break}}catch(W){console.error(W)}return{params:X,path:Z}}async runRouteMiddleware(J,K){let X=this.flatRoutes[J][K.rawRequest.method].middleware;try{await j8.use().runMiddleware(X)}catch(Z){if(Z.kind===o8){if(K.rawRequest.url.includes("/api")){let{status:Q=400,data:W,headers:w}=Z.payload.api;return new Response(JSON.stringify(W),{status:Q,headers:{"Content-Type":"application/json",...w}})}}else throw this.service.onRequestFail(K,Z),console.error(Z),Z}}async getRouteData(J){let K=this.flatRoutes[J],Y=E0.getStore(),X=K[Y.req.rawRequest.method].exec??(()=>Promise.resolve({})),Z={};try{Z=await X()}catch(Q){if(Q.kind===o8){let{status:W=400,data:w,headers:H}=Q.payload.api;return new Response(JSON.stringify(w),{status:W,headers:{"Content-Type":"application/json",...H}})}throw this.service.onRequestFail(Y.req,Q),console.error(Q),Q}return Z}async handleApiRequest(J){let{params:K,path:Y}=this.getRouteHandlerAndParams(J),X=this.flatRoutes[Y];if(!X||!X[J.method])return new Response(JSON.stringify({error:{message:"Not found"}}),{status:404});let Z=new W0(J,K,"api",Y);if(!J.url.includes("/__gemi__"))this.service.onRequestStart(Z);return await E0.run(Z,async()=>{let Q=E0.getStore(),W=C0.use();if(W.isEnabled){let U=W.detectLocale(Z);Q.setLocale(U)}Q.setRequest(Z);let w=await this.runRouteMiddleware(Y,Z);if(w instanceof Response)return w;let H=await this.getRouteData(Y);if(H instanceof Response)return H;let z=Q.headers;if(z.append("Content-Type","application/json"),Q.cookies.forEach((U)=>z.append("Set-Cookie",U.toString())),Q.destroy(),!J.url.includes("/__gemi__"))this.service.onRequestEnd(Z);return new Response(JSON.stringify(H),{headers:z})})}}class a5{static prepare(J,...K){let Y={params:{},search:{}},[X={}]=K,{search:Z,params:Q}={...Y,...X},W=E0.getStore();if(W.req.kind==="api")throw Error("Query.prefetch() cannot be called from an API request");let w=W.req.rawRequest,H=new URL(w.url),z=new URLSearchParams(c4(Z));z.delete("json"),z.sort();let U=[`${p1(J,Q)}`,z.toString()].filter((q)=>q.length>0).join("?"),V=`${H.origin}/${U}`,$=new Request(V,{headers:w.headers}),B=new W0($,Q),M=(q)=>{W.prefetchedResources.set(p1(J,Q),{[z.toString()]:q})},G=()=>{return E0.run(B,async()=>{let q=await s5.use().getRouteData(J);return M(q),q})};return{instant:G,prefetch:()=>{W.prefetchPromiseQueue.add(G)}}}static instant(J,...K){return a5.prepare(J,...K).instant()}static prefetch(J,...K){return a5.prepare(J,...K).prefetch()}}class cK{static channel(J,K){let Y=H8.use().service.channels[J];if(!Y)return console.error(`Channel ${J} not found`),{publish:()=>{}};let X=new Y;return{publish:(Z,Q=!1)=>{let W=p1(J,K);H8.use().publish(W,JSON.stringify({topic:W,data:X.publish(Z)}),Q)}}}}class uK{static absolute(J,...K){return`${process.env.HOST_NAME}${p1(String(J),K[0]??{})}`}static relative(J,...K){return p1(String(J),K[0]??{})}}class pK{name="Meta";static description(J){E0.getStore().metadata.description(J)}static title(J){E0.getStore().metadata.title(J)}static openGraph(J){E0.getStore().metadata.openGraph(J)}}export{uK as Url,MV as Redirect,a5 as Query,pK as Meta,n5 as Log,w8 as I18n,l4 as FileStorage,cK as Broadcast,k1 as Auth};export{H8 as g,w8 as h,N8 as i,t0 as j,nK as k,a4 as l,j8 as m,h4 as n,s5 as o};
|
|
77
|
+
`;async function qV(J,K,Y){let X=`${Y==="italic"?"italic,":""}wght@${Y==="italic"?"1,":""}${K}`,W=(await(await fetch(`https://fonts.googleapis.com/css2?family=${J}:${X}&display=swap`,{headers:{"User-Agent":"Mozilla/5.0 Firefox/1.0"}})).text()).match(/url\(([^)]+)\)/)?.[1];return await fetch(W).then((w)=>w.arrayBuffer())}class h4 extends l0{service;static _name="ViewRouterServiceContainer";flatViewRoutes={};routeManifest={};componentTree=[];flatComponentTree=[];root=null;constructor(J){super();this.service=J;let K={"/":J.rootRouter,"/auth":K6};this.flatViewRoutes=i5(K),this.routeManifest=o5(K),this.componentTree=r5(K),this.flatComponentTree=x4(this.componentTree),this.root=J.root}boot(){}async onRequestEnd(J){if(!J.cookies.has("session_id"))J.ctx().setCookie("session_id",Bun.randomUUIDv7(),{httpOnly:!0,secure:!0,sameSite:"Strict",expires:new Date(Date.now()+31536000000)});return await this.service.onRequestEnd(J)}async render(J){let{csrfTokenHMAC:K,currentPathName:Y,headers:X,i18n:Z,params:Q,pathname:W,prefetchedData:w,url:H,user:z,viewData:U,breadcrumbs:V,urlLocaleSegment:$,meta:B,isOgRequest:M}=J,G=W.replace(`/${$}`,""),q={kind:"view",data:{meta:B,pageData:{[G]:U},__csrf:K.toString("base64"),prefetchedData:w,i18n:Z,auth:{user:z},routeManifest:this.routeManifest,breadcrumbs:V,router:{urlLocaleSegment:$,pathname:Y,params:Q,currentPath:W,searchParams:H.search,is404:!Y?!0:!1},componentTree:[["404",[]],...this.componentTree]},head:{}},O=this.root,j=this.routeManifest[Y];return async(E)=>{let{bootstrapModules:R,loaders:_,getStyles:L,viewImportMap:T,cssManifest:D,ogMap:P}=E;if(M){let g=null,u=null;for(let i of j)if(typeof P[i]==="function")u=i,g=P[i];if(!g)return new Response("Not found",{status:404});let n=Object.values(q.data.pageData)[0];try{await b4(i8(g,n[u]),{onError:()=>{}})}catch(i){let{fonts:C,...S}=i.satoriOptions,I=await Promise.all(C.map((p)=>{return qV(p.name,p.weight,p.style).then((m)=>({...p,data:m}))})),f=new Headers(X);f.set("Content-Type","image/png");let l=await fK(i.jsx,{...S,fonts:I}),c=await BV(Buffer.from(l)).png({compressionLevel:0,effort:10}).toBuffer();return new Response(c,{headers:f})}return new Response("data")}q.data.cssManifest=D;try{let g=await b4(i8(AV,{children:[...await L(j),i8("script",{key:"theme-script",dangerouslySetInnerHTML:{__html:GV}}),i8(O,{data:q.data,viewImportMap:T,key:"root"})]}),{bootstrapScriptContent:`window.__GEMI_DATA__ = ${JSON.stringify(q.data)}; window.loaders=${_}`,bootstrapModules:R});return new Response(g,{status:!Y?404:200,headers:X})}catch(g){let u=await b4(i8("div"),{bootstrapScriptContent:`window.error= ${JSON.stringify(g.message)}; window.stack_trace=${JSON.stringify(g.stack)};window.__GEMI_DATA__ = ${JSON.stringify(q.data)}; window.loaders=${_}`,bootstrapModules:R});return new Response(u,{status:!Y?404:200,headers:X})}}}async handleViewRequest(J){let K=new URL(J.url),Y=K.pathname.endsWith(".json"),X=K.pathname.endsWith(".og"),Z=K.pathname.replace(".json","").replace(".og",""),[,Q,...W]=Z.split("/"),w=`/${W.join("/")}`,H=null,z=null,U=C0.use();if(!U.service.supportedLocales.includes(Q))w=Z;else H=Q,z=Q;if(U.isEnabled&&!X){let O=C0.use().detectLocale(new W0(J,{},"view",w));if(z===null&&O!==U.service.defaultLocale){let j=C0.use().detectLocale(new W0(J,{},"view",w)),E=K.pathname==="/"?"":K.pathname;return new Response("",{status:302,headers:{"Cache-Control":"private, no-cache, no-store, max-age=0, must-revalidate",Location:`/${j}${E}`}})}}w=w.replace("//","/");let $=[],B=[],M=null,G={};try{for(let[O,j]of Object.entries(this.flatViewRoutes)){let E=new dK({pathname:O});if(E.test({pathname:w})){M=O,G=E.exec({pathname:w})?.pathname.groups,$=j.exec,B=j.middleware;break}}}catch(O){throw O}let q=new W0(J,G,"view",M);return await E0.run(q,async()=>{let O=null,j=E0.getStore();if(z){let R=z.replaceAll("/","");w8.setLocale(R)}else w8.setLocale();let E=j.req;try{await j8.use().runMiddleware(B);let R=C0.use(),_=R.isEnabled,L={};if(_){let c=null;if(z)c=z.replaceAll("/",""),j.setLocale(c);else c=R.detectLocale(new W0(J,E.params)),j.setLocale(c);let p=R.getPageTranslations(c,E.routePath);L={supportedLocales:R.service.supportedLocales,currentLocale:c,dictionary:{[c]:p},defaultLocale:R.service.defaultLocale}}let T=await Promise.all([...$.map((c)=>c(E)),...Array.from(j.prefetchPromiseQueue).map((c)=>c())]),D=j.cookies,P=j.headers,g=j.prefetchedResources;O={data:T,cookies:D,headers:P,user:j.user,prefetchedData:Object.fromEntries(g.entries()),currentPathName:E.routePath,params:E.params,urlLocaleSegment:H,meta:j.renderMeta()};let{params:u,currentPathName:n,user:i}=O,C={},S={};for(let c of T){let[p,m]=Object.entries(c)?.[0]??[];if(!p||!m)continue;S[`${p}:${n}`]=m.breadcrumb,C[p]=m}let I=this.routeManifest[n];if(I?.[I?.length??-1]==="FILE"){let c=C.FILE;return P.set("Content-Type",c.type||"application/octet-stream"),new Response(c.stream(),{headers:P})}if(Y)return P.set("Content-Type","application/json"),D.forEach((c)=>P.append("Set-Cookie",c.toString())),await this.service.onRequestEnd(E),new Response(JSON.stringify({meta:O.meta,data:{[w]:C},breadcrumbs:S,prefetchedData:O.prefetchedData,i18n:L,is404:!n}),{headers:P});P.set("Content-Type","text/html");for(let c of D)P.append("Set-Cookie",c.toString());let l=Bun.CSRF.generate(process.env.SECRET);P.append("Set-Cookie",`csrf_token=${l}; HttpOnly; Secure; SameSite=Strict; Expires=${new Date(Date.now()+86400000).toUTCString()}`);try{await this.onRequestEnd(E)}catch(c){n5.error(c?.message??'Error in "onRequestEnd" event handler',{err:JSON.stringify(c)})}return await this.render({csrfTokenHMAC:Buffer.from(""),currentPathName:n,headers:P,i18n:L,params:u,pathname:K.pathname,prefetchedData:O.prefetchedData,url:K,user:i,viewData:C,breadcrumbs:S,urlLocaleSegment:H,meta:O.meta,isOgRequest:X})}catch(R){if(R.kind===o8)if(Y){let{status:_=400,data:L,directive:T,headers:D}=R.payload.api;return new Response(JSON.stringify({data:L,directive:T}),{headers:D,status:_})}else{let{status:_=400,error:L}=R.payload.view;return new Response(L?.message,{...R.payload.view,status:_})}throw this.service.onRequestFail(E,R),R}})}}class lK extends q1{routes={"/api-routes":this.get(()=>{let J=s5.use().flatRoutes,K=[];for(let[Y,X]of Object.entries(J))for(let[Z,Q]of Object.entries(X)){let{exec:W,middleware:w}=Q;K.push({path:Y,method:Z,middleware:w})}return K}),"/view-routes":this.get(()=>{let J=h4.use().flatViewRoutes,K=[];for(let[Y,{middleware:X,viewPath:Z}]of Object.entries(J))K.push({path:Y,method:"GET",viewPath:Z,middleware:X});return K})}}class s5 extends l0{service;static _name="ApiRouterServiceContainer";flatRoutes={};constructor(J){super();this.service=J;this.flatRoutes=w6({"/":this.service.rootRouter.bind(this.service),"/auth":Y6,"/__gemi__/services/i18n":X6,"/__gemi__/services/logs":H6,"/__gemi__/services/image":Z6,"/__gemi__/debug":lK})}getRouteHandlerAndParams(J){let Y=new URL(J.url).pathname.replace("/api",""),X={},Z;for(let[Q]of Object.entries(this.flatRoutes))try{let W=new URLPattern({pathname:Q});if(W.test({pathname:Y})){Z=Q,X=W.exec({pathname:Y})?.pathname.groups;break}}catch(W){console.error(W)}return{params:X,path:Z}}async runRouteMiddleware(J,K){let X=this.flatRoutes[J][K.rawRequest.method].middleware;try{await j8.use().runMiddleware(X)}catch(Z){if(Z.kind===o8){if(K.rawRequest.url.includes("/api")){let{status:Q=400,data:W,headers:w}=Z.payload.api;return new Response(JSON.stringify(W),{status:Q,headers:{"Content-Type":"application/json",...w}})}}else throw this.service.onRequestFail(K,Z),console.error(Z),Z}}async getRouteData(J){let K=this.flatRoutes[J],Y=E0.getStore(),X=K[Y.req.rawRequest.method].exec??(()=>Promise.resolve({})),Z={};try{Z=await X()}catch(Q){if(Q.kind===o8){let{status:W=400,data:w,headers:H}=Q.payload.api;return new Response(JSON.stringify(w),{status:W,headers:{"Content-Type":"application/json",...H}})}throw this.service.onRequestFail(Y.req,Q),console.error(Q),Q}return Z}async handleApiRequest(J){let{params:K,path:Y}=this.getRouteHandlerAndParams(J),X=this.flatRoutes[Y];if(!X||!X[J.method])return new Response(JSON.stringify({error:{message:"Not found"}}),{status:404});let Z=new W0(J,K,"api",Y);if(!J.url.includes("/__gemi__"))this.service.onRequestStart(Z);return await E0.run(Z,async()=>{let Q=E0.getStore(),W=C0.use();if(W.isEnabled){let U=W.detectLocale(Z);Q.setLocale(U)}Q.setRequest(Z);let w=await this.runRouteMiddleware(Y,Z);if(w instanceof Response)return w;let H=await this.getRouteData(Y);if(H instanceof Response)return H;let z=Q.headers;if(z.append("Content-Type","application/json"),Q.cookies.forEach((U)=>z.append("Set-Cookie",U.toString())),Q.destroy(),!J.url.includes("/__gemi__"))this.service.onRequestEnd(Z);return new Response(JSON.stringify(H),{headers:z})})}}class a5{static prepare(J,...K){let Y={params:{},search:{}},[X={}]=K,{search:Z,params:Q}={...Y,...X},W=E0.getStore();if(W.req.kind==="api")throw Error("Query.prefetch() cannot be called from an API request");let w=W.req.rawRequest,H=new URL(w.url),z=new URLSearchParams(c4(Z));z.delete("json"),z.sort();let U=[`${p1(J,Q)}`,z.toString()].filter((q)=>q.length>0).join("?"),V=`${H.origin}/${U}`,$=new Request(V,{headers:w.headers}),B=new W0($,Q),M=(q)=>{W.prefetchedResources.set(p1(J,Q),{[z.toString()]:q})},G=()=>{return E0.run(B,async()=>{let q=await s5.use().getRouteData(J);return M(q),q})};return{instant:G,prefetch:()=>{W.prefetchPromiseQueue.add(G)}}}static instant(J,...K){return a5.prepare(J,...K).instant()}static prefetch(J,...K){return a5.prepare(J,...K).prefetch()}}class cK{static channel(J,K){let Y=H8.use().service.channels[J];if(!Y)return console.error(`Channel ${J} not found`),{publish:()=>{}};let X=new Y;return{publish:(Z,Q=!1)=>{let W=p1(J,K);H8.use().publish(W,JSON.stringify({topic:W,data:X.publish(Z)}),Q)}}}}class uK{static absolute(J,...K){return`${process.env.HOST_NAME}${p1(String(J),K[0]??{})}`}static relative(J,...K){return p1(String(J),K[0]??{})}}class pK{name="Meta";static description(J){E0.getStore().metadata.description(J)}static title(J){E0.getStore().metadata.title(J)}static openGraph(J){E0.getStore().metadata.openGraph(J)}}export{uK as Url,MV as Redirect,a5 as Query,pK as Meta,n5 as Log,w8 as I18n,l4 as FileStorage,cK as Broadcast,k1 as Auth};export{H8 as g,w8 as h,N8 as i,t0 as j,nK as k,a4 as l,j8 as m,h4 as n,s5 as o};
|
|
78
78
|
|
|
79
|
-
//# debugId=
|
|
79
|
+
//# debugId=1E99CE02A1625E6F64756E2164756E21
|