gemi 0.52.0 → 0.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-a0sy9f9x.js → chunk-07jtzbf0.js} +1 -1
- package/dist/{chunk-jdfe4dmh.js → chunk-1pqfmw5h.js} +2 -2
- package/dist/{chunk-jdfe4dmh.js.map → chunk-1pqfmw5h.js.map} +1 -1
- package/dist/chunk-3d3nmr5g.js +4 -0
- package/dist/{chunk-qj4mmner.js.map → chunk-3d3nmr5g.js.map} +2 -2
- package/dist/{chunk-et0j6jx8.js → chunk-7s1g3v1y.js} +3 -3
- package/dist/{chunk-et0j6jx8.js.map → chunk-7s1g3v1y.js.map} +1 -1
- package/dist/chunk-92793zh4.js +5 -0
- package/dist/{chunk-0tbwn6er.js.map → chunk-92793zh4.js.map} +3 -4
- package/dist/chunk-9279y4af.js +5 -0
- package/dist/{chunk-f29vd5mc.js.map → chunk-9279y4af.js.map} +2 -2
- package/dist/chunk-bq4w14a6.js +5 -0
- package/dist/chunk-bq4w14a6.js.map +10 -0
- package/dist/{chunk-4t6a82fh.js → chunk-cg53h5ht.js} +2 -2
- package/dist/{chunk-4t6a82fh.js.map → chunk-cg53h5ht.js.map} +1 -1
- package/dist/{chunk-km6x37ws.js → chunk-ear03axe.js} +24 -24
- package/dist/{chunk-km6x37ws.js.map → chunk-ear03axe.js.map} +3 -5
- package/dist/{chunk-38ma6gg3.js → chunk-fbp5vapa.js} +2 -2
- package/dist/{chunk-38ma6gg3.js.map → chunk-fbp5vapa.js.map} +2 -2
- package/dist/chunk-ffre1z8s.js +6 -0
- package/dist/{chunk-hbycemy5.js.map → chunk-ffre1z8s.js.map} +2 -2
- package/dist/{chunk-53e48ce8.js → chunk-qjnv2rkh.js} +2 -2
- package/dist/{chunk-53e48ce8.js.map → chunk-qjnv2rkh.js.map} +1 -1
- package/dist/{chunk-1ce7veh9.js → chunk-tkv6cw94.js} +3 -3
- package/dist/{chunk-1ce7veh9.js.map → chunk-tkv6cw94.js.map} +1 -1
- package/dist/chunk-y4djde42.js +5 -0
- package/dist/chunk-y4djde42.js.map +11 -0
- package/dist/chunks/ThemeProvider-CTX9LOFC.js +2718 -0
- package/dist/chunks/ThemeProvider-CTX9LOFC.js.map +1 -0
- package/dist/client/Mutation.d.ts +1 -1
- package/dist/client/Mutation.d.ts.map +1 -1
- package/dist/client/ThemeProvider.d.ts +7 -0
- package/dist/client/ThemeProvider.d.ts.map +1 -1
- package/dist/client/index.js +107 -2673
- package/dist/client/index.js.map +1 -1
- package/dist/client/useIsNavigationPending.d.ts.map +1 -1
- package/dist/client/useMutate.d.ts.map +1 -1
- package/dist/database/index.js +2 -2
- package/dist/database/index.js.map +1 -1
- package/dist/facades/index.js +2 -2
- package/dist/facades/index.js.map +1 -1
- package/dist/http/index.js +2 -2
- package/dist/http/index.js.map +1 -1
- package/dist/i18n/Dictionary.d.ts.map +1 -1
- package/dist/i18n/index.js +2 -2
- package/dist/i18n/index.js.map +3 -3
- package/dist/kernel/index.js +2 -2
- package/dist/kernel/index.js.map +2 -2
- package/dist/orm/index.js +2 -2
- package/dist/orm/index.js.map +2 -2
- package/dist/server/index.js +1 -1
- package/dist/services/index.js +2 -2
- package/dist/services/index.js.map +2 -2
- package/dist/testing/Page.d.ts +166 -0
- package/dist/testing/Page.d.ts.map +1 -0
- package/dist/testing/index.d.ts +3 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +352 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/utils/Subject.d.ts.map +1 -1
- package/dist/utils/variantKey.d.ts +19 -0
- package/dist/utils/variantKey.d.ts.map +1 -0
- package/package.json +2 -1
- package/dist/chunk-0tbwn6er.js +0 -5
- package/dist/chunk-f29vd5mc.js +0 -5
- package/dist/chunk-hbycemy5.js +0 -6
- package/dist/chunk-qj4mmner.js +0 -4
- /package/dist/{chunk-a0sy9f9x.js.map → chunk-07jtzbf0.js.map} +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Dc as TK,pc as _K,qc as k4,rc as IK,sc as DK,yc as RK}from"./chunk-et0j6jx8.js";import{Oc as y4,jd as CK}from"./chunk-1ce7veh9.js";import{Ad as B8,Bd as m4,Cd as G5,Dd as b4,Ed as M1,Fd as i0,Hd as qK,Id as F6,Nd as k5,Rd as h0,Vd as EK,kd as l4,md as a4,od as f4,td as $8,vd as Y1,wd as B0,zd as p4}from"./chunk-qj4mmner.js";import{ae as U0}from"./chunk-0tbwn6er.js";import{Ie as p0}from"./chunk-88pq4gmf.js";import{Je as T5,Me as X0}from"./chunk-mt2755rs.js";import{Pe as z1,Qe as b0,Te as nJ}from"./chunk-0h3jr9d9.js";var U7=b0((WB,z7)=>{var h6=0,Z7=-3;function h5(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function iK(J,Y){this.source=J,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=Y,this.destLen=0,this.ltree=new h5,this.dtree=new h5}var X7=new h5,Q7=new h5,x6=new Uint8Array(30),b6=new Uint16Array(30),W7=new Uint8Array(30),$7=new Uint16Array(30),nK=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),J7=new h5,N1=new Uint8Array(320);function w7(J,Y,K,Z){var X,Q;for(X=0;X<K;++X)J[X]=0;for(X=0;X<30-K;++X)J[X+K]=X/K|0;for(Q=Z,X=0;X<30;++X)Y[X]=Q,Q+=1<<J[X]}function oK(J,Y){var K;for(K=0;K<7;++K)J.table[K]=0;J.table[7]=24,J.table[8]=152,J.table[9]=112;for(K=0;K<24;++K)J.trans[K]=256+K;for(K=0;K<144;++K)J.trans[24+K]=K;for(K=0;K<8;++K)J.trans[168+K]=280+K;for(K=0;K<112;++K)J.trans[176+K]=144+K;for(K=0;K<5;++K)Y.table[K]=0;Y.table[5]=32;for(K=0;K<32;++K)Y.trans[K]=K}var Y7=new Uint16Array(16);function y6(J,Y,K,Z){var X,Q;for(X=0;X<16;++X)J.table[X]=0;for(X=0;X<Z;++X)J.table[Y[K+X]]++;J.table[0]=0;for(Q=0,X=0;X<16;++X)Y7[X]=Q,Q+=J.table[X];for(X=0;X<Z;++X)if(Y[K+X])J.trans[Y7[Y[K+X]]++]=X}function rK(J){if(!J.bitcount--)J.tag=J.source[J.sourceIndex++],J.bitcount=7;var Y=J.tag&1;return J.tag>>>=1,Y}function j1(J,Y,K){if(!Y)return K;while(J.bitcount<24)J.tag|=J.source[J.sourceIndex++]<<J.bitcount,J.bitcount+=8;var Z=J.tag&65535>>>16-Y;return J.tag>>>=Y,J.bitcount-=Y,Z+K}function g6(J,Y){while(J.bitcount<24)J.tag|=J.source[J.sourceIndex++]<<J.bitcount,J.bitcount+=8;var K=0,Z=0,X=0,Q=J.tag;do Z=2*Z+(Q&1),Q>>>=1,++X,K+=Y.table[X],Z-=Y.table[X];while(Z>=0);return J.tag=Q,J.bitcount-=X,Y.trans[K+Z]}function sK(J,Y,K){var Z,X,Q,W,w,$;Z=j1(J,5,257),X=j1(J,5,1),Q=j1(J,4,4);for(W=0;W<19;++W)N1[W]=0;for(W=0;W<Q;++W){var z=j1(J,3,0);N1[nK[W]]=z}y6(J7,N1,0,19);for(w=0;w<Z+X;){var U=g6(J,J7);switch(U){case 16:var H=N1[w-1];for($=j1(J,2,3);$;--$)N1[w++]=H;break;case 17:for($=j1(J,3,3);$;--$)N1[w++]=0;break;case 18:for($=j1(J,7,11);$;--$)N1[w++]=0;break;default:N1[w++]=U;break}}y6(Y,N1,0,Z),y6(K,N1,Z,X)}function K7(J,Y,K){while(!0){var Z=g6(J,Y);if(Z===256)return h6;if(Z<256)J.dest[J.destLen++]=Z;else{var X,Q,W,w;Z-=257,X=j1(J,x6[Z],b6[Z]),Q=g6(J,K),W=J.destLen-j1(J,W7[Q],$7[Q]);for(w=W;w<W+X;++w)J.dest[J.destLen++]=J.dest[w]}}}function aK(J){var Y,K,Z;while(J.bitcount>8)J.sourceIndex--,J.bitcount-=8;if(Y=J.source[J.sourceIndex+1],Y=256*Y+J.source[J.sourceIndex],K=J.source[J.sourceIndex+3],K=256*K+J.source[J.sourceIndex+2],Y!==(~K&65535))return Z7;J.sourceIndex+=4;for(Z=Y;Z;--Z)J.dest[J.destLen++]=J.source[J.sourceIndex++];return J.bitcount=0,h6}function tK(J,Y){var K=new iK(J,Y),Z,X,Q;do{switch(Z=rK(K),X=j1(K,2,0),X){case 0:Q=aK(K);break;case 1:Q=K7(K,X7,Q7);break;case 2:sK(K,K.ltree,K.dtree),Q=K7(K,K.ltree,K.dtree);break;default:Q=Z7}if(Q!==h6)throw Error("Data error")}while(!Z);if(K.destLen<K.dest.length)if(typeof K.dest.slice==="function")return K.dest.slice(0,K.destLen);else return K.dest.subarray(0,K.destLen);return K.dest}oK(X7,Q7);w7(x6,b6,4,3);w7(W7,$7,2,1);x6[28]=0;b6[28]=258;z7.exports=tK});var V7=b0(($B,A7)=>{var eK=new Uint8Array(new Uint32Array([305419896]).buffer)[0]===18,H7=(J,Y,K)=>{let Z=J[Y];J[Y]=J[K],J[K]=Z},JZ=(J)=>{let Y=J.length;for(let K=0;K<Y;K+=4)H7(J,K,K+3),H7(J,K+1,K+2)},YZ=(J)=>{if(eK)JZ(J)};A7.exports={swap32LE:YZ}});var O7=b0((wB,L7)=>{var B7=U7(),{swap32LE:KZ}=V7();class G7{constructor(J){let Y=typeof J.readUInt32BE==="function"&&typeof J.slice==="function";if(Y||J instanceof Uint8Array){let K;if(Y)this.highStart=J.readUInt32LE(0),this.errorValue=J.readUInt32LE(4),K=J.readUInt32LE(8),J=J.slice(12);else{let Z=new DataView(J.buffer);this.highStart=Z.getUint32(0,!0),this.errorValue=Z.getUint32(4,!0),K=Z.getUint32(8,!0),J=J.subarray(12)}J=B7(J,new Uint8Array(K)),J=B7(J,new Uint8Array(K)),KZ(J),this.data=new Uint32Array(J.buffer)}else({data:this.data,highStart:this.highStart,errorValue:this.errorValue}=J)}get(J){let Y;if(J<0||J>1114111)return this.errorValue;if(J<55296||J>56319&&J<=65535)return Y=(this.data[J>>5]<<2)+(J&31),this.data[Y];if(J<=65535)return Y=(this.data[2048+(J-55296>>5)]<<2)+(J&31),this.data[Y];if(J<this.highStart)return Y=this.data[2080+(J>>11)],Y=this.data[Y+(J>>5&63)],Y=(Y<<2)+(J&31),this.data[Y];return this.data[this.data.length-4]}}L7.exports=G7});var q7=b0((G8)=>{var ZZ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(J){var Y=typeof Uint8Array<"u"?Uint8Array:Array,K=43,Z=47,X=48,Q=97,W=65,w=45,$=95;function z(A){var V=A.charCodeAt(0);if(V===K||V===w)return 62;if(V===Z||V===$)return 63;if(V<X)return-1;if(V<X+10)return V-X+26+26;if(V<W+26)return V-W;if(V<Q+26)return V-Q+26}function U(A){var V,O,B,L,M,N;if(A.length%4>0)throw Error("Invalid string. Length must be a multiple of 4");var E=A.length;M=A.charAt(E-2)==="="?2:A.charAt(E-1)==="="?1:0,N=new Y(A.length*3/4-M),B=M>0?A.length-4:A.length;var I=0;function F(j){N[I++]=j}for(V=0,O=0;V<B;V+=4,O+=3)L=z(A.charAt(V))<<18|z(A.charAt(V+1))<<12|z(A.charAt(V+2))<<6|z(A.charAt(V+3)),F((L&16711680)>>16),F((L&65280)>>8),F(L&255);if(M===2)L=z(A.charAt(V))<<2|z(A.charAt(V+1))>>4,F(L&255);else if(M===1)L=z(A.charAt(V))<<10|z(A.charAt(V+1))<<4|z(A.charAt(V+2))>>2,F(L>>8&255),F(L&255);return N}function H(A){var V,O=A.length%3,B="",L,M;function N(I){return ZZ.charAt(I)}function E(I){return N(I>>18&63)+N(I>>12&63)+N(I>>6&63)+N(I&63)}for(V=0,M=A.length-O;V<M;V+=3)L=(A[V]<<16)+(A[V+1]<<8)+A[V+2],B+=E(L);switch(O){case 1:L=A[A.length-1],B+=N(L>>2),B+=N(L<<4&63),B+="==";break;case 2:L=(A[A.length-2]<<8)+A[A.length-1],B+=N(L>>10),B+=N(L>>4&63),B+=N(L<<2&63),B+="=";break}return B}J.toByteArray=U,J.fromByteArray=H})(typeof G8>"u"?G8.base64js={}:G8)});var P7=b0((HB,T7)=>{var d6=40,u6=41,q8=39,l6=34,p6=92,O5=47,i6=44,n6=58,M8=42,OZ=117,qZ=85,MZ=43,NZ=/^[a-f0-9?-]+$/i;T7.exports=function(J){var Y=[],K=J,Z,X,Q,W,w,$,z,U,H=0,A=K.charCodeAt(H),V=K.length,O=[{nodes:Y}],B=0,L,M="",N="",E="";while(H<V)if(A<=32){Z=H;do Z+=1,A=K.charCodeAt(Z);while(A<=32);if(W=K.slice(H,Z),Q=Y[Y.length-1],A===u6&&B)E=W;else if(Q&&Q.type==="div")Q.after=W,Q.sourceEndIndex+=W.length;else if(A===i6||A===n6||A===O5&&K.charCodeAt(Z+1)!==M8&&(!L||L&&L.type==="function"&&L.value!=="calc"))N=W;else Y.push({type:"space",sourceIndex:H,sourceEndIndex:Z,value:W});H=Z}else if(A===q8||A===l6){Z=H,X=A===q8?"'":'"',W={type:"string",sourceIndex:H,quote:X};do if(w=!1,Z=K.indexOf(X,Z+1),~Z){$=Z;while(K.charCodeAt($-1)===p6)$-=1,w=!w}else K+=X,Z=K.length-1,W.unclosed=!0;while(w);W.value=K.slice(H+1,Z),W.sourceEndIndex=W.unclosed?Z:Z+1,Y.push(W),H=Z+1,A=K.charCodeAt(H)}else if(A===O5&&K.charCodeAt(H+1)===M8){if(Z=K.indexOf("*/",H),W={type:"comment",sourceIndex:H,sourceEndIndex:Z+2},Z===-1)W.unclosed=!0,Z=K.length,W.sourceEndIndex=Z;W.value=K.slice(H+2,Z),Y.push(W),H=Z+2,A=K.charCodeAt(H)}else if((A===O5||A===M8)&&L&&L.type==="function"&&L.value==="calc")W=K[H],Y.push({type:"word",sourceIndex:H-N.length,sourceEndIndex:H+W.length,value:W}),H+=1,A=K.charCodeAt(H);else if(A===O5||A===i6||A===n6)W=K[H],Y.push({type:"div",sourceIndex:H-N.length,sourceEndIndex:H+W.length,value:W,before:N,after:""}),N="",H+=1,A=K.charCodeAt(H);else if(d6===A){Z=H;do Z+=1,A=K.charCodeAt(Z);while(A<=32);if(U=H,W={type:"function",sourceIndex:H-M.length,value:M,before:K.slice(U+1,Z)},H=Z,M==="url"&&A!==q8&&A!==l6){Z-=1;do if(w=!1,Z=K.indexOf(")",Z+1),~Z){$=Z;while(K.charCodeAt($-1)===p6)$-=1,w=!w}else K+=")",Z=K.length-1,W.unclosed=!0;while(w);z=Z;do z-=1,A=K.charCodeAt(z);while(A<=32);if(U<z){if(H!==z+1)W.nodes=[{type:"word",sourceIndex:H,sourceEndIndex:z+1,value:K.slice(H,z+1)}];else W.nodes=[];if(W.unclosed&&z+1!==Z)W.after="",W.nodes.push({type:"space",sourceIndex:z+1,sourceEndIndex:Z,value:K.slice(z+1,Z)});else W.after=K.slice(z+1,Z),W.sourceEndIndex=Z}else W.after="",W.nodes=[];H=Z+1,W.sourceEndIndex=W.unclosed?Z:H,A=K.charCodeAt(H),Y.push(W)}else B+=1,W.after="",W.sourceEndIndex=H+1,Y.push(W),O.push(W),Y=W.nodes=[],L=W;M=""}else if(u6===A&&B)H+=1,A=K.charCodeAt(H),L.after=E,L.sourceEndIndex+=E.length,E="",B-=1,O[O.length-1].sourceEndIndex=H,O.pop(),L=O[B],Y=L.nodes;else{Z=H;do{if(A===p6)Z+=1;Z+=1,A=K.charCodeAt(Z)}while(Z<V&&!(A<=32||A===q8||A===l6||A===i6||A===n6||A===O5||A===d6||A===M8&&L&&L.type==="function"&&L.value==="calc"||A===O5&&L.type==="function"&&L.value==="calc"||A===u6&&B));if(W=K.slice(H,Z),d6===A)M=W;else if((OZ===W.charCodeAt(0)||qZ===W.charCodeAt(0))&&MZ===W.charCodeAt(1)&&NZ.test(W.slice(2)))Y.push({type:"unicode-range",sourceIndex:H,sourceEndIndex:Z,value:W});else Y.push({type:"word",sourceIndex:H,sourceEndIndex:Z,value:W});H=Z}for(H=O.length-1;H;H-=1)O[H].unclosed=!0,O[H].sourceEndIndex=K.length;return O[0].nodes}});var v7=b0((AB,S7)=>{S7.exports=function J(Y,K,Z){var X,Q,W,w;for(X=0,Q=Y.length;X<Q;X+=1){if(W=Y[X],!Z)w=K(W,X,Y);if(w!==!1&&W.type==="function"&&Array.isArray(W.nodes))J(W.nodes,K,Z);if(Z)K(W,X,Y)}}});var h7=b0((VB,g7)=>{function k7(J,Y){var{type:K,value:Z}=J,X,Q;if(Y&&(Q=Y(J))!==void 0)return Q;else if(K==="word"||K==="space")return Z;else if(K==="string")return X=J.quote||"",X+Z+(J.unclosed?"":X);else if(K==="comment")return"/*"+Z+(J.unclosed?"":"*/");else if(K==="div")return(J.before||"")+Z+(J.after||"");else if(Array.isArray(J.nodes)){if(X=y7(J.nodes,Y),K!=="function")return X;return Z+"("+(J.before||"")+X+(J.after||"")+(J.unclosed?"":")")}return Z}function y7(J,Y){var K,Z;if(Array.isArray(J)){K="";for(Z=J.length-1;~Z;Z-=1)K=k7(J[Z],Y)+K;return K}return k7(J,Y)}g7.exports=y7});var b7=b0((BB,x7)=>{var N8=45,j8=43,o6=46,jZ=101,EZ=69;function FZ(J){var Y=J.charCodeAt(0),K;if(Y===j8||Y===N8){if(K=J.charCodeAt(1),K>=48&&K<=57)return!0;var Z=J.charCodeAt(2);if(K===o6&&Z>=48&&Z<=57)return!0;return!1}if(Y===o6){if(K=J.charCodeAt(1),K>=48&&K<=57)return!0;return!1}if(Y>=48&&Y<=57)return!0;return!1}x7.exports=function(J){var Y=0,K=J.length,Z,X,Q;if(K===0||!FZ(J))return!1;if(Z=J.charCodeAt(Y),Z===j8||Z===N8)Y++;while(Y<K){if(Z=J.charCodeAt(Y),Z<48||Z>57)break;Y+=1}if(Z=J.charCodeAt(Y),X=J.charCodeAt(Y+1),Z===o6&&X>=48&&X<=57){Y+=2;while(Y<K){if(Z=J.charCodeAt(Y),Z<48||Z>57)break;Y+=1}}if(Z=J.charCodeAt(Y),X=J.charCodeAt(Y+1),Q=J.charCodeAt(Y+2),(Z===jZ||Z===EZ)&&(X>=48&&X<=57||(X===j8||X===N8)&&Q>=48&&Q<=57)){Y+=X===j8||X===N8?3:2;while(Y<K){if(Z=J.charCodeAt(Y),Z<48||Z>57)break;Y+=1}}return{number:J.slice(0,Y),unit:J.slice(Y)}}});var r6=b0((GB,c7)=>{var _Z=P7(),f7=v7(),m7=h7();function m1(J){if(this instanceof m1)return this.nodes=_Z(J),this;return new m1(J)}m1.prototype.toString=function(){return Array.isArray(this.nodes)?m7(this.nodes):""};m1.prototype.walk=function(J,Y){return f7(this.nodes,J,Y),this};m1.unit=b7();m1.walk=f7;m1.stringify=m7;c7.exports=m1});var l7=b0((LB,u7)=>{u7.exports=function(J){if(typeof J==="string")return d7(J);return s6(J)};function s6(J){if(!J||typeof J!=="object")return J;if(DZ(J)||RZ(J))return J;if(IZ(J))return PZ(J,s6);return SZ(TZ(J),function(Y,K){var Z=d7(K);return Y[Z]=s6(J[K]),Y},{})}function d7(J){return J.replace(/[_.-](\w|$)/g,function(Y,K){return K.toUpperCase()})}var IZ=Array.isArray||function(J){return Object.prototype.toString.call(J)==="[object Array]"},DZ=function(J){return Object.prototype.toString.call(J)==="[object Date]"},RZ=function(J){return Object.prototype.toString.call(J)==="[object RegExp]"},CZ=Object.prototype.hasOwnProperty,TZ=Object.keys||function(J){var Y=[];for(var K in J)if(CZ.call(J,K))Y.push(K);return Y};function PZ(J,Y){if(J.map)return J.map(Y);var K=[];for(var Z=0;Z<J.length;Z++)K.push(Y(J[Z],Z));return K}function SZ(J,Y,K){if(J.reduce)return J.reduce(Y,K);for(var Z=0;Z<J.length;Z++)K=Y(K,J[Z],Z);return K}});var p7=b0((OB,vZ)=>{vZ.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 F8=b0((X2)=>{Object.defineProperty(X2,"__esModule",{value:!0});function K9(J){return J&&typeof J==="object"&&"default"in J?J.default:J}var o7=r6(),kZ=K9(o7),yZ=K9(l7()),gZ=K9(p7()),hZ=function(Y){if(Y.type!=="string")return null;return Y.value.replace(/\\([0-9a-f]{1,6})(?:\s|$)/gi,function(K,Z){return String.fromCharCode(parseInt(Z,16))}).replace(/\\/g,"")},xZ=/^(#(?:[0-9a-f]{3,4}){1,2})$/i,bZ=/^(rgba?|hsla?|hwb|lab|lch|gray|color)$/,fZ=function(Y){if(Y.type==="word"&&(xZ.test(Y.value)||(Y.value in gZ)||Y.value==="transparent"))return Y.value;else if(Y.type==="function"&&bZ.test(Y.value))return o7.stringify(Y);return null},mZ=/^(none)$/i,cZ=/^(auto)$/i,dZ=/(^-?[_a-z][_a-z0-9-]*$)/i,uZ=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)$/i,lZ=/^(0$|(?:[+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?=px$))/i,pZ=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(ch|em|ex|rem|vh|vw|vmin|vmax|cm|mm|in|pc|pt))$/i,iZ=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(?:deg|rad))$/i,nZ=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?%)$/i,Z9=function(Y){return function(K){return Y(K)?"<token>":null}},oZ=function(Y){return function(K){return K.type===Y?K.value:null}},S0=function(Y,K){if(K===void 0)K=String;return function(Z){if(Z.type!=="word")return null;var X=Z.value.match(Y);if(X===null)return null;var Q=K(X[1]);return Q}},g0=Z9(function(J){return J.type==="space"}),r7=Z9(function(J){return J.type==="div"&&J.value==="/"}),rZ=Z9(function(J){return J.type==="div"&&J.value===","}),sZ=oZ("word"),X9=S0(mZ),e6=S0(cZ),M5=S0(uZ,Number),r0=S0(lZ,Number),T1=S0(pZ),s7=S0(iZ,function(J){return J.toLowerCase()}),Q9=S0(nZ),E8=S0(dZ),aZ=hZ,b5=fZ,J9=S0(/^(none|underline|line-through)$/i),tZ=function(Y){var K=Y.expect(M5);if(Y.hasTokens())Y.expect(r7),K/=Y.expect(M5);return{aspectRatio:K}},eZ=S0(/^(solid|dashed|dotted)$/),JX=1,YX="black",KX="solid",ZX=function(Y){var K,Z,X;if(Y.matches(X9))return Y.expectEmpty(),{borderWidth:0,borderColor:"black",borderStyle:"solid"};var Q=0;while(Q<3&&Y.hasTokens()){if(Q!==0)Y.expect(g0);if(K===void 0&&Y.matches(r0,T1))K=Y.lastValue;else if(Z===void 0&&Y.matches(b5))Z=Y.lastValue;else if(X===void 0&&Y.matches(eZ))X=Y.lastValue;else Y.throw();Q+=1}if(Y.expectEmpty(),K===void 0)K=JX;if(Z===void 0)Z=YX;if(X===void 0)X=KX;return{borderWidth:K,borderColor:Z,borderStyle:X}},f5=function(Y){var K=Y.types,Z=K===void 0?[r0,T1,Q9]:K,X=Y.directions,Q=X===void 0?["Top","Right","Bottom","Left"]:X,W=Y.prefix,w=W===void 0?"":W,$=Y.suffix,z=$===void 0?"":$;return function(U){var H,A=[];A.push(U.expect.apply(U,Z));while(A.length<4&&U.hasTokens())U.expect(g0),A.push(U.expect.apply(U,Z));U.expectEmpty();var V=A[0],O=A[1],B=O===void 0?V:O,L=A[2],M=L===void 0?V:L,N=A[3],E=N===void 0?B:N,I=function(j){return""+w+Q[j]+z};return H={},H[I(0)]=V,H[I(1)]=B,H[I(2)]=M,H[I(3)]=E,H}},a7=function(Y){var K=Y.expect(r0),Z=Y.matches(g0)?Y.expect(r0):K;return Y.expectEmpty(),{width:K,height:Z}},t7=function(Y){var K,Z,X,Q;if(Y.matches(X9))return Y.expectEmpty(),{offset:{width:0,height:0},radius:0,color:"black"};var W=!1;while(Y.hasTokens()){if(W)Y.expect(g0);if(K===void 0&&Y.matches(r0,T1))if(K=Y.lastValue,Y.expect(g0),Z=Y.expect(r0,T1),Y.saveRewindPoint(),Y.matches(g0)&&Y.matches(r0,T1))X=Y.lastValue;else Y.rewind();else if(Q===void 0&&Y.matches(b5))Q=Y.lastValue;else Y.throw();W=!0}if(K===void 0)Y.throw();return{offset:{width:K,height:Z},radius:X!==void 0?X:0,color:Q!==void 0?Q:"black"}},XX=function(Y){var K=t7(Y),Z=K.offset,X=K.radius,Q=K.color;return{shadowOffset:Z,shadowRadius:X,shadowColor:Q,shadowOpacity:1}},QX=1,WX=1,$X=0,wX=function(Y){var K,Z,X;if(Y.matches(X9))return Y.expectEmpty(),{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(Y.saveRewindPoint(),Y.matches(e6)&&!Y.hasTokens())return{flexGrow:1,flexShrink:1,flexBasis:"auto"};Y.rewind();var Q=0;while(Q<2&&Y.hasTokens()){if(Q!==0)Y.expect(g0);if(K===void 0&&Y.matches(M5))if(K=Y.lastValue,Y.saveRewindPoint(),Y.matches(g0)&&Y.matches(M5))Z=Y.lastValue;else Y.rewind();else if(X===void 0&&Y.matches(r0,T1,Q9))X=Y.lastValue;else if(X===void 0&&Y.matches(e6))X="auto";else Y.throw();Q+=1}if(Y.expectEmpty(),K===void 0)K=QX;if(Z===void 0)Z=WX;if(X===void 0)X=$X;return{flexGrow:K,flexShrink:Z,flexBasis:X}},zX=S0(/(nowrap|wrap|wrap-reverse)/),UX=S0(/(row|row-reverse|column|column-reverse)/),HX="nowrap",AX="row",VX=function(Y){var K,Z,X=0;while(X<2&&Y.hasTokens()){if(X!==0)Y.expect(g0);if(K===void 0&&Y.matches(zX))K=Y.lastValue;else if(Z===void 0&&Y.matches(UX))Z=Y.lastValue;else Y.throw();X+=1}if(Y.expectEmpty(),K===void 0)K=HX;if(Z===void 0)Z=AX;return{flexWrap:K,flexDirection:Z}},e7=function(Y){var K;if(Y.matches(aZ))K=Y.lastValue;else{K=Y.expect(E8);while(Y.hasTokens()){Y.expect(g0);var Z=Y.expect(E8);K+=" "+Z}}return Y.expectEmpty(),{fontFamily:K}},BX=S0(/^(normal)$/),GX=S0(/^(italic)$/),LX=S0(/^([1-9]00|bold)$/),OX=S0(/^(small-caps)$/),qX="normal",MX="normal",NX=[],jX=function(Y){var K,Z,X,Q,W=0;while(W<3&&Y.hasTokens()){if(Y.matches(BX));else if(K===void 0&&Y.matches(GX))K=Y.lastValue;else if(Z===void 0&&Y.matches(LX))Z=Y.lastValue;else if(X===void 0&&Y.matches(OX))X=[Y.lastValue];else break;Y.expect(g0),W+=1}var w=Y.expect(r0,T1);if(Y.matches(r7))Q=Y.expect(r0,T1);Y.expect(g0);var $=e7(Y),z=$.fontFamily;if(K===void 0)K=qX;if(Z===void 0)Z=MX;if(X===void 0)X=NX;var U={fontStyle:K,fontWeight:Z,fontVariant:X,fontSize:w,fontFamily:z};if(Q!==void 0)U.lineHeight=Q;return U},EX=function(Y){var K=[Y.expect(E8)];while(Y.hasTokens())Y.expect(g0),K.push(Y.expect(E8));return{fontVariant:K}},FX=S0(/(flex-(?:start|end)|center|stretch|space-(?:between|around))/),_X=S0(/(flex-(?:start|end)|center|space-(?:between|around|evenly))/),IX=function(Y){var K=Y.expect(FX),Z;if(Y.hasTokens())Y.expect(g0),Z=Y.expect(_X);else Z="stretch";return Y.expectEmpty(),{alignContent:K,justifyContent:Z}},DX=S0(/^(solid|double|dotted|dashed)$/),RX="none",CX="solid",TX="black",PX=function(Y){var K,Z,X,Q=!1;while(Y.hasTokens()){if(Q)Y.expect(g0);if(K===void 0&&Y.matches(J9)){var W=[Y.lastValue.toLowerCase()];if(Y.saveRewindPoint(),W[0]!=="none"&&Y.matches(g0)&&Y.matches(J9))W.push(Y.lastValue.toLowerCase()),W.sort().reverse();else Y.rewind();K=W.join(" ")}else if(Z===void 0&&Y.matches(DX))Z=Y.lastValue;else if(X===void 0&&Y.matches(b5))X=Y.lastValue;else Y.throw();Q=!0}return{textDecorationLine:K!==void 0?K:RX,textDecorationColor:X!==void 0?X:TX,textDecorationStyle:Z!==void 0?Z:CX}},SX=function(Y){var K=[],Z=!1;while(Y.hasTokens()){if(Z)Y.expect(g0);K.push(Y.expect(J9).toLowerCase()),Z=!0}return K.sort().reverse(),{textDecorationLine:K.join(" ")}},vX=function(Y){var K=t7(Y),Z=K.offset,X=K.radius,Q=K.color;return{textShadowOffset:Z,textShadowRadius:X,textShadowColor:Q}},W9=function(Y){return function(K){var Z=K.expect(Y);return K.expectEmpty(),Z}},a6=W9(M5),i7=W9(r0),q5=W9(s7),$9=function(Y){return function(K,Z){return function(X){var Q,W,w=X.expect(Y),$;if(X.hasTokens())X.expect(rZ),$=X.expect(Y);else if(Z!==void 0)$=Z;else return w;return X.expectEmpty(),[(Q={},Q[K+"Y"]=$,Q),(W={},W[K+"X"]=w,W)]}}},kX=$9(M5),yX=$9(r0),gX=$9(s7),hX={perspective:a6,scale:kX("scale"),scaleX:a6,scaleY:a6,translate:yX("translate",0),translateX:i7,translateY:i7,rotate:q5,rotateX:q5,rotateY:q5,rotateZ:q5,skewX:q5,skewY:q5,skew:gX("skew","0deg")},xX=function(Y){var K=[],Z=!1;while(Y.hasTokens()){if(Z)Y.expect(g0);var X=Y.expectFunction(),Q=X.functionName,W=hX[Q](X);if(!Array.isArray(W)){var w;W=[(w={},w[Q]=W,w)]}K=W.concat(K),Z=!0}return{transform:K}},bX=function(Y){return{backgroundColor:Y.expect(b5)}},fX=f5({types:[b5],prefix:"border",suffix:"Color"}),mX=f5({directions:["TopLeft","TopRight","BottomRight","BottomLeft"],prefix:"border",suffix:"Radius"}),cX=f5({prefix:"border",suffix:"Width"}),dX=f5({types:[r0,T1,Q9,e6],prefix:"margin"}),uX=f5({prefix:"padding"}),lX=function(Y){return{fontWeight:Y.expect(sZ)}},pX=function(Y){return{shadowOffset:a7(Y)}},iX=function(Y){return{textShadowOffset:a7(Y)}},J2={aspectRatio:tZ,background:bX,border:ZX,borderColor:fX,borderRadius:mX,borderWidth:cX,boxShadow:XX,flex:wX,flexFlow:VX,font:jX,fontFamily:e7,fontVariant:EX,fontWeight:lX,margin:dX,padding:uX,placeContent:IX,shadowOffset:pX,textShadow:vX,textShadowOffset:iX,textDecoration:PX,textDecorationLine:SX,transform:xX},Y9;if(Bun.env.NODE_ENV!=="production")Y9=["aspectRatio","elevation","flexGrow","flexShrink","opacity","shadowOpacity","zIndex"];var nX=Y9!=null?new RegExp(Y9.join("|")):null,t6="SYMBOL_MATCH",oX=function(){function J(K,Z){this.index=0,this.nodes=K,this.functionName=Z!=null?Z.value:null,this.lastValue=null,this.rewindIndex=-1}var Y=J.prototype;return Y.hasTokens=function(){return this.index<=this.nodes.length-1},Y[t6]=function(){if(!this.hasTokens())return null;var K=this.nodes[this.index];for(var Z=0;Z<arguments.length;Z+=1){var X=Z<0||arguments.length<=Z?void 0:arguments[Z],Q=X(K);if(Q!==null)return this.index+=1,this.lastValue=Q,Q}return null},Y.matches=function(){return this[t6].apply(this,arguments)!==null},Y.expect=function(){var Z=this[t6].apply(this,arguments);return Z!==null?Z:this.throw()},Y.matchesFunction=function(){var Z=this.nodes[this.index];if(Z.type!=="function")return null;var X=new J(Z.nodes,Z);return this.index+=1,this.lastValue=null,X},Y.expectFunction=function(){var Z=this.matchesFunction();return Z!==null?Z:this.throw()},Y.expectEmpty=function(){if(this.hasTokens())this.throw()},Y.throw=function(){throw Error("Unexpected token type: "+this.nodes[this.index].type)},Y.saveRewindPoint=function(){this.rewindIndex=this.index},Y.rewind=function(){if(this.rewindIndex===-1)throw Error("Internal error");this.index=this.rewindIndex,this.lastValue=null},J}(),rX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?:px)?$/i,sX=/^[+-]?(?:\d*\.\d*|[1-9]\d*)(?:e[+-]?\d+)?$/i,aX=/^true|false$/i,tX=/^null$/i,eX=/^undefined$/i,Y2=function(Y,K){if(Bun.env.NODE_ENV!=="production"){var Z=!nX.test(Y),X=sX.test(K);if(Z&&X)console.warn('Expected style "'+Y+": "+K+'" to contain units');if(!Z&&K!=="0"&&!X)console.warn('Expected style "'+Y+": "+K+'" to be unitless')}var Q=K.match(rX);if(Q!==null)return Number(Q[1]);var W=K.match(aX);if(W!==null)return W[0].toLowerCase()==="true";var w=K.match(tX);if(w!==null)return null;var $=K.match(eX);if($!==null)return;return K},n7=function(Y,K){var Z=kZ(K),X=new oX(Z.nodes);return J2[Y](X)},JQ=Bun.env.NODE_ENV==="production"?n7:function(J,Y){try{return n7(J,Y)}catch(K){throw Error('Failed to parse declaration "'+J+": "+Y+'"')}},K2=function(Y,K,Z){var X,Q=Z===!1||!(Y in J2),W=K.trim(),w=Q?(X={},X[Y]=Y2(Y,W),X):JQ(Y,W);return w},Z2=function(Y){var K=/^--\w+/.test(Y);if(K)return Y;return yZ(Y)},YQ=function(Y,K){if(K===void 0)K=[];return Y.reduce(function(Z,X){var Q=Z2(X[0]),W=X[1],w=K.indexOf(Q)===-1;return Object.assign(Z,K2(Q,W,w))},{})};X2.default=YQ;X2.getPropertyName=Z2;X2.getStylesForProperty=K2;X2.transformRawValue=Y2});var W2=b0((Q2,_8)=>{/*!
|
|
2
|
+
import{Bc as TK,nc as _K,oc as k4,pc as IK,qc as DK,wc as RK}from"./chunk-7s1g3v1y.js";import{Mc as y4,hd as CK}from"./chunk-tkv6cw94.js";import{id as l0,jd as B6}from"./chunk-y4djde42.js";import{Ad as V8,Bd as m4,Cd as B5,Dd as b4,Ed as q1,Fd as p0,Hd as MK,Id as F6,Nd as v5,Rd as h0,Vd as EK,kd as l4,md as a4,od as f4,td as W8,vd as Y1,wd as V0,zd as p4}from"./chunk-3d3nmr5g.js";import{Be as L0}from"./chunk-92793zh4.js";import{Ie as o0}from"./chunk-88pq4gmf.js";import{Je as C5,Me as X0}from"./chunk-mt2755rs.js";import{Pe as z1,Qe as x0,Te as nJ}from"./chunk-0h3jr9d9.js";var U7=x0((JB,z7)=>{var g6=0,Z7=-3;function h5(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function iK(J,Y){this.source=J,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=Y,this.destLen=0,this.ltree=new h5,this.dtree=new h5}var X7=new h5,Q7=new h5,x6=new Uint8Array(30),b6=new Uint16Array(30),W7=new Uint8Array(30),$7=new Uint16Array(30),nK=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),J7=new h5,N1=new Uint8Array(320);function w7(J,Y,K,Z){var X,Q;for(X=0;X<K;++X)J[X]=0;for(X=0;X<30-K;++X)J[X+K]=X/K|0;for(Q=Z,X=0;X<30;++X)Y[X]=Q,Q+=1<<J[X]}function oK(J,Y){var K;for(K=0;K<7;++K)J.table[K]=0;J.table[7]=24,J.table[8]=152,J.table[9]=112;for(K=0;K<24;++K)J.trans[K]=256+K;for(K=0;K<144;++K)J.trans[24+K]=K;for(K=0;K<8;++K)J.trans[168+K]=280+K;for(K=0;K<112;++K)J.trans[176+K]=144+K;for(K=0;K<5;++K)Y.table[K]=0;Y.table[5]=32;for(K=0;K<32;++K)Y.trans[K]=K}var Y7=new Uint16Array(16);function y6(J,Y,K,Z){var X,Q;for(X=0;X<16;++X)J.table[X]=0;for(X=0;X<Z;++X)J.table[Y[K+X]]++;J.table[0]=0;for(Q=0,X=0;X<16;++X)Y7[X]=Q,Q+=J.table[X];for(X=0;X<Z;++X)if(Y[K+X])J.trans[Y7[Y[K+X]]++]=X}function rK(J){if(!J.bitcount--)J.tag=J.source[J.sourceIndex++],J.bitcount=7;var Y=J.tag&1;return J.tag>>>=1,Y}function j1(J,Y,K){if(!Y)return K;while(J.bitcount<24)J.tag|=J.source[J.sourceIndex++]<<J.bitcount,J.bitcount+=8;var Z=J.tag&65535>>>16-Y;return J.tag>>>=Y,J.bitcount-=Y,Z+K}function h6(J,Y){while(J.bitcount<24)J.tag|=J.source[J.sourceIndex++]<<J.bitcount,J.bitcount+=8;var K=0,Z=0,X=0,Q=J.tag;do Z=2*Z+(Q&1),Q>>>=1,++X,K+=Y.table[X],Z-=Y.table[X];while(Z>=0);return J.tag=Q,J.bitcount-=X,Y.trans[K+Z]}function sK(J,Y,K){var Z,X,Q,W,w,$;Z=j1(J,5,257),X=j1(J,5,1),Q=j1(J,4,4);for(W=0;W<19;++W)N1[W]=0;for(W=0;W<Q;++W){var z=j1(J,3,0);N1[nK[W]]=z}y6(J7,N1,0,19);for(w=0;w<Z+X;){var U=h6(J,J7);switch(U){case 16:var H=N1[w-1];for($=j1(J,2,3);$;--$)N1[w++]=H;break;case 17:for($=j1(J,3,3);$;--$)N1[w++]=0;break;case 18:for($=j1(J,7,11);$;--$)N1[w++]=0;break;default:N1[w++]=U;break}}y6(Y,N1,0,Z),y6(K,N1,Z,X)}function K7(J,Y,K){while(!0){var Z=h6(J,Y);if(Z===256)return g6;if(Z<256)J.dest[J.destLen++]=Z;else{var X,Q,W,w;Z-=257,X=j1(J,x6[Z],b6[Z]),Q=h6(J,K),W=J.destLen-j1(J,W7[Q],$7[Q]);for(w=W;w<W+X;++w)J.dest[J.destLen++]=J.dest[w]}}}function aK(J){var Y,K,Z;while(J.bitcount>8)J.sourceIndex--,J.bitcount-=8;if(Y=J.source[J.sourceIndex+1],Y=256*Y+J.source[J.sourceIndex],K=J.source[J.sourceIndex+3],K=256*K+J.source[J.sourceIndex+2],Y!==(~K&65535))return Z7;J.sourceIndex+=4;for(Z=Y;Z;--Z)J.dest[J.destLen++]=J.source[J.sourceIndex++];return J.bitcount=0,g6}function tK(J,Y){var K=new iK(J,Y),Z,X,Q;do{switch(Z=rK(K),X=j1(K,2,0),X){case 0:Q=aK(K);break;case 1:Q=K7(K,X7,Q7);break;case 2:sK(K,K.ltree,K.dtree),Q=K7(K,K.ltree,K.dtree);break;default:Q=Z7}if(Q!==g6)throw Error("Data error")}while(!Z);if(K.destLen<K.dest.length)if(typeof K.dest.slice==="function")return K.dest.slice(0,K.destLen);else return K.dest.subarray(0,K.destLen);return K.dest}oK(X7,Q7);w7(x6,b6,4,3);w7(W7,$7,2,1);x6[28]=0;b6[28]=258;z7.exports=tK});var V7=x0((YB,A7)=>{var eK=new Uint8Array(new Uint32Array([305419896]).buffer)[0]===18,H7=(J,Y,K)=>{let Z=J[Y];J[Y]=J[K],J[K]=Z},JZ=(J)=>{let Y=J.length;for(let K=0;K<Y;K+=4)H7(J,K,K+3),H7(J,K+1,K+2)},YZ=(J)=>{if(eK)JZ(J)};A7.exports={swap32LE:YZ}});var L7=x0((KB,O7)=>{var B7=U7(),{swap32LE:KZ}=V7();class G7{constructor(J){let Y=typeof J.readUInt32BE==="function"&&typeof J.slice==="function";if(Y||J instanceof Uint8Array){let K;if(Y)this.highStart=J.readUInt32LE(0),this.errorValue=J.readUInt32LE(4),K=J.readUInt32LE(8),J=J.slice(12);else{let Z=new DataView(J.buffer);this.highStart=Z.getUint32(0,!0),this.errorValue=Z.getUint32(4,!0),K=Z.getUint32(8,!0),J=J.subarray(12)}J=B7(J,new Uint8Array(K)),J=B7(J,new Uint8Array(K)),KZ(J),this.data=new Uint32Array(J.buffer)}else({data:this.data,highStart:this.highStart,errorValue:this.errorValue}=J)}get(J){let Y;if(J<0||J>1114111)return this.errorValue;if(J<55296||J>56319&&J<=65535)return Y=(this.data[J>>5]<<2)+(J&31),this.data[Y];if(J<=65535)return Y=(this.data[2048+(J-55296>>5)]<<2)+(J&31),this.data[Y];if(J<this.highStart)return Y=this.data[2080+(J>>11)],Y=this.data[Y+(J>>5&63)],Y=(Y<<2)+(J&31),this.data[Y];return this.data[this.data.length-4]}}O7.exports=G7});var M7=x0((B8)=>{var ZZ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(J){var Y=typeof Uint8Array<"u"?Uint8Array:Array,K=43,Z=47,X=48,Q=97,W=65,w=45,$=95;function z(A){var V=A.charCodeAt(0);if(V===K||V===w)return 62;if(V===Z||V===$)return 63;if(V<X)return-1;if(V<X+10)return V-X+26+26;if(V<W+26)return V-W;if(V<Q+26)return V-Q+26}function U(A){var V,L,B,O,q,N;if(A.length%4>0)throw Error("Invalid string. Length must be a multiple of 4");var E=A.length;q=A.charAt(E-2)==="="?2:A.charAt(E-1)==="="?1:0,N=new Y(A.length*3/4-q),B=q>0?A.length-4:A.length;var I=0;function F(j){N[I++]=j}for(V=0,L=0;V<B;V+=4,L+=3)O=z(A.charAt(V))<<18|z(A.charAt(V+1))<<12|z(A.charAt(V+2))<<6|z(A.charAt(V+3)),F((O&16711680)>>16),F((O&65280)>>8),F(O&255);if(q===2)O=z(A.charAt(V))<<2|z(A.charAt(V+1))>>4,F(O&255);else if(q===1)O=z(A.charAt(V))<<10|z(A.charAt(V+1))<<4|z(A.charAt(V+2))>>2,F(O>>8&255),F(O&255);return N}function H(A){var V,L=A.length%3,B="",O,q;function N(I){return ZZ.charAt(I)}function E(I){return N(I>>18&63)+N(I>>12&63)+N(I>>6&63)+N(I&63)}for(V=0,q=A.length-L;V<q;V+=3)O=(A[V]<<16)+(A[V+1]<<8)+A[V+2],B+=E(O);switch(L){case 1:O=A[A.length-1],B+=N(O>>2),B+=N(O<<4&63),B+="==";break;case 2:O=(A[A.length-2]<<8)+A[A.length-1],B+=N(O>>10),B+=N(O>>4&63),B+=N(O<<2&63),B+="=";break}return B}J.toByteArray=U,J.fromByteArray=H})(typeof B8>"u"?B8.base64js={}:B8)});var P7=x0((QB,T7)=>{var d6=40,u6=41,L8=39,l6=34,p6=92,O5=47,i6=44,n6=58,M8=42,LZ=117,MZ=85,qZ=43,NZ=/^[a-f0-9?-]+$/i;T7.exports=function(J){var Y=[],K=J,Z,X,Q,W,w,$,z,U,H=0,A=K.charCodeAt(H),V=K.length,L=[{nodes:Y}],B=0,O,q="",N="",E="";while(H<V)if(A<=32){Z=H;do Z+=1,A=K.charCodeAt(Z);while(A<=32);if(W=K.slice(H,Z),Q=Y[Y.length-1],A===u6&&B)E=W;else if(Q&&Q.type==="div")Q.after=W,Q.sourceEndIndex+=W.length;else if(A===i6||A===n6||A===O5&&K.charCodeAt(Z+1)!==M8&&(!O||O&&O.type==="function"&&O.value!=="calc"))N=W;else Y.push({type:"space",sourceIndex:H,sourceEndIndex:Z,value:W});H=Z}else if(A===L8||A===l6){Z=H,X=A===L8?"'":'"',W={type:"string",sourceIndex:H,quote:X};do if(w=!1,Z=K.indexOf(X,Z+1),~Z){$=Z;while(K.charCodeAt($-1)===p6)$-=1,w=!w}else K+=X,Z=K.length-1,W.unclosed=!0;while(w);W.value=K.slice(H+1,Z),W.sourceEndIndex=W.unclosed?Z:Z+1,Y.push(W),H=Z+1,A=K.charCodeAt(H)}else if(A===O5&&K.charCodeAt(H+1)===M8){if(Z=K.indexOf("*/",H),W={type:"comment",sourceIndex:H,sourceEndIndex:Z+2},Z===-1)W.unclosed=!0,Z=K.length,W.sourceEndIndex=Z;W.value=K.slice(H+2,Z),Y.push(W),H=Z+2,A=K.charCodeAt(H)}else if((A===O5||A===M8)&&O&&O.type==="function"&&O.value==="calc")W=K[H],Y.push({type:"word",sourceIndex:H-N.length,sourceEndIndex:H+W.length,value:W}),H+=1,A=K.charCodeAt(H);else if(A===O5||A===i6||A===n6)W=K[H],Y.push({type:"div",sourceIndex:H-N.length,sourceEndIndex:H+W.length,value:W,before:N,after:""}),N="",H+=1,A=K.charCodeAt(H);else if(d6===A){Z=H;do Z+=1,A=K.charCodeAt(Z);while(A<=32);if(U=H,W={type:"function",sourceIndex:H-q.length,value:q,before:K.slice(U+1,Z)},H=Z,q==="url"&&A!==L8&&A!==l6){Z-=1;do if(w=!1,Z=K.indexOf(")",Z+1),~Z){$=Z;while(K.charCodeAt($-1)===p6)$-=1,w=!w}else K+=")",Z=K.length-1,W.unclosed=!0;while(w);z=Z;do z-=1,A=K.charCodeAt(z);while(A<=32);if(U<z){if(H!==z+1)W.nodes=[{type:"word",sourceIndex:H,sourceEndIndex:z+1,value:K.slice(H,z+1)}];else W.nodes=[];if(W.unclosed&&z+1!==Z)W.after="",W.nodes.push({type:"space",sourceIndex:z+1,sourceEndIndex:Z,value:K.slice(z+1,Z)});else W.after=K.slice(z+1,Z),W.sourceEndIndex=Z}else W.after="",W.nodes=[];H=Z+1,W.sourceEndIndex=W.unclosed?Z:H,A=K.charCodeAt(H),Y.push(W)}else B+=1,W.after="",W.sourceEndIndex=H+1,Y.push(W),L.push(W),Y=W.nodes=[],O=W;q=""}else if(u6===A&&B)H+=1,A=K.charCodeAt(H),O.after=E,O.sourceEndIndex+=E.length,E="",B-=1,L[L.length-1].sourceEndIndex=H,L.pop(),O=L[B],Y=O.nodes;else{Z=H;do{if(A===p6)Z+=1;Z+=1,A=K.charCodeAt(Z)}while(Z<V&&!(A<=32||A===L8||A===l6||A===i6||A===n6||A===O5||A===d6||A===M8&&O&&O.type==="function"&&O.value==="calc"||A===O5&&O.type==="function"&&O.value==="calc"||A===u6&&B));if(W=K.slice(H,Z),d6===A)q=W;else if((LZ===W.charCodeAt(0)||MZ===W.charCodeAt(0))&&qZ===W.charCodeAt(1)&&NZ.test(W.slice(2)))Y.push({type:"unicode-range",sourceIndex:H,sourceEndIndex:Z,value:W});else Y.push({type:"word",sourceIndex:H,sourceEndIndex:Z,value:W});H=Z}for(H=L.length-1;H;H-=1)L[H].unclosed=!0,L[H].sourceEndIndex=K.length;return L[0].nodes}});var v7=x0((WB,S7)=>{S7.exports=function J(Y,K,Z){var X,Q,W,w;for(X=0,Q=Y.length;X<Q;X+=1){if(W=Y[X],!Z)w=K(W,X,Y);if(w!==!1&&W.type==="function"&&Array.isArray(W.nodes))J(W.nodes,K,Z);if(Z)K(W,X,Y)}}});var g7=x0(($B,h7)=>{function k7(J,Y){var{type:K,value:Z}=J,X,Q;if(Y&&(Q=Y(J))!==void 0)return Q;else if(K==="word"||K==="space")return Z;else if(K==="string")return X=J.quote||"",X+Z+(J.unclosed?"":X);else if(K==="comment")return"/*"+Z+(J.unclosed?"":"*/");else if(K==="div")return(J.before||"")+Z+(J.after||"");else if(Array.isArray(J.nodes)){if(X=y7(J.nodes,Y),K!=="function")return X;return Z+"("+(J.before||"")+X+(J.after||"")+(J.unclosed?"":")")}return Z}function y7(J,Y){var K,Z;if(Array.isArray(J)){K="";for(Z=J.length-1;~Z;Z-=1)K=k7(J[Z],Y)+K;return K}return k7(J,Y)}h7.exports=y7});var b7=x0((wB,x7)=>{var q8=45,N8=43,o6=46,jZ=101,EZ=69;function FZ(J){var Y=J.charCodeAt(0),K;if(Y===N8||Y===q8){if(K=J.charCodeAt(1),K>=48&&K<=57)return!0;var Z=J.charCodeAt(2);if(K===o6&&Z>=48&&Z<=57)return!0;return!1}if(Y===o6){if(K=J.charCodeAt(1),K>=48&&K<=57)return!0;return!1}if(Y>=48&&Y<=57)return!0;return!1}x7.exports=function(J){var Y=0,K=J.length,Z,X,Q;if(K===0||!FZ(J))return!1;if(Z=J.charCodeAt(Y),Z===N8||Z===q8)Y++;while(Y<K){if(Z=J.charCodeAt(Y),Z<48||Z>57)break;Y+=1}if(Z=J.charCodeAt(Y),X=J.charCodeAt(Y+1),Z===o6&&X>=48&&X<=57){Y+=2;while(Y<K){if(Z=J.charCodeAt(Y),Z<48||Z>57)break;Y+=1}}if(Z=J.charCodeAt(Y),X=J.charCodeAt(Y+1),Q=J.charCodeAt(Y+2),(Z===jZ||Z===EZ)&&(X>=48&&X<=57||(X===N8||X===q8)&&Q>=48&&Q<=57)){Y+=X===N8||X===q8?3:2;while(Y<K){if(Z=J.charCodeAt(Y),Z<48||Z>57)break;Y+=1}}return{number:J.slice(0,Y),unit:J.slice(Y)}}});var r6=x0((zB,c7)=>{var _Z=P7(),f7=v7(),m7=g7();function m1(J){if(this instanceof m1)return this.nodes=_Z(J),this;return new m1(J)}m1.prototype.toString=function(){return Array.isArray(this.nodes)?m7(this.nodes):""};m1.prototype.walk=function(J,Y){return f7(this.nodes,J,Y),this};m1.unit=b7();m1.walk=f7;m1.stringify=m7;c7.exports=m1});var l7=x0((UB,u7)=>{u7.exports=function(J){if(typeof J==="string")return d7(J);return s6(J)};function s6(J){if(!J||typeof J!=="object")return J;if(DZ(J)||RZ(J))return J;if(IZ(J))return PZ(J,s6);return SZ(TZ(J),function(Y,K){var Z=d7(K);return Y[Z]=s6(J[K]),Y},{})}function d7(J){return J.replace(/[_.-](\w|$)/g,function(Y,K){return K.toUpperCase()})}var IZ=Array.isArray||function(J){return Object.prototype.toString.call(J)==="[object Array]"},DZ=function(J){return Object.prototype.toString.call(J)==="[object Date]"},RZ=function(J){return Object.prototype.toString.call(J)==="[object RegExp]"},CZ=Object.prototype.hasOwnProperty,TZ=Object.keys||function(J){var Y=[];for(var K in J)if(CZ.call(J,K))Y.push(K);return Y};function PZ(J,Y){if(J.map)return J.map(Y);var K=[];for(var Z=0;Z<J.length;Z++)K.push(Y(J[Z],Z));return K}function SZ(J,Y,K){if(J.reduce)return J.reduce(Y,K);for(var Z=0;Z<J.length;Z++)K=Y(K,J[Z],Z);return K}});var p7=x0((HB,vZ)=>{vZ.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 E8=x0((X2)=>{Object.defineProperty(X2,"__esModule",{value:!0});function K9(J){return J&&typeof J==="object"&&"default"in J?J.default:J}var o7=r6(),kZ=K9(o7),yZ=K9(l7()),hZ=K9(p7()),gZ=function(Y){if(Y.type!=="string")return null;return Y.value.replace(/\\([0-9a-f]{1,6})(?:\s|$)/gi,function(K,Z){return String.fromCharCode(parseInt(Z,16))}).replace(/\\/g,"")},xZ=/^(#(?:[0-9a-f]{3,4}){1,2})$/i,bZ=/^(rgba?|hsla?|hwb|lab|lch|gray|color)$/,fZ=function(Y){if(Y.type==="word"&&(xZ.test(Y.value)||(Y.value in hZ)||Y.value==="transparent"))return Y.value;else if(Y.type==="function"&&bZ.test(Y.value))return o7.stringify(Y);return null},mZ=/^(none)$/i,cZ=/^(auto)$/i,dZ=/(^-?[_a-z][_a-z0-9-]*$)/i,uZ=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)$/i,lZ=/^(0$|(?:[+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?=px$))/i,pZ=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(ch|em|ex|rem|vh|vw|vmin|vmax|cm|mm|in|pc|pt))$/i,iZ=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(?:deg|rad))$/i,nZ=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?%)$/i,Z9=function(Y){return function(K){return Y(K)?"<token>":null}},oZ=function(Y){return function(K){return K.type===Y?K.value:null}},S0=function(Y,K){if(K===void 0)K=String;return function(Z){if(Z.type!=="word")return null;var X=Z.value.match(Y);if(X===null)return null;var Q=K(X[1]);return Q}},y0=Z9(function(J){return J.type==="space"}),r7=Z9(function(J){return J.type==="div"&&J.value==="/"}),rZ=Z9(function(J){return J.type==="div"&&J.value===","}),sZ=oZ("word"),X9=S0(mZ),e6=S0(cZ),M5=S0(uZ,Number),r0=S0(lZ,Number),T1=S0(pZ),s7=S0(iZ,function(J){return J.toLowerCase()}),Q9=S0(nZ),j8=S0(dZ),aZ=gZ,x5=fZ,J9=S0(/^(none|underline|line-through)$/i),tZ=function(Y){var K=Y.expect(M5);if(Y.hasTokens())Y.expect(r7),K/=Y.expect(M5);return{aspectRatio:K}},eZ=S0(/^(solid|dashed|dotted)$/),JX=1,YX="black",KX="solid",ZX=function(Y){var K,Z,X;if(Y.matches(X9))return Y.expectEmpty(),{borderWidth:0,borderColor:"black",borderStyle:"solid"};var Q=0;while(Q<3&&Y.hasTokens()){if(Q!==0)Y.expect(y0);if(K===void 0&&Y.matches(r0,T1))K=Y.lastValue;else if(Z===void 0&&Y.matches(x5))Z=Y.lastValue;else if(X===void 0&&Y.matches(eZ))X=Y.lastValue;else Y.throw();Q+=1}if(Y.expectEmpty(),K===void 0)K=JX;if(Z===void 0)Z=YX;if(X===void 0)X=KX;return{borderWidth:K,borderColor:Z,borderStyle:X}},b5=function(Y){var K=Y.types,Z=K===void 0?[r0,T1,Q9]:K,X=Y.directions,Q=X===void 0?["Top","Right","Bottom","Left"]:X,W=Y.prefix,w=W===void 0?"":W,$=Y.suffix,z=$===void 0?"":$;return function(U){var H,A=[];A.push(U.expect.apply(U,Z));while(A.length<4&&U.hasTokens())U.expect(y0),A.push(U.expect.apply(U,Z));U.expectEmpty();var V=A[0],L=A[1],B=L===void 0?V:L,O=A[2],q=O===void 0?V:O,N=A[3],E=N===void 0?B:N,I=function(j){return""+w+Q[j]+z};return H={},H[I(0)]=V,H[I(1)]=B,H[I(2)]=q,H[I(3)]=E,H}},a7=function(Y){var K=Y.expect(r0),Z=Y.matches(y0)?Y.expect(r0):K;return Y.expectEmpty(),{width:K,height:Z}},t7=function(Y){var K,Z,X,Q;if(Y.matches(X9))return Y.expectEmpty(),{offset:{width:0,height:0},radius:0,color:"black"};var W=!1;while(Y.hasTokens()){if(W)Y.expect(y0);if(K===void 0&&Y.matches(r0,T1))if(K=Y.lastValue,Y.expect(y0),Z=Y.expect(r0,T1),Y.saveRewindPoint(),Y.matches(y0)&&Y.matches(r0,T1))X=Y.lastValue;else Y.rewind();else if(Q===void 0&&Y.matches(x5))Q=Y.lastValue;else Y.throw();W=!0}if(K===void 0)Y.throw();return{offset:{width:K,height:Z},radius:X!==void 0?X:0,color:Q!==void 0?Q:"black"}},XX=function(Y){var K=t7(Y),Z=K.offset,X=K.radius,Q=K.color;return{shadowOffset:Z,shadowRadius:X,shadowColor:Q,shadowOpacity:1}},QX=1,WX=1,$X=0,wX=function(Y){var K,Z,X;if(Y.matches(X9))return Y.expectEmpty(),{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(Y.saveRewindPoint(),Y.matches(e6)&&!Y.hasTokens())return{flexGrow:1,flexShrink:1,flexBasis:"auto"};Y.rewind();var Q=0;while(Q<2&&Y.hasTokens()){if(Q!==0)Y.expect(y0);if(K===void 0&&Y.matches(M5))if(K=Y.lastValue,Y.saveRewindPoint(),Y.matches(y0)&&Y.matches(M5))Z=Y.lastValue;else Y.rewind();else if(X===void 0&&Y.matches(r0,T1,Q9))X=Y.lastValue;else if(X===void 0&&Y.matches(e6))X="auto";else Y.throw();Q+=1}if(Y.expectEmpty(),K===void 0)K=QX;if(Z===void 0)Z=WX;if(X===void 0)X=$X;return{flexGrow:K,flexShrink:Z,flexBasis:X}},zX=S0(/(nowrap|wrap|wrap-reverse)/),UX=S0(/(row|row-reverse|column|column-reverse)/),HX="nowrap",AX="row",VX=function(Y){var K,Z,X=0;while(X<2&&Y.hasTokens()){if(X!==0)Y.expect(y0);if(K===void 0&&Y.matches(zX))K=Y.lastValue;else if(Z===void 0&&Y.matches(UX))Z=Y.lastValue;else Y.throw();X+=1}if(Y.expectEmpty(),K===void 0)K=HX;if(Z===void 0)Z=AX;return{flexWrap:K,flexDirection:Z}},e7=function(Y){var K;if(Y.matches(aZ))K=Y.lastValue;else{K=Y.expect(j8);while(Y.hasTokens()){Y.expect(y0);var Z=Y.expect(j8);K+=" "+Z}}return Y.expectEmpty(),{fontFamily:K}},BX=S0(/^(normal)$/),GX=S0(/^(italic)$/),OX=S0(/^([1-9]00|bold)$/),LX=S0(/^(small-caps)$/),MX="normal",qX="normal",NX=[],jX=function(Y){var K,Z,X,Q,W=0;while(W<3&&Y.hasTokens()){if(Y.matches(BX));else if(K===void 0&&Y.matches(GX))K=Y.lastValue;else if(Z===void 0&&Y.matches(OX))Z=Y.lastValue;else if(X===void 0&&Y.matches(LX))X=[Y.lastValue];else break;Y.expect(y0),W+=1}var w=Y.expect(r0,T1);if(Y.matches(r7))Q=Y.expect(r0,T1);Y.expect(y0);var $=e7(Y),z=$.fontFamily;if(K===void 0)K=MX;if(Z===void 0)Z=qX;if(X===void 0)X=NX;var U={fontStyle:K,fontWeight:Z,fontVariant:X,fontSize:w,fontFamily:z};if(Q!==void 0)U.lineHeight=Q;return U},EX=function(Y){var K=[Y.expect(j8)];while(Y.hasTokens())Y.expect(y0),K.push(Y.expect(j8));return{fontVariant:K}},FX=S0(/(flex-(?:start|end)|center|stretch|space-(?:between|around))/),_X=S0(/(flex-(?:start|end)|center|space-(?:between|around|evenly))/),IX=function(Y){var K=Y.expect(FX),Z;if(Y.hasTokens())Y.expect(y0),Z=Y.expect(_X);else Z="stretch";return Y.expectEmpty(),{alignContent:K,justifyContent:Z}},DX=S0(/^(solid|double|dotted|dashed)$/),RX="none",CX="solid",TX="black",PX=function(Y){var K,Z,X,Q=!1;while(Y.hasTokens()){if(Q)Y.expect(y0);if(K===void 0&&Y.matches(J9)){var W=[Y.lastValue.toLowerCase()];if(Y.saveRewindPoint(),W[0]!=="none"&&Y.matches(y0)&&Y.matches(J9))W.push(Y.lastValue.toLowerCase()),W.sort().reverse();else Y.rewind();K=W.join(" ")}else if(Z===void 0&&Y.matches(DX))Z=Y.lastValue;else if(X===void 0&&Y.matches(x5))X=Y.lastValue;else Y.throw();Q=!0}return{textDecorationLine:K!==void 0?K:RX,textDecorationColor:X!==void 0?X:TX,textDecorationStyle:Z!==void 0?Z:CX}},SX=function(Y){var K=[],Z=!1;while(Y.hasTokens()){if(Z)Y.expect(y0);K.push(Y.expect(J9).toLowerCase()),Z=!0}return K.sort().reverse(),{textDecorationLine:K.join(" ")}},vX=function(Y){var K=t7(Y),Z=K.offset,X=K.radius,Q=K.color;return{textShadowOffset:Z,textShadowRadius:X,textShadowColor:Q}},W9=function(Y){return function(K){var Z=K.expect(Y);return K.expectEmpty(),Z}},a6=W9(M5),i7=W9(r0),L5=W9(s7),$9=function(Y){return function(K,Z){return function(X){var Q,W,w=X.expect(Y),$;if(X.hasTokens())X.expect(rZ),$=X.expect(Y);else if(Z!==void 0)$=Z;else return w;return X.expectEmpty(),[(Q={},Q[K+"Y"]=$,Q),(W={},W[K+"X"]=w,W)]}}},kX=$9(M5),yX=$9(r0),hX=$9(s7),gX={perspective:a6,scale:kX("scale"),scaleX:a6,scaleY:a6,translate:yX("translate",0),translateX:i7,translateY:i7,rotate:L5,rotateX:L5,rotateY:L5,rotateZ:L5,skewX:L5,skewY:L5,skew:hX("skew","0deg")},xX=function(Y){var K=[],Z=!1;while(Y.hasTokens()){if(Z)Y.expect(y0);var X=Y.expectFunction(),Q=X.functionName,W=gX[Q](X);if(!Array.isArray(W)){var w;W=[(w={},w[Q]=W,w)]}K=W.concat(K),Z=!0}return{transform:K}},bX=function(Y){return{backgroundColor:Y.expect(x5)}},fX=b5({types:[x5],prefix:"border",suffix:"Color"}),mX=b5({directions:["TopLeft","TopRight","BottomRight","BottomLeft"],prefix:"border",suffix:"Radius"}),cX=b5({prefix:"border",suffix:"Width"}),dX=b5({types:[r0,T1,Q9,e6],prefix:"margin"}),uX=b5({prefix:"padding"}),lX=function(Y){return{fontWeight:Y.expect(sZ)}},pX=function(Y){return{shadowOffset:a7(Y)}},iX=function(Y){return{textShadowOffset:a7(Y)}},J2={aspectRatio:tZ,background:bX,border:ZX,borderColor:fX,borderRadius:mX,borderWidth:cX,boxShadow:XX,flex:wX,flexFlow:VX,font:jX,fontFamily:e7,fontVariant:EX,fontWeight:lX,margin:dX,padding:uX,placeContent:IX,shadowOffset:pX,textShadow:vX,textShadowOffset:iX,textDecoration:PX,textDecorationLine:SX,transform:xX},Y9;if(Bun.env.NODE_ENV!=="production")Y9=["aspectRatio","elevation","flexGrow","flexShrink","opacity","shadowOpacity","zIndex"];var nX=Y9!=null?new RegExp(Y9.join("|")):null,t6="SYMBOL_MATCH",oX=function(){function J(K,Z){this.index=0,this.nodes=K,this.functionName=Z!=null?Z.value:null,this.lastValue=null,this.rewindIndex=-1}var Y=J.prototype;return Y.hasTokens=function(){return this.index<=this.nodes.length-1},Y[t6]=function(){if(!this.hasTokens())return null;var K=this.nodes[this.index];for(var Z=0;Z<arguments.length;Z+=1){var X=Z<0||arguments.length<=Z?void 0:arguments[Z],Q=X(K);if(Q!==null)return this.index+=1,this.lastValue=Q,Q}return null},Y.matches=function(){return this[t6].apply(this,arguments)!==null},Y.expect=function(){var Z=this[t6].apply(this,arguments);return Z!==null?Z:this.throw()},Y.matchesFunction=function(){var Z=this.nodes[this.index];if(Z.type!=="function")return null;var X=new J(Z.nodes,Z);return this.index+=1,this.lastValue=null,X},Y.expectFunction=function(){var Z=this.matchesFunction();return Z!==null?Z:this.throw()},Y.expectEmpty=function(){if(this.hasTokens())this.throw()},Y.throw=function(){throw Error("Unexpected token type: "+this.nodes[this.index].type)},Y.saveRewindPoint=function(){this.rewindIndex=this.index},Y.rewind=function(){if(this.rewindIndex===-1)throw Error("Internal error");this.index=this.rewindIndex,this.lastValue=null},J}(),rX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?:px)?$/i,sX=/^[+-]?(?:\d*\.\d*|[1-9]\d*)(?:e[+-]?\d+)?$/i,aX=/^true|false$/i,tX=/^null$/i,eX=/^undefined$/i,Y2=function(Y,K){if(Bun.env.NODE_ENV!=="production"){var Z=!nX.test(Y),X=sX.test(K);if(Z&&X)console.warn('Expected style "'+Y+": "+K+'" to contain units');if(!Z&&K!=="0"&&!X)console.warn('Expected style "'+Y+": "+K+'" to be unitless')}var Q=K.match(rX);if(Q!==null)return Number(Q[1]);var W=K.match(aX);if(W!==null)return W[0].toLowerCase()==="true";var w=K.match(tX);if(w!==null)return null;var $=K.match(eX);if($!==null)return;return K},n7=function(Y,K){var Z=kZ(K),X=new oX(Z.nodes);return J2[Y](X)},JQ=Bun.env.NODE_ENV==="production"?n7:function(J,Y){try{return n7(J,Y)}catch(K){throw Error('Failed to parse declaration "'+J+": "+Y+'"')}},K2=function(Y,K,Z){var X,Q=Z===!1||!(Y in J2),W=K.trim(),w=Q?(X={},X[Y]=Y2(Y,W),X):JQ(Y,W);return w},Z2=function(Y){var K=/^--\w+/.test(Y);if(K)return Y;return yZ(Y)},YQ=function(Y,K){if(K===void 0)K=[];return Y.reduce(function(Z,X){var Q=Z2(X[0]),W=X[1],w=K.indexOf(Q)===-1;return Object.assign(Z,K2(Q,W,w))},{})};X2.default=YQ;X2.getPropertyName=Z2;X2.getStylesForProperty=K2;X2.transformRawValue=Y2});var W2=x0((Q2,F8)=>{/*!
|
|
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
|
-
*/(function(J){function Y(W){if(!(this instanceof Y))return new Y;this.backgrounds=W||[]}Y.prototype.toString=function(){return this.backgrounds.join(", ")};function K(W){if(!(this instanceof K))return new K(W);W=W||{};var w=this;function $(z,U){w[z]=z in W?W[z]:U}$("color",""),$("image","none"),$("attachment","scroll"),$("clip","border-box"),$("origin","padding-box"),$("position","0% 0%"),$("repeat","repeat"),$("size","auto")}K.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=Y,J.Background=K;function Z(W){var w=[],$=/[,\(\)]/,z=0,U="";if(W==null)return w;while(W.length){var H=$.exec(W);if(!H)break;var A=H[0],V=!1;switch(A){case",":if(!z)w.push(U.trim()),U="",V=!0;break;case"(":z++;break;case")":z--;break}var
|
|
5
|
+
*/(function(J){function Y(W){if(!(this instanceof Y))return new Y;this.backgrounds=W||[]}Y.prototype.toString=function(){return this.backgrounds.join(", ")};function K(W){if(!(this instanceof K))return new K(W);W=W||{};var w=this;function $(z,U){w[z]=z in W?W[z]:U}$("color",""),$("image","none"),$("attachment","scroll"),$("clip","border-box"),$("origin","padding-box"),$("position","0% 0%"),$("repeat","repeat"),$("size","auto")}K.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=Y,J.Background=K;function Z(W){var w=[],$=/[,\(\)]/,z=0,U="";if(W==null)return w;while(W.length){var H=$.exec(W);if(!H)break;var A=H[0],V=!1;switch(A){case",":if(!z)w.push(U.trim()),U="",V=!0;break;case"(":z++;break;case")":z--;break}var L=H.index+1;U+=W.slice(0,V?L-1:L),W=W.slice(L)}if(U.length||W.length)w.push((U+W).trim());return w}function X(W){return W.trim()}function Q(W){return(W||"").split(",").map(X)}J.parseElementStyle=function(W){var w=new Y;if(W==null)return w;var $=Z(W.backgroundImage),z=W.backgroundColor,U=Q(W.backgroundAttachment),H=Q(W.backgroundClip),A=Q(W.backgroundOrigin),V=Q(W.backgroundPosition),L=Q(W.backgroundRepeat),B=Q(W.backgroundSize),O;for(var q=0,N=$.length;q<N;q++){if(O=new K({image:$[q],attachment:U[q%U.length],clip:H[q%H.length],origin:A[q%A.length],position:V[q%V.length],repeat:L[q%L.length],size:B[q%B.length]}),q===N-1)O.color=z;w.backgrounds.push(O)}return w}})(function(J){if(typeof F8<"u"&&Q2!==void 0)return Q2;return J.cssBgParser={}}(Q2))});var w2=x0((VB,$2)=>{var WQ=/,(?![^\(]*\))/,$Q=/\s(?![^(]*\))/,wQ=/^[0-9]+[a-zA-Z%]+?$/,zQ=(J)=>{let Y=J.split($Q),K=Y.includes("inset"),Z=Y.slice(-1)[0],X=!HQ(Z)?Z:void 0,Q=Y.filter((U)=>U!=="inset").filter((U)=>U!==X).map(AQ),[W,w,$,z]=Q;return{inset:K,offsetX:W,offsetY:w,blurRadius:$,spreadRadius:z,color:X}},UQ=(J)=>{let{inset:Y,offsetX:K=0,offsetY:Z=0,blurRadius:X=0,spreadRadius:Q,color:W}=J||{};return[Y?"inset":null,K,Z,X,Q,W].filter((w)=>w!==null&&w!==void 0).map(VQ).map((w)=>(""+w).trim()).join(" ")},HQ=(J)=>J==="0"||wQ.test(J),AQ=(J)=>{if(!/px$/.test(J)&&J!=="0")return J;let Y=parseFloat(J);return!isNaN(Y)?Y:J},VQ=(J)=>typeof J==="number"&&J!==0?J+"px":J,BQ=(J)=>J.split(WQ).map((Y)=>Y.trim()).map(zQ),GQ=(J)=>J.map(UQ).join(", ");$2.exports={parse:BQ,stringify:GQ}});var U2=x0((BB,z2)=>{z2.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 A2=x0((GB,H2)=>{var OQ=new RegExp("[^#a-f\\d]","gi"),LQ=new RegExp("^#?[a-f\\d]{3}[a-f\\d]?$|^#?[a-f\\d]{6}([a-f\\d]{2})?$","i");H2.exports=(J,Y={})=>{if(typeof J!=="string"||OQ.test(J)||!LQ.test(J))throw TypeError("Expected a valid hex string");J=J.replace(/^#/,"");let K=1;if(J.length===8)K=Number.parseInt(J.slice(6,8),16)/255,J=J.slice(0,6);if(J.length===4)K=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 Z=Number.parseInt(J,16),X=Z>>16,Q=Z>>8&255,W=Z&255,w=typeof Y.alpha==="number"?Y.alpha:K;if(Y.format==="array")return[X,Q,W,w];if(Y.format==="css"){let $=w===1?"":` / ${Number((w*100).toFixed(2))}%`;return`rgb(${X} ${Q} ${W}${$})`}return{red:X,green:Q,blue:W,alpha:w}}});var M2=x0((LB,L2)=>{/*!
|
|
6
6
|
* escape-html
|
|
7
7
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
8
8
|
* Copyright(c) 2015 Andreas Lubbe
|
|
9
9
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
10
10
|
* MIT Licensed
|
|
11
|
-
*/var bQ=/["'&<>]/;O2.exports=fQ;function fQ(J){var Y=""+J,K=bQ.exec(Y);if(!K)return Y;var Z,X="",Q=0,W=0;for(Q=K.index;Q<Y.length;Q++){switch(Y.charCodeAt(Q)){case 34:Z=""";break;case 38:Z="&";break;case 39:Z="'";break;case 60:Z="<";break;case 62:Z=">";break;default:continue}if(W!==Q)X+=Y.substring(W,Q);W=Q+1,X+=Z}return W!==Q?X+Y.substring(W,Q):X}});class y0{static getFacadeAccessor(){throw Error(`Facade [${this.name}] does not implement getFacadeAccessor().`)}static getFacadeRoot(){return X0(this.getFacadeAccessor())}}import{AsyncLocalStorage as SK}from"async_hooks";class q6{config;static token="broadcast";publishCb;context=new SK;constructor(J){this.config=J}get channels(){return this.config.channels}onPublish(J){this.publishCb=J}publish(...J){let[Y,K,Z]=J;this.publishCb(Y,K,Z)}async handleMessage(J,Y){let K=JSON.parse(Y);if(K.type==="subscribe"){let Z=Object.entries(this.channels).sort(([X],[Q])=>X.length-Q.length);for(let[X,Q]of Z){let W=new URLPattern({pathname:X});if(W.test({pathname:K.topic})){let w=W.exec({pathname:K.topic})?.pathname.groups,$=new Q;if(await $.subscribe.call($,w))J.subscribe(K.topic);break}}}if(K.type==="broadcast")J.publish(K.topic,JSON.stringify({topic:K.topic,data:K.payload}));if(K.type==="unsubscribe")J.unsubscribe(K.topic)}run(J,Y){let K=J.get("Cookie"),Z=new Map;if(K){let X=K.split(";");for(let Q of X){let[W,w]=Q.split("=");Z.set(W.trim(),w.trim())}}this.context.run({headers:J,cookies:Z},Y)}}class V8 extends y0{static getFacadeAccessor(){return q6}static channel(J,Y){let K=this.getFacadeRoot(),Z=K.channels[J];if(!Z)return console.error(`Channel ${J} not found`),{publish:()=>{}};let X=new Z;return{publish:(Q,W=!1)=>{let w=i0(J,Y);K.publish(w,JSON.stringify({topic:w,data:X.publish(Q)}),W)}}}}class f1 extends y0{static getFacadeAccessor(){return h0}static async user(){let J=U0.getStore(),Y=V8.getFacadeRoot().context.getStore(),K="",Z="";if(J?.req)K=J.req.cookies.get("access_token"),Z=J.req.headers.get("User-Agent");if(Y?.cookies)Z=Y.headers.get("User-Agent"),K=Y.cookies.get("access_token");let X=J?.user;if(!X)X=(await this.getFacadeRoot().getSession(K,Z))?.user,J?.setUser(X);if(X)return X;throw new b4}static async guard(J){let Y=await f1.user();if(!Y)throw new B8;try{if(!await J(Y))throw new B8}catch(K){throw new B8}}static async guardSafe(J){let Y=await f1.user();if(!Y)return!1;try{return await J(Y)}catch(K){return!1}}static async authenticate(J){return await this.getFacadeRoot().authenticate(J)}static async createMagicLink(J){return await this.getFacadeRoot().createMagicLinkToken(J)}}class B5 extends y0{static getFacadeAccessor(){return p0}static getSupportedLocales(){return this.getFacadeRoot().supportedLocales}static getDefaultLocale(){return this.getFacadeRoot().defaultLocale}static locale(){let J=this.getFacadeRoot(),Y=U0.getStore();if(Y)return J.detectLocale(Y.req);return J.defaultLocale}static setLocale(J=B5.locale()){let Y=this.getFacadeRoot(),K=J;if(!Y.supportedLocales.includes(J))K=Y.defaultLocale;return U0.getStore().setCookie("i18n-locale",K,{expires:new Date(Date.now()+31536000000),secure:!1,httpOnly:!1}),K}}import kK from"sharp";import{Buffer as yK}from"buffer";class M6{async read(J){let Y=typeof J==="string"?{name:J}:J,K=await this.fetch({name:Y.name,bucket:Y.bucket});if(!K.ok)throw new G5(Y.name);let Z=K.headers.get("Content-Type")??"application/octet-stream",X=K.headers.get("ETag")??void 0,Q=K.headers.get("Last-Modified"),W=Q?new Date(Q):void 0;if(Y.range){let z=await K.blob();return{body:z,start:0,end:z.size-1,total:z.size,partial:!1,type:Z,etag:X,lastModified:W,name:Y.name}}let w=Number(K.headers.get("Content-Length")),$=Number.isFinite(w)?w:0;return{body:K.body,start:0,end:$-1,total:$,partial:!1,type:Z,etag:X,lastModified:W,name:Y.name}}async size(J){let Y=typeof J==="string"?J:J.name,K=typeof J==="string"?void 0:J.bucket,Z=await this.fetch({name:Y,bucket:K});if(!Z.ok)throw new G5(Y);let X=Number(Z.headers.get("Content-Length"));if(Number.isFinite(X))return await Z.body?.cancel(),X;return(await Z.blob()).size}}import{readdir as vK}from"fs/promises";class N6 extends M6{folderPath;constructor(J=`${process.env.ROOT_DIR}/storage`){super();this.folderPath=J}async put(J){let Y,K;if(J instanceof Blob)Y=J,K=`${Bun.randomUUIDv7()}.${J.type.split("/")[1].split(";")[0]}`;else Y=J.body,K=J.name;let Z=Y instanceof Buffer?Y:Y instanceof Blob||Y instanceof File?Buffer.from(await Y.arrayBuffer()):"",X=`${this.folderPath}/${K}`;return await Bun.write(X,Z),K}async fetch(J){let Y=process.env.BUCKET_NAME,K;if(typeof J==="string")K=J;else Y=J.bucket??Y,K=J.name;if(!K)throw Error("Object name has to be specified");let Z=`${this.folderPath}/${K}`,X=Bun.file(Z),Q=Bun.file(Z).stream(),W=new Date(X.lastModified).toUTCString();return new Response(Q,{headers:{"Content-Type":X.type,"Content-Length":String(X.size),"Cache-Control":"private, max-age=12000, must-revalidate","Last-Modified":W}})}async read(J){let Y=typeof J==="string"?{name:J}:J,{name:K,range:Z=null}=Y;if(!K)throw Error("Object name has to be specified");let X=Bun.file(`${this.folderPath}/${K}`);if(!await X.exists())throw new G5(K);let Q=X.size,W=Z?f4(Z,Q):null;if(Z&&!W)throw new m4(Q);let w=W?.start??0,$=W?W.end:Q-1;return{body:W?X.slice(w,$+1):X,start:w,end:$,total:Q,partial:Boolean(W),type:X.type||"application/octet-stream",lastModified:new Date(X.lastModified),name:K}}async size(J){let Y=typeof J==="string"?J:J.name,K=Bun.file(`${this.folderPath}/${Y}`);if(!await K.exists())throw new G5(Y);return K.size}async list(){return await vK(this.folderPath)}}function Y3(J){return J}function c4(){return{driver:new N6}}class j6{static token="filesystem";driver;constructor(J={}){this.driver=J.driver??c4().driver}}class d4 extends y0{static getFacadeAccessor(){return j6}static async put(J){return this.getFacadeRoot().driver.put(J)}static async metadata(J){let Y=yK.from(await J.arrayBuffer());try{return await kK(Y).metadata()}catch{return{}}}static async fetch(J){return this.getFacadeRoot().driver.fetch(J)}static async read(J,Y={}){let K=typeof J==="string"?{name:J}:{...J},Z="range"in Y?Y.range??null:K.range!==void 0?K.range:U0.getStore()?.rangeRequest??null;return this.getFacadeRoot().driver.read({...K,range:Z})}static list(J){return this.getFacadeRoot().driver.list(J)}static delete(){}}function u4(J){return Object.fromEntries(Object.entries(J).filter(([,Y])=>{return Y!==null&&Y!==void 0}))}var gK=50;class L5{fetcher;entries=new Map;settleListener=null;failListener=null;shellAt=null;settledBacklog=[];shipped=new Set;requestStartedAt=performance.now();renderStartedAt=null;discoveryHintsMuted=!1;constructor(J){this.fetcher=J}elapsed(){return Math.round(performance.now()-this.requestStartedAt)}keyFor(J,Y){return[J,Y].filter((K)=>K.length>0).join("?")}markRenderStart(){if(this.renderStartedAt===null)this.renderStartedAt=performance.now()}markShell(){if(this.shellAt===null)this.shellAt=this.elapsed()}summarize(J){let Y=this.elapsed();return{shellAt:this.shellAt??Y,settledAt:Y,aborted:J,queries:Array.from(this.entries.values(),(K)=>({path:K.path,variantKey:K.variantKey,startedAt:K.startedAt,settledAt:K.settledAt,status:K.status,source:K.source}))}}onQueryFail(J){this.failListener=J}muteDiscoveryHints(){this.discoveryHintsMuted=!0}maybeLogLateDiscovery(J){if(!J.lateBy||this.discoveryHintsMuted)return;if(J.status!=="resolved")return;if(Bun.env.NODE_ENV==="production")return;let Y="";try{let X=JSON.stringify(J.data)?.length??0;Y=X>=1024?`${(X/1024).toFixed(1)} kB`:`${X} B`}catch{Y="an unserializable payload"}let K=(J.settledAt??0)-J.startedAt,Z=J.variantKey?`, { search: ${JSON.stringify(Object.fromEntries(new URLSearchParams(J.variantKey)))} }`:"";console.warn(`[gemi] useQuery("${J.patternPath}") was discovered ${J.lateBy}ms into the `+`server render \u2014 under a suspended segment, so its fetch (${K}ms, resolved ${Y}) could not overlap the others. It still streamed. If the query belongs on this route, \`Query.prefetch("${J.patternPath}"${Z})\` in the view `+"handler starts it at request time \u2014 but note prefetched data is also re-fetched and "+`streamed into every client-side navigation payload for the route, even when the client already holds it, so weigh that bandwidth against the ${Y}. If the data is only needed conditionally (a closed popover, a hidden tab), \`{ lazy: true }\` + \`trigger()\` avoids running it here at all. \`Query.noPrefetch()\` in the handler marks the omission intentional and silences this hint for the route.`)}read(J,Y){return this.entries.get(this.keyFor(J,Y))}ensure(J,Y={},K="render"){let Z=Y.params??{},X=new URLSearchParams(u4(Y.search??{}));X.delete("json"),X.sort();let Q=i0(J,Z),W=X.toString(),w=this.keyFor(Q,W),$=this.entries.get(w);if($)return $;let z;if(K==="render"&&this.renderStartedAt!==null){let V=Math.round(performance.now()-this.renderStartedAt);if(V>gK)z=V}let U,H=new Promise((V)=>{U=V}),A={path:Q,patternPath:J,variantKey:W,lateBy:z,status:"pending",promise:H,source:K,startedAt:this.elapsed()};return this.entries.set(w,A),this.fetcher(J,Z,X).then((V)=>{A.status="resolved",A.data=V},(V)=>{A.status="rejected",A.error=V}).then(()=>{if(A.settledAt=this.elapsed(),this.maybeLogLateDiscovery(A),A.status==="rejected"&&this.failListener)this.failListener(A);if(this.settleListener)this.settleListener(A);else this.settledBacklog.push(A);U()}),A}async allSettled(){let J=0;while(J!==this.entries.size)J=this.entries.size,await Promise.all(Array.from(this.entries.values(),(Y)=>Y.promise))}snapshotResolved(){let J={};for(let[Y,K]of this.entries){if(K.status!=="resolved")continue;this.shipped.add(Y),J[K.path]??={},J[K.path][K.variantKey]=K.data}return J}onSettle(J){this.settleListener=(K)=>{if(this.shipped.has(this.keyFor(K.path,K.variantKey)))return;J(K)};let Y=this.settledBacklog;this.settledBacklog=[];for(let K of Y)this.settleListener(K)}}class v5 extends Error{path;variantKey;status;body;constructor(J,Y,K,Z){super(typeof Z?.message==="string"?Z.message:`Request to /api${J} failed with status ${K}`);this.path=J;this.variantKey=Y;this.status=K;this.body=Z;this.name="QueryError"}}class E6 extends B0{schema={email:{required:"Email is required",string:"Invalid email",email:"Invalid email"},password:{required:"Password is required"}}}class i4 extends B0{schema={email:{required:"Email is required",email:"Invalid email"}}}class n4 extends B0{schema={password:{required:"Password is required",password:"Invalid password"}}}class x0 extends l4{async me(){let J=await f1.user();if(!J)throw new p4;return J}async verifyEmail(J=new B0){let Y=await J.input(),{userProvider:K}=X0(h0),Z=await K.findUserByVerificationToken(Y.get("token"));if(!Z)return{email:null};return await K.verifyUser(Z.email),{email:Z.email}}async signInWithMagicLink(J=new B0){let Y=X0(h0),{userProvider:K}=Y,Z=J.search.get("token"),X=decodeURIComponent(J.search.get("email")).toLowerCase().trim(),Q=null;try{Q=await K.findUserMagicLinkToken({email:X,token:Z})}catch($){return console.log($),{error:JSON.stringify($)}}if(!Q)return{error:"Invalid token"};await K.verifyUser(X),await K.deleteMagicLinkToken(X);let W=await Y.createOrUpdateSession({email:X}),w=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token",W.token,{expires:W.expiresAt,secure:!w.origin.includes("localhost"),httpOnly:!0}),await Y.config.onSignIn(W,J.search.toJSON()),{session:W}}async signInWithPinV2(J=new B0){let Y=X0(h0),{userProvider:K}=Y,Z=await J.input(),{email:X,pin:Q}=Z.toJSON(),W=X.toLowerCase().trim();if(!await K.findUserMagicLinkToken({email:W,pin:Q}))throw new Y1({pin:["Invalid pin"]});await K.deleteMagicLinkToken(W),await K.verifyUser(W);let $=await Y.createOrUpdateSessionV2({email:W}),z=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token",$.token,{expires:$.expiresAt,secure:!z.origin.includes("localhost"),httpOnly:!0}),await Y.config.onSignIn($,J.search.toJSON()),$}async signInWithPin(J=new B0){let Y=X0(h0),{userProvider:K}=Y,Z=await J.input(),{email:X,pin:Q}=Z.toJSON(),W=X.toLowerCase().trim();if(!await K.findUserMagicLinkToken({email:W,pin:Q}))throw new Y1({pin:["Invalid pin"]});await K.deleteMagicLinkToken(W),await K.verifyUser(W);let $=await Y.createOrUpdateSession({email:W}),z=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token",$.token,{expires:$.expiresAt,secure:!z.origin.includes("localhost"),httpOnly:!0}),await Y.config.onSignIn($,J.search.toJSON()),{session:$}}async signInV2(J=new E6){let Y=new URL(J.rawRequest.url),K=await J.input(),{email:Z,password:X}=K.toJSON(),Q=Z.toLowerCase().trim(),W=X0(h0),w=await W.userProvider.findUserByEmailAddress(Q,W.config.verifyEmail);if(!w)throw new Y1({invalid_credentials:["Invalid credentials"]});if(!await W.config.verifyPassword(X,w.password))throw new Y1({invalid_credentials:["Invalid credentials"]});let z=await W.createOrUpdateSessionV2({email:w.email,id:w.id});J.ctx().setCookie("access_token",z.token,{expires:z.expiresAt,secure:!Y.origin.includes("localhost"),httpOnly:!0}),await W.config.onSignIn(w,J.search.toJSON());let{password:U,...H}=w;return H}async signIn(J=new E6){let Y=await J.input(),{email:K,password:Z}=Y.toJSON(),X=K.toLowerCase().trim(),Q=X0(h0),W=await Q.userProvider.findUserByEmailAddress(X,Q.config.verifyEmail);if(!W)throw new Y1({invalid_credentials:["Invalid credentials"]});if(!await Q.config.verifyPassword(Z,W.password))throw new Y1({invalid_credentials:["Invalid credentials"]});let $=await Q.createOrUpdateSession({email:W.email,id:W.id}),z=new URL(J.rawRequest.url);J.ctx().setCookie("access_token",$.token,{expires:$.expiresAt,secure:!z.origin.includes("localhost"),httpOnly:!0}),await Q.config.onSignIn(W,J.search.toJSON());let{password:U,...H}=W;return H}async signUp(){let J=X0(h0),{userProvider:Y,config:K}=J,Z=new K.signUpRequest,X=await Z.input(),{email:Q,password:W,name:w,invitationId:$}=X.toJSON(),z=Q.toLowerCase().trim();if(await Y.findUserByEmailAddress(z,!1))throw new Y1({email:["Email address already exists"]});let H=await K.hashPassword(W),A=X0(p0).detectLocale(Z),V;if($)V=await Y.findInvitation($,z);let O,B="";if(V)O=await Y.transaction(async()=>{await Y.deleteInvitationById($);let L=await Y.createUser({email:z,name:w,password:H,emailVerifiedAt:new Date,locale:A});return await Y.createAccount({organizationId:V.organizationId,userId:L.id,organizationRole:V.role}),await K.onUserCreated(L),L});else B=await K.generateEmailVerificationToken(z),O=await Y.transaction(async()=>{let L=await Y.createUser({email:z,name:w,password:H,verificationToken:B,locale:A});return await K.onUserCreated(L),L});return await K.onSignUp(O,B,Z.search.toJSON()),O}async signOut(J=new B0){let Y=J.cookies.get("access_token"),K=await f1.user(),{userProvider:Z,config:X}=X0(h0);await Z.deleteSession({token:Y});let Q=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token","",{expires:new Date(0),secure:!Q.origin.includes("localhost"),httpOnly:!0}),await X.onSignOut(K),{}}async forgotPassword(J=new i4){let K=(await J.input()).get("email").toLowerCase().trim(),{userProvider:Z,config:X}=X0(h0),Q=await Z.findUserByEmailAddress(K,X.verifyEmail);if(!Q)return{};let W=await X.generateForgotPasswordToken(Q);return await Z.createPasswordResetToken({user:Q,token:W}),await X.onForgotPassword(Q,W),{}}async resetPassword(J=new n4){let{userProvider:Y,config:K}=X0(h0),Z=await J.input(),{password:X,token:Q}=Z.toJSON(),W=await Y.findPasswordResetToken({token:Q});if(!W)throw new Y1({token:["Invalid token"]});if(k5.Instant.from(W.createdAt.toISOString()).add({hours:24}).until(k5.Now.instant()).sign>=0)throw new Y1({token:["Token expired"]});await Y.deletePasswordResetToken({token:Q});let $=await Y.findUserByEmailAddress(W.user.email,K.verifyEmail);if(!$)throw new Y1({email:["User not found"]});let z=await K.hashPassword(X);return await Y.updateUserPassword({id:$.id,password:z}),await Y.deleteAllUserSessions($.id),await K.onResetPassword($),{}}async changePassword(J=new B0){let{userProvider:Y,config:K}=X0(h0),Z=await f1.user(),X=await J.input(),{oldPassword:Q,newPassword:W}=X.toJSON(),{password:w}=await Y.findUserByEmailAddress(Z.email,K.verifyEmail);if(!await K.verifyPassword(Q,w))throw new Y1({oldPassword:["Incorrect password"]});let z=await K.hashPassword(W);return await Y.updateUserPassword({id:Z.id,password:z}),await Y.deleteAllUserSessions(Z.id),{}}async oauthRedirect(J=new B0){let{provider:Y}=J.params,K=X0(h0).config.oauthProviders[Y];if(!K)throw Error(`Invalid provider: ${Y}`);return{destination:await K.getRedirectUrl(J)}}async oauthCallback(J=new B0){let{provider:Y}=J.params,K=X0(h0),{userProvider:Z,config:X}=K,Q=X.oauthProviders[Y],{email:W,name:w}=await Q.onCallback(J);if(!W)return console.error("Authentication error: No email returned from OAuth provider callback"),{session:null};let $=await Z.findUserByEmailAddress(W,!1),z=X0(p0).detectLocale(J),U="signin";if(!$)U="signup",$=await Z.transaction(async()=>{let V=await Z.createUser({email:W,name:w,locale:z,emailVerifiedAt:new Date});return await Z.createSocialAccount({provider:Y,userId:V.id,email:W,username:w,providerId:"",expiresAt:new Date,accessToken:"",refreshToken:""}),await X.onUserCreated(V),V});let H=await K.createOrUpdateSessionV2({email:$.email,id:$.id}),A=new URL(J.rawRequest.url);if(J.ctx().setCookie("access_token",H.token,{secure:!A.origin.includes("localhost"),httpOnly:!0,expires:H.expiresAt}),U==="signup")await X.onSignUp($,"",J.search.toJSON());else await X.onSignIn($,J.search.toJSON());return{session:H}}async createMagicLinkToken(J=new B0){let K=(await J.input()).get("email").toLowerCase().trim(),Z=X0(h0),{user:X,pin:Q,token:W}=await Z.createMagicLinkToken(K);if(X)return await Z.config.onMagicLinkCreated(X,{email:K,pin:Q,token:W}),{email:K};return{email:null}}}class o4 extends F6{middlewares=["cache:private"];routes={"/:provider":this.view("_Redirect",[x0,"oauthRedirect"]),"/:provider/callback":this.view("auth/OauthCallback",[x0,"oauthCallback"])}}class _6 extends F6{middlewares=["cache:private"];routes={"/sign-in/magic-link":this.view("auth/MagicLinkSignIn",[x0,"signInWithMagicLink"]),"/oauth":o4}}class I6 extends M1{middlewares=["cache:private"];routes={"/sign-in":this.post(x0,"signIn"),"/sign-in-v2":this.post(x0,"signInV2"),"/sign-up":this.post(x0,"signUp"),"/sign-out":this.post(x0,"signOut"),"/forgot-password":this.post(x0,"forgotPassword"),"/reset-password":this.post(x0,"resetPassword"),"/change-password":this.post(x0,"changePassword"),"/verify-email":this.post(x0,"verifyEmail"),"/me":this.get(x0,"me").middleware(["auth"]),"/magic-link":this.post(x0,"createMagicLinkToken"),"/sign-in-with-pin":this.post(x0,"signInWithPin"),"/sign-in-with-pin-v2":this.post(x0,"signInWithPinV2")}}class D6 extends M1{middlewares=["cache:private,0,no-store"];routes={"/set-locale/:locale":this.get(async()=>{let J=new B0,Y=J.params.locale;return console.log(`Setting locale to ${Y}`),J.ctx().setCookie("i18n-locale",Y),await X0(p0).onLocaleChange(Y),{locale:Y}}),"/translations/:locale/:scope*":this.get(async()=>{let J=new B0,Y=`/${J.params.scope??""}`,K=J.params.locale,Z=X0(p0),X=K??Z.detectLocale(J),Q=Z.getPageTranslations(X,Y);return J.ctx().setCookie("i18n-locale",X,{expires:new Date(Date.now()+31536000000)}),{[X]:Q}})}}import hK from"sharp";class R6{}class C6 extends R6{async resize(J,Y){let{height:K,width:Z,quality:X,fit:Q}=Y;return await hK(J).resize(Z>0?Z:void 0,K>0?K:void 0,{fit:Q}).webp({quality:X>0?X:80,force:!0}).toBuffer()}}function f3(J){return J}function r4(){return{driver:new C6}}class T6 extends M1{routes={"/resize":this.file(async()=>{let J=new B0,Y=new URL(J.rawRequest.url),K=Y.searchParams.get("url"),Z=Number(Y.searchParams.get("w")),X=Number(Y.searchParams.get("h")),Q=Y.searchParams.get("fit")??"cover",W=Number(Y.searchParams.get("q"));if(!K)return new Response(JSON.stringify({error:"url query parameter is required"}),{headers:{"Content-Type":"application/json"},status:404});let $=`${K.startsWith("http")?"":`http://localhost:${process.env.PORT||5173}`}${K}`,z=await fetch($);if(!z.ok)return new Response(JSON.stringify({error:"Image not found",info:$}),{headers:{"Content-Type":"application/json"},status:404});let U=Buffer.from(await z.arrayBuffer()),H=await X0(s4).resize(U,{height:X,width:Z,fit:Q,quality:W});z.headers.delete("Content-Type"),z.headers.delete("Content-Length");let A=new Headers(z.headers);return A.set("Content-Type","image/webp"),A.set("Content-Length",`${H.byteLength}`),new Response(new Uint8Array(H),{headers:A})})}}class s4{static token="image";driver;constructor(J={}){this.driver=J.driver??r4().driver}resize(J,Y){return this.driver.resize(J,Y)}}import{mkdir as P6,readdir as xK,access as bK}from"fs/promises";async function S6(J){try{return await bK(J),!0}catch{return!1}}class y5{config;static token="log";writer;isReady=!1;logsDirPath=`${process.env.ROOT_DIR}/storage/logs`;flushTimeout;fileSize=0;writerSize=0;isCreatingFile=!1;bootPromise=null;currentLogFilePath;constructor(J){this.config=J}boot(){if(!this.bootPromise)this.bootPromise=this.createStorage().then(()=>{this.isReady=!0});return this.bootPromise}async createStorage(){if(!process.env.ROOT_DIR)return;if(!await S6(`${process.env.ROOT_DIR}/storage`))await P6(`${process.env.ROOT_DIR}/storage`);if(!await S6(this.logsDirPath))await P6(this.logsDirPath);await this.newLogFile()}async newLogFile(){if(!await S6(this.logsDirPath))await P6(this.logsDirPath);if(this.isCreatingFile=!0,this.currentLogFilePath){this.writer.flush(),this.writer.end(),this.writer=null;let K=new File([await Bun.file(this.currentLogFilePath).arrayBuffer()],this.currentLogFilePath.split("/").pop(),{type:"text/plain"});this.config.onLogFileClosed(K),this.fileSize=0,this.writerSize=0}let Y=(await xK(this.logsDirPath)).sort().reverse()[0];if(Y){let K=Bun.file(`${this.logsDirPath}/${Y}`);if(K.size<this.config.maxFileSize)this.currentLogFilePath=`${this.logsDirPath}/${Y}`,this.writer=K.writer(),this.writer.write(await K.text()),this.writer.write(`
|
|
12
|
-
`),this.writer.flush(),this.fileSize=K.size}if(!this.writer){let K=`${new Date(Date.now()).toISOString()}.log`.replaceAll(":","-");this.currentLogFilePath=`${this.logsDirPath}/${K}`;let Z=Bun.file(`${this.logsDirPath}/${K}`);this.writer=Z.writer(),this.fileSize=0,this.writerSize=0}this.isCreatingFile=!1}async log(J,Y,K={}){if(!this.isReady)await this.boot();let Z=
|
|
13
|
-
`),this.config.onLogCreated(Q),this.tryFlush()}catch(w){console.error("Error writing log",w)}}async tryFlush(){if(this.fileSize>this.config.maxFileSize){if(!this.isCreatingFile)await this.newLogFile()}if(this.writerSize>this.config.maxFileSize/2)await this.writer.flush(),this.writerSize=0,await this.newLogFile();else clearTimeout(this.flushTimeout),this.flushTimeout=setTimeout(async()=>{await this.writer.flush(),this.writerSize=0},100)}}class v6 extends M1{middlewares=["cache:private,0"];routes={"/live":this.get(async()=>{let J=Bun.file(X0(y5).currentLogFilePath);return new Response(await J.text(),{headers:{"Content-Type":"text/plain"}})})}}function fK(J){let Y=new Map;for(let K of J)if(typeof K==="string"){let[Z,X=""]=K.split(":");if(Z.startsWith("-")){if(Y.has(Z.replace("-","")))Y.delete(Z.replace("-",""))}else Y.set(Z,X.split(",").filter(Boolean))}else Y.set(K,[]);return Y}class g5{config;static token="middleware";constructor(J){this.config=J}get aliases(){return this.config.aliases}runMiddleware(J){let Y=new B0;return Array.from(fK(J).entries()).map(([K,Z])=>{if(typeof K==="string"){let X=this.aliases[K];if(X){let Q=new X(Y);return()=>Q.run.call(Q,...Z)}}else{if(a4(K)){let X=new K(Y);return X.run.bind(X)}return K}}).filter(Boolean).reduce((K,Z)=>{return async()=>{return{...await K(),...await Z()}}},()=>Promise.resolve({}))()}}function KB(J){return J}function t4(){return{onRequestStart:()=>{},onRequestEnd:()=>{},onRequestFail:()=>{}}}function e4(){return{partialRendering:!0,onRequestStart:()=>{},onRequestEnd:()=>{},onRequestFail:()=>{},onStreamComplete:()=>{}}}function mK(J){return"run"in J}function cK(J){return Object.hasOwn(J,"get")||Object.hasOwn(J,"post")||Object.hasOwn(J,"put")||Object.hasOwn(J,"delete")}function dK(J){return Object.hasOwn(J,"first")&&Object.hasOwn(J,"second")}function uK(J){if("__brand"in J)return J.__brand==="ApiRouter";return!1}function lK(J){if("__internal_brand"in J)return J.__internal_brand==="ProxyHandler";return!1}function pK(J){if("__internal_brand"in J)return J.__internal_brand==="StreamHandler";return!1}function k6(J,Y="",K=[]){let Z={};function X(Q,W,w,$){let z=Q==="/"?"":Q,U=Y==="/"?"":Y,H=(`${U}${z}`===""?"/":`${U}${z}`).replaceAll("//","/");if(!Z[H])Z[H]={};Z[H][W.toUpperCase()]={exec:w,middleware:[...K,...$]},Z[H].OPTIONS={exec:()=>{let V=new B0().ctx().headers;return new Response(null,{headers:V,status:204})},middleware:[]}}for(let[Q,W]of Object.entries(J)){if(lK(W)){let w=W;for(let $ of["GET","POST","PUT","DELETE"])X(Q,$,w.run.bind(w),[]);continue}if(mK(W)){let w=W,$=w.method,z=w.middlewares,U=w.run.bind(w);if(X(Q,$,U,z),pK(W))X(Q,"HEAD",U,z)}if(cK(W))for(let[w,$]of Object.entries(W)){let z=$.middlewares,U=$.run.bind($);X(Q,w,U,z)}if(uK(W)){let w=new W,$=k6(w.routes,`${Y}${Q}`,w.middlewares);for(let[z,U]of Object.entries($))Z[z.replaceAll("//","/")]=U}if(dK(W)){let{first:w,second:$}=W;for(let[z,U]of Object.entries(w)){let H=U.middlewares,A=U.run.bind(U),[V,...O]=Q.split("/").reverse();if(!V.startsWith(":"))throw Error("Resource route must end with a dynamic segment");X(O.reverse().join("/"),z,A,H)}for(let[z,U]of Object.entries($)){let H=U.middlewares,A=U.run.bind(U);X(Q,z,A,H)}}}return Object.fromEntries(Object.entries(Z).sort(([Q],[W])=>{let w=Q.split("/").length+Q.split(":").length,$=W.split("/").length+W.split(":").length;return w-$}))}var _7=z1(O7(),1),I7=z1(q7(),1),c6={};var XZ=5;var M7=12,QZ=13;var WZ=16,$Z=17;var wZ=22;var N7=28;var j7=31;var zZ=33,L8=34,UZ=35,f6=36,m6=37,D7=38,HZ=39,AZ=40,x5=41,VZ=42,G=0,q=1,w0=2,R7=3,_=4,BZ=[[_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,R7,_,_,_,_,_,_,_,_,_,_,_],[G,_,_,q,q,_,_,_,_,q,q,G,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[G,_,_,q,q,_,_,_,_,q,q,q,q,q,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[_,_,_,q,q,q,_,_,_,q,q,q,q,q,q,q,q,q,q,q,_,w0,_,q,q,q,q,q,q,q,q,q,q],[q,_,_,q,q,q,_,_,_,q,q,q,q,q,q,q,q,q,q,q,_,w0,_,q,q,q,q,q,q,q,q,q,q],[G,_,_,q,q,q,_,_,_,G,G,G,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[G,_,_,q,q,q,_,_,_,G,G,G,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[G,_,_,q,q,q,_,_,_,G,G,q,G,q,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[G,_,_,q,q,q,_,_,_,G,G,q,q,q,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[q,_,_,q,q,q,_,_,_,G,G,q,q,q,q,q,q,q,G,G,_,w0,_,q,q,q,q,q,G,q,q,q,G],[q,_,_,q,q,q,_,_,_,G,G,q,q,q,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[q,_,_,q,q,q,_,_,_,q,q,q,q,q,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[q,_,_,q,q,q,_,_,_,q,q,q,q,q,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[q,_,_,q,q,q,_,_,_,q,q,q,q,q,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[G,_,_,q,q,q,_,_,_,G,q,G,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[G,_,_,q,q,q,_,_,_,G,G,G,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[G,_,_,q,G,q,_,_,_,G,G,q,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[G,_,_,q,G,q,_,_,_,G,G,G,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[q,_,_,q,q,q,_,_,_,q,q,q,q,q,q,q,q,q,q,q,_,w0,_,q,q,q,q,q,q,q,q,q,G],[G,_,_,q,q,q,_,_,_,G,G,G,G,G,G,q,q,q,G,_,_,w0,_,G,G,G,G,G,G,G,G,q,G],[G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,_,G,G,G,G,G,G,G,G,G,G,G,G],[q,_,_,q,q,q,_,_,_,q,q,q,q,q,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[q,_,_,q,q,q,_,_,_,q,q,q,q,q,q,q,q,q,q,q,_,w0,_,q,q,q,q,q,q,q,q,q,q],[G,_,_,q,q,q,_,_,_,G,q,G,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,q,q,G,G,G,q,G],[G,_,_,q,q,q,_,_,_,G,q,G,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,G,q,G,G,G,q,G],[G,_,_,q,q,q,_,_,_,G,q,G,G,G,G,q,q,q,G,G,_,w0,_,q,q,q,q,G,G,G,G,q,G],[G,_,_,q,q,q,_,_,_,G,q,G,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,q,q,G,G,G,q,G],[G,_,_,q,q,q,_,_,_,G,q,G,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,G,q,G,G,G,q,G],[G,_,_,q,q,q,_,_,_,G,G,G,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,q,G,G,q,G],[G,_,_,q,q,q,_,_,_,G,q,G,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,q,q,G],[G,_,_,q,q,q,_,_,_,G,q,G,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[q,_,_,q,q,q,_,_,_,q,q,q,q,q,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[G,_,_,q,q,G,_,_,_,G,G,G,G,G,G,G,G,G,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G]],GZ=I7.default.toByteArray("AAgOAAAAAAAQ4QAAAQ0P8vDtnQuMXUUZx+eyu7d7797d9m5bHoWltKVUlsjLWE0VJNigQoMVqkStEoNQQUl5GIo1KKmogEgqkKbBRki72lYabZMGKoGAjQRtJJDaCCIRiiigREBQS3z+xzOTnZ3O+3HOhd5NfpkzZx7fN9988zivu2M9hGwB28F94DnwEngd/Asc1EtIs9c/bIPDwCxwLDgezHcodyo4w5C+CCwBS8FnwSXgCnA1uFbI93XwbXAbWAfWgx+CzWAb+An4KfgFeAzsYWWfYuFz4CXwGvgb+Dfo6yNkEEwGh4CZYB44FpwI3g1OY+kfBItZOo2fB84Hy8DF4HJwNbiWpV8PVoO1LH4n2NRXyN+KcAd4kNVP9XsY4aPgcfAbsBfs6SniL4K/sPjfEf6HlanXCRkCw2BGvUh/keWfXS/CY+pFXs7x9XHmM94LTmWIeU2cgbxnS/k/B3kf86jDhU8L9V2E40vAFWAlWFUfb++NOL4F3C7JX4/4GiE+hvgWsF0oS7mXldspnN+F493gyXrh9xTav0cg3EvzgVfBG6wsmVSEkxBOBgdPGpd7JI6PnqRvJ68/xlbHof53gPeA94OzwLngk+ACsAwsByvASrAK3MB0Ws3CtQjvBJvAVrADPMDSHkb4CNijaccTwvnf4fiPEs8Lxy+D18A/QU8/xjgYBjPAbDAKTgYLwOngTHAO+EQ/8wuEF4EvsPiVCFf2+9tsFStzA8LVHuXXBsi6QyqzUYiPMR/7Mc7dAx7oL8bzw/3u/Bw8Bp4Az4AXwCtgHzsmDXP5fiF9iiVvly5d0sHngar16NKlS5cuXbp06fLmYlqHXrcd3ph4P0THUY3iXh49novju4S0tzfs5d+JPKewfAsRntZb3K9ZhOMlrO6lCC8An28U9+OuovcPcPxlVu5rCL/VmHh/iHIrzn3fIPu7SN8Axmg+8AOwEWwCm7tp3bRuWjetm5Y8bSu4B9zbKO6ZVsnORrVU3f4uXTqZ2H3sLoyx3eDXjfDndE9qyj6L838CfwVvgFpzYnof4oNgOhgBc8Fos9DrZIQLmtXPP1MmF6wGj4H+KXoWguvADkXaPil+YpuQy8Am8Ey7ODdtmJDF4HowBp4De6HDTNjhfHAHeBr0DBBy0kDxfPbcgSIusgrcWhtnJ8vL+TPix7UIOQtcBq4C28Cr4KRBnANbwSuDE+s50JgyNNFuXbp06XIgsXjIvPafjvXozKY+fVFz/z0LT1uCtKVSWbrOLWPnztG8e0Xfy7ol8XtZJi7WtG+5od2UFXQ/A12vUeS7jp27yVKHjdsU9lXB869TyNvAzt0lpP2oWbwLdjiO78bx/Sz+EMJHwK9Y/LcIfw+eZ3F67/Hl5vh9xX80J+rwX8SvRDhpgL17iPAQMHNArfPrqHPewLheI+AERV6efwV418B4nOZ/H+IfYHV8GOF5LJ3eAz0fx8sM9S0fUNud39O9CulfGZhY5huI3wzWgNvBelbHZoTbNPVpfYjKQpkHwUNgl0LWblbnk0LbbDxr0OMFpL3iqWdu9nWYPlVAWkXY39LnGdCkDbeqv1YNbfcMQ3t9oe8lzm6NH9N1ZB6Ln4BwfkJZJk7RyFnYKt6b/JDQXx9p5X+eFdqOjzM9P9MB/lUlFzr20aXIdzlY4dmn9F3YqtvoO76/2hp/D/xA5Zue88nNyL8GbFbs075X0tyUig3Qd2MCnf//HjnzpbsR3g9+1kHzzVjdnE71/qVBX9rGPUh/ysNWe1neFzvIDi5zAufV1sT0N0poR22wkFUfTOPfA4N2mbZ5fSrqOHSw+IbkSBbOGSzSRgf91/GTUWYBOB2cIZQ/G8cfBZ8CFwrnL8XxF8FKcA24jqXdiPA7Qr61OF7H4mMItwzuv2/YLth1ISt3Hzu3k4W7EH5JqPdRHD/O4k+z8A8IX5Lq3y7Z4nXE9xn6kX6vQ4bKfy+ok+hH+xf3hq9dnTTHhjKd2GmDuWA242iHMq4cC7A8kJ7i8o1+skSa7Jieo38HCWnoNjKFhdSFBxzpZ7QE6lI8N4S14aASZcryaV/WWHw66f6NHuCoxuQxmvM56GX9QMd8Q4D65ywGP+ZzRJuM+zQvx/MOS2VFeqQ4IXnH26zM9Xe6/E6D+4foAzzuajPZp8Qyw5ayZVDWuH0z0BtYRkeIDqH9KO9VbH1btd/lhNqCzvl8zeLnG0S/hnU6baHfpiuO6yy0rd+DHURo/zYF5H26j03rQsip2ndzz82u1z9N4VjWKWeb68Tedpt95HRVXp7H1R6p+/Wt4FPy/PpWwscOLRJ+PVWF/+W0iVyGzs18TIvXkOJ1Wxm66vSXz+vylenrZcj1ub439W+K8RNCGTJi2p/TJ1K23VaXr35tRpnzmjxequgfcfyk6B/TGBVlyedsNgpdd/h+W1U3P99QyFPNo1X3TwpM/WLTIWYfoBqXrv6iskHZ/RFr79R6hIyHBrH3f1nrUVnjP8SnZZ+rYtzr9Exld5MNbPNErusAPg+77u/eDOPftU9yj39TH7rezxd1LvsZQJlzkWlOirG/79zjMj/mtHUKu7vKy+3/LnXr9okyKedjX5/0He9iP/j63LwOQdarEVlfy8OO/Lqw023j6xcqmwxLiOd6heM2i9cV9LJy8jMJ23yQ+rpbfu7EQ/pXE8KYvUSqvVnb4XzZa6LrHMXHR+zcLvqWbm/Bn0/HzIs6fWPHoat8XfnDKmZGxRxeMbn2UqZ5Q94nmcZRbqqUXbZ8+lcjE+cPX11t814orvvAXNcG8vqj2vvk1MGn3anlj0bIT72v47bvE+Lc98T9b6r7AKn6j+8Duf7D0nnZx/j7Zjn0j9nbpSTndaLr9WNLivP+iN23xF7L+fqv6ZouFyb78jxVXvv5jJ9YUs9/sddO8h7KNg5jrhfaJGztT6G7KF+1d6yCmD5Kdb2fan60rSc552fZr3zeQ9DpnPp+Si5cx5Ktv2QfSzF/mMbWdOm46rFI4XstnU9xeqX4NKb7TKEdcr6pZOK3ID1k/LvFHkVczEuZLEDr499YqvqBym1aEHWgcvoYOtv0M91qQl5TfpO/in6rWx8OVpT1Wedkv3f5xom3T/xeR/6Gx6V86PWAOB4bBpqWdN+yTcVxjIyGRz/FrDGu6w/3d7kPm8StX8RyPu+uuvpNju/vTLJV37GpvoM0oZPnW87VLnL/5pDno1NoW1R6yedU6TyUv3u19a3KFnIbTLYz+ZCLP4T0tU1uivFgso0pnsJ/UtXvarNY28Xq5cvkBDrQP/E5ZaiuQwwfmTlsOiQRU1fMuqrDd/3ISSuwjOwXOfTyGUMpZIXq4GpLn3pUcdfzch2x7XO1u2uZHOPb1G6b3Xg9PH1IIWeEpJlPQtqos2EKW8b0u8rnuP1UeVLoXJb9be0uG9nnbchjU+XTszT5VeNBThPHnc5OKj1U9aj0GTHIVaGy1YhEWT4ixns00DT+XEzWn/7VAsIc63Cov3OdyhwjrnaqQqZvWKXdypRdlq+k8msZ031U+Rm4fA+3TtyeR9hwfW9G9yxDN0fZMN33F+9TE6md4hwoxumfaUzI9fN3PFT3xVV2msrQ3UsnChm6Nulk8TndpS28D3zX9tTIPsF/z7Am5OkTjm1tI1JZW74+4VgsZ0N3L1yXV3WeP5uR7TGHHdvC3JQlxybfpd22tDlk/2eofRK8TzrN/qnar/K/OUTth6I/+jAnEptNbPvFHP2gs40N3+dfMWtwqvVct7/wfd8gtQ7imifial9ZJ9/3IHLYU6eDj3+4PhsNhX+vwvcWLnu6kGfEMe8DuciPfUfGZB8X/7HJy/Gefe5n+VRGFd/wyP2ta7/LO4yh/sbLV/k9lev6kfO9Dt/5U67b1/6u/epqB1U9Me23jfHY9sscAg4tkbLl+e4/U36rJ9ddxfd6sg5vq5ice42Wpk/pb9FOJ36/W9tpv4kbC79nUbZceX8Zu6/qJ+P3WvhvA8v3reh7Jbn2d6rrNC7XNZTLma4Ba0JI9efX2uLzF5scG/w9UNU1ZxW+ymUfzELeTllXlQ1rUuhzjS5fp9c964iFBOqeSz63bU065nZKdU+mDEz3qHIjjifquw0pnb/raRtvrnsYcb46ihT3taoYz6brdNW9l6rWRnE/navdPn1XlR1km7hcz1WlH/elKuSOSvLLuE8U6m8uzwRdfcGl73VyTHuyMvzJ1Sa2cWDTP/Z63Kc94n2B1PYr24dz1JlyHLlcP+S4B6vD1c9EW4q2LWstCvUjeVy63k/LMYdUNd5D1xQfvVTzX1VjkMsUv88N8VH5fReVn/Fjn++/h6X6Q8a6b1/q3g/i/ewi0/Scs8zxXeV6mWIOUPlPzBgdFerW+bZrm2P18dnjuK6HunEp+rHvPMXbr+sHVb/lnL+pTP57jPw9Cvk3PW178JD9qChfzuvTf7Htl38L1QUf/VKu9SFjwWbTWPvFEvu7Uq76y7+31g6QlYPc669pbsm9Xur2LWI9Pu8ypfDXqm3A2z8s1FWGn4ntL9NfQu2oSlftX9uetvTtv7J8Ql4zxfXGZ3zk8PeQ9w59x2uMfqI8/q5eKh/l9cb2rwsu9rSNl06ZP2Pmxtz+rNMx93yno0n2/82rVH7rQ+y9P15H6FyRun9ViH81ATmffI7nJ5r8uXXW6enbP6b/B8/l5OifVHYLnb9S39s2zcc+Ph+rh8+eQgVPS72elzGWY/tUtbbabBpDiI7yN1q6/4th2y+ErAc5+9BVvu/7KamJbWNZeuqI/R4tRf+YyD1HmOZM1bMV3/14Sn10c0Xu+Sj1nOXb5jL73ncdy02uvlXZNde65dOHYl7Vs4KYuS6FzWLn2zJlpZqPXPVPOa5yzKOyn1VhT9lmMfdbfH7D11Wf2PXN5h9y+dD287+qxgSnaYmnIrRtIb8pJe6/Uv9OVer6Whn0zfGO/BEloZI9ojmfAlUflClDd178bTmVHVTpZXOkAlk/lb42UujmI89HH5V+cl7XtowY6vTxLVWok6UrGzoGTHN+bB+6ri05687VNpvfuvRfaP2uMlNQth1D5JjGelm/8yn+9p3p/7qk9gnfeddXZmq/Sm333PJT659Kv1zjNbZ9uv2Oi//67CV8/N1nj1DmviyXDNVeJkaeaX8UsyesYg8cu2+NvdaPfb+lLDu5tvt/"),LZ=new _7.default(GZ),E7=function(J){switch(J){case zZ:return M7;case HZ:case AZ:case VZ:return M7;case UZ:return XZ;default:return J}},F7=function(J){switch(J){case m6:case D7:return L8;case x5:return wZ;default:return J}};class O8{constructor(J,Y=!1){this.position=J,this.required=Y}}class C7{nextCodePoint(){let J=this.string.charCodeAt(this.pos++),Y=this.string.charCodeAt(this.pos);if(55296<=J&&J<=56319&&56320<=Y&&Y<=57343)return this.pos++,(J-55296)*1024+(Y-56320)+65536;return J}nextCharClass(){return E7(LZ.get(this.nextCodePoint()))}getSimpleBreak(){switch(this.nextClass){case x5:return!1;case L8:case m6:case D7:return this.curClass=L8,!1;case f6:return this.curClass=f6,!1}return null}getPairTableBreak(J){let Y=!1;switch(BZ[this.curClass][this.nextClass]){case G:Y=!0;break;case q:Y=J===x5;break;case w0:if(Y=J===x5,!Y)return Y=!1,Y;break;case R7:if(J!==x5)return Y;break;case _:break}if(this.LB8a)Y=!1;if(this.LB21a&&(this.curClass===WZ||this.curClass===$Z))Y=!1,this.LB21a=!1;else this.LB21a=this.curClass===QZ;if(this.curClass===N7){if(this.LB30a++,this.LB30a==2&&this.nextClass===N7)Y=!0,this.LB30a=0}else this.LB30a=0;return this.curClass=this.nextClass,Y}nextBreak(){if(this.curClass==null){let J=this.nextCharClass();this.curClass=F7(J),this.nextClass=J,this.LB8a=J===j7,this.LB30a=0}while(this.pos<this.string.length){this.lastPos=this.pos;let J=this.nextClass;if(this.nextClass=this.nextCharClass(),this.curClass===L8||this.curClass===f6&&this.nextClass!==m6)return this.curClass=F7(E7(this.nextClass)),new O8(this.lastPos,!0);let Y=this.getSimpleBreak();if(Y===null)Y=this.getPairTableBreak(J);if(this.LB8a=this.nextClass===j7,Y)return new O8(this.lastPos)}if(this.lastPos<this.string.length)return this.lastPos=this.string.length,new O8(this.string.length);return null}constructor(J){this.string=J,this.pos=0,this.lastPos=0,this.curClass=null,this.nextClass=null,this.LB8a=!1,this.LB21a=!1,this.LB30a=0}}c6=C7;var L1=z1(F8(),1),RY=z1(W2(),1),CY=z1(w2(),1);var B2=z1(U2(),1),G2=z1(A2(),1),qQ=/^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/,MQ=new RegExp(qQ,"i"),w9="-?\\d*(?:\\.\\d+)",N5=`(${w9}?)`,E1=`(${w9}?%)`,j5=`(${w9}?%?)`,NQ=`^
|
|
11
|
+
*/var bQ=/["'&<>]/;L2.exports=fQ;function fQ(J){var Y=""+J,K=bQ.exec(Y);if(!K)return Y;var Z,X="",Q=0,W=0;for(Q=K.index;Q<Y.length;Q++){switch(Y.charCodeAt(Q)){case 34:Z=""";break;case 38:Z="&";break;case 39:Z="'";break;case 60:Z="<";break;case 62:Z=">";break;default:continue}if(W!==Q)X+=Y.substring(W,Q);W=Q+1,X+=Z}return W!==Q?X+Y.substring(W,Q):X}});import{AsyncLocalStorage as SK}from"async_hooks";class M6{config;static token="broadcast";publishCb;context=new SK;constructor(J){this.config=J}get channels(){return this.config.channels}onPublish(J){this.publishCb=J}publish(...J){let[Y,K,Z]=J;this.publishCb(Y,K,Z)}async handleMessage(J,Y){let K=JSON.parse(Y);if(K.type==="subscribe"){let Z=Object.entries(this.channels).sort(([X],[Q])=>X.length-Q.length);for(let[X,Q]of Z){let W=new URLPattern({pathname:X});if(W.test({pathname:K.topic})){let w=W.exec({pathname:K.topic})?.pathname.groups,$=new Q;if(await $.subscribe.call($,w))J.subscribe(K.topic);break}}}if(K.type==="broadcast")J.publish(K.topic,JSON.stringify({topic:K.topic,data:K.payload}));if(K.type==="unsubscribe")J.unsubscribe(K.topic)}run(J,Y){let K=J.get("Cookie"),Z=new Map;if(K){let X=K.split(";");for(let Q of X){let[W,w]=Q.split("=");Z.set(W.trim(),w.trim())}}this.context.run({headers:J,cookies:Z},Y)}}class A8 extends l0{static getFacadeAccessor(){return M6}static channel(J,Y){let K=this.getFacadeRoot(),Z=K.channels[J];if(!Z)return console.error(`Channel ${J} not found`),{publish:()=>{}};let X=new Z;return{publish:(Q,W=!1)=>{let w=p0(J,Y);K.publish(w,JSON.stringify({topic:w,data:X.publish(Q)}),W)}}}}class f1 extends l0{static getFacadeAccessor(){return h0}static async user(){let J=L0.getStore(),Y=A8.getFacadeRoot().context.getStore(),K="",Z="";if(J?.req)K=J.req.cookies.get("access_token"),Z=J.req.headers.get("User-Agent");if(Y?.cookies)Z=Y.headers.get("User-Agent"),K=Y.cookies.get("access_token");let X=J?.user;if(!X)X=(await this.getFacadeRoot().getSession(K,Z))?.user,J?.setUser(X);if(X)return X;throw new b4}static async guard(J){let Y=await f1.user();if(!Y)throw new V8;try{if(!await J(Y))throw new V8}catch(K){throw new V8}}static async guardSafe(J){let Y=await f1.user();if(!Y)return!1;try{return await J(Y)}catch(K){return!1}}static async authenticate(J){return await this.getFacadeRoot().authenticate(J)}static async createMagicLink(J){return await this.getFacadeRoot().createMagicLinkToken(J)}}import kK from"sharp";import{Buffer as yK}from"buffer";class q6{async read(J){let Y=typeof J==="string"?{name:J}:J,K=await this.fetch({name:Y.name,bucket:Y.bucket});if(!K.ok)throw new B5(Y.name);let Z=K.headers.get("Content-Type")??"application/octet-stream",X=K.headers.get("ETag")??void 0,Q=K.headers.get("Last-Modified"),W=Q?new Date(Q):void 0;if(Y.range){let z=await K.blob();return{body:z,start:0,end:z.size-1,total:z.size,partial:!1,type:Z,etag:X,lastModified:W,name:Y.name}}let w=Number(K.headers.get("Content-Length")),$=Number.isFinite(w)?w:0;return{body:K.body,start:0,end:$-1,total:$,partial:!1,type:Z,etag:X,lastModified:W,name:Y.name}}async size(J){let Y=typeof J==="string"?J:J.name,K=typeof J==="string"?void 0:J.bucket,Z=await this.fetch({name:Y,bucket:K});if(!Z.ok)throw new B5(Y);let X=Number(Z.headers.get("Content-Length"));if(Number.isFinite(X))return await Z.body?.cancel(),X;return(await Z.blob()).size}}import{readdir as vK}from"fs/promises";class N6 extends q6{folderPath;constructor(J=`${process.env.ROOT_DIR}/storage`){super();this.folderPath=J}async put(J){let Y,K;if(J instanceof Blob)Y=J,K=`${Bun.randomUUIDv7()}.${J.type.split("/")[1].split(";")[0]}`;else Y=J.body,K=J.name;let Z=Y instanceof Buffer?Y:Y instanceof Blob||Y instanceof File?Buffer.from(await Y.arrayBuffer()):"",X=`${this.folderPath}/${K}`;return await Bun.write(X,Z),K}async fetch(J){let Y=process.env.BUCKET_NAME,K;if(typeof J==="string")K=J;else Y=J.bucket??Y,K=J.name;if(!K)throw Error("Object name has to be specified");let Z=`${this.folderPath}/${K}`,X=Bun.file(Z),Q=Bun.file(Z).stream(),W=new Date(X.lastModified).toUTCString();return new Response(Q,{headers:{"Content-Type":X.type,"Content-Length":String(X.size),"Cache-Control":"private, max-age=12000, must-revalidate","Last-Modified":W}})}async read(J){let Y=typeof J==="string"?{name:J}:J,{name:K,range:Z=null}=Y;if(!K)throw Error("Object name has to be specified");let X=Bun.file(`${this.folderPath}/${K}`);if(!await X.exists())throw new B5(K);let Q=X.size,W=Z?f4(Z,Q):null;if(Z&&!W)throw new m4(Q);let w=W?.start??0,$=W?W.end:Q-1;return{body:W?X.slice(w,$+1):X,start:w,end:$,total:Q,partial:Boolean(W),type:X.type||"application/octet-stream",lastModified:new Date(X.lastModified),name:K}}async size(J){let Y=typeof J==="string"?J:J.name,K=Bun.file(`${this.folderPath}/${Y}`);if(!await K.exists())throw new B5(Y);return K.size}async list(){return await vK(this.folderPath)}}function rV(J){return J}function c4(){return{driver:new N6}}class j6{static token="filesystem";driver;constructor(J={}){this.driver=J.driver??c4().driver}}class d4 extends l0{static getFacadeAccessor(){return j6}static async put(J){return this.getFacadeRoot().driver.put(J)}static async metadata(J){let Y=yK.from(await J.arrayBuffer());try{return await kK(Y).metadata()}catch{return{}}}static async fetch(J){return this.getFacadeRoot().driver.fetch(J)}static async read(J,Y={}){let K=typeof J==="string"?{name:J}:{...J},Z="range"in Y?Y.range??null:K.range!==void 0?K.range:L0.getStore()?.rangeRequest??null;return this.getFacadeRoot().driver.read({...K,range:Z})}static list(J){return this.getFacadeRoot().driver.list(J)}static delete(){}}function u4(J){return Object.fromEntries(Object.entries(J).filter(([,Y])=>{return Y!==null&&Y!==void 0}))}var hK=50;class G5{fetcher;entries=new Map;settleListener=null;failListener=null;shellAt=null;settledBacklog=[];shipped=new Set;requestStartedAt=performance.now();renderStartedAt=null;discoveryHintsMuted=!1;constructor(J){this.fetcher=J}elapsed(){return Math.round(performance.now()-this.requestStartedAt)}keyFor(J,Y){return[J,Y].filter((K)=>K.length>0).join("?")}markRenderStart(){if(this.renderStartedAt===null)this.renderStartedAt=performance.now()}markShell(){if(this.shellAt===null)this.shellAt=this.elapsed()}summarize(J){let Y=this.elapsed();return{shellAt:this.shellAt??Y,settledAt:Y,aborted:J,queries:Array.from(this.entries.values(),(K)=>({path:K.path,variantKey:K.variantKey,startedAt:K.startedAt,settledAt:K.settledAt,status:K.status,source:K.source}))}}onQueryFail(J){this.failListener=J}muteDiscoveryHints(){this.discoveryHintsMuted=!0}maybeLogLateDiscovery(J){if(!J.lateBy||this.discoveryHintsMuted)return;if(J.status!=="resolved")return;if(Bun.env.NODE_ENV==="production")return;let Y="";try{let X=JSON.stringify(J.data)?.length??0;Y=X>=1024?`${(X/1024).toFixed(1)} kB`:`${X} B`}catch{Y="an unserializable payload"}let K=(J.settledAt??0)-J.startedAt,Z=J.variantKey?`, { search: ${JSON.stringify(Object.fromEntries(new URLSearchParams(J.variantKey)))} }`:"";console.warn(`[gemi] useQuery("${J.patternPath}") was discovered ${J.lateBy}ms into the `+`server render \u2014 under a suspended segment, so its fetch (${K}ms, resolved ${Y}) could not overlap the others. It still streamed. If the query belongs on this route, \`Query.prefetch("${J.patternPath}"${Z})\` in the view `+"handler starts it at request time \u2014 but note prefetched data is also re-fetched and "+`streamed into every client-side navigation payload for the route, even when the client already holds it, so weigh that bandwidth against the ${Y}. If the data is only needed conditionally (a closed popover, a hidden tab), \`{ lazy: true }\` + \`trigger()\` avoids running it here at all. \`Query.noPrefetch()\` in the handler marks the omission intentional and silences this hint for the route.`)}read(J,Y){return this.entries.get(this.keyFor(J,Y))}ensure(J,Y={},K="render"){let Z=Y.params??{},X=new URLSearchParams(u4(Y.search??{}));X.delete("json"),X.sort();let Q=p0(J,Z),W=X.toString(),w=this.keyFor(Q,W),$=this.entries.get(w);if($)return $;let z;if(K==="render"&&this.renderStartedAt!==null){let V=Math.round(performance.now()-this.renderStartedAt);if(V>hK)z=V}let U,H=new Promise((V)=>{U=V}),A={path:Q,patternPath:J,variantKey:W,lateBy:z,status:"pending",promise:H,source:K,startedAt:this.elapsed()};return this.entries.set(w,A),this.fetcher(J,Z,X).then((V)=>{A.status="resolved",A.data=V},(V)=>{A.status="rejected",A.error=V}).then(()=>{if(A.settledAt=this.elapsed(),this.maybeLogLateDiscovery(A),A.status==="rejected"&&this.failListener)this.failListener(A);if(this.settleListener)this.settleListener(A);else this.settledBacklog.push(A);U()}),A}async allSettled(){let J=0;while(J!==this.entries.size)J=this.entries.size,await Promise.all(Array.from(this.entries.values(),(Y)=>Y.promise))}snapshotResolved(){let J={};for(let[Y,K]of this.entries){if(K.status!=="resolved")continue;this.shipped.add(Y),J[K.path]??={},J[K.path][K.variantKey]=K.data}return J}onSettle(J){this.settleListener=(K)=>{if(this.shipped.has(this.keyFor(K.path,K.variantKey)))return;J(K)};let Y=this.settledBacklog;this.settledBacklog=[];for(let K of Y)this.settleListener(K)}}class S5 extends Error{path;variantKey;status;body;constructor(J,Y,K,Z){super(typeof Z?.message==="string"?Z.message:`Request to /api${J} failed with status ${K}`);this.path=J;this.variantKey=Y;this.status=K;this.body=Z;this.name="QueryError"}}class E6 extends V0{schema={email:{required:"Email is required",string:"Invalid email",email:"Invalid email"},password:{required:"Password is required"}}}class i4 extends V0{schema={email:{required:"Email is required",email:"Invalid email"}}}class n4 extends V0{schema={password:{required:"Password is required",password:"Invalid password"}}}class g0 extends l4{async me(){let J=await f1.user();if(!J)throw new p4;return J}async verifyEmail(J=new V0){let Y=await J.input(),{userProvider:K}=X0(h0),Z=await K.findUserByVerificationToken(Y.get("token"));if(!Z)return{email:null};return await K.verifyUser(Z.email),{email:Z.email}}async signInWithMagicLink(J=new V0){let Y=X0(h0),{userProvider:K}=Y,Z=J.search.get("token"),X=decodeURIComponent(J.search.get("email")).toLowerCase().trim(),Q=null;try{Q=await K.findUserMagicLinkToken({email:X,token:Z})}catch($){return console.log($),{error:JSON.stringify($)}}if(!Q)return{error:"Invalid token"};await K.verifyUser(X),await K.deleteMagicLinkToken(X);let W=await Y.createOrUpdateSession({email:X}),w=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token",W.token,{expires:W.expiresAt,secure:!w.origin.includes("localhost"),httpOnly:!0}),await Y.config.onSignIn(W,J.search.toJSON()),{session:W}}async signInWithPinV2(J=new V0){let Y=X0(h0),{userProvider:K}=Y,Z=await J.input(),{email:X,pin:Q}=Z.toJSON(),W=X.toLowerCase().trim();if(!await K.findUserMagicLinkToken({email:W,pin:Q}))throw new Y1({pin:["Invalid pin"]});await K.deleteMagicLinkToken(W),await K.verifyUser(W);let $=await Y.createOrUpdateSessionV2({email:W}),z=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token",$.token,{expires:$.expiresAt,secure:!z.origin.includes("localhost"),httpOnly:!0}),await Y.config.onSignIn($,J.search.toJSON()),$}async signInWithPin(J=new V0){let Y=X0(h0),{userProvider:K}=Y,Z=await J.input(),{email:X,pin:Q}=Z.toJSON(),W=X.toLowerCase().trim();if(!await K.findUserMagicLinkToken({email:W,pin:Q}))throw new Y1({pin:["Invalid pin"]});await K.deleteMagicLinkToken(W),await K.verifyUser(W);let $=await Y.createOrUpdateSession({email:W}),z=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token",$.token,{expires:$.expiresAt,secure:!z.origin.includes("localhost"),httpOnly:!0}),await Y.config.onSignIn($,J.search.toJSON()),{session:$}}async signInV2(J=new E6){let Y=new URL(J.rawRequest.url),K=await J.input(),{email:Z,password:X}=K.toJSON(),Q=Z.toLowerCase().trim(),W=X0(h0),w=await W.userProvider.findUserByEmailAddress(Q,W.config.verifyEmail);if(!w)throw new Y1({invalid_credentials:["Invalid credentials"]});if(!await W.config.verifyPassword(X,w.password))throw new Y1({invalid_credentials:["Invalid credentials"]});let z=await W.createOrUpdateSessionV2({email:w.email,id:w.id});J.ctx().setCookie("access_token",z.token,{expires:z.expiresAt,secure:!Y.origin.includes("localhost"),httpOnly:!0}),await W.config.onSignIn(w,J.search.toJSON());let{password:U,...H}=w;return H}async signIn(J=new E6){let Y=await J.input(),{email:K,password:Z}=Y.toJSON(),X=K.toLowerCase().trim(),Q=X0(h0),W=await Q.userProvider.findUserByEmailAddress(X,Q.config.verifyEmail);if(!W)throw new Y1({invalid_credentials:["Invalid credentials"]});if(!await Q.config.verifyPassword(Z,W.password))throw new Y1({invalid_credentials:["Invalid credentials"]});let $=await Q.createOrUpdateSession({email:W.email,id:W.id}),z=new URL(J.rawRequest.url);J.ctx().setCookie("access_token",$.token,{expires:$.expiresAt,secure:!z.origin.includes("localhost"),httpOnly:!0}),await Q.config.onSignIn(W,J.search.toJSON());let{password:U,...H}=W;return H}async signUp(){let J=X0(h0),{userProvider:Y,config:K}=J,Z=new K.signUpRequest,X=await Z.input(),{email:Q,password:W,name:w,invitationId:$}=X.toJSON(),z=Q.toLowerCase().trim();if(await Y.findUserByEmailAddress(z,!1))throw new Y1({email:["Email address already exists"]});let H=await K.hashPassword(W),A=X0(o0).detectLocale(Z),V;if($)V=await Y.findInvitation($,z);let L,B="";if(V)L=await Y.transaction(async()=>{await Y.deleteInvitationById($);let O=await Y.createUser({email:z,name:w,password:H,emailVerifiedAt:new Date,locale:A});return await Y.createAccount({organizationId:V.organizationId,userId:O.id,organizationRole:V.role}),await K.onUserCreated(O),O});else B=await K.generateEmailVerificationToken(z),L=await Y.transaction(async()=>{let O=await Y.createUser({email:z,name:w,password:H,verificationToken:B,locale:A});return await K.onUserCreated(O),O});return await K.onSignUp(L,B,Z.search.toJSON()),L}async signOut(J=new V0){let Y=J.cookies.get("access_token"),K=await f1.user(),{userProvider:Z,config:X}=X0(h0);await Z.deleteSession({token:Y});let Q=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token","",{expires:new Date(0),secure:!Q.origin.includes("localhost"),httpOnly:!0}),await X.onSignOut(K),{}}async forgotPassword(J=new i4){let K=(await J.input()).get("email").toLowerCase().trim(),{userProvider:Z,config:X}=X0(h0),Q=await Z.findUserByEmailAddress(K,X.verifyEmail);if(!Q)return{};let W=await X.generateForgotPasswordToken(Q);return await Z.createPasswordResetToken({user:Q,token:W}),await X.onForgotPassword(Q,W),{}}async resetPassword(J=new n4){let{userProvider:Y,config:K}=X0(h0),Z=await J.input(),{password:X,token:Q}=Z.toJSON(),W=await Y.findPasswordResetToken({token:Q});if(!W)throw new Y1({token:["Invalid token"]});if(v5.Instant.from(W.createdAt.toISOString()).add({hours:24}).until(v5.Now.instant()).sign>=0)throw new Y1({token:["Token expired"]});await Y.deletePasswordResetToken({token:Q});let $=await Y.findUserByEmailAddress(W.user.email,K.verifyEmail);if(!$)throw new Y1({email:["User not found"]});let z=await K.hashPassword(X);return await Y.updateUserPassword({id:$.id,password:z}),await Y.deleteAllUserSessions($.id),await K.onResetPassword($),{}}async changePassword(J=new V0){let{userProvider:Y,config:K}=X0(h0),Z=await f1.user(),X=await J.input(),{oldPassword:Q,newPassword:W}=X.toJSON(),{password:w}=await Y.findUserByEmailAddress(Z.email,K.verifyEmail);if(!await K.verifyPassword(Q,w))throw new Y1({oldPassword:["Incorrect password"]});let z=await K.hashPassword(W);return await Y.updateUserPassword({id:Z.id,password:z}),await Y.deleteAllUserSessions(Z.id),{}}async oauthRedirect(J=new V0){let{provider:Y}=J.params,K=X0(h0).config.oauthProviders[Y];if(!K)throw Error(`Invalid provider: ${Y}`);return{destination:await K.getRedirectUrl(J)}}async oauthCallback(J=new V0){let{provider:Y}=J.params,K=X0(h0),{userProvider:Z,config:X}=K,Q=X.oauthProviders[Y],{email:W,name:w}=await Q.onCallback(J);if(!W)return console.error("Authentication error: No email returned from OAuth provider callback"),{session:null};let $=await Z.findUserByEmailAddress(W,!1),z=X0(o0).detectLocale(J),U="signin";if(!$)U="signup",$=await Z.transaction(async()=>{let V=await Z.createUser({email:W,name:w,locale:z,emailVerifiedAt:new Date});return await Z.createSocialAccount({provider:Y,userId:V.id,email:W,username:w,providerId:"",expiresAt:new Date,accessToken:"",refreshToken:""}),await X.onUserCreated(V),V});let H=await K.createOrUpdateSessionV2({email:$.email,id:$.id}),A=new URL(J.rawRequest.url);if(J.ctx().setCookie("access_token",H.token,{secure:!A.origin.includes("localhost"),httpOnly:!0,expires:H.expiresAt}),U==="signup")await X.onSignUp($,"",J.search.toJSON());else await X.onSignIn($,J.search.toJSON());return{session:H}}async createMagicLinkToken(J=new V0){let K=(await J.input()).get("email").toLowerCase().trim(),Z=X0(h0),{user:X,pin:Q,token:W}=await Z.createMagicLinkToken(K);if(X)return await Z.config.onMagicLinkCreated(X,{email:K,pin:Q,token:W}),{email:K};return{email:null}}}class o4 extends F6{middlewares=["cache:private"];routes={"/:provider":this.view("_Redirect",[g0,"oauthRedirect"]),"/:provider/callback":this.view("auth/OauthCallback",[g0,"oauthCallback"])}}class _6 extends F6{middlewares=["cache:private"];routes={"/sign-in/magic-link":this.view("auth/MagicLinkSignIn",[g0,"signInWithMagicLink"]),"/oauth":o4}}class I6 extends q1{middlewares=["cache:private"];routes={"/sign-in":this.post(g0,"signIn"),"/sign-in-v2":this.post(g0,"signInV2"),"/sign-up":this.post(g0,"signUp"),"/sign-out":this.post(g0,"signOut"),"/forgot-password":this.post(g0,"forgotPassword"),"/reset-password":this.post(g0,"resetPassword"),"/change-password":this.post(g0,"changePassword"),"/verify-email":this.post(g0,"verifyEmail"),"/me":this.get(g0,"me").middleware(["auth"]),"/magic-link":this.post(g0,"createMagicLinkToken"),"/sign-in-with-pin":this.post(g0,"signInWithPin"),"/sign-in-with-pin-v2":this.post(g0,"signInWithPinV2")}}class D6 extends q1{middlewares=["cache:private,0,no-store"];routes={"/set-locale/:locale":this.get(async()=>{let J=new V0,Y=J.params.locale;return console.log(`Setting locale to ${Y}`),J.ctx().setCookie("i18n-locale",Y),await X0(o0).onLocaleChange(Y),{locale:Y}}),"/translations/:locale/:scope*":this.get(async()=>{let J=new V0,Y=`/${J.params.scope??""}`,K=J.params.locale,Z=X0(o0),X=K??Z.detectLocale(J),Q=Z.getPageTranslations(X,Y);return J.ctx().setCookie("i18n-locale",X,{expires:new Date(Date.now()+31536000000)}),{[X]:Q}})}}import gK from"sharp";class R6{}class C6 extends R6{async resize(J,Y){let{height:K,width:Z,quality:X,fit:Q}=Y;return await gK(J).resize(Z>0?Z:void 0,K>0?K:void 0,{fit:Q}).webp({quality:X>0?X:80,force:!0}).toBuffer()}}function k3(J){return J}function r4(){return{driver:new C6}}class T6 extends q1{routes={"/resize":this.file(async()=>{let J=new V0,Y=new URL(J.rawRequest.url),K=Y.searchParams.get("url"),Z=Number(Y.searchParams.get("w")),X=Number(Y.searchParams.get("h")),Q=Y.searchParams.get("fit")??"cover",W=Number(Y.searchParams.get("q"));if(!K)return new Response(JSON.stringify({error:"url query parameter is required"}),{headers:{"Content-Type":"application/json"},status:404});let $=`${K.startsWith("http")?"":`http://localhost:${process.env.PORT||5173}`}${K}`,z=await fetch($);if(!z.ok)return new Response(JSON.stringify({error:"Image not found",info:$}),{headers:{"Content-Type":"application/json"},status:404});let U=Buffer.from(await z.arrayBuffer()),H=await X0(s4).resize(U,{height:X,width:Z,fit:Q,quality:W});z.headers.delete("Content-Type"),z.headers.delete("Content-Length");let A=new Headers(z.headers);return A.set("Content-Type","image/webp"),A.set("Content-Length",`${H.byteLength}`),new Response(new Uint8Array(H),{headers:A})})}}class s4{static token="image";driver;constructor(J={}){this.driver=J.driver??r4().driver}resize(J,Y){return this.driver.resize(J,Y)}}import{mkdir as P6,readdir as xK,access as bK}from"fs/promises";async function S6(J){try{return await bK(J),!0}catch{return!1}}class k5{config;static token="log";writer;isReady=!1;logsDirPath=`${process.env.ROOT_DIR}/storage/logs`;flushTimeout;fileSize=0;writerSize=0;isCreatingFile=!1;bootPromise=null;currentLogFilePath;constructor(J){this.config=J}boot(){if(!this.bootPromise)this.bootPromise=this.createStorage().then(()=>{this.isReady=!0});return this.bootPromise}async createStorage(){if(!process.env.ROOT_DIR)return;if(!await S6(`${process.env.ROOT_DIR}/storage`))await P6(`${process.env.ROOT_DIR}/storage`);if(!await S6(this.logsDirPath))await P6(this.logsDirPath);await this.newLogFile()}async newLogFile(){if(!await S6(this.logsDirPath))await P6(this.logsDirPath);if(this.isCreatingFile=!0,this.currentLogFilePath){this.writer.flush(),this.writer.end(),this.writer=null;let K=new File([await Bun.file(this.currentLogFilePath).arrayBuffer()],this.currentLogFilePath.split("/").pop(),{type:"text/plain"});this.config.onLogFileClosed(K),this.fileSize=0,this.writerSize=0}let Y=(await xK(this.logsDirPath)).sort().reverse()[0];if(Y){let K=Bun.file(`${this.logsDirPath}/${Y}`);if(K.size<this.config.maxFileSize)this.currentLogFilePath=`${this.logsDirPath}/${Y}`,this.writer=K.writer(),this.writer.write(await K.text()),this.writer.write(`
|
|
12
|
+
`),this.writer.flush(),this.fileSize=K.size}if(!this.writer){let K=`${new Date(Date.now()).toISOString()}.log`.replaceAll(":","-");this.currentLogFilePath=`${this.logsDirPath}/${K}`;let Z=Bun.file(`${this.logsDirPath}/${K}`);this.writer=Z.writer(),this.fileSize=0,this.writerSize=0}this.isCreatingFile=!1}async log(J,Y,K={}){if(!this.isReady)await this.boot();let Z=L0.getStore(),X={};if(Z)X={url:Z.req.rawRequest.url,method:Z.req.rawRequest.method,headers:Z.req.rawRequest.headers,body:Z.req.rawRequest.body};let Q={timestamp:new Date(Date.now()).toISOString(),env:Bun.env.NODE_ENV,level:J,message:Y,metadata:{...X,...K}},W="";try{W=JSON.stringify(Q)}catch(w){console.log("Error parsing log object",w)}this.writerSize+=W.length,this.fileSize+=W.length;try{this.writer.write(W),this.writer.write(`
|
|
13
|
+
`),this.config.onLogCreated(Q),this.tryFlush()}catch(w){console.error("Error writing log",w)}}async tryFlush(){if(this.fileSize>this.config.maxFileSize){if(!this.isCreatingFile)await this.newLogFile()}if(this.writerSize>this.config.maxFileSize/2)await this.writer.flush(),this.writerSize=0,await this.newLogFile();else clearTimeout(this.flushTimeout),this.flushTimeout=setTimeout(async()=>{await this.writer.flush(),this.writerSize=0},100)}}class v6 extends q1{middlewares=["cache:private,0"];routes={"/live":this.get(async()=>{let J=Bun.file(X0(k5).currentLogFilePath);return new Response(await J.text(),{headers:{"Content-Type":"text/plain"}})})}}function fK(J){let Y=new Map;for(let K of J)if(typeof K==="string"){let[Z,X=""]=K.split(":");if(Z.startsWith("-")){if(Y.has(Z.replace("-","")))Y.delete(Z.replace("-",""))}else Y.set(Z,X.split(",").filter(Boolean))}else Y.set(K,[]);return Y}class y5{config;static token="middleware";constructor(J){this.config=J}get aliases(){return this.config.aliases}runMiddleware(J){let Y=new V0;return Array.from(fK(J).entries()).map(([K,Z])=>{if(typeof K==="string"){let X=this.aliases[K];if(X){let Q=new X(Y);return()=>Q.run.call(Q,...Z)}}else{if(a4(K)){let X=new K(Y);return X.run.bind(X)}return K}}).filter(Boolean).reduce((K,Z)=>{return async()=>{return{...await K(),...await Z()}}},()=>Promise.resolve({}))()}}function s3(J){return J}function t4(){return{onRequestStart:()=>{},onRequestEnd:()=>{},onRequestFail:()=>{}}}function e4(){return{partialRendering:!0,onRequestStart:()=>{},onRequestEnd:()=>{},onRequestFail:()=>{},onStreamComplete:()=>{}}}function mK(J){return"run"in J}function cK(J){return Object.hasOwn(J,"get")||Object.hasOwn(J,"post")||Object.hasOwn(J,"put")||Object.hasOwn(J,"delete")}function dK(J){return Object.hasOwn(J,"first")&&Object.hasOwn(J,"second")}function uK(J){if("__brand"in J)return J.__brand==="ApiRouter";return!1}function lK(J){if("__internal_brand"in J)return J.__internal_brand==="ProxyHandler";return!1}function pK(J){if("__internal_brand"in J)return J.__internal_brand==="StreamHandler";return!1}function k6(J,Y="",K=[]){let Z={};function X(Q,W,w,$){let z=Q==="/"?"":Q,U=Y==="/"?"":Y,H=(`${U}${z}`===""?"/":`${U}${z}`).replaceAll("//","/");if(!Z[H])Z[H]={};Z[H][W.toUpperCase()]={exec:w,middleware:[...K,...$]},Z[H].OPTIONS={exec:()=>{let V=new V0().ctx().headers;return new Response(null,{headers:V,status:204})},middleware:[]}}for(let[Q,W]of Object.entries(J)){if(lK(W)){let w=W;for(let $ of["GET","POST","PUT","DELETE"])X(Q,$,w.run.bind(w),[]);continue}if(mK(W)){let w=W,$=w.method,z=w.middlewares,U=w.run.bind(w);if(X(Q,$,U,z),pK(W))X(Q,"HEAD",U,z)}if(cK(W))for(let[w,$]of Object.entries(W)){let z=$.middlewares,U=$.run.bind($);X(Q,w,U,z)}if(uK(W)){let w=new W,$=k6(w.routes,`${Y}${Q}`,w.middlewares);for(let[z,U]of Object.entries($))Z[z.replaceAll("//","/")]=U}if(dK(W)){let{first:w,second:$}=W;for(let[z,U]of Object.entries(w)){let H=U.middlewares,A=U.run.bind(U),[V,...L]=Q.split("/").reverse();if(!V.startsWith(":"))throw Error("Resource route must end with a dynamic segment");X(L.reverse().join("/"),z,A,H)}for(let[z,U]of Object.entries($)){let H=U.middlewares,A=U.run.bind(U);X(Q,z,A,H)}}}return Object.fromEntries(Object.entries(Z).sort(([Q],[W])=>{let w=Q.split("/").length+Q.split(":").length,$=W.split("/").length+W.split(":").length;return w-$}))}var _7=z1(L7(),1),I7=z1(M7(),1),c6={};var XZ=5;var q7=12,QZ=13;var WZ=16,$Z=17;var wZ=22;var N7=28;var j7=31;var zZ=33,G8=34,UZ=35,f6=36,m6=37,D7=38,HZ=39,AZ=40,g5=41,VZ=42,G=0,M=1,w0=2,R7=3,_=4,BZ=[[_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,R7,_,_,_,_,_,_,_,_,_,_,_],[G,_,_,M,M,_,_,_,_,M,M,G,G,G,G,M,M,M,G,G,_,w0,_,G,G,G,G,G,G,G,G,M,G],[G,_,_,M,M,_,_,_,_,M,M,M,M,M,G,M,M,M,G,G,_,w0,_,G,G,G,G,G,G,G,G,M,G],[_,_,_,M,M,M,_,_,_,M,M,M,M,M,M,M,M,M,M,M,_,w0,_,M,M,M,M,M,M,M,M,M,M],[M,_,_,M,M,M,_,_,_,M,M,M,M,M,M,M,M,M,M,M,_,w0,_,M,M,M,M,M,M,M,M,M,M],[G,_,_,M,M,M,_,_,_,G,G,G,G,G,G,M,M,M,G,G,_,w0,_,G,G,G,G,G,G,G,G,M,G],[G,_,_,M,M,M,_,_,_,G,G,G,G,G,G,M,M,M,G,G,_,w0,_,G,G,G,G,G,G,G,G,M,G],[G,_,_,M,M,M,_,_,_,G,G,M,G,M,G,M,M,M,G,G,_,w0,_,G,G,G,G,G,G,G,G,M,G],[G,_,_,M,M,M,_,_,_,G,G,M,M,M,G,M,M,M,G,G,_,w0,_,G,G,G,G,G,G,G,G,M,G],[M,_,_,M,M,M,_,_,_,G,G,M,M,M,M,M,M,M,G,G,_,w0,_,M,M,M,M,M,G,M,M,M,G],[M,_,_,M,M,M,_,_,_,G,G,M,M,M,G,M,M,M,G,G,_,w0,_,G,G,G,G,G,G,G,G,M,G],[M,_,_,M,M,M,_,_,_,M,M,M,M,M,G,M,M,M,G,G,_,w0,_,G,G,G,G,G,G,G,G,M,G],[M,_,_,M,M,M,_,_,_,M,M,M,M,M,G,M,M,M,G,G,_,w0,_,G,G,G,G,G,G,G,G,M,G],[M,_,_,M,M,M,_,_,_,M,M,M,M,M,G,M,M,M,G,G,_,w0,_,G,G,G,G,G,G,G,G,M,G],[G,_,_,M,M,M,_,_,_,G,M,G,G,G,G,M,M,M,G,G,_,w0,_,G,G,G,G,G,G,G,G,M,G],[G,_,_,M,M,M,_,_,_,G,G,G,G,G,G,M,M,M,G,G,_,w0,_,G,G,G,G,G,G,G,G,M,G],[G,_,_,M,G,M,_,_,_,G,G,M,G,G,G,M,M,M,G,G,_,w0,_,G,G,G,G,G,G,G,G,M,G],[G,_,_,M,G,M,_,_,_,G,G,G,G,G,G,M,M,M,G,G,_,w0,_,G,G,G,G,G,G,G,G,M,G],[M,_,_,M,M,M,_,_,_,M,M,M,M,M,M,M,M,M,M,M,_,w0,_,M,M,M,M,M,M,M,M,M,G],[G,_,_,M,M,M,_,_,_,G,G,G,G,G,G,M,M,M,G,_,_,w0,_,G,G,G,G,G,G,G,G,M,G],[G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,_,G,G,G,G,G,G,G,G,G,G,G,G],[M,_,_,M,M,M,_,_,_,M,M,M,M,M,G,M,M,M,G,G,_,w0,_,G,G,G,G,G,G,G,G,M,G],[M,_,_,M,M,M,_,_,_,M,M,M,M,M,M,M,M,M,M,M,_,w0,_,M,M,M,M,M,M,M,M,M,M],[G,_,_,M,M,M,_,_,_,G,M,G,G,G,G,M,M,M,G,G,_,w0,_,G,G,G,M,M,G,G,G,M,G],[G,_,_,M,M,M,_,_,_,G,M,G,G,G,G,M,M,M,G,G,_,w0,_,G,G,G,G,M,G,G,G,M,G],[G,_,_,M,M,M,_,_,_,G,M,G,G,G,G,M,M,M,G,G,_,w0,_,M,M,M,M,G,G,G,G,M,G],[G,_,_,M,M,M,_,_,_,G,M,G,G,G,G,M,M,M,G,G,_,w0,_,G,G,G,M,M,G,G,G,M,G],[G,_,_,M,M,M,_,_,_,G,M,G,G,G,G,M,M,M,G,G,_,w0,_,G,G,G,G,M,G,G,G,M,G],[G,_,_,M,M,M,_,_,_,G,G,G,G,G,G,M,M,M,G,G,_,w0,_,G,G,G,G,G,M,G,G,M,G],[G,_,_,M,M,M,_,_,_,G,M,G,G,G,G,M,M,M,G,G,_,w0,_,G,G,G,G,G,G,G,M,M,G],[G,_,_,M,M,M,_,_,_,G,M,G,G,G,G,M,M,M,G,G,_,w0,_,G,G,G,G,G,G,G,G,M,G],[M,_,_,M,M,M,_,_,_,M,M,M,M,M,G,M,M,M,G,G,_,w0,_,G,G,G,G,G,G,G,G,M,G],[G,_,_,M,M,G,_,_,_,G,G,G,G,G,G,G,G,G,G,G,_,w0,_,G,G,G,G,G,G,G,G,M,G]],GZ=I7.default.toByteArray("AAgOAAAAAAAQ4QAAAQ0P8vDtnQuMXUUZx+eyu7d7797d9m5bHoWltKVUlsjLWE0VJNigQoMVqkStEoNQQUl5GIo1KKmogEgqkKbBRki72lYabZMGKoGAjQRtJJDaCCIRiiigREBQS3z+xzOTnZ3O+3HOhd5NfpkzZx7fN9988zivu2M9hGwB28F94DnwEngd/Asc1EtIs9c/bIPDwCxwLDgezHcodyo4w5C+CCwBS8FnwSXgCnA1uFbI93XwbXAbWAfWgx+CzWAb+An4KfgFeAzsYWWfYuFz4CXwGvgb+Dfo6yNkEEwGh4CZYB44FpwI3g1OY+kfBItZOo2fB84Hy8DF4HJwNbiWpV8PVoO1LH4n2NRXyN+KcAd4kNVP9XsY4aPgcfAbsBfs6SniL4K/sPjfEf6HlanXCRkCw2BGvUh/keWfXS/CY+pFXs7x9XHmM94LTmWIeU2cgbxnS/k/B3kf86jDhU8L9V2E40vAFWAlWFUfb++NOL4F3C7JX4/4GiE+hvgWsF0oS7mXldspnN+F493gyXrh9xTav0cg3EvzgVfBG6wsmVSEkxBOBgdPGpd7JI6PnqRvJ68/xlbHof53gPeA94OzwLngk+ACsAwsByvASrAK3MB0Ws3CtQjvBJvAVrADPMDSHkb4CNijaccTwvnf4fiPEs8Lxy+D18A/QU8/xjgYBjPAbDAKTgYLwOngTHAO+EQ/8wuEF4EvsPiVCFf2+9tsFStzA8LVHuXXBsi6QyqzUYiPMR/7Mc7dAx7oL8bzw/3u/Bw8Bp4Az4AXwCtgHzsmDXP5fiF9iiVvly5d0sHngar16NKlS5cuXbp06fLmYlqHXrcd3ph4P0THUY3iXh49novju4S0tzfs5d+JPKewfAsRntZb3K9ZhOMlrO6lCC8An28U9+OuovcPcPxlVu5rCL/VmHh/iHIrzn3fIPu7SN8Axmg+8AOwEWwCm7tp3bRuWjetm5Y8bSu4B9zbKO6ZVsnORrVU3f4uXTqZ2H3sLoyx3eDXjfDndE9qyj6L838CfwVvgFpzYnof4oNgOhgBc8Fos9DrZIQLmtXPP1MmF6wGj4H+KXoWguvADkXaPil+YpuQy8Am8Ey7ODdtmJDF4HowBp4De6HDTNjhfHAHeBr0DBBy0kDxfPbcgSIusgrcWhtnJ8vL+TPix7UIOQtcBq4C28Cr4KRBnANbwSuDE+s50JgyNNFuXbp06XIgsXjIvPafjvXozKY+fVFz/z0LT1uCtKVSWbrOLWPnztG8e0Xfy7ol8XtZJi7WtG+5od2UFXQ/A12vUeS7jp27yVKHjdsU9lXB869TyNvAzt0lpP2oWbwLdjiO78bx/Sz+EMJHwK9Y/LcIfw+eZ3F67/Hl5vh9xX80J+rwX8SvRDhpgL17iPAQMHNArfPrqHPewLheI+AERV6efwV418B4nOZ/H+IfYHV8GOF5LJ3eAz0fx8sM9S0fUNud39O9CulfGZhY5huI3wzWgNvBelbHZoTbNPVpfYjKQpkHwUNgl0LWblbnk0LbbDxr0OMFpL3iqWdu9nWYPlVAWkXY39LnGdCkDbeqv1YNbfcMQ3t9oe8lzm6NH9N1ZB6Ln4BwfkJZJk7RyFnYKt6b/JDQXx9p5X+eFdqOjzM9P9MB/lUlFzr20aXIdzlY4dmn9F3YqtvoO76/2hp/D/xA5Zue88nNyL8GbFbs075X0tyUig3Qd2MCnf//HjnzpbsR3g9+1kHzzVjdnE71/qVBX9rGPUh/ysNWe1neFzvIDi5zAufV1sT0N0poR22wkFUfTOPfA4N2mbZ5fSrqOHSw+IbkSBbOGSzSRgf91/GTUWYBOB2cIZQ/G8cfBZ8CFwrnL8XxF8FKcA24jqXdiPA7Qr61OF7H4mMItwzuv2/YLth1ISt3Hzu3k4W7EH5JqPdRHD/O4k+z8A8IX5Lq3y7Z4nXE9xn6kX6vQ4bKfy+ok+hH+xf3hq9dnTTHhjKd2GmDuWA242iHMq4cC7A8kJ7i8o1+skSa7Jieo38HCWnoNjKFhdSFBxzpZ7QE6lI8N4S14aASZcryaV/WWHw66f6NHuCoxuQxmvM56GX9QMd8Q4D65ywGP+ZzRJuM+zQvx/MOS2VFeqQ4IXnH26zM9Xe6/E6D+4foAzzuajPZp8Qyw5ayZVDWuH0z0BtYRkeIDqH9KO9VbH1btd/lhNqCzvl8zeLnG0S/hnU6baHfpiuO6yy0rd+DHURo/zYF5H26j03rQsip2ndzz82u1z9N4VjWKWeb68Tedpt95HRVXp7H1R6p+/Wt4FPy/PpWwscOLRJ+PVWF/+W0iVyGzs18TIvXkOJ1Wxm66vSXz+vylenrZcj1ub439W+K8RNCGTJi2p/TJ1K23VaXr35tRpnzmjxequgfcfyk6B/TGBVlyedsNgpdd/h+W1U3P99QyFPNo1X3TwpM/WLTIWYfoBqXrv6iskHZ/RFr79R6hIyHBrH3f1nrUVnjP8SnZZ+rYtzr9Exld5MNbPNErusAPg+77u/eDOPftU9yj39TH7rezxd1LvsZQJlzkWlOirG/79zjMj/mtHUKu7vKy+3/LnXr9okyKedjX5/0He9iP/j63LwOQdarEVlfy8OO/Lqw023j6xcqmwxLiOd6heM2i9cV9LJy8jMJ23yQ+rpbfu7EQ/pXE8KYvUSqvVnb4XzZa6LrHMXHR+zcLvqWbm/Bn0/HzIs6fWPHoat8XfnDKmZGxRxeMbn2UqZ5Q94nmcZRbqqUXbZ8+lcjE+cPX11t814orvvAXNcG8vqj2vvk1MGn3anlj0bIT72v47bvE+Lc98T9b6r7AKn6j+8Duf7D0nnZx/j7Zjn0j9nbpSTndaLr9WNLivP+iN23xF7L+fqv6ZouFyb78jxVXvv5jJ9YUs9/sddO8h7KNg5jrhfaJGztT6G7KF+1d6yCmD5Kdb2fan60rSc552fZr3zeQ9DpnPp+Si5cx5Ktv2QfSzF/mMbWdOm46rFI4XstnU9xeqX4NKb7TKEdcr6pZOK3ID1k/LvFHkVczEuZLEDr499YqvqBym1aEHWgcvoYOtv0M91qQl5TfpO/in6rWx8OVpT1Wedkv3f5xom3T/xeR/6Gx6V86PWAOB4bBpqWdN+yTcVxjIyGRz/FrDGu6w/3d7kPm8StX8RyPu+uuvpNju/vTLJV37GpvoM0oZPnW87VLnL/5pDno1NoW1R6yedU6TyUv3u19a3KFnIbTLYz+ZCLP4T0tU1uivFgso0pnsJ/UtXvarNY28Xq5cvkBDrQP/E5ZaiuQwwfmTlsOiQRU1fMuqrDd/3ISSuwjOwXOfTyGUMpZIXq4GpLn3pUcdfzch2x7XO1u2uZHOPb1G6b3Xg9PH1IIWeEpJlPQtqos2EKW8b0u8rnuP1UeVLoXJb9be0uG9nnbchjU+XTszT5VeNBThPHnc5OKj1U9aj0GTHIVaGy1YhEWT4ixns00DT+XEzWn/7VAsIc63Cov3OdyhwjrnaqQqZvWKXdypRdlq+k8msZ031U+Rm4fA+3TtyeR9hwfW9G9yxDN0fZMN33F+9TE6md4hwoxumfaUzI9fN3PFT3xVV2msrQ3UsnChm6Nulk8TndpS28D3zX9tTIPsF/z7Am5OkTjm1tI1JZW74+4VgsZ0N3L1yXV3WeP5uR7TGHHdvC3JQlxybfpd22tDlk/2eofRK8TzrN/qnar/K/OUTth6I/+jAnEptNbPvFHP2gs40N3+dfMWtwqvVct7/wfd8gtQ7imifial9ZJ9/3IHLYU6eDj3+4PhsNhX+vwvcWLnu6kGfEMe8DuciPfUfGZB8X/7HJy/Gefe5n+VRGFd/wyP2ta7/LO4yh/sbLV/k9lev6kfO9Dt/5U67b1/6u/epqB1U9Me23jfHY9sscAg4tkbLl+e4/U36rJ9ddxfd6sg5vq5ice42Wpk/pb9FOJ36/W9tpv4kbC79nUbZceX8Zu6/qJ+P3WvhvA8v3reh7Jbn2d6rrNC7XNZTLma4Ba0JI9efX2uLzF5scG/w9UNU1ZxW+ymUfzELeTllXlQ1rUuhzjS5fp9c964iFBOqeSz63bU065nZKdU+mDEz3qHIjjifquw0pnb/raRtvrnsYcb46ihT3taoYz6brdNW9l6rWRnE/navdPn1XlR1km7hcz1WlH/elKuSOSvLLuE8U6m8uzwRdfcGl73VyTHuyMvzJ1Sa2cWDTP/Z63Kc94n2B1PYr24dz1JlyHLlcP+S4B6vD1c9EW4q2LWstCvUjeVy63k/LMYdUNd5D1xQfvVTzX1VjkMsUv88N8VH5fReVn/Fjn++/h6X6Q8a6b1/q3g/i/ewi0/Scs8zxXeV6mWIOUPlPzBgdFerW+bZrm2P18dnjuK6HunEp+rHvPMXbr+sHVb/lnL+pTP57jPw9Cvk3PW178JD9qChfzuvTf7Htl38L1QUf/VKu9SFjwWbTWPvFEvu7Uq76y7+31g6QlYPc669pbsm9Xur2LWI9Pu8ypfDXqm3A2z8s1FWGn4ntL9NfQu2oSlftX9uetvTtv7J8Ql4zxfXGZ3zk8PeQ9w59x2uMfqI8/q5eKh/l9cb2rwsu9rSNl06ZP2Pmxtz+rNMx93yno0n2/82rVH7rQ+y9P15H6FyRun9ViH81ATmffI7nJ5r8uXXW6enbP6b/B8/l5OifVHYLnb9S39s2zcc+Ph+rh8+eQgVPS72elzGWY/tUtbbabBpDiI7yN1q6/4th2y+ErAc5+9BVvu/7KamJbWNZeuqI/R4tRf+YyD1HmOZM1bMV3/14Sn10c0Xu+Sj1nOXb5jL73ncdy02uvlXZNde65dOHYl7Vs4KYuS6FzWLn2zJlpZqPXPVPOa5yzKOyn1VhT9lmMfdbfH7D11Wf2PXN5h9y+dD287+qxgSnaYmnIrRtIb8pJe6/Uv9OVer6Whn0zfGO/BEloZI9ojmfAlUflClDd178bTmVHVTpZXOkAlk/lb42UujmI89HH5V+cl7XtowY6vTxLVWok6UrGzoGTHN+bB+6ri05687VNpvfuvRfaP2uMlNQth1D5JjGelm/8yn+9p3p/7qk9gnfeddXZmq/Sm333PJT659Kv1zjNbZ9uv2Oi//67CV8/N1nj1DmviyXDNVeJkaeaX8UsyesYg8cu2+NvdaPfb+lLDu5tvt/"),OZ=new _7.default(GZ),E7=function(J){switch(J){case zZ:return q7;case HZ:case AZ:case VZ:return q7;case UZ:return XZ;default:return J}},F7=function(J){switch(J){case m6:case D7:return G8;case g5:return wZ;default:return J}};class O8{constructor(J,Y=!1){this.position=J,this.required=Y}}class C7{nextCodePoint(){let J=this.string.charCodeAt(this.pos++),Y=this.string.charCodeAt(this.pos);if(55296<=J&&J<=56319&&56320<=Y&&Y<=57343)return this.pos++,(J-55296)*1024+(Y-56320)+65536;return J}nextCharClass(){return E7(OZ.get(this.nextCodePoint()))}getSimpleBreak(){switch(this.nextClass){case g5:return!1;case G8:case m6:case D7:return this.curClass=G8,!1;case f6:return this.curClass=f6,!1}return null}getPairTableBreak(J){let Y=!1;switch(BZ[this.curClass][this.nextClass]){case G:Y=!0;break;case M:Y=J===g5;break;case w0:if(Y=J===g5,!Y)return Y=!1,Y;break;case R7:if(J!==g5)return Y;break;case _:break}if(this.LB8a)Y=!1;if(this.LB21a&&(this.curClass===WZ||this.curClass===$Z))Y=!1,this.LB21a=!1;else this.LB21a=this.curClass===QZ;if(this.curClass===N7){if(this.LB30a++,this.LB30a==2&&this.nextClass===N7)Y=!0,this.LB30a=0}else this.LB30a=0;return this.curClass=this.nextClass,Y}nextBreak(){if(this.curClass==null){let J=this.nextCharClass();this.curClass=F7(J),this.nextClass=J,this.LB8a=J===j7,this.LB30a=0}while(this.pos<this.string.length){this.lastPos=this.pos;let J=this.nextClass;if(this.nextClass=this.nextCharClass(),this.curClass===G8||this.curClass===f6&&this.nextClass!==m6)return this.curClass=F7(E7(this.nextClass)),new O8(this.lastPos,!0);let Y=this.getSimpleBreak();if(Y===null)Y=this.getPairTableBreak(J);if(this.LB8a=this.nextClass===j7,Y)return new O8(this.lastPos)}if(this.lastPos<this.string.length)return this.lastPos=this.string.length,new O8(this.string.length);return null}constructor(J){this.string=J,this.pos=0,this.lastPos=0,this.curClass=null,this.nextClass=null,this.LB8a=!1,this.LB21a=!1,this.LB30a=0}}c6=C7;var O1=z1(E8(),1),RY=z1(W2(),1),CY=z1(w2(),1);var B2=z1(U2(),1),G2=z1(A2(),1),MQ=/^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/,qQ=new RegExp(MQ,"i"),w9="-?\\d*(?:\\.\\d+)",q5=`(${w9}?)`,E1=`(${w9}?%)`,N5=`(${w9}?%?)`,NQ=`^
|
|
14
14
|
hsla?\\(
|
|
15
15
|
\\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*,
|
|
16
16
|
\\s*${E1}\\s*,
|
|
17
17
|
\\s*${E1}\\s*
|
|
18
|
-
(?:,\\s*${
|
|
18
|
+
(?:,\\s*${N5}\\s*)?
|
|
19
19
|
\\)
|
|
20
20
|
$
|
|
21
21
|
`.replace(/\n|\s/g,""),jQ=new RegExp(NQ),EQ=`^
|
|
@@ -23,15 +23,15 @@ import{Dc as TK,pc as _K,qc as k4,rc as IK,sc as DK,yc as RK}from"./chunk-et0j6j
|
|
|
23
23
|
\\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*
|
|
24
24
|
\\s+${E1}
|
|
25
25
|
\\s+${E1}
|
|
26
|
-
\\s*(?:\\s*\\/\\s*${
|
|
26
|
+
\\s*(?:\\s*\\/\\s*${N5}\\s*)?
|
|
27
27
|
\\)
|
|
28
28
|
$
|
|
29
29
|
`.replace(/\n|\s/g,""),FQ=new RegExp(EQ),_Q=`^
|
|
30
30
|
rgba?\\(
|
|
31
|
-
\\s*${
|
|
32
|
-
\\s*${
|
|
33
|
-
\\s*${
|
|
34
|
-
(?:,\\s*${
|
|
31
|
+
\\s*${q5}\\s*,
|
|
32
|
+
\\s*${q5}\\s*,
|
|
33
|
+
\\s*${q5}\\s*
|
|
34
|
+
(?:,\\s*${N5}\\s*)?
|
|
35
35
|
\\)
|
|
36
36
|
$
|
|
37
37
|
`.replace(/\n|\s/g,""),IQ=new RegExp(_Q),DQ=`^
|
|
@@ -39,15 +39,15 @@ import{Dc as TK,pc as _K,qc as k4,rc as IK,sc as DK,yc as RK}from"./chunk-et0j6j
|
|
|
39
39
|
\\s*${E1}\\s*,
|
|
40
40
|
\\s*${E1}\\s*,
|
|
41
41
|
\\s*${E1}\\s*
|
|
42
|
-
(?:,\\s*${
|
|
42
|
+
(?:,\\s*${N5}\\s*)?
|
|
43
43
|
\\)
|
|
44
44
|
$
|
|
45
45
|
`.replace(/\n|\s/g,""),RQ=new RegExp(DQ),CQ=`^
|
|
46
46
|
rgba?\\(
|
|
47
|
-
\\s*${
|
|
48
|
-
\\s+${
|
|
49
|
-
\\s+${
|
|
50
|
-
\\s*(?:\\s*\\/\\s*${
|
|
47
|
+
\\s*${q5}
|
|
48
|
+
\\s+${q5}
|
|
49
|
+
\\s+${q5}
|
|
50
|
+
\\s*(?:\\s*\\/\\s*${N5}\\s*)?
|
|
51
51
|
\\)
|
|
52
52
|
$
|
|
53
53
|
`.replace(/\n|\s/g,""),TQ=new RegExp(CQ),PQ=`^
|
|
@@ -55,15 +55,15 @@ $
|
|
|
55
55
|
\\s*${E1}
|
|
56
56
|
\\s+${E1}
|
|
57
57
|
\\s+${E1}
|
|
58
|
-
\\s*(?:\\s*\\/\\s*${
|
|
58
|
+
\\s*(?:\\s*\\/\\s*${N5}\\s*)?
|
|
59
59
|
\\)
|
|
60
60
|
$
|
|
61
|
-
`.replace(/\n|\s/g,""),SQ=new RegExp(PQ),vQ=/^transparent$/,kQ=new RegExp(vQ,"i"),z9=(J,Y,K)=>Math.min(Math.max(Y,J),K),yQ=(J)=>{let Y=J;if(typeof Y!=="number")Y=Y.endsWith("%")?parseFloat(Y)*255/100:parseFloat(Y);return z9(Math.round(Y),0,255)},V2=(J)=>z9(parseFloat(J),0,100);function L2(J){let Y=J;if(typeof Y!=="number")Y=Y.endsWith("%")?parseFloat(Y)/100:parseFloat(Y);return z9(Y,0,1)}function gQ(J){let[Y,K,Z,X]=G2.default(J,{format:"array"});return I8([null,Y,K,Z,X])}function hQ([,J,Y,K,Z=1]){let X=J;if(X.endsWith("turn"))X=parseFloat(X)*360/1;else if(X.endsWith("rad"))X=Math.round(parseFloat(X)*180/Math.PI);else X=parseFloat(X);return{type:"hsl",values:[X,V2(Y),V2(K)],alpha:L2(Z===null?1:Z)}}function I8([,J,Y,K,Z=1]){return{type:"rgb",values:[J,Y,K].map(yQ),alpha:L2(Z===null?1:Z)}}var xQ=(J)=>{if(typeof J!=="string")return null;let Y=MQ.exec(J);if(Y)return gQ(Y[0]);let K=FQ.exec(J)||jQ.exec(J);if(K)return hQ(K);let Z=TQ.exec(J)||SQ.exec(J)||IQ.exec(J)||RQ.exec(J);if(Z)return I8(Z);if(kQ.exec(J))return I8([null,0,0,0,0]);let X=B2.default[J.toLowerCase()];if(X)return I8([null,X[0],X[1],X[2],1]);return null},D8=xQ;var TY=z1(r6(),1),PY=z1(F8(),1),u9=z1(q2(),1);function H9(J,Y=","){let K=[],Z=0,X=0;Y=new RegExp(Y);for(let Q=0;Q<J.length;Q++)J[Q]==="("?X++:J[Q]===")"&&X--,X===0&&Y.test(J[Q])&&(K.push(J.slice(Z,Q).trim()),Z=Q+1);return K.push(J.slice(Z).trim()),K}function U9(J){let Y=[];for(let K=0,Z=J.length;K<Z;){let[X,Q]=H9(J[K],/\s+/);mQ(J[K+1])?(Y.push({color:X,offset:Y5(Q),hint:Y5(J[K+1])}),K+=2):(Y.push({color:X,offset:Y5(Q)}),K++)}return Y}var j2=/^(-?\d+\.?\d*)(%|vw|vh|px|em|rem|deg|rad|grad|turn)$/;function mQ(J){return j2.test(J)}function Y5(J){if(!J)return;let[,Y,K]=J.trim().match(j2)||[];return{value:Y,unit:K}}function E2(J){if(!/^(repeating-)?linear-gradient/.test(J))throw SyntaxError(`could not find syntax for this item: ${J}`);let[,Y,K]=J.match(/(repeating-)?linear-gradient\((.+)\)/),Z={orientation:{type:"directional",value:"bottom"},repeating:!!Y,stops:[]},X=H9(K),Q=cQ(X[0]);return Q&&(Z.orientation=Q,X.shift()),{...Z,stops:U9(X)}}function cQ(J){return J.startsWith("to ")?{type:"directional",value:J.replace("to ","")}:["turn","deg","grad","rad"].some((Y)=>J.endsWith(Y))?{type:"angular",value:Y5(J)}:null}var dQ=new Set(["closest-corner","closest-side","farthest-corner","farthest-side"]),uQ=new Set(["center","left","top","right","bottom"]);function M2(J){return dQ.has(J)}function N2(J){return uQ.has(J)}function lQ(J){let Y=Array(2).fill("");for(let K=0;K<2;K++)J[K]?Y[K]=J[K]:Y[K]="center";return Y}function F2(J){if(!/(repeating-)?radial-gradient/.test(J))throw SyntaxError(`could not find syntax for this item: ${J}`);let[,Y,K]=J.match(/(repeating-)?radial-gradient\((.+)\)/),Z={shape:"ellipse",repeating:!!Y,size:[{type:"keyword",value:"farthest-corner"}],position:{x:{type:"keyword",value:"center"},y:{type:"keyword",value:"center"}},stops:[]},X=H9(K);if(pQ(X[0]))return{...Z,stops:U9(X)};let Q=X[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)||[],$=lQ((Q[1]||"").split(" "));return W?Z.shape=W:w.length===1&&!M2(w[0])?Z.shape="circle":Z.shape="ellipse",w.length===0&&w.push("farthest-corner"),Z.size=w.map((z)=>M2(z)?{type:"keyword",value:z}:{type:"length",value:Y5(z)}),Z.position.x=N2($[0])?{type:"keyword",value:$[0]}:{type:"length",value:Y5($[0])},Z.position.y=N2($[1])?{type:"keyword",value:$[1]}:{type:"length",value:Y5($[1])},(W||w.length>0||Q[1])&&X.shift(),{...Z,stops:U9(X)}}function pQ(J){return/(circle|ellipse|at)/.test(J)?!1:/^(rgba?|hwb|hsl|lab|lch|oklab|color|#|[a-zA-Z]+)/.test(J)}var l9=z1(F8(),1);var K1=Uint8Array,Z5=Uint16Array,a2=Uint32Array,t2=new K1([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]),e2=new K1([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]),iQ=new K1([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),JJ=function(J,Y){var K=new Z5(31);for(var Z=0;Z<31;++Z)K[Z]=Y+=1<<J[Z-1];var X=new a2(K[30]);for(var Z=1;Z<30;++Z)for(var Q=K[Z];Q<K[Z+1];++Q)X[Q]=Q-K[Z]<<5|Z;return[K,X]},YJ=JJ(t2,2),KJ=YJ[0],nQ=YJ[1];KJ[28]=258,nQ[258]=28;var oQ=JJ(e2,0),rQ=oQ[0],j9=new Z5(32768);for(W0=0;W0<32768;++W0)F1=(W0&43690)>>>1|(W0&21845)<<1,F1=(F1&52428)>>>2|(F1&13107)<<2,F1=(F1&61680)>>>4|(F1&3855)<<4,j9[W0]=((F1&65280)>>>8|(F1&255)<<8)>>>1;var F1,W0,c5=function(J,Y,K){var Z=J.length,X=0,Q=new Z5(Y);for(;X<Z;++X)if(J[X])++Q[J[X]-1];var W=new Z5(Y);for(X=0;X<Y;++X)W[X]=W[X-1]+Q[X-1]<<1;var w;if(K){w=new Z5(1<<Y);var $=15-Y;for(X=0;X<Z;++X)if(J[X]){var z=X<<4|J[X],U=Y-J[X],H=W[J[X]-1]++<<U;for(var A=H|(1<<U)-1;H<=A;++H)w[j9[H]>>>$]=z}}else{w=new Z5(Z);for(X=0;X<Z;++X)if(J[X])w[X]=j9[W[J[X]-1]++]>>>15-J[X]}return w},l5=new K1(288);for(W0=0;W0<144;++W0)l5[W0]=8;var W0;for(W0=144;W0<256;++W0)l5[W0]=9;var W0;for(W0=256;W0<280;++W0)l5[W0]=7;var W0;for(W0=280;W0<288;++W0)l5[W0]=8;var W0,ZJ=new K1(32);for(W0=0;W0<32;++W0)ZJ[W0]=5;var W0,sQ=c5(l5,9,1),aQ=c5(ZJ,5,1),A9=function(J){var Y=J[0];for(var K=1;K<J.length;++K)if(J[K]>Y)Y=J[K];return Y},U1=function(J,Y,K){var Z=Y/8|0;return(J[Z]|J[Z+1]<<8)>>(Y&7)&K},V9=function(J,Y){var K=Y/8|0;return(J[K]|J[K+1]<<8|J[K+2]<<16)>>(Y&7)},tQ=function(J){return(J+7)/8|0},eQ=function(J,Y,K){if(Y==null||Y<0)Y=0;if(K==null||K>J.length)K=J.length;var Z=new(J.BYTES_PER_ELEMENT==2?Z5:J.BYTES_PER_ELEMENT==4?a2:K1)(K-Y);return Z.set(J.subarray(Y,K)),Z},JW=["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"],u1=function(J,Y,K){var Z=Error(Y||JW[J]);if(Z.code=J,Error.captureStackTrace)Error.captureStackTrace(Z,u1);if(!K)throw Z;return Z},YW=function(J,Y,K){var Z=J.length;if(!Z||K&&K.f&&!K.l)return Y||new K1(0);var X=!Y||K,Q=!K||K.i;if(!K)K={};if(!Y)Y=new K1(Z*3);var W=function(g){var e=Y.length;if(g>e){var Q0=new K1(Math.max(e*2,g));Q0.set(Y),Y=Q0}},w=K.f||0,$=K.p||0,z=K.b||0,U=K.l,H=K.d,A=K.m,V=K.n,O=Z*8;do{if(!U){w=U1(J,$,1);var B=U1(J,$+1,3);if($+=3,!B){var L=tQ($)+4,M=J[L-4]|J[L-3]<<8,N=L+M;if(N>Z){if(Q)u1(0);break}if(X)W(z+M);Y.set(J.subarray(L,N),z),K.b=z+=M,K.p=$=N*8,K.f=w;continue}else if(B==1)U=sQ,H=aQ,A=9,V=5;else if(B==2){var E=U1(J,$,31)+257,I=U1(J,$+10,15)+4,F=E+U1(J,$+5,31)+1;$+=14;var j=new K1(F),T=new K1(19);for(var D=0;D<I;++D)T[iQ[D]]=U1(J,$+D*3,7);$+=I*3;var C=A9(T),h=(1<<C)-1,d=c5(T,C,1);for(var D=0;D<F;){var r=d[U1(J,$,h)];$+=r&15;var L=r>>>4;if(L<16)j[D++]=L;else{var l=0,P=0;if(L==16)P=3+U1(J,$,3),$+=2,l=j[D-1];else if(L==17)P=3+U1(J,$,7),$+=3;else if(L==18)P=11+U1(J,$,127),$+=7;while(P--)j[D++]=l}}var k=j.subarray(0,E),R=j.subarray(E);A=A9(k),V=A9(R),U=c5(k,A,1),H=c5(R,V,1)}else u1(1);if($>O){if(Q)u1(0);break}}if(X)W(z+131072);var c=(1<<A)-1,u=(1<<V)-1,a=$;for(;;a=$){var l=U[V9(J,$)&c],n=l>>>4;if($+=l&15,$>O){if(Q)u1(0);break}if(!l)u1(2);if(n<256)Y[z++]=n;else if(n==256){a=$,U=null;break}else{var m=n-254;if(n>264){var D=n-257,x=t2[D];m=U1(J,$,(1<<x)-1)+KJ[D],$+=x}var S=H[V9(J,$)&u],y=S>>>4;if(!S)u1(3);$+=S&15;var R=rQ[y];if(y>3){var x=e2[y];R+=V9(J,$)&(1<<x)-1,$+=x}if($>O){if(Q)u1(0);break}if(X)W(z+131072);var p=z+m;for(;z<p;z+=4)Y[z]=Y[z-R],Y[z+1]=Y[z+1-R],Y[z+2]=Y[z+2-R],Y[z+3]=Y[z+3-R];z=p}}if(K.l=U,K.p=a,K.b=z,K.f=w,U)w=1,K.m=A,K.d=H,K.n=V}while(!w);return z==Y.length?Y:eQ(Y,0,z)},KW=new K1(0);function ZW(J,Y){return YW(J,Y)}var XW=typeof TextDecoder<"u"&&new TextDecoder,QW=0;try{XW.decode(KW,{stream:!0}),QW=1}catch(J){}function m0(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}m0.prototype.moveTo=function(J,Y){this.commands.push({type:"M",x:J,y:Y})};m0.prototype.lineTo=function(J,Y){this.commands.push({type:"L",x:J,y:Y})};m0.prototype.curveTo=m0.prototype.bezierCurveTo=function(J,Y,K,Z,X,Q){this.commands.push({type:"C",x1:J,y1:Y,x2:K,y2:Z,x:X,y:Q})};m0.prototype.quadTo=m0.prototype.quadraticCurveTo=function(J,Y,K,Z){this.commands.push({type:"Q",x1:J,y1:Y,x:K,y:Z})};m0.prototype.close=m0.prototype.closePath=function(){this.commands.push({type:"Z"})};m0.prototype.extend=function(J){if(J.commands)J=J.commands;Array.prototype.push.apply(this.commands,J)};m0.prototype.toPathData=function(J){J=J!==void 0?J:2;function Y(W){if(Math.round(W)===W)return""+Math.round(W);else return W.toFixed(J)}function K(){var W=arguments,w="";for(var $=0;$<arguments.length;$+=1){var z=W[$];if(z>=0&&$>0)w+=" ";w+=Y(z)}return w}var Z="";for(var X=0;X<this.commands.length;X+=1){var Q=this.commands[X];if(Q.type==="M")Z+="M"+K(Q.x,Q.y);else if(Q.type==="L")Z+="L"+K(Q.x,Q.y);else if(Q.type==="C")Z+="C"+K(Q.x1,Q.y1,Q.x2,Q.y2,Q.x,Q.y);else if(Q.type==="Q")Z+="Q"+K(Q.x1,Q.y1,Q.x,Q.y);else if(Q.type==="Z")Z+="Z"}return Z};var WW=[".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"],$W=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],wW=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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 Y=J.codePointAt(0),K=this.font.glyphs;if(K)for(var Z=0;Z<K.length;Z+=1){var X=K.get(Z);for(var Q=0;Q<X.unicodes.length;Q+=1)if(X.unicodes[Q]===Y)return Z}return null};function QJ(J){this.cmap=J}QJ.prototype.charToGlyphIndex=function(J){return this.cmap.glyphIndexMap[J.codePointAt(0)]||0};function P8(J,Y){this.encoding=J,this.charset=Y}P8.prototype.charToGlyphIndex=function(J){var Y=J.codePointAt(0),K=this.encoding[Y];return this.charset.indexOf(K)};function zW(J){var Y,K=J.tables.cmap.glyphIndexMap,Z=Object.keys(K);for(var X=0;X<Z.length;X+=1){var Q=Z[X],W=K[Q];Y=J.glyphs.get(W),Y.addUnicode(parseInt(Q))}}function UW(J){J._IndexToUnicodeMap={};var Y=J.tables.cmap.glyphIndexMap,K=Object.keys(Y);for(var Z=0;Z<K.length;Z+=1){var X=K[Z],Q=Y[X];if(J._IndexToUnicodeMap[Q]===void 0)J._IndexToUnicodeMap[Q]={unicodes:[parseInt(X)]};else J._IndexToUnicodeMap[Q].unicodes.push(parseInt(X))}}function HW(J,Y){if(Y.lowMemory)UW(J);else zW(J)}function WJ(J){throw Error(J)}function _2(J,Y){if(!J)WJ(Y)}var H0={fail:WJ,argument:_2,assert:_2};function AW(J,Y){var K=Y||new m0;return{configurable:!0,get:function(){if(typeof K==="function")K=K();return K},set:function(Z){K=Z}}}function v1(J){this.bindConstructorValues(J)}v1.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",AW(this,J.path))};v1.prototype.addUnicode=function(J){if(this.unicodes.length===0)this.unicode=J;this.unicodes.push(J)};v1.prototype.getPath=function(J,Y,K,Z,X){J=J!==void 0?J:0,Y=Y!==void 0?Y:0,K=K!==void 0?K:72;var Q,W;if(!Z)Z={};var{xScale:w,yScale:$}=Z;if(Z.hinting&&X&&X.hinting)W=this.path&&X.hinting.exec(this,K);if(W)Q=X.hinting.getCommands(W),J=Math.round(J),Y=Math.round(Y),w=$=1;else{Q=this.path.commands;var z=1/(this.path.unitsPerEm||1000)*K;if(w===void 0)w=z;if($===void 0)$=z}var U=new m0;for(var H=0;H<Q.length;H+=1){var A=Q[H];if(A.type==="M")U.moveTo(J+A.x*w,Y+-A.y*$);else if(A.type==="L")U.lineTo(J+A.x*w,Y+-A.y*$);else if(A.type==="Q")U.quadraticCurveTo(J+A.x1*w,Y+-A.y1*$,J+A.x*w,Y+-A.y*$);else if(A.type==="C")U.curveTo(J+A.x1*w,Y+-A.y1*$,J+A.x2*w,Y+-A.y2*$,J+A.x*w,Y+-A.y*$);else if(A.type==="Z")U.closePath()}return U};v1.prototype.getContours=function(){if(this.points===void 0)return[];var J=[],Y=[];for(var K=0;K<this.points.length;K+=1){var Z=this.points[K];if(Y.push(Z),Z.lastPointOfContour)J.push(Y),Y=[]}return H0.argument(Y.length===0,"There are still points left in the current contour."),J};v1.prototype.getMetrics=function(){var J=this.path.commands,Y=[],K=[];for(var Z=0;Z<J.length;Z+=1){var X=J[Z];if(X.type!=="Z")Y.push(X.x),K.push(X.y);if(X.type==="Q"||X.type==="C")Y.push(X.x1),K.push(X.y1);if(X.type==="C")Y.push(X.x2),K.push(X.y2)}var Q={xMin:Math.min.apply(null,Y),yMin:Math.min.apply(null,K),xMax:Math.max.apply(null,Y),yMax:Math.max.apply(null,K),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 R8(J,Y,K){Object.defineProperty(J,Y,{get:function(){return J.path,J[K]},set:function(Z){J[K]=Z},enumerable:!0,configurable:!0})}function _9(J,Y){if(this.font=J,this.glyphs={},Array.isArray(Y))for(var K=0;K<Y.length;K++){var Z=Y[K];Z.path.unitsPerEm=J.unitsPerEm,this.glyphs[K]=Z}this.length=Y&&Y.length||0}_9.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 Y=this.glyphs[J],K=this.font._IndexToUnicodeMap[J];if(K)for(var Z=0;Z<K.unicodes.length;Z++)Y.addUnicode(K.unicodes[Z]);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]};_9.prototype.push=function(J,Y){this.glyphs[J]=Y,this.length++};function VW(J,Y){return new v1({index:Y,font:J})}function BW(J,Y,K,Z,X,Q){return function(){var W=new v1({index:Y,font:J});return W.path=function(){K(W,Z,X);var w=Q(J.glyphs,W);return w.unitsPerEm=J.unitsPerEm,w},R8(W,"xMin","_xMin"),R8(W,"xMax","_xMax"),R8(W,"yMin","_yMin"),R8(W,"yMax","_yMax"),W}}function GW(J,Y,K,Z){return function(){var X=new v1({index:Y,font:J});return X.path=function(){var Q=K(J,X,Z);return Q.unitsPerEm=J.unitsPerEm,Q},X}}var I1={GlyphSet:_9,glyphLoader:VW,ttfGlyphLoader:BW,cffGlyphLoader:GW};function B9(J,Y){var K=0,Z=J.length-1;while(K<=Z){var X=K+Z>>>1,Q=J[X].tag;if(Q===Y)return X;else if(Q<Y)K=X+1;else Z=X-1}return-K-1}function I2(J,Y){var K=0,Z=J.length-1;while(K<=Z){var X=K+Z>>>1,Q=J[X];if(Q===Y)return X;else if(Q<Y)K=X+1;else Z=X-1}return-K-1}function D2(J,Y){var K,Z=0,X=J.length-1;while(Z<=X){var Q=Z+X>>>1;K=J[Q];var W=K.start;if(W===Y)return K;else if(W<Y)Z=Q+1;else X=Q-1}if(Z>0){if(K=J[Z-1],Y>K.end)return 0;return K}}function p5(J,Y){this.font=J,this.tableName=Y}p5.prototype={searchTag:B9,binSearch:I2,getTable:function(J){var Y=this.font.tables[this.tableName];if(!Y&&J)Y=this.font.tables[this.tableName]=this.createDefaultTable();return Y},getDefaultScriptName:function(){var J=this.getTable();if(!J)return;var Y=!1;for(var K=0;K<J.scripts.length;K++){var Z=J.scripts[K].tag;if(Z==="DFLT")return Z;if(Z==="latn")Y=!0}if(Y)return"latn"},getScriptTable:function(J,Y){var K=this.getTable(Y);if(K){J=J||"DFLT";var Z=K.scripts,X=B9(K.scripts,J);if(X>=0)return Z[X].script;else if(Y){var Q={tag:J,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return Z.splice(-1-X,0,Q),Q.script}}},getLangSysTable:function(J,Y,K){var Z=this.getScriptTable(J,K);if(Z){if(!Y||Y==="dflt"||Y==="DFLT")return Z.defaultLangSys;var X=B9(Z.langSysRecords,Y);if(X>=0)return Z.langSysRecords[X].langSys;else if(K){var Q={tag:Y,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return Z.langSysRecords.splice(-1-X,0,Q),Q.langSys}}},getFeatureTable:function(J,Y,K,Z){var X=this.getLangSysTable(J,Y,Z);if(X){var Q,W=X.featureIndexes,w=this.font.tables[this.tableName].features;for(var $=0;$<W.length;$++)if(Q=w[W[$]],Q.tag===K)return Q.feature;if(Z){var z=w.length;return H0.assert(z===0||K>=w[z-1].tag,"Features must be added in alphabetical order."),Q={tag:K,feature:{params:0,lookupListIndexes:[]}},w.push(Q),W.push(z),Q.feature}}},getLookupTables:function(J,Y,K,Z,X){var Q=this.getFeatureTable(J,Y,K,X),W=[];if(Q){var w,$=Q.lookupListIndexes,z=this.font.tables[this.tableName].lookups;for(var U=0;U<$.length;U++)if(w=z[$[U]],w.lookupType===Z)W.push(w);if(W.length===0&&X){w={lookupType:Z,lookupFlag:0,subtables:[],markFilteringSet:void 0};var H=z.length;return z.push(w),$.push(H),[w]}}return W},getGlyphClass:function(J,Y){switch(J.format){case 1:if(J.startGlyph<=Y&&Y<J.startGlyph+J.classes.length)return J.classes[Y-J.startGlyph];return 0;case 2:var K=D2(J.ranges,Y);return K?K.classId:0}},getCoverageIndex:function(J,Y){switch(J.format){case 1:var K=I2(J.glyphs,Y);return K>=0?K:-1;case 2:var Z=D2(J.ranges,Y);return Z?Z.index+Y-Z.start:-1}},expandCoverage:function(J){if(J.format===1)return J.glyphs;else{var Y=[],K=J.ranges;for(var Z=0;Z<K.length;Z++){var X=K[Z],Q=X.start,W=X.end;for(var w=Q;w<=W;w++)Y.push(w)}return Y}}};function i5(J){p5.call(this,J,"gpos")}i5.prototype=p5.prototype;i5.prototype.init=function(){var J=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(J)};i5.prototype.getKerningValue=function(J,Y,K){for(var Z=0;Z<J.length;Z++){var X=J[Z].subtables;for(var Q=0;Q<X.length;Q++){var W=X[Q],w=this.getCoverageIndex(W.coverage,Y);if(w<0)continue;switch(W.posFormat){case 1:var $=W.pairSets[w];for(var z=0;z<$.length;z++){var U=$[z];if(U.secondGlyph===K)return U.value1&&U.value1.xAdvance||0}break;case 2:var H=this.getGlyphClass(W.classDef1,Y),A=this.getGlyphClass(W.classDef2,K),V=W.classRecords[H][A];return V.value1&&V.value1.xAdvance||0}}}return 0};i5.prototype.getKerningTables=function(J,Y){if(this.font.tables.gpos)return this.getLookupTables(J,Y,"kern",2)};function s0(J){p5.call(this,J,"gsub")}function LW(J,Y){var K=J.length;if(K!==Y.length)return!1;for(var Z=0;Z<K;Z++)if(J[Z]!==Y[Z])return!1;return!0}function I9(J,Y,K){var Z=J.subtables;for(var X=0;X<Z.length;X++){var Q=Z[X];if(Q.substFormat===Y)return Q}if(K)return Z.push(K),K;return}s0.prototype=p5.prototype;s0.prototype.createDefaultTable=function(){return{version:1,scripts:[{tag:"DFLT",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}};s0.prototype.getSingle=function(J,Y,K){var Z=[],X=this.getLookupTables(Y,K,J,1);for(var Q=0;Q<X.length;Q++){var W=X[Q].subtables;for(var w=0;w<W.length;w++){var $=W[w],z=this.expandCoverage($.coverage),U=void 0;if($.substFormat===1){var H=$.deltaGlyphId;for(U=0;U<z.length;U++){var A=z[U];Z.push({sub:A,by:A+H})}}else{var V=$.substitute;for(U=0;U<z.length;U++)Z.push({sub:z[U],by:V[U]})}}}return Z};s0.prototype.getMultiple=function(J,Y,K){var Z=[],X=this.getLookupTables(Y,K,J,2);for(var Q=0;Q<X.length;Q++){var W=X[Q].subtables;for(var w=0;w<W.length;w++){var $=W[w],z=this.expandCoverage($.coverage),U=void 0;for(U=0;U<z.length;U++){var H=z[U],A=$.sequences[U];Z.push({sub:H,by:A})}}}return Z};s0.prototype.getAlternates=function(J,Y,K){var Z=[],X=this.getLookupTables(Y,K,J,3);for(var Q=0;Q<X.length;Q++){var W=X[Q].subtables;for(var w=0;w<W.length;w++){var $=W[w],z=this.expandCoverage($.coverage),U=$.alternateSets;for(var H=0;H<z.length;H++)Z.push({sub:z[H],by:U[H]})}}return Z};s0.prototype.getLigatures=function(J,Y,K){var Z=[],X=this.getLookupTables(Y,K,J,4);for(var Q=0;Q<X.length;Q++){var W=X[Q].subtables;for(var w=0;w<W.length;w++){var $=W[w],z=this.expandCoverage($.coverage),U=$.ligatureSets;for(var H=0;H<z.length;H++){var A=z[H],V=U[H];for(var O=0;O<V.length;O++){var B=V[O];Z.push({sub:[A].concat(B.components),by:B.ligGlyph})}}}}return Z};s0.prototype.addSingle=function(J,Y,K,Z){var X=this.getLookupTables(K,Z,J,1,!0)[0],Q=I9(X,2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});H0.assert(Q.coverage.format===1,"Single: unable to modify coverage table format "+Q.coverage.format);var W=Y.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]=Y.by};s0.prototype.addMultiple=function(J,Y,K,Z){H0.assert(Y.by instanceof Array&&Y.by.length>1,'Multiple: "by" must be an array of two or more ids');var X=this.getLookupTables(K,Z,J,2,!0)[0],Q=I9(X,1,{substFormat:1,coverage:{format:1,glyphs:[]},sequences:[]});H0.assert(Q.coverage.format===1,"Multiple: unable to modify coverage table format "+Q.coverage.format);var W=Y.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]=Y.by};s0.prototype.addAlternate=function(J,Y,K,Z){var X=this.getLookupTables(K,Z,J,3,!0)[0],Q=I9(X,1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});H0.assert(Q.coverage.format===1,"Alternate: unable to modify coverage table format "+Q.coverage.format);var W=Y.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]=Y.by};s0.prototype.addLigature=function(J,Y,K,Z){var X=this.getLookupTables(K,Z,J,4,!0)[0],Q=X.subtables[0];if(!Q)Q={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},X.subtables[0]=Q;H0.assert(Q.coverage.format===1,"Ligature: unable to modify coverage table format "+Q.coverage.format);var W=Y.sub[0],w=Y.sub.slice(1),$={ligGlyph:Y.by,components:w},z=this.binSearch(Q.coverage.glyphs,W);if(z>=0){var U=Q.ligatureSets[z];for(var H=0;H<U.length;H++)if(LW(U[H].components,w))return;U.push($)}else z=-1-z,Q.coverage.glyphs.splice(z,0,W),Q.ligatureSets.splice(z,0,[$])};s0.prototype.getFeature=function(J,Y,K){if(/ss\d\d/.test(J))return this.getSingle(J,Y,K);switch(J){case"aalt":case"salt":return this.getSingle(J,Y,K).concat(this.getAlternates(J,Y,K));case"dlig":case"liga":case"rlig":return this.getLigatures(J,Y,K);case"ccmp":return this.getMultiple(J,Y,K).concat(this.getLigatures(J,Y,K));case"stch":return this.getMultiple(J,Y,K)}return};s0.prototype.add=function(J,Y,K,Z){if(/ss\d\d/.test(J))return this.addSingle(J,Y,K,Z);switch(J){case"aalt":case"salt":if(typeof Y.by==="number")return this.addSingle(J,Y,K,Z);return this.addAlternate(J,Y,K,Z);case"dlig":case"liga":case"rlig":return this.addLigature(J,Y,K,Z);case"ccmp":if(Y.by instanceof Array)return this.addMultiple(J,Y,K,Z);return this.addLigature(J,Y,K,Z)}return};function m5(J,Y){if(!J)throw Y}function R2(J,Y){return J.getUint8(Y)}function S8(J,Y){return J.getUint16(Y,!1)}function OW(J,Y){return J.getInt16(Y,!1)}function D9(J,Y){return J.getUint32(Y,!1)}function $J(J,Y){var K=J.getInt16(Y,!1),Z=J.getUint16(Y+2,!1);return K+Z/65535}function qW(J,Y){var K="";for(var Z=Y;Z<Y+4;Z+=1)K+=String.fromCharCode(J.getInt8(Z));return K}function MW(J,Y,K){var Z=0;for(var X=0;X<K;X+=1)Z<<=8,Z+=J.getUint8(Y+X);return Z}function NW(J,Y,K){var Z=[];for(var X=Y;X<K;X+=1)Z.push(J.getUint8(X));return Z}function jW(J){var Y="";for(var K=0;K<J.length;K+=1)Y+=String.fromCharCode(J[K]);return Y}var EW={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function v(J,Y){this.data=J,this.offset=Y,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=D9(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,J};v.prototype.parseOffset32=v.prototype.parseULong;v.prototype.parseFixed=function(){var J=$J(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,J};v.prototype.parseString=function(J){var Y=this.data,K=this.offset+this.relativeOffset,Z="";this.relativeOffset+=J;for(var X=0;X<J;X++)Z+=String.fromCharCode(Y.getUint8(K+X));return Z};v.prototype.parseTag=function(){return this.parseString(4)};v.prototype.parseLongDateTime=function(){var J=D9(this.data,this.offset+this.relativeOffset+4);return J-=2082844800,this.relativeOffset+=8,J};v.prototype.parseVersion=function(J){var Y=S8(this.data,this.offset+this.relativeOffset),K=S8(this.data,this.offset+this.relativeOffset+2);if(this.relativeOffset+=4,J===void 0)J=4096;return Y+K/J/10};v.prototype.skip=function(J,Y){if(Y===void 0)Y=1;this.relativeOffset+=EW[J]*Y};v.prototype.parseULongList=function(J){if(J===void 0)J=this.parseULong();var Y=Array(J),K=this.data,Z=this.offset+this.relativeOffset;for(var X=0;X<J;X++)Y[X]=K.getUint32(Z),Z+=4;return this.relativeOffset+=J*4,Y};v.prototype.parseOffset16List=v.prototype.parseUShortList=function(J){if(J===void 0)J=this.parseUShort();var Y=Array(J),K=this.data,Z=this.offset+this.relativeOffset;for(var X=0;X<J;X++)Y[X]=K.getUint16(Z),Z+=2;return this.relativeOffset+=J*2,Y};v.prototype.parseShortList=function(J){var Y=Array(J),K=this.data,Z=this.offset+this.relativeOffset;for(var X=0;X<J;X++)Y[X]=K.getInt16(Z),Z+=2;return this.relativeOffset+=J*2,Y};v.prototype.parseByteList=function(J){var Y=Array(J),K=this.data,Z=this.offset+this.relativeOffset;for(var X=0;X<J;X++)Y[X]=K.getUint8(Z++);return this.relativeOffset+=J,Y};v.prototype.parseList=function(J,Y){if(!Y)Y=J,J=this.parseUShort();var K=Array(J);for(var Z=0;Z<J;Z++)K[Z]=Y.call(this);return K};v.prototype.parseList32=function(J,Y){if(!Y)Y=J,J=this.parseULong();var K=Array(J);for(var Z=0;Z<J;Z++)K[Z]=Y.call(this);return K};v.prototype.parseRecordList=function(J,Y){if(!Y)Y=J,J=this.parseUShort();var K=Array(J),Z=Object.keys(Y);for(var X=0;X<J;X++){var Q={};for(var W=0;W<Z.length;W++){var w=Z[W],$=Y[w];Q[w]=$.call(this)}K[X]=Q}return K};v.prototype.parseRecordList32=function(J,Y){if(!Y)Y=J,J=this.parseULong();var K=Array(J),Z=Object.keys(Y);for(var X=0;X<J;X++){var Q={};for(var W=0;W<Z.length;W++){var w=Z[W],$=Y[w];Q[w]=$.call(this)}K[X]=Q}return K};v.prototype.parseStruct=function(J){if(typeof J==="function")return J.call(this);else{var Y=Object.keys(J),K={};for(var Z=0;Z<Y.length;Z++){var X=Y[Z],Q=J[X];K[X]=Q.call(this)}return K}};v.prototype.parseValueRecord=function(J){if(J===void 0)J=this.parseUShort();if(J===0)return;var Y={};if(J&1)Y.xPlacement=this.parseShort();if(J&2)Y.yPlacement=this.parseShort();if(J&4)Y.xAdvance=this.parseShort();if(J&8)Y.yAdvance=this.parseShort();if(J&16)Y.xPlaDevice=void 0,this.parseShort();if(J&32)Y.yPlaDevice=void 0,this.parseShort();if(J&64)Y.xAdvDevice=void 0,this.parseShort();if(J&128)Y.yAdvDevice=void 0,this.parseShort();return Y};v.prototype.parseValueRecordList=function(){var J=this.parseUShort(),Y=this.parseUShort(),K=Array(Y);for(var Z=0;Z<Y;Z++)K[Z]=this.parseValueRecord(J);return K};v.prototype.parsePointer=function(J){var Y=this.parseOffset16();if(Y>0)return new v(this.data,this.offset+Y).parseStruct(J);return};v.prototype.parsePointer32=function(J){var Y=this.parseOffset32();if(Y>0)return new v(this.data,this.offset+Y).parseStruct(J);return};v.prototype.parseListOfLists=function(J){var Y=this.parseOffset16List(),K=Y.length,Z=this.relativeOffset,X=Array(K);for(var Q=0;Q<K;Q++){var W=Y[Q];if(W===0){X[Q]=void 0;continue}if(this.relativeOffset=W,J){var w=this.parseOffset16List(),$=Array(w.length);for(var z=0;z<w.length;z++)this.relativeOffset=W+w[z],$[z]=J.call(this);X[Q]=$}else X[Q]=this.parseUShortList()}return this.relativeOffset=Z,X};v.prototype.parseCoverage=function(){var J=this.offset+this.relativeOffset,Y=this.parseUShort(),K=this.parseUShort();if(Y===1)return{format:1,glyphs:this.parseUShortList(K)};else if(Y===2){var Z=Array(K);for(var X=0;X<K;X++)Z[X]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:Z}}throw Error("0x"+J.toString(16)+": Coverage format must be 1 or 2.")};v.prototype.parseClassDef=function(){var J=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};else if(Y===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,Y){return function(){return this.parseList(J,Y)}};v.list32=function(J,Y){return function(){return this.parseList32(J,Y)}};v.recordList=function(J,Y){return function(){return this.parseRecordList(J,Y)}};v.recordList32=function(J,Y){return function(){return this.parseRecordList32(J,Y)}};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 C2={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(C2),langSysRecords:v.recordList({tag:v.tag,langSys:v.pointer(C2)})})}))||[]};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 Y=this.parseUShort();H0.argument(1<=Y&&Y<=9,"GPOS/GSUB lookup type "+Y+" unknown.");var K=this.parseUShort(),Z=K&16;return{lookupType:Y,lookupFlag:K,subtables:this.parseList(v.pointer(J[Y])),markFilteringSet:Z?this.parseUShort():void 0}})))||[]};v.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var J=this.parseUShort(),Y=this.parseUShort();H0.argument(J===1&&Y<1,"GPOS/GSUB feature variations table unknown.");var K=this.parseRecordList32({conditionSetOffset:v.offset32,featureTableSubstitutionOffset:v.offset32});return K})||[]};var o={getByte:R2,getCard8:R2,getUShort:S8,getCard16:S8,getShort:OW,getULong:D9,getFixed:$J,getTag:qW,getOffset:MW,getBytes:NW,bytesToString:jW,Parser:v};function T2(J,Y,K,Z,X){var Q;if((Y&Z)>0){if(Q=J.parseByte(),(Y&X)===0)Q=-Q;Q=K+Q}else if((Y&X)>0)Q=K;else Q=K+J.parseShort();return Q}function wJ(J,Y,K){var Z=new o.Parser(Y,K);J.numberOfContours=Z.parseShort(),J._xMin=Z.parseShort(),J._yMin=Z.parseShort(),J._xMax=Z.parseShort(),J._yMax=Z.parseShort();var X,Q;if(J.numberOfContours>0){var W=J.endPointIndices=[];for(var w=0;w<J.numberOfContours;w+=1)W.push(Z.parseUShort());J.instructionLength=Z.parseUShort(),J.instructions=[];for(var $=0;$<J.instructionLength;$+=1)J.instructions.push(Z.parseByte());var z=W[W.length-1]+1;X=[];for(var U=0;U<z;U+=1)if(Q=Z.parseByte(),X.push(Q),(Q&8)>0){var H=Z.parseByte();for(var A=0;A<H;A+=1)X.push(Q),U+=1}if(H0.argument(X.length===z,"Bad flags."),W.length>0){var V=[],O;if(z>0){for(var B=0;B<z;B+=1)Q=X[B],O={},O.onCurve=!!(Q&1),O.lastPointOfContour=W.indexOf(B)>=0,V.push(O);var L=0;for(var M=0;M<z;M+=1)Q=X[M],O=V[M],O.x=T2(Z,Q,L,2,16),L=O.x;var N=0;for(var E=0;E<z;E+=1)Q=X[E],O=V[E],O.y=T2(Z,Q,N,4,32),N=O.y}J.points=V}else J.points=[]}else if(J.numberOfContours===0)J.points=[];else{J.isComposite=!0,J.points=[],J.components=[];var I=!0;while(I){X=Z.parseUShort();var F={glyphIndex:Z.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};if((X&1)>0)if((X&2)>0)F.dx=Z.parseShort(),F.dy=Z.parseShort();else F.matchedPoints=[Z.parseUShort(),Z.parseUShort()];else if((X&2)>0)F.dx=Z.parseChar(),F.dy=Z.parseChar();else F.matchedPoints=[Z.parseByte(),Z.parseByte()];if((X&8)>0)F.xScale=F.yScale=Z.parseF2Dot14();else if((X&64)>0)F.xScale=Z.parseF2Dot14(),F.yScale=Z.parseF2Dot14();else if((X&128)>0)F.xScale=Z.parseF2Dot14(),F.scale01=Z.parseF2Dot14(),F.scale10=Z.parseF2Dot14(),F.yScale=Z.parseF2Dot14();J.components.push(F),I=!!(X&32)}if(X&256){J.instructionLength=Z.parseUShort(),J.instructions=[];for(var j=0;j<J.instructionLength;j+=1)J.instructions.push(Z.parseByte())}}}function G9(J,Y){var K=[];for(var Z=0;Z<J.length;Z+=1){var X=J[Z],Q={x:Y.xScale*X.x+Y.scale01*X.y+Y.dx,y:Y.scale10*X.x+Y.yScale*X.y+Y.dy,onCurve:X.onCurve,lastPointOfContour:X.lastPointOfContour};K.push(Q)}return K}function FW(J){var Y=[],K=[];for(var Z=0;Z<J.length;Z+=1){var X=J[Z];if(K.push(X),X.lastPointOfContour)Y.push(K),K=[]}return H0.argument(K.length===0,"There are still points left in the current contour."),Y}function zJ(J){var Y=new m0;if(!J)return Y;var K=FW(J);for(var Z=0;Z<K.length;++Z){var X=K[Z],Q=null,W=X[X.length-1],w=X[0];if(W.onCurve)Y.moveTo(W.x,W.y);else if(w.onCurve)Y.moveTo(w.x,w.y);else{var $={x:(W.x+w.x)*0.5,y:(W.y+w.y)*0.5};Y.moveTo($.x,$.y)}for(var z=0;z<X.length;++z)if(Q=W,W=w,w=X[(z+1)%X.length],W.onCurve)Y.lineTo(W.x,W.y);else{var U=Q,H=w;if(!Q.onCurve)U={x:(W.x+Q.x)*0.5,y:(W.y+Q.y)*0.5};if(!w.onCurve)H={x:(W.x+w.x)*0.5,y:(W.y+w.y)*0.5};Y.quadraticCurveTo(W.x,W.y,H.x,H.y)}Y.closePath()}return Y}function UJ(J,Y){if(Y.isComposite)for(var K=0;K<Y.components.length;K+=1){var Z=Y.components[K],X=J.get(Z.glyphIndex);if(X.getPath(),X.points){var Q=void 0;if(Z.matchedPoints===void 0)Q=G9(X.points,Z);else{if(Z.matchedPoints[0]>Y.points.length-1||Z.matchedPoints[1]>X.points.length-1)throw Error("Matched points out of range in "+Y.name);var W=Y.points[Z.matchedPoints[0]],w=X.points[Z.matchedPoints[1]],$={xScale:Z.xScale,scale01:Z.scale01,scale10:Z.scale10,yScale:Z.yScale,dx:0,dy:0};w=G9([w],$)[0],$.dx=W.x-w.x,$.dy=W.y-w.y,Q=G9(X.points,$)}Y.points=Y.points.concat(Q)}}return zJ(Y.points)}function _W(J,Y,K,Z){var X=new I1.GlyphSet(Z);for(var Q=0;Q<K.length-1;Q+=1){var W=K[Q],w=K[Q+1];if(W!==w)X.push(Q,I1.ttfGlyphLoader(Z,Q,wJ,J,Y+W,UJ));else X.push(Q,I1.glyphLoader(Z,Q))}return X}function IW(J,Y,K,Z){var X=new I1.GlyphSet(Z);return Z._push=function(Q){var W=K[Q],w=K[Q+1];if(W!==w)X.push(Q,I1.ttfGlyphLoader(Z,Q,wJ,J,Y+W,UJ));else X.push(Q,I1.glyphLoader(Z,Q))},X}function DW(J,Y,K,Z,X){if(X.lowMemory)return IW(J,Y,K,Z);else return _W(J,Y,K,Z)}var HJ={getPath:zJ,parse:DW},AJ,X5,VJ,E9;function BJ(J){this.font=J,this.getCommands=function(Y){return HJ.getPath(Y).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function RW(J){return J}function GJ(J){return Math.sign(J)*Math.round(Math.abs(J))}function CW(J){return Math.sign(J)*Math.round(Math.abs(J*2))/2}function TW(J){return Math.sign(J)*(Math.round(Math.abs(J)+0.5)-0.5)}function PW(J){return Math.sign(J)*Math.ceil(Math.abs(J))}function SW(J){return Math.sign(J)*Math.floor(Math.abs(J))}var LJ=function(J){var Y=this.srPeriod,K=this.srPhase,Z=this.srThreshold,X=1;if(J<0)J=-J,X=-1;if(J+=Z-K,J=Math.trunc(J/Y)*Y,J+=K,J<0)return K*X;return J*X},_1={x:1,y:0,axis:"x",distance:function(J,Y,K,Z){return(K?J.xo:J.x)-(Z?Y.xo:Y.x)},interpolate:function(J,Y,K,Z){var X,Q,W,w,$,z,U;if(!Z||Z===this){if(X=J.xo-Y.xo,Q=J.xo-K.xo,$=Y.x-Y.xo,z=K.x-K.xo,W=Math.abs(X),w=Math.abs(Q),U=W+w,U===0){J.x=J.xo+($+z)/2;return}J.x=J.xo+($*w+z*W)/U;return}if(X=Z.distance(J,Y,!0,!0),Q=Z.distance(J,K,!0,!0),$=Z.distance(Y,Y,!1,!0),z=Z.distance(K,K,!1,!0),W=Math.abs(X),w=Math.abs(Q),U=W+w,U===0){_1.setRelative(J,J,($+z)/2,Z,!0);return}_1.setRelative(J,J,($*w+z*W)/U,Z,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(J,Y,K,Z,X){if(!Z||Z===this){J.x=(X?Y.xo:Y.x)+K;return}var Q=X?Y.xo:Y.x,W=X?Y.yo:Y.y,w=Q+K*Z.x,$=W+K*Z.y;J.x=w+(J.y-$)/Z.normalSlope},slope:0,touch:function(J){J.xTouched=!0},touched:function(J){return J.xTouched},untouch:function(J){J.xTouched=!1}},P1={x:0,y:1,axis:"y",distance:function(J,Y,K,Z){return(K?J.yo:J.y)-(Z?Y.yo:Y.y)},interpolate:function(J,Y,K,Z){var X,Q,W,w,$,z,U;if(!Z||Z===this){if(X=J.yo-Y.yo,Q=J.yo-K.yo,$=Y.y-Y.yo,z=K.y-K.yo,W=Math.abs(X),w=Math.abs(Q),U=W+w,U===0){J.y=J.yo+($+z)/2;return}J.y=J.yo+($*w+z*W)/U;return}if(X=Z.distance(J,Y,!0,!0),Q=Z.distance(J,K,!0,!0),$=Z.distance(Y,Y,!1,!0),z=Z.distance(K,K,!1,!0),W=Math.abs(X),w=Math.abs(Q),U=W+w,U===0){P1.setRelative(J,J,($+z)/2,Z,!0);return}P1.setRelative(J,J,($*w+z*W)/U,Z,!0)},normalSlope:0,setRelative:function(J,Y,K,Z,X){if(!Z||Z===this){J.y=(X?Y.yo:Y.y)+K;return}var Q=X?Y.xo:Y.x,W=X?Y.yo:Y.y,w=Q+K*Z.x,$=W+K*Z.y;J.y=$+Z.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(_1);Object.freeze(P1);function n5(J,Y){this.x=J,this.y=Y,this.axis=void 0,this.slope=Y/J,this.normalSlope=-J/Y,Object.freeze(this)}n5.prototype.distance=function(J,Y,K,Z){return this.x*_1.distance(J,Y,K,Z)+this.y*P1.distance(J,Y,K,Z)};n5.prototype.interpolate=function(J,Y,K,Z){var X,Q,W,w,$,z,U;if(W=Z.distance(J,Y,!0,!0),w=Z.distance(J,K,!0,!0),X=Z.distance(Y,Y,!1,!0),Q=Z.distance(K,K,!1,!0),$=Math.abs(W),z=Math.abs(w),U=$+z,U===0){this.setRelative(J,J,(X+Q)/2,Z,!0);return}this.setRelative(J,J,(X*z+Q*$)/U,Z,!0)};n5.prototype.setRelative=function(J,Y,K,Z,X){Z=Z||this;var Q=X?Y.xo:Y.x,W=X?Y.yo:Y.y,w=Q+K*Z.x,$=W+K*Z.y,z=Z.normalSlope,U=this.slope,H=J.x,A=J.y;J.x=(U*H-z*w+$-A)/(U-z),J.y=U*(J.x-H)+A};n5.prototype.touch=function(J){J.xTouched=!0,J.yTouched=!0};function o5(J,Y){var K=Math.sqrt(J*J+Y*Y);if(J/=K,Y/=K,J===1&&Y===0)return _1;else if(J===0&&Y===1)return P1;else return new n5(J,Y)}function S1(J,Y,K,Z){this.x=this.xo=Math.round(J*64)/64,this.y=this.yo=Math.round(Y*64)/64,this.lastPointOfContour=K,this.onCurve=Z,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}S1.prototype.nextTouched=function(J){var Y=this.nextPointOnContour;while(!J.touched(Y)&&Y!==this)Y=Y.nextPointOnContour;return Y};S1.prototype.prevTouched=function(J){var Y=this.prevPointOnContour;while(!J.touched(Y)&&Y!==this)Y=Y.prevPointOnContour;return Y};var u5=Object.freeze(new S1(0,0)),vW={cvCutIn:1.0625,deltaBase:9,deltaShift:0.125,loop:1,minDis:1,autoFlip:!0};function p1(J,Y){switch(this.env=J,this.stack=[],this.prog=Y,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=_1,this.round=GJ}}BJ.prototype.exec=function(J,Y){if(typeof Y!=="number")throw Error("Point size is not a number!");if(this._errorState>2)return;var K=this.font,Z=this._prepState;if(!Z||Z.ppem!==Y){var X=this._fpgmState;if(!X){if(p1.prototype=vW,X=this._fpgmState=new p1("fpgm",K.tables.fpgm),X.funcs=[],X.font=K,IB.DEBUG)console.log("---EXEC FPGM---"),X.step=-1;try{X5(X)}catch(z){console.log("Hinting error in FPGM:"+z),this._errorState=3;return}}p1.prototype=X,Z=this._prepState=new p1("prep",K.tables.prep),Z.ppem=Y;var Q=K.tables.cvt;if(Q){var W=Z.cvt=Array(Q.length),w=Y/K.unitsPerEm;for(var $=0;$<Q.length;$++)W[$]=Q[$]*w}else Z.cvt=[];if(IB.DEBUG)console.log("---EXEC PREP---"),Z.step=-1;try{X5(Z)}catch(z){if(this._errorState<2)console.log("Hinting error in PREP:"+z);this._errorState=2}}if(this._errorState>1)return;try{return VJ(J,Z)}catch(z){if(this._errorState<1)console.log("Hinting error:"+z),console.log("Note: further hinting errors are silenced");this._errorState=1;return}};VJ=function(J,Y){var K=Y.ppem/Y.font.unitsPerEm,Z=K,X=J.components,Q,W,w;if(p1.prototype=Y,!X){if(w=new p1("glyf",J.instructions),IB.DEBUG)console.log("---EXEC GLYPH---"),w.step=-1;E9(J,w,K,Z),W=w.gZone}else{var $=Y.font;W=[],Q=[];for(var z=0;z<X.length;z++){var U=X[z],H=$.glyphs.get(U.glyphIndex);if(w=new p1("glyf",H.instructions),IB.DEBUG)console.log("---EXEC COMP "+z+"---"),w.step=-1;E9(H,w,K,Z);var A=Math.round(U.dx*K),V=Math.round(U.dy*Z),O=w.gZone,B=w.contours;for(var L=0;L<O.length;L++){var M=O[L];M.xTouched=M.yTouched=!1,M.xo=M.x=M.x+A,M.yo=M.y=M.y+V}var N=W.length;W.push.apply(W,O);for(var E=0;E<B.length;E++)Q.push(B[E]+N)}if(J.instructions&&!w.inhibitGridFit){if(w=new p1("glyf",J.instructions),w.gZone=w.z0=w.z1=w.z2=W,w.contours=Q,W.push(new S1(0,0),new S1(Math.round(J.advanceWidth*K),0)),IB.DEBUG)console.log("---EXEC COMPOSITE---"),w.step=-1;X5(w),W.length-=2}}return W};E9=function(J,Y,K,Z){var X=J.points||[],Q=X.length,W=Y.gZone=Y.z0=Y.z1=Y.z2=[],w=Y.contours=[],$;for(var z=0;z<Q;z++)$=X[z],W[z]=new S1($.x*K,$.y*Z,$.lastPointOfContour,$.onCurve);var U,H;for(var A=0;A<Q;A++){if($=W[A],!U)U=$,w.push(A);if($.lastPointOfContour)$.nextPointOnContour=U,U.prevPointOnContour=$,U=void 0;else H=W[A+1],$.nextPointOnContour=H,H.prevPointOnContour=$}if(Y.inhibitGridFit)return;if(IB.DEBUG){console.log("PROCESSING GLYPH",Y.stack);for(var V=0;V<Q;V++)console.log(V,W[V].x,W[V].y)}if(W.push(new S1(0,0),new S1(Math.round(J.advanceWidth*K),0)),X5(Y),W.length-=2,IB.DEBUG){console.log("FINISHED GLYPH",Y.stack);for(var O=0;O<Q;O++)console.log(O,W[O].x,W[O].y)}};X5=function(J){var Y=J.prog;if(!Y)return;var K=Y.length,Z;for(J.ip=0;J.ip<K;J.ip++){if(IB.DEBUG)J.step++;if(Z=AJ[Y[J.ip]],!Z)throw Error("unknown instruction: 0x"+Number(Y[J.ip]).toString(16));Z(J)}};function v8(J){var Y=J.tZone=Array(J.gZone.length);for(var K=0;K<Y.length;K++)Y[K]=new S1(0,0)}function OJ(J,Y){var{prog:K,ip:Z}=J,X=1,Q;do if(Q=K[++Z],Q===88)X++;else if(Q===89)X--;else if(Q===64)Z+=K[Z+1]+1;else if(Q===65)Z+=2*K[Z+1]+1;else if(Q>=176&&Q<=183)Z+=Q-176+1;else if(Q>=184&&Q<=191)Z+=(Q-184+1)*2;else if(Y&&X===1&&Q===27)break;while(X>0);J.ip=Z}function P2(J,Y){if(IB.DEBUG)console.log(Y.step,"SVTCA["+J.axis+"]");Y.fv=Y.pv=Y.dpv=J}function S2(J,Y){if(IB.DEBUG)console.log(Y.step,"SPVTCA["+J.axis+"]");Y.pv=Y.dpv=J}function v2(J,Y){if(IB.DEBUG)console.log(Y.step,"SFVTCA["+J.axis+"]");Y.fv=J}function k2(J,Y){var K=Y.stack,Z=K.pop(),X=K.pop(),Q=Y.z2[Z],W=Y.z1[X];if(IB.DEBUG)console.log("SPVTL["+J+"]",Z,X);var w,$;if(!J)w=W.x-Q.x,$=W.y-Q.y;else w=Q.y-W.y,$=W.x-Q.x;Y.pv=Y.dpv=o5(w,$)}function y2(J,Y){var K=Y.stack,Z=K.pop(),X=K.pop(),Q=Y.z2[Z],W=Y.z1[X];if(IB.DEBUG)console.log("SFVTL["+J+"]",Z,X);var w,$;if(!J)w=W.x-Q.x,$=W.y-Q.y;else w=Q.y-W.y,$=W.x-Q.x;Y.fv=o5(w,$)}function kW(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(IB.DEBUG)console.log(J.step,"SPVFS[]",K,Z);J.pv=J.dpv=o5(Z,K)}function yW(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(IB.DEBUG)console.log(J.step,"SPVFS[]",K,Z);J.fv=o5(Z,K)}function gW(J){var{stack:Y,pv:K}=J;if(IB.DEBUG)console.log(J.step,"GPV[]");Y.push(K.x*16384),Y.push(K.y*16384)}function hW(J){var{stack:Y,fv:K}=J;if(IB.DEBUG)console.log(J.step,"GFV[]");Y.push(K.x*16384),Y.push(K.y*16384)}function xW(J){if(J.fv=J.pv,IB.DEBUG)console.log(J.step,"SFVTPV[]")}function bW(J){var Y=J.stack,K=Y.pop(),Z=Y.pop(),X=Y.pop(),Q=Y.pop(),W=Y.pop(),w=J.z0,$=J.z1,z=w[K],U=w[Z],H=$[X],A=$[Q],V=J.z2[W];if(IB.DEBUG)console.log("ISECT[], ",K,Z,X,Q,W);var{x:O,y:B}=z,L=U.x,M=U.y,N=H.x,E=H.y,I=A.x,F=A.y,j=(O-L)*(E-F)-(B-M)*(N-I),T=O*M-B*L,D=N*F-E*I;V.x=(T*(N-I)-D*(O-L))/j,V.y=(T*(E-F)-D*(B-M))/j}function fW(J){if(J.rp0=J.stack.pop(),IB.DEBUG)console.log(J.step,"SRP0[]",J.rp0)}function mW(J){if(J.rp1=J.stack.pop(),IB.DEBUG)console.log(J.step,"SRP1[]",J.rp1)}function cW(J){if(J.rp2=J.stack.pop(),IB.DEBUG)console.log(J.step,"SRP2[]",J.rp2)}function dW(J){var Y=J.stack.pop();if(IB.DEBUG)console.log(J.step,"SZP0[]",Y);switch(J.zp0=Y,Y){case 0:if(!J.tZone)v8(J);J.z0=J.tZone;break;case 1:J.z0=J.gZone;break;default:throw Error("Invalid zone pointer")}}function uW(J){var Y=J.stack.pop();if(IB.DEBUG)console.log(J.step,"SZP1[]",Y);switch(J.zp1=Y,Y){case 0:if(!J.tZone)v8(J);J.z1=J.tZone;break;case 1:J.z1=J.gZone;break;default:throw Error("Invalid zone pointer")}}function lW(J){var Y=J.stack.pop();if(IB.DEBUG)console.log(J.step,"SZP2[]",Y);switch(J.zp2=Y,Y){case 0:if(!J.tZone)v8(J);J.z2=J.tZone;break;case 1:J.z2=J.gZone;break;default:throw Error("Invalid zone pointer")}}function pW(J){var Y=J.stack.pop();if(IB.DEBUG)console.log(J.step,"SZPS[]",Y);switch(J.zp0=J.zp1=J.zp2=Y,Y){case 0:if(!J.tZone)v8(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 iW(J){if(J.loop=J.stack.pop(),IB.DEBUG)console.log(J.step,"SLOOP[]",J.loop)}function nW(J){if(IB.DEBUG)console.log(J.step,"RTG[]");J.round=GJ}function oW(J){if(IB.DEBUG)console.log(J.step,"RTHG[]");J.round=TW}function rW(J){var Y=J.stack.pop();if(IB.DEBUG)console.log(J.step,"SMD[]",Y);J.minDis=Y/64}function sW(J){if(IB.DEBUG)console.log(J.step,"ELSE[]");OJ(J,!1)}function aW(J){var Y=J.stack.pop();if(IB.DEBUG)console.log(J.step,"JMPR[]",Y);J.ip+=Y-1}function tW(J){var Y=J.stack.pop();if(IB.DEBUG)console.log(J.step,"SCVTCI[]",Y);J.cvCutIn=Y/64}function eW(J){var Y=J.stack;if(IB.DEBUG)console.log(J.step,"DUP[]");Y.push(Y[Y.length-1])}function L9(J){if(IB.DEBUG)console.log(J.step,"POP[]");J.stack.pop()}function J$(J){if(IB.DEBUG)console.log(J.step,"CLEAR[]");J.stack.length=0}function Y$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(IB.DEBUG)console.log(J.step,"SWAP[]");Y.push(K),Y.push(Z)}function K$(J){var Y=J.stack;if(IB.DEBUG)console.log(J.step,"DEPTH[]");Y.push(Y.length)}function Z$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(IB.DEBUG)console.log(J.step,"LOOPCALL[]",K,Z);var{ip:X,prog:Q}=J;J.prog=J.funcs[K];for(var W=0;W<Z;W++)if(X5(J),IB.DEBUG)console.log(++J.step,W+1<Z?"next loopcall":"done loopcall",W);J.ip=X,J.prog=Q}function X$(J){var Y=J.stack.pop();if(IB.DEBUG)console.log(J.step,"CALL[]",Y);var{ip:K,prog:Z}=J;if(J.prog=J.funcs[Y],X5(J),J.ip=K,J.prog=Z,IB.DEBUG)console.log(++J.step,"returning from",Y)}function Q$(J){var Y=J.stack,K=Y.pop();if(IB.DEBUG)console.log(J.step,"CINDEX[]",K);Y.push(Y[Y.length-K])}function W$(J){var Y=J.stack,K=Y.pop();if(IB.DEBUG)console.log(J.step,"MINDEX[]",K);Y.push(Y.splice(Y.length-K,1)[0])}function $$(J){if(J.env!=="fpgm")throw Error("FDEF not allowed here");var{stack:Y,prog:K,ip:Z}=J,X=Y.pop(),Q=Z;if(IB.DEBUG)console.log(J.step,"FDEF[]",X);while(K[++Z]!==45);J.ip=Z,J.funcs[X]=K.slice(Q+1,Z)}function g2(J,Y){var K=Y.stack.pop(),Z=Y.z0[K],X=Y.fv,Q=Y.pv;if(IB.DEBUG)console.log(Y.step,"MDAP["+J+"]",K);var W=Q.distance(Z,u5);if(J)W=Y.round(W);X.setRelative(Z,u5,W,Q),X.touch(Z),Y.rp0=Y.rp1=K}function h2(J,Y){var K=Y.z2,Z=K.length-2,X,Q,W;if(IB.DEBUG)console.log(Y.step,"IUP["+J.axis+"]");for(var w=0;w<Z;w++){if(X=K[w],J.touched(X))continue;if(Q=X.prevTouched(J),Q===X)continue;if(W=X.nextTouched(J),Q===W)J.setRelative(X,X,J.distance(Q,Q,!1,!0),J,!0);J.interpolate(X,Q,W,J)}}function x2(J,Y){var K=Y.stack,Z=J?Y.rp1:Y.rp2,X=(J?Y.z0:Y.z1)[Z],Q=Y.fv,W=Y.pv,w=Y.loop,$=Y.z2;while(w--){var z=K.pop(),U=$[z],H=W.distance(X,X,!1,!0);if(Q.setRelative(U,U,H,W),Q.touch(U),IB.DEBUG)console.log(Y.step,(Y.loop>1?"loop "+(Y.loop-w)+": ":"")+"SHP["+(J?"rp1":"rp2")+"]",z)}Y.loop=1}function b2(J,Y){var K=Y.stack,Z=J?Y.rp1:Y.rp2,X=(J?Y.z0:Y.z1)[Z],Q=Y.fv,W=Y.pv,w=K.pop(),$=Y.z2[Y.contours[w]],z=$;if(IB.DEBUG)console.log(Y.step,"SHC["+J+"]",w);var U=W.distance(X,X,!1,!0);do{if(z!==X)Q.setRelative(z,z,U,W);z=z.nextPointOnContour}while(z!==$)}function f2(J,Y){var K=Y.stack,Z=J?Y.rp1:Y.rp2,X=(J?Y.z0:Y.z1)[Z],Q=Y.fv,W=Y.pv,w=K.pop();if(IB.DEBUG)console.log(Y.step,"SHZ["+J+"]",w);var $;switch(w){case 0:$=Y.tZone;break;case 1:$=Y.gZone;break;default:throw Error("Invalid zone")}var z,U=W.distance(X,X,!1,!0),H=$.length-2;for(var A=0;A<H;A++)z=$[A],Q.setRelative(z,z,U,W)}function w$(J){var{stack:Y,loop:K,fv:Z}=J,X=Y.pop()/64,Q=J.z2;while(K--){var W=Y.pop(),w=Q[W];if(IB.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-K)+": ":"")+"SHPIX[]",W,X);Z.setRelative(w,w,X),Z.touch(w)}J.loop=1}function z$(J){var{stack:Y,rp1:K,rp2:Z,loop:X}=J,Q=J.z0[K],W=J.z1[Z],w=J.fv,$=J.dpv,z=J.z2;while(X--){var U=Y.pop(),H=z[U];if(IB.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-X)+": ":"")+"IP[]",U,K,"<->",Z);w.interpolate(H,Q,W,$),w.touch(H)}J.loop=1}function m2(J,Y){var K=Y.stack,Z=K.pop()/64,X=K.pop(),Q=Y.z1[X],W=Y.z0[Y.rp0],w=Y.fv,$=Y.pv;if(w.setRelative(Q,W,Z,$),w.touch(Q),IB.DEBUG)console.log(Y.step,"MSIRP["+J+"]",Z,X);if(Y.rp1=Y.rp0,Y.rp2=X,J)Y.rp0=X}function U$(J){var{stack:Y,rp0:K}=J,Z=J.z0[K],X=J.loop,Q=J.fv,W=J.pv,w=J.z1;while(X--){var $=Y.pop(),z=w[$];if(IB.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-X)+": ":"")+"ALIGNRP[]",$);Q.setRelative(z,Z,0,W),Q.touch(z)}J.loop=1}function H$(J){if(IB.DEBUG)console.log(J.step,"RTDG[]");J.round=CW}function c2(J,Y){var K=Y.stack,Z=K.pop(),X=K.pop(),Q=Y.z0[X],W=Y.fv,w=Y.pv,$=Y.cvt[Z];if(IB.DEBUG)console.log(Y.step,"MIAP["+J+"]",Z,"(",$,")",X);var z=w.distance(Q,u5);if(J){if(Math.abs(z-$)<Y.cvCutIn)z=$;z=Y.round(z)}if(W.setRelative(Q,u5,z,w),Y.zp0===0)Q.xo=Q.x,Q.yo=Q.y;W.touch(Q),Y.rp0=Y.rp1=X}function A$(J){var{prog:Y,ip:K,stack:Z}=J,X=Y[++K];if(IB.DEBUG)console.log(J.step,"NPUSHB[]",X);for(var Q=0;Q<X;Q++)Z.push(Y[++K]);J.ip=K}function V$(J){var{ip:Y,prog:K,stack:Z}=J,X=K[++Y];if(IB.DEBUG)console.log(J.step,"NPUSHW[]",X);for(var Q=0;Q<X;Q++){var W=K[++Y]<<8|K[++Y];if(W&32768)W=-((W^65535)+1);Z.push(W)}J.ip=Y}function B$(J){var{stack:Y,store:K}=J;if(!K)K=J.store=[];var Z=Y.pop(),X=Y.pop();if(IB.DEBUG)console.log(J.step,"WS",Z,X);K[X]=Z}function G$(J){var{stack:Y,store:K}=J,Z=Y.pop();if(IB.DEBUG)console.log(J.step,"RS",Z);var X=K&&K[Z]||0;Y.push(X)}function L$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(IB.DEBUG)console.log(J.step,"WCVTP",K,Z);J.cvt[Z]=K/64}function O$(J){var Y=J.stack,K=Y.pop();if(IB.DEBUG)console.log(J.step,"RCVT",K);Y.push(J.cvt[K]*64)}function d2(J,Y){var K=Y.stack,Z=K.pop(),X=Y.z2[Z];if(IB.DEBUG)console.log(Y.step,"GC["+J+"]",Z);K.push(Y.dpv.distance(X,u5,J,!1)*64)}function u2(J,Y){var K=Y.stack,Z=K.pop(),X=K.pop(),Q=Y.z1[Z],W=Y.z0[X],w=Y.dpv.distance(W,Q,J,J);if(IB.DEBUG)console.log(Y.step,"MD["+J+"]",Z,X,"->",w);Y.stack.push(Math.round(w*64))}function q$(J){if(IB.DEBUG)console.log(J.step,"MPPEM[]");J.stack.push(J.ppem)}function M$(J){if(IB.DEBUG)console.log(J.step,"FLIPON[]");J.autoFlip=!0}function N$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(IB.DEBUG)console.log(J.step,"LT[]",K,Z);Y.push(Z<K?1:0)}function j$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(IB.DEBUG)console.log(J.step,"LTEQ[]",K,Z);Y.push(Z<=K?1:0)}function E$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(IB.DEBUG)console.log(J.step,"GT[]",K,Z);Y.push(Z>K?1:0)}function F$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(IB.DEBUG)console.log(J.step,"GTEQ[]",K,Z);Y.push(Z>=K?1:0)}function _$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(IB.DEBUG)console.log(J.step,"EQ[]",K,Z);Y.push(K===Z?1:0)}function I$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(IB.DEBUG)console.log(J.step,"NEQ[]",K,Z);Y.push(K!==Z?1:0)}function D$(J){var Y=J.stack,K=Y.pop();if(IB.DEBUG)console.log(J.step,"ODD[]",K);Y.push(Math.trunc(K)%2?1:0)}function R$(J){var Y=J.stack,K=Y.pop();if(IB.DEBUG)console.log(J.step,"EVEN[]",K);Y.push(Math.trunc(K)%2?0:1)}function C$(J){var Y=J.stack.pop();if(IB.DEBUG)console.log(J.step,"IF[]",Y);if(!Y){if(OJ(J,!0),IB.DEBUG)console.log(J.step,"EIF[]")}}function T$(J){if(IB.DEBUG)console.log(J.step,"EIF[]")}function P$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(IB.DEBUG)console.log(J.step,"AND[]",K,Z);Y.push(K&&Z?1:0)}function S$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(IB.DEBUG)console.log(J.step,"OR[]",K,Z);Y.push(K||Z?1:0)}function v$(J){var Y=J.stack,K=Y.pop();if(IB.DEBUG)console.log(J.step,"NOT[]",K);Y.push(K?0:1)}function O9(J,Y){var K=Y.stack,Z=K.pop(),X=Y.fv,Q=Y.pv,W=Y.ppem,w=Y.deltaBase+(J-1)*16,$=Y.deltaShift,z=Y.z0;if(IB.DEBUG)console.log(Y.step,"DELTAP["+J+"]",Z,K);for(var U=0;U<Z;U++){var H=K.pop(),A=K.pop(),V=w+((A&240)>>4);if(V!==W)continue;var O=(A&15)-8;if(O>=0)O++;if(IB.DEBUG)console.log(Y.step,"DELTAPFIX",H,"by",O*$);var B=z[H];X.setRelative(B,B,O*$,Q)}}function k$(J){var Y=J.stack,K=Y.pop();if(IB.DEBUG)console.log(J.step,"SDB[]",K);J.deltaBase=K}function y$(J){var Y=J.stack,K=Y.pop();if(IB.DEBUG)console.log(J.step,"SDS[]",K);J.deltaShift=Math.pow(0.5,K)}function g$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(IB.DEBUG)console.log(J.step,"ADD[]",K,Z);Y.push(Z+K)}function h$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(IB.DEBUG)console.log(J.step,"SUB[]",K,Z);Y.push(Z-K)}function x$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(IB.DEBUG)console.log(J.step,"DIV[]",K,Z);Y.push(Z*64/K)}function b$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(IB.DEBUG)console.log(J.step,"MUL[]",K,Z);Y.push(Z*K/64)}function f$(J){var Y=J.stack,K=Y.pop();if(IB.DEBUG)console.log(J.step,"ABS[]",K);Y.push(Math.abs(K))}function m$(J){var Y=J.stack,K=Y.pop();if(IB.DEBUG)console.log(J.step,"NEG[]",K);Y.push(-K)}function c$(J){var Y=J.stack,K=Y.pop();if(IB.DEBUG)console.log(J.step,"FLOOR[]",K);Y.push(Math.floor(K/64)*64)}function d$(J){var Y=J.stack,K=Y.pop();if(IB.DEBUG)console.log(J.step,"CEILING[]",K);Y.push(Math.ceil(K/64)*64)}function C8(J,Y){var K=Y.stack,Z=K.pop();if(IB.DEBUG)console.log(Y.step,"ROUND[]");K.push(Y.round(Z/64)*64)}function u$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(IB.DEBUG)console.log(J.step,"WCVTF[]",K,Z);J.cvt[Z]=K*J.ppem/J.font.unitsPerEm}function q9(J,Y){var K=Y.stack,Z=K.pop(),X=Y.ppem,Q=Y.deltaBase+(J-1)*16,W=Y.deltaShift;if(IB.DEBUG)console.log(Y.step,"DELTAC["+J+"]",Z,K);for(var w=0;w<Z;w++){var $=K.pop(),z=K.pop(),U=Q+((z&240)>>4);if(U!==X)continue;var H=(z&15)-8;if(H>=0)H++;var A=H*W;if(IB.DEBUG)console.log(Y.step,"DELTACFIX",$,"by",A);Y.cvt[$]+=A}}function l$(J){var Y=J.stack.pop();if(IB.DEBUG)console.log(J.step,"SROUND[]",Y);J.round=LJ;var K;switch(Y&192){case 0:K=0.5;break;case 64:K=1;break;case 128:K=2;break;default:throw Error("invalid SROUND value")}switch(J.srPeriod=K,Y&48){case 0:J.srPhase=0;break;case 16:J.srPhase=0.25*K;break;case 32:J.srPhase=0.5*K;break;case 48:J.srPhase=0.75*K;break;default:throw Error("invalid SROUND value")}if(Y&=15,Y===0)J.srThreshold=0;else J.srThreshold=(Y/8-0.5)*K}function p$(J){var Y=J.stack.pop();if(IB.DEBUG)console.log(J.step,"S45ROUND[]",Y);J.round=LJ;var K;switch(Y&192){case 0:K=Math.sqrt(2)/2;break;case 64:K=Math.sqrt(2);break;case 128:K=2*Math.sqrt(2);break;default:throw Error("invalid S45ROUND value")}switch(J.srPeriod=K,Y&48){case 0:J.srPhase=0;break;case 16:J.srPhase=0.25*K;break;case 32:J.srPhase=0.5*K;break;case 48:J.srPhase=0.75*K;break;default:throw Error("invalid S45ROUND value")}if(Y&=15,Y===0)J.srThreshold=0;else J.srThreshold=(Y/8-0.5)*K}function i$(J){if(IB.DEBUG)console.log(J.step,"ROFF[]");J.round=RW}function n$(J){if(IB.DEBUG)console.log(J.step,"RUTG[]");J.round=PW}function o$(J){if(IB.DEBUG)console.log(J.step,"RDTG[]");J.round=SW}function r$(J){var Y=J.stack.pop();if(IB.DEBUG)console.log(J.step,"SCANCTRL[]",Y)}function l2(J,Y){var K=Y.stack,Z=K.pop(),X=K.pop(),Q=Y.z2[Z],W=Y.z1[X];if(IB.DEBUG)console.log(Y.step,"SDPVTL["+J+"]",Z,X);var w,$;if(!J)w=W.x-Q.x,$=W.y-Q.y;else w=Q.y-W.y,$=W.x-Q.x;Y.dpv=o5(w,$)}function s$(J){var Y=J.stack,K=Y.pop(),Z=0;if(IB.DEBUG)console.log(J.step,"GETINFO[]",K);if(K&1)Z=35;if(K&32)Z|=4096;Y.push(Z)}function a$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop(),X=Y.pop();if(IB.DEBUG)console.log(J.step,"ROLL[]");Y.push(Z),Y.push(K),Y.push(X)}function t$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(IB.DEBUG)console.log(J.step,"MAX[]",K,Z);Y.push(Math.max(Z,K))}function e$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(IB.DEBUG)console.log(J.step,"MIN[]",K,Z);Y.push(Math.min(Z,K))}function Jw(J){var Y=J.stack.pop();if(IB.DEBUG)console.log(J.step,"SCANTYPE[]",Y)}function Yw(J){var Y=J.stack.pop(),K=J.stack.pop();if(IB.DEBUG)console.log(J.step,"INSTCTRL[]",Y,K);switch(Y){case 1:J.inhibitGridFit=!!K;return;case 2:J.ignoreCvt=!!K;return;default:throw Error("invalid INSTCTRL[] selector")}}function c1(J,Y){var{stack:K,prog:Z,ip:X}=Y;if(IB.DEBUG)console.log(Y.step,"PUSHB["+J+"]");for(var Q=0;Q<J;Q++)K.push(Z[++X]);Y.ip=X}function d1(J,Y){var{ip:K,prog:Z,stack:X}=Y;if(IB.DEBUG)console.log(Y.ip,"PUSHW["+J+"]");for(var Q=0;Q<J;Q++){var W=Z[++K]<<8|Z[++K];if(W&32768)W=-((W^65535)+1);X.push(W)}Y.ip=K}function i(J,Y,K,Z,X,Q){var W=Q.stack,w=J&&W.pop(),$=W.pop(),z=Q.rp0,U=Q.z0[z],H=Q.z1[$],A=Q.minDis,V=Q.fv,O=Q.dpv,B,L,M,N;if(L=B=O.distance(H,U,!0,!0),M=L>=0?1:-1,L=Math.abs(L),J){if(N=Q.cvt[w],Z&&Math.abs(L-N)<Q.cvCutIn)L=N}if(K&&L<A)L=A;if(Z)L=Q.round(L);if(V.setRelative(H,U,M*L,O),V.touch(H),IB.DEBUG)console.log(Q.step,(J?"MIRP[":"MDRP[")+(Y?"M":"m")+(K?">":"_")+(Z?"R":"_")+(X===0?"Gr":X===1?"Bl":X===2?"Wh":"")+"]",J?w+"("+Q.cvt[w]+","+N+")":"",$,"(d =",B,"->",M*L,")");if(Q.rp1=Q.rp0,Q.rp2=$,Y)Q.rp0=$}AJ=[P2.bind(void 0,P1),P2.bind(void 0,_1),S2.bind(void 0,P1),S2.bind(void 0,_1),v2.bind(void 0,P1),v2.bind(void 0,_1),k2.bind(void 0,0),k2.bind(void 0,1),y2.bind(void 0,0),y2.bind(void 0,1),kW,yW,gW,hW,xW,bW,fW,mW,cW,dW,uW,lW,pW,iW,nW,oW,rW,sW,aW,tW,void 0,void 0,eW,L9,J$,Y$,K$,Q$,W$,void 0,void 0,void 0,Z$,X$,$$,void 0,g2.bind(void 0,0),g2.bind(void 0,1),h2.bind(void 0,P1),h2.bind(void 0,_1),x2.bind(void 0,0),x2.bind(void 0,1),b2.bind(void 0,0),b2.bind(void 0,1),f2.bind(void 0,0),f2.bind(void 0,1),w$,z$,m2.bind(void 0,0),m2.bind(void 0,1),U$,H$,c2.bind(void 0,0),c2.bind(void 0,1),A$,V$,B$,G$,L$,O$,d2.bind(void 0,0),d2.bind(void 0,1),void 0,u2.bind(void 0,0),u2.bind(void 0,1),q$,void 0,M$,void 0,void 0,N$,j$,E$,F$,_$,I$,D$,R$,C$,T$,P$,S$,v$,O9.bind(void 0,1),k$,y$,g$,h$,x$,b$,f$,m$,c$,d$,C8.bind(void 0,0),C8.bind(void 0,1),C8.bind(void 0,2),C8.bind(void 0,3),void 0,void 0,void 0,void 0,u$,O9.bind(void 0,2),O9.bind(void 0,3),q9.bind(void 0,1),q9.bind(void 0,2),q9.bind(void 0,3),l$,p$,void 0,void 0,i$,void 0,n$,o$,L9,L9,void 0,void 0,void 0,void 0,void 0,r$,l2.bind(void 0,0),l2.bind(void 0,1),s$,void 0,a$,t$,e$,Jw,Yw,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,c1.bind(void 0,1),c1.bind(void 0,2),c1.bind(void 0,3),c1.bind(void 0,4),c1.bind(void 0,5),c1.bind(void 0,6),c1.bind(void 0,7),c1.bind(void 0,8),d1.bind(void 0,1),d1.bind(void 0,2),d1.bind(void 0,3),d1.bind(void 0,4),d1.bind(void 0,5),d1.bind(void 0,6),d1.bind(void 0,7),d1.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 F5(J){this.char=J,this.state={},this.activeState=null}function R9(J,Y,K){this.contextName=K,this.startIndex=J,this.endOffset=Y}function Kw(J,Y,K){this.contextName=J,this.openRange=null,this.ranges=[],this.checkStart=Y,this.checkEnd=K}function H1(J,Y){this.context=J,this.index=Y,this.length=J.length,this.current=J[Y],this.backtrack=J.slice(0,Y),this.lookahead=J.slice(Y+1)}function k8(J){this.eventId=J,this.subscribers=[]}function Zw(J){var Y=this,K=["start","end","next","newToken","contextStart","contextEnd","insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD","updateContextsRanges"];if(K.forEach(function(X){Object.defineProperty(Y.events,X,{value:new k8(X)})}),J)K.forEach(function(X){var Q=J[X];if(typeof Q==="function")Y.events[X].subscribe(Q)});var Z=["insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD"];Z.forEach(function(X){Y.events[X].subscribe(Y.updateContextsRanges)})}function _0(J){this.tokens=[],this.registeredContexts={},this.contextCheckers=[],this.events={},this.registeredModifiers=[],Zw.call(this,J)}F5.prototype.setState=function(J,Y){return this.state[J]=Y,this.activeState={key:J,value:this.state[J]},this.activeState};F5.prototype.getState=function(J){return this.state[J]||null};_0.prototype.inboundIndex=function(J){return J>=0&&J<this.tokens.length};_0.prototype.composeRUD=function(J){var Y=this,K=!0,Z=J.map(function(Q){return Y[Q[0]].apply(Y,Q.slice(1).concat(K))}),X=function(Q){return typeof Q==="object"&&Q.hasOwnProperty("FAIL")};if(Z.every(X))return{FAIL:"composeRUD: one or more operations hasn't completed successfully",report:Z.filter(X)};this.dispatch("composeRUD",[Z.filter(function(Q){return!X(Q)})])};_0.prototype.replaceRange=function(J,Y,K,Z){Y=Y!==null?Y:this.tokens.length;var X=K.every(function(W){return W instanceof F5});if(!isNaN(J)&&this.inboundIndex(J)&&X){var Q=this.tokens.splice.apply(this.tokens,[J,Y].concat(K));if(!Z)this.dispatch("replaceToken",[J,Y,K]);return[Q,K]}else return{FAIL:"replaceRange: invalid tokens or startIndex."}};_0.prototype.replaceToken=function(J,Y,K){if(!isNaN(J)&&this.inboundIndex(J)&&Y instanceof F5){var Z=this.tokens.splice(J,1,Y);if(!K)this.dispatch("replaceToken",[J,Y]);return[Z[0],Y]}else return{FAIL:"replaceToken: invalid token or index."}};_0.prototype.removeRange=function(J,Y,K){Y=!isNaN(Y)?Y:this.tokens.length;var Z=this.tokens.splice(J,Y);if(!K)this.dispatch("removeRange",[Z,J,Y]);return Z};_0.prototype.removeToken=function(J,Y){if(!isNaN(J)&&this.inboundIndex(J)){var K=this.tokens.splice(J,1);if(!Y)this.dispatch("removeToken",[K,J]);return K}else return{FAIL:"removeToken: invalid token index."}};_0.prototype.insertToken=function(J,Y,K){var Z=J.every(function(X){return X instanceof F5});if(Z){if(this.tokens.splice.apply(this.tokens,[Y,0].concat(J)),!K)this.dispatch("insertToken",[J,Y]);return J}else return{FAIL:"insertToken: invalid token(s)."}};_0.prototype.registerModifier=function(J,Y,K){this.events.newToken.subscribe(function(Z,X){var Q=[Z,X],W=Y===null||Y.apply(this,Q)===!0,w=[Z,X];if(W){var $=K.apply(this,w);Z.setState(J,$)}}),this.registeredModifiers.push(J)};k8.prototype.subscribe=function(J){if(typeof J==="function")return this.subscribers.push(J)-1;else return{FAIL:"invalid '"+this.eventId+"' event handler"}};k8.prototype.unsubscribe=function(J){this.subscribers.splice(J,1)};H1.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)};H1.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}};_0.prototype.rangeToText=function(J){if(J instanceof R9)return this.getRangeTokens(J).map(function(Y){return Y.char}).join("")};_0.prototype.getText=function(){return this.tokens.map(function(J){return J.char}).join("")};_0.prototype.getContext=function(J){var Y=this.registeredContexts[J];return Y?Y:null};_0.prototype.on=function(J,Y){var K=this.events[J];if(K)return K.subscribe(Y);else return null};_0.prototype.dispatch=function(J,Y){var K=this,Z=this.events[J];if(Z instanceof k8)Z.subscribers.forEach(function(X){X.apply(K,Y||[])})};_0.prototype.registerContextChecker=function(J,Y,K){if(this.getContext(J))return{FAIL:"context name '"+J+"' is already registered."};if(typeof Y!=="function")return{FAIL:"missing context start check."};if(typeof K!=="function")return{FAIL:"missing context end check."};var Z=new Kw(J,Y,K);return this.registeredContexts[J]=Z,this.contextCheckers.push(Z),Z};_0.prototype.getRangeTokens=function(J){var Y=J.startIndex+J.endOffset;return[].concat(this.tokens.slice(J.startIndex,Y))};_0.prototype.getContextRanges=function(J){var Y=this.getContext(J);if(Y)return Y.ranges;else return{FAIL:"context checker '"+J+"' is not registered."}};_0.prototype.resetContextsRanges=function(){var J=this.registeredContexts;for(var Y in J)if(J.hasOwnProperty(Y)){var K=J[Y];K.ranges=[]}};_0.prototype.updateContextsRanges=function(){this.resetContextsRanges();var J=this.tokens.map(function(Z){return Z.char});for(var Y=0;Y<J.length;Y++){var K=new H1(J,Y);this.runContextCheck(K)}this.dispatch("updateContextsRanges",[this.registeredContexts])};_0.prototype.setEndOffset=function(J,Y){var K=this.getContext(Y).openRange.startIndex,Z=new R9(K,J,Y),X=this.getContext(Y).ranges;return Z.rangeId=Y+"."+X.length,X.push(Z),this.getContext(Y).openRange=null,Z};_0.prototype.runContextCheck=function(J){var Y=this,K=J.index;this.contextCheckers.forEach(function(Z){var X=Z.contextName,Q=Y.getContext(X).openRange;if(!Q&&Z.checkStart(J))Q=new R9(K,null,X),Y.getContext(X).openRange=Q,Y.dispatch("contextStart",[X,K]);if(!!Q&&Z.checkEnd(J)){var W=K-Q.startIndex+1,w=Y.setEndOffset(W,X);Y.dispatch("contextEnd",[X,w])}})};_0.prototype.tokenize=function(J){this.tokens=[],this.resetContextsRanges();var Y=Array.from(J);this.dispatch("start");for(var K=0;K<Y.length;K++){var Z=Y[K],X=new H1(Y,K);this.dispatch("next",[X]),this.runContextCheck(X);var Q=new F5(Z);this.tokens.push(Q),this.dispatch("newToken",[Q,X])}return this.dispatch("end",[this.tokens]),this.tokens};function i1(J){return/[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(J)}function qJ(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 n1(J){return/[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(J)}function T8(J){return/[A-z]/.test(J)}function Xw(J){return/\s/.test(J)}function a0(J){this.font=J,this.features={}}function K5(J){this.id=J.id,this.tag=J.tag,this.substitution=J.substitution}function r5(J,Y){if(!J)return-1;switch(Y.format){case 1:return Y.glyphs.indexOf(J);case 2:var K=Y.ranges;for(var Z=0;Z<K.length;Z++){var X=K[Z];if(J>=X.start&&J<=X.end){var Q=J-X.start;return X.index+Q}}break;default:return-1}return-1}function Qw(J,Y){var K=r5(J,Y.coverage);if(K===-1)return null;return J+Y.deltaGlyphId}function Ww(J,Y){var K=r5(J,Y.coverage);if(K===-1)return null;return Y.substitute[K]}function M9(J,Y){var K=[];for(var Z=0;Z<J.length;Z++){var X=J[Z],Q=Y.current;Q=Array.isArray(Q)?Q[0]:Q;var W=r5(Q,X);if(W!==-1)K.push(W)}if(K.length!==J.length)return-1;return K}function $w(J,Y){var K=Y.inputCoverage.length+Y.lookaheadCoverage.length+Y.backtrackCoverage.length;if(J.context.length<K)return[];var Z=M9(Y.inputCoverage,J);if(Z===-1)return[];var X=Y.inputCoverage.length-1;if(J.lookahead.length<Y.lookaheadCoverage.length)return[];var Q=J.lookahead.slice(X);while(Q.length&&n1(Q[0].char))Q.shift();var W=new H1(Q,0),w=M9(Y.lookaheadCoverage,W),$=[].concat(J.backtrack);$.reverse();while($.length&&n1($[0].char))$.shift();if($.length<Y.backtrackCoverage.length)return[];var z=new H1($,0),U=M9(Y.backtrackCoverage,z),H=Z.length===Y.inputCoverage.length&&w.length===Y.lookaheadCoverage.length&&U.length===Y.backtrackCoverage.length,A=[];if(H)for(var V=0;V<Y.lookupRecords.length;V++){var O=Y.lookupRecords[V],B=O.lookupListIndex,L=this.getLookupByIndex(B);for(var M=0;M<L.subtables.length;M++){var N=L.subtables[M],E=this.getLookupMethod(L,N),I=this.getSubstitutionType(L,N);if(I==="12")for(var F=0;F<Z.length;F++){var j=J.get(F),T=E(j);if(T)A.push(T)}}}return A}function ww(J,Y){var K=J.current,Z=r5(K,Y.coverage);if(Z===-1)return null;var X,Q=Y.ligatureSets[Z];for(var W=0;W<Q.length;W++){X=Q[W];for(var w=0;w<X.components.length;w++){var $=J.lookahead[w],z=X.components[w];if($!==z)break;if(w===X.components.length-1)return X}}return null}function zw(J,Y){var K=r5(J,Y.coverage);if(K===-1)return null;return Y.sequences[K]}a0.prototype.getDefaultScriptFeaturesIndexes=function(){var J=this.font.tables.gsub.scripts;for(var Y=0;Y<J.length;Y++){var K=J[Y];if(K.tag==="DFLT")return K.script.defaultLangSys.featureIndexes}return[]};a0.prototype.getScriptFeaturesIndexes=function(J){var Y=this.font.tables;if(!Y.gsub)return[];if(!J)return this.getDefaultScriptFeaturesIndexes();var K=this.font.tables.gsub.scripts;for(var Z=0;Z<K.length;Z++){var X=K[Z];if(X.tag===J&&X.script.defaultLangSys)return X.script.defaultLangSys.featureIndexes;else{var Q=X.langSysRecords;if(Q)for(var W=0;W<Q.length;W++){var w=Q[W];if(w.tag===J){var $=w.langSys;return $.featureIndexes}}}}return this.getDefaultScriptFeaturesIndexes()};a0.prototype.mapTagsToFeatures=function(J,Y){var K={};for(var Z=0;Z<J.length;Z++){var X=J[Z].tag,Q=J[Z].feature;K[X]=Q}this.features[Y].tags=K};a0.prototype.getScriptFeatures=function(J){var Y=this.features[J];if(this.features.hasOwnProperty(J))return Y;var K=this.getScriptFeaturesIndexes(J);if(!K)return null;var Z=this.font.tables.gsub;return Y=K.map(function(X){return Z.features[X]}),this.features[J]=Y,this.mapTagsToFeatures(Y,J),Y};a0.prototype.getSubstitutionType=function(J,Y){var K=J.lookupType.toString(),Z=Y.substFormat.toString();return K+Z};a0.prototype.getLookupMethod=function(J,Y){var K=this,Z=this.getSubstitutionType(J,Y);switch(Z){case"11":return function(X){return Qw.apply(K,[X,Y])};case"12":return function(X){return Ww.apply(K,[X,Y])};case"63":return function(X){return $w.apply(K,[X,Y])};case"41":return function(X){return ww.apply(K,[X,Y])};case"21":return function(X){return zw.apply(K,[X,Y])};default:throw Error("lookupType: "+J.lookupType+" - substFormat: "+Y.substFormat+" is not yet supported")}};a0.prototype.lookupFeature=function(J){var Y=J.contextParams,K=Y.index,Z=this.getFeature({tag:J.tag,script:J.script});if(!Z)return Error("font '"+this.font.names.fullName.en+"' doesn't support feature '"+J.tag+"' for script '"+J.script+"'.");var X=this.getFeatureLookups(Z),Q=[].concat(Y.context);for(var W=0;W<X.length;W++){var w=X[W],$=this.getLookupSubtables(w);for(var z=0;z<$.length;z++){var U=$[z],H=this.getSubstitutionType(w,U),A=this.getLookupMethod(w,U),V=void 0;switch(H){case"11":if(V=A(Y.current),V)Q.splice(K,1,new K5({id:11,tag:J.tag,substitution:V}));break;case"12":if(V=A(Y.current),V)Q.splice(K,1,new K5({id:12,tag:J.tag,substitution:V}));break;case"63":if(V=A(Y),Array.isArray(V)&&V.length)Q.splice(K,1,new K5({id:63,tag:J.tag,substitution:V}));break;case"41":if(V=A(Y),V)Q.splice(K,1,new K5({id:41,tag:J.tag,substitution:V}));break;case"21":if(V=A(Y.current),V)Q.splice(K,1,new K5({id:21,tag:J.tag,substitution:V}));break}if(Y=new H1(Q,K),Array.isArray(V)&&!V.length)continue;V=null}}return Q.length?Q:null};a0.prototype.supports=function(J){if(!J.script)return!1;this.getScriptFeatures(J.script);var Y=this.features.hasOwnProperty(J.script);if(!J.tag)return Y;var K=this.features[J.script].some(function(Z){return Z.tag===J.tag});return Y&&K};a0.prototype.getLookupSubtables=function(J){return J.subtables||null};a0.prototype.getLookupByIndex=function(J){var Y=this.font.tables.gsub.lookups;return Y[J]||null};a0.prototype.getFeatureLookups=function(J){return J.lookupListIndexes.map(this.getLookupByIndex.bind(this))};a0.prototype.getFeature=function(Y){if(!this.font)return{FAIL:"No font was found"};if(!this.features.hasOwnProperty(Y.script))this.getScriptFeatures(Y.script);var K=this.features[Y.script];if(!K)return{FAIL:"No feature for script "+Y.script};if(!K.tags[Y.tag])return null;return this.features[Y.script].tags[Y.tag]};function Uw(J){var Y=J.current,K=J.get(-1);return K===null&&i1(Y)||!i1(K)&&i1(Y)}function Hw(J){var Y=J.get(1);return Y===null||!i1(Y)}var Aw={startCheck:Uw,endCheck:Hw};function Vw(J){var Y=J.current,K=J.get(-1);return(i1(Y)||n1(Y))&&!i1(K)}function Bw(J){var Y=J.get(1);switch(!0){case Y===null:return!0;case(!i1(Y)&&!n1(Y)):var K=Xw(Y);if(!K)return!0;if(K){var Z=!1;if(Z=J.lookahead.some(function(X){return i1(X)||n1(X)}),!Z)return!0}break;default:return!1}}var Gw={startCheck:Vw,endCheck:Bw};function Lw(J,Y,K){Y[K].setState(J.tag,J.substitution)}function Ow(J,Y,K){Y[K].setState(J.tag,J.substitution)}function qw(J,Y,K){J.substitution.forEach(function(Z,X){var Q=Y[K+X];Q.setState(J.tag,Z)})}function Mw(J,Y,K){var Z=Y[K];Z.setState(J.tag,J.substitution.ligGlyph);var X=J.substitution.components.length;for(var Q=0;Q<X;Q++)Z=Y[K+Q+1],Z.setState("deleted",!0)}var p2={11:Lw,12:Ow,63:qw,41:Mw};function C9(J,Y,K){if(J instanceof K5&&p2[J.id])p2[J.id](J,Y,K)}function Nw(J){var Y=[].concat(J.backtrack);for(var K=Y.length-1;K>=0;K--){var Z=Y[K],X=qJ(Z),Q=n1(Z);if(!X&&!Q)return!0;if(X)return!1}return!1}function jw(J){if(qJ(J.current))return!1;for(var Y=0;Y<J.lookahead.length;Y++){var K=J.lookahead[Y],Z=n1(K);if(!Z)return!0}return!1}function Ew(J){var Y=this,K="arab",Z=this.featuresTags[K],X=this.tokenizer.getRangeTokens(J);if(X.length===1)return;var Q=new H1(X.map(function(w){return w.getState("glyphIndex")}),0),W=new H1(X.map(function(w){return w.char}),0);X.forEach(function(w,$){if(n1(w.char))return;Q.setCurrentIndex($),W.setCurrentIndex($);var z=0;if(Nw(W))z|=1;if(jw(W))z|=2;var U;switch(z){case 1:U="fina";break;case 2:U="init";break;case 3:U="medi";break}if(Z.indexOf(U)===-1)return;var H=Y.query.lookupFeature({tag:U,script:K,contextParams:Q});if(H instanceof Error)return console.info(H.message);H.forEach(function(A,V){if(A instanceof K5)C9(A,X,V),Q.context[V]=A.substitution})})}function i2(J,Y){var K=J.map(function(Z){return Z.activeState.value});return new H1(K,Y||0)}function Fw(J){var Y=this,K="arab",Z=this.tokenizer.getRangeTokens(J),X=i2(Z);X.context.forEach(function(Q,W){X.setCurrentIndex(W);var w=Y.query.lookupFeature({tag:"rlig",script:K,contextParams:X});if(w.length)w.forEach(function($){return C9($,Z,W)}),X=i2(Z)})}function _w(J){var Y=J.current,K=J.get(-1);return K===null&&T8(Y)||!T8(K)&&T8(Y)}function Iw(J){var Y=J.get(1);return Y===null||!T8(Y)}var Dw={startCheck:_w,endCheck:Iw};function n2(J,Y){var K=J.map(function(Z){return Z.activeState.value});return new H1(K,Y||0)}function Rw(J){var Y=this,K="latn",Z=this.tokenizer.getRangeTokens(J),X=n2(Z);X.context.forEach(function(Q,W){X.setCurrentIndex(W);var w=Y.query.lookupFeature({tag:"liga",script:K,contextParams:X});if(w.length)w.forEach(function($){return C9($,Z,W)}),X=n2(Z)})}function B1(J){this.baseDir=J||"ltr",this.tokenizer=new _0,this.featuresTags={}}B1.prototype.setText=function(J){this.text=J};B1.prototype.contextChecks={latinWordCheck:Dw,arabicWordCheck:Aw,arabicSentenceCheck:Gw};function N9(J){var Y=this.contextChecks[J+"Check"];return this.tokenizer.registerContextChecker(J,Y.startCheck,Y.endCheck)}function Cw(){return N9.call(this,"latinWord"),N9.call(this,"arabicWord"),N9.call(this,"arabicSentence"),this.tokenizer.tokenize(this.text)}function Tw(){var J=this,Y=this.tokenizer.getContextRanges("arabicSentence");Y.forEach(function(K){var Z=J.tokenizer.getRangeTokens(K);J.tokenizer.replaceRange(K.startIndex,K.endOffset,Z.reverse())})}B1.prototype.registerFeatures=function(J,Y){var K=this,Z=Y.filter(function(X){return K.query.supports({script:J,tag:X})});if(!this.featuresTags.hasOwnProperty(J))this.featuresTags[J]=Z;else this.featuresTags[J]=this.featuresTags[J].concat(Z)};B1.prototype.applyFeatures=function(J,Y){if(!J)throw Error("No valid font was provided to apply features");if(!this.query)this.query=new a0(J);for(var K=0;K<Y.length;K++){var Z=Y[K];if(!this.query.supports({script:Z.script}))continue;this.registerFeatures(Z.script,Z.tags)}};B1.prototype.registerModifier=function(J,Y,K){this.tokenizer.registerModifier(J,Y,K)};function T9(){if(this.tokenizer.registeredModifiers.indexOf("glyphIndex")===-1)throw Error("glyphIndex modifier is required to apply arabic presentation features.")}function Pw(){var J=this,Y="arab";if(!this.featuresTags.hasOwnProperty(Y))return;T9.call(this);var K=this.tokenizer.getContextRanges("arabicWord");K.forEach(function(Z){Ew.call(J,Z)})}function Sw(){var J=this,Y="arab";if(!this.featuresTags.hasOwnProperty(Y))return;var K=this.featuresTags[Y];if(K.indexOf("rlig")===-1)return;T9.call(this);var Z=this.tokenizer.getContextRanges("arabicWord");Z.forEach(function(X){Fw.call(J,X)})}function vw(){var J=this,Y="latn";if(!this.featuresTags.hasOwnProperty(Y))return;var K=this.featuresTags[Y];if(K.indexOf("liga")===-1)return;T9.call(this);var Z=this.tokenizer.getContextRanges("latinWord");Z.forEach(function(X){Rw.call(J,X)})}B1.prototype.checkContextReady=function(J){return!!this.tokenizer.getContext(J)};B1.prototype.applyFeaturesToContexts=function(){if(this.checkContextReady("arabicWord"))Pw.call(this),Sw.call(this);if(this.checkContextReady("latinWord"))vw.call(this);if(this.checkContextReady("arabicSentence"))Tw.call(this)};B1.prototype.processText=function(J){if(!this.text||this.text!==J)this.setText(J),Cw.call(this),this.applyFeaturesToContexts()};B1.prototype.getBidiText=function(J){return this.processText(J),this.tokenizer.getText()};B1.prototype.getTextGlyphs=function(J){this.processText(J);var Y=[];for(var K=0;K<this.tokenizer.tokens.length;K++){var Z=this.tokenizer.tokens[K];if(Z.state.deleted)continue;var X=Z.activeState.value;Y.push(Array.isArray(X)?X[0]:X)}return Y};function c0(J){if(J=J||{},J.tables=J.tables||{},!J.empty)m5(J.familyName,"When creating a new Font object, familyName is required."),m5(J.styleName,"When creating a new Font object, styleName is required."),m5(J.unitsPerEm,"When creating a new Font object, unitsPerEm is required."),m5(J.ascender,"When creating a new Font object, ascender is required."),m5(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 I1.GlyphSet(this,J.glyphs||[]),this.encoding=new XJ(this),this.position=new i5(this),this.substitution=new s0(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)}})}c0.prototype.hasChar=function(J){return this.encoding.charToGlyphIndex(J)!==null};c0.prototype.charToGlyphIndex=function(J){return this.encoding.charToGlyphIndex(J)};c0.prototype.charToGlyph=function(J){var Y=this.charToGlyphIndex(J),K=this.glyphs.get(Y);if(!K)K=this.glyphs.get(0);return K};c0.prototype.updateFeatures=function(J){return this.defaultRenderOptions.features.map(function(Y){if(Y.script==="latn")return{script:"latn",tags:Y.tags.filter(function(K){return J[K]})};else return Y})};c0.prototype.stringToGlyphs=function(J,Y){var K=this,Z=new B1,X=function(H){return K.charToGlyphIndex(H.char)};Z.registerModifier("glyphIndex",null,X);var Q=Y?this.updateFeatures(Y.features):this.defaultRenderOptions.features;Z.applyFeatures(this,Q);var W=Z.getTextGlyphs(J),w=W.length,$=Array(w),z=this.glyphs.get(0);for(var U=0;U<w;U+=1)$[U]=this.glyphs.get(W[U])||z;return $};c0.prototype.getKerningValue=function(J,Y){J=J.index||J,Y=Y.index||Y;var K=this.position.defaultKerningTables;if(K)return this.position.getKerningValue(K,J,Y);return this.kerningPairs[J+","+Y]||0};c0.prototype.defaultRenderOptions={kerning:!0,features:[{script:"arab",tags:["init","medi","fina","rlig"]},{script:"latn",tags:["liga","rlig"]}]};c0.prototype.forEachGlyph=function(J,Y,K,Z,X,Q){Y=Y!==void 0?Y:0,K=K!==void 0?K:0,Z=Z!==void 0?Z:72,X=Object.assign({},this.defaultRenderOptions,X);var W=1/this.unitsPerEm*Z,w=this.stringToGlyphs(J,X),$;if(X.kerning){var z=X.script||this.position.getDefaultScriptName();$=this.position.getKerningTables(z,X.language)}for(var U=0;U<w.length;U+=1){var H=w[U];if(Q.call(this,H,Y,K,Z,X),H.advanceWidth)Y+=H.advanceWidth*W;if(X.kerning&&U<w.length-1){var A=$?this.position.getKerningValue($,H.index,w[U+1].index):this.getKerningValue(H,w[U+1]);Y+=A*W}if(X.letterSpacing)Y+=X.letterSpacing*Z;else if(X.tracking)Y+=X.tracking/1000*Z}return Y};c0.prototype.getPath=function(J,Y,K,Z,X){var Q=new m0;return this.forEachGlyph(J,Y,K,Z,X,function(W,w,$,z){var U=W.getPath(w,$,z,X,this);Q.extend(U)}),Q};c0.prototype.getPaths=function(J,Y,K,Z,X){var Q=[];return this.forEachGlyph(J,Y,K,Z,X,function(W,w,$,z){var U=W.getPath(w,$,z,X,this);Q.push(U)}),Q};c0.prototype.getAdvanceWidth=function(J,Y,K){return this.forEachGlyph(J,0,0,Y,K,function(){})};c0.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512};c0.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};c0.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};function kw(J,Y){Y.parseUShort(),J.length=Y.parseULong(),J.language=Y.parseULong();var K;J.groupCount=K=Y.parseULong(),J.glyphIndexMap={};for(var Z=0;Z<K;Z+=1){var X=Y.parseULong(),Q=Y.parseULong(),W=Y.parseULong();for(var w=X;w<=Q;w+=1)J.glyphIndexMap[w]=W,W++}}function yw(J,Y,K,Z,X){J.length=Y.parseUShort(),J.language=Y.parseUShort();var Q;J.segCount=Q=Y.parseUShort()>>1,Y.skip("uShort",3),J.glyphIndexMap={};var W=new o.Parser(K,Z+X+14),w=new o.Parser(K,Z+X+16+Q*2),$=new o.Parser(K,Z+X+16+Q*4),z=new o.Parser(K,Z+X+16+Q*6),U=Z+X+16+Q*8;for(var H=0;H<Q-1;H+=1){var A=void 0,V=W.parseUShort(),O=w.parseUShort(),B=$.parseShort(),L=z.parseUShort();for(var M=O;M<=V;M+=1){if(L!==0){if(U=z.offset+z.relativeOffset-2,U+=L,U+=(M-O)*2,A=o.getUShort(K,U),A!==0)A=A+B&65535}else A=M+B&65535;J.glyphIndexMap[M]=A}}}function gw(J,Y){var K={};K.version=o.getUShort(J,Y),H0.argument(K.version===0,"cmap table version should be 0."),K.numTables=o.getUShort(J,Y+2);var Z=-1;for(var X=K.numTables-1;X>=0;X-=1){var Q=o.getUShort(J,Y+4+X*8),W=o.getUShort(J,Y+4+X*8+2);if(Q===3&&(W===0||W===1||W===10)||Q===0&&(W===0||W===1||W===2||W===3||W===4)){Z=o.getULong(J,Y+4+X*8+4);break}}if(Z===-1)throw Error("No valid cmap sub-tables found.");var w=new o.Parser(J,Y+Z);if(K.format=w.parseUShort(),K.format===12)kw(K,w);else if(K.format===4)yw(K,w,J,Y,Z);else throw Error("Only format 4 and 12 cmap tables are supported (found format "+K.format+").");return K}var hw={parse:gw};function F9(J){var Y;if(J.length<1240)Y=107;else if(J.length<33900)Y=1131;else Y=32768;return Y}function l1(J,Y,K){var Z=[],X=[],Q=o.getCard16(J,Y),W,w;if(Q!==0){var $=o.getByte(J,Y+2);W=Y+(Q+1)*$+2;var z=Y+3;for(var U=0;U<Q+1;U+=1)Z.push(o.getOffset(J,z,$)),z+=$;w=W+Z[Q]}else w=Y+2;for(var H=0;H<Z.length-1;H+=1){var A=o.getBytes(J,W+Z[H],W+Z[H+1]);if(K)A=K(A);X.push(A)}return{objects:X,startOffset:Y,endOffset:w}}function xw(J,Y){var K=[],Z=o.getCard16(J,Y),X,Q;if(Z!==0){var W=o.getByte(J,Y+2);X=Y+(Z+1)*W+2;var w=Y+3;for(var $=0;$<Z+1;$+=1)K.push(o.getOffset(J,w,W)),w+=W;Q=X+K[Z]}else Q=Y+2;return{offsets:K,startOffset:Y,endOffset:Q}}function bw(J,Y,K,Z,X){var Q=o.getCard16(K,Z),W=0;if(Q!==0){var w=o.getByte(K,Z+2);W=Z+(Q+1)*w+2}var $=o.getBytes(K,W+Y[J],W+Y[J+1]);if(X)$=X($);return $}function fw(J){var Y="",K=15,Z=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];while(!0){var X=J.parseByte(),Q=X>>4,W=X&15;if(Q===K)break;if(Y+=Z[Q],W===K)break;Y+=Z[W]}return parseFloat(Y)}function mw(J,Y){var K,Z,X,Q;if(Y===28)return K=J.parseByte(),Z=J.parseByte(),K<<8|Z;if(Y===29)return K=J.parseByte(),Z=J.parseByte(),X=J.parseByte(),Q=J.parseByte(),K<<24|Z<<16|X<<8|Q;if(Y===30)return fw(J);if(Y>=32&&Y<=246)return Y-139;if(Y>=247&&Y<=250)return K=J.parseByte(),(Y-247)*256+K+108;if(Y>=251&&Y<=254)return K=J.parseByte(),-(Y-251)*256-K-108;throw Error("Invalid b0 "+Y)}function cw(J){var Y={};for(var K=0;K<J.length;K+=1){var Z=J[K][0],X=J[K][1],Q=void 0;if(X.length===1)Q=X[0];else Q=X;if(Y.hasOwnProperty(Z)&&!isNaN(Y[Z]))throw Error("Object "+Y+" already has key "+Z);Y[Z]=Q}return Y}function MJ(J,Y,K){Y=Y!==void 0?Y:0;var Z=new o.Parser(J,Y),X=[],Q=[];K=K!==void 0?K:J.length;while(Z.relativeOffset<K){var W=Z.parseByte();if(W<=21){if(W===12)W=1200+Z.parseByte();X.push([W,Q]),Q=[]}else Q.push(mw(Z,W))}return cw(X)}function d5(J,Y){if(Y<=390)Y=WW[Y];else Y=J[Y-391];return Y}function NJ(J,Y,K){var Z={},X;for(var Q=0;Q<Y.length;Q+=1){var W=Y[Q];if(Array.isArray(W.type)){var w=[];w.length=W.type.length;for(var $=0;$<W.type.length;$++){if(X=J[W.op]!==void 0?J[W.op][$]:void 0,X===void 0)X=W.value!==void 0&&W.value[$]!==void 0?W.value[$]:null;if(W.type[$]==="SID")X=d5(K,X);w[$]=X}Z[W.name]=w}else{if(X=J[W.op],X===void 0)X=W.value!==void 0?W.value:null;if(W.type==="SID")X=d5(K,X);Z[W.name]=X}}return Z}function dw(J,Y){var K={};return K.formatMajor=o.getCard8(J,Y),K.formatMinor=o.getCard8(J,Y+1),K.size=o.getCard8(J,Y+2),K.offsetSize=o.getCard8(J,Y+3),K.startOffset=Y,K.endOffset=Y+4,K}var uw=[{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"}],lw=[{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 pw(J,Y){var K=MJ(J,0,J.byteLength);return NJ(K,uw,Y)}function jJ(J,Y,K,Z){var X=MJ(J,Y,K);return NJ(X,lw,Z)}function o2(J,Y,K,Z){var X=[];for(var Q=0;Q<K.length;Q+=1){var W=new DataView(new Uint8Array(K[Q]).buffer),w=pw(W,Z);w._subrs=[],w._subrsBias=0,w._defaultWidthX=0,w._nominalWidthX=0;var $=w.private[0],z=w.private[1];if($!==0&&z!==0){var U=jJ(J,z+Y,$,Z);if(w._defaultWidthX=U.defaultWidthX,w._nominalWidthX=U.nominalWidthX,U.subrs!==0){var H=z+U.subrs,A=l1(J,H+Y);w._subrs=A.objects,w._subrsBias=F9(w._subrs)}w._privateDict=U}X.push(w)}return X}function iw(J,Y,K,Z){var X,Q,W=new o.Parser(J,Y);K-=1;var w=[".notdef"],$=W.parseCard8();if($===0)for(var z=0;z<K;z+=1)X=W.parseSID(),w.push(d5(Z,X));else if($===1)while(w.length<=K){X=W.parseSID(),Q=W.parseCard8();for(var U=0;U<=Q;U+=1)w.push(d5(Z,X)),X+=1}else if($===2)while(w.length<=K){X=W.parseSID(),Q=W.parseCard16();for(var H=0;H<=Q;H+=1)w.push(d5(Z,X)),X+=1}else throw Error("Unknown charset format "+$);return w}function nw(J,Y,K){var Z,X={},Q=new o.Parser(J,Y),W=Q.parseCard8();if(W===0){var w=Q.parseCard8();for(var $=0;$<w;$+=1)Z=Q.parseCard8(),X[Z]=$}else if(W===1){var z=Q.parseCard8();Z=1;for(var U=0;U<z;U+=1){var H=Q.parseCard8(),A=Q.parseCard8();for(var V=H;V<=H+A;V+=1)X[V]=Z,Z+=1}}else throw Error("Unknown encoding format "+W);return new P8(X,K)}function r2(J,Y,K){var Z,X,Q,W,w=new m0,$=[],z=0,U=!1,H=!1,A=0,V=0,O,B,L,M;if(J.isCIDFont){var N=J.tables.cff.topDict._fdSelect[Y.index],E=J.tables.cff.topDict._fdArray[N];O=E._subrs,B=E._subrsBias,L=E._defaultWidthX,M=E._nominalWidthX}else O=J.tables.cff.topDict._subrs,B=J.tables.cff.topDict._subrsBias,L=J.tables.cff.topDict._defaultWidthX,M=J.tables.cff.topDict._nominalWidthX;var I=L;function F(D,C){if(H)w.closePath();w.moveTo(D,C),H=!0}function j(){var D=$.length%2!==0;if(D&&!U)I=$.shift()+M;z+=$.length>>1,$.length=0,U=!0}function T(D){var C,h,d,r,l,P,k,R,c,u,a,n,m=0;while(m<D.length){var x=D[m];switch(m+=1,x){case 1:j();break;case 3:j();break;case 4:if($.length>1&&!U)I=$.shift()+M,U=!0;V+=$.pop(),F(A,V);break;case 5:while($.length>0)A+=$.shift(),V+=$.shift(),w.lineTo(A,V);break;case 6:while($.length>0){if(A+=$.shift(),w.lineTo(A,V),$.length===0)break;V+=$.shift(),w.lineTo(A,V)}break;case 7:while($.length>0){if(V+=$.shift(),w.lineTo(A,V),$.length===0)break;A+=$.shift(),w.lineTo(A,V)}break;case 8:while($.length>0)Z=A+$.shift(),X=V+$.shift(),Q=Z+$.shift(),W=X+$.shift(),A=Q+$.shift(),V=W+$.shift(),w.curveTo(Z,X,Q,W,A,V);break;case 10:if(l=$.pop()+B,P=O[l],P)T(P);break;case 11:return;case 12:switch(x=D[m],m+=1,x){case 35:Z=A+$.shift(),X=V+$.shift(),Q=Z+$.shift(),W=X+$.shift(),k=Q+$.shift(),R=W+$.shift(),c=k+$.shift(),u=R+$.shift(),a=c+$.shift(),n=u+$.shift(),A=a+$.shift(),V=n+$.shift(),$.shift(),w.curveTo(Z,X,Q,W,k,R),w.curveTo(c,u,a,n,A,V);break;case 34:Z=A+$.shift(),X=V,Q=Z+$.shift(),W=X+$.shift(),k=Q+$.shift(),R=W,c=k+$.shift(),u=W,a=c+$.shift(),n=V,A=a+$.shift(),w.curveTo(Z,X,Q,W,k,R),w.curveTo(c,u,a,n,A,V);break;case 36:Z=A+$.shift(),X=V+$.shift(),Q=Z+$.shift(),W=X+$.shift(),k=Q+$.shift(),R=W,c=k+$.shift(),u=W,a=c+$.shift(),n=u+$.shift(),A=a+$.shift(),w.curveTo(Z,X,Q,W,k,R),w.curveTo(c,u,a,n,A,V);break;case 37:if(Z=A+$.shift(),X=V+$.shift(),Q=Z+$.shift(),W=X+$.shift(),k=Q+$.shift(),R=W+$.shift(),c=k+$.shift(),u=R+$.shift(),a=c+$.shift(),n=u+$.shift(),Math.abs(a-A)>Math.abs(n-V))A=a+$.shift();else V=n+$.shift();w.curveTo(Z,X,Q,W,k,R),w.curveTo(c,u,a,n,A,V);break;default:console.log("Glyph "+Y.index+": unknown operator 1200"+x),$.length=0}break;case 14:if($.length>0&&!U)I=$.shift()+M,U=!0;if(H)w.closePath(),H=!1;break;case 18:j();break;case 19:case 20:j(),m+=z+7>>3;break;case 21:if($.length>2&&!U)I=$.shift()+M,U=!0;V+=$.pop(),A+=$.pop(),F(A,V);break;case 22:if($.length>1&&!U)I=$.shift()+M,U=!0;A+=$.pop(),F(A,V);break;case 23:j();break;case 24:while($.length>2)Z=A+$.shift(),X=V+$.shift(),Q=Z+$.shift(),W=X+$.shift(),A=Q+$.shift(),V=W+$.shift(),w.curveTo(Z,X,Q,W,A,V);A+=$.shift(),V+=$.shift(),w.lineTo(A,V);break;case 25:while($.length>6)A+=$.shift(),V+=$.shift(),w.lineTo(A,V);Z=A+$.shift(),X=V+$.shift(),Q=Z+$.shift(),W=X+$.shift(),A=Q+$.shift(),V=W+$.shift(),w.curveTo(Z,X,Q,W,A,V);break;case 26:if($.length%2)A+=$.shift();while($.length>0)Z=A,X=V+$.shift(),Q=Z+$.shift(),W=X+$.shift(),A=Q,V=W+$.shift(),w.curveTo(Z,X,Q,W,A,V);break;case 27:if($.length%2)V+=$.shift();while($.length>0)Z=A+$.shift(),X=V,Q=Z+$.shift(),W=X+$.shift(),A=Q+$.shift(),V=W,w.curveTo(Z,X,Q,W,A,V);break;case 28:C=D[m],h=D[m+1],$.push((C<<24|h<<16)>>16),m+=2;break;case 29:if(l=$.pop()+J.gsubrsBias,P=J.gsubrs[l],P)T(P);break;case 30:while($.length>0){if(Z=A,X=V+$.shift(),Q=Z+$.shift(),W=X+$.shift(),A=Q+$.shift(),V=W+($.length===1?$.shift():0),w.curveTo(Z,X,Q,W,A,V),$.length===0)break;Z=A+$.shift(),X=V,Q=Z+$.shift(),W=X+$.shift(),V=W+$.shift(),A=Q+($.length===1?$.shift():0),w.curveTo(Z,X,Q,W,A,V)}break;case 31:while($.length>0){if(Z=A+$.shift(),X=V,Q=Z+$.shift(),W=X+$.shift(),V=W+$.shift(),A=Q+($.length===1?$.shift():0),w.curveTo(Z,X,Q,W,A,V),$.length===0)break;Z=A,X=V+$.shift(),Q=Z+$.shift(),W=X+$.shift(),A=Q+$.shift(),V=W+($.length===1?$.shift():0),w.curveTo(Z,X,Q,W,A,V)}break;default:if(x<32)console.log("Glyph "+Y.index+": unknown operator "+x);else if(x<247)$.push(x-139);else if(x<251)C=D[m],m+=1,$.push((x-247)*256+C+108);else if(x<255)C=D[m],m+=1,$.push(-(x-251)*256-C-108);else C=D[m],h=D[m+1],d=D[m+2],r=D[m+3],m+=4,$.push((C<<24|h<<16|d<<8|r)/65536)}}}return T(K),Y.advanceWidth=I,w}function ow(J,Y,K,Z){var X=[],Q,W=new o.Parser(J,Y),w=W.parseCard8();if(w===0)for(var $=0;$<K;$++){if(Q=W.parseCard8(),Q>=Z)throw Error("CFF table CID Font FDSelect has bad FD index value "+Q+" (FD count "+Z+")");X.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 H;for(var A=0;A<z;A++){if(Q=W.parseCard8(),H=W.parseCard16(),Q>=Z)throw Error("CFF table CID Font FDSelect has bad FD index value "+Q+" (FD count "+Z+")");if(H>K)throw Error("CFF Table CID Font FDSelect format 3 range has bad GID "+H);for(;U<H;U++)X.push(Q);U=H}if(H!==K)throw Error("CFF Table CID Font FDSelect format 3 range has bad final GID "+H)}else throw Error("CFF Table CID Font FDSelect table has unsupported format "+w);return X}function rw(J,Y,K,Z){K.tables.cff={};var X=dw(J,Y),Q=l1(J,X.endOffset,o.bytesToString),W=l1(J,Q.endOffset),w=l1(J,W.endOffset,o.bytesToString),$=l1(J,w.endOffset);K.gsubrs=$.objects,K.gsubrsBias=F9(K.gsubrs);var z=o2(J,Y,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(K.tables.cff.topDict=U,U._privateDict)K.defaultWidthX=U._privateDict.defaultWidthX,K.nominalWidthX=U._privateDict.nominalWidthX;if(U.ros[0]!==void 0&&U.ros[1]!==void 0)K.isCIDFont=!0;if(K.isCIDFont){var{fdArray:H,fdSelect:A}=U;if(H===0||A===0)throw Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");H+=Y;var V=l1(J,H),O=o2(J,Y,V.objects,w.objects);U._fdArray=O,A+=Y,U._fdSelect=ow(J,A,K.numGlyphs,O.length)}var B=Y+U.private[1],L=jJ(J,B,U.private[0],w.objects);if(K.defaultWidthX=L.defaultWidthX,K.nominalWidthX=L.nominalWidthX,L.subrs!==0){var M=B+L.subrs,N=l1(J,M);K.subrs=N.objects,K.subrsBias=F9(K.subrs)}else K.subrs=[],K.subrsBias=0;var E;if(Z.lowMemory)E=xw(J,Y+U.charStrings),K.nGlyphs=E.offsets.length;else E=l1(J,Y+U.charStrings),K.nGlyphs=E.objects.length;var I=iw(J,Y+U.charset,K.nGlyphs,w.objects);if(U.encoding===0)K.cffEncoding=new P8($W,I);else if(U.encoding===1)K.cffEncoding=new P8(wW,I);else K.cffEncoding=nw(J,Y+U.encoding,I);if(K.encoding=K.encoding||K.cffEncoding,K.glyphs=new I1.GlyphSet(K),Z.lowMemory)K._push=function(T){var D=bw(T,E.offsets,J,Y+U.charStrings);K.glyphs.push(T,I1.cffGlyphLoader(K,T,r2,D))};else for(var F=0;F<K.nGlyphs;F+=1){var j=E.objects[F];K.glyphs.push(F,I1.cffGlyphLoader(K,F,r2,j))}}var sw={parse:rw};function aw(J,Y,K){var Z={},X=new o.Parser(J,Y);return Z.tag=X.parseTag(),Z.minValue=X.parseFixed(),Z.defaultValue=X.parseFixed(),Z.maxValue=X.parseFixed(),X.skip("uShort",1),Z.name=K[X.parseUShort()]||{},Z}function tw(J,Y,K,Z){var X={},Q=new o.Parser(J,Y);X.name=Z[Q.parseUShort()]||{},Q.skip("uShort",1),X.coordinates={};for(var W=0;W<K.length;++W)X.coordinates[K[W].tag]=Q.parseFixed();return X}function ew(J,Y,K){var Z=new o.Parser(J,Y),X=Z.parseULong();H0.argument(X===65536,"Unsupported fvar table version.");var Q=Z.parseOffset16();Z.skip("uShort",1);var W=Z.parseUShort(),w=Z.parseUShort(),$=Z.parseUShort(),z=Z.parseUShort(),U=[];for(var H=0;H<W;H++)U.push(aw(J,Y+Q+H*w,K));var A=[],V=Y+Q+W*w;for(var O=0;O<$;O++)A.push(tw(J,V+O*z,U,K));return{axes:U,instances:A}}var Jz={parse:ew},Yz=function(){return{coverage:this.parsePointer(v.coverage),attachPoints:this.parseList(v.pointer(v.uShortList))}},Kz=function(){var J=this.parseUShort();if(H0.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()}},Zz=function(){return this.parseList(v.pointer(Kz))},Xz=function(){return{coverage:this.parsePointer(v.coverage),ligGlyphs:this.parseList(v.pointer(Zz))}},Qz=function(){return this.parseUShort(),this.parseList(v.pointer(v.coverage))};function Wz(J,Y){Y=Y||0;var K=new v(J,Y),Z=K.parseVersion(1);H0.argument(Z===1||Z===1.2||Z===1.3,"Unsupported GDEF table version.");var X={version:Z,classDef:K.parsePointer(v.classDef),attachList:K.parsePointer(Yz),ligCaretList:K.parsePointer(Xz),markAttachClassDef:K.parsePointer(v.classDef)};if(Z>=1.2)X.markGlyphSets=K.parsePointer(Qz);return X}var $z={parse:Wz},A1=[,,,,,,,,,,];A1[1]=function(){var Y=this.offset+this.relativeOffset,K=this.parseUShort();if(K===1)return{posFormat:1,coverage:this.parsePointer(v.coverage),value:this.parseValueRecord()};else if(K===2)return{posFormat:2,coverage:this.parsePointer(v.coverage),values:this.parseValueRecordList()};H0.assert(!1,"0x"+Y.toString(16)+": GPOS lookup type 1 format must be 1 or 2.")};A1[2]=function(){var Y=this.offset+this.relativeOffset,K=this.parseUShort();H0.assert(K===1||K===2,"0x"+Y.toString(16)+": GPOS lookup type 2 format must be 1 or 2.");var Z=this.parsePointer(v.coverage),X=this.parseUShort(),Q=this.parseUShort();if(K===1)return{posFormat:K,coverage:Z,valueFormat1:X,valueFormat2:Q,pairSets:this.parseList(v.pointer(v.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(X),value2:this.parseValueRecord(Q)}})))};else if(K===2){var W=this.parsePointer(v.classDef),w=this.parsePointer(v.classDef),$=this.parseUShort(),z=this.parseUShort();return{posFormat:K,coverage:Z,valueFormat1:X,valueFormat2:Q,classDef1:W,classDef2:w,class1Count:$,class2Count:z,classRecords:this.parseList($,v.list(z,function(){return{value1:this.parseValueRecord(X),value2:this.parseValueRecord(Q)}}))}}};A1[3]=function(){return{error:"GPOS Lookup 3 not supported"}};A1[4]=function(){return{error:"GPOS Lookup 4 not supported"}};A1[5]=function(){return{error:"GPOS Lookup 5 not supported"}};A1[6]=function(){return{error:"GPOS Lookup 6 not supported"}};A1[7]=function(){return{error:"GPOS Lookup 7 not supported"}};A1[8]=function(){return{error:"GPOS Lookup 8 not supported"}};A1[9]=function(){return{error:"GPOS Lookup 9 not supported"}};function wz(J,Y){Y=Y||0;var K=new v(J,Y),Z=K.parseVersion(1);if(H0.argument(Z===1||Z===1.1,"Unsupported GPOS table version "+Z),Z===1)return{version:Z,scripts:K.parseScriptList(),features:K.parseFeatureList(),lookups:K.parseLookupList(A1)};else return{version:Z,scripts:K.parseScriptList(),features:K.parseFeatureList(),lookups:K.parseLookupList(A1),variations:K.parseFeatureVariationsList()}}var zz={parse:wz},V1=[,,,,,,,,,];V1[1]=function(){var Y=this.offset+this.relativeOffset,K=this.parseUShort();if(K===1)return{substFormat:1,coverage:this.parsePointer(v.coverage),deltaGlyphId:this.parseUShort()};else if(K===2)return{substFormat:2,coverage:this.parsePointer(v.coverage),substitute:this.parseOffset16List()};H0.assert(!1,"0x"+Y.toString(16)+": lookup type 1 format must be 1 or 2.")};V1[2]=function(){var Y=this.parseUShort();return H0.argument(Y===1,"GSUB Multiple Substitution Subtable identifier-format must be 1"),{substFormat:Y,coverage:this.parsePointer(v.coverage),sequences:this.parseListOfLists()}};V1[3]=function(){var Y=this.parseUShort();return H0.argument(Y===1,"GSUB Alternate Substitution Subtable identifier-format must be 1"),{substFormat:Y,coverage:this.parsePointer(v.coverage),alternateSets:this.parseListOfLists()}};V1[4]=function(){var Y=this.parseUShort();return H0.argument(Y===1,"GSUB ligature table identifier-format must be 1"),{substFormat:Y,coverage:this.parsePointer(v.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var E5={sequenceIndex:v.uShort,lookupListIndex:v.uShort};V1[5]=function(){var Y=this.offset+this.relativeOffset,K=this.parseUShort();if(K===1)return{substFormat:K,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,E5)}})};else if(K===2)return{substFormat:K,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,E5)}})};else if(K===3){var Z=this.parseUShort(),X=this.parseUShort();return{substFormat:K,coverages:this.parseList(Z,v.pointer(v.coverage)),lookupRecords:this.parseRecordList(X,E5)}}H0.assert(!1,"0x"+Y.toString(16)+": lookup type 5 format must be 1, 2 or 3.")};V1[6]=function(){var Y=this.offset+this.relativeOffset,K=this.parseUShort();if(K===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(E5)}})};else if(K===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(E5)}})};else if(K===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(E5)};H0.assert(!1,"0x"+Y.toString(16)+": lookup type 6 format must be 1, 2 or 3.")};V1[7]=function(){var Y=this.parseUShort();H0.argument(Y===1,"GSUB Extension Substitution subtable identifier-format must be 1");var K=this.parseUShort(),Z=new v(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:K,extension:V1[K].call(Z)}};V1[8]=function(){var Y=this.parseUShort();return H0.argument(Y===1,"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"),{substFormat:Y,coverage:this.parsePointer(v.coverage),backtrackCoverage:this.parseList(v.pointer(v.coverage)),lookaheadCoverage:this.parseList(v.pointer(v.coverage)),substitutes:this.parseUShortList()}};function Uz(J,Y){Y=Y||0;var K=new v(J,Y),Z=K.parseVersion(1);if(H0.argument(Z===1||Z===1.1,"Unsupported GSUB table version."),Z===1)return{version:Z,scripts:K.parseScriptList(),features:K.parseFeatureList(),lookups:K.parseLookupList(V1)};else return{version:Z,scripts:K.parseScriptList(),features:K.parseFeatureList(),lookups:K.parseLookupList(V1),variations:K.parseFeatureVariationsList()}}var Hz={parse:Uz};function Az(J,Y){var K={},Z=new o.Parser(J,Y);return K.version=Z.parseVersion(),K.fontRevision=Math.round(Z.parseFixed()*1000)/1000,K.checkSumAdjustment=Z.parseULong(),K.magicNumber=Z.parseULong(),H0.argument(K.magicNumber===1594834165,"Font header has wrong magic number."),K.flags=Z.parseUShort(),K.unitsPerEm=Z.parseUShort(),K.created=Z.parseLongDateTime(),K.modified=Z.parseLongDateTime(),K.xMin=Z.parseShort(),K.yMin=Z.parseShort(),K.xMax=Z.parseShort(),K.yMax=Z.parseShort(),K.macStyle=Z.parseUShort(),K.lowestRecPPEM=Z.parseUShort(),K.fontDirectionHint=Z.parseShort(),K.indexToLocFormat=Z.parseShort(),K.glyphDataFormat=Z.parseShort(),K}var Vz={parse:Az};function Bz(J,Y){var K={},Z=new o.Parser(J,Y);return K.version=Z.parseVersion(),K.ascender=Z.parseShort(),K.descender=Z.parseShort(),K.lineGap=Z.parseShort(),K.advanceWidthMax=Z.parseUShort(),K.minLeftSideBearing=Z.parseShort(),K.minRightSideBearing=Z.parseShort(),K.xMaxExtent=Z.parseShort(),K.caretSlopeRise=Z.parseShort(),K.caretSlopeRun=Z.parseShort(),K.caretOffset=Z.parseShort(),Z.relativeOffset+=8,K.metricDataFormat=Z.parseShort(),K.numberOfHMetrics=Z.parseUShort(),K}var Gz={parse:Bz};function Lz(J,Y,K,Z,X){var Q,W,w=new o.Parser(J,Y);for(var $=0;$<Z;$+=1){if($<K)Q=w.parseUShort(),W=w.parseShort();var z=X.get($);z.advanceWidth=Q,z.leftSideBearing=W}}function Oz(J,Y,K,Z,X){J._hmtxTableData={};var Q,W,w=new o.Parser(Y,K);for(var $=0;$<X;$+=1){if($<Z)Q=w.parseUShort(),W=w.parseShort();J._hmtxTableData[$]={advanceWidth:Q,leftSideBearing:W}}}function qz(J,Y,K,Z,X,Q,W){if(W.lowMemory)Oz(J,Y,K,Z,X);else Lz(Y,K,Z,X,Q)}var Mz={parse:qz};function Nz(J){var Y={};J.skip("uShort");var K=J.parseUShort();H0.argument(K===0,"Unsupported kern sub-table version."),J.skip("uShort",2);var Z=J.parseUShort();J.skip("uShort",3);for(var X=0;X<Z;X+=1){var Q=J.parseUShort(),W=J.parseUShort(),w=J.parseShort();Y[Q+","+W]=w}return Y}function jz(J){var Y={};J.skip("uShort");var K=J.parseULong();if(K>1)console.warn("Only the first kern subtable is supported.");J.skip("uLong");var Z=J.parseUShort(),X=Z&255;if(J.skip("uShort"),X===0){var Q=J.parseUShort();J.skip("uShort",3);for(var W=0;W<Q;W+=1){var w=J.parseUShort(),$=J.parseUShort(),z=J.parseShort();Y[w+","+$]=z}}return Y}function Ez(J,Y){var K=new o.Parser(J,Y),Z=K.parseUShort();if(Z===0)return Nz(K);else if(Z===1)return jz(K);else throw Error("Unsupported kern table version ("+Z+").")}var Fz={parse:Ez};function _z(J,Y){var K=new o.Parser(J,Y),Z=K.parseULong();H0.argument(Z===1,"Unsupported ltag table version."),K.skip("uLong",1);var X=K.parseULong(),Q=[];for(var W=0;W<X;W++){var w="",$=Y+K.parseUShort(),z=K.parseUShort();for(var U=$;U<$+z;++U)w+=String.fromCharCode(J.getInt8(U));Q.push(w)}return Q}var Iz={parse:_z};function Dz(J,Y,K,Z){var X=new o.Parser(J,Y),Q=Z?X.parseUShort:X.parseULong,W=[];for(var w=0;w<K+1;w+=1){var $=Q.call(X);if(Z)$*=2;W.push($)}return W}var Rz={parse:Dz};function Cz(J,Y){var K={},Z=new o.Parser(J,Y);if(K.version=Z.parseVersion(),K.numGlyphs=Z.parseUShort(),K.version===1)K.maxPoints=Z.parseUShort(),K.maxContours=Z.parseUShort(),K.maxCompositePoints=Z.parseUShort(),K.maxCompositeContours=Z.parseUShort(),K.maxZones=Z.parseUShort(),K.maxTwilightPoints=Z.parseUShort(),K.maxStorage=Z.parseUShort(),K.maxFunctionDefs=Z.parseUShort(),K.maxInstructionDefs=Z.parseUShort(),K.maxStackElements=Z.parseUShort(),K.maxSizeOfInstructions=Z.parseUShort(),K.maxComponentElements=Z.parseUShort(),K.maxComponentDepth=Z.parseUShort();return K}var Tz={parse:Cz};function Pz(J,Y){var K={},Z=new o.Parser(J,Y);K.version=Z.parseUShort(),K.xAvgCharWidth=Z.parseShort(),K.usWeightClass=Z.parseUShort(),K.usWidthClass=Z.parseUShort(),K.fsType=Z.parseUShort(),K.ySubscriptXSize=Z.parseShort(),K.ySubscriptYSize=Z.parseShort(),K.ySubscriptXOffset=Z.parseShort(),K.ySubscriptYOffset=Z.parseShort(),K.ySuperscriptXSize=Z.parseShort(),K.ySuperscriptYSize=Z.parseShort(),K.ySuperscriptXOffset=Z.parseShort(),K.ySuperscriptYOffset=Z.parseShort(),K.yStrikeoutSize=Z.parseShort(),K.yStrikeoutPosition=Z.parseShort(),K.sFamilyClass=Z.parseShort(),K.panose=[];for(var X=0;X<10;X++)K.panose[X]=Z.parseByte();if(K.ulUnicodeRange1=Z.parseULong(),K.ulUnicodeRange2=Z.parseULong(),K.ulUnicodeRange3=Z.parseULong(),K.ulUnicodeRange4=Z.parseULong(),K.achVendID=String.fromCharCode(Z.parseByte(),Z.parseByte(),Z.parseByte(),Z.parseByte()),K.fsSelection=Z.parseUShort(),K.usFirstCharIndex=Z.parseUShort(),K.usLastCharIndex=Z.parseUShort(),K.sTypoAscender=Z.parseShort(),K.sTypoDescender=Z.parseShort(),K.sTypoLineGap=Z.parseShort(),K.usWinAscent=Z.parseUShort(),K.usWinDescent=Z.parseUShort(),K.version>=1)K.ulCodePageRange1=Z.parseULong(),K.ulCodePageRange2=Z.parseULong();if(K.version>=2)K.sxHeight=Z.parseShort(),K.sCapHeight=Z.parseShort(),K.usDefaultChar=Z.parseUShort(),K.usBreakChar=Z.parseUShort(),K.usMaxContent=Z.parseUShort();return K}var Sz={parse:Pz};function vz(J,Y){var K={},Z=new o.Parser(J,Y);switch(K.version=Z.parseVersion(),K.italicAngle=Z.parseFixed(),K.underlinePosition=Z.parseShort(),K.underlineThickness=Z.parseShort(),K.isFixedPitch=Z.parseULong(),K.minMemType42=Z.parseULong(),K.maxMemType42=Z.parseULong(),K.minMemType1=Z.parseULong(),K.maxMemType1=Z.parseULong(),K.names=[],K.version){case 1:break;case 2:K.numberOfGlyphs=Z.parseUShort(),K.glyphNameIndex=Array(K.numberOfGlyphs);for(var X=0;X<K.numberOfGlyphs;X++)K.glyphNameIndex[X]=Z.parseUShort();break;case 2.5:K.numberOfGlyphs=Z.parseUShort(),K.offset=Array(K.numberOfGlyphs);for(var Q=0;Q<K.numberOfGlyphs;Q++)K.offset[Q]=Z.parseChar();break}return K}var kz={parse:vz},y8={};y8.UTF8=function(J,Y,K){var Z=[],X=K;for(var Q=0;Q<X;Q++,Y+=1)Z[Q]=J.getUint8(Y);return String.fromCharCode.apply(null,Z)};y8.UTF16=function(J,Y,K){var Z=[],X=K/2;for(var Q=0;Q<X;Q++,Y+=2)Z[Q]=J.getUint16(Y);return String.fromCharCode.apply(null,Z)};var yz={"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"};y8.MACSTRING=function(J,Y,K,Z){var X=yz[Z];if(X===void 0)return;var Q="";for(var W=0;W<K;W++){var w=J.getUint8(Y+W);if(w<=127)Q+=String.fromCharCode(w);else Q+=X[w&127]}return Q};function gz(J,Y){var K=new o.Parser(J,Y),Z=K.parseULong();H0.argument(Z===1,"Unsupported META table version."),K.parseULong(),K.parseULong();var X=K.parseULong(),Q={};for(var W=0;W<X;W++){var w=K.parseTag(),$=K.parseULong(),z=K.parseULong(),U=y8.UTF8(J,Y+$,z);Q[w]=U}return Q}var hz={parse:gz};function s2(J,Y){var K=[],Z=12;for(var X=0;X<Y;X+=1){var Q=o.getTag(J,Z),W=o.getULong(J,Z+4),w=o.getULong(J,Z+8),$=o.getULong(J,Z+12);K.push({tag:Q,checksum:W,offset:w,length:$,compression:!1}),Z+=16}return K}function xz(J,Y){var K=[],Z=44;for(var X=0;X<Y;X+=1){var Q=o.getTag(J,Z),W=o.getULong(J,Z+4),w=o.getULong(J,Z+8),$=o.getULong(J,Z+12),z=void 0;if(w<$)z="WOFF";else z=!1;K.push({tag:Q,offset:W,compression:z,compressedLength:w,length:$}),Z+=20}return K}function C0(J,Y){if(Y.compression==="WOFF"){var K=new Uint8Array(J.buffer,Y.offset+2,Y.compressedLength-2),Z=new Uint8Array(Y.length);if(ZW(K,Z),Z.byteLength!==Y.length)throw Error("Decompression error: "+Y.tag+" decompressed length doesn't match recorded length");var X=new DataView(Z.buffer,0);return{data:X,offset:0}}else return{data:J,offset:Y.offset}}function bz(J,Y){Y=Y===void 0||Y===null?{}:Y;var K,Z=new c0({empty:!0}),X=new DataView(J,0),Q,W=[],w=o.getTag(X,0);if(w===String.fromCharCode(0,1,0,0)||w==="true"||w==="typ1")Z.outlinesFormat="truetype",Q=o.getUShort(X,4),W=s2(X,Q);else if(w==="OTTO")Z.outlinesFormat="cff",Q=o.getUShort(X,4),W=s2(X,Q);else if(w==="wOFF"){var $=o.getTag(X,4);if($===String.fromCharCode(0,1,0,0))Z.outlinesFormat="truetype";else if($==="OTTO")Z.outlinesFormat="cff";else throw Error("Unsupported OpenType flavor "+w);Q=o.getUShort(X,12),W=xz(X,Q)}else throw Error("Unsupported OpenType signature "+w);var z,U,H,A,V,O,B,L,M,N,E;for(var I=0;I<Q;I+=1){var F=W[I],j=void 0;switch(F.tag){case"cmap":j=C0(X,F),Z.tables.cmap=hw.parse(j.data,j.offset),Z.encoding=new QJ(Z.tables.cmap);break;case"cvt ":j=C0(X,F),E=new o.Parser(j.data,j.offset),Z.tables.cvt=E.parseShortList(F.length/2);break;case"fvar":U=F;break;case"fpgm":j=C0(X,F),E=new o.Parser(j.data,j.offset),Z.tables.fpgm=E.parseByteList(F.length);break;case"head":j=C0(X,F),Z.tables.head=Vz.parse(j.data,j.offset),Z.unitsPerEm=Z.tables.head.unitsPerEm,K=Z.tables.head.indexToLocFormat;break;case"hhea":j=C0(X,F),Z.tables.hhea=Gz.parse(j.data,j.offset),Z.ascender=Z.tables.hhea.ascender,Z.descender=Z.tables.hhea.descender,Z.numberOfHMetrics=Z.tables.hhea.numberOfHMetrics;break;case"hmtx":B=F;break;case"ltag":j=C0(X,F),ltagTable=Iz.parse(j.data,j.offset);break;case"maxp":j=C0(X,F),Z.tables.maxp=Tz.parse(j.data,j.offset),Z.numGlyphs=Z.tables.maxp.numGlyphs;break;case"OS/2":j=C0(X,F),Z.tables.os2=Sz.parse(j.data,j.offset);break;case"post":j=C0(X,F),Z.tables.post=kz.parse(j.data,j.offset);break;case"prep":j=C0(X,F),E=new o.Parser(j.data,j.offset),Z.tables.prep=E.parseByteList(F.length);break;case"glyf":H=F;break;case"loca":M=F;break;case"CFF ":z=F;break;case"kern":L=F;break;case"GDEF":A=F;break;case"GPOS":V=F;break;case"GSUB":O=F;break;case"meta":N=F;break}}if(H&&M){var T=K===0,D=C0(X,M),C=Rz.parse(D.data,D.offset,Z.numGlyphs,T),h=C0(X,H);Z.glyphs=HJ.parse(h.data,h.offset,C,Z,Y)}else if(z){var d=C0(X,z);sw.parse(d.data,d.offset,Z,Y)}else throw Error("Font doesn't contain TrueType or CFF outlines.");var r=C0(X,B);if(Mz.parse(Z,r.data,r.offset,Z.numberOfHMetrics,Z.numGlyphs,Z.glyphs,Y),HW(Z,Y),L){var l=C0(X,L);Z.kerningPairs=Fz.parse(l.data,l.offset)}else Z.kerningPairs={};if(A){var P=C0(X,A);Z.tables.gdef=$z.parse(P.data,P.offset)}if(V){var k=C0(X,V);Z.tables.gpos=zz.parse(k.data,k.offset),Z.position.init()}if(O){var R=C0(X,O);Z.tables.gsub=Hz.parse(R.data,R.offset)}if(U){var c=C0(X,U);Z.tables.fvar=Jz.parse(c.data,c.offset,Z.names)}if(N){var u=C0(X,N);Z.tables.meta=hz.parse(u.data,u.offset),Z.metas=Z.tables.meta}return Z}function fz(){}function mz(){}var cz=Object.freeze({__proto__:null,Font:c0,Glyph:v1,Path:m0,_parse:o,parse:bz,load:fz,loadSync:mz}),g8=cz;var{create:dz,defineProperty:J6,getOwnPropertyDescriptor:uz,getOwnPropertyNames:lz,getPrototypeOf:pz}=Object,iz=Object.prototype.hasOwnProperty,o9=(J,Y)=>()=>(J&&(Y=J(J=0)),Y),t=(J,Y)=>()=>(Y||J((Y={exports:{}}).exports,Y),Y.exports),r9=(J,Y)=>{for(var K in Y)J6(J,K,{get:Y[K],enumerable:!0})},oJ=(J,Y,K,Z)=>{if(Y&&typeof Y=="object"||typeof Y=="function")for(let X of lz(Y))!iz.call(J,X)&&X!==K&&J6(J,X,{get:()=>Y[X],enumerable:!(Z=uz(Y,X))||Z.enumerable});return J},nz=(J,Y,K)=>(K=J!=null?dz(pz(J)):{},oJ(Y||!J||!J.__esModule?J6(K,"default",{value:J,enumerable:!0}):K,J)),t8=(J)=>oJ(J6({},"__esModule",{value:!0}),J),rJ={};r9(rJ,{getYogaModule:()=>oz});async function oz(){let{default:J}=await import("./chunk-zhsaz9cr.js");return J()}var rz=o9(()=>{}),sJ=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Y});function Y(K){if(K=`${K}`,K==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(K))return K.replace(/^[+-]?/,(Z)=>Z==="-"?"":"-");if(K.includes("var(")||K.includes("calc("))return`calc(${K} * -1)`}}),sz=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Y});var Y=["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"]}),az=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Y});function Y(K,Z){return K===void 0?Z:Array.isArray(K)?K:[...new Set(Z.filter((X)=>K!==!1&&K[X]!==!1).concat(Object.keys(K).filter((X)=>K[X]!==!1)))]}}),aJ=t((J,Y)=>{Y.exports={content:[],presets:[],darkMode:"media",theme:{screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:({colors:K})=>({inherit:K.inherit,current:K.current,transparent:K.transparent,black:K.black,white:K.white,slate:K.slate,gray:K.gray,zinc:K.zinc,neutral:K.neutral,stone:K.stone,red:K.red,orange:K.orange,amber:K.amber,yellow:K.yellow,lime:K.lime,green:K.green,emerald:K.emerald,teal:K.teal,cyan:K.cyan,sky:K.sky,blue:K.blue,indigo:K.indigo,violet:K.violet,purple:K.purple,fuchsia:K.fuchsia,pink:K.pink,rose:K.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:K})=>K("blur"),backdropBrightness:({theme:K})=>K("brightness"),backdropContrast:({theme:K})=>K("contrast"),backdropGrayscale:({theme:K})=>K("grayscale"),backdropHueRotate:({theme:K})=>K("hueRotate"),backdropInvert:({theme:K})=>K("invert"),backdropOpacity:({theme:K})=>K("opacity"),backdropSaturate:({theme:K})=>K("saturate"),backdropSepia:({theme:K})=>K("sepia"),backgroundColor:({theme:K})=>K("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:K})=>K("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:K})=>({...K("colors"),DEFAULT:K("colors.gray.200","currentColor")}),borderOpacity:({theme:K})=>K("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:K})=>({...K("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:K})=>K("colors"),caretColor:({theme:K})=>K("colors"),accentColor:({theme:K})=>({...K("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:K})=>K("borderColor"),divideOpacity:({theme:K})=>K("borderOpacity"),divideWidth:({theme:K})=>K("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:K})=>K("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:K})=>({auto:"auto",...K("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:K})=>K("spacing"),gradientColorStops:({theme:K})=>K("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:K})=>({auto:"auto",...K("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:K})=>({auto:"auto",...K("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:K})=>({auto:"auto",...K("spacing")}),maxHeight:({theme:K})=>({...K("spacing"),full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:K,breakpoints:Z})=>({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",...Z(K("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:K})=>K("spacing"),placeholderColor:({theme:K})=>K("colors"),placeholderOpacity:({theme:K})=>K("opacity"),outlineColor:({theme:K})=>K("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:K})=>({DEFAULT:K("colors.blue.500","#3b82f6"),...K("colors")}),ringOffsetColor:({theme:K})=>K("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:K})=>({DEFAULT:"0.5",...K("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:K})=>({...K("spacing")}),scrollPadding:({theme:K})=>K("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:K})=>({...K("spacing")}),stroke:({theme:K})=>K("colors"),strokeWidth:{0:"0",1:"1",2:"2"},textColor:({theme:K})=>K("colors"),textDecorationColor:({theme:K})=>K("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:K})=>({...K("spacing")}),textOpacity:({theme:K})=>K("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:K})=>({...K("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:K})=>({auto:"auto",...K("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:[]}}),Y6={};r9(Y6,{default:()=>tJ});var tJ,s9=o9(()=>{tJ={info(J,Y){console.info(...Array.isArray(J)?[J]:[Y,J])},warn(J,Y){console.warn(...Array.isArray(J)?[J]:[Y,J])},risk(J,Y){console.error(...Array.isArray(J)?[J]:[Y,J])}}}),tz=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>X});var Y=K((s9(),t8(Y6)));function K(Q){return Q&&Q.__esModule?Q:{default:Q}}function Z({version:Q,from:W,to:w}){Y.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 X={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 Z({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return Z({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return Z({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return Z({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return Z({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}),ez=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"defaults",{enumerable:!0,get:()=>Y});function Y(K,...Z){for(let W of Z){for(let w in W){var X;!(K==null||(X=K.hasOwnProperty)===null||X===void 0)&&X.call(K,w)||(K[w]=W[w])}for(let w of Object.getOwnPropertySymbols(W)){var Q;!(K==null||(Q=K.hasOwnProperty)===null||Q===void 0)&&Q.call(K,w)||(K[w]=W[w])}}return K}}),JU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"toPath",{enumerable:!0,get:()=>Y});function Y(K){if(Array.isArray(K))return K;let Z=K.split("[").length-1,X=K.split("]").length-1;if(Z!==X)throw Error(`Path is invalid. Has unbalanced brackets: ${K}`);return K.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}}),YU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"normalizeConfig",{enumerable:!0,get:()=>X});var Y=Z((s9(),t8(Y6)));function K(Q){if(typeof WeakMap!="function")return null;var W=new WeakMap,w=new WeakMap;return(K=function($){return $?w:W})(Q)}function Z(Q,W){if(!W&&Q&&Q.__esModule)return Q;if(Q===null||typeof Q!="object"&&typeof Q!="function")return{default:Q};var w=K(W);if(w&&w.has(Q))return w.get(Q);var $={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var U in Q)if(U!=="default"&&Object.prototype.hasOwnProperty.call(Q,U)){var H=z?Object.getOwnPropertyDescriptor(Q,U):null;H&&(H.get||H.set)?Object.defineProperty($,U,H):$[U]=Q[U]}return $.default=Q,w&&w.set(Q,$),$}function X(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})()||Y.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:$,purge:z,safelist:U}=Q;return Array.isArray(U)?U:Array.isArray($==null?void 0:$.safelist)?$.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")Y.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:$}=Q;return Array.isArray($)?$:Array.isArray($==null?void 0:$.content)?$.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,H,A,V,O,B,L,M,N,E;return!((U=Q.purge)===null||U===void 0)&&U.extract?Q.purge.extract:!((H=Q.content)===null||H===void 0)&&H.extract?Q.content.extract:!((A=Q.purge)===null||A===void 0||(V=A.extract)===null||V===void 0)&&V.DEFAULT?Q.purge.extract.DEFAULT:!((O=Q.content)===null||O===void 0||(B=O.extract)===null||B===void 0)&&B.DEFAULT?Q.content.extract.DEFAULT:!((L=Q.purge)===null||L===void 0||(M=L.options)===null||M===void 0)&&M.extractors?Q.purge.options.extractors:!((N=Q.content)===null||N===void 0||(E=N.options)===null||E===void 0)&&E.extractors?Q.content.options.extractors:{}})(),$={},z=(()=>{var U,H,A,V;if(!((U=Q.purge)===null||U===void 0||(H=U.options)===null||H===void 0)&&H.defaultExtractor)return Q.purge.options.defaultExtractor;if(!((A=Q.content)===null||A===void 0||(V=A.options)===null||V===void 0)&&V.defaultExtractor)return Q.content.options.defaultExtractor})();if(z!==void 0&&($.DEFAULT=z),typeof w=="function")$.DEFAULT=w;else if(Array.isArray(w))for(let{extensions:U,extractor:H}of w??[])for(let A of U)$[A]=H;else typeof w=="object"&&w!==null&&Object.assign($,w);return $})(),transform:(()=>{let w=(()=>{var z,U,H,A,V,O;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:!((H=Q.purge)===null||H===void 0||(A=H.transform)===null||A===void 0)&&A.DEFAULT?Q.purge.transform.DEFAULT:!((V=Q.content)===null||V===void 0||(O=V.transform)===null||O===void 0)&&O.DEFAULT?Q.content.transform.DEFAULT:{}})(),$={};return typeof w=="function"&&($.DEFAULT=w),typeof w=="object"&&w!==null&&Object.assign($,w),$})()};for(let w of Q.content.files)if(typeof w=="string"&&/{([^,]*?)}/g.test(w)){Y.default.warn("invalid-glob-braces",[`The glob pattern ${(0,Y.dim)(w)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,Y.dim)(w.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return Q}}),KU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Y});function Y(K){if(Object.prototype.toString.call(K)!=="[object Object]")return!1;let Z=Object.getPrototypeOf(K);return Z===null||Z===Object.prototype}}),ZU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"cloneDeep",{enumerable:!0,get:()=>Y});function Y(K){return Array.isArray(K)?K.map((Z)=>Y(Z)):typeof K=="object"&&K!==null?Object.fromEntries(Object.entries(K).map(([Z,X])=>[Z,Y(X)])):K}}),eJ=t((J,Y)=>{J.__esModule=!0,J.default=X;function K(Q){for(var W=Q.toLowerCase(),w="",$=!1,z=0;z<6&&W[z]!==void 0;z++){var U=W.charCodeAt(z),H=U>=97&&U<=102||U>=48&&U<=57;if($=U===32,!H)break;w+=W[z]}if(w.length!==0){var A=parseInt(w,16),V=A>=55296&&A<=57343;return V||A===0||A>1114111?["\uFFFD",w.length+($?1:0)]:[String.fromCodePoint(A),w.length+($?1:0)]}}var Z=/\\/;function X(Q){var W=Z.test(Q);if(!W)return Q;for(var w="",$=0;$<Q.length;$++){if(Q[$]==="\\"){var z=K(Q.slice($+1,$+7));if(z!==void 0){w+=z[0],$+=z[1];continue}if(Q[$+1]==="\\"){w+="\\",$++;continue}Q.length===$+1&&(w+=Q[$]);continue}w+=Q[$]}return w}Y.exports=J.default}),XU=t((J,Y)=>{J.__esModule=!0,J.default=K;function K(Z){for(var X=arguments.length,Q=Array(X>1?X-1:0),W=1;W<X;W++)Q[W-1]=arguments[W];for(;Q.length>0;){var w=Q.shift();if(!Z[w])return;Z=Z[w]}return Z}Y.exports=J.default}),QU=t((J,Y)=>{J.__esModule=!0,J.default=K;function K(Z){for(var X=arguments.length,Q=Array(X>1?X-1:0),W=1;W<X;W++)Q[W-1]=arguments[W];for(;Q.length>0;){var w=Q.shift();Z[w]||(Z[w]={}),Z=Z[w]}}Y.exports=J.default}),WU=t((J,Y)=>{J.__esModule=!0,J.default=K;function K(Z){for(var X="",Q=Z.indexOf("/*"),W=0;Q>=0;){X=X+Z.slice(W,Q);var w=Z.indexOf("*/",Q+2);if(w<0)return X;W=w+2,Q=Z.indexOf("/*",W)}return X=X+Z.slice(W),X}Y.exports=J.default}),K6=t((J)=>{J.__esModule=!0,J.stripComments=J.ensureObject=J.getProp=J.unesc=void 0;var Y=Q(eJ());J.unesc=Y.default;var K=Q(XU());J.getProp=K.default;var Z=Q(QU());J.ensureObject=Z.default;var X=Q(WU());J.stripComments=X.default;function Q(W){return W&&W.__esModule?W:{default:W}}}),r1=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=K6();function Z(w,$){for(var z=0;z<$.length;z++){var U=$[z];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(w,U.key,U)}}function X(w,$,z){return $&&Z(w.prototype,$),z&&Z(w,z),w}var Q=function w($,z){if(typeof $!="object"||$===null)return $;var U=new $.constructor;for(var H in $)if($.hasOwnProperty(H)){var A=$[H],V=typeof A;H==="parent"&&V==="object"?z&&(U[H]=z):A instanceof Array?U[H]=A.map(function(O){return w(O,U)}):U[H]=w(A,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 $=w.prototype;return $.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},$.replaceWith=function(){if(this.parent){for(var z in arguments)this.parent.insertBefore(this,arguments[z]);this.remove()}return this},$.next=function(){return this.parent.at(this.parent.index(this)+1)},$.prev=function(){return this.parent.at(this.parent.index(this)-1)},$.clone=function(z){z===void 0&&(z={});var U=Q(this);for(var H in z)U[H]=z[H];return U},$.appendToPropertyAndEscape=function(z,U,H){this.raws||(this.raws={});var A=this[z],V=this.raws[z];this[z]=A+U,V||H!==U?this.raws[z]=(V||A)+H:delete this.raws[z]},$.setPropertyAndEscape=function(z,U,H){this.raws||(this.raws={}),this[z]=U,this.raws[z]=H},$.setPropertyWithoutEscape=function(z,U){this[z]=U,this.raws&&delete this.raws[z]},$.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)},$.stringifyProperty=function(z){return this.raws&&this.raws[z]||this[z]},$.valueToString=function(){return String(this.stringifyProperty("value"))},$.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},X(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,K.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,K.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=z}}]),w}();J.default=W,Y.exports=J.default}),d0=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 Y="tag";J.TAG=Y;var K="string";J.STRING=K;var Z="selector";J.SELECTOR=Z;var X="root";J.ROOT=X;var Q="pseudo";J.PSEUDO=Q;var W="nesting";J.NESTING=W;var w="id";J.ID=w;var $="comment";J.COMMENT=$;var z="combinator";J.COMBINATOR=z;var U="class";J.CLASS=U;var H="attribute";J.ATTRIBUTE=H;var A="universal";J.UNIVERSAL=A}),a9=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=W(r1()),Z=Q(d0());function X(){if(typeof WeakMap!="function")return null;var B=new WeakMap;return X=function(){return B},B}function Q(B){if(B&&B.__esModule)return B;if(B===null||typeof B!="object"&&typeof B!="function")return{default:B};var L=X();if(L&&L.has(B))return L.get(B);var M={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in B)if(Object.prototype.hasOwnProperty.call(B,E)){var I=N?Object.getOwnPropertyDescriptor(B,E):null;I&&(I.get||I.set)?Object.defineProperty(M,E,I):M[E]=B[E]}return M.default=B,L&&L.set(B,M),M}function W(B){return B&&B.__esModule?B:{default:B}}function w(B,L){var M;if(typeof Symbol>"u"||B[Symbol.iterator]==null){if(Array.isArray(B)||(M=$(B))||L&&B&&typeof B.length=="number"){M&&(B=M);var N=0;return function(){return N>=B.length?{done:!0}:{done:!1,value:B[N++]}}}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 M=B[Symbol.iterator](),M.next.bind(M)}function $(B,L){if(B){if(typeof B=="string")return z(B,L);var M=Object.prototype.toString.call(B).slice(8,-1);if(M==="Object"&&B.constructor&&(M=B.constructor.name),M==="Map"||M==="Set")return Array.from(B);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return z(B,L)}}function z(B,L){(L==null||L>B.length)&&(L=B.length);for(var M=0,N=Array(L);M<L;M++)N[M]=B[M];return N}function U(B,L){for(var M=0;M<L.length;M++){var N=L[M];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(B,N.key,N)}}function H(B,L,M){return L&&U(B.prototype,L),M&&U(B,M),B}function A(B,L){B.prototype=Object.create(L.prototype),B.prototype.constructor=B,V(B,L)}function V(B,L){return V=Object.setPrototypeOf||function(M,N){return M.__proto__=N,M},V(B,L)}var O=function(B){A(L,B);function L(N){var E;return E=B.call(this,N)||this,E.nodes||(E.nodes=[]),E}var M=L.prototype;return M.append=function(N){return N.parent=this,this.nodes.push(N),this},M.prepend=function(N){return N.parent=this,this.nodes.unshift(N),this},M.at=function(N){return this.nodes[N]},M.index=function(N){return typeof N=="number"?N:this.nodes.indexOf(N)},M.removeChild=function(N){N=this.index(N),this.at(N).parent=void 0,this.nodes.splice(N,1);var E;for(var I in this.indexes)E=this.indexes[I],E>=N&&(this.indexes[I]=E-1);return this},M.removeAll=function(){for(var N=w(this.nodes),E;!(E=N()).done;){var I=E.value;I.parent=void 0}return this.nodes=[],this},M.empty=function(){return this.removeAll()},M.insertAfter=function(N,E){E.parent=this;var I=this.index(N);this.nodes.splice(I+1,0,E),E.parent=this;var F;for(var j in this.indexes)F=this.indexes[j],I<=F&&(this.indexes[j]=F+1);return this},M.insertBefore=function(N,E){E.parent=this;var I=this.index(N);this.nodes.splice(I,0,E),E.parent=this;var F;for(var j in this.indexes)F=this.indexes[j],F<=I&&(this.indexes[j]=F+1);return this},M._findChildAtPosition=function(N,E){var I=void 0;return this.each(function(F){if(F.atPosition){var j=F.atPosition(N,E);if(j)return I=j,!1}else if(F.isAtPosition(N,E))return I=F,!1}),I},M.atPosition=function(N,E){if(this.isAtPosition(N,E))return this._findChildAtPosition(N,E)||this},M._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))},M.each=function(N){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var E=this.lastEach;if(this.indexes[E]=0,!!this.length){for(var I,F;this.indexes[E]<this.length&&(I=this.indexes[E],F=N(this.at(I),I),F!==!1);)this.indexes[E]+=1;if(delete this.indexes[E],F===!1)return!1}},M.walk=function(N){return this.each(function(E,I){var F=N(E,I);if(F!==!1&&E.length&&(F=E.walk(N)),F===!1)return!1})},M.walkAttributes=function(N){var E=this;return this.walk(function(I){if(I.type===Z.ATTRIBUTE)return N.call(E,I)})},M.walkClasses=function(N){var E=this;return this.walk(function(I){if(I.type===Z.CLASS)return N.call(E,I)})},M.walkCombinators=function(N){var E=this;return this.walk(function(I){if(I.type===Z.COMBINATOR)return N.call(E,I)})},M.walkComments=function(N){var E=this;return this.walk(function(I){if(I.type===Z.COMMENT)return N.call(E,I)})},M.walkIds=function(N){var E=this;return this.walk(function(I){if(I.type===Z.ID)return N.call(E,I)})},M.walkNesting=function(N){var E=this;return this.walk(function(I){if(I.type===Z.NESTING)return N.call(E,I)})},M.walkPseudos=function(N){var E=this;return this.walk(function(I){if(I.type===Z.PSEUDO)return N.call(E,I)})},M.walkTags=function(N){var E=this;return this.walk(function(I){if(I.type===Z.TAG)return N.call(E,I)})},M.walkUniversals=function(N){var E=this;return this.walk(function(I){if(I.type===Z.UNIVERSAL)return N.call(E,I)})},M.split=function(N){var E=this,I=[];return this.reduce(function(F,j,T){var D=N.call(E,j);return I.push(j),D?(F.push(I),I=[]):T===E.length-1&&F.push(I),F},[])},M.map=function(N){return this.nodes.map(N)},M.reduce=function(N,E){return this.nodes.reduce(N,E)},M.every=function(N){return this.nodes.every(N)},M.some=function(N){return this.nodes.some(N)},M.filter=function(N){return this.nodes.filter(N)},M.sort=function(N){return this.nodes.sort(N)},M.toString=function(){return this.map(String).join("")},H(L,[{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}}]),L}(K.default);J.default=O,Y.exports=J.default}),JY=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(a9()),Z=d0();function X(U){return U&&U.__esModule?U:{default:U}}function Q(U,H){for(var A=0;A<H.length;A++){var V=H[A];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(U,V.key,V)}}function W(U,H,A){return H&&Q(U.prototype,H),A&&Q(U,A),U}function w(U,H){U.prototype=Object.create(H.prototype),U.prototype.constructor=U,$(U,H)}function $(U,H){return $=Object.setPrototypeOf||function(A,V){return A.__proto__=V,A},$(U,H)}var z=function(U){w(H,U);function H(V){var O;return O=U.call(this,V)||this,O.type=Z.ROOT,O}var A=H.prototype;return A.toString=function(){var V=this.reduce(function(O,B){return O.push(String(B)),O},[]).join(",");return this.trailingComma?V+",":V},A.error=function(V,O){return this._error?this._error(V,O):Error(V)},W(H,[{key:"errorGenerator",set:function(V){this._error=V}}]),H}(K.default);J.default=z,Y.exports=J.default}),YY=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(a9()),Z=d0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,z){$.prototype=Object.create(z.prototype),$.prototype.constructor=$,W($,z)}function W($,z){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,z)}var w=function($){Q(z,$);function z(U){var H;return H=$.call(this,U)||this,H.type=Z.SELECTOR,H}return z}(K.default);J.default=w,Y.exports=J.default}),t9=t((J,Y)=>{var K={},Z=K.hasOwnProperty,X=function(z,U){if(!z)return U;var H={};for(var A in U)H[A]=Z.call(z,A)?z[A]:U[A];return H},Q=/[ -,\.\/:-@\[-\^`\{-~]/,W=/[ -,\.\/:-@\[\]\^`\{-~]/,w=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,$=function z(U,H){H=X(H,z.options),H.quotes!="single"&&H.quotes!="double"&&(H.quotes="single");for(var A=H.quotes=="double"?'"':"'",V=H.isIdentifier,O=U.charAt(0),B="",L=0,M=U.length;L<M;){var N=U.charAt(L++),E=N.charCodeAt(),I=void 0;if(E<32||E>126){if(E>=55296&&E<=56319&&L<M){var F=U.charCodeAt(L++);(F&64512)==56320?E=((E&1023)<<10)+(F&1023)+65536:L--}I="\\"+E.toString(16).toUpperCase()+" "}else H.escapeEverything?Q.test(N)?I="\\"+N:I="\\"+E.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(N)?I="\\"+E.toString(16).toUpperCase()+" ":N=="\\"||!V&&(N=='"'&&A==N||N=="'"&&A==N)||V&&W.test(N)?I="\\"+N:I=N;B+=I}return V&&(/^-[-\d]/.test(B)?B="\\-"+B.slice(1):/\d/.test(O)&&(B="\\3"+O+" "+B.slice(1))),B=B.replace(w,function(j,T,D){return T&&T.length%2?j:(T||"")+D}),!V&&H.wrap?A+B+A:B};$.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},$.version="3.0.0",Y.exports=$}),KY=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=W(t9()),Z=K6(),X=W(r1()),Q=d0();function W(A){return A&&A.__esModule?A:{default:A}}function w(A,V){for(var O=0;O<V.length;O++){var B=V[O];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(A,B.key,B)}}function $(A,V,O){return V&&w(A.prototype,V),O&&w(A,O),A}function z(A,V){A.prototype=Object.create(V.prototype),A.prototype.constructor=A,U(A,V)}function U(A,V){return U=Object.setPrototypeOf||function(O,B){return O.__proto__=B,O},U(A,V)}var H=function(A){z(V,A);function V(B){var L;return L=A.call(this,B)||this,L.type=Q.CLASS,L._constructed=!0,L}var O=V.prototype;return O.valueToString=function(){return"."+A.prototype.valueToString.call(this)},$(V,[{key:"value",get:function(){return this._value},set:function(B){if(this._constructed){var L=(0,K.default)(B,{isIdentifier:!0});L!==B?((0,Z.ensureObject)(this,"raws"),this.raws.value=L):this.raws&&delete this.raws.value}this._value=B}}]),V}(X.default);J.default=H,Y.exports=J.default}),ZY=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(r1()),Z=d0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,z){$.prototype=Object.create(z.prototype),$.prototype.constructor=$,W($,z)}function W($,z){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,z)}var w=function($){Q(z,$);function z(U){var H;return H=$.call(this,U)||this,H.type=Z.COMMENT,H}return z}(K.default);J.default=w,Y.exports=J.default}),XY=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(r1()),Z=d0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,z){$.prototype=Object.create(z.prototype),$.prototype.constructor=$,W($,z)}function W($,z){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,z)}var w=function($){Q(z,$);function z(H){var A;return A=$.call(this,H)||this,A.type=Z.ID,A}var U=z.prototype;return U.valueToString=function(){return"#"+$.prototype.valueToString.call(this)},z}(K.default);J.default=w,Y.exports=J.default}),e9=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=Q(t9()),Z=K6(),X=Q(r1());function Q(H){return H&&H.__esModule?H:{default:H}}function W(H,A){for(var V=0;V<A.length;V++){var O=A[V];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(H,O.key,O)}}function w(H,A,V){return A&&W(H.prototype,A),V&&W(H,V),H}function $(H,A){H.prototype=Object.create(A.prototype),H.prototype.constructor=H,z(H,A)}function z(H,A){return z=Object.setPrototypeOf||function(V,O){return V.__proto__=O,V},z(H,A)}var U=function(H){$(A,H);function A(){return H.apply(this,arguments)||this}var V=A.prototype;return V.qualifiedName=function(O){return this.namespace?this.namespaceString+"|"+O:O},V.valueToString=function(){return this.qualifiedName(H.prototype.valueToString.call(this))},w(A,[{key:"namespace",get:function(){return this._namespace},set:function(O){if(O===!0||O==="*"||O==="&"){this._namespace=O,this.raws&&delete this.raws.namespace;return}var B=(0,K.default)(O,{isIdentifier:!0});this._namespace=O,B!==O?((0,Z.ensureObject)(this,"raws"),this.raws.namespace=B):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(O){this.namespace=O}},{key:"namespaceString",get:function(){if(this.namespace){var O=this.stringifyProperty("namespace");return O===!0?"":O}else return""}}]),A}(X.default);J.default=U,Y.exports=J.default}),QY=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(e9()),Z=d0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,z){$.prototype=Object.create(z.prototype),$.prototype.constructor=$,W($,z)}function W($,z){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,z)}var w=function($){Q(z,$);function z(U){var H;return H=$.call(this,U)||this,H.type=Z.TAG,H}return z}(K.default);J.default=w,Y.exports=J.default}),WY=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(r1()),Z=d0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,z){$.prototype=Object.create(z.prototype),$.prototype.constructor=$,W($,z)}function W($,z){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,z)}var w=function($){Q(z,$);function z(U){var H;return H=$.call(this,U)||this,H.type=Z.STRING,H}return z}(K.default);J.default=w,Y.exports=J.default}),$Y=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(a9()),Z=d0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,z){$.prototype=Object.create(z.prototype),$.prototype.constructor=$,W($,z)}function W($,z){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,z)}var w=function($){Q(z,$);function z(H){var A;return A=$.call(this,H)||this,A.type=Z.PSEUDO,A}var U=z.prototype;return U.toString=function(){var H=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),H,this.rawSpaceAfter].join("")},z}(K.default);J.default=w,Y.exports=J.default}),$U=t((J,Y)=>{Y.exports=function(K,Z){return function(...X){return console.warn(Z),K(...X)}}}),wY=t((J)=>{J.__esModule=!0,J.unescapeValue=L,J.default=void 0;var Y=W(t9()),K=W(eJ()),Z=W(e9()),X=d0(),Q;function W(F){return F&&F.__esModule?F:{default:F}}function w(F,j){for(var T=0;T<j.length;T++){var D=j[T];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(F,D.key,D)}}function $(F,j,T){return j&&w(F.prototype,j),T&&w(F,T),F}function z(F,j){F.prototype=Object.create(j.prototype),F.prototype.constructor=F,U(F,j)}function U(F,j){return U=Object.setPrototypeOf||function(T,D){return T.__proto__=D,T},U(F,j)}var H=$U(),A=/^('|")([^]*)\1$/,V=H(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),O=H(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),B=H(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function L(F){var j=!1,T=null,D=F,C=D.match(A);return C&&(T=C[1],D=C[2]),D=(0,K.default)(D),D!==F&&(j=!0),{deprecatedUsage:j,unescaped:D,quoteMark:T}}function M(F){if(F.quoteMark!==void 0||F.value===void 0)return F;B();var j=L(F.value),T=j.quoteMark,D=j.unescaped;return F.raws||(F.raws={}),F.raws.value===void 0&&(F.raws.value=F.value),F.value=D,F.quoteMark=T,F}var N=function(F){z(j,F);function j(D){var C;return D===void 0&&(D={}),C=F.call(this,M(D))||this,C.type=X.ATTRIBUTE,C.raws=C.raws||{},Object.defineProperty(C.raws,"unquoted",{get:H(function(){return C.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:H(function(){return C.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),C._constructed=!0,C}var T=j.prototype;return T.getQuotedValue=function(D){D===void 0&&(D={});var C=this._determineQuoteMark(D),h=E[C],d=(0,Y.default)(this._value,h);return d},T._determineQuoteMark=function(D){return D.smart?this.smartQuoteMark(D):this.preferredQuoteMark(D)},T.setValue=function(D,C){C===void 0&&(C={}),this._value=D,this._quoteMark=this._determineQuoteMark(C),this._syncRawValue()},T.smartQuoteMark=function(D){var C=this.value,h=C.replace(/[^']/g,"").length,d=C.replace(/[^"]/g,"").length;if(h+d===0){var r=(0,Y.default)(C,{isIdentifier:!0});if(r===C)return j.NO_QUOTE;var l=this.preferredQuoteMark(D);if(l===j.NO_QUOTE){var P=this.quoteMark||D.quoteMark||j.DOUBLE_QUOTE,k=E[P],R=(0,Y.default)(C,k);if(R.length<r.length)return P}return l}else return d===h?this.preferredQuoteMark(D):d<h?j.DOUBLE_QUOTE:j.SINGLE_QUOTE},T.preferredQuoteMark=function(D){var C=D.preferCurrentQuoteMark?this.quoteMark:D.quoteMark;return C===void 0&&(C=D.preferCurrentQuoteMark?D.quoteMark:this.quoteMark),C===void 0&&(C=j.DOUBLE_QUOTE),C},T._syncRawValue=function(){var D=(0,Y.default)(this._value,E[this.quoteMark]);D===this._value?this.raws&&delete this.raws.value:this.raws.value=D},T._handleEscapes=function(D,C){if(this._constructed){var h=(0,Y.default)(C,{isIdentifier:!0});h!==C?this.raws[D]=h:delete this.raws[D]}},T._spacesFor=function(D){var C={before:"",after:""},h=this.spaces[D]||{},d=this.raws.spaces&&this.raws.spaces[D]||{};return Object.assign(C,h,d)},T._stringFor=function(D,C,h){C===void 0&&(C=D),h===void 0&&(h=I);var d=this._spacesFor(C);return h(this.stringifyProperty(D),d)},T.offsetOf=function(D){var C=1,h=this._spacesFor("attribute");if(C+=h.before.length,D==="namespace"||D==="ns")return this.namespace?C:-1;if(D==="attributeNS"||(C+=this.namespaceString.length,this.namespace&&(C+=1),D==="attribute"))return C;C+=this.stringifyProperty("attribute").length,C+=h.after.length;var d=this._spacesFor("operator");C+=d.before.length;var r=this.stringifyProperty("operator");if(D==="operator")return r?C:-1;C+=r.length,C+=d.after.length;var l=this._spacesFor("value");C+=l.before.length;var P=this.stringifyProperty("value");if(D==="value")return P?C:-1;C+=P.length,C+=l.after.length;var k=this._spacesFor("insensitive");return C+=k.before.length,D==="insensitive"&&this.insensitive?C:-1},T.toString=function(){var D=this,C=[this.rawSpaceBefore,"["];return C.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(C.push(this._stringFor("operator")),C.push(this._stringFor("value")),C.push(this._stringFor("insensitiveFlag","insensitive",function(h,d){return h.length>0&&!D.quoted&&d.before.length===0&&!(D.spaces.value&&D.spaces.value.after)&&(d.before=" "),I(h,d)}))),C.push("]"),C.push(this.rawSpaceAfter),C.join("")},$(j,[{key:"quoted",get:function(){var D=this.quoteMark;return D==="'"||D==='"'},set:function(D){O()}},{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 C=L(D),h=C.deprecatedUsage,d=C.unescaped,r=C.quoteMark;if(h&&V(),d===this._value&&r===this._quoteMark)return;this._value=d,this._quoteMark=r,this._syncRawValue()}else this._value=D}},{key:"attribute",get:function(){return this._attribute},set:function(D){this._handleEscapes("attribute",D),this._attribute=D}}]),j}(Z.default);J.default=N,N.NO_QUOTE=null,N.SINGLE_QUOTE="'",N.DOUBLE_QUOTE='"';var E=(Q={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},Q[null]={isIdentifier:!0},Q);function I(F,j){return""+j.before+F+j.after}}),zY=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(e9()),Z=d0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,z){$.prototype=Object.create(z.prototype),$.prototype.constructor=$,W($,z)}function W($,z){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,z)}var w=function($){Q(z,$);function z(U){var H;return H=$.call(this,U)||this,H.type=Z.UNIVERSAL,H.value="*",H}return z}(K.default);J.default=w,Y.exports=J.default}),UY=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(r1()),Z=d0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,z){$.prototype=Object.create(z.prototype),$.prototype.constructor=$,W($,z)}function W($,z){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,z)}var w=function($){Q(z,$);function z(U){var H;return H=$.call(this,U)||this,H.type=Z.COMBINATOR,H}return z}(K.default);J.default=w,Y.exports=J.default}),HY=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(r1()),Z=d0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,z){$.prototype=Object.create(z.prototype),$.prototype.constructor=$,W($,z)}function W($,z){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,z)}var w=function($){Q(z,$);function z(U){var H;return H=$.call(this,U)||this,H.type=Z.NESTING,H.value="&",H}return z}(K.default);J.default=w,Y.exports=J.default}),wU=t((J,Y)=>{J.__esModule=!0,J.default=K;function K(Z){return Z.sort(function(X,Q){return X-Q})}Y.exports=J.default}),AY=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 Y=38;J.ampersand=Y;var K=42;J.asterisk=K;var Z=64;J.at=Z;var X=44;J.comma=X;var Q=58;J.colon=Q;var W=59;J.semicolon=W;var w=40;J.openParenthesis=w;var $=41;J.closeParenthesis=$;var z=91;J.openSquare=z;var U=93;J.closeSquare=U;var H=36;J.dollar=H;var A=126;J.tilde=A;var V=94;J.caret=V;var O=43;J.plus=O;var B=61;J.equals=B;var L=124;J.pipe=L;var M=62;J.greaterThan=M;var N=32;J.space=N;var E=39;J.singleQuote=E;var I=34;J.doubleQuote=I;var F=47;J.slash=F;var j=33;J.bang=j;var T=92;J.backslash=T;var D=13;J.cr=D;var C=12;J.feed=C;var h=10;J.newline=h;var d=9;J.tab=d;var r=E;J.str=r;var l=-1;J.comment=l;var P=-2;J.word=P;var k=-3;J.combinator=k}),zU=t((J)=>{J.__esModule=!0,J.default=O,J.FIELDS=void 0;var Y=Q(AY()),K,Z;function X(){if(typeof WeakMap!="function")return null;var B=new WeakMap;return X=function(){return B},B}function Q(B){if(B&&B.__esModule)return B;if(B===null||typeof B!="object"&&typeof B!="function")return{default:B};var L=X();if(L&&L.has(B))return L.get(B);var M={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in B)if(Object.prototype.hasOwnProperty.call(B,E)){var I=N?Object.getOwnPropertyDescriptor(B,E):null;I&&(I.get||I.set)?Object.defineProperty(M,E,I):M[E]=B[E]}return M.default=B,L&&L.set(B,M),M}var W=(K={},K[Y.tab]=!0,K[Y.newline]=!0,K[Y.cr]=!0,K[Y.feed]=!0,K),w=(Z={},Z[Y.space]=!0,Z[Y.tab]=!0,Z[Y.newline]=!0,Z[Y.cr]=!0,Z[Y.feed]=!0,Z[Y.ampersand]=!0,Z[Y.asterisk]=!0,Z[Y.bang]=!0,Z[Y.comma]=!0,Z[Y.colon]=!0,Z[Y.semicolon]=!0,Z[Y.openParenthesis]=!0,Z[Y.closeParenthesis]=!0,Z[Y.openSquare]=!0,Z[Y.closeSquare]=!0,Z[Y.singleQuote]=!0,Z[Y.doubleQuote]=!0,Z[Y.plus]=!0,Z[Y.pipe]=!0,Z[Y.tilde]=!0,Z[Y.greaterThan]=!0,Z[Y.equals]=!0,Z[Y.dollar]=!0,Z[Y.caret]=!0,Z[Y.slash]=!0,Z),$={},z="0123456789abcdefABCDEF";for(U=0;U<z.length;U++)$[z.charCodeAt(U)]=!0;var U;function H(B,L){var M=L,N;do{if(N=B.charCodeAt(M),w[N])return M-1;N===Y.backslash?M=A(B,M)+1:M++}while(M<B.length);return M-1}function A(B,L){var M=L,N=B.charCodeAt(M+1);if(!W[N])if($[N]){var E=0;do M++,E++,N=B.charCodeAt(M+1);while($[N]&&E<6);E<6&&N===Y.space&&M++}else M++;return M}var V={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};J.FIELDS=V;function O(B){var L=[],M=B.css.valueOf(),N=M,E=N.length,I=-1,F=1,j=0,T=0,D,C,h,d,r,l,P,k,R,c,u,a,n;function m(x,S){if(B.safe)M+=S,R=M.length-1;else throw B.error("Unclosed "+x,F,j-I,j)}for(;j<E;){switch(D=M.charCodeAt(j),D===Y.newline&&(I=j,F+=1),D){case Y.space:case Y.tab:case Y.newline:case Y.cr:case Y.feed:R=j;do R+=1,D=M.charCodeAt(R),D===Y.newline&&(I=R,F+=1);while(D===Y.space||D===Y.newline||D===Y.tab||D===Y.cr||D===Y.feed);n=Y.space,d=F,h=R-I-1,T=R;break;case Y.plus:case Y.greaterThan:case Y.tilde:case Y.pipe:R=j;do R+=1,D=M.charCodeAt(R);while(D===Y.plus||D===Y.greaterThan||D===Y.tilde||D===Y.pipe);n=Y.combinator,d=F,h=j-I,T=R;break;case Y.asterisk:case Y.ampersand:case Y.bang:case Y.comma:case Y.equals:case Y.dollar:case Y.caret:case Y.openSquare:case Y.closeSquare:case Y.colon:case Y.semicolon:case Y.openParenthesis:case Y.closeParenthesis:R=j,n=D,d=F,h=j-I,T=R+1;break;case Y.singleQuote:case Y.doubleQuote:a=D===Y.singleQuote?"'":'"',R=j;do for(r=!1,R=M.indexOf(a,R+1),R===-1&&m("quote",a),l=R;M.charCodeAt(l-1)===Y.backslash;)l-=1,r=!r;while(r);n=Y.str,d=F,h=j-I,T=R+1;break;default:D===Y.slash&&M.charCodeAt(j+1)===Y.asterisk?(R=M.indexOf("*/",j+2)+1,R===0&&m("comment","*/"),C=M.slice(j,R+1),k=C.split(`
|
|
63
|
-
`),P=k.length-1,P>0?(c=F+P,u=R-k[P].length):(c=F,u=I),n=Y.comment,F=c,d=c,h=R-u):D===Y.slash?(R=j,n=D,d=F,h=j-I,T=R+1):(R=H(M,j),n=Y.word,d=F,h=R-I),T=R+1;break}L.push([n,F,j-I,d,h,j,T]),u&&(I=u,u=null),j=T}return L}}),UU=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=T(JY()),Z=T(YY()),X=T(KY()),Q=T(ZY()),W=T(XY()),w=T(QY()),$=T(WY()),z=T($Y()),U=j(wY()),H=T(zY()),A=T(UY()),V=T(HY()),O=T(wU()),B=j(zU()),L=j(AY()),M=j(d0()),N=K6(),E,I;function F(){if(typeof WeakMap!="function")return null;var m=new WeakMap;return F=function(){return m},m}function j(m){if(m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var x=F();if(x&&x.has(m))return x.get(m);var S={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in m)if(Object.prototype.hasOwnProperty.call(m,p)){var g=y?Object.getOwnPropertyDescriptor(m,p):null;g&&(g.get||g.set)?Object.defineProperty(S,p,g):S[p]=m[p]}return S.default=m,x&&x.set(m,S),S}function T(m){return m&&m.__esModule?m:{default:m}}function D(m,x){for(var S=0;S<x.length;S++){var y=x[S];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}function C(m,x,S){return x&&D(m.prototype,x),S&&D(m,S),m}var h=(E={},E[L.space]=!0,E[L.cr]=!0,E[L.feed]=!0,E[L.newline]=!0,E[L.tab]=!0,E),d=Object.assign({},h,(I={},I[L.comment]=!0,I));function r(m){return{line:m[B.FIELDS.START_LINE],column:m[B.FIELDS.START_COL]}}function l(m){return{line:m[B.FIELDS.END_LINE],column:m[B.FIELDS.END_COL]}}function P(m,x,S,y){return{start:{line:m,column:x},end:{line:S,column:y}}}function k(m){return P(m[B.FIELDS.START_LINE],m[B.FIELDS.START_COL],m[B.FIELDS.END_LINE],m[B.FIELDS.END_COL])}function R(m,x){if(m)return P(m[B.FIELDS.START_LINE],m[B.FIELDS.START_COL],x[B.FIELDS.END_LINE],x[B.FIELDS.END_COL])}function c(m,x){var S=m[x];if(typeof S=="string")return S.indexOf("\\")!==-1&&((0,N.ensureObject)(m,"raws"),m[x]=(0,N.unesc)(S),m.raws[x]===void 0&&(m.raws[x]=S)),m}function u(m,x){for(var S=-1,y=[];(S=m.indexOf(x,S+1))!==-1;)y.push(S);return y}function a(){var m=Array.prototype.concat.apply([],arguments);return m.filter(function(x,S){return S===m.indexOf(x)})}var n=function(){function m(S,y){y===void 0&&(y={}),this.rule=S,this.options=Object.assign({lossy:!1,safe:!1},y),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,B.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var p=R(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new K.default({source:p}),this.root.errorGenerator=this._errorGenerator();var g=new Z.default({source:{start:{line:1,column:1}}});this.root.append(g),this.current=g,this.loop()}var x=m.prototype;return x._errorGenerator=function(){var S=this;return function(y,p){return typeof S.rule=="string"?Error(y):S.rule.error(y,p)}},x.attribute=function(){var S=[],y=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[B.FIELDS.TYPE]!==L.closeSquare;)S.push(this.currToken),this.position++;if(this.currToken[B.FIELDS.TYPE]!==L.closeSquare)return this.expected("closing square bracket",this.currToken[B.FIELDS.START_POS]);var p=S.length,g={source:P(y[1],y[2],this.currToken[3],this.currToken[4]),sourceIndex:y[B.FIELDS.START_POS]};if(p===1&&!~[L.word].indexOf(S[0][B.FIELDS.TYPE]))return this.expected("attribute",S[0][B.FIELDS.START_POS]);for(var e=0,Q0="",Z0="",Y0=null,V0=!1;e<p;){var E0=S[e],K0=this.content(E0),G0=S[e+1];switch(E0[B.FIELDS.TYPE]){case L.space:if(V0=!0,this.options.lossy)break;if(Y0){(0,N.ensureObject)(g,"spaces",Y0);var D0=g.spaces[Y0].after||"";g.spaces[Y0].after=D0+K0;var v0=(0,N.getProp)(g,"raws","spaces",Y0,"after")||null;v0&&(g.raws.spaces[Y0].after=v0+K0)}else Q0=Q0+K0,Z0=Z0+K0;break;case L.asterisk:if(G0[B.FIELDS.TYPE]===L.equals)g.operator=K0,Y0="operator";else if((!g.namespace||Y0==="namespace"&&!V0)&&G0){Q0&&((0,N.ensureObject)(g,"spaces","attribute"),g.spaces.attribute.before=Q0,Q0=""),Z0&&((0,N.ensureObject)(g,"raws","spaces","attribute"),g.raws.spaces.attribute.before=Q0,Z0=""),g.namespace=(g.namespace||"")+K0;var k0=(0,N.getProp)(g,"raws","namespace")||null;k0&&(g.raws.namespace+=K0),Y0="namespace"}V0=!1;break;case L.dollar:if(Y0==="value"){var T0=(0,N.getProp)(g,"raws","value");g.value+="$",T0&&(g.raws.value=T0+"$");break}case L.caret:G0[B.FIELDS.TYPE]===L.equals&&(g.operator=K0,Y0="operator"),V0=!1;break;case L.combinator:if(K0==="~"&&G0[B.FIELDS.TYPE]===L.equals&&(g.operator=K0,Y0="operator"),K0!=="|"){V0=!1;break}G0[B.FIELDS.TYPE]===L.equals?(g.operator=K0,Y0="operator"):!g.namespace&&!g.attribute&&(g.namespace=!0),V0=!1;break;case L.word:if(G0&&this.content(G0)==="|"&&S[e+2]&&S[e+2][B.FIELDS.TYPE]!==L.equals&&!g.operator&&!g.namespace)g.namespace=K0,Y0="namespace";else if(!g.attribute||Y0==="attribute"&&!V0){Q0&&((0,N.ensureObject)(g,"spaces","attribute"),g.spaces.attribute.before=Q0,Q0=""),Z0&&((0,N.ensureObject)(g,"raws","spaces","attribute"),g.raws.spaces.attribute.before=Z0,Z0=""),g.attribute=(g.attribute||"")+K0;var u0=(0,N.getProp)(g,"raws","attribute")||null;u0&&(g.raws.attribute+=K0),Y0="attribute"}else if(!g.value&&g.value!==""||Y0==="value"&&!V0){var n0=(0,N.unesc)(K0),o0=(0,N.getProp)(g,"raws","value")||"",Q1=g.value||"";g.value=Q1+n0,g.quoteMark=null,(n0!==K0||o0)&&((0,N.ensureObject)(g,"raws"),g.raws.value=(o0||Q1)+K0),Y0="value"}else{var W1=K0==="i"||K0==="I";(g.value||g.value==="")&&(g.quoteMark||V0)?(g.insensitive=W1,(!W1||K0==="I")&&((0,N.ensureObject)(g,"raws"),g.raws.insensitiveFlag=K0),Y0="insensitive",Q0&&((0,N.ensureObject)(g,"spaces","insensitive"),g.spaces.insensitive.before=Q0,Q0=""),Z0&&((0,N.ensureObject)(g,"raws","spaces","insensitive"),g.raws.spaces.insensitive.before=Z0,Z0="")):(g.value||g.value==="")&&(Y0="value",g.value+=K0,g.raws.value&&(g.raws.value+=K0))}V0=!1;break;case L.str:if(!g.attribute||!g.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:E0[B.FIELDS.START_POS]});var e0=(0,U.unescapeValue)(K0),U5=e0.unescaped,g1=e0.quoteMark;g.value=U5,g.quoteMark=g1,Y0="value",(0,N.ensureObject)(g,"raws"),g.raws.value=K0,V0=!1;break;case L.equals:if(!g.attribute)return this.expected("attribute",E0[B.FIELDS.START_POS],K0);if(g.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:E0[B.FIELDS.START_POS]});g.operator=g.operator?g.operator+K0:K0,Y0="operator",V0=!1;break;case L.comment:if(Y0)if(V0||G0&&G0[B.FIELDS.TYPE]===L.space||Y0==="insensitive"){var t1=(0,N.getProp)(g,"spaces",Y0,"after")||"",H5=(0,N.getProp)(g,"raws","spaces",Y0,"after")||t1;(0,N.ensureObject)(g,"raws","spaces",Y0),g.raws.spaces[Y0].after=H5+K0}else{var U8=g[Y0]||"",A5=(0,N.getProp)(g,"raws",Y0)||U8;(0,N.ensureObject)(g,"raws"),g.raws[Y0]=A5+K0}else Z0=Z0+K0;break;default:return this.error('Unexpected "'+K0+'" found.',{index:E0[B.FIELDS.START_POS]})}e++}c(g,"attribute"),c(g,"namespace"),this.newNode(new U.default(g)),this.position++},x.parseWhitespaceEquivalentTokens=function(S){S<0&&(S=this.tokens.length);var y=this.position,p=[],g="",e=void 0;do if(h[this.currToken[B.FIELDS.TYPE]])this.options.lossy||(g+=this.content());else if(this.currToken[B.FIELDS.TYPE]===L.comment){var Q0={};g&&(Q0.before=g,g=""),e=new Q.default({value:this.content(),source:k(this.currToken),sourceIndex:this.currToken[B.FIELDS.START_POS],spaces:Q0}),p.push(e)}while(++this.position<S);if(g){if(e)e.spaces.after=g;else if(!this.options.lossy){var Z0=this.tokens[y],Y0=this.tokens[this.position-1];p.push(new $.default({value:"",source:P(Z0[B.FIELDS.START_LINE],Z0[B.FIELDS.START_COL],Y0[B.FIELDS.END_LINE],Y0[B.FIELDS.END_COL]),sourceIndex:Z0[B.FIELDS.START_POS],spaces:{before:g,after:""}}))}}return p},x.convertWhitespaceNodesToSpace=function(S,y){var p=this;y===void 0&&(y=!1);var g="",e="";S.forEach(function(Z0){var Y0=p.lossySpace(Z0.spaces.before,y),V0=p.lossySpace(Z0.rawSpaceBefore,y);g+=Y0+p.lossySpace(Z0.spaces.after,y&&Y0.length===0),e+=Y0+Z0.value+p.lossySpace(Z0.rawSpaceAfter,y&&V0.length===0)}),e===g&&(e=void 0);var Q0={space:g,rawSpace:e};return Q0},x.isNamedCombinator=function(S){return S===void 0&&(S=this.position),this.tokens[S+0]&&this.tokens[S+0][B.FIELDS.TYPE]===L.slash&&this.tokens[S+1]&&this.tokens[S+1][B.FIELDS.TYPE]===L.word&&this.tokens[S+2]&&this.tokens[S+2][B.FIELDS.TYPE]===L.slash},x.namedCombinator=function(){if(this.isNamedCombinator()){var S=this.content(this.tokens[this.position+1]),y=(0,N.unesc)(S).toLowerCase(),p={};y!==S&&(p.value="/"+S+"/");var g=new A.default({value:"/"+y+"/",source:P(this.currToken[B.FIELDS.START_LINE],this.currToken[B.FIELDS.START_COL],this.tokens[this.position+2][B.FIELDS.END_LINE],this.tokens[this.position+2][B.FIELDS.END_COL]),sourceIndex:this.currToken[B.FIELDS.START_POS],raws:p});return this.position=this.position+3,g}else this.unexpected()},x.combinator=function(){var S=this;if(this.content()==="|")return this.namespace();var y=this.locateNextMeaningfulToken(this.position);if(y<0||this.tokens[y][B.FIELDS.TYPE]===L.comma){var p=this.parseWhitespaceEquivalentTokens(y);if(p.length>0){var g=this.current.last;if(g){var e=this.convertWhitespaceNodesToSpace(p),Q0=e.space,Z0=e.rawSpace;Z0!==void 0&&(g.rawSpaceAfter+=Z0),g.spaces.after+=Q0}else p.forEach(function(o0){return S.newNode(o0)})}return}var Y0=this.currToken,V0=void 0;y>this.position&&(V0=this.parseWhitespaceEquivalentTokens(y));var E0;if(this.isNamedCombinator()?E0=this.namedCombinator():this.currToken[B.FIELDS.TYPE]===L.combinator?(E0=new A.default({value:this.content(),source:k(this.currToken),sourceIndex:this.currToken[B.FIELDS.START_POS]}),this.position++):h[this.currToken[B.FIELDS.TYPE]]||V0||this.unexpected(),E0){if(V0){var K0=this.convertWhitespaceNodesToSpace(V0),G0=K0.space,D0=K0.rawSpace;E0.spaces.before=G0,E0.rawSpaceBefore=D0}}else{var v0=this.convertWhitespaceNodesToSpace(V0,!0),k0=v0.space,T0=v0.rawSpace;T0||(T0=k0);var u0={},n0={spaces:{}};k0.endsWith(" ")&&T0.endsWith(" ")?(u0.before=k0.slice(0,k0.length-1),n0.spaces.before=T0.slice(0,T0.length-1)):k0.startsWith(" ")&&T0.startsWith(" ")?(u0.after=k0.slice(1),n0.spaces.after=T0.slice(1)):n0.value=T0,E0=new A.default({value:" ",source:R(Y0,this.tokens[this.position-1]),sourceIndex:Y0[B.FIELDS.START_POS],spaces:u0,raws:n0})}return this.currToken&&this.currToken[B.FIELDS.TYPE]===L.space&&(E0.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(E0)},x.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var S=new Z.default({source:{start:r(this.tokens[this.position+1])}});this.current.parent.append(S),this.current=S,this.position++},x.comment=function(){var S=this.currToken;this.newNode(new Q.default({value:this.content(),source:k(S),sourceIndex:S[B.FIELDS.START_POS]})),this.position++},x.error=function(S,y){throw this.root.error(S,y)},x.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[B.FIELDS.START_POS]})},x.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[B.FIELDS.START_POS])},x.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[B.FIELDS.START_POS])},x.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[B.FIELDS.START_POS])},x.namespace=function(){var S=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[B.FIELDS.TYPE]===L.word)return this.position++,this.word(S);if(this.nextToken[B.FIELDS.TYPE]===L.asterisk)return this.position++,this.universal(S)},x.nesting=function(){if(this.nextToken){var S=this.content(this.nextToken);if(S==="|"){this.position++;return}}var y=this.currToken;this.newNode(new V.default({value:this.content(),source:k(y),sourceIndex:y[B.FIELDS.START_POS]})),this.position++},x.parentheses=function(){var S=this.current.last,y=1;if(this.position++,S&&S.type===M.PSEUDO){var p=new Z.default({source:{start:r(this.tokens[this.position-1])}}),g=this.current;for(S.append(p),this.current=p;this.position<this.tokens.length&&y;)this.currToken[B.FIELDS.TYPE]===L.openParenthesis&&y++,this.currToken[B.FIELDS.TYPE]===L.closeParenthesis&&y--,y?this.parse():(this.current.source.end=l(this.currToken),this.current.parent.source.end=l(this.currToken),this.position++);this.current=g}else{for(var e=this.currToken,Q0="(",Z0;this.position<this.tokens.length&&y;)this.currToken[B.FIELDS.TYPE]===L.openParenthesis&&y++,this.currToken[B.FIELDS.TYPE]===L.closeParenthesis&&y--,Z0=this.currToken,Q0+=this.parseParenthesisToken(this.currToken),this.position++;S?S.appendToPropertyAndEscape("value",Q0,Q0):this.newNode(new $.default({value:Q0,source:P(e[B.FIELDS.START_LINE],e[B.FIELDS.START_COL],Z0[B.FIELDS.END_LINE],Z0[B.FIELDS.END_COL]),sourceIndex:e[B.FIELDS.START_POS]}))}if(y)return this.expected("closing parenthesis",this.currToken[B.FIELDS.START_POS])},x.pseudo=function(){for(var S=this,y="",p=this.currToken;this.currToken&&this.currToken[B.FIELDS.TYPE]===L.colon;)y+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[B.FIELDS.TYPE]===L.word)this.splitWord(!1,function(g,e){y+=g,S.newNode(new z.default({value:y,source:R(p,S.currToken),sourceIndex:p[B.FIELDS.START_POS]})),e>1&&S.nextToken&&S.nextToken[B.FIELDS.TYPE]===L.openParenthesis&&S.error("Misplaced parenthesis.",{index:S.nextToken[B.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[B.FIELDS.START_POS])},x.space=function(){var S=this.content();this.position===0||this.prevToken[B.FIELDS.TYPE]===L.comma||this.prevToken[B.FIELDS.TYPE]===L.openParenthesis||this.current.nodes.every(function(y){return y.type==="comment"})?(this.spaces=this.optionalSpace(S),this.position++):this.position===this.tokens.length-1||this.nextToken[B.FIELDS.TYPE]===L.comma||this.nextToken[B.FIELDS.TYPE]===L.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(S),this.position++):this.combinator()},x.string=function(){var S=this.currToken;this.newNode(new $.default({value:this.content(),source:k(S),sourceIndex:S[B.FIELDS.START_POS]})),this.position++},x.universal=function(S){var y=this.nextToken;if(y&&this.content(y)==="|")return this.position++,this.namespace();var p=this.currToken;this.newNode(new H.default({value:this.content(),source:k(p),sourceIndex:p[B.FIELDS.START_POS]}),S),this.position++},x.splitWord=function(S,y){for(var p=this,g=this.nextToken,e=this.content();g&&~[L.dollar,L.caret,L.equals,L.word].indexOf(g[B.FIELDS.TYPE]);){this.position++;var Q0=this.content();if(e+=Q0,Q0.lastIndexOf("\\")===Q0.length-1){var Z0=this.nextToken;Z0&&Z0[B.FIELDS.TYPE]===L.space&&(e+=this.requiredSpace(this.content(Z0)),this.position++)}g=this.nextToken}var Y0=u(e,".").filter(function(G0){var D0=e[G0-1]==="\\",v0=/^\d+\.\d+%$/.test(e);return!D0&&!v0}),V0=u(e,"#").filter(function(G0){return e[G0-1]!=="\\"}),E0=u(e,"#{");E0.length&&(V0=V0.filter(function(G0){return!~E0.indexOf(G0)}));var K0=(0,O.default)(a([0].concat(Y0,V0)));K0.forEach(function(G0,D0){var v0=K0[D0+1]||e.length,k0=e.slice(G0,v0);if(D0===0&&y)return y.call(p,k0,K0.length);var T0,u0=p.currToken,n0=u0[B.FIELDS.START_POS]+K0[D0],o0=P(u0[1],u0[2]+G0,u0[3],u0[2]+(v0-1));if(~Y0.indexOf(G0)){var Q1={value:k0.slice(1),source:o0,sourceIndex:n0};T0=new X.default(c(Q1,"value"))}else if(~V0.indexOf(G0)){var W1={value:k0.slice(1),source:o0,sourceIndex:n0};T0=new W.default(c(W1,"value"))}else{var e0={value:k0,source:o0,sourceIndex:n0};c(e0,"value"),T0=new w.default(e0)}p.newNode(T0,S),S=null}),this.position++},x.word=function(S){var y=this.nextToken;return y&&this.content(y)==="|"?(this.position++,this.namespace()):this.splitWord(S)},x.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},x.parse=function(S){switch(this.currToken[B.FIELDS.TYPE]){case L.space:this.space();break;case L.comment:this.comment();break;case L.openParenthesis:this.parentheses();break;case L.closeParenthesis:S&&this.missingParenthesis();break;case L.openSquare:this.attribute();break;case L.dollar:case L.caret:case L.equals:case L.word:this.word();break;case L.colon:this.pseudo();break;case L.comma:this.comma();break;case L.asterisk:this.universal();break;case L.ampersand:this.nesting();break;case L.slash:case L.combinator:this.combinator();break;case L.str:this.string();break;case L.closeSquare:this.missingSquareBracket();case L.semicolon:this.missingBackslash();default:this.unexpected()}},x.expected=function(S,y,p){if(Array.isArray(S)){var g=S.pop();S=S.join(", ")+" or "+g}var e=/^[aeiou]/.test(S[0])?"an":"a";return p?this.error("Expected "+e+" "+S+', found "'+p+'" instead.',{index:y}):this.error("Expected "+e+" "+S+".",{index:y})},x.requiredSpace=function(S){return this.options.lossy?" ":S},x.optionalSpace=function(S){return this.options.lossy?"":S},x.lossySpace=function(S,y){return this.options.lossy?y?" ":"":S},x.parseParenthesisToken=function(S){var y=this.content(S);return S[B.FIELDS.TYPE]===L.space?this.requiredSpace(y):y},x.newNode=function(S,y){return y&&(/^ +$/.test(y)&&(this.options.lossy||(this.spaces=(this.spaces||"")+y),y=!0),S.namespace=y,c(S,"namespace")),this.spaces&&(S.spaces.before=this.spaces,this.spaces=""),this.current.append(S)},x.content=function(S){return S===void 0&&(S=this.currToken),this.css.slice(S[B.FIELDS.START_POS],S[B.FIELDS.END_POS])},x.locateNextMeaningfulToken=function(S){S===void 0&&(S=this.position+1);for(var y=S;y<this.tokens.length;)if(d[this.tokens[y][B.FIELDS.TYPE]]){y++;continue}else return y;return-1},C(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=n,Y.exports=J.default}),HU=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=Z(UU());function Z(Q){return Q&&Q.__esModule?Q:{default:Q}}var X=function(){function Q(w,$){this.func=w||function(){},this.funcRes=null,this.options=$}var W=Q.prototype;return W._shouldUpdateSelector=function(w,$){$===void 0&&($={});var z=Object.assign({},this.options,$);return z.updateSelector===!1?!1:typeof w!="string"},W._isLossy=function(w){w===void 0&&(w={});var $=Object.assign({},this.options,w);return $.lossless===!1},W._root=function(w,$){$===void 0&&($={});var z=new K.default(w,this._parseOptions($));return z.root},W._parseOptions=function(w){return{lossy:this._isLossy(w)}},W._run=function(w,$){var z=this;return $===void 0&&($={}),new Promise(function(U,H){try{var A=z._root(w,$);Promise.resolve(z.func(A)).then(function(V){var O=void 0;return z._shouldUpdateSelector(w,$)&&(O=A.toString(),w.selector=O),{transform:V,root:A,string:O}}).then(U,H)}catch(V){H(V);return}})},W._runSync=function(w,$){$===void 0&&($={});var z=this._root(w,$),U=this.func(z);if(U&&typeof U.then=="function")throw Error("Selector processor returned a promise to a synchronous call.");var H=void 0;return $.updateSelector&&typeof w!="string"&&(H=z.toString(),w.selector=H),{transform:U,root:z,string:H}},W.ast=function(w,$){return this._run(w,$).then(function(z){return z.root})},W.astSync=function(w,$){return this._runSync(w,$).root},W.transform=function(w,$){return this._run(w,$).then(function(z){return z.transform})},W.transformSync=function(w,$){return this._runSync(w,$).transform},W.process=function(w,$){return this._run(w,$).then(function(z){return z.string||z.root.toString()})},W.processSync=function(w,$){var z=this._runSync(w,$);return z.string||z.root.toString()},Q}();J.default=X,Y.exports=J.default}),AU=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 Y=V(wY()),K=V(KY()),Z=V(UY()),X=V(ZY()),Q=V(XY()),W=V(HY()),w=V($Y()),$=V(JY()),z=V(YY()),U=V(WY()),H=V(QY()),A=V(zY());function V(h){return h&&h.__esModule?h:{default:h}}var O=function(h){return new Y.default(h)};J.attribute=O;var B=function(h){return new K.default(h)};J.className=B;var L=function(h){return new Z.default(h)};J.combinator=L;var M=function(h){return new X.default(h)};J.comment=M;var N=function(h){return new Q.default(h)};J.id=N;var E=function(h){return new W.default(h)};J.nesting=E;var I=function(h){return new w.default(h)};J.pseudo=I;var F=function(h){return new $.default(h)};J.root=F;var j=function(h){return new z.default(h)};J.selector=j;var T=function(h){return new U.default(h)};J.string=T;var D=function(h){return new H.default(h)};J.tag=D;var C=function(h){return new A.default(h)};J.universal=C}),VU=t((J)=>{J.__esModule=!0,J.isNode=X,J.isPseudoElement=N,J.isPseudoClass=E,J.isContainer=I,J.isNamespace=F,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 Y=d0(),K,Z=(K={},K[Y.ATTRIBUTE]=!0,K[Y.CLASS]=!0,K[Y.COMBINATOR]=!0,K[Y.COMMENT]=!0,K[Y.ID]=!0,K[Y.NESTING]=!0,K[Y.PSEUDO]=!0,K[Y.ROOT]=!0,K[Y.SELECTOR]=!0,K[Y.STRING]=!0,K[Y.TAG]=!0,K[Y.UNIVERSAL]=!0,K);function X(j){return typeof j=="object"&&Z[j.type]}function Q(j,T){return X(T)&&T.type===j}var W=Q.bind(null,Y.ATTRIBUTE);J.isAttribute=W;var w=Q.bind(null,Y.CLASS);J.isClassName=w;var $=Q.bind(null,Y.COMBINATOR);J.isCombinator=$;var z=Q.bind(null,Y.COMMENT);J.isComment=z;var U=Q.bind(null,Y.ID);J.isIdentifier=U;var H=Q.bind(null,Y.NESTING);J.isNesting=H;var A=Q.bind(null,Y.PSEUDO);J.isPseudo=A;var V=Q.bind(null,Y.ROOT);J.isRoot=V;var O=Q.bind(null,Y.SELECTOR);J.isSelector=O;var B=Q.bind(null,Y.STRING);J.isString=B;var L=Q.bind(null,Y.TAG);J.isTag=L;var M=Q.bind(null,Y.UNIVERSAL);J.isUniversal=M;function N(j){return A(j)&&j.value&&(j.value.startsWith("::")||j.value.toLowerCase()===":before"||j.value.toLowerCase()===":after"||j.value.toLowerCase()===":first-letter"||j.value.toLowerCase()===":first-line")}function E(j){return A(j)&&!N(j)}function I(j){return!!(X(j)&&j.walk)}function F(j){return W(j)||L(j)}}),BU=t((J)=>{J.__esModule=!0;var Y=d0();Object.keys(Y).forEach(function(X){X==="default"||X==="__esModule"||X in J&&J[X]===Y[X]||(J[X]=Y[X])});var K=AU();Object.keys(K).forEach(function(X){X==="default"||X==="__esModule"||X in J&&J[X]===K[X]||(J[X]=K[X])});var Z=VU();Object.keys(Z).forEach(function(X){X==="default"||X==="__esModule"||X in J&&J[X]===Z[X]||(J[X]=Z[X])})}),GU=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=W(HU()),Z=Q(BU());function X(){if(typeof WeakMap!="function")return null;var z=new WeakMap;return X=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=X();if(U&&U.has(z))return U.get(z);var H={},A=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var V in z)if(Object.prototype.hasOwnProperty.call(z,V)){var O=A?Object.getOwnPropertyDescriptor(z,V):null;O&&(O.get||O.set)?Object.defineProperty(H,V,O):H[V]=z[V]}return H.default=z,U&&U.set(z,H),H}function W(z){return z&&z.__esModule?z:{default:z}}var w=function(z){return new K.default(z)};Object.assign(w,Z),delete w.__esModule;var $=w;J.default=$,Y.exports=J.default}),LU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Y});function Y(K){return K.replace(/\\,/g,"\\2c ")}}),OU=t((J,Y)=>{Y.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]}}),VY=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y(O,B){for(var L in B)Object.defineProperty(O,L,{enumerable:!0,get:B[L]})}Y(J,{parseColor:()=>A,formatColor:()=>V});var K=Z(OU());function Z(O){return O&&O.__esModule?O:{default:O}}var X=/^#([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+)/,$=/\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}))?(?:${$.source}(${W.source}|${z.source}))?\\s*\\)$`),H=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}))?(?:${$.source}(${W.source}|${z.source}))?\\s*\\)$`);function A(O,{loose:B=!1}={}){var L,M;if(typeof O!="string")return null;if(O=O.trim(),O==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(O in K.default)return{mode:"rgb",color:K.default[O].map((j)=>j.toString())};let N=O.replace(Q,(j,T,D,C,h)=>["#",T,T,D,D,C,C,h?h+h:""].join("")).match(X);if(N!==null)return{mode:"rgb",color:[parseInt(N[1],16),parseInt(N[2],16),parseInt(N[3],16)].map((j)=>j.toString()),alpha:N[4]?(parseInt(N[4],16)/255).toString():void 0};var E;let I=(E=O.match(U))!==null&&E!==void 0?E:O.match(H);if(I===null)return null;let F=[I[2],I[3],I[4]].filter(Boolean).map((j)=>j.toString());return!B&&F.length!==3||F.length<3&&!F.some((j)=>/^var\(.*?\)$/.test(j))?null:{mode:I[1],color:F,alpha:(L=I[5])===null||L===void 0||(M=L.toString)===null||M===void 0?void 0:M.call(L)}}function V({mode:O,color:B,alpha:L}){let M=L!==void 0;return`${O}(${B.join(" ")}${M?` / ${L}`:""})`}}),BY=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y(Q,W){for(var w in W)Object.defineProperty(Q,w,{enumerable:!0,get:W[w]})}Y(J,{withAlphaValue:()=>Z,default:()=>X});var K=VY();function Z(Q,W,w){if(typeof Q=="function")return Q({opacityValue:W});let $=(0,K.parseColor)(Q,{loose:!0});return $===null?w:(0,K.formatColor)({...$,alpha:W})}function X({color:Q,property:W,variable:w}){let $=[].concat(W);if(typeof Q=="function")return{[w]:"1",...Object.fromEntries($.map((U)=>[U,Q({opacityVariable:w,opacityValue:`var(${w})`})]))};let z=(0,K.parseColor)(Q);return z===null?Object.fromEntries($.map((U)=>[U,Q])):z.alpha!==void 0?Object.fromEntries($.map((U)=>[U,Q])):{[w]:"1",...Object.fromEntries($.map((U)=>[U,(0,K.formatColor)({...z,alpha:`var(${w})`})]))}}}),qU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y(A,V){for(var O in V)Object.defineProperty(A,O,{enumerable:!0,get:V[O]})}Y(J,{pattern:()=>Q,withoutCapturing:()=>W,any:()=>w,optional:()=>$,zeroOrMore:()=>z,nestedBrackets:()=>U,escape:()=>H});var K=/[\\^$.*+?()[\]{}|]/g,Z=RegExp(K.source);function X(A){return A=Array.isArray(A)?A:[A],A=A.map((V)=>V instanceof RegExp?V.source:V),A.join("")}function Q(A){return new RegExp(X(A),"g")}function W(A){return new RegExp(`(?:${X(A)})`,"g")}function w(A){return`(?:${A.map(X).join("|")})`}function $(A){return`(?:${X(A)})?`}function z(A){return`(?:${X(A)})*`}function U(A,V,O=1){return W([H(A),/[^\s]*/,O===1?`[^${H(A)}${H(V)}s]*`:w([`[^${H(A)}${H(V)}s]*`,U(A,V,O-1)]),/[^\s]*/,H(V)])}function H(A){return A&&Z.test(A)?A.replace(K,"\\$&"):A||""}}),MU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"splitAtTopLevelOnly",{enumerable:!0,get:()=>X});var Y=Z(qU());function K(Q){if(typeof WeakMap!="function")return null;var W=new WeakMap,w=new WeakMap;return(K=function($){return $?w:W})(Q)}function Z(Q,W){if(!W&&Q&&Q.__esModule)return Q;if(Q===null||typeof Q!="object"&&typeof Q!="function")return{default:Q};var w=K(W);if(w&&w.has(Q))return w.get(Q);var $={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var U in Q)if(U!=="default"&&Object.prototype.hasOwnProperty.call(Q,U)){var H=z?Object.getOwnPropertyDescriptor(Q,U):null;H&&(H.get||H.set)?Object.defineProperty($,U,H):$[U]=Q[U]}return $.default=Q,w&&w.set(Q,$),$}function*X(Q,W){let w=new RegExp(`[(){}\\[\\]${Y.escape(W)}]`,"g"),$=0,z=0,U=!1,H=0,A=0,V=W.length;for(let O of Q.matchAll(w)){let B=O[0]===W[H],L=H===V-1,M=B&&L;O[0]==="("&&$++,O[0]===")"&&$--,O[0]==="["&&$++,O[0]==="]"&&$--,O[0]==="{"&&$++,O[0]==="}"&&$--,B&&$===0&&(A===0&&(A=O.index),H++),M&&$===0&&(U=!0,yield Q.substring(z,A),z=A+V),H===V&&(H=0,A=0)}U?yield Q.substring(z):yield Q}}),NU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y($,z){for(var U in z)Object.defineProperty($,U,{enumerable:!0,get:z[U]})}Y(J,{parseBoxShadowValue:()=>W,formatBoxShadowValue:()=>w});var K=MU(),Z=new Set(["inset","inherit","initial","revert","unset"]),X=/\ +(?![^(]*\))/g,Q=/^-?(\d+|\.\d+)(.*?)$/g;function W($){return Array.from((0,K.splitAtTopLevelOnly)($,",")).map((z)=>{let U=z.trim(),H={raw:U},A=U.split(X),V=new Set;for(let O of A)Q.lastIndex=0,!V.has("KEYWORD")&&Z.has(O)?(H.keyword=O,V.add("KEYWORD")):Q.test(O)?V.has("X")?V.has("Y")?V.has("BLUR")?V.has("SPREAD")||(H.spread=O,V.add("SPREAD")):(H.blur=O,V.add("BLUR")):(H.y=O,V.add("Y")):(H.x=O,V.add("X")):H.color?(H.unknown||(H.unknown=[]),H.unknown.push(O)):H.color=O;return H.valid=H.x!==void 0&&H.y!==void 0,H})}function w($){return $.map((z)=>z.valid?[z.keyword,z.x,z.y,z.blur,z.spread,z.color].filter(Boolean).join(" "):z.raw).join(", ")}}),jU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y(P,k){for(var R in k)Object.defineProperty(P,R,{enumerable:!0,get:k[R]})}Y(J,{normalize:()=>w,url:()=>$,number:()=>z,percentage:()=>U,length:()=>V,lineWidth:()=>B,shadow:()=>L,color:()=>M,image:()=>N,gradient:()=>I,position:()=>j,familyName:()=>T,genericName:()=>C,absoluteSize:()=>d,relativeSize:()=>l});var K=VY(),Z=NU(),X=["min","max","clamp","calc"],Q=/,(?![^(]*\))/g,W=/_(?![^(]*\))/g;function w(P,k=!0){return P.includes("url(")?P.split(/(url\(.*?\))/g).filter(Boolean).map((R)=>/^url\(.*?\)$/.test(R)?R:w(R,!1)).join(""):(P=P.replace(/([^\\])_+/g,(R,c)=>c+" ".repeat(R.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),k&&(P=P.trim()),P=P.replace(/(calc|min|max|clamp)\(.+\)/g,(R)=>R.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),P)}function $(P){return P.startsWith("url(")}function z(P){return!isNaN(Number(P))||X.some((k)=>new RegExp(`^${k}\\(.+?`).test(P))}function U(P){return P.split(W).every((k)=>/%$/g.test(k)||X.some((R)=>new RegExp(`^${R}\\(.+?%`).test(k)))}var H=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],A=`(?:${H.join("|")})`;function V(P){return P.split(W).every((k)=>k==="0"||new RegExp(`${A}$`).test(k)||X.some((R)=>new RegExp(`^${R}\\(.+?${A}`).test(k)))}var O=new Set(["thin","medium","thick"]);function B(P){return O.has(P)}function L(P){let k=(0,Z.parseBoxShadowValue)(w(P));for(let R of k)if(!R.valid)return!1;return!0}function M(P){let k=0;return P.split(W).every((R)=>(R=w(R),R.startsWith("var(")?!0:(0,K.parseColor)(R,{loose:!0})!==null?(k++,!0):!1))?k>0:!1}function N(P){let k=0;return P.split(Q).every((R)=>(R=w(R),R.startsWith("var(")?!0:$(R)||I(R)||["element(","image(","cross-fade(","image-set("].some((c)=>R.startsWith(c))?(k++,!0):!1))?k>0:!1}var E=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function I(P){P=w(P);for(let k of E)if(P.startsWith(`${k}(`))return!0;return!1}var F=new Set(["center","top","right","bottom","left"]);function j(P){let k=0;return P.split(W).every((R)=>(R=w(R),R.startsWith("var(")?!0:F.has(R)||V(R)||U(R)?(k++,!0):!1))?k>0:!1}function T(P){let k=0;return P.split(Q).every((R)=>(R=w(R),R.startsWith("var(")?!0:R.includes(" ")&&!/(['"])([^"']+)\1/g.test(R)||/^\d/g.test(R)?!1:(k++,!0)))?k>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 C(P){return D.has(P)}var h=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function d(P){return h.has(P)}var r=new Set(["larger","smaller"]);function l(P){return r.has(P)}}),EU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y(j,T){for(var D in T)Object.defineProperty(j,D,{enumerable:!0,get:T[D]})}Y(J,{updateAllClasses:()=>$,asValue:()=>H,parseColorFormat:()=>O,asColor:()=>B,asLookupValue:()=>L,coerceValue:()=>F});var K=w(GU()),Z=w(LU()),X=BY(),Q=jU(),W=w(sJ());function w(j){return j&&j.__esModule?j:{default:j}}function $(j,T){return(0,K.default)((D)=>{D.walkClasses((C)=>{let h=T(C.value);C.value=h,C.raws&&C.raws.value&&(C.raws.value=(0,Z.default)(C.raws.value))})}).processSync(j)}function z(j,T){if(!A(j))return;let D=j.slice(1,-1);if(T(D))return(0,Q.normalize)(D)}function U(j,T={},D){let C=T[j];if(C!==void 0)return(0,W.default)(C);if(A(j)){let h=z(j,D);return h===void 0?void 0:(0,W.default)(h)}}function H(j,T={},{validate:D=()=>!0}={}){var C;let h=(C=T.values)===null||C===void 0?void 0:C[j];return h!==void 0?h:T.supportsNegativeValues&&j.startsWith("-")?U(j.slice(1),T.values,D):z(j,D)}function A(j){return j.startsWith("[")&&j.endsWith("]")}function V(j){let T=j.lastIndexOf("/");return T===-1||T===j.length-1?[j]:[j.slice(0,T),j.slice(T+1)]}function O(j){if(typeof j=="string"&&j.includes("<alpha-value>")){let T=j;return({opacityValue:D=1})=>T.replace("<alpha-value>",D)}return j}function B(j,T={},{tailwindConfig:D={}}={}){var C;if(((C=T.values)===null||C===void 0?void 0:C[j])!==void 0){var h;return O((h=T.values)===null||h===void 0?void 0:h[j])}let[d,r]=V(j);if(r!==void 0){var l,P,k,R;let c=(R=(l=T.values)===null||l===void 0?void 0:l[d])!==null&&R!==void 0?R:A(d)?d.slice(1,-1):void 0;return c===void 0?void 0:(c=O(c),A(r)?(0,X.withAlphaValue)(c,r.slice(1,-1)):((P=D.theme)===null||P===void 0||(k=P.opacity)===null||k===void 0?void 0:k[r])===void 0?void 0:(0,X.withAlphaValue)(c,D.theme.opacity[r]))}return H(j,T,{validate:Q.color})}function L(j,T={}){var D;return(D=T.values)===null||D===void 0?void 0:D[j]}function M(j){return(T,D)=>H(T,D,{validate:j})}var N={any:H,color:B,url:M(Q.url),image:M(Q.image),length:M(Q.length),percentage:M(Q.percentage),position:M(Q.position),lookup:L,"generic-name":M(Q.genericName),"family-name":M(Q.familyName),number:M(Q.number),"line-width":M(Q.lineWidth),"absolute-size":M(Q.absoluteSize),"relative-size":M(Q.relativeSize),shadow:M(Q.shadow)},E=Object.keys(N);function I(j,T){let D=j.indexOf(T);return D===-1?[void 0,j]:[j.slice(0,D),j.slice(D+1)]}function F(j,T,D,C){if(A(T)){let h=T.slice(1,-1),[d,r]=I(h,":");if(!/^[\w-_]+$/g.test(d))r=h;else if(d!==void 0&&!E.includes(d))return[];if(r.length>0&&E.includes(d))return[H(`[${r}]`,D),d]}for(let h of[].concat(j)){let d=N[h](T,D,{tailwindConfig:C});if(d!==void 0)return[d,h]}return[]}}),FU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Y});function Y(K){return typeof K=="function"?K({}):K}}),_U=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>l});var Y=O(sJ()),K=O(sz()),Z=O(az()),X=O(aJ()),Q=O(tz()),W=ez(),w=JU(),$=YU(),z=O(KU()),U=ZU(),H=EU(),A=BY(),V=O(FU());function O(P){return P&&P.__esModule?P:{default:P}}function B(P){return typeof P=="function"}function L(P){return typeof P=="object"&&P!==null}function M(P,...k){let R=k.pop();for(let c of k)for(let u in c){let a=R(P[u],c[u]);a===void 0?L(P[u])&&L(c[u])?P[u]=M(P[u],c[u],R):P[u]=c[u]:P[u]=a}return P}var N={colors:Q.default,negative(P){return Object.keys(P).filter((k)=>P[k]!=="0").reduce((k,R)=>{let c=(0,Y.default)(P[R]);return c!==void 0&&(k[`-${R}`]=c),k},{})},breakpoints(P){return Object.keys(P).filter((k)=>typeof P[k]=="string").reduce((k,R)=>({...k,[`screen-${R}`]:P[R]}),{})}};function E(P,...k){return B(P)?P(...k):P}function I(P){return P.reduce((k,{extend:R})=>M(k,R,(c,u)=>c===void 0?[u]:Array.isArray(c)?[u,...c]:[u,c]),{})}function F(P){return{...P.reduce((k,R)=>(0,W.defaults)(k,R),{}),extend:I(P)}}function j(P,k){if(Array.isArray(P)&&L(P[0]))return P.concat(k);if(Array.isArray(k)&&L(k[0])&&L(P))return[P,...k];if(Array.isArray(k))return k}function T({extend:P,...k}){return M(k,P,(R,c)=>!B(R)&&!c.some(B)?M({},R,...c,j):(u,a)=>M({},...[R,...c].map((n)=>E(n,u,a)),j))}function*D(P){let k=(0,w.toPath)(P);if(k.length===0||(yield k,Array.isArray(P)))return;let R=/^(.*?)\s*\/\s*([^/]+)$/,c=P.match(R);if(c!==null){let[,u,a]=c,n=(0,w.toPath)(u);n.alpha=a,yield n}}function C(P){let k=(R,c)=>{for(let u of D(R)){let a=0,n=P;for(;n!=null&&a<u.length;)n=n[u[a++]],n=B(n)&&(u.alpha===void 0||a<=u.length-1)?n(k,N):n;if(n!==void 0){if(u.alpha!==void 0){let m=(0,H.parseColorFormat)(n);return(0,A.withAlphaValue)(m,u.alpha,(0,V.default)(m))}return(0,z.default)(n)?(0,U.cloneDeep)(n):n}}return c};return Object.assign(k,{theme:k,...N}),Object.keys(P).reduce((R,c)=>(R[c]=B(P[c])?P[c](k,N):P[c],R),{})}function h(P){let k=[];return P.forEach((R)=>{k=[...k,R];var c;let u=(c=R==null?void 0:R.plugins)!==null&&c!==void 0?c:[];u.length!==0&&u.forEach((a)=>{a.__isOptionsFunction&&(a=a());var n;k=[...k,...h([(n=a==null?void 0:a.config)!==null&&n!==void 0?n:{}])]})}),k}function d(P){return[...P].reduceRight((k,R)=>B(R)?R({corePlugins:k}):(0,Z.default)(R,k),K.default)}function r(P){return[...P].reduceRight((k,R)=>[...k,...R],[])}function l(P){let k=[...h(P),{prefix:"",important:!1,separator:":",variantOrder:X.default.variantOrder}];var R,c;return(0,$.normalizeConfig)((0,W.defaults)({theme:C(T(F(k.map((u)=>(R=u==null?void 0:u.theme)!==null&&R!==void 0?R:{})))),corePlugins:d(k.map((u)=>u.corePlugins)),plugins:r(P.map((u)=>(c=u==null?void 0:u.plugins)!==null&&c!==void 0?c:[]))},...k))}}),GY={};r9(GY,{default:()=>LY});var LY,IU=o9(()=>{LY={yellow:(J)=>J}}),DU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y(H,A){for(var V in A)Object.defineProperty(H,V,{enumerable:!0,get:A[V]})}Y(J,{flagEnabled:()=>w,issueFlagNotices:()=>z,default:()=>U});var K=X((IU(),t8(GY))),Z=X((s9(),t8(Y6)));function X(H){return H&&H.__esModule?H:{default:H}}var Q={optimizeUniversalDefaults:!1},W={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function w(H,A){if(W.future.includes(A)){var V,O,B;return H.future==="all"||((B=(O=H==null||(V=H.future)===null||V===void 0?void 0:V[A])!==null&&O!==void 0?O:Q[A])!==null&&B!==void 0?B:!1)}if(W.experimental.includes(A)){var L,M,N;return H.experimental==="all"||((N=(M=H==null||(L=H.experimental)===null||L===void 0?void 0:L[A])!==null&&M!==void 0?M:Q[A])!==null&&N!==void 0?N:!1)}return!1}function $(H){if(H.experimental==="all")return W.experimental;var A;return Object.keys((A=H==null?void 0:H.experimental)!==null&&A!==void 0?A:{}).filter((V)=>W.experimental.includes(V)&&H.experimental[V])}function z(H){if(process.env.JEST_WORKER_ID===void 0&&$(H).length>0){let A=$(H).map((V)=>K.default.yellow(V)).join(", ");Z.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${A}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}var U=W}),RU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>X});var Y=Z(aJ()),K=DU();function Z(Q){return Q&&Q.__esModule?Q:{default:Q}}function X(Q){var W;let w=((W=Q==null?void 0:Q.presets)!==null&&W!==void 0?W:[Y.default]).slice().reverse().flatMap((U)=>X(typeof U=="function"?U():U)),$={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},z=Object.keys($).filter((U)=>(0,K.flagEnabled)(Q,U)).map((U)=>$[U]);return[Q,...z,...w]}}),CU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>X});var Y=Z(_U()),K=Z(RU());function Z(Q){return Q&&Q.__esModule?Q:{default:Q}}function X(...Q){let[,...W]=(0,K.default)(Q[0]);return(0,Y.default)([...Q,...W])}}),TU=t((J,Y)=>{var K=CU();Y.exports=(K.__esModule?K:{default:K}).default}),h8;var s5=null;async function Z6(){return h8||(s5?(await s5,h8):(s5=Promise.resolve().then(()=>(rz(),rJ)).then((J)=>J.getYogaModule()).then((J)=>h8=J),await s5,s5=null,h8))}var Z8=(J,Y)=>()=>(Y||J((Y={exports:{}}).exports,Y),Y.exports),PU=Z8((J,Y)=>{Y.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),SU=Z8((J,Y)=>{Y.exports=["deg","grad","rad","turn"]}),vU=Z8((J,Y)=>{Y.exports=["dpi","dpcm","dppx"]}),kU=Z8((J,Y)=>{Y.exports=["Hz","kHz"]}),yU=Z8((J,Y)=>{Y.exports=["s","ms"]}),gU=PU(),OY=SU(),qY=vU(),MY=kU(),NY=yU();function J4(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(hU(J)>1)throw Error("Only one dot is allowed");if(/%$/.test(J)){this.type="percentage",this.value=P9(J),this.unit="%";return}var Y=bU(J);if(!Y){this.type="number",this.value=P9(J);return}this.type=mU(Y),this.value=P9(J.substr(0,J.length-Y.length)),this.unit=Y}J4.prototype.valueOf=function(){return this.value};J4.prototype.toString=function(){return this.value+(this.unit||"")};function X8(J){return new J4(J)}function hU(J){var Y=J.match(/\./g);return Y?Y.length:0}function P9(J){var Y=parseFloat(J);if(isNaN(Y))throw Error("Invalid number: "+J);return Y}var xU=[].concat(OY,MY,gU,qY,NY);function bU(J){var Y=J.match(/\D+$/),K=Y&&Y[0];if(K&&xU.indexOf(K)===-1)throw Error("Invalid unit: "+K);return K}var fU=Object.assign(x8(OY,"angle"),x8(MY,"frequency"),x8(qY,"resolution"),x8(NY,"time"));function x8(J,Y){return Object.fromEntries(J.map((K)=>[K,Y]))}function mU(J){return fU[J]||"length"}function n8(J){let Y=typeof J;return!(Y==="number"||Y==="bigint"||Y==="string"||Y==="boolean")}function cU(J){return/^class\s/.test(J.toString())}function dU(J){return"dangerouslySetInnerHTML"in J}function uU(J){let Y=typeof J>"u"?[]:[].concat(J).flat(1/0),K=[];for(let Z=0;Z<Y.length;Z++){let X=Y[Z];typeof X>"u"||typeof X=="boolean"||X===null||(typeof X=="number"&&(X=String(X)),typeof X=="string"&&K.length&&typeof K[K.length-1]=="string"?K[K.length-1]+=X:K.push(X))}return K}function A0(J,Y,K,Z,X=!1){if(typeof J=="number")return J;try{if(J=J.trim(),/[ /\(,]/.test(J))return;if(J===String(+J))return+J;let Q=new X8(J);if(Q.type==="length")switch(Q.unit){case"em":return Q.value*Y;case"rem":return Q.value*16;case"vw":return~~(Q.value*Z._viewportWidth/100);case"vh":return~~(Q.value*Z._viewportHeight/100);default:return Q.value}else{if(Q.type==="angle")return jY(J);if(Q.type==="percentage"&&X)return Q.value/100*K}}catch{}}function jY(J){let Y=new X8(J);switch(Y.unit){case"deg":return Y.value;case"rad":return Y.value*180/Math.PI;case"turn":return Y.value*360;case"grad":return 0.9*Y.value}}function o8(J,Y){return[J[0]*Y[0]+J[2]*Y[1],J[1]*Y[0]+J[3]*Y[1],J[0]*Y[2]+J[2]*Y[3],J[1]*Y[2]+J[3]*Y[3],J[0]*Y[4]+J[2]*Y[5]+J[4],J[1]*Y[4]+J[3]*Y[5]+J[5]]}function G1(J,Y,K,Z){let X=Y[J];if(typeof X>"u"){if(Z&&typeof J<"u")throw Error(`Invalid value for CSS property "${Z}". Allowed values: ${Object.keys(Y).map((Q)=>`"${Q}"`).join(" | ")}. Received: "${J}".`);X=K}return X}var S9,v9,lU=[32,160,4961,65792,65793,4153,4241,10].map((J)=>String.fromCodePoint(J));function O1(J,Y,K){if(!S9||!v9){if(!(typeof Intl<"u"&&("Segmenter"in Intl)))throw Error("Intl.Segmenter does not exist, please use import a polyfill.");S9=new Intl.Segmenter(K,{granularity:"word"}),v9=new Intl.Segmenter(K,{granularity:"grapheme"})}if(Y==="grapheme")return[...v9.segment(J)].map((Z)=>Z.segment);{let Z=[...S9.segment(J)].map((W)=>W.segment),X=[],Q=0;for(;Q<Z.length;){let W=Z[Q];if(W=="\xA0"){let w=Q===0?"":X.pop(),$=Q===Z.length-1?"":Z[Q+1];X.push(w+"\xA0"+$),Q+=2}else X.push(W),Q++}return X}}function s(J,Y,K){let Z="";for(let[X,Q]of Object.entries(Y))typeof Q<"u"&&(Z+=` ${X}="${Q}"`);return K?`<${J}${Z}>${K}</${J}>`:`<${J}${Z}/>`}function pU(J=20){let Y=new Map;function K(Q,W){if(Y.size>=J){let w=Y.keys().next().value;Y.delete(w)}Y.set(Q,W)}function Z(Q){if(!Y.has(Q))return;let W=Y.get(Q);return Y.delete(Q),Y.set(Q,W),W}function X(){Y.clear()}return{set:K,get:Z,clear:X}}function Y4(J){return J?J.split(/[, ]/).filter(Boolean).map(Number):null}function iU(J){return Object.prototype.toString.call(J)}function EY(J){return typeof J=="string"}function nU(J){return typeof J=="number"}function oU(J){return iU(J)==="[object Undefined]"}function rU(J,Y){if(Y==="break-all")return{words:O1(J,"grapheme"),requiredBreaks:[]};if(Y==="keep-all")return{words:O1(J,"word"),requiredBreaks:[]};let K=new c6(J),Z=0,X=K.nextBreak(),Q=[],W=[!1];for(;X;){let w=J.slice(Z,X.position);Q.push(w),X.required?W.push(!0):W.push(!1),Z=X.position,X=K.nextBreak()}return{words:Q,requiredBreaks:W}}var sU=(J)=>J.replaceAll(/([A-Z])/g,(Y,K)=>`-${K.toLowerCase()}`);function FY(J,Y=","){let K=[],Z=0,X=0;Y=new RegExp(Y);for(let Q=0;Q<J.length;Q++)J[Q]==="("?X++:J[Q]===")"&&X--,X===0&&Y.test(J[Q])&&(K.push(J.slice(Z,Q).trim()),Z=Q+1);return K.push(J.slice(Z).trim()),K}var aU="image/avif",tU="image/webp",X6="image/apng",Q6="image/png",W6="image/jpeg",$6="image/gif",K4="image/svg+xml";function _Y(J){let Y=new DataView(J),K=4,Z=Y.byteLength;for(;K<Z;){let X=Y.getUint16(K,!1);if(X>Z)throw TypeError("Invalid JPEG");let Q=Y.getUint8(X+1+K);if(Q===192||Q===193||Q===194)return[Y.getUint16(X+7+K,!1),Y.getUint16(X+5+K,!1)];K+=X+2}throw TypeError("Invalid JPEG")}function IY(J){let Y=new Uint8Array(J.slice(6,10));return[Y[0]|Y[1]<<8,Y[2]|Y[3]<<8]}function DY(J){let Y=new DataView(J);return[Y.getUint16(18,!1),Y.getUint16(22,!1)]}var o1=pU(100),r8=new Map,eU=[Q6,X6,W6,$6,K4];function JH(J){let Y="",K=new Uint8Array(J);for(let Z=0;Z<K.byteLength;Z++)Y+=String.fromCharCode(K[Z]);return btoa(Y)}function YH(J){let Y=atob(J),K=Y.length,Z=new Uint8Array(K);for(let X=0;X<K;X++)Z[X]=Y.charCodeAt(X);return Z.buffer}function EJ(J,Y){let K=Y.match(/<svg[^>]*>/)[0],Z=K.match(/viewBox=['"](.+)['"]/),X=Z?Y4(Z[1]):null,Q=K.match(/width=['"](\d*\.\d+|\d+)['"]/),W=K.match(/height=['"](\d*\.\d+|\d+)['"]/);if(!X&&(!Q||!W))throw Error(`Failed to parse SVG from ${J}: missing "viewBox"`);let w=X?[X[2],X[3]]:[+Q[1],+W[1]],$=w[0]/w[1];return Q&&W?[+Q[1],+W[1]]:Q?[+Q[1],+Q[1]/$]:W?[+W[1]*$,+W[1]]:[w[0],w[1]]}function FJ(J){let Y,K=KH(new Uint8Array(J));switch(K){case Q6:case X6:Y=DY(J);break;case $6:Y=IY(J);break;case W6:Y=_Y(J);break}if(!eU.includes(K))throw Error(`Unsupported image type: ${K||"unknown"}`);return[`data:${K};base64,${JH(J)}`,Y]}async function Z4(J){if(!J)throw Error("Image source is not provided.");if(typeof J=="object"){let[X,Q]=FJ(J);return[X,...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 X;try{X=/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}=X;if(Q===K4){let $=W==="base64"?atob(w):decodeURIComponent(w.replace(/ /g,"%20")),z=W==="base64"?J:`data:image/svg+xml;base64,${btoa($)}`,U=EJ(J,$);return o1.set(J,[z,...U]),[z,...U]}else if(W==="base64"){let $,z=YH(w);switch(Q){case Q6:case X6:$=DY(z);break;case $6:$=IY(z);break;case W6:$=_Y(z);break}return o1.set(J,[J,...$]),[J,...$]}else return console.warn("Image data URI resolved without size:"+J),o1.set(J,[J]),[J]}if(!globalThis.fetch)throw Error("`fetch` is required to be polyfilled to load images.");if(r8.has(J))return r8.get(J);let Y=o1.get(J);if(Y)return Y;let K=J,Z=fetch(K).then((X)=>{let Q=X.headers.get("content-type");return Q==="image/svg+xml"||Q==="application/svg+xml"?X.text():X.arrayBuffer()}).then((X)=>{if(typeof X=="string")try{let w=`data:image/svg+xml;base64,${btoa(X)}`,$=EJ(K,X);return[w,...$]}catch(w){throw Error(`Failed to parse SVG image: ${w.message}`)}let[Q,W]=FJ(X);return[Q,...W]}).then((X)=>(o1.set(K,X),X)).catch((X)=>(console.error(`Can't load image ${K}: `+X.message),o1.set(K,[]),[]));return r8.set(K,Z),Z}function KH(J){return[255,216,255].every((Y,K)=>J[K]===Y)?W6:[137,80,78,71,13,10,26,10].every((Y,K)=>J[K]===Y)?ZH(J)?X6:Q6:[71,73,70,56].every((Y,K)=>J[K]===Y)?$6:[82,73,70,70,0,0,0,0,87,69,66,80].every((Y,K)=>!Y||J[K]===Y)?tU:[60,63,120,109,108].every((Y,K)=>J[K]===Y)?K4:[0,0,0,0,102,116,121,112,97,118,105,102].every((Y,K)=>!Y||J[K]===Y)?aU:null}function ZH(J){let Y=new DataView(J.buffer),K,Z,X=8,Q=!1;for(;!Q&&K!=="IEND"&&X<J.length;){Z=Y.getUint32(X);let W=J.subarray(X+4,X+8);K=String.fromCharCode(...W),Q=K==="acTL",X+=12+Z}return Q}var c9={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"},XH=/[\r\n%#()<>?[\\\]^`{|}"']/g;function d9(J,Y){if(!J)return"";if(Array.isArray(J))return J.map((z)=>d9(z,Y)).join("");if(typeof J!="object")return String(J);let K=J.type;if(K==="text")throw Error("<text> nodes are not currently supported, please convert them to <path>");let{children:Z,style:X,...Q}=J.props||{},W=(X==null?void 0:X.color)||Y,w=`${Object.entries(Q).map(([z,U])=>(typeof U=="string"&&U.toLowerCase()==="currentcolor"&&(U=W),z==="href"&&K==="image"?` ${c9[z]||z}="${o1.get(U)[0]}"`:` ${c9[z]||z}="${U}"`)).join("")}`,$=X?` style="${Object.entries(X).map(([z,U])=>`${sU(z)}:${U}`).join(";")}"`:"";return`<${K}${w}${$}>${d9(Z,W)}</${K}>`}async function QH(J){let Y=new Set,K=(Z)=>{if(Z&&n8(Z)){if(Array.isArray(Z)){Z.forEach((X)=>K(X));return}else typeof Z=="object"&&(Z.type==="image"?Y.has(Z.props.href)||Y.add(Z.props.href):Z.type==="img"&&(Y.has(Z.props.src)||Y.add(Z.props.src)));Array.isArray(Z.props.children)?Z.props.children.map((X)=>K(X)):K(Z.props.children)}};return K(J),Promise.all(Array.from(Y).map((Z)=>Z4(Z)))}async function WH(J,Y){let{viewBox:K,viewbox:Z,width:X,height:Q,className:W,style:w,children:$,...z}=J.props||{};K||=Z,z.xmlns="http://www.w3.org/2000/svg";let U=(w==null?void 0:w.color)||Y,H=Y4(K),A=H?H[3]/H[2]:null;return X=X||A&&Q?Q/A:null,Q=Q||A&&X?X*A:null,z.width=X,z.height=Q,K&&(z.viewBox=K),`data:image/svg+xml;utf8,${`<svg ${Object.entries(z).map(([V,O])=>(typeof O=="string"&&O.toLowerCase()==="currentcolor"&&(O=U),` ${c9[V]||V}="${O}"`)).join("")}>${d9($,U)}</svg>`.replace(XH,encodeURIComponent)}`}var Z1="flex",$H={p:{display:Z1,marginTop:"1em",marginBottom:"1em"},div:{display:Z1},blockquote:{display:Z1,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:Z1,textAlign:"center"},hr:{display:Z1,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:Z1,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:Z1,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:Z1,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:Z1,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:Z1,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:Z1,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:Z1,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}},wH=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 zH(J){let Y={};for(let K in J)wH.has(K)&&(Y[K]=J[K]);return Y}function UH(J,Y){try{let K=new X8(J);switch(K.unit){case"px":return{absolute:K.value};case"em":return{absolute:K.value*Y};case"rem":return{absolute:K.value*16};case"%":return{relative:K.value};default:return{}}}catch{return{}}}function k9(J,Y,K){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 Z=UH(J,Y);return Z.absolute?{[K?"xAbsolute":"yAbsolute"]:Z.absolute}:Z.relative?{[K?"xRelative":"yRelative"]:Z.relative}:{}}}}function HH(J,Y){if(typeof J=="number")return{xAbsolute:J};let K;try{K=TY.default(J).nodes.filter((Z)=>Z.type==="word").map((Z)=>Z.value)}catch{return{}}return K.length===1?k9(K[0],Y,!0):K.length===2?((K[0]==="top"||K[0]==="bottom"||K[1]==="left"||K[1]==="right")&&K.reverse(),{...k9(K[0],Y,!0),...k9(K[1],Y,!1)}):{}}function a5(J,Y){let K=PY.getPropertyName(`mask-${Y}`);return J[K]||J[`WebkitM${K.substring(1)}`]}function AH(J){let Y=J.maskImage||J.WebkitMaskImage,K={position:a5(J,"position")||"0% 0%",size:a5(J,"size")||"100% 100%",repeat:a5(J,"repeat")||"repeat",origin:a5(J,"origin")||"border-box",clip:a5(J,"origin")||"border-box"};return FY(Y).filter((Z)=>Z&&Z!=="none").reverse().map((Z)=>({image:Z,...K}))}var VH=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),BH=new Set(["lineHeight"]);function GH(J,Y,K,Z){return J==="textDecoration"&&!K.includes(Y.textDecorationColor)&&(Y.textDecorationColor=Z),Y}function Q5(J,Y){let K=Number(Y);return isNaN(K)?Y:VH.has(J)?BH.has(J)?K:String(Y):K+"px"}function LH(J,Y,K){if(J==="lineHeight")return{lineHeight:Q5(J,Y)};if(J==="fontFamily")return{fontFamily:Y.split(",").map((Z)=>Z.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(J==="borderRadius"){if(typeof Y!="string"||!Y.includes("/"))return;let[Z,X]=Y.split("/"),Q=L1.getStylesForProperty(J,Z,!0),W=L1.getStylesForProperty(J,X,!0);for(let w in Q)W[w]=Q5(J,Q[w])+" "+Q5(J,W[w]);return W}if(/^border(Top|Right|Bottom|Left)?$/.test(J)){let Z=L1.getStylesForProperty("border",Y,!0);Z.borderWidth===1&&!String(Y).includes("1px")&&(Z.borderWidth=3),Z.borderColor==="black"&&!String(Y).includes("black")&&(Z.borderColor=K);let X={Width:Q5(J+"Width",Z.borderWidth),Style:G1(Z.borderStyle,{solid:"solid",dashed:"dashed"},"solid",J+"Style"),Color:Z.borderColor},Q={};for(let W of J==="border"?["Top","Right","Bottom","Left"]:[J.slice(6)])for(let w in X)Q["border"+W+w]=X[w];return Q}if(J==="boxShadow"){if(!Y)throw Error('Invalid `boxShadow` value: "'+Y+'".');return{[J]:typeof Y=="string"?CY.parse(Y):Y}}if(J==="transform"){if(typeof Y!="string")throw Error("Invalid `transform` value.");let Z={},X=Y.replace(/(-?[\d.]+%)/g,(W,w)=>{let $=~~(Math.random()*1e9);return Z[$]=w,$+"px"}),Q=L1.getStylesForProperty("transform",X,!0);for(let W of Q.transform)for(let w in W)Z[W[w]]&&(W[w]=Z[W[w]]);return Q}if(J==="background")return Y=Y.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient)\(/.test(Y)?L1.getStylesForProperty("backgroundImage",Y,!0):L1.getStylesForProperty("background",Y,!0);if(J==="textShadow"){Y=Y.toString().trim();let Z={},X=FY(Y);for(let Q of X){let W=L1.getStylesForProperty("textShadow",Q,!0);for(let w in W)Z[w]?Z[w].push(W[w]):Z[w]=[W[w]]}return Z}if(J==="WebkitTextStroke"){Y=Y.toString().trim();let Z=Y.split(" ");if(Z.length!==2)throw Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:Q5(J,Z[0]),WebkitTextStrokeColor:Q5(J,Z[1])}}}function _J(J){return J==="transform"?" Only absolute lengths such as `10px` are supported.":""}var IJ=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function SY(J){if(typeof J=="string"&&IJ.test(J.trim()))return J.trim().replace(IJ,(Y,K,Z,X,Q)=>`rgba(${K}, ${Z}, ${X}, ${Q})`);if(typeof J=="object"&&J!==null){for(let Y in J)J[Y]=SY(J[Y]);return J}return J}function DJ(J,Y){let K={};if(J){let X=qH(J.color,Y.color);K.color=X;for(let Q in J){if(Q.startsWith("_")){K[Q]=J[Q];continue}if(Q==="color")continue;let W=L1.getPropertyName(Q),w=NH(J[Q],X);try{let $=LH(W,w,X)||GH(W,L1.getStylesForProperty(W,Q5(W,w),!0),w,X);Object.assign(K,$)}catch($){throw Error($.message+($.message.includes(w)?`
|
|
61
|
+
`.replace(/\n|\s/g,""),SQ=new RegExp(PQ),vQ=/^transparent$/,kQ=new RegExp(vQ,"i"),z9=(J,Y,K)=>Math.min(Math.max(Y,J),K),yQ=(J)=>{let Y=J;if(typeof Y!=="number")Y=Y.endsWith("%")?parseFloat(Y)*255/100:parseFloat(Y);return z9(Math.round(Y),0,255)},V2=(J)=>z9(parseFloat(J),0,100);function O2(J){let Y=J;if(typeof Y!=="number")Y=Y.endsWith("%")?parseFloat(Y)/100:parseFloat(Y);return z9(Y,0,1)}function hQ(J){let[Y,K,Z,X]=G2.default(J,{format:"array"});return _8([null,Y,K,Z,X])}function gQ([,J,Y,K,Z=1]){let X=J;if(X.endsWith("turn"))X=parseFloat(X)*360/1;else if(X.endsWith("rad"))X=Math.round(parseFloat(X)*180/Math.PI);else X=parseFloat(X);return{type:"hsl",values:[X,V2(Y),V2(K)],alpha:O2(Z===null?1:Z)}}function _8([,J,Y,K,Z=1]){return{type:"rgb",values:[J,Y,K].map(yQ),alpha:O2(Z===null?1:Z)}}var xQ=(J)=>{if(typeof J!=="string")return null;let Y=qQ.exec(J);if(Y)return hQ(Y[0]);let K=FQ.exec(J)||jQ.exec(J);if(K)return gQ(K);let Z=TQ.exec(J)||SQ.exec(J)||IQ.exec(J)||RQ.exec(J);if(Z)return _8(Z);if(kQ.exec(J))return _8([null,0,0,0,0]);let X=B2.default[J.toLowerCase()];if(X)return _8([null,X[0],X[1],X[2],1]);return null},I8=xQ;var TY=z1(r6(),1),PY=z1(E8(),1),u9=z1(M2(),1);function H9(J,Y=","){let K=[],Z=0,X=0;Y=new RegExp(Y);for(let Q=0;Q<J.length;Q++)J[Q]==="("?X++:J[Q]===")"&&X--,X===0&&Y.test(J[Q])&&(K.push(J.slice(Z,Q).trim()),Z=Q+1);return K.push(J.slice(Z).trim()),K}function U9(J){let Y=[];for(let K=0,Z=J.length;K<Z;){let[X,Q]=H9(J[K],/\s+/);mQ(J[K+1])?(Y.push({color:X,offset:Y5(Q),hint:Y5(J[K+1])}),K+=2):(Y.push({color:X,offset:Y5(Q)}),K++)}return Y}var j2=/^(-?\d+\.?\d*)(%|vw|vh|px|em|rem|deg|rad|grad|turn)$/;function mQ(J){return j2.test(J)}function Y5(J){if(!J)return;let[,Y,K]=J.trim().match(j2)||[];return{value:Y,unit:K}}function E2(J){if(!/^(repeating-)?linear-gradient/.test(J))throw SyntaxError(`could not find syntax for this item: ${J}`);let[,Y,K]=J.match(/(repeating-)?linear-gradient\((.+)\)/),Z={orientation:{type:"directional",value:"bottom"},repeating:!!Y,stops:[]},X=H9(K),Q=cQ(X[0]);return Q&&(Z.orientation=Q,X.shift()),{...Z,stops:U9(X)}}function cQ(J){return J.startsWith("to ")?{type:"directional",value:J.replace("to ","")}:["turn","deg","grad","rad"].some((Y)=>J.endsWith(Y))?{type:"angular",value:Y5(J)}:null}var dQ=new Set(["closest-corner","closest-side","farthest-corner","farthest-side"]),uQ=new Set(["center","left","top","right","bottom"]);function q2(J){return dQ.has(J)}function N2(J){return uQ.has(J)}function lQ(J){let Y=Array(2).fill("");for(let K=0;K<2;K++)J[K]?Y[K]=J[K]:Y[K]="center";return Y}function F2(J){if(!/(repeating-)?radial-gradient/.test(J))throw SyntaxError(`could not find syntax for this item: ${J}`);let[,Y,K]=J.match(/(repeating-)?radial-gradient\((.+)\)/),Z={shape:"ellipse",repeating:!!Y,size:[{type:"keyword",value:"farthest-corner"}],position:{x:{type:"keyword",value:"center"},y:{type:"keyword",value:"center"}},stops:[]},X=H9(K);if(pQ(X[0]))return{...Z,stops:U9(X)};let Q=X[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)||[],$=lQ((Q[1]||"").split(" "));return W?Z.shape=W:w.length===1&&!q2(w[0])?Z.shape="circle":Z.shape="ellipse",w.length===0&&w.push("farthest-corner"),Z.size=w.map((z)=>q2(z)?{type:"keyword",value:z}:{type:"length",value:Y5(z)}),Z.position.x=N2($[0])?{type:"keyword",value:$[0]}:{type:"length",value:Y5($[0])},Z.position.y=N2($[1])?{type:"keyword",value:$[1]}:{type:"length",value:Y5($[1])},(W||w.length>0||Q[1])&&X.shift(),{...Z,stops:U9(X)}}function pQ(J){return/(circle|ellipse|at)/.test(J)?!1:/^(rgba?|hwb|hsl|lab|lch|oklab|color|#|[a-zA-Z]+)/.test(J)}var l9=z1(E8(),1);var K1=Uint8Array,Z5=Uint16Array,a2=Uint32Array,t2=new K1([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]),e2=new K1([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]),iQ=new K1([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),JJ=function(J,Y){var K=new Z5(31);for(var Z=0;Z<31;++Z)K[Z]=Y+=1<<J[Z-1];var X=new a2(K[30]);for(var Z=1;Z<30;++Z)for(var Q=K[Z];Q<K[Z+1];++Q)X[Q]=Q-K[Z]<<5|Z;return[K,X]},YJ=JJ(t2,2),KJ=YJ[0],nQ=YJ[1];KJ[28]=258,nQ[258]=28;var oQ=JJ(e2,0),rQ=oQ[0],j9=new Z5(32768);for(W0=0;W0<32768;++W0)F1=(W0&43690)>>>1|(W0&21845)<<1,F1=(F1&52428)>>>2|(F1&13107)<<2,F1=(F1&61680)>>>4|(F1&3855)<<4,j9[W0]=((F1&65280)>>>8|(F1&255)<<8)>>>1;var F1,W0,m5=function(J,Y,K){var Z=J.length,X=0,Q=new Z5(Y);for(;X<Z;++X)if(J[X])++Q[J[X]-1];var W=new Z5(Y);for(X=0;X<Y;++X)W[X]=W[X-1]+Q[X-1]<<1;var w;if(K){w=new Z5(1<<Y);var $=15-Y;for(X=0;X<Z;++X)if(J[X]){var z=X<<4|J[X],U=Y-J[X],H=W[J[X]-1]++<<U;for(var A=H|(1<<U)-1;H<=A;++H)w[j9[H]>>>$]=z}}else{w=new Z5(Z);for(X=0;X<Z;++X)if(J[X])w[X]=j9[W[J[X]-1]++]>>>15-J[X]}return w},u5=new K1(288);for(W0=0;W0<144;++W0)u5[W0]=8;var W0;for(W0=144;W0<256;++W0)u5[W0]=9;var W0;for(W0=256;W0<280;++W0)u5[W0]=7;var W0;for(W0=280;W0<288;++W0)u5[W0]=8;var W0,ZJ=new K1(32);for(W0=0;W0<32;++W0)ZJ[W0]=5;var W0,sQ=m5(u5,9,1),aQ=m5(ZJ,5,1),A9=function(J){var Y=J[0];for(var K=1;K<J.length;++K)if(J[K]>Y)Y=J[K];return Y},U1=function(J,Y,K){var Z=Y/8|0;return(J[Z]|J[Z+1]<<8)>>(Y&7)&K},V9=function(J,Y){var K=Y/8|0;return(J[K]|J[K+1]<<8|J[K+2]<<16)>>(Y&7)},tQ=function(J){return(J+7)/8|0},eQ=function(J,Y,K){if(Y==null||Y<0)Y=0;if(K==null||K>J.length)K=J.length;var Z=new(J.BYTES_PER_ELEMENT==2?Z5:J.BYTES_PER_ELEMENT==4?a2:K1)(K-Y);return Z.set(J.subarray(Y,K)),Z},JW=["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"],u1=function(J,Y,K){var Z=Error(Y||JW[J]);if(Z.code=J,Error.captureStackTrace)Error.captureStackTrace(Z,u1);if(!K)throw Z;return Z},YW=function(J,Y,K){var Z=J.length;if(!Z||K&&K.f&&!K.l)return Y||new K1(0);var X=!Y||K,Q=!K||K.i;if(!K)K={};if(!Y)Y=new K1(Z*3);var W=function(h){var e=Y.length;if(h>e){var Q0=new K1(Math.max(e*2,h));Q0.set(Y),Y=Q0}},w=K.f||0,$=K.p||0,z=K.b||0,U=K.l,H=K.d,A=K.m,V=K.n,L=Z*8;do{if(!U){w=U1(J,$,1);var B=U1(J,$+1,3);if($+=3,!B){var O=tQ($)+4,q=J[O-4]|J[O-3]<<8,N=O+q;if(N>Z){if(Q)u1(0);break}if(X)W(z+q);Y.set(J.subarray(O,N),z),K.b=z+=q,K.p=$=N*8,K.f=w;continue}else if(B==1)U=sQ,H=aQ,A=9,V=5;else if(B==2){var E=U1(J,$,31)+257,I=U1(J,$+10,15)+4,F=E+U1(J,$+5,31)+1;$+=14;var j=new K1(F),T=new K1(19);for(var D=0;D<I;++D)T[iQ[D]]=U1(J,$+D*3,7);$+=I*3;var C=A9(T),g=(1<<C)-1,d=m5(T,C,1);for(var D=0;D<F;){var r=d[U1(J,$,g)];$+=r&15;var O=r>>>4;if(O<16)j[D++]=O;else{var l=0,P=0;if(O==16)P=3+U1(J,$,3),$+=2,l=j[D-1];else if(O==17)P=3+U1(J,$,7),$+=3;else if(O==18)P=11+U1(J,$,127),$+=7;while(P--)j[D++]=l}}var k=j.subarray(0,E),R=j.subarray(E);A=A9(k),V=A9(R),U=m5(k,A,1),H=m5(R,V,1)}else u1(1);if($>L){if(Q)u1(0);break}}if(X)W(z+131072);var c=(1<<A)-1,u=(1<<V)-1,a=$;for(;;a=$){var l=U[V9(J,$)&c],n=l>>>4;if($+=l&15,$>L){if(Q)u1(0);break}if(!l)u1(2);if(n<256)Y[z++]=n;else if(n==256){a=$,U=null;break}else{var m=n-254;if(n>264){var D=n-257,x=t2[D];m=U1(J,$,(1<<x)-1)+KJ[D],$+=x}var S=H[V9(J,$)&u],y=S>>>4;if(!S)u1(3);$+=S&15;var R=rQ[y];if(y>3){var x=e2[y];R+=V9(J,$)&(1<<x)-1,$+=x}if($>L){if(Q)u1(0);break}if(X)W(z+131072);var p=z+m;for(;z<p;z+=4)Y[z]=Y[z-R],Y[z+1]=Y[z+1-R],Y[z+2]=Y[z+2-R],Y[z+3]=Y[z+3-R];z=p}}if(K.l=U,K.p=a,K.b=z,K.f=w,U)w=1,K.m=A,K.d=H,K.n=V}while(!w);return z==Y.length?Y:eQ(Y,0,z)},KW=new K1(0);function ZW(J,Y){return YW(J,Y)}var XW=typeof TextDecoder<"u"&&new TextDecoder,QW=0;try{XW.decode(KW,{stream:!0}),QW=1}catch(J){}function f0(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}f0.prototype.moveTo=function(J,Y){this.commands.push({type:"M",x:J,y:Y})};f0.prototype.lineTo=function(J,Y){this.commands.push({type:"L",x:J,y:Y})};f0.prototype.curveTo=f0.prototype.bezierCurveTo=function(J,Y,K,Z,X,Q){this.commands.push({type:"C",x1:J,y1:Y,x2:K,y2:Z,x:X,y:Q})};f0.prototype.quadTo=f0.prototype.quadraticCurveTo=function(J,Y,K,Z){this.commands.push({type:"Q",x1:J,y1:Y,x:K,y:Z})};f0.prototype.close=f0.prototype.closePath=function(){this.commands.push({type:"Z"})};f0.prototype.extend=function(J){if(J.commands)J=J.commands;Array.prototype.push.apply(this.commands,J)};f0.prototype.toPathData=function(J){J=J!==void 0?J:2;function Y(W){if(Math.round(W)===W)return""+Math.round(W);else return W.toFixed(J)}function K(){var W=arguments,w="";for(var $=0;$<arguments.length;$+=1){var z=W[$];if(z>=0&&$>0)w+=" ";w+=Y(z)}return w}var Z="";for(var X=0;X<this.commands.length;X+=1){var Q=this.commands[X];if(Q.type==="M")Z+="M"+K(Q.x,Q.y);else if(Q.type==="L")Z+="L"+K(Q.x,Q.y);else if(Q.type==="C")Z+="C"+K(Q.x1,Q.y1,Q.x2,Q.y2,Q.x,Q.y);else if(Q.type==="Q")Z+="Q"+K(Q.x1,Q.y1,Q.x,Q.y);else if(Q.type==="Z")Z+="Z"}return Z};var WW=[".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"],$W=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],wW=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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 Y=J.codePointAt(0),K=this.font.glyphs;if(K)for(var Z=0;Z<K.length;Z+=1){var X=K.get(Z);for(var Q=0;Q<X.unicodes.length;Q+=1)if(X.unicodes[Q]===Y)return Z}return null};function QJ(J){this.cmap=J}QJ.prototype.charToGlyphIndex=function(J){return this.cmap.glyphIndexMap[J.codePointAt(0)]||0};function T8(J,Y){this.encoding=J,this.charset=Y}T8.prototype.charToGlyphIndex=function(J){var Y=J.codePointAt(0),K=this.encoding[Y];return this.charset.indexOf(K)};function zW(J){var Y,K=J.tables.cmap.glyphIndexMap,Z=Object.keys(K);for(var X=0;X<Z.length;X+=1){var Q=Z[X],W=K[Q];Y=J.glyphs.get(W),Y.addUnicode(parseInt(Q))}}function UW(J){J._IndexToUnicodeMap={};var Y=J.tables.cmap.glyphIndexMap,K=Object.keys(Y);for(var Z=0;Z<K.length;Z+=1){var X=K[Z],Q=Y[X];if(J._IndexToUnicodeMap[Q]===void 0)J._IndexToUnicodeMap[Q]={unicodes:[parseInt(X)]};else J._IndexToUnicodeMap[Q].unicodes.push(parseInt(X))}}function HW(J,Y){if(Y.lowMemory)UW(J);else zW(J)}function WJ(J){throw Error(J)}function _2(J,Y){if(!J)WJ(Y)}var U0={fail:WJ,argument:_2,assert:_2};function AW(J,Y){var K=Y||new f0;return{configurable:!0,get:function(){if(typeof K==="function")K=K();return K},set:function(Z){K=Z}}}function v1(J){this.bindConstructorValues(J)}v1.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",AW(this,J.path))};v1.prototype.addUnicode=function(J){if(this.unicodes.length===0)this.unicode=J;this.unicodes.push(J)};v1.prototype.getPath=function(J,Y,K,Z,X){J=J!==void 0?J:0,Y=Y!==void 0?Y:0,K=K!==void 0?K:72;var Q,W;if(!Z)Z={};var{xScale:w,yScale:$}=Z;if(Z.hinting&&X&&X.hinting)W=this.path&&X.hinting.exec(this,K);if(W)Q=X.hinting.getCommands(W),J=Math.round(J),Y=Math.round(Y),w=$=1;else{Q=this.path.commands;var z=1/(this.path.unitsPerEm||1000)*K;if(w===void 0)w=z;if($===void 0)$=z}var U=new f0;for(var H=0;H<Q.length;H+=1){var A=Q[H];if(A.type==="M")U.moveTo(J+A.x*w,Y+-A.y*$);else if(A.type==="L")U.lineTo(J+A.x*w,Y+-A.y*$);else if(A.type==="Q")U.quadraticCurveTo(J+A.x1*w,Y+-A.y1*$,J+A.x*w,Y+-A.y*$);else if(A.type==="C")U.curveTo(J+A.x1*w,Y+-A.y1*$,J+A.x2*w,Y+-A.y2*$,J+A.x*w,Y+-A.y*$);else if(A.type==="Z")U.closePath()}return U};v1.prototype.getContours=function(){if(this.points===void 0)return[];var J=[],Y=[];for(var K=0;K<this.points.length;K+=1){var Z=this.points[K];if(Y.push(Z),Z.lastPointOfContour)J.push(Y),Y=[]}return U0.argument(Y.length===0,"There are still points left in the current contour."),J};v1.prototype.getMetrics=function(){var J=this.path.commands,Y=[],K=[];for(var Z=0;Z<J.length;Z+=1){var X=J[Z];if(X.type!=="Z")Y.push(X.x),K.push(X.y);if(X.type==="Q"||X.type==="C")Y.push(X.x1),K.push(X.y1);if(X.type==="C")Y.push(X.x2),K.push(X.y2)}var Q={xMin:Math.min.apply(null,Y),yMin:Math.min.apply(null,K),xMax:Math.max.apply(null,Y),yMax:Math.max.apply(null,K),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 D8(J,Y,K){Object.defineProperty(J,Y,{get:function(){return J.path,J[K]},set:function(Z){J[K]=Z},enumerable:!0,configurable:!0})}function _9(J,Y){if(this.font=J,this.glyphs={},Array.isArray(Y))for(var K=0;K<Y.length;K++){var Z=Y[K];Z.path.unitsPerEm=J.unitsPerEm,this.glyphs[K]=Z}this.length=Y&&Y.length||0}_9.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 Y=this.glyphs[J],K=this.font._IndexToUnicodeMap[J];if(K)for(var Z=0;Z<K.unicodes.length;Z++)Y.addUnicode(K.unicodes[Z]);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]};_9.prototype.push=function(J,Y){this.glyphs[J]=Y,this.length++};function VW(J,Y){return new v1({index:Y,font:J})}function BW(J,Y,K,Z,X,Q){return function(){var W=new v1({index:Y,font:J});return W.path=function(){K(W,Z,X);var w=Q(J.glyphs,W);return w.unitsPerEm=J.unitsPerEm,w},D8(W,"xMin","_xMin"),D8(W,"xMax","_xMax"),D8(W,"yMin","_yMin"),D8(W,"yMax","_yMax"),W}}function GW(J,Y,K,Z){return function(){var X=new v1({index:Y,font:J});return X.path=function(){var Q=K(J,X,Z);return Q.unitsPerEm=J.unitsPerEm,Q},X}}var I1={GlyphSet:_9,glyphLoader:VW,ttfGlyphLoader:BW,cffGlyphLoader:GW};function B9(J,Y){var K=0,Z=J.length-1;while(K<=Z){var X=K+Z>>>1,Q=J[X].tag;if(Q===Y)return X;else if(Q<Y)K=X+1;else Z=X-1}return-K-1}function I2(J,Y){var K=0,Z=J.length-1;while(K<=Z){var X=K+Z>>>1,Q=J[X];if(Q===Y)return X;else if(Q<Y)K=X+1;else Z=X-1}return-K-1}function D2(J,Y){var K,Z=0,X=J.length-1;while(Z<=X){var Q=Z+X>>>1;K=J[Q];var W=K.start;if(W===Y)return K;else if(W<Y)Z=Q+1;else X=Q-1}if(Z>0){if(K=J[Z-1],Y>K.end)return 0;return K}}function l5(J,Y){this.font=J,this.tableName=Y}l5.prototype={searchTag:B9,binSearch:I2,getTable:function(J){var Y=this.font.tables[this.tableName];if(!Y&&J)Y=this.font.tables[this.tableName]=this.createDefaultTable();return Y},getDefaultScriptName:function(){var J=this.getTable();if(!J)return;var Y=!1;for(var K=0;K<J.scripts.length;K++){var Z=J.scripts[K].tag;if(Z==="DFLT")return Z;if(Z==="latn")Y=!0}if(Y)return"latn"},getScriptTable:function(J,Y){var K=this.getTable(Y);if(K){J=J||"DFLT";var Z=K.scripts,X=B9(K.scripts,J);if(X>=0)return Z[X].script;else if(Y){var Q={tag:J,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return Z.splice(-1-X,0,Q),Q.script}}},getLangSysTable:function(J,Y,K){var Z=this.getScriptTable(J,K);if(Z){if(!Y||Y==="dflt"||Y==="DFLT")return Z.defaultLangSys;var X=B9(Z.langSysRecords,Y);if(X>=0)return Z.langSysRecords[X].langSys;else if(K){var Q={tag:Y,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return Z.langSysRecords.splice(-1-X,0,Q),Q.langSys}}},getFeatureTable:function(J,Y,K,Z){var X=this.getLangSysTable(J,Y,Z);if(X){var Q,W=X.featureIndexes,w=this.font.tables[this.tableName].features;for(var $=0;$<W.length;$++)if(Q=w[W[$]],Q.tag===K)return Q.feature;if(Z){var z=w.length;return U0.assert(z===0||K>=w[z-1].tag,"Features must be added in alphabetical order."),Q={tag:K,feature:{params:0,lookupListIndexes:[]}},w.push(Q),W.push(z),Q.feature}}},getLookupTables:function(J,Y,K,Z,X){var Q=this.getFeatureTable(J,Y,K,X),W=[];if(Q){var w,$=Q.lookupListIndexes,z=this.font.tables[this.tableName].lookups;for(var U=0;U<$.length;U++)if(w=z[$[U]],w.lookupType===Z)W.push(w);if(W.length===0&&X){w={lookupType:Z,lookupFlag:0,subtables:[],markFilteringSet:void 0};var H=z.length;return z.push(w),$.push(H),[w]}}return W},getGlyphClass:function(J,Y){switch(J.format){case 1:if(J.startGlyph<=Y&&Y<J.startGlyph+J.classes.length)return J.classes[Y-J.startGlyph];return 0;case 2:var K=D2(J.ranges,Y);return K?K.classId:0}},getCoverageIndex:function(J,Y){switch(J.format){case 1:var K=I2(J.glyphs,Y);return K>=0?K:-1;case 2:var Z=D2(J.ranges,Y);return Z?Z.index+Y-Z.start:-1}},expandCoverage:function(J){if(J.format===1)return J.glyphs;else{var Y=[],K=J.ranges;for(var Z=0;Z<K.length;Z++){var X=K[Z],Q=X.start,W=X.end;for(var w=Q;w<=W;w++)Y.push(w)}return Y}}};function p5(J){l5.call(this,J,"gpos")}p5.prototype=l5.prototype;p5.prototype.init=function(){var J=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(J)};p5.prototype.getKerningValue=function(J,Y,K){for(var Z=0;Z<J.length;Z++){var X=J[Z].subtables;for(var Q=0;Q<X.length;Q++){var W=X[Q],w=this.getCoverageIndex(W.coverage,Y);if(w<0)continue;switch(W.posFormat){case 1:var $=W.pairSets[w];for(var z=0;z<$.length;z++){var U=$[z];if(U.secondGlyph===K)return U.value1&&U.value1.xAdvance||0}break;case 2:var H=this.getGlyphClass(W.classDef1,Y),A=this.getGlyphClass(W.classDef2,K),V=W.classRecords[H][A];return V.value1&&V.value1.xAdvance||0}}}return 0};p5.prototype.getKerningTables=function(J,Y){if(this.font.tables.gpos)return this.getLookupTables(J,Y,"kern",2)};function s0(J){l5.call(this,J,"gsub")}function OW(J,Y){var K=J.length;if(K!==Y.length)return!1;for(var Z=0;Z<K;Z++)if(J[Z]!==Y[Z])return!1;return!0}function I9(J,Y,K){var Z=J.subtables;for(var X=0;X<Z.length;X++){var Q=Z[X];if(Q.substFormat===Y)return Q}if(K)return Z.push(K),K;return}s0.prototype=l5.prototype;s0.prototype.createDefaultTable=function(){return{version:1,scripts:[{tag:"DFLT",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}};s0.prototype.getSingle=function(J,Y,K){var Z=[],X=this.getLookupTables(Y,K,J,1);for(var Q=0;Q<X.length;Q++){var W=X[Q].subtables;for(var w=0;w<W.length;w++){var $=W[w],z=this.expandCoverage($.coverage),U=void 0;if($.substFormat===1){var H=$.deltaGlyphId;for(U=0;U<z.length;U++){var A=z[U];Z.push({sub:A,by:A+H})}}else{var V=$.substitute;for(U=0;U<z.length;U++)Z.push({sub:z[U],by:V[U]})}}}return Z};s0.prototype.getMultiple=function(J,Y,K){var Z=[],X=this.getLookupTables(Y,K,J,2);for(var Q=0;Q<X.length;Q++){var W=X[Q].subtables;for(var w=0;w<W.length;w++){var $=W[w],z=this.expandCoverage($.coverage),U=void 0;for(U=0;U<z.length;U++){var H=z[U],A=$.sequences[U];Z.push({sub:H,by:A})}}}return Z};s0.prototype.getAlternates=function(J,Y,K){var Z=[],X=this.getLookupTables(Y,K,J,3);for(var Q=0;Q<X.length;Q++){var W=X[Q].subtables;for(var w=0;w<W.length;w++){var $=W[w],z=this.expandCoverage($.coverage),U=$.alternateSets;for(var H=0;H<z.length;H++)Z.push({sub:z[H],by:U[H]})}}return Z};s0.prototype.getLigatures=function(J,Y,K){var Z=[],X=this.getLookupTables(Y,K,J,4);for(var Q=0;Q<X.length;Q++){var W=X[Q].subtables;for(var w=0;w<W.length;w++){var $=W[w],z=this.expandCoverage($.coverage),U=$.ligatureSets;for(var H=0;H<z.length;H++){var A=z[H],V=U[H];for(var L=0;L<V.length;L++){var B=V[L];Z.push({sub:[A].concat(B.components),by:B.ligGlyph})}}}}return Z};s0.prototype.addSingle=function(J,Y,K,Z){var X=this.getLookupTables(K,Z,J,1,!0)[0],Q=I9(X,2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});U0.assert(Q.coverage.format===1,"Single: unable to modify coverage table format "+Q.coverage.format);var W=Y.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]=Y.by};s0.prototype.addMultiple=function(J,Y,K,Z){U0.assert(Y.by instanceof Array&&Y.by.length>1,'Multiple: "by" must be an array of two or more ids');var X=this.getLookupTables(K,Z,J,2,!0)[0],Q=I9(X,1,{substFormat:1,coverage:{format:1,glyphs:[]},sequences:[]});U0.assert(Q.coverage.format===1,"Multiple: unable to modify coverage table format "+Q.coverage.format);var W=Y.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]=Y.by};s0.prototype.addAlternate=function(J,Y,K,Z){var X=this.getLookupTables(K,Z,J,3,!0)[0],Q=I9(X,1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});U0.assert(Q.coverage.format===1,"Alternate: unable to modify coverage table format "+Q.coverage.format);var W=Y.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]=Y.by};s0.prototype.addLigature=function(J,Y,K,Z){var X=this.getLookupTables(K,Z,J,4,!0)[0],Q=X.subtables[0];if(!Q)Q={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},X.subtables[0]=Q;U0.assert(Q.coverage.format===1,"Ligature: unable to modify coverage table format "+Q.coverage.format);var W=Y.sub[0],w=Y.sub.slice(1),$={ligGlyph:Y.by,components:w},z=this.binSearch(Q.coverage.glyphs,W);if(z>=0){var U=Q.ligatureSets[z];for(var H=0;H<U.length;H++)if(OW(U[H].components,w))return;U.push($)}else z=-1-z,Q.coverage.glyphs.splice(z,0,W),Q.ligatureSets.splice(z,0,[$])};s0.prototype.getFeature=function(J,Y,K){if(/ss\d\d/.test(J))return this.getSingle(J,Y,K);switch(J){case"aalt":case"salt":return this.getSingle(J,Y,K).concat(this.getAlternates(J,Y,K));case"dlig":case"liga":case"rlig":return this.getLigatures(J,Y,K);case"ccmp":return this.getMultiple(J,Y,K).concat(this.getLigatures(J,Y,K));case"stch":return this.getMultiple(J,Y,K)}return};s0.prototype.add=function(J,Y,K,Z){if(/ss\d\d/.test(J))return this.addSingle(J,Y,K,Z);switch(J){case"aalt":case"salt":if(typeof Y.by==="number")return this.addSingle(J,Y,K,Z);return this.addAlternate(J,Y,K,Z);case"dlig":case"liga":case"rlig":return this.addLigature(J,Y,K,Z);case"ccmp":if(Y.by instanceof Array)return this.addMultiple(J,Y,K,Z);return this.addLigature(J,Y,K,Z)}return};function f5(J,Y){if(!J)throw Y}function R2(J,Y){return J.getUint8(Y)}function P8(J,Y){return J.getUint16(Y,!1)}function LW(J,Y){return J.getInt16(Y,!1)}function D9(J,Y){return J.getUint32(Y,!1)}function $J(J,Y){var K=J.getInt16(Y,!1),Z=J.getUint16(Y+2,!1);return K+Z/65535}function MW(J,Y){var K="";for(var Z=Y;Z<Y+4;Z+=1)K+=String.fromCharCode(J.getInt8(Z));return K}function qW(J,Y,K){var Z=0;for(var X=0;X<K;X+=1)Z<<=8,Z+=J.getUint8(Y+X);return Z}function NW(J,Y,K){var Z=[];for(var X=Y;X<K;X+=1)Z.push(J.getUint8(X));return Z}function jW(J){var Y="";for(var K=0;K<J.length;K+=1)Y+=String.fromCharCode(J[K]);return Y}var EW={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function v(J,Y){this.data=J,this.offset=Y,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=D9(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,J};v.prototype.parseOffset32=v.prototype.parseULong;v.prototype.parseFixed=function(){var J=$J(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,J};v.prototype.parseString=function(J){var Y=this.data,K=this.offset+this.relativeOffset,Z="";this.relativeOffset+=J;for(var X=0;X<J;X++)Z+=String.fromCharCode(Y.getUint8(K+X));return Z};v.prototype.parseTag=function(){return this.parseString(4)};v.prototype.parseLongDateTime=function(){var J=D9(this.data,this.offset+this.relativeOffset+4);return J-=2082844800,this.relativeOffset+=8,J};v.prototype.parseVersion=function(J){var Y=P8(this.data,this.offset+this.relativeOffset),K=P8(this.data,this.offset+this.relativeOffset+2);if(this.relativeOffset+=4,J===void 0)J=4096;return Y+K/J/10};v.prototype.skip=function(J,Y){if(Y===void 0)Y=1;this.relativeOffset+=EW[J]*Y};v.prototype.parseULongList=function(J){if(J===void 0)J=this.parseULong();var Y=Array(J),K=this.data,Z=this.offset+this.relativeOffset;for(var X=0;X<J;X++)Y[X]=K.getUint32(Z),Z+=4;return this.relativeOffset+=J*4,Y};v.prototype.parseOffset16List=v.prototype.parseUShortList=function(J){if(J===void 0)J=this.parseUShort();var Y=Array(J),K=this.data,Z=this.offset+this.relativeOffset;for(var X=0;X<J;X++)Y[X]=K.getUint16(Z),Z+=2;return this.relativeOffset+=J*2,Y};v.prototype.parseShortList=function(J){var Y=Array(J),K=this.data,Z=this.offset+this.relativeOffset;for(var X=0;X<J;X++)Y[X]=K.getInt16(Z),Z+=2;return this.relativeOffset+=J*2,Y};v.prototype.parseByteList=function(J){var Y=Array(J),K=this.data,Z=this.offset+this.relativeOffset;for(var X=0;X<J;X++)Y[X]=K.getUint8(Z++);return this.relativeOffset+=J,Y};v.prototype.parseList=function(J,Y){if(!Y)Y=J,J=this.parseUShort();var K=Array(J);for(var Z=0;Z<J;Z++)K[Z]=Y.call(this);return K};v.prototype.parseList32=function(J,Y){if(!Y)Y=J,J=this.parseULong();var K=Array(J);for(var Z=0;Z<J;Z++)K[Z]=Y.call(this);return K};v.prototype.parseRecordList=function(J,Y){if(!Y)Y=J,J=this.parseUShort();var K=Array(J),Z=Object.keys(Y);for(var X=0;X<J;X++){var Q={};for(var W=0;W<Z.length;W++){var w=Z[W],$=Y[w];Q[w]=$.call(this)}K[X]=Q}return K};v.prototype.parseRecordList32=function(J,Y){if(!Y)Y=J,J=this.parseULong();var K=Array(J),Z=Object.keys(Y);for(var X=0;X<J;X++){var Q={};for(var W=0;W<Z.length;W++){var w=Z[W],$=Y[w];Q[w]=$.call(this)}K[X]=Q}return K};v.prototype.parseStruct=function(J){if(typeof J==="function")return J.call(this);else{var Y=Object.keys(J),K={};for(var Z=0;Z<Y.length;Z++){var X=Y[Z],Q=J[X];K[X]=Q.call(this)}return K}};v.prototype.parseValueRecord=function(J){if(J===void 0)J=this.parseUShort();if(J===0)return;var Y={};if(J&1)Y.xPlacement=this.parseShort();if(J&2)Y.yPlacement=this.parseShort();if(J&4)Y.xAdvance=this.parseShort();if(J&8)Y.yAdvance=this.parseShort();if(J&16)Y.xPlaDevice=void 0,this.parseShort();if(J&32)Y.yPlaDevice=void 0,this.parseShort();if(J&64)Y.xAdvDevice=void 0,this.parseShort();if(J&128)Y.yAdvDevice=void 0,this.parseShort();return Y};v.prototype.parseValueRecordList=function(){var J=this.parseUShort(),Y=this.parseUShort(),K=Array(Y);for(var Z=0;Z<Y;Z++)K[Z]=this.parseValueRecord(J);return K};v.prototype.parsePointer=function(J){var Y=this.parseOffset16();if(Y>0)return new v(this.data,this.offset+Y).parseStruct(J);return};v.prototype.parsePointer32=function(J){var Y=this.parseOffset32();if(Y>0)return new v(this.data,this.offset+Y).parseStruct(J);return};v.prototype.parseListOfLists=function(J){var Y=this.parseOffset16List(),K=Y.length,Z=this.relativeOffset,X=Array(K);for(var Q=0;Q<K;Q++){var W=Y[Q];if(W===0){X[Q]=void 0;continue}if(this.relativeOffset=W,J){var w=this.parseOffset16List(),$=Array(w.length);for(var z=0;z<w.length;z++)this.relativeOffset=W+w[z],$[z]=J.call(this);X[Q]=$}else X[Q]=this.parseUShortList()}return this.relativeOffset=Z,X};v.prototype.parseCoverage=function(){var J=this.offset+this.relativeOffset,Y=this.parseUShort(),K=this.parseUShort();if(Y===1)return{format:1,glyphs:this.parseUShortList(K)};else if(Y===2){var Z=Array(K);for(var X=0;X<K;X++)Z[X]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:Z}}throw Error("0x"+J.toString(16)+": Coverage format must be 1 or 2.")};v.prototype.parseClassDef=function(){var J=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};else if(Y===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,Y){return function(){return this.parseList(J,Y)}};v.list32=function(J,Y){return function(){return this.parseList32(J,Y)}};v.recordList=function(J,Y){return function(){return this.parseRecordList(J,Y)}};v.recordList32=function(J,Y){return function(){return this.parseRecordList32(J,Y)}};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 C2={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(C2),langSysRecords:v.recordList({tag:v.tag,langSys:v.pointer(C2)})})}))||[]};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 Y=this.parseUShort();U0.argument(1<=Y&&Y<=9,"GPOS/GSUB lookup type "+Y+" unknown.");var K=this.parseUShort(),Z=K&16;return{lookupType:Y,lookupFlag:K,subtables:this.parseList(v.pointer(J[Y])),markFilteringSet:Z?this.parseUShort():void 0}})))||[]};v.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var J=this.parseUShort(),Y=this.parseUShort();U0.argument(J===1&&Y<1,"GPOS/GSUB feature variations table unknown.");var K=this.parseRecordList32({conditionSetOffset:v.offset32,featureTableSubstitutionOffset:v.offset32});return K})||[]};var o={getByte:R2,getCard8:R2,getUShort:P8,getCard16:P8,getShort:LW,getULong:D9,getFixed:$J,getTag:MW,getOffset:qW,getBytes:NW,bytesToString:jW,Parser:v};function T2(J,Y,K,Z,X){var Q;if((Y&Z)>0){if(Q=J.parseByte(),(Y&X)===0)Q=-Q;Q=K+Q}else if((Y&X)>0)Q=K;else Q=K+J.parseShort();return Q}function wJ(J,Y,K){var Z=new o.Parser(Y,K);J.numberOfContours=Z.parseShort(),J._xMin=Z.parseShort(),J._yMin=Z.parseShort(),J._xMax=Z.parseShort(),J._yMax=Z.parseShort();var X,Q;if(J.numberOfContours>0){var W=J.endPointIndices=[];for(var w=0;w<J.numberOfContours;w+=1)W.push(Z.parseUShort());J.instructionLength=Z.parseUShort(),J.instructions=[];for(var $=0;$<J.instructionLength;$+=1)J.instructions.push(Z.parseByte());var z=W[W.length-1]+1;X=[];for(var U=0;U<z;U+=1)if(Q=Z.parseByte(),X.push(Q),(Q&8)>0){var H=Z.parseByte();for(var A=0;A<H;A+=1)X.push(Q),U+=1}if(U0.argument(X.length===z,"Bad flags."),W.length>0){var V=[],L;if(z>0){for(var B=0;B<z;B+=1)Q=X[B],L={},L.onCurve=!!(Q&1),L.lastPointOfContour=W.indexOf(B)>=0,V.push(L);var O=0;for(var q=0;q<z;q+=1)Q=X[q],L=V[q],L.x=T2(Z,Q,O,2,16),O=L.x;var N=0;for(var E=0;E<z;E+=1)Q=X[E],L=V[E],L.y=T2(Z,Q,N,4,32),N=L.y}J.points=V}else J.points=[]}else if(J.numberOfContours===0)J.points=[];else{J.isComposite=!0,J.points=[],J.components=[];var I=!0;while(I){X=Z.parseUShort();var F={glyphIndex:Z.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};if((X&1)>0)if((X&2)>0)F.dx=Z.parseShort(),F.dy=Z.parseShort();else F.matchedPoints=[Z.parseUShort(),Z.parseUShort()];else if((X&2)>0)F.dx=Z.parseChar(),F.dy=Z.parseChar();else F.matchedPoints=[Z.parseByte(),Z.parseByte()];if((X&8)>0)F.xScale=F.yScale=Z.parseF2Dot14();else if((X&64)>0)F.xScale=Z.parseF2Dot14(),F.yScale=Z.parseF2Dot14();else if((X&128)>0)F.xScale=Z.parseF2Dot14(),F.scale01=Z.parseF2Dot14(),F.scale10=Z.parseF2Dot14(),F.yScale=Z.parseF2Dot14();J.components.push(F),I=!!(X&32)}if(X&256){J.instructionLength=Z.parseUShort(),J.instructions=[];for(var j=0;j<J.instructionLength;j+=1)J.instructions.push(Z.parseByte())}}}function G9(J,Y){var K=[];for(var Z=0;Z<J.length;Z+=1){var X=J[Z],Q={x:Y.xScale*X.x+Y.scale01*X.y+Y.dx,y:Y.scale10*X.x+Y.yScale*X.y+Y.dy,onCurve:X.onCurve,lastPointOfContour:X.lastPointOfContour};K.push(Q)}return K}function FW(J){var Y=[],K=[];for(var Z=0;Z<J.length;Z+=1){var X=J[Z];if(K.push(X),X.lastPointOfContour)Y.push(K),K=[]}return U0.argument(K.length===0,"There are still points left in the current contour."),Y}function zJ(J){var Y=new f0;if(!J)return Y;var K=FW(J);for(var Z=0;Z<K.length;++Z){var X=K[Z],Q=null,W=X[X.length-1],w=X[0];if(W.onCurve)Y.moveTo(W.x,W.y);else if(w.onCurve)Y.moveTo(w.x,w.y);else{var $={x:(W.x+w.x)*0.5,y:(W.y+w.y)*0.5};Y.moveTo($.x,$.y)}for(var z=0;z<X.length;++z)if(Q=W,W=w,w=X[(z+1)%X.length],W.onCurve)Y.lineTo(W.x,W.y);else{var U=Q,H=w;if(!Q.onCurve)U={x:(W.x+Q.x)*0.5,y:(W.y+Q.y)*0.5};if(!w.onCurve)H={x:(W.x+w.x)*0.5,y:(W.y+w.y)*0.5};Y.quadraticCurveTo(W.x,W.y,H.x,H.y)}Y.closePath()}return Y}function UJ(J,Y){if(Y.isComposite)for(var K=0;K<Y.components.length;K+=1){var Z=Y.components[K],X=J.get(Z.glyphIndex);if(X.getPath(),X.points){var Q=void 0;if(Z.matchedPoints===void 0)Q=G9(X.points,Z);else{if(Z.matchedPoints[0]>Y.points.length-1||Z.matchedPoints[1]>X.points.length-1)throw Error("Matched points out of range in "+Y.name);var W=Y.points[Z.matchedPoints[0]],w=X.points[Z.matchedPoints[1]],$={xScale:Z.xScale,scale01:Z.scale01,scale10:Z.scale10,yScale:Z.yScale,dx:0,dy:0};w=G9([w],$)[0],$.dx=W.x-w.x,$.dy=W.y-w.y,Q=G9(X.points,$)}Y.points=Y.points.concat(Q)}}return zJ(Y.points)}function _W(J,Y,K,Z){var X=new I1.GlyphSet(Z);for(var Q=0;Q<K.length-1;Q+=1){var W=K[Q],w=K[Q+1];if(W!==w)X.push(Q,I1.ttfGlyphLoader(Z,Q,wJ,J,Y+W,UJ));else X.push(Q,I1.glyphLoader(Z,Q))}return X}function IW(J,Y,K,Z){var X=new I1.GlyphSet(Z);return Z._push=function(Q){var W=K[Q],w=K[Q+1];if(W!==w)X.push(Q,I1.ttfGlyphLoader(Z,Q,wJ,J,Y+W,UJ));else X.push(Q,I1.glyphLoader(Z,Q))},X}function DW(J,Y,K,Z,X){if(X.lowMemory)return IW(J,Y,K,Z);else return _W(J,Y,K,Z)}var HJ={getPath:zJ,parse:DW},AJ,X5,VJ,E9;function BJ(J){this.font=J,this.getCommands=function(Y){return HJ.getPath(Y).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function RW(J){return J}function GJ(J){return Math.sign(J)*Math.round(Math.abs(J))}function CW(J){return Math.sign(J)*Math.round(Math.abs(J*2))/2}function TW(J){return Math.sign(J)*(Math.round(Math.abs(J)+0.5)-0.5)}function PW(J){return Math.sign(J)*Math.ceil(Math.abs(J))}function SW(J){return Math.sign(J)*Math.floor(Math.abs(J))}var OJ=function(J){var Y=this.srPeriod,K=this.srPhase,Z=this.srThreshold,X=1;if(J<0)J=-J,X=-1;if(J+=Z-K,J=Math.trunc(J/Y)*Y,J+=K,J<0)return K*X;return J*X},_1={x:1,y:0,axis:"x",distance:function(J,Y,K,Z){return(K?J.xo:J.x)-(Z?Y.xo:Y.x)},interpolate:function(J,Y,K,Z){var X,Q,W,w,$,z,U;if(!Z||Z===this){if(X=J.xo-Y.xo,Q=J.xo-K.xo,$=Y.x-Y.xo,z=K.x-K.xo,W=Math.abs(X),w=Math.abs(Q),U=W+w,U===0){J.x=J.xo+($+z)/2;return}J.x=J.xo+($*w+z*W)/U;return}if(X=Z.distance(J,Y,!0,!0),Q=Z.distance(J,K,!0,!0),$=Z.distance(Y,Y,!1,!0),z=Z.distance(K,K,!1,!0),W=Math.abs(X),w=Math.abs(Q),U=W+w,U===0){_1.setRelative(J,J,($+z)/2,Z,!0);return}_1.setRelative(J,J,($*w+z*W)/U,Z,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(J,Y,K,Z,X){if(!Z||Z===this){J.x=(X?Y.xo:Y.x)+K;return}var Q=X?Y.xo:Y.x,W=X?Y.yo:Y.y,w=Q+K*Z.x,$=W+K*Z.y;J.x=w+(J.y-$)/Z.normalSlope},slope:0,touch:function(J){J.xTouched=!0},touched:function(J){return J.xTouched},untouch:function(J){J.xTouched=!1}},P1={x:0,y:1,axis:"y",distance:function(J,Y,K,Z){return(K?J.yo:J.y)-(Z?Y.yo:Y.y)},interpolate:function(J,Y,K,Z){var X,Q,W,w,$,z,U;if(!Z||Z===this){if(X=J.yo-Y.yo,Q=J.yo-K.yo,$=Y.y-Y.yo,z=K.y-K.yo,W=Math.abs(X),w=Math.abs(Q),U=W+w,U===0){J.y=J.yo+($+z)/2;return}J.y=J.yo+($*w+z*W)/U;return}if(X=Z.distance(J,Y,!0,!0),Q=Z.distance(J,K,!0,!0),$=Z.distance(Y,Y,!1,!0),z=Z.distance(K,K,!1,!0),W=Math.abs(X),w=Math.abs(Q),U=W+w,U===0){P1.setRelative(J,J,($+z)/2,Z,!0);return}P1.setRelative(J,J,($*w+z*W)/U,Z,!0)},normalSlope:0,setRelative:function(J,Y,K,Z,X){if(!Z||Z===this){J.y=(X?Y.yo:Y.y)+K;return}var Q=X?Y.xo:Y.x,W=X?Y.yo:Y.y,w=Q+K*Z.x,$=W+K*Z.y;J.y=$+Z.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(_1);Object.freeze(P1);function i5(J,Y){this.x=J,this.y=Y,this.axis=void 0,this.slope=Y/J,this.normalSlope=-J/Y,Object.freeze(this)}i5.prototype.distance=function(J,Y,K,Z){return this.x*_1.distance(J,Y,K,Z)+this.y*P1.distance(J,Y,K,Z)};i5.prototype.interpolate=function(J,Y,K,Z){var X,Q,W,w,$,z,U;if(W=Z.distance(J,Y,!0,!0),w=Z.distance(J,K,!0,!0),X=Z.distance(Y,Y,!1,!0),Q=Z.distance(K,K,!1,!0),$=Math.abs(W),z=Math.abs(w),U=$+z,U===0){this.setRelative(J,J,(X+Q)/2,Z,!0);return}this.setRelative(J,J,(X*z+Q*$)/U,Z,!0)};i5.prototype.setRelative=function(J,Y,K,Z,X){Z=Z||this;var Q=X?Y.xo:Y.x,W=X?Y.yo:Y.y,w=Q+K*Z.x,$=W+K*Z.y,z=Z.normalSlope,U=this.slope,H=J.x,A=J.y;J.x=(U*H-z*w+$-A)/(U-z),J.y=U*(J.x-H)+A};i5.prototype.touch=function(J){J.xTouched=!0,J.yTouched=!0};function n5(J,Y){var K=Math.sqrt(J*J+Y*Y);if(J/=K,Y/=K,J===1&&Y===0)return _1;else if(J===0&&Y===1)return P1;else return new i5(J,Y)}function S1(J,Y,K,Z){this.x=this.xo=Math.round(J*64)/64,this.y=this.yo=Math.round(Y*64)/64,this.lastPointOfContour=K,this.onCurve=Z,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}S1.prototype.nextTouched=function(J){var Y=this.nextPointOnContour;while(!J.touched(Y)&&Y!==this)Y=Y.nextPointOnContour;return Y};S1.prototype.prevTouched=function(J){var Y=this.prevPointOnContour;while(!J.touched(Y)&&Y!==this)Y=Y.prevPointOnContour;return Y};var d5=Object.freeze(new S1(0,0)),vW={cvCutIn:1.0625,deltaBase:9,deltaShift:0.125,loop:1,minDis:1,autoFlip:!0};function p1(J,Y){switch(this.env=J,this.stack=[],this.prog=Y,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=_1,this.round=GJ}}BJ.prototype.exec=function(J,Y){if(typeof Y!=="number")throw Error("Point size is not a number!");if(this._errorState>2)return;var K=this.font,Z=this._prepState;if(!Z||Z.ppem!==Y){var X=this._fpgmState;if(!X){if(p1.prototype=vW,X=this._fpgmState=new p1("fpgm",K.tables.fpgm),X.funcs=[],X.font=K,qB.DEBUG)console.log("---EXEC FPGM---"),X.step=-1;try{X5(X)}catch(z){console.log("Hinting error in FPGM:"+z),this._errorState=3;return}}p1.prototype=X,Z=this._prepState=new p1("prep",K.tables.prep),Z.ppem=Y;var Q=K.tables.cvt;if(Q){var W=Z.cvt=Array(Q.length),w=Y/K.unitsPerEm;for(var $=0;$<Q.length;$++)W[$]=Q[$]*w}else Z.cvt=[];if(qB.DEBUG)console.log("---EXEC PREP---"),Z.step=-1;try{X5(Z)}catch(z){if(this._errorState<2)console.log("Hinting error in PREP:"+z);this._errorState=2}}if(this._errorState>1)return;try{return VJ(J,Z)}catch(z){if(this._errorState<1)console.log("Hinting error:"+z),console.log("Note: further hinting errors are silenced");this._errorState=1;return}};VJ=function(J,Y){var K=Y.ppem/Y.font.unitsPerEm,Z=K,X=J.components,Q,W,w;if(p1.prototype=Y,!X){if(w=new p1("glyf",J.instructions),qB.DEBUG)console.log("---EXEC GLYPH---"),w.step=-1;E9(J,w,K,Z),W=w.gZone}else{var $=Y.font;W=[],Q=[];for(var z=0;z<X.length;z++){var U=X[z],H=$.glyphs.get(U.glyphIndex);if(w=new p1("glyf",H.instructions),qB.DEBUG)console.log("---EXEC COMP "+z+"---"),w.step=-1;E9(H,w,K,Z);var A=Math.round(U.dx*K),V=Math.round(U.dy*Z),L=w.gZone,B=w.contours;for(var O=0;O<L.length;O++){var q=L[O];q.xTouched=q.yTouched=!1,q.xo=q.x=q.x+A,q.yo=q.y=q.y+V}var N=W.length;W.push.apply(W,L);for(var E=0;E<B.length;E++)Q.push(B[E]+N)}if(J.instructions&&!w.inhibitGridFit){if(w=new p1("glyf",J.instructions),w.gZone=w.z0=w.z1=w.z2=W,w.contours=Q,W.push(new S1(0,0),new S1(Math.round(J.advanceWidth*K),0)),qB.DEBUG)console.log("---EXEC COMPOSITE---"),w.step=-1;X5(w),W.length-=2}}return W};E9=function(J,Y,K,Z){var X=J.points||[],Q=X.length,W=Y.gZone=Y.z0=Y.z1=Y.z2=[],w=Y.contours=[],$;for(var z=0;z<Q;z++)$=X[z],W[z]=new S1($.x*K,$.y*Z,$.lastPointOfContour,$.onCurve);var U,H;for(var A=0;A<Q;A++){if($=W[A],!U)U=$,w.push(A);if($.lastPointOfContour)$.nextPointOnContour=U,U.prevPointOnContour=$,U=void 0;else H=W[A+1],$.nextPointOnContour=H,H.prevPointOnContour=$}if(Y.inhibitGridFit)return;if(qB.DEBUG){console.log("PROCESSING GLYPH",Y.stack);for(var V=0;V<Q;V++)console.log(V,W[V].x,W[V].y)}if(W.push(new S1(0,0),new S1(Math.round(J.advanceWidth*K),0)),X5(Y),W.length-=2,qB.DEBUG){console.log("FINISHED GLYPH",Y.stack);for(var L=0;L<Q;L++)console.log(L,W[L].x,W[L].y)}};X5=function(J){var Y=J.prog;if(!Y)return;var K=Y.length,Z;for(J.ip=0;J.ip<K;J.ip++){if(qB.DEBUG)J.step++;if(Z=AJ[Y[J.ip]],!Z)throw Error("unknown instruction: 0x"+Number(Y[J.ip]).toString(16));Z(J)}};function S8(J){var Y=J.tZone=Array(J.gZone.length);for(var K=0;K<Y.length;K++)Y[K]=new S1(0,0)}function LJ(J,Y){var{prog:K,ip:Z}=J,X=1,Q;do if(Q=K[++Z],Q===88)X++;else if(Q===89)X--;else if(Q===64)Z+=K[Z+1]+1;else if(Q===65)Z+=2*K[Z+1]+1;else if(Q>=176&&Q<=183)Z+=Q-176+1;else if(Q>=184&&Q<=191)Z+=(Q-184+1)*2;else if(Y&&X===1&&Q===27)break;while(X>0);J.ip=Z}function P2(J,Y){if(qB.DEBUG)console.log(Y.step,"SVTCA["+J.axis+"]");Y.fv=Y.pv=Y.dpv=J}function S2(J,Y){if(qB.DEBUG)console.log(Y.step,"SPVTCA["+J.axis+"]");Y.pv=Y.dpv=J}function v2(J,Y){if(qB.DEBUG)console.log(Y.step,"SFVTCA["+J.axis+"]");Y.fv=J}function k2(J,Y){var K=Y.stack,Z=K.pop(),X=K.pop(),Q=Y.z2[Z],W=Y.z1[X];if(qB.DEBUG)console.log("SPVTL["+J+"]",Z,X);var w,$;if(!J)w=W.x-Q.x,$=W.y-Q.y;else w=Q.y-W.y,$=W.x-Q.x;Y.pv=Y.dpv=n5(w,$)}function y2(J,Y){var K=Y.stack,Z=K.pop(),X=K.pop(),Q=Y.z2[Z],W=Y.z1[X];if(qB.DEBUG)console.log("SFVTL["+J+"]",Z,X);var w,$;if(!J)w=W.x-Q.x,$=W.y-Q.y;else w=Q.y-W.y,$=W.x-Q.x;Y.fv=n5(w,$)}function kW(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(qB.DEBUG)console.log(J.step,"SPVFS[]",K,Z);J.pv=J.dpv=n5(Z,K)}function yW(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(qB.DEBUG)console.log(J.step,"SPVFS[]",K,Z);J.fv=n5(Z,K)}function hW(J){var{stack:Y,pv:K}=J;if(qB.DEBUG)console.log(J.step,"GPV[]");Y.push(K.x*16384),Y.push(K.y*16384)}function gW(J){var{stack:Y,fv:K}=J;if(qB.DEBUG)console.log(J.step,"GFV[]");Y.push(K.x*16384),Y.push(K.y*16384)}function xW(J){if(J.fv=J.pv,qB.DEBUG)console.log(J.step,"SFVTPV[]")}function bW(J){var Y=J.stack,K=Y.pop(),Z=Y.pop(),X=Y.pop(),Q=Y.pop(),W=Y.pop(),w=J.z0,$=J.z1,z=w[K],U=w[Z],H=$[X],A=$[Q],V=J.z2[W];if(qB.DEBUG)console.log("ISECT[], ",K,Z,X,Q,W);var{x:L,y:B}=z,O=U.x,q=U.y,N=H.x,E=H.y,I=A.x,F=A.y,j=(L-O)*(E-F)-(B-q)*(N-I),T=L*q-B*O,D=N*F-E*I;V.x=(T*(N-I)-D*(L-O))/j,V.y=(T*(E-F)-D*(B-q))/j}function fW(J){if(J.rp0=J.stack.pop(),qB.DEBUG)console.log(J.step,"SRP0[]",J.rp0)}function mW(J){if(J.rp1=J.stack.pop(),qB.DEBUG)console.log(J.step,"SRP1[]",J.rp1)}function cW(J){if(J.rp2=J.stack.pop(),qB.DEBUG)console.log(J.step,"SRP2[]",J.rp2)}function dW(J){var Y=J.stack.pop();if(qB.DEBUG)console.log(J.step,"SZP0[]",Y);switch(J.zp0=Y,Y){case 0:if(!J.tZone)S8(J);J.z0=J.tZone;break;case 1:J.z0=J.gZone;break;default:throw Error("Invalid zone pointer")}}function uW(J){var Y=J.stack.pop();if(qB.DEBUG)console.log(J.step,"SZP1[]",Y);switch(J.zp1=Y,Y){case 0:if(!J.tZone)S8(J);J.z1=J.tZone;break;case 1:J.z1=J.gZone;break;default:throw Error("Invalid zone pointer")}}function lW(J){var Y=J.stack.pop();if(qB.DEBUG)console.log(J.step,"SZP2[]",Y);switch(J.zp2=Y,Y){case 0:if(!J.tZone)S8(J);J.z2=J.tZone;break;case 1:J.z2=J.gZone;break;default:throw Error("Invalid zone pointer")}}function pW(J){var Y=J.stack.pop();if(qB.DEBUG)console.log(J.step,"SZPS[]",Y);switch(J.zp0=J.zp1=J.zp2=Y,Y){case 0:if(!J.tZone)S8(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 iW(J){if(J.loop=J.stack.pop(),qB.DEBUG)console.log(J.step,"SLOOP[]",J.loop)}function nW(J){if(qB.DEBUG)console.log(J.step,"RTG[]");J.round=GJ}function oW(J){if(qB.DEBUG)console.log(J.step,"RTHG[]");J.round=TW}function rW(J){var Y=J.stack.pop();if(qB.DEBUG)console.log(J.step,"SMD[]",Y);J.minDis=Y/64}function sW(J){if(qB.DEBUG)console.log(J.step,"ELSE[]");LJ(J,!1)}function aW(J){var Y=J.stack.pop();if(qB.DEBUG)console.log(J.step,"JMPR[]",Y);J.ip+=Y-1}function tW(J){var Y=J.stack.pop();if(qB.DEBUG)console.log(J.step,"SCVTCI[]",Y);J.cvCutIn=Y/64}function eW(J){var Y=J.stack;if(qB.DEBUG)console.log(J.step,"DUP[]");Y.push(Y[Y.length-1])}function O9(J){if(qB.DEBUG)console.log(J.step,"POP[]");J.stack.pop()}function J$(J){if(qB.DEBUG)console.log(J.step,"CLEAR[]");J.stack.length=0}function Y$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(qB.DEBUG)console.log(J.step,"SWAP[]");Y.push(K),Y.push(Z)}function K$(J){var Y=J.stack;if(qB.DEBUG)console.log(J.step,"DEPTH[]");Y.push(Y.length)}function Z$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(qB.DEBUG)console.log(J.step,"LOOPCALL[]",K,Z);var{ip:X,prog:Q}=J;J.prog=J.funcs[K];for(var W=0;W<Z;W++)if(X5(J),qB.DEBUG)console.log(++J.step,W+1<Z?"next loopcall":"done loopcall",W);J.ip=X,J.prog=Q}function X$(J){var Y=J.stack.pop();if(qB.DEBUG)console.log(J.step,"CALL[]",Y);var{ip:K,prog:Z}=J;if(J.prog=J.funcs[Y],X5(J),J.ip=K,J.prog=Z,qB.DEBUG)console.log(++J.step,"returning from",Y)}function Q$(J){var Y=J.stack,K=Y.pop();if(qB.DEBUG)console.log(J.step,"CINDEX[]",K);Y.push(Y[Y.length-K])}function W$(J){var Y=J.stack,K=Y.pop();if(qB.DEBUG)console.log(J.step,"MINDEX[]",K);Y.push(Y.splice(Y.length-K,1)[0])}function $$(J){if(J.env!=="fpgm")throw Error("FDEF not allowed here");var{stack:Y,prog:K,ip:Z}=J,X=Y.pop(),Q=Z;if(qB.DEBUG)console.log(J.step,"FDEF[]",X);while(K[++Z]!==45);J.ip=Z,J.funcs[X]=K.slice(Q+1,Z)}function h2(J,Y){var K=Y.stack.pop(),Z=Y.z0[K],X=Y.fv,Q=Y.pv;if(qB.DEBUG)console.log(Y.step,"MDAP["+J+"]",K);var W=Q.distance(Z,d5);if(J)W=Y.round(W);X.setRelative(Z,d5,W,Q),X.touch(Z),Y.rp0=Y.rp1=K}function g2(J,Y){var K=Y.z2,Z=K.length-2,X,Q,W;if(qB.DEBUG)console.log(Y.step,"IUP["+J.axis+"]");for(var w=0;w<Z;w++){if(X=K[w],J.touched(X))continue;if(Q=X.prevTouched(J),Q===X)continue;if(W=X.nextTouched(J),Q===W)J.setRelative(X,X,J.distance(Q,Q,!1,!0),J,!0);J.interpolate(X,Q,W,J)}}function x2(J,Y){var K=Y.stack,Z=J?Y.rp1:Y.rp2,X=(J?Y.z0:Y.z1)[Z],Q=Y.fv,W=Y.pv,w=Y.loop,$=Y.z2;while(w--){var z=K.pop(),U=$[z],H=W.distance(X,X,!1,!0);if(Q.setRelative(U,U,H,W),Q.touch(U),qB.DEBUG)console.log(Y.step,(Y.loop>1?"loop "+(Y.loop-w)+": ":"")+"SHP["+(J?"rp1":"rp2")+"]",z)}Y.loop=1}function b2(J,Y){var K=Y.stack,Z=J?Y.rp1:Y.rp2,X=(J?Y.z0:Y.z1)[Z],Q=Y.fv,W=Y.pv,w=K.pop(),$=Y.z2[Y.contours[w]],z=$;if(qB.DEBUG)console.log(Y.step,"SHC["+J+"]",w);var U=W.distance(X,X,!1,!0);do{if(z!==X)Q.setRelative(z,z,U,W);z=z.nextPointOnContour}while(z!==$)}function f2(J,Y){var K=Y.stack,Z=J?Y.rp1:Y.rp2,X=(J?Y.z0:Y.z1)[Z],Q=Y.fv,W=Y.pv,w=K.pop();if(qB.DEBUG)console.log(Y.step,"SHZ["+J+"]",w);var $;switch(w){case 0:$=Y.tZone;break;case 1:$=Y.gZone;break;default:throw Error("Invalid zone")}var z,U=W.distance(X,X,!1,!0),H=$.length-2;for(var A=0;A<H;A++)z=$[A],Q.setRelative(z,z,U,W)}function w$(J){var{stack:Y,loop:K,fv:Z}=J,X=Y.pop()/64,Q=J.z2;while(K--){var W=Y.pop(),w=Q[W];if(qB.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-K)+": ":"")+"SHPIX[]",W,X);Z.setRelative(w,w,X),Z.touch(w)}J.loop=1}function z$(J){var{stack:Y,rp1:K,rp2:Z,loop:X}=J,Q=J.z0[K],W=J.z1[Z],w=J.fv,$=J.dpv,z=J.z2;while(X--){var U=Y.pop(),H=z[U];if(qB.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-X)+": ":"")+"IP[]",U,K,"<->",Z);w.interpolate(H,Q,W,$),w.touch(H)}J.loop=1}function m2(J,Y){var K=Y.stack,Z=K.pop()/64,X=K.pop(),Q=Y.z1[X],W=Y.z0[Y.rp0],w=Y.fv,$=Y.pv;if(w.setRelative(Q,W,Z,$),w.touch(Q),qB.DEBUG)console.log(Y.step,"MSIRP["+J+"]",Z,X);if(Y.rp1=Y.rp0,Y.rp2=X,J)Y.rp0=X}function U$(J){var{stack:Y,rp0:K}=J,Z=J.z0[K],X=J.loop,Q=J.fv,W=J.pv,w=J.z1;while(X--){var $=Y.pop(),z=w[$];if(qB.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-X)+": ":"")+"ALIGNRP[]",$);Q.setRelative(z,Z,0,W),Q.touch(z)}J.loop=1}function H$(J){if(qB.DEBUG)console.log(J.step,"RTDG[]");J.round=CW}function c2(J,Y){var K=Y.stack,Z=K.pop(),X=K.pop(),Q=Y.z0[X],W=Y.fv,w=Y.pv,$=Y.cvt[Z];if(qB.DEBUG)console.log(Y.step,"MIAP["+J+"]",Z,"(",$,")",X);var z=w.distance(Q,d5);if(J){if(Math.abs(z-$)<Y.cvCutIn)z=$;z=Y.round(z)}if(W.setRelative(Q,d5,z,w),Y.zp0===0)Q.xo=Q.x,Q.yo=Q.y;W.touch(Q),Y.rp0=Y.rp1=X}function A$(J){var{prog:Y,ip:K,stack:Z}=J,X=Y[++K];if(qB.DEBUG)console.log(J.step,"NPUSHB[]",X);for(var Q=0;Q<X;Q++)Z.push(Y[++K]);J.ip=K}function V$(J){var{ip:Y,prog:K,stack:Z}=J,X=K[++Y];if(qB.DEBUG)console.log(J.step,"NPUSHW[]",X);for(var Q=0;Q<X;Q++){var W=K[++Y]<<8|K[++Y];if(W&32768)W=-((W^65535)+1);Z.push(W)}J.ip=Y}function B$(J){var{stack:Y,store:K}=J;if(!K)K=J.store=[];var Z=Y.pop(),X=Y.pop();if(qB.DEBUG)console.log(J.step,"WS",Z,X);K[X]=Z}function G$(J){var{stack:Y,store:K}=J,Z=Y.pop();if(qB.DEBUG)console.log(J.step,"RS",Z);var X=K&&K[Z]||0;Y.push(X)}function O$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(qB.DEBUG)console.log(J.step,"WCVTP",K,Z);J.cvt[Z]=K/64}function L$(J){var Y=J.stack,K=Y.pop();if(qB.DEBUG)console.log(J.step,"RCVT",K);Y.push(J.cvt[K]*64)}function d2(J,Y){var K=Y.stack,Z=K.pop(),X=Y.z2[Z];if(qB.DEBUG)console.log(Y.step,"GC["+J+"]",Z);K.push(Y.dpv.distance(X,d5,J,!1)*64)}function u2(J,Y){var K=Y.stack,Z=K.pop(),X=K.pop(),Q=Y.z1[Z],W=Y.z0[X],w=Y.dpv.distance(W,Q,J,J);if(qB.DEBUG)console.log(Y.step,"MD["+J+"]",Z,X,"->",w);Y.stack.push(Math.round(w*64))}function M$(J){if(qB.DEBUG)console.log(J.step,"MPPEM[]");J.stack.push(J.ppem)}function q$(J){if(qB.DEBUG)console.log(J.step,"FLIPON[]");J.autoFlip=!0}function N$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(qB.DEBUG)console.log(J.step,"LT[]",K,Z);Y.push(Z<K?1:0)}function j$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(qB.DEBUG)console.log(J.step,"LTEQ[]",K,Z);Y.push(Z<=K?1:0)}function E$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(qB.DEBUG)console.log(J.step,"GT[]",K,Z);Y.push(Z>K?1:0)}function F$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(qB.DEBUG)console.log(J.step,"GTEQ[]",K,Z);Y.push(Z>=K?1:0)}function _$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(qB.DEBUG)console.log(J.step,"EQ[]",K,Z);Y.push(K===Z?1:0)}function I$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(qB.DEBUG)console.log(J.step,"NEQ[]",K,Z);Y.push(K!==Z?1:0)}function D$(J){var Y=J.stack,K=Y.pop();if(qB.DEBUG)console.log(J.step,"ODD[]",K);Y.push(Math.trunc(K)%2?1:0)}function R$(J){var Y=J.stack,K=Y.pop();if(qB.DEBUG)console.log(J.step,"EVEN[]",K);Y.push(Math.trunc(K)%2?0:1)}function C$(J){var Y=J.stack.pop();if(qB.DEBUG)console.log(J.step,"IF[]",Y);if(!Y){if(LJ(J,!0),qB.DEBUG)console.log(J.step,"EIF[]")}}function T$(J){if(qB.DEBUG)console.log(J.step,"EIF[]")}function P$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(qB.DEBUG)console.log(J.step,"AND[]",K,Z);Y.push(K&&Z?1:0)}function S$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(qB.DEBUG)console.log(J.step,"OR[]",K,Z);Y.push(K||Z?1:0)}function v$(J){var Y=J.stack,K=Y.pop();if(qB.DEBUG)console.log(J.step,"NOT[]",K);Y.push(K?0:1)}function L9(J,Y){var K=Y.stack,Z=K.pop(),X=Y.fv,Q=Y.pv,W=Y.ppem,w=Y.deltaBase+(J-1)*16,$=Y.deltaShift,z=Y.z0;if(qB.DEBUG)console.log(Y.step,"DELTAP["+J+"]",Z,K);for(var U=0;U<Z;U++){var H=K.pop(),A=K.pop(),V=w+((A&240)>>4);if(V!==W)continue;var L=(A&15)-8;if(L>=0)L++;if(qB.DEBUG)console.log(Y.step,"DELTAPFIX",H,"by",L*$);var B=z[H];X.setRelative(B,B,L*$,Q)}}function k$(J){var Y=J.stack,K=Y.pop();if(qB.DEBUG)console.log(J.step,"SDB[]",K);J.deltaBase=K}function y$(J){var Y=J.stack,K=Y.pop();if(qB.DEBUG)console.log(J.step,"SDS[]",K);J.deltaShift=Math.pow(0.5,K)}function h$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(qB.DEBUG)console.log(J.step,"ADD[]",K,Z);Y.push(Z+K)}function g$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(qB.DEBUG)console.log(J.step,"SUB[]",K,Z);Y.push(Z-K)}function x$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(qB.DEBUG)console.log(J.step,"DIV[]",K,Z);Y.push(Z*64/K)}function b$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(qB.DEBUG)console.log(J.step,"MUL[]",K,Z);Y.push(Z*K/64)}function f$(J){var Y=J.stack,K=Y.pop();if(qB.DEBUG)console.log(J.step,"ABS[]",K);Y.push(Math.abs(K))}function m$(J){var Y=J.stack,K=Y.pop();if(qB.DEBUG)console.log(J.step,"NEG[]",K);Y.push(-K)}function c$(J){var Y=J.stack,K=Y.pop();if(qB.DEBUG)console.log(J.step,"FLOOR[]",K);Y.push(Math.floor(K/64)*64)}function d$(J){var Y=J.stack,K=Y.pop();if(qB.DEBUG)console.log(J.step,"CEILING[]",K);Y.push(Math.ceil(K/64)*64)}function R8(J,Y){var K=Y.stack,Z=K.pop();if(qB.DEBUG)console.log(Y.step,"ROUND[]");K.push(Y.round(Z/64)*64)}function u$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(qB.DEBUG)console.log(J.step,"WCVTF[]",K,Z);J.cvt[Z]=K*J.ppem/J.font.unitsPerEm}function M9(J,Y){var K=Y.stack,Z=K.pop(),X=Y.ppem,Q=Y.deltaBase+(J-1)*16,W=Y.deltaShift;if(qB.DEBUG)console.log(Y.step,"DELTAC["+J+"]",Z,K);for(var w=0;w<Z;w++){var $=K.pop(),z=K.pop(),U=Q+((z&240)>>4);if(U!==X)continue;var H=(z&15)-8;if(H>=0)H++;var A=H*W;if(qB.DEBUG)console.log(Y.step,"DELTACFIX",$,"by",A);Y.cvt[$]+=A}}function l$(J){var Y=J.stack.pop();if(qB.DEBUG)console.log(J.step,"SROUND[]",Y);J.round=OJ;var K;switch(Y&192){case 0:K=0.5;break;case 64:K=1;break;case 128:K=2;break;default:throw Error("invalid SROUND value")}switch(J.srPeriod=K,Y&48){case 0:J.srPhase=0;break;case 16:J.srPhase=0.25*K;break;case 32:J.srPhase=0.5*K;break;case 48:J.srPhase=0.75*K;break;default:throw Error("invalid SROUND value")}if(Y&=15,Y===0)J.srThreshold=0;else J.srThreshold=(Y/8-0.5)*K}function p$(J){var Y=J.stack.pop();if(qB.DEBUG)console.log(J.step,"S45ROUND[]",Y);J.round=OJ;var K;switch(Y&192){case 0:K=Math.sqrt(2)/2;break;case 64:K=Math.sqrt(2);break;case 128:K=2*Math.sqrt(2);break;default:throw Error("invalid S45ROUND value")}switch(J.srPeriod=K,Y&48){case 0:J.srPhase=0;break;case 16:J.srPhase=0.25*K;break;case 32:J.srPhase=0.5*K;break;case 48:J.srPhase=0.75*K;break;default:throw Error("invalid S45ROUND value")}if(Y&=15,Y===0)J.srThreshold=0;else J.srThreshold=(Y/8-0.5)*K}function i$(J){if(qB.DEBUG)console.log(J.step,"ROFF[]");J.round=RW}function n$(J){if(qB.DEBUG)console.log(J.step,"RUTG[]");J.round=PW}function o$(J){if(qB.DEBUG)console.log(J.step,"RDTG[]");J.round=SW}function r$(J){var Y=J.stack.pop();if(qB.DEBUG)console.log(J.step,"SCANCTRL[]",Y)}function l2(J,Y){var K=Y.stack,Z=K.pop(),X=K.pop(),Q=Y.z2[Z],W=Y.z1[X];if(qB.DEBUG)console.log(Y.step,"SDPVTL["+J+"]",Z,X);var w,$;if(!J)w=W.x-Q.x,$=W.y-Q.y;else w=Q.y-W.y,$=W.x-Q.x;Y.dpv=n5(w,$)}function s$(J){var Y=J.stack,K=Y.pop(),Z=0;if(qB.DEBUG)console.log(J.step,"GETINFO[]",K);if(K&1)Z=35;if(K&32)Z|=4096;Y.push(Z)}function a$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop(),X=Y.pop();if(qB.DEBUG)console.log(J.step,"ROLL[]");Y.push(Z),Y.push(K),Y.push(X)}function t$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(qB.DEBUG)console.log(J.step,"MAX[]",K,Z);Y.push(Math.max(Z,K))}function e$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(qB.DEBUG)console.log(J.step,"MIN[]",K,Z);Y.push(Math.min(Z,K))}function Jw(J){var Y=J.stack.pop();if(qB.DEBUG)console.log(J.step,"SCANTYPE[]",Y)}function Yw(J){var Y=J.stack.pop(),K=J.stack.pop();if(qB.DEBUG)console.log(J.step,"INSTCTRL[]",Y,K);switch(Y){case 1:J.inhibitGridFit=!!K;return;case 2:J.ignoreCvt=!!K;return;default:throw Error("invalid INSTCTRL[] selector")}}function c1(J,Y){var{stack:K,prog:Z,ip:X}=Y;if(qB.DEBUG)console.log(Y.step,"PUSHB["+J+"]");for(var Q=0;Q<J;Q++)K.push(Z[++X]);Y.ip=X}function d1(J,Y){var{ip:K,prog:Z,stack:X}=Y;if(qB.DEBUG)console.log(Y.ip,"PUSHW["+J+"]");for(var Q=0;Q<J;Q++){var W=Z[++K]<<8|Z[++K];if(W&32768)W=-((W^65535)+1);X.push(W)}Y.ip=K}function i(J,Y,K,Z,X,Q){var W=Q.stack,w=J&&W.pop(),$=W.pop(),z=Q.rp0,U=Q.z0[z],H=Q.z1[$],A=Q.minDis,V=Q.fv,L=Q.dpv,B,O,q,N;if(O=B=L.distance(H,U,!0,!0),q=O>=0?1:-1,O=Math.abs(O),J){if(N=Q.cvt[w],Z&&Math.abs(O-N)<Q.cvCutIn)O=N}if(K&&O<A)O=A;if(Z)O=Q.round(O);if(V.setRelative(H,U,q*O,L),V.touch(H),qB.DEBUG)console.log(Q.step,(J?"MIRP[":"MDRP[")+(Y?"M":"m")+(K?">":"_")+(Z?"R":"_")+(X===0?"Gr":X===1?"Bl":X===2?"Wh":"")+"]",J?w+"("+Q.cvt[w]+","+N+")":"",$,"(d =",B,"->",q*O,")");if(Q.rp1=Q.rp0,Q.rp2=$,Y)Q.rp0=$}AJ=[P2.bind(void 0,P1),P2.bind(void 0,_1),S2.bind(void 0,P1),S2.bind(void 0,_1),v2.bind(void 0,P1),v2.bind(void 0,_1),k2.bind(void 0,0),k2.bind(void 0,1),y2.bind(void 0,0),y2.bind(void 0,1),kW,yW,hW,gW,xW,bW,fW,mW,cW,dW,uW,lW,pW,iW,nW,oW,rW,sW,aW,tW,void 0,void 0,eW,O9,J$,Y$,K$,Q$,W$,void 0,void 0,void 0,Z$,X$,$$,void 0,h2.bind(void 0,0),h2.bind(void 0,1),g2.bind(void 0,P1),g2.bind(void 0,_1),x2.bind(void 0,0),x2.bind(void 0,1),b2.bind(void 0,0),b2.bind(void 0,1),f2.bind(void 0,0),f2.bind(void 0,1),w$,z$,m2.bind(void 0,0),m2.bind(void 0,1),U$,H$,c2.bind(void 0,0),c2.bind(void 0,1),A$,V$,B$,G$,O$,L$,d2.bind(void 0,0),d2.bind(void 0,1),void 0,u2.bind(void 0,0),u2.bind(void 0,1),M$,void 0,q$,void 0,void 0,N$,j$,E$,F$,_$,I$,D$,R$,C$,T$,P$,S$,v$,L9.bind(void 0,1),k$,y$,h$,g$,x$,b$,f$,m$,c$,d$,R8.bind(void 0,0),R8.bind(void 0,1),R8.bind(void 0,2),R8.bind(void 0,3),void 0,void 0,void 0,void 0,u$,L9.bind(void 0,2),L9.bind(void 0,3),M9.bind(void 0,1),M9.bind(void 0,2),M9.bind(void 0,3),l$,p$,void 0,void 0,i$,void 0,n$,o$,O9,O9,void 0,void 0,void 0,void 0,void 0,r$,l2.bind(void 0,0),l2.bind(void 0,1),s$,void 0,a$,t$,e$,Jw,Yw,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,c1.bind(void 0,1),c1.bind(void 0,2),c1.bind(void 0,3),c1.bind(void 0,4),c1.bind(void 0,5),c1.bind(void 0,6),c1.bind(void 0,7),c1.bind(void 0,8),d1.bind(void 0,1),d1.bind(void 0,2),d1.bind(void 0,3),d1.bind(void 0,4),d1.bind(void 0,5),d1.bind(void 0,6),d1.bind(void 0,7),d1.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 E5(J){this.char=J,this.state={},this.activeState=null}function R9(J,Y,K){this.contextName=K,this.startIndex=J,this.endOffset=Y}function Kw(J,Y,K){this.contextName=J,this.openRange=null,this.ranges=[],this.checkStart=Y,this.checkEnd=K}function H1(J,Y){this.context=J,this.index=Y,this.length=J.length,this.current=J[Y],this.backtrack=J.slice(0,Y),this.lookahead=J.slice(Y+1)}function v8(J){this.eventId=J,this.subscribers=[]}function Zw(J){var Y=this,K=["start","end","next","newToken","contextStart","contextEnd","insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD","updateContextsRanges"];if(K.forEach(function(X){Object.defineProperty(Y.events,X,{value:new v8(X)})}),J)K.forEach(function(X){var Q=J[X];if(typeof Q==="function")Y.events[X].subscribe(Q)});var Z=["insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD"];Z.forEach(function(X){Y.events[X].subscribe(Y.updateContextsRanges)})}function _0(J){this.tokens=[],this.registeredContexts={},this.contextCheckers=[],this.events={},this.registeredModifiers=[],Zw.call(this,J)}E5.prototype.setState=function(J,Y){return this.state[J]=Y,this.activeState={key:J,value:this.state[J]},this.activeState};E5.prototype.getState=function(J){return this.state[J]||null};_0.prototype.inboundIndex=function(J){return J>=0&&J<this.tokens.length};_0.prototype.composeRUD=function(J){var Y=this,K=!0,Z=J.map(function(Q){return Y[Q[0]].apply(Y,Q.slice(1).concat(K))}),X=function(Q){return typeof Q==="object"&&Q.hasOwnProperty("FAIL")};if(Z.every(X))return{FAIL:"composeRUD: one or more operations hasn't completed successfully",report:Z.filter(X)};this.dispatch("composeRUD",[Z.filter(function(Q){return!X(Q)})])};_0.prototype.replaceRange=function(J,Y,K,Z){Y=Y!==null?Y:this.tokens.length;var X=K.every(function(W){return W instanceof E5});if(!isNaN(J)&&this.inboundIndex(J)&&X){var Q=this.tokens.splice.apply(this.tokens,[J,Y].concat(K));if(!Z)this.dispatch("replaceToken",[J,Y,K]);return[Q,K]}else return{FAIL:"replaceRange: invalid tokens or startIndex."}};_0.prototype.replaceToken=function(J,Y,K){if(!isNaN(J)&&this.inboundIndex(J)&&Y instanceof E5){var Z=this.tokens.splice(J,1,Y);if(!K)this.dispatch("replaceToken",[J,Y]);return[Z[0],Y]}else return{FAIL:"replaceToken: invalid token or index."}};_0.prototype.removeRange=function(J,Y,K){Y=!isNaN(Y)?Y:this.tokens.length;var Z=this.tokens.splice(J,Y);if(!K)this.dispatch("removeRange",[Z,J,Y]);return Z};_0.prototype.removeToken=function(J,Y){if(!isNaN(J)&&this.inboundIndex(J)){var K=this.tokens.splice(J,1);if(!Y)this.dispatch("removeToken",[K,J]);return K}else return{FAIL:"removeToken: invalid token index."}};_0.prototype.insertToken=function(J,Y,K){var Z=J.every(function(X){return X instanceof E5});if(Z){if(this.tokens.splice.apply(this.tokens,[Y,0].concat(J)),!K)this.dispatch("insertToken",[J,Y]);return J}else return{FAIL:"insertToken: invalid token(s)."}};_0.prototype.registerModifier=function(J,Y,K){this.events.newToken.subscribe(function(Z,X){var Q=[Z,X],W=Y===null||Y.apply(this,Q)===!0,w=[Z,X];if(W){var $=K.apply(this,w);Z.setState(J,$)}}),this.registeredModifiers.push(J)};v8.prototype.subscribe=function(J){if(typeof J==="function")return this.subscribers.push(J)-1;else return{FAIL:"invalid '"+this.eventId+"' event handler"}};v8.prototype.unsubscribe=function(J){this.subscribers.splice(J,1)};H1.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)};H1.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}};_0.prototype.rangeToText=function(J){if(J instanceof R9)return this.getRangeTokens(J).map(function(Y){return Y.char}).join("")};_0.prototype.getText=function(){return this.tokens.map(function(J){return J.char}).join("")};_0.prototype.getContext=function(J){var Y=this.registeredContexts[J];return Y?Y:null};_0.prototype.on=function(J,Y){var K=this.events[J];if(K)return K.subscribe(Y);else return null};_0.prototype.dispatch=function(J,Y){var K=this,Z=this.events[J];if(Z instanceof v8)Z.subscribers.forEach(function(X){X.apply(K,Y||[])})};_0.prototype.registerContextChecker=function(J,Y,K){if(this.getContext(J))return{FAIL:"context name '"+J+"' is already registered."};if(typeof Y!=="function")return{FAIL:"missing context start check."};if(typeof K!=="function")return{FAIL:"missing context end check."};var Z=new Kw(J,Y,K);return this.registeredContexts[J]=Z,this.contextCheckers.push(Z),Z};_0.prototype.getRangeTokens=function(J){var Y=J.startIndex+J.endOffset;return[].concat(this.tokens.slice(J.startIndex,Y))};_0.prototype.getContextRanges=function(J){var Y=this.getContext(J);if(Y)return Y.ranges;else return{FAIL:"context checker '"+J+"' is not registered."}};_0.prototype.resetContextsRanges=function(){var J=this.registeredContexts;for(var Y in J)if(J.hasOwnProperty(Y)){var K=J[Y];K.ranges=[]}};_0.prototype.updateContextsRanges=function(){this.resetContextsRanges();var J=this.tokens.map(function(Z){return Z.char});for(var Y=0;Y<J.length;Y++){var K=new H1(J,Y);this.runContextCheck(K)}this.dispatch("updateContextsRanges",[this.registeredContexts])};_0.prototype.setEndOffset=function(J,Y){var K=this.getContext(Y).openRange.startIndex,Z=new R9(K,J,Y),X=this.getContext(Y).ranges;return Z.rangeId=Y+"."+X.length,X.push(Z),this.getContext(Y).openRange=null,Z};_0.prototype.runContextCheck=function(J){var Y=this,K=J.index;this.contextCheckers.forEach(function(Z){var X=Z.contextName,Q=Y.getContext(X).openRange;if(!Q&&Z.checkStart(J))Q=new R9(K,null,X),Y.getContext(X).openRange=Q,Y.dispatch("contextStart",[X,K]);if(!!Q&&Z.checkEnd(J)){var W=K-Q.startIndex+1,w=Y.setEndOffset(W,X);Y.dispatch("contextEnd",[X,w])}})};_0.prototype.tokenize=function(J){this.tokens=[],this.resetContextsRanges();var Y=Array.from(J);this.dispatch("start");for(var K=0;K<Y.length;K++){var Z=Y[K],X=new H1(Y,K);this.dispatch("next",[X]),this.runContextCheck(X);var Q=new E5(Z);this.tokens.push(Q),this.dispatch("newToken",[Q,X])}return this.dispatch("end",[this.tokens]),this.tokens};function i1(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 n1(J){return/[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(J)}function C8(J){return/[A-z]/.test(J)}function Xw(J){return/\s/.test(J)}function a0(J){this.font=J,this.features={}}function K5(J){this.id=J.id,this.tag=J.tag,this.substitution=J.substitution}function o5(J,Y){if(!J)return-1;switch(Y.format){case 1:return Y.glyphs.indexOf(J);case 2:var K=Y.ranges;for(var Z=0;Z<K.length;Z++){var X=K[Z];if(J>=X.start&&J<=X.end){var Q=J-X.start;return X.index+Q}}break;default:return-1}return-1}function Qw(J,Y){var K=o5(J,Y.coverage);if(K===-1)return null;return J+Y.deltaGlyphId}function Ww(J,Y){var K=o5(J,Y.coverage);if(K===-1)return null;return Y.substitute[K]}function q9(J,Y){var K=[];for(var Z=0;Z<J.length;Z++){var X=J[Z],Q=Y.current;Q=Array.isArray(Q)?Q[0]:Q;var W=o5(Q,X);if(W!==-1)K.push(W)}if(K.length!==J.length)return-1;return K}function $w(J,Y){var K=Y.inputCoverage.length+Y.lookaheadCoverage.length+Y.backtrackCoverage.length;if(J.context.length<K)return[];var Z=q9(Y.inputCoverage,J);if(Z===-1)return[];var X=Y.inputCoverage.length-1;if(J.lookahead.length<Y.lookaheadCoverage.length)return[];var Q=J.lookahead.slice(X);while(Q.length&&n1(Q[0].char))Q.shift();var W=new H1(Q,0),w=q9(Y.lookaheadCoverage,W),$=[].concat(J.backtrack);$.reverse();while($.length&&n1($[0].char))$.shift();if($.length<Y.backtrackCoverage.length)return[];var z=new H1($,0),U=q9(Y.backtrackCoverage,z),H=Z.length===Y.inputCoverage.length&&w.length===Y.lookaheadCoverage.length&&U.length===Y.backtrackCoverage.length,A=[];if(H)for(var V=0;V<Y.lookupRecords.length;V++){var L=Y.lookupRecords[V],B=L.lookupListIndex,O=this.getLookupByIndex(B);for(var q=0;q<O.subtables.length;q++){var N=O.subtables[q],E=this.getLookupMethod(O,N),I=this.getSubstitutionType(O,N);if(I==="12")for(var F=0;F<Z.length;F++){var j=J.get(F),T=E(j);if(T)A.push(T)}}}return A}function ww(J,Y){var K=J.current,Z=o5(K,Y.coverage);if(Z===-1)return null;var X,Q=Y.ligatureSets[Z];for(var W=0;W<Q.length;W++){X=Q[W];for(var w=0;w<X.components.length;w++){var $=J.lookahead[w],z=X.components[w];if($!==z)break;if(w===X.components.length-1)return X}}return null}function zw(J,Y){var K=o5(J,Y.coverage);if(K===-1)return null;return Y.sequences[K]}a0.prototype.getDefaultScriptFeaturesIndexes=function(){var J=this.font.tables.gsub.scripts;for(var Y=0;Y<J.length;Y++){var K=J[Y];if(K.tag==="DFLT")return K.script.defaultLangSys.featureIndexes}return[]};a0.prototype.getScriptFeaturesIndexes=function(J){var Y=this.font.tables;if(!Y.gsub)return[];if(!J)return this.getDefaultScriptFeaturesIndexes();var K=this.font.tables.gsub.scripts;for(var Z=0;Z<K.length;Z++){var X=K[Z];if(X.tag===J&&X.script.defaultLangSys)return X.script.defaultLangSys.featureIndexes;else{var Q=X.langSysRecords;if(Q)for(var W=0;W<Q.length;W++){var w=Q[W];if(w.tag===J){var $=w.langSys;return $.featureIndexes}}}}return this.getDefaultScriptFeaturesIndexes()};a0.prototype.mapTagsToFeatures=function(J,Y){var K={};for(var Z=0;Z<J.length;Z++){var X=J[Z].tag,Q=J[Z].feature;K[X]=Q}this.features[Y].tags=K};a0.prototype.getScriptFeatures=function(J){var Y=this.features[J];if(this.features.hasOwnProperty(J))return Y;var K=this.getScriptFeaturesIndexes(J);if(!K)return null;var Z=this.font.tables.gsub;return Y=K.map(function(X){return Z.features[X]}),this.features[J]=Y,this.mapTagsToFeatures(Y,J),Y};a0.prototype.getSubstitutionType=function(J,Y){var K=J.lookupType.toString(),Z=Y.substFormat.toString();return K+Z};a0.prototype.getLookupMethod=function(J,Y){var K=this,Z=this.getSubstitutionType(J,Y);switch(Z){case"11":return function(X){return Qw.apply(K,[X,Y])};case"12":return function(X){return Ww.apply(K,[X,Y])};case"63":return function(X){return $w.apply(K,[X,Y])};case"41":return function(X){return ww.apply(K,[X,Y])};case"21":return function(X){return zw.apply(K,[X,Y])};default:throw Error("lookupType: "+J.lookupType+" - substFormat: "+Y.substFormat+" is not yet supported")}};a0.prototype.lookupFeature=function(J){var Y=J.contextParams,K=Y.index,Z=this.getFeature({tag:J.tag,script:J.script});if(!Z)return Error("font '"+this.font.names.fullName.en+"' doesn't support feature '"+J.tag+"' for script '"+J.script+"'.");var X=this.getFeatureLookups(Z),Q=[].concat(Y.context);for(var W=0;W<X.length;W++){var w=X[W],$=this.getLookupSubtables(w);for(var z=0;z<$.length;z++){var U=$[z],H=this.getSubstitutionType(w,U),A=this.getLookupMethod(w,U),V=void 0;switch(H){case"11":if(V=A(Y.current),V)Q.splice(K,1,new K5({id:11,tag:J.tag,substitution:V}));break;case"12":if(V=A(Y.current),V)Q.splice(K,1,new K5({id:12,tag:J.tag,substitution:V}));break;case"63":if(V=A(Y),Array.isArray(V)&&V.length)Q.splice(K,1,new K5({id:63,tag:J.tag,substitution:V}));break;case"41":if(V=A(Y),V)Q.splice(K,1,new K5({id:41,tag:J.tag,substitution:V}));break;case"21":if(V=A(Y.current),V)Q.splice(K,1,new K5({id:21,tag:J.tag,substitution:V}));break}if(Y=new H1(Q,K),Array.isArray(V)&&!V.length)continue;V=null}}return Q.length?Q:null};a0.prototype.supports=function(J){if(!J.script)return!1;this.getScriptFeatures(J.script);var Y=this.features.hasOwnProperty(J.script);if(!J.tag)return Y;var K=this.features[J.script].some(function(Z){return Z.tag===J.tag});return Y&&K};a0.prototype.getLookupSubtables=function(J){return J.subtables||null};a0.prototype.getLookupByIndex=function(J){var Y=this.font.tables.gsub.lookups;return Y[J]||null};a0.prototype.getFeatureLookups=function(J){return J.lookupListIndexes.map(this.getLookupByIndex.bind(this))};a0.prototype.getFeature=function(Y){if(!this.font)return{FAIL:"No font was found"};if(!this.features.hasOwnProperty(Y.script))this.getScriptFeatures(Y.script);var K=this.features[Y.script];if(!K)return{FAIL:"No feature for script "+Y.script};if(!K.tags[Y.tag])return null;return this.features[Y.script].tags[Y.tag]};function Uw(J){var Y=J.current,K=J.get(-1);return K===null&&i1(Y)||!i1(K)&&i1(Y)}function Hw(J){var Y=J.get(1);return Y===null||!i1(Y)}var Aw={startCheck:Uw,endCheck:Hw};function Vw(J){var Y=J.current,K=J.get(-1);return(i1(Y)||n1(Y))&&!i1(K)}function Bw(J){var Y=J.get(1);switch(!0){case Y===null:return!0;case(!i1(Y)&&!n1(Y)):var K=Xw(Y);if(!K)return!0;if(K){var Z=!1;if(Z=J.lookahead.some(function(X){return i1(X)||n1(X)}),!Z)return!0}break;default:return!1}}var Gw={startCheck:Vw,endCheck:Bw};function Ow(J,Y,K){Y[K].setState(J.tag,J.substitution)}function Lw(J,Y,K){Y[K].setState(J.tag,J.substitution)}function Mw(J,Y,K){J.substitution.forEach(function(Z,X){var Q=Y[K+X];Q.setState(J.tag,Z)})}function qw(J,Y,K){var Z=Y[K];Z.setState(J.tag,J.substitution.ligGlyph);var X=J.substitution.components.length;for(var Q=0;Q<X;Q++)Z=Y[K+Q+1],Z.setState("deleted",!0)}var p2={11:Ow,12:Lw,63:Mw,41:qw};function C9(J,Y,K){if(J instanceof K5&&p2[J.id])p2[J.id](J,Y,K)}function Nw(J){var Y=[].concat(J.backtrack);for(var K=Y.length-1;K>=0;K--){var Z=Y[K],X=MJ(Z),Q=n1(Z);if(!X&&!Q)return!0;if(X)return!1}return!1}function jw(J){if(MJ(J.current))return!1;for(var Y=0;Y<J.lookahead.length;Y++){var K=J.lookahead[Y],Z=n1(K);if(!Z)return!0}return!1}function Ew(J){var Y=this,K="arab",Z=this.featuresTags[K],X=this.tokenizer.getRangeTokens(J);if(X.length===1)return;var Q=new H1(X.map(function(w){return w.getState("glyphIndex")}),0),W=new H1(X.map(function(w){return w.char}),0);X.forEach(function(w,$){if(n1(w.char))return;Q.setCurrentIndex($),W.setCurrentIndex($);var z=0;if(Nw(W))z|=1;if(jw(W))z|=2;var U;switch(z){case 1:U="fina";break;case 2:U="init";break;case 3:U="medi";break}if(Z.indexOf(U)===-1)return;var H=Y.query.lookupFeature({tag:U,script:K,contextParams:Q});if(H instanceof Error)return console.info(H.message);H.forEach(function(A,V){if(A instanceof K5)C9(A,X,V),Q.context[V]=A.substitution})})}function i2(J,Y){var K=J.map(function(Z){return Z.activeState.value});return new H1(K,Y||0)}function Fw(J){var Y=this,K="arab",Z=this.tokenizer.getRangeTokens(J),X=i2(Z);X.context.forEach(function(Q,W){X.setCurrentIndex(W);var w=Y.query.lookupFeature({tag:"rlig",script:K,contextParams:X});if(w.length)w.forEach(function($){return C9($,Z,W)}),X=i2(Z)})}function _w(J){var Y=J.current,K=J.get(-1);return K===null&&C8(Y)||!C8(K)&&C8(Y)}function Iw(J){var Y=J.get(1);return Y===null||!C8(Y)}var Dw={startCheck:_w,endCheck:Iw};function n2(J,Y){var K=J.map(function(Z){return Z.activeState.value});return new H1(K,Y||0)}function Rw(J){var Y=this,K="latn",Z=this.tokenizer.getRangeTokens(J),X=n2(Z);X.context.forEach(function(Q,W){X.setCurrentIndex(W);var w=Y.query.lookupFeature({tag:"liga",script:K,contextParams:X});if(w.length)w.forEach(function($){return C9($,Z,W)}),X=n2(Z)})}function B1(J){this.baseDir=J||"ltr",this.tokenizer=new _0,this.featuresTags={}}B1.prototype.setText=function(J){this.text=J};B1.prototype.contextChecks={latinWordCheck:Dw,arabicWordCheck:Aw,arabicSentenceCheck:Gw};function N9(J){var Y=this.contextChecks[J+"Check"];return this.tokenizer.registerContextChecker(J,Y.startCheck,Y.endCheck)}function Cw(){return N9.call(this,"latinWord"),N9.call(this,"arabicWord"),N9.call(this,"arabicSentence"),this.tokenizer.tokenize(this.text)}function Tw(){var J=this,Y=this.tokenizer.getContextRanges("arabicSentence");Y.forEach(function(K){var Z=J.tokenizer.getRangeTokens(K);J.tokenizer.replaceRange(K.startIndex,K.endOffset,Z.reverse())})}B1.prototype.registerFeatures=function(J,Y){var K=this,Z=Y.filter(function(X){return K.query.supports({script:J,tag:X})});if(!this.featuresTags.hasOwnProperty(J))this.featuresTags[J]=Z;else this.featuresTags[J]=this.featuresTags[J].concat(Z)};B1.prototype.applyFeatures=function(J,Y){if(!J)throw Error("No valid font was provided to apply features");if(!this.query)this.query=new a0(J);for(var K=0;K<Y.length;K++){var Z=Y[K];if(!this.query.supports({script:Z.script}))continue;this.registerFeatures(Z.script,Z.tags)}};B1.prototype.registerModifier=function(J,Y,K){this.tokenizer.registerModifier(J,Y,K)};function T9(){if(this.tokenizer.registeredModifiers.indexOf("glyphIndex")===-1)throw Error("glyphIndex modifier is required to apply arabic presentation features.")}function Pw(){var J=this,Y="arab";if(!this.featuresTags.hasOwnProperty(Y))return;T9.call(this);var K=this.tokenizer.getContextRanges("arabicWord");K.forEach(function(Z){Ew.call(J,Z)})}function Sw(){var J=this,Y="arab";if(!this.featuresTags.hasOwnProperty(Y))return;var K=this.featuresTags[Y];if(K.indexOf("rlig")===-1)return;T9.call(this);var Z=this.tokenizer.getContextRanges("arabicWord");Z.forEach(function(X){Fw.call(J,X)})}function vw(){var J=this,Y="latn";if(!this.featuresTags.hasOwnProperty(Y))return;var K=this.featuresTags[Y];if(K.indexOf("liga")===-1)return;T9.call(this);var Z=this.tokenizer.getContextRanges("latinWord");Z.forEach(function(X){Rw.call(J,X)})}B1.prototype.checkContextReady=function(J){return!!this.tokenizer.getContext(J)};B1.prototype.applyFeaturesToContexts=function(){if(this.checkContextReady("arabicWord"))Pw.call(this),Sw.call(this);if(this.checkContextReady("latinWord"))vw.call(this);if(this.checkContextReady("arabicSentence"))Tw.call(this)};B1.prototype.processText=function(J){if(!this.text||this.text!==J)this.setText(J),Cw.call(this),this.applyFeaturesToContexts()};B1.prototype.getBidiText=function(J){return this.processText(J),this.tokenizer.getText()};B1.prototype.getTextGlyphs=function(J){this.processText(J);var Y=[];for(var K=0;K<this.tokenizer.tokens.length;K++){var Z=this.tokenizer.tokens[K];if(Z.state.deleted)continue;var X=Z.activeState.value;Y.push(Array.isArray(X)?X[0]:X)}return Y};function m0(J){if(J=J||{},J.tables=J.tables||{},!J.empty)f5(J.familyName,"When creating a new Font object, familyName is required."),f5(J.styleName,"When creating a new Font object, styleName is required."),f5(J.unitsPerEm,"When creating a new Font object, unitsPerEm is required."),f5(J.ascender,"When creating a new Font object, ascender is required."),f5(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 I1.GlyphSet(this,J.glyphs||[]),this.encoding=new XJ(this),this.position=new p5(this),this.substitution=new s0(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)}})}m0.prototype.hasChar=function(J){return this.encoding.charToGlyphIndex(J)!==null};m0.prototype.charToGlyphIndex=function(J){return this.encoding.charToGlyphIndex(J)};m0.prototype.charToGlyph=function(J){var Y=this.charToGlyphIndex(J),K=this.glyphs.get(Y);if(!K)K=this.glyphs.get(0);return K};m0.prototype.updateFeatures=function(J){return this.defaultRenderOptions.features.map(function(Y){if(Y.script==="latn")return{script:"latn",tags:Y.tags.filter(function(K){return J[K]})};else return Y})};m0.prototype.stringToGlyphs=function(J,Y){var K=this,Z=new B1,X=function(H){return K.charToGlyphIndex(H.char)};Z.registerModifier("glyphIndex",null,X);var Q=Y?this.updateFeatures(Y.features):this.defaultRenderOptions.features;Z.applyFeatures(this,Q);var W=Z.getTextGlyphs(J),w=W.length,$=Array(w),z=this.glyphs.get(0);for(var U=0;U<w;U+=1)$[U]=this.glyphs.get(W[U])||z;return $};m0.prototype.getKerningValue=function(J,Y){J=J.index||J,Y=Y.index||Y;var K=this.position.defaultKerningTables;if(K)return this.position.getKerningValue(K,J,Y);return this.kerningPairs[J+","+Y]||0};m0.prototype.defaultRenderOptions={kerning:!0,features:[{script:"arab",tags:["init","medi","fina","rlig"]},{script:"latn",tags:["liga","rlig"]}]};m0.prototype.forEachGlyph=function(J,Y,K,Z,X,Q){Y=Y!==void 0?Y:0,K=K!==void 0?K:0,Z=Z!==void 0?Z:72,X=Object.assign({},this.defaultRenderOptions,X);var W=1/this.unitsPerEm*Z,w=this.stringToGlyphs(J,X),$;if(X.kerning){var z=X.script||this.position.getDefaultScriptName();$=this.position.getKerningTables(z,X.language)}for(var U=0;U<w.length;U+=1){var H=w[U];if(Q.call(this,H,Y,K,Z,X),H.advanceWidth)Y+=H.advanceWidth*W;if(X.kerning&&U<w.length-1){var A=$?this.position.getKerningValue($,H.index,w[U+1].index):this.getKerningValue(H,w[U+1]);Y+=A*W}if(X.letterSpacing)Y+=X.letterSpacing*Z;else if(X.tracking)Y+=X.tracking/1000*Z}return Y};m0.prototype.getPath=function(J,Y,K,Z,X){var Q=new f0;return this.forEachGlyph(J,Y,K,Z,X,function(W,w,$,z){var U=W.getPath(w,$,z,X,this);Q.extend(U)}),Q};m0.prototype.getPaths=function(J,Y,K,Z,X){var Q=[];return this.forEachGlyph(J,Y,K,Z,X,function(W,w,$,z){var U=W.getPath(w,$,z,X,this);Q.push(U)}),Q};m0.prototype.getAdvanceWidth=function(J,Y,K){return this.forEachGlyph(J,0,0,Y,K,function(){})};m0.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512};m0.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};m0.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};function kw(J,Y){Y.parseUShort(),J.length=Y.parseULong(),J.language=Y.parseULong();var K;J.groupCount=K=Y.parseULong(),J.glyphIndexMap={};for(var Z=0;Z<K;Z+=1){var X=Y.parseULong(),Q=Y.parseULong(),W=Y.parseULong();for(var w=X;w<=Q;w+=1)J.glyphIndexMap[w]=W,W++}}function yw(J,Y,K,Z,X){J.length=Y.parseUShort(),J.language=Y.parseUShort();var Q;J.segCount=Q=Y.parseUShort()>>1,Y.skip("uShort",3),J.glyphIndexMap={};var W=new o.Parser(K,Z+X+14),w=new o.Parser(K,Z+X+16+Q*2),$=new o.Parser(K,Z+X+16+Q*4),z=new o.Parser(K,Z+X+16+Q*6),U=Z+X+16+Q*8;for(var H=0;H<Q-1;H+=1){var A=void 0,V=W.parseUShort(),L=w.parseUShort(),B=$.parseShort(),O=z.parseUShort();for(var q=L;q<=V;q+=1){if(O!==0){if(U=z.offset+z.relativeOffset-2,U+=O,U+=(q-L)*2,A=o.getUShort(K,U),A!==0)A=A+B&65535}else A=q+B&65535;J.glyphIndexMap[q]=A}}}function hw(J,Y){var K={};K.version=o.getUShort(J,Y),U0.argument(K.version===0,"cmap table version should be 0."),K.numTables=o.getUShort(J,Y+2);var Z=-1;for(var X=K.numTables-1;X>=0;X-=1){var Q=o.getUShort(J,Y+4+X*8),W=o.getUShort(J,Y+4+X*8+2);if(Q===3&&(W===0||W===1||W===10)||Q===0&&(W===0||W===1||W===2||W===3||W===4)){Z=o.getULong(J,Y+4+X*8+4);break}}if(Z===-1)throw Error("No valid cmap sub-tables found.");var w=new o.Parser(J,Y+Z);if(K.format=w.parseUShort(),K.format===12)kw(K,w);else if(K.format===4)yw(K,w,J,Y,Z);else throw Error("Only format 4 and 12 cmap tables are supported (found format "+K.format+").");return K}var gw={parse:hw};function F9(J){var Y;if(J.length<1240)Y=107;else if(J.length<33900)Y=1131;else Y=32768;return Y}function l1(J,Y,K){var Z=[],X=[],Q=o.getCard16(J,Y),W,w;if(Q!==0){var $=o.getByte(J,Y+2);W=Y+(Q+1)*$+2;var z=Y+3;for(var U=0;U<Q+1;U+=1)Z.push(o.getOffset(J,z,$)),z+=$;w=W+Z[Q]}else w=Y+2;for(var H=0;H<Z.length-1;H+=1){var A=o.getBytes(J,W+Z[H],W+Z[H+1]);if(K)A=K(A);X.push(A)}return{objects:X,startOffset:Y,endOffset:w}}function xw(J,Y){var K=[],Z=o.getCard16(J,Y),X,Q;if(Z!==0){var W=o.getByte(J,Y+2);X=Y+(Z+1)*W+2;var w=Y+3;for(var $=0;$<Z+1;$+=1)K.push(o.getOffset(J,w,W)),w+=W;Q=X+K[Z]}else Q=Y+2;return{offsets:K,startOffset:Y,endOffset:Q}}function bw(J,Y,K,Z,X){var Q=o.getCard16(K,Z),W=0;if(Q!==0){var w=o.getByte(K,Z+2);W=Z+(Q+1)*w+2}var $=o.getBytes(K,W+Y[J],W+Y[J+1]);if(X)$=X($);return $}function fw(J){var Y="",K=15,Z=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];while(!0){var X=J.parseByte(),Q=X>>4,W=X&15;if(Q===K)break;if(Y+=Z[Q],W===K)break;Y+=Z[W]}return parseFloat(Y)}function mw(J,Y){var K,Z,X,Q;if(Y===28)return K=J.parseByte(),Z=J.parseByte(),K<<8|Z;if(Y===29)return K=J.parseByte(),Z=J.parseByte(),X=J.parseByte(),Q=J.parseByte(),K<<24|Z<<16|X<<8|Q;if(Y===30)return fw(J);if(Y>=32&&Y<=246)return Y-139;if(Y>=247&&Y<=250)return K=J.parseByte(),(Y-247)*256+K+108;if(Y>=251&&Y<=254)return K=J.parseByte(),-(Y-251)*256-K-108;throw Error("Invalid b0 "+Y)}function cw(J){var Y={};for(var K=0;K<J.length;K+=1){var Z=J[K][0],X=J[K][1],Q=void 0;if(X.length===1)Q=X[0];else Q=X;if(Y.hasOwnProperty(Z)&&!isNaN(Y[Z]))throw Error("Object "+Y+" already has key "+Z);Y[Z]=Q}return Y}function qJ(J,Y,K){Y=Y!==void 0?Y:0;var Z=new o.Parser(J,Y),X=[],Q=[];K=K!==void 0?K:J.length;while(Z.relativeOffset<K){var W=Z.parseByte();if(W<=21){if(W===12)W=1200+Z.parseByte();X.push([W,Q]),Q=[]}else Q.push(mw(Z,W))}return cw(X)}function c5(J,Y){if(Y<=390)Y=WW[Y];else Y=J[Y-391];return Y}function NJ(J,Y,K){var Z={},X;for(var Q=0;Q<Y.length;Q+=1){var W=Y[Q];if(Array.isArray(W.type)){var w=[];w.length=W.type.length;for(var $=0;$<W.type.length;$++){if(X=J[W.op]!==void 0?J[W.op][$]:void 0,X===void 0)X=W.value!==void 0&&W.value[$]!==void 0?W.value[$]:null;if(W.type[$]==="SID")X=c5(K,X);w[$]=X}Z[W.name]=w}else{if(X=J[W.op],X===void 0)X=W.value!==void 0?W.value:null;if(W.type==="SID")X=c5(K,X);Z[W.name]=X}}return Z}function dw(J,Y){var K={};return K.formatMajor=o.getCard8(J,Y),K.formatMinor=o.getCard8(J,Y+1),K.size=o.getCard8(J,Y+2),K.offsetSize=o.getCard8(J,Y+3),K.startOffset=Y,K.endOffset=Y+4,K}var uw=[{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"}],lw=[{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 pw(J,Y){var K=qJ(J,0,J.byteLength);return NJ(K,uw,Y)}function jJ(J,Y,K,Z){var X=qJ(J,Y,K);return NJ(X,lw,Z)}function o2(J,Y,K,Z){var X=[];for(var Q=0;Q<K.length;Q+=1){var W=new DataView(new Uint8Array(K[Q]).buffer),w=pw(W,Z);w._subrs=[],w._subrsBias=0,w._defaultWidthX=0,w._nominalWidthX=0;var $=w.private[0],z=w.private[1];if($!==0&&z!==0){var U=jJ(J,z+Y,$,Z);if(w._defaultWidthX=U.defaultWidthX,w._nominalWidthX=U.nominalWidthX,U.subrs!==0){var H=z+U.subrs,A=l1(J,H+Y);w._subrs=A.objects,w._subrsBias=F9(w._subrs)}w._privateDict=U}X.push(w)}return X}function iw(J,Y,K,Z){var X,Q,W=new o.Parser(J,Y);K-=1;var w=[".notdef"],$=W.parseCard8();if($===0)for(var z=0;z<K;z+=1)X=W.parseSID(),w.push(c5(Z,X));else if($===1)while(w.length<=K){X=W.parseSID(),Q=W.parseCard8();for(var U=0;U<=Q;U+=1)w.push(c5(Z,X)),X+=1}else if($===2)while(w.length<=K){X=W.parseSID(),Q=W.parseCard16();for(var H=0;H<=Q;H+=1)w.push(c5(Z,X)),X+=1}else throw Error("Unknown charset format "+$);return w}function nw(J,Y,K){var Z,X={},Q=new o.Parser(J,Y),W=Q.parseCard8();if(W===0){var w=Q.parseCard8();for(var $=0;$<w;$+=1)Z=Q.parseCard8(),X[Z]=$}else if(W===1){var z=Q.parseCard8();Z=1;for(var U=0;U<z;U+=1){var H=Q.parseCard8(),A=Q.parseCard8();for(var V=H;V<=H+A;V+=1)X[V]=Z,Z+=1}}else throw Error("Unknown encoding format "+W);return new T8(X,K)}function r2(J,Y,K){var Z,X,Q,W,w=new f0,$=[],z=0,U=!1,H=!1,A=0,V=0,L,B,O,q;if(J.isCIDFont){var N=J.tables.cff.topDict._fdSelect[Y.index],E=J.tables.cff.topDict._fdArray[N];L=E._subrs,B=E._subrsBias,O=E._defaultWidthX,q=E._nominalWidthX}else L=J.tables.cff.topDict._subrs,B=J.tables.cff.topDict._subrsBias,O=J.tables.cff.topDict._defaultWidthX,q=J.tables.cff.topDict._nominalWidthX;var I=O;function F(D,C){if(H)w.closePath();w.moveTo(D,C),H=!0}function j(){var D=$.length%2!==0;if(D&&!U)I=$.shift()+q;z+=$.length>>1,$.length=0,U=!0}function T(D){var C,g,d,r,l,P,k,R,c,u,a,n,m=0;while(m<D.length){var x=D[m];switch(m+=1,x){case 1:j();break;case 3:j();break;case 4:if($.length>1&&!U)I=$.shift()+q,U=!0;V+=$.pop(),F(A,V);break;case 5:while($.length>0)A+=$.shift(),V+=$.shift(),w.lineTo(A,V);break;case 6:while($.length>0){if(A+=$.shift(),w.lineTo(A,V),$.length===0)break;V+=$.shift(),w.lineTo(A,V)}break;case 7:while($.length>0){if(V+=$.shift(),w.lineTo(A,V),$.length===0)break;A+=$.shift(),w.lineTo(A,V)}break;case 8:while($.length>0)Z=A+$.shift(),X=V+$.shift(),Q=Z+$.shift(),W=X+$.shift(),A=Q+$.shift(),V=W+$.shift(),w.curveTo(Z,X,Q,W,A,V);break;case 10:if(l=$.pop()+B,P=L[l],P)T(P);break;case 11:return;case 12:switch(x=D[m],m+=1,x){case 35:Z=A+$.shift(),X=V+$.shift(),Q=Z+$.shift(),W=X+$.shift(),k=Q+$.shift(),R=W+$.shift(),c=k+$.shift(),u=R+$.shift(),a=c+$.shift(),n=u+$.shift(),A=a+$.shift(),V=n+$.shift(),$.shift(),w.curveTo(Z,X,Q,W,k,R),w.curveTo(c,u,a,n,A,V);break;case 34:Z=A+$.shift(),X=V,Q=Z+$.shift(),W=X+$.shift(),k=Q+$.shift(),R=W,c=k+$.shift(),u=W,a=c+$.shift(),n=V,A=a+$.shift(),w.curveTo(Z,X,Q,W,k,R),w.curveTo(c,u,a,n,A,V);break;case 36:Z=A+$.shift(),X=V+$.shift(),Q=Z+$.shift(),W=X+$.shift(),k=Q+$.shift(),R=W,c=k+$.shift(),u=W,a=c+$.shift(),n=u+$.shift(),A=a+$.shift(),w.curveTo(Z,X,Q,W,k,R),w.curveTo(c,u,a,n,A,V);break;case 37:if(Z=A+$.shift(),X=V+$.shift(),Q=Z+$.shift(),W=X+$.shift(),k=Q+$.shift(),R=W+$.shift(),c=k+$.shift(),u=R+$.shift(),a=c+$.shift(),n=u+$.shift(),Math.abs(a-A)>Math.abs(n-V))A=a+$.shift();else V=n+$.shift();w.curveTo(Z,X,Q,W,k,R),w.curveTo(c,u,a,n,A,V);break;default:console.log("Glyph "+Y.index+": unknown operator 1200"+x),$.length=0}break;case 14:if($.length>0&&!U)I=$.shift()+q,U=!0;if(H)w.closePath(),H=!1;break;case 18:j();break;case 19:case 20:j(),m+=z+7>>3;break;case 21:if($.length>2&&!U)I=$.shift()+q,U=!0;V+=$.pop(),A+=$.pop(),F(A,V);break;case 22:if($.length>1&&!U)I=$.shift()+q,U=!0;A+=$.pop(),F(A,V);break;case 23:j();break;case 24:while($.length>2)Z=A+$.shift(),X=V+$.shift(),Q=Z+$.shift(),W=X+$.shift(),A=Q+$.shift(),V=W+$.shift(),w.curveTo(Z,X,Q,W,A,V);A+=$.shift(),V+=$.shift(),w.lineTo(A,V);break;case 25:while($.length>6)A+=$.shift(),V+=$.shift(),w.lineTo(A,V);Z=A+$.shift(),X=V+$.shift(),Q=Z+$.shift(),W=X+$.shift(),A=Q+$.shift(),V=W+$.shift(),w.curveTo(Z,X,Q,W,A,V);break;case 26:if($.length%2)A+=$.shift();while($.length>0)Z=A,X=V+$.shift(),Q=Z+$.shift(),W=X+$.shift(),A=Q,V=W+$.shift(),w.curveTo(Z,X,Q,W,A,V);break;case 27:if($.length%2)V+=$.shift();while($.length>0)Z=A+$.shift(),X=V,Q=Z+$.shift(),W=X+$.shift(),A=Q+$.shift(),V=W,w.curveTo(Z,X,Q,W,A,V);break;case 28:C=D[m],g=D[m+1],$.push((C<<24|g<<16)>>16),m+=2;break;case 29:if(l=$.pop()+J.gsubrsBias,P=J.gsubrs[l],P)T(P);break;case 30:while($.length>0){if(Z=A,X=V+$.shift(),Q=Z+$.shift(),W=X+$.shift(),A=Q+$.shift(),V=W+($.length===1?$.shift():0),w.curveTo(Z,X,Q,W,A,V),$.length===0)break;Z=A+$.shift(),X=V,Q=Z+$.shift(),W=X+$.shift(),V=W+$.shift(),A=Q+($.length===1?$.shift():0),w.curveTo(Z,X,Q,W,A,V)}break;case 31:while($.length>0){if(Z=A+$.shift(),X=V,Q=Z+$.shift(),W=X+$.shift(),V=W+$.shift(),A=Q+($.length===1?$.shift():0),w.curveTo(Z,X,Q,W,A,V),$.length===0)break;Z=A,X=V+$.shift(),Q=Z+$.shift(),W=X+$.shift(),A=Q+$.shift(),V=W+($.length===1?$.shift():0),w.curveTo(Z,X,Q,W,A,V)}break;default:if(x<32)console.log("Glyph "+Y.index+": unknown operator "+x);else if(x<247)$.push(x-139);else if(x<251)C=D[m],m+=1,$.push((x-247)*256+C+108);else if(x<255)C=D[m],m+=1,$.push(-(x-251)*256-C-108);else C=D[m],g=D[m+1],d=D[m+2],r=D[m+3],m+=4,$.push((C<<24|g<<16|d<<8|r)/65536)}}}return T(K),Y.advanceWidth=I,w}function ow(J,Y,K,Z){var X=[],Q,W=new o.Parser(J,Y),w=W.parseCard8();if(w===0)for(var $=0;$<K;$++){if(Q=W.parseCard8(),Q>=Z)throw Error("CFF table CID Font FDSelect has bad FD index value "+Q+" (FD count "+Z+")");X.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 H;for(var A=0;A<z;A++){if(Q=W.parseCard8(),H=W.parseCard16(),Q>=Z)throw Error("CFF table CID Font FDSelect has bad FD index value "+Q+" (FD count "+Z+")");if(H>K)throw Error("CFF Table CID Font FDSelect format 3 range has bad GID "+H);for(;U<H;U++)X.push(Q);U=H}if(H!==K)throw Error("CFF Table CID Font FDSelect format 3 range has bad final GID "+H)}else throw Error("CFF Table CID Font FDSelect table has unsupported format "+w);return X}function rw(J,Y,K,Z){K.tables.cff={};var X=dw(J,Y),Q=l1(J,X.endOffset,o.bytesToString),W=l1(J,Q.endOffset),w=l1(J,W.endOffset,o.bytesToString),$=l1(J,w.endOffset);K.gsubrs=$.objects,K.gsubrsBias=F9(K.gsubrs);var z=o2(J,Y,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(K.tables.cff.topDict=U,U._privateDict)K.defaultWidthX=U._privateDict.defaultWidthX,K.nominalWidthX=U._privateDict.nominalWidthX;if(U.ros[0]!==void 0&&U.ros[1]!==void 0)K.isCIDFont=!0;if(K.isCIDFont){var{fdArray:H,fdSelect:A}=U;if(H===0||A===0)throw Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");H+=Y;var V=l1(J,H),L=o2(J,Y,V.objects,w.objects);U._fdArray=L,A+=Y,U._fdSelect=ow(J,A,K.numGlyphs,L.length)}var B=Y+U.private[1],O=jJ(J,B,U.private[0],w.objects);if(K.defaultWidthX=O.defaultWidthX,K.nominalWidthX=O.nominalWidthX,O.subrs!==0){var q=B+O.subrs,N=l1(J,q);K.subrs=N.objects,K.subrsBias=F9(K.subrs)}else K.subrs=[],K.subrsBias=0;var E;if(Z.lowMemory)E=xw(J,Y+U.charStrings),K.nGlyphs=E.offsets.length;else E=l1(J,Y+U.charStrings),K.nGlyphs=E.objects.length;var I=iw(J,Y+U.charset,K.nGlyphs,w.objects);if(U.encoding===0)K.cffEncoding=new T8($W,I);else if(U.encoding===1)K.cffEncoding=new T8(wW,I);else K.cffEncoding=nw(J,Y+U.encoding,I);if(K.encoding=K.encoding||K.cffEncoding,K.glyphs=new I1.GlyphSet(K),Z.lowMemory)K._push=function(T){var D=bw(T,E.offsets,J,Y+U.charStrings);K.glyphs.push(T,I1.cffGlyphLoader(K,T,r2,D))};else for(var F=0;F<K.nGlyphs;F+=1){var j=E.objects[F];K.glyphs.push(F,I1.cffGlyphLoader(K,F,r2,j))}}var sw={parse:rw};function aw(J,Y,K){var Z={},X=new o.Parser(J,Y);return Z.tag=X.parseTag(),Z.minValue=X.parseFixed(),Z.defaultValue=X.parseFixed(),Z.maxValue=X.parseFixed(),X.skip("uShort",1),Z.name=K[X.parseUShort()]||{},Z}function tw(J,Y,K,Z){var X={},Q=new o.Parser(J,Y);X.name=Z[Q.parseUShort()]||{},Q.skip("uShort",1),X.coordinates={};for(var W=0;W<K.length;++W)X.coordinates[K[W].tag]=Q.parseFixed();return X}function ew(J,Y,K){var Z=new o.Parser(J,Y),X=Z.parseULong();U0.argument(X===65536,"Unsupported fvar table version.");var Q=Z.parseOffset16();Z.skip("uShort",1);var W=Z.parseUShort(),w=Z.parseUShort(),$=Z.parseUShort(),z=Z.parseUShort(),U=[];for(var H=0;H<W;H++)U.push(aw(J,Y+Q+H*w,K));var A=[],V=Y+Q+W*w;for(var L=0;L<$;L++)A.push(tw(J,V+L*z,U,K));return{axes:U,instances:A}}var Jz={parse:ew},Yz=function(){return{coverage:this.parsePointer(v.coverage),attachPoints:this.parseList(v.pointer(v.uShortList))}},Kz=function(){var J=this.parseUShort();if(U0.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()}},Zz=function(){return this.parseList(v.pointer(Kz))},Xz=function(){return{coverage:this.parsePointer(v.coverage),ligGlyphs:this.parseList(v.pointer(Zz))}},Qz=function(){return this.parseUShort(),this.parseList(v.pointer(v.coverage))};function Wz(J,Y){Y=Y||0;var K=new v(J,Y),Z=K.parseVersion(1);U0.argument(Z===1||Z===1.2||Z===1.3,"Unsupported GDEF table version.");var X={version:Z,classDef:K.parsePointer(v.classDef),attachList:K.parsePointer(Yz),ligCaretList:K.parsePointer(Xz),markAttachClassDef:K.parsePointer(v.classDef)};if(Z>=1.2)X.markGlyphSets=K.parsePointer(Qz);return X}var $z={parse:Wz},A1=[,,,,,,,,,,];A1[1]=function(){var Y=this.offset+this.relativeOffset,K=this.parseUShort();if(K===1)return{posFormat:1,coverage:this.parsePointer(v.coverage),value:this.parseValueRecord()};else if(K===2)return{posFormat:2,coverage:this.parsePointer(v.coverage),values:this.parseValueRecordList()};U0.assert(!1,"0x"+Y.toString(16)+": GPOS lookup type 1 format must be 1 or 2.")};A1[2]=function(){var Y=this.offset+this.relativeOffset,K=this.parseUShort();U0.assert(K===1||K===2,"0x"+Y.toString(16)+": GPOS lookup type 2 format must be 1 or 2.");var Z=this.parsePointer(v.coverage),X=this.parseUShort(),Q=this.parseUShort();if(K===1)return{posFormat:K,coverage:Z,valueFormat1:X,valueFormat2:Q,pairSets:this.parseList(v.pointer(v.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(X),value2:this.parseValueRecord(Q)}})))};else if(K===2){var W=this.parsePointer(v.classDef),w=this.parsePointer(v.classDef),$=this.parseUShort(),z=this.parseUShort();return{posFormat:K,coverage:Z,valueFormat1:X,valueFormat2:Q,classDef1:W,classDef2:w,class1Count:$,class2Count:z,classRecords:this.parseList($,v.list(z,function(){return{value1:this.parseValueRecord(X),value2:this.parseValueRecord(Q)}}))}}};A1[3]=function(){return{error:"GPOS Lookup 3 not supported"}};A1[4]=function(){return{error:"GPOS Lookup 4 not supported"}};A1[5]=function(){return{error:"GPOS Lookup 5 not supported"}};A1[6]=function(){return{error:"GPOS Lookup 6 not supported"}};A1[7]=function(){return{error:"GPOS Lookup 7 not supported"}};A1[8]=function(){return{error:"GPOS Lookup 8 not supported"}};A1[9]=function(){return{error:"GPOS Lookup 9 not supported"}};function wz(J,Y){Y=Y||0;var K=new v(J,Y),Z=K.parseVersion(1);if(U0.argument(Z===1||Z===1.1,"Unsupported GPOS table version "+Z),Z===1)return{version:Z,scripts:K.parseScriptList(),features:K.parseFeatureList(),lookups:K.parseLookupList(A1)};else return{version:Z,scripts:K.parseScriptList(),features:K.parseFeatureList(),lookups:K.parseLookupList(A1),variations:K.parseFeatureVariationsList()}}var zz={parse:wz},V1=[,,,,,,,,,];V1[1]=function(){var Y=this.offset+this.relativeOffset,K=this.parseUShort();if(K===1)return{substFormat:1,coverage:this.parsePointer(v.coverage),deltaGlyphId:this.parseUShort()};else if(K===2)return{substFormat:2,coverage:this.parsePointer(v.coverage),substitute:this.parseOffset16List()};U0.assert(!1,"0x"+Y.toString(16)+": lookup type 1 format must be 1 or 2.")};V1[2]=function(){var Y=this.parseUShort();return U0.argument(Y===1,"GSUB Multiple Substitution Subtable identifier-format must be 1"),{substFormat:Y,coverage:this.parsePointer(v.coverage),sequences:this.parseListOfLists()}};V1[3]=function(){var Y=this.parseUShort();return U0.argument(Y===1,"GSUB Alternate Substitution Subtable identifier-format must be 1"),{substFormat:Y,coverage:this.parsePointer(v.coverage),alternateSets:this.parseListOfLists()}};V1[4]=function(){var Y=this.parseUShort();return U0.argument(Y===1,"GSUB ligature table identifier-format must be 1"),{substFormat:Y,coverage:this.parsePointer(v.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var j5={sequenceIndex:v.uShort,lookupListIndex:v.uShort};V1[5]=function(){var Y=this.offset+this.relativeOffset,K=this.parseUShort();if(K===1)return{substFormat:K,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,j5)}})};else if(K===2)return{substFormat:K,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,j5)}})};else if(K===3){var Z=this.parseUShort(),X=this.parseUShort();return{substFormat:K,coverages:this.parseList(Z,v.pointer(v.coverage)),lookupRecords:this.parseRecordList(X,j5)}}U0.assert(!1,"0x"+Y.toString(16)+": lookup type 5 format must be 1, 2 or 3.")};V1[6]=function(){var Y=this.offset+this.relativeOffset,K=this.parseUShort();if(K===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(j5)}})};else if(K===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(j5)}})};else if(K===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(j5)};U0.assert(!1,"0x"+Y.toString(16)+": lookup type 6 format must be 1, 2 or 3.")};V1[7]=function(){var Y=this.parseUShort();U0.argument(Y===1,"GSUB Extension Substitution subtable identifier-format must be 1");var K=this.parseUShort(),Z=new v(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:K,extension:V1[K].call(Z)}};V1[8]=function(){var Y=this.parseUShort();return U0.argument(Y===1,"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"),{substFormat:Y,coverage:this.parsePointer(v.coverage),backtrackCoverage:this.parseList(v.pointer(v.coverage)),lookaheadCoverage:this.parseList(v.pointer(v.coverage)),substitutes:this.parseUShortList()}};function Uz(J,Y){Y=Y||0;var K=new v(J,Y),Z=K.parseVersion(1);if(U0.argument(Z===1||Z===1.1,"Unsupported GSUB table version."),Z===1)return{version:Z,scripts:K.parseScriptList(),features:K.parseFeatureList(),lookups:K.parseLookupList(V1)};else return{version:Z,scripts:K.parseScriptList(),features:K.parseFeatureList(),lookups:K.parseLookupList(V1),variations:K.parseFeatureVariationsList()}}var Hz={parse:Uz};function Az(J,Y){var K={},Z=new o.Parser(J,Y);return K.version=Z.parseVersion(),K.fontRevision=Math.round(Z.parseFixed()*1000)/1000,K.checkSumAdjustment=Z.parseULong(),K.magicNumber=Z.parseULong(),U0.argument(K.magicNumber===1594834165,"Font header has wrong magic number."),K.flags=Z.parseUShort(),K.unitsPerEm=Z.parseUShort(),K.created=Z.parseLongDateTime(),K.modified=Z.parseLongDateTime(),K.xMin=Z.parseShort(),K.yMin=Z.parseShort(),K.xMax=Z.parseShort(),K.yMax=Z.parseShort(),K.macStyle=Z.parseUShort(),K.lowestRecPPEM=Z.parseUShort(),K.fontDirectionHint=Z.parseShort(),K.indexToLocFormat=Z.parseShort(),K.glyphDataFormat=Z.parseShort(),K}var Vz={parse:Az};function Bz(J,Y){var K={},Z=new o.Parser(J,Y);return K.version=Z.parseVersion(),K.ascender=Z.parseShort(),K.descender=Z.parseShort(),K.lineGap=Z.parseShort(),K.advanceWidthMax=Z.parseUShort(),K.minLeftSideBearing=Z.parseShort(),K.minRightSideBearing=Z.parseShort(),K.xMaxExtent=Z.parseShort(),K.caretSlopeRise=Z.parseShort(),K.caretSlopeRun=Z.parseShort(),K.caretOffset=Z.parseShort(),Z.relativeOffset+=8,K.metricDataFormat=Z.parseShort(),K.numberOfHMetrics=Z.parseUShort(),K}var Gz={parse:Bz};function Oz(J,Y,K,Z,X){var Q,W,w=new o.Parser(J,Y);for(var $=0;$<Z;$+=1){if($<K)Q=w.parseUShort(),W=w.parseShort();var z=X.get($);z.advanceWidth=Q,z.leftSideBearing=W}}function Lz(J,Y,K,Z,X){J._hmtxTableData={};var Q,W,w=new o.Parser(Y,K);for(var $=0;$<X;$+=1){if($<Z)Q=w.parseUShort(),W=w.parseShort();J._hmtxTableData[$]={advanceWidth:Q,leftSideBearing:W}}}function Mz(J,Y,K,Z,X,Q,W){if(W.lowMemory)Lz(J,Y,K,Z,X);else Oz(Y,K,Z,X,Q)}var qz={parse:Mz};function Nz(J){var Y={};J.skip("uShort");var K=J.parseUShort();U0.argument(K===0,"Unsupported kern sub-table version."),J.skip("uShort",2);var Z=J.parseUShort();J.skip("uShort",3);for(var X=0;X<Z;X+=1){var Q=J.parseUShort(),W=J.parseUShort(),w=J.parseShort();Y[Q+","+W]=w}return Y}function jz(J){var Y={};J.skip("uShort");var K=J.parseULong();if(K>1)console.warn("Only the first kern subtable is supported.");J.skip("uLong");var Z=J.parseUShort(),X=Z&255;if(J.skip("uShort"),X===0){var Q=J.parseUShort();J.skip("uShort",3);for(var W=0;W<Q;W+=1){var w=J.parseUShort(),$=J.parseUShort(),z=J.parseShort();Y[w+","+$]=z}}return Y}function Ez(J,Y){var K=new o.Parser(J,Y),Z=K.parseUShort();if(Z===0)return Nz(K);else if(Z===1)return jz(K);else throw Error("Unsupported kern table version ("+Z+").")}var Fz={parse:Ez};function _z(J,Y){var K=new o.Parser(J,Y),Z=K.parseULong();U0.argument(Z===1,"Unsupported ltag table version."),K.skip("uLong",1);var X=K.parseULong(),Q=[];for(var W=0;W<X;W++){var w="",$=Y+K.parseUShort(),z=K.parseUShort();for(var U=$;U<$+z;++U)w+=String.fromCharCode(J.getInt8(U));Q.push(w)}return Q}var Iz={parse:_z};function Dz(J,Y,K,Z){var X=new o.Parser(J,Y),Q=Z?X.parseUShort:X.parseULong,W=[];for(var w=0;w<K+1;w+=1){var $=Q.call(X);if(Z)$*=2;W.push($)}return W}var Rz={parse:Dz};function Cz(J,Y){var K={},Z=new o.Parser(J,Y);if(K.version=Z.parseVersion(),K.numGlyphs=Z.parseUShort(),K.version===1)K.maxPoints=Z.parseUShort(),K.maxContours=Z.parseUShort(),K.maxCompositePoints=Z.parseUShort(),K.maxCompositeContours=Z.parseUShort(),K.maxZones=Z.parseUShort(),K.maxTwilightPoints=Z.parseUShort(),K.maxStorage=Z.parseUShort(),K.maxFunctionDefs=Z.parseUShort(),K.maxInstructionDefs=Z.parseUShort(),K.maxStackElements=Z.parseUShort(),K.maxSizeOfInstructions=Z.parseUShort(),K.maxComponentElements=Z.parseUShort(),K.maxComponentDepth=Z.parseUShort();return K}var Tz={parse:Cz};function Pz(J,Y){var K={},Z=new o.Parser(J,Y);K.version=Z.parseUShort(),K.xAvgCharWidth=Z.parseShort(),K.usWeightClass=Z.parseUShort(),K.usWidthClass=Z.parseUShort(),K.fsType=Z.parseUShort(),K.ySubscriptXSize=Z.parseShort(),K.ySubscriptYSize=Z.parseShort(),K.ySubscriptXOffset=Z.parseShort(),K.ySubscriptYOffset=Z.parseShort(),K.ySuperscriptXSize=Z.parseShort(),K.ySuperscriptYSize=Z.parseShort(),K.ySuperscriptXOffset=Z.parseShort(),K.ySuperscriptYOffset=Z.parseShort(),K.yStrikeoutSize=Z.parseShort(),K.yStrikeoutPosition=Z.parseShort(),K.sFamilyClass=Z.parseShort(),K.panose=[];for(var X=0;X<10;X++)K.panose[X]=Z.parseByte();if(K.ulUnicodeRange1=Z.parseULong(),K.ulUnicodeRange2=Z.parseULong(),K.ulUnicodeRange3=Z.parseULong(),K.ulUnicodeRange4=Z.parseULong(),K.achVendID=String.fromCharCode(Z.parseByte(),Z.parseByte(),Z.parseByte(),Z.parseByte()),K.fsSelection=Z.parseUShort(),K.usFirstCharIndex=Z.parseUShort(),K.usLastCharIndex=Z.parseUShort(),K.sTypoAscender=Z.parseShort(),K.sTypoDescender=Z.parseShort(),K.sTypoLineGap=Z.parseShort(),K.usWinAscent=Z.parseUShort(),K.usWinDescent=Z.parseUShort(),K.version>=1)K.ulCodePageRange1=Z.parseULong(),K.ulCodePageRange2=Z.parseULong();if(K.version>=2)K.sxHeight=Z.parseShort(),K.sCapHeight=Z.parseShort(),K.usDefaultChar=Z.parseUShort(),K.usBreakChar=Z.parseUShort(),K.usMaxContent=Z.parseUShort();return K}var Sz={parse:Pz};function vz(J,Y){var K={},Z=new o.Parser(J,Y);switch(K.version=Z.parseVersion(),K.italicAngle=Z.parseFixed(),K.underlinePosition=Z.parseShort(),K.underlineThickness=Z.parseShort(),K.isFixedPitch=Z.parseULong(),K.minMemType42=Z.parseULong(),K.maxMemType42=Z.parseULong(),K.minMemType1=Z.parseULong(),K.maxMemType1=Z.parseULong(),K.names=[],K.version){case 1:break;case 2:K.numberOfGlyphs=Z.parseUShort(),K.glyphNameIndex=Array(K.numberOfGlyphs);for(var X=0;X<K.numberOfGlyphs;X++)K.glyphNameIndex[X]=Z.parseUShort();break;case 2.5:K.numberOfGlyphs=Z.parseUShort(),K.offset=Array(K.numberOfGlyphs);for(var Q=0;Q<K.numberOfGlyphs;Q++)K.offset[Q]=Z.parseChar();break}return K}var kz={parse:vz},k8={};k8.UTF8=function(J,Y,K){var Z=[],X=K;for(var Q=0;Q<X;Q++,Y+=1)Z[Q]=J.getUint8(Y);return String.fromCharCode.apply(null,Z)};k8.UTF16=function(J,Y,K){var Z=[],X=K/2;for(var Q=0;Q<X;Q++,Y+=2)Z[Q]=J.getUint16(Y);return String.fromCharCode.apply(null,Z)};var yz={"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"};k8.MACSTRING=function(J,Y,K,Z){var X=yz[Z];if(X===void 0)return;var Q="";for(var W=0;W<K;W++){var w=J.getUint8(Y+W);if(w<=127)Q+=String.fromCharCode(w);else Q+=X[w&127]}return Q};function hz(J,Y){var K=new o.Parser(J,Y),Z=K.parseULong();U0.argument(Z===1,"Unsupported META table version."),K.parseULong(),K.parseULong();var X=K.parseULong(),Q={};for(var W=0;W<X;W++){var w=K.parseTag(),$=K.parseULong(),z=K.parseULong(),U=k8.UTF8(J,Y+$,z);Q[w]=U}return Q}var gz={parse:hz};function s2(J,Y){var K=[],Z=12;for(var X=0;X<Y;X+=1){var Q=o.getTag(J,Z),W=o.getULong(J,Z+4),w=o.getULong(J,Z+8),$=o.getULong(J,Z+12);K.push({tag:Q,checksum:W,offset:w,length:$,compression:!1}),Z+=16}return K}function xz(J,Y){var K=[],Z=44;for(var X=0;X<Y;X+=1){var Q=o.getTag(J,Z),W=o.getULong(J,Z+4),w=o.getULong(J,Z+8),$=o.getULong(J,Z+12),z=void 0;if(w<$)z="WOFF";else z=!1;K.push({tag:Q,offset:W,compression:z,compressedLength:w,length:$}),Z+=20}return K}function C0(J,Y){if(Y.compression==="WOFF"){var K=new Uint8Array(J.buffer,Y.offset+2,Y.compressedLength-2),Z=new Uint8Array(Y.length);if(ZW(K,Z),Z.byteLength!==Y.length)throw Error("Decompression error: "+Y.tag+" decompressed length doesn't match recorded length");var X=new DataView(Z.buffer,0);return{data:X,offset:0}}else return{data:J,offset:Y.offset}}function bz(J,Y){Y=Y===void 0||Y===null?{}:Y;var K,Z=new m0({empty:!0}),X=new DataView(J,0),Q,W=[],w=o.getTag(X,0);if(w===String.fromCharCode(0,1,0,0)||w==="true"||w==="typ1")Z.outlinesFormat="truetype",Q=o.getUShort(X,4),W=s2(X,Q);else if(w==="OTTO")Z.outlinesFormat="cff",Q=o.getUShort(X,4),W=s2(X,Q);else if(w==="wOFF"){var $=o.getTag(X,4);if($===String.fromCharCode(0,1,0,0))Z.outlinesFormat="truetype";else if($==="OTTO")Z.outlinesFormat="cff";else throw Error("Unsupported OpenType flavor "+w);Q=o.getUShort(X,12),W=xz(X,Q)}else throw Error("Unsupported OpenType signature "+w);var z,U,H,A,V,L,B,O,q,N,E;for(var I=0;I<Q;I+=1){var F=W[I],j=void 0;switch(F.tag){case"cmap":j=C0(X,F),Z.tables.cmap=gw.parse(j.data,j.offset),Z.encoding=new QJ(Z.tables.cmap);break;case"cvt ":j=C0(X,F),E=new o.Parser(j.data,j.offset),Z.tables.cvt=E.parseShortList(F.length/2);break;case"fvar":U=F;break;case"fpgm":j=C0(X,F),E=new o.Parser(j.data,j.offset),Z.tables.fpgm=E.parseByteList(F.length);break;case"head":j=C0(X,F),Z.tables.head=Vz.parse(j.data,j.offset),Z.unitsPerEm=Z.tables.head.unitsPerEm,K=Z.tables.head.indexToLocFormat;break;case"hhea":j=C0(X,F),Z.tables.hhea=Gz.parse(j.data,j.offset),Z.ascender=Z.tables.hhea.ascender,Z.descender=Z.tables.hhea.descender,Z.numberOfHMetrics=Z.tables.hhea.numberOfHMetrics;break;case"hmtx":B=F;break;case"ltag":j=C0(X,F),ltagTable=Iz.parse(j.data,j.offset);break;case"maxp":j=C0(X,F),Z.tables.maxp=Tz.parse(j.data,j.offset),Z.numGlyphs=Z.tables.maxp.numGlyphs;break;case"OS/2":j=C0(X,F),Z.tables.os2=Sz.parse(j.data,j.offset);break;case"post":j=C0(X,F),Z.tables.post=kz.parse(j.data,j.offset);break;case"prep":j=C0(X,F),E=new o.Parser(j.data,j.offset),Z.tables.prep=E.parseByteList(F.length);break;case"glyf":H=F;break;case"loca":q=F;break;case"CFF ":z=F;break;case"kern":O=F;break;case"GDEF":A=F;break;case"GPOS":V=F;break;case"GSUB":L=F;break;case"meta":N=F;break}}if(H&&q){var T=K===0,D=C0(X,q),C=Rz.parse(D.data,D.offset,Z.numGlyphs,T),g=C0(X,H);Z.glyphs=HJ.parse(g.data,g.offset,C,Z,Y)}else if(z){var d=C0(X,z);sw.parse(d.data,d.offset,Z,Y)}else throw Error("Font doesn't contain TrueType or CFF outlines.");var r=C0(X,B);if(qz.parse(Z,r.data,r.offset,Z.numberOfHMetrics,Z.numGlyphs,Z.glyphs,Y),HW(Z,Y),O){var l=C0(X,O);Z.kerningPairs=Fz.parse(l.data,l.offset)}else Z.kerningPairs={};if(A){var P=C0(X,A);Z.tables.gdef=$z.parse(P.data,P.offset)}if(V){var k=C0(X,V);Z.tables.gpos=zz.parse(k.data,k.offset),Z.position.init()}if(L){var R=C0(X,L);Z.tables.gsub=Hz.parse(R.data,R.offset)}if(U){var c=C0(X,U);Z.tables.fvar=Jz.parse(c.data,c.offset,Z.names)}if(N){var u=C0(X,N);Z.tables.meta=gz.parse(u.data,u.offset),Z.metas=Z.tables.meta}return Z}function fz(){}function mz(){}var cz=Object.freeze({__proto__:null,Font:m0,Glyph:v1,Path:f0,_parse:o,parse:bz,load:fz,loadSync:mz}),y8=cz;var{create:dz,defineProperty:e8,getOwnPropertyDescriptor:uz,getOwnPropertyNames:lz,getPrototypeOf:pz}=Object,iz=Object.prototype.hasOwnProperty,o9=(J,Y)=>()=>(J&&(Y=J(J=0)),Y),t=(J,Y)=>()=>(Y||J((Y={exports:{}}).exports,Y),Y.exports),r9=(J,Y)=>{for(var K in Y)e8(J,K,{get:Y[K],enumerable:!0})},oJ=(J,Y,K,Z)=>{if(Y&&typeof Y=="object"||typeof Y=="function")for(let X of lz(Y))!iz.call(J,X)&&X!==K&&e8(J,X,{get:()=>Y[X],enumerable:!(Z=uz(Y,X))||Z.enumerable});return J},nz=(J,Y,K)=>(K=J!=null?dz(pz(J)):{},oJ(Y||!J||!J.__esModule?e8(K,"default",{value:J,enumerable:!0}):K,J)),a8=(J)=>oJ(e8({},"__esModule",{value:!0}),J),rJ={};r9(rJ,{getYogaModule:()=>oz});async function oz(){let{default:J}=await import("./chunk-zhsaz9cr.js");return J()}var rz=o9(()=>{}),sJ=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Y});function Y(K){if(K=`${K}`,K==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(K))return K.replace(/^[+-]?/,(Z)=>Z==="-"?"":"-");if(K.includes("var(")||K.includes("calc("))return`calc(${K} * -1)`}}),sz=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Y});var Y=["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"]}),az=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Y});function Y(K,Z){return K===void 0?Z:Array.isArray(K)?K:[...new Set(Z.filter((X)=>K!==!1&&K[X]!==!1).concat(Object.keys(K).filter((X)=>K[X]!==!1)))]}}),aJ=t((J,Y)=>{Y.exports={content:[],presets:[],darkMode:"media",theme:{screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:({colors:K})=>({inherit:K.inherit,current:K.current,transparent:K.transparent,black:K.black,white:K.white,slate:K.slate,gray:K.gray,zinc:K.zinc,neutral:K.neutral,stone:K.stone,red:K.red,orange:K.orange,amber:K.amber,yellow:K.yellow,lime:K.lime,green:K.green,emerald:K.emerald,teal:K.teal,cyan:K.cyan,sky:K.sky,blue:K.blue,indigo:K.indigo,violet:K.violet,purple:K.purple,fuchsia:K.fuchsia,pink:K.pink,rose:K.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:K})=>K("blur"),backdropBrightness:({theme:K})=>K("brightness"),backdropContrast:({theme:K})=>K("contrast"),backdropGrayscale:({theme:K})=>K("grayscale"),backdropHueRotate:({theme:K})=>K("hueRotate"),backdropInvert:({theme:K})=>K("invert"),backdropOpacity:({theme:K})=>K("opacity"),backdropSaturate:({theme:K})=>K("saturate"),backdropSepia:({theme:K})=>K("sepia"),backgroundColor:({theme:K})=>K("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:K})=>K("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:K})=>({...K("colors"),DEFAULT:K("colors.gray.200","currentColor")}),borderOpacity:({theme:K})=>K("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:K})=>({...K("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:K})=>K("colors"),caretColor:({theme:K})=>K("colors"),accentColor:({theme:K})=>({...K("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:K})=>K("borderColor"),divideOpacity:({theme:K})=>K("borderOpacity"),divideWidth:({theme:K})=>K("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:K})=>K("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:K})=>({auto:"auto",...K("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:K})=>K("spacing"),gradientColorStops:({theme:K})=>K("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:K})=>({auto:"auto",...K("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:K})=>({auto:"auto",...K("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:K})=>({auto:"auto",...K("spacing")}),maxHeight:({theme:K})=>({...K("spacing"),full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:K,breakpoints:Z})=>({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",...Z(K("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:K})=>K("spacing"),placeholderColor:({theme:K})=>K("colors"),placeholderOpacity:({theme:K})=>K("opacity"),outlineColor:({theme:K})=>K("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:K})=>({DEFAULT:K("colors.blue.500","#3b82f6"),...K("colors")}),ringOffsetColor:({theme:K})=>K("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:K})=>({DEFAULT:"0.5",...K("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:K})=>({...K("spacing")}),scrollPadding:({theme:K})=>K("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:K})=>({...K("spacing")}),stroke:({theme:K})=>K("colors"),strokeWidth:{0:"0",1:"1",2:"2"},textColor:({theme:K})=>K("colors"),textDecorationColor:({theme:K})=>K("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:K})=>({...K("spacing")}),textOpacity:({theme:K})=>K("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:K})=>({...K("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:K})=>({auto:"auto",...K("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:[]}}),J6={};r9(J6,{default:()=>tJ});var tJ,s9=o9(()=>{tJ={info(J,Y){console.info(...Array.isArray(J)?[J]:[Y,J])},warn(J,Y){console.warn(...Array.isArray(J)?[J]:[Y,J])},risk(J,Y){console.error(...Array.isArray(J)?[J]:[Y,J])}}}),tz=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>X});var Y=K((s9(),a8(J6)));function K(Q){return Q&&Q.__esModule?Q:{default:Q}}function Z({version:Q,from:W,to:w}){Y.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 X={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 Z({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return Z({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return Z({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return Z({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return Z({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}),ez=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"defaults",{enumerable:!0,get:()=>Y});function Y(K,...Z){for(let W of Z){for(let w in W){var X;!(K==null||(X=K.hasOwnProperty)===null||X===void 0)&&X.call(K,w)||(K[w]=W[w])}for(let w of Object.getOwnPropertySymbols(W)){var Q;!(K==null||(Q=K.hasOwnProperty)===null||Q===void 0)&&Q.call(K,w)||(K[w]=W[w])}}return K}}),JU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"toPath",{enumerable:!0,get:()=>Y});function Y(K){if(Array.isArray(K))return K;let Z=K.split("[").length-1,X=K.split("]").length-1;if(Z!==X)throw Error(`Path is invalid. Has unbalanced brackets: ${K}`);return K.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}}),YU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"normalizeConfig",{enumerable:!0,get:()=>X});var Y=Z((s9(),a8(J6)));function K(Q){if(typeof WeakMap!="function")return null;var W=new WeakMap,w=new WeakMap;return(K=function($){return $?w:W})(Q)}function Z(Q,W){if(!W&&Q&&Q.__esModule)return Q;if(Q===null||typeof Q!="object"&&typeof Q!="function")return{default:Q};var w=K(W);if(w&&w.has(Q))return w.get(Q);var $={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var U in Q)if(U!=="default"&&Object.prototype.hasOwnProperty.call(Q,U)){var H=z?Object.getOwnPropertyDescriptor(Q,U):null;H&&(H.get||H.set)?Object.defineProperty($,U,H):$[U]=Q[U]}return $.default=Q,w&&w.set(Q,$),$}function X(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})()||Y.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:$,purge:z,safelist:U}=Q;return Array.isArray(U)?U:Array.isArray($==null?void 0:$.safelist)?$.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")Y.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:$}=Q;return Array.isArray($)?$:Array.isArray($==null?void 0:$.content)?$.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,H,A,V,L,B,O,q,N,E;return!((U=Q.purge)===null||U===void 0)&&U.extract?Q.purge.extract:!((H=Q.content)===null||H===void 0)&&H.extract?Q.content.extract:!((A=Q.purge)===null||A===void 0||(V=A.extract)===null||V===void 0)&&V.DEFAULT?Q.purge.extract.DEFAULT:!((L=Q.content)===null||L===void 0||(B=L.extract)===null||B===void 0)&&B.DEFAULT?Q.content.extract.DEFAULT:!((O=Q.purge)===null||O===void 0||(q=O.options)===null||q===void 0)&&q.extractors?Q.purge.options.extractors:!((N=Q.content)===null||N===void 0||(E=N.options)===null||E===void 0)&&E.extractors?Q.content.options.extractors:{}})(),$={},z=(()=>{var U,H,A,V;if(!((U=Q.purge)===null||U===void 0||(H=U.options)===null||H===void 0)&&H.defaultExtractor)return Q.purge.options.defaultExtractor;if(!((A=Q.content)===null||A===void 0||(V=A.options)===null||V===void 0)&&V.defaultExtractor)return Q.content.options.defaultExtractor})();if(z!==void 0&&($.DEFAULT=z),typeof w=="function")$.DEFAULT=w;else if(Array.isArray(w))for(let{extensions:U,extractor:H}of w??[])for(let A of U)$[A]=H;else typeof w=="object"&&w!==null&&Object.assign($,w);return $})(),transform:(()=>{let w=(()=>{var z,U,H,A,V,L;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:!((H=Q.purge)===null||H===void 0||(A=H.transform)===null||A===void 0)&&A.DEFAULT?Q.purge.transform.DEFAULT:!((V=Q.content)===null||V===void 0||(L=V.transform)===null||L===void 0)&&L.DEFAULT?Q.content.transform.DEFAULT:{}})(),$={};return typeof w=="function"&&($.DEFAULT=w),typeof w=="object"&&w!==null&&Object.assign($,w),$})()};for(let w of Q.content.files)if(typeof w=="string"&&/{([^,]*?)}/g.test(w)){Y.default.warn("invalid-glob-braces",[`The glob pattern ${(0,Y.dim)(w)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,Y.dim)(w.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return Q}}),KU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Y});function Y(K){if(Object.prototype.toString.call(K)!=="[object Object]")return!1;let Z=Object.getPrototypeOf(K);return Z===null||Z===Object.prototype}}),ZU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"cloneDeep",{enumerable:!0,get:()=>Y});function Y(K){return Array.isArray(K)?K.map((Z)=>Y(Z)):typeof K=="object"&&K!==null?Object.fromEntries(Object.entries(K).map(([Z,X])=>[Z,Y(X)])):K}}),eJ=t((J,Y)=>{J.__esModule=!0,J.default=X;function K(Q){for(var W=Q.toLowerCase(),w="",$=!1,z=0;z<6&&W[z]!==void 0;z++){var U=W.charCodeAt(z),H=U>=97&&U<=102||U>=48&&U<=57;if($=U===32,!H)break;w+=W[z]}if(w.length!==0){var A=parseInt(w,16),V=A>=55296&&A<=57343;return V||A===0||A>1114111?["\uFFFD",w.length+($?1:0)]:[String.fromCodePoint(A),w.length+($?1:0)]}}var Z=/\\/;function X(Q){var W=Z.test(Q);if(!W)return Q;for(var w="",$=0;$<Q.length;$++){if(Q[$]==="\\"){var z=K(Q.slice($+1,$+7));if(z!==void 0){w+=z[0],$+=z[1];continue}if(Q[$+1]==="\\"){w+="\\",$++;continue}Q.length===$+1&&(w+=Q[$]);continue}w+=Q[$]}return w}Y.exports=J.default}),XU=t((J,Y)=>{J.__esModule=!0,J.default=K;function K(Z){for(var X=arguments.length,Q=Array(X>1?X-1:0),W=1;W<X;W++)Q[W-1]=arguments[W];for(;Q.length>0;){var w=Q.shift();if(!Z[w])return;Z=Z[w]}return Z}Y.exports=J.default}),QU=t((J,Y)=>{J.__esModule=!0,J.default=K;function K(Z){for(var X=arguments.length,Q=Array(X>1?X-1:0),W=1;W<X;W++)Q[W-1]=arguments[W];for(;Q.length>0;){var w=Q.shift();Z[w]||(Z[w]={}),Z=Z[w]}}Y.exports=J.default}),WU=t((J,Y)=>{J.__esModule=!0,J.default=K;function K(Z){for(var X="",Q=Z.indexOf("/*"),W=0;Q>=0;){X=X+Z.slice(W,Q);var w=Z.indexOf("*/",Q+2);if(w<0)return X;W=w+2,Q=Z.indexOf("/*",W)}return X=X+Z.slice(W),X}Y.exports=J.default}),Y6=t((J)=>{J.__esModule=!0,J.stripComments=J.ensureObject=J.getProp=J.unesc=void 0;var Y=Q(eJ());J.unesc=Y.default;var K=Q(XU());J.getProp=K.default;var Z=Q(QU());J.ensureObject=Z.default;var X=Q(WU());J.stripComments=X.default;function Q(W){return W&&W.__esModule?W:{default:W}}}),r1=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=Y6();function Z(w,$){for(var z=0;z<$.length;z++){var U=$[z];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(w,U.key,U)}}function X(w,$,z){return $&&Z(w.prototype,$),z&&Z(w,z),w}var Q=function w($,z){if(typeof $!="object"||$===null)return $;var U=new $.constructor;for(var H in $)if($.hasOwnProperty(H)){var A=$[H],V=typeof A;H==="parent"&&V==="object"?z&&(U[H]=z):A instanceof Array?U[H]=A.map(function(L){return w(L,U)}):U[H]=w(A,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 $=w.prototype;return $.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},$.replaceWith=function(){if(this.parent){for(var z in arguments)this.parent.insertBefore(this,arguments[z]);this.remove()}return this},$.next=function(){return this.parent.at(this.parent.index(this)+1)},$.prev=function(){return this.parent.at(this.parent.index(this)-1)},$.clone=function(z){z===void 0&&(z={});var U=Q(this);for(var H in z)U[H]=z[H];return U},$.appendToPropertyAndEscape=function(z,U,H){this.raws||(this.raws={});var A=this[z],V=this.raws[z];this[z]=A+U,V||H!==U?this.raws[z]=(V||A)+H:delete this.raws[z]},$.setPropertyAndEscape=function(z,U,H){this.raws||(this.raws={}),this[z]=U,this.raws[z]=H},$.setPropertyWithoutEscape=function(z,U){this[z]=U,this.raws&&delete this.raws[z]},$.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)},$.stringifyProperty=function(z){return this.raws&&this.raws[z]||this[z]},$.valueToString=function(){return String(this.stringifyProperty("value"))},$.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},X(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,K.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,K.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=z}}]),w}();J.default=W,Y.exports=J.default}),c0=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 Y="tag";J.TAG=Y;var K="string";J.STRING=K;var Z="selector";J.SELECTOR=Z;var X="root";J.ROOT=X;var Q="pseudo";J.PSEUDO=Q;var W="nesting";J.NESTING=W;var w="id";J.ID=w;var $="comment";J.COMMENT=$;var z="combinator";J.COMBINATOR=z;var U="class";J.CLASS=U;var H="attribute";J.ATTRIBUTE=H;var A="universal";J.UNIVERSAL=A}),a9=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=W(r1()),Z=Q(c0());function X(){if(typeof WeakMap!="function")return null;var B=new WeakMap;return X=function(){return B},B}function Q(B){if(B&&B.__esModule)return B;if(B===null||typeof B!="object"&&typeof B!="function")return{default:B};var O=X();if(O&&O.has(B))return O.get(B);var q={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in B)if(Object.prototype.hasOwnProperty.call(B,E)){var I=N?Object.getOwnPropertyDescriptor(B,E):null;I&&(I.get||I.set)?Object.defineProperty(q,E,I):q[E]=B[E]}return q.default=B,O&&O.set(B,q),q}function W(B){return B&&B.__esModule?B:{default:B}}function w(B,O){var q;if(typeof Symbol>"u"||B[Symbol.iterator]==null){if(Array.isArray(B)||(q=$(B))||O&&B&&typeof B.length=="number"){q&&(B=q);var N=0;return function(){return N>=B.length?{done:!0}:{done:!1,value:B[N++]}}}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 q=B[Symbol.iterator](),q.next.bind(q)}function $(B,O){if(B){if(typeof B=="string")return z(B,O);var q=Object.prototype.toString.call(B).slice(8,-1);if(q==="Object"&&B.constructor&&(q=B.constructor.name),q==="Map"||q==="Set")return Array.from(B);if(q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(q))return z(B,O)}}function z(B,O){(O==null||O>B.length)&&(O=B.length);for(var q=0,N=Array(O);q<O;q++)N[q]=B[q];return N}function U(B,O){for(var q=0;q<O.length;q++){var N=O[q];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(B,N.key,N)}}function H(B,O,q){return O&&U(B.prototype,O),q&&U(B,q),B}function A(B,O){B.prototype=Object.create(O.prototype),B.prototype.constructor=B,V(B,O)}function V(B,O){return V=Object.setPrototypeOf||function(q,N){return q.__proto__=N,q},V(B,O)}var L=function(B){A(O,B);function O(N){var E;return E=B.call(this,N)||this,E.nodes||(E.nodes=[]),E}var q=O.prototype;return q.append=function(N){return N.parent=this,this.nodes.push(N),this},q.prepend=function(N){return N.parent=this,this.nodes.unshift(N),this},q.at=function(N){return this.nodes[N]},q.index=function(N){return typeof N=="number"?N:this.nodes.indexOf(N)},q.removeChild=function(N){N=this.index(N),this.at(N).parent=void 0,this.nodes.splice(N,1);var E;for(var I in this.indexes)E=this.indexes[I],E>=N&&(this.indexes[I]=E-1);return this},q.removeAll=function(){for(var N=w(this.nodes),E;!(E=N()).done;){var I=E.value;I.parent=void 0}return this.nodes=[],this},q.empty=function(){return this.removeAll()},q.insertAfter=function(N,E){E.parent=this;var I=this.index(N);this.nodes.splice(I+1,0,E),E.parent=this;var F;for(var j in this.indexes)F=this.indexes[j],I<=F&&(this.indexes[j]=F+1);return this},q.insertBefore=function(N,E){E.parent=this;var I=this.index(N);this.nodes.splice(I,0,E),E.parent=this;var F;for(var j in this.indexes)F=this.indexes[j],F<=I&&(this.indexes[j]=F+1);return this},q._findChildAtPosition=function(N,E){var I=void 0;return this.each(function(F){if(F.atPosition){var j=F.atPosition(N,E);if(j)return I=j,!1}else if(F.isAtPosition(N,E))return I=F,!1}),I},q.atPosition=function(N,E){if(this.isAtPosition(N,E))return this._findChildAtPosition(N,E)||this},q._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))},q.each=function(N){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var E=this.lastEach;if(this.indexes[E]=0,!!this.length){for(var I,F;this.indexes[E]<this.length&&(I=this.indexes[E],F=N(this.at(I),I),F!==!1);)this.indexes[E]+=1;if(delete this.indexes[E],F===!1)return!1}},q.walk=function(N){return this.each(function(E,I){var F=N(E,I);if(F!==!1&&E.length&&(F=E.walk(N)),F===!1)return!1})},q.walkAttributes=function(N){var E=this;return this.walk(function(I){if(I.type===Z.ATTRIBUTE)return N.call(E,I)})},q.walkClasses=function(N){var E=this;return this.walk(function(I){if(I.type===Z.CLASS)return N.call(E,I)})},q.walkCombinators=function(N){var E=this;return this.walk(function(I){if(I.type===Z.COMBINATOR)return N.call(E,I)})},q.walkComments=function(N){var E=this;return this.walk(function(I){if(I.type===Z.COMMENT)return N.call(E,I)})},q.walkIds=function(N){var E=this;return this.walk(function(I){if(I.type===Z.ID)return N.call(E,I)})},q.walkNesting=function(N){var E=this;return this.walk(function(I){if(I.type===Z.NESTING)return N.call(E,I)})},q.walkPseudos=function(N){var E=this;return this.walk(function(I){if(I.type===Z.PSEUDO)return N.call(E,I)})},q.walkTags=function(N){var E=this;return this.walk(function(I){if(I.type===Z.TAG)return N.call(E,I)})},q.walkUniversals=function(N){var E=this;return this.walk(function(I){if(I.type===Z.UNIVERSAL)return N.call(E,I)})},q.split=function(N){var E=this,I=[];return this.reduce(function(F,j,T){var D=N.call(E,j);return I.push(j),D?(F.push(I),I=[]):T===E.length-1&&F.push(I),F},[])},q.map=function(N){return this.nodes.map(N)},q.reduce=function(N,E){return this.nodes.reduce(N,E)},q.every=function(N){return this.nodes.every(N)},q.some=function(N){return this.nodes.some(N)},q.filter=function(N){return this.nodes.filter(N)},q.sort=function(N){return this.nodes.sort(N)},q.toString=function(){return this.map(String).join("")},H(O,[{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}}]),O}(K.default);J.default=L,Y.exports=J.default}),JY=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(a9()),Z=c0();function X(U){return U&&U.__esModule?U:{default:U}}function Q(U,H){for(var A=0;A<H.length;A++){var V=H[A];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(U,V.key,V)}}function W(U,H,A){return H&&Q(U.prototype,H),A&&Q(U,A),U}function w(U,H){U.prototype=Object.create(H.prototype),U.prototype.constructor=U,$(U,H)}function $(U,H){return $=Object.setPrototypeOf||function(A,V){return A.__proto__=V,A},$(U,H)}var z=function(U){w(H,U);function H(V){var L;return L=U.call(this,V)||this,L.type=Z.ROOT,L}var A=H.prototype;return A.toString=function(){var V=this.reduce(function(L,B){return L.push(String(B)),L},[]).join(",");return this.trailingComma?V+",":V},A.error=function(V,L){return this._error?this._error(V,L):Error(V)},W(H,[{key:"errorGenerator",set:function(V){this._error=V}}]),H}(K.default);J.default=z,Y.exports=J.default}),YY=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(a9()),Z=c0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,z){$.prototype=Object.create(z.prototype),$.prototype.constructor=$,W($,z)}function W($,z){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,z)}var w=function($){Q(z,$);function z(U){var H;return H=$.call(this,U)||this,H.type=Z.SELECTOR,H}return z}(K.default);J.default=w,Y.exports=J.default}),t9=t((J,Y)=>{var K={},Z=K.hasOwnProperty,X=function(z,U){if(!z)return U;var H={};for(var A in U)H[A]=Z.call(z,A)?z[A]:U[A];return H},Q=/[ -,\.\/:-@\[-\^`\{-~]/,W=/[ -,\.\/:-@\[\]\^`\{-~]/,w=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,$=function z(U,H){H=X(H,z.options),H.quotes!="single"&&H.quotes!="double"&&(H.quotes="single");for(var A=H.quotes=="double"?'"':"'",V=H.isIdentifier,L=U.charAt(0),B="",O=0,q=U.length;O<q;){var N=U.charAt(O++),E=N.charCodeAt(),I=void 0;if(E<32||E>126){if(E>=55296&&E<=56319&&O<q){var F=U.charCodeAt(O++);(F&64512)==56320?E=((E&1023)<<10)+(F&1023)+65536:O--}I="\\"+E.toString(16).toUpperCase()+" "}else H.escapeEverything?Q.test(N)?I="\\"+N:I="\\"+E.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(N)?I="\\"+E.toString(16).toUpperCase()+" ":N=="\\"||!V&&(N=='"'&&A==N||N=="'"&&A==N)||V&&W.test(N)?I="\\"+N:I=N;B+=I}return V&&(/^-[-\d]/.test(B)?B="\\-"+B.slice(1):/\d/.test(L)&&(B="\\3"+L+" "+B.slice(1))),B=B.replace(w,function(j,T,D){return T&&T.length%2?j:(T||"")+D}),!V&&H.wrap?A+B+A:B};$.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},$.version="3.0.0",Y.exports=$}),KY=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=W(t9()),Z=Y6(),X=W(r1()),Q=c0();function W(A){return A&&A.__esModule?A:{default:A}}function w(A,V){for(var L=0;L<V.length;L++){var B=V[L];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(A,B.key,B)}}function $(A,V,L){return V&&w(A.prototype,V),L&&w(A,L),A}function z(A,V){A.prototype=Object.create(V.prototype),A.prototype.constructor=A,U(A,V)}function U(A,V){return U=Object.setPrototypeOf||function(L,B){return L.__proto__=B,L},U(A,V)}var H=function(A){z(V,A);function V(B){var O;return O=A.call(this,B)||this,O.type=Q.CLASS,O._constructed=!0,O}var L=V.prototype;return L.valueToString=function(){return"."+A.prototype.valueToString.call(this)},$(V,[{key:"value",get:function(){return this._value},set:function(B){if(this._constructed){var O=(0,K.default)(B,{isIdentifier:!0});O!==B?((0,Z.ensureObject)(this,"raws"),this.raws.value=O):this.raws&&delete this.raws.value}this._value=B}}]),V}(X.default);J.default=H,Y.exports=J.default}),ZY=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(r1()),Z=c0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,z){$.prototype=Object.create(z.prototype),$.prototype.constructor=$,W($,z)}function W($,z){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,z)}var w=function($){Q(z,$);function z(U){var H;return H=$.call(this,U)||this,H.type=Z.COMMENT,H}return z}(K.default);J.default=w,Y.exports=J.default}),XY=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(r1()),Z=c0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,z){$.prototype=Object.create(z.prototype),$.prototype.constructor=$,W($,z)}function W($,z){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,z)}var w=function($){Q(z,$);function z(H){var A;return A=$.call(this,H)||this,A.type=Z.ID,A}var U=z.prototype;return U.valueToString=function(){return"#"+$.prototype.valueToString.call(this)},z}(K.default);J.default=w,Y.exports=J.default}),e9=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=Q(t9()),Z=Y6(),X=Q(r1());function Q(H){return H&&H.__esModule?H:{default:H}}function W(H,A){for(var V=0;V<A.length;V++){var L=A[V];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(H,L.key,L)}}function w(H,A,V){return A&&W(H.prototype,A),V&&W(H,V),H}function $(H,A){H.prototype=Object.create(A.prototype),H.prototype.constructor=H,z(H,A)}function z(H,A){return z=Object.setPrototypeOf||function(V,L){return V.__proto__=L,V},z(H,A)}var U=function(H){$(A,H);function A(){return H.apply(this,arguments)||this}var V=A.prototype;return V.qualifiedName=function(L){return this.namespace?this.namespaceString+"|"+L:L},V.valueToString=function(){return this.qualifiedName(H.prototype.valueToString.call(this))},w(A,[{key:"namespace",get:function(){return this._namespace},set:function(L){if(L===!0||L==="*"||L==="&"){this._namespace=L,this.raws&&delete this.raws.namespace;return}var B=(0,K.default)(L,{isIdentifier:!0});this._namespace=L,B!==L?((0,Z.ensureObject)(this,"raws"),this.raws.namespace=B):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(L){this.namespace=L}},{key:"namespaceString",get:function(){if(this.namespace){var L=this.stringifyProperty("namespace");return L===!0?"":L}else return""}}]),A}(X.default);J.default=U,Y.exports=J.default}),QY=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(e9()),Z=c0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,z){$.prototype=Object.create(z.prototype),$.prototype.constructor=$,W($,z)}function W($,z){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,z)}var w=function($){Q(z,$);function z(U){var H;return H=$.call(this,U)||this,H.type=Z.TAG,H}return z}(K.default);J.default=w,Y.exports=J.default}),WY=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(r1()),Z=c0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,z){$.prototype=Object.create(z.prototype),$.prototype.constructor=$,W($,z)}function W($,z){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,z)}var w=function($){Q(z,$);function z(U){var H;return H=$.call(this,U)||this,H.type=Z.STRING,H}return z}(K.default);J.default=w,Y.exports=J.default}),$Y=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(a9()),Z=c0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,z){$.prototype=Object.create(z.prototype),$.prototype.constructor=$,W($,z)}function W($,z){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,z)}var w=function($){Q(z,$);function z(H){var A;return A=$.call(this,H)||this,A.type=Z.PSEUDO,A}var U=z.prototype;return U.toString=function(){var H=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),H,this.rawSpaceAfter].join("")},z}(K.default);J.default=w,Y.exports=J.default}),$U=t((J,Y)=>{Y.exports=function(K,Z){return function(...X){return console.warn(Z),K(...X)}}}),wY=t((J)=>{J.__esModule=!0,J.unescapeValue=O,J.default=void 0;var Y=W(t9()),K=W(eJ()),Z=W(e9()),X=c0(),Q;function W(F){return F&&F.__esModule?F:{default:F}}function w(F,j){for(var T=0;T<j.length;T++){var D=j[T];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(F,D.key,D)}}function $(F,j,T){return j&&w(F.prototype,j),T&&w(F,T),F}function z(F,j){F.prototype=Object.create(j.prototype),F.prototype.constructor=F,U(F,j)}function U(F,j){return U=Object.setPrototypeOf||function(T,D){return T.__proto__=D,T},U(F,j)}var H=$U(),A=/^('|")([^]*)\1$/,V=H(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),L=H(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),B=H(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function O(F){var j=!1,T=null,D=F,C=D.match(A);return C&&(T=C[1],D=C[2]),D=(0,K.default)(D),D!==F&&(j=!0),{deprecatedUsage:j,unescaped:D,quoteMark:T}}function q(F){if(F.quoteMark!==void 0||F.value===void 0)return F;B();var j=O(F.value),T=j.quoteMark,D=j.unescaped;return F.raws||(F.raws={}),F.raws.value===void 0&&(F.raws.value=F.value),F.value=D,F.quoteMark=T,F}var N=function(F){z(j,F);function j(D){var C;return D===void 0&&(D={}),C=F.call(this,q(D))||this,C.type=X.ATTRIBUTE,C.raws=C.raws||{},Object.defineProperty(C.raws,"unquoted",{get:H(function(){return C.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:H(function(){return C.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),C._constructed=!0,C}var T=j.prototype;return T.getQuotedValue=function(D){D===void 0&&(D={});var C=this._determineQuoteMark(D),g=E[C],d=(0,Y.default)(this._value,g);return d},T._determineQuoteMark=function(D){return D.smart?this.smartQuoteMark(D):this.preferredQuoteMark(D)},T.setValue=function(D,C){C===void 0&&(C={}),this._value=D,this._quoteMark=this._determineQuoteMark(C),this._syncRawValue()},T.smartQuoteMark=function(D){var C=this.value,g=C.replace(/[^']/g,"").length,d=C.replace(/[^"]/g,"").length;if(g+d===0){var r=(0,Y.default)(C,{isIdentifier:!0});if(r===C)return j.NO_QUOTE;var l=this.preferredQuoteMark(D);if(l===j.NO_QUOTE){var P=this.quoteMark||D.quoteMark||j.DOUBLE_QUOTE,k=E[P],R=(0,Y.default)(C,k);if(R.length<r.length)return P}return l}else return d===g?this.preferredQuoteMark(D):d<g?j.DOUBLE_QUOTE:j.SINGLE_QUOTE},T.preferredQuoteMark=function(D){var C=D.preferCurrentQuoteMark?this.quoteMark:D.quoteMark;return C===void 0&&(C=D.preferCurrentQuoteMark?D.quoteMark:this.quoteMark),C===void 0&&(C=j.DOUBLE_QUOTE),C},T._syncRawValue=function(){var D=(0,Y.default)(this._value,E[this.quoteMark]);D===this._value?this.raws&&delete this.raws.value:this.raws.value=D},T._handleEscapes=function(D,C){if(this._constructed){var g=(0,Y.default)(C,{isIdentifier:!0});g!==C?this.raws[D]=g:delete this.raws[D]}},T._spacesFor=function(D){var C={before:"",after:""},g=this.spaces[D]||{},d=this.raws.spaces&&this.raws.spaces[D]||{};return Object.assign(C,g,d)},T._stringFor=function(D,C,g){C===void 0&&(C=D),g===void 0&&(g=I);var d=this._spacesFor(C);return g(this.stringifyProperty(D),d)},T.offsetOf=function(D){var C=1,g=this._spacesFor("attribute");if(C+=g.before.length,D==="namespace"||D==="ns")return this.namespace?C:-1;if(D==="attributeNS"||(C+=this.namespaceString.length,this.namespace&&(C+=1),D==="attribute"))return C;C+=this.stringifyProperty("attribute").length,C+=g.after.length;var d=this._spacesFor("operator");C+=d.before.length;var r=this.stringifyProperty("operator");if(D==="operator")return r?C:-1;C+=r.length,C+=d.after.length;var l=this._spacesFor("value");C+=l.before.length;var P=this.stringifyProperty("value");if(D==="value")return P?C:-1;C+=P.length,C+=l.after.length;var k=this._spacesFor("insensitive");return C+=k.before.length,D==="insensitive"&&this.insensitive?C:-1},T.toString=function(){var D=this,C=[this.rawSpaceBefore,"["];return C.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(C.push(this._stringFor("operator")),C.push(this._stringFor("value")),C.push(this._stringFor("insensitiveFlag","insensitive",function(g,d){return g.length>0&&!D.quoted&&d.before.length===0&&!(D.spaces.value&&D.spaces.value.after)&&(d.before=" "),I(g,d)}))),C.push("]"),C.push(this.rawSpaceAfter),C.join("")},$(j,[{key:"quoted",get:function(){var D=this.quoteMark;return D==="'"||D==='"'},set:function(D){L()}},{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 C=O(D),g=C.deprecatedUsage,d=C.unescaped,r=C.quoteMark;if(g&&V(),d===this._value&&r===this._quoteMark)return;this._value=d,this._quoteMark=r,this._syncRawValue()}else this._value=D}},{key:"attribute",get:function(){return this._attribute},set:function(D){this._handleEscapes("attribute",D),this._attribute=D}}]),j}(Z.default);J.default=N,N.NO_QUOTE=null,N.SINGLE_QUOTE="'",N.DOUBLE_QUOTE='"';var E=(Q={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},Q[null]={isIdentifier:!0},Q);function I(F,j){return""+j.before+F+j.after}}),zY=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(e9()),Z=c0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,z){$.prototype=Object.create(z.prototype),$.prototype.constructor=$,W($,z)}function W($,z){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,z)}var w=function($){Q(z,$);function z(U){var H;return H=$.call(this,U)||this,H.type=Z.UNIVERSAL,H.value="*",H}return z}(K.default);J.default=w,Y.exports=J.default}),UY=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(r1()),Z=c0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,z){$.prototype=Object.create(z.prototype),$.prototype.constructor=$,W($,z)}function W($,z){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,z)}var w=function($){Q(z,$);function z(U){var H;return H=$.call(this,U)||this,H.type=Z.COMBINATOR,H}return z}(K.default);J.default=w,Y.exports=J.default}),HY=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(r1()),Z=c0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,z){$.prototype=Object.create(z.prototype),$.prototype.constructor=$,W($,z)}function W($,z){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,z)}var w=function($){Q(z,$);function z(U){var H;return H=$.call(this,U)||this,H.type=Z.NESTING,H.value="&",H}return z}(K.default);J.default=w,Y.exports=J.default}),wU=t((J,Y)=>{J.__esModule=!0,J.default=K;function K(Z){return Z.sort(function(X,Q){return X-Q})}Y.exports=J.default}),AY=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 Y=38;J.ampersand=Y;var K=42;J.asterisk=K;var Z=64;J.at=Z;var X=44;J.comma=X;var Q=58;J.colon=Q;var W=59;J.semicolon=W;var w=40;J.openParenthesis=w;var $=41;J.closeParenthesis=$;var z=91;J.openSquare=z;var U=93;J.closeSquare=U;var H=36;J.dollar=H;var A=126;J.tilde=A;var V=94;J.caret=V;var L=43;J.plus=L;var B=61;J.equals=B;var O=124;J.pipe=O;var q=62;J.greaterThan=q;var N=32;J.space=N;var E=39;J.singleQuote=E;var I=34;J.doubleQuote=I;var F=47;J.slash=F;var j=33;J.bang=j;var T=92;J.backslash=T;var D=13;J.cr=D;var C=12;J.feed=C;var g=10;J.newline=g;var d=9;J.tab=d;var r=E;J.str=r;var l=-1;J.comment=l;var P=-2;J.word=P;var k=-3;J.combinator=k}),zU=t((J)=>{J.__esModule=!0,J.default=L,J.FIELDS=void 0;var Y=Q(AY()),K,Z;function X(){if(typeof WeakMap!="function")return null;var B=new WeakMap;return X=function(){return B},B}function Q(B){if(B&&B.__esModule)return B;if(B===null||typeof B!="object"&&typeof B!="function")return{default:B};var O=X();if(O&&O.has(B))return O.get(B);var q={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in B)if(Object.prototype.hasOwnProperty.call(B,E)){var I=N?Object.getOwnPropertyDescriptor(B,E):null;I&&(I.get||I.set)?Object.defineProperty(q,E,I):q[E]=B[E]}return q.default=B,O&&O.set(B,q),q}var W=(K={},K[Y.tab]=!0,K[Y.newline]=!0,K[Y.cr]=!0,K[Y.feed]=!0,K),w=(Z={},Z[Y.space]=!0,Z[Y.tab]=!0,Z[Y.newline]=!0,Z[Y.cr]=!0,Z[Y.feed]=!0,Z[Y.ampersand]=!0,Z[Y.asterisk]=!0,Z[Y.bang]=!0,Z[Y.comma]=!0,Z[Y.colon]=!0,Z[Y.semicolon]=!0,Z[Y.openParenthesis]=!0,Z[Y.closeParenthesis]=!0,Z[Y.openSquare]=!0,Z[Y.closeSquare]=!0,Z[Y.singleQuote]=!0,Z[Y.doubleQuote]=!0,Z[Y.plus]=!0,Z[Y.pipe]=!0,Z[Y.tilde]=!0,Z[Y.greaterThan]=!0,Z[Y.equals]=!0,Z[Y.dollar]=!0,Z[Y.caret]=!0,Z[Y.slash]=!0,Z),$={},z="0123456789abcdefABCDEF";for(U=0;U<z.length;U++)$[z.charCodeAt(U)]=!0;var U;function H(B,O){var q=O,N;do{if(N=B.charCodeAt(q),w[N])return q-1;N===Y.backslash?q=A(B,q)+1:q++}while(q<B.length);return q-1}function A(B,O){var q=O,N=B.charCodeAt(q+1);if(!W[N])if($[N]){var E=0;do q++,E++,N=B.charCodeAt(q+1);while($[N]&&E<6);E<6&&N===Y.space&&q++}else q++;return q}var V={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};J.FIELDS=V;function L(B){var O=[],q=B.css.valueOf(),N=q,E=N.length,I=-1,F=1,j=0,T=0,D,C,g,d,r,l,P,k,R,c,u,a,n;function m(x,S){if(B.safe)q+=S,R=q.length-1;else throw B.error("Unclosed "+x,F,j-I,j)}for(;j<E;){switch(D=q.charCodeAt(j),D===Y.newline&&(I=j,F+=1),D){case Y.space:case Y.tab:case Y.newline:case Y.cr:case Y.feed:R=j;do R+=1,D=q.charCodeAt(R),D===Y.newline&&(I=R,F+=1);while(D===Y.space||D===Y.newline||D===Y.tab||D===Y.cr||D===Y.feed);n=Y.space,d=F,g=R-I-1,T=R;break;case Y.plus:case Y.greaterThan:case Y.tilde:case Y.pipe:R=j;do R+=1,D=q.charCodeAt(R);while(D===Y.plus||D===Y.greaterThan||D===Y.tilde||D===Y.pipe);n=Y.combinator,d=F,g=j-I,T=R;break;case Y.asterisk:case Y.ampersand:case Y.bang:case Y.comma:case Y.equals:case Y.dollar:case Y.caret:case Y.openSquare:case Y.closeSquare:case Y.colon:case Y.semicolon:case Y.openParenthesis:case Y.closeParenthesis:R=j,n=D,d=F,g=j-I,T=R+1;break;case Y.singleQuote:case Y.doubleQuote:a=D===Y.singleQuote?"'":'"',R=j;do for(r=!1,R=q.indexOf(a,R+1),R===-1&&m("quote",a),l=R;q.charCodeAt(l-1)===Y.backslash;)l-=1,r=!r;while(r);n=Y.str,d=F,g=j-I,T=R+1;break;default:D===Y.slash&&q.charCodeAt(j+1)===Y.asterisk?(R=q.indexOf("*/",j+2)+1,R===0&&m("comment","*/"),C=q.slice(j,R+1),k=C.split(`
|
|
63
|
+
`),P=k.length-1,P>0?(c=F+P,u=R-k[P].length):(c=F,u=I),n=Y.comment,F=c,d=c,g=R-u):D===Y.slash?(R=j,n=D,d=F,g=j-I,T=R+1):(R=H(q,j),n=Y.word,d=F,g=R-I),T=R+1;break}O.push([n,F,j-I,d,g,j,T]),u&&(I=u,u=null),j=T}return O}}),UU=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=T(JY()),Z=T(YY()),X=T(KY()),Q=T(ZY()),W=T(XY()),w=T(QY()),$=T(WY()),z=T($Y()),U=j(wY()),H=T(zY()),A=T(UY()),V=T(HY()),L=T(wU()),B=j(zU()),O=j(AY()),q=j(c0()),N=Y6(),E,I;function F(){if(typeof WeakMap!="function")return null;var m=new WeakMap;return F=function(){return m},m}function j(m){if(m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var x=F();if(x&&x.has(m))return x.get(m);var S={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in m)if(Object.prototype.hasOwnProperty.call(m,p)){var h=y?Object.getOwnPropertyDescriptor(m,p):null;h&&(h.get||h.set)?Object.defineProperty(S,p,h):S[p]=m[p]}return S.default=m,x&&x.set(m,S),S}function T(m){return m&&m.__esModule?m:{default:m}}function D(m,x){for(var S=0;S<x.length;S++){var y=x[S];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}function C(m,x,S){return x&&D(m.prototype,x),S&&D(m,S),m}var g=(E={},E[O.space]=!0,E[O.cr]=!0,E[O.feed]=!0,E[O.newline]=!0,E[O.tab]=!0,E),d=Object.assign({},g,(I={},I[O.comment]=!0,I));function r(m){return{line:m[B.FIELDS.START_LINE],column:m[B.FIELDS.START_COL]}}function l(m){return{line:m[B.FIELDS.END_LINE],column:m[B.FIELDS.END_COL]}}function P(m,x,S,y){return{start:{line:m,column:x},end:{line:S,column:y}}}function k(m){return P(m[B.FIELDS.START_LINE],m[B.FIELDS.START_COL],m[B.FIELDS.END_LINE],m[B.FIELDS.END_COL])}function R(m,x){if(m)return P(m[B.FIELDS.START_LINE],m[B.FIELDS.START_COL],x[B.FIELDS.END_LINE],x[B.FIELDS.END_COL])}function c(m,x){var S=m[x];if(typeof S=="string")return S.indexOf("\\")!==-1&&((0,N.ensureObject)(m,"raws"),m[x]=(0,N.unesc)(S),m.raws[x]===void 0&&(m.raws[x]=S)),m}function u(m,x){for(var S=-1,y=[];(S=m.indexOf(x,S+1))!==-1;)y.push(S);return y}function a(){var m=Array.prototype.concat.apply([],arguments);return m.filter(function(x,S){return S===m.indexOf(x)})}var n=function(){function m(S,y){y===void 0&&(y={}),this.rule=S,this.options=Object.assign({lossy:!1,safe:!1},y),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,B.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var p=R(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new K.default({source:p}),this.root.errorGenerator=this._errorGenerator();var h=new Z.default({source:{start:{line:1,column:1}}});this.root.append(h),this.current=h,this.loop()}var x=m.prototype;return x._errorGenerator=function(){var S=this;return function(y,p){return typeof S.rule=="string"?Error(y):S.rule.error(y,p)}},x.attribute=function(){var S=[],y=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[B.FIELDS.TYPE]!==O.closeSquare;)S.push(this.currToken),this.position++;if(this.currToken[B.FIELDS.TYPE]!==O.closeSquare)return this.expected("closing square bracket",this.currToken[B.FIELDS.START_POS]);var p=S.length,h={source:P(y[1],y[2],this.currToken[3],this.currToken[4]),sourceIndex:y[B.FIELDS.START_POS]};if(p===1&&!~[O.word].indexOf(S[0][B.FIELDS.TYPE]))return this.expected("attribute",S[0][B.FIELDS.START_POS]);for(var e=0,Q0="",Z0="",Y0=null,A0=!1;e<p;){var E0=S[e],K0=this.content(E0),B0=S[e+1];switch(E0[B.FIELDS.TYPE]){case O.space:if(A0=!0,this.options.lossy)break;if(Y0){(0,N.ensureObject)(h,"spaces",Y0);var D0=h.spaces[Y0].after||"";h.spaces[Y0].after=D0+K0;var v0=(0,N.getProp)(h,"raws","spaces",Y0,"after")||null;v0&&(h.raws.spaces[Y0].after=v0+K0)}else Q0=Q0+K0,Z0=Z0+K0;break;case O.asterisk:if(B0[B.FIELDS.TYPE]===O.equals)h.operator=K0,Y0="operator";else if((!h.namespace||Y0==="namespace"&&!A0)&&B0){Q0&&((0,N.ensureObject)(h,"spaces","attribute"),h.spaces.attribute.before=Q0,Q0=""),Z0&&((0,N.ensureObject)(h,"raws","spaces","attribute"),h.raws.spaces.attribute.before=Q0,Z0=""),h.namespace=(h.namespace||"")+K0;var k0=(0,N.getProp)(h,"raws","namespace")||null;k0&&(h.raws.namespace+=K0),Y0="namespace"}A0=!1;break;case O.dollar:if(Y0==="value"){var T0=(0,N.getProp)(h,"raws","value");h.value+="$",T0&&(h.raws.value=T0+"$");break}case O.caret:B0[B.FIELDS.TYPE]===O.equals&&(h.operator=K0,Y0="operator"),A0=!1;break;case O.combinator:if(K0==="~"&&B0[B.FIELDS.TYPE]===O.equals&&(h.operator=K0,Y0="operator"),K0!=="|"){A0=!1;break}B0[B.FIELDS.TYPE]===O.equals?(h.operator=K0,Y0="operator"):!h.namespace&&!h.attribute&&(h.namespace=!0),A0=!1;break;case O.word:if(B0&&this.content(B0)==="|"&&S[e+2]&&S[e+2][B.FIELDS.TYPE]!==O.equals&&!h.operator&&!h.namespace)h.namespace=K0,Y0="namespace";else if(!h.attribute||Y0==="attribute"&&!A0){Q0&&((0,N.ensureObject)(h,"spaces","attribute"),h.spaces.attribute.before=Q0,Q0=""),Z0&&((0,N.ensureObject)(h,"raws","spaces","attribute"),h.raws.spaces.attribute.before=Z0,Z0=""),h.attribute=(h.attribute||"")+K0;var d0=(0,N.getProp)(h,"raws","attribute")||null;d0&&(h.raws.attribute+=K0),Y0="attribute"}else if(!h.value&&h.value!==""||Y0==="value"&&!A0){var i0=(0,N.unesc)(K0),n0=(0,N.getProp)(h,"raws","value")||"",Q1=h.value||"";h.value=Q1+i0,h.quoteMark=null,(i0!==K0||n0)&&((0,N.ensureObject)(h,"raws"),h.raws.value=(n0||Q1)+K0),Y0="value"}else{var W1=K0==="i"||K0==="I";(h.value||h.value==="")&&(h.quoteMark||A0)?(h.insensitive=W1,(!W1||K0==="I")&&((0,N.ensureObject)(h,"raws"),h.raws.insensitiveFlag=K0),Y0="insensitive",Q0&&((0,N.ensureObject)(h,"spaces","insensitive"),h.spaces.insensitive.before=Q0,Q0=""),Z0&&((0,N.ensureObject)(h,"raws","spaces","insensitive"),h.raws.spaces.insensitive.before=Z0,Z0="")):(h.value||h.value==="")&&(Y0="value",h.value+=K0,h.raws.value&&(h.raws.value+=K0))}A0=!1;break;case O.str:if(!h.attribute||!h.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:E0[B.FIELDS.START_POS]});var e0=(0,U.unescapeValue)(K0),U5=e0.unescaped,h1=e0.quoteMark;h.value=U5,h.quoteMark=h1,Y0="value",(0,N.ensureObject)(h,"raws"),h.raws.value=K0,A0=!1;break;case O.equals:if(!h.attribute)return this.expected("attribute",E0[B.FIELDS.START_POS],K0);if(h.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:E0[B.FIELDS.START_POS]});h.operator=h.operator?h.operator+K0:K0,Y0="operator",A0=!1;break;case O.comment:if(Y0)if(A0||B0&&B0[B.FIELDS.TYPE]===O.space||Y0==="insensitive"){var t1=(0,N.getProp)(h,"spaces",Y0,"after")||"",H5=(0,N.getProp)(h,"raws","spaces",Y0,"after")||t1;(0,N.ensureObject)(h,"raws","spaces",Y0),h.raws.spaces[Y0].after=H5+K0}else{var z8=h[Y0]||"",A5=(0,N.getProp)(h,"raws",Y0)||z8;(0,N.ensureObject)(h,"raws"),h.raws[Y0]=A5+K0}else Z0=Z0+K0;break;default:return this.error('Unexpected "'+K0+'" found.',{index:E0[B.FIELDS.START_POS]})}e++}c(h,"attribute"),c(h,"namespace"),this.newNode(new U.default(h)),this.position++},x.parseWhitespaceEquivalentTokens=function(S){S<0&&(S=this.tokens.length);var y=this.position,p=[],h="",e=void 0;do if(g[this.currToken[B.FIELDS.TYPE]])this.options.lossy||(h+=this.content());else if(this.currToken[B.FIELDS.TYPE]===O.comment){var Q0={};h&&(Q0.before=h,h=""),e=new Q.default({value:this.content(),source:k(this.currToken),sourceIndex:this.currToken[B.FIELDS.START_POS],spaces:Q0}),p.push(e)}while(++this.position<S);if(h){if(e)e.spaces.after=h;else if(!this.options.lossy){var Z0=this.tokens[y],Y0=this.tokens[this.position-1];p.push(new $.default({value:"",source:P(Z0[B.FIELDS.START_LINE],Z0[B.FIELDS.START_COL],Y0[B.FIELDS.END_LINE],Y0[B.FIELDS.END_COL]),sourceIndex:Z0[B.FIELDS.START_POS],spaces:{before:h,after:""}}))}}return p},x.convertWhitespaceNodesToSpace=function(S,y){var p=this;y===void 0&&(y=!1);var h="",e="";S.forEach(function(Z0){var Y0=p.lossySpace(Z0.spaces.before,y),A0=p.lossySpace(Z0.rawSpaceBefore,y);h+=Y0+p.lossySpace(Z0.spaces.after,y&&Y0.length===0),e+=Y0+Z0.value+p.lossySpace(Z0.rawSpaceAfter,y&&A0.length===0)}),e===h&&(e=void 0);var Q0={space:h,rawSpace:e};return Q0},x.isNamedCombinator=function(S){return S===void 0&&(S=this.position),this.tokens[S+0]&&this.tokens[S+0][B.FIELDS.TYPE]===O.slash&&this.tokens[S+1]&&this.tokens[S+1][B.FIELDS.TYPE]===O.word&&this.tokens[S+2]&&this.tokens[S+2][B.FIELDS.TYPE]===O.slash},x.namedCombinator=function(){if(this.isNamedCombinator()){var S=this.content(this.tokens[this.position+1]),y=(0,N.unesc)(S).toLowerCase(),p={};y!==S&&(p.value="/"+S+"/");var h=new A.default({value:"/"+y+"/",source:P(this.currToken[B.FIELDS.START_LINE],this.currToken[B.FIELDS.START_COL],this.tokens[this.position+2][B.FIELDS.END_LINE],this.tokens[this.position+2][B.FIELDS.END_COL]),sourceIndex:this.currToken[B.FIELDS.START_POS],raws:p});return this.position=this.position+3,h}else this.unexpected()},x.combinator=function(){var S=this;if(this.content()==="|")return this.namespace();var y=this.locateNextMeaningfulToken(this.position);if(y<0||this.tokens[y][B.FIELDS.TYPE]===O.comma){var p=this.parseWhitespaceEquivalentTokens(y);if(p.length>0){var h=this.current.last;if(h){var e=this.convertWhitespaceNodesToSpace(p),Q0=e.space,Z0=e.rawSpace;Z0!==void 0&&(h.rawSpaceAfter+=Z0),h.spaces.after+=Q0}else p.forEach(function(n0){return S.newNode(n0)})}return}var Y0=this.currToken,A0=void 0;y>this.position&&(A0=this.parseWhitespaceEquivalentTokens(y));var E0;if(this.isNamedCombinator()?E0=this.namedCombinator():this.currToken[B.FIELDS.TYPE]===O.combinator?(E0=new A.default({value:this.content(),source:k(this.currToken),sourceIndex:this.currToken[B.FIELDS.START_POS]}),this.position++):g[this.currToken[B.FIELDS.TYPE]]||A0||this.unexpected(),E0){if(A0){var K0=this.convertWhitespaceNodesToSpace(A0),B0=K0.space,D0=K0.rawSpace;E0.spaces.before=B0,E0.rawSpaceBefore=D0}}else{var v0=this.convertWhitespaceNodesToSpace(A0,!0),k0=v0.space,T0=v0.rawSpace;T0||(T0=k0);var d0={},i0={spaces:{}};k0.endsWith(" ")&&T0.endsWith(" ")?(d0.before=k0.slice(0,k0.length-1),i0.spaces.before=T0.slice(0,T0.length-1)):k0.startsWith(" ")&&T0.startsWith(" ")?(d0.after=k0.slice(1),i0.spaces.after=T0.slice(1)):i0.value=T0,E0=new A.default({value:" ",source:R(Y0,this.tokens[this.position-1]),sourceIndex:Y0[B.FIELDS.START_POS],spaces:d0,raws:i0})}return this.currToken&&this.currToken[B.FIELDS.TYPE]===O.space&&(E0.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(E0)},x.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var S=new Z.default({source:{start:r(this.tokens[this.position+1])}});this.current.parent.append(S),this.current=S,this.position++},x.comment=function(){var S=this.currToken;this.newNode(new Q.default({value:this.content(),source:k(S),sourceIndex:S[B.FIELDS.START_POS]})),this.position++},x.error=function(S,y){throw this.root.error(S,y)},x.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[B.FIELDS.START_POS]})},x.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[B.FIELDS.START_POS])},x.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[B.FIELDS.START_POS])},x.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[B.FIELDS.START_POS])},x.namespace=function(){var S=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[B.FIELDS.TYPE]===O.word)return this.position++,this.word(S);if(this.nextToken[B.FIELDS.TYPE]===O.asterisk)return this.position++,this.universal(S)},x.nesting=function(){if(this.nextToken){var S=this.content(this.nextToken);if(S==="|"){this.position++;return}}var y=this.currToken;this.newNode(new V.default({value:this.content(),source:k(y),sourceIndex:y[B.FIELDS.START_POS]})),this.position++},x.parentheses=function(){var S=this.current.last,y=1;if(this.position++,S&&S.type===q.PSEUDO){var p=new Z.default({source:{start:r(this.tokens[this.position-1])}}),h=this.current;for(S.append(p),this.current=p;this.position<this.tokens.length&&y;)this.currToken[B.FIELDS.TYPE]===O.openParenthesis&&y++,this.currToken[B.FIELDS.TYPE]===O.closeParenthesis&&y--,y?this.parse():(this.current.source.end=l(this.currToken),this.current.parent.source.end=l(this.currToken),this.position++);this.current=h}else{for(var e=this.currToken,Q0="(",Z0;this.position<this.tokens.length&&y;)this.currToken[B.FIELDS.TYPE]===O.openParenthesis&&y++,this.currToken[B.FIELDS.TYPE]===O.closeParenthesis&&y--,Z0=this.currToken,Q0+=this.parseParenthesisToken(this.currToken),this.position++;S?S.appendToPropertyAndEscape("value",Q0,Q0):this.newNode(new $.default({value:Q0,source:P(e[B.FIELDS.START_LINE],e[B.FIELDS.START_COL],Z0[B.FIELDS.END_LINE],Z0[B.FIELDS.END_COL]),sourceIndex:e[B.FIELDS.START_POS]}))}if(y)return this.expected("closing parenthesis",this.currToken[B.FIELDS.START_POS])},x.pseudo=function(){for(var S=this,y="",p=this.currToken;this.currToken&&this.currToken[B.FIELDS.TYPE]===O.colon;)y+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[B.FIELDS.TYPE]===O.word)this.splitWord(!1,function(h,e){y+=h,S.newNode(new z.default({value:y,source:R(p,S.currToken),sourceIndex:p[B.FIELDS.START_POS]})),e>1&&S.nextToken&&S.nextToken[B.FIELDS.TYPE]===O.openParenthesis&&S.error("Misplaced parenthesis.",{index:S.nextToken[B.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[B.FIELDS.START_POS])},x.space=function(){var S=this.content();this.position===0||this.prevToken[B.FIELDS.TYPE]===O.comma||this.prevToken[B.FIELDS.TYPE]===O.openParenthesis||this.current.nodes.every(function(y){return y.type==="comment"})?(this.spaces=this.optionalSpace(S),this.position++):this.position===this.tokens.length-1||this.nextToken[B.FIELDS.TYPE]===O.comma||this.nextToken[B.FIELDS.TYPE]===O.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(S),this.position++):this.combinator()},x.string=function(){var S=this.currToken;this.newNode(new $.default({value:this.content(),source:k(S),sourceIndex:S[B.FIELDS.START_POS]})),this.position++},x.universal=function(S){var y=this.nextToken;if(y&&this.content(y)==="|")return this.position++,this.namespace();var p=this.currToken;this.newNode(new H.default({value:this.content(),source:k(p),sourceIndex:p[B.FIELDS.START_POS]}),S),this.position++},x.splitWord=function(S,y){for(var p=this,h=this.nextToken,e=this.content();h&&~[O.dollar,O.caret,O.equals,O.word].indexOf(h[B.FIELDS.TYPE]);){this.position++;var Q0=this.content();if(e+=Q0,Q0.lastIndexOf("\\")===Q0.length-1){var Z0=this.nextToken;Z0&&Z0[B.FIELDS.TYPE]===O.space&&(e+=this.requiredSpace(this.content(Z0)),this.position++)}h=this.nextToken}var Y0=u(e,".").filter(function(B0){var D0=e[B0-1]==="\\",v0=/^\d+\.\d+%$/.test(e);return!D0&&!v0}),A0=u(e,"#").filter(function(B0){return e[B0-1]!=="\\"}),E0=u(e,"#{");E0.length&&(A0=A0.filter(function(B0){return!~E0.indexOf(B0)}));var K0=(0,L.default)(a([0].concat(Y0,A0)));K0.forEach(function(B0,D0){var v0=K0[D0+1]||e.length,k0=e.slice(B0,v0);if(D0===0&&y)return y.call(p,k0,K0.length);var T0,d0=p.currToken,i0=d0[B.FIELDS.START_POS]+K0[D0],n0=P(d0[1],d0[2]+B0,d0[3],d0[2]+(v0-1));if(~Y0.indexOf(B0)){var Q1={value:k0.slice(1),source:n0,sourceIndex:i0};T0=new X.default(c(Q1,"value"))}else if(~A0.indexOf(B0)){var W1={value:k0.slice(1),source:n0,sourceIndex:i0};T0=new W.default(c(W1,"value"))}else{var e0={value:k0,source:n0,sourceIndex:i0};c(e0,"value"),T0=new w.default(e0)}p.newNode(T0,S),S=null}),this.position++},x.word=function(S){var y=this.nextToken;return y&&this.content(y)==="|"?(this.position++,this.namespace()):this.splitWord(S)},x.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},x.parse=function(S){switch(this.currToken[B.FIELDS.TYPE]){case O.space:this.space();break;case O.comment:this.comment();break;case O.openParenthesis:this.parentheses();break;case O.closeParenthesis:S&&this.missingParenthesis();break;case O.openSquare:this.attribute();break;case O.dollar:case O.caret:case O.equals:case O.word:this.word();break;case O.colon:this.pseudo();break;case O.comma:this.comma();break;case O.asterisk:this.universal();break;case O.ampersand:this.nesting();break;case O.slash:case O.combinator:this.combinator();break;case O.str:this.string();break;case O.closeSquare:this.missingSquareBracket();case O.semicolon:this.missingBackslash();default:this.unexpected()}},x.expected=function(S,y,p){if(Array.isArray(S)){var h=S.pop();S=S.join(", ")+" or "+h}var e=/^[aeiou]/.test(S[0])?"an":"a";return p?this.error("Expected "+e+" "+S+', found "'+p+'" instead.',{index:y}):this.error("Expected "+e+" "+S+".",{index:y})},x.requiredSpace=function(S){return this.options.lossy?" ":S},x.optionalSpace=function(S){return this.options.lossy?"":S},x.lossySpace=function(S,y){return this.options.lossy?y?" ":"":S},x.parseParenthesisToken=function(S){var y=this.content(S);return S[B.FIELDS.TYPE]===O.space?this.requiredSpace(y):y},x.newNode=function(S,y){return y&&(/^ +$/.test(y)&&(this.options.lossy||(this.spaces=(this.spaces||"")+y),y=!0),S.namespace=y,c(S,"namespace")),this.spaces&&(S.spaces.before=this.spaces,this.spaces=""),this.current.append(S)},x.content=function(S){return S===void 0&&(S=this.currToken),this.css.slice(S[B.FIELDS.START_POS],S[B.FIELDS.END_POS])},x.locateNextMeaningfulToken=function(S){S===void 0&&(S=this.position+1);for(var y=S;y<this.tokens.length;)if(d[this.tokens[y][B.FIELDS.TYPE]]){y++;continue}else return y;return-1},C(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=n,Y.exports=J.default}),HU=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=Z(UU());function Z(Q){return Q&&Q.__esModule?Q:{default:Q}}var X=function(){function Q(w,$){this.func=w||function(){},this.funcRes=null,this.options=$}var W=Q.prototype;return W._shouldUpdateSelector=function(w,$){$===void 0&&($={});var z=Object.assign({},this.options,$);return z.updateSelector===!1?!1:typeof w!="string"},W._isLossy=function(w){w===void 0&&(w={});var $=Object.assign({},this.options,w);return $.lossless===!1},W._root=function(w,$){$===void 0&&($={});var z=new K.default(w,this._parseOptions($));return z.root},W._parseOptions=function(w){return{lossy:this._isLossy(w)}},W._run=function(w,$){var z=this;return $===void 0&&($={}),new Promise(function(U,H){try{var A=z._root(w,$);Promise.resolve(z.func(A)).then(function(V){var L=void 0;return z._shouldUpdateSelector(w,$)&&(L=A.toString(),w.selector=L),{transform:V,root:A,string:L}}).then(U,H)}catch(V){H(V);return}})},W._runSync=function(w,$){$===void 0&&($={});var z=this._root(w,$),U=this.func(z);if(U&&typeof U.then=="function")throw Error("Selector processor returned a promise to a synchronous call.");var H=void 0;return $.updateSelector&&typeof w!="string"&&(H=z.toString(),w.selector=H),{transform:U,root:z,string:H}},W.ast=function(w,$){return this._run(w,$).then(function(z){return z.root})},W.astSync=function(w,$){return this._runSync(w,$).root},W.transform=function(w,$){return this._run(w,$).then(function(z){return z.transform})},W.transformSync=function(w,$){return this._runSync(w,$).transform},W.process=function(w,$){return this._run(w,$).then(function(z){return z.string||z.root.toString()})},W.processSync=function(w,$){var z=this._runSync(w,$);return z.string||z.root.toString()},Q}();J.default=X,Y.exports=J.default}),AU=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 Y=V(wY()),K=V(KY()),Z=V(UY()),X=V(ZY()),Q=V(XY()),W=V(HY()),w=V($Y()),$=V(JY()),z=V(YY()),U=V(WY()),H=V(QY()),A=V(zY());function V(g){return g&&g.__esModule?g:{default:g}}var L=function(g){return new Y.default(g)};J.attribute=L;var B=function(g){return new K.default(g)};J.className=B;var O=function(g){return new Z.default(g)};J.combinator=O;var q=function(g){return new X.default(g)};J.comment=q;var N=function(g){return new Q.default(g)};J.id=N;var E=function(g){return new W.default(g)};J.nesting=E;var I=function(g){return new w.default(g)};J.pseudo=I;var F=function(g){return new $.default(g)};J.root=F;var j=function(g){return new z.default(g)};J.selector=j;var T=function(g){return new U.default(g)};J.string=T;var D=function(g){return new H.default(g)};J.tag=D;var C=function(g){return new A.default(g)};J.universal=C}),VU=t((J)=>{J.__esModule=!0,J.isNode=X,J.isPseudoElement=N,J.isPseudoClass=E,J.isContainer=I,J.isNamespace=F,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 Y=c0(),K,Z=(K={},K[Y.ATTRIBUTE]=!0,K[Y.CLASS]=!0,K[Y.COMBINATOR]=!0,K[Y.COMMENT]=!0,K[Y.ID]=!0,K[Y.NESTING]=!0,K[Y.PSEUDO]=!0,K[Y.ROOT]=!0,K[Y.SELECTOR]=!0,K[Y.STRING]=!0,K[Y.TAG]=!0,K[Y.UNIVERSAL]=!0,K);function X(j){return typeof j=="object"&&Z[j.type]}function Q(j,T){return X(T)&&T.type===j}var W=Q.bind(null,Y.ATTRIBUTE);J.isAttribute=W;var w=Q.bind(null,Y.CLASS);J.isClassName=w;var $=Q.bind(null,Y.COMBINATOR);J.isCombinator=$;var z=Q.bind(null,Y.COMMENT);J.isComment=z;var U=Q.bind(null,Y.ID);J.isIdentifier=U;var H=Q.bind(null,Y.NESTING);J.isNesting=H;var A=Q.bind(null,Y.PSEUDO);J.isPseudo=A;var V=Q.bind(null,Y.ROOT);J.isRoot=V;var L=Q.bind(null,Y.SELECTOR);J.isSelector=L;var B=Q.bind(null,Y.STRING);J.isString=B;var O=Q.bind(null,Y.TAG);J.isTag=O;var q=Q.bind(null,Y.UNIVERSAL);J.isUniversal=q;function N(j){return A(j)&&j.value&&(j.value.startsWith("::")||j.value.toLowerCase()===":before"||j.value.toLowerCase()===":after"||j.value.toLowerCase()===":first-letter"||j.value.toLowerCase()===":first-line")}function E(j){return A(j)&&!N(j)}function I(j){return!!(X(j)&&j.walk)}function F(j){return W(j)||O(j)}}),BU=t((J)=>{J.__esModule=!0;var Y=c0();Object.keys(Y).forEach(function(X){X==="default"||X==="__esModule"||X in J&&J[X]===Y[X]||(J[X]=Y[X])});var K=AU();Object.keys(K).forEach(function(X){X==="default"||X==="__esModule"||X in J&&J[X]===K[X]||(J[X]=K[X])});var Z=VU();Object.keys(Z).forEach(function(X){X==="default"||X==="__esModule"||X in J&&J[X]===Z[X]||(J[X]=Z[X])})}),GU=t((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=W(HU()),Z=Q(BU());function X(){if(typeof WeakMap!="function")return null;var z=new WeakMap;return X=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=X();if(U&&U.has(z))return U.get(z);var H={},A=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var V in z)if(Object.prototype.hasOwnProperty.call(z,V)){var L=A?Object.getOwnPropertyDescriptor(z,V):null;L&&(L.get||L.set)?Object.defineProperty(H,V,L):H[V]=z[V]}return H.default=z,U&&U.set(z,H),H}function W(z){return z&&z.__esModule?z:{default:z}}var w=function(z){return new K.default(z)};Object.assign(w,Z),delete w.__esModule;var $=w;J.default=$,Y.exports=J.default}),OU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Y});function Y(K){return K.replace(/\\,/g,"\\2c ")}}),LU=t((J,Y)=>{Y.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]}}),VY=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y(L,B){for(var O in B)Object.defineProperty(L,O,{enumerable:!0,get:B[O]})}Y(J,{parseColor:()=>A,formatColor:()=>V});var K=Z(LU());function Z(L){return L&&L.__esModule?L:{default:L}}var X=/^#([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+)/,$=/\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}))?(?:${$.source}(${W.source}|${z.source}))?\\s*\\)$`),H=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}))?(?:${$.source}(${W.source}|${z.source}))?\\s*\\)$`);function A(L,{loose:B=!1}={}){var O,q;if(typeof L!="string")return null;if(L=L.trim(),L==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(L in K.default)return{mode:"rgb",color:K.default[L].map((j)=>j.toString())};let N=L.replace(Q,(j,T,D,C,g)=>["#",T,T,D,D,C,C,g?g+g:""].join("")).match(X);if(N!==null)return{mode:"rgb",color:[parseInt(N[1],16),parseInt(N[2],16),parseInt(N[3],16)].map((j)=>j.toString()),alpha:N[4]?(parseInt(N[4],16)/255).toString():void 0};var E;let I=(E=L.match(U))!==null&&E!==void 0?E:L.match(H);if(I===null)return null;let F=[I[2],I[3],I[4]].filter(Boolean).map((j)=>j.toString());return!B&&F.length!==3||F.length<3&&!F.some((j)=>/^var\(.*?\)$/.test(j))?null:{mode:I[1],color:F,alpha:(O=I[5])===null||O===void 0||(q=O.toString)===null||q===void 0?void 0:q.call(O)}}function V({mode:L,color:B,alpha:O}){let q=O!==void 0;return`${L}(${B.join(" ")}${q?` / ${O}`:""})`}}),BY=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y(Q,W){for(var w in W)Object.defineProperty(Q,w,{enumerable:!0,get:W[w]})}Y(J,{withAlphaValue:()=>Z,default:()=>X});var K=VY();function Z(Q,W,w){if(typeof Q=="function")return Q({opacityValue:W});let $=(0,K.parseColor)(Q,{loose:!0});return $===null?w:(0,K.formatColor)({...$,alpha:W})}function X({color:Q,property:W,variable:w}){let $=[].concat(W);if(typeof Q=="function")return{[w]:"1",...Object.fromEntries($.map((U)=>[U,Q({opacityVariable:w,opacityValue:`var(${w})`})]))};let z=(0,K.parseColor)(Q);return z===null?Object.fromEntries($.map((U)=>[U,Q])):z.alpha!==void 0?Object.fromEntries($.map((U)=>[U,Q])):{[w]:"1",...Object.fromEntries($.map((U)=>[U,(0,K.formatColor)({...z,alpha:`var(${w})`})]))}}}),MU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y(A,V){for(var L in V)Object.defineProperty(A,L,{enumerable:!0,get:V[L]})}Y(J,{pattern:()=>Q,withoutCapturing:()=>W,any:()=>w,optional:()=>$,zeroOrMore:()=>z,nestedBrackets:()=>U,escape:()=>H});var K=/[\\^$.*+?()[\]{}|]/g,Z=RegExp(K.source);function X(A){return A=Array.isArray(A)?A:[A],A=A.map((V)=>V instanceof RegExp?V.source:V),A.join("")}function Q(A){return new RegExp(X(A),"g")}function W(A){return new RegExp(`(?:${X(A)})`,"g")}function w(A){return`(?:${A.map(X).join("|")})`}function $(A){return`(?:${X(A)})?`}function z(A){return`(?:${X(A)})*`}function U(A,V,L=1){return W([H(A),/[^\s]*/,L===1?`[^${H(A)}${H(V)}s]*`:w([`[^${H(A)}${H(V)}s]*`,U(A,V,L-1)]),/[^\s]*/,H(V)])}function H(A){return A&&Z.test(A)?A.replace(K,"\\$&"):A||""}}),qU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"splitAtTopLevelOnly",{enumerable:!0,get:()=>X});var Y=Z(MU());function K(Q){if(typeof WeakMap!="function")return null;var W=new WeakMap,w=new WeakMap;return(K=function($){return $?w:W})(Q)}function Z(Q,W){if(!W&&Q&&Q.__esModule)return Q;if(Q===null||typeof Q!="object"&&typeof Q!="function")return{default:Q};var w=K(W);if(w&&w.has(Q))return w.get(Q);var $={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var U in Q)if(U!=="default"&&Object.prototype.hasOwnProperty.call(Q,U)){var H=z?Object.getOwnPropertyDescriptor(Q,U):null;H&&(H.get||H.set)?Object.defineProperty($,U,H):$[U]=Q[U]}return $.default=Q,w&&w.set(Q,$),$}function*X(Q,W){let w=new RegExp(`[(){}\\[\\]${Y.escape(W)}]`,"g"),$=0,z=0,U=!1,H=0,A=0,V=W.length;for(let L of Q.matchAll(w)){let B=L[0]===W[H],O=H===V-1,q=B&&O;L[0]==="("&&$++,L[0]===")"&&$--,L[0]==="["&&$++,L[0]==="]"&&$--,L[0]==="{"&&$++,L[0]==="}"&&$--,B&&$===0&&(A===0&&(A=L.index),H++),q&&$===0&&(U=!0,yield Q.substring(z,A),z=A+V),H===V&&(H=0,A=0)}U?yield Q.substring(z):yield Q}}),NU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y($,z){for(var U in z)Object.defineProperty($,U,{enumerable:!0,get:z[U]})}Y(J,{parseBoxShadowValue:()=>W,formatBoxShadowValue:()=>w});var K=qU(),Z=new Set(["inset","inherit","initial","revert","unset"]),X=/\ +(?![^(]*\))/g,Q=/^-?(\d+|\.\d+)(.*?)$/g;function W($){return Array.from((0,K.splitAtTopLevelOnly)($,",")).map((z)=>{let U=z.trim(),H={raw:U},A=U.split(X),V=new Set;for(let L of A)Q.lastIndex=0,!V.has("KEYWORD")&&Z.has(L)?(H.keyword=L,V.add("KEYWORD")):Q.test(L)?V.has("X")?V.has("Y")?V.has("BLUR")?V.has("SPREAD")||(H.spread=L,V.add("SPREAD")):(H.blur=L,V.add("BLUR")):(H.y=L,V.add("Y")):(H.x=L,V.add("X")):H.color?(H.unknown||(H.unknown=[]),H.unknown.push(L)):H.color=L;return H.valid=H.x!==void 0&&H.y!==void 0,H})}function w($){return $.map((z)=>z.valid?[z.keyword,z.x,z.y,z.blur,z.spread,z.color].filter(Boolean).join(" "):z.raw).join(", ")}}),jU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y(P,k){for(var R in k)Object.defineProperty(P,R,{enumerable:!0,get:k[R]})}Y(J,{normalize:()=>w,url:()=>$,number:()=>z,percentage:()=>U,length:()=>V,lineWidth:()=>B,shadow:()=>O,color:()=>q,image:()=>N,gradient:()=>I,position:()=>j,familyName:()=>T,genericName:()=>C,absoluteSize:()=>d,relativeSize:()=>l});var K=VY(),Z=NU(),X=["min","max","clamp","calc"],Q=/,(?![^(]*\))/g,W=/_(?![^(]*\))/g;function w(P,k=!0){return P.includes("url(")?P.split(/(url\(.*?\))/g).filter(Boolean).map((R)=>/^url\(.*?\)$/.test(R)?R:w(R,!1)).join(""):(P=P.replace(/([^\\])_+/g,(R,c)=>c+" ".repeat(R.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),k&&(P=P.trim()),P=P.replace(/(calc|min|max|clamp)\(.+\)/g,(R)=>R.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),P)}function $(P){return P.startsWith("url(")}function z(P){return!isNaN(Number(P))||X.some((k)=>new RegExp(`^${k}\\(.+?`).test(P))}function U(P){return P.split(W).every((k)=>/%$/g.test(k)||X.some((R)=>new RegExp(`^${R}\\(.+?%`).test(k)))}var H=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],A=`(?:${H.join("|")})`;function V(P){return P.split(W).every((k)=>k==="0"||new RegExp(`${A}$`).test(k)||X.some((R)=>new RegExp(`^${R}\\(.+?${A}`).test(k)))}var L=new Set(["thin","medium","thick"]);function B(P){return L.has(P)}function O(P){let k=(0,Z.parseBoxShadowValue)(w(P));for(let R of k)if(!R.valid)return!1;return!0}function q(P){let k=0;return P.split(W).every((R)=>(R=w(R),R.startsWith("var(")?!0:(0,K.parseColor)(R,{loose:!0})!==null?(k++,!0):!1))?k>0:!1}function N(P){let k=0;return P.split(Q).every((R)=>(R=w(R),R.startsWith("var(")?!0:$(R)||I(R)||["element(","image(","cross-fade(","image-set("].some((c)=>R.startsWith(c))?(k++,!0):!1))?k>0:!1}var E=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function I(P){P=w(P);for(let k of E)if(P.startsWith(`${k}(`))return!0;return!1}var F=new Set(["center","top","right","bottom","left"]);function j(P){let k=0;return P.split(W).every((R)=>(R=w(R),R.startsWith("var(")?!0:F.has(R)||V(R)||U(R)?(k++,!0):!1))?k>0:!1}function T(P){let k=0;return P.split(Q).every((R)=>(R=w(R),R.startsWith("var(")?!0:R.includes(" ")&&!/(['"])([^"']+)\1/g.test(R)||/^\d/g.test(R)?!1:(k++,!0)))?k>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 C(P){return D.has(P)}var g=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function d(P){return g.has(P)}var r=new Set(["larger","smaller"]);function l(P){return r.has(P)}}),EU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y(j,T){for(var D in T)Object.defineProperty(j,D,{enumerable:!0,get:T[D]})}Y(J,{updateAllClasses:()=>$,asValue:()=>H,parseColorFormat:()=>L,asColor:()=>B,asLookupValue:()=>O,coerceValue:()=>F});var K=w(GU()),Z=w(OU()),X=BY(),Q=jU(),W=w(sJ());function w(j){return j&&j.__esModule?j:{default:j}}function $(j,T){return(0,K.default)((D)=>{D.walkClasses((C)=>{let g=T(C.value);C.value=g,C.raws&&C.raws.value&&(C.raws.value=(0,Z.default)(C.raws.value))})}).processSync(j)}function z(j,T){if(!A(j))return;let D=j.slice(1,-1);if(T(D))return(0,Q.normalize)(D)}function U(j,T={},D){let C=T[j];if(C!==void 0)return(0,W.default)(C);if(A(j)){let g=z(j,D);return g===void 0?void 0:(0,W.default)(g)}}function H(j,T={},{validate:D=()=>!0}={}){var C;let g=(C=T.values)===null||C===void 0?void 0:C[j];return g!==void 0?g:T.supportsNegativeValues&&j.startsWith("-")?U(j.slice(1),T.values,D):z(j,D)}function A(j){return j.startsWith("[")&&j.endsWith("]")}function V(j){let T=j.lastIndexOf("/");return T===-1||T===j.length-1?[j]:[j.slice(0,T),j.slice(T+1)]}function L(j){if(typeof j=="string"&&j.includes("<alpha-value>")){let T=j;return({opacityValue:D=1})=>T.replace("<alpha-value>",D)}return j}function B(j,T={},{tailwindConfig:D={}}={}){var C;if(((C=T.values)===null||C===void 0?void 0:C[j])!==void 0){var g;return L((g=T.values)===null||g===void 0?void 0:g[j])}let[d,r]=V(j);if(r!==void 0){var l,P,k,R;let c=(R=(l=T.values)===null||l===void 0?void 0:l[d])!==null&&R!==void 0?R:A(d)?d.slice(1,-1):void 0;return c===void 0?void 0:(c=L(c),A(r)?(0,X.withAlphaValue)(c,r.slice(1,-1)):((P=D.theme)===null||P===void 0||(k=P.opacity)===null||k===void 0?void 0:k[r])===void 0?void 0:(0,X.withAlphaValue)(c,D.theme.opacity[r]))}return H(j,T,{validate:Q.color})}function O(j,T={}){var D;return(D=T.values)===null||D===void 0?void 0:D[j]}function q(j){return(T,D)=>H(T,D,{validate:j})}var N={any:H,color:B,url:q(Q.url),image:q(Q.image),length:q(Q.length),percentage:q(Q.percentage),position:q(Q.position),lookup:O,"generic-name":q(Q.genericName),"family-name":q(Q.familyName),number:q(Q.number),"line-width":q(Q.lineWidth),"absolute-size":q(Q.absoluteSize),"relative-size":q(Q.relativeSize),shadow:q(Q.shadow)},E=Object.keys(N);function I(j,T){let D=j.indexOf(T);return D===-1?[void 0,j]:[j.slice(0,D),j.slice(D+1)]}function F(j,T,D,C){if(A(T)){let g=T.slice(1,-1),[d,r]=I(g,":");if(!/^[\w-_]+$/g.test(d))r=g;else if(d!==void 0&&!E.includes(d))return[];if(r.length>0&&E.includes(d))return[H(`[${r}]`,D),d]}for(let g of[].concat(j)){let d=N[g](T,D,{tailwindConfig:C});if(d!==void 0)return[d,g]}return[]}}),FU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Y});function Y(K){return typeof K=="function"?K({}):K}}),_U=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>l});var Y=L(sJ()),K=L(sz()),Z=L(az()),X=L(aJ()),Q=L(tz()),W=ez(),w=JU(),$=YU(),z=L(KU()),U=ZU(),H=EU(),A=BY(),V=L(FU());function L(P){return P&&P.__esModule?P:{default:P}}function B(P){return typeof P=="function"}function O(P){return typeof P=="object"&&P!==null}function q(P,...k){let R=k.pop();for(let c of k)for(let u in c){let a=R(P[u],c[u]);a===void 0?O(P[u])&&O(c[u])?P[u]=q(P[u],c[u],R):P[u]=c[u]:P[u]=a}return P}var N={colors:Q.default,negative(P){return Object.keys(P).filter((k)=>P[k]!=="0").reduce((k,R)=>{let c=(0,Y.default)(P[R]);return c!==void 0&&(k[`-${R}`]=c),k},{})},breakpoints(P){return Object.keys(P).filter((k)=>typeof P[k]=="string").reduce((k,R)=>({...k,[`screen-${R}`]:P[R]}),{})}};function E(P,...k){return B(P)?P(...k):P}function I(P){return P.reduce((k,{extend:R})=>q(k,R,(c,u)=>c===void 0?[u]:Array.isArray(c)?[u,...c]:[u,c]),{})}function F(P){return{...P.reduce((k,R)=>(0,W.defaults)(k,R),{}),extend:I(P)}}function j(P,k){if(Array.isArray(P)&&O(P[0]))return P.concat(k);if(Array.isArray(k)&&O(k[0])&&O(P))return[P,...k];if(Array.isArray(k))return k}function T({extend:P,...k}){return q(k,P,(R,c)=>!B(R)&&!c.some(B)?q({},R,...c,j):(u,a)=>q({},...[R,...c].map((n)=>E(n,u,a)),j))}function*D(P){let k=(0,w.toPath)(P);if(k.length===0||(yield k,Array.isArray(P)))return;let R=/^(.*?)\s*\/\s*([^/]+)$/,c=P.match(R);if(c!==null){let[,u,a]=c,n=(0,w.toPath)(u);n.alpha=a,yield n}}function C(P){let k=(R,c)=>{for(let u of D(R)){let a=0,n=P;for(;n!=null&&a<u.length;)n=n[u[a++]],n=B(n)&&(u.alpha===void 0||a<=u.length-1)?n(k,N):n;if(n!==void 0){if(u.alpha!==void 0){let m=(0,H.parseColorFormat)(n);return(0,A.withAlphaValue)(m,u.alpha,(0,V.default)(m))}return(0,z.default)(n)?(0,U.cloneDeep)(n):n}}return c};return Object.assign(k,{theme:k,...N}),Object.keys(P).reduce((R,c)=>(R[c]=B(P[c])?P[c](k,N):P[c],R),{})}function g(P){let k=[];return P.forEach((R)=>{k=[...k,R];var c;let u=(c=R==null?void 0:R.plugins)!==null&&c!==void 0?c:[];u.length!==0&&u.forEach((a)=>{a.__isOptionsFunction&&(a=a());var n;k=[...k,...g([(n=a==null?void 0:a.config)!==null&&n!==void 0?n:{}])]})}),k}function d(P){return[...P].reduceRight((k,R)=>B(R)?R({corePlugins:k}):(0,Z.default)(R,k),K.default)}function r(P){return[...P].reduceRight((k,R)=>[...k,...R],[])}function l(P){let k=[...g(P),{prefix:"",important:!1,separator:":",variantOrder:X.default.variantOrder}];var R,c;return(0,$.normalizeConfig)((0,W.defaults)({theme:C(T(F(k.map((u)=>(R=u==null?void 0:u.theme)!==null&&R!==void 0?R:{})))),corePlugins:d(k.map((u)=>u.corePlugins)),plugins:r(P.map((u)=>(c=u==null?void 0:u.plugins)!==null&&c!==void 0?c:[]))},...k))}}),GY={};r9(GY,{default:()=>OY});var OY,IU=o9(()=>{OY={yellow:(J)=>J}}),DU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y(H,A){for(var V in A)Object.defineProperty(H,V,{enumerable:!0,get:A[V]})}Y(J,{flagEnabled:()=>w,issueFlagNotices:()=>z,default:()=>U});var K=X((IU(),a8(GY))),Z=X((s9(),a8(J6)));function X(H){return H&&H.__esModule?H:{default:H}}var Q={optimizeUniversalDefaults:!1},W={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function w(H,A){if(W.future.includes(A)){var V,L,B;return H.future==="all"||((B=(L=H==null||(V=H.future)===null||V===void 0?void 0:V[A])!==null&&L!==void 0?L:Q[A])!==null&&B!==void 0?B:!1)}if(W.experimental.includes(A)){var O,q,N;return H.experimental==="all"||((N=(q=H==null||(O=H.experimental)===null||O===void 0?void 0:O[A])!==null&&q!==void 0?q:Q[A])!==null&&N!==void 0?N:!1)}return!1}function $(H){if(H.experimental==="all")return W.experimental;var A;return Object.keys((A=H==null?void 0:H.experimental)!==null&&A!==void 0?A:{}).filter((V)=>W.experimental.includes(V)&&H.experimental[V])}function z(H){if(process.env.JEST_WORKER_ID===void 0&&$(H).length>0){let A=$(H).map((V)=>K.default.yellow(V)).join(", ");Z.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${A}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}var U=W}),RU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>X});var Y=Z(aJ()),K=DU();function Z(Q){return Q&&Q.__esModule?Q:{default:Q}}function X(Q){var W;let w=((W=Q==null?void 0:Q.presets)!==null&&W!==void 0?W:[Y.default]).slice().reverse().flatMap((U)=>X(typeof U=="function"?U():U)),$={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},z=Object.keys($).filter((U)=>(0,K.flagEnabled)(Q,U)).map((U)=>$[U]);return[Q,...z,...w]}}),CU=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>X});var Y=Z(_U()),K=Z(RU());function Z(Q){return Q&&Q.__esModule?Q:{default:Q}}function X(...Q){let[,...W]=(0,K.default)(Q[0]);return(0,Y.default)([...Q,...W])}}),TU=t((J,Y)=>{var K=CU();Y.exports=(K.__esModule?K:{default:K}).default}),h8;var r5=null;async function K6(){return h8||(r5?(await r5,h8):(r5=Promise.resolve().then(()=>(rz(),rJ)).then((J)=>J.getYogaModule()).then((J)=>h8=J),await r5,r5=null,h8))}var K8=(J,Y)=>()=>(Y||J((Y={exports:{}}).exports,Y),Y.exports),PU=K8((J,Y)=>{Y.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),SU=K8((J,Y)=>{Y.exports=["deg","grad","rad","turn"]}),vU=K8((J,Y)=>{Y.exports=["dpi","dpcm","dppx"]}),kU=K8((J,Y)=>{Y.exports=["Hz","kHz"]}),yU=K8((J,Y)=>{Y.exports=["s","ms"]}),hU=PU(),LY=SU(),MY=vU(),qY=kU(),NY=yU();function J4(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(gU(J)>1)throw Error("Only one dot is allowed");if(/%$/.test(J)){this.type="percentage",this.value=P9(J),this.unit="%";return}var Y=bU(J);if(!Y){this.type="number",this.value=P9(J);return}this.type=mU(Y),this.value=P9(J.substr(0,J.length-Y.length)),this.unit=Y}J4.prototype.valueOf=function(){return this.value};J4.prototype.toString=function(){return this.value+(this.unit||"")};function Z8(J){return new J4(J)}function gU(J){var Y=J.match(/\./g);return Y?Y.length:0}function P9(J){var Y=parseFloat(J);if(isNaN(Y))throw Error("Invalid number: "+J);return Y}var xU=[].concat(LY,qY,hU,MY,NY);function bU(J){var Y=J.match(/\D+$/),K=Y&&Y[0];if(K&&xU.indexOf(K)===-1)throw Error("Invalid unit: "+K);return K}var fU=Object.assign(g8(LY,"angle"),g8(qY,"frequency"),g8(MY,"resolution"),g8(NY,"time"));function g8(J,Y){return Object.fromEntries(J.map((K)=>[K,Y]))}function mU(J){return fU[J]||"length"}function i8(J){let Y=typeof J;return!(Y==="number"||Y==="bigint"||Y==="string"||Y==="boolean")}function cU(J){return/^class\s/.test(J.toString())}function dU(J){return"dangerouslySetInnerHTML"in J}function uU(J){let Y=typeof J>"u"?[]:[].concat(J).flat(1/0),K=[];for(let Z=0;Z<Y.length;Z++){let X=Y[Z];typeof X>"u"||typeof X=="boolean"||X===null||(typeof X=="number"&&(X=String(X)),typeof X=="string"&&K.length&&typeof K[K.length-1]=="string"?K[K.length-1]+=X:K.push(X))}return K}function H0(J,Y,K,Z,X=!1){if(typeof J=="number")return J;try{if(J=J.trim(),/[ /\(,]/.test(J))return;if(J===String(+J))return+J;let Q=new Z8(J);if(Q.type==="length")switch(Q.unit){case"em":return Q.value*Y;case"rem":return Q.value*16;case"vw":return~~(Q.value*Z._viewportWidth/100);case"vh":return~~(Q.value*Z._viewportHeight/100);default:return Q.value}else{if(Q.type==="angle")return jY(J);if(Q.type==="percentage"&&X)return Q.value/100*K}}catch{}}function jY(J){let Y=new Z8(J);switch(Y.unit){case"deg":return Y.value;case"rad":return Y.value*180/Math.PI;case"turn":return Y.value*360;case"grad":return 0.9*Y.value}}function n8(J,Y){return[J[0]*Y[0]+J[2]*Y[1],J[1]*Y[0]+J[3]*Y[1],J[0]*Y[2]+J[2]*Y[3],J[1]*Y[2]+J[3]*Y[3],J[0]*Y[4]+J[2]*Y[5]+J[4],J[1]*Y[4]+J[3]*Y[5]+J[5]]}function G1(J,Y,K,Z){let X=Y[J];if(typeof X>"u"){if(Z&&typeof J<"u")throw Error(`Invalid value for CSS property "${Z}". Allowed values: ${Object.keys(Y).map((Q)=>`"${Q}"`).join(" | ")}. Received: "${J}".`);X=K}return X}var S9,v9,lU=[32,160,4961,65792,65793,4153,4241,10].map((J)=>String.fromCodePoint(J));function L1(J,Y,K){if(!S9||!v9){if(!(typeof Intl<"u"&&("Segmenter"in Intl)))throw Error("Intl.Segmenter does not exist, please use import a polyfill.");S9=new Intl.Segmenter(K,{granularity:"word"}),v9=new Intl.Segmenter(K,{granularity:"grapheme"})}if(Y==="grapheme")return[...v9.segment(J)].map((Z)=>Z.segment);{let Z=[...S9.segment(J)].map((W)=>W.segment),X=[],Q=0;for(;Q<Z.length;){let W=Z[Q];if(W=="\xA0"){let w=Q===0?"":X.pop(),$=Q===Z.length-1?"":Z[Q+1];X.push(w+"\xA0"+$),Q+=2}else X.push(W),Q++}return X}}function s(J,Y,K){let Z="";for(let[X,Q]of Object.entries(Y))typeof Q<"u"&&(Z+=` ${X}="${Q}"`);return K?`<${J}${Z}>${K}</${J}>`:`<${J}${Z}/>`}function pU(J=20){let Y=new Map;function K(Q,W){if(Y.size>=J){let w=Y.keys().next().value;Y.delete(w)}Y.set(Q,W)}function Z(Q){if(!Y.has(Q))return;let W=Y.get(Q);return Y.delete(Q),Y.set(Q,W),W}function X(){Y.clear()}return{set:K,get:Z,clear:X}}function Y4(J){return J?J.split(/[, ]/).filter(Boolean).map(Number):null}function iU(J){return Object.prototype.toString.call(J)}function EY(J){return typeof J=="string"}function nU(J){return typeof J=="number"}function oU(J){return iU(J)==="[object Undefined]"}function rU(J,Y){if(Y==="break-all")return{words:L1(J,"grapheme"),requiredBreaks:[]};if(Y==="keep-all")return{words:L1(J,"word"),requiredBreaks:[]};let K=new c6(J),Z=0,X=K.nextBreak(),Q=[],W=[!1];for(;X;){let w=J.slice(Z,X.position);Q.push(w),X.required?W.push(!0):W.push(!1),Z=X.position,X=K.nextBreak()}return{words:Q,requiredBreaks:W}}var sU=(J)=>J.replaceAll(/([A-Z])/g,(Y,K)=>`-${K.toLowerCase()}`);function FY(J,Y=","){let K=[],Z=0,X=0;Y=new RegExp(Y);for(let Q=0;Q<J.length;Q++)J[Q]==="("?X++:J[Q]===")"&&X--,X===0&&Y.test(J[Q])&&(K.push(J.slice(Z,Q).trim()),Z=Q+1);return K.push(J.slice(Z).trim()),K}var aU="image/avif",tU="image/webp",Z6="image/apng",X6="image/png",Q6="image/jpeg",W6="image/gif",K4="image/svg+xml";function _Y(J){let Y=new DataView(J),K=4,Z=Y.byteLength;for(;K<Z;){let X=Y.getUint16(K,!1);if(X>Z)throw TypeError("Invalid JPEG");let Q=Y.getUint8(X+1+K);if(Q===192||Q===193||Q===194)return[Y.getUint16(X+7+K,!1),Y.getUint16(X+5+K,!1)];K+=X+2}throw TypeError("Invalid JPEG")}function IY(J){let Y=new Uint8Array(J.slice(6,10));return[Y[0]|Y[1]<<8,Y[2]|Y[3]<<8]}function DY(J){let Y=new DataView(J);return[Y.getUint16(18,!1),Y.getUint16(22,!1)]}var o1=pU(100),o8=new Map,eU=[X6,Z6,Q6,W6,K4];function JH(J){let Y="",K=new Uint8Array(J);for(let Z=0;Z<K.byteLength;Z++)Y+=String.fromCharCode(K[Z]);return btoa(Y)}function YH(J){let Y=atob(J),K=Y.length,Z=new Uint8Array(K);for(let X=0;X<K;X++)Z[X]=Y.charCodeAt(X);return Z.buffer}function EJ(J,Y){let K=Y.match(/<svg[^>]*>/)[0],Z=K.match(/viewBox=['"](.+)['"]/),X=Z?Y4(Z[1]):null,Q=K.match(/width=['"](\d*\.\d+|\d+)['"]/),W=K.match(/height=['"](\d*\.\d+|\d+)['"]/);if(!X&&(!Q||!W))throw Error(`Failed to parse SVG from ${J}: missing "viewBox"`);let w=X?[X[2],X[3]]:[+Q[1],+W[1]],$=w[0]/w[1];return Q&&W?[+Q[1],+W[1]]:Q?[+Q[1],+Q[1]/$]:W?[+W[1]*$,+W[1]]:[w[0],w[1]]}function FJ(J){let Y,K=KH(new Uint8Array(J));switch(K){case X6:case Z6:Y=DY(J);break;case W6:Y=IY(J);break;case Q6:Y=_Y(J);break}if(!eU.includes(K))throw Error(`Unsupported image type: ${K||"unknown"}`);return[`data:${K};base64,${JH(J)}`,Y]}async function Z4(J){if(!J)throw Error("Image source is not provided.");if(typeof J=="object"){let[X,Q]=FJ(J);return[X,...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 X;try{X=/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}=X;if(Q===K4){let $=W==="base64"?atob(w):decodeURIComponent(w.replace(/ /g,"%20")),z=W==="base64"?J:`data:image/svg+xml;base64,${btoa($)}`,U=EJ(J,$);return o1.set(J,[z,...U]),[z,...U]}else if(W==="base64"){let $,z=YH(w);switch(Q){case X6:case Z6:$=DY(z);break;case W6:$=IY(z);break;case Q6:$=_Y(z);break}return o1.set(J,[J,...$]),[J,...$]}else return console.warn("Image data URI resolved without size:"+J),o1.set(J,[J]),[J]}if(!globalThis.fetch)throw Error("`fetch` is required to be polyfilled to load images.");if(o8.has(J))return o8.get(J);let Y=o1.get(J);if(Y)return Y;let K=J,Z=fetch(K).then((X)=>{let Q=X.headers.get("content-type");return Q==="image/svg+xml"||Q==="application/svg+xml"?X.text():X.arrayBuffer()}).then((X)=>{if(typeof X=="string")try{let w=`data:image/svg+xml;base64,${btoa(X)}`,$=EJ(K,X);return[w,...$]}catch(w){throw Error(`Failed to parse SVG image: ${w.message}`)}let[Q,W]=FJ(X);return[Q,...W]}).then((X)=>(o1.set(K,X),X)).catch((X)=>(console.error(`Can't load image ${K}: `+X.message),o1.set(K,[]),[]));return o8.set(K,Z),Z}function KH(J){return[255,216,255].every((Y,K)=>J[K]===Y)?Q6:[137,80,78,71,13,10,26,10].every((Y,K)=>J[K]===Y)?ZH(J)?Z6:X6:[71,73,70,56].every((Y,K)=>J[K]===Y)?W6:[82,73,70,70,0,0,0,0,87,69,66,80].every((Y,K)=>!Y||J[K]===Y)?tU:[60,63,120,109,108].every((Y,K)=>J[K]===Y)?K4:[0,0,0,0,102,116,121,112,97,118,105,102].every((Y,K)=>!Y||J[K]===Y)?aU:null}function ZH(J){let Y=new DataView(J.buffer),K,Z,X=8,Q=!1;for(;!Q&&K!=="IEND"&&X<J.length;){Z=Y.getUint32(X);let W=J.subarray(X+4,X+8);K=String.fromCharCode(...W),Q=K==="acTL",X+=12+Z}return Q}var c9={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"},XH=/[\r\n%#()<>?[\\\]^`{|}"']/g;function d9(J,Y){if(!J)return"";if(Array.isArray(J))return J.map((z)=>d9(z,Y)).join("");if(typeof J!="object")return String(J);let K=J.type;if(K==="text")throw Error("<text> nodes are not currently supported, please convert them to <path>");let{children:Z,style:X,...Q}=J.props||{},W=(X==null?void 0:X.color)||Y,w=`${Object.entries(Q).map(([z,U])=>(typeof U=="string"&&U.toLowerCase()==="currentcolor"&&(U=W),z==="href"&&K==="image"?` ${c9[z]||z}="${o1.get(U)[0]}"`:` ${c9[z]||z}="${U}"`)).join("")}`,$=X?` style="${Object.entries(X).map(([z,U])=>`${sU(z)}:${U}`).join(";")}"`:"";return`<${K}${w}${$}>${d9(Z,W)}</${K}>`}async function QH(J){let Y=new Set,K=(Z)=>{if(Z&&i8(Z)){if(Array.isArray(Z)){Z.forEach((X)=>K(X));return}else typeof Z=="object"&&(Z.type==="image"?Y.has(Z.props.href)||Y.add(Z.props.href):Z.type==="img"&&(Y.has(Z.props.src)||Y.add(Z.props.src)));Array.isArray(Z.props.children)?Z.props.children.map((X)=>K(X)):K(Z.props.children)}};return K(J),Promise.all(Array.from(Y).map((Z)=>Z4(Z)))}async function WH(J,Y){let{viewBox:K,viewbox:Z,width:X,height:Q,className:W,style:w,children:$,...z}=J.props||{};K||=Z,z.xmlns="http://www.w3.org/2000/svg";let U=(w==null?void 0:w.color)||Y,H=Y4(K),A=H?H[3]/H[2]:null;return X=X||A&&Q?Q/A:null,Q=Q||A&&X?X*A:null,z.width=X,z.height=Q,K&&(z.viewBox=K),`data:image/svg+xml;utf8,${`<svg ${Object.entries(z).map(([V,L])=>(typeof L=="string"&&L.toLowerCase()==="currentcolor"&&(L=U),` ${c9[V]||V}="${L}"`)).join("")}>${d9($,U)}</svg>`.replace(XH,encodeURIComponent)}`}var Z1="flex",$H={p:{display:Z1,marginTop:"1em",marginBottom:"1em"},div:{display:Z1},blockquote:{display:Z1,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:Z1,textAlign:"center"},hr:{display:Z1,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:Z1,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:Z1,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:Z1,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:Z1,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:Z1,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:Z1,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:Z1,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}},wH=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 zH(J){let Y={};for(let K in J)wH.has(K)&&(Y[K]=J[K]);return Y}function UH(J,Y){try{let K=new Z8(J);switch(K.unit){case"px":return{absolute:K.value};case"em":return{absolute:K.value*Y};case"rem":return{absolute:K.value*16};case"%":return{relative:K.value};default:return{}}}catch{return{}}}function k9(J,Y,K){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 Z=UH(J,Y);return Z.absolute?{[K?"xAbsolute":"yAbsolute"]:Z.absolute}:Z.relative?{[K?"xRelative":"yRelative"]:Z.relative}:{}}}}function HH(J,Y){if(typeof J=="number")return{xAbsolute:J};let K;try{K=TY.default(J).nodes.filter((Z)=>Z.type==="word").map((Z)=>Z.value)}catch{return{}}return K.length===1?k9(K[0],Y,!0):K.length===2?((K[0]==="top"||K[0]==="bottom"||K[1]==="left"||K[1]==="right")&&K.reverse(),{...k9(K[0],Y,!0),...k9(K[1],Y,!1)}):{}}function s5(J,Y){let K=PY.getPropertyName(`mask-${Y}`);return J[K]||J[`WebkitM${K.substring(1)}`]}function AH(J){let Y=J.maskImage||J.WebkitMaskImage,K={position:s5(J,"position")||"0% 0%",size:s5(J,"size")||"100% 100%",repeat:s5(J,"repeat")||"repeat",origin:s5(J,"origin")||"border-box",clip:s5(J,"origin")||"border-box"};return FY(Y).filter((Z)=>Z&&Z!=="none").reverse().map((Z)=>({image:Z,...K}))}var VH=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),BH=new Set(["lineHeight"]);function GH(J,Y,K,Z){return J==="textDecoration"&&!K.includes(Y.textDecorationColor)&&(Y.textDecorationColor=Z),Y}function Q5(J,Y){let K=Number(Y);return isNaN(K)?Y:VH.has(J)?BH.has(J)?K:String(Y):K+"px"}function OH(J,Y,K){if(J==="lineHeight")return{lineHeight:Q5(J,Y)};if(J==="fontFamily")return{fontFamily:Y.split(",").map((Z)=>Z.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(J==="borderRadius"){if(typeof Y!="string"||!Y.includes("/"))return;let[Z,X]=Y.split("/"),Q=O1.getStylesForProperty(J,Z,!0),W=O1.getStylesForProperty(J,X,!0);for(let w in Q)W[w]=Q5(J,Q[w])+" "+Q5(J,W[w]);return W}if(/^border(Top|Right|Bottom|Left)?$/.test(J)){let Z=O1.getStylesForProperty("border",Y,!0);Z.borderWidth===1&&!String(Y).includes("1px")&&(Z.borderWidth=3),Z.borderColor==="black"&&!String(Y).includes("black")&&(Z.borderColor=K);let X={Width:Q5(J+"Width",Z.borderWidth),Style:G1(Z.borderStyle,{solid:"solid",dashed:"dashed"},"solid",J+"Style"),Color:Z.borderColor},Q={};for(let W of J==="border"?["Top","Right","Bottom","Left"]:[J.slice(6)])for(let w in X)Q["border"+W+w]=X[w];return Q}if(J==="boxShadow"){if(!Y)throw Error('Invalid `boxShadow` value: "'+Y+'".');return{[J]:typeof Y=="string"?CY.parse(Y):Y}}if(J==="transform"){if(typeof Y!="string")throw Error("Invalid `transform` value.");let Z={},X=Y.replace(/(-?[\d.]+%)/g,(W,w)=>{let $=~~(Math.random()*1e9);return Z[$]=w,$+"px"}),Q=O1.getStylesForProperty("transform",X,!0);for(let W of Q.transform)for(let w in W)Z[W[w]]&&(W[w]=Z[W[w]]);return Q}if(J==="background")return Y=Y.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient)\(/.test(Y)?O1.getStylesForProperty("backgroundImage",Y,!0):O1.getStylesForProperty("background",Y,!0);if(J==="textShadow"){Y=Y.toString().trim();let Z={},X=FY(Y);for(let Q of X){let W=O1.getStylesForProperty("textShadow",Q,!0);for(let w in W)Z[w]?Z[w].push(W[w]):Z[w]=[W[w]]}return Z}if(J==="WebkitTextStroke"){Y=Y.toString().trim();let Z=Y.split(" ");if(Z.length!==2)throw Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:Q5(J,Z[0]),WebkitTextStrokeColor:Q5(J,Z[1])}}}function _J(J){return J==="transform"?" Only absolute lengths such as `10px` are supported.":""}var IJ=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function SY(J){if(typeof J=="string"&&IJ.test(J.trim()))return J.trim().replace(IJ,(Y,K,Z,X,Q)=>`rgba(${K}, ${Z}, ${X}, ${Q})`);if(typeof J=="object"&&J!==null){for(let Y in J)J[Y]=SY(J[Y]);return J}return J}function DJ(J,Y){let K={};if(J){let X=MH(J.color,Y.color);K.color=X;for(let Q in J){if(Q.startsWith("_")){K[Q]=J[Q];continue}if(Q==="color")continue;let W=O1.getPropertyName(Q),w=NH(J[Q],X);try{let $=OH(W,w,X)||GH(W,O1.getStylesForProperty(W,Q5(W,w),!0),w,X);Object.assign(K,$)}catch($){throw Error($.message+($.message.includes(w)?`
|
|
64
64
|
`+_J(W):`
|
|
65
|
-
in CSS rule \`${W}: ${w}\`.${_J(W)}`))}}}if(K.backgroundImage){let{backgrounds:X}=RY.parseElementStyle(K);K.backgroundImage=X}(K.maskImage||K.WebkitMaskImage)&&(K.maskImage=AH(K));let Z=OH(K.fontSize,Y.fontSize);typeof K.fontSize<"u"&&(K.fontSize=Z),K.transformOrigin&&(K.transformOrigin=HH(K.transformOrigin,Z));for(let X in K){let Q=K[X];if(X==="lineHeight")typeof Q=="string"&&Q!=="normal"&&(Q=K[X]=A0(Q,Z,Z,Y,!0)/Z);else{if(typeof Q=="string"){let W=A0(Q,Z,Z,Y);typeof W<"u"&&(K[X]=W),Q=K[X]}if(typeof Q=="string"||typeof Q=="object"){let W=SY(Q);W&&(K[X]=W),Q=K[X]}}if(X==="opacity"&&typeof Q=="number"&&(K.opacity=Q*Y.opacity),X==="transform"){let W=Q;for(let w of W){let $=Object.keys(w)[0],z=w[$],U=typeof z=="string"?A0(z,Z,Z,Y)??z:z;w[$]=U}}if(X==="textShadowRadius"){let W=Q;K.textShadowRadius=W.map((w)=>A0(w,Z,0,Y,!1))}if(X==="textShadowOffset"){let W=Q;K.textShadowOffset=W.map(({height:w,width:$})=>({height:A0(w,Z,0,Y,!1),width:A0($,Z,0,Y,!1)}))}}return K}function OH(J,Y){if(typeof J=="number")return J;try{let K=new X8(J);switch(K.unit){case"em":return K.value*Y;case"rem":return K.value*16}}catch{return Y}}function RJ(J){if(J.startsWith("hsl")){let Y=D8(J),[K,Z,X]=Y.values;return`hsl(${[K,`${Z}%`,`${X}%`].concat(Y.alpha===1?[]:[Y.alpha]).join(",")})`}return J}function qH(J,Y){return J&&J.toLowerCase()!=="currentcolor"?RJ(J):RJ(Y)}function MH(J,Y){return J.replace(/currentcolor/gi,Y)}function NH(J,Y){return EY(J)&&(J=MH(J,Y)),J}async function jH(J,Y,K,Z,X){let Q=await Z6(),W={...K,...DJ($H[Y],K),...DJ(Z,K)};if(Y==="img"){let[w,$,z]=await Z4(X.src);if($===void 0&&z===void 0){if(X.width===void 0||X.height===void 0)throw Error("Image size cannot be determined. Please provide the width and height of the image.");$=parseInt(X.width),z=parseInt(X.height)}let U=z/$,H=(W.borderLeftWidth||0)+(W.borderRightWidth||0)+(W.paddingLeft||0)+(W.paddingRight||0),A=(W.borderTopWidth||0)+(W.borderBottomWidth||0)+(W.paddingTop||0)+(W.paddingBottom||0),V=W.width||X.width,O=W.height||X.height,B=typeof V=="number"&&typeof O=="number";B&&(V-=H,O-=A),V===void 0&&O===void 0?(V="100%",J.setAspectRatio(1/U)):V===void 0?typeof O=="number"?V=O/U:J.setAspectRatio(1/U):O===void 0&&(typeof V=="number"?O=V*U:J.setAspectRatio(1/U)),W.width=B?V+H:V,W.height=B?O+A:O,W.__src=w}if(Y==="svg"){let w=X.viewBox||X.viewbox,$=Y4(w),z=$?$[3]/$[2]:null,{width:U,height:H}=X;typeof U>"u"&&H?z==null?U=0:typeof H=="string"&&H.endsWith("%")?U=parseInt(H)/z+"%":(H=A0(H,K.fontSize,1,K),U=H/z):typeof H>"u"&&U?z==null?U=0:typeof U=="string"&&U.endsWith("%")?H=parseInt(U)*z+"%":(U=A0(U,K.fontSize,1,K),H=U*z):(typeof U<"u"&&(U=A0(U,K.fontSize,1,K)||U),typeof H<"u"&&(H=A0(H,K.fontSize,1,K)||H),U||=$==null?void 0:$[2],H||=$==null?void 0:$[3]),!W.width&&U&&(W.width=U),!W.height&&H&&(W.height=H)}return J.setDisplay(G1(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(G1(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(G1(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(G1(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(G1(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(G1(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(G1(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(G1(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(G1(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,zH(W)]}var CJ=[1,0,0,1,0,0];function EH(J,Y,K){let Z=[...CJ];for(let X of J){let Q=Object.keys(X)[0],W=X[Q];if(typeof W=="string")if(Q==="translateX")W=parseFloat(W)/100*Y,X[Q]=W;else if(Q==="translateY")W=parseFloat(W)/100*K,X[Q]=W;else throw Error(`Invalid transform: "${Q}: ${W}".`);let w=W,$=[...CJ];switch(Q){case"translateX":$[4]=w;break;case"translateY":$[5]=w;break;case"scale":$[0]=w,$[3]=w;break;case"scaleX":$[0]=w;break;case"scaleY":$[3]=w;break;case"rotate":{let z=w*Math.PI/180,U=Math.cos(z),H=Math.sin(z);$[0]=U,$[1]=H,$[2]=-H,$[3]=U;break}case"skewX":$[2]=Math.tan(w*Math.PI/180);break;case"skewY":$[1]=Math.tan(w*Math.PI/180);break}Z=o8($,Z)}J.splice(0,J.length),J.push(...Z),J.__resolved=!0}function vY({left:J,top:Y,width:K,height:Z},X,Q,W){let w;X.__resolved||EH(X,K,Z);let $=X;if(Q)w=$;else{let z=(W==null?void 0:W.xAbsolute)??((W==null?void 0:W.xRelative)??50)*K/100,U=(W==null?void 0:W.yAbsolute)??((W==null?void 0:W.yRelative)??50)*Z/100,H=J+z,A=Y+U;w=o8([1,0,0,1,H,A],o8($,[1,0,0,1,-H,-A])),$.__parent&&(w=o8($.__parent,w)),$.splice(0,6,...w)}return`matrix(${w.map((z)=>z.toFixed(2)).join(",")})`}function FH({left:J,top:Y,width:K,height:Z,isInheritingTransform:X},Q){let W="",w=1;return Q.transform&&(W=vY({left:J,top:Y,width:K,height:Z},Q.transform,X,Q.transformOrigin)),Q.opacity!==void 0&&(w=+Q.opacity),{matrix:W,opacity:w}}function _H({id:J,content:Y,filter:K,left:Z,top:X,width:Q,height:W,matrix:w,opacity:$,image:z,clipPathId:U,debug:H,shape:A,decorationShape:V},O){let B="";if(H&&(B=s("rect",{x:Z,y:X-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 M={href:z,x:Z,y:X,width:Q,height:W,transform:w||void 0,"clip-path":U?`url(#${U})`:void 0,style:O.filter?`filter:${O.filter}`:void 0};return[(K?`${K}<g filter="url(#satori_s-${J})">`:"")+s("image",{...M,opacity:$!==1?$:void 0})+(V||"")+(K?"</g>":"")+B,""]}let L={x:Z,y:X,width:Q,height:W,"font-weight":O.fontWeight,"font-style":O.fontStyle,"font-size":O.fontSize,"font-family":O.fontFamily,"letter-spacing":O.letterSpacing||void 0,transform:w||void 0,"clip-path":U?`url(#${U})`:void 0,style:O.filter?`filter:${O.filter}`:void 0,"stroke-width":O.WebkitTextStrokeWidth?`${O.WebkitTextStrokeWidth}px`:void 0,stroke:O.WebkitTextStrokeWidth?O.WebkitTextStrokeColor:void 0,"stroke-linejoin":O.WebkitTextStrokeWidth?"round":void 0,"paint-order":O.WebkitTextStrokeWidth?"stroke":void 0};return[(K?`${K}<g filter="url(#satori_s-${J})">`:"")+s("text",{...L,fill:O.color,opacity:$!==1?$:void 0},u9.default(Y))+(V||"")+(K?"</g>":"")+B,A?s("text",L,u9.default(Y)):""]}function IH(J,Y,K){return J.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(Z,X,Q,W){return X+(parseFloat(Q)+Y)+","+(parseFloat(W)+K)})}var b8=1.1;function DH({id:J,width:Y,height:K},Z){if(!Z.shadowColor||!Z.shadowOffset||typeof Z.shadowRadius>"u")return"";let X=Z.shadowColor.length,Q="",W="",w=0,$=Y,z=0,U=K;for(let H=0;H<X;H++){let A=Z.shadowRadius[H]*Z.shadowRadius[H]/4;w=Math.min(Z.shadowOffset[H].width-A,w),$=Math.max(Z.shadowOffset[H].width+A+Y,$),z=Math.min(Z.shadowOffset[H].height-A,z),U=Math.max(Z.shadowOffset[H].height+A+K,U),Q+=s("feDropShadow",{dx:Z.shadowOffset[H].width,dy:Z.shadowOffset[H].height,stdDeviation:Z.shadowRadius[H]/2,"flood-color":Z.shadowColor[H],"flood-opacity":1,...X>1?{in:"SourceGraphic",result:`satori_s-${J}-result-${H}`}:{}}),X>1&&(W=s("feMergeNode",{in:`satori_s-${J}-result-${H}`})+W)}return s("filter",{id:`satori_s-${J}`,x:(w/Y*100*b8).toFixed(2)+"%",y:(z/K*100*b8).toFixed(2)+"%",width:(($-w)/Y*100*b8).toFixed(2)+"%",height:((U-z)/K*100*b8).toFixed(2)+"%"},Q+(W?s("feMerge",{},W):""))}function RH({width:J,height:Y,shape:K,opacity:Z,id:X},Q){if(!Q.boxShadow)return null;let W="",w="";for(let $=Q.boxShadow.length-1;$>=0;$--){let z="",U=Q.boxShadow[$];U.spreadRadius&&U.inset&&(U.spreadRadius=-U.spreadRadius);let H=U.blurRadius*U.blurRadius/4+(U.spreadRadius||0),A=Math.min(-H-(U.inset?U.offsetX:0),0),V=Math.max(H+J-(U.inset?U.offsetX:0),J),O=Math.min(-H-(U.inset?U.offsetY:0),0),B=Math.max(H+Y-(U.inset?U.offsetY:0),Y),L=`satori_s-${X}-${$}`,M=`satori_ms-${X}-${$}`,N=U.spreadRadius?K.replace('stroke-width="0"',`stroke-width="${U.spreadRadius*2}"`):K;z+=s("mask",{id:M,maskUnits:"userSpaceOnUse"},s("rect",{x:0,y:0,width:Q._viewportWidth||"100%",height:Q._viewportHeight||"100%",fill:U.inset?"#000":"#fff"})+N.replace('fill="#fff"',U.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let E=N.replace(/d="([^"]+)"/,(I,F)=>'d="'+IH(F,U.offsetX,U.offsetY)+'"').replace(/x="([^"]+)"/,(I,F)=>'x="'+(parseFloat(F)+U.offsetX)+'"').replace(/y="([^"]+)"/,(I,F)=>'y="'+(parseFloat(F)+U.offsetY)+'"');U.spreadRadius&&U.spreadRadius<0&&(z+=s("mask",{id:M+"-neg",maskUnits:"userSpaceOnUse"},E.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-U.spreadRadius*2}"`))),U.spreadRadius&&U.spreadRadius<0&&(E=s("g",{mask:`url(#${M}-neg)`},E)),z+=s("defs",{},s("filter",{id:L,x:`${A/J*100}%`,y:`${O/Y*100}%`,width:`${(V-A)/J*100}%`,height:`${(B-O)/Y*100}%`},s("feGaussianBlur",{stdDeviation:U.blurRadius/2,result:"b"})+s("feFlood",{"flood-color":U.color,in:"SourceGraphic",result:"f"})+s("feComposite",{in:"f",in2:"b",operator:U.inset?"out":"in"})))+s("g",{mask:`url(#${M})`,filter:`url(#${L})`,opacity:Z},E),U.inset?w+=z:W+=z}return[W,w]}function CH({width:J,left:Y,top:K,ascender:Z,clipPathId:X,matrix:Q},W){let{textDecorationColor:w,textDecorationStyle:$,textDecorationLine:z,fontSize:U,color:H}=W;if(!z||z==="none")return"";let A=Math.max(1,U*0.1),V=z==="line-through"?K+Z*0.7:z==="underline"?K+Z*1.1:K,O=$==="dashed"?`${A*1.2} ${A*2}`:$==="dotted"?`0 ${A*2}`:void 0;return(X?`<g clip-path="url(#${X})">`:"")+s("line",{x1:Y,y1:V,x2:Y+J,y2:V,stroke:w||H,"stroke-width":A,"stroke-dasharray":O,"stroke-linecap":$==="dotted"?"round":"square",transform:Q})+(X?"</g>":"")}function X4(J){return J=J.replace("U+","0x"),String.fromCodePoint(Number(J))}var K8=X4("U+0020"),kY=X4("U+0009"),s8=X4("U+2026");function TH(J,Y,K){let{fontSize:Z,letterSpacing:X}=K,Q=new Map;function W(z){if(Q.has(z))return Q.get(z);let U=J.measure(z,{fontSize:Z,letterSpacing:X});return Q.set(z,U),U}function w(z){let U=0;for(let H of z)Y(H)?U+=Z:U+=W(H);return U}function $(z){return w(O1(z,"grapheme"))}return{measureGrapheme:W,measureGraphemeArray:w,measureText:$}}function PH(J,Y,K){let{textTransform:Z,whiteSpace:X,wordBreak:Q}=Y;J=SH(J,Z,K);let{content:W,shouldCollapseTabsAndSpaces:w,allowSoftWrap:$}=yH(J,X),{words:z,requiredBreaks:U,allowBreakWord:H}=kH(W,Q),[A,V]=vH(Y,$);return{words:z,requiredBreaks:U,allowSoftWrap:$,allowBreakWord:H,processedContent:W,shouldCollapseTabsAndSpaces:w,lineLimit:A,blockEllipsis:V}}function SH(J,Y,K){return Y==="uppercase"?J=J.toLocaleUpperCase(K):Y==="lowercase"?J=J.toLocaleLowerCase(K):Y==="capitalize"&&(J=O1(J,"word",K).map((Z)=>O1(Z,"grapheme",K).map((X,Q)=>Q===0?X.toLocaleUpperCase(K):X).join("")).join("")),J}function vH(J,Y){let{textOverflow:K,lineClamp:Z,WebkitLineClamp:X,WebkitBoxOrient:Q,overflow:W,display:w}=J;if(w==="block"&&Z){let[$,z=s8]=gH(Z);if($)return[$,z]}return K==="ellipsis"&&w==="-webkit-box"&&Q==="vertical"&&nU(X)&&X>0?[X,s8]:K==="ellipsis"&&W==="hidden"&&!Y?[1,s8]:[1/0]}function kH(J,Y){let K=["break-all","break-word"].includes(Y),{words:Z,requiredBreaks:X}=rU(J,Y);return{words:Z,requiredBreaks:X,allowBreakWord:K}}function yH(J,Y){let K=["pre","pre-wrap","pre-line"].includes(Y),Z=["normal","nowrap","pre-line"].includes(Y),X=!["pre","nowrap"].includes(Y);return K||(J=J.replace(/\n/g,K8)),Z&&(J=J.replace(/([ ]|\t)+/g,K8).replace(/^[ ]|[ ]$/g,"")),{content:J,shouldCollapseTabsAndSpaces:Z,allowSoftWrap:X}}function gH(J){if(typeof J=="number")return[J];let Y=/^(\d+)\s*"(.*)"$/,K=/^(\d+)\s*'(.*)'$/,Z=Y.exec(J),X=K.exec(J);if(Z){let Q=+Z[1],W=Z[2];return[Q,W]}else if(X){let Q=+X[1],W=X[2];return[Q,W]}return[]}var hH=new Set([kY]);function xH(J){return hH.has(J)}async function*bH(J,Y){let K=await Z6(),{parentStyle:Z,inheritedStyle:X,parent:Q,font:W,id:w,isInheritingTransform:$,debug:z,embedFont:U,graphemeImages:H,locale:A,canLoadAdditionalAssets:V}=Y,{textAlign:O,lineHeight:B,textWrap:L,fontSize:M,filter:N,tabSize:E=8,letterSpacing:I,_inheritedBackgroundClipTextPath:F,flexShrink:j}=Z,{words:T,requiredBreaks:D,allowSoftWrap:C,allowBreakWord:h,processedContent:d,shouldCollapseTabsAndSpaces:r,lineLimit:l,blockEllipsis:P}=PH(J,Z,A),k=fH(K,O);Q.insertChild(k,Q.getChildCount()),oU(j)&&Q.setFlexShrink(1);let R=W.getEngine(M,B,Z,A),c=V?O1(d,"grapheme").filter(($0)=>!xH($0)&&!R.has($0)):[];yield c.map(($0)=>({word:$0,locale:A})),c.length&&(R=W.getEngine(M,B,Z,A));function u($0){return!!(H&&H[$0])}let{measureGrapheme:a,measureGraphemeArray:n,measureText:m}=TH(R,u,{fontSize:M,letterSpacing:I}),x=EY(E)?A0(E,M,1,Z):a(K8)*E,S=($0,N0)=>{if($0.length===0)return{originWidth:0,endingSpacesWidth:0,text:$0};let{index:F0,tabCount:L0}=mH($0),R0=0;if(L0>0){let P0=$0.slice(0,F0),I0=$0.slice(F0+L0),q0=m(P0),q1=q0+N0;R0=(x===0?q0:(Math.floor(q1/x)+L0)*x)+m(I0)}else R0=m($0);let O0=$0.trimEnd()===$0?R0:m($0.trimEnd());return{originWidth:R0,endingSpacesWidth:R0-O0,text:$0}},y=[],p=[],g=[],e=[],Q0=[];function Z0($0){let N0=0,F0=0,L0=-1,R0=0,O0=0,P0=0,I0=0;y=[],g=[0],e=[],Q0=[];let q0=0,q1=0;for(;q0<T.length&&N0<l;){let z0=T[q0],e1=D[q0],J1=0,{originWidth:x1,endingSpacesWidth:H8,text:b1}=S(z0,O0);z0=b1,J1=x1;let j0=H8;e1&&P0===0&&(P0=R.height(z0));let f0=",.!?:-@)>]}%#".indexOf(z0[0])<0,$1=!O0,A8=q0&&f0&&O0+J1>$0+j0&&C;if(h&&J1>$0&&(!O0||A8||e1)){let l0=O1(z0,"grapheme");T.splice(q0,1,...l0),O0>0&&(y.push(O0-q1),p.push(I0),N0++,R0+=P0,O0=0,P0=0,I0=0,g.push(1),L0=-1),q1=j0;continue}if(e1||A8)r&&z0===K8&&(J1=0),y.push(O0-q1),p.push(I0),N0++,R0+=P0,O0=J1,P0=J1?R.height(z0):0,I0=J1?R.baseline(z0):0,g.push(1),L0=-1,e1||(F0=Math.max(F0,$0));else{O0+=J1;let l0=R.height(z0);l0>P0&&(P0=l0,I0=R.baseline(z0)),$1&&g[g.length-1]++}$1&&L0++,F0=Math.max(F0,O0);let P5=O0-J1;if(J1===0)Q0.push({y:R0,x:P5,width:0,line:N0,lineIndex:L0,isImage:!1});else{let l0=O1(z0,"word");for(let w1=0;w1<l0.length;w1++){let J5=l0[w1],C1=0,S5=!1;u(J5)?(C1=M,S5=!0):C1=a(J5),e.push(J5),Q0.push({y:R0,x:P5,width:C1,line:N0,lineIndex:L0,isImage:S5}),P5+=C1}}q0++,q1=j0}return O0&&(N0<l&&(R0+=P0),N0++,y.push(O0),p.push(I0)),{width:F0,height:R0}}let Y0={width:0,height:0};k.setMeasureFunc(($0)=>{let{width:N0,height:F0}=Z0($0);if(L==="balance"){let R0=N0/2,O0=N0,P0=N0;for(;R0+1<O0;){P0=(R0+O0)/2;let{height:q0}=Z0(P0);q0>F0?R0=P0:O0=P0}Z0(O0);let I0=Math.ceil(O0);return Y0={width:I0,height:F0},{width:I0,height:F0}}let L0=Math.ceil(N0);return Y0={width:L0,height:F0},{width:L0,height:F0}});let[V0,E0]=yield,K0="",G0="",D0=X._inheritedClipPathId,v0=X._inheritedMaskId,{left:k0,top:T0,width:u0,height:n0}=k.getComputedLayout(),o0=Q.getComputedWidth()-Q.getComputedPadding(K.EDGE_LEFT)-Q.getComputedPadding(K.EDGE_RIGHT)-Q.getComputedBorder(K.EDGE_LEFT)-Q.getComputedBorder(K.EDGE_RIGHT),Q1=V0+k0,W1=E0+T0,{matrix:e0,opacity:U5}=FH({left:k0,top:T0,width:u0,height:n0,isInheritingTransform:$},Z),g1="";if(Z.textShadowOffset){let{textShadowColor:$0,textShadowOffset:N0,textShadowRadius:F0}=Z;g1=DH({width:Y0.width,height:Y0.height,id:w},{shadowColor:$0,shadowOffset:N0,shadowRadius:F0}),g1=s("defs",{},g1)}let t1="",H5="",U8="",A5=-1,V5={},h1=null,g4=0;for(let $0=0;$0<e.length;$0++){let N0=Q0[$0],F0=Q0[$0+1];if(!N0)continue;let L0=e[$0],R0=null,O0=!1,P0=H?H[L0]:null,I0=N0.y,q0=N0.x,q1=N0.width,z0=N0.line;if(z0===A5)continue;let e1=!1;if(y.length>1){let j0=u0-y[z0];if(O==="right"||O==="end")q0+=j0;else if(O==="center")q0+=j0/2;else if(O==="justify"&&z0<y.length-1){let f0=g[z0],$1=f0>1?j0/(f0-1):0;q0+=$1*N0.lineIndex,e1=!0}}let J1=p[z0],x1=R.baseline(L0),H8=R.height(L0),b1=J1-x1;if(V5[z0]||(V5[z0]=[q0,W1+I0+b1,x1,e1?u0:y[z0]]),l!==1/0){let j0=function(l0,w1){let J5=O1(w1,"grapheme",A),C1="",S5=0;for(let h4 of J5){let x4=l0+n([C1+h4]);if(C1&&x4+$1>o0)break;C1+=h4,S5=x4}return{subset:C1,resolvedWidth:S5}},f0=P,$1=a(P);$1>o0&&(f0=s8,$1=a(f0));let A8=a(K8),P5=z0<y.length-1;if(z0+1===l&&(P5||y[z0]>o0)){if(q0+q1+$1+A8>o0){let{subset:l0,resolvedWidth:w1}=j0(q0,L0);L0=l0+f0,A5=z0,V5[z0][2]=w1,O0=!0}else if(F0&&F0.line!==z0)if(O==="center"){let{subset:l0,resolvedWidth:w1}=j0(q0,L0);L0=l0+f0,A5=z0,V5[z0][2]=w1,O0=!0}else{let l0=e[$0+1],{subset:w1,resolvedWidth:J5}=j0(q1+q0,l0);L0=L0+w1+f0,A5=z0,V5[z0][2]=J5,O0=!0}}}if(P0)I0+=0;else if(U){if(!L0.includes(kY)&&!lU.includes(L0)&&e[$0+1]&&F0&&!F0.isImage&&I0===F0.y&&!O0){h1===null&&(g4=q0),h1=h1===null?L0:h1+L0;continue}let j0=h1===null?L0:h1+L0,f0=h1===null?q0:g4,$1=N0.width+q0-f0;R0=R.getSVG(j0.replace(/(\t)+/g,""),{fontSize:M,left:Q1+f0,top:W1+I0+x1+b1,letterSpacing:I}),h1=null,z&&(U8+=s("rect",{x:Q1+f0,y:W1+I0+b1,width:$1,height:H8,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:e0||void 0,"clip-path":D0?`url(#${D0})`:void 0})+s("line",{x1:Q1+q0,x2:Q1+q0+N0.width,y1:W1+I0+b1+x1,y2:W1+I0+b1+x1,stroke:"#14c000","stroke-width":1,transform:e0||void 0,"clip-path":D0?`url(#${D0})`:void 0}))}else I0+=x1+b1;if(Z.textDecorationLine){let j0=V5[z0];j0&&!j0[4]&&(t1+=CH({left:Q1+j0[0],top:j0[1],width:j0[3],ascender:j0[2],clipPathId:D0,matrix:e0},Z),j0[4]=1)}if(R0!==null)H5+=R0+" ";else{let[j0,f0]=_H({content:L0,filter:g1,id:w,left:Q1+q0,top:W1+I0,width:q1,height:H8,matrix:e0,opacity:U5,image:P0,clipPathId:D0,debug:z,shape:!!F,decorationShape:t1},Z);K0+=j0,G0+=f0,t1=""}if(O0)break}if(H5){let $0=Z.color!=="transparent"&&U5!==0?s("path",{fill:Z.color,d:H5,transform:e0||void 0,opacity:U5!==1?U5:void 0,"clip-path":D0?`url(#${D0})`:void 0,mask:v0?`url(#${v0})`:void 0,style:N?`filter:${N}`:void 0,"stroke-width":X.WebkitTextStrokeWidth?`${X.WebkitTextStrokeWidth}px`:void 0,stroke:X.WebkitTextStrokeWidth?X.WebkitTextStrokeColor:void 0,"stroke-linejoin":X.WebkitTextStrokeWidth?"round":void 0,"paint-order":X.WebkitTextStrokeWidth?"stroke":void 0}):"";F&&(G0=s("path",{d:H5,transform:e0||void 0})),K0+=(g1?g1+s("g",{filter:`url(#satori_s-${w})`},$0+t1):$0+t1)+U8}return G0&&(Z._inheritedBackgroundClipTextPath.value+=G0),K0}function fH(J,Y){let K=J.Node.create();return K.setAlignItems(J.ALIGN_BASELINE),K.setJustifyContent(G1(Y,{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")),K}function mH(J){let Y=/(\t)+/.exec(J);return Y?{index:Y.index,tabCount:Y[0].length}:{index:null,tabCount:0}}function yY(J,Y,K,Z,X){let Q=[];for(let z of Y){let{color:U}=z;if(!Q.length&&(Q.push({offset:0,color:U}),!z.offset||z.offset.value==="0"))continue;let H=typeof z.offset>"u"?void 0:z.offset.unit==="%"?+z.offset.value/100:Number(A0(`${z.offset.value}${z.offset.unit}`,K.fontSize,J,K,!0))/J;Q.push({offset:H,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:Z?Q[Q.length-1]={offset:1,color:W.color}:Q.push({offset:1,color:W.color}));let w=0,$=1;for(let z=0;z<Q.length;z++)if(typeof Q[z].offset>"u"){for($<z&&($=z);typeof Q[$].offset>"u";)$++;Q[z].offset=(Q[$].offset-Q[w].offset)/($-w)*(z-w)+Q[w].offset}else w=z;return X==="mask"?Q.map((z)=>{let U=D8(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 cH({id:J,width:Y,height:K,repeatX:Z,repeatY:X},Q,W,w,$,z){let U=E2(Q),[H,A]=W,V=Q.startsWith("repeating"),O,B,L;if(U.orientation.type==="directional")O=uH(U.orientation.value),B=Math.sqrt(Math.pow((O.x2-O.x1)*H,2)+Math.pow((O.y2-O.y1)*A,2));else if(U.orientation.type==="angular"){let{length:F,...j}=lH(jY(`${U.orientation.value.value}${U.orientation.value.unit}`)/180*Math.PI,H,A);B=F,O=j}L=V?pH(U.stops,B,O,$):O;let M=yY(V?dH(U.stops,B):B,U.stops,$,V,z),N=`satori_bi${J}`,E=`satori_pattern_${J}`,I=s("pattern",{id:E,x:w[0]/Y,y:w[1]/K,width:Z?H/Y:"1",height:X?A/K:"1",patternUnits:"objectBoundingBox"},s("linearGradient",{id:N,...L,spreadMethod:V?"repeat":"pad"},M.map((F)=>s("stop",{offset:(F.offset??0)*100+"%","stop-color":F.color})).join(""))+s("rect",{x:0,y:0,width:H,height:A,fill:`url(#${N})`}));return[E,I]}function dH(J,Y){let K=J[J.length-1],{offset:Z}=K;return Z?Z.unit==="%"?Number(Z.value)/100*Y:Number(Z.value):Y}function uH(J){let Y=0,K=0,Z=0,X=0;return J.includes("top")?K=1:J.includes("bottom")&&(X=1),J.includes("left")?Y=1:J.includes("right")&&(Z=1),!Y&&!Z&&!K&&!X&&(K=1),{x1:Y,y1:K,x2:Z,y2:X}}function lH(J,Y,K){let Z=Math.pow(K/Y,2);J=(J%(Math.PI*2)+Math.PI*2)%(Math.PI*2);let X,Q,W,w,$,z,U,H,A=(V)=>{if(V===0){X=0,Q=K,W=0,w=0,$=K;return}else if(V===Math.PI/2){X=0,Q=0,W=Y,w=0,$=Y;return}if(V>0&&V<Math.PI/2){X=(Z*Y/2/Math.tan(V)-K/2)/(Math.tan(V)+Z/Math.tan(V)),Q=Math.tan(V)*X+K,W=Math.abs(Y/2-X)+Y/2,w=K/2-Math.abs(Q-K/2),$=Math.sqrt(Math.pow(W-X,2)+Math.pow(w-Q,2)),U=(Y/2/Math.tan(V)-K/2)/(Math.tan(V)+1/Math.tan(V)),H=Math.tan(V)*U+K,$=2*Math.sqrt(Math.pow(Y/2-U,2)+Math.pow(K/2-H,2));return}else if(V>Math.PI/2&&V<Math.PI){X=(K/2+Z*Y/2/Math.tan(V))/(Math.tan(V)+Z/Math.tan(V)),Q=Math.tan(V)*X,W=Math.abs(Y/2-X)+Y/2,w=K/2+Math.abs(Q-K/2),U=(Y/2/Math.tan(V)+K/2)/(Math.tan(V)+1/Math.tan(V)),H=Math.tan(V)*U,$=2*Math.sqrt(Math.pow(Y/2-U,2)+Math.pow(K/2-H,2));return}else V>=Math.PI&&(A(V-Math.PI),z=X,X=W,W=z,z=Q,Q=w,w=z)};return A(J),{x1:X/Y,y1:Q/K,x2:W/Y,y2:w/K,length:$}}function pH(J,Y,K,Z){let{x1:X,x2:Q,y1:W,y2:w}=K,$=J[0].offset?J[0].offset.unit==="%"?Number(J[0].offset.value)/100:A0(`${J[0].offset.value}${J[0].offset.unit}`,Z.fontSize,Y,Z,!0)/Y:0,z=J.at(-1).offset?J.at(-1).offset.unit==="%"?Number(J.at(-1).offset.value)/100:A0(`${J.at(-1).offset.value}${J.at(-1).offset.unit}`,Z.fontSize,Y,Z,!0)/Y:1,U=(Q-X)*$+X,H=(w-W)*$+W,A=(Q-X)*z+X,V=(w-W)*z+W;return{x1:U,y1:H,x2:A,y2:V}}function iH({id:J,width:Y,height:K,repeatX:Z,repeatY:X},Q,W,w,$,z){var U;let{shape:H,stops:A,position:V,size:O}=F2(Q),[B,L]=W,M=B/2,N=L/2,E=nH(V.x,V.y,B,L,$.fontSize,$);M=E.x,N=E.y;let I=yY(Y,A,$,!1,z),F=`satori_radial_${J}`,j=`satori_pattern_${J}`,T=`satori_mask_${J}`,D=oH(H,O,$.fontSize,{x:M,y:N},[B,L],$),C=s("pattern",{id:j,x:w[0]/Y,y:w[1]/K,width:Z?B/Y:"1",height:X?L/K:"1",patternUnits:"objectBoundingBox"},s("radialGradient",{id:F},I.map((h)=>s("stop",{offset:h.offset||0,"stop-color":h.color})).join(""))+s("mask",{id:T},s("rect",{x:0,y:0,width:B,height:L,fill:"#fff"}))+s("rect",{x:0,y:0,width:B,height:L,fill:((U=I.at(-1))==null?void 0:U.color)||"transparent"})+s(H,{cx:M,cy:N,width:B,height:L,...D,fill:`url(#${F})`,mask:`url(#${T})`}));return[j,C]}function nH(J,Y,K,Z,X,Q){let W={x:K/2,y:Z/2};return J.type==="keyword"?Object.assign(W,TJ(J.value,K,Z,"x")):W.x=A0(`${J.value.value}${J.value.unit}`,X,K,Q,!0)||K/2,Y.type==="keyword"?Object.assign(W,TJ(Y.value,K,Z,"y")):W.y=A0(`${Y.value.value}${Y.value.unit}`,X,Z,Q,!0)||Z/2,W}function TJ(J,Y,K,Z){switch(J){case"center":return{[Z]:Z==="x"?Y/2:K/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:Y};case"bottom":return{y:K}}}function oH(J,Y,K,Z,X,Q){let[W,w]=X,{x:$,y:z}=Z,U={},H=0,A=0;if(rH(Y)){if(Y.some((V)=>V.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(A0(`${Y[0].value.value}${Y[0].value.unit}`,K,W,Q,!0))}:{rx:Number(A0(`${Y[0].value.value}${Y[0].value.unit}`,K,W,Q,!0)),ry:Number(A0(`${Y[1].value.value}${Y[1].value.unit}`,K,w,Q,!0))}}switch(Y[0].value){case"farthest-corner":H=Math.max(Math.abs(W-$),Math.abs($)),A=Math.max(Math.abs(w-z),Math.abs(z));break;case"closest-corner":H=Math.min(Math.abs(W-$),Math.abs($)),A=Math.min(Math.abs(w-z),Math.abs(z));break;case"farthest-side":return J==="circle"?U.r=Math.max(Math.abs(W-$),Math.abs($),Math.abs(w-z),Math.abs(z)):(U.rx=Math.max(Math.abs(W-$),Math.abs($)),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-$),Math.abs($),Math.abs(w-z),Math.abs(z)):(U.rx=Math.min(Math.abs(W-$),Math.abs($)),U.ry=Math.min(Math.abs(w-z),Math.abs(z))),U}if(J==="circle")U.r=Math.sqrt(H*H+A*A);else{let V=A!==0?H/A:1;H===0?(U.rx=0,U.ry=0):(U.ry=Math.sqrt(H*H+A*A*V*V)/V,U.rx=U.ry*V)}return U}function rH(J){return!J.some((Y)=>Y.type==="keyword")}function sH(J,Y){return typeof J=="string"&&J.endsWith("%")?Y*parseFloat(J)/100:+J}function y9(J,{x:Y,y:K,defaultX:Z,defaultY:X}){return(J?J.split(" ").map((Q)=>{try{let W=new X8(Q);return W.type==="length"||W.type==="number"?W.value:W.value+W.unit}catch{return null}}).filter((Q)=>Q!==null):[Z,X]).map((Q,W)=>sH(Q,[Y,K][W]))}async function gY({id:J,width:Y,height:K,left:Z,top:X},{image:Q,size:W,position:w,repeat:$},z,U){$=$||"repeat",U=U||"background";let H=$==="repeat-x"||$==="repeat",A=$==="repeat-y"||$==="repeat",V=y9(W,{x:Y,y:K,defaultX:Y,defaultY:K}),O=y9(w,{x:Y,y:K,defaultX:0,defaultY:0});if(Q.startsWith("linear-gradient(")||Q.startsWith("repeating-linear-gradient("))return cH({id:J,width:Y,height:K,repeatX:H,repeatY:A},Q,V,O,z,U);if(Q.startsWith("radial-gradient("))return iH({id:J,width:Y,height:K,repeatX:H,repeatY:A},Q,V,O,z,U);if(Q.startsWith("url(")){let B=y9(W,{x:Y,y:K,defaultX:0,defaultY:0}),[L,M,N]=await Z4(Q.slice(4,-1)),E=U==="mask"?M||B[0]:B[0]||M,I=U==="mask"?N||B[1]:B[1]||N;return[`satori_bi${J}`,s("pattern",{id:`satori_bi${J}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:O[0]+Z,y:O[1]+X,width:H?E:"100%",height:A?I:"100%"},s("image",{x:0,y:0,width:E,height:I,preserveAspectRatio:"none",href:L}))]}throw Error(`Invalid background image: "${Q}"`)}function aH([J,Y]){return Math.round(J*1000)===0&&Math.round(Y*1000)===0?0:Math.round(J*Y/Math.sqrt(J*J+Y*Y)*1000)/1000}function f8(J,Y,K){return K<J+Y&&(K/2<J&&K/2<Y?J=Y=K/2:K/2<J?J=K-Y:K/2<Y&&(Y=K-J)),[J,Y]}function m8(J){J[0]=J[1]=Math.min(J[0],J[1])}function c8(J,Y,K,Z,X){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(A0(Q[0],Z,Y,X,!0),Y),Math.min(A0(Q[1],Z,K,X,!0),K)]]}return typeof J=="number"?[!0,[Math.min(J,Y),Math.min(J,K)]]:[!0,void 0]}var d8=(J)=>J&&J[0]!==0&&J[1]!==0;function tH({id:J,borderRadiusPath:Y,borderType:K,left:Z,top:X,width:Q,height:W},w){let $=`satori_brc-${J}`;return[s("clipPath",{id:$},s(K,{x:Z,y:X,width:Q,height:W,d:Y||void 0})),$]}function e8({left:J,top:Y,width:K,height:Z},X,Q){let{borderTopLeftRadius:W,borderTopRightRadius:w,borderBottomLeftRadius:$,borderBottomRightRadius:z,fontSize:U}=X,H,A,V,O;if([H,W]=c8(W,K,Z,U,X),[A,w]=c8(w,K,Z,U,X),[V,$]=c8($,K,Z,U,X),[O,z]=c8(z,K,Z,U,X),!Q&&!d8(W)&&!d8(w)&&!d8($)&&!d8(z))return"";W||=[0,0],w||=[0,0],$||=[0,0],z||=[0,0],[W[0],w[0]]=f8(W[0],w[0],K),[$[0],z[0]]=f8($[0],z[0],K),[W[1],$[1]]=f8(W[1],$[1],Z),[w[1],z[1]]=f8(w[1],z[1],Z),H&&m8(W),A&&m8(w),V&&m8($),O&&m8(z);let B=[];B[0]=[w,w],B[1]=[z,[-z[0],z[1]]],B[2]=[$,[-$[0],-$[1]]],B[3]=[W,[W[0],-W[1]]];let L=`h${K-W[0]-w[0]} a${B[0][0]} 0 0 1 ${B[0][1]}`,M=`v${Z-w[1]-z[1]} a${B[1][0]} 0 0 1 ${B[1][1]}`,N=`h${z[0]+$[0]-K} a${B[2][0]} 0 0 1 ${B[2][1]}`,E=`v${$[1]+W[1]-Z} a${B[3][0]} 0 0 1 ${B[3][1]}`;if(Q){let I=function(r){let l=aH([W,w,z,$][r]);return r===0?[[J+W[0]-l,Y+W[1]-l],[J+W[0],Y]]:r===1?[[J+K-w[0]+l,Y+w[1]-l],[J+K,Y+w[1]]]:r===2?[[J+K-z[0]+l,Y+Z-z[1]+l],[J+K-z[0],Y+Z]]:[[J+$[0]-l,Y+Z-$[1]+l],[J,Y+Z-$[1]]]},F=Q.indexOf(!1);if(!Q.includes(!0))throw Error("Invalid `partialSides`.");if(F===-1)F=0;else for(;!Q[F];)F=(F+1)%4;let j="",T=I(F),D=`M${T[0]} A${B[(F+3)%4][0]} 0 0 1 ${T[1]}`,C=0;for(;C<4&&Q[(F+C)%4];C++)j+=D+" ",D=[L,M,N,E][(F+C)%4];let h=(F+C)%4;j+=D.split(" ")[0];let d=I(h);return j+=` A${B[(h+3)%4][0]} 0 0 1 ${d[0]}`,j}return`M${J+W[0]},${Y} ${L} ${M} ${N} ${E}`}function PJ(J,Y,K){return K[J+"Width"]===K[Y+"Width"]&&K[J+"Style"]===K[Y+"Style"]&&K[J+"Color"]===K[Y+"Color"]}function eH({id:J,currentClipPathId:Y,borderPath:K,borderType:Z,left:X,top:Q,width:W,height:w},$){if(!($.borderTopWidth||$.borderRightWidth||$.borderBottomWidth||$.borderLeftWidth))return null;let z=`satori_bc-${J}`;return[s("clipPath",{id:z,"clip-path":Y?`url(#${Y})`:void 0},s(Z,{x:X,y:Q,width:W,height:w,d:K||void 0})),z]}function hY({left:J,top:Y,width:K,height:Z,props:X,asContentMask:Q,maskBorderOnly:W},w){let $=["borderTop","borderRight","borderBottom","borderLeft"];if(!Q&&!$.some((V)=>w[V+"Width"]))return"";let z="",U=0;for(;U>0&&PJ($[U],$[(U+3)%4],w);)U=(U+3)%4;let H=[!1,!1,!1,!1],A=[];for(let V=0;V<4;V++){let O=(U+V)%4,B=(U+V+1)%4,L=$[O],M=$[B];if(H[O]=!0,A=[w[L+"Width"],w[L+"Style"],w[L+"Color"],L],!PJ(L,M,w)){let N=(A[0]||0)+(Q&&!W&&w[L.replace("border","padding")]||0);N&&(z+=s("path",{width:K,height:Z,...X,fill:"none",stroke:Q?"#000":A[2],"stroke-width":N*2,"stroke-dasharray":!Q&&A[1]==="dashed"?N*2+" "+N:void 0,d:e8({left:J,top:Y,width:K,height:Z},w,H)})),H=[!1,!1,!1,!1]}}if(H.some(Boolean)){let V=(A[0]||0)+(Q&&!W&&w[A[3].replace("border","padding")]||0);V&&(z+=s("path",{width:K,height:Z,...X,fill:"none",stroke:Q?"#000":A[2],"stroke-width":V*2,"stroke-dasharray":!Q&&A[1]==="dashed"?V*2+" "+V:void 0,d:e8({left:J,top:Y,width:K,height:Z},w,H)}))}return z}function JA({id:J,left:Y,top:K,width:Z,height:X,matrix:Q,borderOnly:W},w){let $=(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),H=(w.borderBottomWidth||0)+(W?0:w.paddingBottom||0),A={x:Y+$,y:K+z,width:Z-$-U,height:X-z-H};return s("mask",{id:J},s("rect",{...A,fill:"#fff",transform:w.overflow==="hidden"&&w.transform&&Q?Q:void 0,mask:w._inheritedMaskId?`url(#${w._inheritedMaskId})`:void 0})+hY({left:Y,top:K,width:Z,height:X,props:{transform:Q||void 0},asContentMask:!0,maskBorderOnly:W},w))}var t5={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/};function YA({width:J,height:Y},K,Z){function X(z){let U=z.match(t5.circle);if(!U)return null;let[,H]=U,[A,V=""]=H.split("at").map((L)=>L.trim()),{x:O,y:B}=vJ(V,J,Y);return{type:"circle",r:A0(A,Z.fontSize,Math.sqrt(Math.pow(J,2)+Math.pow(Y,2))/Math.sqrt(2),Z,!0),cx:A0(O,Z.fontSize,J,Z,!0),cy:A0(B,Z.fontSize,Y,Z,!0)}}function Q(z){let U=z.match(t5.ellipse);if(!U)return null;let[,H]=U,[A,V=""]=H.split("at").map((N)=>N.trim()),[O,B]=A.split(" "),{x:L,y:M}=vJ(V,J,Y);return{type:"ellipse",rx:A0(O||"50%",Z.fontSize,J,Z,!0),ry:A0(B||"50%",Z.fontSize,Y,Z,!0),cx:A0(L,Z.fontSize,J,Z,!0),cy:A0(M,Z.fontSize,Y,Z,!0)}}function W(z){let U=z.match(t5.path);if(!U)return null;let[H,A]=SJ(U[1]);return{type:"path",d:A,"fill-rule":H}}function w(z){let U=z.match(t5.polygon);if(!U)return null;let[H,A]=SJ(U[1]);return{type:"polygon","fill-rule":H,points:A.split(",").map((V)=>V.split(" ").map((O,B)=>A0(O,Z.fontSize,B===0?J:Y,Z,!0)).join(" ")).join(",")}}function $(z){let U=z.match(t5.inset);if(!U)return null;let[H,A]=(U[1].includes("round")?U[1]:`${U[1].trim()} round 0`).split("round"),V=l9.getStylesForProperty("borderRadius",A,!0),O=Object.values(V).map((I)=>String(I)).map((I,F)=>A0(I,Z.fontSize,F===0||F===2?Y:J,Z,!0)||0),B=Object.values(l9.getStylesForProperty("margin",H,!0)).map((I)=>String(I)).map((I,F)=>A0(I,Z.fontSize,F===0||F===2?Y:J,Z,!0)||0),L=B[3],M=B[0],N=J-(B[1]+B[3]),E=Y-(B[0]+B[2]);return O.some((I)=>I>0)?{type:"path",d:e8({left:L,top:M,width:N,height:E},{...K,...V})}:{type:"rect",x:L,y:M,width:N,height:E}}return{parseCircle:X,parseEllipse:Q,parsePath:W,parsePolygon:w,parseInset:$}}function SJ(J){let[,Y="nonzero",K]=J.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[Y,K]}function vJ(J,Y,K){let Z=J.split(" "),X={x:Z[0]||"50%",y:Z[1]||"50%"};return Z.forEach((Q)=>{Q==="top"?X.y=0:Q==="bottom"?X.y=K:Q==="left"?X.x=0:Q==="right"?X.x=Y:Q==="center"&&(X.x=Y/2,X.y=K/2)}),X}function Q4(J){return`satori_cp-${J}`}function KA(J){return`url(#${Q4(J)})`}function ZA(J,Y,K){if(Y.clipPath==="none")return"";let Z=YA(J,Y,K),X=Y.clipPath,Q={type:""};for(let W of Object.keys(Z))if(Q=Z[W](X),Q)break;if(Q){let{type:W,...w}=Q;return s("clipPath",{id:Q4(J.id),"clip-path":J.currentClipPath,transform:`translate(${J.left}, ${J.top})`},s(W,w))}return""}function XA({left:J,top:Y,width:K,height:Z,path:X,matrix:Q,id:W,currentClipPath:w,src:$},z,U){let H="",A=z.clipPath&&z.clipPath!=="none"?ZA({left:J,top:Y,width:K,height:Z,path:X,id:W,matrix:Q,currentClipPath:w,src:$},z,U):"";if(z.overflow!=="hidden"&&!$)H="";else{let O=A?`satori_ocp-${W}`:Q4(W);H=s("clipPath",{id:O,"clip-path":w},s(X?"path":"rect",{x:J,y:Y,width:K,height:Z,d:X||void 0,transform:z.overflow==="hidden"&&z.transform&&Q?Q:void 0}))}let V=JA({id:`satori_om-${W}`,left:J,top:Y,width:K,height:Z,matrix:Q,borderOnly:!$},z);return A+H+V}var QA=(J)=>`satori_mi-${J}`;async function WA(J,Y,K){if(!Y.maskImage)return["",""];let{left:Z,top:X,width:Q,height:W,id:w}=J,$=Y.maskImage,z=$.length;if(!z)return["",""];let U=QA(w),H="";for(let A=0;A<z;A++){let V=$[A],[O,B]=await gY({id:`${U}-${A}`,left:Z,top:X,width:Q,height:W},V,K,"mask");H+=B+s("rect",{x:Z,y:X,width:Q,height:W,fill:`url(#${O})`})}return H=s("mask",{id:U},H),[U,H]}async function g9({id:J,left:Y,top:K,width:Z,height:X,isInheritingTransform:Q,src:W,debug:w},$,z){if($.display==="none")return"";let U=!!W,H="rect",A="",V="",O=[],B=1,L="";$.backgroundColor&&O.push($.backgroundColor),$.opacity!==void 0&&(B=+$.opacity),$.transform&&(A=vY({left:Y,top:K,width:Z,height:X},$.transform,Q,$.transformOrigin));let M="";if($.backgroundImage){let k=[];for(let R=0;R<$.backgroundImage.length;R++){let c=$.backgroundImage[R],u=await gY({id:J+"_"+R,width:Z,height:X,left:Y,top:K},c,z);u&&k.unshift(u)}for(let R of k)O.push(`url(#${R[0]})`),V+=R[1],R[2]&&(M+=R[2])}let[N,E]=await WA({id:J,left:Y,top:K,width:Z,height:X},$,z);V+=E;let I=N?`url(#${N})`:$._inheritedMaskId?`url(#${$._inheritedMaskId})`:void 0,F=e8({left:Y,top:K,width:Z,height:X},$);F&&(H="path");let j=$._inheritedClipPathId;w&&(L=s("rect",{x:Y,y:K,width:Z,height:X,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:A||void 0,"clip-path":j?`url(#${j})`:void 0}));let{backgroundClip:T,filter:D}=$,C=T==="text"?`url(#satori_bct-${J})`:j?`url(#${j})`:$.clipPath?KA(J):void 0,h=XA({left:Y,top:K,width:Z,height:X,path:F,id:J,matrix:A,currentClipPath:C,src:W},$,z),d=O.map((k)=>s(H,{x:Y,y:K,width:Z,height:X,fill:k,d:F||void 0,transform:A||void 0,"clip-path":$.transform?void 0:C,style:D?`filter:${D}`:void 0,mask:$.transform?void 0:I})).join(""),r=eH({id:J,left:Y,top:K,width:Z,height:X,currentClipPathId:j,borderPath:F,borderType:H},$),l;if(U){let k=($.borderLeftWidth||0)+($.paddingLeft||0),R=($.borderTopWidth||0)+($.paddingTop||0),c=($.borderRightWidth||0)+($.paddingRight||0),u=($.borderBottomWidth||0)+($.paddingBottom||0),a=$.objectFit==="contain"?"xMidYMid":$.objectFit==="cover"?"xMidYMid slice":"none";$.transform&&(l=tH({id:J,borderRadiusPath:F,borderType:H,left:Y,top:K,width:Z,height:X},$)),d+=s("image",{x:Y+k,y:K+R,width:Z-k-c,height:X-R-u,href:W,preserveAspectRatio:a,transform:A||void 0,style:D?`filter:${D}`:void 0,"clip-path":$.transform?l?`url(#${l[1]})`:void 0:`url(#satori_cp-${J})`,mask:$.transform?void 0:N?`url(#${N})`:`url(#satori_om-${J})`})}if(r){V+=r[0];let k=r[1];d+=hY({left:Y,top:K,width:Z,height:X,props:{transform:A||void 0,"clip-path":`url(#${k})`}},$)}let P=RH({width:Z,height:X,id:J,opacity:B,shape:s(H,{x:Y,y:K,width:Z,height:X,fill:"#fff",stroke:"#fff","stroke-width":0,d:F||void 0,transform:A||void 0,"clip-path":C,mask:I})},$);return(V?s("defs",{},V):"")+(P?P[0]:"")+(l?l[0]:"")+h+(B!==1?`<g opacity="${B}">`:"")+($.transform&&(C||I)?`<g${C?` clip-path="${C}"`:""}${I?` mask="${I}"`:""}>`:"")+(M||d)+($.transform&&(C||I)?"</g>":"")+(B!==1?"</g>":"")+(P?P[1]:"")+L}var $A=()=>/[#*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,wA=new RegExp($A(),""),p9={emoji:wA,symbol:/\p{Symbol}/u,math:/\p{Math}/u},i9={"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},W4=Object.keys({...i9,...p9});function zA(J){return W4.includes(J)}function UA(J,Y){for(let Z of Object.keys(p9))if(p9[Z].test(J))return[Z];let K=Object.keys(i9).filter((Z)=>i9[Z].test(J));if(K.length===0)return["unknown"];if(Y){let Z=K.findIndex((X)=>X===Y);Z!==-1&&(K.splice(Z,1),K.unshift(Y))}return K}function HA(J){if(J)return W4.find((Y)=>Y.toLowerCase().startsWith(J.toLowerCase()))}async function*n9(J,Y){var K;let Z=await Z6(),{id:X,inheritedStyle:Q,parent:W,font:w,debug:$,locale:z,embedFont:U=!0,graphemeImages:H,canLoadAdditionalAssets:A,getTwStyles:V}=Y;if(J===null||typeof J>"u")return yield,yield,"";if(!n8(J)||typeof J.type=="function"){let y;if(!n8(J))y=bH(String(J),Y),yield(await y.next()).value;else{if(cU(J.type))throw Error("Class component is not supported.");y=n9(J.type(J.props),Y),yield(await y.next()).value}await y.next();let p=yield;return(await y.next(p)).value}let{type:O,props:B}=J;if(B&&dU(B))throw Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:L,children:M,tw:N,lang:E=z}=B||{},I=HA(E);if(N){let y=V(N,L);L=Object.assign(y,L)}let F=Z.Node.create();W.insertChild(F,W.getChildCount());let[j,T]=await jH(F,O,Q,L,B),D=j.transform===Q.transform;if(D||(j.transform.__parent=Q.transform),(j.overflow==="hidden"||j.clipPath&&j.clipPath!=="none")&&(T._inheritedClipPathId=`satori_cp-${X}`,T._inheritedMaskId=`satori_om-${X}`),j.maskImage&&(T._inheritedMaskId=`satori_mi-${X}`),j.backgroundClip==="text"){let y={value:""};T._inheritedBackgroundClipTextPath=y,j._inheritedBackgroundClipTextPath=y}let C=uU(M),h=[],d=0,r=[];for(let y of C){let p=n9(y,{id:X+"-"+d++,parentStyle:j,inheritedStyle:T,isInheritingTransform:!0,parent:F,font:w,embedFont:U,debug:$,graphemeImages:H,canLoadAdditionalAssets:A,locale:I,getTwStyles:V,onNodeDetected:Y.onNodeDetected});A?r.push(...(await p.next()).value||[]):await p.next(),h.push(p)}yield r;for(let y of h)await y.next();let[l,P]=yield,{left:k,top:R,width:c,height:u}=F.getComputedLayout();k+=l,R+=P;let a="",n="",m="",{children:x,...S}=B;if((K=Y.onNodeDetected)==null||K.call(Y,{left:k,top:R,width:c,height:u,type:O,props:S,key:J.key,textContent:n8(x)?void 0:x}),O==="img"){let y=j.__src;n=await g9({id:X,left:k,top:R,width:c,height:u,src:y,isInheritingTransform:D,debug:$},j,T)}else if(O==="svg"){let y=j.color,p=await WH(J,y);n=await g9({id:X,left:k,top:R,width:c,height:u,src:p,isInheritingTransform:D,debug:$},j,T)}else{let y=L==null?void 0:L.display;if(O==="div"&&M&&typeof M!="string"&&y!=="flex"&&y!=="none")throw Error('Expected <div> to have explicit "display: flex" or "display: none" if it has more than one child node.');n=await g9({id:X,left:k,top:R,width:c,height:u,isInheritingTransform:D,debug:$},j,T)}for(let y of h)a+=(await y.next([k,R])).value;return j._inheritedBackgroundClipTextPath&&(m+=s("clipPath",{id:`satori_bct-${X}`,"clip-path":j._inheritedClipPathId?`url(#${j._inheritedClipPathId})`:void 0},j._inheritedBackgroundClipTextPath.value)),m+n+a}var xY="unknown";function AA(J,Y,[K,Z],[X,Q]){if(K!==X)return K?!X||K===J?-1:X===J?1:J===400&&K===500||J===500&&K===400?-1:J===400&&X===500||J===500&&X===400?1:J<400?K<J&&X<J?X-K:K<J?-1:X<J?1:K-X:J<K&&J<X?K-X:J<K?-1:J<X?1:X-K:1;if(Z!==Q){if(Z===Y)return-1;if(Q===Y)return 1}return-1}var VA=class{constructor(J){this.fonts=new Map,this.addFonts(J)}get({name:J,weight:Y,style:K}){if(!this.fonts.has(J))return null;Y==="normal"&&(Y=400),Y==="bold"&&(Y=700),typeof Y=="string"&&(Y=Number.parseInt(Y,10));let Z=[...this.fonts.get(J)],X=Z[0];for(let Q=1;Q<Z.length;Q++){let[,W,w]=X,[,$,z]=Z[Q];AA(Y,K,[W,w],[$,z])>0&&(X=Z[Q])}return X[0]}addFonts(J){for(let Y of J){let{name:K,data:Z,lang:X}=Y;if(X&&!zA(X))throw Error(`Invalid value for props \`lang\`: "${X}". The value must be one of the following: ${W4.join(", ")}.`);let Q=X??xY,W=g8.parse("buffer"in Z?Z.buffer.slice(Z.byteOffset,Z.byteOffset+Z.byteLength):Z,{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 $=`${K.toLowerCase()}_${Q}`;this.fonts.has($)||this.fonts.set($,[]),this.fonts.get($).push([W,Y.weight,Y.style])}}getEngine(J=16,Y="normal",{fontFamily:K="sans-serif",fontWeight:Z=400,fontStyle:X="normal"},Q){if(!this.fonts.size)throw Error("No fonts are loaded. At least one font is required to calculate the layout.");K=(Array.isArray(K)?K:[K]).map((M)=>M.toLowerCase());let W=[];K.forEach((M)=>{let N=this.get({name:M,weight:Z,style:X});if(N){W.push(N);return}let E=this.get({name:M+"_unknown",weight:Z,style:X});if(E){W.push(E);return}});let w=Array.from(this.fonts.keys()),$=[],z=[],U=[];for(let M of w)if(!K.includes(M))if(Q){let N=BA(M);N?N===Q?$.push(this.get({name:M,weight:Z,style:X})):z.push(this.get({name:M,weight:Z,style:X})):U.push(this.get({name:M,weight:Z,style:X}))}else U.push(this.get({name:M,weight:Z,style:X}));let H=new Map,A=(M,N=!0)=>{let E=[...W,...U,...$,...N?z:[]];if(typeof M>"u")return N?E[E.length-1]:void 0;let I=M.charCodeAt(0);if(H.has(I))return H.get(I);let F=E.find((j,T)=>!!j.charToGlyphIndex(M)||N&&T===E.length-1);return F&&H.set(I,F),F},V=(M,N=!1)=>{var E,I;return((N?(I=(E=M.tables)==null?void 0:E.os2)==null?void 0:I.sTypoAscender:0)||M.ascender)/M.unitsPerEm*J},O=(M,N=!1)=>{var E,I;return((N?(I=(E=M.tables)==null?void 0:E.os2)==null?void 0:I.sTypoDescender:0)||M.descender)/M.unitsPerEm*J},B=(M,N=!1)=>{var E,I;if(typeof Y=="string"&&Y==="normal"){let F=(N?(I=(E=M.tables)==null?void 0:E.os2)==null?void 0:I.sTypoLineGap:0)||0;return V(M,N)-O(M,N)+F/M.unitsPerEm*J}else if(typeof Y=="number")return J*Y},L=(M)=>A(M,!1);return{has:(M)=>{if(M===`
|
|
66
|
-
`)return!0;let N=L(M);return N?(N._trackBrokenChars=[],N.stringToGlyphs(M),N._trackBrokenChars.length?(N._trackBrokenChars=void 0,!1):!0):!1},baseline:(M,N=typeof M>"u"?W[0]:A(M))=>{let E=V(N),I=O(N),F=E-I;return E+(B(N)-F)/2},height:(M,N=typeof M>"u"?W[0]:A(M))=>B(N),measure:(M,N)=>this.measure(A,M,N),getSVG:(M,N)=>this.getSVG(A,M,N)}}patchFontFallbackResolver(J,Y){let K=[];J._trackBrokenChars=K;let Z=J.stringToGlyphs;return J.stringToGlyphs=(X,...Q)=>{let W=Z.call(J,X,...Q);for(let w=0;w<W.length;w++)if(W[w].unicode===void 0){let $=K.shift(),z=Y($);if(z!==J){let U=z.charToGlyph($),H=J.unitsPerEm/z.unitsPerEm,A=new g8.Path;A.unitsPerEm=J.unitsPerEm,A.commands=U.path.commands.map((O)=>{let B={...O};for(let L in B)typeof B[L]=="number"&&(B[L]*=H);return B});let V=new g8.Glyph({...U,advanceWidth:U.advanceWidth*H,xMin:U.xMin*H,xMax:U.xMax*H,yMin:U.yMin*H,yMax:U.yMax*H,path:A});W[w]=V}}return W},()=>{J.stringToGlyphs=Z,J._trackBrokenChars=void 0}}measure(J,Y,{fontSize:K,letterSpacing:Z=0}){let X=J(Y),Q=this.patchFontFallbackResolver(X,J);try{return X.getAdvanceWidth(Y,K,{letterSpacing:Z/K})}finally{Q()}}getSVG(J,Y,{fontSize:K,top:Z,left:X,letterSpacing:Q=0}){let W=J(Y),w=this.patchFontFallbackResolver(W,J);try{return K===0?"":W.getPath(Y.replace(/\n/g,""),X,Z,K,{letterSpacing:Q/K}).toPathData(1)}finally{w()}}};function BA(J){let Y=J.split("_"),K=Y[Y.length-1];return K===xY?void 0:K}function GA({width:J,height:Y,content:K}){return s("svg",{width:J,height:Y,viewBox:`0 0 ${J} ${Y}`,xmlns:"http://www.w3.org/2000/svg"},K)}var LA=nz(TU()),OA=["ios","android","windows","macos","web"];function qA(J){return OA.includes(J)}var MA=["portrait","landscape"];function NA(J){return MA.includes(J)}var kJ;(function(J){J.fontSize="fontSize",J.lineHeight="lineHeight"})(kJ||(kJ={}));var M0;(function(J){J.rem="rem",J.em="em",J.px="px",J.percent="%",J.vw="vw",J.vh="vh",J.none="<no-css-unit>"})(M0||(M0={}));function yJ(J){return typeof J=="string"}function gJ(J){return typeof J=="object"}var h9;function b(J){return{kind:"complete",style:J}}function X1(J,Y={}){let{fractions:K}=Y;if(K&&J.includes("/")){let[Q="",W=""]=J.split("/",2),w=X1(Q),$=X1(W);return!w||!$?null:[w[0]/$[0],$[1]]}let Z=parseFloat(J);if(Number.isNaN(Z))return null;let X=J.match(/(([a-z]{2,}|%))$/);if(!X)return[Z,M0.none];switch(X==null?void 0:X[1]){case"rem":return[Z,M0.rem];case"px":return[Z,M0.px];case"em":return[Z,M0.em];case"%":return[Z,M0.percent];case"vw":return[Z,M0.vw];case"vh":return[Z,M0.vh];default:return null}}function Q8(J,Y,K={}){let Z=W5(Y,K);return Z===null?null:b({[J]:Z})}function x9(J,Y,K){let Z=W5(Y);return Z!==null&&(K[J]=Z),K}function jA(J,Y){let K=W5(Y);return K===null?null:{[J]:K}}function W5(J,Y={}){if(J===void 0)return null;let K=X1(String(J),Y);return K?W8(...K,Y):null}function W8(J,Y,K={}){let{isNegative:Z,device:X}=K;switch(Y){case M0.rem:return J*16*(Z?-1:1);case M0.px:return J*(Z?-1:1);case M0.percent:return`${Z?"-":""}${J}%`;case M0.none:return J*(Z?-1:1);case M0.vw:return X!=null&&X.windowDimensions?X.windowDimensions.width*(J/100):(k1("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case M0.vh:return X!=null&&X.windowDimensions?X.windowDimensions.height*(J/100):(k1("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function hJ(J){let Y=X1(J);if(!Y)return null;let[K,Z]=Y;switch(Z){case M0.rem:return K*16;case M0.px:return K;default:return null}}var EA={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function bY(J){return EA[J??""]||"All"}function fY(J){let Y="All";return[J.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(K,Z)=>(Y=bY(Z),"")),Y]}function w6(J,Y={}){if(J.includes("/")){let K=xJ(J,{...Y,fractions:!0});if(K)return K}return J[0]==="["&&(J=J.slice(1,-1)),xJ(J,Y)}function $5(J,Y,K={}){let Z=w6(Y,K);return Z===null?null:b({[J]:Z})}function xJ(J,Y={}){if(J==="px")return 1;let K=X1(J,Y);if(!K)return null;let[Z,X]=K;return Y.fractions&&(X=M0.percent,Z*=100),X===M0.none&&(Z=Z/4,X=M0.rem),W8(Z,X,Y)}function FA(...J){console.warn(...J)}function _A(...J){}var k1=typeof process>"u"||((h9=process==null?void 0:process.env)===null||h9===void 0?void 0:h9.JEST_WORKER_ID)===void 0?FA:_A,IA=[["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",e5("oldstyle-nums")],["small-caps",e5("small-caps")],["lining-nums",e5("lining-nums")],["tabular-nums",e5("tabular-nums")],["proportional-nums",e5("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=IA;function e5(J){return{kind:"dependent",complete(Y){(!Y.fontVariant||!Array.isArray(Y.fontVariant))&&(Y.fontVariant=[]),Y.fontVariant.push(J)}}}var DA=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,Y){this.styles.set(J,Y)}getIr(J){return this.ir.get(J)}setIr(J,Y){this.ir.set(J,Y)}getPrefixMatch(J){return this.prefixes.get(J)}setPrefixMatch(J,Y){this.prefixes.set(J,Y)}};function RA(J,Y,K={}){let Z=Y==null?void 0:Y[J];if(!Z)return $5("fontSize",J,K);if(typeof Z=="string")return Q8("fontSize",Z);let X={},[Q,W]=Z,w=jA("fontSize",Q);if(w&&(X=w),typeof W=="string")return b(x9("lineHeight",fJ(W,X),X));let{lineHeight:$,letterSpacing:z}=W;return $&&x9("lineHeight",fJ($,X),X),z&&x9("letterSpacing",z,X),b(X)}function fJ(J,Y){let K=X1(J);if(K){let[Z,X]=K;if((X===M0.none||X===M0.em)&&typeof Y.fontSize=="number")return Y.fontSize*Z}return J}function CA(J,Y){var K;let Z=(K=Y==null?void 0:Y[J])!==null&&K!==void 0?K:J.startsWith("[")?J.slice(1,-1):J,X=X1(Z);if(!X)return null;let[Q,W]=X;if(W===M0.none)return{kind:"dependent",complete($){if(typeof $.fontSize!="number")return"relative line-height utilities require that font-size be set";$.lineHeight=$.fontSize*Q}};let w=W8(Q,W);return w!==null?b({lineHeight:w}):null}function TA(J,Y,K,Z,X){let Q="";if(Z[0]==="[")Q=Z.slice(1,-1);else{let z=X==null?void 0:X[Z];if(z)Q=z;else{let U=w6(Z);return U&&typeof U=="number"?mJ(U,M0.px,Y,J):null}}if(Q==="auto")return mY(Y,J,"auto");let W=X1(Q);if(!W)return null;let[w,$]=W;return K&&(w=-w),mJ(w,$,Y,J)}function mJ(J,Y,K,Z){let X=W8(J,Y);return X===null?null:mY(K,Z,X)}function mY(J,Y,K){switch(J){case"All":return{kind:"complete",style:{[`${Y}Top`]:K,[`${Y}Right`]:K,[`${Y}Bottom`]:K,[`${Y}Left`]:K}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${Y}${J}`]:K}};case"Vertical":return{kind:"complete",style:{[`${Y}Top`]:K,[`${Y}Bottom`]:K}};case"Horizontal":return{kind:"complete",style:{[`${Y}Left`]:K,[`${Y}Right`]:K}};default:return null}}function PA(J){if(!J)return{};let Y=Object.entries(J).reduce((X,[Q,W])=>{let w=[0,1/0,0],$=typeof W=="string"?{min:W}:W,z=$.min?hJ($.min):0;z===null?k1(`invalid screen config value: ${Q}->min: ${$.min}`):w[0]=z;let U=$.max?hJ($.max):1/0;return U===null?k1(`invalid screen config value: ${Q}->max: ${$.max}`):w[1]=U,X[Q]=w,X},{}),K=Object.values(Y);K.sort((X,Q)=>{let[W,w]=X,[$,z]=Q;return w===1/0||z===1/0?W-$:w-z});let Z=0;return K.forEach((X)=>X[2]=Z++),Y}function SA(J,Y){let K=Y==null?void 0:Y[J];if(!K)return null;if(typeof K=="string")return b({fontFamily:K});let Z=K[0];return Z?b({fontFamily:Z}):null}function Y8(J,Y,K){if(!K)return null;let Z;Y.includes("/")&&([Y="",Z]=Y.split("/",2));let X="";if(Y.startsWith("[#")||Y.startsWith("[rgb")?X=Y.slice(1,-1):X=cY(Y,K),!X)return null;if(Z){let Q=Number(Z);if(!Number.isNaN(Q))return X=cJ(X,Q/100),b({[a8[J].color]:X})}return{kind:"dependent",complete(Q){let W=a8[J].opacity,w=Q[W];typeof w=="number"&&(X=cJ(X,w)),Q[a8[J].color]=X}}}function u8(J,Y){let K=parseInt(Y,10);if(Number.isNaN(K))return null;let Z=K/100;return{kind:"complete",style:{[a8[J].opacity]:Z}}}function cJ(J,Y){return J.startsWith("#")?J=kA(J):J.startsWith("rgb(")&&(J=J.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),J.replace(/, ?\d*\.?(\d+)\)$/,`, ${Y})`)}function vA(J){for(let Y in J)Y.startsWith("__opacity_")&&delete J[Y]}var a8={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 kA(J){let Y=J;J=J.replace(yA,(W,w,$,z)=>w+w+$+$+z+z);let K=gA.exec(J);if(!K)return k1(`invalid config hex color value: ${Y}`),"rgba(0, 0, 0, 1)";let Z=parseInt(K[1],16),X=parseInt(K[2],16),Q=parseInt(K[3],16);return`rgba(${Z}, ${X}, ${Q}, 1)`}function cY(J,Y){let K=Y[J];if(yJ(K))return K;if(gJ(K)&&yJ(K.DEFAULT))return K.DEFAULT;let[Z="",...X]=J.split("-");for(;Z!==J;){let Q=Y[Z];if(gJ(Q))return cY(X.join("-"),Q);if(X.length===0)return"";Z=`${Z}-${X.shift()}`}return""}var yA=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,gA=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function hA(J,Y){let[K,Z]=fY(J);if(K.match(/^(-?(\d)+)?$/))return xA(K,Z,Y==null?void 0:Y.borderWidth);if(K=K.replace(/^-/,""),["dashed","solid","dotted"].includes(K))return b({borderStyle:K});let X="border";switch(Z){case"Bottom":X="borderBottom";break;case"Top":X="borderTop";break;case"Left":X="borderLeft";break;case"Right":X="borderRight";break}let Q=Y8(X,K,Y==null?void 0:Y.borderColor);if(Q)return Q;let W=`border${Z==="All"?"":Z}Width`;K=K.replace(/^-/,"");let w=K.slice(1,-1),$=$5(W,w);return typeof($==null?void 0:$.style[W])!="number"?null:$}function xA(J,Y,K){if(!K)return null;J=J.replace(/^-/,"");let Z=K[J===""?"DEFAULT":J];if(Z===void 0)return null;let X=`border${Y==="All"?"":Y}Width`;return Q8(X,Z)}function bA(J,Y){if(!Y)return null;let[K,Z]=fY(J);K=K.replace(/^-/,""),K===""&&(K="DEFAULT");let X=`border${Z==="All"?"":Z}Radius`,Q=Y[K];if(Q)return dJ(Q8(X,Q));let W=$5(X,K);return typeof(W==null?void 0:W.style[X])!="number"?null:dJ(W)}function dJ(J){if((J==null?void 0:J.kind)!=="complete")return J;let Y=J.style.borderTopRadius;Y!==void 0&&(J.style.borderTopLeftRadius=Y,J.style.borderTopRightRadius=Y,delete J.style.borderTopRadius);let K=J.style.borderBottomRadius;K!==void 0&&(J.style.borderBottomLeftRadius=K,J.style.borderBottomRightRadius=K,delete J.style.borderBottomRadius);let Z=J.style.borderLeftRadius;Z!==void 0&&(J.style.borderBottomLeftRadius=Z,J.style.borderTopLeftRadius=Z,delete J.style.borderLeftRadius);let X=J.style.borderRightRadius;return X!==void 0&&(J.style.borderBottomRightRadius=X,J.style.borderTopRightRadius=X,delete J.style.borderRightRadius),J}function J8(J,Y,K,Z){let X=null;J==="inset"&&(Y=Y.replace(/^(x|y)-/,(w,$)=>(X=$==="x"?"x":"y","")));let Q=Z==null?void 0:Z[Y];if(Q){let w=W5(Q,{isNegative:K});if(w!==null)return uJ(J,X,w)}let W=w6(Y,{isNegative:K});return W!==null?uJ(J,X,W):null}function uJ(J,Y,K){if(J!=="inset")return b({[J]:K});switch(Y){case null:return b({top:K,left:K,right:K,bottom:K});case"y":return b({top:K,bottom:K});case"x":return b({left:K,right:K})}}function l8(J,Y,K){var Z;Y=Y.replace(/^-/,"");let X=Y===""?"DEFAULT":Y,Q=Number((Z=K==null?void 0:K[X])!==null&&Z!==void 0?Z:Y);return Number.isNaN(Q)?null:b({[`flex${J}`]:Q})}function fA(J,Y){var K,Z;if(J=(Y==null?void 0:Y[J])||J,["min-content","revert","unset"].includes(J))return null;if(J.match(/^\d+(\.\d+)?$/))return b({flexGrow:Number(J),flexBasis:"0%"});let X=J.match(/^(\d+)\s+(\d+)$/);if(X)return b({flexGrow:Number(X[1]),flexShrink:Number(X[2])});if(X=J.match(/^(\d+)\s+([^ ]+)$/),X){let Q=W5((K=X[2])!==null&&K!==void 0?K:"");return Q?b({flexGrow:Number(X[1]),flexBasis:Q}):null}if(X=J.match(/^(\d+)\s+(\d+)\s+(.+)$/),X){let Q=W5((Z=X[3])!==null&&Z!==void 0?Z:"");return Q?b({flexGrow:Number(X[1]),flexShrink:Number(X[2]),flexBasis:Q}):null}return null}function lJ(J,Y,K={},Z){let X=Z==null?void 0:Z[Y];return X!==void 0?Q8(J,X,K):$5(J,Y,K)}function p8(J,Y,K={},Z){let X=W5(Z==null?void 0:Z[Y],K);return X?b({[J]:X}):(Y==="screen"&&(Y=J.includes("Width")?"100vw":"100vh"),$5(J,Y,K))}function mA(J,Y,K){let Z=K==null?void 0:K[J];if(Z){let X=X1(Z,{isNegative:Y});if(!X)return null;let[Q,W]=X;if(W===M0.em)return cA(Q);if(W===M0.percent)return k1("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=W8(Q,W,{isNegative:Y});return w!==null?b({letterSpacing:w}):null}return $5("letterSpacing",J,{isNegative:Y})}function cA(J){return{kind:"dependent",complete(Y){let K=Y.fontSize;if(typeof K!="number"||Number.isNaN(K))return"tracking-X relative letter spacing classes require font-size to be set";Y.letterSpacing=Math.round((J*K+Number.EPSILON)*100)/100}}}function dA(J,Y){let K=Y==null?void 0:Y[J];if(K){let X=X1(String(K));if(X)return b({opacity:X[0]})}let Z=X1(J);return Z?b({opacity:Z[0]/100}):null}function uA(J){let Y=parseInt(J,10);return Number.isNaN(Y)?null:{kind:"complete",style:{shadowOpacity:Y/100}}}function lA(J){if(J.includes("/")){let[K="",Z=""]=J.split("/",2),X=b9(K),Q=b9(Z);return X===null||Q===null?null:{kind:"complete",style:{shadowOffset:{width:X,height:Q}}}}let Y=b9(J);return Y===null?null:{kind:"complete",style:{shadowOffset:{width:Y,height:Y}}}}function b9(J){let Y=w6(J);return typeof Y=="number"?Y:null}var pJ=class{constructor(J,Y={},K,Z,X){var Q,W,w,$,z,U;this.config=Y,this.cache=K,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=Z;let H=J.trim().split(":"),A=[];H.length===1?this.string=J:(this.string=(Q=H.pop())!==null&&Q!==void 0?Q:"",A=H),this.char=this.string[0];let V=PA((W=this.config.theme)===null||W===void 0?void 0:W.screens);for(let O of A)if(V[O]){let B=(w=V[O])===null||w===void 0?void 0:w[2];B!==void 0&&(this.order=(($=this.order)!==null&&$!==void 0?$:0)+B);let L=(z=Z.windowDimensions)===null||z===void 0?void 0:z.width;if(L){let[M,N]=(U=V[O])!==null&&U!==void 0?U:[0,0];(L<=M||L>N)&&(this.isNull=!0)}else this.isNull=!0}else qA(O)?this.isNull=O!==X:NA(O)?Z.windowDimensions?(Z.windowDimensions.width>Z.windowDimensions.height?"landscape":"portrait")!==O?this.isNull=!0:this.incrementOrder():this.isNull=!0:O==="retina"?Z.pixelDensity===2?this.incrementOrder():this.isNull=!0:O==="dark"?Z.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(O)||(this.isNull=!0)}parse(){if(this.isNull)return{kind:"null"};let J=this.cache.getIr(this.rest);if(J)return J;this.parseIsNegative();let Y=this.parseUtility();return Y?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:Y}:Y:{kind:"null"}}parseUtility(){var J,Y,K,Z,X;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 $=this.char==="m"?"margin":"padding";this.advance(((Y=(J=w[0])===null||J===void 0?void 0:J.length)!==null&&Y!==void 0?Y:0)+1);let z=bY(w[1]),U=TA($,z,this.isNegative,this.rest,(K=this.config.theme)===null||K===void 0?void 0:K[$]);if(U)return U}}}if(this.consumePeeked("h-")&&(W=lJ("height",this.rest,this.context,Q==null?void 0:Q.height),W)||this.consumePeeked("w-")&&(W=lJ("width",this.rest,this.context,Q==null?void 0:Q.width),W)||this.consumePeeked("min-w-")&&(W=p8("minWidth",this.rest,this.context,Q==null?void 0:Q.minWidth),W)||this.consumePeeked("min-h-")&&(W=p8("minHeight",this.rest,this.context,Q==null?void 0:Q.minHeight),W)||this.consumePeeked("max-w-")&&(W=p8("maxWidth",this.rest,this.context,Q==null?void 0:Q.maxWidth),W)||this.consumePeeked("max-h-")&&(W=p8("maxHeight",this.rest,this.context,Q==null?void 0:Q.maxHeight),W)||this.consumePeeked("leading-")&&(W=CA(this.rest,Q==null?void 0:Q.lineHeight),W)||this.consumePeeked("text-")&&(W=RA(this.rest,Q==null?void 0:Q.fontSize,this.context),W||(W=Y8("text",this.rest,Q==null?void 0:Q.textColor),W)||this.consumePeeked("opacity-")&&(W=u8("text",this.rest),W))||this.consumePeeked("font-")&&(W=SA(this.rest,Q==null?void 0:Q.fontFamily),W)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&k1("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),W=Q8("aspectRatio",this.rest,{fractions:!0}),W)||this.consumePeeked("tint-")&&(W=Y8("tint",this.rest,Q==null?void 0:Q.colors),W)||this.consumePeeked("bg-")&&(W=Y8("bg",this.rest,Q==null?void 0:Q.backgroundColor),W||this.consumePeeked("opacity-")&&(W=u8("bg",this.rest),W))||this.consumePeeked("border")&&(W=hA(this.rest,Q),W||this.consumePeeked("-opacity-")&&(W=u8("border",this.rest),W))||this.consumePeeked("rounded")&&(W=bA(this.rest,Q==null?void 0:Q.borderRadius),W)||this.consumePeeked("bottom-")&&(W=J8("bottom",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("top-")&&(W=J8("top",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("left-")&&(W=J8("left",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("right-")&&(W=J8("right",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("inset-")&&(W=J8("inset",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?W=l8("Grow",this.rest,Q==null?void 0:Q.flexGrow):this.consumePeeked("shrink")?W=l8("Shrink",this.rest,Q==null?void 0:Q.flexShrink):W=fA(this.rest,Q==null?void 0:Q.flex),W)||this.consumePeeked("grow")&&(W=l8("Grow",this.rest,Q==null?void 0:Q.flexGrow),W)||this.consumePeeked("shrink")&&(W=l8("Shrink",this.rest,Q==null?void 0:Q.flexShrink),W)||this.consumePeeked("shadow-color-opacity-")&&(W=u8("shadow",this.rest),W)||this.consumePeeked("shadow-opacity-")&&(W=uA(this.rest),W)||this.consumePeeked("shadow-offset-")&&(W=lA(this.rest),W)||this.consumePeeked("shadow-radius-")&&(W=$5("shadowRadius",this.rest),W)||this.consumePeeked("shadow-")&&(W=Y8("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=dA(this.rest,Q==null?void 0:Q.opacity),W)||this.consumePeeked("tracking-")&&(W=mA(this.rest,this.isNegative,Q==null?void 0:Q.letterSpacing),W))return W;if(this.consumePeeked("z-")){let w=Number((X=(Z=Q==null?void 0:Q.zIndex)===null||Z===void 0?void 0:Z[this.rest])!==null&&X!==void 0?X:this.rest);if(!Number.isNaN(w))return b({zIndex:w})}return k1(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(J){var Y;if(J[0]!=="m")return!1;let K=J.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!K)return!1;if(!(!((Y=this.context.device)===null||Y===void 0)&&Y.windowDimensions))return this.isNull=!0,!0;let Z=this.context.device.windowDimensions,[,X="",Q="",W=""]=K,w=Q==="w"?Z.width:Z.height,$=X1(W,this.context);if($===null)return this.isNull=!0,!0;let[z,U]=$;return U!=="px"&&(this.isNull=!0),(X==="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,Y){return this.string.slice(this.position+J,this.position+Y)}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 pA(J){let Y=[],K=null;return J.forEach((Z)=>{if(typeof Z=="string")Y=[...Y,...f9(Z)];else if(Array.isArray(Z))Y=[...Y,...Z.flatMap(f9)];else if(typeof Z=="object"&&Z!==null)for(let[X,Q]of Object.entries(Z))typeof Q=="boolean"?Y=[...Y,...Q?f9(X):[]]:K?K[X]=Q:K={[X]:Q}}),[Y.filter(Boolean).filter(iA),K]}function f9(J){return J.trim().split(/\s+/)}function iA(J,Y,K){return K.indexOf(J)===Y}function nA(J){var Y;return(Y=J==null?void 0:J.reduce((K,Z)=>({...K,...oA(Z.handler)}),{}))!==null&&Y!==void 0?Y:{}}function oA(J){let Y={};return J({addUtilities:(K)=>{Y=K},...rA}),Y}function D1(J){throw Error(`tailwindcss plugin function argument object prop "${J}" not implemented`)}var rA={addComponents:D1,addBase:D1,addVariant:D1,e:D1,prefix:D1,theme:D1,variants:D1,config:D1,corePlugins:D1,matchUtilities:D1,postcss:null};function sA(J,Y){let K=(0,LA.default)(aA(J)),Z={},X=nA(K.plugins),Q={},W=Object.entries(X).map(([O,B])=>typeof B=="string"?(Q[O]=B,[O,{kind:"null"}]):[O,b(B)]).filter(([,O])=>O.kind!=="null");function w(){return[Z.windowDimensions?`w${Z.windowDimensions.width}`:!1,Z.windowDimensions?`h${Z.windowDimensions.height}`:!1,Z.fontScale?`fs${Z.fontScale}`:!1,Z.colorScheme==="dark"?"dark":!1,Z.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let $=w(),z={};function U(){let O=z[$];if(O)return O;let B=new DA(W);return z[$]=B,B}function H(...O){let B=U(),L={},M=[],N=[],[E,I]=pA(O),F=E.join(" "),j=B.getStyle(F);if(j)return{...j,...I||{}};for(let T of E){let D=B.getIr(T);if(!D&&T in Q){let C=H(Q[T]);B.setIr(T,b(C)),L={...L,...C};continue}switch(D=new pJ(T,K,B,Z,Y).parse(),D.kind){case"complete":L={...L,...D.style},B.setIr(T,D);break;case"dependent":M.push(D);break;case"ordered":N.push(D);break;case"null":B.setIr(T,D);break}}if(N.length>0){N.sort((T,D)=>T.order-D.order);for(let T of N)switch(T.styleIr.kind){case"complete":L={...L,...T.styleIr.style};break;case"dependent":M.push(T.styleIr);break}}if(M.length>0){for(let T of M){let D=T.complete(L);D&&k1(D)}vA(L)}return F!==""&&B.setStyle(F,L),I&&(L={...L,...I}),L}function A(O){let B=H(O.split(/\s+/g).map((L)=>L.replace(/^(bg|text|border)-/,"")).map((L)=>`bg-${L}`).join(" "));return typeof B.backgroundColor=="string"?B.backgroundColor:void 0}let V=(O,...B)=>{let L="";return O.forEach((M,N)=>{var E;L+=M+((E=B[N])!==null&&E!==void 0?E:"")}),H(L)};return V.style=H,V.color=A,V.prefixMatch=(...O)=>{let B=O.sort().join(":"),L=U(),M=L.getPrefixMatch(B);if(M!==void 0)return M;let N=new pJ(`${B}:flex`,K,L,Z,Y).parse().kind!=="null";return L.setPrefixMatch(B,N),N},V.setWindowDimensions=(O)=>{Z.windowDimensions=O,$=w()},V.setFontScale=(O)=>{Z.fontScale=O,$=w()},V.setPixelDensity=(O)=>{Z.pixelDensity=O,$=w()},V.setColorScheme=(O)=>{Z.colorScheme=O,$=w()},V}function aA(J){return{...J,content:["_no_warnings_please"]}}var tA={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 eA(J){return sA({...J,plugins:[...(J==null?void 0:J.plugins)??[],tA]},"web")}var i8;function JV({width:J,height:Y,config:K}){return i8||(i8=eA(K)),i8.setWindowDimensions({width:+J,height:+Y}),i8}var m9=new WeakMap;async function dY(J,Y){let K=await Z6();if(!K||!K.Node)throw Error("Satori is not initialized: expect `yoga` to be loaded, got "+K);Y.fonts=Y.fonts||[];let Z;m9.has(Y.fonts)?Z=m9.get(Y.fonts):m9.set(Y.fonts,Z=new VA(Y.fonts));let X="width"in Y?Y.width:void 0,Q="height"in Y?Y.height:void 0,W=K.Node.create();X&&W.setWidth(X),Q&&W.setHeight(Q),W.setFlexDirection(K.FLEX_DIRECTION_ROW),W.setFlexWrap(K.WRAP_WRAP),W.setAlignContent(K.ALIGN_AUTO),W.setAlignItems(K.ALIGN_FLEX_START),W.setJustifyContent(K.JUSTIFY_FLEX_START),W.setOverflow(K.OVERFLOW_HIDDEN);let w={...Y.graphemeImages},$=new Set;o1.clear(),r8.clear(),await QH(J);let z=n9(J,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:"normal",color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:X,_viewportHeight:Q},parent:W,font:Z,embedFont:Y.embedFont,debug:Y.debug,graphemeImages:w,canLoadAdditionalAssets:!!Y.loadAdditionalAsset,onNodeDetected:Y.onNodeDetected,getTwStyles:(O,B)=>{let L={...JV({width:X,height:Q,config:Y.tailwindConfig})([O])};return typeof L.lineHeight=="number"&&(L.lineHeight=L.lineHeight/(+L.fontSize||B.fontSize||16)),L.shadowColor&&L.boxShadow&&(L.boxShadow=L.boxShadow.replace(/rgba?\([^)]+\)/,L.shadowColor)),L}}),U=(await z.next()).value;if(Y.loadAdditionalAsset&&U.length){let O=YV(U),B=[],L={};await Promise.all(Object.entries(O).flatMap(([M,N])=>N.map((E)=>{let I=`${M}_${E}`;return $.has(I)?null:($.add(I),Y.loadAdditionalAsset(M,E).then((F)=>{typeof F=="string"?L[E]=F:F&&(Array.isArray(F)?B.push(...F):B.push(F))}))}))),Z.addFonts(B),Object.assign(w,L)}await z.next(),W.calculateLayout(X,Q,K.DIRECTION_LTR);let H=(await z.next([0,0])).value,A=W.getComputedWidth(),V=W.getComputedHeight();return W.freeRecursive(),GA({width:A,height:V,content:H})}function YV(J){let Y={},K={};for(let{word:Z,locale:X}of J){let Q=UA(Z,X).join("|");K[Q]=K[Q]||"",K[Q]+=Z}return Object.keys(K).forEach((Z)=>{Y[Z]=Y[Z]||[],Z==="emoji"?Y[Z].push(...iJ(O1(K[Z],"grapheme"))):(Y[Z][0]=Y[Z][0]||"",Y[Z][0]+=iJ(O1(K[Z],"grapheme",Z==="unknown"?void 0:Z)).join(""))}),Y}function iJ(J){return Array.from(new Set(J))}import jV from"sharp";function z6(J){return J.replace(/\([^)]*\)/g,"").replace(/\/\//g,"/")}function $4(J,Y){if(J==="/")return Y;if(Y==="/")return J;return`${J}${Y}`}function w4(J){let Y=z6(J);return Y.length>1?Y.replace(/\/$/,""):Y}function uY(J,Y){return Y.map((K)=>({...K,path:w4($4(J,K.path))}))}function U6(J){let Y={};for(let[K,Z]of Object.entries(J))if("run"in Z){let X=Z;if("children"in X){let Q=new X.children,W=U6(Q.routes);for(let[w,{exec:$,middleware:z,segments:U}]of Object.entries(W)){let H=$4(K,w),A=(V)=>X.run.call(X,V,K);Y[z6(H)]={exec:[A,...$],middleware:[...X.middlewares,...z],viewPath:X.viewPath,segments:[{path:w4(K),viewPath:X.viewPath,...X.alwaysRuns?{alwaysRun:!0}:{}},...uY(K,U)]}}}else{let Q=(W)=>X.run.call(X,W,K);Y[z6(K)]={exec:[Q],middleware:X.middlewares,viewPath:X.viewPath,segments:[{path:w4(K),viewPath:X.viewPath}]}}}else{let X=new Z,Q=U6(X.routes);for(let[W,{exec:w,middleware:$,viewPath:z,segments:U}]of Object.entries(Q)){let H=$4(K,W);Y[z6(H)]={exec:w,middleware:[...X.middlewares,...$],viewPath:z,segments:uY(K,U)}}}return Object.fromEntries(Object.entries(Y).sort(([K],[Z])=>{let X=K.split("/").length+K.split(":").length,Q=Z.split("/").length+Z.split(":").length;return X-Q}))}var KV=Object.defineProperty,J0=(J,Y)=>KV(J,"name",{value:Y,configurable:!0}),D5=class{type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(J,Y,K,Z,X,Q){this.type=J,this.name=Y,this.prefix=K,this.value=Z,this.suffix=X,this.modifier=Q}hasCustomName(){return this.name!==""&&typeof this.name!="number"}};J0(D5,"Part");var ZV=/[$_\p{ID_Start}]/u,XV=/[$_\u200C\u200D\p{ID_Continue}]/u,U4=".*";function lY(J,Y){return(Y?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(J)}J0(lY,"isASCII");function V4(J,Y=!1){let K=[],Z=0;for(;Z<J.length;){let X=J[Z],Q=J0(function(W){if(!Y)throw TypeError(W);K.push({type:"INVALID_CHAR",index:Z,value:J[Z++]})},"ErrorOrInvalid");if(X==="*"){K.push({type:"ASTERISK",index:Z,value:J[Z++]});continue}if(X==="+"||X==="?"){K.push({type:"OTHER_MODIFIER",index:Z,value:J[Z++]});continue}if(X==="\\"){K.push({type:"ESCAPED_CHAR",index:Z++,value:J[Z++]});continue}if(X==="{"){K.push({type:"OPEN",index:Z,value:J[Z++]});continue}if(X==="}"){K.push({type:"CLOSE",index:Z,value:J[Z++]});continue}if(X===":"){let W="",w=Z+1;for(;w<J.length;){let $=J.substr(w,1);if(w===Z+1&&ZV.test($)||w!==Z+1&&XV.test($)){W+=J[w++];continue}break}if(!W){Q(`Missing parameter name at ${Z}`);continue}K.push({type:"NAME",index:Z,value:W}),Z=w;continue}if(X==="("){let W=1,w="",$=Z+1,z=!1;if(J[$]==="?"){Q(`Pattern cannot start with "?" at ${$}`);continue}for(;$<J.length;){if(!lY(J[$],!1)){Q(`Invalid character '${J[$]}' at ${$}.`),z=!0;break}if(J[$]==="\\"){w+=J[$++]+J[$++];continue}if(J[$]===")"){if(W--,W===0){$++;break}}else if(J[$]==="("&&(W++,J[$+1]!=="?")){Q(`Capturing groups are not allowed at ${$}`),z=!0;break}w+=J[$++]}if(z)continue;if(W){Q(`Unbalanced pattern at ${Z}`);continue}if(!w){Q(`Missing pattern at ${Z}`);continue}K.push({type:"REGEX",index:Z,value:w}),Z=$;continue}K.push({type:"CHAR",index:Z,value:J[Z++]})}return K.push({type:"END",index:Z,value:""}),K}J0(V4,"lexer");function B4(J,Y={}){let K=V4(J);Y.delimiter??="/#?",Y.prefixes??="./";let Z=`[^${t0(Y.delimiter)}]+?`,X=[],Q=0,W=0,w="",$=new Set,z=J0((E)=>{if(W<K.length&&K[W].type===E)return K[W++].value},"tryConsume"),U=J0(()=>z("OTHER_MODIFIER")??z("ASTERISK"),"tryConsumeModifier"),H=J0((E)=>{let I=z(E);if(I!==void 0)return I;let{type:F,index:j}=K[W];throw TypeError(`Unexpected ${F} at ${j}, expected ${E}`)},"mustConsume"),A=J0(()=>{let E="",I;for(;I=z("CHAR")??z("ESCAPED_CHAR");)E+=I;return E},"consumeText"),V=J0((E)=>E,"DefaultEncodePart"),O=Y.encodePart||V,B="",L=J0((E)=>{B+=E},"appendToPendingFixedValue"),M=J0(()=>{B.length&&(X.push(new D5(3,"","",O(B),"",3)),B="")},"maybeAddPartFromPendingFixedValue"),N=J0((E,I,F,j,T)=>{let D=3;switch(T){case"?":D=1;break;case"*":D=0;break;case"+":D=2;break}if(!I&&!F&&D===3){L(E);return}if(M(),!I&&!F){if(!E)return;X.push(new D5(3,"","",O(E),"",D));return}let C;F?F==="*"?C=U4:C=F:C=Z;let h=2;C===Z?(h=1,C=""):C===U4&&(h=0,C="");let d;if(I?d=I:F&&(d=Q++),$.has(d))throw TypeError(`Duplicate name '${d}'.`);$.add(d),X.push(new D5(h,d,O(E),C,O(j),D))},"addPart");for(;W<K.length;){let E=z("CHAR"),I=z("NAME"),F=z("REGEX");if(!I&&!F&&(F=z("ASTERISK")),I||F){let T=E??"";Y.prefixes.indexOf(T)===-1&&(L(T),T=""),M();let D=U();N(T,I,F,"",D);continue}let j=E??z("ESCAPED_CHAR");if(j){L(j);continue}if(z("OPEN")){let T=A(),D=z("NAME"),C=z("REGEX");!D&&!C&&(C=z("ASTERISK"));let h=A();H("CLOSE");let d=U();N(T,D,C,h,d);continue}M(),H("END")}return X}J0(B4,"parse");function t0(J){return J.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}J0(t0,"escapeString");function H4(J){return J&&J.ignoreCase?"ui":"u"}J0(H4,"flags");function pY(J,Y,K){return G4(B4(J,K),Y,K)}J0(pY,"stringToRegexp");function w5(J){switch(J){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}J0(w5,"modifierToString");function G4(J,Y,K={}){K.delimiter??="/#?",K.prefixes??="./",K.sensitive??=!1,K.strict??=!1,K.end??=!0,K.start??=!0,K.endsWith="";let Z=K.start?"^":"";for(let w of J){if(w.type===3){w.modifier===3?Z+=t0(w.value):Z+=`(?:${t0(w.value)})${w5(w.modifier)}`;continue}Y&&Y.push(w.name);let $=`[^${t0(K.delimiter)}]+?`,z=w.value;if(w.type===1?z=$:w.type===0&&(z=U4),!w.prefix.length&&!w.suffix.length){w.modifier===3||w.modifier===1?Z+=`(${z})${w5(w.modifier)}`:Z+=`((?:${z})${w5(w.modifier)})`;continue}if(w.modifier===3||w.modifier===1){Z+=`(?:${t0(w.prefix)}(${z})${t0(w.suffix)})`,Z+=w5(w.modifier);continue}Z+=`(?:${t0(w.prefix)}`,Z+=`((?:${z})(?:`,Z+=t0(w.suffix),Z+=t0(w.prefix),Z+=`(?:${z}))*)${t0(w.suffix)})`,w.modifier===0&&(Z+="?")}let X=`[${t0(K.endsWith)}]|$`,Q=`[${t0(K.delimiter)}]`;if(K.end)return K.strict||(Z+=`${Q}?`),K.endsWith.length?Z+=`(?=${X})`:Z+="$",new RegExp(Z,H4(K));K.strict||(Z+=`(?:${Q}(?=${X}))?`);let W=!1;if(J.length){let w=J[J.length-1];w.type===3&&w.modifier===3&&(W=K.delimiter.indexOf(w)>-1)}return W||(Z+=`(?=${Q}|${X})`),new RegExp(Z,H4(K))}J0(G4,"partsToRegexp");var a1={delimiter:"",prefixes:"",sensitive:!0,strict:!0},QV={delimiter:".",prefixes:"",sensitive:!0,strict:!0},WV={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function iY(J,Y){return J.length?J[0]==="/"?!0:!Y||J.length<2?!1:(J[0]=="\\"||J[0]=="{")&&J[1]=="/":!1}J0(iY,"isAbsolutePathname");function L4(J,Y){return J.startsWith(Y)?J.substring(Y.length,J.length):J}J0(L4,"maybeStripPrefix");function nY(J,Y){return J.endsWith(Y)?J.substr(0,J.length-Y.length):J}J0(nY,"maybeStripSuffix");function O4(J){return!J||J.length<2?!1:J[0]==="["||(J[0]==="\\"||J[0]==="{")&&J[1]==="["}J0(O4,"treatAsIPv6Hostname");var oY=["ftp","file","http","https","ws","wss"];function q4(J){if(!J)return!0;for(let Y of oY)if(J.test(Y))return!0;return!1}J0(q4,"isSpecialScheme");function rY(J,Y){if(J=L4(J,"#"),Y||J==="")return J;let K=new URL("https://example.com");return K.hash=J,K.hash?K.hash.substring(1,K.hash.length):""}J0(rY,"canonicalizeHash");function sY(J,Y){if(J=L4(J,"?"),Y||J==="")return J;let K=new URL("https://example.com");return K.search=J,K.search?K.search.substring(1,K.search.length):""}J0(sY,"canonicalizeSearch");function aY(J,Y){return Y||J===""?J:O4(J)?j4(J):N4(J)}J0(aY,"canonicalizeHostname");function tY(J,Y){if(Y||J==="")return J;let K=new URL("https://example.com");return K.password=J,K.password}J0(tY,"canonicalizePassword");function eY(J,Y){if(Y||J==="")return J;let K=new URL("https://example.com");return K.username=J,K.username}J0(eY,"canonicalizeUsername");function JK(J,Y,K){if(K||J==="")return J;if(Y&&!oY.includes(Y))return new URL(`${Y}:${J}`).pathname;let Z=J[0]=="/";return J=new URL(Z?J:"/-"+J,"https://example.com").pathname,Z||(J=J.substring(2,J.length)),J}J0(JK,"canonicalizePathname");function YK(J,Y,K){return M4(Y)===J&&(J=""),K||J===""?J:E4(J)}J0(YK,"canonicalizePort");function KK(J,Y){return J=nY(J,":"),Y||J===""?J:H6(J)}J0(KK,"canonicalizeProtocol");function M4(J){switch(J){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}J0(M4,"defaultPortForProtocol");function H6(J){if(J==="")return J;if(/^[-+.A-Za-z0-9]*$/.test(J))return J.toLowerCase();throw TypeError(`Invalid protocol '${J}'.`)}J0(H6,"protocolEncodeCallback");function ZK(J){if(J==="")return J;let Y=new URL("https://example.com");return Y.username=J,Y.username}J0(ZK,"usernameEncodeCallback");function XK(J){if(J==="")return J;let Y=new URL("https://example.com");return Y.password=J,Y.password}J0(XK,"passwordEncodeCallback");function N4(J){if(J==="")return J;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(J))throw TypeError(`Invalid hostname '${J}'`);let Y=new URL("https://example.com");return Y.hostname=J,Y.hostname}J0(N4,"hostnameEncodeCallback");function j4(J){if(J==="")return J;if(/[^0-9a-fA-F[\]:]/g.test(J))throw TypeError(`Invalid IPv6 hostname '${J}'`);return J.toLowerCase()}J0(j4,"ipv6HostnameEncodeCallback");function E4(J){if(J===""||/^[0-9]*$/.test(J)&&parseInt(J)<=65535)return J;throw TypeError(`Invalid port '${J}'.`)}J0(E4,"portEncodeCallback");function QK(J){if(J==="")return J;let Y=new URL("https://example.com");return Y.pathname=J[0]!=="/"?"/-"+J:J,J[0]!=="/"?Y.pathname.substring(2,Y.pathname.length):Y.pathname}J0(QK,"standardURLPathnameEncodeCallback");function WK(J){return J===""?J:new URL(`data:${J}`).pathname}J0(WK,"pathURLPathnameEncodeCallback");function $K(J){if(J==="")return J;let Y=new URL("https://example.com");return Y.search=J,Y.search.substring(1,Y.search.length)}J0($K,"searchEncodeCallback");function wK(J){if(J==="")return J;let Y=new URL("https://example.com");return Y.hash=J,Y.hash.substring(1,Y.hash.length)}J0(wK,"hashEncodeCallback");var zK=class{#Q;#Z=[];#Y={};#J=0;#X=1;#z=0;#$=0;#V=0;#B=0;#G=!1;constructor(J){this.#Q=J}get result(){return this.#Y}parse(){for(this.#Z=V4(this.#Q,!0);this.#J<this.#Z.length;this.#J+=this.#X){if(this.#X=1,this.#Z[this.#J].type==="END"){if(this.#$===0){this.#M(),this.#U()?this.#K(9,1):this.#H()?this.#K(8,1):this.#K(7,0);continue}else if(this.#$===2){this.#A(5);continue}this.#K(10,0);break}if(this.#V>0)if(this.#D())this.#V-=1;else continue;if(this.#I()){this.#V+=1;continue}switch(this.#$){case 0:this.#N()&&this.#A(1);break;case 1:if(this.#N()){this.#T();let J=7,Y=1;this.#E()?(J=2,Y=3):this.#G&&(J=2),this.#K(J,Y)}break;case 2:this.#O()?this.#A(3):(this.#q()||this.#H()||this.#U())&&this.#A(5);break;case 3:this.#F()?this.#K(4,1):this.#O()&&this.#K(5,1);break;case 4:this.#O()&&this.#K(5,1);break;case 5:this.#R()?this.#B+=1:this.#C()&&(this.#B-=1),this.#_()&&!this.#B?this.#K(6,1):this.#q()?this.#K(7,0):this.#H()?this.#K(8,1):this.#U()&&this.#K(9,1);break;case 6:this.#q()?this.#K(7,0):this.#H()?this.#K(8,1):this.#U()&&this.#K(9,1);break;case 7:this.#H()?this.#K(8,1):this.#U()&&this.#K(9,1);break;case 8:this.#U()&&this.#K(9,1);break;case 9:break;case 10:break}}this.#Y.hostname!==void 0&&this.#Y.port===void 0&&(this.#Y.port="")}#K(J,Y){switch(this.#$){case 0:break;case 1:this.#Y.protocol=this.#w();break;case 2:break;case 3:this.#Y.username=this.#w();break;case 4:this.#Y.password=this.#w();break;case 5:this.#Y.hostname=this.#w();break;case 6:this.#Y.port=this.#w();break;case 7:this.#Y.pathname=this.#w();break;case 8:this.#Y.search=this.#w();break;case 9:this.#Y.hash=this.#w();break;case 10:break}this.#$!==0&&J!==10&&([1,2,3,4].includes(this.#$)&&[6,7,8,9].includes(J)&&(this.#Y.hostname??=""),[1,2,3,4,5,6].includes(this.#$)&&[8,9].includes(J)&&(this.#Y.pathname??=this.#G?"/":""),[1,2,3,4,5,6,7].includes(this.#$)&&J===9&&(this.#Y.search??="")),this.#j(J,Y)}#j(J,Y){this.#$=J,this.#z=this.#J+Y,this.#J+=Y,this.#X=0}#M(){this.#J=this.#z,this.#X=0}#A(J){this.#M(),this.#$=J}#L(J){return J<0&&(J=this.#Z.length-J),J<this.#Z.length?this.#Z[J]:this.#Z[this.#Z.length-1]}#W(J,Y){let K=this.#L(J);return K.value===Y&&(K.type==="CHAR"||K.type==="ESCAPED_CHAR"||K.type==="INVALID_CHAR")}#N(){return this.#W(this.#J,":")}#E(){return this.#W(this.#J+1,"/")&&this.#W(this.#J+2,"/")}#O(){return this.#W(this.#J,"@")}#F(){return this.#W(this.#J,":")}#_(){return this.#W(this.#J,":")}#q(){return this.#W(this.#J,"/")}#H(){if(this.#W(this.#J,"?"))return!0;if(this.#Z[this.#J].value!=="?")return!1;let J=this.#L(this.#J-1);return J.type!=="NAME"&&J.type!=="REGEX"&&J.type!=="CLOSE"&&J.type!=="ASTERISK"}#U(){return this.#W(this.#J,"#")}#I(){return this.#Z[this.#J].type=="OPEN"}#D(){return this.#Z[this.#J].type=="CLOSE"}#R(){return this.#W(this.#J,"[")}#C(){return this.#W(this.#J,"]")}#w(){let J=this.#Z[this.#J],Y=this.#L(this.#z).index;return this.#Q.substring(Y,J.index)}#T(){let J={};Object.assign(J,a1),J.encodePart=H6;let Y=pY(this.#w(),void 0,J);this.#G=q4(Y)}};J0(zK,"Parser");var z4=["protocol","username","password","hostname","port","pathname","search","hash"],s1="*";function A4(J,Y){if(typeof J!="string")throw TypeError("parameter 1 is not of type 'string'.");let K=new URL(J,Y);return{protocol:K.protocol.substring(0,K.protocol.length-1),username:K.username,password:K.password,hostname:K.hostname,port:K.port,pathname:K.pathname,search:K.search!==""?K.search.substring(1,K.search.length):void 0,hash:K.hash!==""?K.hash.substring(1,K.hash.length):void 0}}J0(A4,"extractValues");function R1(J,Y){return Y?I5(J):J}J0(R1,"processBaseURLString");function _5(J,Y,K){let Z;if(typeof Y.baseURL=="string")try{Z=new URL(Y.baseURL),Y.protocol===void 0&&(J.protocol=R1(Z.protocol.substring(0,Z.protocol.length-1),K)),!K&&Y.protocol===void 0&&Y.hostname===void 0&&Y.port===void 0&&Y.username===void 0&&(J.username=R1(Z.username,K)),!K&&Y.protocol===void 0&&Y.hostname===void 0&&Y.port===void 0&&Y.username===void 0&&Y.password===void 0&&(J.password=R1(Z.password,K)),Y.protocol===void 0&&Y.hostname===void 0&&(J.hostname=R1(Z.hostname,K)),Y.protocol===void 0&&Y.hostname===void 0&&Y.port===void 0&&(J.port=R1(Z.port,K)),Y.protocol===void 0&&Y.hostname===void 0&&Y.port===void 0&&Y.pathname===void 0&&(J.pathname=R1(Z.pathname,K)),Y.protocol===void 0&&Y.hostname===void 0&&Y.port===void 0&&Y.pathname===void 0&&Y.search===void 0&&(J.search=R1(Z.search.substring(1,Z.search.length),K)),Y.protocol===void 0&&Y.hostname===void 0&&Y.port===void 0&&Y.pathname===void 0&&Y.search===void 0&&Y.hash===void 0&&(J.hash=R1(Z.hash.substring(1,Z.hash.length),K))}catch{throw TypeError(`invalid baseURL '${Y.baseURL}'.`)}if(typeof Y.protocol=="string"&&(J.protocol=KK(Y.protocol,K)),typeof Y.username=="string"&&(J.username=eY(Y.username,K)),typeof Y.password=="string"&&(J.password=tY(Y.password,K)),typeof Y.hostname=="string"&&(J.hostname=aY(Y.hostname,K)),typeof Y.port=="string"&&(J.port=YK(Y.port,J.protocol,K)),typeof Y.pathname=="string"){if(J.pathname=Y.pathname,Z&&!iY(J.pathname,K)){let X=Z.pathname.lastIndexOf("/");X>=0&&(J.pathname=R1(Z.pathname.substring(0,X+1),K)+J.pathname)}J.pathname=JK(J.pathname,J.protocol,K)}return typeof Y.search=="string"&&(J.search=sY(Y.search,K)),typeof Y.hash=="string"&&(J.hash=rY(Y.hash,K)),J}J0(_5,"applyInit");function I5(J){return J.replace(/([+*?:{}()\\])/g,"\\$1")}J0(I5,"escapePatternString");function UK(J){return J.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}J0(UK,"escapeRegexpString");function HK(J,Y){Y.delimiter??="/#?",Y.prefixes??="./",Y.sensitive??=!1,Y.strict??=!1,Y.end??=!0,Y.start??=!0,Y.endsWith="";let K=".*",Z=`[^${UK(Y.delimiter)}]+?`,X=/[$_\u200C\u200D\p{ID_Continue}]/u,Q="";for(let W=0;W<J.length;++W){let w=J[W];if(w.type===3){if(w.modifier===3){Q+=I5(w.value);continue}Q+=`{${I5(w.value)}}${w5(w.modifier)}`;continue}let $=w.hasCustomName(),z=!!w.suffix.length||!!w.prefix.length&&(w.prefix.length!==1||!Y.prefixes.includes(w.prefix)),U=W>0?J[W-1]:null,H=W<J.length-1?J[W+1]:null;if(!z&&$&&w.type===1&&w.modifier===3&&H&&!H.prefix.length&&!H.suffix.length)if(H.type===3){let A=H.value.length>0?H.value[0]:"";z=X.test(A)}else z=!H.hasCustomName();if(!z&&!w.prefix.length&&U&&U.type===3){let A=U.value[U.value.length-1];z=Y.prefixes.includes(A)}z&&(Q+="{"),Q+=I5(w.prefix),$&&(Q+=`:${w.name}`),w.type===2?Q+=`(${w.value})`:w.type===1?$||(Q+=`(${Z})`):w.type===0&&(!$&&(!U||U.type===3||U.modifier!==3||z||w.prefix!=="")?Q+="*":Q+=`(${K})`),w.type===1&&$&&w.suffix.length&&X.test(w.suffix[0])&&(Q+="\\"),Q+=I5(w.suffix),z&&(Q+="}"),w.modifier!==3&&(Q+=w5(w.modifier))}return Q}J0(HK,"partsToPattern");var F4=class{#Q;#Z={};#Y={};#J={};#X={};#z=!1;constructor(J={},Y,K){try{let Z;if(typeof Y=="string"?Z=Y:K=Y,typeof J=="string"){let w=new zK(J);if(w.parse(),J=w.result,Z===void 0&&typeof J.protocol!="string")throw TypeError("A base URL must be provided for a relative constructor string.");J.baseURL=Z}else{if(!J||typeof J!="object")throw TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(Z)throw TypeError("parameter 1 is not of type 'string'.")}typeof K>"u"&&(K={ignoreCase:!1});let X={ignoreCase:K.ignoreCase===!0},Q={pathname:s1,protocol:s1,username:s1,password:s1,hostname:s1,port:s1,search:s1,hash:s1};this.#Q=_5(Q,J,!0),M4(this.#Q.protocol)===this.#Q.port&&(this.#Q.port="");let W;for(W of z4){if(!(W in this.#Q))continue;let w={},$=this.#Q[W];switch(this.#Y[W]=[],W){case"protocol":Object.assign(w,a1),w.encodePart=H6;break;case"username":Object.assign(w,a1),w.encodePart=ZK;break;case"password":Object.assign(w,a1),w.encodePart=XK;break;case"hostname":Object.assign(w,QV),O4($)?w.encodePart=j4:w.encodePart=N4;break;case"port":Object.assign(w,a1),w.encodePart=E4;break;case"pathname":q4(this.#Z.protocol)?(Object.assign(w,WV,X),w.encodePart=QK):(Object.assign(w,a1,X),w.encodePart=WK);break;case"search":Object.assign(w,a1,X),w.encodePart=$K;break;case"hash":Object.assign(w,a1,X),w.encodePart=wK;break}try{this.#X[W]=B4($,w),this.#Z[W]=G4(this.#X[W],this.#Y[W],w),this.#J[W]=HK(this.#X[W],w),this.#z=this.#z||this.#X[W].some((z)=>z.type===2)}catch{throw TypeError(`invalid ${W} pattern '${this.#Q[W]}'.`)}}}catch(Z){throw TypeError(`Failed to construct 'URLPattern': ${Z.message}`)}}get[Symbol.toStringTag](){return"URLPattern"}test(J={},Y){let K={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof J!="string"&&Y)throw TypeError("parameter 1 is not of type 'string'.");if(typeof J>"u")return!1;try{typeof J=="object"?K=_5(K,J,!1):K=_5(K,A4(J,Y),!1)}catch{return!1}let Z;for(Z of z4)if(!this.#Z[Z].exec(K[Z]))return!1;return!0}exec(J={},Y){let K={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof J!="string"&&Y)throw TypeError("parameter 1 is not of type 'string'.");if(typeof J>"u")return;try{typeof J=="object"?K=_5(K,J,!1):K=_5(K,A4(J,Y),!1)}catch{return null}let Z={};Y?Z.inputs=[J,Y]:Z.inputs=[J];let X;for(X of z4){let Q=this.#Z[X].exec(K[X]);if(!Q)return null;let W={};for(let[w,$]of this.#Y[X].entries())if(typeof $=="string"||typeof $=="number"){let z=Q[w+1];W[$]=z}Z[X]={input:K[X]??"",groups:W}}return Z}static compareComponent(J,Y,K){let Z=J0((w,$)=>{for(let z of["type","modifier","prefix","value","suffix"]){if(w[z]<$[z])return-1;if(w[z]===$[z])continue;return 1}return 0},"comparePart"),X=new D5(3,"","","","",3),Q=new D5(0,"","","","",3),W=J0((w,$)=>{let z=0;for(;z<Math.min(w.length,$.length);++z){let U=Z(w[z],$[z]);if(U)return U}return w.length===$.length?0:Z(w[z]??X,$[z]??X)},"comparePartList");return!Y.#J[J]&&!K.#J[J]?0:Y.#J[J]&&!K.#J[J]?W(Y.#X[J],[Q]):!Y.#J[J]&&K.#J[J]?W([Q],K.#X[J]):W(Y.#X[J],K.#X[J])}get protocol(){return this.#J.protocol}get username(){return this.#J.username}get password(){return this.#J.password}get hostname(){return this.#J.hostname}get port(){return this.#J.port}get pathname(){return this.#J.pathname}get search(){return this.#J.search}get hash(){return this.#J.hash}get hasRegExpGroups(){return this.#z}};J0(F4,"URLPattern");function A6(J,Y){for(let[K,Z]of Object.entries(J)){let X=new F4({pathname:K});if(X.test({pathname:Y}))return{routePath:K,params:X.exec({pathname:Y})?.pathname.groups??{},route:Z}}return null}var z5={startIndex:0,carriedViews:[]};function AK(J,Y){let K=i0(J.path,Y);return K.includes("*")?null:K}function $V(J,Y){if(!J)return z5;if(J.search!==Y.search)return z5;let K=Math.min(J.segments.length,Y.segments.length-1),Z=0;while(Z<K){let X=J.segments[Z],Q=Y.segments[Z];if(Q.alwaysRun)break;if(X.viewPath!==Q.viewPath)break;let W=AK(X,J.params),w=AK(Q,Y.params);if(W===null||w===null||W!==w)break;Z++}if(Z===0)return z5;return{startIndex:Z,carriedViews:Y.segments.slice(0,Z).map(({viewPath:X})=>X)}}function wV(J,Y){let[,K,...Z]=J.split("/");if(!Y.includes(K))return J;let X=`/${Z.join("/")}`;return X==="/"?"/":X.replace(/\/$/,"")}function VK(J){let{flatViewRoutes:Y,supportedLocales:K,from:Z,origin:X,to:Q}=J;if(!Z)return z5;let W;try{W=new URL(Z,X)}catch{return z5}if(W.origin!==X)return z5;let w=A6(Y,wV(W.pathname,K));if(!w)return z5;return $V({segments:w.route.segments,params:w.params,search:W.search},Q)}var _4="x-gemi-from";import{createElement as C5,Fragment as EV}from"react";function zV(J){return J.replace(/\([^)]*\)/g,"").replace(/\/\//g,"/")}function V6(J){let Y={};for(let[K,Z]of Object.entries(J))if("run"in Z){let X=Z.viewPath;if("children"in Z){Y[K]=[X];let Q=new Z.children,W=V6(Q.routes);for(let[w,$]of Object.entries(W)){let z=K==="/"?w:`${K}${w}`,U=w==="/"&&K!=="/"?K:z;Y[U]=[X,...$]}if(Y[K].length===1)delete Y[K]}else Y[K]=[X]}else{let X=new Z,Q=V6(X.routes);for(let[W,w]of Object.entries(Q)){let $=K==="/"?W:`${K}${W}`,z=W==="/"&&K!=="/"?K:$;Y[z]=w}}return Object.fromEntries(Object.entries(Y).map(([K,Z])=>[zV(K),Z]))}function B6(J){let Y=[];for(let[K,Z]of Object.entries(J))if("run"in Z){let X=Z.viewPath;if(X==="__")continue;if(X==="REDIRECT")continue;if(X==="FILE")continue;if("children"in Z){let Q=new Z.children,W=B6(Q.routes);Y.push([X,W])}else Y.push([X,[]])}else{let X=new Z,Q=B6(X.routes);Y.push(...Q)}return Y}function I4(J){let Y=[];for(let[K,Z]of J)Y.push(K,...I4(Z).flat());return Array.from(new Set(Y))}class R5 extends y0{static getFacadeAccessor(){return y5}static debug(J,Y){this.getFacadeRoot().log("debug",J,Y)}static info(J,Y){this.getFacadeRoot().log("info",J,Y)}static notice(J,Y){this.getFacadeRoot().log("notice",J,Y)}static warning(J,Y){this.getFacadeRoot().log("warning",J,Y)}static error(J,Y){this.getFacadeRoot().log("error",J,Y)}static critical(J,Y){this.getFacadeRoot().log("critical",J,Y)}static alert(J,Y){this.getFacadeRoot().log("alert",J,Y)}static emergency(J,Y){this.getFacadeRoot().log("emergency",J,Y)}}class D4{id;static token="kernel.id";constructor(J=crypto.randomUUID()){this.id=J}}function UV(J){return JSON.stringify(J).replace(/</g,"\\u003c").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function HV(J){return`<script>(self.__GEMI_STREAM__=self.__GEMI_STREAM__||[]).push(${UV([J.path,J.variantKey,J.data])})</script>`}function R4(J,Y,K={}){let Z=new TextEncoder,X=[],Q=!1,W=!1,w=()=>{if(W)return;W=!0,K.onClose?.()};Y.onSettle((H)=>{if(H.status!=="resolved")return;X.push(HV(H))});let $=J.getReader(),z=(H,A)=>{H.enqueue(A),K.onChunk?.(A)},U=(H)=>{while(X.length>0)z(H,Z.encode(X.shift()))};return new ReadableStream({async pull(H){let A;try{A=await $.read()}catch(B){throw w(),B}let{done:V,value:O}=A;if(V){U(H),H.close(),w();return}if(!Q){Q=!0,z(H,O),K.onShell?.(),U(H);return}U(H),z(H,O)},cancel(H){return w(),$.cancel(H)}})}var AV=/bot|crawler|spider|crawling|slurp|bingpreview|mediapartners|headless|lighthouse|prerender|facebookexternalhit|whatsapp|telegram|discord|twitterbot|linkedinbot/i;function BK(J){if(!J)return!1;return AV.test(J)}var VV=new Set(["script","style","template","title"]),BV=/\shidden([\s=/]|$)/i,GV=/"[^"]*"|'[^']*'/g;function LV(J){let Y=0,K=0,Z=0,X=0;while(X<J.length){let Q=J.indexOf("<",X),W=Q===-1?J.length:Q;if(W>X){let H=J.slice(X,W).replace(/\s+/g,"").length;if(Z>0)K+=H;else Y+=H}if(Q===-1)break;if(J.startsWith("<!--",Q)){let H=J.indexOf("-->",Q+4);X=H===-1?J.length:H+3;continue}let w=J.indexOf(">",Q);if(w===-1)break;let $=J.slice(Q+1,w);X=w+1;let z=/^\/?([a-zA-Z][a-zA-Z0-9-]*)/.exec($)?.[1]?.toLowerCase();if(!z)continue;let U=$.startsWith("/");if(!U&&VV.has(z)&&!$.endsWith("/")){let H=J.indexOf(`</${z}`,X);X=H===-1?J.length:H;continue}if(z!=="div")continue;if(U){if(Z>0)Z-=1}else if(Z>0)Z+=1;else if(BV.test($.replace(GV,'""')))Z=1}return{shellChars:Y,deferredChars:K}}var OV=1000,qV=64;function MV(J){return J>=1000?`${(J/1000).toFixed(1)} kB`:`${J} chars`}function NV(J,Y){if(Y.deferredChars<OV)return null;if(Y.shellChars>=qV)return null;return`[gemi] GET ${J} streams ${MV(Y.deferredChars)} of its `+`content behind reveal scripts \u2014 a no-JS visitor sees ~${Y.shellChars} chars. If this is a public/content route, add "no-stream" to its middleware.`}function GK(J=console.warn){let Y=new Set;return{shouldObserve(K){return!Y.has(K)},report(K,Z){if(Y.has(K))return;let X=NV(K,Z);if(!X)return;Y.add(K),J(X)}}}function LK(){let J=new TextDecoder,Y="";return{onChunk(K){Y+=J.decode(K,{stream:!0})},measure(){return Y+=J.decode(),LV(Y)}}}function OK(J,Y,K=1e4,Z){let X=new TextEncoder,Q=()=>{};return new ReadableStream({start(W){let w=!1,$=(U)=>{if(w)return;w=!0,clearTimeout(z);try{W.close()}catch{}Z?.({aborted:U})};Q=$,W.enqueue(X.encode(`${JSON.stringify(J)}
|
|
65
|
+
in CSS rule \`${W}: ${w}\`.${_J(W)}`))}}}if(K.backgroundImage){let{backgrounds:X}=RY.parseElementStyle(K);K.backgroundImage=X}(K.maskImage||K.WebkitMaskImage)&&(K.maskImage=AH(K));let Z=LH(K.fontSize,Y.fontSize);typeof K.fontSize<"u"&&(K.fontSize=Z),K.transformOrigin&&(K.transformOrigin=HH(K.transformOrigin,Z));for(let X in K){let Q=K[X];if(X==="lineHeight")typeof Q=="string"&&Q!=="normal"&&(Q=K[X]=H0(Q,Z,Z,Y,!0)/Z);else{if(typeof Q=="string"){let W=H0(Q,Z,Z,Y);typeof W<"u"&&(K[X]=W),Q=K[X]}if(typeof Q=="string"||typeof Q=="object"){let W=SY(Q);W&&(K[X]=W),Q=K[X]}}if(X==="opacity"&&typeof Q=="number"&&(K.opacity=Q*Y.opacity),X==="transform"){let W=Q;for(let w of W){let $=Object.keys(w)[0],z=w[$],U=typeof z=="string"?H0(z,Z,Z,Y)??z:z;w[$]=U}}if(X==="textShadowRadius"){let W=Q;K.textShadowRadius=W.map((w)=>H0(w,Z,0,Y,!1))}if(X==="textShadowOffset"){let W=Q;K.textShadowOffset=W.map(({height:w,width:$})=>({height:H0(w,Z,0,Y,!1),width:H0($,Z,0,Y,!1)}))}}return K}function LH(J,Y){if(typeof J=="number")return J;try{let K=new Z8(J);switch(K.unit){case"em":return K.value*Y;case"rem":return K.value*16}}catch{return Y}}function RJ(J){if(J.startsWith("hsl")){let Y=I8(J),[K,Z,X]=Y.values;return`hsl(${[K,`${Z}%`,`${X}%`].concat(Y.alpha===1?[]:[Y.alpha]).join(",")})`}return J}function MH(J,Y){return J&&J.toLowerCase()!=="currentcolor"?RJ(J):RJ(Y)}function qH(J,Y){return J.replace(/currentcolor/gi,Y)}function NH(J,Y){return EY(J)&&(J=qH(J,Y)),J}async function jH(J,Y,K,Z,X){let Q=await K6(),W={...K,...DJ($H[Y],K),...DJ(Z,K)};if(Y==="img"){let[w,$,z]=await Z4(X.src);if($===void 0&&z===void 0){if(X.width===void 0||X.height===void 0)throw Error("Image size cannot be determined. Please provide the width and height of the image.");$=parseInt(X.width),z=parseInt(X.height)}let U=z/$,H=(W.borderLeftWidth||0)+(W.borderRightWidth||0)+(W.paddingLeft||0)+(W.paddingRight||0),A=(W.borderTopWidth||0)+(W.borderBottomWidth||0)+(W.paddingTop||0)+(W.paddingBottom||0),V=W.width||X.width,L=W.height||X.height,B=typeof V=="number"&&typeof L=="number";B&&(V-=H,L-=A),V===void 0&&L===void 0?(V="100%",J.setAspectRatio(1/U)):V===void 0?typeof L=="number"?V=L/U:J.setAspectRatio(1/U):L===void 0&&(typeof V=="number"?L=V*U:J.setAspectRatio(1/U)),W.width=B?V+H:V,W.height=B?L+A:L,W.__src=w}if(Y==="svg"){let w=X.viewBox||X.viewbox,$=Y4(w),z=$?$[3]/$[2]:null,{width:U,height:H}=X;typeof U>"u"&&H?z==null?U=0:typeof H=="string"&&H.endsWith("%")?U=parseInt(H)/z+"%":(H=H0(H,K.fontSize,1,K),U=H/z):typeof H>"u"&&U?z==null?U=0:typeof U=="string"&&U.endsWith("%")?H=parseInt(U)*z+"%":(U=H0(U,K.fontSize,1,K),H=U*z):(typeof U<"u"&&(U=H0(U,K.fontSize,1,K)||U),typeof H<"u"&&(H=H0(H,K.fontSize,1,K)||H),U||=$==null?void 0:$[2],H||=$==null?void 0:$[3]),!W.width&&U&&(W.width=U),!W.height&&H&&(W.height=H)}return J.setDisplay(G1(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(G1(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(G1(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(G1(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(G1(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(G1(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(G1(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(G1(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(G1(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,zH(W)]}var CJ=[1,0,0,1,0,0];function EH(J,Y,K){let Z=[...CJ];for(let X of J){let Q=Object.keys(X)[0],W=X[Q];if(typeof W=="string")if(Q==="translateX")W=parseFloat(W)/100*Y,X[Q]=W;else if(Q==="translateY")W=parseFloat(W)/100*K,X[Q]=W;else throw Error(`Invalid transform: "${Q}: ${W}".`);let w=W,$=[...CJ];switch(Q){case"translateX":$[4]=w;break;case"translateY":$[5]=w;break;case"scale":$[0]=w,$[3]=w;break;case"scaleX":$[0]=w;break;case"scaleY":$[3]=w;break;case"rotate":{let z=w*Math.PI/180,U=Math.cos(z),H=Math.sin(z);$[0]=U,$[1]=H,$[2]=-H,$[3]=U;break}case"skewX":$[2]=Math.tan(w*Math.PI/180);break;case"skewY":$[1]=Math.tan(w*Math.PI/180);break}Z=n8($,Z)}J.splice(0,J.length),J.push(...Z),J.__resolved=!0}function vY({left:J,top:Y,width:K,height:Z},X,Q,W){let w;X.__resolved||EH(X,K,Z);let $=X;if(Q)w=$;else{let z=(W==null?void 0:W.xAbsolute)??((W==null?void 0:W.xRelative)??50)*K/100,U=(W==null?void 0:W.yAbsolute)??((W==null?void 0:W.yRelative)??50)*Z/100,H=J+z,A=Y+U;w=n8([1,0,0,1,H,A],n8($,[1,0,0,1,-H,-A])),$.__parent&&(w=n8($.__parent,w)),$.splice(0,6,...w)}return`matrix(${w.map((z)=>z.toFixed(2)).join(",")})`}function FH({left:J,top:Y,width:K,height:Z,isInheritingTransform:X},Q){let W="",w=1;return Q.transform&&(W=vY({left:J,top:Y,width:K,height:Z},Q.transform,X,Q.transformOrigin)),Q.opacity!==void 0&&(w=+Q.opacity),{matrix:W,opacity:w}}function _H({id:J,content:Y,filter:K,left:Z,top:X,width:Q,height:W,matrix:w,opacity:$,image:z,clipPathId:U,debug:H,shape:A,decorationShape:V},L){let B="";if(H&&(B=s("rect",{x:Z,y:X-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 q={href:z,x:Z,y:X,width:Q,height:W,transform:w||void 0,"clip-path":U?`url(#${U})`:void 0,style:L.filter?`filter:${L.filter}`:void 0};return[(K?`${K}<g filter="url(#satori_s-${J})">`:"")+s("image",{...q,opacity:$!==1?$:void 0})+(V||"")+(K?"</g>":"")+B,""]}let O={x:Z,y:X,width:Q,height:W,"font-weight":L.fontWeight,"font-style":L.fontStyle,"font-size":L.fontSize,"font-family":L.fontFamily,"letter-spacing":L.letterSpacing||void 0,transform:w||void 0,"clip-path":U?`url(#${U})`:void 0,style:L.filter?`filter:${L.filter}`:void 0,"stroke-width":L.WebkitTextStrokeWidth?`${L.WebkitTextStrokeWidth}px`:void 0,stroke:L.WebkitTextStrokeWidth?L.WebkitTextStrokeColor:void 0,"stroke-linejoin":L.WebkitTextStrokeWidth?"round":void 0,"paint-order":L.WebkitTextStrokeWidth?"stroke":void 0};return[(K?`${K}<g filter="url(#satori_s-${J})">`:"")+s("text",{...O,fill:L.color,opacity:$!==1?$:void 0},u9.default(Y))+(V||"")+(K?"</g>":"")+B,A?s("text",O,u9.default(Y)):""]}function IH(J,Y,K){return J.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(Z,X,Q,W){return X+(parseFloat(Q)+Y)+","+(parseFloat(W)+K)})}var x8=1.1;function DH({id:J,width:Y,height:K},Z){if(!Z.shadowColor||!Z.shadowOffset||typeof Z.shadowRadius>"u")return"";let X=Z.shadowColor.length,Q="",W="",w=0,$=Y,z=0,U=K;for(let H=0;H<X;H++){let A=Z.shadowRadius[H]*Z.shadowRadius[H]/4;w=Math.min(Z.shadowOffset[H].width-A,w),$=Math.max(Z.shadowOffset[H].width+A+Y,$),z=Math.min(Z.shadowOffset[H].height-A,z),U=Math.max(Z.shadowOffset[H].height+A+K,U),Q+=s("feDropShadow",{dx:Z.shadowOffset[H].width,dy:Z.shadowOffset[H].height,stdDeviation:Z.shadowRadius[H]/2,"flood-color":Z.shadowColor[H],"flood-opacity":1,...X>1?{in:"SourceGraphic",result:`satori_s-${J}-result-${H}`}:{}}),X>1&&(W=s("feMergeNode",{in:`satori_s-${J}-result-${H}`})+W)}return s("filter",{id:`satori_s-${J}`,x:(w/Y*100*x8).toFixed(2)+"%",y:(z/K*100*x8).toFixed(2)+"%",width:(($-w)/Y*100*x8).toFixed(2)+"%",height:((U-z)/K*100*x8).toFixed(2)+"%"},Q+(W?s("feMerge",{},W):""))}function RH({width:J,height:Y,shape:K,opacity:Z,id:X},Q){if(!Q.boxShadow)return null;let W="",w="";for(let $=Q.boxShadow.length-1;$>=0;$--){let z="",U=Q.boxShadow[$];U.spreadRadius&&U.inset&&(U.spreadRadius=-U.spreadRadius);let H=U.blurRadius*U.blurRadius/4+(U.spreadRadius||0),A=Math.min(-H-(U.inset?U.offsetX:0),0),V=Math.max(H+J-(U.inset?U.offsetX:0),J),L=Math.min(-H-(U.inset?U.offsetY:0),0),B=Math.max(H+Y-(U.inset?U.offsetY:0),Y),O=`satori_s-${X}-${$}`,q=`satori_ms-${X}-${$}`,N=U.spreadRadius?K.replace('stroke-width="0"',`stroke-width="${U.spreadRadius*2}"`):K;z+=s("mask",{id:q,maskUnits:"userSpaceOnUse"},s("rect",{x:0,y:0,width:Q._viewportWidth||"100%",height:Q._viewportHeight||"100%",fill:U.inset?"#000":"#fff"})+N.replace('fill="#fff"',U.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let E=N.replace(/d="([^"]+)"/,(I,F)=>'d="'+IH(F,U.offsetX,U.offsetY)+'"').replace(/x="([^"]+)"/,(I,F)=>'x="'+(parseFloat(F)+U.offsetX)+'"').replace(/y="([^"]+)"/,(I,F)=>'y="'+(parseFloat(F)+U.offsetY)+'"');U.spreadRadius&&U.spreadRadius<0&&(z+=s("mask",{id:q+"-neg",maskUnits:"userSpaceOnUse"},E.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-U.spreadRadius*2}"`))),U.spreadRadius&&U.spreadRadius<0&&(E=s("g",{mask:`url(#${q}-neg)`},E)),z+=s("defs",{},s("filter",{id:O,x:`${A/J*100}%`,y:`${L/Y*100}%`,width:`${(V-A)/J*100}%`,height:`${(B-L)/Y*100}%`},s("feGaussianBlur",{stdDeviation:U.blurRadius/2,result:"b"})+s("feFlood",{"flood-color":U.color,in:"SourceGraphic",result:"f"})+s("feComposite",{in:"f",in2:"b",operator:U.inset?"out":"in"})))+s("g",{mask:`url(#${q})`,filter:`url(#${O})`,opacity:Z},E),U.inset?w+=z:W+=z}return[W,w]}function CH({width:J,left:Y,top:K,ascender:Z,clipPathId:X,matrix:Q},W){let{textDecorationColor:w,textDecorationStyle:$,textDecorationLine:z,fontSize:U,color:H}=W;if(!z||z==="none")return"";let A=Math.max(1,U*0.1),V=z==="line-through"?K+Z*0.7:z==="underline"?K+Z*1.1:K,L=$==="dashed"?`${A*1.2} ${A*2}`:$==="dotted"?`0 ${A*2}`:void 0;return(X?`<g clip-path="url(#${X})">`:"")+s("line",{x1:Y,y1:V,x2:Y+J,y2:V,stroke:w||H,"stroke-width":A,"stroke-dasharray":L,"stroke-linecap":$==="dotted"?"round":"square",transform:Q})+(X?"</g>":"")}function X4(J){return J=J.replace("U+","0x"),String.fromCodePoint(Number(J))}var Y8=X4("U+0020"),kY=X4("U+0009"),r8=X4("U+2026");function TH(J,Y,K){let{fontSize:Z,letterSpacing:X}=K,Q=new Map;function W(z){if(Q.has(z))return Q.get(z);let U=J.measure(z,{fontSize:Z,letterSpacing:X});return Q.set(z,U),U}function w(z){let U=0;for(let H of z)Y(H)?U+=Z:U+=W(H);return U}function $(z){return w(L1(z,"grapheme"))}return{measureGrapheme:W,measureGraphemeArray:w,measureText:$}}function PH(J,Y,K){let{textTransform:Z,whiteSpace:X,wordBreak:Q}=Y;J=SH(J,Z,K);let{content:W,shouldCollapseTabsAndSpaces:w,allowSoftWrap:$}=yH(J,X),{words:z,requiredBreaks:U,allowBreakWord:H}=kH(W,Q),[A,V]=vH(Y,$);return{words:z,requiredBreaks:U,allowSoftWrap:$,allowBreakWord:H,processedContent:W,shouldCollapseTabsAndSpaces:w,lineLimit:A,blockEllipsis:V}}function SH(J,Y,K){return Y==="uppercase"?J=J.toLocaleUpperCase(K):Y==="lowercase"?J=J.toLocaleLowerCase(K):Y==="capitalize"&&(J=L1(J,"word",K).map((Z)=>L1(Z,"grapheme",K).map((X,Q)=>Q===0?X.toLocaleUpperCase(K):X).join("")).join("")),J}function vH(J,Y){let{textOverflow:K,lineClamp:Z,WebkitLineClamp:X,WebkitBoxOrient:Q,overflow:W,display:w}=J;if(w==="block"&&Z){let[$,z=r8]=hH(Z);if($)return[$,z]}return K==="ellipsis"&&w==="-webkit-box"&&Q==="vertical"&&nU(X)&&X>0?[X,r8]:K==="ellipsis"&&W==="hidden"&&!Y?[1,r8]:[1/0]}function kH(J,Y){let K=["break-all","break-word"].includes(Y),{words:Z,requiredBreaks:X}=rU(J,Y);return{words:Z,requiredBreaks:X,allowBreakWord:K}}function yH(J,Y){let K=["pre","pre-wrap","pre-line"].includes(Y),Z=["normal","nowrap","pre-line"].includes(Y),X=!["pre","nowrap"].includes(Y);return K||(J=J.replace(/\n/g,Y8)),Z&&(J=J.replace(/([ ]|\t)+/g,Y8).replace(/^[ ]|[ ]$/g,"")),{content:J,shouldCollapseTabsAndSpaces:Z,allowSoftWrap:X}}function hH(J){if(typeof J=="number")return[J];let Y=/^(\d+)\s*"(.*)"$/,K=/^(\d+)\s*'(.*)'$/,Z=Y.exec(J),X=K.exec(J);if(Z){let Q=+Z[1],W=Z[2];return[Q,W]}else if(X){let Q=+X[1],W=X[2];return[Q,W]}return[]}var gH=new Set([kY]);function xH(J){return gH.has(J)}async function*bH(J,Y){let K=await K6(),{parentStyle:Z,inheritedStyle:X,parent:Q,font:W,id:w,isInheritingTransform:$,debug:z,embedFont:U,graphemeImages:H,locale:A,canLoadAdditionalAssets:V}=Y,{textAlign:L,lineHeight:B,textWrap:O,fontSize:q,filter:N,tabSize:E=8,letterSpacing:I,_inheritedBackgroundClipTextPath:F,flexShrink:j}=Z,{words:T,requiredBreaks:D,allowSoftWrap:C,allowBreakWord:g,processedContent:d,shouldCollapseTabsAndSpaces:r,lineLimit:l,blockEllipsis:P}=PH(J,Z,A),k=fH(K,L);Q.insertChild(k,Q.getChildCount()),oU(j)&&Q.setFlexShrink(1);let R=W.getEngine(q,B,Z,A),c=V?L1(d,"grapheme").filter(($0)=>!xH($0)&&!R.has($0)):[];yield c.map(($0)=>({word:$0,locale:A})),c.length&&(R=W.getEngine(q,B,Z,A));function u($0){return!!(H&&H[$0])}let{measureGrapheme:a,measureGraphemeArray:n,measureText:m}=TH(R,u,{fontSize:q,letterSpacing:I}),x=EY(E)?H0(E,q,1,Z):a(Y8)*E,S=($0,N0)=>{if($0.length===0)return{originWidth:0,endingSpacesWidth:0,text:$0};let{index:F0,tabCount:G0}=mH($0),R0=0;if(G0>0){let P0=$0.slice(0,F0),I0=$0.slice(F0+G0),M0=m(P0),M1=M0+N0;R0=(x===0?M0:(Math.floor(M1/x)+G0)*x)+m(I0)}else R0=m($0);let O0=$0.trimEnd()===$0?R0:m($0.trimEnd());return{originWidth:R0,endingSpacesWidth:R0-O0,text:$0}},y=[],p=[],h=[],e=[],Q0=[];function Z0($0){let N0=0,F0=0,G0=-1,R0=0,O0=0,P0=0,I0=0;y=[],h=[0],e=[],Q0=[];let M0=0,M1=0;for(;M0<T.length&&N0<l;){let z0=T[M0],e1=D[M0],J1=0,{originWidth:x1,endingSpacesWidth:U8,text:b1}=S(z0,O0);z0=b1,J1=x1;let j0=U8;e1&&P0===0&&(P0=R.height(z0));let b0=",.!?:-@)>]}%#".indexOf(z0[0])<0,$1=!O0,H8=M0&&b0&&O0+J1>$0+j0&&C;if(g&&J1>$0&&(!O0||H8||e1)){let u0=L1(z0,"grapheme");T.splice(M0,1,...u0),O0>0&&(y.push(O0-M1),p.push(I0),N0++,R0+=P0,O0=0,P0=0,I0=0,h.push(1),G0=-1),M1=j0;continue}if(e1||H8)r&&z0===Y8&&(J1=0),y.push(O0-M1),p.push(I0),N0++,R0+=P0,O0=J1,P0=J1?R.height(z0):0,I0=J1?R.baseline(z0):0,h.push(1),G0=-1,e1||(F0=Math.max(F0,$0));else{O0+=J1;let u0=R.height(z0);u0>P0&&(P0=u0,I0=R.baseline(z0)),$1&&h[h.length-1]++}$1&&G0++,F0=Math.max(F0,O0);let T5=O0-J1;if(J1===0)Q0.push({y:R0,x:T5,width:0,line:N0,lineIndex:G0,isImage:!1});else{let u0=L1(z0,"word");for(let w1=0;w1<u0.length;w1++){let J5=u0[w1],C1=0,P5=!1;u(J5)?(C1=q,P5=!0):C1=a(J5),e.push(J5),Q0.push({y:R0,x:T5,width:C1,line:N0,lineIndex:G0,isImage:P5}),T5+=C1}}M0++,M1=j0}return O0&&(N0<l&&(R0+=P0),N0++,y.push(O0),p.push(I0)),{width:F0,height:R0}}let Y0={width:0,height:0};k.setMeasureFunc(($0)=>{let{width:N0,height:F0}=Z0($0);if(O==="balance"){let R0=N0/2,O0=N0,P0=N0;for(;R0+1<O0;){P0=(R0+O0)/2;let{height:M0}=Z0(P0);M0>F0?R0=P0:O0=P0}Z0(O0);let I0=Math.ceil(O0);return Y0={width:I0,height:F0},{width:I0,height:F0}}let G0=Math.ceil(N0);return Y0={width:G0,height:F0},{width:G0,height:F0}});let[A0,E0]=yield,K0="",B0="",D0=X._inheritedClipPathId,v0=X._inheritedMaskId,{left:k0,top:T0,width:d0,height:i0}=k.getComputedLayout(),n0=Q.getComputedWidth()-Q.getComputedPadding(K.EDGE_LEFT)-Q.getComputedPadding(K.EDGE_RIGHT)-Q.getComputedBorder(K.EDGE_LEFT)-Q.getComputedBorder(K.EDGE_RIGHT),Q1=A0+k0,W1=E0+T0,{matrix:e0,opacity:U5}=FH({left:k0,top:T0,width:d0,height:i0,isInheritingTransform:$},Z),h1="";if(Z.textShadowOffset){let{textShadowColor:$0,textShadowOffset:N0,textShadowRadius:F0}=Z;h1=DH({width:Y0.width,height:Y0.height,id:w},{shadowColor:$0,shadowOffset:N0,shadowRadius:F0}),h1=s("defs",{},h1)}let t1="",H5="",z8="",A5=-1,V5={},g1=null,h4=0;for(let $0=0;$0<e.length;$0++){let N0=Q0[$0],F0=Q0[$0+1];if(!N0)continue;let G0=e[$0],R0=null,O0=!1,P0=H?H[G0]:null,I0=N0.y,M0=N0.x,M1=N0.width,z0=N0.line;if(z0===A5)continue;let e1=!1;if(y.length>1){let j0=d0-y[z0];if(L==="right"||L==="end")M0+=j0;else if(L==="center")M0+=j0/2;else if(L==="justify"&&z0<y.length-1){let b0=h[z0],$1=b0>1?j0/(b0-1):0;M0+=$1*N0.lineIndex,e1=!0}}let J1=p[z0],x1=R.baseline(G0),U8=R.height(G0),b1=J1-x1;if(V5[z0]||(V5[z0]=[M0,W1+I0+b1,x1,e1?d0:y[z0]]),l!==1/0){let j0=function(u0,w1){let J5=L1(w1,"grapheme",A),C1="",P5=0;for(let g4 of J5){let x4=u0+n([C1+g4]);if(C1&&x4+$1>n0)break;C1+=g4,P5=x4}return{subset:C1,resolvedWidth:P5}},b0=P,$1=a(P);$1>n0&&(b0=r8,$1=a(b0));let H8=a(Y8),T5=z0<y.length-1;if(z0+1===l&&(T5||y[z0]>n0)){if(M0+M1+$1+H8>n0){let{subset:u0,resolvedWidth:w1}=j0(M0,G0);G0=u0+b0,A5=z0,V5[z0][2]=w1,O0=!0}else if(F0&&F0.line!==z0)if(L==="center"){let{subset:u0,resolvedWidth:w1}=j0(M0,G0);G0=u0+b0,A5=z0,V5[z0][2]=w1,O0=!0}else{let u0=e[$0+1],{subset:w1,resolvedWidth:J5}=j0(M1+M0,u0);G0=G0+w1+b0,A5=z0,V5[z0][2]=J5,O0=!0}}}if(P0)I0+=0;else if(U){if(!G0.includes(kY)&&!lU.includes(G0)&&e[$0+1]&&F0&&!F0.isImage&&I0===F0.y&&!O0){g1===null&&(h4=M0),g1=g1===null?G0:g1+G0;continue}let j0=g1===null?G0:g1+G0,b0=g1===null?M0:h4,$1=N0.width+M0-b0;R0=R.getSVG(j0.replace(/(\t)+/g,""),{fontSize:q,left:Q1+b0,top:W1+I0+x1+b1,letterSpacing:I}),g1=null,z&&(z8+=s("rect",{x:Q1+b0,y:W1+I0+b1,width:$1,height:U8,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:e0||void 0,"clip-path":D0?`url(#${D0})`:void 0})+s("line",{x1:Q1+M0,x2:Q1+M0+N0.width,y1:W1+I0+b1+x1,y2:W1+I0+b1+x1,stroke:"#14c000","stroke-width":1,transform:e0||void 0,"clip-path":D0?`url(#${D0})`:void 0}))}else I0+=x1+b1;if(Z.textDecorationLine){let j0=V5[z0];j0&&!j0[4]&&(t1+=CH({left:Q1+j0[0],top:j0[1],width:j0[3],ascender:j0[2],clipPathId:D0,matrix:e0},Z),j0[4]=1)}if(R0!==null)H5+=R0+" ";else{let[j0,b0]=_H({content:G0,filter:h1,id:w,left:Q1+M0,top:W1+I0,width:M1,height:U8,matrix:e0,opacity:U5,image:P0,clipPathId:D0,debug:z,shape:!!F,decorationShape:t1},Z);K0+=j0,B0+=b0,t1=""}if(O0)break}if(H5){let $0=Z.color!=="transparent"&&U5!==0?s("path",{fill:Z.color,d:H5,transform:e0||void 0,opacity:U5!==1?U5:void 0,"clip-path":D0?`url(#${D0})`:void 0,mask:v0?`url(#${v0})`:void 0,style:N?`filter:${N}`:void 0,"stroke-width":X.WebkitTextStrokeWidth?`${X.WebkitTextStrokeWidth}px`:void 0,stroke:X.WebkitTextStrokeWidth?X.WebkitTextStrokeColor:void 0,"stroke-linejoin":X.WebkitTextStrokeWidth?"round":void 0,"paint-order":X.WebkitTextStrokeWidth?"stroke":void 0}):"";F&&(B0=s("path",{d:H5,transform:e0||void 0})),K0+=(h1?h1+s("g",{filter:`url(#satori_s-${w})`},$0+t1):$0+t1)+z8}return B0&&(Z._inheritedBackgroundClipTextPath.value+=B0),K0}function fH(J,Y){let K=J.Node.create();return K.setAlignItems(J.ALIGN_BASELINE),K.setJustifyContent(G1(Y,{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")),K}function mH(J){let Y=/(\t)+/.exec(J);return Y?{index:Y.index,tabCount:Y[0].length}:{index:null,tabCount:0}}function yY(J,Y,K,Z,X){let Q=[];for(let z of Y){let{color:U}=z;if(!Q.length&&(Q.push({offset:0,color:U}),!z.offset||z.offset.value==="0"))continue;let H=typeof z.offset>"u"?void 0:z.offset.unit==="%"?+z.offset.value/100:Number(H0(`${z.offset.value}${z.offset.unit}`,K.fontSize,J,K,!0))/J;Q.push({offset:H,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:Z?Q[Q.length-1]={offset:1,color:W.color}:Q.push({offset:1,color:W.color}));let w=0,$=1;for(let z=0;z<Q.length;z++)if(typeof Q[z].offset>"u"){for($<z&&($=z);typeof Q[$].offset>"u";)$++;Q[z].offset=(Q[$].offset-Q[w].offset)/($-w)*(z-w)+Q[w].offset}else w=z;return X==="mask"?Q.map((z)=>{let U=I8(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 cH({id:J,width:Y,height:K,repeatX:Z,repeatY:X},Q,W,w,$,z){let U=E2(Q),[H,A]=W,V=Q.startsWith("repeating"),L,B,O;if(U.orientation.type==="directional")L=uH(U.orientation.value),B=Math.sqrt(Math.pow((L.x2-L.x1)*H,2)+Math.pow((L.y2-L.y1)*A,2));else if(U.orientation.type==="angular"){let{length:F,...j}=lH(jY(`${U.orientation.value.value}${U.orientation.value.unit}`)/180*Math.PI,H,A);B=F,L=j}O=V?pH(U.stops,B,L,$):L;let q=yY(V?dH(U.stops,B):B,U.stops,$,V,z),N=`satori_bi${J}`,E=`satori_pattern_${J}`,I=s("pattern",{id:E,x:w[0]/Y,y:w[1]/K,width:Z?H/Y:"1",height:X?A/K:"1",patternUnits:"objectBoundingBox"},s("linearGradient",{id:N,...O,spreadMethod:V?"repeat":"pad"},q.map((F)=>s("stop",{offset:(F.offset??0)*100+"%","stop-color":F.color})).join(""))+s("rect",{x:0,y:0,width:H,height:A,fill:`url(#${N})`}));return[E,I]}function dH(J,Y){let K=J[J.length-1],{offset:Z}=K;return Z?Z.unit==="%"?Number(Z.value)/100*Y:Number(Z.value):Y}function uH(J){let Y=0,K=0,Z=0,X=0;return J.includes("top")?K=1:J.includes("bottom")&&(X=1),J.includes("left")?Y=1:J.includes("right")&&(Z=1),!Y&&!Z&&!K&&!X&&(K=1),{x1:Y,y1:K,x2:Z,y2:X}}function lH(J,Y,K){let Z=Math.pow(K/Y,2);J=(J%(Math.PI*2)+Math.PI*2)%(Math.PI*2);let X,Q,W,w,$,z,U,H,A=(V)=>{if(V===0){X=0,Q=K,W=0,w=0,$=K;return}else if(V===Math.PI/2){X=0,Q=0,W=Y,w=0,$=Y;return}if(V>0&&V<Math.PI/2){X=(Z*Y/2/Math.tan(V)-K/2)/(Math.tan(V)+Z/Math.tan(V)),Q=Math.tan(V)*X+K,W=Math.abs(Y/2-X)+Y/2,w=K/2-Math.abs(Q-K/2),$=Math.sqrt(Math.pow(W-X,2)+Math.pow(w-Q,2)),U=(Y/2/Math.tan(V)-K/2)/(Math.tan(V)+1/Math.tan(V)),H=Math.tan(V)*U+K,$=2*Math.sqrt(Math.pow(Y/2-U,2)+Math.pow(K/2-H,2));return}else if(V>Math.PI/2&&V<Math.PI){X=(K/2+Z*Y/2/Math.tan(V))/(Math.tan(V)+Z/Math.tan(V)),Q=Math.tan(V)*X,W=Math.abs(Y/2-X)+Y/2,w=K/2+Math.abs(Q-K/2),U=(Y/2/Math.tan(V)+K/2)/(Math.tan(V)+1/Math.tan(V)),H=Math.tan(V)*U,$=2*Math.sqrt(Math.pow(Y/2-U,2)+Math.pow(K/2-H,2));return}else V>=Math.PI&&(A(V-Math.PI),z=X,X=W,W=z,z=Q,Q=w,w=z)};return A(J),{x1:X/Y,y1:Q/K,x2:W/Y,y2:w/K,length:$}}function pH(J,Y,K,Z){let{x1:X,x2:Q,y1:W,y2:w}=K,$=J[0].offset?J[0].offset.unit==="%"?Number(J[0].offset.value)/100:H0(`${J[0].offset.value}${J[0].offset.unit}`,Z.fontSize,Y,Z,!0)/Y:0,z=J.at(-1).offset?J.at(-1).offset.unit==="%"?Number(J.at(-1).offset.value)/100:H0(`${J.at(-1).offset.value}${J.at(-1).offset.unit}`,Z.fontSize,Y,Z,!0)/Y:1,U=(Q-X)*$+X,H=(w-W)*$+W,A=(Q-X)*z+X,V=(w-W)*z+W;return{x1:U,y1:H,x2:A,y2:V}}function iH({id:J,width:Y,height:K,repeatX:Z,repeatY:X},Q,W,w,$,z){var U;let{shape:H,stops:A,position:V,size:L}=F2(Q),[B,O]=W,q=B/2,N=O/2,E=nH(V.x,V.y,B,O,$.fontSize,$);q=E.x,N=E.y;let I=yY(Y,A,$,!1,z),F=`satori_radial_${J}`,j=`satori_pattern_${J}`,T=`satori_mask_${J}`,D=oH(H,L,$.fontSize,{x:q,y:N},[B,O],$),C=s("pattern",{id:j,x:w[0]/Y,y:w[1]/K,width:Z?B/Y:"1",height:X?O/K:"1",patternUnits:"objectBoundingBox"},s("radialGradient",{id:F},I.map((g)=>s("stop",{offset:g.offset||0,"stop-color":g.color})).join(""))+s("mask",{id:T},s("rect",{x:0,y:0,width:B,height:O,fill:"#fff"}))+s("rect",{x:0,y:0,width:B,height:O,fill:((U=I.at(-1))==null?void 0:U.color)||"transparent"})+s(H,{cx:q,cy:N,width:B,height:O,...D,fill:`url(#${F})`,mask:`url(#${T})`}));return[j,C]}function nH(J,Y,K,Z,X,Q){let W={x:K/2,y:Z/2};return J.type==="keyword"?Object.assign(W,TJ(J.value,K,Z,"x")):W.x=H0(`${J.value.value}${J.value.unit}`,X,K,Q,!0)||K/2,Y.type==="keyword"?Object.assign(W,TJ(Y.value,K,Z,"y")):W.y=H0(`${Y.value.value}${Y.value.unit}`,X,Z,Q,!0)||Z/2,W}function TJ(J,Y,K,Z){switch(J){case"center":return{[Z]:Z==="x"?Y/2:K/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:Y};case"bottom":return{y:K}}}function oH(J,Y,K,Z,X,Q){let[W,w]=X,{x:$,y:z}=Z,U={},H=0,A=0;if(rH(Y)){if(Y.some((V)=>V.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(H0(`${Y[0].value.value}${Y[0].value.unit}`,K,W,Q,!0))}:{rx:Number(H0(`${Y[0].value.value}${Y[0].value.unit}`,K,W,Q,!0)),ry:Number(H0(`${Y[1].value.value}${Y[1].value.unit}`,K,w,Q,!0))}}switch(Y[0].value){case"farthest-corner":H=Math.max(Math.abs(W-$),Math.abs($)),A=Math.max(Math.abs(w-z),Math.abs(z));break;case"closest-corner":H=Math.min(Math.abs(W-$),Math.abs($)),A=Math.min(Math.abs(w-z),Math.abs(z));break;case"farthest-side":return J==="circle"?U.r=Math.max(Math.abs(W-$),Math.abs($),Math.abs(w-z),Math.abs(z)):(U.rx=Math.max(Math.abs(W-$),Math.abs($)),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-$),Math.abs($),Math.abs(w-z),Math.abs(z)):(U.rx=Math.min(Math.abs(W-$),Math.abs($)),U.ry=Math.min(Math.abs(w-z),Math.abs(z))),U}if(J==="circle")U.r=Math.sqrt(H*H+A*A);else{let V=A!==0?H/A:1;H===0?(U.rx=0,U.ry=0):(U.ry=Math.sqrt(H*H+A*A*V*V)/V,U.rx=U.ry*V)}return U}function rH(J){return!J.some((Y)=>Y.type==="keyword")}function sH(J,Y){return typeof J=="string"&&J.endsWith("%")?Y*parseFloat(J)/100:+J}function y9(J,{x:Y,y:K,defaultX:Z,defaultY:X}){return(J?J.split(" ").map((Q)=>{try{let W=new Z8(Q);return W.type==="length"||W.type==="number"?W.value:W.value+W.unit}catch{return null}}).filter((Q)=>Q!==null):[Z,X]).map((Q,W)=>sH(Q,[Y,K][W]))}async function hY({id:J,width:Y,height:K,left:Z,top:X},{image:Q,size:W,position:w,repeat:$},z,U){$=$||"repeat",U=U||"background";let H=$==="repeat-x"||$==="repeat",A=$==="repeat-y"||$==="repeat",V=y9(W,{x:Y,y:K,defaultX:Y,defaultY:K}),L=y9(w,{x:Y,y:K,defaultX:0,defaultY:0});if(Q.startsWith("linear-gradient(")||Q.startsWith("repeating-linear-gradient("))return cH({id:J,width:Y,height:K,repeatX:H,repeatY:A},Q,V,L,z,U);if(Q.startsWith("radial-gradient("))return iH({id:J,width:Y,height:K,repeatX:H,repeatY:A},Q,V,L,z,U);if(Q.startsWith("url(")){let B=y9(W,{x:Y,y:K,defaultX:0,defaultY:0}),[O,q,N]=await Z4(Q.slice(4,-1)),E=U==="mask"?q||B[0]:B[0]||q,I=U==="mask"?N||B[1]:B[1]||N;return[`satori_bi${J}`,s("pattern",{id:`satori_bi${J}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:L[0]+Z,y:L[1]+X,width:H?E:"100%",height:A?I:"100%"},s("image",{x:0,y:0,width:E,height:I,preserveAspectRatio:"none",href:O}))]}throw Error(`Invalid background image: "${Q}"`)}function aH([J,Y]){return Math.round(J*1000)===0&&Math.round(Y*1000)===0?0:Math.round(J*Y/Math.sqrt(J*J+Y*Y)*1000)/1000}function b8(J,Y,K){return K<J+Y&&(K/2<J&&K/2<Y?J=Y=K/2:K/2<J?J=K-Y:K/2<Y&&(Y=K-J)),[J,Y]}function f8(J){J[0]=J[1]=Math.min(J[0],J[1])}function m8(J,Y,K,Z,X){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(H0(Q[0],Z,Y,X,!0),Y),Math.min(H0(Q[1],Z,K,X,!0),K)]]}return typeof J=="number"?[!0,[Math.min(J,Y),Math.min(J,K)]]:[!0,void 0]}var c8=(J)=>J&&J[0]!==0&&J[1]!==0;function tH({id:J,borderRadiusPath:Y,borderType:K,left:Z,top:X,width:Q,height:W},w){let $=`satori_brc-${J}`;return[s("clipPath",{id:$},s(K,{x:Z,y:X,width:Q,height:W,d:Y||void 0})),$]}function t8({left:J,top:Y,width:K,height:Z},X,Q){let{borderTopLeftRadius:W,borderTopRightRadius:w,borderBottomLeftRadius:$,borderBottomRightRadius:z,fontSize:U}=X,H,A,V,L;if([H,W]=m8(W,K,Z,U,X),[A,w]=m8(w,K,Z,U,X),[V,$]=m8($,K,Z,U,X),[L,z]=m8(z,K,Z,U,X),!Q&&!c8(W)&&!c8(w)&&!c8($)&&!c8(z))return"";W||=[0,0],w||=[0,0],$||=[0,0],z||=[0,0],[W[0],w[0]]=b8(W[0],w[0],K),[$[0],z[0]]=b8($[0],z[0],K),[W[1],$[1]]=b8(W[1],$[1],Z),[w[1],z[1]]=b8(w[1],z[1],Z),H&&f8(W),A&&f8(w),V&&f8($),L&&f8(z);let B=[];B[0]=[w,w],B[1]=[z,[-z[0],z[1]]],B[2]=[$,[-$[0],-$[1]]],B[3]=[W,[W[0],-W[1]]];let O=`h${K-W[0]-w[0]} a${B[0][0]} 0 0 1 ${B[0][1]}`,q=`v${Z-w[1]-z[1]} a${B[1][0]} 0 0 1 ${B[1][1]}`,N=`h${z[0]+$[0]-K} a${B[2][0]} 0 0 1 ${B[2][1]}`,E=`v${$[1]+W[1]-Z} a${B[3][0]} 0 0 1 ${B[3][1]}`;if(Q){let I=function(r){let l=aH([W,w,z,$][r]);return r===0?[[J+W[0]-l,Y+W[1]-l],[J+W[0],Y]]:r===1?[[J+K-w[0]+l,Y+w[1]-l],[J+K,Y+w[1]]]:r===2?[[J+K-z[0]+l,Y+Z-z[1]+l],[J+K-z[0],Y+Z]]:[[J+$[0]-l,Y+Z-$[1]+l],[J,Y+Z-$[1]]]},F=Q.indexOf(!1);if(!Q.includes(!0))throw Error("Invalid `partialSides`.");if(F===-1)F=0;else for(;!Q[F];)F=(F+1)%4;let j="",T=I(F),D=`M${T[0]} A${B[(F+3)%4][0]} 0 0 1 ${T[1]}`,C=0;for(;C<4&&Q[(F+C)%4];C++)j+=D+" ",D=[O,q,N,E][(F+C)%4];let g=(F+C)%4;j+=D.split(" ")[0];let d=I(g);return j+=` A${B[(g+3)%4][0]} 0 0 1 ${d[0]}`,j}return`M${J+W[0]},${Y} ${O} ${q} ${N} ${E}`}function PJ(J,Y,K){return K[J+"Width"]===K[Y+"Width"]&&K[J+"Style"]===K[Y+"Style"]&&K[J+"Color"]===K[Y+"Color"]}function eH({id:J,currentClipPathId:Y,borderPath:K,borderType:Z,left:X,top:Q,width:W,height:w},$){if(!($.borderTopWidth||$.borderRightWidth||$.borderBottomWidth||$.borderLeftWidth))return null;let z=`satori_bc-${J}`;return[s("clipPath",{id:z,"clip-path":Y?`url(#${Y})`:void 0},s(Z,{x:X,y:Q,width:W,height:w,d:K||void 0})),z]}function gY({left:J,top:Y,width:K,height:Z,props:X,asContentMask:Q,maskBorderOnly:W},w){let $=["borderTop","borderRight","borderBottom","borderLeft"];if(!Q&&!$.some((V)=>w[V+"Width"]))return"";let z="",U=0;for(;U>0&&PJ($[U],$[(U+3)%4],w);)U=(U+3)%4;let H=[!1,!1,!1,!1],A=[];for(let V=0;V<4;V++){let L=(U+V)%4,B=(U+V+1)%4,O=$[L],q=$[B];if(H[L]=!0,A=[w[O+"Width"],w[O+"Style"],w[O+"Color"],O],!PJ(O,q,w)){let N=(A[0]||0)+(Q&&!W&&w[O.replace("border","padding")]||0);N&&(z+=s("path",{width:K,height:Z,...X,fill:"none",stroke:Q?"#000":A[2],"stroke-width":N*2,"stroke-dasharray":!Q&&A[1]==="dashed"?N*2+" "+N:void 0,d:t8({left:J,top:Y,width:K,height:Z},w,H)})),H=[!1,!1,!1,!1]}}if(H.some(Boolean)){let V=(A[0]||0)+(Q&&!W&&w[A[3].replace("border","padding")]||0);V&&(z+=s("path",{width:K,height:Z,...X,fill:"none",stroke:Q?"#000":A[2],"stroke-width":V*2,"stroke-dasharray":!Q&&A[1]==="dashed"?V*2+" "+V:void 0,d:t8({left:J,top:Y,width:K,height:Z},w,H)}))}return z}function JA({id:J,left:Y,top:K,width:Z,height:X,matrix:Q,borderOnly:W},w){let $=(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),H=(w.borderBottomWidth||0)+(W?0:w.paddingBottom||0),A={x:Y+$,y:K+z,width:Z-$-U,height:X-z-H};return s("mask",{id:J},s("rect",{...A,fill:"#fff",transform:w.overflow==="hidden"&&w.transform&&Q?Q:void 0,mask:w._inheritedMaskId?`url(#${w._inheritedMaskId})`:void 0})+gY({left:Y,top:K,width:Z,height:X,props:{transform:Q||void 0},asContentMask:!0,maskBorderOnly:W},w))}var a5={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/};function YA({width:J,height:Y},K,Z){function X(z){let U=z.match(a5.circle);if(!U)return null;let[,H]=U,[A,V=""]=H.split("at").map((O)=>O.trim()),{x:L,y:B}=vJ(V,J,Y);return{type:"circle",r:H0(A,Z.fontSize,Math.sqrt(Math.pow(J,2)+Math.pow(Y,2))/Math.sqrt(2),Z,!0),cx:H0(L,Z.fontSize,J,Z,!0),cy:H0(B,Z.fontSize,Y,Z,!0)}}function Q(z){let U=z.match(a5.ellipse);if(!U)return null;let[,H]=U,[A,V=""]=H.split("at").map((N)=>N.trim()),[L,B]=A.split(" "),{x:O,y:q}=vJ(V,J,Y);return{type:"ellipse",rx:H0(L||"50%",Z.fontSize,J,Z,!0),ry:H0(B||"50%",Z.fontSize,Y,Z,!0),cx:H0(O,Z.fontSize,J,Z,!0),cy:H0(q,Z.fontSize,Y,Z,!0)}}function W(z){let U=z.match(a5.path);if(!U)return null;let[H,A]=SJ(U[1]);return{type:"path",d:A,"fill-rule":H}}function w(z){let U=z.match(a5.polygon);if(!U)return null;let[H,A]=SJ(U[1]);return{type:"polygon","fill-rule":H,points:A.split(",").map((V)=>V.split(" ").map((L,B)=>H0(L,Z.fontSize,B===0?J:Y,Z,!0)).join(" ")).join(",")}}function $(z){let U=z.match(a5.inset);if(!U)return null;let[H,A]=(U[1].includes("round")?U[1]:`${U[1].trim()} round 0`).split("round"),V=l9.getStylesForProperty("borderRadius",A,!0),L=Object.values(V).map((I)=>String(I)).map((I,F)=>H0(I,Z.fontSize,F===0||F===2?Y:J,Z,!0)||0),B=Object.values(l9.getStylesForProperty("margin",H,!0)).map((I)=>String(I)).map((I,F)=>H0(I,Z.fontSize,F===0||F===2?Y:J,Z,!0)||0),O=B[3],q=B[0],N=J-(B[1]+B[3]),E=Y-(B[0]+B[2]);return L.some((I)=>I>0)?{type:"path",d:t8({left:O,top:q,width:N,height:E},{...K,...V})}:{type:"rect",x:O,y:q,width:N,height:E}}return{parseCircle:X,parseEllipse:Q,parsePath:W,parsePolygon:w,parseInset:$}}function SJ(J){let[,Y="nonzero",K]=J.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[Y,K]}function vJ(J,Y,K){let Z=J.split(" "),X={x:Z[0]||"50%",y:Z[1]||"50%"};return Z.forEach((Q)=>{Q==="top"?X.y=0:Q==="bottom"?X.y=K:Q==="left"?X.x=0:Q==="right"?X.x=Y:Q==="center"&&(X.x=Y/2,X.y=K/2)}),X}function Q4(J){return`satori_cp-${J}`}function KA(J){return`url(#${Q4(J)})`}function ZA(J,Y,K){if(Y.clipPath==="none")return"";let Z=YA(J,Y,K),X=Y.clipPath,Q={type:""};for(let W of Object.keys(Z))if(Q=Z[W](X),Q)break;if(Q){let{type:W,...w}=Q;return s("clipPath",{id:Q4(J.id),"clip-path":J.currentClipPath,transform:`translate(${J.left}, ${J.top})`},s(W,w))}return""}function XA({left:J,top:Y,width:K,height:Z,path:X,matrix:Q,id:W,currentClipPath:w,src:$},z,U){let H="",A=z.clipPath&&z.clipPath!=="none"?ZA({left:J,top:Y,width:K,height:Z,path:X,id:W,matrix:Q,currentClipPath:w,src:$},z,U):"";if(z.overflow!=="hidden"&&!$)H="";else{let L=A?`satori_ocp-${W}`:Q4(W);H=s("clipPath",{id:L,"clip-path":w},s(X?"path":"rect",{x:J,y:Y,width:K,height:Z,d:X||void 0,transform:z.overflow==="hidden"&&z.transform&&Q?Q:void 0}))}let V=JA({id:`satori_om-${W}`,left:J,top:Y,width:K,height:Z,matrix:Q,borderOnly:!$},z);return A+H+V}var QA=(J)=>`satori_mi-${J}`;async function WA(J,Y,K){if(!Y.maskImage)return["",""];let{left:Z,top:X,width:Q,height:W,id:w}=J,$=Y.maskImage,z=$.length;if(!z)return["",""];let U=QA(w),H="";for(let A=0;A<z;A++){let V=$[A],[L,B]=await hY({id:`${U}-${A}`,left:Z,top:X,width:Q,height:W},V,K,"mask");H+=B+s("rect",{x:Z,y:X,width:Q,height:W,fill:`url(#${L})`})}return H=s("mask",{id:U},H),[U,H]}async function h9({id:J,left:Y,top:K,width:Z,height:X,isInheritingTransform:Q,src:W,debug:w},$,z){if($.display==="none")return"";let U=!!W,H="rect",A="",V="",L=[],B=1,O="";$.backgroundColor&&L.push($.backgroundColor),$.opacity!==void 0&&(B=+$.opacity),$.transform&&(A=vY({left:Y,top:K,width:Z,height:X},$.transform,Q,$.transformOrigin));let q="";if($.backgroundImage){let k=[];for(let R=0;R<$.backgroundImage.length;R++){let c=$.backgroundImage[R],u=await hY({id:J+"_"+R,width:Z,height:X,left:Y,top:K},c,z);u&&k.unshift(u)}for(let R of k)L.push(`url(#${R[0]})`),V+=R[1],R[2]&&(q+=R[2])}let[N,E]=await WA({id:J,left:Y,top:K,width:Z,height:X},$,z);V+=E;let I=N?`url(#${N})`:$._inheritedMaskId?`url(#${$._inheritedMaskId})`:void 0,F=t8({left:Y,top:K,width:Z,height:X},$);F&&(H="path");let j=$._inheritedClipPathId;w&&(O=s("rect",{x:Y,y:K,width:Z,height:X,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:A||void 0,"clip-path":j?`url(#${j})`:void 0}));let{backgroundClip:T,filter:D}=$,C=T==="text"?`url(#satori_bct-${J})`:j?`url(#${j})`:$.clipPath?KA(J):void 0,g=XA({left:Y,top:K,width:Z,height:X,path:F,id:J,matrix:A,currentClipPath:C,src:W},$,z),d=L.map((k)=>s(H,{x:Y,y:K,width:Z,height:X,fill:k,d:F||void 0,transform:A||void 0,"clip-path":$.transform?void 0:C,style:D?`filter:${D}`:void 0,mask:$.transform?void 0:I})).join(""),r=eH({id:J,left:Y,top:K,width:Z,height:X,currentClipPathId:j,borderPath:F,borderType:H},$),l;if(U){let k=($.borderLeftWidth||0)+($.paddingLeft||0),R=($.borderTopWidth||0)+($.paddingTop||0),c=($.borderRightWidth||0)+($.paddingRight||0),u=($.borderBottomWidth||0)+($.paddingBottom||0),a=$.objectFit==="contain"?"xMidYMid":$.objectFit==="cover"?"xMidYMid slice":"none";$.transform&&(l=tH({id:J,borderRadiusPath:F,borderType:H,left:Y,top:K,width:Z,height:X},$)),d+=s("image",{x:Y+k,y:K+R,width:Z-k-c,height:X-R-u,href:W,preserveAspectRatio:a,transform:A||void 0,style:D?`filter:${D}`:void 0,"clip-path":$.transform?l?`url(#${l[1]})`:void 0:`url(#satori_cp-${J})`,mask:$.transform?void 0:N?`url(#${N})`:`url(#satori_om-${J})`})}if(r){V+=r[0];let k=r[1];d+=gY({left:Y,top:K,width:Z,height:X,props:{transform:A||void 0,"clip-path":`url(#${k})`}},$)}let P=RH({width:Z,height:X,id:J,opacity:B,shape:s(H,{x:Y,y:K,width:Z,height:X,fill:"#fff",stroke:"#fff","stroke-width":0,d:F||void 0,transform:A||void 0,"clip-path":C,mask:I})},$);return(V?s("defs",{},V):"")+(P?P[0]:"")+(l?l[0]:"")+g+(B!==1?`<g opacity="${B}">`:"")+($.transform&&(C||I)?`<g${C?` clip-path="${C}"`:""}${I?` mask="${I}"`:""}>`:"")+(q||d)+($.transform&&(C||I)?"</g>":"")+(B!==1?"</g>":"")+(P?P[1]:"")+O}var $A=()=>/[#*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,wA=new RegExp($A(),""),p9={emoji:wA,symbol:/\p{Symbol}/u,math:/\p{Math}/u},i9={"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},W4=Object.keys({...i9,...p9});function zA(J){return W4.includes(J)}function UA(J,Y){for(let Z of Object.keys(p9))if(p9[Z].test(J))return[Z];let K=Object.keys(i9).filter((Z)=>i9[Z].test(J));if(K.length===0)return["unknown"];if(Y){let Z=K.findIndex((X)=>X===Y);Z!==-1&&(K.splice(Z,1),K.unshift(Y))}return K}function HA(J){if(J)return W4.find((Y)=>Y.toLowerCase().startsWith(J.toLowerCase()))}async function*n9(J,Y){var K;let Z=await K6(),{id:X,inheritedStyle:Q,parent:W,font:w,debug:$,locale:z,embedFont:U=!0,graphemeImages:H,canLoadAdditionalAssets:A,getTwStyles:V}=Y;if(J===null||typeof J>"u")return yield,yield,"";if(!i8(J)||typeof J.type=="function"){let y;if(!i8(J))y=bH(String(J),Y),yield(await y.next()).value;else{if(cU(J.type))throw Error("Class component is not supported.");y=n9(J.type(J.props),Y),yield(await y.next()).value}await y.next();let p=yield;return(await y.next(p)).value}let{type:L,props:B}=J;if(B&&dU(B))throw Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:O,children:q,tw:N,lang:E=z}=B||{},I=HA(E);if(N){let y=V(N,O);O=Object.assign(y,O)}let F=Z.Node.create();W.insertChild(F,W.getChildCount());let[j,T]=await jH(F,L,Q,O,B),D=j.transform===Q.transform;if(D||(j.transform.__parent=Q.transform),(j.overflow==="hidden"||j.clipPath&&j.clipPath!=="none")&&(T._inheritedClipPathId=`satori_cp-${X}`,T._inheritedMaskId=`satori_om-${X}`),j.maskImage&&(T._inheritedMaskId=`satori_mi-${X}`),j.backgroundClip==="text"){let y={value:""};T._inheritedBackgroundClipTextPath=y,j._inheritedBackgroundClipTextPath=y}let C=uU(q),g=[],d=0,r=[];for(let y of C){let p=n9(y,{id:X+"-"+d++,parentStyle:j,inheritedStyle:T,isInheritingTransform:!0,parent:F,font:w,embedFont:U,debug:$,graphemeImages:H,canLoadAdditionalAssets:A,locale:I,getTwStyles:V,onNodeDetected:Y.onNodeDetected});A?r.push(...(await p.next()).value||[]):await p.next(),g.push(p)}yield r;for(let y of g)await y.next();let[l,P]=yield,{left:k,top:R,width:c,height:u}=F.getComputedLayout();k+=l,R+=P;let a="",n="",m="",{children:x,...S}=B;if((K=Y.onNodeDetected)==null||K.call(Y,{left:k,top:R,width:c,height:u,type:L,props:S,key:J.key,textContent:i8(x)?void 0:x}),L==="img"){let y=j.__src;n=await h9({id:X,left:k,top:R,width:c,height:u,src:y,isInheritingTransform:D,debug:$},j,T)}else if(L==="svg"){let y=j.color,p=await WH(J,y);n=await h9({id:X,left:k,top:R,width:c,height:u,src:p,isInheritingTransform:D,debug:$},j,T)}else{let y=O==null?void 0:O.display;if(L==="div"&&q&&typeof q!="string"&&y!=="flex"&&y!=="none")throw Error('Expected <div> to have explicit "display: flex" or "display: none" if it has more than one child node.');n=await h9({id:X,left:k,top:R,width:c,height:u,isInheritingTransform:D,debug:$},j,T)}for(let y of g)a+=(await y.next([k,R])).value;return j._inheritedBackgroundClipTextPath&&(m+=s("clipPath",{id:`satori_bct-${X}`,"clip-path":j._inheritedClipPathId?`url(#${j._inheritedClipPathId})`:void 0},j._inheritedBackgroundClipTextPath.value)),m+n+a}var xY="unknown";function AA(J,Y,[K,Z],[X,Q]){if(K!==X)return K?!X||K===J?-1:X===J?1:J===400&&K===500||J===500&&K===400?-1:J===400&&X===500||J===500&&X===400?1:J<400?K<J&&X<J?X-K:K<J?-1:X<J?1:K-X:J<K&&J<X?K-X:J<K?-1:J<X?1:X-K:1;if(Z!==Q){if(Z===Y)return-1;if(Q===Y)return 1}return-1}var VA=class{constructor(J){this.fonts=new Map,this.addFonts(J)}get({name:J,weight:Y,style:K}){if(!this.fonts.has(J))return null;Y==="normal"&&(Y=400),Y==="bold"&&(Y=700),typeof Y=="string"&&(Y=Number.parseInt(Y,10));let Z=[...this.fonts.get(J)],X=Z[0];for(let Q=1;Q<Z.length;Q++){let[,W,w]=X,[,$,z]=Z[Q];AA(Y,K,[W,w],[$,z])>0&&(X=Z[Q])}return X[0]}addFonts(J){for(let Y of J){let{name:K,data:Z,lang:X}=Y;if(X&&!zA(X))throw Error(`Invalid value for props \`lang\`: "${X}". The value must be one of the following: ${W4.join(", ")}.`);let Q=X??xY,W=y8.parse("buffer"in Z?Z.buffer.slice(Z.byteOffset,Z.byteOffset+Z.byteLength):Z,{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 $=`${K.toLowerCase()}_${Q}`;this.fonts.has($)||this.fonts.set($,[]),this.fonts.get($).push([W,Y.weight,Y.style])}}getEngine(J=16,Y="normal",{fontFamily:K="sans-serif",fontWeight:Z=400,fontStyle:X="normal"},Q){if(!this.fonts.size)throw Error("No fonts are loaded. At least one font is required to calculate the layout.");K=(Array.isArray(K)?K:[K]).map((q)=>q.toLowerCase());let W=[];K.forEach((q)=>{let N=this.get({name:q,weight:Z,style:X});if(N){W.push(N);return}let E=this.get({name:q+"_unknown",weight:Z,style:X});if(E){W.push(E);return}});let w=Array.from(this.fonts.keys()),$=[],z=[],U=[];for(let q of w)if(!K.includes(q))if(Q){let N=BA(q);N?N===Q?$.push(this.get({name:q,weight:Z,style:X})):z.push(this.get({name:q,weight:Z,style:X})):U.push(this.get({name:q,weight:Z,style:X}))}else U.push(this.get({name:q,weight:Z,style:X}));let H=new Map,A=(q,N=!0)=>{let E=[...W,...U,...$,...N?z:[]];if(typeof q>"u")return N?E[E.length-1]:void 0;let I=q.charCodeAt(0);if(H.has(I))return H.get(I);let F=E.find((j,T)=>!!j.charToGlyphIndex(q)||N&&T===E.length-1);return F&&H.set(I,F),F},V=(q,N=!1)=>{var E,I;return((N?(I=(E=q.tables)==null?void 0:E.os2)==null?void 0:I.sTypoAscender:0)||q.ascender)/q.unitsPerEm*J},L=(q,N=!1)=>{var E,I;return((N?(I=(E=q.tables)==null?void 0:E.os2)==null?void 0:I.sTypoDescender:0)||q.descender)/q.unitsPerEm*J},B=(q,N=!1)=>{var E,I;if(typeof Y=="string"&&Y==="normal"){let F=(N?(I=(E=q.tables)==null?void 0:E.os2)==null?void 0:I.sTypoLineGap:0)||0;return V(q,N)-L(q,N)+F/q.unitsPerEm*J}else if(typeof Y=="number")return J*Y},O=(q)=>A(q,!1);return{has:(q)=>{if(q===`
|
|
66
|
+
`)return!0;let N=O(q);return N?(N._trackBrokenChars=[],N.stringToGlyphs(q),N._trackBrokenChars.length?(N._trackBrokenChars=void 0,!1):!0):!1},baseline:(q,N=typeof q>"u"?W[0]:A(q))=>{let E=V(N),I=L(N),F=E-I;return E+(B(N)-F)/2},height:(q,N=typeof q>"u"?W[0]:A(q))=>B(N),measure:(q,N)=>this.measure(A,q,N),getSVG:(q,N)=>this.getSVG(A,q,N)}}patchFontFallbackResolver(J,Y){let K=[];J._trackBrokenChars=K;let Z=J.stringToGlyphs;return J.stringToGlyphs=(X,...Q)=>{let W=Z.call(J,X,...Q);for(let w=0;w<W.length;w++)if(W[w].unicode===void 0){let $=K.shift(),z=Y($);if(z!==J){let U=z.charToGlyph($),H=J.unitsPerEm/z.unitsPerEm,A=new y8.Path;A.unitsPerEm=J.unitsPerEm,A.commands=U.path.commands.map((L)=>{let B={...L};for(let O in B)typeof B[O]=="number"&&(B[O]*=H);return B});let V=new y8.Glyph({...U,advanceWidth:U.advanceWidth*H,xMin:U.xMin*H,xMax:U.xMax*H,yMin:U.yMin*H,yMax:U.yMax*H,path:A});W[w]=V}}return W},()=>{J.stringToGlyphs=Z,J._trackBrokenChars=void 0}}measure(J,Y,{fontSize:K,letterSpacing:Z=0}){let X=J(Y),Q=this.patchFontFallbackResolver(X,J);try{return X.getAdvanceWidth(Y,K,{letterSpacing:Z/K})}finally{Q()}}getSVG(J,Y,{fontSize:K,top:Z,left:X,letterSpacing:Q=0}){let W=J(Y),w=this.patchFontFallbackResolver(W,J);try{return K===0?"":W.getPath(Y.replace(/\n/g,""),X,Z,K,{letterSpacing:Q/K}).toPathData(1)}finally{w()}}};function BA(J){let Y=J.split("_"),K=Y[Y.length-1];return K===xY?void 0:K}function GA({width:J,height:Y,content:K}){return s("svg",{width:J,height:Y,viewBox:`0 0 ${J} ${Y}`,xmlns:"http://www.w3.org/2000/svg"},K)}var OA=nz(TU()),LA=["ios","android","windows","macos","web"];function MA(J){return LA.includes(J)}var qA=["portrait","landscape"];function NA(J){return qA.includes(J)}var kJ;(function(J){J.fontSize="fontSize",J.lineHeight="lineHeight"})(kJ||(kJ={}));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 hJ(J){return typeof J=="object"}var g9;function b(J){return{kind:"complete",style:J}}function X1(J,Y={}){let{fractions:K}=Y;if(K&&J.includes("/")){let[Q="",W=""]=J.split("/",2),w=X1(Q),$=X1(W);return!w||!$?null:[w[0]/$[0],$[1]]}let Z=parseFloat(J);if(Number.isNaN(Z))return null;let X=J.match(/(([a-z]{2,}|%))$/);if(!X)return[Z,q0.none];switch(X==null?void 0:X[1]){case"rem":return[Z,q0.rem];case"px":return[Z,q0.px];case"em":return[Z,q0.em];case"%":return[Z,q0.percent];case"vw":return[Z,q0.vw];case"vh":return[Z,q0.vh];default:return null}}function X8(J,Y,K={}){let Z=W5(Y,K);return Z===null?null:b({[J]:Z})}function x9(J,Y,K){let Z=W5(Y);return Z!==null&&(K[J]=Z),K}function jA(J,Y){let K=W5(Y);return K===null?null:{[J]:K}}function W5(J,Y={}){if(J===void 0)return null;let K=X1(String(J),Y);return K?Q8(...K,Y):null}function Q8(J,Y,K={}){let{isNegative:Z,device:X}=K;switch(Y){case q0.rem:return J*16*(Z?-1:1);case q0.px:return J*(Z?-1:1);case q0.percent:return`${Z?"-":""}${J}%`;case q0.none:return J*(Z?-1:1);case q0.vw:return X!=null&&X.windowDimensions?X.windowDimensions.width*(J/100):(k1("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case q0.vh:return X!=null&&X.windowDimensions?X.windowDimensions.height*(J/100):(k1("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function gJ(J){let Y=X1(J);if(!Y)return null;let[K,Z]=Y;switch(Z){case q0.rem:return K*16;case q0.px:return K;default:return null}}var EA={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function bY(J){return EA[J??""]||"All"}function fY(J){let Y="All";return[J.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(K,Z)=>(Y=bY(Z),"")),Y]}function $6(J,Y={}){if(J.includes("/")){let K=xJ(J,{...Y,fractions:!0});if(K)return K}return J[0]==="["&&(J=J.slice(1,-1)),xJ(J,Y)}function $5(J,Y,K={}){let Z=$6(Y,K);return Z===null?null:b({[J]:Z})}function xJ(J,Y={}){if(J==="px")return 1;let K=X1(J,Y);if(!K)return null;let[Z,X]=K;return Y.fractions&&(X=q0.percent,Z*=100),X===q0.none&&(Z=Z/4,X=q0.rem),Q8(Z,X,Y)}function FA(...J){console.warn(...J)}function _A(...J){}var k1=typeof process>"u"||((g9=process==null?void 0:process.env)===null||g9===void 0?void 0:g9.JEST_WORKER_ID)===void 0?FA:_A,IA=[["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",t5("oldstyle-nums")],["small-caps",t5("small-caps")],["lining-nums",t5("lining-nums")],["tabular-nums",t5("tabular-nums")],["proportional-nums",t5("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=IA;function t5(J){return{kind:"dependent",complete(Y){(!Y.fontVariant||!Array.isArray(Y.fontVariant))&&(Y.fontVariant=[]),Y.fontVariant.push(J)}}}var DA=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,Y){this.styles.set(J,Y)}getIr(J){return this.ir.get(J)}setIr(J,Y){this.ir.set(J,Y)}getPrefixMatch(J){return this.prefixes.get(J)}setPrefixMatch(J,Y){this.prefixes.set(J,Y)}};function RA(J,Y,K={}){let Z=Y==null?void 0:Y[J];if(!Z)return $5("fontSize",J,K);if(typeof Z=="string")return X8("fontSize",Z);let X={},[Q,W]=Z,w=jA("fontSize",Q);if(w&&(X=w),typeof W=="string")return b(x9("lineHeight",fJ(W,X),X));let{lineHeight:$,letterSpacing:z}=W;return $&&x9("lineHeight",fJ($,X),X),z&&x9("letterSpacing",z,X),b(X)}function fJ(J,Y){let K=X1(J);if(K){let[Z,X]=K;if((X===q0.none||X===q0.em)&&typeof Y.fontSize=="number")return Y.fontSize*Z}return J}function CA(J,Y){var K;let Z=(K=Y==null?void 0:Y[J])!==null&&K!==void 0?K:J.startsWith("[")?J.slice(1,-1):J,X=X1(Z);if(!X)return null;let[Q,W]=X;if(W===q0.none)return{kind:"dependent",complete($){if(typeof $.fontSize!="number")return"relative line-height utilities require that font-size be set";$.lineHeight=$.fontSize*Q}};let w=Q8(Q,W);return w!==null?b({lineHeight:w}):null}function TA(J,Y,K,Z,X){let Q="";if(Z[0]==="[")Q=Z.slice(1,-1);else{let z=X==null?void 0:X[Z];if(z)Q=z;else{let U=$6(Z);return U&&typeof U=="number"?mJ(U,q0.px,Y,J):null}}if(Q==="auto")return mY(Y,J,"auto");let W=X1(Q);if(!W)return null;let[w,$]=W;return K&&(w=-w),mJ(w,$,Y,J)}function mJ(J,Y,K,Z){let X=Q8(J,Y);return X===null?null:mY(K,Z,X)}function mY(J,Y,K){switch(J){case"All":return{kind:"complete",style:{[`${Y}Top`]:K,[`${Y}Right`]:K,[`${Y}Bottom`]:K,[`${Y}Left`]:K}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${Y}${J}`]:K}};case"Vertical":return{kind:"complete",style:{[`${Y}Top`]:K,[`${Y}Bottom`]:K}};case"Horizontal":return{kind:"complete",style:{[`${Y}Left`]:K,[`${Y}Right`]:K}};default:return null}}function PA(J){if(!J)return{};let Y=Object.entries(J).reduce((X,[Q,W])=>{let w=[0,1/0,0],$=typeof W=="string"?{min:W}:W,z=$.min?gJ($.min):0;z===null?k1(`invalid screen config value: ${Q}->min: ${$.min}`):w[0]=z;let U=$.max?gJ($.max):1/0;return U===null?k1(`invalid screen config value: ${Q}->max: ${$.max}`):w[1]=U,X[Q]=w,X},{}),K=Object.values(Y);K.sort((X,Q)=>{let[W,w]=X,[$,z]=Q;return w===1/0||z===1/0?W-$:w-z});let Z=0;return K.forEach((X)=>X[2]=Z++),Y}function SA(J,Y){let K=Y==null?void 0:Y[J];if(!K)return null;if(typeof K=="string")return b({fontFamily:K});let Z=K[0];return Z?b({fontFamily:Z}):null}function J8(J,Y,K){if(!K)return null;let Z;Y.includes("/")&&([Y="",Z]=Y.split("/",2));let X="";if(Y.startsWith("[#")||Y.startsWith("[rgb")?X=Y.slice(1,-1):X=cY(Y,K),!X)return null;if(Z){let Q=Number(Z);if(!Number.isNaN(Q))return X=cJ(X,Q/100),b({[s8[J].color]:X})}return{kind:"dependent",complete(Q){let W=s8[J].opacity,w=Q[W];typeof w=="number"&&(X=cJ(X,w)),Q[s8[J].color]=X}}}function d8(J,Y){let K=parseInt(Y,10);if(Number.isNaN(K))return null;let Z=K/100;return{kind:"complete",style:{[s8[J].opacity]:Z}}}function cJ(J,Y){return J.startsWith("#")?J=kA(J):J.startsWith("rgb(")&&(J=J.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),J.replace(/, ?\d*\.?(\d+)\)$/,`, ${Y})`)}function vA(J){for(let Y in J)Y.startsWith("__opacity_")&&delete J[Y]}var s8={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 kA(J){let Y=J;J=J.replace(yA,(W,w,$,z)=>w+w+$+$+z+z);let K=hA.exec(J);if(!K)return k1(`invalid config hex color value: ${Y}`),"rgba(0, 0, 0, 1)";let Z=parseInt(K[1],16),X=parseInt(K[2],16),Q=parseInt(K[3],16);return`rgba(${Z}, ${X}, ${Q}, 1)`}function cY(J,Y){let K=Y[J];if(yJ(K))return K;if(hJ(K)&&yJ(K.DEFAULT))return K.DEFAULT;let[Z="",...X]=J.split("-");for(;Z!==J;){let Q=Y[Z];if(hJ(Q))return cY(X.join("-"),Q);if(X.length===0)return"";Z=`${Z}-${X.shift()}`}return""}var yA=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,hA=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function gA(J,Y){let[K,Z]=fY(J);if(K.match(/^(-?(\d)+)?$/))return xA(K,Z,Y==null?void 0:Y.borderWidth);if(K=K.replace(/^-/,""),["dashed","solid","dotted"].includes(K))return b({borderStyle:K});let X="border";switch(Z){case"Bottom":X="borderBottom";break;case"Top":X="borderTop";break;case"Left":X="borderLeft";break;case"Right":X="borderRight";break}let Q=J8(X,K,Y==null?void 0:Y.borderColor);if(Q)return Q;let W=`border${Z==="All"?"":Z}Width`;K=K.replace(/^-/,"");let w=K.slice(1,-1),$=$5(W,w);return typeof($==null?void 0:$.style[W])!="number"?null:$}function xA(J,Y,K){if(!K)return null;J=J.replace(/^-/,"");let Z=K[J===""?"DEFAULT":J];if(Z===void 0)return null;let X=`border${Y==="All"?"":Y}Width`;return X8(X,Z)}function bA(J,Y){if(!Y)return null;let[K,Z]=fY(J);K=K.replace(/^-/,""),K===""&&(K="DEFAULT");let X=`border${Z==="All"?"":Z}Radius`,Q=Y[K];if(Q)return dJ(X8(X,Q));let W=$5(X,K);return typeof(W==null?void 0:W.style[X])!="number"?null:dJ(W)}function dJ(J){if((J==null?void 0:J.kind)!=="complete")return J;let Y=J.style.borderTopRadius;Y!==void 0&&(J.style.borderTopLeftRadius=Y,J.style.borderTopRightRadius=Y,delete J.style.borderTopRadius);let K=J.style.borderBottomRadius;K!==void 0&&(J.style.borderBottomLeftRadius=K,J.style.borderBottomRightRadius=K,delete J.style.borderBottomRadius);let Z=J.style.borderLeftRadius;Z!==void 0&&(J.style.borderBottomLeftRadius=Z,J.style.borderTopLeftRadius=Z,delete J.style.borderLeftRadius);let X=J.style.borderRightRadius;return X!==void 0&&(J.style.borderBottomRightRadius=X,J.style.borderTopRightRadius=X,delete J.style.borderRightRadius),J}function e5(J,Y,K,Z){let X=null;J==="inset"&&(Y=Y.replace(/^(x|y)-/,(w,$)=>(X=$==="x"?"x":"y","")));let Q=Z==null?void 0:Z[Y];if(Q){let w=W5(Q,{isNegative:K});if(w!==null)return uJ(J,X,w)}let W=$6(Y,{isNegative:K});return W!==null?uJ(J,X,W):null}function uJ(J,Y,K){if(J!=="inset")return b({[J]:K});switch(Y){case null:return b({top:K,left:K,right:K,bottom:K});case"y":return b({top:K,bottom:K});case"x":return b({left:K,right:K})}}function u8(J,Y,K){var Z;Y=Y.replace(/^-/,"");let X=Y===""?"DEFAULT":Y,Q=Number((Z=K==null?void 0:K[X])!==null&&Z!==void 0?Z:Y);return Number.isNaN(Q)?null:b({[`flex${J}`]:Q})}function fA(J,Y){var K,Z;if(J=(Y==null?void 0:Y[J])||J,["min-content","revert","unset"].includes(J))return null;if(J.match(/^\d+(\.\d+)?$/))return b({flexGrow:Number(J),flexBasis:"0%"});let X=J.match(/^(\d+)\s+(\d+)$/);if(X)return b({flexGrow:Number(X[1]),flexShrink:Number(X[2])});if(X=J.match(/^(\d+)\s+([^ ]+)$/),X){let Q=W5((K=X[2])!==null&&K!==void 0?K:"");return Q?b({flexGrow:Number(X[1]),flexBasis:Q}):null}if(X=J.match(/^(\d+)\s+(\d+)\s+(.+)$/),X){let Q=W5((Z=X[3])!==null&&Z!==void 0?Z:"");return Q?b({flexGrow:Number(X[1]),flexShrink:Number(X[2]),flexBasis:Q}):null}return null}function lJ(J,Y,K={},Z){let X=Z==null?void 0:Z[Y];return X!==void 0?X8(J,X,K):$5(J,Y,K)}function l8(J,Y,K={},Z){let X=W5(Z==null?void 0:Z[Y],K);return X?b({[J]:X}):(Y==="screen"&&(Y=J.includes("Width")?"100vw":"100vh"),$5(J,Y,K))}function mA(J,Y,K){let Z=K==null?void 0:K[J];if(Z){let X=X1(Z,{isNegative:Y});if(!X)return null;let[Q,W]=X;if(W===q0.em)return cA(Q);if(W===q0.percent)return k1("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=Q8(Q,W,{isNegative:Y});return w!==null?b({letterSpacing:w}):null}return $5("letterSpacing",J,{isNegative:Y})}function cA(J){return{kind:"dependent",complete(Y){let K=Y.fontSize;if(typeof K!="number"||Number.isNaN(K))return"tracking-X relative letter spacing classes require font-size to be set";Y.letterSpacing=Math.round((J*K+Number.EPSILON)*100)/100}}}function dA(J,Y){let K=Y==null?void 0:Y[J];if(K){let X=X1(String(K));if(X)return b({opacity:X[0]})}let Z=X1(J);return Z?b({opacity:Z[0]/100}):null}function uA(J){let Y=parseInt(J,10);return Number.isNaN(Y)?null:{kind:"complete",style:{shadowOpacity:Y/100}}}function lA(J){if(J.includes("/")){let[K="",Z=""]=J.split("/",2),X=b9(K),Q=b9(Z);return X===null||Q===null?null:{kind:"complete",style:{shadowOffset:{width:X,height:Q}}}}let Y=b9(J);return Y===null?null:{kind:"complete",style:{shadowOffset:{width:Y,height:Y}}}}function b9(J){let Y=$6(J);return typeof Y=="number"?Y:null}var pJ=class{constructor(J,Y={},K,Z,X){var Q,W,w,$,z,U;this.config=Y,this.cache=K,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=Z;let H=J.trim().split(":"),A=[];H.length===1?this.string=J:(this.string=(Q=H.pop())!==null&&Q!==void 0?Q:"",A=H),this.char=this.string[0];let V=PA((W=this.config.theme)===null||W===void 0?void 0:W.screens);for(let L of A)if(V[L]){let B=(w=V[L])===null||w===void 0?void 0:w[2];B!==void 0&&(this.order=(($=this.order)!==null&&$!==void 0?$:0)+B);let O=(z=Z.windowDimensions)===null||z===void 0?void 0:z.width;if(O){let[q,N]=(U=V[L])!==null&&U!==void 0?U:[0,0];(O<=q||O>N)&&(this.isNull=!0)}else this.isNull=!0}else MA(L)?this.isNull=L!==X:NA(L)?Z.windowDimensions?(Z.windowDimensions.width>Z.windowDimensions.height?"landscape":"portrait")!==L?this.isNull=!0:this.incrementOrder():this.isNull=!0:L==="retina"?Z.pixelDensity===2?this.incrementOrder():this.isNull=!0:L==="dark"?Z.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(L)||(this.isNull=!0)}parse(){if(this.isNull)return{kind:"null"};let J=this.cache.getIr(this.rest);if(J)return J;this.parseIsNegative();let Y=this.parseUtility();return Y?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:Y}:Y:{kind:"null"}}parseUtility(){var J,Y,K,Z,X;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 $=this.char==="m"?"margin":"padding";this.advance(((Y=(J=w[0])===null||J===void 0?void 0:J.length)!==null&&Y!==void 0?Y:0)+1);let z=bY(w[1]),U=TA($,z,this.isNegative,this.rest,(K=this.config.theme)===null||K===void 0?void 0:K[$]);if(U)return U}}}if(this.consumePeeked("h-")&&(W=lJ("height",this.rest,this.context,Q==null?void 0:Q.height),W)||this.consumePeeked("w-")&&(W=lJ("width",this.rest,this.context,Q==null?void 0:Q.width),W)||this.consumePeeked("min-w-")&&(W=l8("minWidth",this.rest,this.context,Q==null?void 0:Q.minWidth),W)||this.consumePeeked("min-h-")&&(W=l8("minHeight",this.rest,this.context,Q==null?void 0:Q.minHeight),W)||this.consumePeeked("max-w-")&&(W=l8("maxWidth",this.rest,this.context,Q==null?void 0:Q.maxWidth),W)||this.consumePeeked("max-h-")&&(W=l8("maxHeight",this.rest,this.context,Q==null?void 0:Q.maxHeight),W)||this.consumePeeked("leading-")&&(W=CA(this.rest,Q==null?void 0:Q.lineHeight),W)||this.consumePeeked("text-")&&(W=RA(this.rest,Q==null?void 0:Q.fontSize,this.context),W||(W=J8("text",this.rest,Q==null?void 0:Q.textColor),W)||this.consumePeeked("opacity-")&&(W=d8("text",this.rest),W))||this.consumePeeked("font-")&&(W=SA(this.rest,Q==null?void 0:Q.fontFamily),W)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&k1("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),W=X8("aspectRatio",this.rest,{fractions:!0}),W)||this.consumePeeked("tint-")&&(W=J8("tint",this.rest,Q==null?void 0:Q.colors),W)||this.consumePeeked("bg-")&&(W=J8("bg",this.rest,Q==null?void 0:Q.backgroundColor),W||this.consumePeeked("opacity-")&&(W=d8("bg",this.rest),W))||this.consumePeeked("border")&&(W=gA(this.rest,Q),W||this.consumePeeked("-opacity-")&&(W=d8("border",this.rest),W))||this.consumePeeked("rounded")&&(W=bA(this.rest,Q==null?void 0:Q.borderRadius),W)||this.consumePeeked("bottom-")&&(W=e5("bottom",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("top-")&&(W=e5("top",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("left-")&&(W=e5("left",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("right-")&&(W=e5("right",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("inset-")&&(W=e5("inset",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?W=u8("Grow",this.rest,Q==null?void 0:Q.flexGrow):this.consumePeeked("shrink")?W=u8("Shrink",this.rest,Q==null?void 0:Q.flexShrink):W=fA(this.rest,Q==null?void 0:Q.flex),W)||this.consumePeeked("grow")&&(W=u8("Grow",this.rest,Q==null?void 0:Q.flexGrow),W)||this.consumePeeked("shrink")&&(W=u8("Shrink",this.rest,Q==null?void 0:Q.flexShrink),W)||this.consumePeeked("shadow-color-opacity-")&&(W=d8("shadow",this.rest),W)||this.consumePeeked("shadow-opacity-")&&(W=uA(this.rest),W)||this.consumePeeked("shadow-offset-")&&(W=lA(this.rest),W)||this.consumePeeked("shadow-radius-")&&(W=$5("shadowRadius",this.rest),W)||this.consumePeeked("shadow-")&&(W=J8("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=dA(this.rest,Q==null?void 0:Q.opacity),W)||this.consumePeeked("tracking-")&&(W=mA(this.rest,this.isNegative,Q==null?void 0:Q.letterSpacing),W))return W;if(this.consumePeeked("z-")){let w=Number((X=(Z=Q==null?void 0:Q.zIndex)===null||Z===void 0?void 0:Z[this.rest])!==null&&X!==void 0?X:this.rest);if(!Number.isNaN(w))return b({zIndex:w})}return k1(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(J){var Y;if(J[0]!=="m")return!1;let K=J.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!K)return!1;if(!(!((Y=this.context.device)===null||Y===void 0)&&Y.windowDimensions))return this.isNull=!0,!0;let Z=this.context.device.windowDimensions,[,X="",Q="",W=""]=K,w=Q==="w"?Z.width:Z.height,$=X1(W,this.context);if($===null)return this.isNull=!0,!0;let[z,U]=$;return U!=="px"&&(this.isNull=!0),(X==="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,Y){return this.string.slice(this.position+J,this.position+Y)}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 pA(J){let Y=[],K=null;return J.forEach((Z)=>{if(typeof Z=="string")Y=[...Y,...f9(Z)];else if(Array.isArray(Z))Y=[...Y,...Z.flatMap(f9)];else if(typeof Z=="object"&&Z!==null)for(let[X,Q]of Object.entries(Z))typeof Q=="boolean"?Y=[...Y,...Q?f9(X):[]]:K?K[X]=Q:K={[X]:Q}}),[Y.filter(Boolean).filter(iA),K]}function f9(J){return J.trim().split(/\s+/)}function iA(J,Y,K){return K.indexOf(J)===Y}function nA(J){var Y;return(Y=J==null?void 0:J.reduce((K,Z)=>({...K,...oA(Z.handler)}),{}))!==null&&Y!==void 0?Y:{}}function oA(J){let Y={};return J({addUtilities:(K)=>{Y=K},...rA}),Y}function D1(J){throw Error(`tailwindcss plugin function argument object prop "${J}" not implemented`)}var rA={addComponents:D1,addBase:D1,addVariant:D1,e:D1,prefix:D1,theme:D1,variants:D1,config:D1,corePlugins:D1,matchUtilities:D1,postcss:null};function sA(J,Y){let K=(0,OA.default)(aA(J)),Z={},X=nA(K.plugins),Q={},W=Object.entries(X).map(([L,B])=>typeof B=="string"?(Q[L]=B,[L,{kind:"null"}]):[L,b(B)]).filter(([,L])=>L.kind!=="null");function w(){return[Z.windowDimensions?`w${Z.windowDimensions.width}`:!1,Z.windowDimensions?`h${Z.windowDimensions.height}`:!1,Z.fontScale?`fs${Z.fontScale}`:!1,Z.colorScheme==="dark"?"dark":!1,Z.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let $=w(),z={};function U(){let L=z[$];if(L)return L;let B=new DA(W);return z[$]=B,B}function H(...L){let B=U(),O={},q=[],N=[],[E,I]=pA(L),F=E.join(" "),j=B.getStyle(F);if(j)return{...j,...I||{}};for(let T of E){let D=B.getIr(T);if(!D&&T in Q){let C=H(Q[T]);B.setIr(T,b(C)),O={...O,...C};continue}switch(D=new pJ(T,K,B,Z,Y).parse(),D.kind){case"complete":O={...O,...D.style},B.setIr(T,D);break;case"dependent":q.push(D);break;case"ordered":N.push(D);break;case"null":B.setIr(T,D);break}}if(N.length>0){N.sort((T,D)=>T.order-D.order);for(let T of N)switch(T.styleIr.kind){case"complete":O={...O,...T.styleIr.style};break;case"dependent":q.push(T.styleIr);break}}if(q.length>0){for(let T of q){let D=T.complete(O);D&&k1(D)}vA(O)}return F!==""&&B.setStyle(F,O),I&&(O={...O,...I}),O}function A(L){let B=H(L.split(/\s+/g).map((O)=>O.replace(/^(bg|text|border)-/,"")).map((O)=>`bg-${O}`).join(" "));return typeof B.backgroundColor=="string"?B.backgroundColor:void 0}let V=(L,...B)=>{let O="";return L.forEach((q,N)=>{var E;O+=q+((E=B[N])!==null&&E!==void 0?E:"")}),H(O)};return V.style=H,V.color=A,V.prefixMatch=(...L)=>{let B=L.sort().join(":"),O=U(),q=O.getPrefixMatch(B);if(q!==void 0)return q;let N=new pJ(`${B}:flex`,K,O,Z,Y).parse().kind!=="null";return O.setPrefixMatch(B,N),N},V.setWindowDimensions=(L)=>{Z.windowDimensions=L,$=w()},V.setFontScale=(L)=>{Z.fontScale=L,$=w()},V.setPixelDensity=(L)=>{Z.pixelDensity=L,$=w()},V.setColorScheme=(L)=>{Z.colorScheme=L,$=w()},V}function aA(J){return{...J,content:["_no_warnings_please"]}}var tA={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 eA(J){return sA({...J,plugins:[...(J==null?void 0:J.plugins)??[],tA]},"web")}var p8;function JV({width:J,height:Y,config:K}){return p8||(p8=eA(K)),p8.setWindowDimensions({width:+J,height:+Y}),p8}var m9=new WeakMap;async function dY(J,Y){let K=await K6();if(!K||!K.Node)throw Error("Satori is not initialized: expect `yoga` to be loaded, got "+K);Y.fonts=Y.fonts||[];let Z;m9.has(Y.fonts)?Z=m9.get(Y.fonts):m9.set(Y.fonts,Z=new VA(Y.fonts));let X="width"in Y?Y.width:void 0,Q="height"in Y?Y.height:void 0,W=K.Node.create();X&&W.setWidth(X),Q&&W.setHeight(Q),W.setFlexDirection(K.FLEX_DIRECTION_ROW),W.setFlexWrap(K.WRAP_WRAP),W.setAlignContent(K.ALIGN_AUTO),W.setAlignItems(K.ALIGN_FLEX_START),W.setJustifyContent(K.JUSTIFY_FLEX_START),W.setOverflow(K.OVERFLOW_HIDDEN);let w={...Y.graphemeImages},$=new Set;o1.clear(),o8.clear(),await QH(J);let z=n9(J,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:"normal",color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:X,_viewportHeight:Q},parent:W,font:Z,embedFont:Y.embedFont,debug:Y.debug,graphemeImages:w,canLoadAdditionalAssets:!!Y.loadAdditionalAsset,onNodeDetected:Y.onNodeDetected,getTwStyles:(L,B)=>{let O={...JV({width:X,height:Q,config:Y.tailwindConfig})([L])};return typeof O.lineHeight=="number"&&(O.lineHeight=O.lineHeight/(+O.fontSize||B.fontSize||16)),O.shadowColor&&O.boxShadow&&(O.boxShadow=O.boxShadow.replace(/rgba?\([^)]+\)/,O.shadowColor)),O}}),U=(await z.next()).value;if(Y.loadAdditionalAsset&&U.length){let L=YV(U),B=[],O={};await Promise.all(Object.entries(L).flatMap(([q,N])=>N.map((E)=>{let I=`${q}_${E}`;return $.has(I)?null:($.add(I),Y.loadAdditionalAsset(q,E).then((F)=>{typeof F=="string"?O[E]=F:F&&(Array.isArray(F)?B.push(...F):B.push(F))}))}))),Z.addFonts(B),Object.assign(w,O)}await z.next(),W.calculateLayout(X,Q,K.DIRECTION_LTR);let H=(await z.next([0,0])).value,A=W.getComputedWidth(),V=W.getComputedHeight();return W.freeRecursive(),GA({width:A,height:V,content:H})}function YV(J){let Y={},K={};for(let{word:Z,locale:X}of J){let Q=UA(Z,X).join("|");K[Q]=K[Q]||"",K[Q]+=Z}return Object.keys(K).forEach((Z)=>{Y[Z]=Y[Z]||[],Z==="emoji"?Y[Z].push(...iJ(L1(K[Z],"grapheme"))):(Y[Z][0]=Y[Z][0]||"",Y[Z][0]+=iJ(L1(K[Z],"grapheme",Z==="unknown"?void 0:Z)).join(""))}),Y}function iJ(J){return Array.from(new Set(J))}import jV from"sharp";function w6(J){return J.replace(/\([^)]*\)/g,"").replace(/\/\//g,"/")}function $4(J,Y){if(J==="/")return Y;if(Y==="/")return J;return`${J}${Y}`}function w4(J){let Y=w6(J);return Y.length>1?Y.replace(/\/$/,""):Y}function uY(J,Y){return Y.map((K)=>({...K,path:w4($4(J,K.path))}))}function z6(J){let Y={};for(let[K,Z]of Object.entries(J))if("run"in Z){let X=Z;if("children"in X){let Q=new X.children,W=z6(Q.routes);for(let[w,{exec:$,middleware:z,segments:U}]of Object.entries(W)){let H=$4(K,w),A=(V)=>X.run.call(X,V,K);Y[w6(H)]={exec:[A,...$],middleware:[...X.middlewares,...z],viewPath:X.viewPath,segments:[{path:w4(K),viewPath:X.viewPath,...X.alwaysRuns?{alwaysRun:!0}:{}},...uY(K,U)]}}}else{let Q=(W)=>X.run.call(X,W,K);Y[w6(K)]={exec:[Q],middleware:X.middlewares,viewPath:X.viewPath,segments:[{path:w4(K),viewPath:X.viewPath}]}}}else{let X=new Z,Q=z6(X.routes);for(let[W,{exec:w,middleware:$,viewPath:z,segments:U}]of Object.entries(Q)){let H=$4(K,W);Y[w6(H)]={exec:w,middleware:[...X.middlewares,...$],viewPath:z,segments:uY(K,U)}}}return Object.fromEntries(Object.entries(Y).sort(([K],[Z])=>{let X=K.split("/").length+K.split(":").length,Q=Z.split("/").length+Z.split(":").length;return X-Q}))}var KV=Object.defineProperty,J0=(J,Y)=>KV(J,"name",{value:Y,configurable:!0}),I5=class{type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(J,Y,K,Z,X,Q){this.type=J,this.name=Y,this.prefix=K,this.value=Z,this.suffix=X,this.modifier=Q}hasCustomName(){return this.name!==""&&typeof this.name!="number"}};J0(I5,"Part");var ZV=/[$_\p{ID_Start}]/u,XV=/[$_\u200C\u200D\p{ID_Continue}]/u,U4=".*";function lY(J,Y){return(Y?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(J)}J0(lY,"isASCII");function V4(J,Y=!1){let K=[],Z=0;for(;Z<J.length;){let X=J[Z],Q=J0(function(W){if(!Y)throw TypeError(W);K.push({type:"INVALID_CHAR",index:Z,value:J[Z++]})},"ErrorOrInvalid");if(X==="*"){K.push({type:"ASTERISK",index:Z,value:J[Z++]});continue}if(X==="+"||X==="?"){K.push({type:"OTHER_MODIFIER",index:Z,value:J[Z++]});continue}if(X==="\\"){K.push({type:"ESCAPED_CHAR",index:Z++,value:J[Z++]});continue}if(X==="{"){K.push({type:"OPEN",index:Z,value:J[Z++]});continue}if(X==="}"){K.push({type:"CLOSE",index:Z,value:J[Z++]});continue}if(X===":"){let W="",w=Z+1;for(;w<J.length;){let $=J.substr(w,1);if(w===Z+1&&ZV.test($)||w!==Z+1&&XV.test($)){W+=J[w++];continue}break}if(!W){Q(`Missing parameter name at ${Z}`);continue}K.push({type:"NAME",index:Z,value:W}),Z=w;continue}if(X==="("){let W=1,w="",$=Z+1,z=!1;if(J[$]==="?"){Q(`Pattern cannot start with "?" at ${$}`);continue}for(;$<J.length;){if(!lY(J[$],!1)){Q(`Invalid character '${J[$]}' at ${$}.`),z=!0;break}if(J[$]==="\\"){w+=J[$++]+J[$++];continue}if(J[$]===")"){if(W--,W===0){$++;break}}else if(J[$]==="("&&(W++,J[$+1]!=="?")){Q(`Capturing groups are not allowed at ${$}`),z=!0;break}w+=J[$++]}if(z)continue;if(W){Q(`Unbalanced pattern at ${Z}`);continue}if(!w){Q(`Missing pattern at ${Z}`);continue}K.push({type:"REGEX",index:Z,value:w}),Z=$;continue}K.push({type:"CHAR",index:Z,value:J[Z++]})}return K.push({type:"END",index:Z,value:""}),K}J0(V4,"lexer");function B4(J,Y={}){let K=V4(J);Y.delimiter??="/#?",Y.prefixes??="./";let Z=`[^${t0(Y.delimiter)}]+?`,X=[],Q=0,W=0,w="",$=new Set,z=J0((E)=>{if(W<K.length&&K[W].type===E)return K[W++].value},"tryConsume"),U=J0(()=>z("OTHER_MODIFIER")??z("ASTERISK"),"tryConsumeModifier"),H=J0((E)=>{let I=z(E);if(I!==void 0)return I;let{type:F,index:j}=K[W];throw TypeError(`Unexpected ${F} at ${j}, expected ${E}`)},"mustConsume"),A=J0(()=>{let E="",I;for(;I=z("CHAR")??z("ESCAPED_CHAR");)E+=I;return E},"consumeText"),V=J0((E)=>E,"DefaultEncodePart"),L=Y.encodePart||V,B="",O=J0((E)=>{B+=E},"appendToPendingFixedValue"),q=J0(()=>{B.length&&(X.push(new I5(3,"","",L(B),"",3)),B="")},"maybeAddPartFromPendingFixedValue"),N=J0((E,I,F,j,T)=>{let D=3;switch(T){case"?":D=1;break;case"*":D=0;break;case"+":D=2;break}if(!I&&!F&&D===3){O(E);return}if(q(),!I&&!F){if(!E)return;X.push(new I5(3,"","",L(E),"",D));return}let C;F?F==="*"?C=U4:C=F:C=Z;let g=2;C===Z?(g=1,C=""):C===U4&&(g=0,C="");let d;if(I?d=I:F&&(d=Q++),$.has(d))throw TypeError(`Duplicate name '${d}'.`);$.add(d),X.push(new I5(g,d,L(E),C,L(j),D))},"addPart");for(;W<K.length;){let E=z("CHAR"),I=z("NAME"),F=z("REGEX");if(!I&&!F&&(F=z("ASTERISK")),I||F){let T=E??"";Y.prefixes.indexOf(T)===-1&&(O(T),T=""),q();let D=U();N(T,I,F,"",D);continue}let j=E??z("ESCAPED_CHAR");if(j){O(j);continue}if(z("OPEN")){let T=A(),D=z("NAME"),C=z("REGEX");!D&&!C&&(C=z("ASTERISK"));let g=A();H("CLOSE");let d=U();N(T,D,C,g,d);continue}q(),H("END")}return X}J0(B4,"parse");function t0(J){return J.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}J0(t0,"escapeString");function H4(J){return J&&J.ignoreCase?"ui":"u"}J0(H4,"flags");function pY(J,Y,K){return G4(B4(J,K),Y,K)}J0(pY,"stringToRegexp");function w5(J){switch(J){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}J0(w5,"modifierToString");function G4(J,Y,K={}){K.delimiter??="/#?",K.prefixes??="./",K.sensitive??=!1,K.strict??=!1,K.end??=!0,K.start??=!0,K.endsWith="";let Z=K.start?"^":"";for(let w of J){if(w.type===3){w.modifier===3?Z+=t0(w.value):Z+=`(?:${t0(w.value)})${w5(w.modifier)}`;continue}Y&&Y.push(w.name);let $=`[^${t0(K.delimiter)}]+?`,z=w.value;if(w.type===1?z=$:w.type===0&&(z=U4),!w.prefix.length&&!w.suffix.length){w.modifier===3||w.modifier===1?Z+=`(${z})${w5(w.modifier)}`:Z+=`((?:${z})${w5(w.modifier)})`;continue}if(w.modifier===3||w.modifier===1){Z+=`(?:${t0(w.prefix)}(${z})${t0(w.suffix)})`,Z+=w5(w.modifier);continue}Z+=`(?:${t0(w.prefix)}`,Z+=`((?:${z})(?:`,Z+=t0(w.suffix),Z+=t0(w.prefix),Z+=`(?:${z}))*)${t0(w.suffix)})`,w.modifier===0&&(Z+="?")}let X=`[${t0(K.endsWith)}]|$`,Q=`[${t0(K.delimiter)}]`;if(K.end)return K.strict||(Z+=`${Q}?`),K.endsWith.length?Z+=`(?=${X})`:Z+="$",new RegExp(Z,H4(K));K.strict||(Z+=`(?:${Q}(?=${X}))?`);let W=!1;if(J.length){let w=J[J.length-1];w.type===3&&w.modifier===3&&(W=K.delimiter.indexOf(w)>-1)}return W||(Z+=`(?=${Q}|${X})`),new RegExp(Z,H4(K))}J0(G4,"partsToRegexp");var a1={delimiter:"",prefixes:"",sensitive:!0,strict:!0},QV={delimiter:".",prefixes:"",sensitive:!0,strict:!0},WV={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function iY(J,Y){return J.length?J[0]==="/"?!0:!Y||J.length<2?!1:(J[0]=="\\"||J[0]=="{")&&J[1]=="/":!1}J0(iY,"isAbsolutePathname");function O4(J,Y){return J.startsWith(Y)?J.substring(Y.length,J.length):J}J0(O4,"maybeStripPrefix");function nY(J,Y){return J.endsWith(Y)?J.substr(0,J.length-Y.length):J}J0(nY,"maybeStripSuffix");function L4(J){return!J||J.length<2?!1:J[0]==="["||(J[0]==="\\"||J[0]==="{")&&J[1]==="["}J0(L4,"treatAsIPv6Hostname");var oY=["ftp","file","http","https","ws","wss"];function M4(J){if(!J)return!0;for(let Y of oY)if(J.test(Y))return!0;return!1}J0(M4,"isSpecialScheme");function rY(J,Y){if(J=O4(J,"#"),Y||J==="")return J;let K=new URL("https://example.com");return K.hash=J,K.hash?K.hash.substring(1,K.hash.length):""}J0(rY,"canonicalizeHash");function sY(J,Y){if(J=O4(J,"?"),Y||J==="")return J;let K=new URL("https://example.com");return K.search=J,K.search?K.search.substring(1,K.search.length):""}J0(sY,"canonicalizeSearch");function aY(J,Y){return Y||J===""?J:L4(J)?j4(J):N4(J)}J0(aY,"canonicalizeHostname");function tY(J,Y){if(Y||J==="")return J;let K=new URL("https://example.com");return K.password=J,K.password}J0(tY,"canonicalizePassword");function eY(J,Y){if(Y||J==="")return J;let K=new URL("https://example.com");return K.username=J,K.username}J0(eY,"canonicalizeUsername");function JK(J,Y,K){if(K||J==="")return J;if(Y&&!oY.includes(Y))return new URL(`${Y}:${J}`).pathname;let Z=J[0]=="/";return J=new URL(Z?J:"/-"+J,"https://example.com").pathname,Z||(J=J.substring(2,J.length)),J}J0(JK,"canonicalizePathname");function YK(J,Y,K){return q4(Y)===J&&(J=""),K||J===""?J:E4(J)}J0(YK,"canonicalizePort");function KK(J,Y){return J=nY(J,":"),Y||J===""?J:U6(J)}J0(KK,"canonicalizeProtocol");function q4(J){switch(J){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}J0(q4,"defaultPortForProtocol");function U6(J){if(J==="")return J;if(/^[-+.A-Za-z0-9]*$/.test(J))return J.toLowerCase();throw TypeError(`Invalid protocol '${J}'.`)}J0(U6,"protocolEncodeCallback");function ZK(J){if(J==="")return J;let Y=new URL("https://example.com");return Y.username=J,Y.username}J0(ZK,"usernameEncodeCallback");function XK(J){if(J==="")return J;let Y=new URL("https://example.com");return Y.password=J,Y.password}J0(XK,"passwordEncodeCallback");function N4(J){if(J==="")return J;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(J))throw TypeError(`Invalid hostname '${J}'`);let Y=new URL("https://example.com");return Y.hostname=J,Y.hostname}J0(N4,"hostnameEncodeCallback");function j4(J){if(J==="")return J;if(/[^0-9a-fA-F[\]:]/g.test(J))throw TypeError(`Invalid IPv6 hostname '${J}'`);return J.toLowerCase()}J0(j4,"ipv6HostnameEncodeCallback");function E4(J){if(J===""||/^[0-9]*$/.test(J)&&parseInt(J)<=65535)return J;throw TypeError(`Invalid port '${J}'.`)}J0(E4,"portEncodeCallback");function QK(J){if(J==="")return J;let Y=new URL("https://example.com");return Y.pathname=J[0]!=="/"?"/-"+J:J,J[0]!=="/"?Y.pathname.substring(2,Y.pathname.length):Y.pathname}J0(QK,"standardURLPathnameEncodeCallback");function WK(J){return J===""?J:new URL(`data:${J}`).pathname}J0(WK,"pathURLPathnameEncodeCallback");function $K(J){if(J==="")return J;let Y=new URL("https://example.com");return Y.search=J,Y.search.substring(1,Y.search.length)}J0($K,"searchEncodeCallback");function wK(J){if(J==="")return J;let Y=new URL("https://example.com");return Y.hash=J,Y.hash.substring(1,Y.hash.length)}J0(wK,"hashEncodeCallback");var zK=class{#Q;#Z=[];#Y={};#J=0;#X=1;#z=0;#$=0;#V=0;#B=0;#G=!1;constructor(J){this.#Q=J}get result(){return this.#Y}parse(){for(this.#Z=V4(this.#Q,!0);this.#J<this.#Z.length;this.#J+=this.#X){if(this.#X=1,this.#Z[this.#J].type==="END"){if(this.#$===0){this.#q(),this.#U()?this.#K(9,1):this.#H()?this.#K(8,1):this.#K(7,0);continue}else if(this.#$===2){this.#A(5);continue}this.#K(10,0);break}if(this.#V>0)if(this.#D())this.#V-=1;else continue;if(this.#I()){this.#V+=1;continue}switch(this.#$){case 0:this.#N()&&this.#A(1);break;case 1:if(this.#N()){this.#T();let J=7,Y=1;this.#E()?(J=2,Y=3):this.#G&&(J=2),this.#K(J,Y)}break;case 2:this.#L()?this.#A(3):(this.#M()||this.#H()||this.#U())&&this.#A(5);break;case 3:this.#F()?this.#K(4,1):this.#L()&&this.#K(5,1);break;case 4:this.#L()&&this.#K(5,1);break;case 5:this.#R()?this.#B+=1:this.#C()&&(this.#B-=1),this.#_()&&!this.#B?this.#K(6,1):this.#M()?this.#K(7,0):this.#H()?this.#K(8,1):this.#U()&&this.#K(9,1);break;case 6:this.#M()?this.#K(7,0):this.#H()?this.#K(8,1):this.#U()&&this.#K(9,1);break;case 7:this.#H()?this.#K(8,1):this.#U()&&this.#K(9,1);break;case 8:this.#U()&&this.#K(9,1);break;case 9:break;case 10:break}}this.#Y.hostname!==void 0&&this.#Y.port===void 0&&(this.#Y.port="")}#K(J,Y){switch(this.#$){case 0:break;case 1:this.#Y.protocol=this.#w();break;case 2:break;case 3:this.#Y.username=this.#w();break;case 4:this.#Y.password=this.#w();break;case 5:this.#Y.hostname=this.#w();break;case 6:this.#Y.port=this.#w();break;case 7:this.#Y.pathname=this.#w();break;case 8:this.#Y.search=this.#w();break;case 9:this.#Y.hash=this.#w();break;case 10:break}this.#$!==0&&J!==10&&([1,2,3,4].includes(this.#$)&&[6,7,8,9].includes(J)&&(this.#Y.hostname??=""),[1,2,3,4,5,6].includes(this.#$)&&[8,9].includes(J)&&(this.#Y.pathname??=this.#G?"/":""),[1,2,3,4,5,6,7].includes(this.#$)&&J===9&&(this.#Y.search??="")),this.#j(J,Y)}#j(J,Y){this.#$=J,this.#z=this.#J+Y,this.#J+=Y,this.#X=0}#q(){this.#J=this.#z,this.#X=0}#A(J){this.#q(),this.#$=J}#O(J){return J<0&&(J=this.#Z.length-J),J<this.#Z.length?this.#Z[J]:this.#Z[this.#Z.length-1]}#W(J,Y){let K=this.#O(J);return K.value===Y&&(K.type==="CHAR"||K.type==="ESCAPED_CHAR"||K.type==="INVALID_CHAR")}#N(){return this.#W(this.#J,":")}#E(){return this.#W(this.#J+1,"/")&&this.#W(this.#J+2,"/")}#L(){return this.#W(this.#J,"@")}#F(){return this.#W(this.#J,":")}#_(){return this.#W(this.#J,":")}#M(){return this.#W(this.#J,"/")}#H(){if(this.#W(this.#J,"?"))return!0;if(this.#Z[this.#J].value!=="?")return!1;let J=this.#O(this.#J-1);return J.type!=="NAME"&&J.type!=="REGEX"&&J.type!=="CLOSE"&&J.type!=="ASTERISK"}#U(){return this.#W(this.#J,"#")}#I(){return this.#Z[this.#J].type=="OPEN"}#D(){return this.#Z[this.#J].type=="CLOSE"}#R(){return this.#W(this.#J,"[")}#C(){return this.#W(this.#J,"]")}#w(){let J=this.#Z[this.#J],Y=this.#O(this.#z).index;return this.#Q.substring(Y,J.index)}#T(){let J={};Object.assign(J,a1),J.encodePart=U6;let Y=pY(this.#w(),void 0,J);this.#G=M4(Y)}};J0(zK,"Parser");var z4=["protocol","username","password","hostname","port","pathname","search","hash"],s1="*";function A4(J,Y){if(typeof J!="string")throw TypeError("parameter 1 is not of type 'string'.");let K=new URL(J,Y);return{protocol:K.protocol.substring(0,K.protocol.length-1),username:K.username,password:K.password,hostname:K.hostname,port:K.port,pathname:K.pathname,search:K.search!==""?K.search.substring(1,K.search.length):void 0,hash:K.hash!==""?K.hash.substring(1,K.hash.length):void 0}}J0(A4,"extractValues");function R1(J,Y){return Y?_5(J):J}J0(R1,"processBaseURLString");function F5(J,Y,K){let Z;if(typeof Y.baseURL=="string")try{Z=new URL(Y.baseURL),Y.protocol===void 0&&(J.protocol=R1(Z.protocol.substring(0,Z.protocol.length-1),K)),!K&&Y.protocol===void 0&&Y.hostname===void 0&&Y.port===void 0&&Y.username===void 0&&(J.username=R1(Z.username,K)),!K&&Y.protocol===void 0&&Y.hostname===void 0&&Y.port===void 0&&Y.username===void 0&&Y.password===void 0&&(J.password=R1(Z.password,K)),Y.protocol===void 0&&Y.hostname===void 0&&(J.hostname=R1(Z.hostname,K)),Y.protocol===void 0&&Y.hostname===void 0&&Y.port===void 0&&(J.port=R1(Z.port,K)),Y.protocol===void 0&&Y.hostname===void 0&&Y.port===void 0&&Y.pathname===void 0&&(J.pathname=R1(Z.pathname,K)),Y.protocol===void 0&&Y.hostname===void 0&&Y.port===void 0&&Y.pathname===void 0&&Y.search===void 0&&(J.search=R1(Z.search.substring(1,Z.search.length),K)),Y.protocol===void 0&&Y.hostname===void 0&&Y.port===void 0&&Y.pathname===void 0&&Y.search===void 0&&Y.hash===void 0&&(J.hash=R1(Z.hash.substring(1,Z.hash.length),K))}catch{throw TypeError(`invalid baseURL '${Y.baseURL}'.`)}if(typeof Y.protocol=="string"&&(J.protocol=KK(Y.protocol,K)),typeof Y.username=="string"&&(J.username=eY(Y.username,K)),typeof Y.password=="string"&&(J.password=tY(Y.password,K)),typeof Y.hostname=="string"&&(J.hostname=aY(Y.hostname,K)),typeof Y.port=="string"&&(J.port=YK(Y.port,J.protocol,K)),typeof Y.pathname=="string"){if(J.pathname=Y.pathname,Z&&!iY(J.pathname,K)){let X=Z.pathname.lastIndexOf("/");X>=0&&(J.pathname=R1(Z.pathname.substring(0,X+1),K)+J.pathname)}J.pathname=JK(J.pathname,J.protocol,K)}return typeof Y.search=="string"&&(J.search=sY(Y.search,K)),typeof Y.hash=="string"&&(J.hash=rY(Y.hash,K)),J}J0(F5,"applyInit");function _5(J){return J.replace(/([+*?:{}()\\])/g,"\\$1")}J0(_5,"escapePatternString");function UK(J){return J.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}J0(UK,"escapeRegexpString");function HK(J,Y){Y.delimiter??="/#?",Y.prefixes??="./",Y.sensitive??=!1,Y.strict??=!1,Y.end??=!0,Y.start??=!0,Y.endsWith="";let K=".*",Z=`[^${UK(Y.delimiter)}]+?`,X=/[$_\u200C\u200D\p{ID_Continue}]/u,Q="";for(let W=0;W<J.length;++W){let w=J[W];if(w.type===3){if(w.modifier===3){Q+=_5(w.value);continue}Q+=`{${_5(w.value)}}${w5(w.modifier)}`;continue}let $=w.hasCustomName(),z=!!w.suffix.length||!!w.prefix.length&&(w.prefix.length!==1||!Y.prefixes.includes(w.prefix)),U=W>0?J[W-1]:null,H=W<J.length-1?J[W+1]:null;if(!z&&$&&w.type===1&&w.modifier===3&&H&&!H.prefix.length&&!H.suffix.length)if(H.type===3){let A=H.value.length>0?H.value[0]:"";z=X.test(A)}else z=!H.hasCustomName();if(!z&&!w.prefix.length&&U&&U.type===3){let A=U.value[U.value.length-1];z=Y.prefixes.includes(A)}z&&(Q+="{"),Q+=_5(w.prefix),$&&(Q+=`:${w.name}`),w.type===2?Q+=`(${w.value})`:w.type===1?$||(Q+=`(${Z})`):w.type===0&&(!$&&(!U||U.type===3||U.modifier!==3||z||w.prefix!=="")?Q+="*":Q+=`(${K})`),w.type===1&&$&&w.suffix.length&&X.test(w.suffix[0])&&(Q+="\\"),Q+=_5(w.suffix),z&&(Q+="}"),w.modifier!==3&&(Q+=w5(w.modifier))}return Q}J0(HK,"partsToPattern");var F4=class{#Q;#Z={};#Y={};#J={};#X={};#z=!1;constructor(J={},Y,K){try{let Z;if(typeof Y=="string"?Z=Y:K=Y,typeof J=="string"){let w=new zK(J);if(w.parse(),J=w.result,Z===void 0&&typeof J.protocol!="string")throw TypeError("A base URL must be provided for a relative constructor string.");J.baseURL=Z}else{if(!J||typeof J!="object")throw TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(Z)throw TypeError("parameter 1 is not of type 'string'.")}typeof K>"u"&&(K={ignoreCase:!1});let X={ignoreCase:K.ignoreCase===!0},Q={pathname:s1,protocol:s1,username:s1,password:s1,hostname:s1,port:s1,search:s1,hash:s1};this.#Q=F5(Q,J,!0),q4(this.#Q.protocol)===this.#Q.port&&(this.#Q.port="");let W;for(W of z4){if(!(W in this.#Q))continue;let w={},$=this.#Q[W];switch(this.#Y[W]=[],W){case"protocol":Object.assign(w,a1),w.encodePart=U6;break;case"username":Object.assign(w,a1),w.encodePart=ZK;break;case"password":Object.assign(w,a1),w.encodePart=XK;break;case"hostname":Object.assign(w,QV),L4($)?w.encodePart=j4:w.encodePart=N4;break;case"port":Object.assign(w,a1),w.encodePart=E4;break;case"pathname":M4(this.#Z.protocol)?(Object.assign(w,WV,X),w.encodePart=QK):(Object.assign(w,a1,X),w.encodePart=WK);break;case"search":Object.assign(w,a1,X),w.encodePart=$K;break;case"hash":Object.assign(w,a1,X),w.encodePart=wK;break}try{this.#X[W]=B4($,w),this.#Z[W]=G4(this.#X[W],this.#Y[W],w),this.#J[W]=HK(this.#X[W],w),this.#z=this.#z||this.#X[W].some((z)=>z.type===2)}catch{throw TypeError(`invalid ${W} pattern '${this.#Q[W]}'.`)}}}catch(Z){throw TypeError(`Failed to construct 'URLPattern': ${Z.message}`)}}get[Symbol.toStringTag](){return"URLPattern"}test(J={},Y){let K={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof J!="string"&&Y)throw TypeError("parameter 1 is not of type 'string'.");if(typeof J>"u")return!1;try{typeof J=="object"?K=F5(K,J,!1):K=F5(K,A4(J,Y),!1)}catch{return!1}let Z;for(Z of z4)if(!this.#Z[Z].exec(K[Z]))return!1;return!0}exec(J={},Y){let K={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof J!="string"&&Y)throw TypeError("parameter 1 is not of type 'string'.");if(typeof J>"u")return;try{typeof J=="object"?K=F5(K,J,!1):K=F5(K,A4(J,Y),!1)}catch{return null}let Z={};Y?Z.inputs=[J,Y]:Z.inputs=[J];let X;for(X of z4){let Q=this.#Z[X].exec(K[X]);if(!Q)return null;let W={};for(let[w,$]of this.#Y[X].entries())if(typeof $=="string"||typeof $=="number"){let z=Q[w+1];W[$]=z}Z[X]={input:K[X]??"",groups:W}}return Z}static compareComponent(J,Y,K){let Z=J0((w,$)=>{for(let z of["type","modifier","prefix","value","suffix"]){if(w[z]<$[z])return-1;if(w[z]===$[z])continue;return 1}return 0},"comparePart"),X=new I5(3,"","","","",3),Q=new I5(0,"","","","",3),W=J0((w,$)=>{let z=0;for(;z<Math.min(w.length,$.length);++z){let U=Z(w[z],$[z]);if(U)return U}return w.length===$.length?0:Z(w[z]??X,$[z]??X)},"comparePartList");return!Y.#J[J]&&!K.#J[J]?0:Y.#J[J]&&!K.#J[J]?W(Y.#X[J],[Q]):!Y.#J[J]&&K.#J[J]?W([Q],K.#X[J]):W(Y.#X[J],K.#X[J])}get protocol(){return this.#J.protocol}get username(){return this.#J.username}get password(){return this.#J.password}get hostname(){return this.#J.hostname}get port(){return this.#J.port}get pathname(){return this.#J.pathname}get search(){return this.#J.search}get hash(){return this.#J.hash}get hasRegExpGroups(){return this.#z}};J0(F4,"URLPattern");function H6(J,Y){for(let[K,Z]of Object.entries(J)){let X=new F4({pathname:K});if(X.test({pathname:Y}))return{routePath:K,params:X.exec({pathname:Y})?.pathname.groups??{},route:Z}}return null}var z5={startIndex:0,carriedViews:[]};function AK(J,Y){let K=p0(J.path,Y);return K.includes("*")?null:K}function $V(J,Y){if(!J)return z5;if(J.search!==Y.search)return z5;let K=Math.min(J.segments.length,Y.segments.length-1),Z=0;while(Z<K){let X=J.segments[Z],Q=Y.segments[Z];if(Q.alwaysRun)break;if(X.viewPath!==Q.viewPath)break;let W=AK(X,J.params),w=AK(Q,Y.params);if(W===null||w===null||W!==w)break;Z++}if(Z===0)return z5;return{startIndex:Z,carriedViews:Y.segments.slice(0,Z).map(({viewPath:X})=>X)}}function wV(J,Y){let[,K,...Z]=J.split("/");if(!Y.includes(K))return J;let X=`/${Z.join("/")}`;return X==="/"?"/":X.replace(/\/$/,"")}function VK(J){let{flatViewRoutes:Y,supportedLocales:K,from:Z,origin:X,to:Q}=J;if(!Z)return z5;let W;try{W=new URL(Z,X)}catch{return z5}if(W.origin!==X)return z5;let w=H6(Y,wV(W.pathname,K));if(!w)return z5;return $V({segments:w.route.segments,params:w.params,search:W.search},Q)}var _4="x-gemi-from";import{createElement as R5,Fragment as EV}from"react";function zV(J){return J.replace(/\([^)]*\)/g,"").replace(/\/\//g,"/")}function A6(J){let Y={};for(let[K,Z]of Object.entries(J))if("run"in Z){let X=Z.viewPath;if("children"in Z){Y[K]=[X];let Q=new Z.children,W=A6(Q.routes);for(let[w,$]of Object.entries(W)){let z=K==="/"?w:`${K}${w}`,U=w==="/"&&K!=="/"?K:z;Y[U]=[X,...$]}if(Y[K].length===1)delete Y[K]}else Y[K]=[X]}else{let X=new Z,Q=A6(X.routes);for(let[W,w]of Object.entries(Q)){let $=K==="/"?W:`${K}${W}`,z=W==="/"&&K!=="/"?K:$;Y[z]=w}}return Object.fromEntries(Object.entries(Y).map(([K,Z])=>[zV(K),Z]))}function V6(J){let Y=[];for(let[K,Z]of Object.entries(J))if("run"in Z){let X=Z.viewPath;if(X==="__")continue;if(X==="REDIRECT")continue;if(X==="FILE")continue;if("children"in Z){let Q=new Z.children,W=V6(Q.routes);Y.push([X,W])}else Y.push([X,[]])}else{let X=new Z,Q=V6(X.routes);Y.push(...Q)}return Y}function I4(J){let Y=[];for(let[K,Z]of J)Y.push(K,...I4(Z).flat());return Array.from(new Set(Y))}class D5 extends l0{static getFacadeAccessor(){return k5}static debug(J,Y){this.getFacadeRoot().log("debug",J,Y)}static info(J,Y){this.getFacadeRoot().log("info",J,Y)}static notice(J,Y){this.getFacadeRoot().log("notice",J,Y)}static warning(J,Y){this.getFacadeRoot().log("warning",J,Y)}static error(J,Y){this.getFacadeRoot().log("error",J,Y)}static critical(J,Y){this.getFacadeRoot().log("critical",J,Y)}static alert(J,Y){this.getFacadeRoot().log("alert",J,Y)}static emergency(J,Y){this.getFacadeRoot().log("emergency",J,Y)}}class D4{id;static token="kernel.id";constructor(J=crypto.randomUUID()){this.id=J}}function UV(J){return JSON.stringify(J).replace(/</g,"\\u003c").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function HV(J){return`<script>(self.__GEMI_STREAM__=self.__GEMI_STREAM__||[]).push(${UV([J.path,J.variantKey,J.data])})</script>`}function R4(J,Y,K={}){let Z=new TextEncoder,X=[],Q=!1,W=!1,w=()=>{if(W)return;W=!0,K.onClose?.()};Y.onSettle((H)=>{if(H.status!=="resolved")return;X.push(HV(H))});let $=J.getReader(),z=(H,A)=>{H.enqueue(A),K.onChunk?.(A)},U=(H)=>{while(X.length>0)z(H,Z.encode(X.shift()))};return new ReadableStream({async pull(H){let A;try{A=await $.read()}catch(B){throw w(),B}let{done:V,value:L}=A;if(V){U(H),H.close(),w();return}if(!Q){Q=!0,z(H,L),K.onShell?.(),U(H);return}U(H),z(H,L)},cancel(H){return w(),$.cancel(H)}})}var AV=/bot|crawler|spider|crawling|slurp|bingpreview|mediapartners|headless|lighthouse|prerender|facebookexternalhit|whatsapp|telegram|discord|twitterbot|linkedinbot/i;function BK(J){if(!J)return!1;return AV.test(J)}var VV=new Set(["script","style","template","title"]),BV=/\shidden([\s=/]|$)/i,GV=/"[^"]*"|'[^']*'/g;function OV(J){let Y=0,K=0,Z=0,X=0;while(X<J.length){let Q=J.indexOf("<",X),W=Q===-1?J.length:Q;if(W>X){let H=J.slice(X,W).replace(/\s+/g,"").length;if(Z>0)K+=H;else Y+=H}if(Q===-1)break;if(J.startsWith("<!--",Q)){let H=J.indexOf("-->",Q+4);X=H===-1?J.length:H+3;continue}let w=J.indexOf(">",Q);if(w===-1)break;let $=J.slice(Q+1,w);X=w+1;let z=/^\/?([a-zA-Z][a-zA-Z0-9-]*)/.exec($)?.[1]?.toLowerCase();if(!z)continue;let U=$.startsWith("/");if(!U&&VV.has(z)&&!$.endsWith("/")){let H=J.indexOf(`</${z}`,X);X=H===-1?J.length:H;continue}if(z!=="div")continue;if(U){if(Z>0)Z-=1}else if(Z>0)Z+=1;else if(BV.test($.replace(GV,'""')))Z=1}return{shellChars:Y,deferredChars:K}}var LV=1000,MV=64;function qV(J){return J>=1000?`${(J/1000).toFixed(1)} kB`:`${J} chars`}function NV(J,Y){if(Y.deferredChars<LV)return null;if(Y.shellChars>=MV)return null;return`[gemi] GET ${J} streams ${qV(Y.deferredChars)} of its `+`content behind reveal scripts \u2014 a no-JS visitor sees ~${Y.shellChars} chars. If this is a public/content route, add "no-stream" to its middleware.`}function GK(J=console.warn){let Y=new Set;return{shouldObserve(K){return!Y.has(K)},report(K,Z){if(Y.has(K))return;let X=NV(K,Z);if(!X)return;Y.add(K),J(X)}}}function OK(){let J=new TextDecoder,Y="";return{onChunk(K){Y+=J.decode(K,{stream:!0})},measure(){return Y+=J.decode(),OV(Y)}}}function LK(J,Y,K=1e4,Z){let X=new TextEncoder,Q=()=>{};return new ReadableStream({start(W){let w=!1,$=(U)=>{if(w)return;w=!0,clearTimeout(z);try{W.close()}catch{}Z?.({aborted:U})};Q=$,W.enqueue(X.encode(`${JSON.stringify(J)}
|
|
67
67
|
`)),Y.onSettle((U)=>{if(w||U.status!=="resolved")return;W.enqueue(X.encode(`${JSON.stringify([U.path,U.variantKey,U.data])}
|
|
68
68
|
`))});let z=setTimeout(()=>$(!0),K);Y.allSettled().then(()=>$(!1),()=>$(!1))},cancel(){Q(!1)}})}var C4,T4=async(...J)=>{return C4??=import("react-dom/server.browser").catch((Y)=>{throw C4=void 0,Y}),(await C4).renderToReadableStream(...J)},FV=1e4,_V=`
|
|
69
69
|
!function(){try{var d=document.documentElement,c=d.classList;
|
|
@@ -76,6 +76,6 @@ if('system'===e||(!e&&'system'===defaultTheme)){
|
|
|
76
76
|
}else if(e){
|
|
77
77
|
c.add(e||'')
|
|
78
78
|
}}catch(e){}}()
|
|
79
|
-
`;async function IV(J,Y,K){let Z=`${K==="italic"?"italic,":""}wght@${K==="italic"?"1,":""}${Y}`,W=(await(await fetch(`https://fonts.googleapis.com/css2?family=${J}:${Z}&display=swap`,{headers:{"User-Agent":"Mozilla/5.0 Firefox/1.0"}})).text()).match(/url\(([^)]+)\)/)?.[1];return await fetch(W).then((w)=>w.arrayBuffer())}var P4="/assets";function DV(J){let Y=J.filter((K)=>K===P4||K.startsWith(`${P4}/`));if(Y.length>0){let K=Y.length>1;throw Error(`View route path${K?"s":""} ${Y.map((Z)=>`"${Z}"`).join(", ")} use${K?"":"s"} the reserved "${P4}" prefix. The client build output is served from there before the router runs, so the route would never match. Mount it somewhere else.`)}}class S4{static token="router.view";flatViewRoutes={};routeManifest={};clientRouteManifest={};componentTree=[];flatComponentTree=[];root=null;shellReporter=GK();preloadCache=new WeakMap;hooks;partialRendering;constructor(J){let Y=e4();this.partialRendering=J.partialRendering??Y.partialRendering,this.hooks={onRequestStart:J.onRequestStart??Y.onRequestStart,onRequestEnd:J.onRequestEnd??Y.onRequestEnd,onRequestFail:J.onRequestFail??Y.onRequestFail,onStreamComplete:J.onStreamComplete??Y.onStreamComplete};let K={"/":J.rootRouter,"/auth":_6};this.flatViewRoutes=U6(K),DV(Object.keys(this.flatViewRoutes)),this.routeManifest=V6(K),this.clientRouteManifest=Object.fromEntries(Object.entries(this.routeManifest).filter(([,Z])=>Z.at(-1)!=="FILE")),this.componentTree=B6(K),this.flatComponentTree=I4(this.componentTree),this.root=J.root}async onRequestEnd(J){if(!J.cookies.has("session_id"))J.ctx().setCookie("session_id",Bun.randomUUIDv7(),{httpOnly:!0,secure:Bun.env.NODE_ENV==="production",sameSite:"Strict",expires:new Date(Date.now()+31536000000)});return await this.hooks.onRequestEnd(J)}completeStream(J,Y){let K=(Z)=>{R5.error(Z?.message??'Error in "onStreamComplete" event handler',{err:JSON.stringify(Z)})};try{Promise.resolve(this.hooks.onStreamComplete(J,Y)).catch(K)}catch(Z){K(Z)}}modulePreloadLinks(J){let{clientEntry:Y,modulePreloadManifest:K,views:Z,routeKey:X}=J,Q=()=>{let $=new Set(Y?.preload??[]);for(let z of Z)for(let U of K?.[z]??[])$.add(U);return[...$].map((z)=>C5("link",{key:`modulepreload:${z}`,rel:"modulepreload",href:z}))};if(!K)return Q();let W=this.preloadCache.get(K);if(!W||W.clientEntry!==Y)W={clientEntry:Y,byRoute:new Map},this.preloadCache.set(K,W);let w=W.byRoute.get(X);if(!w)w=Q(),W.byRoute.set(X,w);return w}async render(J){let{req:Y,runInRequestScope:K,csrfTokenHMAC:Z,currentPathName:X,headers:Q,i18n:W,params:w,pathname:$,serverQueries:z,userAgent:U,noStream:H,url:A,user:V,viewData:O,breadcrumbs:B,urlLocaleSegment:L,meta:M,isOgRequest:N,appId:E}=J,I=$.replace(`/${L}`,""),F={kind:"view",data:{meta:M,pageData:{[I]:O},__csrf:Z.toString("base64"),prefetchedData:{},i18n:W,auth:{user:V},routeManifest:this.clientRouteManifest,breadcrumbs:B,router:{urlLocaleSegment:L,pathname:X,params:w,currentPath:$,searchParams:A.search,is404:!X?!0:!1},appId:E,componentTree:[["404",[]],...this.componentTree]},head:{}},j=this.root,T=this.routeManifest[X];return async(D)=>{let{bootstrapModules:C=[],loaders:h,getStyles:d,viewImportMap:r,cssManifest:l,ogMap:P,viewModules:k,clientEntry:R,modulePreloadManifest:c}=D,u=R?[]:C,a=(g)=>[g,`window.loaders=${h}`,...R?[`import(${JSON.stringify(R.module)}).catch(function(e){setTimeout(function(){throw e})})`]:[]].join(";");if(N){let g=null,e=null;for(let Z0 of T??[])if(typeof P[Z0]==="function")e=Z0,g=P[Z0];if(!g)return new Response("Not found",{status:404});let Q0=Object.values(F.data.pageData)[0];try{await T4(C5(g,Q0[e]),{onError:()=>{}})}catch(Z0){let{fonts:Y0,...V0}=Z0.satoriOptions,E0=await Promise.all(Y0.map((v0)=>{return IV(v0.name,v0.weight,v0.style).then((k0)=>({...v0,data:k0}))})),K0=new Headers(Q);K0.set("Content-Type","image/png");let G0=await dY(Z0.jsx,{...V0,fonts:E0}),D0=await jV(Buffer.from(G0)).png({compressionLevel:0,effort:10}).toBuffer();return new Response(new Uint8Array(D0),{headers:K0})}return new Response("data")}F.data.cssManifest=l,F.data.modulePreloadManifest=c??{};let n=this.modulePreloadLinks({clientEntry:R,modulePreloadManifest:c,views:T??["404"],routeKey:X??"404"}),m=await d(T);F.data.prefetchedData=z.snapshotResolved(),z.markRenderStart();let x=new AbortController,S=setTimeout(()=>x.abort(),FV),y=BK(U)||H,p=Bun.env.NODE_ENV!=="production"&&!y&&X&&this.shellReporter.shouldObserve(X)?LK():null;try{let g=await T4(C5(EV,{children:[...n,...m,C5("script",{key:"theme-script",dangerouslySetInnerHTML:{__html:_V}}),C5(j,{data:F.data,viewImportMap:r,viewModules:k,serverQueries:z,key:"root"})]}),{bootstrapScriptContent:a(`window.__GEMI_DATA__ = ${JSON.stringify(F.data)}`),bootstrapModules:u,signal:x.signal,...y?{progressiveChunkSize:Number.MAX_SAFE_INTEGER}:{},onError(e){if(Bun.env.NODE_ENV!=="production")console.error(e)}});if(g.allReady.catch(()=>{}).finally(()=>clearTimeout(S)),y)await g.allReady.catch(()=>{});return new Response(R4(g,z,{onShell:y?void 0:()=>z.markShell(),onChunk:p?.onChunk,onClose:()=>K(()=>{if(this.completeStream(Y,z.summarize(x.signal.aborted)),p)this.shellReporter.report(X,p.measure())})}),{status:!X?404:200,headers:Q})}catch(g){clearTimeout(S);let e=await T4(C5("div"),{bootstrapScriptContent:a(`window.error= ${JSON.stringify(g.message)}; window.stack_trace=${JSON.stringify(g.stack)};window.__GEMI_DATA__ = ${JSON.stringify(F.data)}`),bootstrapModules:Bun.env.NODE_ENV==="development"?["/render-error.js",...u]:u});return new Response(R4(e,z,{onClose:()=>K(()=>this.completeStream(Y,z.summarize(x.signal.aborted)))}),{status:!X?404:200,headers:Q})}}}async handleViewRequest(J){let Y=new URL(J.url),K=Y.pathname.endsWith(".json"),Z=Y.pathname.endsWith(".og"),X=Y.pathname.replace(".json","").replace(".og",""),[,Q,...W]=X.split("/"),w=`/${W.join("/")}`,$=null,z=null,U=X0(p0);if(!U.supportedLocales.includes(Q))w=X;else $=Q,z=Q;if(U.isEnabled&&!Z){let E=X0(p0).detectLocale(new B0(J,{},"view",w));if(z===null&&E!==U.defaultLocale){let I=Y.pathname==="/"?"":Y.pathname;return new Response("",{status:302,headers:{"Cache-Control":"private, no-cache, no-store, max-age=0, must-revalidate",Location:`/${E}${I}${Y.search}`}})}}w=w.replace("//","/");let A=[],V=[],O=null,B={},L=null,M=!1;try{let E=A6(this.flatViewRoutes,w);if(E){if(O=E.routePath,B=E.params,A=E.route.exec,V=E.route.middleware,M=V.includes("no-stream"),K&&this.partialRendering){let I=J.headers.get(_4),F=VK({flatViewRoutes:this.flatViewRoutes,supportedLocales:X0(p0).supportedLocales,from:I,origin:Y.origin,to:{segments:E.route.segments,params:B,search:Y.search}});if(F.startIndex>0)A=A.slice(F.startIndex),L={from:I,carriedViews:F.carriedViews}}}}catch(E){throw E}let N=new B0(J,B,"view",O);return this.hooks.onRequestStart(N),await U0.run(N,async()=>{let E=null,I=U0.getStore(),F=T5.getStore(),j=(C)=>T5.run(F,()=>U0.runWith(I,C));I.serverQueries=new L5(w8(J));let T=new Set;if(I.serverQueries.onQueryFail((C)=>{T.add(C.error);try{j(()=>Promise.resolve(this.hooks.onRequestFail(D,C.error)).catch(()=>{}))}catch{}}),z){let C=z.replaceAll("/","");B5.setLocale(C)}else B5.setLocale();let D=I.req;try{await X0(g5).runMiddleware(V);let C=X0(p0),h=C.isEnabled,d={};if(h){let x=null;if(z)x=z.replaceAll("/",""),I.setLocale(x);else x=C.detectLocale(new B0(J,D.params)),I.setLocale(x);let S=C.getPageTranslations(x,D.routePath);d={supportedLocales:C.supportedLocales,currentLocale:x,dictionary:{[x]:S},defaultLocale:C.defaultLocale}}let r=await Promise.all(A.map((x)=>x(D))),l=I.cookies,P=I.headers;E={data:r,cookies:l,headers:P,user:I.user,prefetchedData:I.serverQueries.snapshotResolved(),currentPathName:D.routePath,params:D.params,urlLocaleSegment:$,meta:I.renderMeta(),appId:X0(D4).id};let{params:k,currentPathName:R,user:c}=E,u={},a={};for(let x of r??[]){let[S,y]=Object.entries(x)?.[0]??[];if(!S||!y)continue;a[`${S}:${R}`]=y.breadcrumb,u[S]=y}let n=u.FILE;if(n){for(let x of l)P.append("Set-Cookie",x.toString());try{await this.onRequestEnd(D)}catch(x){R5.error(x?.message??'Error in "onRequestEnd" event handler',{err:JSON.stringify(x)})}return await qK(n,P)}if(K){P.set("Content-Type","application/x-ndjson; charset=utf-8"),P.append("Vary",_4),l.forEach((S)=>P.append("Set-Cookie",S.toString())),await this.hooks.onRequestEnd(D);let x={meta:L&&!I.metadata.touched?null:E.meta,data:{[w]:u},breadcrumbs:a,prefetchedData:I.serverQueries.snapshotResolved(),i18n:d,is404:!R,appId:E.appId,partial:L};return new Response(OK(x,I.serverQueries,void 0,({aborted:S})=>j(()=>this.completeStream(D,I.serverQueries.summarize(S)))),{headers:P})}if(P.set("Content-Type","text/html; charset=utf-8"),!M)P.append("Vary","User-Agent");for(let x of l)P.append("Set-Cookie",x.toString());let m=Bun.CSRF.generate(process.env.SECRET);P.append("Set-Cookie",`csrf_token=${m}; HttpOnly; Secure; SameSite=Strict; Expires=${new Date(Date.now()+86400000).toUTCString()}`);try{await this.onRequestEnd(D)}catch(x){R5.error(x?.message??'Error in "onRequestEnd" event handler',{err:JSON.stringify(x)})}return await this.render({req:D,runInRequestScope:j,csrfTokenHMAC:Buffer.from(""),currentPathName:R,headers:P,i18n:d,params:k,pathname:Y.pathname,serverQueries:I.serverQueries,userAgent:J.headers.get("user-agent"),noStream:M,url:Y,user:c,viewData:u,breadcrumbs:a,urlLocaleSegment:$,meta:E.meta,appId:E.appId,isOgRequest:Z})}catch(C){if(C.kind===$8)if(K){let{status:h=400,data:d,directive:r,headers:l}=C.payload.api;return new Response(JSON.stringify({data:d,directive:r}),{headers:l,status:h})}else{let{status:h=400,error:d}=C.payload.view;return new Response(d?.message,{...C.payload.view,status:h})}if(!T.has(C))this.hooks.onRequestFail(D,C);throw C}})}}class MK extends M1{routes={"/api-routes":this.get(()=>{let J=X0(G6).flatRoutes,Y=[];for(let[K,Z]of Object.entries(J))for(let[X,Q]of Object.entries(Z)){let{exec:W,middleware:w}=Q;Y.push({path:K,method:X,middleware:w})}return Y}),"/view-routes":this.get(()=>{let J=X0(S4).flatViewRoutes,Y=[];for(let[K,{middleware:Z,viewPath:X}]of Object.entries(J))Y.push({path:K,method:"GET",viewPath:X,middleware:Z});return Y})}}class G6{static token="router.api";flatRoutes={};onRequestStart;onRequestEnd;onRequestFail;constructor(J){let Y=t4();this.onRequestStart=J.onRequestStart??Y.onRequestStart,this.onRequestEnd=J.onRequestEnd??Y.onRequestEnd,this.onRequestFail=J.onRequestFail??Y.onRequestFail,this.flatRoutes=k6({"/":J.rootRouter,"/auth":I6,"/__gemi__/services/i18n":D6,"/__gemi__/services/logs":v6,"/__gemi__/services/image":T6,"/__gemi__/debug":MK})}getRouteHandlerAndParams(J){let K=new URL(J.url).pathname.replace("/api",""),Z={},X;for(let[Q]of Object.entries(this.flatRoutes))try{let W=new URLPattern({pathname:Q});if(W.test({pathname:K})){X=Q,Z=W.exec({pathname:K})?.pathname.groups;break}}catch(W){console.error(W)}return{params:Z,path:X}}async runRouteMiddleware(J,Y){let Z=this.flatRoutes[J][Y.rawRequest.method].middleware;try{await X0(g5).runMiddleware(Z)}catch(X){if(X.kind===$8){if(Y.rawRequest.url.includes("/api")){let{status:Q=400,data:W,headers:w}=X.payload.api;return new Response(JSON.stringify(W),{status:Q,headers:{"Content-Type":"application/json",...w}})}}else throw this.onRequestFail(Y,X),console.error(X),X}}async getRouteData(J){let Y=this.flatRoutes[J],K=U0.getStore(),Z=Y[K.req.rawRequest.method].exec??(()=>Promise.resolve({})),X={};try{X=await Z()}catch(Q){if(Q.kind===$8){let{status:W=400,data:w,headers:$}=Q.payload.api;return new Response(JSON.stringify(w),{status:W,headers:{"Content-Type":"application/json",...$}})}throw this.onRequestFail(K.req,Q),console.error(Q),Q}return X}mergeContextIntoResponse(J,Y,K){let Z=[];Y?.forEach((W,w)=>Z.push([w,W]));let X=[...typeof Y?.getSetCookie==="function"?Y.getSetCookie():[],...Array.from(K??[])];if(Z.length===0&&X.length===0)return J;let Q=(W)=>{for(let[w,$]of Z){if(w.toLowerCase()==="set-cookie")continue;if(!W.has(w))W.set(w,$)}for(let w of X)W.append("Set-Cookie",w)};try{return Q(J.headers),J}catch{let W=new Headers(J.headers);return Q(W),new Response(J.body,{status:J.status,statusText:J.statusText,headers:W})}}async handleApiRequest(J){let{params:Y,path:K}=this.getRouteHandlerAndParams(J),Z=this.flatRoutes[K];if(!Z||!Z[J.method])return new Response(JSON.stringify({error:{message:"Not found"}}),{status:404});let X=new B0(J,Y,"api",K);if(!J.url.includes("/__gemi__"))this.onRequestStart(X);return await U0.run(X,async()=>{let Q=U0.getStore(),W=X0(p0);if(W.isEnabled){let H=W.detectLocale(X);Q.setLocale(H)}Q.setRequest(X);let w=await this.runRouteMiddleware(K,X);if(w instanceof Response)return w;let $=await this.getRouteData(K),z=Q.headers,U=Q.cookies;if($ instanceof Response){let H=this.mergeContextIntoResponse($,z,U);if(!J.url.includes("/__gemi__"))this.onRequestEnd(X);return Q.destroy(),H}if(z.set("Content-Type","application/json"),U.forEach((H)=>z.append("Set-Cookie",H.toString())),!J.url.includes("/__gemi__"))this.onRequestEnd(X);return Q.destroy(),new Response(JSON.stringify($),{headers:z})})}}function w8(J){let Y=T5.getStore();return(K,Z,X)=>{let Q=new URL(J.url).origin,W=[i0(K,Z),X.toString()].filter((z)=>z.length>0).join("?"),w=new Request(`${Q}/${W}`,{headers:J.headers}),$=new B0(w,Z);return T5.run(Y,()=>U0.run($,async()=>{try{let z=await X0(G6).getRouteData(K);if(z instanceof Response){let U=await z.json().catch(()=>null);if(!z.ok)throw new v5(i0(K,Z),X.toString(),z.status,U);return U}return z}catch(z){if(z instanceof v5)throw z;let U=new v5(i0(K,Z),X.toString(),500,{message:z instanceof Error?z.message:String(z)});throw U.cause=z,U}}))}}class L6{static ensure(J,Y={}){let K=U0.getStore();if(K.req.kind==="api")throw Error("Query.prefetch() cannot be called from an API request");return K.serverQueries??=new L5(w8(K.req.rawRequest)),K.serverQueries.ensure(J,Y,"prefetch")}static async instant(J,...Y){let K=L6.ensure(J,Y[0]);if(await K.promise,K.status==="rejected")throw K.error;return K.data}static prefetch(J,...Y){L6.ensure(J,Y[0])}static noPrefetch(){let J=U0.getStore();if(J.req.kind==="api")throw Error("Query.noPrefetch() cannot be called from an API request");J.serverQueries??=new L5(w8(J.req.rawRequest)),J.serverQueries.muteDiscoveryHints()}}class NK{static absolute(J,...Y){return`${process.env.HOST_NAME}${i0(String(J),Y[0]??{})}`}static relative(J,...Y){return i0(String(J),Y[0]??{})}}class jK{name="Meta";static description(J){U0.getStore().metadata.description(J)}static title(J){U0.getStore().metadata.title(J)}static openGraph(J){U0.getStore().metadata.openGraph(J)}}var RV={set(J,Y,K){U0.getStore().setCookie(J,Y,K)},setIfAbsent(J,Y,K){if(U0.getStore().req.cookies.has(J))return!1;return U0.getStore().setCookie(J,Y,K),!0},delete(J){U0.getStore().deleteCookie(J)}};var{RedisClient:CV}=globalThis.Bun;class v4{config;static token="redis";client;constructor(J={}){this.config=J;this.client=new CV(J.url,J.options)}}class y1 extends y0{static getFacadeAccessor(){return v4}static get client(){return this.getFacadeRoot().client}static get(J){return y1.client.get(J)}static set(J,Y){return y1.client.set(J,Y)}static del(...J){return y1.client.del(...J)}static exists(J){return y1.client.exists(J)}static incr(J){return y1.client.incr(J)}static expire(J,Y){return y1.client.expire(J,Y)}static ttl(J){return y1.client.ttl(J)}}class FK extends y0{static getFacadeAccessor(){return EK}static consume(J,Y={}){return this.getFacadeRoot().consume(J,Y)}}class O6{bound;constructor(J){this.bound=J}get name(){return this.bound??k4()}get sql(){return this.connection().sql}get dialect(){return this.connection().dialect}async query(J){return await this.run(J,"query")}async execute(J){let Y=await this.run(J,"execute");return Number(Y?.count??0)}async transaction(J){let Y=this.name,K=this.connection(Y);return RK(K.sql,(Z)=>IK(Y,()=>J(Z)),{slowTransactionThreshold:K.config.slowTransactionThreshold,connection:Y})}run(J,Y){let K=this.connection(),{text:Z,values:X}=TK(J,CK(K.dialect),Y);return(this.handle()??K.sql).unsafe(Z,X)}handle(){let J=_K();if(J===void 0)return;return k4()===this.name?J:void 0}connection(J=this.name){return DK(J),X0(y4).connection(J)}}var z8=new O6;class PK extends y0{static getFacadeAccessor(){return y4}static connection(J){return new O6(J)}static get sql(){return z8.sql}static get dialect(){return z8.dialect}static query(J){return z8.query(J)}static execute(J){return z8.execute(J)}static transaction(J){return z8.transaction(J)}static close(){return this.getFacadeRoot().close()}}export{y0 as Gb,q6 as Hb,V8 as Ib,f1 as Jb,B5 as Kb,M6 as Lb,N6 as Mb,Y3 as Nb,c4 as Ob,j6 as Pb,d4 as Qb,R6 as Rb,C6 as Sb,f3 as Tb,r4 as Ub,s4 as Vb,y5 as Wb,g5 as Xb,KB as Yb,t4 as Zb,e4 as _b,F4 as $b,R5 as ac,D4 as bc,P4 as cc,S4 as dc,G6 as ec,L6 as fc,NK as gc,jK as hc,RV as ic,v4 as jc,y1 as kc,FK as lc,O6 as mc,PK as nc};
|
|
79
|
+
`;async function IV(J,Y,K){let Z=`${K==="italic"?"italic,":""}wght@${K==="italic"?"1,":""}${Y}`,W=(await(await fetch(`https://fonts.googleapis.com/css2?family=${J}:${Z}&display=swap`,{headers:{"User-Agent":"Mozilla/5.0 Firefox/1.0"}})).text()).match(/url\(([^)]+)\)/)?.[1];return await fetch(W).then((w)=>w.arrayBuffer())}var P4="/assets";function DV(J){let Y=J.filter((K)=>K===P4||K.startsWith(`${P4}/`));if(Y.length>0){let K=Y.length>1;throw Error(`View route path${K?"s":""} ${Y.map((Z)=>`"${Z}"`).join(", ")} use${K?"":"s"} the reserved "${P4}" prefix. The client build output is served from there before the router runs, so the route would never match. Mount it somewhere else.`)}}class S4{static token="router.view";flatViewRoutes={};routeManifest={};clientRouteManifest={};componentTree=[];flatComponentTree=[];root=null;shellReporter=GK();preloadCache=new WeakMap;hooks;partialRendering;constructor(J){let Y=e4();this.partialRendering=J.partialRendering??Y.partialRendering,this.hooks={onRequestStart:J.onRequestStart??Y.onRequestStart,onRequestEnd:J.onRequestEnd??Y.onRequestEnd,onRequestFail:J.onRequestFail??Y.onRequestFail,onStreamComplete:J.onStreamComplete??Y.onStreamComplete};let K={"/":J.rootRouter,"/auth":_6};this.flatViewRoutes=z6(K),DV(Object.keys(this.flatViewRoutes)),this.routeManifest=A6(K),this.clientRouteManifest=Object.fromEntries(Object.entries(this.routeManifest).filter(([,Z])=>Z.at(-1)!=="FILE")),this.componentTree=V6(K),this.flatComponentTree=I4(this.componentTree),this.root=J.root}async onRequestEnd(J){if(!J.cookies.has("session_id"))J.ctx().setCookie("session_id",Bun.randomUUIDv7(),{httpOnly:!0,secure:Bun.env.NODE_ENV==="production",sameSite:"Strict",expires:new Date(Date.now()+31536000000)});return await this.hooks.onRequestEnd(J)}completeStream(J,Y){let K=(Z)=>{D5.error(Z?.message??'Error in "onStreamComplete" event handler',{err:JSON.stringify(Z)})};try{Promise.resolve(this.hooks.onStreamComplete(J,Y)).catch(K)}catch(Z){K(Z)}}modulePreloadLinks(J){let{clientEntry:Y,modulePreloadManifest:K,views:Z,routeKey:X}=J,Q=()=>{let $=new Set(Y?.preload??[]);for(let z of Z)for(let U of K?.[z]??[])$.add(U);return[...$].map((z)=>R5("link",{key:`modulepreload:${z}`,rel:"modulepreload",href:z}))};if(!K)return Q();let W=this.preloadCache.get(K);if(!W||W.clientEntry!==Y)W={clientEntry:Y,byRoute:new Map},this.preloadCache.set(K,W);let w=W.byRoute.get(X);if(!w)w=Q(),W.byRoute.set(X,w);return w}async render(J){let{req:Y,runInRequestScope:K,csrfTokenHMAC:Z,currentPathName:X,headers:Q,i18n:W,params:w,pathname:$,serverQueries:z,userAgent:U,noStream:H,url:A,user:V,viewData:L,breadcrumbs:B,urlLocaleSegment:O,meta:q,isOgRequest:N,appId:E}=J,I=$.replace(`/${O}`,""),F={kind:"view",data:{meta:q,pageData:{[I]:L},__csrf:Z.toString("base64"),prefetchedData:{},i18n:W,auth:{user:V},routeManifest:this.clientRouteManifest,breadcrumbs:B,router:{urlLocaleSegment:O,pathname:X,params:w,currentPath:$,searchParams:A.search,is404:!X?!0:!1},appId:E,componentTree:[["404",[]],...this.componentTree]},head:{}},j=this.root,T=this.routeManifest[X];return async(D)=>{let{bootstrapModules:C=[],loaders:g,getStyles:d,viewImportMap:r,cssManifest:l,ogMap:P,viewModules:k,clientEntry:R,modulePreloadManifest:c}=D,u=R?[]:C,a=(h)=>[h,`window.loaders=${g}`,...R?[`import(${JSON.stringify(R.module)}).catch(function(e){setTimeout(function(){throw e})})`]:[]].join(";");if(N){let h=null,e=null;for(let Z0 of T??[])if(typeof P[Z0]==="function")e=Z0,h=P[Z0];if(!h)return new Response("Not found",{status:404});let Q0=Object.values(F.data.pageData)[0];try{await T4(R5(h,Q0[e]),{onError:()=>{}})}catch(Z0){let{fonts:Y0,...A0}=Z0.satoriOptions,E0=await Promise.all(Y0.map((v0)=>{return IV(v0.name,v0.weight,v0.style).then((k0)=>({...v0,data:k0}))})),K0=new Headers(Q);K0.set("Content-Type","image/png");let B0=await dY(Z0.jsx,{...A0,fonts:E0}),D0=await jV(Buffer.from(B0)).png({compressionLevel:0,effort:10}).toBuffer();return new Response(new Uint8Array(D0),{headers:K0})}return new Response("data")}F.data.cssManifest=l,F.data.modulePreloadManifest=c??{};let n=this.modulePreloadLinks({clientEntry:R,modulePreloadManifest:c,views:T??["404"],routeKey:X??"404"}),m=await d(T);F.data.prefetchedData=z.snapshotResolved(),z.markRenderStart();let x=new AbortController,S=setTimeout(()=>x.abort(),FV),y=BK(U)||H,p=Bun.env.NODE_ENV!=="production"&&!y&&X&&this.shellReporter.shouldObserve(X)?OK():null;try{let h=await T4(R5(EV,{children:[...n,...m,R5("script",{key:"theme-script",dangerouslySetInnerHTML:{__html:_V}}),R5(j,{data:F.data,viewImportMap:r,viewModules:k,serverQueries:z,key:"root"})]}),{bootstrapScriptContent:a(`window.__GEMI_DATA__ = ${JSON.stringify(F.data)}`),bootstrapModules:u,signal:x.signal,...y?{progressiveChunkSize:Number.MAX_SAFE_INTEGER}:{},onError(e){if(Bun.env.NODE_ENV!=="production")console.error(e)}});if(h.allReady.catch(()=>{}).finally(()=>clearTimeout(S)),y)await h.allReady.catch(()=>{});return new Response(R4(h,z,{onShell:y?void 0:()=>z.markShell(),onChunk:p?.onChunk,onClose:()=>K(()=>{if(this.completeStream(Y,z.summarize(x.signal.aborted)),p)this.shellReporter.report(X,p.measure())})}),{status:!X?404:200,headers:Q})}catch(h){clearTimeout(S);let e=await T4(R5("div"),{bootstrapScriptContent:a(`window.error= ${JSON.stringify(h.message)}; window.stack_trace=${JSON.stringify(h.stack)};window.__GEMI_DATA__ = ${JSON.stringify(F.data)}`),bootstrapModules:Bun.env.NODE_ENV==="development"?["/render-error.js",...u]:u});return new Response(R4(e,z,{onClose:()=>K(()=>this.completeStream(Y,z.summarize(x.signal.aborted)))}),{status:!X?404:200,headers:Q})}}}async handleViewRequest(J){let Y=new URL(J.url),K=Y.pathname.endsWith(".json"),Z=Y.pathname.endsWith(".og"),X=Y.pathname.replace(".json","").replace(".og",""),[,Q,...W]=X.split("/"),w=`/${W.join("/")}`,$=null,z=null,U=X0(o0);if(!U.supportedLocales.includes(Q))w=X;else $=Q,z=Q;if(U.isEnabled&&!Z){let E=X0(o0).detectLocale(new V0(J,{},"view",w));if(z===null&&E!==U.defaultLocale){let I=Y.pathname==="/"?"":Y.pathname;return new Response("",{status:302,headers:{"Cache-Control":"private, no-cache, no-store, max-age=0, must-revalidate",Location:`/${E}${I}${Y.search}`}})}}w=w.replace("//","/");let A=[],V=[],L=null,B={},O=null,q=!1;try{let E=H6(this.flatViewRoutes,w);if(E){if(L=E.routePath,B=E.params,A=E.route.exec,V=E.route.middleware,q=V.includes("no-stream"),K&&this.partialRendering){let I=J.headers.get(_4),F=VK({flatViewRoutes:this.flatViewRoutes,supportedLocales:X0(o0).supportedLocales,from:I,origin:Y.origin,to:{segments:E.route.segments,params:B,search:Y.search}});if(F.startIndex>0)A=A.slice(F.startIndex),O={from:I,carriedViews:F.carriedViews}}}}catch(E){throw E}let N=new V0(J,B,"view",L);return this.hooks.onRequestStart(N),await L0.run(N,async()=>{let E=null,I=L0.getStore(),F=C5.getStore(),j=(C)=>C5.run(F,()=>L0.runWith(I,C));I.serverQueries=new G5($8(J));let T=new Set;if(I.serverQueries.onQueryFail((C)=>{T.add(C.error);try{j(()=>Promise.resolve(this.hooks.onRequestFail(D,C.error)).catch(()=>{}))}catch{}}),z){let C=z.replaceAll("/","");B6.setLocale(C)}else B6.setLocale();let D=I.req;try{await X0(y5).runMiddleware(V);let C=X0(o0),g=C.isEnabled,d={};if(g){let x=null;if(z)x=z.replaceAll("/",""),I.setLocale(x);else x=C.detectLocale(new V0(J,D.params)),I.setLocale(x);let S=C.getPageTranslations(x,D.routePath);d={supportedLocales:C.supportedLocales,currentLocale:x,dictionary:{[x]:S},defaultLocale:C.defaultLocale}}let r=await Promise.all(A.map((x)=>x(D))),l=I.cookies,P=I.headers;E={data:r,cookies:l,headers:P,user:I.user,prefetchedData:I.serverQueries.snapshotResolved(),currentPathName:D.routePath,params:D.params,urlLocaleSegment:$,meta:I.renderMeta(),appId:X0(D4).id};let{params:k,currentPathName:R,user:c}=E,u={},a={};for(let x of r??[]){let[S,y]=Object.entries(x)?.[0]??[];if(!S||!y)continue;a[`${S}:${R}`]=y.breadcrumb,u[S]=y}let n=u.FILE;if(n){for(let x of l)P.append("Set-Cookie",x.toString());try{await this.onRequestEnd(D)}catch(x){D5.error(x?.message??'Error in "onRequestEnd" event handler',{err:JSON.stringify(x)})}return await MK(n,P)}if(K){P.set("Content-Type","application/x-ndjson; charset=utf-8"),P.append("Vary",_4),l.forEach((S)=>P.append("Set-Cookie",S.toString())),await this.hooks.onRequestEnd(D);let x={meta:O&&!I.metadata.touched?null:E.meta,data:{[w]:u},breadcrumbs:a,prefetchedData:I.serverQueries.snapshotResolved(),i18n:d,is404:!R,appId:E.appId,partial:O};return new Response(LK(x,I.serverQueries,void 0,({aborted:S})=>j(()=>this.completeStream(D,I.serverQueries.summarize(S)))),{headers:P})}if(P.set("Content-Type","text/html; charset=utf-8"),!q)P.append("Vary","User-Agent");for(let x of l)P.append("Set-Cookie",x.toString());let m=Bun.CSRF.generate(process.env.SECRET);P.append("Set-Cookie",`csrf_token=${m}; HttpOnly; Secure; SameSite=Strict; Expires=${new Date(Date.now()+86400000).toUTCString()}`);try{await this.onRequestEnd(D)}catch(x){D5.error(x?.message??'Error in "onRequestEnd" event handler',{err:JSON.stringify(x)})}return await this.render({req:D,runInRequestScope:j,csrfTokenHMAC:Buffer.from(""),currentPathName:R,headers:P,i18n:d,params:k,pathname:Y.pathname,serverQueries:I.serverQueries,userAgent:J.headers.get("user-agent"),noStream:q,url:Y,user:c,viewData:u,breadcrumbs:a,urlLocaleSegment:$,meta:E.meta,appId:E.appId,isOgRequest:Z})}catch(C){if(C.kind===W8)if(K){let{status:g=400,data:d,directive:r,headers:l}=C.payload.api;return new Response(JSON.stringify({data:d,directive:r}),{headers:l,status:g})}else{let{status:g=400,error:d}=C.payload.view;return new Response(d?.message,{...C.payload.view,status:g})}if(!T.has(C))this.hooks.onRequestFail(D,C);throw C}})}}class qK extends q1{routes={"/api-routes":this.get(()=>{let J=X0(G6).flatRoutes,Y=[];for(let[K,Z]of Object.entries(J))for(let[X,Q]of Object.entries(Z)){let{exec:W,middleware:w}=Q;Y.push({path:K,method:X,middleware:w})}return Y}),"/view-routes":this.get(()=>{let J=X0(S4).flatViewRoutes,Y=[];for(let[K,{middleware:Z,viewPath:X}]of Object.entries(J))Y.push({path:K,method:"GET",viewPath:X,middleware:Z});return Y})}}class G6{static token="router.api";flatRoutes={};onRequestStart;onRequestEnd;onRequestFail;constructor(J){let Y=t4();this.onRequestStart=J.onRequestStart??Y.onRequestStart,this.onRequestEnd=J.onRequestEnd??Y.onRequestEnd,this.onRequestFail=J.onRequestFail??Y.onRequestFail,this.flatRoutes=k6({"/":J.rootRouter,"/auth":I6,"/__gemi__/services/i18n":D6,"/__gemi__/services/logs":v6,"/__gemi__/services/image":T6,"/__gemi__/debug":qK})}getRouteHandlerAndParams(J){let K=new URL(J.url).pathname.replace("/api",""),Z={},X;for(let[Q]of Object.entries(this.flatRoutes))try{let W=new URLPattern({pathname:Q});if(W.test({pathname:K})){X=Q,Z=W.exec({pathname:K})?.pathname.groups;break}}catch(W){console.error(W)}return{params:Z,path:X}}async runRouteMiddleware(J,Y){let Z=this.flatRoutes[J][Y.rawRequest.method].middleware;try{await X0(y5).runMiddleware(Z)}catch(X){if(X.kind===W8){if(Y.rawRequest.url.includes("/api")){let{status:Q=400,data:W,headers:w}=X.payload.api;return new Response(JSON.stringify(W),{status:Q,headers:{"Content-Type":"application/json",...w}})}}else throw this.onRequestFail(Y,X),console.error(X),X}}async getRouteData(J){let Y=this.flatRoutes[J],K=L0.getStore(),Z=Y[K.req.rawRequest.method].exec??(()=>Promise.resolve({})),X={};try{X=await Z()}catch(Q){if(Q.kind===W8){let{status:W=400,data:w,headers:$}=Q.payload.api;return new Response(JSON.stringify(w),{status:W,headers:{"Content-Type":"application/json",...$}})}throw this.onRequestFail(K.req,Q),console.error(Q),Q}return X}mergeContextIntoResponse(J,Y,K){let Z=[];Y?.forEach((W,w)=>Z.push([w,W]));let X=[...typeof Y?.getSetCookie==="function"?Y.getSetCookie():[],...Array.from(K??[])];if(Z.length===0&&X.length===0)return J;let Q=(W)=>{for(let[w,$]of Z){if(w.toLowerCase()==="set-cookie")continue;if(!W.has(w))W.set(w,$)}for(let w of X)W.append("Set-Cookie",w)};try{return Q(J.headers),J}catch{let W=new Headers(J.headers);return Q(W),new Response(J.body,{status:J.status,statusText:J.statusText,headers:W})}}async handleApiRequest(J){let{params:Y,path:K}=this.getRouteHandlerAndParams(J),Z=this.flatRoutes[K];if(!Z||!Z[J.method])return new Response(JSON.stringify({error:{message:"Not found"}}),{status:404});let X=new V0(J,Y,"api",K);if(!J.url.includes("/__gemi__"))this.onRequestStart(X);return await L0.run(X,async()=>{let Q=L0.getStore(),W=X0(o0);if(W.isEnabled){let H=W.detectLocale(X);Q.setLocale(H)}Q.setRequest(X);let w=await this.runRouteMiddleware(K,X);if(w instanceof Response)return w;let $=await this.getRouteData(K),z=Q.headers,U=Q.cookies;if($ instanceof Response){let H=this.mergeContextIntoResponse($,z,U);if(!J.url.includes("/__gemi__"))this.onRequestEnd(X);return Q.destroy(),H}if(z.set("Content-Type","application/json"),U.forEach((H)=>z.append("Set-Cookie",H.toString())),!J.url.includes("/__gemi__"))this.onRequestEnd(X);return Q.destroy(),new Response(JSON.stringify($),{headers:z})})}}function $8(J){let Y=C5.getStore();return(K,Z,X)=>{let Q=new URL(J.url).origin,W=[p0(K,Z),X.toString()].filter((z)=>z.length>0).join("?"),w=new Request(`${Q}/${W}`,{headers:J.headers}),$=new V0(w,Z);return C5.run(Y,()=>L0.run($,async()=>{try{let z=await X0(G6).getRouteData(K);if(z instanceof Response){let U=await z.json().catch(()=>null);if(!z.ok)throw new S5(p0(K,Z),X.toString(),z.status,U);return U}return z}catch(z){if(z instanceof S5)throw z;let U=new S5(p0(K,Z),X.toString(),500,{message:z instanceof Error?z.message:String(z)});throw U.cause=z,U}}))}}class O6{static ensure(J,Y={}){let K=L0.getStore();if(K.req.kind==="api")throw Error("Query.prefetch() cannot be called from an API request");return K.serverQueries??=new G5($8(K.req.rawRequest)),K.serverQueries.ensure(J,Y,"prefetch")}static async instant(J,...Y){let K=O6.ensure(J,Y[0]);if(await K.promise,K.status==="rejected")throw K.error;return K.data}static prefetch(J,...Y){O6.ensure(J,Y[0])}static noPrefetch(){let J=L0.getStore();if(J.req.kind==="api")throw Error("Query.noPrefetch() cannot be called from an API request");J.serverQueries??=new G5($8(J.req.rawRequest)),J.serverQueries.muteDiscoveryHints()}}class NK{static absolute(J,...Y){return`${process.env.HOST_NAME}${p0(String(J),Y[0]??{})}`}static relative(J,...Y){return p0(String(J),Y[0]??{})}}class jK{name="Meta";static description(J){L0.getStore().metadata.description(J)}static title(J){L0.getStore().metadata.title(J)}static openGraph(J){L0.getStore().metadata.openGraph(J)}}var RV={set(J,Y,K){L0.getStore().setCookie(J,Y,K)},setIfAbsent(J,Y,K){if(L0.getStore().req.cookies.has(J))return!1;return L0.getStore().setCookie(J,Y,K),!0},delete(J){L0.getStore().deleteCookie(J)}};var{RedisClient:CV}=globalThis.Bun;class v4{config;static token="redis";client;constructor(J={}){this.config=J;this.client=new CV(J.url,J.options)}}class y1 extends l0{static getFacadeAccessor(){return v4}static get client(){return this.getFacadeRoot().client}static get(J){return y1.client.get(J)}static set(J,Y){return y1.client.set(J,Y)}static del(...J){return y1.client.del(...J)}static exists(J){return y1.client.exists(J)}static incr(J){return y1.client.incr(J)}static expire(J,Y){return y1.client.expire(J,Y)}static ttl(J){return y1.client.ttl(J)}}class FK extends l0{static getFacadeAccessor(){return EK}static consume(J,Y={}){return this.getFacadeRoot().consume(J,Y)}}class L6{bound;constructor(J){this.bound=J}get name(){return this.bound??k4()}get sql(){return this.connection().sql}get dialect(){return this.connection().dialect}async query(J){return await this.run(J,"query")}async execute(J){let Y=await this.run(J,"execute");return Number(Y?.count??0)}async transaction(J){let Y=this.name,K=this.connection(Y);return RK(K.sql,(Z)=>IK(Y,()=>J(Z)),{slowTransactionThreshold:K.config.slowTransactionThreshold,connection:Y})}run(J,Y){let K=this.connection(),{text:Z,values:X}=TK(J,CK(K.dialect),Y);return(this.handle()??K.sql).unsafe(Z,X)}handle(){let J=_K();if(J===void 0)return;return k4()===this.name?J:void 0}connection(J=this.name){return DK(J),X0(y4).connection(J)}}var w8=new L6;class PK extends l0{static getFacadeAccessor(){return y4}static connection(J){return new L6(J)}static get sql(){return w8.sql}static get dialect(){return w8.dialect}static query(J){return w8.query(J)}static execute(J){return w8.execute(J)}static transaction(J){return w8.transaction(J)}static close(){return this.getFacadeRoot().close()}}export{M6 as Gb,A8 as Hb,f1 as Ib,q6 as Jb,N6 as Kb,rV as Lb,c4 as Mb,j6 as Nb,d4 as Ob,R6 as Pb,C6 as Qb,k3 as Rb,r4 as Sb,s4 as Tb,k5 as Ub,y5 as Vb,s3 as Wb,t4 as Xb,e4 as Yb,F4 as Zb,D5 as _b,D4 as $b,P4 as ac,S4 as bc,G6 as cc,O6 as dc,NK as ec,jK as fc,RV as gc,v4 as hc,y1 as ic,FK as jc,L6 as kc,PK as lc};
|
|
80
80
|
|
|
81
|
-
//# debugId=
|
|
81
|
+
//# debugId=CD90D11BD0BD1ECE64756E2164756E21
|