gemi 0.42.2 → 0.43.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.
Files changed (148) hide show
  1. package/dist/app/index.js +1 -1
  2. package/dist/bin/gemi.js +392 -70
  3. package/dist/bin/gemi.js.map +15 -12
  4. package/dist/broadcasting/index.js +1 -1
  5. package/dist/bun/plugin.js +1 -1
  6. package/dist/bun/preload.js +1 -1
  7. package/dist/{chunk-522q81af.js → chunk-20376aj6.js} +3 -3
  8. package/dist/{chunk-522q81af.js.map → chunk-20376aj6.js.map} +1 -1
  9. package/dist/{chunk-wa84ybnt.js → chunk-25d4feyv.js} +22 -22
  10. package/dist/{chunk-wa84ybnt.js.map → chunk-25d4feyv.js.map} +8 -6
  11. package/dist/{chunk-qyn10pv7.js → chunk-32ct42e2.js} +1 -1
  12. package/dist/{chunk-cx38xsyf.js → chunk-3xqyzegw.js} +2 -2
  13. package/dist/{chunk-cx38xsyf.js.map → chunk-3xqyzegw.js.map} +1 -1
  14. package/dist/{chunk-358x9aca.js → chunk-5kx4hw7c.js} +2 -2
  15. package/dist/{chunk-358x9aca.js.map → chunk-5kx4hw7c.js.map} +1 -1
  16. package/dist/{chunk-cwq1vdcb.js → chunk-6gtmkbh0.js} +2 -2
  17. package/dist/{chunk-cwq1vdcb.js.map → chunk-6gtmkbh0.js.map} +1 -1
  18. package/dist/{chunk-z9vdcpqr.js → chunk-87keq057.js} +2 -2
  19. package/dist/{chunk-z9vdcpqr.js.map → chunk-87keq057.js.map} +1 -1
  20. package/dist/{chunk-ayjtdck4.js → chunk-8b461343.js} +2 -2
  21. package/dist/{chunk-ayjtdck4.js.map → chunk-8b461343.js.map} +1 -1
  22. package/dist/{chunk-0pjn1a5d.js → chunk-9cw39se2.js} +2 -2
  23. package/dist/{chunk-0pjn1a5d.js.map → chunk-9cw39se2.js.map} +1 -1
  24. package/dist/{chunk-b3qebxqh.js → chunk-9r2k5ykk.js} +2 -2
  25. package/dist/{chunk-b3qebxqh.js.map → chunk-9r2k5ykk.js.map} +1 -1
  26. package/dist/{chunk-8cqkdzyh.js → chunk-9s3te5pa.js} +3 -3
  27. package/dist/{chunk-8cqkdzyh.js.map → chunk-9s3te5pa.js.map} +1 -1
  28. package/dist/{chunk-9byxbqnn.js → chunk-bsfbba90.js} +2 -2
  29. package/dist/{chunk-9byxbqnn.js.map → chunk-bsfbba90.js.map} +1 -1
  30. package/dist/{chunk-8mgsjrcc.js → chunk-cbvq4keh.js} +2 -2
  31. package/dist/{chunk-8mgsjrcc.js.map → chunk-cbvq4keh.js.map} +1 -1
  32. package/dist/{chunk-xpk460d1.js → chunk-drbqadx7.js} +1 -1
  33. package/dist/{chunk-akbepc3f.js → chunk-errq965d.js} +3 -3
  34. package/dist/{chunk-akbepc3f.js.map → chunk-errq965d.js.map} +1 -1
  35. package/dist/chunk-fk9xtngd.js +4 -0
  36. package/dist/chunk-fk9xtngd.js.map +33 -0
  37. package/dist/{chunk-ratbccpg.js → chunk-fvtfwssb.js} +2 -2
  38. package/dist/{chunk-ratbccpg.js.map → chunk-fvtfwssb.js.map} +1 -1
  39. package/dist/{chunk-shpca068.js → chunk-gv4v6qsg.js} +2 -2
  40. package/dist/{chunk-shpca068.js.map → chunk-gv4v6qsg.js.map} +1 -1
  41. package/dist/chunk-h4rd3cwd.js +6 -0
  42. package/dist/{chunk-m1t1f3s5.js.map → chunk-h4rd3cwd.js.map} +2 -2
  43. package/dist/{chunk-pygcsw1f.js → chunk-h509r9s3.js} +2 -2
  44. package/dist/{chunk-pygcsw1f.js.map → chunk-h509r9s3.js.map} +1 -1
  45. package/dist/{chunk-54wqarj8.js → chunk-j3x1fffh.js} +1 -1
  46. package/dist/{chunk-pfaq2mer.js → chunk-jvcbdxtq.js} +2 -2
  47. package/dist/{chunk-pfaq2mer.js.map → chunk-jvcbdxtq.js.map} +1 -1
  48. package/dist/{chunk-1kmbs8cd.js → chunk-kkdtznm5.js} +2 -2
  49. package/dist/{chunk-1kmbs8cd.js.map → chunk-kkdtznm5.js.map} +1 -1
  50. package/dist/{chunk-qeq8hv3t.js → chunk-knrx23te.js} +2 -2
  51. package/dist/{chunk-qeq8hv3t.js.map → chunk-knrx23te.js.map} +1 -1
  52. package/dist/{chunk-gsvzrj5r.js → chunk-m359awjw.js} +2 -2
  53. package/dist/{chunk-gsvzrj5r.js.map → chunk-m359awjw.js.map} +1 -1
  54. package/dist/{chunk-rrwtgt86.js → chunk-mfwbdztp.js} +2 -2
  55. package/dist/{chunk-rrwtgt86.js.map → chunk-mfwbdztp.js.map} +1 -1
  56. package/dist/{chunk-syaxsp9y.js → chunk-ngnrytfh.js} +2 -2
  57. package/dist/{chunk-syaxsp9y.js.map → chunk-ngnrytfh.js.map} +1 -1
  58. package/dist/{chunk-pr3pvtmh.js → chunk-nhyc69tx.js} +2 -2
  59. package/dist/{chunk-pr3pvtmh.js.map → chunk-nhyc69tx.js.map} +1 -1
  60. package/dist/{chunk-pxcv9ccp.js → chunk-nx8t65g3.js} +2 -2
  61. package/dist/{chunk-pxcv9ccp.js.map → chunk-nx8t65g3.js.map} +1 -1
  62. package/dist/chunk-q8haepmm.js +79 -0
  63. package/dist/{chunk-pjgfvdr6.js.map → chunk-q8haepmm.js.map} +5 -5
  64. package/dist/{chunk-hzw2y2rz.js → chunk-qy3aczt9.js} +2 -2
  65. package/dist/{chunk-hzw2y2rz.js.map → chunk-qy3aczt9.js.map} +1 -1
  66. package/dist/{chunk-zaa3yt2w.js → chunk-s49529x2.js} +2 -2
  67. package/dist/{chunk-zaa3yt2w.js.map → chunk-s49529x2.js.map} +1 -1
  68. package/dist/{chunk-qzemjynx.js → chunk-sdj112nj.js} +2 -2
  69. package/dist/{chunk-qzemjynx.js.map → chunk-sdj112nj.js.map} +1 -1
  70. package/dist/{chunk-bfnh3gwv.js → chunk-sdx8r2qb.js} +2 -2
  71. package/dist/{chunk-bfnh3gwv.js.map → chunk-sdx8r2qb.js.map} +1 -1
  72. package/dist/chunk-tatd75jn.js +5 -0
  73. package/dist/{chunk-tb8yy4rf.js.map → chunk-tatd75jn.js.map} +1 -1
  74. package/dist/{chunk-sbmg0hfr.js → chunk-ty3q916e.js} +3 -3
  75. package/dist/{chunk-sbmg0hfr.js.map → chunk-ty3q916e.js.map} +1 -1
  76. package/dist/{chunk-22pr1w8v.js → chunk-w7czqgx2.js} +2 -2
  77. package/dist/{chunk-22pr1w8v.js.map → chunk-w7czqgx2.js.map} +1 -1
  78. package/dist/chunk-whj1a3vr.js +5 -0
  79. package/dist/chunk-whj1a3vr.js.map +15 -0
  80. package/dist/{chunk-n78kxce1.js → chunk-wrp2v923.js} +2 -2
  81. package/dist/{chunk-n78kxce1.js.map → chunk-wrp2v923.js.map} +1 -1
  82. package/dist/{chunk-x3vy6dbw.js → chunk-x2cq1qp8.js} +2 -2
  83. package/dist/{chunk-x3vy6dbw.js.map → chunk-x2cq1qp8.js.map} +1 -1
  84. package/dist/{chunk-v3agzap3.js → chunk-yrtvjmrj.js} +1 -1
  85. package/dist/{chunk-q0y425d3.js → chunk-ytr22fm4.js} +2 -2
  86. package/dist/{chunk-q0y425d3.js.map → chunk-ytr22fm4.js.map} +1 -1
  87. package/dist/{chunk-81yxskss.js → chunk-ywhazhqt.js} +2 -2
  88. package/dist/{chunk-81yxskss.js.map → chunk-ywhazhqt.js.map} +1 -1
  89. package/dist/config/index.js +1 -1
  90. package/dist/email/index.js +2 -2
  91. package/dist/email/index.js.map +1 -1
  92. package/dist/facades/FileStorage.d.ts +14 -1
  93. package/dist/facades/FileStorage.d.ts.map +1 -1
  94. package/dist/facades/index.js +2 -2
  95. package/dist/facades/index.js.map +1 -1
  96. package/dist/http/ApiRouter.d.ts +41 -1
  97. package/dist/http/ApiRouter.d.ts.map +1 -1
  98. package/dist/http/HttpRequest.d.ts +7 -0
  99. package/dist/http/HttpRequest.d.ts.map +1 -1
  100. package/dist/http/ViewRouter.d.ts.map +1 -1
  101. package/dist/http/contentDisposition.d.ts +9 -0
  102. package/dist/http/contentDisposition.d.ts.map +1 -0
  103. package/dist/http/createStreamResponse.d.ts +38 -0
  104. package/dist/http/createStreamResponse.d.ts.map +1 -0
  105. package/dist/http/errors.d.ts +16 -0
  106. package/dist/http/errors.d.ts.map +1 -1
  107. package/dist/http/index.d.ts +3 -1
  108. package/dist/http/index.d.ts.map +1 -1
  109. package/dist/http/index.js +2 -2
  110. package/dist/http/index.js.map +1 -1
  111. package/dist/http/range.d.ts +63 -0
  112. package/dist/http/range.d.ts.map +1 -0
  113. package/dist/http/requestContext.d.ts +11 -0
  114. package/dist/http/requestContext.d.ts.map +1 -1
  115. package/dist/i18n/index.js +1 -1
  116. package/dist/kernel/index.js +2 -2
  117. package/dist/kernel/index.js.map +1 -1
  118. package/dist/server/index.js +2 -2
  119. package/dist/server/index.js.map +1 -1
  120. package/dist/services/file-storage/drivers/AzureBlobDriver.d.ts +78 -0
  121. package/dist/services/file-storage/drivers/AzureBlobDriver.d.ts.map +1 -0
  122. package/dist/services/file-storage/drivers/FileStorageDriver.d.ts +17 -1
  123. package/dist/services/file-storage/drivers/FileStorageDriver.d.ts.map +1 -1
  124. package/dist/services/file-storage/drivers/FileSystemDriver.d.ts +3 -1
  125. package/dist/services/file-storage/drivers/FileSystemDriver.d.ts.map +1 -1
  126. package/dist/services/file-storage/drivers/S3Driver.d.ts +3 -1
  127. package/dist/services/file-storage/drivers/S3Driver.d.ts.map +1 -1
  128. package/dist/services/file-storage/drivers/types.d.ts +45 -0
  129. package/dist/services/file-storage/drivers/types.d.ts.map +1 -1
  130. package/dist/services/index.d.ts +4 -1
  131. package/dist/services/index.d.ts.map +1 -1
  132. package/dist/services/index.js +2 -2
  133. package/dist/services/index.js.map +1 -1
  134. package/dist/services/router/ApiRouterServiceContainer.d.ts +5 -0
  135. package/dist/services/router/ApiRouterServiceContainer.d.ts.map +1 -1
  136. package/dist/services/router/createFlatApiRoutes.d.ts.map +1 -1
  137. package/package.json +7 -1
  138. package/dist/chunk-m1t1f3s5.js +0 -6
  139. package/dist/chunk-n1xpxhm0.js +0 -5
  140. package/dist/chunk-n1xpxhm0.js.map +0 -13
  141. package/dist/chunk-pjgfvdr6.js +0 -79
  142. package/dist/chunk-tb8yy4rf.js +0 -5
  143. package/dist/chunk-yeqwzeq7.js +0 -4
  144. package/dist/chunk-yeqwzeq7.js.map +0 -32
  145. /package/dist/{chunk-qyn10pv7.js.map → chunk-32ct42e2.js.map} +0 -0
  146. /package/dist/{chunk-xpk460d1.js.map → chunk-drbqadx7.js.map} +0 -0
  147. /package/dist/{chunk-54wqarj8.js.map → chunk-j3x1fffh.js.map} +0 -0
  148. /package/dist/{chunk-v3agzap3.js.map → chunk-yrtvjmrj.js.map} +0 -0
@@ -0,0 +1,79 @@
1
+ // @bun
2
+ import{O as j9,Q as C9,R as G0,S as e0,T as H0,W as q1,X as mY,Y as U6,aa as C5,ba as j0}from"./chunk-fk9xtngd.js";import{ka as P0}from"./chunk-ty3q916e.js";import{Rb as Z8,Tb as E9,Ub as $8,Xb as q9,Yb as a1,_b as F9}from"./chunk-whj1a3vr.js";import{ac as y0}from"./chunk-sdx8r2qb.js";import{bc as $1,cc as k0,ec as JH}from"./chunk-6gtmkbh0.js";var m9=k0((T3,f9)=>{var E6=0,y9=-3;function S5(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function Z2(J,K){this.source=J,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=K,this.destLen=0,this.ltree=new S5,this.dtree=new S5}var h9=new S5,k9=new S5,F6=new Uint8Array(30),_6=new Uint16Array(30),g9=new Uint8Array(30),x9=new Uint16Array(30),Q2=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),P9=new S5,O1=new Uint8Array(320);function b9(J,K,Y,X){var Z,Q;for(Z=0;Z<Y;++Z)J[Z]=0;for(Z=0;Z<30-Y;++Z)J[Z+Y]=Z/Y|0;for(Q=X,Z=0;Z<30;++Z)K[Z]=Q,Q+=1<<J[Z]}function w2(J,K){var Y;for(Y=0;Y<7;++Y)J.table[Y]=0;J.table[7]=24,J.table[8]=152,J.table[9]=112;for(Y=0;Y<24;++Y)J.trans[Y]=256+Y;for(Y=0;Y<144;++Y)J.trans[24+Y]=Y;for(Y=0;Y<8;++Y)J.trans[168+Y]=280+Y;for(Y=0;Y<112;++Y)J.trans[176+Y]=144+Y;for(Y=0;Y<5;++Y)K.table[Y]=0;K.table[5]=32;for(Y=0;Y<32;++Y)K.trans[Y]=Y}var S9=new Uint16Array(16);function N6(J,K,Y,X){var Z,Q;for(Z=0;Z<16;++Z)J.table[Z]=0;for(Z=0;Z<X;++Z)J.table[K[Y+Z]]++;J.table[0]=0;for(Q=0,Z=0;Z<16;++Z)S9[Z]=Q,Q+=J.table[Z];for(Z=0;Z<X;++Z)if(K[Y+Z])J.trans[S9[K[Y+Z]]++]=Z}function W2(J){if(!J.bitcount--)J.tag=J.source[J.sourceIndex++],J.bitcount=7;var K=J.tag&1;return J.tag>>>=1,K}function N1(J,K,Y){if(!K)return Y;while(J.bitcount<24)J.tag|=J.source[J.sourceIndex++]<<J.bitcount,J.bitcount+=8;var X=J.tag&65535>>>16-K;return J.tag>>>=K,J.bitcount-=K,X+Y}function j6(J,K){while(J.bitcount<24)J.tag|=J.source[J.sourceIndex++]<<J.bitcount,J.bitcount+=8;var Y=0,X=0,Z=0,Q=J.tag;do X=2*X+(Q&1),Q>>>=1,++Z,Y+=K.table[Z],X-=K.table[Z];while(X>=0);return J.tag=Q,J.bitcount-=Z,K.trans[Y+X]}function $2(J,K,Y){var X,Z,Q,w,$,W;X=N1(J,5,257),Z=N1(J,5,1),Q=N1(J,4,4);for(w=0;w<19;++w)O1[w]=0;for(w=0;w<Q;++w){var H=N1(J,3,0);O1[Q2[w]]=H}N6(P9,O1,0,19);for($=0;$<X+Z;){var z=j6(J,P9);switch(z){case 16:var U=O1[$-1];for(W=N1(J,2,3);W;--W)O1[$++]=U;break;case 17:for(W=N1(J,3,3);W;--W)O1[$++]=0;break;case 18:for(W=N1(J,7,11);W;--W)O1[$++]=0;break;default:O1[$++]=z;break}}N6(K,O1,0,X),N6(Y,O1,X,Z)}function v9(J,K,Y){while(!0){var X=j6(J,K);if(X===256)return E6;if(X<256)J.dest[J.destLen++]=X;else{var Z,Q,w,$;X-=257,Z=N1(J,F6[X],_6[X]),Q=j6(J,Y),w=J.destLen-N1(J,g9[Q],x9[Q]);for($=w;$<w+Z;++$)J.dest[J.destLen++]=J.dest[$]}}}function H2(J){var K,Y,X;while(J.bitcount>8)J.sourceIndex--,J.bitcount-=8;if(K=J.source[J.sourceIndex+1],K=256*K+J.source[J.sourceIndex],Y=J.source[J.sourceIndex+3],Y=256*Y+J.source[J.sourceIndex+2],K!==(~Y&65535))return y9;J.sourceIndex+=4;for(X=K;X;--X)J.dest[J.destLen++]=J.source[J.sourceIndex++];return J.bitcount=0,E6}function z2(J,K){var Y=new Z2(J,K),X,Z,Q;do{switch(X=W2(Y),Z=N1(Y,2,0),Z){case 0:Q=H2(Y);break;case 1:Q=v9(Y,h9,k9);break;case 2:$2(Y,Y.ltree,Y.dtree),Q=v9(Y,Y.ltree,Y.dtree);break;default:Q=y9}if(Q!==E6)throw Error("Data error")}while(!X);if(Y.destLen<Y.dest.length)if(typeof Y.dest.slice==="function")return Y.dest.slice(0,Y.destLen);else return Y.dest.subarray(0,Y.destLen);return Y.dest}w2(h9,k9);b9(F6,_6,4,3);b9(g9,x9,2,1);F6[28]=0;_6[28]=258;f9.exports=z2});var d9=k0((C3,c9)=>{var U2=new Uint8Array(new Uint32Array([305419896]).buffer)[0]===18,l9=(J,K,Y)=>{let X=J[K];J[K]=J[Y],J[Y]=X},V2=(J)=>{let K=J.length;for(let Y=0;Y<K;Y+=4)l9(J,Y,Y+3),l9(J,Y+1,Y+2)},A2=(J)=>{if(U2)V2(J)};c9.exports={swap32LE:A2}});var r9=k0((P3,i9)=>{var u9=m9(),{swap32LE:B2}=d9();class p9{constructor(J){let K=typeof J.readUInt32BE==="function"&&typeof J.slice==="function";if(K||J instanceof Uint8Array){let Y;if(K)this.highStart=J.readUInt32LE(0),this.errorValue=J.readUInt32LE(4),Y=J.readUInt32LE(8),J=J.slice(12);else{let X=new DataView(J.buffer);this.highStart=X.getUint32(0,!0),this.errorValue=X.getUint32(4,!0),Y=X.getUint32(8,!0),J=J.subarray(12)}J=u9(J,new Uint8Array(Y)),J=u9(J,new Uint8Array(Y)),B2(J),this.data=new Uint32Array(J.buffer)}else({data:this.data,highStart:this.highStart,errorValue:this.errorValue}=J)}get(J){let K;if(J<0||J>1114111)return this.errorValue;if(J<55296||J>56319&&J<=65535)return K=(this.data[J>>5]<<2)+(J&31),this.data[K];if(J<=65535)return K=(this.data[2048+(J-55296>>5)]<<2)+(J&31),this.data[K];if(J<this.highStart)return K=this.data[2080+(J>>11)],K=this.data[K+(J>>5&63)],K=(K<<2)+(J&31),this.data[K];return this.data[this.data.length-4]}}i9.exports=p9});var n9=k0((H8)=>{var G2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(J){var K=typeof Uint8Array<"u"?Uint8Array:Array,Y=43,X=47,Z=48,Q=97,w=65,$=45,W=95;function H(V){var A=V.charCodeAt(0);if(A===Y||A===$)return 62;if(A===X||A===W)return 63;if(A<Z)return-1;if(A<Z+10)return A-Z+26+26;if(A<w+26)return A-w;if(A<Q+26)return A-Q+26}function z(V){var A,L,B,M,O,N;if(V.length%4>0)throw Error("Invalid string. Length must be a multiple of 4");var E=V.length;O=V.charAt(E-2)==="="?2:V.charAt(E-1)==="="?1:0,N=new K(V.length*3/4-O),B=O>0?V.length-4:V.length;var D=0;function F(j){N[D++]=j}for(A=0,L=0;A<B;A+=4,L+=3)M=H(V.charAt(A))<<18|H(V.charAt(A+1))<<12|H(V.charAt(A+2))<<6|H(V.charAt(A+3)),F((M&16711680)>>16),F((M&65280)>>8),F(M&255);if(O===2)M=H(V.charAt(A))<<2|H(V.charAt(A+1))>>4,F(M&255);else if(O===1)M=H(V.charAt(A))<<10|H(V.charAt(A+1))<<4|H(V.charAt(A+2))>>2,F(M>>8&255),F(M&255);return N}function U(V){var A,L=V.length%3,B="",M,O;function N(D){return G2.charAt(D)}function E(D){return N(D>>18&63)+N(D>>12&63)+N(D>>6&63)+N(D&63)}for(A=0,O=V.length-L;A<O;A+=3)M=(V[A]<<16)+(V[A+1]<<8)+V[A+2],B+=E(M);switch(L){case 1:M=V[V.length-1],B+=N(M>>2),B+=N(M<<4&63),B+="==";break;case 2:M=(V[V.length-2]<<8)+V[V.length-1],B+=N(M>>10),B+=N(M>>4&63),B+=N(M<<2&63),B+="=";break}return B}J.toByteArray=z,J.fromByteArray=U})(typeof H8>"u"?H8.base64js={}:H8)});var w7=k0((y3,Q7)=>{var T6=40,C6=41,V8=39,P6=34,S6=92,L5=47,v6=44,y6=58,A8=42,C2=117,P2=85,S2=43,v2=/^[a-f0-9?-]+$/i;Q7.exports=function(J){var K=[],Y=J,X,Z,Q,w,$,W,H,z,U=0,V=Y.charCodeAt(U),A=Y.length,L=[{nodes:K}],B=0,M,O="",N="",E="";while(U<A)if(V<=32){X=U;do X+=1,V=Y.charCodeAt(X);while(V<=32);if(w=Y.slice(U,X),Q=K[K.length-1],V===C6&&B)E=w;else if(Q&&Q.type==="div")Q.after=w,Q.sourceEndIndex+=w.length;else if(V===v6||V===y6||V===L5&&Y.charCodeAt(X+1)!==A8&&(!M||M&&M.type==="function"&&M.value!=="calc"))N=w;else K.push({type:"space",sourceIndex:U,sourceEndIndex:X,value:w});U=X}else if(V===V8||V===P6){X=U,Z=V===V8?"'":'"',w={type:"string",sourceIndex:U,quote:Z};do if($=!1,X=Y.indexOf(Z,X+1),~X){W=X;while(Y.charCodeAt(W-1)===S6)W-=1,$=!$}else Y+=Z,X=Y.length-1,w.unclosed=!0;while($);w.value=Y.slice(U+1,X),w.sourceEndIndex=w.unclosed?X:X+1,K.push(w),U=X+1,V=Y.charCodeAt(U)}else if(V===L5&&Y.charCodeAt(U+1)===A8){if(X=Y.indexOf("*/",U),w={type:"comment",sourceIndex:U,sourceEndIndex:X+2},X===-1)w.unclosed=!0,X=Y.length,w.sourceEndIndex=X;w.value=Y.slice(U+2,X),K.push(w),U=X+2,V=Y.charCodeAt(U)}else if((V===L5||V===A8)&&M&&M.type==="function"&&M.value==="calc")w=Y[U],K.push({type:"word",sourceIndex:U-N.length,sourceEndIndex:U+w.length,value:w}),U+=1,V=Y.charCodeAt(U);else if(V===L5||V===v6||V===y6)w=Y[U],K.push({type:"div",sourceIndex:U-N.length,sourceEndIndex:U+w.length,value:w,before:N,after:""}),N="",U+=1,V=Y.charCodeAt(U);else if(T6===V){X=U;do X+=1,V=Y.charCodeAt(X);while(V<=32);if(z=U,w={type:"function",sourceIndex:U-O.length,value:O,before:Y.slice(z+1,X)},U=X,O==="url"&&V!==V8&&V!==P6){X-=1;do if($=!1,X=Y.indexOf(")",X+1),~X){W=X;while(Y.charCodeAt(W-1)===S6)W-=1,$=!$}else Y+=")",X=Y.length-1,w.unclosed=!0;while($);H=X;do H-=1,V=Y.charCodeAt(H);while(V<=32);if(z<H){if(U!==H+1)w.nodes=[{type:"word",sourceIndex:U,sourceEndIndex:H+1,value:Y.slice(U,H+1)}];else w.nodes=[];if(w.unclosed&&H+1!==X)w.after="",w.nodes.push({type:"space",sourceIndex:H+1,sourceEndIndex:X,value:Y.slice(H+1,X)});else w.after=Y.slice(H+1,X),w.sourceEndIndex=X}else w.after="",w.nodes=[];U=X+1,w.sourceEndIndex=w.unclosed?X:U,V=Y.charCodeAt(U),K.push(w)}else B+=1,w.after="",w.sourceEndIndex=U+1,K.push(w),L.push(w),K=w.nodes=[],M=w;O=""}else if(C6===V&&B)U+=1,V=Y.charCodeAt(U),M.after=E,M.sourceEndIndex+=E.length,E="",B-=1,L[L.length-1].sourceEndIndex=U,L.pop(),M=L[B],K=M.nodes;else{X=U;do{if(V===S6)X+=1;X+=1,V=Y.charCodeAt(X)}while(X<A&&!(V<=32||V===V8||V===P6||V===v6||V===y6||V===L5||V===T6||V===A8&&M&&M.type==="function"&&M.value==="calc"||V===L5&&M.type==="function"&&M.value==="calc"||V===C6&&B));if(w=Y.slice(U,X),T6===V)O=w;else if((C2===w.charCodeAt(0)||P2===w.charCodeAt(0))&&S2===w.charCodeAt(1)&&v2.test(w.slice(2)))K.push({type:"unicode-range",sourceIndex:U,sourceEndIndex:X,value:w});else K.push({type:"word",sourceIndex:U,sourceEndIndex:X,value:w});U=X}for(U=L.length-1;U;U-=1)L[U].unclosed=!0,L[U].sourceEndIndex=Y.length;return L[0].nodes}});var $7=k0((h3,W7)=>{W7.exports=function J(K,Y,X){var Z,Q,w,$;for(Z=0,Q=K.length;Z<Q;Z+=1){if(w=K[Z],!X)$=Y(w,Z,K);if($!==!1&&w.type==="function"&&Array.isArray(w.nodes))J(w.nodes,Y,X);if(X)Y(w,Z,K)}}});var V7=k0((k3,U7)=>{function H7(J,K){var{type:Y,value:X}=J,Z,Q;if(K&&(Q=K(J))!==void 0)return Q;else if(Y==="word"||Y==="space")return X;else if(Y==="string")return Z=J.quote||"",Z+X+(J.unclosed?"":Z);else if(Y==="comment")return"/*"+X+(J.unclosed?"":"*/");else if(Y==="div")return(J.before||"")+X+(J.after||"");else if(Array.isArray(J.nodes)){if(Z=z7(J.nodes,K),Y!=="function")return Z;return X+"("+(J.before||"")+Z+(J.after||"")+(J.unclosed?"":")")}return X}function z7(J,K){var Y,X;if(Array.isArray(J)){Y="";for(X=J.length-1;~X;X-=1)Y=H7(J[X],K)+Y;return Y}return H7(J,K)}U7.exports=z7});var B7=k0((g3,A7)=>{var B8=45,G8=43,h6=46,y2=101,h2=69;function k2(J){var K=J.charCodeAt(0),Y;if(K===G8||K===B8){if(Y=J.charCodeAt(1),Y>=48&&Y<=57)return!0;var X=J.charCodeAt(2);if(Y===h6&&X>=48&&X<=57)return!0;return!1}if(K===h6){if(Y=J.charCodeAt(1),Y>=48&&Y<=57)return!0;return!1}if(K>=48&&K<=57)return!0;return!1}A7.exports=function(J){var K=0,Y=J.length,X,Z,Q;if(Y===0||!k2(J))return!1;if(X=J.charCodeAt(K),X===G8||X===B8)K++;while(K<Y){if(X=J.charCodeAt(K),X<48||X>57)break;K+=1}if(X=J.charCodeAt(K),Z=J.charCodeAt(K+1),X===h6&&Z>=48&&Z<=57){K+=2;while(K<Y){if(X=J.charCodeAt(K),X<48||X>57)break;K+=1}}if(X=J.charCodeAt(K),Z=J.charCodeAt(K+1),Q=J.charCodeAt(K+2),(X===y2||X===h2)&&(Z>=48&&Z<=57||(Z===G8||Z===B8)&&Q>=48&&Q<=57)){K+=Z===G8||Z===B8?3:2;while(K<Y){if(X=J.charCodeAt(K),X<48||X>57)break;K+=1}}return{number:J.slice(0,K),unit:J.slice(K)}}});var k6=k0((x3,L7)=>{var g2=w7(),G7=$7(),M7=V7();function f1(J){if(this instanceof f1)return this.nodes=g2(J),this;return new f1(J)}f1.prototype.toString=function(){return Array.isArray(this.nodes)?M7(this.nodes):""};f1.prototype.walk=function(J,K){return G7(this.nodes,J,K),this};f1.unit=B7();f1.walk=G7;f1.stringify=M7;L7.exports=f1});var N7=k0((b3,O7)=>{O7.exports=function(J){if(typeof J==="string")return q7(J);return g6(J)};function g6(J){if(!J||typeof J!=="object")return J;if(b2(J)||f2(J))return J;if(x2(J))return c2(J,g6);return d2(l2(J),function(K,Y){var X=q7(Y);return K[X]=g6(J[Y]),K},{})}function q7(J){return J.replace(/[_.-](\w|$)/g,function(K,Y){return Y.toUpperCase()})}var x2=Array.isArray||function(J){return Object.prototype.toString.call(J)==="[object Array]"},b2=function(J){return Object.prototype.toString.call(J)==="[object Date]"},f2=function(J){return Object.prototype.toString.call(J)==="[object RegExp]"},m2=Object.prototype.hasOwnProperty,l2=Object.keys||function(J){var K=[];for(var Y in J)if(m2.call(J,Y))K.push(Y);return K};function c2(J,K){if(J.map)return J.map(K);var Y=[];for(var X=0;X<J.length;X++)Y.push(K(J[X],X));return Y}function d2(J,K,Y){if(J.reduce)return J.reduce(K,Y);for(var X=0;X<J.length;X++)Y=K(Y,J[X],X);return Y}});var j7=k0((f3,u2)=>{u2.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 L8=k0((h7)=>{Object.defineProperty(h7,"__esModule",{value:!0});function c6(J){return J&&typeof J==="object"&&"default"in J?J.default:J}var _7=k6(),p2=c6(_7),i2=c6(N7()),r2=c6(j7()),n2=function(K){if(K.type!=="string")return null;return K.value.replace(/\\([0-9a-f]{1,6})(?:\s|$)/gi,function(Y,X){return String.fromCharCode(parseInt(X,16))}).replace(/\\/g,"")},o2=/^(#(?:[0-9a-f]{3,4}){1,2})$/i,s2=/^(rgba?|hsla?|hwb|lab|lch|gray|color)$/,a2=function(K){if(K.type==="word"&&(o2.test(K.value)||(K.value in r2)||K.value==="transparent"))return K.value;else if(K.type==="function"&&s2.test(K.value))return _7.stringify(K);return null},t2=/^(none)$/i,e2=/^(auto)$/i,JX=/(^-?[_a-z][_a-z0-9-]*$)/i,KX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)$/i,YX=/^(0$|(?:[+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?=px$))/i,XX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(ch|em|ex|rem|vh|vw|vmin|vmax|cm|mm|in|pc|pt))$/i,ZX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(?:deg|rad))$/i,QX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?%)$/i,d6=function(K){return function(Y){return K(Y)?"<token>":null}},wX=function(K){return function(Y){return Y.type===K?Y.value:null}},S0=function(K,Y){if(Y===void 0)Y=String;return function(X){if(X.type!=="word")return null;var Z=X.value.match(K);if(Z===null)return null;var Q=Y(Z[1]);return Q}},h0=d6(function(J){return J.type==="space"}),D7=d6(function(J){return J.type==="div"&&J.value==="/"}),WX=d6(function(J){return J.type==="div"&&J.value===","}),$X=wX("word"),u6=S0(t2),f6=S0(e2),O5=S0(KX,Number),r0=S0(YX,Number),T1=S0(XX),I7=S0(ZX,function(J){return J.toLowerCase()}),p6=S0(QX),M8=S0(JX),HX=n2,y5=a2,m6=S0(/^(none|underline|line-through)$/i),zX=function(K){var Y=K.expect(O5);if(K.hasTokens())K.expect(D7),Y/=K.expect(O5);return{aspectRatio:Y}},UX=S0(/^(solid|dashed|dotted)$/),VX=1,AX="black",BX="solid",GX=function(K){var Y,X,Z;if(K.matches(u6))return K.expectEmpty(),{borderWidth:0,borderColor:"black",borderStyle:"solid"};var Q=0;while(Q<3&&K.hasTokens()){if(Q!==0)K.expect(h0);if(Y===void 0&&K.matches(r0,T1))Y=K.lastValue;else if(X===void 0&&K.matches(y5))X=K.lastValue;else if(Z===void 0&&K.matches(UX))Z=K.lastValue;else K.throw();Q+=1}if(K.expectEmpty(),Y===void 0)Y=VX;if(X===void 0)X=AX;if(Z===void 0)Z=BX;return{borderWidth:Y,borderColor:X,borderStyle:Z}},h5=function(K){var Y=K.types,X=Y===void 0?[r0,T1,p6]:Y,Z=K.directions,Q=Z===void 0?["Top","Right","Bottom","Left"]:Z,w=K.prefix,$=w===void 0?"":w,W=K.suffix,H=W===void 0?"":W;return function(z){var U,V=[];V.push(z.expect.apply(z,X));while(V.length<4&&z.hasTokens())z.expect(h0),V.push(z.expect.apply(z,X));z.expectEmpty();var A=V[0],L=V[1],B=L===void 0?A:L,M=V[2],O=M===void 0?A:M,N=V[3],E=N===void 0?B:N,D=function(j){return""+$+Q[j]+H};return U={},U[D(0)]=A,U[D(1)]=B,U[D(2)]=O,U[D(3)]=E,U}},R7=function(K){var Y=K.expect(r0),X=K.matches(h0)?K.expect(r0):Y;return K.expectEmpty(),{width:Y,height:X}},T7=function(K){var Y,X,Z,Q;if(K.matches(u6))return K.expectEmpty(),{offset:{width:0,height:0},radius:0,color:"black"};var w=!1;while(K.hasTokens()){if(w)K.expect(h0);if(Y===void 0&&K.matches(r0,T1))if(Y=K.lastValue,K.expect(h0),X=K.expect(r0,T1),K.saveRewindPoint(),K.matches(h0)&&K.matches(r0,T1))Z=K.lastValue;else K.rewind();else if(Q===void 0&&K.matches(y5))Q=K.lastValue;else K.throw();w=!0}if(Y===void 0)K.throw();return{offset:{width:Y,height:X},radius:Z!==void 0?Z:0,color:Q!==void 0?Q:"black"}},MX=function(K){var Y=T7(K),X=Y.offset,Z=Y.radius,Q=Y.color;return{shadowOffset:X,shadowRadius:Z,shadowColor:Q,shadowOpacity:1}},LX=1,qX=1,OX=0,NX=function(K){var Y,X,Z;if(K.matches(u6))return K.expectEmpty(),{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(K.saveRewindPoint(),K.matches(f6)&&!K.hasTokens())return{flexGrow:1,flexShrink:1,flexBasis:"auto"};K.rewind();var Q=0;while(Q<2&&K.hasTokens()){if(Q!==0)K.expect(h0);if(Y===void 0&&K.matches(O5))if(Y=K.lastValue,K.saveRewindPoint(),K.matches(h0)&&K.matches(O5))X=K.lastValue;else K.rewind();else if(Z===void 0&&K.matches(r0,T1,p6))Z=K.lastValue;else if(Z===void 0&&K.matches(f6))Z="auto";else K.throw();Q+=1}if(K.expectEmpty(),Y===void 0)Y=LX;if(X===void 0)X=qX;if(Z===void 0)Z=OX;return{flexGrow:Y,flexShrink:X,flexBasis:Z}},jX=S0(/(nowrap|wrap|wrap-reverse)/),EX=S0(/(row|row-reverse|column|column-reverse)/),FX="nowrap",_X="row",DX=function(K){var Y,X,Z=0;while(Z<2&&K.hasTokens()){if(Z!==0)K.expect(h0);if(Y===void 0&&K.matches(jX))Y=K.lastValue;else if(X===void 0&&K.matches(EX))X=K.lastValue;else K.throw();Z+=1}if(K.expectEmpty(),Y===void 0)Y=FX;if(X===void 0)X=_X;return{flexWrap:Y,flexDirection:X}},C7=function(K){var Y;if(K.matches(HX))Y=K.lastValue;else{Y=K.expect(M8);while(K.hasTokens()){K.expect(h0);var X=K.expect(M8);Y+=" "+X}}return K.expectEmpty(),{fontFamily:Y}},IX=S0(/^(normal)$/),RX=S0(/^(italic)$/),TX=S0(/^([1-9]00|bold)$/),CX=S0(/^(small-caps)$/),PX="normal",SX="normal",vX=[],yX=function(K){var Y,X,Z,Q,w=0;while(w<3&&K.hasTokens()){if(K.matches(IX));else if(Y===void 0&&K.matches(RX))Y=K.lastValue;else if(X===void 0&&K.matches(TX))X=K.lastValue;else if(Z===void 0&&K.matches(CX))Z=[K.lastValue];else break;K.expect(h0),w+=1}var $=K.expect(r0,T1);if(K.matches(D7))Q=K.expect(r0,T1);K.expect(h0);var W=C7(K),H=W.fontFamily;if(Y===void 0)Y=PX;if(X===void 0)X=SX;if(Z===void 0)Z=vX;var z={fontStyle:Y,fontWeight:X,fontVariant:Z,fontSize:$,fontFamily:H};if(Q!==void 0)z.lineHeight=Q;return z},hX=function(K){var Y=[K.expect(M8)];while(K.hasTokens())K.expect(h0),Y.push(K.expect(M8));return{fontVariant:Y}},kX=S0(/(flex-(?:start|end)|center|stretch|space-(?:between|around))/),gX=S0(/(flex-(?:start|end)|center|space-(?:between|around|evenly))/),xX=function(K){var Y=K.expect(kX),X;if(K.hasTokens())K.expect(h0),X=K.expect(gX);else X="stretch";return K.expectEmpty(),{alignContent:Y,justifyContent:X}},bX=S0(/^(solid|double|dotted|dashed)$/),fX="none",mX="solid",lX="black",cX=function(K){var Y,X,Z,Q=!1;while(K.hasTokens()){if(Q)K.expect(h0);if(Y===void 0&&K.matches(m6)){var w=[K.lastValue.toLowerCase()];if(K.saveRewindPoint(),w[0]!=="none"&&K.matches(h0)&&K.matches(m6))w.push(K.lastValue.toLowerCase()),w.sort().reverse();else K.rewind();Y=w.join(" ")}else if(X===void 0&&K.matches(bX))X=K.lastValue;else if(Z===void 0&&K.matches(y5))Z=K.lastValue;else K.throw();Q=!0}return{textDecorationLine:Y!==void 0?Y:fX,textDecorationColor:Z!==void 0?Z:lX,textDecorationStyle:X!==void 0?X:mX}},dX=function(K){var Y=[],X=!1;while(K.hasTokens()){if(X)K.expect(h0);Y.push(K.expect(m6).toLowerCase()),X=!0}return Y.sort().reverse(),{textDecorationLine:Y.join(" ")}},uX=function(K){var Y=T7(K),X=Y.offset,Z=Y.radius,Q=Y.color;return{textShadowOffset:X,textShadowRadius:Z,textShadowColor:Q}},i6=function(K){return function(Y){var X=Y.expect(K);return Y.expectEmpty(),X}},x6=i6(O5),E7=i6(r0),q5=i6(I7),r6=function(K){return function(Y,X){return function(Z){var Q,w,$=Z.expect(K),W;if(Z.hasTokens())Z.expect(WX),W=Z.expect(K);else if(X!==void 0)W=X;else return $;return Z.expectEmpty(),[(Q={},Q[Y+"Y"]=W,Q),(w={},w[Y+"X"]=$,w)]}}},pX=r6(O5),iX=r6(r0),rX=r6(I7),nX={perspective:x6,scale:pX("scale"),scaleX:x6,scaleY:x6,translate:iX("translate",0),translateX:E7,translateY:E7,rotate:q5,rotateX:q5,rotateY:q5,rotateZ:q5,skewX:q5,skewY:q5,skew:rX("skew","0deg")},oX=function(K){var Y=[],X=!1;while(K.hasTokens()){if(X)K.expect(h0);var Z=K.expectFunction(),Q=Z.functionName,w=nX[Q](Z);if(!Array.isArray(w)){var $;w=[($={},$[Q]=w,$)]}Y=w.concat(Y),X=!0}return{transform:Y}},sX=function(K){return{backgroundColor:K.expect(y5)}},aX=h5({types:[y5],prefix:"border",suffix:"Color"}),tX=h5({directions:["TopLeft","TopRight","BottomRight","BottomLeft"],prefix:"border",suffix:"Radius"}),eX=h5({prefix:"border",suffix:"Width"}),JZ=h5({types:[r0,T1,p6,f6],prefix:"margin"}),KZ=h5({prefix:"padding"}),YZ=function(K){return{fontWeight:K.expect($X)}},XZ=function(K){return{shadowOffset:R7(K)}},ZZ=function(K){return{textShadowOffset:R7(K)}},P7={aspectRatio:zX,background:sX,border:GX,borderColor:aX,borderRadius:tX,borderWidth:eX,boxShadow:MX,flex:NX,flexFlow:DX,font:yX,fontFamily:C7,fontVariant:hX,fontWeight:YZ,margin:JZ,padding:KZ,placeContent:xX,shadowOffset:XZ,textShadow:uX,textShadowOffset:ZZ,textDecoration:cX,textDecorationLine:dX,transform:oX},l6;if(Bun.env.NODE_ENV!=="production")l6=["aspectRatio","elevation","flexGrow","flexShrink","opacity","shadowOpacity","zIndex"];var QZ=l6!=null?new RegExp(l6.join("|")):null,b6="SYMBOL_MATCH",wZ=function(){function J(Y,X){this.index=0,this.nodes=Y,this.functionName=X!=null?X.value:null,this.lastValue=null,this.rewindIndex=-1}var K=J.prototype;return K.hasTokens=function(){return this.index<=this.nodes.length-1},K[b6]=function(){if(!this.hasTokens())return null;var Y=this.nodes[this.index];for(var X=0;X<arguments.length;X+=1){var Z=X<0||arguments.length<=X?void 0:arguments[X],Q=Z(Y);if(Q!==null)return this.index+=1,this.lastValue=Q,Q}return null},K.matches=function(){return this[b6].apply(this,arguments)!==null},K.expect=function(){var X=this[b6].apply(this,arguments);return X!==null?X:this.throw()},K.matchesFunction=function(){var X=this.nodes[this.index];if(X.type!=="function")return null;var Z=new J(X.nodes,X);return this.index+=1,this.lastValue=null,Z},K.expectFunction=function(){var X=this.matchesFunction();return X!==null?X:this.throw()},K.expectEmpty=function(){if(this.hasTokens())this.throw()},K.throw=function(){throw Error("Unexpected token type: "+this.nodes[this.index].type)},K.saveRewindPoint=function(){this.rewindIndex=this.index},K.rewind=function(){if(this.rewindIndex===-1)throw Error("Internal error");this.index=this.rewindIndex,this.lastValue=null},J}(),WZ=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?:px)?$/i,$Z=/^[+-]?(?:\d*\.\d*|[1-9]\d*)(?:e[+-]?\d+)?$/i,HZ=/^true|false$/i,zZ=/^null$/i,UZ=/^undefined$/i,S7=function(K,Y){if(Bun.env.NODE_ENV!=="production"){var X=!QZ.test(K),Z=$Z.test(Y);if(X&&Z)console.warn('Expected style "'+K+": "+Y+'" to contain units');if(!X&&Y!=="0"&&!Z)console.warn('Expected style "'+K+": "+Y+'" to be unitless')}var Q=Y.match(WZ);if(Q!==null)return Number(Q[1]);var w=Y.match(HZ);if(w!==null)return w[0].toLowerCase()==="true";var $=Y.match(zZ);if($!==null)return null;var W=Y.match(UZ);if(W!==null)return;return Y},F7=function(K,Y){var X=p2(Y),Z=new wZ(X.nodes);return P7[K](Z)},VZ=Bun.env.NODE_ENV==="production"?F7:function(J,K){try{return F7(J,K)}catch(Y){throw Error('Failed to parse declaration "'+J+": "+K+'"')}},v7=function(K,Y,X){var Z,Q=X===!1||!(K in P7),w=Y.trim(),$=Q?(Z={},Z[K]=S7(K,w),Z):VZ(K,w);return $},y7=function(K){var Y=/^--\w+/.test(K);if(Y)return K;return i2(K)},AZ=function(K,Y){if(Y===void 0)Y=[];return K.reduce(function(X,Z){var Q=y7(Z[0]),w=Z[1],$=Y.indexOf(Q)===-1;return Object.assign(X,v7(Q,w,$))},{})};h7.default=AZ;h7.getPropertyName=y7;h7.getStylesForProperty=v7;h7.transformRawValue=S7});var g7=k0((k7,q8)=>{/*!
3
+ * https://github.com/gilmoreorless/css-background-parser
4
+ * Copyright © 2015 Gilmore Davidson under the MIT license: http://gilmoreorless.mit-license.org/
5
+ */(function(J){function K(w){if(!(this instanceof K))return new K;this.backgrounds=w||[]}K.prototype.toString=function(){return this.backgrounds.join(", ")};function Y(w){if(!(this instanceof Y))return new Y(w);w=w||{};var $=this;function W(H,z){$[H]=H in w?w[H]:z}W("color",""),W("image","none"),W("attachment","scroll"),W("clip","border-box"),W("origin","padding-box"),W("position","0% 0%"),W("repeat","repeat"),W("size","auto")}Y.prototype.toString=function(){var w=[this.image,this.repeat,this.attachment,this.position+" / "+this.size,this.origin,this.clip];if(this.color)w.unshift(this.color);return w.join(" ")},J.BackgroundList=K,J.Background=Y;function X(w){var $=[],W=/[,\(\)]/,H=0,z="";if(w==null)return $;while(w.length){var U=W.exec(w);if(!U)break;var V=U[0],A=!1;switch(V){case",":if(!H)$.push(z.trim()),z="",A=!0;break;case"(":H++;break;case")":H--;break}var L=U.index+1;z+=w.slice(0,A?L-1:L),w=w.slice(L)}if(z.length||w.length)$.push((z+w).trim());return $}function Z(w){return w.trim()}function Q(w){return(w||"").split(",").map(Z)}J.parseElementStyle=function(w){var $=new K;if(w==null)return $;var W=X(w.backgroundImage),H=w.backgroundColor,z=Q(w.backgroundAttachment),U=Q(w.backgroundClip),V=Q(w.backgroundOrigin),A=Q(w.backgroundPosition),L=Q(w.backgroundRepeat),B=Q(w.backgroundSize),M;for(var O=0,N=W.length;O<N;O++){if(M=new Y({image:W[O],attachment:z[O%z.length],clip:U[O%U.length],origin:V[O%V.length],position:A[O%A.length],repeat:L[O%L.length],size:B[O%B.length]}),O===N-1)M.color=H;$.backgrounds.push(M)}return $}})(function(J){if(typeof q8<"u"&&k7!==void 0)return k7;return J.cssBgParser={}}(k7))});var b7=k0((l3,x7)=>{var qZ=/,(?![^\(]*\))/,OZ=/\s(?![^(]*\))/,NZ=/^[0-9]+[a-zA-Z%]+?$/,jZ=(J)=>{let K=J.split(OZ),Y=K.includes("inset"),X=K.slice(-1)[0],Z=!FZ(X)?X:void 0,Q=K.filter((z)=>z!=="inset").filter((z)=>z!==Z).map(_Z),[w,$,W,H]=Q;return{inset:Y,offsetX:w,offsetY:$,blurRadius:W,spreadRadius:H,color:Z}},EZ=(J)=>{let{inset:K,offsetX:Y=0,offsetY:X=0,blurRadius:Z=0,spreadRadius:Q,color:w}=J||{};return[K?"inset":null,Y,X,Z,Q,w].filter(($)=>$!==null&&$!==void 0).map(DZ).map(($)=>(""+$).trim()).join(" ")},FZ=(J)=>J==="0"||NZ.test(J),_Z=(J)=>{if(!/px$/.test(J)&&J!=="0")return J;let K=parseFloat(J);return!isNaN(K)?K:J},DZ=(J)=>typeof J==="number"&&J!==0?J+"px":J,IZ=(J)=>J.split(qZ).map((K)=>K.trim()).map(jZ),RZ=(J)=>J.map(EZ).join(", ");x7.exports={parse:IZ,stringify:RZ}});var m7=k0((c3,f7)=>{f7.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 c7=k0((d3,l7)=>{var TZ=new RegExp("[^#a-f\\d]","gi"),CZ=new RegExp("^#?[a-f\\d]{3}[a-f\\d]?$|^#?[a-f\\d]{6}([a-f\\d]{2})?$","i");l7.exports=(J,K={})=>{if(typeof J!=="string"||TZ.test(J)||!CZ.test(J))throw TypeError("Expected a valid hex string");J=J.replace(/^#/,"");let Y=1;if(J.length===8)Y=Number.parseInt(J.slice(6,8),16)/255,J=J.slice(0,6);if(J.length===4)Y=Number.parseInt(J.slice(3,4).repeat(2),16)/255,J=J.slice(0,3);if(J.length===3)J=J[0]+J[0]+J[1]+J[1]+J[2]+J[2];let X=Number.parseInt(J,16),Z=X>>16,Q=X>>8&255,w=X&255,$=typeof K.alpha==="number"?K.alpha:Y;if(K.format==="array")return[Z,Q,w,$];if(K.format==="css"){let W=$===1?"":` / ${Number(($*100).toFixed(2))}%`;return`rgb(${Z} ${Q} ${w}${W})`}return{red:Z,green:Q,blue:w,alpha:$}}});var n7=k0((p3,r7)=>{/*!
6
+ * escape-html
7
+ * Copyright(c) 2012-2013 TJ Holowaychuk
8
+ * Copyright(c) 2015 Andreas Lubbe
9
+ * Copyright(c) 2015 Tiancheng "Timothy" Gu
10
+ * MIT Licensed
11
+ */var sZ=/["'&<>]/;r7.exports=aZ;function aZ(J){var K=""+J,Y=sZ.exec(K);if(!Y)return K;var X,Z="",Q=0,w=0;for(Q=Y.index;Q<K.length;Q++){switch(K.charCodeAt(Q)){case 34:X="&quot;";break;case 38:X="&amp;";break;case 39:X="&#39;";break;case 60:X="&lt;";break;case 62:X="&gt;";break;default:continue}if(w!==Q)Z+=K.substring(w,Q);w=Q+1,Z+=X}return w!==Q?Z+K.substring(w,Q):Z}});import{AsyncLocalStorage as pY}from"async_hooks";class B5 extends y0{service;static _name="BroadcastingServiceContainer";publishCb;context=new pY;constructor(J){super();this.service=J}onPublish(J){this.publishCb=J}publish(...J){let[K,Y,X]=J;this.publishCb(K,Y,X)}async handleMessage(J,K){let Y=JSON.parse(K);if(Y.type==="subscribe"){let X=Object.entries(this.service.channels).sort(([Z],[Q])=>Z.length-Q.length);for(let[Z,Q]of X){let w=new URLPattern({pathname:Z});if(w.test({pathname:Y.topic})){let $=w.exec({pathname:Y.topic})?.pathname.groups,W=new Q;if(await W.subscribe.call(W,$))J.subscribe(Y.topic);break}}}if(Y.type==="broadcast")J.publish(Y.topic,JSON.stringify({topic:Y.topic,data:Y.payload}));if(Y.type==="unsubscribe")J.unsubscribe(Y.topic)}run(J,K){let Y=J.get("Cookie"),X=new Map;if(Y){let Z=Y.split(";");for(let Q of Z){let[w,$]=Q.split("=");X.set(w.trim(),$.trim())}}this.context.run({headers:J,cookies:X},K)}}class b1{static async user(){let J=G0.getStore(),K=B5.use().context.getStore(),Y="",X="";if(J?.req)Y=J.req.cookies.get("access_token"),X=J.req.headers.get("User-Agent");if(K?.cookies)X=K.headers.get("User-Agent"),Y=K.cookies.get("access_token");let Z=J?.user;if(!Z)Z=(await j0.use().getSession(Y,X))?.user,J?.setUser(Z);if(Z)return Z;throw new q9}static async guard(J){let K=await b1.user();if(!K)throw new $8;try{if(!await J(K))throw new $8}catch(Y){throw new $8}}static async guardSafe(J){let K=await b1.user();if(!K)return!1;try{return await J(K)}catch(Y){return!1}}static async authenticate(J){return await j0.use().authenticate(J)}static async createMagicLink(J){return await j0.use().createMagicLinkToken(J)}}class G5{static getSupportedLocales(){return P0.use().service.supportedLocales}static getDefaultLocale(){return P0.use().service.defaultLocale}static locale(){let J=P0.use(),K=G0.getStore();if(K)return J.detectLocale(K.req);return J.service.defaultLocale}static setLocale(J=G5.locale()){let K=P0.use(),Y=J;if(!K.service.supportedLocales.includes(J))Y=K.service.defaultLocale;return G0.getStore().setCookie("i18n-locale",Y,{expires:new Date(Date.now()+31536000000),secure:!1,httpOnly:!1}),Y}}import iY from"sharp";import{Buffer as rY}from"buffer";class M5 extends y0{service;static _name="FileStorageServiceContainer";constructor(J){super();this.service=J}}class O9{static async put(J){return M5.use().service.driver.put(J)}static async metadata(J){let K=rY.from(await J.arrayBuffer());try{return await iY(K).metadata()}catch{return{}}}static async fetch(J){return M5.use().service.driver.fetch(J)}static async read(J,K={}){let Y=typeof J==="string"?{name:J}:{...J},X="range"in K?K.range??null:Y.range!==void 0?Y.range:G0.getStore()?.rangeRequest??null;return M5.use().service.driver.read({...Y,range:X})}static list(J){return M5.use().service.driver.list(J)}static delete(){}}function N9(J){return Object.fromEntries(Object.entries(J).filter(([,K])=>{return K!==null&&K!==void 0}))}class K5 extends Error{constructor(){super("Adapter not found");this.name="AdapterNotFound"}}class H6{createSession(){throw new K5}deleteSession(){throw new K5}findSession(){throw new K5}findUserByEmailAddress(){throw new K5}updateSession(){throw new K5}createUser(){throw new K5}}class z6 extends H0{schema={email:{required:"Email is required",string:"Invalid email",email:"Invalid email"},password:{required:"Password is required"}}}class _9 extends H0{schema={name:{string:"Invalid name",required:"Name is required","min:2":"Name must be at least 3 characters"},email:{string:"Invalid email",required:"Email is required",email:"Invalid email"},password:{"min:8":"Password must be at least 9 characters"}}}class D9 extends H0{schema={email:{required:"Email is required",email:"Invalid email"}}}class I9 extends H0{schema={password:{required:"Password is required",password:"Invalid password"}}}class b0 extends j9{provider=j0.use()?.provider;async me(){let J=await b1.user();if(!J)throw new E9;return J}async verifyEmail(J=new H0){let K=await J.input(),Y=j0.use()?.provider,X=await Y.adapter.findUserByVerificationToken(K.get("token"));if(!X)return{email:null};if(await Y.adapter.verifyUser(X.email),X)return{email:X.email};return{email:null}}async signInWithMagicLink(J=new H0){let K=j0.use(),Y=K.provider,X=J.search.get("token"),Z=decodeURIComponent(J.search.get("email")).toLowerCase().trim(),Q=null;try{Q=await Y.adapter.findUserMagicLinkToken({email:Z,token:X})}catch(W){return console.log(W),{error:JSON.stringify(W)}}if(!Q)return{error:"Invalid token"};await Y.adapter.verifyUser(Z),await Y.adapter.deleteMagicLinkToken(Z);let w=await K.createOrUpdateSession({email:Z}),$=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token",w.token,{expires:w.expiresAt,secure:!$.origin.includes("localhost"),httpOnly:!0}),await Y.onSignIn(w,J.search.toJSON()),{session:w}}async signInWithPinV2(J=new H0){let K=j0.use(),Y=K.provider,X=await J.input(),{email:Z,pin:Q}=X.toJSON(),w=Z.toLowerCase().trim();if(!await Y.adapter.findUserMagicLinkToken({email:w,pin:Q}))throw new e0({pin:["Invalid pin"]});await Y.adapter.deleteMagicLinkToken(w),await Y.adapter.verifyUser(w);let W=await K.createOrUpdateSessionV2({email:w}),H=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token",W.token,{expires:W.expiresAt,secure:!H.origin.includes("localhost"),httpOnly:!0}),await Y.onSignIn(W,J.search.toJSON()),W}async signInWithPin(J=new H0){let K=j0.use(),Y=K.provider,X=await J.input(),{email:Z,pin:Q}=X.toJSON(),w=Z.toLowerCase().trim();if(!await Y.adapter.findUserMagicLinkToken({email:w,pin:Q}))throw new e0({pin:["Invalid pin"]});await Y.adapter.deleteMagicLinkToken(w),await Y.adapter.verifyUser(w);let W=await K.createOrUpdateSession({email:w}),H=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token",W.token,{expires:W.expiresAt,secure:!H.origin.includes("localhost"),httpOnly:!0}),await Y.onSignIn(W,J.search.toJSON()),{session:W}}async signInV2(J=new z6){let K=new URL(J.rawRequest.url),Y=await J.input(),{email:X,password:Z}=Y.toJSON(),Q=X.toLowerCase().trim(),w=j0.use().provider,$=await w.adapter.findUserByEmailAddress(Q,w.verifyEmail);if(!$)throw new e0({invalid_credentials:["Invalid credentials"]});if(!await w.verifyPassword(Z,$.password))throw new e0({invalid_credentials:["Invalid credentials"]});let H=await j0.use().createOrUpdateSessionV2({email:$.email,id:$.id});J.ctx().setCookie("access_token",H.token,{expires:H.expiresAt,secure:!K.origin.includes("localhost"),httpOnly:!0}),await w.onSignIn($,J.search.toJSON());let{password:z,...U}=$;return U}async signIn(J=new z6){let K=await J.input(),{email:Y,password:X}=K.toJSON(),Z=Y.toLowerCase().trim(),Q=j0.use().provider,w=await Q.adapter.findUserByEmailAddress(Z,Q.verifyEmail);if(!w)throw new e0({invalid_credentials:["Invalid credentials"]});if(!await Q.verifyPassword(X,w.password))throw new e0({invalid_credentials:["Invalid credentials"]});let W=await j0.use().createOrUpdateSession({email:w.email,id:w.id}),H=new URL(J.rawRequest.url);J.ctx().setCookie("access_token",W.token,{expires:W.expiresAt,secure:!H.origin.includes("localhost"),httpOnly:!0}),await Q.onSignIn(w,J.search.toJSON());let{password:z,...U}=w;return U}async signUp(){let J=j0.use().provider,K=new J.signUpRequest,Y=await K.input(),{email:X,password:Z,name:Q,invitationId:w}=Y.toJSON(),$=X.toLowerCase().trim();if(await J.adapter.findUserByEmailAddress($,!1))throw new e0({email:["Email address already exists"]});let H=await J.hashPassword(Z),z=P0.use().detectLocale(K),U;if(w){if(U=await J.adapter.findInvitation(w,$),U)await J.adapter.deleteInvitationById(w)}let V,A;if(U)V=await J.adapter.createUser({email:$,name:Q,password:H,emailVerifiedAt:new Date,locale:z}),await J.adapter.createAccount({organizationId:U.organizationId,userId:V.id,organizationRole:U.role});else A=await J.generateEmailVerificationToken($),V=await J.adapter.createUser({email:$,name:Q,password:H,verificationToken:A,locale:z});return await J.onSignUp(V,A,K.search.toJSON()),V}async signOut(J=new H0){let K=J.cookies.get("access_token"),Y=await b1.user(),X=j0.use().provider;await X.adapter.deleteSession({token:K});let Z=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token","",{expires:new Date(0),secure:!Z.origin.includes("localhost"),httpOnly:!0}),await X.onSignOut(Y),{}}async forgotPassword(J=new D9){let Y=(await J.input()).get("email").toLowerCase().trim(),X=j0.use().provider,Z=await X.adapter.findUserByEmailAddress(Y,X.verifyEmail);if(!Z)return{};let Q=await X.generateForgotPasswordToken(Z);return await X.adapter.createPasswordResetToken({user:Z,token:Q}),await X.onForgotPassword(Z,Q),{}}async resetPassword(J=new I9){let K=j0.use().provider,Y=await J.input(),{password:X,token:Z}=Y.toJSON(),Q=await K.adapter.findPasswordResetToken({token:Z});if(!Q)throw new e0({token:["Invalid token"]});if(C5.Instant.from(Q.createdAt.toISOString()).add({hours:24}).until(C5.Now.instant()).sign>=0)throw new e0({token:["Token expired"]});await K.adapter.deletePasswordResetToken({token:Z});let $=await K.adapter.findUserByEmailAddress(Q.user.email,K.verifyEmail);if(!$)throw new e0({email:["User not found"]});let W=await K.hashPassword(X);return await K.adapter.updateUserPassword({id:$.id,password:W}),await K.adapter.deleteAllUserSessions($.id),await K.onResetPassword($),{}}async changePassword(J=new H0){let K=j0.use().provider,Y=await b1.user(),X=await J.input(),{oldPassword:Z,newPassword:Q}=X.toJSON(),{password:w}=await K.adapter.findUserByEmailAddress(Y.email,K.verifyEmail);if(!await K.verifyPassword(Z,w))throw new e0({oldPassword:["Incorrect password"]});let W=await K.hashPassword(Q);return await K.adapter.updateUserPassword({id:Y.id,password:W}),await K.adapter.deleteAllUserSessions(Y.id),{}}async oauthRedirect(J=new H0){let{provider:K}=J.params,Y=j0.use().provider.oauthProviders[K];if(!Y)throw Error(`Invalid provider: ${K}`);return{destination:await Y.getRedirectUrl(J)}}async oauthCallback(J=new H0){let{provider:K}=J.params,Y=j0.use(),X=Y.provider,Z=X.oauthProviders[K],{email:Q,name:w}=await Z.onCallback(J);if(!Q)return console.error("Authentication error: No email returned from OAuth provider callback"),{session:null};let $=await X.adapter.findUserByEmailAddress(Q,!1),W=P0.use().detectLocale(J),H="signin";if(!$)H="signup",$=await X.adapter.createUser({email:Q,name:w,locale:W,emailVerifiedAt:new Date}),await X.adapter.createSocialAccount({provider:K,userId:$.id,email:Q,username:w,providerId:"",expiresAt:new Date,accessToken:"",refreshToken:""});let z=await Y.createOrUpdateSessionV2({email:$.email,id:$.id}),U=new URL(J.rawRequest.url);if(J.ctx().setCookie("access_token",z.token,{secure:!U.origin.includes("localhost"),httpOnly:!0,expires:z.expiresAt}),H==="signup"){let V=await X.generateMagicLinkToken(Q);await X.onSignUp($,V,J.search.toJSON())}else await X.onSignIn($,J.search.toJSON());return{session:z}}async createMagicLinkToken(J=new H0){let Y=(await J.input()).get("email").toLowerCase().trim(),X=j0.use(),Z=X.provider,{user:Q,pin:w,token:$}=await X.createMagicLinkToken(Y);if(Q)return await Z.onMagicLinkCreated(Q,{email:Y,pin:w,token:$}),{email:Y};return{email:null}}}class R9 extends U6{middlewares=["cache:private"];routes={"/:provider":this.view("_Redirect",[b0,"oauthRedirect"]),"/:provider/callback":this.view("auth/OauthCallback",[b0,"oauthCallback"])}}class V6 extends U6{middlewares=["cache:private"];routes={"/sign-in/magic-link":this.view("auth/MagicLinkSignIn",[b0,"signInWithMagicLink"]),"/oauth":R9}}class A6 extends q1{middlewares=["cache:private"];routes={"/sign-in":this.post(b0,"signIn"),"/sign-in-v2":this.post(b0,"signInV2"),"/sign-up":this.post(b0,"signUp"),"/sign-out":this.post(b0,"signOut"),"/forgot-password":this.post(b0,"forgotPassword"),"/reset-password":this.post(b0,"resetPassword"),"/change-password":this.post(b0,"changePassword"),"/verify-email":this.post(b0,"verifyEmail"),"/me":this.get(b0,"me").middleware(["auth"]),"/magic-link":this.post(b0,"createMagicLinkToken"),"/sign-in-with-pin":this.post(b0,"signInWithPin"),"/sign-in-with-pin-v2":this.post(b0,"signInWithPinV2")}}class nY extends F9{basePath="/auth";verifyEmail=!0;redirectPath="/dashboard";sessionExpiresInHours=24;sessionAbsoluteExpiresInHours=672;signUpRequest=_9;adapter=new H6;oauthProviders={};boot(){}async verifyPassword(J,K){return await Bun.password.verify(J,K)}async hashPassword(J){return await Bun.password.hash(J)}async generateForgotPasswordToken(J){let K=new Bun.CryptoHasher("sha256");return K.update(`${J.email}${Date.now()}`),K.digest("hex")}generateEmailVerificationToken(J){if(!this.verifyEmail)return"";let K=new Bun.CryptoHasher("sha256");return K.update(`${J}${Date.now()}`),K.digest("hex")}generateMagicLinkToken(J){let K=new Bun.CryptoHasher("sha256");return K.update(`${J}${Date.now()}`),K.digest("hex")}extendSession(J){return{}}onSignUp(J,K,Y){}onSignIn(J,K){}onSignOut(J){}onForgotPassword(J,K){}onResetPassword(J){}onMagicLinkCreated(J,K){return}}class B6 extends q1{middlewares=["cache:private,0,no-store"];routes={"/set-locale/:locale":this.get(async()=>{let J=new H0,K=J.params.locale;return console.log(`Setting locale to ${K}`),J.ctx().setCookie("i18n-locale",K),await P0.use().service.onLocaleChange(K),{locale:K}}),"/translations/:locale/:scope*":this.get(async()=>{let J=new H0,K=`/${J.params.scope??""}`,X=J.params.locale??P0.use().detectLocale(J),Z=P0.use().getPageTranslations(X,K);return J.ctx().setCookie("i18n-locale",X,{expires:new Date(Date.now()+31536000000)}),{[X]:Z}})}}class G6 extends q1{routes={"/resize":this.file(async()=>{let J=new H0,K=new URL(J.rawRequest.url),Y=K.searchParams.get("url"),X=Number(K.searchParams.get("w")),Z=Number(K.searchParams.get("h")),Q=K.searchParams.get("fit")??"cover",w=Number(K.searchParams.get("q"));if(!Y)return new Response(JSON.stringify({error:"url query parameter is required"}),{headers:{"Content-Type":"application/json"},status:404});let W=`${Y.startsWith("http")?"":`http://localhost:${process.env.PORT||5173}`}${Y}`,H=await fetch(W);if(!H.ok)return new Response(JSON.stringify({error:"Image not found",info:W}),{headers:{"Content-Type":"application/json"},status:404});let z=Buffer.from(await H.arrayBuffer()),U=await T9.use().service.driver.resize(z,{height:Z,width:X,fit:Q,quality:w});H.headers.delete("Content-Type"),H.headers.delete("Content-Length");let V=new Headers(H.headers);return V.set("Content-Type","image/webp"),V.set("Content-Length",`${U.byteLength}`),new Response(new Uint8Array(U),{headers:V})})}}class T9 extends y0{service;static _name="ImageOptimizationServiceContainer";constructor(J){super();this.service=J}}import{mkdir as M6,readdir as oY,access as sY}from"fs/promises";async function L6(J){try{return await sY(J),!0}catch{return!1}}class J1 extends y0{service;static _name="LoggingServiceContainer";writer;isReady=!1;logsDirPath=`${process.env.ROOT_DIR}/storage/logs`;flushTimeout;fileSize=0;writerSize=0;isCreatingFile=!1;currentLogFilePath;constructor(J){super();this.service=J;this.boot().then(()=>{this.isReady=!0})}async boot(){if(!process.env.ROOT_DIR)return;if(!await L6(`${process.env.ROOT_DIR}/storage`))await M6(`${process.env.ROOT_DIR}/storage`);if(!await L6(this.logsDirPath))await M6(this.logsDirPath);this.newLogFile()}async newLogFile(){if(!await L6(this.logsDirPath))await M6(this.logsDirPath);if(this.isCreatingFile=!0,this.currentLogFilePath){this.writer.flush(),this.writer.end(),this.writer=null;let Y=new File([await Bun.file(this.currentLogFilePath).arrayBuffer()],this.currentLogFilePath.split("/").pop(),{type:"text/plain"});this.service.onLogFileClosed(Y),this.fileSize=0,this.writerSize=0}let K=(await oY(this.logsDirPath)).sort().reverse()[0];if(K){let Y=Bun.file(`${this.logsDirPath}/${K}`);if(Y.size<this.service.maxFileSize)this.currentLogFilePath=`${this.logsDirPath}/${K}`,this.writer=Y.writer(),this.writer.write(await Y.text()),this.writer.write(`
12
+ `),this.writer.flush(),this.fileSize=Y.size}if(!this.writer){let Y=`${new Date(Date.now()).toISOString()}.log`.replaceAll(":","-");this.currentLogFilePath=`${this.logsDirPath}/${Y}`;let X=Bun.file(`${this.logsDirPath}/${Y}`);this.writer=X.writer(),this.fileSize=0,this.writerSize=0}this.isCreatingFile=!1}async log(J,K,Y={}){if(!this.isReady)await new Promise(($)=>{let W=setInterval(()=>{if(this.isReady)$({}),clearInterval(W)},100)});let X=G0.getStore(),Z={};if(X)Z={url:X.req.rawRequest.url,method:X.req.rawRequest.method,headers:X.req.rawRequest.headers,body:X.req.rawRequest.body};let Q={timestamp:new Date(Date.now()).toISOString(),env:Bun.env.NODE_ENV,level:J,message:K,metadata:{...Z,...Y}},w="";try{w=JSON.stringify(Q)}catch($){console.log("Error parsing log object",$)}this.writerSize+=w.length,this.fileSize+=w.length;try{this.writer.write(w),this.writer.write(`
13
+ `),this.service.onLogCreated(Q),this.tryFlush()}catch($){console.error("Error writing log",$)}}async tryFlush(){if(this.fileSize>this.service.maxFileSize){if(!this.isCreatingFile)await this.newLogFile()}if(this.writerSize>this.service.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 q6 extends q1{middlewares=["cache:private,0"];routes={"/live":this.get(async()=>{let J=Bun.file(J1.use().currentLogFilePath);return new Response(await J.text(),{headers:{"Content-Type":"text/plain"}})})}}function aY(J){let K=new Map;for(let Y of J)if(typeof Y==="string"){let[X,Z=""]=Y.split(":");if(X.startsWith("-")){if(K.has(X.replace("-","")))K.delete(X.replace("-",""))}else K.set(X,Z.split(",").filter(Boolean))}else K.set(Y,[]);return K}class P5 extends y0{service;static _name="MiddlewareServiceContainer";constructor(J){super();this.service=J}runMiddleware(J){let K=new H0;return Array.from(aY(J).entries()).map(([Y,X])=>{if(typeof Y==="string"){let Z=this.service.aliases[Y];if(Z){let Q=new Z(K);return()=>Q.run.call(Q,...X)}}else{if(C9(Y)){let Z=new Y(K);return Z.run.bind(Z)}return Y}}).filter(Boolean).reduce((Y,X)=>{return async()=>{return{...await Y(),...await X()}}},()=>Promise.resolve({}))()}}function tY(J){return"run"in J}function eY(J){return Object.hasOwn(J,"get")||Object.hasOwn(J,"post")||Object.hasOwn(J,"put")||Object.hasOwn(J,"delete")}function J2(J){return Object.hasOwn(J,"first")&&Object.hasOwn(J,"second")}function K2(J){if("__brand"in J)return J.__brand==="ApiRouter";return!1}function Y2(J){if("__internal_brand"in J)return J.__internal_brand==="ProxyHandler";return!1}function X2(J){if("__internal_brand"in J)return J.__internal_brand==="StreamHandler";return!1}function O6(J,K="",Y=[]){let X={};function Z(Q,w,$,W){let H=Q==="/"?"":Q,z=K==="/"?"":K,U=(`${z}${H}`===""?"/":`${z}${H}`).replaceAll("//","/");if(!X[U])X[U]={};X[U][w.toUpperCase()]={exec:$,middleware:[...Y,...W]},X[U].OPTIONS={exec:()=>{let A=new H0().ctx().headers;return new Response(null,{headers:A,status:204})},middleware:[]}}for(let[Q,w]of Object.entries(J)){if(Y2(w)){let $=w;for(let W of["GET","POST","PUT","DELETE"])Z(Q,W,$.run.bind($),[]);continue}if(tY(w)){let $=w,W=$.method,H=$.middlewares,z=$.run.bind($);if(Z(Q,W,z,H),X2(w))Z(Q,"HEAD",z,H)}if(eY(w))for(let[$,W]of Object.entries(w)){let H=W.middlewares,z=W.run.bind(W);Z(Q,$,z,H)}if(K2(w)){let $=new w,W=O6($.routes,`${K}${Q}`,$.middlewares);for(let[H,z]of Object.entries(W))X[H.replaceAll("//","/")]=z}if(J2(w)){let{first:$,second:W}=w;for(let[H,z]of Object.entries($)){let U=z.middlewares,V=z.run.bind(z),[A,...L]=Q.split("/").reverse();if(!A.startsWith(":"))throw Error("Resource route must end with a dynamic segment");Z(L.reverse().join("/"),H,V,U)}for(let[H,z]of Object.entries(W)){let U=z.middlewares,V=z.run.bind(z);Z(Q,H,V,U)}}}return Object.fromEntries(Object.entries(X).sort(([Q],[w])=>{let $=Q.split("/").length+Q.split(":").length,W=w.split("/").length+w.split(":").length;return $-W}))}var J7=$1(r9(),1),K7=$1(n9(),1),R6={};var M2=5;var o9=12,L2=13;var q2=16,O2=17;var N2=22;var s9=28;var a9=31;var j2=33,z8=34,E2=35,D6=36,I6=37,Y7=38,F2=39,_2=40,v5=41,D2=42,G=0,q=1,W0=2,X7=3,_=4,I2=[[_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,X7,_,_,_,_,_,_,_,_,_,_,_],[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]],R2=K7.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/"),T2=new J7.default(R2),t9=function(J){switch(J){case j2:return o9;case F2:case _2:case D2:return o9;case E2:return M2;default:return J}},e9=function(J){switch(J){case I6:case Y7:return z8;case v5:return N2;default:return J}};class U8{constructor(J,K=!1){this.position=J,this.required=K}}class Z7{nextCodePoint(){let J=this.string.charCodeAt(this.pos++),K=this.string.charCodeAt(this.pos);if(55296<=J&&J<=56319&&56320<=K&&K<=57343)return this.pos++,(J-55296)*1024+(K-56320)+65536;return J}nextCharClass(){return t9(T2.get(this.nextCodePoint()))}getSimpleBreak(){switch(this.nextClass){case v5:return!1;case z8:case I6:case Y7:return this.curClass=z8,!1;case D6:return this.curClass=D6,!1}return null}getPairTableBreak(J){let K=!1;switch(I2[this.curClass][this.nextClass]){case G:K=!0;break;case q:K=J===v5;break;case W0:if(K=J===v5,!K)return K=!1,K;break;case X7:if(J!==v5)return K;break;case _:break}if(this.LB8a)K=!1;if(this.LB21a&&(this.curClass===q2||this.curClass===O2))K=!1,this.LB21a=!1;else this.LB21a=this.curClass===L2;if(this.curClass===s9){if(this.LB30a++,this.LB30a==2&&this.nextClass===s9)K=!0,this.LB30a=0}else this.LB30a=0;return this.curClass=this.nextClass,K}nextBreak(){if(this.curClass==null){let J=this.nextCharClass();this.curClass=e9(J),this.nextClass=J,this.LB8a=J===a9,this.LB30a=0}while(this.pos<this.string.length){this.lastPos=this.pos;let J=this.nextClass;if(this.nextClass=this.nextCharClass(),this.curClass===z8||this.curClass===D6&&this.nextClass!==I6)return this.curClass=e9(t9(this.nextClass)),new U8(this.lastPos,!0);let K=this.getSimpleBreak();if(K===null)K=this.getPairTableBreak(J);if(this.LB8a=this.nextClass===a9,K)return new U8(this.lastPos)}if(this.lastPos<this.string.length)return this.lastPos=this.string.length,new U8(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}}R6=Z7;var G1=$1(L8(),1),YY=$1(g7(),1),XY=$1(b7(),1);var u7=$1(m7(),1),p7=$1(c7(),1),PZ=/^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/,SZ=new RegExp(PZ,"i"),n6="-?\\d*(?:\\.\\d+)",N5=`(${n6}?)`,j1=`(${n6}?%)`,j5=`(${n6}?%?)`,vZ=`^
14
+ hsla?\\(
15
+ \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*,
16
+ \\s*${j1}\\s*,
17
+ \\s*${j1}\\s*
18
+ (?:,\\s*${j5}\\s*)?
19
+ \\)
20
+ $
21
+ `.replace(/\n|\s/g,""),yZ=new RegExp(vZ),hZ=`^
22
+ hsla?\\(
23
+ \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*
24
+ \\s+${j1}
25
+ \\s+${j1}
26
+ \\s*(?:\\s*\\/\\s*${j5}\\s*)?
27
+ \\)
28
+ $
29
+ `.replace(/\n|\s/g,""),kZ=new RegExp(hZ),gZ=`^
30
+ rgba?\\(
31
+ \\s*${N5}\\s*,
32
+ \\s*${N5}\\s*,
33
+ \\s*${N5}\\s*
34
+ (?:,\\s*${j5}\\s*)?
35
+ \\)
36
+ $
37
+ `.replace(/\n|\s/g,""),xZ=new RegExp(gZ),bZ=`^
38
+ rgba?\\(
39
+ \\s*${j1}\\s*,
40
+ \\s*${j1}\\s*,
41
+ \\s*${j1}\\s*
42
+ (?:,\\s*${j5}\\s*)?
43
+ \\)
44
+ $
45
+ `.replace(/\n|\s/g,""),fZ=new RegExp(bZ),mZ=`^
46
+ rgba?\\(
47
+ \\s*${N5}
48
+ \\s+${N5}
49
+ \\s+${N5}
50
+ \\s*(?:\\s*\\/\\s*${j5}\\s*)?
51
+ \\)
52
+ $
53
+ `.replace(/\n|\s/g,""),lZ=new RegExp(mZ),cZ=`^
54
+ rgba?\\(
55
+ \\s*${j1}
56
+ \\s+${j1}
57
+ \\s+${j1}
58
+ \\s*(?:\\s*\\/\\s*${j5}\\s*)?
59
+ \\)
60
+ $
61
+ `.replace(/\n|\s/g,""),dZ=new RegExp(cZ),uZ=/^transparent$/,pZ=new RegExp(uZ,"i"),o6=(J,K,Y)=>Math.min(Math.max(K,J),Y),iZ=(J)=>{let K=J;if(typeof K!=="number")K=K.endsWith("%")?parseFloat(K)*255/100:parseFloat(K);return o6(Math.round(K),0,255)},d7=(J)=>o6(parseFloat(J),0,100);function i7(J){let K=J;if(typeof K!=="number")K=K.endsWith("%")?parseFloat(K)/100:parseFloat(K);return o6(K,0,1)}function rZ(J){let[K,Y,X,Z]=p7.default(J,{format:"array"});return O8([null,K,Y,X,Z])}function nZ([,J,K,Y,X=1]){let Z=J;if(Z.endsWith("turn"))Z=parseFloat(Z)*360/1;else if(Z.endsWith("rad"))Z=Math.round(parseFloat(Z)*180/Math.PI);else Z=parseFloat(Z);return{type:"hsl",values:[Z,d7(K),d7(Y)],alpha:i7(X===null?1:X)}}function O8([,J,K,Y,X=1]){return{type:"rgb",values:[J,K,Y].map(iZ),alpha:i7(X===null?1:X)}}var oZ=(J)=>{if(typeof J!=="string")return null;let K=SZ.exec(J);if(K)return rZ(K[0]);let Y=kZ.exec(J)||yZ.exec(J);if(Y)return nZ(Y);let X=lZ.exec(J)||dZ.exec(J)||xZ.exec(J)||fZ.exec(J);if(X)return O8(X);if(pZ.exec(J))return O8([null,0,0,0,0]);let Z=u7.default[J.toLowerCase()];if(Z)return O8([null,Z[0],Z[1],Z[2],1]);return null},N8=oZ;var ZY=$1(k6(),1),QY=$1(L8(),1),C4=$1(n7(),1);function a6(J,K=","){let Y=[],X=0,Z=0;K=new RegExp(K);for(let Q=0;Q<J.length;Q++)J[Q]==="("?Z++:J[Q]===")"&&Z--,Z===0&&K.test(J[Q])&&(Y.push(J.slice(X,Q).trim()),X=Q+1);return Y.push(J.slice(X).trim()),Y}function s6(J){let K=[];for(let Y=0,X=J.length;Y<X;){let[Z,Q]=a6(J[Y],/\s+/);tZ(J[Y+1])?(K.push({color:Z,offset:Y5(Q),hint:Y5(J[Y+1])}),Y+=2):(K.push({color:Z,offset:Y5(Q)}),Y++)}return K}var a7=/^(-?\d+\.?\d*)(%|vw|vh|px|em|rem|deg|rad|grad|turn)$/;function tZ(J){return a7.test(J)}function Y5(J){if(!J)return;let[,K,Y]=J.trim().match(a7)||[];return{value:K,unit:Y}}function t7(J){if(!/^(repeating-)?linear-gradient/.test(J))throw SyntaxError(`could not find syntax for this item: ${J}`);let[,K,Y]=J.match(/(repeating-)?linear-gradient\((.+)\)/),X={orientation:{type:"directional",value:"bottom"},repeating:!!K,stops:[]},Z=a6(Y),Q=eZ(Z[0]);return Q&&(X.orientation=Q,Z.shift()),{...X,stops:s6(Z)}}function eZ(J){return J.startsWith("to ")?{type:"directional",value:J.replace("to ","")}:["turn","deg","grad","rad"].some((K)=>J.endsWith(K))?{type:"angular",value:Y5(J)}:null}var JQ=new Set(["closest-corner","closest-side","farthest-corner","farthest-side"]),KQ=new Set(["center","left","top","right","bottom"]);function o7(J){return JQ.has(J)}function s7(J){return KQ.has(J)}function YQ(J){let K=Array(2).fill("");for(let Y=0;Y<2;Y++)J[Y]?K[Y]=J[Y]:K[Y]="center";return K}function e7(J){if(!/(repeating-)?radial-gradient/.test(J))throw SyntaxError(`could not find syntax for this item: ${J}`);let[,K,Y]=J.match(/(repeating-)?radial-gradient\((.+)\)/),X={shape:"ellipse",repeating:!!K,size:[{type:"keyword",value:"farthest-corner"}],position:{x:{type:"keyword",value:"center"},y:{type:"keyword",value:"center"}},stops:[]},Z=a6(Y);if(XQ(Z[0]))return{...X,stops:s6(Z)};let Q=Z[0].split("at").map((H)=>H.trim()),w=((Q[0]||"").match(/(circle|ellipse)/)||[])[1],$=(Q[0]||"").match(/(-?\d+\.?\d*(vw|vh|px|em|rem|%|rad|grad|turn|deg)?|closest-corner|closest-side|farthest-corner|farthest-side)/g)||[],W=YQ((Q[1]||"").split(" "));return w?X.shape=w:$.length===1&&!o7($[0])?X.shape="circle":X.shape="ellipse",$.length===0&&$.push("farthest-corner"),X.size=$.map((H)=>o7(H)?{type:"keyword",value:H}:{type:"length",value:Y5(H)}),X.position.x=s7(W[0])?{type:"keyword",value:W[0]}:{type:"length",value:Y5(W[0])},X.position.y=s7(W[1])?{type:"keyword",value:W[1]}:{type:"length",value:Y5(W[1])},(w||$.length>0||Q[1])&&Z.shift(),{...X,stops:s6(Z)}}function XQ(J){return/(circle|ellipse|at)/.test(J)?!1:/^(rgba?|hwb|hsl|lab|lch|oklab|color|#|[a-zA-Z]+)/.test(J)}var P4=$1(L8(),1);var K1=Uint8Array,Z5=Uint16Array,RJ=Uint32Array,TJ=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]),CJ=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]),ZQ=new K1([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),PJ=function(J,K){var Y=new Z5(31);for(var X=0;X<31;++X)Y[X]=K+=1<<J[X-1];var Z=new RJ(Y[30]);for(var X=1;X<30;++X)for(var Q=Y[X];Q<Y[X+1];++Q)Z[Q]=Q-Y[X]<<5|X;return[Y,Z]},SJ=PJ(TJ,2),vJ=SJ[0],QQ=SJ[1];vJ[28]=258,QQ[258]=28;var wQ=PJ(CJ,0),WQ=wQ[0],W4=new Z5(32768);for(Q0=0;Q0<32768;++Q0)E1=(Q0&43690)>>>1|(Q0&21845)<<1,E1=(E1&52428)>>>2|(E1&13107)<<2,E1=(E1&61680)>>>4|(E1&3855)<<4,W4[Q0]=((E1&65280)>>>8|(E1&255)<<8)>>>1;var E1,Q0,g5=function(J,K,Y){var X=J.length,Z=0,Q=new Z5(K);for(;Z<X;++Z)if(J[Z])++Q[J[Z]-1];var w=new Z5(K);for(Z=0;Z<K;++Z)w[Z]=w[Z-1]+Q[Z-1]<<1;var $;if(Y){$=new Z5(1<<K);var W=15-K;for(Z=0;Z<X;++Z)if(J[Z]){var H=Z<<4|J[Z],z=K-J[Z],U=w[J[Z]-1]++<<z;for(var V=U|(1<<z)-1;U<=V;++U)$[W4[U]>>>W]=H}}else{$=new Z5(X);for(Z=0;Z<X;++Z)if(J[Z])$[Z]=W4[w[J[Z]-1]++]>>>15-J[Z]}return $},f5=new K1(288);for(Q0=0;Q0<144;++Q0)f5[Q0]=8;var Q0;for(Q0=144;Q0<256;++Q0)f5[Q0]=9;var Q0;for(Q0=256;Q0<280;++Q0)f5[Q0]=7;var Q0;for(Q0=280;Q0<288;++Q0)f5[Q0]=8;var Q0,yJ=new K1(32);for(Q0=0;Q0<32;++Q0)yJ[Q0]=5;var Q0,$Q=g5(f5,9,1),HQ=g5(yJ,5,1),t6=function(J){var K=J[0];for(var Y=1;Y<J.length;++Y)if(J[Y]>K)K=J[Y];return K},H1=function(J,K,Y){var X=K/8|0;return(J[X]|J[X+1]<<8)>>(K&7)&Y},e6=function(J,K){var Y=K/8|0;return(J[Y]|J[Y+1]<<8|J[Y+2]<<16)>>(K&7)},zQ=function(J){return(J+7)/8|0},UQ=function(J,K,Y){if(K==null||K<0)K=0;if(Y==null||Y>J.length)Y=J.length;var X=new(J.BYTES_PER_ELEMENT==2?Z5:J.BYTES_PER_ELEMENT==4?RJ:K1)(Y-K);return X.set(J.subarray(K,Y)),X},VQ=["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"],c1=function(J,K,Y){var X=Error(K||VQ[J]);if(X.code=J,Error.captureStackTrace)Error.captureStackTrace(X,c1);if(!Y)throw X;return X},AQ=function(J,K,Y){var X=J.length;if(!X||Y&&Y.f&&!Y.l)return K||new K1(0);var Z=!K||Y,Q=!Y||Y.i;if(!Y)Y={};if(!K)K=new K1(X*3);var w=function(g){var J0=K.length;if(g>J0){var X0=new K1(Math.max(J0*2,g));X0.set(K),K=X0}},$=Y.f||0,W=Y.p||0,H=Y.b||0,z=Y.l,U=Y.d,V=Y.m,A=Y.n,L=X*8;do{if(!z){$=H1(J,W,1);var B=H1(J,W+1,3);if(W+=3,!B){var M=zQ(W)+4,O=J[M-4]|J[M-3]<<8,N=M+O;if(N>X){if(Q)c1(0);break}if(Z)w(H+O);K.set(J.subarray(M,N),H),Y.b=H+=O,Y.p=W=N*8,Y.f=$;continue}else if(B==1)z=$Q,U=HQ,V=9,A=5;else if(B==2){var E=H1(J,W,31)+257,D=H1(J,W+10,15)+4,F=E+H1(J,W+5,31)+1;W+=14;var j=new K1(F),T=new K1(19);for(var I=0;I<D;++I)T[ZQ[I]]=H1(J,W+I*3,7);W+=D*3;var C=t6(T),k=(1<<C)-1,d=g5(T,C,1);for(var I=0;I<F;){var u=d[H1(J,W,k)];W+=u&15;var M=u>>>4;if(M<16)j[I++]=M;else{var p=0,P=0;if(M==16)P=3+H1(J,W,3),W+=2,p=j[I-1];else if(M==17)P=3+H1(J,W,7),W+=3;else if(M==18)P=11+H1(J,W,127),W+=7;while(P--)j[I++]=p}}var S=j.subarray(0,E),R=j.subarray(E);V=t6(S),A=t6(R),z=g5(S,V,1),U=g5(R,A,1)}else c1(1);if(W>L){if(Q)c1(0);break}}if(Z)w(H+131072);var c=(1<<V)-1,f=(1<<A)-1,o=W;for(;;o=W){var p=z[e6(J,W)&c],i=p>>>4;if(W+=p&15,W>L){if(Q)c1(0);break}if(!p)c1(2);if(i<256)K[H++]=i;else if(i==256){o=W,z=null;break}else{var m=i-254;if(i>264){var I=i-257,l=TJ[I];m=H1(J,W,(1<<l)-1)+vJ[I],W+=l}var y=U[e6(J,W)&f],h=y>>>4;if(!y)c1(3);W+=y&15;var R=WQ[h];if(h>3){var l=CJ[h];R+=e6(J,W)&(1<<l)-1,W+=l}if(W>L){if(Q)c1(0);break}if(Z)w(H+131072);var s=H+m;for(;H<s;H+=4)K[H]=K[H-R],K[H+1]=K[H+1-R],K[H+2]=K[H+2-R],K[H+3]=K[H+3-R];H=s}}if(Y.l=z,Y.p=o,Y.b=H,Y.f=$,z)$=1,Y.m=V,Y.d=U,Y.n=A}while(!$);return H==K.length?K:UQ(K,0,H)},BQ=new K1(0);function GQ(J,K){return AQ(J,K)}var MQ=typeof TextDecoder<"u"&&new TextDecoder,LQ=0;try{MQ.decode(BQ,{stream:!0}),LQ=1}catch(J){}function f0(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}f0.prototype.moveTo=function(J,K){this.commands.push({type:"M",x:J,y:K})};f0.prototype.lineTo=function(J,K){this.commands.push({type:"L",x:J,y:K})};f0.prototype.curveTo=f0.prototype.bezierCurveTo=function(J,K,Y,X,Z,Q){this.commands.push({type:"C",x1:J,y1:K,x2:Y,y2:X,x:Z,y:Q})};f0.prototype.quadTo=f0.prototype.quadraticCurveTo=function(J,K,Y,X){this.commands.push({type:"Q",x1:J,y1:K,x:Y,y:X})};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 K(w){if(Math.round(w)===w)return""+Math.round(w);else return w.toFixed(J)}function Y(){var w=arguments,$="";for(var W=0;W<arguments.length;W+=1){var H=w[W];if(H>=0&&W>0)$+=" ";$+=K(H)}return $}var X="";for(var Z=0;Z<this.commands.length;Z+=1){var Q=this.commands[Z];if(Q.type==="M")X+="M"+Y(Q.x,Q.y);else if(Q.type==="L")X+="L"+Y(Q.x,Q.y);else if(Q.type==="C")X+="C"+Y(Q.x1,Q.y1,Q.x2,Q.y2,Q.x,Q.y);else if(Q.type==="Q")X+="Q"+Y(Q.x1,Q.y1,Q.x,Q.y);else if(Q.type==="Z")X+="Z"}return X};var qQ=[".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"],OQ=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],NQ=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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 hJ(J){this.font=J}hJ.prototype.charToGlyphIndex=function(J){var K=J.codePointAt(0),Y=this.font.glyphs;if(Y)for(var X=0;X<Y.length;X+=1){var Z=Y.get(X);for(var Q=0;Q<Z.unicodes.length;Q+=1)if(Z.unicodes[Q]===K)return X}return null};function kJ(J){this.cmap=J}kJ.prototype.charToGlyphIndex=function(J){return this.cmap.glyphIndexMap[J.codePointAt(0)]||0};function _8(J,K){this.encoding=J,this.charset=K}_8.prototype.charToGlyphIndex=function(J){var K=J.codePointAt(0),Y=this.encoding[K];return this.charset.indexOf(Y)};function jQ(J){var K,Y=J.tables.cmap.glyphIndexMap,X=Object.keys(Y);for(var Z=0;Z<X.length;Z+=1){var Q=X[Z],w=Y[Q];K=J.glyphs.get(w),K.addUnicode(parseInt(Q))}}function EQ(J){J._IndexToUnicodeMap={};var K=J.tables.cmap.glyphIndexMap,Y=Object.keys(K);for(var X=0;X<Y.length;X+=1){var Z=Y[X],Q=K[Z];if(J._IndexToUnicodeMap[Q]===void 0)J._IndexToUnicodeMap[Q]={unicodes:[parseInt(Z)]};else J._IndexToUnicodeMap[Q].unicodes.push(parseInt(Z))}}function FQ(J,K){if(K.lowMemory)EQ(J);else jQ(J)}function gJ(J){throw Error(J)}function JJ(J,K){if(!J)gJ(K)}var z0={fail:gJ,argument:JJ,assert:JJ};function _Q(J,K){var Y=K||new f0;return{configurable:!0,get:function(){if(typeof Y==="function")Y=Y();return Y},set:function(X){Y=X}}}function S1(J){this.bindConstructorValues(J)}S1.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",_Q(this,J.path))};S1.prototype.addUnicode=function(J){if(this.unicodes.length===0)this.unicode=J;this.unicodes.push(J)};S1.prototype.getPath=function(J,K,Y,X,Z){J=J!==void 0?J:0,K=K!==void 0?K:0,Y=Y!==void 0?Y:72;var Q,w;if(!X)X={};var{xScale:$,yScale:W}=X;if(X.hinting&&Z&&Z.hinting)w=this.path&&Z.hinting.exec(this,Y);if(w)Q=Z.hinting.getCommands(w),J=Math.round(J),K=Math.round(K),$=W=1;else{Q=this.path.commands;var H=1/(this.path.unitsPerEm||1000)*Y;if($===void 0)$=H;if(W===void 0)W=H}var z=new f0;for(var U=0;U<Q.length;U+=1){var V=Q[U];if(V.type==="M")z.moveTo(J+V.x*$,K+-V.y*W);else if(V.type==="L")z.lineTo(J+V.x*$,K+-V.y*W);else if(V.type==="Q")z.quadraticCurveTo(J+V.x1*$,K+-V.y1*W,J+V.x*$,K+-V.y*W);else if(V.type==="C")z.curveTo(J+V.x1*$,K+-V.y1*W,J+V.x2*$,K+-V.y2*W,J+V.x*$,K+-V.y*W);else if(V.type==="Z")z.closePath()}return z};S1.prototype.getContours=function(){if(this.points===void 0)return[];var J=[],K=[];for(var Y=0;Y<this.points.length;Y+=1){var X=this.points[Y];if(K.push(X),X.lastPointOfContour)J.push(K),K=[]}return z0.argument(K.length===0,"There are still points left in the current contour."),J};S1.prototype.getMetrics=function(){var J=this.path.commands,K=[],Y=[];for(var X=0;X<J.length;X+=1){var Z=J[X];if(Z.type!=="Z")K.push(Z.x),Y.push(Z.y);if(Z.type==="Q"||Z.type==="C")K.push(Z.x1),Y.push(Z.y1);if(Z.type==="C")K.push(Z.x2),Y.push(Z.y2)}var Q={xMin:Math.min.apply(null,K),yMin:Math.min.apply(null,Y),xMax:Math.max.apply(null,K),yMax:Math.max.apply(null,Y),leftSideBearing:this.leftSideBearing};if(!isFinite(Q.xMin))Q.xMin=0;if(!isFinite(Q.xMax))Q.xMax=this.advanceWidth;if(!isFinite(Q.yMin))Q.yMin=0;if(!isFinite(Q.yMax))Q.yMax=0;return Q.rightSideBearing=this.advanceWidth-Q.leftSideBearing-(Q.xMax-Q.xMin),Q};function j8(J,K,Y){Object.defineProperty(J,K,{get:function(){return J.path,J[Y]},set:function(X){J[Y]=X},enumerable:!0,configurable:!0})}function z4(J,K){if(this.font=J,this.glyphs={},Array.isArray(K))for(var Y=0;Y<K.length;Y++){var X=K[Y];X.path.unitsPerEm=J.unitsPerEm,this.glyphs[Y]=X}this.length=K&&K.length||0}z4.prototype.get=function(J){if(this.glyphs[J]===void 0){if(this.font._push(J),typeof this.glyphs[J]==="function")this.glyphs[J]=this.glyphs[J]();var K=this.glyphs[J],Y=this.font._IndexToUnicodeMap[J];if(Y)for(var X=0;X<Y.unicodes.length;X++)K.addUnicode(Y.unicodes[X]);this.glyphs[J].advanceWidth=this.font._hmtxTableData[J].advanceWidth,this.glyphs[J].leftSideBearing=this.font._hmtxTableData[J].leftSideBearing}else if(typeof this.glyphs[J]==="function")this.glyphs[J]=this.glyphs[J]();return this.glyphs[J]};z4.prototype.push=function(J,K){this.glyphs[J]=K,this.length++};function DQ(J,K){return new S1({index:K,font:J})}function IQ(J,K,Y,X,Z,Q){return function(){var w=new S1({index:K,font:J});return w.path=function(){Y(w,X,Z);var $=Q(J.glyphs,w);return $.unitsPerEm=J.unitsPerEm,$},j8(w,"xMin","_xMin"),j8(w,"xMax","_xMax"),j8(w,"yMin","_yMin"),j8(w,"yMax","_yMax"),w}}function RQ(J,K,Y,X){return function(){var Z=new S1({index:K,font:J});return Z.path=function(){var Q=Y(J,Z,X);return Q.unitsPerEm=J.unitsPerEm,Q},Z}}var _1={GlyphSet:z4,glyphLoader:DQ,ttfGlyphLoader:IQ,cffGlyphLoader:RQ};function J4(J,K){var Y=0,X=J.length-1;while(Y<=X){var Z=Y+X>>>1,Q=J[Z].tag;if(Q===K)return Z;else if(Q<K)Y=Z+1;else X=Z-1}return-Y-1}function KJ(J,K){var Y=0,X=J.length-1;while(Y<=X){var Z=Y+X>>>1,Q=J[Z];if(Q===K)return Z;else if(Q<K)Y=Z+1;else X=Z-1}return-Y-1}function YJ(J,K){var Y,X=0,Z=J.length-1;while(X<=Z){var Q=X+Z>>>1;Y=J[Q];var w=Y.start;if(w===K)return Y;else if(w<K)X=Q+1;else Z=Q-1}if(X>0){if(Y=J[X-1],K>Y.end)return 0;return Y}}function m5(J,K){this.font=J,this.tableName=K}m5.prototype={searchTag:J4,binSearch:KJ,getTable:function(J){var K=this.font.tables[this.tableName];if(!K&&J)K=this.font.tables[this.tableName]=this.createDefaultTable();return K},getDefaultScriptName:function(){var J=this.getTable();if(!J)return;var K=!1;for(var Y=0;Y<J.scripts.length;Y++){var X=J.scripts[Y].tag;if(X==="DFLT")return X;if(X==="latn")K=!0}if(K)return"latn"},getScriptTable:function(J,K){var Y=this.getTable(K);if(Y){J=J||"DFLT";var X=Y.scripts,Z=J4(Y.scripts,J);if(Z>=0)return X[Z].script;else if(K){var Q={tag:J,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return X.splice(-1-Z,0,Q),Q.script}}},getLangSysTable:function(J,K,Y){var X=this.getScriptTable(J,Y);if(X){if(!K||K==="dflt"||K==="DFLT")return X.defaultLangSys;var Z=J4(X.langSysRecords,K);if(Z>=0)return X.langSysRecords[Z].langSys;else if(Y){var Q={tag:K,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return X.langSysRecords.splice(-1-Z,0,Q),Q.langSys}}},getFeatureTable:function(J,K,Y,X){var Z=this.getLangSysTable(J,K,X);if(Z){var Q,w=Z.featureIndexes,$=this.font.tables[this.tableName].features;for(var W=0;W<w.length;W++)if(Q=$[w[W]],Q.tag===Y)return Q.feature;if(X){var H=$.length;return z0.assert(H===0||Y>=$[H-1].tag,"Features must be added in alphabetical order."),Q={tag:Y,feature:{params:0,lookupListIndexes:[]}},$.push(Q),w.push(H),Q.feature}}},getLookupTables:function(J,K,Y,X,Z){var Q=this.getFeatureTable(J,K,Y,Z),w=[];if(Q){var $,W=Q.lookupListIndexes,H=this.font.tables[this.tableName].lookups;for(var z=0;z<W.length;z++)if($=H[W[z]],$.lookupType===X)w.push($);if(w.length===0&&Z){$={lookupType:X,lookupFlag:0,subtables:[],markFilteringSet:void 0};var U=H.length;return H.push($),W.push(U),[$]}}return w},getGlyphClass:function(J,K){switch(J.format){case 1:if(J.startGlyph<=K&&K<J.startGlyph+J.classes.length)return J.classes[K-J.startGlyph];return 0;case 2:var Y=YJ(J.ranges,K);return Y?Y.classId:0}},getCoverageIndex:function(J,K){switch(J.format){case 1:var Y=KJ(J.glyphs,K);return Y>=0?Y:-1;case 2:var X=YJ(J.ranges,K);return X?X.index+K-X.start:-1}},expandCoverage:function(J){if(J.format===1)return J.glyphs;else{var K=[],Y=J.ranges;for(var X=0;X<Y.length;X++){var Z=Y[X],Q=Z.start,w=Z.end;for(var $=Q;$<=w;$++)K.push($)}return K}}};function l5(J){m5.call(this,J,"gpos")}l5.prototype=m5.prototype;l5.prototype.init=function(){var J=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(J)};l5.prototype.getKerningValue=function(J,K,Y){for(var X=0;X<J.length;X++){var Z=J[X].subtables;for(var Q=0;Q<Z.length;Q++){var w=Z[Q],$=this.getCoverageIndex(w.coverage,K);if($<0)continue;switch(w.posFormat){case 1:var W=w.pairSets[$];for(var H=0;H<W.length;H++){var z=W[H];if(z.secondGlyph===Y)return z.value1&&z.value1.xAdvance||0}break;case 2:var U=this.getGlyphClass(w.classDef1,K),V=this.getGlyphClass(w.classDef2,Y),A=w.classRecords[U][V];return A.value1&&A.value1.xAdvance||0}}}return 0};l5.prototype.getKerningTables=function(J,K){if(this.font.tables.gpos)return this.getLookupTables(J,K,"kern",2)};function n0(J){m5.call(this,J,"gsub")}function TQ(J,K){var Y=J.length;if(Y!==K.length)return!1;for(var X=0;X<Y;X++)if(J[X]!==K[X])return!1;return!0}function U4(J,K,Y){var X=J.subtables;for(var Z=0;Z<X.length;Z++){var Q=X[Z];if(Q.substFormat===K)return Q}if(Y)return X.push(Y),Y;return}n0.prototype=m5.prototype;n0.prototype.createDefaultTable=function(){return{version:1,scripts:[{tag:"DFLT",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}};n0.prototype.getSingle=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,1);for(var Q=0;Q<Z.length;Q++){var w=Z[Q].subtables;for(var $=0;$<w.length;$++){var W=w[$],H=this.expandCoverage(W.coverage),z=void 0;if(W.substFormat===1){var U=W.deltaGlyphId;for(z=0;z<H.length;z++){var V=H[z];X.push({sub:V,by:V+U})}}else{var A=W.substitute;for(z=0;z<H.length;z++)X.push({sub:H[z],by:A[z]})}}}return X};n0.prototype.getMultiple=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,2);for(var Q=0;Q<Z.length;Q++){var w=Z[Q].subtables;for(var $=0;$<w.length;$++){var W=w[$],H=this.expandCoverage(W.coverage),z=void 0;for(z=0;z<H.length;z++){var U=H[z],V=W.sequences[z];X.push({sub:U,by:V})}}}return X};n0.prototype.getAlternates=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,3);for(var Q=0;Q<Z.length;Q++){var w=Z[Q].subtables;for(var $=0;$<w.length;$++){var W=w[$],H=this.expandCoverage(W.coverage),z=W.alternateSets;for(var U=0;U<H.length;U++)X.push({sub:H[U],by:z[U]})}}return X};n0.prototype.getLigatures=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,4);for(var Q=0;Q<Z.length;Q++){var w=Z[Q].subtables;for(var $=0;$<w.length;$++){var W=w[$],H=this.expandCoverage(W.coverage),z=W.ligatureSets;for(var U=0;U<H.length;U++){var V=H[U],A=z[U];for(var L=0;L<A.length;L++){var B=A[L];X.push({sub:[V].concat(B.components),by:B.ligGlyph})}}}}return X};n0.prototype.addSingle=function(J,K,Y,X){var Z=this.getLookupTables(Y,X,J,1,!0)[0],Q=U4(Z,2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});z0.assert(Q.coverage.format===1,"Single: unable to modify coverage table format "+Q.coverage.format);var w=K.sub,$=this.binSearch(Q.coverage.glyphs,w);if($<0)$=-1-$,Q.coverage.glyphs.splice($,0,w),Q.substitute.splice($,0,0);Q.substitute[$]=K.by};n0.prototype.addMultiple=function(J,K,Y,X){z0.assert(K.by instanceof Array&&K.by.length>1,'Multiple: "by" must be an array of two or more ids');var Z=this.getLookupTables(Y,X,J,2,!0)[0],Q=U4(Z,1,{substFormat:1,coverage:{format:1,glyphs:[]},sequences:[]});z0.assert(Q.coverage.format===1,"Multiple: unable to modify coverage table format "+Q.coverage.format);var w=K.sub,$=this.binSearch(Q.coverage.glyphs,w);if($<0)$=-1-$,Q.coverage.glyphs.splice($,0,w),Q.sequences.splice($,0,0);Q.sequences[$]=K.by};n0.prototype.addAlternate=function(J,K,Y,X){var Z=this.getLookupTables(Y,X,J,3,!0)[0],Q=U4(Z,1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});z0.assert(Q.coverage.format===1,"Alternate: unable to modify coverage table format "+Q.coverage.format);var w=K.sub,$=this.binSearch(Q.coverage.glyphs,w);if($<0)$=-1-$,Q.coverage.glyphs.splice($,0,w),Q.alternateSets.splice($,0,0);Q.alternateSets[$]=K.by};n0.prototype.addLigature=function(J,K,Y,X){var Z=this.getLookupTables(Y,X,J,4,!0)[0],Q=Z.subtables[0];if(!Q)Q={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},Z.subtables[0]=Q;z0.assert(Q.coverage.format===1,"Ligature: unable to modify coverage table format "+Q.coverage.format);var w=K.sub[0],$=K.sub.slice(1),W={ligGlyph:K.by,components:$},H=this.binSearch(Q.coverage.glyphs,w);if(H>=0){var z=Q.ligatureSets[H];for(var U=0;U<z.length;U++)if(TQ(z[U].components,$))return;z.push(W)}else H=-1-H,Q.coverage.glyphs.splice(H,0,w),Q.ligatureSets.splice(H,0,[W])};n0.prototype.getFeature=function(J,K,Y){if(/ss\d\d/.test(J))return this.getSingle(J,K,Y);switch(J){case"aalt":case"salt":return this.getSingle(J,K,Y).concat(this.getAlternates(J,K,Y));case"dlig":case"liga":case"rlig":return this.getLigatures(J,K,Y);case"ccmp":return this.getMultiple(J,K,Y).concat(this.getLigatures(J,K,Y));case"stch":return this.getMultiple(J,K,Y)}return};n0.prototype.add=function(J,K,Y,X){if(/ss\d\d/.test(J))return this.addSingle(J,K,Y,X);switch(J){case"aalt":case"salt":if(typeof K.by==="number")return this.addSingle(J,K,Y,X);return this.addAlternate(J,K,Y,X);case"dlig":case"liga":case"rlig":return this.addLigature(J,K,Y,X);case"ccmp":if(K.by instanceof Array)return this.addMultiple(J,K,Y,X);return this.addLigature(J,K,Y,X)}return};function k5(J,K){if(!J)throw K}function XJ(J,K){return J.getUint8(K)}function D8(J,K){return J.getUint16(K,!1)}function CQ(J,K){return J.getInt16(K,!1)}function V4(J,K){return J.getUint32(K,!1)}function xJ(J,K){var Y=J.getInt16(K,!1),X=J.getUint16(K+2,!1);return Y+X/65535}function PQ(J,K){var Y="";for(var X=K;X<K+4;X+=1)Y+=String.fromCharCode(J.getInt8(X));return Y}function SQ(J,K,Y){var X=0;for(var Z=0;Z<Y;Z+=1)X<<=8,X+=J.getUint8(K+Z);return X}function vQ(J,K,Y){var X=[];for(var Z=K;Z<Y;Z+=1)X.push(J.getUint8(Z));return X}function yQ(J){var K="";for(var Y=0;Y<J.length;Y+=1)K+=String.fromCharCode(J[Y]);return K}var hQ={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function v(J,K){this.data=J,this.offset=K,this.relativeOffset=0}v.prototype.parseByte=function(){var J=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,J};v.prototype.parseChar=function(){var J=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,J};v.prototype.parseCard8=v.prototype.parseByte;v.prototype.parseUShort=function(){var J=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,J};v.prototype.parseCard16=v.prototype.parseUShort;v.prototype.parseSID=v.prototype.parseUShort;v.prototype.parseOffset16=v.prototype.parseUShort;v.prototype.parseShort=function(){var J=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,J};v.prototype.parseF2Dot14=function(){var J=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,J};v.prototype.parseULong=function(){var J=V4(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,J};v.prototype.parseOffset32=v.prototype.parseULong;v.prototype.parseFixed=function(){var J=xJ(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,J};v.prototype.parseString=function(J){var K=this.data,Y=this.offset+this.relativeOffset,X="";this.relativeOffset+=J;for(var Z=0;Z<J;Z++)X+=String.fromCharCode(K.getUint8(Y+Z));return X};v.prototype.parseTag=function(){return this.parseString(4)};v.prototype.parseLongDateTime=function(){var J=V4(this.data,this.offset+this.relativeOffset+4);return J-=2082844800,this.relativeOffset+=8,J};v.prototype.parseVersion=function(J){var K=D8(this.data,this.offset+this.relativeOffset),Y=D8(this.data,this.offset+this.relativeOffset+2);if(this.relativeOffset+=4,J===void 0)J=4096;return K+Y/J/10};v.prototype.skip=function(J,K){if(K===void 0)K=1;this.relativeOffset+=hQ[J]*K};v.prototype.parseULongList=function(J){if(J===void 0)J=this.parseULong();var K=Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getUint32(X),X+=4;return this.relativeOffset+=J*4,K};v.prototype.parseOffset16List=v.prototype.parseUShortList=function(J){if(J===void 0)J=this.parseUShort();var K=Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getUint16(X),X+=2;return this.relativeOffset+=J*2,K};v.prototype.parseShortList=function(J){var K=Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getInt16(X),X+=2;return this.relativeOffset+=J*2,K};v.prototype.parseByteList=function(J){var K=Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getUint8(X++);return this.relativeOffset+=J,K};v.prototype.parseList=function(J,K){if(!K)K=J,J=this.parseUShort();var Y=Array(J);for(var X=0;X<J;X++)Y[X]=K.call(this);return Y};v.prototype.parseList32=function(J,K){if(!K)K=J,J=this.parseULong();var Y=Array(J);for(var X=0;X<J;X++)Y[X]=K.call(this);return Y};v.prototype.parseRecordList=function(J,K){if(!K)K=J,J=this.parseUShort();var Y=Array(J),X=Object.keys(K);for(var Z=0;Z<J;Z++){var Q={};for(var w=0;w<X.length;w++){var $=X[w],W=K[$];Q[$]=W.call(this)}Y[Z]=Q}return Y};v.prototype.parseRecordList32=function(J,K){if(!K)K=J,J=this.parseULong();var Y=Array(J),X=Object.keys(K);for(var Z=0;Z<J;Z++){var Q={};for(var w=0;w<X.length;w++){var $=X[w],W=K[$];Q[$]=W.call(this)}Y[Z]=Q}return Y};v.prototype.parseStruct=function(J){if(typeof J==="function")return J.call(this);else{var K=Object.keys(J),Y={};for(var X=0;X<K.length;X++){var Z=K[X],Q=J[Z];Y[Z]=Q.call(this)}return Y}};v.prototype.parseValueRecord=function(J){if(J===void 0)J=this.parseUShort();if(J===0)return;var K={};if(J&1)K.xPlacement=this.parseShort();if(J&2)K.yPlacement=this.parseShort();if(J&4)K.xAdvance=this.parseShort();if(J&8)K.yAdvance=this.parseShort();if(J&16)K.xPlaDevice=void 0,this.parseShort();if(J&32)K.yPlaDevice=void 0,this.parseShort();if(J&64)K.xAdvDevice=void 0,this.parseShort();if(J&128)K.yAdvDevice=void 0,this.parseShort();return K};v.prototype.parseValueRecordList=function(){var J=this.parseUShort(),K=this.parseUShort(),Y=Array(K);for(var X=0;X<K;X++)Y[X]=this.parseValueRecord(J);return Y};v.prototype.parsePointer=function(J){var K=this.parseOffset16();if(K>0)return new v(this.data,this.offset+K).parseStruct(J);return};v.prototype.parsePointer32=function(J){var K=this.parseOffset32();if(K>0)return new v(this.data,this.offset+K).parseStruct(J);return};v.prototype.parseListOfLists=function(J){var K=this.parseOffset16List(),Y=K.length,X=this.relativeOffset,Z=Array(Y);for(var Q=0;Q<Y;Q++){var w=K[Q];if(w===0){Z[Q]=void 0;continue}if(this.relativeOffset=w,J){var $=this.parseOffset16List(),W=Array($.length);for(var H=0;H<$.length;H++)this.relativeOffset=w+$[H],W[H]=J.call(this);Z[Q]=W}else Z[Q]=this.parseUShortList()}return this.relativeOffset=X,Z};v.prototype.parseCoverage=function(){var J=this.offset+this.relativeOffset,K=this.parseUShort(),Y=this.parseUShort();if(K===1)return{format:1,glyphs:this.parseUShortList(Y)};else if(K===2){var X=Array(Y);for(var Z=0;Z<Y;Z++)X[Z]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:X}}throw Error("0x"+J.toString(16)+": Coverage format must be 1 or 2.")};v.prototype.parseClassDef=function(){var J=this.offset+this.relativeOffset,K=this.parseUShort();if(K===1)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};else if(K===2)return{format:2,ranges:this.parseRecordList({start:v.uShort,end:v.uShort,classId:v.uShort})};throw Error("0x"+J.toString(16)+": ClassDef format must be 1 or 2.")};v.list=function(J,K){return function(){return this.parseList(J,K)}};v.list32=function(J,K){return function(){return this.parseList32(J,K)}};v.recordList=function(J,K){return function(){return this.parseRecordList(J,K)}};v.recordList32=function(J,K){return function(){return this.parseRecordList32(J,K)}};v.pointer=function(J){return function(){return this.parsePointer(J)}};v.pointer32=function(J){return function(){return this.parsePointer32(J)}};v.tag=v.prototype.parseTag;v.byte=v.prototype.parseByte;v.uShort=v.offset16=v.prototype.parseUShort;v.uShortList=v.prototype.parseUShortList;v.uLong=v.offset32=v.prototype.parseULong;v.uLongList=v.prototype.parseULongList;v.struct=v.prototype.parseStruct;v.coverage=v.prototype.parseCoverage;v.classDef=v.prototype.parseClassDef;var ZJ={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(ZJ),langSysRecords:v.recordList({tag:v.tag,langSys:v.pointer(ZJ)})})}))||[]};v.prototype.parseFeatureList=function(){return this.parsePointer(v.recordList({tag:v.tag,feature:v.pointer({featureParams:v.offset16,lookupListIndexes:v.uShortList})}))||[]};v.prototype.parseLookupList=function(J){return this.parsePointer(v.list(v.pointer(function(){var K=this.parseUShort();z0.argument(1<=K&&K<=9,"GPOS/GSUB lookup type "+K+" unknown.");var Y=this.parseUShort(),X=Y&16;return{lookupType:K,lookupFlag:Y,subtables:this.parseList(v.pointer(J[K])),markFilteringSet:X?this.parseUShort():void 0}})))||[]};v.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var J=this.parseUShort(),K=this.parseUShort();z0.argument(J===1&&K<1,"GPOS/GSUB feature variations table unknown.");var Y=this.parseRecordList32({conditionSetOffset:v.offset32,featureTableSubstitutionOffset:v.offset32});return Y})||[]};var n={getByte:XJ,getCard8:XJ,getUShort:D8,getCard16:D8,getShort:CQ,getULong:V4,getFixed:xJ,getTag:PQ,getOffset:SQ,getBytes:vQ,bytesToString:yQ,Parser:v};function QJ(J,K,Y,X,Z){var Q;if((K&X)>0){if(Q=J.parseByte(),(K&Z)===0)Q=-Q;Q=Y+Q}else if((K&Z)>0)Q=Y;else Q=Y+J.parseShort();return Q}function bJ(J,K,Y){var X=new n.Parser(K,Y);J.numberOfContours=X.parseShort(),J._xMin=X.parseShort(),J._yMin=X.parseShort(),J._xMax=X.parseShort(),J._yMax=X.parseShort();var Z,Q;if(J.numberOfContours>0){var w=J.endPointIndices=[];for(var $=0;$<J.numberOfContours;$+=1)w.push(X.parseUShort());J.instructionLength=X.parseUShort(),J.instructions=[];for(var W=0;W<J.instructionLength;W+=1)J.instructions.push(X.parseByte());var H=w[w.length-1]+1;Z=[];for(var z=0;z<H;z+=1)if(Q=X.parseByte(),Z.push(Q),(Q&8)>0){var U=X.parseByte();for(var V=0;V<U;V+=1)Z.push(Q),z+=1}if(z0.argument(Z.length===H,"Bad flags."),w.length>0){var A=[],L;if(H>0){for(var B=0;B<H;B+=1)Q=Z[B],L={},L.onCurve=!!(Q&1),L.lastPointOfContour=w.indexOf(B)>=0,A.push(L);var M=0;for(var O=0;O<H;O+=1)Q=Z[O],L=A[O],L.x=QJ(X,Q,M,2,16),M=L.x;var N=0;for(var E=0;E<H;E+=1)Q=Z[E],L=A[E],L.y=QJ(X,Q,N,4,32),N=L.y}J.points=A}else J.points=[]}else if(J.numberOfContours===0)J.points=[];else{J.isComposite=!0,J.points=[],J.components=[];var D=!0;while(D){Z=X.parseUShort();var F={glyphIndex:X.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};if((Z&1)>0)if((Z&2)>0)F.dx=X.parseShort(),F.dy=X.parseShort();else F.matchedPoints=[X.parseUShort(),X.parseUShort()];else if((Z&2)>0)F.dx=X.parseChar(),F.dy=X.parseChar();else F.matchedPoints=[X.parseByte(),X.parseByte()];if((Z&8)>0)F.xScale=F.yScale=X.parseF2Dot14();else if((Z&64)>0)F.xScale=X.parseF2Dot14(),F.yScale=X.parseF2Dot14();else if((Z&128)>0)F.xScale=X.parseF2Dot14(),F.scale01=X.parseF2Dot14(),F.scale10=X.parseF2Dot14(),F.yScale=X.parseF2Dot14();J.components.push(F),D=!!(Z&32)}if(Z&256){J.instructionLength=X.parseUShort(),J.instructions=[];for(var j=0;j<J.instructionLength;j+=1)J.instructions.push(X.parseByte())}}}function K4(J,K){var Y=[];for(var X=0;X<J.length;X+=1){var Z=J[X],Q={x:K.xScale*Z.x+K.scale01*Z.y+K.dx,y:K.scale10*Z.x+K.yScale*Z.y+K.dy,onCurve:Z.onCurve,lastPointOfContour:Z.lastPointOfContour};Y.push(Q)}return Y}function kQ(J){var K=[],Y=[];for(var X=0;X<J.length;X+=1){var Z=J[X];if(Y.push(Z),Z.lastPointOfContour)K.push(Y),Y=[]}return z0.argument(Y.length===0,"There are still points left in the current contour."),K}function fJ(J){var K=new f0;if(!J)return K;var Y=kQ(J);for(var X=0;X<Y.length;++X){var Z=Y[X],Q=null,w=Z[Z.length-1],$=Z[0];if(w.onCurve)K.moveTo(w.x,w.y);else if($.onCurve)K.moveTo($.x,$.y);else{var W={x:(w.x+$.x)*0.5,y:(w.y+$.y)*0.5};K.moveTo(W.x,W.y)}for(var H=0;H<Z.length;++H)if(Q=w,w=$,$=Z[(H+1)%Z.length],w.onCurve)K.lineTo(w.x,w.y);else{var z=Q,U=$;if(!Q.onCurve)z={x:(w.x+Q.x)*0.5,y:(w.y+Q.y)*0.5};if(!$.onCurve)U={x:(w.x+$.x)*0.5,y:(w.y+$.y)*0.5};K.quadraticCurveTo(w.x,w.y,U.x,U.y)}K.closePath()}return K}function mJ(J,K){if(K.isComposite)for(var Y=0;Y<K.components.length;Y+=1){var X=K.components[Y],Z=J.get(X.glyphIndex);if(Z.getPath(),Z.points){var Q=void 0;if(X.matchedPoints===void 0)Q=K4(Z.points,X);else{if(X.matchedPoints[0]>K.points.length-1||X.matchedPoints[1]>Z.points.length-1)throw Error("Matched points out of range in "+K.name);var w=K.points[X.matchedPoints[0]],$=Z.points[X.matchedPoints[1]],W={xScale:X.xScale,scale01:X.scale01,scale10:X.scale10,yScale:X.yScale,dx:0,dy:0};$=K4([$],W)[0],W.dx=w.x-$.x,W.dy=w.y-$.y,Q=K4(Z.points,W)}K.points=K.points.concat(Q)}}return fJ(K.points)}function gQ(J,K,Y,X){var Z=new _1.GlyphSet(X);for(var Q=0;Q<Y.length-1;Q+=1){var w=Y[Q],$=Y[Q+1];if(w!==$)Z.push(Q,_1.ttfGlyphLoader(X,Q,bJ,J,K+w,mJ));else Z.push(Q,_1.glyphLoader(X,Q))}return Z}function xQ(J,K,Y,X){var Z=new _1.GlyphSet(X);return X._push=function(Q){var w=Y[Q],$=Y[Q+1];if(w!==$)Z.push(Q,_1.ttfGlyphLoader(X,Q,bJ,J,K+w,mJ));else Z.push(Q,_1.glyphLoader(X,Q))},Z}function bQ(J,K,Y,X,Z){if(Z.lowMemory)return xQ(J,K,Y,X);else return gQ(J,K,Y,X)}var lJ={getPath:fJ,parse:bQ},cJ,Q5,dJ,$4;function uJ(J){this.font=J,this.getCommands=function(K){return lJ.getPath(K).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function fQ(J){return J}function pJ(J){return Math.sign(J)*Math.round(Math.abs(J))}function mQ(J){return Math.sign(J)*Math.round(Math.abs(J*2))/2}function lQ(J){return Math.sign(J)*(Math.round(Math.abs(J)+0.5)-0.5)}function cQ(J){return Math.sign(J)*Math.ceil(Math.abs(J))}function dQ(J){return Math.sign(J)*Math.floor(Math.abs(J))}var iJ=function(J){var K=this.srPeriod,Y=this.srPhase,X=this.srThreshold,Z=1;if(J<0)J=-J,Z=-1;if(J+=X-Y,J=Math.trunc(J/K)*K,J+=Y,J<0)return Y*Z;return J*Z},F1={x:1,y:0,axis:"x",distance:function(J,K,Y,X){return(Y?J.xo:J.x)-(X?K.xo:K.x)},interpolate:function(J,K,Y,X){var Z,Q,w,$,W,H,z;if(!X||X===this){if(Z=J.xo-K.xo,Q=J.xo-Y.xo,W=K.x-K.xo,H=Y.x-Y.xo,w=Math.abs(Z),$=Math.abs(Q),z=w+$,z===0){J.x=J.xo+(W+H)/2;return}J.x=J.xo+(W*$+H*w)/z;return}if(Z=X.distance(J,K,!0,!0),Q=X.distance(J,Y,!0,!0),W=X.distance(K,K,!1,!0),H=X.distance(Y,Y,!1,!0),w=Math.abs(Z),$=Math.abs(Q),z=w+$,z===0){F1.setRelative(J,J,(W+H)/2,X,!0);return}F1.setRelative(J,J,(W*$+H*w)/z,X,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(J,K,Y,X,Z){if(!X||X===this){J.x=(Z?K.xo:K.x)+Y;return}var Q=Z?K.xo:K.x,w=Z?K.yo:K.y,$=Q+Y*X.x,W=w+Y*X.y;J.x=$+(J.y-W)/X.normalSlope},slope:0,touch:function(J){J.xTouched=!0},touched:function(J){return J.xTouched},untouch:function(J){J.xTouched=!1}},C1={x:0,y:1,axis:"y",distance:function(J,K,Y,X){return(Y?J.yo:J.y)-(X?K.yo:K.y)},interpolate:function(J,K,Y,X){var Z,Q,w,$,W,H,z;if(!X||X===this){if(Z=J.yo-K.yo,Q=J.yo-Y.yo,W=K.y-K.yo,H=Y.y-Y.yo,w=Math.abs(Z),$=Math.abs(Q),z=w+$,z===0){J.y=J.yo+(W+H)/2;return}J.y=J.yo+(W*$+H*w)/z;return}if(Z=X.distance(J,K,!0,!0),Q=X.distance(J,Y,!0,!0),W=X.distance(K,K,!1,!0),H=X.distance(Y,Y,!1,!0),w=Math.abs(Z),$=Math.abs(Q),z=w+$,z===0){C1.setRelative(J,J,(W+H)/2,X,!0);return}C1.setRelative(J,J,(W*$+H*w)/z,X,!0)},normalSlope:0,setRelative:function(J,K,Y,X,Z){if(!X||X===this){J.y=(Z?K.yo:K.y)+Y;return}var Q=Z?K.xo:K.x,w=Z?K.yo:K.y,$=Q+Y*X.x,W=w+Y*X.y;J.y=W+X.normalSlope*(J.x-$)},slope:Number.POSITIVE_INFINITY,touch:function(J){J.yTouched=!0},touched:function(J){return J.yTouched},untouch:function(J){J.yTouched=!1}};Object.freeze(F1);Object.freeze(C1);function c5(J,K){this.x=J,this.y=K,this.axis=void 0,this.slope=K/J,this.normalSlope=-J/K,Object.freeze(this)}c5.prototype.distance=function(J,K,Y,X){return this.x*F1.distance(J,K,Y,X)+this.y*C1.distance(J,K,Y,X)};c5.prototype.interpolate=function(J,K,Y,X){var Z,Q,w,$,W,H,z;if(w=X.distance(J,K,!0,!0),$=X.distance(J,Y,!0,!0),Z=X.distance(K,K,!1,!0),Q=X.distance(Y,Y,!1,!0),W=Math.abs(w),H=Math.abs($),z=W+H,z===0){this.setRelative(J,J,(Z+Q)/2,X,!0);return}this.setRelative(J,J,(Z*H+Q*W)/z,X,!0)};c5.prototype.setRelative=function(J,K,Y,X,Z){X=X||this;var Q=Z?K.xo:K.x,w=Z?K.yo:K.y,$=Q+Y*X.x,W=w+Y*X.y,H=X.normalSlope,z=this.slope,U=J.x,V=J.y;J.x=(z*U-H*$+W-V)/(z-H),J.y=z*(J.x-U)+V};c5.prototype.touch=function(J){J.xTouched=!0,J.yTouched=!0};function d5(J,K){var Y=Math.sqrt(J*J+K*K);if(J/=Y,K/=Y,J===1&&K===0)return F1;else if(J===0&&K===1)return C1;else return new c5(J,K)}function P1(J,K,Y,X){this.x=this.xo=Math.round(J*64)/64,this.y=this.yo=Math.round(K*64)/64,this.lastPointOfContour=Y,this.onCurve=X,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}P1.prototype.nextTouched=function(J){var K=this.nextPointOnContour;while(!J.touched(K)&&K!==this)K=K.nextPointOnContour;return K};P1.prototype.prevTouched=function(J){var K=this.prevPointOnContour;while(!J.touched(K)&&K!==this)K=K.prevPointOnContour;return K};var b5=Object.freeze(new P1(0,0)),uQ={cvCutIn:1.0625,deltaBase:9,deltaShift:0.125,loop:1,minDis:1,autoFlip:!0};function u1(J,K){switch(this.env=J,this.stack=[],this.prog=K,J){case"glyf":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case"prep":this.fv=this.pv=this.dpv=F1,this.round=pJ}}uJ.prototype.exec=function(J,K){if(typeof K!=="number")throw Error("Point size is not a number!");if(this._errorState>2)return;var Y=this.font,X=this._prepState;if(!X||X.ppem!==K){var Z=this._fpgmState;if(!Z){if(u1.prototype=uQ,Z=this._fpgmState=new u1("fpgm",Y.tables.fpgm),Z.funcs=[],Z.font=Y,r3.DEBUG)console.log("---EXEC FPGM---"),Z.step=-1;try{Q5(Z)}catch(H){console.log("Hinting error in FPGM:"+H),this._errorState=3;return}}u1.prototype=Z,X=this._prepState=new u1("prep",Y.tables.prep),X.ppem=K;var Q=Y.tables.cvt;if(Q){var w=X.cvt=Array(Q.length),$=K/Y.unitsPerEm;for(var W=0;W<Q.length;W++)w[W]=Q[W]*$}else X.cvt=[];if(r3.DEBUG)console.log("---EXEC PREP---"),X.step=-1;try{Q5(X)}catch(H){if(this._errorState<2)console.log("Hinting error in PREP:"+H);this._errorState=2}}if(this._errorState>1)return;try{return dJ(J,X)}catch(H){if(this._errorState<1)console.log("Hinting error:"+H),console.log("Note: further hinting errors are silenced");this._errorState=1;return}};dJ=function(J,K){var Y=K.ppem/K.font.unitsPerEm,X=Y,Z=J.components,Q,w,$;if(u1.prototype=K,!Z){if($=new u1("glyf",J.instructions),r3.DEBUG)console.log("---EXEC GLYPH---"),$.step=-1;$4(J,$,Y,X),w=$.gZone}else{var W=K.font;w=[],Q=[];for(var H=0;H<Z.length;H++){var z=Z[H],U=W.glyphs.get(z.glyphIndex);if($=new u1("glyf",U.instructions),r3.DEBUG)console.log("---EXEC COMP "+H+"---"),$.step=-1;$4(U,$,Y,X);var V=Math.round(z.dx*Y),A=Math.round(z.dy*X),L=$.gZone,B=$.contours;for(var M=0;M<L.length;M++){var O=L[M];O.xTouched=O.yTouched=!1,O.xo=O.x=O.x+V,O.yo=O.y=O.y+A}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&&!$.inhibitGridFit){if($=new u1("glyf",J.instructions),$.gZone=$.z0=$.z1=$.z2=w,$.contours=Q,w.push(new P1(0,0),new P1(Math.round(J.advanceWidth*Y),0)),r3.DEBUG)console.log("---EXEC COMPOSITE---"),$.step=-1;Q5($),w.length-=2}}return w};$4=function(J,K,Y,X){var Z=J.points||[],Q=Z.length,w=K.gZone=K.z0=K.z1=K.z2=[],$=K.contours=[],W;for(var H=0;H<Q;H++)W=Z[H],w[H]=new P1(W.x*Y,W.y*X,W.lastPointOfContour,W.onCurve);var z,U;for(var V=0;V<Q;V++){if(W=w[V],!z)z=W,$.push(V);if(W.lastPointOfContour)W.nextPointOnContour=z,z.prevPointOnContour=W,z=void 0;else U=w[V+1],W.nextPointOnContour=U,U.prevPointOnContour=W}if(K.inhibitGridFit)return;if(r3.DEBUG){console.log("PROCESSING GLYPH",K.stack);for(var A=0;A<Q;A++)console.log(A,w[A].x,w[A].y)}if(w.push(new P1(0,0),new P1(Math.round(J.advanceWidth*Y),0)),Q5(K),w.length-=2,r3.DEBUG){console.log("FINISHED GLYPH",K.stack);for(var L=0;L<Q;L++)console.log(L,w[L].x,w[L].y)}};Q5=function(J){var K=J.prog;if(!K)return;var Y=K.length,X;for(J.ip=0;J.ip<Y;J.ip++){if(r3.DEBUG)J.step++;if(X=cJ[K[J.ip]],!X)throw Error("unknown instruction: 0x"+Number(K[J.ip]).toString(16));X(J)}};function I8(J){var K=J.tZone=Array(J.gZone.length);for(var Y=0;Y<K.length;Y++)K[Y]=new P1(0,0)}function rJ(J,K){var{prog:Y,ip:X}=J,Z=1,Q;do if(Q=Y[++X],Q===88)Z++;else if(Q===89)Z--;else if(Q===64)X+=Y[X+1]+1;else if(Q===65)X+=2*Y[X+1]+1;else if(Q>=176&&Q<=183)X+=Q-176+1;else if(Q>=184&&Q<=191)X+=(Q-184+1)*2;else if(K&&Z===1&&Q===27)break;while(Z>0);J.ip=X}function wJ(J,K){if(r3.DEBUG)console.log(K.step,"SVTCA["+J.axis+"]");K.fv=K.pv=K.dpv=J}function WJ(J,K){if(r3.DEBUG)console.log(K.step,"SPVTCA["+J.axis+"]");K.pv=K.dpv=J}function $J(J,K){if(r3.DEBUG)console.log(K.step,"SFVTCA["+J.axis+"]");K.fv=J}function HJ(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z2[X],w=K.z1[Z];if(r3.DEBUG)console.log("SPVTL["+J+"]",X,Z);var $,W;if(!J)$=w.x-Q.x,W=w.y-Q.y;else $=Q.y-w.y,W=w.x-Q.x;K.pv=K.dpv=d5($,W)}function zJ(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z2[X],w=K.z1[Z];if(r3.DEBUG)console.log("SFVTL["+J+"]",X,Z);var $,W;if(!J)$=w.x-Q.x,W=w.y-Q.y;else $=Q.y-w.y,W=w.x-Q.x;K.fv=d5($,W)}function pQ(J){var K=J.stack,Y=K.pop(),X=K.pop();if(r3.DEBUG)console.log(J.step,"SPVFS[]",Y,X);J.pv=J.dpv=d5(X,Y)}function iQ(J){var K=J.stack,Y=K.pop(),X=K.pop();if(r3.DEBUG)console.log(J.step,"SPVFS[]",Y,X);J.fv=d5(X,Y)}function rQ(J){var{stack:K,pv:Y}=J;if(r3.DEBUG)console.log(J.step,"GPV[]");K.push(Y.x*16384),K.push(Y.y*16384)}function nQ(J){var{stack:K,fv:Y}=J;if(r3.DEBUG)console.log(J.step,"GFV[]");K.push(Y.x*16384),K.push(Y.y*16384)}function oQ(J){if(J.fv=J.pv,r3.DEBUG)console.log(J.step,"SFVTPV[]")}function sQ(J){var K=J.stack,Y=K.pop(),X=K.pop(),Z=K.pop(),Q=K.pop(),w=K.pop(),$=J.z0,W=J.z1,H=$[Y],z=$[X],U=W[Z],V=W[Q],A=J.z2[w];if(r3.DEBUG)console.log("ISECT[], ",Y,X,Z,Q,w);var{x:L,y:B}=H,M=z.x,O=z.y,N=U.x,E=U.y,D=V.x,F=V.y,j=(L-M)*(E-F)-(B-O)*(N-D),T=L*O-B*M,I=N*F-E*D;A.x=(T*(N-D)-I*(L-M))/j,A.y=(T*(E-F)-I*(B-O))/j}function aQ(J){if(J.rp0=J.stack.pop(),r3.DEBUG)console.log(J.step,"SRP0[]",J.rp0)}function tQ(J){if(J.rp1=J.stack.pop(),r3.DEBUG)console.log(J.step,"SRP1[]",J.rp1)}function eQ(J){if(J.rp2=J.stack.pop(),r3.DEBUG)console.log(J.step,"SRP2[]",J.rp2)}function Jw(J){var K=J.stack.pop();if(r3.DEBUG)console.log(J.step,"SZP0[]",K);switch(J.zp0=K,K){case 0:if(!J.tZone)I8(J);J.z0=J.tZone;break;case 1:J.z0=J.gZone;break;default:throw Error("Invalid zone pointer")}}function Kw(J){var K=J.stack.pop();if(r3.DEBUG)console.log(J.step,"SZP1[]",K);switch(J.zp1=K,K){case 0:if(!J.tZone)I8(J);J.z1=J.tZone;break;case 1:J.z1=J.gZone;break;default:throw Error("Invalid zone pointer")}}function Yw(J){var K=J.stack.pop();if(r3.DEBUG)console.log(J.step,"SZP2[]",K);switch(J.zp2=K,K){case 0:if(!J.tZone)I8(J);J.z2=J.tZone;break;case 1:J.z2=J.gZone;break;default:throw Error("Invalid zone pointer")}}function Xw(J){var K=J.stack.pop();if(r3.DEBUG)console.log(J.step,"SZPS[]",K);switch(J.zp0=J.zp1=J.zp2=K,K){case 0:if(!J.tZone)I8(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 Zw(J){if(J.loop=J.stack.pop(),r3.DEBUG)console.log(J.step,"SLOOP[]",J.loop)}function Qw(J){if(r3.DEBUG)console.log(J.step,"RTG[]");J.round=pJ}function ww(J){if(r3.DEBUG)console.log(J.step,"RTHG[]");J.round=lQ}function Ww(J){var K=J.stack.pop();if(r3.DEBUG)console.log(J.step,"SMD[]",K);J.minDis=K/64}function $w(J){if(r3.DEBUG)console.log(J.step,"ELSE[]");rJ(J,!1)}function Hw(J){var K=J.stack.pop();if(r3.DEBUG)console.log(J.step,"JMPR[]",K);J.ip+=K-1}function zw(J){var K=J.stack.pop();if(r3.DEBUG)console.log(J.step,"SCVTCI[]",K);J.cvCutIn=K/64}function Uw(J){var K=J.stack;if(r3.DEBUG)console.log(J.step,"DUP[]");K.push(K[K.length-1])}function Y4(J){if(r3.DEBUG)console.log(J.step,"POP[]");J.stack.pop()}function Vw(J){if(r3.DEBUG)console.log(J.step,"CLEAR[]");J.stack.length=0}function Aw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(r3.DEBUG)console.log(J.step,"SWAP[]");K.push(Y),K.push(X)}function Bw(J){var K=J.stack;if(r3.DEBUG)console.log(J.step,"DEPTH[]");K.push(K.length)}function Gw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(r3.DEBUG)console.log(J.step,"LOOPCALL[]",Y,X);var{ip:Z,prog:Q}=J;J.prog=J.funcs[Y];for(var w=0;w<X;w++)if(Q5(J),r3.DEBUG)console.log(++J.step,w+1<X?"next loopcall":"done loopcall",w);J.ip=Z,J.prog=Q}function Mw(J){var K=J.stack.pop();if(r3.DEBUG)console.log(J.step,"CALL[]",K);var{ip:Y,prog:X}=J;if(J.prog=J.funcs[K],Q5(J),J.ip=Y,J.prog=X,r3.DEBUG)console.log(++J.step,"returning from",K)}function Lw(J){var K=J.stack,Y=K.pop();if(r3.DEBUG)console.log(J.step,"CINDEX[]",Y);K.push(K[K.length-Y])}function qw(J){var K=J.stack,Y=K.pop();if(r3.DEBUG)console.log(J.step,"MINDEX[]",Y);K.push(K.splice(K.length-Y,1)[0])}function Ow(J){if(J.env!=="fpgm")throw Error("FDEF not allowed here");var{stack:K,prog:Y,ip:X}=J,Z=K.pop(),Q=X;if(r3.DEBUG)console.log(J.step,"FDEF[]",Z);while(Y[++X]!==45);J.ip=X,J.funcs[Z]=Y.slice(Q+1,X)}function UJ(J,K){var Y=K.stack.pop(),X=K.z0[Y],Z=K.fv,Q=K.pv;if(r3.DEBUG)console.log(K.step,"MDAP["+J+"]",Y);var w=Q.distance(X,b5);if(J)w=K.round(w);Z.setRelative(X,b5,w,Q),Z.touch(X),K.rp0=K.rp1=Y}function VJ(J,K){var Y=K.z2,X=Y.length-2,Z,Q,w;if(r3.DEBUG)console.log(K.step,"IUP["+J.axis+"]");for(var $=0;$<X;$++){if(Z=Y[$],J.touched(Z))continue;if(Q=Z.prevTouched(J),Q===Z)continue;if(w=Z.nextTouched(J),Q===w)J.setRelative(Z,Z,J.distance(Q,Q,!1,!0),J,!0);J.interpolate(Z,Q,w,J)}}function AJ(J,K){var Y=K.stack,X=J?K.rp1:K.rp2,Z=(J?K.z0:K.z1)[X],Q=K.fv,w=K.pv,$=K.loop,W=K.z2;while($--){var H=Y.pop(),z=W[H],U=w.distance(Z,Z,!1,!0);if(Q.setRelative(z,z,U,w),Q.touch(z),r3.DEBUG)console.log(K.step,(K.loop>1?"loop "+(K.loop-$)+": ":"")+"SHP["+(J?"rp1":"rp2")+"]",H)}K.loop=1}function BJ(J,K){var Y=K.stack,X=J?K.rp1:K.rp2,Z=(J?K.z0:K.z1)[X],Q=K.fv,w=K.pv,$=Y.pop(),W=K.z2[K.contours[$]],H=W;if(r3.DEBUG)console.log(K.step,"SHC["+J+"]",$);var z=w.distance(Z,Z,!1,!0);do{if(H!==Z)Q.setRelative(H,H,z,w);H=H.nextPointOnContour}while(H!==W)}function GJ(J,K){var Y=K.stack,X=J?K.rp1:K.rp2,Z=(J?K.z0:K.z1)[X],Q=K.fv,w=K.pv,$=Y.pop();if(r3.DEBUG)console.log(K.step,"SHZ["+J+"]",$);var W;switch($){case 0:W=K.tZone;break;case 1:W=K.gZone;break;default:throw Error("Invalid zone")}var H,z=w.distance(Z,Z,!1,!0),U=W.length-2;for(var V=0;V<U;V++)H=W[V],Q.setRelative(H,H,z,w)}function Nw(J){var{stack:K,loop:Y,fv:X}=J,Z=K.pop()/64,Q=J.z2;while(Y--){var w=K.pop(),$=Q[w];if(r3.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-Y)+": ":"")+"SHPIX[]",w,Z);X.setRelative($,$,Z),X.touch($)}J.loop=1}function jw(J){var{stack:K,rp1:Y,rp2:X,loop:Z}=J,Q=J.z0[Y],w=J.z1[X],$=J.fv,W=J.dpv,H=J.z2;while(Z--){var z=K.pop(),U=H[z];if(r3.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-Z)+": ":"")+"IP[]",z,Y,"<->",X);$.interpolate(U,Q,w,W),$.touch(U)}J.loop=1}function MJ(J,K){var Y=K.stack,X=Y.pop()/64,Z=Y.pop(),Q=K.z1[Z],w=K.z0[K.rp0],$=K.fv,W=K.pv;if($.setRelative(Q,w,X,W),$.touch(Q),r3.DEBUG)console.log(K.step,"MSIRP["+J+"]",X,Z);if(K.rp1=K.rp0,K.rp2=Z,J)K.rp0=Z}function Ew(J){var{stack:K,rp0:Y}=J,X=J.z0[Y],Z=J.loop,Q=J.fv,w=J.pv,$=J.z1;while(Z--){var W=K.pop(),H=$[W];if(r3.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-Z)+": ":"")+"ALIGNRP[]",W);Q.setRelative(H,X,0,w),Q.touch(H)}J.loop=1}function Fw(J){if(r3.DEBUG)console.log(J.step,"RTDG[]");J.round=mQ}function LJ(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z0[Z],w=K.fv,$=K.pv,W=K.cvt[X];if(r3.DEBUG)console.log(K.step,"MIAP["+J+"]",X,"(",W,")",Z);var H=$.distance(Q,b5);if(J){if(Math.abs(H-W)<K.cvCutIn)H=W;H=K.round(H)}if(w.setRelative(Q,b5,H,$),K.zp0===0)Q.xo=Q.x,Q.yo=Q.y;w.touch(Q),K.rp0=K.rp1=Z}function _w(J){var{prog:K,ip:Y,stack:X}=J,Z=K[++Y];if(r3.DEBUG)console.log(J.step,"NPUSHB[]",Z);for(var Q=0;Q<Z;Q++)X.push(K[++Y]);J.ip=Y}function Dw(J){var{ip:K,prog:Y,stack:X}=J,Z=Y[++K];if(r3.DEBUG)console.log(J.step,"NPUSHW[]",Z);for(var Q=0;Q<Z;Q++){var w=Y[++K]<<8|Y[++K];if(w&32768)w=-((w^65535)+1);X.push(w)}J.ip=K}function Iw(J){var{stack:K,store:Y}=J;if(!Y)Y=J.store=[];var X=K.pop(),Z=K.pop();if(r3.DEBUG)console.log(J.step,"WS",X,Z);Y[Z]=X}function Rw(J){var{stack:K,store:Y}=J,X=K.pop();if(r3.DEBUG)console.log(J.step,"RS",X);var Z=Y&&Y[X]||0;K.push(Z)}function Tw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(r3.DEBUG)console.log(J.step,"WCVTP",Y,X);J.cvt[X]=Y/64}function Cw(J){var K=J.stack,Y=K.pop();if(r3.DEBUG)console.log(J.step,"RCVT",Y);K.push(J.cvt[Y]*64)}function qJ(J,K){var Y=K.stack,X=Y.pop(),Z=K.z2[X];if(r3.DEBUG)console.log(K.step,"GC["+J+"]",X);Y.push(K.dpv.distance(Z,b5,J,!1)*64)}function OJ(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z1[X],w=K.z0[Z],$=K.dpv.distance(w,Q,J,J);if(r3.DEBUG)console.log(K.step,"MD["+J+"]",X,Z,"->",$);K.stack.push(Math.round($*64))}function Pw(J){if(r3.DEBUG)console.log(J.step,"MPPEM[]");J.stack.push(J.ppem)}function Sw(J){if(r3.DEBUG)console.log(J.step,"FLIPON[]");J.autoFlip=!0}function vw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(r3.DEBUG)console.log(J.step,"LT[]",Y,X);K.push(X<Y?1:0)}function yw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(r3.DEBUG)console.log(J.step,"LTEQ[]",Y,X);K.push(X<=Y?1:0)}function hw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(r3.DEBUG)console.log(J.step,"GT[]",Y,X);K.push(X>Y?1:0)}function kw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(r3.DEBUG)console.log(J.step,"GTEQ[]",Y,X);K.push(X>=Y?1:0)}function gw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(r3.DEBUG)console.log(J.step,"EQ[]",Y,X);K.push(Y===X?1:0)}function xw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(r3.DEBUG)console.log(J.step,"NEQ[]",Y,X);K.push(Y!==X?1:0)}function bw(J){var K=J.stack,Y=K.pop();if(r3.DEBUG)console.log(J.step,"ODD[]",Y);K.push(Math.trunc(Y)%2?1:0)}function fw(J){var K=J.stack,Y=K.pop();if(r3.DEBUG)console.log(J.step,"EVEN[]",Y);K.push(Math.trunc(Y)%2?0:1)}function mw(J){var K=J.stack.pop();if(r3.DEBUG)console.log(J.step,"IF[]",K);if(!K){if(rJ(J,!0),r3.DEBUG)console.log(J.step,"EIF[]")}}function lw(J){if(r3.DEBUG)console.log(J.step,"EIF[]")}function cw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(r3.DEBUG)console.log(J.step,"AND[]",Y,X);K.push(Y&&X?1:0)}function dw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(r3.DEBUG)console.log(J.step,"OR[]",Y,X);K.push(Y||X?1:0)}function uw(J){var K=J.stack,Y=K.pop();if(r3.DEBUG)console.log(J.step,"NOT[]",Y);K.push(Y?0:1)}function X4(J,K){var Y=K.stack,X=Y.pop(),Z=K.fv,Q=K.pv,w=K.ppem,$=K.deltaBase+(J-1)*16,W=K.deltaShift,H=K.z0;if(r3.DEBUG)console.log(K.step,"DELTAP["+J+"]",X,Y);for(var z=0;z<X;z++){var U=Y.pop(),V=Y.pop(),A=$+((V&240)>>4);if(A!==w)continue;var L=(V&15)-8;if(L>=0)L++;if(r3.DEBUG)console.log(K.step,"DELTAPFIX",U,"by",L*W);var B=H[U];Z.setRelative(B,B,L*W,Q)}}function pw(J){var K=J.stack,Y=K.pop();if(r3.DEBUG)console.log(J.step,"SDB[]",Y);J.deltaBase=Y}function iw(J){var K=J.stack,Y=K.pop();if(r3.DEBUG)console.log(J.step,"SDS[]",Y);J.deltaShift=Math.pow(0.5,Y)}function rw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(r3.DEBUG)console.log(J.step,"ADD[]",Y,X);K.push(X+Y)}function nw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(r3.DEBUG)console.log(J.step,"SUB[]",Y,X);K.push(X-Y)}function ow(J){var K=J.stack,Y=K.pop(),X=K.pop();if(r3.DEBUG)console.log(J.step,"DIV[]",Y,X);K.push(X*64/Y)}function sw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(r3.DEBUG)console.log(J.step,"MUL[]",Y,X);K.push(X*Y/64)}function aw(J){var K=J.stack,Y=K.pop();if(r3.DEBUG)console.log(J.step,"ABS[]",Y);K.push(Math.abs(Y))}function tw(J){var K=J.stack,Y=K.pop();if(r3.DEBUG)console.log(J.step,"NEG[]",Y);K.push(-Y)}function ew(J){var K=J.stack,Y=K.pop();if(r3.DEBUG)console.log(J.step,"FLOOR[]",Y);K.push(Math.floor(Y/64)*64)}function JW(J){var K=J.stack,Y=K.pop();if(r3.DEBUG)console.log(J.step,"CEILING[]",Y);K.push(Math.ceil(Y/64)*64)}function E8(J,K){var Y=K.stack,X=Y.pop();if(r3.DEBUG)console.log(K.step,"ROUND[]");Y.push(K.round(X/64)*64)}function KW(J){var K=J.stack,Y=K.pop(),X=K.pop();if(r3.DEBUG)console.log(J.step,"WCVTF[]",Y,X);J.cvt[X]=Y*J.ppem/J.font.unitsPerEm}function Z4(J,K){var Y=K.stack,X=Y.pop(),Z=K.ppem,Q=K.deltaBase+(J-1)*16,w=K.deltaShift;if(r3.DEBUG)console.log(K.step,"DELTAC["+J+"]",X,Y);for(var $=0;$<X;$++){var W=Y.pop(),H=Y.pop(),z=Q+((H&240)>>4);if(z!==Z)continue;var U=(H&15)-8;if(U>=0)U++;var V=U*w;if(r3.DEBUG)console.log(K.step,"DELTACFIX",W,"by",V);K.cvt[W]+=V}}function YW(J){var K=J.stack.pop();if(r3.DEBUG)console.log(J.step,"SROUND[]",K);J.round=iJ;var Y;switch(K&192){case 0:Y=0.5;break;case 64:Y=1;break;case 128:Y=2;break;default:throw Error("invalid SROUND value")}switch(J.srPeriod=Y,K&48){case 0:J.srPhase=0;break;case 16:J.srPhase=0.25*Y;break;case 32:J.srPhase=0.5*Y;break;case 48:J.srPhase=0.75*Y;break;default:throw Error("invalid SROUND value")}if(K&=15,K===0)J.srThreshold=0;else J.srThreshold=(K/8-0.5)*Y}function XW(J){var K=J.stack.pop();if(r3.DEBUG)console.log(J.step,"S45ROUND[]",K);J.round=iJ;var Y;switch(K&192){case 0:Y=Math.sqrt(2)/2;break;case 64:Y=Math.sqrt(2);break;case 128:Y=2*Math.sqrt(2);break;default:throw Error("invalid S45ROUND value")}switch(J.srPeriod=Y,K&48){case 0:J.srPhase=0;break;case 16:J.srPhase=0.25*Y;break;case 32:J.srPhase=0.5*Y;break;case 48:J.srPhase=0.75*Y;break;default:throw Error("invalid S45ROUND value")}if(K&=15,K===0)J.srThreshold=0;else J.srThreshold=(K/8-0.5)*Y}function ZW(J){if(r3.DEBUG)console.log(J.step,"ROFF[]");J.round=fQ}function QW(J){if(r3.DEBUG)console.log(J.step,"RUTG[]");J.round=cQ}function wW(J){if(r3.DEBUG)console.log(J.step,"RDTG[]");J.round=dQ}function WW(J){var K=J.stack.pop();if(r3.DEBUG)console.log(J.step,"SCANCTRL[]",K)}function NJ(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z2[X],w=K.z1[Z];if(r3.DEBUG)console.log(K.step,"SDPVTL["+J+"]",X,Z);var $,W;if(!J)$=w.x-Q.x,W=w.y-Q.y;else $=Q.y-w.y,W=w.x-Q.x;K.dpv=d5($,W)}function $W(J){var K=J.stack,Y=K.pop(),X=0;if(r3.DEBUG)console.log(J.step,"GETINFO[]",Y);if(Y&1)X=35;if(Y&32)X|=4096;K.push(X)}function HW(J){var K=J.stack,Y=K.pop(),X=K.pop(),Z=K.pop();if(r3.DEBUG)console.log(J.step,"ROLL[]");K.push(X),K.push(Y),K.push(Z)}function zW(J){var K=J.stack,Y=K.pop(),X=K.pop();if(r3.DEBUG)console.log(J.step,"MAX[]",Y,X);K.push(Math.max(X,Y))}function UW(J){var K=J.stack,Y=K.pop(),X=K.pop();if(r3.DEBUG)console.log(J.step,"MIN[]",Y,X);K.push(Math.min(X,Y))}function VW(J){var K=J.stack.pop();if(r3.DEBUG)console.log(J.step,"SCANTYPE[]",K)}function AW(J){var K=J.stack.pop(),Y=J.stack.pop();if(r3.DEBUG)console.log(J.step,"INSTCTRL[]",K,Y);switch(K){case 1:J.inhibitGridFit=!!Y;return;case 2:J.ignoreCvt=!!Y;return;default:throw Error("invalid INSTCTRL[] selector")}}function m1(J,K){var{stack:Y,prog:X,ip:Z}=K;if(r3.DEBUG)console.log(K.step,"PUSHB["+J+"]");for(var Q=0;Q<J;Q++)Y.push(X[++Z]);K.ip=Z}function l1(J,K){var{ip:Y,prog:X,stack:Z}=K;if(r3.DEBUG)console.log(K.ip,"PUSHW["+J+"]");for(var Q=0;Q<J;Q++){var w=X[++Y]<<8|X[++Y];if(w&32768)w=-((w^65535)+1);Z.push(w)}K.ip=Y}function r(J,K,Y,X,Z,Q){var w=Q.stack,$=J&&w.pop(),W=w.pop(),H=Q.rp0,z=Q.z0[H],U=Q.z1[W],V=Q.minDis,A=Q.fv,L=Q.dpv,B,M,O,N;if(M=B=L.distance(U,z,!0,!0),O=M>=0?1:-1,M=Math.abs(M),J){if(N=Q.cvt[$],X&&Math.abs(M-N)<Q.cvCutIn)M=N}if(Y&&M<V)M=V;if(X)M=Q.round(M);if(A.setRelative(U,z,O*M,L),A.touch(U),r3.DEBUG)console.log(Q.step,(J?"MIRP[":"MDRP[")+(K?"M":"m")+(Y?">":"_")+(X?"R":"_")+(Z===0?"Gr":Z===1?"Bl":Z===2?"Wh":"")+"]",J?$+"("+Q.cvt[$]+","+N+")":"",W,"(d =",B,"->",O*M,")");if(Q.rp1=Q.rp0,Q.rp2=W,K)Q.rp0=W}cJ=[wJ.bind(void 0,C1),wJ.bind(void 0,F1),WJ.bind(void 0,C1),WJ.bind(void 0,F1),$J.bind(void 0,C1),$J.bind(void 0,F1),HJ.bind(void 0,0),HJ.bind(void 0,1),zJ.bind(void 0,0),zJ.bind(void 0,1),pQ,iQ,rQ,nQ,oQ,sQ,aQ,tQ,eQ,Jw,Kw,Yw,Xw,Zw,Qw,ww,Ww,$w,Hw,zw,void 0,void 0,Uw,Y4,Vw,Aw,Bw,Lw,qw,void 0,void 0,void 0,Gw,Mw,Ow,void 0,UJ.bind(void 0,0),UJ.bind(void 0,1),VJ.bind(void 0,C1),VJ.bind(void 0,F1),AJ.bind(void 0,0),AJ.bind(void 0,1),BJ.bind(void 0,0),BJ.bind(void 0,1),GJ.bind(void 0,0),GJ.bind(void 0,1),Nw,jw,MJ.bind(void 0,0),MJ.bind(void 0,1),Ew,Fw,LJ.bind(void 0,0),LJ.bind(void 0,1),_w,Dw,Iw,Rw,Tw,Cw,qJ.bind(void 0,0),qJ.bind(void 0,1),void 0,OJ.bind(void 0,0),OJ.bind(void 0,1),Pw,void 0,Sw,void 0,void 0,vw,yw,hw,kw,gw,xw,bw,fw,mw,lw,cw,dw,uw,X4.bind(void 0,1),pw,iw,rw,nw,ow,sw,aw,tw,ew,JW,E8.bind(void 0,0),E8.bind(void 0,1),E8.bind(void 0,2),E8.bind(void 0,3),void 0,void 0,void 0,void 0,KW,X4.bind(void 0,2),X4.bind(void 0,3),Z4.bind(void 0,1),Z4.bind(void 0,2),Z4.bind(void 0,3),YW,XW,void 0,void 0,ZW,void 0,QW,wW,Y4,Y4,void 0,void 0,void 0,void 0,void 0,WW,NJ.bind(void 0,0),NJ.bind(void 0,1),$W,void 0,HW,zW,UW,VW,AW,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,m1.bind(void 0,1),m1.bind(void 0,2),m1.bind(void 0,3),m1.bind(void 0,4),m1.bind(void 0,5),m1.bind(void 0,6),m1.bind(void 0,7),m1.bind(void 0,8),l1.bind(void 0,1),l1.bind(void 0,2),l1.bind(void 0,3),l1.bind(void 0,4),l1.bind(void 0,5),l1.bind(void 0,6),l1.bind(void 0,7),l1.bind(void 0,8),r.bind(void 0,0,0,0,0,0),r.bind(void 0,0,0,0,0,1),r.bind(void 0,0,0,0,0,2),r.bind(void 0,0,0,0,0,3),r.bind(void 0,0,0,0,1,0),r.bind(void 0,0,0,0,1,1),r.bind(void 0,0,0,0,1,2),r.bind(void 0,0,0,0,1,3),r.bind(void 0,0,0,1,0,0),r.bind(void 0,0,0,1,0,1),r.bind(void 0,0,0,1,0,2),r.bind(void 0,0,0,1,0,3),r.bind(void 0,0,0,1,1,0),r.bind(void 0,0,0,1,1,1),r.bind(void 0,0,0,1,1,2),r.bind(void 0,0,0,1,1,3),r.bind(void 0,0,1,0,0,0),r.bind(void 0,0,1,0,0,1),r.bind(void 0,0,1,0,0,2),r.bind(void 0,0,1,0,0,3),r.bind(void 0,0,1,0,1,0),r.bind(void 0,0,1,0,1,1),r.bind(void 0,0,1,0,1,2),r.bind(void 0,0,1,0,1,3),r.bind(void 0,0,1,1,0,0),r.bind(void 0,0,1,1,0,1),r.bind(void 0,0,1,1,0,2),r.bind(void 0,0,1,1,0,3),r.bind(void 0,0,1,1,1,0),r.bind(void 0,0,1,1,1,1),r.bind(void 0,0,1,1,1,2),r.bind(void 0,0,1,1,1,3),r.bind(void 0,1,0,0,0,0),r.bind(void 0,1,0,0,0,1),r.bind(void 0,1,0,0,0,2),r.bind(void 0,1,0,0,0,3),r.bind(void 0,1,0,0,1,0),r.bind(void 0,1,0,0,1,1),r.bind(void 0,1,0,0,1,2),r.bind(void 0,1,0,0,1,3),r.bind(void 0,1,0,1,0,0),r.bind(void 0,1,0,1,0,1),r.bind(void 0,1,0,1,0,2),r.bind(void 0,1,0,1,0,3),r.bind(void 0,1,0,1,1,0),r.bind(void 0,1,0,1,1,1),r.bind(void 0,1,0,1,1,2),r.bind(void 0,1,0,1,1,3),r.bind(void 0,1,1,0,0,0),r.bind(void 0,1,1,0,0,1),r.bind(void 0,1,1,0,0,2),r.bind(void 0,1,1,0,0,3),r.bind(void 0,1,1,0,1,0),r.bind(void 0,1,1,0,1,1),r.bind(void 0,1,1,0,1,2),r.bind(void 0,1,1,0,1,3),r.bind(void 0,1,1,1,0,0),r.bind(void 0,1,1,1,0,1),r.bind(void 0,1,1,1,0,2),r.bind(void 0,1,1,1,0,3),r.bind(void 0,1,1,1,1,0),r.bind(void 0,1,1,1,1,1),r.bind(void 0,1,1,1,1,2),r.bind(void 0,1,1,1,1,3)];function F5(J){this.char=J,this.state={},this.activeState=null}function A4(J,K,Y){this.contextName=Y,this.startIndex=J,this.endOffset=K}function BW(J,K,Y){this.contextName=J,this.openRange=null,this.ranges=[],this.checkStart=K,this.checkEnd=Y}function z1(J,K){this.context=J,this.index=K,this.length=J.length,this.current=J[K],this.backtrack=J.slice(0,K),this.lookahead=J.slice(K+1)}function R8(J){this.eventId=J,this.subscribers=[]}function GW(J){var K=this,Y=["start","end","next","newToken","contextStart","contextEnd","insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD","updateContextsRanges"];if(Y.forEach(function(Z){Object.defineProperty(K.events,Z,{value:new R8(Z)})}),J)Y.forEach(function(Z){var Q=J[Z];if(typeof Q==="function")K.events[Z].subscribe(Q)});var X=["insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD"];X.forEach(function(Z){K.events[Z].subscribe(K.updateContextsRanges)})}function F0(J){this.tokens=[],this.registeredContexts={},this.contextCheckers=[],this.events={},this.registeredModifiers=[],GW.call(this,J)}F5.prototype.setState=function(J,K){return this.state[J]=K,this.activeState={key:J,value:this.state[J]},this.activeState};F5.prototype.getState=function(J){return this.state[J]||null};F0.prototype.inboundIndex=function(J){return J>=0&&J<this.tokens.length};F0.prototype.composeRUD=function(J){var K=this,Y=!0,X=J.map(function(Q){return K[Q[0]].apply(K,Q.slice(1).concat(Y))}),Z=function(Q){return typeof Q==="object"&&Q.hasOwnProperty("FAIL")};if(X.every(Z))return{FAIL:"composeRUD: one or more operations hasn't completed successfully",report:X.filter(Z)};this.dispatch("composeRUD",[X.filter(function(Q){return!Z(Q)})])};F0.prototype.replaceRange=function(J,K,Y,X){K=K!==null?K:this.tokens.length;var Z=Y.every(function(w){return w instanceof F5});if(!isNaN(J)&&this.inboundIndex(J)&&Z){var Q=this.tokens.splice.apply(this.tokens,[J,K].concat(Y));if(!X)this.dispatch("replaceToken",[J,K,Y]);return[Q,Y]}else return{FAIL:"replaceRange: invalid tokens or startIndex."}};F0.prototype.replaceToken=function(J,K,Y){if(!isNaN(J)&&this.inboundIndex(J)&&K instanceof F5){var X=this.tokens.splice(J,1,K);if(!Y)this.dispatch("replaceToken",[J,K]);return[X[0],K]}else return{FAIL:"replaceToken: invalid token or index."}};F0.prototype.removeRange=function(J,K,Y){K=!isNaN(K)?K:this.tokens.length;var X=this.tokens.splice(J,K);if(!Y)this.dispatch("removeRange",[X,J,K]);return X};F0.prototype.removeToken=function(J,K){if(!isNaN(J)&&this.inboundIndex(J)){var Y=this.tokens.splice(J,1);if(!K)this.dispatch("removeToken",[Y,J]);return Y}else return{FAIL:"removeToken: invalid token index."}};F0.prototype.insertToken=function(J,K,Y){var X=J.every(function(Z){return Z instanceof F5});if(X){if(this.tokens.splice.apply(this.tokens,[K,0].concat(J)),!Y)this.dispatch("insertToken",[J,K]);return J}else return{FAIL:"insertToken: invalid token(s)."}};F0.prototype.registerModifier=function(J,K,Y){this.events.newToken.subscribe(function(X,Z){var Q=[X,Z],w=K===null||K.apply(this,Q)===!0,$=[X,Z];if(w){var W=Y.apply(this,$);X.setState(J,W)}}),this.registeredModifiers.push(J)};R8.prototype.subscribe=function(J){if(typeof J==="function")return this.subscribers.push(J)-1;else return{FAIL:"invalid '"+this.eventId+"' event handler"}};R8.prototype.unsubscribe=function(J){this.subscribers.splice(J,1)};z1.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)};z1.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}};F0.prototype.rangeToText=function(J){if(J instanceof A4)return this.getRangeTokens(J).map(function(K){return K.char}).join("")};F0.prototype.getText=function(){return this.tokens.map(function(J){return J.char}).join("")};F0.prototype.getContext=function(J){var K=this.registeredContexts[J];return K?K:null};F0.prototype.on=function(J,K){var Y=this.events[J];if(Y)return Y.subscribe(K);else return null};F0.prototype.dispatch=function(J,K){var Y=this,X=this.events[J];if(X instanceof R8)X.subscribers.forEach(function(Z){Z.apply(Y,K||[])})};F0.prototype.registerContextChecker=function(J,K,Y){if(this.getContext(J))return{FAIL:"context name '"+J+"' is already registered."};if(typeof K!=="function")return{FAIL:"missing context start check."};if(typeof Y!=="function")return{FAIL:"missing context end check."};var X=new BW(J,K,Y);return this.registeredContexts[J]=X,this.contextCheckers.push(X),X};F0.prototype.getRangeTokens=function(J){var K=J.startIndex+J.endOffset;return[].concat(this.tokens.slice(J.startIndex,K))};F0.prototype.getContextRanges=function(J){var K=this.getContext(J);if(K)return K.ranges;else return{FAIL:"context checker '"+J+"' is not registered."}};F0.prototype.resetContextsRanges=function(){var J=this.registeredContexts;for(var K in J)if(J.hasOwnProperty(K)){var Y=J[K];Y.ranges=[]}};F0.prototype.updateContextsRanges=function(){this.resetContextsRanges();var J=this.tokens.map(function(X){return X.char});for(var K=0;K<J.length;K++){var Y=new z1(J,K);this.runContextCheck(Y)}this.dispatch("updateContextsRanges",[this.registeredContexts])};F0.prototype.setEndOffset=function(J,K){var Y=this.getContext(K).openRange.startIndex,X=new A4(Y,J,K),Z=this.getContext(K).ranges;return X.rangeId=K+"."+Z.length,Z.push(X),this.getContext(K).openRange=null,X};F0.prototype.runContextCheck=function(J){var K=this,Y=J.index;this.contextCheckers.forEach(function(X){var Z=X.contextName,Q=K.getContext(Z).openRange;if(!Q&&X.checkStart(J))Q=new A4(Y,null,Z),K.getContext(Z).openRange=Q,K.dispatch("contextStart",[Z,Y]);if(!!Q&&X.checkEnd(J)){var w=Y-Q.startIndex+1,$=K.setEndOffset(w,Z);K.dispatch("contextEnd",[Z,$])}})};F0.prototype.tokenize=function(J){this.tokens=[],this.resetContextsRanges();var K=Array.from(J);this.dispatch("start");for(var Y=0;Y<K.length;Y++){var X=K[Y],Z=new z1(K,Y);this.dispatch("next",[Z]),this.runContextCheck(Z);var Q=new F5(X);this.tokens.push(Q),this.dispatch("newToken",[Q,Z])}return this.dispatch("end",[this.tokens]),this.tokens};function p1(J){return/[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(J)}function nJ(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 i1(J){return/[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(J)}function F8(J){return/[A-z]/.test(J)}function MW(J){return/\s/.test(J)}function o0(J){this.font=J,this.features={}}function X5(J){this.id=J.id,this.tag=J.tag,this.substitution=J.substitution}function u5(J,K){if(!J)return-1;switch(K.format){case 1:return K.glyphs.indexOf(J);case 2:var Y=K.ranges;for(var X=0;X<Y.length;X++){var Z=Y[X];if(J>=Z.start&&J<=Z.end){var Q=J-Z.start;return Z.index+Q}}break;default:return-1}return-1}function LW(J,K){var Y=u5(J,K.coverage);if(Y===-1)return null;return J+K.deltaGlyphId}function qW(J,K){var Y=u5(J,K.coverage);if(Y===-1)return null;return K.substitute[Y]}function Q4(J,K){var Y=[];for(var X=0;X<J.length;X++){var Z=J[X],Q=K.current;Q=Array.isArray(Q)?Q[0]:Q;var w=u5(Q,Z);if(w!==-1)Y.push(w)}if(Y.length!==J.length)return-1;return Y}function OW(J,K){var Y=K.inputCoverage.length+K.lookaheadCoverage.length+K.backtrackCoverage.length;if(J.context.length<Y)return[];var X=Q4(K.inputCoverage,J);if(X===-1)return[];var Z=K.inputCoverage.length-1;if(J.lookahead.length<K.lookaheadCoverage.length)return[];var Q=J.lookahead.slice(Z);while(Q.length&&i1(Q[0].char))Q.shift();var w=new z1(Q,0),$=Q4(K.lookaheadCoverage,w),W=[].concat(J.backtrack);W.reverse();while(W.length&&i1(W[0].char))W.shift();if(W.length<K.backtrackCoverage.length)return[];var H=new z1(W,0),z=Q4(K.backtrackCoverage,H),U=X.length===K.inputCoverage.length&&$.length===K.lookaheadCoverage.length&&z.length===K.backtrackCoverage.length,V=[];if(U)for(var A=0;A<K.lookupRecords.length;A++){var L=K.lookupRecords[A],B=L.lookupListIndex,M=this.getLookupByIndex(B);for(var O=0;O<M.subtables.length;O++){var N=M.subtables[O],E=this.getLookupMethod(M,N),D=this.getSubstitutionType(M,N);if(D==="12")for(var F=0;F<X.length;F++){var j=J.get(F),T=E(j);if(T)V.push(T)}}}return V}function NW(J,K){var Y=J.current,X=u5(Y,K.coverage);if(X===-1)return null;var Z,Q=K.ligatureSets[X];for(var w=0;w<Q.length;w++){Z=Q[w];for(var $=0;$<Z.components.length;$++){var W=J.lookahead[$],H=Z.components[$];if(W!==H)break;if($===Z.components.length-1)return Z}}return null}function jW(J,K){var Y=u5(J,K.coverage);if(Y===-1)return null;return K.sequences[Y]}o0.prototype.getDefaultScriptFeaturesIndexes=function(){var J=this.font.tables.gsub.scripts;for(var K=0;K<J.length;K++){var Y=J[K];if(Y.tag==="DFLT")return Y.script.defaultLangSys.featureIndexes}return[]};o0.prototype.getScriptFeaturesIndexes=function(J){var K=this.font.tables;if(!K.gsub)return[];if(!J)return this.getDefaultScriptFeaturesIndexes();var Y=this.font.tables.gsub.scripts;for(var X=0;X<Y.length;X++){var Z=Y[X];if(Z.tag===J&&Z.script.defaultLangSys)return Z.script.defaultLangSys.featureIndexes;else{var Q=Z.langSysRecords;if(Q)for(var w=0;w<Q.length;w++){var $=Q[w];if($.tag===J){var W=$.langSys;return W.featureIndexes}}}}return this.getDefaultScriptFeaturesIndexes()};o0.prototype.mapTagsToFeatures=function(J,K){var Y={};for(var X=0;X<J.length;X++){var Z=J[X].tag,Q=J[X].feature;Y[Z]=Q}this.features[K].tags=Y};o0.prototype.getScriptFeatures=function(J){var K=this.features[J];if(this.features.hasOwnProperty(J))return K;var Y=this.getScriptFeaturesIndexes(J);if(!Y)return null;var X=this.font.tables.gsub;return K=Y.map(function(Z){return X.features[Z]}),this.features[J]=K,this.mapTagsToFeatures(K,J),K};o0.prototype.getSubstitutionType=function(J,K){var Y=J.lookupType.toString(),X=K.substFormat.toString();return Y+X};o0.prototype.getLookupMethod=function(J,K){var Y=this,X=this.getSubstitutionType(J,K);switch(X){case"11":return function(Z){return LW.apply(Y,[Z,K])};case"12":return function(Z){return qW.apply(Y,[Z,K])};case"63":return function(Z){return OW.apply(Y,[Z,K])};case"41":return function(Z){return NW.apply(Y,[Z,K])};case"21":return function(Z){return jW.apply(Y,[Z,K])};default:throw Error("lookupType: "+J.lookupType+" - substFormat: "+K.substFormat+" is not yet supported")}};o0.prototype.lookupFeature=function(J){var K=J.contextParams,Y=K.index,X=this.getFeature({tag:J.tag,script:J.script});if(!X)return Error("font '"+this.font.names.fullName.en+"' doesn't support feature '"+J.tag+"' for script '"+J.script+"'.");var Z=this.getFeatureLookups(X),Q=[].concat(K.context);for(var w=0;w<Z.length;w++){var $=Z[w],W=this.getLookupSubtables($);for(var H=0;H<W.length;H++){var z=W[H],U=this.getSubstitutionType($,z),V=this.getLookupMethod($,z),A=void 0;switch(U){case"11":if(A=V(K.current),A)Q.splice(Y,1,new X5({id:11,tag:J.tag,substitution:A}));break;case"12":if(A=V(K.current),A)Q.splice(Y,1,new X5({id:12,tag:J.tag,substitution:A}));break;case"63":if(A=V(K),Array.isArray(A)&&A.length)Q.splice(Y,1,new X5({id:63,tag:J.tag,substitution:A}));break;case"41":if(A=V(K),A)Q.splice(Y,1,new X5({id:41,tag:J.tag,substitution:A}));break;case"21":if(A=V(K.current),A)Q.splice(Y,1,new X5({id:21,tag:J.tag,substitution:A}));break}if(K=new z1(Q,Y),Array.isArray(A)&&!A.length)continue;A=null}}return Q.length?Q:null};o0.prototype.supports=function(J){if(!J.script)return!1;this.getScriptFeatures(J.script);var K=this.features.hasOwnProperty(J.script);if(!J.tag)return K;var Y=this.features[J.script].some(function(X){return X.tag===J.tag});return K&&Y};o0.prototype.getLookupSubtables=function(J){return J.subtables||null};o0.prototype.getLookupByIndex=function(J){var K=this.font.tables.gsub.lookups;return K[J]||null};o0.prototype.getFeatureLookups=function(J){return J.lookupListIndexes.map(this.getLookupByIndex.bind(this))};o0.prototype.getFeature=function(K){if(!this.font)return{FAIL:"No font was found"};if(!this.features.hasOwnProperty(K.script))this.getScriptFeatures(K.script);var Y=this.features[K.script];if(!Y)return{FAIL:"No feature for script "+K.script};if(!Y.tags[K.tag])return null;return this.features[K.script].tags[K.tag]};function EW(J){var K=J.current,Y=J.get(-1);return Y===null&&p1(K)||!p1(Y)&&p1(K)}function FW(J){var K=J.get(1);return K===null||!p1(K)}var _W={startCheck:EW,endCheck:FW};function DW(J){var K=J.current,Y=J.get(-1);return(p1(K)||i1(K))&&!p1(Y)}function IW(J){var K=J.get(1);switch(!0){case K===null:return!0;case(!p1(K)&&!i1(K)):var Y=MW(K);if(!Y)return!0;if(Y){var X=!1;if(X=J.lookahead.some(function(Z){return p1(Z)||i1(Z)}),!X)return!0}break;default:return!1}}var RW={startCheck:DW,endCheck:IW};function TW(J,K,Y){K[Y].setState(J.tag,J.substitution)}function CW(J,K,Y){K[Y].setState(J.tag,J.substitution)}function PW(J,K,Y){J.substitution.forEach(function(X,Z){var Q=K[Y+Z];Q.setState(J.tag,X)})}function SW(J,K,Y){var X=K[Y];X.setState(J.tag,J.substitution.ligGlyph);var Z=J.substitution.components.length;for(var Q=0;Q<Z;Q++)X=K[Y+Q+1],X.setState("deleted",!0)}var jJ={11:TW,12:CW,63:PW,41:SW};function B4(J,K,Y){if(J instanceof X5&&jJ[J.id])jJ[J.id](J,K,Y)}function vW(J){var K=[].concat(J.backtrack);for(var Y=K.length-1;Y>=0;Y--){var X=K[Y],Z=nJ(X),Q=i1(X);if(!Z&&!Q)return!0;if(Z)return!1}return!1}function yW(J){if(nJ(J.current))return!1;for(var K=0;K<J.lookahead.length;K++){var Y=J.lookahead[K],X=i1(Y);if(!X)return!0}return!1}function hW(J){var K=this,Y="arab",X=this.featuresTags[Y],Z=this.tokenizer.getRangeTokens(J);if(Z.length===1)return;var Q=new z1(Z.map(function($){return $.getState("glyphIndex")}),0),w=new z1(Z.map(function($){return $.char}),0);Z.forEach(function($,W){if(i1($.char))return;Q.setCurrentIndex(W),w.setCurrentIndex(W);var H=0;if(vW(w))H|=1;if(yW(w))H|=2;var z;switch(H){case 1:z="fina";break;case 2:z="init";break;case 3:z="medi";break}if(X.indexOf(z)===-1)return;var U=K.query.lookupFeature({tag:z,script:Y,contextParams:Q});if(U instanceof Error)return console.info(U.message);U.forEach(function(V,A){if(V instanceof X5)B4(V,Z,A),Q.context[A]=V.substitution})})}function EJ(J,K){var Y=J.map(function(X){return X.activeState.value});return new z1(Y,K||0)}function kW(J){var K=this,Y="arab",X=this.tokenizer.getRangeTokens(J),Z=EJ(X);Z.context.forEach(function(Q,w){Z.setCurrentIndex(w);var $=K.query.lookupFeature({tag:"rlig",script:Y,contextParams:Z});if($.length)$.forEach(function(W){return B4(W,X,w)}),Z=EJ(X)})}function gW(J){var K=J.current,Y=J.get(-1);return Y===null&&F8(K)||!F8(Y)&&F8(K)}function xW(J){var K=J.get(1);return K===null||!F8(K)}var bW={startCheck:gW,endCheck:xW};function FJ(J,K){var Y=J.map(function(X){return X.activeState.value});return new z1(Y,K||0)}function fW(J){var K=this,Y="latn",X=this.tokenizer.getRangeTokens(J),Z=FJ(X);Z.context.forEach(function(Q,w){Z.setCurrentIndex(w);var $=K.query.lookupFeature({tag:"liga",script:Y,contextParams:Z});if($.length)$.forEach(function(W){return B4(W,X,w)}),Z=FJ(X)})}function A1(J){this.baseDir=J||"ltr",this.tokenizer=new F0,this.featuresTags={}}A1.prototype.setText=function(J){this.text=J};A1.prototype.contextChecks={latinWordCheck:bW,arabicWordCheck:_W,arabicSentenceCheck:RW};function w4(J){var K=this.contextChecks[J+"Check"];return this.tokenizer.registerContextChecker(J,K.startCheck,K.endCheck)}function mW(){return w4.call(this,"latinWord"),w4.call(this,"arabicWord"),w4.call(this,"arabicSentence"),this.tokenizer.tokenize(this.text)}function lW(){var J=this,K=this.tokenizer.getContextRanges("arabicSentence");K.forEach(function(Y){var X=J.tokenizer.getRangeTokens(Y);J.tokenizer.replaceRange(Y.startIndex,Y.endOffset,X.reverse())})}A1.prototype.registerFeatures=function(J,K){var Y=this,X=K.filter(function(Z){return Y.query.supports({script:J,tag:Z})});if(!this.featuresTags.hasOwnProperty(J))this.featuresTags[J]=X;else this.featuresTags[J]=this.featuresTags[J].concat(X)};A1.prototype.applyFeatures=function(J,K){if(!J)throw Error("No valid font was provided to apply features");if(!this.query)this.query=new o0(J);for(var Y=0;Y<K.length;Y++){var X=K[Y];if(!this.query.supports({script:X.script}))continue;this.registerFeatures(X.script,X.tags)}};A1.prototype.registerModifier=function(J,K,Y){this.tokenizer.registerModifier(J,K,Y)};function G4(){if(this.tokenizer.registeredModifiers.indexOf("glyphIndex")===-1)throw Error("glyphIndex modifier is required to apply arabic presentation features.")}function cW(){var J=this,K="arab";if(!this.featuresTags.hasOwnProperty(K))return;G4.call(this);var Y=this.tokenizer.getContextRanges("arabicWord");Y.forEach(function(X){hW.call(J,X)})}function dW(){var J=this,K="arab";if(!this.featuresTags.hasOwnProperty(K))return;var Y=this.featuresTags[K];if(Y.indexOf("rlig")===-1)return;G4.call(this);var X=this.tokenizer.getContextRanges("arabicWord");X.forEach(function(Z){kW.call(J,Z)})}function uW(){var J=this,K="latn";if(!this.featuresTags.hasOwnProperty(K))return;var Y=this.featuresTags[K];if(Y.indexOf("liga")===-1)return;G4.call(this);var X=this.tokenizer.getContextRanges("latinWord");X.forEach(function(Z){fW.call(J,Z)})}A1.prototype.checkContextReady=function(J){return!!this.tokenizer.getContext(J)};A1.prototype.applyFeaturesToContexts=function(){if(this.checkContextReady("arabicWord"))cW.call(this),dW.call(this);if(this.checkContextReady("latinWord"))uW.call(this);if(this.checkContextReady("arabicSentence"))lW.call(this)};A1.prototype.processText=function(J){if(!this.text||this.text!==J)this.setText(J),mW.call(this),this.applyFeaturesToContexts()};A1.prototype.getBidiText=function(J){return this.processText(J),this.tokenizer.getText()};A1.prototype.getTextGlyphs=function(J){this.processText(J);var K=[];for(var Y=0;Y<this.tokenizer.tokens.length;Y++){var X=this.tokenizer.tokens[Y];if(X.state.deleted)continue;var Z=X.activeState.value;K.push(Array.isArray(Z)?Z[0]:Z)}return K};function m0(J){if(J=J||{},J.tables=J.tables||{},!J.empty)k5(J.familyName,"When creating a new Font object, familyName is required."),k5(J.styleName,"When creating a new Font object, styleName is required."),k5(J.unitsPerEm,"When creating a new Font object, unitsPerEm is required."),k5(J.ascender,"When creating a new Font object, ascender is required."),k5(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 _1.GlyphSet(this,J.glyphs||[]),this.encoding=new hJ(this),this.position=new l5(this),this.substitution=new n0(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 uJ(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 K=this.charToGlyphIndex(J),Y=this.glyphs.get(K);if(!Y)Y=this.glyphs.get(0);return Y};m0.prototype.updateFeatures=function(J){return this.defaultRenderOptions.features.map(function(K){if(K.script==="latn")return{script:"latn",tags:K.tags.filter(function(Y){return J[Y]})};else return K})};m0.prototype.stringToGlyphs=function(J,K){var Y=this,X=new A1,Z=function(U){return Y.charToGlyphIndex(U.char)};X.registerModifier("glyphIndex",null,Z);var Q=K?this.updateFeatures(K.features):this.defaultRenderOptions.features;X.applyFeatures(this,Q);var w=X.getTextGlyphs(J),$=w.length,W=Array($),H=this.glyphs.get(0);for(var z=0;z<$;z+=1)W[z]=this.glyphs.get(w[z])||H;return W};m0.prototype.getKerningValue=function(J,K){J=J.index||J,K=K.index||K;var Y=this.position.defaultKerningTables;if(Y)return this.position.getKerningValue(Y,J,K);return this.kerningPairs[J+","+K]||0};m0.prototype.defaultRenderOptions={kerning:!0,features:[{script:"arab",tags:["init","medi","fina","rlig"]},{script:"latn",tags:["liga","rlig"]}]};m0.prototype.forEachGlyph=function(J,K,Y,X,Z,Q){K=K!==void 0?K:0,Y=Y!==void 0?Y:0,X=X!==void 0?X:72,Z=Object.assign({},this.defaultRenderOptions,Z);var w=1/this.unitsPerEm*X,$=this.stringToGlyphs(J,Z),W;if(Z.kerning){var H=Z.script||this.position.getDefaultScriptName();W=this.position.getKerningTables(H,Z.language)}for(var z=0;z<$.length;z+=1){var U=$[z];if(Q.call(this,U,K,Y,X,Z),U.advanceWidth)K+=U.advanceWidth*w;if(Z.kerning&&z<$.length-1){var V=W?this.position.getKerningValue(W,U.index,$[z+1].index):this.getKerningValue(U,$[z+1]);K+=V*w}if(Z.letterSpacing)K+=Z.letterSpacing*X;else if(Z.tracking)K+=Z.tracking/1000*X}return K};m0.prototype.getPath=function(J,K,Y,X,Z){var Q=new f0;return this.forEachGlyph(J,K,Y,X,Z,function(w,$,W,H){var z=w.getPath($,W,H,Z,this);Q.extend(z)}),Q};m0.prototype.getPaths=function(J,K,Y,X,Z){var Q=[];return this.forEachGlyph(J,K,Y,X,Z,function(w,$,W,H){var z=w.getPath($,W,H,Z,this);Q.push(z)}),Q};m0.prototype.getAdvanceWidth=function(J,K,Y){return this.forEachGlyph(J,0,0,K,Y,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 pW(J,K){K.parseUShort(),J.length=K.parseULong(),J.language=K.parseULong();var Y;J.groupCount=Y=K.parseULong(),J.glyphIndexMap={};for(var X=0;X<Y;X+=1){var Z=K.parseULong(),Q=K.parseULong(),w=K.parseULong();for(var $=Z;$<=Q;$+=1)J.glyphIndexMap[$]=w,w++}}function iW(J,K,Y,X,Z){J.length=K.parseUShort(),J.language=K.parseUShort();var Q;J.segCount=Q=K.parseUShort()>>1,K.skip("uShort",3),J.glyphIndexMap={};var w=new n.Parser(Y,X+Z+14),$=new n.Parser(Y,X+Z+16+Q*2),W=new n.Parser(Y,X+Z+16+Q*4),H=new n.Parser(Y,X+Z+16+Q*6),z=X+Z+16+Q*8;for(var U=0;U<Q-1;U+=1){var V=void 0,A=w.parseUShort(),L=$.parseUShort(),B=W.parseShort(),M=H.parseUShort();for(var O=L;O<=A;O+=1){if(M!==0){if(z=H.offset+H.relativeOffset-2,z+=M,z+=(O-L)*2,V=n.getUShort(Y,z),V!==0)V=V+B&65535}else V=O+B&65535;J.glyphIndexMap[O]=V}}}function rW(J,K){var Y={};Y.version=n.getUShort(J,K),z0.argument(Y.version===0,"cmap table version should be 0."),Y.numTables=n.getUShort(J,K+2);var X=-1;for(var Z=Y.numTables-1;Z>=0;Z-=1){var Q=n.getUShort(J,K+4+Z*8),w=n.getUShort(J,K+4+Z*8+2);if(Q===3&&(w===0||w===1||w===10)||Q===0&&(w===0||w===1||w===2||w===3||w===4)){X=n.getULong(J,K+4+Z*8+4);break}}if(X===-1)throw Error("No valid cmap sub-tables found.");var $=new n.Parser(J,K+X);if(Y.format=$.parseUShort(),Y.format===12)pW(Y,$);else if(Y.format===4)iW(Y,$,J,K,X);else throw Error("Only format 4 and 12 cmap tables are supported (found format "+Y.format+").");return Y}var nW={parse:rW};function H4(J){var K;if(J.length<1240)K=107;else if(J.length<33900)K=1131;else K=32768;return K}function d1(J,K,Y){var X=[],Z=[],Q=n.getCard16(J,K),w,$;if(Q!==0){var W=n.getByte(J,K+2);w=K+(Q+1)*W+2;var H=K+3;for(var z=0;z<Q+1;z+=1)X.push(n.getOffset(J,H,W)),H+=W;$=w+X[Q]}else $=K+2;for(var U=0;U<X.length-1;U+=1){var V=n.getBytes(J,w+X[U],w+X[U+1]);if(Y)V=Y(V);Z.push(V)}return{objects:Z,startOffset:K,endOffset:$}}function oW(J,K){var Y=[],X=n.getCard16(J,K),Z,Q;if(X!==0){var w=n.getByte(J,K+2);Z=K+(X+1)*w+2;var $=K+3;for(var W=0;W<X+1;W+=1)Y.push(n.getOffset(J,$,w)),$+=w;Q=Z+Y[X]}else Q=K+2;return{offsets:Y,startOffset:K,endOffset:Q}}function sW(J,K,Y,X,Z){var Q=n.getCard16(Y,X),w=0;if(Q!==0){var $=n.getByte(Y,X+2);w=X+(Q+1)*$+2}var W=n.getBytes(Y,w+K[J],w+K[J+1]);if(Z)W=Z(W);return W}function aW(J){var K="",Y=15,X=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];while(!0){var Z=J.parseByte(),Q=Z>>4,w=Z&15;if(Q===Y)break;if(K+=X[Q],w===Y)break;K+=X[w]}return parseFloat(K)}function tW(J,K){var Y,X,Z,Q;if(K===28)return Y=J.parseByte(),X=J.parseByte(),Y<<8|X;if(K===29)return Y=J.parseByte(),X=J.parseByte(),Z=J.parseByte(),Q=J.parseByte(),Y<<24|X<<16|Z<<8|Q;if(K===30)return aW(J);if(K>=32&&K<=246)return K-139;if(K>=247&&K<=250)return Y=J.parseByte(),(K-247)*256+Y+108;if(K>=251&&K<=254)return Y=J.parseByte(),-(K-251)*256-Y-108;throw Error("Invalid b0 "+K)}function eW(J){var K={};for(var Y=0;Y<J.length;Y+=1){var X=J[Y][0],Z=J[Y][1],Q=void 0;if(Z.length===1)Q=Z[0];else Q=Z;if(K.hasOwnProperty(X)&&!isNaN(K[X]))throw Error("Object "+K+" already has key "+X);K[X]=Q}return K}function oJ(J,K,Y){K=K!==void 0?K:0;var X=new n.Parser(J,K),Z=[],Q=[];Y=Y!==void 0?Y:J.length;while(X.relativeOffset<Y){var w=X.parseByte();if(w<=21){if(w===12)w=1200+X.parseByte();Z.push([w,Q]),Q=[]}else Q.push(tW(X,w))}return eW(Z)}function x5(J,K){if(K<=390)K=qQ[K];else K=J[K-391];return K}function sJ(J,K,Y){var X={},Z;for(var Q=0;Q<K.length;Q+=1){var w=K[Q];if(Array.isArray(w.type)){var $=[];$.length=w.type.length;for(var W=0;W<w.type.length;W++){if(Z=J[w.op]!==void 0?J[w.op][W]:void 0,Z===void 0)Z=w.value!==void 0&&w.value[W]!==void 0?w.value[W]:null;if(w.type[W]==="SID")Z=x5(Y,Z);$[W]=Z}X[w.name]=$}else{if(Z=J[w.op],Z===void 0)Z=w.value!==void 0?w.value:null;if(w.type==="SID")Z=x5(Y,Z);X[w.name]=Z}}return X}function J$(J,K){var Y={};return Y.formatMajor=n.getCard8(J,K),Y.formatMinor=n.getCard8(J,K+1),Y.size=n.getCard8(J,K+2),Y.offsetSize=n.getCard8(J,K+3),Y.startOffset=K,Y.endOffset=K+4,Y}var K$=[{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"}],Y$=[{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 X$(J,K){var Y=oJ(J,0,J.byteLength);return sJ(Y,K$,K)}function aJ(J,K,Y,X){var Z=oJ(J,K,Y);return sJ(Z,Y$,X)}function _J(J,K,Y,X){var Z=[];for(var Q=0;Q<Y.length;Q+=1){var w=new DataView(new Uint8Array(Y[Q]).buffer),$=X$(w,X);$._subrs=[],$._subrsBias=0,$._defaultWidthX=0,$._nominalWidthX=0;var W=$.private[0],H=$.private[1];if(W!==0&&H!==0){var z=aJ(J,H+K,W,X);if($._defaultWidthX=z.defaultWidthX,$._nominalWidthX=z.nominalWidthX,z.subrs!==0){var U=H+z.subrs,V=d1(J,U+K);$._subrs=V.objects,$._subrsBias=H4($._subrs)}$._privateDict=z}Z.push($)}return Z}function Z$(J,K,Y,X){var Z,Q,w=new n.Parser(J,K);Y-=1;var $=[".notdef"],W=w.parseCard8();if(W===0)for(var H=0;H<Y;H+=1)Z=w.parseSID(),$.push(x5(X,Z));else if(W===1)while($.length<=Y){Z=w.parseSID(),Q=w.parseCard8();for(var z=0;z<=Q;z+=1)$.push(x5(X,Z)),Z+=1}else if(W===2)while($.length<=Y){Z=w.parseSID(),Q=w.parseCard16();for(var U=0;U<=Q;U+=1)$.push(x5(X,Z)),Z+=1}else throw Error("Unknown charset format "+W);return $}function Q$(J,K,Y){var X,Z={},Q=new n.Parser(J,K),w=Q.parseCard8();if(w===0){var $=Q.parseCard8();for(var W=0;W<$;W+=1)X=Q.parseCard8(),Z[X]=W}else if(w===1){var H=Q.parseCard8();X=1;for(var z=0;z<H;z+=1){var U=Q.parseCard8(),V=Q.parseCard8();for(var A=U;A<=U+V;A+=1)Z[A]=X,X+=1}}else throw Error("Unknown encoding format "+w);return new _8(Z,Y)}function DJ(J,K,Y){var X,Z,Q,w,$=new f0,W=[],H=0,z=!1,U=!1,V=0,A=0,L,B,M,O;if(J.isCIDFont){var N=J.tables.cff.topDict._fdSelect[K.index],E=J.tables.cff.topDict._fdArray[N];L=E._subrs,B=E._subrsBias,M=E._defaultWidthX,O=E._nominalWidthX}else L=J.tables.cff.topDict._subrs,B=J.tables.cff.topDict._subrsBias,M=J.tables.cff.topDict._defaultWidthX,O=J.tables.cff.topDict._nominalWidthX;var D=M;function F(I,C){if(U)$.closePath();$.moveTo(I,C),U=!0}function j(){var I=W.length%2!==0;if(I&&!z)D=W.shift()+O;H+=W.length>>1,W.length=0,z=!0}function T(I){var C,k,d,u,p,P,S,R,c,f,o,i,m=0;while(m<I.length){var l=I[m];switch(m+=1,l){case 1:j();break;case 3:j();break;case 4:if(W.length>1&&!z)D=W.shift()+O,z=!0;A+=W.pop(),F(V,A);break;case 5:while(W.length>0)V+=W.shift(),A+=W.shift(),$.lineTo(V,A);break;case 6:while(W.length>0){if(V+=W.shift(),$.lineTo(V,A),W.length===0)break;A+=W.shift(),$.lineTo(V,A)}break;case 7:while(W.length>0){if(A+=W.shift(),$.lineTo(V,A),W.length===0)break;V+=W.shift(),$.lineTo(V,A)}break;case 8:while(W.length>0)X=V+W.shift(),Z=A+W.shift(),Q=X+W.shift(),w=Z+W.shift(),V=Q+W.shift(),A=w+W.shift(),$.curveTo(X,Z,Q,w,V,A);break;case 10:if(p=W.pop()+B,P=L[p],P)T(P);break;case 11:return;case 12:switch(l=I[m],m+=1,l){case 35:X=V+W.shift(),Z=A+W.shift(),Q=X+W.shift(),w=Z+W.shift(),S=Q+W.shift(),R=w+W.shift(),c=S+W.shift(),f=R+W.shift(),o=c+W.shift(),i=f+W.shift(),V=o+W.shift(),A=i+W.shift(),W.shift(),$.curveTo(X,Z,Q,w,S,R),$.curveTo(c,f,o,i,V,A);break;case 34:X=V+W.shift(),Z=A,Q=X+W.shift(),w=Z+W.shift(),S=Q+W.shift(),R=w,c=S+W.shift(),f=w,o=c+W.shift(),i=A,V=o+W.shift(),$.curveTo(X,Z,Q,w,S,R),$.curveTo(c,f,o,i,V,A);break;case 36:X=V+W.shift(),Z=A+W.shift(),Q=X+W.shift(),w=Z+W.shift(),S=Q+W.shift(),R=w,c=S+W.shift(),f=w,o=c+W.shift(),i=f+W.shift(),V=o+W.shift(),$.curveTo(X,Z,Q,w,S,R),$.curveTo(c,f,o,i,V,A);break;case 37:if(X=V+W.shift(),Z=A+W.shift(),Q=X+W.shift(),w=Z+W.shift(),S=Q+W.shift(),R=w+W.shift(),c=S+W.shift(),f=R+W.shift(),o=c+W.shift(),i=f+W.shift(),Math.abs(o-V)>Math.abs(i-A))V=o+W.shift();else A=i+W.shift();$.curveTo(X,Z,Q,w,S,R),$.curveTo(c,f,o,i,V,A);break;default:console.log("Glyph "+K.index+": unknown operator 1200"+l),W.length=0}break;case 14:if(W.length>0&&!z)D=W.shift()+O,z=!0;if(U)$.closePath(),U=!1;break;case 18:j();break;case 19:case 20:j(),m+=H+7>>3;break;case 21:if(W.length>2&&!z)D=W.shift()+O,z=!0;A+=W.pop(),V+=W.pop(),F(V,A);break;case 22:if(W.length>1&&!z)D=W.shift()+O,z=!0;V+=W.pop(),F(V,A);break;case 23:j();break;case 24:while(W.length>2)X=V+W.shift(),Z=A+W.shift(),Q=X+W.shift(),w=Z+W.shift(),V=Q+W.shift(),A=w+W.shift(),$.curveTo(X,Z,Q,w,V,A);V+=W.shift(),A+=W.shift(),$.lineTo(V,A);break;case 25:while(W.length>6)V+=W.shift(),A+=W.shift(),$.lineTo(V,A);X=V+W.shift(),Z=A+W.shift(),Q=X+W.shift(),w=Z+W.shift(),V=Q+W.shift(),A=w+W.shift(),$.curveTo(X,Z,Q,w,V,A);break;case 26:if(W.length%2)V+=W.shift();while(W.length>0)X=V,Z=A+W.shift(),Q=X+W.shift(),w=Z+W.shift(),V=Q,A=w+W.shift(),$.curveTo(X,Z,Q,w,V,A);break;case 27:if(W.length%2)A+=W.shift();while(W.length>0)X=V+W.shift(),Z=A,Q=X+W.shift(),w=Z+W.shift(),V=Q+W.shift(),A=w,$.curveTo(X,Z,Q,w,V,A);break;case 28:C=I[m],k=I[m+1],W.push((C<<24|k<<16)>>16),m+=2;break;case 29:if(p=W.pop()+J.gsubrsBias,P=J.gsubrs[p],P)T(P);break;case 30:while(W.length>0){if(X=V,Z=A+W.shift(),Q=X+W.shift(),w=Z+W.shift(),V=Q+W.shift(),A=w+(W.length===1?W.shift():0),$.curveTo(X,Z,Q,w,V,A),W.length===0)break;X=V+W.shift(),Z=A,Q=X+W.shift(),w=Z+W.shift(),A=w+W.shift(),V=Q+(W.length===1?W.shift():0),$.curveTo(X,Z,Q,w,V,A)}break;case 31:while(W.length>0){if(X=V+W.shift(),Z=A,Q=X+W.shift(),w=Z+W.shift(),A=w+W.shift(),V=Q+(W.length===1?W.shift():0),$.curveTo(X,Z,Q,w,V,A),W.length===0)break;X=V,Z=A+W.shift(),Q=X+W.shift(),w=Z+W.shift(),V=Q+W.shift(),A=w+(W.length===1?W.shift():0),$.curveTo(X,Z,Q,w,V,A)}break;default:if(l<32)console.log("Glyph "+K.index+": unknown operator "+l);else if(l<247)W.push(l-139);else if(l<251)C=I[m],m+=1,W.push((l-247)*256+C+108);else if(l<255)C=I[m],m+=1,W.push(-(l-251)*256-C-108);else C=I[m],k=I[m+1],d=I[m+2],u=I[m+3],m+=4,W.push((C<<24|k<<16|d<<8|u)/65536)}}}return T(Y),K.advanceWidth=D,$}function w$(J,K,Y,X){var Z=[],Q,w=new n.Parser(J,K),$=w.parseCard8();if($===0)for(var W=0;W<Y;W++){if(Q=w.parseCard8(),Q>=X)throw Error("CFF table CID Font FDSelect has bad FD index value "+Q+" (FD count "+X+")");Z.push(Q)}else if($===3){var H=w.parseCard16(),z=w.parseCard16();if(z!==0)throw Error("CFF Table CID Font FDSelect format 3 range has bad initial GID "+z);var U;for(var V=0;V<H;V++){if(Q=w.parseCard8(),U=w.parseCard16(),Q>=X)throw Error("CFF table CID Font FDSelect has bad FD index value "+Q+" (FD count "+X+")");if(U>Y)throw Error("CFF Table CID Font FDSelect format 3 range has bad GID "+U);for(;z<U;z++)Z.push(Q);z=U}if(U!==Y)throw Error("CFF Table CID Font FDSelect format 3 range has bad final GID "+U)}else throw Error("CFF Table CID Font FDSelect table has unsupported format "+$);return Z}function W$(J,K,Y,X){Y.tables.cff={};var Z=J$(J,K),Q=d1(J,Z.endOffset,n.bytesToString),w=d1(J,Q.endOffset),$=d1(J,w.endOffset,n.bytesToString),W=d1(J,$.endOffset);Y.gsubrs=W.objects,Y.gsubrsBias=H4(Y.gsubrs);var H=_J(J,K,w.objects,$.objects);if(H.length!==1)throw Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = "+H.length);var z=H[0];if(Y.tables.cff.topDict=z,z._privateDict)Y.defaultWidthX=z._privateDict.defaultWidthX,Y.nominalWidthX=z._privateDict.nominalWidthX;if(z.ros[0]!==void 0&&z.ros[1]!==void 0)Y.isCIDFont=!0;if(Y.isCIDFont){var{fdArray:U,fdSelect:V}=z;if(U===0||V===0)throw Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");U+=K;var A=d1(J,U),L=_J(J,K,A.objects,$.objects);z._fdArray=L,V+=K,z._fdSelect=w$(J,V,Y.numGlyphs,L.length)}var B=K+z.private[1],M=aJ(J,B,z.private[0],$.objects);if(Y.defaultWidthX=M.defaultWidthX,Y.nominalWidthX=M.nominalWidthX,M.subrs!==0){var O=B+M.subrs,N=d1(J,O);Y.subrs=N.objects,Y.subrsBias=H4(Y.subrs)}else Y.subrs=[],Y.subrsBias=0;var E;if(X.lowMemory)E=oW(J,K+z.charStrings),Y.nGlyphs=E.offsets.length;else E=d1(J,K+z.charStrings),Y.nGlyphs=E.objects.length;var D=Z$(J,K+z.charset,Y.nGlyphs,$.objects);if(z.encoding===0)Y.cffEncoding=new _8(OQ,D);else if(z.encoding===1)Y.cffEncoding=new _8(NQ,D);else Y.cffEncoding=Q$(J,K+z.encoding,D);if(Y.encoding=Y.encoding||Y.cffEncoding,Y.glyphs=new _1.GlyphSet(Y),X.lowMemory)Y._push=function(T){var I=sW(T,E.offsets,J,K+z.charStrings);Y.glyphs.push(T,_1.cffGlyphLoader(Y,T,DJ,I))};else for(var F=0;F<Y.nGlyphs;F+=1){var j=E.objects[F];Y.glyphs.push(F,_1.cffGlyphLoader(Y,F,DJ,j))}}var $$={parse:W$};function H$(J,K,Y){var X={},Z=new n.Parser(J,K);return X.tag=Z.parseTag(),X.minValue=Z.parseFixed(),X.defaultValue=Z.parseFixed(),X.maxValue=Z.parseFixed(),Z.skip("uShort",1),X.name=Y[Z.parseUShort()]||{},X}function z$(J,K,Y,X){var Z={},Q=new n.Parser(J,K);Z.name=X[Q.parseUShort()]||{},Q.skip("uShort",1),Z.coordinates={};for(var w=0;w<Y.length;++w)Z.coordinates[Y[w].tag]=Q.parseFixed();return Z}function U$(J,K,Y){var X=new n.Parser(J,K),Z=X.parseULong();z0.argument(Z===65536,"Unsupported fvar table version.");var Q=X.parseOffset16();X.skip("uShort",1);var w=X.parseUShort(),$=X.parseUShort(),W=X.parseUShort(),H=X.parseUShort(),z=[];for(var U=0;U<w;U++)z.push(H$(J,K+Q+U*$,Y));var V=[],A=K+Q+w*$;for(var L=0;L<W;L++)V.push(z$(J,A+L*H,z,Y));return{axes:z,instances:V}}var V$={parse:U$},A$=function(){return{coverage:this.parsePointer(v.coverage),attachPoints:this.parseList(v.pointer(v.uShortList))}},B$=function(){var J=this.parseUShort();if(z0.argument(J===1||J===2||J===3,"Unsupported CaretValue table version."),J===1)return{coordinate:this.parseShort()};else if(J===2)return{pointindex:this.parseShort()};else if(J===3)return{coordinate:this.parseShort()}},G$=function(){return this.parseList(v.pointer(B$))},M$=function(){return{coverage:this.parsePointer(v.coverage),ligGlyphs:this.parseList(v.pointer(G$))}},L$=function(){return this.parseUShort(),this.parseList(v.pointer(v.coverage))};function q$(J,K){K=K||0;var Y=new v(J,K),X=Y.parseVersion(1);z0.argument(X===1||X===1.2||X===1.3,"Unsupported GDEF table version.");var Z={version:X,classDef:Y.parsePointer(v.classDef),attachList:Y.parsePointer(A$),ligCaretList:Y.parsePointer(M$),markAttachClassDef:Y.parsePointer(v.classDef)};if(X>=1.2)Z.markGlyphSets=Y.parsePointer(L$);return Z}var O$={parse:q$},U1=[,,,,,,,,,,];U1[1]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{posFormat:1,coverage:this.parsePointer(v.coverage),value:this.parseValueRecord()};else if(Y===2)return{posFormat:2,coverage:this.parsePointer(v.coverage),values:this.parseValueRecordList()};z0.assert(!1,"0x"+K.toString(16)+": GPOS lookup type 1 format must be 1 or 2.")};U1[2]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();z0.assert(Y===1||Y===2,"0x"+K.toString(16)+": GPOS lookup type 2 format must be 1 or 2.");var X=this.parsePointer(v.coverage),Z=this.parseUShort(),Q=this.parseUShort();if(Y===1)return{posFormat:Y,coverage:X,valueFormat1:Z,valueFormat2:Q,pairSets:this.parseList(v.pointer(v.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(Z),value2:this.parseValueRecord(Q)}})))};else if(Y===2){var w=this.parsePointer(v.classDef),$=this.parsePointer(v.classDef),W=this.parseUShort(),H=this.parseUShort();return{posFormat:Y,coverage:X,valueFormat1:Z,valueFormat2:Q,classDef1:w,classDef2:$,class1Count:W,class2Count:H,classRecords:this.parseList(W,v.list(H,function(){return{value1:this.parseValueRecord(Z),value2:this.parseValueRecord(Q)}}))}}};U1[3]=function(){return{error:"GPOS Lookup 3 not supported"}};U1[4]=function(){return{error:"GPOS Lookup 4 not supported"}};U1[5]=function(){return{error:"GPOS Lookup 5 not supported"}};U1[6]=function(){return{error:"GPOS Lookup 6 not supported"}};U1[7]=function(){return{error:"GPOS Lookup 7 not supported"}};U1[8]=function(){return{error:"GPOS Lookup 8 not supported"}};U1[9]=function(){return{error:"GPOS Lookup 9 not supported"}};function N$(J,K){K=K||0;var Y=new v(J,K),X=Y.parseVersion(1);if(z0.argument(X===1||X===1.1,"Unsupported GPOS table version "+X),X===1)return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(U1)};else return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(U1),variations:Y.parseFeatureVariationsList()}}var j$={parse:N$},V1=[,,,,,,,,,];V1[1]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{substFormat:1,coverage:this.parsePointer(v.coverage),deltaGlyphId:this.parseUShort()};else if(Y===2)return{substFormat:2,coverage:this.parsePointer(v.coverage),substitute:this.parseOffset16List()};z0.assert(!1,"0x"+K.toString(16)+": lookup type 1 format must be 1 or 2.")};V1[2]=function(){var K=this.parseUShort();return z0.argument(K===1,"GSUB Multiple Substitution Subtable identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(v.coverage),sequences:this.parseListOfLists()}};V1[3]=function(){var K=this.parseUShort();return z0.argument(K===1,"GSUB Alternate Substitution Subtable identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(v.coverage),alternateSets:this.parseListOfLists()}};V1[4]=function(){var K=this.parseUShort();return z0.argument(K===1,"GSUB ligature table identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(v.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var E5={sequenceIndex:v.uShort,lookupListIndex:v.uShort};V1[5]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{substFormat:Y,coverage:this.parsePointer(v.coverage),ruleSets:this.parseListOfLists(function(){var Q=this.parseUShort(),w=this.parseUShort();return{input:this.parseUShortList(Q-1),lookupRecords:this.parseRecordList(w,E5)}})};else if(Y===2)return{substFormat:Y,coverage:this.parsePointer(v.coverage),classDef:this.parsePointer(v.classDef),classSets:this.parseListOfLists(function(){var Q=this.parseUShort(),w=this.parseUShort();return{classes:this.parseUShortList(Q-1),lookupRecords:this.parseRecordList(w,E5)}})};else if(Y===3){var X=this.parseUShort(),Z=this.parseUShort();return{substFormat:Y,coverages:this.parseList(X,v.pointer(v.coverage)),lookupRecords:this.parseRecordList(Z,E5)}}z0.assert(!1,"0x"+K.toString(16)+": lookup type 5 format must be 1, 2 or 3.")};V1[6]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{substFormat:1,coverage:this.parsePointer(v.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(E5)}})};else if(Y===2)return{substFormat:2,coverage:this.parsePointer(v.coverage),backtrackClassDef:this.parsePointer(v.classDef),inputClassDef:this.parsePointer(v.classDef),lookaheadClassDef:this.parsePointer(v.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(E5)}})};else if(Y===3)return{substFormat:3,backtrackCoverage:this.parseList(v.pointer(v.coverage)),inputCoverage:this.parseList(v.pointer(v.coverage)),lookaheadCoverage:this.parseList(v.pointer(v.coverage)),lookupRecords:this.parseRecordList(E5)};z0.assert(!1,"0x"+K.toString(16)+": lookup type 6 format must be 1, 2 or 3.")};V1[7]=function(){var K=this.parseUShort();z0.argument(K===1,"GSUB Extension Substitution subtable identifier-format must be 1");var Y=this.parseUShort(),X=new v(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:Y,extension:V1[Y].call(X)}};V1[8]=function(){var K=this.parseUShort();return z0.argument(K===1,"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(v.coverage),backtrackCoverage:this.parseList(v.pointer(v.coverage)),lookaheadCoverage:this.parseList(v.pointer(v.coverage)),substitutes:this.parseUShortList()}};function E$(J,K){K=K||0;var Y=new v(J,K),X=Y.parseVersion(1);if(z0.argument(X===1||X===1.1,"Unsupported GSUB table version."),X===1)return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(V1)};else return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(V1),variations:Y.parseFeatureVariationsList()}}var F$={parse:E$};function _$(J,K){var Y={},X=new n.Parser(J,K);return Y.version=X.parseVersion(),Y.fontRevision=Math.round(X.parseFixed()*1000)/1000,Y.checkSumAdjustment=X.parseULong(),Y.magicNumber=X.parseULong(),z0.argument(Y.magicNumber===1594834165,"Font header has wrong magic number."),Y.flags=X.parseUShort(),Y.unitsPerEm=X.parseUShort(),Y.created=X.parseLongDateTime(),Y.modified=X.parseLongDateTime(),Y.xMin=X.parseShort(),Y.yMin=X.parseShort(),Y.xMax=X.parseShort(),Y.yMax=X.parseShort(),Y.macStyle=X.parseUShort(),Y.lowestRecPPEM=X.parseUShort(),Y.fontDirectionHint=X.parseShort(),Y.indexToLocFormat=X.parseShort(),Y.glyphDataFormat=X.parseShort(),Y}var D$={parse:_$};function I$(J,K){var Y={},X=new n.Parser(J,K);return Y.version=X.parseVersion(),Y.ascender=X.parseShort(),Y.descender=X.parseShort(),Y.lineGap=X.parseShort(),Y.advanceWidthMax=X.parseUShort(),Y.minLeftSideBearing=X.parseShort(),Y.minRightSideBearing=X.parseShort(),Y.xMaxExtent=X.parseShort(),Y.caretSlopeRise=X.parseShort(),Y.caretSlopeRun=X.parseShort(),Y.caretOffset=X.parseShort(),X.relativeOffset+=8,Y.metricDataFormat=X.parseShort(),Y.numberOfHMetrics=X.parseUShort(),Y}var R$={parse:I$};function T$(J,K,Y,X,Z){var Q,w,$=new n.Parser(J,K);for(var W=0;W<X;W+=1){if(W<Y)Q=$.parseUShort(),w=$.parseShort();var H=Z.get(W);H.advanceWidth=Q,H.leftSideBearing=w}}function C$(J,K,Y,X,Z){J._hmtxTableData={};var Q,w,$=new n.Parser(K,Y);for(var W=0;W<Z;W+=1){if(W<X)Q=$.parseUShort(),w=$.parseShort();J._hmtxTableData[W]={advanceWidth:Q,leftSideBearing:w}}}function P$(J,K,Y,X,Z,Q,w){if(w.lowMemory)C$(J,K,Y,X,Z);else T$(K,Y,X,Z,Q)}var S$={parse:P$};function v$(J){var K={};J.skip("uShort");var Y=J.parseUShort();z0.argument(Y===0,"Unsupported kern sub-table version."),J.skip("uShort",2);var X=J.parseUShort();J.skip("uShort",3);for(var Z=0;Z<X;Z+=1){var Q=J.parseUShort(),w=J.parseUShort(),$=J.parseShort();K[Q+","+w]=$}return K}function y$(J){var K={};J.skip("uShort");var Y=J.parseULong();if(Y>1)console.warn("Only the first kern subtable is supported.");J.skip("uLong");var X=J.parseUShort(),Z=X&255;if(J.skip("uShort"),Z===0){var Q=J.parseUShort();J.skip("uShort",3);for(var w=0;w<Q;w+=1){var $=J.parseUShort(),W=J.parseUShort(),H=J.parseShort();K[$+","+W]=H}}return K}function h$(J,K){var Y=new n.Parser(J,K),X=Y.parseUShort();if(X===0)return v$(Y);else if(X===1)return y$(Y);else throw Error("Unsupported kern table version ("+X+").")}var k$={parse:h$};function g$(J,K){var Y=new n.Parser(J,K),X=Y.parseULong();z0.argument(X===1,"Unsupported ltag table version."),Y.skip("uLong",1);var Z=Y.parseULong(),Q=[];for(var w=0;w<Z;w++){var $="",W=K+Y.parseUShort(),H=Y.parseUShort();for(var z=W;z<W+H;++z)$+=String.fromCharCode(J.getInt8(z));Q.push($)}return Q}var x$={parse:g$};function b$(J,K,Y,X){var Z=new n.Parser(J,K),Q=X?Z.parseUShort:Z.parseULong,w=[];for(var $=0;$<Y+1;$+=1){var W=Q.call(Z);if(X)W*=2;w.push(W)}return w}var f$={parse:b$};function m$(J,K){var Y={},X=new n.Parser(J,K);if(Y.version=X.parseVersion(),Y.numGlyphs=X.parseUShort(),Y.version===1)Y.maxPoints=X.parseUShort(),Y.maxContours=X.parseUShort(),Y.maxCompositePoints=X.parseUShort(),Y.maxCompositeContours=X.parseUShort(),Y.maxZones=X.parseUShort(),Y.maxTwilightPoints=X.parseUShort(),Y.maxStorage=X.parseUShort(),Y.maxFunctionDefs=X.parseUShort(),Y.maxInstructionDefs=X.parseUShort(),Y.maxStackElements=X.parseUShort(),Y.maxSizeOfInstructions=X.parseUShort(),Y.maxComponentElements=X.parseUShort(),Y.maxComponentDepth=X.parseUShort();return Y}var l$={parse:m$};function c$(J,K){var Y={},X=new n.Parser(J,K);Y.version=X.parseUShort(),Y.xAvgCharWidth=X.parseShort(),Y.usWeightClass=X.parseUShort(),Y.usWidthClass=X.parseUShort(),Y.fsType=X.parseUShort(),Y.ySubscriptXSize=X.parseShort(),Y.ySubscriptYSize=X.parseShort(),Y.ySubscriptXOffset=X.parseShort(),Y.ySubscriptYOffset=X.parseShort(),Y.ySuperscriptXSize=X.parseShort(),Y.ySuperscriptYSize=X.parseShort(),Y.ySuperscriptXOffset=X.parseShort(),Y.ySuperscriptYOffset=X.parseShort(),Y.yStrikeoutSize=X.parseShort(),Y.yStrikeoutPosition=X.parseShort(),Y.sFamilyClass=X.parseShort(),Y.panose=[];for(var Z=0;Z<10;Z++)Y.panose[Z]=X.parseByte();if(Y.ulUnicodeRange1=X.parseULong(),Y.ulUnicodeRange2=X.parseULong(),Y.ulUnicodeRange3=X.parseULong(),Y.ulUnicodeRange4=X.parseULong(),Y.achVendID=String.fromCharCode(X.parseByte(),X.parseByte(),X.parseByte(),X.parseByte()),Y.fsSelection=X.parseUShort(),Y.usFirstCharIndex=X.parseUShort(),Y.usLastCharIndex=X.parseUShort(),Y.sTypoAscender=X.parseShort(),Y.sTypoDescender=X.parseShort(),Y.sTypoLineGap=X.parseShort(),Y.usWinAscent=X.parseUShort(),Y.usWinDescent=X.parseUShort(),Y.version>=1)Y.ulCodePageRange1=X.parseULong(),Y.ulCodePageRange2=X.parseULong();if(Y.version>=2)Y.sxHeight=X.parseShort(),Y.sCapHeight=X.parseShort(),Y.usDefaultChar=X.parseUShort(),Y.usBreakChar=X.parseUShort(),Y.usMaxContent=X.parseUShort();return Y}var d$={parse:c$};function u$(J,K){var Y={},X=new n.Parser(J,K);switch(Y.version=X.parseVersion(),Y.italicAngle=X.parseFixed(),Y.underlinePosition=X.parseShort(),Y.underlineThickness=X.parseShort(),Y.isFixedPitch=X.parseULong(),Y.minMemType42=X.parseULong(),Y.maxMemType42=X.parseULong(),Y.minMemType1=X.parseULong(),Y.maxMemType1=X.parseULong(),Y.names=[],Y.version){case 1:break;case 2:Y.numberOfGlyphs=X.parseUShort(),Y.glyphNameIndex=Array(Y.numberOfGlyphs);for(var Z=0;Z<Y.numberOfGlyphs;Z++)Y.glyphNameIndex[Z]=X.parseUShort();break;case 2.5:Y.numberOfGlyphs=X.parseUShort(),Y.offset=Array(Y.numberOfGlyphs);for(var Q=0;Q<Y.numberOfGlyphs;Q++)Y.offset[Q]=X.parseChar();break}return Y}var p$={parse:u$},T8={};T8.UTF8=function(J,K,Y){var X=[],Z=Y;for(var Q=0;Q<Z;Q++,K+=1)X[Q]=J.getUint8(K);return String.fromCharCode.apply(null,X)};T8.UTF16=function(J,K,Y){var X=[],Z=Y/2;for(var Q=0;Q<Z;Q++,K+=2)X[Q]=J.getUint16(K);return String.fromCharCode.apply(null,X)};var i$={"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"};T8.MACSTRING=function(J,K,Y,X){var Z=i$[X];if(Z===void 0)return;var Q="";for(var w=0;w<Y;w++){var $=J.getUint8(K+w);if($<=127)Q+=String.fromCharCode($);else Q+=Z[$&127]}return Q};function r$(J,K){var Y=new n.Parser(J,K),X=Y.parseULong();z0.argument(X===1,"Unsupported META table version."),Y.parseULong(),Y.parseULong();var Z=Y.parseULong(),Q={};for(var w=0;w<Z;w++){var $=Y.parseTag(),W=Y.parseULong(),H=Y.parseULong(),z=T8.UTF8(J,K+W,H);Q[$]=z}return Q}var n$={parse:r$};function IJ(J,K){var Y=[],X=12;for(var Z=0;Z<K;Z+=1){var Q=n.getTag(J,X),w=n.getULong(J,X+4),$=n.getULong(J,X+8),W=n.getULong(J,X+12);Y.push({tag:Q,checksum:w,offset:$,length:W,compression:!1}),X+=16}return Y}function o$(J,K){var Y=[],X=44;for(var Z=0;Z<K;Z+=1){var Q=n.getTag(J,X),w=n.getULong(J,X+4),$=n.getULong(J,X+8),W=n.getULong(J,X+12),H=void 0;if($<W)H="WOFF";else H=!1;Y.push({tag:Q,offset:w,compression:H,compressedLength:$,length:W}),X+=20}return Y}function R0(J,K){if(K.compression==="WOFF"){var Y=new Uint8Array(J.buffer,K.offset+2,K.compressedLength-2),X=new Uint8Array(K.length);if(GQ(Y,X),X.byteLength!==K.length)throw Error("Decompression error: "+K.tag+" decompressed length doesn't match recorded length");var Z=new DataView(X.buffer,0);return{data:Z,offset:0}}else return{data:J,offset:K.offset}}function s$(J,K){K=K===void 0||K===null?{}:K;var Y,X=new m0({empty:!0}),Z=new DataView(J,0),Q,w=[],$=n.getTag(Z,0);if($===String.fromCharCode(0,1,0,0)||$==="true"||$==="typ1")X.outlinesFormat="truetype",Q=n.getUShort(Z,4),w=IJ(Z,Q);else if($==="OTTO")X.outlinesFormat="cff",Q=n.getUShort(Z,4),w=IJ(Z,Q);else if($==="wOFF"){var W=n.getTag(Z,4);if(W===String.fromCharCode(0,1,0,0))X.outlinesFormat="truetype";else if(W==="OTTO")X.outlinesFormat="cff";else throw Error("Unsupported OpenType flavor "+$);Q=n.getUShort(Z,12),w=o$(Z,Q)}else throw Error("Unsupported OpenType signature "+$);var H,z,U,V,A,L,B,M,O,N,E;for(var D=0;D<Q;D+=1){var F=w[D],j=void 0;switch(F.tag){case"cmap":j=R0(Z,F),X.tables.cmap=nW.parse(j.data,j.offset),X.encoding=new kJ(X.tables.cmap);break;case"cvt ":j=R0(Z,F),E=new n.Parser(j.data,j.offset),X.tables.cvt=E.parseShortList(F.length/2);break;case"fvar":z=F;break;case"fpgm":j=R0(Z,F),E=new n.Parser(j.data,j.offset),X.tables.fpgm=E.parseByteList(F.length);break;case"head":j=R0(Z,F),X.tables.head=D$.parse(j.data,j.offset),X.unitsPerEm=X.tables.head.unitsPerEm,Y=X.tables.head.indexToLocFormat;break;case"hhea":j=R0(Z,F),X.tables.hhea=R$.parse(j.data,j.offset),X.ascender=X.tables.hhea.ascender,X.descender=X.tables.hhea.descender,X.numberOfHMetrics=X.tables.hhea.numberOfHMetrics;break;case"hmtx":B=F;break;case"ltag":j=R0(Z,F),ltagTable=x$.parse(j.data,j.offset);break;case"maxp":j=R0(Z,F),X.tables.maxp=l$.parse(j.data,j.offset),X.numGlyphs=X.tables.maxp.numGlyphs;break;case"OS/2":j=R0(Z,F),X.tables.os2=d$.parse(j.data,j.offset);break;case"post":j=R0(Z,F),X.tables.post=p$.parse(j.data,j.offset);break;case"prep":j=R0(Z,F),E=new n.Parser(j.data,j.offset),X.tables.prep=E.parseByteList(F.length);break;case"glyf":U=F;break;case"loca":O=F;break;case"CFF ":H=F;break;case"kern":M=F;break;case"GDEF":V=F;break;case"GPOS":A=F;break;case"GSUB":L=F;break;case"meta":N=F;break}}if(U&&O){var T=Y===0,I=R0(Z,O),C=f$.parse(I.data,I.offset,X.numGlyphs,T),k=R0(Z,U);X.glyphs=lJ.parse(k.data,k.offset,C,X,K)}else if(H){var d=R0(Z,H);$$.parse(d.data,d.offset,X,K)}else throw Error("Font doesn't contain TrueType or CFF outlines.");var u=R0(Z,B);if(S$.parse(X,u.data,u.offset,X.numberOfHMetrics,X.numGlyphs,X.glyphs,K),FQ(X,K),M){var p=R0(Z,M);X.kerningPairs=k$.parse(p.data,p.offset)}else X.kerningPairs={};if(V){var P=R0(Z,V);X.tables.gdef=O$.parse(P.data,P.offset)}if(A){var S=R0(Z,A);X.tables.gpos=j$.parse(S.data,S.offset),X.position.init()}if(L){var R=R0(Z,L);X.tables.gsub=F$.parse(R.data,R.offset)}if(z){var c=R0(Z,z);X.tables.fvar=V$.parse(c.data,c.offset,X.names)}if(N){var f=R0(Z,N);X.tables.meta=n$.parse(f.data,f.offset),X.metas=X.tables.meta}return X}function a$(){}function t$(){}var e$=Object.freeze({__proto__:null,Font:m0,Glyph:S1,Path:f0,_parse:n,parse:s$,load:a$,loadSync:t$}),C8=e$;var{create:KH,defineProperty:n8,getOwnPropertyDescriptor:YH,getOwnPropertyNames:XH,getPrototypeOf:ZH}=Object,QH=Object.prototype.hasOwnProperty,h4=(J,K)=>()=>(J&&(K=J(J=0)),K),t=(J,K)=>()=>(K||J((K={exports:{}}).exports,K),K.exports),k4=(J,K)=>{for(var Y in K)n8(J,Y,{get:K[Y],enumerable:!0})},FK=(J,K,Y,X)=>{if(K&&typeof K=="object"||typeof K=="function")for(let Z of XH(K))!QH.call(J,Z)&&Z!==Y&&n8(J,Z,{get:()=>K[Z],enumerable:!(X=YH(K,Z))||X.enumerable});return J},wH=(J,K,Y)=>(Y=J!=null?KH(ZH(J)):{},FK(K||!J||!J.__esModule?n8(Y,"default",{value:J,enumerable:!0}):Y,J)),i8=(J)=>FK(n8({},"__esModule",{value:!0}),J),_K={};k4(_K,{getYogaModule:()=>WH});async function WH(){let{default:J}=await import("./chunk-32ct42e2.js");return J()}var $H=h4(()=>{}),DK=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y){if(Y=`${Y}`,Y==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(Y))return Y.replace(/^[+-]?/,(X)=>X==="-"?"":"-");if(Y.includes("var(")||Y.includes("calc("))return`calc(${Y} * -1)`}}),HH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});var K=["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","display","aspectRatio","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","whitespace","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","content"]}),zH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y,X){return Y===void 0?X:Array.isArray(Y)?Y:[...new Set(X.filter((Z)=>Y!==!1&&Y[Z]!==!1).concat(Object.keys(Y).filter((Z)=>Y[Z]!==!1)))]}}),IK=t((J,K)=>{K.exports={content:[],presets:[],darkMode:"media",theme:{screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:({colors:Y})=>({inherit:Y.inherit,current:Y.current,transparent:Y.transparent,black:Y.black,white:Y.white,slate:Y.slate,gray:Y.gray,zinc:Y.zinc,neutral:Y.neutral,stone:Y.stone,red:Y.red,orange:Y.orange,amber:Y.amber,yellow:Y.yellow,lime:Y.lime,green:Y.green,emerald:Y.emerald,teal:Y.teal,cyan:Y.cyan,sky:Y.sky,blue:Y.blue,indigo:Y.indigo,violet:Y.violet,purple:Y.purple,fuchsia:Y.fuchsia,pink:Y.pink,rose:Y.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",0.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:Y})=>Y("blur"),backdropBrightness:({theme:Y})=>Y("brightness"),backdropContrast:({theme:Y})=>Y("contrast"),backdropGrayscale:({theme:Y})=>Y("grayscale"),backdropHueRotate:({theme:Y})=>Y("hueRotate"),backdropInvert:({theme:Y})=>Y("invert"),backdropOpacity:({theme:Y})=>Y("opacity"),backdropSaturate:({theme:Y})=>Y("saturate"),backdropSepia:({theme:Y})=>Y("sepia"),backgroundColor:({theme:Y})=>Y("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:Y})=>Y("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},borderColor:({theme:Y})=>({...Y("colors"),DEFAULT:Y("colors.gray.200","currentColor")}),borderOpacity:({theme:Y})=>Y("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:Y})=>({...Y("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:Y})=>Y("colors"),caretColor:({theme:Y})=>Y("colors"),accentColor:({theme:Y})=>({...Y("colors"),auto:"auto"}),contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},container:{},content:{none:"none"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:Y})=>Y("borderColor"),divideOpacity:({theme:Y})=>Y("borderOpacity"),divideWidth:({theme:Y})=>Y("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:Y})=>Y("colors"),grayscale:{0:"0",DEFAULT:"100%"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{0:"0",DEFAULT:"100%"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:Y})=>({auto:"auto",...Y("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:Y})=>Y("spacing"),gradientColorStops:({theme:Y})=>Y("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-full":"1 / -1"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridTemplateColumns:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))"},height:({theme:Y})=>({auto:"auto",...Y("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),inset:({theme:Y})=>({auto:"auto",...Y("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},margin:({theme:Y})=>({auto:"auto",...Y("spacing")}),maxHeight:({theme:Y})=>({...Y("spacing"),full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:Y,breakpoints:X})=>({none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...X(Y("screens"))}),minHeight:{0:"0px",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},padding:({theme:Y})=>Y("spacing"),placeholderColor:({theme:Y})=>Y("colors"),placeholderOpacity:({theme:Y})=>Y("opacity"),outlineColor:({theme:Y})=>Y("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringColor:({theme:Y})=>({DEFAULT:Y("colors.blue.500","#3b82f6"),...Y("colors")}),ringOffsetColor:({theme:Y})=>Y("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:Y})=>({DEFAULT:"0.5",...Y("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},scrollMargin:({theme:Y})=>({...Y("spacing")}),scrollPadding:({theme:Y})=>Y("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:Y})=>({...Y("spacing")}),stroke:({theme:Y})=>Y("colors"),strokeWidth:{0:"0",1:"1",2:"2"},textColor:({theme:Y})=>Y("colors"),textDecorationColor:({theme:Y})=>Y("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:Y})=>({...Y("spacing")}),textOpacity:({theme:Y})=>Y("opacity"),transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1000:"1000ms"},transitionDuration:{DEFAULT:"150ms",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1000:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:Y})=>({...Y("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),width:({theme:Y})=>({auto:"auto",...Y("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},variantOrder:["first","last","odd","even","visited","checked","empty","read-only","group-hover","group-focus","focus-within","hover","focus","focus-visible","active","disabled"],plugins:[]}}),o8={};k4(o8,{default:()=>RK});var RK,g4=h4(()=>{RK={info(J,K){console.info(...Array.isArray(J)?[J]:[K,J])},warn(J,K){console.warn(...Array.isArray(J)?[J]:[K,J])},risk(J,K){console.error(...Array.isArray(J)?[J]:[K,J])}}}),UH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Z});var K=Y((g4(),i8(o8)));function Y(Q){return Q&&Q.__esModule?Q:{default:Q}}function X({version:Q,from:w,to:$}){K.default.warn(`${w}-color-renamed`,[`As of Tailwind CSS ${Q}, \`${w}\` has been renamed to \`${$}\`.`,"Update your configuration file to silence this warning."])}var Z={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return X({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return X({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return X({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return X({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return X({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}),VH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"defaults",{enumerable:!0,get:()=>K});function K(Y,...X){for(let w of X){for(let $ in w){var Z;!(Y==null||(Z=Y.hasOwnProperty)===null||Z===void 0)&&Z.call(Y,$)||(Y[$]=w[$])}for(let $ of Object.getOwnPropertySymbols(w)){var Q;!(Y==null||(Q=Y.hasOwnProperty)===null||Q===void 0)&&Q.call(Y,$)||(Y[$]=w[$])}}return Y}}),AH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"toPath",{enumerable:!0,get:()=>K});function K(Y){if(Array.isArray(Y))return Y;let X=Y.split("[").length-1,Z=Y.split("]").length-1;if(X!==Z)throw Error(`Path is invalid. Has unbalanced brackets: ${Y}`);return Y.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}}),BH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"normalizeConfig",{enumerable:!0,get:()=>Z});var K=X((g4(),i8(o8)));function Y(Q){if(typeof WeakMap!="function")return null;var w=new WeakMap,$=new WeakMap;return(Y=function(W){return W?$:w})(Q)}function X(Q,w){if(!w&&Q&&Q.__esModule)return Q;if(Q===null||typeof Q!="object"&&typeof Q!="function")return{default:Q};var $=Y(w);if($&&$.has(Q))return $.get(Q);var W={},H=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var z in Q)if(z!=="default"&&Object.prototype.hasOwnProperty.call(Q,z)){var U=H?Object.getOwnPropertyDescriptor(Q,z):null;U&&(U.get||U.set)?Object.defineProperty(W,z,U):W[z]=Q[z]}return W.default=Q,$&&$.set(Q,W),W}function Z(Q){if((()=>{if(Q.purge||!Q.content||!Array.isArray(Q.content)&&!(typeof Q.content=="object"&&Q.content!==null))return!1;if(Array.isArray(Q.content))return Q.content.every(($)=>typeof $=="string"?!0:!(typeof($==null?void 0:$.raw)!="string"||$!=null&&$.extension&&typeof($==null?void 0:$.extension)!="string"));if(typeof Q.content=="object"&&Q.content!==null){if(Object.keys(Q.content).some(($)=>!["files","extract","transform"].includes($)))return!1;if(Array.isArray(Q.content.files)){if(!Q.content.files.every(($)=>typeof $=="string"?!0:!(typeof($==null?void 0:$.raw)!="string"||$!=null&&$.extension&&typeof($==null?void 0:$.extension)!="string")))return!1;if(typeof Q.content.extract=="object"){for(let $ of Object.values(Q.content.extract))if(typeof $!="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 $ of Object.values(Q.content.transform))if(typeof $!="function")return!1}else if(!(Q.content.transform===void 0||typeof Q.content.transform=="function"))return!1}return!0}return!1})()||K.default.warn("purge-deprecation",["The `purge`/`content` options have changed in Tailwind CSS v3.0.","Update your configuration file to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]),Q.safelist=(()=>{var $;let{content:W,purge:H,safelist:z}=Q;return Array.isArray(z)?z:Array.isArray(W==null?void 0:W.safelist)?W.safelist:Array.isArray(H==null?void 0:H.safelist)?H.safelist:Array.isArray(H==null||($=H.options)===null||$===void 0?void 0:$.safelist)?H.options.safelist:[]})(),typeof Q.prefix=="function")K.default.warn("prefix-function",["As of Tailwind CSS v3.0, `prefix` cannot be a function.","Update `prefix` in your configuration to be a string to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]),Q.prefix="";else{var w;Q.prefix=(w=Q.prefix)!==null&&w!==void 0?w:""}Q.content={files:(()=>{let{content:$,purge:W}=Q;return Array.isArray(W)?W:Array.isArray(W==null?void 0:W.content)?W.content:Array.isArray($)?$:Array.isArray($==null?void 0:$.content)?$.content:Array.isArray($==null?void 0:$.files)?$.files:[]})(),extract:(()=>{let $=(()=>{var z,U,V,A,L,B,M,O,N,E;return!((z=Q.purge)===null||z===void 0)&&z.extract?Q.purge.extract:!((U=Q.content)===null||U===void 0)&&U.extract?Q.content.extract:!((V=Q.purge)===null||V===void 0||(A=V.extract)===null||A===void 0)&&A.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:!((M=Q.purge)===null||M===void 0||(O=M.options)===null||O===void 0)&&O.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:{}})(),W={},H=(()=>{var z,U,V,A;if(!((z=Q.purge)===null||z===void 0||(U=z.options)===null||U===void 0)&&U.defaultExtractor)return Q.purge.options.defaultExtractor;if(!((V=Q.content)===null||V===void 0||(A=V.options)===null||A===void 0)&&A.defaultExtractor)return Q.content.options.defaultExtractor})();if(H!==void 0&&(W.DEFAULT=H),typeof $=="function")W.DEFAULT=$;else if(Array.isArray($))for(let{extensions:z,extractor:U}of $??[])for(let V of z)W[V]=U;else typeof $=="object"&&$!==null&&Object.assign(W,$);return W})(),transform:(()=>{let $=(()=>{var H,z,U,V,A,L;return!((H=Q.purge)===null||H===void 0)&&H.transform?Q.purge.transform:!((z=Q.content)===null||z===void 0)&&z.transform?Q.content.transform:!((U=Q.purge)===null||U===void 0||(V=U.transform)===null||V===void 0)&&V.DEFAULT?Q.purge.transform.DEFAULT:!((A=Q.content)===null||A===void 0||(L=A.transform)===null||L===void 0)&&L.DEFAULT?Q.content.transform.DEFAULT:{}})(),W={};return typeof $=="function"&&(W.DEFAULT=$),typeof $=="object"&&$!==null&&Object.assign(W,$),W})()};for(let $ of Q.content.files)if(typeof $=="string"&&/{([^,]*?)}/g.test($)){K.default.warn("invalid-glob-braces",[`The glob pattern ${(0,K.dim)($)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,K.dim)($.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return Q}}),GH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y){if(Object.prototype.toString.call(Y)!=="[object Object]")return!1;let X=Object.getPrototypeOf(Y);return X===null||X===Object.prototype}}),MH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"cloneDeep",{enumerable:!0,get:()=>K});function K(Y){return Array.isArray(Y)?Y.map((X)=>K(X)):typeof Y=="object"&&Y!==null?Object.fromEntries(Object.entries(Y).map(([X,Z])=>[X,K(Z)])):Y}}),TK=t((J,K)=>{J.__esModule=!0,J.default=Z;function Y(Q){for(var w=Q.toLowerCase(),$="",W=!1,H=0;H<6&&w[H]!==void 0;H++){var z=w.charCodeAt(H),U=z>=97&&z<=102||z>=48&&z<=57;if(W=z===32,!U)break;$+=w[H]}if($.length!==0){var V=parseInt($,16),A=V>=55296&&V<=57343;return A||V===0||V>1114111?["\uFFFD",$.length+(W?1:0)]:[String.fromCodePoint(V),$.length+(W?1:0)]}}var X=/\\/;function Z(Q){var w=X.test(Q);if(!w)return Q;for(var $="",W=0;W<Q.length;W++){if(Q[W]==="\\"){var H=Y(Q.slice(W+1,W+7));if(H!==void 0){$+=H[0],W+=H[1];continue}if(Q[W+1]==="\\"){$+="\\",W++;continue}Q.length===W+1&&($+=Q[W]);continue}$+=Q[W]}return $}K.exports=J.default}),LH=t((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){for(var Z=arguments.length,Q=Array(Z>1?Z-1:0),w=1;w<Z;w++)Q[w-1]=arguments[w];for(;Q.length>0;){var $=Q.shift();if(!X[$])return;X=X[$]}return X}K.exports=J.default}),qH=t((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){for(var Z=arguments.length,Q=Array(Z>1?Z-1:0),w=1;w<Z;w++)Q[w-1]=arguments[w];for(;Q.length>0;){var $=Q.shift();X[$]||(X[$]={}),X=X[$]}}K.exports=J.default}),OH=t((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){for(var Z="",Q=X.indexOf("/*"),w=0;Q>=0;){Z=Z+X.slice(w,Q);var $=X.indexOf("*/",Q+2);if($<0)return Z;w=$+2,Q=X.indexOf("/*",w)}return Z=Z+X.slice(w),Z}K.exports=J.default}),s8=t((J)=>{J.__esModule=!0,J.stripComments=J.ensureObject=J.getProp=J.unesc=void 0;var K=Q(TK());J.unesc=K.default;var Y=Q(LH());J.getProp=Y.default;var X=Q(qH());J.ensureObject=X.default;var Z=Q(OH());J.stripComments=Z.default;function Q(w){return w&&w.__esModule?w:{default:w}}}),n1=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=s8();function X($,W){for(var H=0;H<W.length;H++){var z=W[H];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty($,z.key,z)}}function Z($,W,H){return W&&X($.prototype,W),H&&X($,H),$}var Q=function $(W,H){if(typeof W!="object"||W===null)return W;var z=new W.constructor;for(var U in W)if(W.hasOwnProperty(U)){var V=W[U],A=typeof V;U==="parent"&&A==="object"?H&&(z[U]=H):V instanceof Array?z[U]=V.map(function(L){return $(L,z)}):z[U]=$(V,z)}return z},w=function(){function $(H){H===void 0&&(H={}),Object.assign(this,H),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var W=$.prototype;return W.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},W.replaceWith=function(){if(this.parent){for(var H in arguments)this.parent.insertBefore(this,arguments[H]);this.remove()}return this},W.next=function(){return this.parent.at(this.parent.index(this)+1)},W.prev=function(){return this.parent.at(this.parent.index(this)-1)},W.clone=function(H){H===void 0&&(H={});var z=Q(this);for(var U in H)z[U]=H[U];return z},W.appendToPropertyAndEscape=function(H,z,U){this.raws||(this.raws={});var V=this[H],A=this.raws[H];this[H]=V+z,A||U!==z?this.raws[H]=(A||V)+U:delete this.raws[H]},W.setPropertyAndEscape=function(H,z,U){this.raws||(this.raws={}),this[H]=z,this.raws[H]=U},W.setPropertyWithoutEscape=function(H,z){this[H]=z,this.raws&&delete this.raws[H]},W.isAtPosition=function(H,z){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>H||this.source.end.line<H||this.source.start.line===H&&this.source.start.column>z||this.source.end.line===H&&this.source.end.column<z)},W.stringifyProperty=function(H){return this.raws&&this.raws[H]||this[H]},W.valueToString=function(){return String(this.stringifyProperty("value"))},W.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},Z($,[{key:"rawSpaceBefore",get:function(){var H=this.raws&&this.raws.spaces&&this.raws.spaces.before;return H===void 0&&(H=this.spaces&&this.spaces.before),H||""},set:function(H){(0,Y.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=H}},{key:"rawSpaceAfter",get:function(){var H=this.raws&&this.raws.spaces&&this.raws.spaces.after;return H===void 0&&(H=this.spaces.after),H||""},set:function(H){(0,Y.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=H}}]),$}();J.default=w,K.exports=J.default}),l0=t((J)=>{J.__esModule=!0,J.UNIVERSAL=J.ATTRIBUTE=J.CLASS=J.COMBINATOR=J.COMMENT=J.ID=J.NESTING=J.PSEUDO=J.ROOT=J.SELECTOR=J.STRING=J.TAG=void 0;var K="tag";J.TAG=K;var Y="string";J.STRING=Y;var X="selector";J.SELECTOR=X;var Z="root";J.ROOT=Z;var Q="pseudo";J.PSEUDO=Q;var w="nesting";J.NESTING=w;var $="id";J.ID=$;var W="comment";J.COMMENT=W;var H="combinator";J.COMBINATOR=H;var z="class";J.CLASS=z;var U="attribute";J.ATTRIBUTE=U;var V="universal";J.UNIVERSAL=V}),x4=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=w(n1()),X=Q(l0());function Z(){if(typeof WeakMap!="function")return null;var B=new WeakMap;return Z=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 M=Z();if(M&&M.has(B))return M.get(B);var O={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in B)if(Object.prototype.hasOwnProperty.call(B,E)){var D=N?Object.getOwnPropertyDescriptor(B,E):null;D&&(D.get||D.set)?Object.defineProperty(O,E,D):O[E]=B[E]}return O.default=B,M&&M.set(B,O),O}function w(B){return B&&B.__esModule?B:{default:B}}function $(B,M){var O;if(typeof Symbol>"u"||B[Symbol.iterator]==null){if(Array.isArray(B)||(O=W(B))||M&&B&&typeof B.length=="number"){O&&(B=O);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 O=B[Symbol.iterator](),O.next.bind(O)}function W(B,M){if(B){if(typeof B=="string")return H(B,M);var O=Object.prototype.toString.call(B).slice(8,-1);if(O==="Object"&&B.constructor&&(O=B.constructor.name),O==="Map"||O==="Set")return Array.from(B);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return H(B,M)}}function H(B,M){(M==null||M>B.length)&&(M=B.length);for(var O=0,N=Array(M);O<M;O++)N[O]=B[O];return N}function z(B,M){for(var O=0;O<M.length;O++){var N=M[O];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(B,N.key,N)}}function U(B,M,O){return M&&z(B.prototype,M),O&&z(B,O),B}function V(B,M){B.prototype=Object.create(M.prototype),B.prototype.constructor=B,A(B,M)}function A(B,M){return A=Object.setPrototypeOf||function(O,N){return O.__proto__=N,O},A(B,M)}var L=function(B){V(M,B);function M(N){var E;return E=B.call(this,N)||this,E.nodes||(E.nodes=[]),E}var O=M.prototype;return O.append=function(N){return N.parent=this,this.nodes.push(N),this},O.prepend=function(N){return N.parent=this,this.nodes.unshift(N),this},O.at=function(N){return this.nodes[N]},O.index=function(N){return typeof N=="number"?N:this.nodes.indexOf(N)},O.removeChild=function(N){N=this.index(N),this.at(N).parent=void 0,this.nodes.splice(N,1);var E;for(var D in this.indexes)E=this.indexes[D],E>=N&&(this.indexes[D]=E-1);return this},O.removeAll=function(){for(var N=$(this.nodes),E;!(E=N()).done;){var D=E.value;D.parent=void 0}return this.nodes=[],this},O.empty=function(){return this.removeAll()},O.insertAfter=function(N,E){E.parent=this;var D=this.index(N);this.nodes.splice(D+1,0,E),E.parent=this;var F;for(var j in this.indexes)F=this.indexes[j],D<=F&&(this.indexes[j]=F+1);return this},O.insertBefore=function(N,E){E.parent=this;var D=this.index(N);this.nodes.splice(D,0,E),E.parent=this;var F;for(var j in this.indexes)F=this.indexes[j],F<=D&&(this.indexes[j]=F+1);return this},O._findChildAtPosition=function(N,E){var D=void 0;return this.each(function(F){if(F.atPosition){var j=F.atPosition(N,E);if(j)return D=j,!1}else if(F.isAtPosition(N,E))return D=F,!1}),D},O.atPosition=function(N,E){if(this.isAtPosition(N,E))return this._findChildAtPosition(N,E)||this},O._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},O.each=function(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 D,F;this.indexes[E]<this.length&&(D=this.indexes[E],F=N(this.at(D),D),F!==!1);)this.indexes[E]+=1;if(delete this.indexes[E],F===!1)return!1}},O.walk=function(N){return this.each(function(E,D){var F=N(E,D);if(F!==!1&&E.length&&(F=E.walk(N)),F===!1)return!1})},O.walkAttributes=function(N){var E=this;return this.walk(function(D){if(D.type===X.ATTRIBUTE)return N.call(E,D)})},O.walkClasses=function(N){var E=this;return this.walk(function(D){if(D.type===X.CLASS)return N.call(E,D)})},O.walkCombinators=function(N){var E=this;return this.walk(function(D){if(D.type===X.COMBINATOR)return N.call(E,D)})},O.walkComments=function(N){var E=this;return this.walk(function(D){if(D.type===X.COMMENT)return N.call(E,D)})},O.walkIds=function(N){var E=this;return this.walk(function(D){if(D.type===X.ID)return N.call(E,D)})},O.walkNesting=function(N){var E=this;return this.walk(function(D){if(D.type===X.NESTING)return N.call(E,D)})},O.walkPseudos=function(N){var E=this;return this.walk(function(D){if(D.type===X.PSEUDO)return N.call(E,D)})},O.walkTags=function(N){var E=this;return this.walk(function(D){if(D.type===X.TAG)return N.call(E,D)})},O.walkUniversals=function(N){var E=this;return this.walk(function(D){if(D.type===X.UNIVERSAL)return N.call(E,D)})},O.split=function(N){var E=this,D=[];return this.reduce(function(F,j,T){var I=N.call(E,j);return D.push(j),I?(F.push(D),D=[]):T===E.length-1&&F.push(D),F},[])},O.map=function(N){return this.nodes.map(N)},O.reduce=function(N,E){return this.nodes.reduce(N,E)},O.every=function(N){return this.nodes.every(N)},O.some=function(N){return this.nodes.some(N)},O.filter=function(N){return this.nodes.filter(N)},O.sort=function(N){return this.nodes.sort(N)},O.toString=function(){return this.map(String).join("")},U(M,[{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}}]),M}(Y.default);J.default=L,K.exports=J.default}),CK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(x4()),X=l0();function Z(z){return z&&z.__esModule?z:{default:z}}function Q(z,U){for(var V=0;V<U.length;V++){var A=U[V];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(z,A.key,A)}}function w(z,U,V){return U&&Q(z.prototype,U),V&&Q(z,V),z}function $(z,U){z.prototype=Object.create(U.prototype),z.prototype.constructor=z,W(z,U)}function W(z,U){return W=Object.setPrototypeOf||function(V,A){return V.__proto__=A,V},W(z,U)}var H=function(z){$(U,z);function U(A){var L;return L=z.call(this,A)||this,L.type=X.ROOT,L}var V=U.prototype;return V.toString=function(){var A=this.reduce(function(L,B){return L.push(String(B)),L},[]).join(",");return this.trailingComma?A+",":A},V.error=function(A,L){return this._error?this._error(A,L):Error(A)},w(U,[{key:"errorGenerator",set:function(A){this._error=A}}]),U}(Y.default);J.default=H,K.exports=J.default}),PK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(x4()),X=l0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,H){W.prototype=Object.create(H.prototype),W.prototype.constructor=W,w(W,H)}function w(W,H){return w=Object.setPrototypeOf||function(z,U){return z.__proto__=U,z},w(W,H)}var $=function(W){Q(H,W);function H(z){var U;return U=W.call(this,z)||this,U.type=X.SELECTOR,U}return H}(Y.default);J.default=$,K.exports=J.default}),b4=t((J,K)=>{var Y={},X=Y.hasOwnProperty,Z=function(H,z){if(!H)return z;var U={};for(var V in z)U[V]=X.call(H,V)?H[V]:z[V];return U},Q=/[ -,\.\/:-@\[-\^`\{-~]/,w=/[ -,\.\/:-@\[\]\^`\{-~]/,$=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,W=function H(z,U){U=Z(U,H.options),U.quotes!="single"&&U.quotes!="double"&&(U.quotes="single");for(var V=U.quotes=="double"?'"':"'",A=U.isIdentifier,L=z.charAt(0),B="",M=0,O=z.length;M<O;){var N=z.charAt(M++),E=N.charCodeAt(),D=void 0;if(E<32||E>126){if(E>=55296&&E<=56319&&M<O){var F=z.charCodeAt(M++);(F&64512)==56320?E=((E&1023)<<10)+(F&1023)+65536:M--}D="\\"+E.toString(16).toUpperCase()+" "}else U.escapeEverything?Q.test(N)?D="\\"+N:D="\\"+E.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(N)?D="\\"+E.toString(16).toUpperCase()+" ":N=="\\"||!A&&(N=='"'&&V==N||N=="'"&&V==N)||A&&w.test(N)?D="\\"+N:D=N;B+=D}return A&&(/^-[-\d]/.test(B)?B="\\-"+B.slice(1):/\d/.test(L)&&(B="\\3"+L+" "+B.slice(1))),B=B.replace($,function(j,T,I){return T&&T.length%2?j:(T||"")+I}),!A&&U.wrap?V+B+V:B};W.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},W.version="3.0.0",K.exports=W}),SK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=w(b4()),X=s8(),Z=w(n1()),Q=l0();function w(V){return V&&V.__esModule?V:{default:V}}function $(V,A){for(var L=0;L<A.length;L++){var B=A[L];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(V,B.key,B)}}function W(V,A,L){return A&&$(V.prototype,A),L&&$(V,L),V}function H(V,A){V.prototype=Object.create(A.prototype),V.prototype.constructor=V,z(V,A)}function z(V,A){return z=Object.setPrototypeOf||function(L,B){return L.__proto__=B,L},z(V,A)}var U=function(V){H(A,V);function A(B){var M;return M=V.call(this,B)||this,M.type=Q.CLASS,M._constructed=!0,M}var L=A.prototype;return L.valueToString=function(){return"."+V.prototype.valueToString.call(this)},W(A,[{key:"value",get:function(){return this._value},set:function(B){if(this._constructed){var M=(0,Y.default)(B,{isIdentifier:!0});M!==B?((0,X.ensureObject)(this,"raws"),this.raws.value=M):this.raws&&delete this.raws.value}this._value=B}}]),A}(Z.default);J.default=U,K.exports=J.default}),vK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(n1()),X=l0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,H){W.prototype=Object.create(H.prototype),W.prototype.constructor=W,w(W,H)}function w(W,H){return w=Object.setPrototypeOf||function(z,U){return z.__proto__=U,z},w(W,H)}var $=function(W){Q(H,W);function H(z){var U;return U=W.call(this,z)||this,U.type=X.COMMENT,U}return H}(Y.default);J.default=$,K.exports=J.default}),yK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(n1()),X=l0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,H){W.prototype=Object.create(H.prototype),W.prototype.constructor=W,w(W,H)}function w(W,H){return w=Object.setPrototypeOf||function(z,U){return z.__proto__=U,z},w(W,H)}var $=function(W){Q(H,W);function H(U){var V;return V=W.call(this,U)||this,V.type=X.ID,V}var z=H.prototype;return z.valueToString=function(){return"#"+W.prototype.valueToString.call(this)},H}(Y.default);J.default=$,K.exports=J.default}),f4=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Q(b4()),X=s8(),Z=Q(n1());function Q(U){return U&&U.__esModule?U:{default:U}}function w(U,V){for(var A=0;A<V.length;A++){var L=V[A];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(U,L.key,L)}}function $(U,V,A){return V&&w(U.prototype,V),A&&w(U,A),U}function W(U,V){U.prototype=Object.create(V.prototype),U.prototype.constructor=U,H(U,V)}function H(U,V){return H=Object.setPrototypeOf||function(A,L){return A.__proto__=L,A},H(U,V)}var z=function(U){W(V,U);function V(){return U.apply(this,arguments)||this}var A=V.prototype;return A.qualifiedName=function(L){return this.namespace?this.namespaceString+"|"+L:L},A.valueToString=function(){return this.qualifiedName(U.prototype.valueToString.call(this))},$(V,[{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,Y.default)(L,{isIdentifier:!0});this._namespace=L,B!==L?((0,X.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""}}]),V}(Z.default);J.default=z,K.exports=J.default}),hK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(f4()),X=l0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,H){W.prototype=Object.create(H.prototype),W.prototype.constructor=W,w(W,H)}function w(W,H){return w=Object.setPrototypeOf||function(z,U){return z.__proto__=U,z},w(W,H)}var $=function(W){Q(H,W);function H(z){var U;return U=W.call(this,z)||this,U.type=X.TAG,U}return H}(Y.default);J.default=$,K.exports=J.default}),kK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(n1()),X=l0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,H){W.prototype=Object.create(H.prototype),W.prototype.constructor=W,w(W,H)}function w(W,H){return w=Object.setPrototypeOf||function(z,U){return z.__proto__=U,z},w(W,H)}var $=function(W){Q(H,W);function H(z){var U;return U=W.call(this,z)||this,U.type=X.STRING,U}return H}(Y.default);J.default=$,K.exports=J.default}),gK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(x4()),X=l0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,H){W.prototype=Object.create(H.prototype),W.prototype.constructor=W,w(W,H)}function w(W,H){return w=Object.setPrototypeOf||function(z,U){return z.__proto__=U,z},w(W,H)}var $=function(W){Q(H,W);function H(U){var V;return V=W.call(this,U)||this,V.type=X.PSEUDO,V}var z=H.prototype;return z.toString=function(){var U=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),U,this.rawSpaceAfter].join("")},H}(Y.default);J.default=$,K.exports=J.default}),NH=t((J,K)=>{K.exports=function(Y,X){return function(...Z){return console.warn(X),Y(...Z)}}}),xK=t((J)=>{J.__esModule=!0,J.unescapeValue=M,J.default=void 0;var K=w(b4()),Y=w(TK()),X=w(f4()),Z=l0(),Q;function w(F){return F&&F.__esModule?F:{default:F}}function $(F,j){for(var T=0;T<j.length;T++){var I=j[T];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(F,I.key,I)}}function W(F,j,T){return j&&$(F.prototype,j),T&&$(F,T),F}function H(F,j){F.prototype=Object.create(j.prototype),F.prototype.constructor=F,z(F,j)}function z(F,j){return z=Object.setPrototypeOf||function(T,I){return T.__proto__=I,T},z(F,j)}var U=NH(),V=/^('|")([^]*)\1$/,A=U(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),L=U(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),B=U(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function M(F){var j=!1,T=null,I=F,C=I.match(V);return C&&(T=C[1],I=C[2]),I=(0,Y.default)(I),I!==F&&(j=!0),{deprecatedUsage:j,unescaped:I,quoteMark:T}}function O(F){if(F.quoteMark!==void 0||F.value===void 0)return F;B();var j=M(F.value),T=j.quoteMark,I=j.unescaped;return F.raws||(F.raws={}),F.raws.value===void 0&&(F.raws.value=F.value),F.value=I,F.quoteMark=T,F}var N=function(F){H(j,F);function j(I){var C;return I===void 0&&(I={}),C=F.call(this,O(I))||this,C.type=Z.ATTRIBUTE,C.raws=C.raws||{},Object.defineProperty(C.raws,"unquoted",{get:U(function(){return C.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:U(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(I){I===void 0&&(I={});var C=this._determineQuoteMark(I),k=E[C],d=(0,K.default)(this._value,k);return d},T._determineQuoteMark=function(I){return I.smart?this.smartQuoteMark(I):this.preferredQuoteMark(I)},T.setValue=function(I,C){C===void 0&&(C={}),this._value=I,this._quoteMark=this._determineQuoteMark(C),this._syncRawValue()},T.smartQuoteMark=function(I){var C=this.value,k=C.replace(/[^']/g,"").length,d=C.replace(/[^"]/g,"").length;if(k+d===0){var u=(0,K.default)(C,{isIdentifier:!0});if(u===C)return j.NO_QUOTE;var p=this.preferredQuoteMark(I);if(p===j.NO_QUOTE){var P=this.quoteMark||I.quoteMark||j.DOUBLE_QUOTE,S=E[P],R=(0,K.default)(C,S);if(R.length<u.length)return P}return p}else return d===k?this.preferredQuoteMark(I):d<k?j.DOUBLE_QUOTE:j.SINGLE_QUOTE},T.preferredQuoteMark=function(I){var C=I.preferCurrentQuoteMark?this.quoteMark:I.quoteMark;return C===void 0&&(C=I.preferCurrentQuoteMark?I.quoteMark:this.quoteMark),C===void 0&&(C=j.DOUBLE_QUOTE),C},T._syncRawValue=function(){var I=(0,K.default)(this._value,E[this.quoteMark]);I===this._value?this.raws&&delete this.raws.value:this.raws.value=I},T._handleEscapes=function(I,C){if(this._constructed){var k=(0,K.default)(C,{isIdentifier:!0});k!==C?this.raws[I]=k:delete this.raws[I]}},T._spacesFor=function(I){var C={before:"",after:""},k=this.spaces[I]||{},d=this.raws.spaces&&this.raws.spaces[I]||{};return Object.assign(C,k,d)},T._stringFor=function(I,C,k){C===void 0&&(C=I),k===void 0&&(k=D);var d=this._spacesFor(C);return k(this.stringifyProperty(I),d)},T.offsetOf=function(I){var C=1,k=this._spacesFor("attribute");if(C+=k.before.length,I==="namespace"||I==="ns")return this.namespace?C:-1;if(I==="attributeNS"||(C+=this.namespaceString.length,this.namespace&&(C+=1),I==="attribute"))return C;C+=this.stringifyProperty("attribute").length,C+=k.after.length;var d=this._spacesFor("operator");C+=d.before.length;var u=this.stringifyProperty("operator");if(I==="operator")return u?C:-1;C+=u.length,C+=d.after.length;var p=this._spacesFor("value");C+=p.before.length;var P=this.stringifyProperty("value");if(I==="value")return P?C:-1;C+=P.length,C+=p.after.length;var S=this._spacesFor("insensitive");return C+=S.before.length,I==="insensitive"&&this.insensitive?C:-1},T.toString=function(){var I=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(k,d){return k.length>0&&!I.quoted&&d.before.length===0&&!(I.spaces.value&&I.spaces.value.after)&&(d.before=" "),D(k,d)}))),C.push("]"),C.push(this.rawSpaceAfter),C.join("")},W(j,[{key:"quoted",get:function(){var I=this.quoteMark;return I==="'"||I==='"'},set:function(I){L()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(I){if(!this._constructed){this._quoteMark=I;return}this._quoteMark!==I&&(this._quoteMark=I,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(I){if(this._constructed){var C=M(I),k=C.deprecatedUsage,d=C.unescaped,u=C.quoteMark;if(k&&A(),d===this._value&&u===this._quoteMark)return;this._value=d,this._quoteMark=u,this._syncRawValue()}else this._value=I}},{key:"attribute",get:function(){return this._attribute},set:function(I){this._handleEscapes("attribute",I),this._attribute=I}}]),j}(X.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 D(F,j){return""+j.before+F+j.after}}),bK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(f4()),X=l0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,H){W.prototype=Object.create(H.prototype),W.prototype.constructor=W,w(W,H)}function w(W,H){return w=Object.setPrototypeOf||function(z,U){return z.__proto__=U,z},w(W,H)}var $=function(W){Q(H,W);function H(z){var U;return U=W.call(this,z)||this,U.type=X.UNIVERSAL,U.value="*",U}return H}(Y.default);J.default=$,K.exports=J.default}),fK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(n1()),X=l0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,H){W.prototype=Object.create(H.prototype),W.prototype.constructor=W,w(W,H)}function w(W,H){return w=Object.setPrototypeOf||function(z,U){return z.__proto__=U,z},w(W,H)}var $=function(W){Q(H,W);function H(z){var U;return U=W.call(this,z)||this,U.type=X.COMBINATOR,U}return H}(Y.default);J.default=$,K.exports=J.default}),mK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(n1()),X=l0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,H){W.prototype=Object.create(H.prototype),W.prototype.constructor=W,w(W,H)}function w(W,H){return w=Object.setPrototypeOf||function(z,U){return z.__proto__=U,z},w(W,H)}var $=function(W){Q(H,W);function H(z){var U;return U=W.call(this,z)||this,U.type=X.NESTING,U.value="&",U}return H}(Y.default);J.default=$,K.exports=J.default}),jH=t((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){return X.sort(function(Z,Q){return Z-Q})}K.exports=J.default}),lK=t((J)=>{J.__esModule=!0,J.combinator=J.word=J.comment=J.str=J.tab=J.newline=J.feed=J.cr=J.backslash=J.bang=J.slash=J.doubleQuote=J.singleQuote=J.space=J.greaterThan=J.pipe=J.equals=J.plus=J.caret=J.tilde=J.dollar=J.closeSquare=J.openSquare=J.closeParenthesis=J.openParenthesis=J.semicolon=J.colon=J.comma=J.at=J.asterisk=J.ampersand=void 0;var K=38;J.ampersand=K;var Y=42;J.asterisk=Y;var X=64;J.at=X;var Z=44;J.comma=Z;var Q=58;J.colon=Q;var w=59;J.semicolon=w;var $=40;J.openParenthesis=$;var W=41;J.closeParenthesis=W;var H=91;J.openSquare=H;var z=93;J.closeSquare=z;var U=36;J.dollar=U;var V=126;J.tilde=V;var A=94;J.caret=A;var L=43;J.plus=L;var B=61;J.equals=B;var M=124;J.pipe=M;var O=62;J.greaterThan=O;var N=32;J.space=N;var E=39;J.singleQuote=E;var D=34;J.doubleQuote=D;var F=47;J.slash=F;var j=33;J.bang=j;var T=92;J.backslash=T;var I=13;J.cr=I;var C=12;J.feed=C;var k=10;J.newline=k;var d=9;J.tab=d;var u=E;J.str=u;var p=-1;J.comment=p;var P=-2;J.word=P;var S=-3;J.combinator=S}),EH=t((J)=>{J.__esModule=!0,J.default=L,J.FIELDS=void 0;var K=Q(lK()),Y,X;function Z(){if(typeof WeakMap!="function")return null;var B=new WeakMap;return Z=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 M=Z();if(M&&M.has(B))return M.get(B);var O={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in B)if(Object.prototype.hasOwnProperty.call(B,E)){var D=N?Object.getOwnPropertyDescriptor(B,E):null;D&&(D.get||D.set)?Object.defineProperty(O,E,D):O[E]=B[E]}return O.default=B,M&&M.set(B,O),O}var w=(Y={},Y[K.tab]=!0,Y[K.newline]=!0,Y[K.cr]=!0,Y[K.feed]=!0,Y),$=(X={},X[K.space]=!0,X[K.tab]=!0,X[K.newline]=!0,X[K.cr]=!0,X[K.feed]=!0,X[K.ampersand]=!0,X[K.asterisk]=!0,X[K.bang]=!0,X[K.comma]=!0,X[K.colon]=!0,X[K.semicolon]=!0,X[K.openParenthesis]=!0,X[K.closeParenthesis]=!0,X[K.openSquare]=!0,X[K.closeSquare]=!0,X[K.singleQuote]=!0,X[K.doubleQuote]=!0,X[K.plus]=!0,X[K.pipe]=!0,X[K.tilde]=!0,X[K.greaterThan]=!0,X[K.equals]=!0,X[K.dollar]=!0,X[K.caret]=!0,X[K.slash]=!0,X),W={},H="0123456789abcdefABCDEF";for(z=0;z<H.length;z++)W[H.charCodeAt(z)]=!0;var z;function U(B,M){var O=M,N;do{if(N=B.charCodeAt(O),$[N])return O-1;N===K.backslash?O=V(B,O)+1:O++}while(O<B.length);return O-1}function V(B,M){var O=M,N=B.charCodeAt(O+1);if(!w[N])if(W[N]){var E=0;do O++,E++,N=B.charCodeAt(O+1);while(W[N]&&E<6);E<6&&N===K.space&&O++}else O++;return O}var A={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};J.FIELDS=A;function L(B){var M=[],O=B.css.valueOf(),N=O,E=N.length,D=-1,F=1,j=0,T=0,I,C,k,d,u,p,P,S,R,c,f,o,i;function m(l,y){if(B.safe)O+=y,R=O.length-1;else throw B.error("Unclosed "+l,F,j-D,j)}for(;j<E;){switch(I=O.charCodeAt(j),I===K.newline&&(D=j,F+=1),I){case K.space:case K.tab:case K.newline:case K.cr:case K.feed:R=j;do R+=1,I=O.charCodeAt(R),I===K.newline&&(D=R,F+=1);while(I===K.space||I===K.newline||I===K.tab||I===K.cr||I===K.feed);i=K.space,d=F,k=R-D-1,T=R;break;case K.plus:case K.greaterThan:case K.tilde:case K.pipe:R=j;do R+=1,I=O.charCodeAt(R);while(I===K.plus||I===K.greaterThan||I===K.tilde||I===K.pipe);i=K.combinator,d=F,k=j-D,T=R;break;case K.asterisk:case K.ampersand:case K.bang:case K.comma:case K.equals:case K.dollar:case K.caret:case K.openSquare:case K.closeSquare:case K.colon:case K.semicolon:case K.openParenthesis:case K.closeParenthesis:R=j,i=I,d=F,k=j-D,T=R+1;break;case K.singleQuote:case K.doubleQuote:o=I===K.singleQuote?"'":'"',R=j;do for(u=!1,R=O.indexOf(o,R+1),R===-1&&m("quote",o),p=R;O.charCodeAt(p-1)===K.backslash;)p-=1,u=!u;while(u);i=K.str,d=F,k=j-D,T=R+1;break;default:I===K.slash&&O.charCodeAt(j+1)===K.asterisk?(R=O.indexOf("*/",j+2)+1,R===0&&m("comment","*/"),C=O.slice(j,R+1),S=C.split(`
63
+ `),P=S.length-1,P>0?(c=F+P,f=R-S[P].length):(c=F,f=D),i=K.comment,F=c,d=c,k=R-f):I===K.slash?(R=j,i=I,d=F,k=j-D,T=R+1):(R=U(O,j),i=K.word,d=F,k=R-D),T=R+1;break}M.push([i,F,j-D,d,k,j,T]),f&&(D=f,f=null),j=T}return M}}),FH=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=T(CK()),X=T(PK()),Z=T(SK()),Q=T(vK()),w=T(yK()),$=T(hK()),W=T(kK()),H=T(gK()),z=j(xK()),U=T(bK()),V=T(fK()),A=T(mK()),L=T(jH()),B=j(EH()),M=j(lK()),O=j(l0()),N=s8(),E,D;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 l=F();if(l&&l.has(m))return l.get(m);var y={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in m)if(Object.prototype.hasOwnProperty.call(m,s)){var g=h?Object.getOwnPropertyDescriptor(m,s):null;g&&(g.get||g.set)?Object.defineProperty(y,s,g):y[s]=m[s]}return y.default=m,l&&l.set(m,y),y}function T(m){return m&&m.__esModule?m:{default:m}}function I(m,l){for(var y=0;y<l.length;y++){var h=l[y];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(m,h.key,h)}}function C(m,l,y){return l&&I(m.prototype,l),y&&I(m,y),m}var k=(E={},E[M.space]=!0,E[M.cr]=!0,E[M.feed]=!0,E[M.newline]=!0,E[M.tab]=!0,E),d=Object.assign({},k,(D={},D[M.comment]=!0,D));function u(m){return{line:m[B.FIELDS.START_LINE],column:m[B.FIELDS.START_COL]}}function p(m){return{line:m[B.FIELDS.END_LINE],column:m[B.FIELDS.END_COL]}}function P(m,l,y,h){return{start:{line:m,column:l},end:{line:y,column:h}}}function S(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,l){if(m)return P(m[B.FIELDS.START_LINE],m[B.FIELDS.START_COL],l[B.FIELDS.END_LINE],l[B.FIELDS.END_COL])}function c(m,l){var y=m[l];if(typeof y=="string")return y.indexOf("\\")!==-1&&((0,N.ensureObject)(m,"raws"),m[l]=(0,N.unesc)(y),m.raws[l]===void 0&&(m.raws[l]=y)),m}function f(m,l){for(var y=-1,h=[];(y=m.indexOf(l,y+1))!==-1;)h.push(y);return h}function o(){var m=Array.prototype.concat.apply([],arguments);return m.filter(function(l,y){return y===m.indexOf(l)})}var i=function(){function m(y,h){h===void 0&&(h={}),this.rule=y,this.options=Object.assign({lossy:!1,safe:!1},h),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 s=R(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new Y.default({source:s}),this.root.errorGenerator=this._errorGenerator();var g=new X.default({source:{start:{line:1,column:1}}});this.root.append(g),this.current=g,this.loop()}var l=m.prototype;return l._errorGenerator=function(){var y=this;return function(h,s){return typeof y.rule=="string"?Error(h):y.rule.error(h,s)}},l.attribute=function(){var y=[],h=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[B.FIELDS.TYPE]!==M.closeSquare;)y.push(this.currToken),this.position++;if(this.currToken[B.FIELDS.TYPE]!==M.closeSquare)return this.expected("closing square bracket",this.currToken[B.FIELDS.START_POS]);var s=y.length,g={source:P(h[1],h[2],this.currToken[3],this.currToken[4]),sourceIndex:h[B.FIELDS.START_POS]};if(s===1&&!~[M.word].indexOf(y[0][B.FIELDS.TYPE]))return this.expected("attribute",y[0][B.FIELDS.START_POS]);for(var J0=0,X0="",Z0="",K0=null,A0=!1;J0<s;){var D0=y[J0],Y0=this.content(D0),M0=y[J0+1];switch(D0[B.FIELDS.TYPE]){case M.space:if(A0=!0,this.options.lossy)break;if(K0){(0,N.ensureObject)(g,"spaces",K0);var v0=g.spaces[K0].after||"";g.spaces[K0].after=v0+Y0;var u0=(0,N.getProp)(g,"raws","spaces",K0,"after")||null;u0&&(g.raws.spaces[K0].after=u0+Y0)}else X0=X0+Y0,Z0=Z0+Y0;break;case M.asterisk:if(M0[B.FIELDS.TYPE]===M.equals)g.operator=Y0,K0="operator";else if((!g.namespace||K0==="namespace"&&!A0)&&M0){X0&&((0,N.ensureObject)(g,"spaces","attribute"),g.spaces.attribute.before=X0,X0=""),Z0&&((0,N.ensureObject)(g,"raws","spaces","attribute"),g.raws.spaces.attribute.before=X0,Z0=""),g.namespace=(g.namespace||"")+Y0;var g0=(0,N.getProp)(g,"raws","namespace")||null;g0&&(g.raws.namespace+=Y0),K0="namespace"}A0=!1;break;case M.dollar:if(K0==="value"){var T0=(0,N.getProp)(g,"raws","value");g.value+="$",T0&&(g.raws.value=T0+"$");break}case M.caret:M0[B.FIELDS.TYPE]===M.equals&&(g.operator=Y0,K0="operator"),A0=!1;break;case M.combinator:if(Y0==="~"&&M0[B.FIELDS.TYPE]===M.equals&&(g.operator=Y0,K0="operator"),Y0!=="|"){A0=!1;break}M0[B.FIELDS.TYPE]===M.equals?(g.operator=Y0,K0="operator"):!g.namespace&&!g.attribute&&(g.namespace=!0),A0=!1;break;case M.word:if(M0&&this.content(M0)==="|"&&y[J0+2]&&y[J0+2][B.FIELDS.TYPE]!==M.equals&&!g.operator&&!g.namespace)g.namespace=Y0,K0="namespace";else if(!g.attribute||K0==="attribute"&&!A0){X0&&((0,N.ensureObject)(g,"spaces","attribute"),g.spaces.attribute.before=X0,X0=""),Z0&&((0,N.ensureObject)(g,"raws","spaces","attribute"),g.raws.spaces.attribute.before=Z0,Z0=""),g.attribute=(g.attribute||"")+Y0;var c0=(0,N.getProp)(g,"raws","attribute")||null;c0&&(g.raws.attribute+=Y0),K0="attribute"}else if(!g.value&&g.value!==""||K0==="value"&&!A0){var p0=(0,N.unesc)(Y0),i0=(0,N.getProp)(g,"raws","value")||"",Z1=g.value||"";g.value=Z1+p0,g.quoteMark=null,(p0!==Y0||i0)&&((0,N.ensureObject)(g,"raws"),g.raws.value=(i0||Z1)+Y0),K0="value"}else{var Q1=Y0==="i"||Y0==="I";(g.value||g.value==="")&&(g.quoteMark||A0)?(g.insensitive=Q1,(!Q1||Y0==="I")&&((0,N.ensureObject)(g,"raws"),g.raws.insensitiveFlag=Y0),K0="insensitive",X0&&((0,N.ensureObject)(g,"spaces","insensitive"),g.spaces.insensitive.before=X0,X0=""),Z0&&((0,N.ensureObject)(g,"raws","spaces","insensitive"),g.raws.spaces.insensitive.before=Z0,Z0="")):(g.value||g.value==="")&&(K0="value",g.value+=Y0,g.raws.value&&(g.raws.value+=Y0))}A0=!1;break;case M.str:if(!g.attribute||!g.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:D0[B.FIELDS.START_POS]});var a0=(0,z.unescapeValue)(Y0),z5=a0.unescaped,h1=a0.quoteMark;g.value=z5,g.quoteMark=h1,K0="value",(0,N.ensureObject)(g,"raws"),g.raws.value=Y0,A0=!1;break;case M.equals:if(!g.attribute)return this.expected("attribute",D0[B.FIELDS.START_POS],Y0);if(g.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:D0[B.FIELDS.START_POS]});g.operator=g.operator?g.operator+Y0:Y0,K0="operator",A0=!1;break;case M.comment:if(K0)if(A0||M0&&M0[B.FIELDS.TYPE]===M.space||K0==="insensitive"){var t1=(0,N.getProp)(g,"spaces",K0,"after")||"",U5=(0,N.getProp)(g,"raws","spaces",K0,"after")||t1;(0,N.ensureObject)(g,"raws","spaces",K0),g.raws.spaces[K0].after=U5+Y0}else{var Q8=g[K0]||"",V5=(0,N.getProp)(g,"raws",K0)||Q8;(0,N.ensureObject)(g,"raws"),g.raws[K0]=V5+Y0}else Z0=Z0+Y0;break;default:return this.error('Unexpected "'+Y0+'" found.',{index:D0[B.FIELDS.START_POS]})}J0++}c(g,"attribute"),c(g,"namespace"),this.newNode(new z.default(g)),this.position++},l.parseWhitespaceEquivalentTokens=function(y){y<0&&(y=this.tokens.length);var h=this.position,s=[],g="",J0=void 0;do if(k[this.currToken[B.FIELDS.TYPE]])this.options.lossy||(g+=this.content());else if(this.currToken[B.FIELDS.TYPE]===M.comment){var X0={};g&&(X0.before=g,g=""),J0=new Q.default({value:this.content(),source:S(this.currToken),sourceIndex:this.currToken[B.FIELDS.START_POS],spaces:X0}),s.push(J0)}while(++this.position<y);if(g){if(J0)J0.spaces.after=g;else if(!this.options.lossy){var Z0=this.tokens[h],K0=this.tokens[this.position-1];s.push(new W.default({value:"",source:P(Z0[B.FIELDS.START_LINE],Z0[B.FIELDS.START_COL],K0[B.FIELDS.END_LINE],K0[B.FIELDS.END_COL]),sourceIndex:Z0[B.FIELDS.START_POS],spaces:{before:g,after:""}}))}}return s},l.convertWhitespaceNodesToSpace=function(y,h){var s=this;h===void 0&&(h=!1);var g="",J0="";y.forEach(function(Z0){var K0=s.lossySpace(Z0.spaces.before,h),A0=s.lossySpace(Z0.rawSpaceBefore,h);g+=K0+s.lossySpace(Z0.spaces.after,h&&K0.length===0),J0+=K0+Z0.value+s.lossySpace(Z0.rawSpaceAfter,h&&A0.length===0)}),J0===g&&(J0=void 0);var X0={space:g,rawSpace:J0};return X0},l.isNamedCombinator=function(y){return y===void 0&&(y=this.position),this.tokens[y+0]&&this.tokens[y+0][B.FIELDS.TYPE]===M.slash&&this.tokens[y+1]&&this.tokens[y+1][B.FIELDS.TYPE]===M.word&&this.tokens[y+2]&&this.tokens[y+2][B.FIELDS.TYPE]===M.slash},l.namedCombinator=function(){if(this.isNamedCombinator()){var y=this.content(this.tokens[this.position+1]),h=(0,N.unesc)(y).toLowerCase(),s={};h!==y&&(s.value="/"+y+"/");var g=new V.default({value:"/"+h+"/",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:s});return this.position=this.position+3,g}else this.unexpected()},l.combinator=function(){var y=this;if(this.content()==="|")return this.namespace();var h=this.locateNextMeaningfulToken(this.position);if(h<0||this.tokens[h][B.FIELDS.TYPE]===M.comma){var s=this.parseWhitespaceEquivalentTokens(h);if(s.length>0){var g=this.current.last;if(g){var J0=this.convertWhitespaceNodesToSpace(s),X0=J0.space,Z0=J0.rawSpace;Z0!==void 0&&(g.rawSpaceAfter+=Z0),g.spaces.after+=X0}else s.forEach(function(i0){return y.newNode(i0)})}return}var K0=this.currToken,A0=void 0;h>this.position&&(A0=this.parseWhitespaceEquivalentTokens(h));var D0;if(this.isNamedCombinator()?D0=this.namedCombinator():this.currToken[B.FIELDS.TYPE]===M.combinator?(D0=new V.default({value:this.content(),source:S(this.currToken),sourceIndex:this.currToken[B.FIELDS.START_POS]}),this.position++):k[this.currToken[B.FIELDS.TYPE]]||A0||this.unexpected(),D0){if(A0){var Y0=this.convertWhitespaceNodesToSpace(A0),M0=Y0.space,v0=Y0.rawSpace;D0.spaces.before=M0,D0.rawSpaceBefore=v0}}else{var u0=this.convertWhitespaceNodesToSpace(A0,!0),g0=u0.space,T0=u0.rawSpace;T0||(T0=g0);var c0={},p0={spaces:{}};g0.endsWith(" ")&&T0.endsWith(" ")?(c0.before=g0.slice(0,g0.length-1),p0.spaces.before=T0.slice(0,T0.length-1)):g0.startsWith(" ")&&T0.startsWith(" ")?(c0.after=g0.slice(1),p0.spaces.after=T0.slice(1)):p0.value=T0,D0=new V.default({value:" ",source:R(K0,this.tokens[this.position-1]),sourceIndex:K0[B.FIELDS.START_POS],spaces:c0,raws:p0})}return this.currToken&&this.currToken[B.FIELDS.TYPE]===M.space&&(D0.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(D0)},l.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var y=new X.default({source:{start:u(this.tokens[this.position+1])}});this.current.parent.append(y),this.current=y,this.position++},l.comment=function(){var y=this.currToken;this.newNode(new Q.default({value:this.content(),source:S(y),sourceIndex:y[B.FIELDS.START_POS]})),this.position++},l.error=function(y,h){throw this.root.error(y,h)},l.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[B.FIELDS.START_POS]})},l.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[B.FIELDS.START_POS])},l.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[B.FIELDS.START_POS])},l.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[B.FIELDS.START_POS])},l.namespace=function(){var y=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[B.FIELDS.TYPE]===M.word)return this.position++,this.word(y);if(this.nextToken[B.FIELDS.TYPE]===M.asterisk)return this.position++,this.universal(y)},l.nesting=function(){if(this.nextToken){var y=this.content(this.nextToken);if(y==="|"){this.position++;return}}var h=this.currToken;this.newNode(new A.default({value:this.content(),source:S(h),sourceIndex:h[B.FIELDS.START_POS]})),this.position++},l.parentheses=function(){var y=this.current.last,h=1;if(this.position++,y&&y.type===O.PSEUDO){var s=new X.default({source:{start:u(this.tokens[this.position-1])}}),g=this.current;for(y.append(s),this.current=s;this.position<this.tokens.length&&h;)this.currToken[B.FIELDS.TYPE]===M.openParenthesis&&h++,this.currToken[B.FIELDS.TYPE]===M.closeParenthesis&&h--,h?this.parse():(this.current.source.end=p(this.currToken),this.current.parent.source.end=p(this.currToken),this.position++);this.current=g}else{for(var J0=this.currToken,X0="(",Z0;this.position<this.tokens.length&&h;)this.currToken[B.FIELDS.TYPE]===M.openParenthesis&&h++,this.currToken[B.FIELDS.TYPE]===M.closeParenthesis&&h--,Z0=this.currToken,X0+=this.parseParenthesisToken(this.currToken),this.position++;y?y.appendToPropertyAndEscape("value",X0,X0):this.newNode(new W.default({value:X0,source:P(J0[B.FIELDS.START_LINE],J0[B.FIELDS.START_COL],Z0[B.FIELDS.END_LINE],Z0[B.FIELDS.END_COL]),sourceIndex:J0[B.FIELDS.START_POS]}))}if(h)return this.expected("closing parenthesis",this.currToken[B.FIELDS.START_POS])},l.pseudo=function(){for(var y=this,h="",s=this.currToken;this.currToken&&this.currToken[B.FIELDS.TYPE]===M.colon;)h+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[B.FIELDS.TYPE]===M.word)this.splitWord(!1,function(g,J0){h+=g,y.newNode(new H.default({value:h,source:R(s,y.currToken),sourceIndex:s[B.FIELDS.START_POS]})),J0>1&&y.nextToken&&y.nextToken[B.FIELDS.TYPE]===M.openParenthesis&&y.error("Misplaced parenthesis.",{index:y.nextToken[B.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[B.FIELDS.START_POS])},l.space=function(){var y=this.content();this.position===0||this.prevToken[B.FIELDS.TYPE]===M.comma||this.prevToken[B.FIELDS.TYPE]===M.openParenthesis||this.current.nodes.every(function(h){return h.type==="comment"})?(this.spaces=this.optionalSpace(y),this.position++):this.position===this.tokens.length-1||this.nextToken[B.FIELDS.TYPE]===M.comma||this.nextToken[B.FIELDS.TYPE]===M.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(y),this.position++):this.combinator()},l.string=function(){var y=this.currToken;this.newNode(new W.default({value:this.content(),source:S(y),sourceIndex:y[B.FIELDS.START_POS]})),this.position++},l.universal=function(y){var h=this.nextToken;if(h&&this.content(h)==="|")return this.position++,this.namespace();var s=this.currToken;this.newNode(new U.default({value:this.content(),source:S(s),sourceIndex:s[B.FIELDS.START_POS]}),y),this.position++},l.splitWord=function(y,h){for(var s=this,g=this.nextToken,J0=this.content();g&&~[M.dollar,M.caret,M.equals,M.word].indexOf(g[B.FIELDS.TYPE]);){this.position++;var X0=this.content();if(J0+=X0,X0.lastIndexOf("\\")===X0.length-1){var Z0=this.nextToken;Z0&&Z0[B.FIELDS.TYPE]===M.space&&(J0+=this.requiredSpace(this.content(Z0)),this.position++)}g=this.nextToken}var K0=f(J0,".").filter(function(M0){var v0=J0[M0-1]==="\\",u0=/^\d+\.\d+%$/.test(J0);return!v0&&!u0}),A0=f(J0,"#").filter(function(M0){return J0[M0-1]!=="\\"}),D0=f(J0,"#{");D0.length&&(A0=A0.filter(function(M0){return!~D0.indexOf(M0)}));var Y0=(0,L.default)(o([0].concat(K0,A0)));Y0.forEach(function(M0,v0){var u0=Y0[v0+1]||J0.length,g0=J0.slice(M0,u0);if(v0===0&&h)return h.call(s,g0,Y0.length);var T0,c0=s.currToken,p0=c0[B.FIELDS.START_POS]+Y0[v0],i0=P(c0[1],c0[2]+M0,c0[3],c0[2]+(u0-1));if(~K0.indexOf(M0)){var Z1={value:g0.slice(1),source:i0,sourceIndex:p0};T0=new Z.default(c(Z1,"value"))}else if(~A0.indexOf(M0)){var Q1={value:g0.slice(1),source:i0,sourceIndex:p0};T0=new w.default(c(Q1,"value"))}else{var a0={value:g0,source:i0,sourceIndex:p0};c(a0,"value"),T0=new $.default(a0)}s.newNode(T0,y),y=null}),this.position++},l.word=function(y){var h=this.nextToken;return h&&this.content(h)==="|"?(this.position++,this.namespace()):this.splitWord(y)},l.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},l.parse=function(y){switch(this.currToken[B.FIELDS.TYPE]){case M.space:this.space();break;case M.comment:this.comment();break;case M.openParenthesis:this.parentheses();break;case M.closeParenthesis:y&&this.missingParenthesis();break;case M.openSquare:this.attribute();break;case M.dollar:case M.caret:case M.equals:case M.word:this.word();break;case M.colon:this.pseudo();break;case M.comma:this.comma();break;case M.asterisk:this.universal();break;case M.ampersand:this.nesting();break;case M.slash:case M.combinator:this.combinator();break;case M.str:this.string();break;case M.closeSquare:this.missingSquareBracket();case M.semicolon:this.missingBackslash();default:this.unexpected()}},l.expected=function(y,h,s){if(Array.isArray(y)){var g=y.pop();y=y.join(", ")+" or "+g}var J0=/^[aeiou]/.test(y[0])?"an":"a";return s?this.error("Expected "+J0+" "+y+', found "'+s+'" instead.',{index:h}):this.error("Expected "+J0+" "+y+".",{index:h})},l.requiredSpace=function(y){return this.options.lossy?" ":y},l.optionalSpace=function(y){return this.options.lossy?"":y},l.lossySpace=function(y,h){return this.options.lossy?h?" ":"":y},l.parseParenthesisToken=function(y){var h=this.content(y);return y[B.FIELDS.TYPE]===M.space?this.requiredSpace(h):h},l.newNode=function(y,h){return h&&(/^ +$/.test(h)&&(this.options.lossy||(this.spaces=(this.spaces||"")+h),h=!0),y.namespace=h,c(y,"namespace")),this.spaces&&(y.spaces.before=this.spaces,this.spaces=""),this.current.append(y)},l.content=function(y){return y===void 0&&(y=this.currToken),this.css.slice(y[B.FIELDS.START_POS],y[B.FIELDS.END_POS])},l.locateNextMeaningfulToken=function(y){y===void 0&&(y=this.position+1);for(var h=y;h<this.tokens.length;)if(d[this.tokens[h][B.FIELDS.TYPE]]){h++;continue}else return h;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=i,K.exports=J.default}),_H=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=X(FH());function X(Q){return Q&&Q.__esModule?Q:{default:Q}}var Z=function(){function Q($,W){this.func=$||function(){},this.funcRes=null,this.options=W}var w=Q.prototype;return w._shouldUpdateSelector=function($,W){W===void 0&&(W={});var H=Object.assign({},this.options,W);return H.updateSelector===!1?!1:typeof $!="string"},w._isLossy=function($){$===void 0&&($={});var W=Object.assign({},this.options,$);return W.lossless===!1},w._root=function($,W){W===void 0&&(W={});var H=new Y.default($,this._parseOptions(W));return H.root},w._parseOptions=function($){return{lossy:this._isLossy($)}},w._run=function($,W){var H=this;return W===void 0&&(W={}),new Promise(function(z,U){try{var V=H._root($,W);Promise.resolve(H.func(V)).then(function(A){var L=void 0;return H._shouldUpdateSelector($,W)&&(L=V.toString(),$.selector=L),{transform:A,root:V,string:L}}).then(z,U)}catch(A){U(A);return}})},w._runSync=function($,W){W===void 0&&(W={});var H=this._root($,W),z=this.func(H);if(z&&typeof z.then=="function")throw Error("Selector processor returned a promise to a synchronous call.");var U=void 0;return W.updateSelector&&typeof $!="string"&&(U=H.toString(),$.selector=U),{transform:z,root:H,string:U}},w.ast=function($,W){return this._run($,W).then(function(H){return H.root})},w.astSync=function($,W){return this._runSync($,W).root},w.transform=function($,W){return this._run($,W).then(function(H){return H.transform})},w.transformSync=function($,W){return this._runSync($,W).transform},w.process=function($,W){return this._run($,W).then(function(H){return H.string||H.root.toString()})},w.processSync=function($,W){var H=this._runSync($,W);return H.string||H.root.toString()},Q}();J.default=Z,K.exports=J.default}),DH=t((J)=>{J.__esModule=!0,J.universal=J.tag=J.string=J.selector=J.root=J.pseudo=J.nesting=J.id=J.comment=J.combinator=J.className=J.attribute=void 0;var K=A(xK()),Y=A(SK()),X=A(fK()),Z=A(vK()),Q=A(yK()),w=A(mK()),$=A(gK()),W=A(CK()),H=A(PK()),z=A(kK()),U=A(hK()),V=A(bK());function A(k){return k&&k.__esModule?k:{default:k}}var L=function(k){return new K.default(k)};J.attribute=L;var B=function(k){return new Y.default(k)};J.className=B;var M=function(k){return new X.default(k)};J.combinator=M;var O=function(k){return new Z.default(k)};J.comment=O;var N=function(k){return new Q.default(k)};J.id=N;var E=function(k){return new w.default(k)};J.nesting=E;var D=function(k){return new $.default(k)};J.pseudo=D;var F=function(k){return new W.default(k)};J.root=F;var j=function(k){return new H.default(k)};J.selector=j;var T=function(k){return new z.default(k)};J.string=T;var I=function(k){return new U.default(k)};J.tag=I;var C=function(k){return new V.default(k)};J.universal=C}),IH=t((J)=>{J.__esModule=!0,J.isNode=Z,J.isPseudoElement=N,J.isPseudoClass=E,J.isContainer=D,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 K=l0(),Y,X=(Y={},Y[K.ATTRIBUTE]=!0,Y[K.CLASS]=!0,Y[K.COMBINATOR]=!0,Y[K.COMMENT]=!0,Y[K.ID]=!0,Y[K.NESTING]=!0,Y[K.PSEUDO]=!0,Y[K.ROOT]=!0,Y[K.SELECTOR]=!0,Y[K.STRING]=!0,Y[K.TAG]=!0,Y[K.UNIVERSAL]=!0,Y);function Z(j){return typeof j=="object"&&X[j.type]}function Q(j,T){return Z(T)&&T.type===j}var w=Q.bind(null,K.ATTRIBUTE);J.isAttribute=w;var $=Q.bind(null,K.CLASS);J.isClassName=$;var W=Q.bind(null,K.COMBINATOR);J.isCombinator=W;var H=Q.bind(null,K.COMMENT);J.isComment=H;var z=Q.bind(null,K.ID);J.isIdentifier=z;var U=Q.bind(null,K.NESTING);J.isNesting=U;var V=Q.bind(null,K.PSEUDO);J.isPseudo=V;var A=Q.bind(null,K.ROOT);J.isRoot=A;var L=Q.bind(null,K.SELECTOR);J.isSelector=L;var B=Q.bind(null,K.STRING);J.isString=B;var M=Q.bind(null,K.TAG);J.isTag=M;var O=Q.bind(null,K.UNIVERSAL);J.isUniversal=O;function N(j){return V(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 V(j)&&!N(j)}function D(j){return!!(Z(j)&&j.walk)}function F(j){return w(j)||M(j)}}),RH=t((J)=>{J.__esModule=!0;var K=l0();Object.keys(K).forEach(function(Z){Z==="default"||Z==="__esModule"||Z in J&&J[Z]===K[Z]||(J[Z]=K[Z])});var Y=DH();Object.keys(Y).forEach(function(Z){Z==="default"||Z==="__esModule"||Z in J&&J[Z]===Y[Z]||(J[Z]=Y[Z])});var X=IH();Object.keys(X).forEach(function(Z){Z==="default"||Z==="__esModule"||Z in J&&J[Z]===X[Z]||(J[Z]=X[Z])})}),TH=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=w(_H()),X=Q(RH());function Z(){if(typeof WeakMap!="function")return null;var H=new WeakMap;return Z=function(){return H},H}function Q(H){if(H&&H.__esModule)return H;if(H===null||typeof H!="object"&&typeof H!="function")return{default:H};var z=Z();if(z&&z.has(H))return z.get(H);var U={},V=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in H)if(Object.prototype.hasOwnProperty.call(H,A)){var L=V?Object.getOwnPropertyDescriptor(H,A):null;L&&(L.get||L.set)?Object.defineProperty(U,A,L):U[A]=H[A]}return U.default=H,z&&z.set(H,U),U}function w(H){return H&&H.__esModule?H:{default:H}}var $=function(H){return new Y.default(H)};Object.assign($,X),delete $.__esModule;var W=$;J.default=W,K.exports=J.default}),CH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y){return Y.replace(/\\,/g,"\\2c ")}}),PH=t((J,K)=>{K.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),cK=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(L,B){for(var M in B)Object.defineProperty(L,M,{enumerable:!0,get:B[M]})}K(J,{parseColor:()=>V,formatColor:()=>A});var Y=X(PH());function X(L){return L&&L.__esModule?L:{default:L}}var Z=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,Q=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,w=/(?:\d+|\d*\.\d+)%?/,$=/(?:\s*,\s*|\s+)/,W=/\s*[,/]\s*/,H=/var\(--(?:[^ )]*?)\)/,z=new RegExp(`^(rgb)a?\\(\\s*(${w.source}|${H.source})(?:${$.source}(${w.source}|${H.source}))?(?:${$.source}(${w.source}|${H.source}))?(?:${W.source}(${w.source}|${H.source}))?\\s*\\)$`),U=new RegExp(`^(hsl)a?\\(\\s*((?:${w.source})(?:deg|rad|grad|turn)?|${H.source})(?:${$.source}(${w.source}|${H.source}))?(?:${$.source}(${w.source}|${H.source}))?(?:${W.source}(${w.source}|${H.source}))?\\s*\\)$`);function V(L,{loose:B=!1}={}){var M,O;if(typeof L!="string")return null;if(L=L.trim(),L==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(L in Y.default)return{mode:"rgb",color:Y.default[L].map((j)=>j.toString())};let N=L.replace(Q,(j,T,I,C,k)=>["#",T,T,I,I,C,C,k?k+k:""].join("")).match(Z);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 D=(E=L.match(z))!==null&&E!==void 0?E:L.match(U);if(D===null)return null;let F=[D[2],D[3],D[4]].filter(Boolean).map((j)=>j.toString());return!B&&F.length!==3||F.length<3&&!F.some((j)=>/^var\(.*?\)$/.test(j))?null:{mode:D[1],color:F,alpha:(M=D[5])===null||M===void 0||(O=M.toString)===null||O===void 0?void 0:O.call(M)}}function A({mode:L,color:B,alpha:M}){let O=M!==void 0;return`${L}(${B.join(" ")}${O?` / ${M}`:""})`}}),dK=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(Q,w){for(var $ in w)Object.defineProperty(Q,$,{enumerable:!0,get:w[$]})}K(J,{withAlphaValue:()=>X,default:()=>Z});var Y=cK();function X(Q,w,$){if(typeof Q=="function")return Q({opacityValue:w});let W=(0,Y.parseColor)(Q,{loose:!0});return W===null?$:(0,Y.formatColor)({...W,alpha:w})}function Z({color:Q,property:w,variable:$}){let W=[].concat(w);if(typeof Q=="function")return{[$]:"1",...Object.fromEntries(W.map((z)=>[z,Q({opacityVariable:$,opacityValue:`var(${$})`})]))};let H=(0,Y.parseColor)(Q);return H===null?Object.fromEntries(W.map((z)=>[z,Q])):H.alpha!==void 0?Object.fromEntries(W.map((z)=>[z,Q])):{[$]:"1",...Object.fromEntries(W.map((z)=>[z,(0,Y.formatColor)({...H,alpha:`var(${$})`})]))}}}),SH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(V,A){for(var L in A)Object.defineProperty(V,L,{enumerable:!0,get:A[L]})}K(J,{pattern:()=>Q,withoutCapturing:()=>w,any:()=>$,optional:()=>W,zeroOrMore:()=>H,nestedBrackets:()=>z,escape:()=>U});var Y=/[\\^$.*+?()[\]{}|]/g,X=RegExp(Y.source);function Z(V){return V=Array.isArray(V)?V:[V],V=V.map((A)=>A instanceof RegExp?A.source:A),V.join("")}function Q(V){return new RegExp(Z(V),"g")}function w(V){return new RegExp(`(?:${Z(V)})`,"g")}function $(V){return`(?:${V.map(Z).join("|")})`}function W(V){return`(?:${Z(V)})?`}function H(V){return`(?:${Z(V)})*`}function z(V,A,L=1){return w([U(V),/[^\s]*/,L===1?`[^${U(V)}${U(A)}s]*`:$([`[^${U(V)}${U(A)}s]*`,z(V,A,L-1)]),/[^\s]*/,U(A)])}function U(V){return V&&X.test(V)?V.replace(Y,"\\$&"):V||""}}),vH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"splitAtTopLevelOnly",{enumerable:!0,get:()=>Z});var K=X(SH());function Y(Q){if(typeof WeakMap!="function")return null;var w=new WeakMap,$=new WeakMap;return(Y=function(W){return W?$:w})(Q)}function X(Q,w){if(!w&&Q&&Q.__esModule)return Q;if(Q===null||typeof Q!="object"&&typeof Q!="function")return{default:Q};var $=Y(w);if($&&$.has(Q))return $.get(Q);var W={},H=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var z in Q)if(z!=="default"&&Object.prototype.hasOwnProperty.call(Q,z)){var U=H?Object.getOwnPropertyDescriptor(Q,z):null;U&&(U.get||U.set)?Object.defineProperty(W,z,U):W[z]=Q[z]}return W.default=Q,$&&$.set(Q,W),W}function*Z(Q,w){let $=new RegExp(`[(){}\\[\\]${K.escape(w)}]`,"g"),W=0,H=0,z=!1,U=0,V=0,A=w.length;for(let L of Q.matchAll($)){let B=L[0]===w[U],M=U===A-1,O=B&&M;L[0]==="("&&W++,L[0]===")"&&W--,L[0]==="["&&W++,L[0]==="]"&&W--,L[0]==="{"&&W++,L[0]==="}"&&W--,B&&W===0&&(V===0&&(V=L.index),U++),O&&W===0&&(z=!0,yield Q.substring(H,V),H=V+A),U===A&&(U=0,V=0)}z?yield Q.substring(H):yield Q}}),yH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(W,H){for(var z in H)Object.defineProperty(W,z,{enumerable:!0,get:H[z]})}K(J,{parseBoxShadowValue:()=>w,formatBoxShadowValue:()=>$});var Y=vH(),X=new Set(["inset","inherit","initial","revert","unset"]),Z=/\ +(?![^(]*\))/g,Q=/^-?(\d+|\.\d+)(.*?)$/g;function w(W){return Array.from((0,Y.splitAtTopLevelOnly)(W,",")).map((H)=>{let z=H.trim(),U={raw:z},V=z.split(Z),A=new Set;for(let L of V)Q.lastIndex=0,!A.has("KEYWORD")&&X.has(L)?(U.keyword=L,A.add("KEYWORD")):Q.test(L)?A.has("X")?A.has("Y")?A.has("BLUR")?A.has("SPREAD")||(U.spread=L,A.add("SPREAD")):(U.blur=L,A.add("BLUR")):(U.y=L,A.add("Y")):(U.x=L,A.add("X")):U.color?(U.unknown||(U.unknown=[]),U.unknown.push(L)):U.color=L;return U.valid=U.x!==void 0&&U.y!==void 0,U})}function $(W){return W.map((H)=>H.valid?[H.keyword,H.x,H.y,H.blur,H.spread,H.color].filter(Boolean).join(" "):H.raw).join(", ")}}),hH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(P,S){for(var R in S)Object.defineProperty(P,R,{enumerable:!0,get:S[R]})}K(J,{normalize:()=>$,url:()=>W,number:()=>H,percentage:()=>z,length:()=>A,lineWidth:()=>B,shadow:()=>M,color:()=>O,image:()=>N,gradient:()=>D,position:()=>j,familyName:()=>T,genericName:()=>C,absoluteSize:()=>d,relativeSize:()=>p});var Y=cK(),X=yH(),Z=["min","max","clamp","calc"],Q=/,(?![^(]*\))/g,w=/_(?![^(]*\))/g;function $(P,S=!0){return P.includes("url(")?P.split(/(url\(.*?\))/g).filter(Boolean).map((R)=>/^url\(.*?\)$/.test(R)?R:$(R,!1)).join(""):(P=P.replace(/([^\\])_+/g,(R,c)=>c+" ".repeat(R.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),S&&(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 W(P){return P.startsWith("url(")}function H(P){return!isNaN(Number(P))||Z.some((S)=>new RegExp(`^${S}\\(.+?`).test(P))}function z(P){return P.split(w).every((S)=>/%$/g.test(S)||Z.some((R)=>new RegExp(`^${R}\\(.+?%`).test(S)))}var U=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],V=`(?:${U.join("|")})`;function A(P){return P.split(w).every((S)=>S==="0"||new RegExp(`${V}$`).test(S)||Z.some((R)=>new RegExp(`^${R}\\(.+?${V}`).test(S)))}var L=new Set(["thin","medium","thick"]);function B(P){return L.has(P)}function M(P){let S=(0,X.parseBoxShadowValue)($(P));for(let R of S)if(!R.valid)return!1;return!0}function O(P){let S=0;return P.split(w).every((R)=>(R=$(R),R.startsWith("var(")?!0:(0,Y.parseColor)(R,{loose:!0})!==null?(S++,!0):!1))?S>0:!1}function N(P){let S=0;return P.split(Q).every((R)=>(R=$(R),R.startsWith("var(")?!0:W(R)||D(R)||["element(","image(","cross-fade(","image-set("].some((c)=>R.startsWith(c))?(S++,!0):!1))?S>0:!1}var E=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function D(P){P=$(P);for(let S of E)if(P.startsWith(`${S}(`))return!0;return!1}var F=new Set(["center","top","right","bottom","left"]);function j(P){let S=0;return P.split(w).every((R)=>(R=$(R),R.startsWith("var(")?!0:F.has(R)||A(R)||z(R)?(S++,!0):!1))?S>0:!1}function T(P){let S=0;return P.split(Q).every((R)=>(R=$(R),R.startsWith("var(")?!0:R.includes(" ")&&!/(['"])([^"']+)\1/g.test(R)||/^\d/g.test(R)?!1:(S++,!0)))?S>0:!1}var I=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 I.has(P)}var k=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function d(P){return k.has(P)}var u=new Set(["larger","smaller"]);function p(P){return u.has(P)}}),kH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(j,T){for(var I in T)Object.defineProperty(j,I,{enumerable:!0,get:T[I]})}K(J,{updateAllClasses:()=>W,asValue:()=>U,parseColorFormat:()=>L,asColor:()=>B,asLookupValue:()=>M,coerceValue:()=>F});var Y=$(TH()),X=$(CH()),Z=dK(),Q=hH(),w=$(DK());function $(j){return j&&j.__esModule?j:{default:j}}function W(j,T){return(0,Y.default)((I)=>{I.walkClasses((C)=>{let k=T(C.value);C.value=k,C.raws&&C.raws.value&&(C.raws.value=(0,X.default)(C.raws.value))})}).processSync(j)}function H(j,T){if(!V(j))return;let I=j.slice(1,-1);if(T(I))return(0,Q.normalize)(I)}function z(j,T={},I){let C=T[j];if(C!==void 0)return(0,w.default)(C);if(V(j)){let k=H(j,I);return k===void 0?void 0:(0,w.default)(k)}}function U(j,T={},{validate:I=()=>!0}={}){var C;let k=(C=T.values)===null||C===void 0?void 0:C[j];return k!==void 0?k:T.supportsNegativeValues&&j.startsWith("-")?z(j.slice(1),T.values,I):H(j,I)}function V(j){return j.startsWith("[")&&j.endsWith("]")}function A(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:I=1})=>T.replace("<alpha-value>",I)}return j}function B(j,T={},{tailwindConfig:I={}}={}){var C;if(((C=T.values)===null||C===void 0?void 0:C[j])!==void 0){var k;return L((k=T.values)===null||k===void 0?void 0:k[j])}let[d,u]=A(j);if(u!==void 0){var p,P,S,R;let c=(R=(p=T.values)===null||p===void 0?void 0:p[d])!==null&&R!==void 0?R:V(d)?d.slice(1,-1):void 0;return c===void 0?void 0:(c=L(c),V(u)?(0,Z.withAlphaValue)(c,u.slice(1,-1)):((P=I.theme)===null||P===void 0||(S=P.opacity)===null||S===void 0?void 0:S[u])===void 0?void 0:(0,Z.withAlphaValue)(c,I.theme.opacity[u]))}return U(j,T,{validate:Q.color})}function M(j,T={}){var I;return(I=T.values)===null||I===void 0?void 0:I[j]}function O(j){return(T,I)=>U(T,I,{validate:j})}var N={any:U,color:B,url:O(Q.url),image:O(Q.image),length:O(Q.length),percentage:O(Q.percentage),position:O(Q.position),lookup:M,"generic-name":O(Q.genericName),"family-name":O(Q.familyName),number:O(Q.number),"line-width":O(Q.lineWidth),"absolute-size":O(Q.absoluteSize),"relative-size":O(Q.relativeSize),shadow:O(Q.shadow)},E=Object.keys(N);function D(j,T){let I=j.indexOf(T);return I===-1?[void 0,j]:[j.slice(0,I),j.slice(I+1)]}function F(j,T,I,C){if(V(T)){let k=T.slice(1,-1),[d,u]=D(k,":");if(!/^[\w-_]+$/g.test(d))u=k;else if(d!==void 0&&!E.includes(d))return[];if(u.length>0&&E.includes(d))return[U(`[${u}]`,I),d]}for(let k of[].concat(j)){let d=N[k](T,I,{tailwindConfig:C});if(d!==void 0)return[d,k]}return[]}}),gH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y){return typeof Y=="function"?Y({}):Y}}),xH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>p});var K=L(DK()),Y=L(HH()),X=L(zH()),Z=L(IK()),Q=L(UH()),w=VH(),$=AH(),W=BH(),H=L(GH()),z=MH(),U=kH(),V=dK(),A=L(gH());function L(P){return P&&P.__esModule?P:{default:P}}function B(P){return typeof P=="function"}function M(P){return typeof P=="object"&&P!==null}function O(P,...S){let R=S.pop();for(let c of S)for(let f in c){let o=R(P[f],c[f]);o===void 0?M(P[f])&&M(c[f])?P[f]=O(P[f],c[f],R):P[f]=c[f]:P[f]=o}return P}var N={colors:Q.default,negative(P){return Object.keys(P).filter((S)=>P[S]!=="0").reduce((S,R)=>{let c=(0,K.default)(P[R]);return c!==void 0&&(S[`-${R}`]=c),S},{})},breakpoints(P){return Object.keys(P).filter((S)=>typeof P[S]=="string").reduce((S,R)=>({...S,[`screen-${R}`]:P[R]}),{})}};function E(P,...S){return B(P)?P(...S):P}function D(P){return P.reduce((S,{extend:R})=>O(S,R,(c,f)=>c===void 0?[f]:Array.isArray(c)?[f,...c]:[f,c]),{})}function F(P){return{...P.reduce((S,R)=>(0,w.defaults)(S,R),{}),extend:D(P)}}function j(P,S){if(Array.isArray(P)&&M(P[0]))return P.concat(S);if(Array.isArray(S)&&M(S[0])&&M(P))return[P,...S];if(Array.isArray(S))return S}function T({extend:P,...S}){return O(S,P,(R,c)=>!B(R)&&!c.some(B)?O({},R,...c,j):(f,o)=>O({},...[R,...c].map((i)=>E(i,f,o)),j))}function*I(P){let S=(0,$.toPath)(P);if(S.length===0||(yield S,Array.isArray(P)))return;let R=/^(.*?)\s*\/\s*([^/]+)$/,c=P.match(R);if(c!==null){let[,f,o]=c,i=(0,$.toPath)(f);i.alpha=o,yield i}}function C(P){let S=(R,c)=>{for(let f of I(R)){let o=0,i=P;for(;i!=null&&o<f.length;)i=i[f[o++]],i=B(i)&&(f.alpha===void 0||o<=f.length-1)?i(S,N):i;if(i!==void 0){if(f.alpha!==void 0){let m=(0,U.parseColorFormat)(i);return(0,V.withAlphaValue)(m,f.alpha,(0,A.default)(m))}return(0,H.default)(i)?(0,z.cloneDeep)(i):i}}return c};return Object.assign(S,{theme:S,...N}),Object.keys(P).reduce((R,c)=>(R[c]=B(P[c])?P[c](S,N):P[c],R),{})}function k(P){let S=[];return P.forEach((R)=>{S=[...S,R];var c;let f=(c=R==null?void 0:R.plugins)!==null&&c!==void 0?c:[];f.length!==0&&f.forEach((o)=>{o.__isOptionsFunction&&(o=o());var i;S=[...S,...k([(i=o==null?void 0:o.config)!==null&&i!==void 0?i:{}])]})}),S}function d(P){return[...P].reduceRight((S,R)=>B(R)?R({corePlugins:S}):(0,X.default)(R,S),Y.default)}function u(P){return[...P].reduceRight((S,R)=>[...S,...R],[])}function p(P){let S=[...k(P),{prefix:"",important:!1,separator:":",variantOrder:Z.default.variantOrder}];var R,c;return(0,W.normalizeConfig)((0,w.defaults)({theme:C(T(F(S.map((f)=>(R=f==null?void 0:f.theme)!==null&&R!==void 0?R:{})))),corePlugins:d(S.map((f)=>f.corePlugins)),plugins:u(P.map((f)=>(c=f==null?void 0:f.plugins)!==null&&c!==void 0?c:[]))},...S))}}),uK={};k4(uK,{default:()=>pK});var pK,bH=h4(()=>{pK={yellow:(J)=>J}}),fH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(U,V){for(var A in V)Object.defineProperty(U,A,{enumerable:!0,get:V[A]})}K(J,{flagEnabled:()=>$,issueFlagNotices:()=>H,default:()=>z});var Y=Z((bH(),i8(uK))),X=Z((g4(),i8(o8)));function Z(U){return U&&U.__esModule?U:{default:U}}var Q={optimizeUniversalDefaults:!1},w={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function $(U,V){if(w.future.includes(V)){var A,L,B;return U.future==="all"||((B=(L=U==null||(A=U.future)===null||A===void 0?void 0:A[V])!==null&&L!==void 0?L:Q[V])!==null&&B!==void 0?B:!1)}if(w.experimental.includes(V)){var M,O,N;return U.experimental==="all"||((N=(O=U==null||(M=U.experimental)===null||M===void 0?void 0:M[V])!==null&&O!==void 0?O:Q[V])!==null&&N!==void 0?N:!1)}return!1}function W(U){if(U.experimental==="all")return w.experimental;var V;return Object.keys((V=U==null?void 0:U.experimental)!==null&&V!==void 0?V:{}).filter((A)=>w.experimental.includes(A)&&U.experimental[A])}function H(U){if(process.env.JEST_WORKER_ID===void 0&&W(U).length>0){let V=W(U).map((A)=>Y.default.yellow(A)).join(", ");X.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${V}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}var z=w}),mH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Z});var K=X(IK()),Y=fH();function X(Q){return Q&&Q.__esModule?Q:{default:Q}}function Z(Q){var w;let $=((w=Q==null?void 0:Q.presets)!==null&&w!==void 0?w:[K.default]).slice().reverse().flatMap((z)=>Z(typeof z=="function"?z():z)),W={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},H=Object.keys(W).filter((z)=>(0,Y.flagEnabled)(Q,z)).map((z)=>W[z]);return[Q,...H,...$]}}),lH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Z});var K=X(xH()),Y=X(mH());function X(Q){return Q&&Q.__esModule?Q:{default:Q}}function Z(...Q){let[,...w]=(0,Y.default)(Q[0]);return(0,K.default)([...Q,...w])}}),cH=t((J,K)=>{var Y=lH();K.exports=(Y.__esModule?Y:{default:Y}).default}),P8;var p5=null;async function a8(){return P8||(p5?(await p5,P8):(p5=Promise.resolve().then(()=>($H(),_K)).then((J)=>J.getYogaModule()).then((J)=>P8=J),await p5,p5=null,P8))}var t5=(J,K)=>()=>(K||J((K={exports:{}}).exports,K),K.exports),dH=t5((J,K)=>{K.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),uH=t5((J,K)=>{K.exports=["deg","grad","rad","turn"]}),pH=t5((J,K)=>{K.exports=["dpi","dpcm","dppx"]}),iH=t5((J,K)=>{K.exports=["Hz","kHz"]}),rH=t5((J,K)=>{K.exports=["s","ms"]}),nH=dH(),iK=uH(),rK=pH(),nK=iH(),oK=rH();function m4(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(oH(J)>1)throw Error("Only one dot is allowed");if(/%$/.test(J)){this.type="percentage",this.value=M4(J),this.unit="%";return}var K=aH(J);if(!K){this.type="number",this.value=M4(J);return}this.type=eH(K),this.value=M4(J.substr(0,J.length-K.length)),this.unit=K}m4.prototype.valueOf=function(){return this.value};m4.prototype.toString=function(){return this.value+(this.unit||"")};function e5(J){return new m4(J)}function oH(J){var K=J.match(/\./g);return K?K.length:0}function M4(J){var K=parseFloat(J);if(isNaN(K))throw Error("Invalid number: "+J);return K}var sH=[].concat(iK,nK,nH,rK,oK);function aH(J){var K=J.match(/\D+$/),Y=K&&K[0];if(Y&&sH.indexOf(Y)===-1)throw Error("Invalid unit: "+Y);return Y}var tH=Object.assign(S8(iK,"angle"),S8(nK,"frequency"),S8(rK,"resolution"),S8(oK,"time"));function S8(J,K){return Object.fromEntries(J.map((Y)=>[Y,K]))}function eH(J){return tH[J]||"length"}function l8(J){let K=typeof J;return!(K==="number"||K==="bigint"||K==="string"||K==="boolean")}function Jz(J){return/^class\s/.test(J.toString())}function Kz(J){return"dangerouslySetInnerHTML"in J}function Yz(J){let K=typeof J>"u"?[]:[].concat(J).flat(1/0),Y=[];for(let X=0;X<K.length;X++){let Z=K[X];typeof Z>"u"||typeof Z=="boolean"||Z===null||(typeof Z=="number"&&(Z=String(Z)),typeof Z=="string"&&Y.length&&typeof Y[Y.length-1]=="string"?Y[Y.length-1]+=Z:Y.push(Z))}return Y}function U0(J,K,Y,X,Z=!1){if(typeof J=="number")return J;try{if(J=J.trim(),/[ /\(,]/.test(J))return;if(J===String(+J))return+J;let Q=new e5(J);if(Q.type==="length")switch(Q.unit){case"em":return Q.value*K;case"rem":return Q.value*16;case"vw":return~~(Q.value*X._viewportWidth/100);case"vh":return~~(Q.value*X._viewportHeight/100);default:return Q.value}else{if(Q.type==="angle")return sK(J);if(Q.type==="percentage"&&Z)return Q.value/100*Y}}catch{}}function sK(J){let K=new e5(J);switch(K.unit){case"deg":return K.value;case"rad":return K.value*180/Math.PI;case"turn":return K.value*360;case"grad":return 0.9*K.value}}function c8(J,K){return[J[0]*K[0]+J[2]*K[1],J[1]*K[0]+J[3]*K[1],J[0]*K[2]+J[2]*K[3],J[1]*K[2]+J[3]*K[3],J[0]*K[4]+J[2]*K[5]+J[4],J[1]*K[4]+J[3]*K[5]+J[5]]}function B1(J,K,Y,X){let Z=K[J];if(typeof Z>"u"){if(X&&typeof J<"u")throw Error(`Invalid value for CSS property "${X}". Allowed values: ${Object.keys(K).map((Q)=>`"${Q}"`).join(" | ")}. Received: "${J}".`);Z=Y}return Z}var L4,q4,Xz=[32,160,4961,65792,65793,4153,4241,10].map((J)=>String.fromCodePoint(J));function M1(J,K,Y){if(!L4||!q4){if(!(typeof Intl<"u"&&("Segmenter"in Intl)))throw Error("Intl.Segmenter does not exist, please use import a polyfill.");L4=new Intl.Segmenter(Y,{granularity:"word"}),q4=new Intl.Segmenter(Y,{granularity:"grapheme"})}if(K==="grapheme")return[...q4.segment(J)].map((X)=>X.segment);{let X=[...L4.segment(J)].map((w)=>w.segment),Z=[],Q=0;for(;Q<X.length;){let w=X[Q];if(w=="\xA0"){let $=Q===0?"":Z.pop(),W=Q===X.length-1?"":X[Q+1];Z.push($+"\xA0"+W),Q+=2}else Z.push(w),Q++}return Z}}function a(J,K,Y){let X="";for(let[Z,Q]of Object.entries(K))typeof Q<"u"&&(X+=` ${Z}="${Q}"`);return Y?`<${J}${X}>${Y}</${J}>`:`<${J}${X}/>`}function Zz(J=20){let K=new Map;function Y(Q,w){if(K.size>=J){let $=K.keys().next().value;K.delete($)}K.set(Q,w)}function X(Q){if(!K.has(Q))return;let w=K.get(Q);return K.delete(Q),K.set(Q,w),w}function Z(){K.clear()}return{set:Y,get:X,clear:Z}}function l4(J){return J?J.split(/[, ]/).filter(Boolean).map(Number):null}function Qz(J){return Object.prototype.toString.call(J)}function aK(J){return typeof J=="string"}function wz(J){return typeof J=="number"}function Wz(J){return Qz(J)==="[object Undefined]"}function $z(J,K){if(K==="break-all")return{words:M1(J,"grapheme"),requiredBreaks:[]};if(K==="keep-all")return{words:M1(J,"word"),requiredBreaks:[]};let Y=new R6(J),X=0,Z=Y.nextBreak(),Q=[],w=[!1];for(;Z;){let $=J.slice(X,Z.position);Q.push($),Z.required?w.push(!0):w.push(!1),X=Z.position,Z=Y.nextBreak()}return{words:Q,requiredBreaks:w}}var Hz=(J)=>J.replaceAll(/([A-Z])/g,(K,Y)=>`-${Y.toLowerCase()}`);function tK(J,K=","){let Y=[],X=0,Z=0;K=new RegExp(K);for(let Q=0;Q<J.length;Q++)J[Q]==="("?Z++:J[Q]===")"&&Z--,Z===0&&K.test(J[Q])&&(Y.push(J.slice(X,Q).trim()),X=Q+1);return Y.push(J.slice(X).trim()),Y}var zz="image/avif",Uz="image/webp",t8="image/apng",e8="image/png",J6="image/jpeg",K6="image/gif",c4="image/svg+xml";function eK(J){let K=new DataView(J),Y=4,X=K.byteLength;for(;Y<X;){let Z=K.getUint16(Y,!1);if(Z>X)throw TypeError("Invalid JPEG");let Q=K.getUint8(Z+1+Y);if(Q===192||Q===193||Q===194)return[K.getUint16(Z+7+Y,!1),K.getUint16(Z+5+Y,!1)];Y+=Z+2}throw TypeError("Invalid JPEG")}function JY(J){let K=new Uint8Array(J.slice(6,10));return[K[0]|K[1]<<8,K[2]|K[3]<<8]}function KY(J){let K=new DataView(J);return[K.getUint16(18,!1),K.getUint16(22,!1)]}var r1=Zz(100),d8=new Map,Vz=[e8,t8,J6,K6,c4];function Az(J){let K="",Y=new Uint8Array(J);for(let X=0;X<Y.byteLength;X++)K+=String.fromCharCode(Y[X]);return btoa(K)}function Bz(J){let K=atob(J),Y=K.length,X=new Uint8Array(Y);for(let Z=0;Z<Y;Z++)X[Z]=K.charCodeAt(Z);return X.buffer}function tJ(J,K){let Y=K.match(/<svg[^>]*>/)[0],X=Y.match(/viewBox=['"](.+)['"]/),Z=X?l4(X[1]):null,Q=Y.match(/width=['"](\d*\.\d+|\d+)['"]/),w=Y.match(/height=['"](\d*\.\d+|\d+)['"]/);if(!Z&&(!Q||!w))throw Error(`Failed to parse SVG from ${J}: missing "viewBox"`);let $=Z?[Z[2],Z[3]]:[+Q[1],+w[1]],W=$[0]/$[1];return Q&&w?[+Q[1],+w[1]]:Q?[+Q[1],+Q[1]/W]:w?[+w[1]*W,+w[1]]:[$[0],$[1]]}function eJ(J){let K,Y=Gz(new Uint8Array(J));switch(Y){case e8:case t8:K=KY(J);break;case K6:K=JY(J);break;case J6:K=eK(J);break}if(!Vz.includes(Y))throw Error(`Unsupported image type: ${Y||"unknown"}`);return[`data:${Y};base64,${Az(J)}`,K]}async function d4(J){if(!J)throw Error("Image source is not provided.");if(typeof J=="object"){let[Z,Q]=eJ(J);return[Z,...Q]}if((J.startsWith('"')&&J.endsWith('"')||J.startsWith("'")&&J.endsWith("'"))&&(J=J.slice(1,-1)),typeof window>"u"&&!J.startsWith("http")&&!J.startsWith("data:"))throw Error(`Image source must be an absolute URL: ${J}`);if(J.startsWith("data:")){let Z;try{Z=/data:(?<imageType>[a-z/+]+)(;[^;=]+=[^;=]+)*?(;(?<encodingType>[^;,]+))?,(?<dataString>.*)/g.exec(J).groups}catch{return console.warn("Image data URI resolved without size:"+J),[J]}let{imageType:Q,encodingType:w,dataString:$}=Z;if(Q===c4){let W=w==="base64"?atob($):decodeURIComponent($.replace(/ /g,"%20")),H=w==="base64"?J:`data:image/svg+xml;base64,${btoa(W)}`,z=tJ(J,W);return r1.set(J,[H,...z]),[H,...z]}else if(w==="base64"){let W,H=Bz($);switch(Q){case e8:case t8:W=KY(H);break;case K6:W=JY(H);break;case J6:W=eK(H);break}return r1.set(J,[J,...W]),[J,...W]}else return console.warn("Image data URI resolved without size:"+J),r1.set(J,[J]),[J]}if(!globalThis.fetch)throw Error("`fetch` is required to be polyfilled to load images.");if(d8.has(J))return d8.get(J);let K=r1.get(J);if(K)return K;let Y=J,X=fetch(Y).then((Z)=>{let Q=Z.headers.get("content-type");return Q==="image/svg+xml"||Q==="application/svg+xml"?Z.text():Z.arrayBuffer()}).then((Z)=>{if(typeof Z=="string")try{let $=`data:image/svg+xml;base64,${btoa(Z)}`,W=tJ(Y,Z);return[$,...W]}catch($){throw Error(`Failed to parse SVG image: ${$.message}`)}let[Q,w]=eJ(Z);return[Q,...w]}).then((Z)=>(r1.set(Y,Z),Z)).catch((Z)=>(console.error(`Can't load image ${Y}: `+Z.message),r1.set(Y,[]),[]));return d8.set(Y,X),X}function Gz(J){return[255,216,255].every((K,Y)=>J[Y]===K)?J6:[137,80,78,71,13,10,26,10].every((K,Y)=>J[Y]===K)?Mz(J)?t8:e8:[71,73,70,56].every((K,Y)=>J[Y]===K)?K6:[82,73,70,70,0,0,0,0,87,69,66,80].every((K,Y)=>!K||J[Y]===K)?Uz:[60,63,120,109,108].every((K,Y)=>J[Y]===K)?c4:[0,0,0,0,102,116,121,112,97,118,105,102].every((K,Y)=>!K||J[Y]===K)?zz:null}function Mz(J){let K=new DataView(J.buffer),Y,X,Z=8,Q=!1;for(;!Q&&Y!=="IEND"&&Z<J.length;){X=K.getUint32(Z);let w=J.subarray(Z+4,Z+8);Y=String.fromCharCode(...w),Q=Y==="acTL",Z+=12+X}return Q}var R4={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"},Lz=/[\r\n%#()<>?[\\\]^`{|}"']/g;function T4(J,K){if(!J)return"";if(Array.isArray(J))return J.map((H)=>T4(H,K)).join("");if(typeof J!="object")return String(J);let Y=J.type;if(Y==="text")throw Error("<text> nodes are not currently supported, please convert them to <path>");let{children:X,style:Z,...Q}=J.props||{},w=(Z==null?void 0:Z.color)||K,$=`${Object.entries(Q).map(([H,z])=>(typeof z=="string"&&z.toLowerCase()==="currentcolor"&&(z=w),H==="href"&&Y==="image"?` ${R4[H]||H}="${r1.get(z)[0]}"`:` ${R4[H]||H}="${z}"`)).join("")}`,W=Z?` style="${Object.entries(Z).map(([H,z])=>`${Hz(H)}:${z}`).join(";")}"`:"";return`<${Y}${$}${W}>${T4(X,w)}</${Y}>`}async function qz(J){let K=new Set,Y=(X)=>{if(X&&l8(X)){if(Array.isArray(X)){X.forEach((Z)=>Y(Z));return}else typeof X=="object"&&(X.type==="image"?K.has(X.props.href)||K.add(X.props.href):X.type==="img"&&(K.has(X.props.src)||K.add(X.props.src)));Array.isArray(X.props.children)?X.props.children.map((Z)=>Y(Z)):Y(X.props.children)}};return Y(J),Promise.all(Array.from(K).map((X)=>d4(X)))}async function Oz(J,K){let{viewBox:Y,viewbox:X,width:Z,height:Q,className:w,style:$,children:W,...H}=J.props||{};Y||=X,H.xmlns="http://www.w3.org/2000/svg";let z=($==null?void 0:$.color)||K,U=l4(Y),V=U?U[3]/U[2]:null;return Z=Z||V&&Q?Q/V:null,Q=Q||V&&Z?Z*V:null,H.width=Z,H.height=Q,Y&&(H.viewBox=Y),`data:image/svg+xml;utf8,${`<svg ${Object.entries(H).map(([A,L])=>(typeof L=="string"&&L.toLowerCase()==="currentcolor"&&(L=z),` ${R4[A]||A}="${L}"`)).join("")}>${T4(W,z)}</svg>`.replace(Lz,encodeURIComponent)}`}var Y1="flex",Nz={p:{display:Y1,marginTop:"1em",marginBottom:"1em"},div:{display:Y1},blockquote:{display:Y1,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:Y1,textAlign:"center"},hr:{display:Y1,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:Y1,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:Y1,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:Y1,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:Y1,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:Y1,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:Y1,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:Y1,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}},jz=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 Ez(J){let K={};for(let Y in J)jz.has(Y)&&(K[Y]=J[Y]);return K}function Fz(J,K){try{let Y=new e5(J);switch(Y.unit){case"px":return{absolute:Y.value};case"em":return{absolute:Y.value*K};case"rem":return{absolute:Y.value*16};case"%":return{relative:Y.value};default:return{}}}catch{return{}}}function O4(J,K,Y){switch(J){case"top":return{yRelative:0};case"left":return{xRelative:0};case"right":return{xRelative:100};case"bottom":return{yRelative:100};case"center":return{};default:{let X=Fz(J,K);return X.absolute?{[Y?"xAbsolute":"yAbsolute"]:X.absolute}:X.relative?{[Y?"xRelative":"yRelative"]:X.relative}:{}}}}function _z(J,K){if(typeof J=="number")return{xAbsolute:J};let Y;try{Y=ZY.default(J).nodes.filter((X)=>X.type==="word").map((X)=>X.value)}catch{return{}}return Y.length===1?O4(Y[0],K,!0):Y.length===2?((Y[0]==="top"||Y[0]==="bottom"||Y[1]==="left"||Y[1]==="right")&&Y.reverse(),{...O4(Y[0],K,!0),...O4(Y[1],K,!1)}):{}}function i5(J,K){let Y=QY.getPropertyName(`mask-${K}`);return J[Y]||J[`WebkitM${Y.substring(1)}`]}function Dz(J){let K=J.maskImage||J.WebkitMaskImage,Y={position:i5(J,"position")||"0% 0%",size:i5(J,"size")||"100% 100%",repeat:i5(J,"repeat")||"repeat",origin:i5(J,"origin")||"border-box",clip:i5(J,"origin")||"border-box"};return tK(K).filter((X)=>X&&X!=="none").reverse().map((X)=>({image:X,...Y}))}var Iz=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),Rz=new Set(["lineHeight"]);function Tz(J,K,Y,X){return J==="textDecoration"&&!Y.includes(K.textDecorationColor)&&(K.textDecorationColor=X),K}function w5(J,K){let Y=Number(K);return isNaN(Y)?K:Iz.has(J)?Rz.has(J)?Y:String(K):Y+"px"}function Cz(J,K,Y){if(J==="lineHeight")return{lineHeight:w5(J,K)};if(J==="fontFamily")return{fontFamily:K.split(",").map((X)=>X.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(J==="borderRadius"){if(typeof K!="string"||!K.includes("/"))return;let[X,Z]=K.split("/"),Q=G1.getStylesForProperty(J,X,!0),w=G1.getStylesForProperty(J,Z,!0);for(let $ in Q)w[$]=w5(J,Q[$])+" "+w5(J,w[$]);return w}if(/^border(Top|Right|Bottom|Left)?$/.test(J)){let X=G1.getStylesForProperty("border",K,!0);X.borderWidth===1&&!String(K).includes("1px")&&(X.borderWidth=3),X.borderColor==="black"&&!String(K).includes("black")&&(X.borderColor=Y);let Z={Width:w5(J+"Width",X.borderWidth),Style:B1(X.borderStyle,{solid:"solid",dashed:"dashed"},"solid",J+"Style"),Color:X.borderColor},Q={};for(let w of J==="border"?["Top","Right","Bottom","Left"]:[J.slice(6)])for(let $ in Z)Q["border"+w+$]=Z[$];return Q}if(J==="boxShadow"){if(!K)throw Error('Invalid `boxShadow` value: "'+K+'".');return{[J]:typeof K=="string"?XY.parse(K):K}}if(J==="transform"){if(typeof K!="string")throw Error("Invalid `transform` value.");let X={},Z=K.replace(/(-?[\d.]+%)/g,(w,$)=>{let W=~~(Math.random()*1e9);return X[W]=$,W+"px"}),Q=G1.getStylesForProperty("transform",Z,!0);for(let w of Q.transform)for(let $ in w)X[w[$]]&&(w[$]=X[w[$]]);return Q}if(J==="background")return K=K.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient)\(/.test(K)?G1.getStylesForProperty("backgroundImage",K,!0):G1.getStylesForProperty("background",K,!0);if(J==="textShadow"){K=K.toString().trim();let X={},Z=tK(K);for(let Q of Z){let w=G1.getStylesForProperty("textShadow",Q,!0);for(let $ in w)X[$]?X[$].push(w[$]):X[$]=[w[$]]}return X}if(J==="WebkitTextStroke"){K=K.toString().trim();let X=K.split(" ");if(X.length!==2)throw Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:w5(J,X[0]),WebkitTextStrokeColor:w5(J,X[1])}}}function JK(J){return J==="transform"?" Only absolute lengths such as `10px` are supported.":""}var KK=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function wY(J){if(typeof J=="string"&&KK.test(J.trim()))return J.trim().replace(KK,(K,Y,X,Z,Q)=>`rgba(${Y}, ${X}, ${Z}, ${Q})`);if(typeof J=="object"&&J!==null){for(let K in J)J[K]=wY(J[K]);return J}return J}function YK(J,K){let Y={};if(J){let Z=Sz(J.color,K.color);Y.color=Z;for(let Q in J){if(Q.startsWith("_")){Y[Q]=J[Q];continue}if(Q==="color")continue;let w=G1.getPropertyName(Q),$=yz(J[Q],Z);try{let W=Cz(w,$,Z)||Tz(w,G1.getStylesForProperty(w,w5(w,$),!0),$,Z);Object.assign(Y,W)}catch(W){throw Error(W.message+(W.message.includes($)?`
64
+ `+JK(w):`
65
+ in CSS rule \`${w}: ${$}\`.${JK(w)}`))}}}if(Y.backgroundImage){let{backgrounds:Z}=YY.parseElementStyle(Y);Y.backgroundImage=Z}(Y.maskImage||Y.WebkitMaskImage)&&(Y.maskImage=Dz(Y));let X=Pz(Y.fontSize,K.fontSize);typeof Y.fontSize<"u"&&(Y.fontSize=X),Y.transformOrigin&&(Y.transformOrigin=_z(Y.transformOrigin,X));for(let Z in Y){let Q=Y[Z];if(Z==="lineHeight")typeof Q=="string"&&Q!=="normal"&&(Q=Y[Z]=U0(Q,X,X,K,!0)/X);else{if(typeof Q=="string"){let w=U0(Q,X,X,K);typeof w<"u"&&(Y[Z]=w),Q=Y[Z]}if(typeof Q=="string"||typeof Q=="object"){let w=wY(Q);w&&(Y[Z]=w),Q=Y[Z]}}if(Z==="opacity"&&typeof Q=="number"&&(Y.opacity=Q*K.opacity),Z==="transform"){let w=Q;for(let $ of w){let W=Object.keys($)[0],H=$[W],z=typeof H=="string"?U0(H,X,X,K)??H:H;$[W]=z}}if(Z==="textShadowRadius"){let w=Q;Y.textShadowRadius=w.map(($)=>U0($,X,0,K,!1))}if(Z==="textShadowOffset"){let w=Q;Y.textShadowOffset=w.map(({height:$,width:W})=>({height:U0($,X,0,K,!1),width:U0(W,X,0,K,!1)}))}}return Y}function Pz(J,K){if(typeof J=="number")return J;try{let Y=new e5(J);switch(Y.unit){case"em":return Y.value*K;case"rem":return Y.value*16}}catch{return K}}function XK(J){if(J.startsWith("hsl")){let K=N8(J),[Y,X,Z]=K.values;return`hsl(${[Y,`${X}%`,`${Z}%`].concat(K.alpha===1?[]:[K.alpha]).join(",")})`}return J}function Sz(J,K){return J&&J.toLowerCase()!=="currentcolor"?XK(J):XK(K)}function vz(J,K){return J.replace(/currentcolor/gi,K)}function yz(J,K){return aK(J)&&(J=vz(J,K)),J}async function hz(J,K,Y,X,Z){let Q=await a8(),w={...Y,...YK(Nz[K],Y),...YK(X,Y)};if(K==="img"){let[$,W,H]=await d4(Z.src);if(W===void 0&&H===void 0){if(Z.width===void 0||Z.height===void 0)throw Error("Image size cannot be determined. Please provide the width and height of the image.");W=parseInt(Z.width),H=parseInt(Z.height)}let z=H/W,U=(w.borderLeftWidth||0)+(w.borderRightWidth||0)+(w.paddingLeft||0)+(w.paddingRight||0),V=(w.borderTopWidth||0)+(w.borderBottomWidth||0)+(w.paddingTop||0)+(w.paddingBottom||0),A=w.width||Z.width,L=w.height||Z.height,B=typeof A=="number"&&typeof L=="number";B&&(A-=U,L-=V),A===void 0&&L===void 0?(A="100%",J.setAspectRatio(1/z)):A===void 0?typeof L=="number"?A=L/z:J.setAspectRatio(1/z):L===void 0&&(typeof A=="number"?L=A*z:J.setAspectRatio(1/z)),w.width=B?A+U:A,w.height=B?L+V:L,w.__src=$}if(K==="svg"){let $=Z.viewBox||Z.viewbox,W=l4($),H=W?W[3]/W[2]:null,{width:z,height:U}=Z;typeof z>"u"&&U?H==null?z=0:typeof U=="string"&&U.endsWith("%")?z=parseInt(U)/H+"%":(U=U0(U,Y.fontSize,1,Y),z=U/H):typeof U>"u"&&z?H==null?z=0:typeof z=="string"&&z.endsWith("%")?U=parseInt(z)*H+"%":(z=U0(z,Y.fontSize,1,Y),U=z*H):(typeof z<"u"&&(z=U0(z,Y.fontSize,1,Y)||z),typeof U<"u"&&(U=U0(U,Y.fontSize,1,Y)||U),z||=W==null?void 0:W[2],U||=W==null?void 0:W[3]),!w.width&&z&&(w.width=z),!w.height&&U&&(w.height=U)}return J.setDisplay(B1(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(B1(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(B1(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(B1(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(B1(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(B1(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(B1(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(B1(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(B1(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,Ez(w)]}var ZK=[1,0,0,1,0,0];function kz(J,K,Y){let X=[...ZK];for(let Z of J){let Q=Object.keys(Z)[0],w=Z[Q];if(typeof w=="string")if(Q==="translateX")w=parseFloat(w)/100*K,Z[Q]=w;else if(Q==="translateY")w=parseFloat(w)/100*Y,Z[Q]=w;else throw Error(`Invalid transform: "${Q}: ${w}".`);let $=w,W=[...ZK];switch(Q){case"translateX":W[4]=$;break;case"translateY":W[5]=$;break;case"scale":W[0]=$,W[3]=$;break;case"scaleX":W[0]=$;break;case"scaleY":W[3]=$;break;case"rotate":{let H=$*Math.PI/180,z=Math.cos(H),U=Math.sin(H);W[0]=z,W[1]=U,W[2]=-U,W[3]=z;break}case"skewX":W[2]=Math.tan($*Math.PI/180);break;case"skewY":W[1]=Math.tan($*Math.PI/180);break}X=c8(W,X)}J.splice(0,J.length),J.push(...X),J.__resolved=!0}function WY({left:J,top:K,width:Y,height:X},Z,Q,w){let $;Z.__resolved||kz(Z,Y,X);let W=Z;if(Q)$=W;else{let H=(w==null?void 0:w.xAbsolute)??((w==null?void 0:w.xRelative)??50)*Y/100,z=(w==null?void 0:w.yAbsolute)??((w==null?void 0:w.yRelative)??50)*X/100,U=J+H,V=K+z;$=c8([1,0,0,1,U,V],c8(W,[1,0,0,1,-U,-V])),W.__parent&&($=c8(W.__parent,$)),W.splice(0,6,...$)}return`matrix(${$.map((H)=>H.toFixed(2)).join(",")})`}function gz({left:J,top:K,width:Y,height:X,isInheritingTransform:Z},Q){let w="",$=1;return Q.transform&&(w=WY({left:J,top:K,width:Y,height:X},Q.transform,Z,Q.transformOrigin)),Q.opacity!==void 0&&($=+Q.opacity),{matrix:w,opacity:$}}function xz({id:J,content:K,filter:Y,left:X,top:Z,width:Q,height:w,matrix:$,opacity:W,image:H,clipPathId:z,debug:U,shape:V,decorationShape:A},L){let B="";if(U&&(B=a("rect",{x:X,y:Z-w,width:Q,height:w,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:$||void 0,"clip-path":z?`url(#${z})`:void 0})),H){let O={href:H,x:X,y:Z,width:Q,height:w,transform:$||void 0,"clip-path":z?`url(#${z})`:void 0,style:L.filter?`filter:${L.filter}`:void 0};return[(Y?`${Y}<g filter="url(#satori_s-${J})">`:"")+a("image",{...O,opacity:W!==1?W:void 0})+(A||"")+(Y?"</g>":"")+B,""]}let M={x:X,y:Z,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:$||void 0,"clip-path":z?`url(#${z})`: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[(Y?`${Y}<g filter="url(#satori_s-${J})">`:"")+a("text",{...M,fill:L.color,opacity:W!==1?W:void 0},C4.default(K))+(A||"")+(Y?"</g>":"")+B,V?a("text",M,C4.default(K)):""]}function bz(J,K,Y){return J.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(X,Z,Q,w){return Z+(parseFloat(Q)+K)+","+(parseFloat(w)+Y)})}var v8=1.1;function fz({id:J,width:K,height:Y},X){if(!X.shadowColor||!X.shadowOffset||typeof X.shadowRadius>"u")return"";let Z=X.shadowColor.length,Q="",w="",$=0,W=K,H=0,z=Y;for(let U=0;U<Z;U++){let V=X.shadowRadius[U]*X.shadowRadius[U]/4;$=Math.min(X.shadowOffset[U].width-V,$),W=Math.max(X.shadowOffset[U].width+V+K,W),H=Math.min(X.shadowOffset[U].height-V,H),z=Math.max(X.shadowOffset[U].height+V+Y,z),Q+=a("feDropShadow",{dx:X.shadowOffset[U].width,dy:X.shadowOffset[U].height,stdDeviation:X.shadowRadius[U]/2,"flood-color":X.shadowColor[U],"flood-opacity":1,...Z>1?{in:"SourceGraphic",result:`satori_s-${J}-result-${U}`}:{}}),Z>1&&(w=a("feMergeNode",{in:`satori_s-${J}-result-${U}`})+w)}return a("filter",{id:`satori_s-${J}`,x:($/K*100*v8).toFixed(2)+"%",y:(H/Y*100*v8).toFixed(2)+"%",width:((W-$)/K*100*v8).toFixed(2)+"%",height:((z-H)/Y*100*v8).toFixed(2)+"%"},Q+(w?a("feMerge",{},w):""))}function mz({width:J,height:K,shape:Y,opacity:X,id:Z},Q){if(!Q.boxShadow)return null;let w="",$="";for(let W=Q.boxShadow.length-1;W>=0;W--){let H="",z=Q.boxShadow[W];z.spreadRadius&&z.inset&&(z.spreadRadius=-z.spreadRadius);let U=z.blurRadius*z.blurRadius/4+(z.spreadRadius||0),V=Math.min(-U-(z.inset?z.offsetX:0),0),A=Math.max(U+J-(z.inset?z.offsetX:0),J),L=Math.min(-U-(z.inset?z.offsetY:0),0),B=Math.max(U+K-(z.inset?z.offsetY:0),K),M=`satori_s-${Z}-${W}`,O=`satori_ms-${Z}-${W}`,N=z.spreadRadius?Y.replace('stroke-width="0"',`stroke-width="${z.spreadRadius*2}"`):Y;H+=a("mask",{id:O,maskUnits:"userSpaceOnUse"},a("rect",{x:0,y:0,width:Q._viewportWidth||"100%",height:Q._viewportHeight||"100%",fill:z.inset?"#000":"#fff"})+N.replace('fill="#fff"',z.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let E=N.replace(/d="([^"]+)"/,(D,F)=>'d="'+bz(F,z.offsetX,z.offsetY)+'"').replace(/x="([^"]+)"/,(D,F)=>'x="'+(parseFloat(F)+z.offsetX)+'"').replace(/y="([^"]+)"/,(D,F)=>'y="'+(parseFloat(F)+z.offsetY)+'"');z.spreadRadius&&z.spreadRadius<0&&(H+=a("mask",{id:O+"-neg",maskUnits:"userSpaceOnUse"},E.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-z.spreadRadius*2}"`))),z.spreadRadius&&z.spreadRadius<0&&(E=a("g",{mask:`url(#${O}-neg)`},E)),H+=a("defs",{},a("filter",{id:M,x:`${V/J*100}%`,y:`${L/K*100}%`,width:`${(A-V)/J*100}%`,height:`${(B-L)/K*100}%`},a("feGaussianBlur",{stdDeviation:z.blurRadius/2,result:"b"})+a("feFlood",{"flood-color":z.color,in:"SourceGraphic",result:"f"})+a("feComposite",{in:"f",in2:"b",operator:z.inset?"out":"in"})))+a("g",{mask:`url(#${O})`,filter:`url(#${M})`,opacity:X},E),z.inset?$+=H:w+=H}return[w,$]}function lz({width:J,left:K,top:Y,ascender:X,clipPathId:Z,matrix:Q},w){let{textDecorationColor:$,textDecorationStyle:W,textDecorationLine:H,fontSize:z,color:U}=w;if(!H||H==="none")return"";let V=Math.max(1,z*0.1),A=H==="line-through"?Y+X*0.7:H==="underline"?Y+X*1.1:Y,L=W==="dashed"?`${V*1.2} ${V*2}`:W==="dotted"?`0 ${V*2}`:void 0;return(Z?`<g clip-path="url(#${Z})">`:"")+a("line",{x1:K,y1:A,x2:K+J,y2:A,stroke:$||U,"stroke-width":V,"stroke-dasharray":L,"stroke-linecap":W==="dotted"?"round":"square",transform:Q})+(Z?"</g>":"")}function u4(J){return J=J.replace("U+","0x"),String.fromCodePoint(Number(J))}var a5=u4("U+0020"),$Y=u4("U+0009"),u8=u4("U+2026");function cz(J,K,Y){let{fontSize:X,letterSpacing:Z}=Y,Q=new Map;function w(H){if(Q.has(H))return Q.get(H);let z=J.measure(H,{fontSize:X,letterSpacing:Z});return Q.set(H,z),z}function $(H){let z=0;for(let U of H)K(U)?z+=X:z+=w(U);return z}function W(H){return $(M1(H,"grapheme"))}return{measureGrapheme:w,measureGraphemeArray:$,measureText:W}}function dz(J,K,Y){let{textTransform:X,whiteSpace:Z,wordBreak:Q}=K;J=uz(J,X,Y);let{content:w,shouldCollapseTabsAndSpaces:$,allowSoftWrap:W}=rz(J,Z),{words:H,requiredBreaks:z,allowBreakWord:U}=iz(w,Q),[V,A]=pz(K,W);return{words:H,requiredBreaks:z,allowSoftWrap:W,allowBreakWord:U,processedContent:w,shouldCollapseTabsAndSpaces:$,lineLimit:V,blockEllipsis:A}}function uz(J,K,Y){return K==="uppercase"?J=J.toLocaleUpperCase(Y):K==="lowercase"?J=J.toLocaleLowerCase(Y):K==="capitalize"&&(J=M1(J,"word",Y).map((X)=>M1(X,"grapheme",Y).map((Z,Q)=>Q===0?Z.toLocaleUpperCase(Y):Z).join("")).join("")),J}function pz(J,K){let{textOverflow:Y,lineClamp:X,WebkitLineClamp:Z,WebkitBoxOrient:Q,overflow:w,display:$}=J;if($==="block"&&X){let[W,H=u8]=nz(X);if(W)return[W,H]}return Y==="ellipsis"&&$==="-webkit-box"&&Q==="vertical"&&wz(Z)&&Z>0?[Z,u8]:Y==="ellipsis"&&w==="hidden"&&!K?[1,u8]:[1/0]}function iz(J,K){let Y=["break-all","break-word"].includes(K),{words:X,requiredBreaks:Z}=$z(J,K);return{words:X,requiredBreaks:Z,allowBreakWord:Y}}function rz(J,K){let Y=["pre","pre-wrap","pre-line"].includes(K),X=["normal","nowrap","pre-line"].includes(K),Z=!["pre","nowrap"].includes(K);return Y||(J=J.replace(/\n/g,a5)),X&&(J=J.replace(/([ ]|\t)+/g,a5).replace(/^[ ]|[ ]$/g,"")),{content:J,shouldCollapseTabsAndSpaces:X,allowSoftWrap:Z}}function nz(J){if(typeof J=="number")return[J];let K=/^(\d+)\s*"(.*)"$/,Y=/^(\d+)\s*'(.*)'$/,X=K.exec(J),Z=Y.exec(J);if(X){let Q=+X[1],w=X[2];return[Q,w]}else if(Z){let Q=+Z[1],w=Z[2];return[Q,w]}return[]}var oz=new Set([$Y]);function sz(J){return oz.has(J)}async function*az(J,K){let Y=await a8(),{parentStyle:X,inheritedStyle:Z,parent:Q,font:w,id:$,isInheritingTransform:W,debug:H,embedFont:z,graphemeImages:U,locale:V,canLoadAdditionalAssets:A}=K,{textAlign:L,lineHeight:B,textWrap:M,fontSize:O,filter:N,tabSize:E=8,letterSpacing:D,_inheritedBackgroundClipTextPath:F,flexShrink:j}=X,{words:T,requiredBreaks:I,allowSoftWrap:C,allowBreakWord:k,processedContent:d,shouldCollapseTabsAndSpaces:u,lineLimit:p,blockEllipsis:P}=dz(J,X,V),S=tz(Y,L);Q.insertChild(S,Q.getChildCount()),Wz(j)&&Q.setFlexShrink(1);let R=w.getEngine(O,B,X,V),c=A?M1(d,"grapheme").filter((w0)=>!sz(w0)&&!R.has(w0)):[];yield c.map((w0)=>({word:w0,locale:V})),c.length&&(R=w.getEngine(O,B,X,V));function f(w0){return!!(U&&U[w0])}let{measureGrapheme:o,measureGraphemeArray:i,measureText:m}=cz(R,f,{fontSize:O,letterSpacing:D}),l=aK(E)?U0(E,O,1,X):o(a5)*E,y=(w0,O0)=>{if(w0.length===0)return{originWidth:0,endingSpacesWidth:0,text:w0};let{index:E0,tabCount:V0}=ez(w0),I0=0;if(V0>0){let C0=w0.slice(0,E0),_0=w0.slice(E0+V0),L0=m(C0),L1=L0+O0;I0=(l===0?L0:(Math.floor(L1/l)+V0)*l)+m(_0)}else I0=m(w0);let B0=w0.trimEnd()===w0?I0:m(w0.trimEnd());return{originWidth:I0,endingSpacesWidth:I0-B0,text:w0}},h=[],s=[],g=[],J0=[],X0=[];function Z0(w0){let O0=0,E0=0,V0=-1,I0=0,B0=0,C0=0,_0=0;h=[],g=[0],J0=[],X0=[];let L0=0,L1=0;for(;L0<T.length&&O0<p;){let $0=T[L0],e1=I[L0],t0=0,{originWidth:g1,endingSpacesWidth:w8,text:x1}=y($0,B0);$0=x1,t0=g1;let N0=w8;e1&&C0===0&&(C0=R.height($0));let x0=",.!?:-@)>]}%#".indexOf($0[0])<0,w1=!B0,W8=L0&&x0&&B0+t0>w0+N0&&C;if(k&&t0>w0&&(!B0||W8||e1)){let d0=M1($0,"grapheme");T.splice(L0,1,...d0),B0>0&&(h.push(B0-L1),s.push(_0),O0++,I0+=C0,B0=0,C0=0,_0=0,g.push(1),V0=-1),L1=N0;continue}if(e1||W8)u&&$0===a5&&(t0=0),h.push(B0-L1),s.push(_0),O0++,I0+=C0,B0=t0,C0=t0?R.height($0):0,_0=t0?R.baseline($0):0,g.push(1),V0=-1,e1||(E0=Math.max(E0,w0));else{B0+=t0;let d0=R.height($0);d0>C0&&(C0=d0,_0=R.baseline($0)),w1&&g[g.length-1]++}w1&&V0++,E0=Math.max(E0,B0);let R5=B0-t0;if(t0===0)X0.push({y:I0,x:R5,width:0,line:O0,lineIndex:V0,isImage:!1});else{let d0=M1($0,"word");for(let W1=0;W1<d0.length;W1++){let J5=d0[W1],R1=0,T5=!1;f(J5)?(R1=O,T5=!0):R1=o(J5),J0.push(J5),X0.push({y:I0,x:R5,width:R1,line:O0,lineIndex:V0,isImage:T5}),R5+=R1}}L0++,L1=N0}return B0&&(O0<p&&(I0+=C0),O0++,h.push(B0),s.push(_0)),{width:E0,height:I0}}let K0={width:0,height:0};S.setMeasureFunc((w0)=>{let{width:O0,height:E0}=Z0(w0);if(M==="balance"){let I0=O0/2,B0=O0,C0=O0;for(;I0+1<B0;){C0=(I0+B0)/2;let{height:L0}=Z0(C0);L0>E0?I0=C0:B0=C0}Z0(B0);let _0=Math.ceil(B0);return K0={width:_0,height:E0},{width:_0,height:E0}}let V0=Math.ceil(O0);return K0={width:V0,height:E0},{width:V0,height:E0}});let[A0,D0]=yield,Y0="",M0="",v0=Z._inheritedClipPathId,u0=Z._inheritedMaskId,{left:g0,top:T0,width:c0,height:p0}=S.getComputedLayout(),i0=Q.getComputedWidth()-Q.getComputedPadding(Y.EDGE_LEFT)-Q.getComputedPadding(Y.EDGE_RIGHT)-Q.getComputedBorder(Y.EDGE_LEFT)-Q.getComputedBorder(Y.EDGE_RIGHT),Z1=A0+g0,Q1=D0+T0,{matrix:a0,opacity:z5}=gz({left:g0,top:T0,width:c0,height:p0,isInheritingTransform:W},X),h1="";if(X.textShadowOffset){let{textShadowColor:w0,textShadowOffset:O0,textShadowRadius:E0}=X;h1=fz({width:K0.width,height:K0.height,id:$},{shadowColor:w0,shadowOffset:O0,shadowRadius:E0}),h1=a("defs",{},h1)}let t1="",U5="",Q8="",V5=-1,A5={},k1=null,G9=0;for(let w0=0;w0<J0.length;w0++){let O0=X0[w0],E0=X0[w0+1];if(!O0)continue;let V0=J0[w0],I0=null,B0=!1,C0=U?U[V0]:null,_0=O0.y,L0=O0.x,L1=O0.width,$0=O0.line;if($0===V5)continue;let e1=!1;if(h.length>1){let N0=c0-h[$0];if(L==="right"||L==="end")L0+=N0;else if(L==="center")L0+=N0/2;else if(L==="justify"&&$0<h.length-1){let x0=g[$0],w1=x0>1?N0/(x0-1):0;L0+=w1*O0.lineIndex,e1=!0}}let t0=s[$0],g1=R.baseline(V0),w8=R.height(V0),x1=t0-g1;if(A5[$0]||(A5[$0]=[L0,Q1+_0+x1,g1,e1?c0:h[$0]]),p!==1/0){let N0=function(d0,W1){let J5=M1(W1,"grapheme",V),R1="",T5=0;for(let M9 of J5){let L9=d0+i([R1+M9]);if(R1&&L9+w1>i0)break;R1+=M9,T5=L9}return{subset:R1,resolvedWidth:T5}},x0=P,w1=o(P);w1>i0&&(x0=u8,w1=o(x0));let W8=o(a5),R5=$0<h.length-1;if($0+1===p&&(R5||h[$0]>i0)){if(L0+L1+w1+W8>i0){let{subset:d0,resolvedWidth:W1}=N0(L0,V0);V0=d0+x0,V5=$0,A5[$0][2]=W1,B0=!0}else if(E0&&E0.line!==$0)if(L==="center"){let{subset:d0,resolvedWidth:W1}=N0(L0,V0);V0=d0+x0,V5=$0,A5[$0][2]=W1,B0=!0}else{let d0=J0[w0+1],{subset:W1,resolvedWidth:J5}=N0(L1+L0,d0);V0=V0+W1+x0,V5=$0,A5[$0][2]=J5,B0=!0}}}if(C0)_0+=0;else if(z){if(!V0.includes($Y)&&!Xz.includes(V0)&&J0[w0+1]&&E0&&!E0.isImage&&_0===E0.y&&!B0){k1===null&&(G9=L0),k1=k1===null?V0:k1+V0;continue}let N0=k1===null?V0:k1+V0,x0=k1===null?L0:G9,w1=O0.width+L0-x0;I0=R.getSVG(N0.replace(/(\t)+/g,""),{fontSize:O,left:Z1+x0,top:Q1+_0+g1+x1,letterSpacing:D}),k1=null,H&&(Q8+=a("rect",{x:Z1+x0,y:Q1+_0+x1,width:w1,height:w8,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:a0||void 0,"clip-path":v0?`url(#${v0})`:void 0})+a("line",{x1:Z1+L0,x2:Z1+L0+O0.width,y1:Q1+_0+x1+g1,y2:Q1+_0+x1+g1,stroke:"#14c000","stroke-width":1,transform:a0||void 0,"clip-path":v0?`url(#${v0})`:void 0}))}else _0+=g1+x1;if(X.textDecorationLine){let N0=A5[$0];N0&&!N0[4]&&(t1+=lz({left:Z1+N0[0],top:N0[1],width:N0[3],ascender:N0[2],clipPathId:v0,matrix:a0},X),N0[4]=1)}if(I0!==null)U5+=I0+" ";else{let[N0,x0]=xz({content:V0,filter:h1,id:$,left:Z1+L0,top:Q1+_0,width:L1,height:w8,matrix:a0,opacity:z5,image:C0,clipPathId:v0,debug:H,shape:!!F,decorationShape:t1},X);Y0+=N0,M0+=x0,t1=""}if(B0)break}if(U5){let w0=X.color!=="transparent"&&z5!==0?a("path",{fill:X.color,d:U5,transform:a0||void 0,opacity:z5!==1?z5:void 0,"clip-path":v0?`url(#${v0})`:void 0,mask:u0?`url(#${u0})`:void 0,style:N?`filter:${N}`:void 0,"stroke-width":Z.WebkitTextStrokeWidth?`${Z.WebkitTextStrokeWidth}px`:void 0,stroke:Z.WebkitTextStrokeWidth?Z.WebkitTextStrokeColor:void 0,"stroke-linejoin":Z.WebkitTextStrokeWidth?"round":void 0,"paint-order":Z.WebkitTextStrokeWidth?"stroke":void 0}):"";F&&(M0=a("path",{d:U5,transform:a0||void 0})),Y0+=(h1?h1+a("g",{filter:`url(#satori_s-${$})`},w0+t1):w0+t1)+Q8}return M0&&(X._inheritedBackgroundClipTextPath.value+=M0),Y0}function tz(J,K){let Y=J.Node.create();return Y.setAlignItems(J.ALIGN_BASELINE),Y.setJustifyContent(B1(K,{left:J.JUSTIFY_FLEX_START,right:J.JUSTIFY_FLEX_END,center:J.JUSTIFY_CENTER,justify:J.JUSTIFY_SPACE_BETWEEN,start:J.JUSTIFY_FLEX_START,end:J.JUSTIFY_FLEX_END},J.JUSTIFY_FLEX_START,"textAlign")),Y}function ez(J){let K=/(\t)+/.exec(J);return K?{index:K.index,tabCount:K[0].length}:{index:null,tabCount:0}}function HY(J,K,Y,X,Z){let Q=[];for(let H of K){let{color:z}=H;if(!Q.length&&(Q.push({offset:0,color:z}),!H.offset||H.offset.value==="0"))continue;let U=typeof H.offset>"u"?void 0:H.offset.unit==="%"?+H.offset.value/100:Number(U0(`${H.offset.value}${H.offset.unit}`,Y.fontSize,J,Y,!0))/J;Q.push({offset:U,color:z})}Q.length||Q.push({offset:0,color:"transparent"});let w=Q[Q.length-1];w.offset!==1&&(typeof w.offset>"u"?w.offset=1:X?Q[Q.length-1]={offset:1,color:w.color}:Q.push({offset:1,color:w.color}));let $=0,W=1;for(let H=0;H<Q.length;H++)if(typeof Q[H].offset>"u"){for(W<H&&(W=H);typeof Q[W].offset>"u";)W++;Q[H].offset=(Q[W].offset-Q[$].offset)/(W-$)*(H-$)+Q[$].offset}else $=H;return Z==="mask"?Q.map((H)=>{let z=N8(H.color);return z?z.alpha===0?{...H,color:"rgba(0, 0, 0, 1)"}:{...H,color:`rgba(255, 255, 255, ${z.alpha})`}:H}):Q}function JU({id:J,width:K,height:Y,repeatX:X,repeatY:Z},Q,w,$,W,H){let z=t7(Q),[U,V]=w,A=Q.startsWith("repeating"),L,B,M;if(z.orientation.type==="directional")L=YU(z.orientation.value),B=Math.sqrt(Math.pow((L.x2-L.x1)*U,2)+Math.pow((L.y2-L.y1)*V,2));else if(z.orientation.type==="angular"){let{length:F,...j}=XU(sK(`${z.orientation.value.value}${z.orientation.value.unit}`)/180*Math.PI,U,V);B=F,L=j}M=A?ZU(z.stops,B,L,W):L;let O=HY(A?KU(z.stops,B):B,z.stops,W,A,H),N=`satori_bi${J}`,E=`satori_pattern_${J}`,D=a("pattern",{id:E,x:$[0]/K,y:$[1]/Y,width:X?U/K:"1",height:Z?V/Y:"1",patternUnits:"objectBoundingBox"},a("linearGradient",{id:N,...M,spreadMethod:A?"repeat":"pad"},O.map((F)=>a("stop",{offset:(F.offset??0)*100+"%","stop-color":F.color})).join(""))+a("rect",{x:0,y:0,width:U,height:V,fill:`url(#${N})`}));return[E,D]}function KU(J,K){let Y=J[J.length-1],{offset:X}=Y;return X?X.unit==="%"?Number(X.value)/100*K:Number(X.value):K}function YU(J){let K=0,Y=0,X=0,Z=0;return J.includes("top")?Y=1:J.includes("bottom")&&(Z=1),J.includes("left")?K=1:J.includes("right")&&(X=1),!K&&!X&&!Y&&!Z&&(Y=1),{x1:K,y1:Y,x2:X,y2:Z}}function XU(J,K,Y){let X=Math.pow(Y/K,2);J=(J%(Math.PI*2)+Math.PI*2)%(Math.PI*2);let Z,Q,w,$,W,H,z,U,V=(A)=>{if(A===0){Z=0,Q=Y,w=0,$=0,W=Y;return}else if(A===Math.PI/2){Z=0,Q=0,w=K,$=0,W=K;return}if(A>0&&A<Math.PI/2){Z=(X*K/2/Math.tan(A)-Y/2)/(Math.tan(A)+X/Math.tan(A)),Q=Math.tan(A)*Z+Y,w=Math.abs(K/2-Z)+K/2,$=Y/2-Math.abs(Q-Y/2),W=Math.sqrt(Math.pow(w-Z,2)+Math.pow($-Q,2)),z=(K/2/Math.tan(A)-Y/2)/(Math.tan(A)+1/Math.tan(A)),U=Math.tan(A)*z+Y,W=2*Math.sqrt(Math.pow(K/2-z,2)+Math.pow(Y/2-U,2));return}else if(A>Math.PI/2&&A<Math.PI){Z=(Y/2+X*K/2/Math.tan(A))/(Math.tan(A)+X/Math.tan(A)),Q=Math.tan(A)*Z,w=Math.abs(K/2-Z)+K/2,$=Y/2+Math.abs(Q-Y/2),z=(K/2/Math.tan(A)+Y/2)/(Math.tan(A)+1/Math.tan(A)),U=Math.tan(A)*z,W=2*Math.sqrt(Math.pow(K/2-z,2)+Math.pow(Y/2-U,2));return}else A>=Math.PI&&(V(A-Math.PI),H=Z,Z=w,w=H,H=Q,Q=$,$=H)};return V(J),{x1:Z/K,y1:Q/Y,x2:w/K,y2:$/Y,length:W}}function ZU(J,K,Y,X){let{x1:Z,x2:Q,y1:w,y2:$}=Y,W=J[0].offset?J[0].offset.unit==="%"?Number(J[0].offset.value)/100:U0(`${J[0].offset.value}${J[0].offset.unit}`,X.fontSize,K,X,!0)/K:0,H=J.at(-1).offset?J.at(-1).offset.unit==="%"?Number(J.at(-1).offset.value)/100:U0(`${J.at(-1).offset.value}${J.at(-1).offset.unit}`,X.fontSize,K,X,!0)/K:1,z=(Q-Z)*W+Z,U=($-w)*W+w,V=(Q-Z)*H+Z,A=($-w)*H+w;return{x1:z,y1:U,x2:V,y2:A}}function QU({id:J,width:K,height:Y,repeatX:X,repeatY:Z},Q,w,$,W,H){var z;let{shape:U,stops:V,position:A,size:L}=e7(Q),[B,M]=w,O=B/2,N=M/2,E=wU(A.x,A.y,B,M,W.fontSize,W);O=E.x,N=E.y;let D=HY(K,V,W,!1,H),F=`satori_radial_${J}`,j=`satori_pattern_${J}`,T=`satori_mask_${J}`,I=WU(U,L,W.fontSize,{x:O,y:N},[B,M],W),C=a("pattern",{id:j,x:$[0]/K,y:$[1]/Y,width:X?B/K:"1",height:Z?M/Y:"1",patternUnits:"objectBoundingBox"},a("radialGradient",{id:F},D.map((k)=>a("stop",{offset:k.offset||0,"stop-color":k.color})).join(""))+a("mask",{id:T},a("rect",{x:0,y:0,width:B,height:M,fill:"#fff"}))+a("rect",{x:0,y:0,width:B,height:M,fill:((z=D.at(-1))==null?void 0:z.color)||"transparent"})+a(U,{cx:O,cy:N,width:B,height:M,...I,fill:`url(#${F})`,mask:`url(#${T})`}));return[j,C]}function wU(J,K,Y,X,Z,Q){let w={x:Y/2,y:X/2};return J.type==="keyword"?Object.assign(w,QK(J.value,Y,X,"x")):w.x=U0(`${J.value.value}${J.value.unit}`,Z,Y,Q,!0)||Y/2,K.type==="keyword"?Object.assign(w,QK(K.value,Y,X,"y")):w.y=U0(`${K.value.value}${K.value.unit}`,Z,X,Q,!0)||X/2,w}function QK(J,K,Y,X){switch(J){case"center":return{[X]:X==="x"?K/2:Y/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:K};case"bottom":return{y:Y}}}function WU(J,K,Y,X,Z,Q){let[w,$]=Z,{x:W,y:H}=X,z={},U=0,V=0;if($U(K)){if(K.some((A)=>A.value.value.startsWith("-")))throw Error("disallow setting negative values to the size of the shape. Check https://w3c.github.io/csswg-drafts/css-images/#valdef-rg-size-length-0");return J==="circle"?{r:Number(U0(`${K[0].value.value}${K[0].value.unit}`,Y,w,Q,!0))}:{rx:Number(U0(`${K[0].value.value}${K[0].value.unit}`,Y,w,Q,!0)),ry:Number(U0(`${K[1].value.value}${K[1].value.unit}`,Y,$,Q,!0))}}switch(K[0].value){case"farthest-corner":U=Math.max(Math.abs(w-W),Math.abs(W)),V=Math.max(Math.abs($-H),Math.abs(H));break;case"closest-corner":U=Math.min(Math.abs(w-W),Math.abs(W)),V=Math.min(Math.abs($-H),Math.abs(H));break;case"farthest-side":return J==="circle"?z.r=Math.max(Math.abs(w-W),Math.abs(W),Math.abs($-H),Math.abs(H)):(z.rx=Math.max(Math.abs(w-W),Math.abs(W)),z.ry=Math.max(Math.abs($-H),Math.abs(H))),z;case"closest-side":return J==="circle"?z.r=Math.min(Math.abs(w-W),Math.abs(W),Math.abs($-H),Math.abs(H)):(z.rx=Math.min(Math.abs(w-W),Math.abs(W)),z.ry=Math.min(Math.abs($-H),Math.abs(H))),z}if(J==="circle")z.r=Math.sqrt(U*U+V*V);else{let A=V!==0?U/V:1;U===0?(z.rx=0,z.ry=0):(z.ry=Math.sqrt(U*U+V*V*A*A)/A,z.rx=z.ry*A)}return z}function $U(J){return!J.some((K)=>K.type==="keyword")}function HU(J,K){return typeof J=="string"&&J.endsWith("%")?K*parseFloat(J)/100:+J}function N4(J,{x:K,y:Y,defaultX:X,defaultY:Z}){return(J?J.split(" ").map((Q)=>{try{let w=new e5(Q);return w.type==="length"||w.type==="number"?w.value:w.value+w.unit}catch{return null}}).filter((Q)=>Q!==null):[X,Z]).map((Q,w)=>HU(Q,[K,Y][w]))}async function zY({id:J,width:K,height:Y,left:X,top:Z},{image:Q,size:w,position:$,repeat:W},H,z){W=W||"repeat",z=z||"background";let U=W==="repeat-x"||W==="repeat",V=W==="repeat-y"||W==="repeat",A=N4(w,{x:K,y:Y,defaultX:K,defaultY:Y}),L=N4($,{x:K,y:Y,defaultX:0,defaultY:0});if(Q.startsWith("linear-gradient(")||Q.startsWith("repeating-linear-gradient("))return JU({id:J,width:K,height:Y,repeatX:U,repeatY:V},Q,A,L,H,z);if(Q.startsWith("radial-gradient("))return QU({id:J,width:K,height:Y,repeatX:U,repeatY:V},Q,A,L,H,z);if(Q.startsWith("url(")){let B=N4(w,{x:K,y:Y,defaultX:0,defaultY:0}),[M,O,N]=await d4(Q.slice(4,-1)),E=z==="mask"?O||B[0]:B[0]||O,D=z==="mask"?N||B[1]:B[1]||N;return[`satori_bi${J}`,a("pattern",{id:`satori_bi${J}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:L[0]+X,y:L[1]+Z,width:U?E:"100%",height:V?D:"100%"},a("image",{x:0,y:0,width:E,height:D,preserveAspectRatio:"none",href:M}))]}throw Error(`Invalid background image: "${Q}"`)}function zU([J,K]){return Math.round(J*1000)===0&&Math.round(K*1000)===0?0:Math.round(J*K/Math.sqrt(J*J+K*K)*1000)/1000}function y8(J,K,Y){return Y<J+K&&(Y/2<J&&Y/2<K?J=K=Y/2:Y/2<J?J=Y-K:Y/2<K&&(K=Y-J)),[J,K]}function h8(J){J[0]=J[1]=Math.min(J[0],J[1])}function k8(J,K,Y,X,Z){if(typeof J=="string"){let Q=J.split(" ").map(($)=>$.trim()),w=!Q[1]&&!Q[0].endsWith("%");return Q[1]=Q[1]||Q[0],[w,[Math.min(U0(Q[0],X,K,Z,!0),K),Math.min(U0(Q[1],X,Y,Z,!0),Y)]]}return typeof J=="number"?[!0,[Math.min(J,K),Math.min(J,Y)]]:[!0,void 0]}var g8=(J)=>J&&J[0]!==0&&J[1]!==0;function UU({id:J,borderRadiusPath:K,borderType:Y,left:X,top:Z,width:Q,height:w},$){let W=`satori_brc-${J}`;return[a("clipPath",{id:W},a(Y,{x:X,y:Z,width:Q,height:w,d:K||void 0})),W]}function r8({left:J,top:K,width:Y,height:X},Z,Q){let{borderTopLeftRadius:w,borderTopRightRadius:$,borderBottomLeftRadius:W,borderBottomRightRadius:H,fontSize:z}=Z,U,V,A,L;if([U,w]=k8(w,Y,X,z,Z),[V,$]=k8($,Y,X,z,Z),[A,W]=k8(W,Y,X,z,Z),[L,H]=k8(H,Y,X,z,Z),!Q&&!g8(w)&&!g8($)&&!g8(W)&&!g8(H))return"";w||=[0,0],$||=[0,0],W||=[0,0],H||=[0,0],[w[0],$[0]]=y8(w[0],$[0],Y),[W[0],H[0]]=y8(W[0],H[0],Y),[w[1],W[1]]=y8(w[1],W[1],X),[$[1],H[1]]=y8($[1],H[1],X),U&&h8(w),V&&h8($),A&&h8(W),L&&h8(H);let B=[];B[0]=[$,$],B[1]=[H,[-H[0],H[1]]],B[2]=[W,[-W[0],-W[1]]],B[3]=[w,[w[0],-w[1]]];let M=`h${Y-w[0]-$[0]} a${B[0][0]} 0 0 1 ${B[0][1]}`,O=`v${X-$[1]-H[1]} a${B[1][0]} 0 0 1 ${B[1][1]}`,N=`h${H[0]+W[0]-Y} a${B[2][0]} 0 0 1 ${B[2][1]}`,E=`v${W[1]+w[1]-X} a${B[3][0]} 0 0 1 ${B[3][1]}`;if(Q){let D=function(u){let p=zU([w,$,H,W][u]);return u===0?[[J+w[0]-p,K+w[1]-p],[J+w[0],K]]:u===1?[[J+Y-$[0]+p,K+$[1]-p],[J+Y,K+$[1]]]:u===2?[[J+Y-H[0]+p,K+X-H[1]+p],[J+Y-H[0],K+X]]:[[J+W[0]-p,K+X-W[1]+p],[J,K+X-W[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=D(F),I=`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+=I+" ",I=[M,O,N,E][(F+C)%4];let k=(F+C)%4;j+=I.split(" ")[0];let d=D(k);return j+=` A${B[(k+3)%4][0]} 0 0 1 ${d[0]}`,j}return`M${J+w[0]},${K} ${M} ${O} ${N} ${E}`}function wK(J,K,Y){return Y[J+"Width"]===Y[K+"Width"]&&Y[J+"Style"]===Y[K+"Style"]&&Y[J+"Color"]===Y[K+"Color"]}function VU({id:J,currentClipPathId:K,borderPath:Y,borderType:X,left:Z,top:Q,width:w,height:$},W){if(!(W.borderTopWidth||W.borderRightWidth||W.borderBottomWidth||W.borderLeftWidth))return null;let H=`satori_bc-${J}`;return[a("clipPath",{id:H,"clip-path":K?`url(#${K})`:void 0},a(X,{x:Z,y:Q,width:w,height:$,d:Y||void 0})),H]}function UY({left:J,top:K,width:Y,height:X,props:Z,asContentMask:Q,maskBorderOnly:w},$){let W=["borderTop","borderRight","borderBottom","borderLeft"];if(!Q&&!W.some((A)=>$[A+"Width"]))return"";let H="",z=0;for(;z>0&&wK(W[z],W[(z+3)%4],$);)z=(z+3)%4;let U=[!1,!1,!1,!1],V=[];for(let A=0;A<4;A++){let L=(z+A)%4,B=(z+A+1)%4,M=W[L],O=W[B];if(U[L]=!0,V=[$[M+"Width"],$[M+"Style"],$[M+"Color"],M],!wK(M,O,$)){let N=(V[0]||0)+(Q&&!w&&$[M.replace("border","padding")]||0);N&&(H+=a("path",{width:Y,height:X,...Z,fill:"none",stroke:Q?"#000":V[2],"stroke-width":N*2,"stroke-dasharray":!Q&&V[1]==="dashed"?N*2+" "+N:void 0,d:r8({left:J,top:K,width:Y,height:X},$,U)})),U=[!1,!1,!1,!1]}}if(U.some(Boolean)){let A=(V[0]||0)+(Q&&!w&&$[V[3].replace("border","padding")]||0);A&&(H+=a("path",{width:Y,height:X,...Z,fill:"none",stroke:Q?"#000":V[2],"stroke-width":A*2,"stroke-dasharray":!Q&&V[1]==="dashed"?A*2+" "+A:void 0,d:r8({left:J,top:K,width:Y,height:X},$,U)}))}return H}function AU({id:J,left:K,top:Y,width:X,height:Z,matrix:Q,borderOnly:w},$){let W=($.borderLeftWidth||0)+(w?0:$.paddingLeft||0),H=($.borderTopWidth||0)+(w?0:$.paddingTop||0),z=($.borderRightWidth||0)+(w?0:$.paddingRight||0),U=($.borderBottomWidth||0)+(w?0:$.paddingBottom||0),V={x:K+W,y:Y+H,width:X-W-z,height:Z-H-U};return a("mask",{id:J},a("rect",{...V,fill:"#fff",transform:$.overflow==="hidden"&&$.transform&&Q?Q:void 0,mask:$._inheritedMaskId?`url(#${$._inheritedMaskId})`:void 0})+UY({left:K,top:Y,width:X,height:Z,props:{transform:Q||void 0},asContentMask:!0,maskBorderOnly:w},$))}var r5={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/};function BU({width:J,height:K},Y,X){function Z(H){let z=H.match(r5.circle);if(!z)return null;let[,U]=z,[V,A=""]=U.split("at").map((M)=>M.trim()),{x:L,y:B}=$K(A,J,K);return{type:"circle",r:U0(V,X.fontSize,Math.sqrt(Math.pow(J,2)+Math.pow(K,2))/Math.sqrt(2),X,!0),cx:U0(L,X.fontSize,J,X,!0),cy:U0(B,X.fontSize,K,X,!0)}}function Q(H){let z=H.match(r5.ellipse);if(!z)return null;let[,U]=z,[V,A=""]=U.split("at").map((N)=>N.trim()),[L,B]=V.split(" "),{x:M,y:O}=$K(A,J,K);return{type:"ellipse",rx:U0(L||"50%",X.fontSize,J,X,!0),ry:U0(B||"50%",X.fontSize,K,X,!0),cx:U0(M,X.fontSize,J,X,!0),cy:U0(O,X.fontSize,K,X,!0)}}function w(H){let z=H.match(r5.path);if(!z)return null;let[U,V]=WK(z[1]);return{type:"path",d:V,"fill-rule":U}}function $(H){let z=H.match(r5.polygon);if(!z)return null;let[U,V]=WK(z[1]);return{type:"polygon","fill-rule":U,points:V.split(",").map((A)=>A.split(" ").map((L,B)=>U0(L,X.fontSize,B===0?J:K,X,!0)).join(" ")).join(",")}}function W(H){let z=H.match(r5.inset);if(!z)return null;let[U,V]=(z[1].includes("round")?z[1]:`${z[1].trim()} round 0`).split("round"),A=P4.getStylesForProperty("borderRadius",V,!0),L=Object.values(A).map((D)=>String(D)).map((D,F)=>U0(D,X.fontSize,F===0||F===2?K:J,X,!0)||0),B=Object.values(P4.getStylesForProperty("margin",U,!0)).map((D)=>String(D)).map((D,F)=>U0(D,X.fontSize,F===0||F===2?K:J,X,!0)||0),M=B[3],O=B[0],N=J-(B[1]+B[3]),E=K-(B[0]+B[2]);return L.some((D)=>D>0)?{type:"path",d:r8({left:M,top:O,width:N,height:E},{...Y,...A})}:{type:"rect",x:M,y:O,width:N,height:E}}return{parseCircle:Z,parseEllipse:Q,parsePath:w,parsePolygon:$,parseInset:W}}function WK(J){let[,K="nonzero",Y]=J.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[K,Y]}function $K(J,K,Y){let X=J.split(" "),Z={x:X[0]||"50%",y:X[1]||"50%"};return X.forEach((Q)=>{Q==="top"?Z.y=0:Q==="bottom"?Z.y=Y:Q==="left"?Z.x=0:Q==="right"?Z.x=K:Q==="center"&&(Z.x=K/2,Z.y=Y/2)}),Z}function p4(J){return`satori_cp-${J}`}function GU(J){return`url(#${p4(J)})`}function MU(J,K,Y){if(K.clipPath==="none")return"";let X=BU(J,K,Y),Z=K.clipPath,Q={type:""};for(let w of Object.keys(X))if(Q=X[w](Z),Q)break;if(Q){let{type:w,...$}=Q;return a("clipPath",{id:p4(J.id),"clip-path":J.currentClipPath,transform:`translate(${J.left}, ${J.top})`},a(w,$))}return""}function LU({left:J,top:K,width:Y,height:X,path:Z,matrix:Q,id:w,currentClipPath:$,src:W},H,z){let U="",V=H.clipPath&&H.clipPath!=="none"?MU({left:J,top:K,width:Y,height:X,path:Z,id:w,matrix:Q,currentClipPath:$,src:W},H,z):"";if(H.overflow!=="hidden"&&!W)U="";else{let L=V?`satori_ocp-${w}`:p4(w);U=a("clipPath",{id:L,"clip-path":$},a(Z?"path":"rect",{x:J,y:K,width:Y,height:X,d:Z||void 0,transform:H.overflow==="hidden"&&H.transform&&Q?Q:void 0}))}let A=AU({id:`satori_om-${w}`,left:J,top:K,width:Y,height:X,matrix:Q,borderOnly:!W},H);return V+U+A}var qU=(J)=>`satori_mi-${J}`;async function OU(J,K,Y){if(!K.maskImage)return["",""];let{left:X,top:Z,width:Q,height:w,id:$}=J,W=K.maskImage,H=W.length;if(!H)return["",""];let z=qU($),U="";for(let V=0;V<H;V++){let A=W[V],[L,B]=await zY({id:`${z}-${V}`,left:X,top:Z,width:Q,height:w},A,Y,"mask");U+=B+a("rect",{x:X,y:Z,width:Q,height:w,fill:`url(#${L})`})}return U=a("mask",{id:z},U),[z,U]}async function j4({id:J,left:K,top:Y,width:X,height:Z,isInheritingTransform:Q,src:w,debug:$},W,H){if(W.display==="none")return"";let z=!!w,U="rect",V="",A="",L=[],B=1,M="";W.backgroundColor&&L.push(W.backgroundColor),W.opacity!==void 0&&(B=+W.opacity),W.transform&&(V=WY({left:K,top:Y,width:X,height:Z},W.transform,Q,W.transformOrigin));let O="";if(W.backgroundImage){let S=[];for(let R=0;R<W.backgroundImage.length;R++){let c=W.backgroundImage[R],f=await zY({id:J+"_"+R,width:X,height:Z,left:K,top:Y},c,H);f&&S.unshift(f)}for(let R of S)L.push(`url(#${R[0]})`),A+=R[1],R[2]&&(O+=R[2])}let[N,E]=await OU({id:J,left:K,top:Y,width:X,height:Z},W,H);A+=E;let D=N?`url(#${N})`:W._inheritedMaskId?`url(#${W._inheritedMaskId})`:void 0,F=r8({left:K,top:Y,width:X,height:Z},W);F&&(U="path");let j=W._inheritedClipPathId;$&&(M=a("rect",{x:K,y:Y,width:X,height:Z,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:V||void 0,"clip-path":j?`url(#${j})`:void 0}));let{backgroundClip:T,filter:I}=W,C=T==="text"?`url(#satori_bct-${J})`:j?`url(#${j})`:W.clipPath?GU(J):void 0,k=LU({left:K,top:Y,width:X,height:Z,path:F,id:J,matrix:V,currentClipPath:C,src:w},W,H),d=L.map((S)=>a(U,{x:K,y:Y,width:X,height:Z,fill:S,d:F||void 0,transform:V||void 0,"clip-path":W.transform?void 0:C,style:I?`filter:${I}`:void 0,mask:W.transform?void 0:D})).join(""),u=VU({id:J,left:K,top:Y,width:X,height:Z,currentClipPathId:j,borderPath:F,borderType:U},W),p;if(z){let S=(W.borderLeftWidth||0)+(W.paddingLeft||0),R=(W.borderTopWidth||0)+(W.paddingTop||0),c=(W.borderRightWidth||0)+(W.paddingRight||0),f=(W.borderBottomWidth||0)+(W.paddingBottom||0),o=W.objectFit==="contain"?"xMidYMid":W.objectFit==="cover"?"xMidYMid slice":"none";W.transform&&(p=UU({id:J,borderRadiusPath:F,borderType:U,left:K,top:Y,width:X,height:Z},W)),d+=a("image",{x:K+S,y:Y+R,width:X-S-c,height:Z-R-f,href:w,preserveAspectRatio:o,transform:V||void 0,style:I?`filter:${I}`:void 0,"clip-path":W.transform?p?`url(#${p[1]})`:void 0:`url(#satori_cp-${J})`,mask:W.transform?void 0:N?`url(#${N})`:`url(#satori_om-${J})`})}if(u){A+=u[0];let S=u[1];d+=UY({left:K,top:Y,width:X,height:Z,props:{transform:V||void 0,"clip-path":`url(#${S})`}},W)}let P=mz({width:X,height:Z,id:J,opacity:B,shape:a(U,{x:K,y:Y,width:X,height:Z,fill:"#fff",stroke:"#fff","stroke-width":0,d:F||void 0,transform:V||void 0,"clip-path":C,mask:D})},W);return(A?a("defs",{},A):"")+(P?P[0]:"")+(p?p[0]:"")+k+(B!==1?`<g opacity="${B}">`:"")+(W.transform&&(C||D)?`<g${C?` clip-path="${C}"`:""}${D?` mask="${D}"`:""}>`:"")+(O||d)+(W.transform&&(C||D)?"</g>":"")+(B!==1?"</g>":"")+(P?P[1]:"")+M}var NU=()=>/[#*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,jU=new RegExp(NU(),""),S4={emoji:jU,symbol:/\p{Symbol}/u,math:/\p{Math}/u},v4={"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},i4=Object.keys({...v4,...S4});function EU(J){return i4.includes(J)}function FU(J,K){for(let X of Object.keys(S4))if(S4[X].test(J))return[X];let Y=Object.keys(v4).filter((X)=>v4[X].test(J));if(Y.length===0)return["unknown"];if(K){let X=Y.findIndex((Z)=>Z===K);X!==-1&&(Y.splice(X,1),Y.unshift(K))}return Y}function _U(J){if(J)return i4.find((K)=>K.toLowerCase().startsWith(J.toLowerCase()))}async function*y4(J,K){var Y;let X=await a8(),{id:Z,inheritedStyle:Q,parent:w,font:$,debug:W,locale:H,embedFont:z=!0,graphemeImages:U,canLoadAdditionalAssets:V,getTwStyles:A}=K;if(J===null||typeof J>"u")return yield,yield,"";if(!l8(J)||typeof J.type=="function"){let h;if(!l8(J))h=az(String(J),K),yield(await h.next()).value;else{if(Jz(J.type))throw Error("Class component is not supported.");h=y4(J.type(J.props),K),yield(await h.next()).value}await h.next();let s=yield;return(await h.next(s)).value}let{type:L,props:B}=J;if(B&&Kz(B))throw Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:M,children:O,tw:N,lang:E=H}=B||{},D=_U(E);if(N){let h=A(N,M);M=Object.assign(h,M)}let F=X.Node.create();w.insertChild(F,w.getChildCount());let[j,T]=await hz(F,L,Q,M,B),I=j.transform===Q.transform;if(I||(j.transform.__parent=Q.transform),(j.overflow==="hidden"||j.clipPath&&j.clipPath!=="none")&&(T._inheritedClipPathId=`satori_cp-${Z}`,T._inheritedMaskId=`satori_om-${Z}`),j.maskImage&&(T._inheritedMaskId=`satori_mi-${Z}`),j.backgroundClip==="text"){let h={value:""};T._inheritedBackgroundClipTextPath=h,j._inheritedBackgroundClipTextPath=h}let C=Yz(O),k=[],d=0,u=[];for(let h of C){let s=y4(h,{id:Z+"-"+d++,parentStyle:j,inheritedStyle:T,isInheritingTransform:!0,parent:F,font:$,embedFont:z,debug:W,graphemeImages:U,canLoadAdditionalAssets:V,locale:D,getTwStyles:A,onNodeDetected:K.onNodeDetected});V?u.push(...(await s.next()).value||[]):await s.next(),k.push(s)}yield u;for(let h of k)await h.next();let[p,P]=yield,{left:S,top:R,width:c,height:f}=F.getComputedLayout();S+=p,R+=P;let o="",i="",m="",{children:l,...y}=B;if((Y=K.onNodeDetected)==null||Y.call(K,{left:S,top:R,width:c,height:f,type:L,props:y,key:J.key,textContent:l8(l)?void 0:l}),L==="img"){let h=j.__src;i=await j4({id:Z,left:S,top:R,width:c,height:f,src:h,isInheritingTransform:I,debug:W},j,T)}else if(L==="svg"){let h=j.color,s=await Oz(J,h);i=await j4({id:Z,left:S,top:R,width:c,height:f,src:s,isInheritingTransform:I,debug:W},j,T)}else{let h=M==null?void 0:M.display;if(L==="div"&&O&&typeof O!="string"&&h!=="flex"&&h!=="none")throw Error('Expected <div> to have explicit "display: flex" or "display: none" if it has more than one child node.');i=await j4({id:Z,left:S,top:R,width:c,height:f,isInheritingTransform:I,debug:W},j,T)}for(let h of k)o+=(await h.next([S,R])).value;return j._inheritedBackgroundClipTextPath&&(m+=a("clipPath",{id:`satori_bct-${Z}`,"clip-path":j._inheritedClipPathId?`url(#${j._inheritedClipPathId})`:void 0},j._inheritedBackgroundClipTextPath.value)),m+i+o}var VY="unknown";function DU(J,K,[Y,X],[Z,Q]){if(Y!==Z)return Y?!Z||Y===J?-1:Z===J?1:J===400&&Y===500||J===500&&Y===400?-1:J===400&&Z===500||J===500&&Z===400?1:J<400?Y<J&&Z<J?Z-Y:Y<J?-1:Z<J?1:Y-Z:J<Y&&J<Z?Y-Z:J<Y?-1:J<Z?1:Z-Y:1;if(X!==Q){if(X===K)return-1;if(Q===K)return 1}return-1}var IU=class{constructor(J){this.fonts=new Map,this.addFonts(J)}get({name:J,weight:K,style:Y}){if(!this.fonts.has(J))return null;K==="normal"&&(K=400),K==="bold"&&(K=700),typeof K=="string"&&(K=Number.parseInt(K,10));let X=[...this.fonts.get(J)],Z=X[0];for(let Q=1;Q<X.length;Q++){let[,w,$]=Z,[,W,H]=X[Q];DU(K,Y,[w,$],[W,H])>0&&(Z=X[Q])}return Z[0]}addFonts(J){for(let K of J){let{name:Y,data:X,lang:Z}=K;if(Z&&!EU(Z))throw Error(`Invalid value for props \`lang\`: "${Z}". The value must be one of the following: ${i4.join(", ")}.`);let Q=Z??VY,w=C8.parse("buffer"in X?X.buffer.slice(X.byteOffset,X.byteOffset+X.byteLength):X,{lowMemory:!0}),$=w.charToGlyphIndex;w.charToGlyphIndex=(H)=>{let z=$.call(w,H);return z===0&&w._trackBrokenChars&&w._trackBrokenChars.push(H),z},this.defaultFont||(this.defaultFont=w);let W=`${Y.toLowerCase()}_${Q}`;this.fonts.has(W)||this.fonts.set(W,[]),this.fonts.get(W).push([w,K.weight,K.style])}}getEngine(J=16,K="normal",{fontFamily:Y="sans-serif",fontWeight:X=400,fontStyle:Z="normal"},Q){if(!this.fonts.size)throw Error("No fonts are loaded. At least one font is required to calculate the layout.");Y=(Array.isArray(Y)?Y:[Y]).map((O)=>O.toLowerCase());let w=[];Y.forEach((O)=>{let N=this.get({name:O,weight:X,style:Z});if(N){w.push(N);return}let E=this.get({name:O+"_unknown",weight:X,style:Z});if(E){w.push(E);return}});let $=Array.from(this.fonts.keys()),W=[],H=[],z=[];for(let O of $)if(!Y.includes(O))if(Q){let N=RU(O);N?N===Q?W.push(this.get({name:O,weight:X,style:Z})):H.push(this.get({name:O,weight:X,style:Z})):z.push(this.get({name:O,weight:X,style:Z}))}else z.push(this.get({name:O,weight:X,style:Z}));let U=new Map,V=(O,N=!0)=>{let E=[...w,...z,...W,...N?H:[]];if(typeof O>"u")return N?E[E.length-1]:void 0;let D=O.charCodeAt(0);if(U.has(D))return U.get(D);let F=E.find((j,T)=>!!j.charToGlyphIndex(O)||N&&T===E.length-1);return F&&U.set(D,F),F},A=(O,N=!1)=>{var E,D;return((N?(D=(E=O.tables)==null?void 0:E.os2)==null?void 0:D.sTypoAscender:0)||O.ascender)/O.unitsPerEm*J},L=(O,N=!1)=>{var E,D;return((N?(D=(E=O.tables)==null?void 0:E.os2)==null?void 0:D.sTypoDescender:0)||O.descender)/O.unitsPerEm*J},B=(O,N=!1)=>{var E,D;if(typeof K=="string"&&K==="normal"){let F=(N?(D=(E=O.tables)==null?void 0:E.os2)==null?void 0:D.sTypoLineGap:0)||0;return A(O,N)-L(O,N)+F/O.unitsPerEm*J}else if(typeof K=="number")return J*K},M=(O)=>V(O,!1);return{has:(O)=>{if(O===`
66
+ `)return!0;let N=M(O);return N?(N._trackBrokenChars=[],N.stringToGlyphs(O),N._trackBrokenChars.length?(N._trackBrokenChars=void 0,!1):!0):!1},baseline:(O,N=typeof O>"u"?w[0]:V(O))=>{let E=A(N),D=L(N),F=E-D;return E+(B(N)-F)/2},height:(O,N=typeof O>"u"?w[0]:V(O))=>B(N),measure:(O,N)=>this.measure(V,O,N),getSVG:(O,N)=>this.getSVG(V,O,N)}}patchFontFallbackResolver(J,K){let Y=[];J._trackBrokenChars=Y;let X=J.stringToGlyphs;return J.stringToGlyphs=(Z,...Q)=>{let w=X.call(J,Z,...Q);for(let $=0;$<w.length;$++)if(w[$].unicode===void 0){let W=Y.shift(),H=K(W);if(H!==J){let z=H.charToGlyph(W),U=J.unitsPerEm/H.unitsPerEm,V=new C8.Path;V.unitsPerEm=J.unitsPerEm,V.commands=z.path.commands.map((L)=>{let B={...L};for(let M in B)typeof B[M]=="number"&&(B[M]*=U);return B});let A=new C8.Glyph({...z,advanceWidth:z.advanceWidth*U,xMin:z.xMin*U,xMax:z.xMax*U,yMin:z.yMin*U,yMax:z.yMax*U,path:V});w[$]=A}}return w},()=>{J.stringToGlyphs=X,J._trackBrokenChars=void 0}}measure(J,K,{fontSize:Y,letterSpacing:X=0}){let Z=J(K),Q=this.patchFontFallbackResolver(Z,J);try{return Z.getAdvanceWidth(K,Y,{letterSpacing:X/Y})}finally{Q()}}getSVG(J,K,{fontSize:Y,top:X,left:Z,letterSpacing:Q=0}){let w=J(K),$=this.patchFontFallbackResolver(w,J);try{return Y===0?"":w.getPath(K.replace(/\n/g,""),Z,X,Y,{letterSpacing:Q/Y}).toPathData(1)}finally{$()}}};function RU(J){let K=J.split("_"),Y=K[K.length-1];return Y===VY?void 0:Y}function TU({width:J,height:K,content:Y}){return a("svg",{width:J,height:K,viewBox:`0 0 ${J} ${K}`,xmlns:"http://www.w3.org/2000/svg"},Y)}var CU=wH(cH()),PU=["ios","android","windows","macos","web"];function SU(J){return PU.includes(J)}var vU=["portrait","landscape"];function yU(J){return vU.includes(J)}var HK;(function(J){J.fontSize="fontSize",J.lineHeight="lineHeight"})(HK||(HK={}));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 zK(J){return typeof J=="string"}function UK(J){return typeof J=="object"}var E4;function x(J){return{kind:"complete",style:J}}function X1(J,K={}){let{fractions:Y}=K;if(Y&&J.includes("/")){let[Q="",w=""]=J.split("/",2),$=X1(Q),W=X1(w);return!$||!W?null:[$[0]/W[0],W[1]]}let X=parseFloat(J);if(Number.isNaN(X))return null;let Z=J.match(/(([a-z]{2,}|%))$/);if(!Z)return[X,q0.none];switch(Z==null?void 0:Z[1]){case"rem":return[X,q0.rem];case"px":return[X,q0.px];case"em":return[X,q0.em];case"%":return[X,q0.percent];case"vw":return[X,q0.vw];case"vh":return[X,q0.vh];default:return null}}function J8(J,K,Y={}){let X=W5(K,Y);return X===null?null:x({[J]:X})}function F4(J,K,Y){let X=W5(K);return X!==null&&(Y[J]=X),Y}function hU(J,K){let Y=W5(K);return Y===null?null:{[J]:Y}}function W5(J,K={}){if(J===void 0)return null;let Y=X1(String(J),K);return Y?K8(...Y,K):null}function K8(J,K,Y={}){let{isNegative:X,device:Z}=Y;switch(K){case q0.rem:return J*16*(X?-1:1);case q0.px:return J*(X?-1:1);case q0.percent:return`${X?"-":""}${J}%`;case q0.none:return J*(X?-1:1);case q0.vw:return Z!=null&&Z.windowDimensions?Z.windowDimensions.width*(J/100):(v1("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case q0.vh:return Z!=null&&Z.windowDimensions?Z.windowDimensions.height*(J/100):(v1("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function VK(J){let K=X1(J);if(!K)return null;let[Y,X]=K;switch(X){case q0.rem:return Y*16;case q0.px:return Y;default:return null}}var kU={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function AY(J){return kU[J??""]||"All"}function BY(J){let K="All";return[J.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(Y,X)=>(K=AY(X),"")),K]}function Y6(J,K={}){if(J.includes("/")){let Y=AK(J,{...K,fractions:!0});if(Y)return Y}return J[0]==="["&&(J=J.slice(1,-1)),AK(J,K)}function $5(J,K,Y={}){let X=Y6(K,Y);return X===null?null:x({[J]:X})}function AK(J,K={}){if(J==="px")return 1;let Y=X1(J,K);if(!Y)return null;let[X,Z]=Y;return K.fractions&&(Z=q0.percent,X*=100),Z===q0.none&&(X=X/4,Z=q0.rem),K8(X,Z,K)}function gU(...J){console.warn(...J)}function xU(...J){}var v1=typeof process>"u"||((E4=process==null?void 0:process.env)===null||E4===void 0?void 0:E4.JEST_WORKER_ID)===void 0?gU:xU,bU=[["aspect-square",x({aspectRatio:1})],["aspect-video",x({aspectRatio:1.7777777777777777})],["items-center",x({alignItems:"center"})],["items-start",x({alignItems:"flex-start"})],["items-end",x({alignItems:"flex-end"})],["items-baseline",x({alignItems:"baseline"})],["items-stretch",x({alignItems:"stretch"})],["justify-start",x({justifyContent:"flex-start"})],["justify-end",x({justifyContent:"flex-end"})],["justify-center",x({justifyContent:"center"})],["justify-between",x({justifyContent:"space-between"})],["justify-around",x({justifyContent:"space-around"})],["justify-evenly",x({justifyContent:"space-evenly"})],["content-start",x({alignContent:"flex-start"})],["content-end",x({alignContent:"flex-end"})],["content-between",x({alignContent:"space-between"})],["content-around",x({alignContent:"space-around"})],["content-stretch",x({alignContent:"stretch"})],["content-center",x({alignContent:"center"})],["self-auto",x({alignSelf:"auto"})],["self-start",x({alignSelf:"flex-start"})],["self-end",x({alignSelf:"flex-end"})],["self-center",x({alignSelf:"center"})],["self-stretch",x({alignSelf:"stretch"})],["self-baseline",x({alignSelf:"baseline"})],["direction-inherit",x({direction:"inherit"})],["direction-ltr",x({direction:"ltr"})],["direction-rtl",x({direction:"rtl"})],["hidden",x({display:"none"})],["flex",x({display:"flex"})],["flex-row",x({flexDirection:"row"})],["flex-row-reverse",x({flexDirection:"row-reverse"})],["flex-col",x({flexDirection:"column"})],["flex-col-reverse",x({flexDirection:"column-reverse"})],["flex-wrap",x({flexWrap:"wrap"})],["flex-wrap-reverse",x({flexWrap:"wrap-reverse"})],["flex-nowrap",x({flexWrap:"nowrap"})],["flex-auto",x({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",x({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",x({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",x({overflow:"hidden"})],["overflow-visible",x({overflow:"visible"})],["overflow-scroll",x({overflow:"scroll"})],["absolute",x({position:"absolute"})],["relative",x({position:"relative"})],["italic",x({fontStyle:"italic"})],["not-italic",x({fontStyle:"normal"})],["oldstyle-nums",n5("oldstyle-nums")],["small-caps",n5("small-caps")],["lining-nums",n5("lining-nums")],["tabular-nums",n5("tabular-nums")],["proportional-nums",n5("proportional-nums")],["font-thin",x({fontWeight:"100"})],["font-100",x({fontWeight:"100"})],["font-extralight",x({fontWeight:"200"})],["font-200",x({fontWeight:"200"})],["font-light",x({fontWeight:"300"})],["font-300",x({fontWeight:"300"})],["font-normal",x({fontWeight:"normal"})],["font-400",x({fontWeight:"400"})],["font-medium",x({fontWeight:"500"})],["font-500",x({fontWeight:"500"})],["font-semibold",x({fontWeight:"600"})],["font-600",x({fontWeight:"600"})],["font-bold",x({fontWeight:"bold"})],["font-700",x({fontWeight:"700"})],["font-extrabold",x({fontWeight:"800"})],["font-800",x({fontWeight:"800"})],["font-black",x({fontWeight:"900"})],["font-900",x({fontWeight:"900"})],["include-font-padding",x({includeFontPadding:!0})],["remove-font-padding",x({includeFontPadding:!1})],["max-w-none",x({maxWidth:"99999%"})],["text-left",x({textAlign:"left"})],["text-center",x({textAlign:"center"})],["text-right",x({textAlign:"right"})],["text-justify",x({textAlign:"justify"})],["text-auto",x({textAlign:"auto"})],["underline",x({textDecorationLine:"underline"})],["line-through",x({textDecorationLine:"line-through"})],["no-underline",x({textDecorationLine:"none"})],["uppercase",x({textTransform:"uppercase"})],["lowercase",x({textTransform:"lowercase"})],["capitalize",x({textTransform:"capitalize"})],["normal-case",x({textTransform:"none"})],["w-auto",x({width:"auto"})],["h-auto",x({height:"auto"})],["shadow-sm",x({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:0.025,elevation:1})],["shadow",x({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:0.075,elevation:2})],["shadow-md",x({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:0.125,elevation:3})],["shadow-lg",x({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:0.15,shadowRadius:8,elevation:8})],["shadow-xl",x({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:0.19,shadowRadius:20,elevation:12})],["shadow-2xl",x({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:0.25,shadowRadius:30,elevation:16})],["shadow-none",x({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],BK=bU;function n5(J){return{kind:"dependent",complete(K){(!K.fontVariant||!Array.isArray(K.fontVariant))&&(K.fontVariant=[]),K.fontVariant.push(J)}}}var fU=class{constructor(J){this.ir=new Map(BK),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...BK,...J??[]])}getStyle(J){return this.styles.get(J)}setStyle(J,K){this.styles.set(J,K)}getIr(J){return this.ir.get(J)}setIr(J,K){this.ir.set(J,K)}getPrefixMatch(J){return this.prefixes.get(J)}setPrefixMatch(J,K){this.prefixes.set(J,K)}};function mU(J,K,Y={}){let X=K==null?void 0:K[J];if(!X)return $5("fontSize",J,Y);if(typeof X=="string")return J8("fontSize",X);let Z={},[Q,w]=X,$=hU("fontSize",Q);if($&&(Z=$),typeof w=="string")return x(F4("lineHeight",GK(w,Z),Z));let{lineHeight:W,letterSpacing:H}=w;return W&&F4("lineHeight",GK(W,Z),Z),H&&F4("letterSpacing",H,Z),x(Z)}function GK(J,K){let Y=X1(J);if(Y){let[X,Z]=Y;if((Z===q0.none||Z===q0.em)&&typeof K.fontSize=="number")return K.fontSize*X}return J}function lU(J,K){var Y;let X=(Y=K==null?void 0:K[J])!==null&&Y!==void 0?Y:J.startsWith("[")?J.slice(1,-1):J,Z=X1(X);if(!Z)return null;let[Q,w]=Z;if(w===q0.none)return{kind:"dependent",complete(W){if(typeof W.fontSize!="number")return"relative line-height utilities require that font-size be set";W.lineHeight=W.fontSize*Q}};let $=K8(Q,w);return $!==null?x({lineHeight:$}):null}function cU(J,K,Y,X,Z){let Q="";if(X[0]==="[")Q=X.slice(1,-1);else{let H=Z==null?void 0:Z[X];if(H)Q=H;else{let z=Y6(X);return z&&typeof z=="number"?MK(z,q0.px,K,J):null}}if(Q==="auto")return GY(K,J,"auto");let w=X1(Q);if(!w)return null;let[$,W]=w;return Y&&($=-$),MK($,W,K,J)}function MK(J,K,Y,X){let Z=K8(J,K);return Z===null?null:GY(Y,X,Z)}function GY(J,K,Y){switch(J){case"All":return{kind:"complete",style:{[`${K}Top`]:Y,[`${K}Right`]:Y,[`${K}Bottom`]:Y,[`${K}Left`]:Y}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${K}${J}`]:Y}};case"Vertical":return{kind:"complete",style:{[`${K}Top`]:Y,[`${K}Bottom`]:Y}};case"Horizontal":return{kind:"complete",style:{[`${K}Left`]:Y,[`${K}Right`]:Y}};default:return null}}function dU(J){if(!J)return{};let K=Object.entries(J).reduce((Z,[Q,w])=>{let $=[0,1/0,0],W=typeof w=="string"?{min:w}:w,H=W.min?VK(W.min):0;H===null?v1(`invalid screen config value: ${Q}->min: ${W.min}`):$[0]=H;let z=W.max?VK(W.max):1/0;return z===null?v1(`invalid screen config value: ${Q}->max: ${W.max}`):$[1]=z,Z[Q]=$,Z},{}),Y=Object.values(K);Y.sort((Z,Q)=>{let[w,$]=Z,[W,H]=Q;return $===1/0||H===1/0?w-W:$-H});let X=0;return Y.forEach((Z)=>Z[2]=X++),K}function uU(J,K){let Y=K==null?void 0:K[J];if(!Y)return null;if(typeof Y=="string")return x({fontFamily:Y});let X=Y[0];return X?x({fontFamily:X}):null}function s5(J,K,Y){if(!Y)return null;let X;K.includes("/")&&([K="",X]=K.split("/",2));let Z="";if(K.startsWith("[#")||K.startsWith("[rgb")?Z=K.slice(1,-1):Z=MY(K,Y),!Z)return null;if(X){let Q=Number(X);if(!Number.isNaN(Q))return Z=LK(Z,Q/100),x({[p8[J].color]:Z})}return{kind:"dependent",complete(Q){let w=p8[J].opacity,$=Q[w];typeof $=="number"&&(Z=LK(Z,$)),Q[p8[J].color]=Z}}}function x8(J,K){let Y=parseInt(K,10);if(Number.isNaN(Y))return null;let X=Y/100;return{kind:"complete",style:{[p8[J].opacity]:X}}}function LK(J,K){return J.startsWith("#")?J=iU(J):J.startsWith("rgb(")&&(J=J.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),J.replace(/, ?\d*\.?(\d+)\)$/,`, ${K})`)}function pU(J){for(let K in J)K.startsWith("__opacity_")&&delete J[K]}var p8={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 iU(J){let K=J;J=J.replace(rU,(w,$,W,H)=>$+$+W+W+H+H);let Y=nU.exec(J);if(!Y)return v1(`invalid config hex color value: ${K}`),"rgba(0, 0, 0, 1)";let X=parseInt(Y[1],16),Z=parseInt(Y[2],16),Q=parseInt(Y[3],16);return`rgba(${X}, ${Z}, ${Q}, 1)`}function MY(J,K){let Y=K[J];if(zK(Y))return Y;if(UK(Y)&&zK(Y.DEFAULT))return Y.DEFAULT;let[X="",...Z]=J.split("-");for(;X!==J;){let Q=K[X];if(UK(Q))return MY(Z.join("-"),Q);if(Z.length===0)return"";X=`${X}-${Z.shift()}`}return""}var rU=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,nU=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function oU(J,K){let[Y,X]=BY(J);if(Y.match(/^(-?(\d)+)?$/))return sU(Y,X,K==null?void 0:K.borderWidth);if(Y=Y.replace(/^-/,""),["dashed","solid","dotted"].includes(Y))return x({borderStyle:Y});let Z="border";switch(X){case"Bottom":Z="borderBottom";break;case"Top":Z="borderTop";break;case"Left":Z="borderLeft";break;case"Right":Z="borderRight";break}let Q=s5(Z,Y,K==null?void 0:K.borderColor);if(Q)return Q;let w=`border${X==="All"?"":X}Width`;Y=Y.replace(/^-/,"");let $=Y.slice(1,-1),W=$5(w,$);return typeof(W==null?void 0:W.style[w])!="number"?null:W}function sU(J,K,Y){if(!Y)return null;J=J.replace(/^-/,"");let X=Y[J===""?"DEFAULT":J];if(X===void 0)return null;let Z=`border${K==="All"?"":K}Width`;return J8(Z,X)}function aU(J,K){if(!K)return null;let[Y,X]=BY(J);Y=Y.replace(/^-/,""),Y===""&&(Y="DEFAULT");let Z=`border${X==="All"?"":X}Radius`,Q=K[Y];if(Q)return qK(J8(Z,Q));let w=$5(Z,Y);return typeof(w==null?void 0:w.style[Z])!="number"?null:qK(w)}function qK(J){if((J==null?void 0:J.kind)!=="complete")return J;let K=J.style.borderTopRadius;K!==void 0&&(J.style.borderTopLeftRadius=K,J.style.borderTopRightRadius=K,delete J.style.borderTopRadius);let Y=J.style.borderBottomRadius;Y!==void 0&&(J.style.borderBottomLeftRadius=Y,J.style.borderBottomRightRadius=Y,delete J.style.borderBottomRadius);let X=J.style.borderLeftRadius;X!==void 0&&(J.style.borderBottomLeftRadius=X,J.style.borderTopLeftRadius=X,delete J.style.borderLeftRadius);let Z=J.style.borderRightRadius;return Z!==void 0&&(J.style.borderBottomRightRadius=Z,J.style.borderTopRightRadius=Z,delete J.style.borderRightRadius),J}function o5(J,K,Y,X){let Z=null;J==="inset"&&(K=K.replace(/^(x|y)-/,($,W)=>(Z=W==="x"?"x":"y","")));let Q=X==null?void 0:X[K];if(Q){let $=W5(Q,{isNegative:Y});if($!==null)return OK(J,Z,$)}let w=Y6(K,{isNegative:Y});return w!==null?OK(J,Z,w):null}function OK(J,K,Y){if(J!=="inset")return x({[J]:Y});switch(K){case null:return x({top:Y,left:Y,right:Y,bottom:Y});case"y":return x({top:Y,bottom:Y});case"x":return x({left:Y,right:Y})}}function b8(J,K,Y){var X;K=K.replace(/^-/,"");let Z=K===""?"DEFAULT":K,Q=Number((X=Y==null?void 0:Y[Z])!==null&&X!==void 0?X:K);return Number.isNaN(Q)?null:x({[`flex${J}`]:Q})}function tU(J,K){var Y,X;if(J=(K==null?void 0:K[J])||J,["min-content","revert","unset"].includes(J))return null;if(J.match(/^\d+(\.\d+)?$/))return x({flexGrow:Number(J),flexBasis:"0%"});let Z=J.match(/^(\d+)\s+(\d+)$/);if(Z)return x({flexGrow:Number(Z[1]),flexShrink:Number(Z[2])});if(Z=J.match(/^(\d+)\s+([^ ]+)$/),Z){let Q=W5((Y=Z[2])!==null&&Y!==void 0?Y:"");return Q?x({flexGrow:Number(Z[1]),flexBasis:Q}):null}if(Z=J.match(/^(\d+)\s+(\d+)\s+(.+)$/),Z){let Q=W5((X=Z[3])!==null&&X!==void 0?X:"");return Q?x({flexGrow:Number(Z[1]),flexShrink:Number(Z[2]),flexBasis:Q}):null}return null}function NK(J,K,Y={},X){let Z=X==null?void 0:X[K];return Z!==void 0?J8(J,Z,Y):$5(J,K,Y)}function f8(J,K,Y={},X){let Z=W5(X==null?void 0:X[K],Y);return Z?x({[J]:Z}):(K==="screen"&&(K=J.includes("Width")?"100vw":"100vh"),$5(J,K,Y))}function eU(J,K,Y){let X=Y==null?void 0:Y[J];if(X){let Z=X1(X,{isNegative:K});if(!Z)return null;let[Q,w]=Z;if(w===q0.em)return JV(Q);if(w===q0.percent)return v1("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 $=K8(Q,w,{isNegative:K});return $!==null?x({letterSpacing:$}):null}return $5("letterSpacing",J,{isNegative:K})}function JV(J){return{kind:"dependent",complete(K){let Y=K.fontSize;if(typeof Y!="number"||Number.isNaN(Y))return"tracking-X relative letter spacing classes require font-size to be set";K.letterSpacing=Math.round((J*Y+Number.EPSILON)*100)/100}}}function KV(J,K){let Y=K==null?void 0:K[J];if(Y){let Z=X1(String(Y));if(Z)return x({opacity:Z[0]})}let X=X1(J);return X?x({opacity:X[0]/100}):null}function YV(J){let K=parseInt(J,10);return Number.isNaN(K)?null:{kind:"complete",style:{shadowOpacity:K/100}}}function XV(J){if(J.includes("/")){let[Y="",X=""]=J.split("/",2),Z=_4(Y),Q=_4(X);return Z===null||Q===null?null:{kind:"complete",style:{shadowOffset:{width:Z,height:Q}}}}let K=_4(J);return K===null?null:{kind:"complete",style:{shadowOffset:{width:K,height:K}}}}function _4(J){let K=Y6(J);return typeof K=="number"?K:null}var jK=class{constructor(J,K={},Y,X,Z){var Q,w,$,W,H,z;this.config=K,this.cache=Y,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=X;let U=J.trim().split(":"),V=[];U.length===1?this.string=J:(this.string=(Q=U.pop())!==null&&Q!==void 0?Q:"",V=U),this.char=this.string[0];let A=dU((w=this.config.theme)===null||w===void 0?void 0:w.screens);for(let L of V)if(A[L]){let B=($=A[L])===null||$===void 0?void 0:$[2];B!==void 0&&(this.order=((W=this.order)!==null&&W!==void 0?W:0)+B);let M=(H=X.windowDimensions)===null||H===void 0?void 0:H.width;if(M){let[O,N]=(z=A[L])!==null&&z!==void 0?z:[0,0];(M<=O||M>N)&&(this.isNull=!0)}else this.isNull=!0}else SU(L)?this.isNull=L!==Z:yU(L)?X.windowDimensions?(X.windowDimensions.width>X.windowDimensions.height?"landscape":"portrait")!==L?this.isNull=!0:this.incrementOrder():this.isNull=!0:L==="retina"?X.pixelDensity===2?this.incrementOrder():this.isNull=!0:L==="dark"?X.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 K=this.parseUtility();return K?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:K}:K:{kind:"null"}}parseUtility(){var J,K,Y,X,Z;let Q=this.config.theme,w=null;switch(this.char){case"m":case"p":{let $=this.peekSlice(1,3).match(/^(t|b|r|l|x|y)?-/);if($){let W=this.char==="m"?"margin":"padding";this.advance(((K=(J=$[0])===null||J===void 0?void 0:J.length)!==null&&K!==void 0?K:0)+1);let H=AY($[1]),z=cU(W,H,this.isNegative,this.rest,(Y=this.config.theme)===null||Y===void 0?void 0:Y[W]);if(z)return z}}}if(this.consumePeeked("h-")&&(w=NK("height",this.rest,this.context,Q==null?void 0:Q.height),w)||this.consumePeeked("w-")&&(w=NK("width",this.rest,this.context,Q==null?void 0:Q.width),w)||this.consumePeeked("min-w-")&&(w=f8("minWidth",this.rest,this.context,Q==null?void 0:Q.minWidth),w)||this.consumePeeked("min-h-")&&(w=f8("minHeight",this.rest,this.context,Q==null?void 0:Q.minHeight),w)||this.consumePeeked("max-w-")&&(w=f8("maxWidth",this.rest,this.context,Q==null?void 0:Q.maxWidth),w)||this.consumePeeked("max-h-")&&(w=f8("maxHeight",this.rest,this.context,Q==null?void 0:Q.maxHeight),w)||this.consumePeeked("leading-")&&(w=lU(this.rest,Q==null?void 0:Q.lineHeight),w)||this.consumePeeked("text-")&&(w=mU(this.rest,Q==null?void 0:Q.fontSize,this.context),w||(w=s5("text",this.rest,Q==null?void 0:Q.textColor),w)||this.consumePeeked("opacity-")&&(w=x8("text",this.rest),w))||this.consumePeeked("font-")&&(w=uU(this.rest,Q==null?void 0:Q.fontFamily),w)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&v1("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),w=J8("aspectRatio",this.rest,{fractions:!0}),w)||this.consumePeeked("tint-")&&(w=s5("tint",this.rest,Q==null?void 0:Q.colors),w)||this.consumePeeked("bg-")&&(w=s5("bg",this.rest,Q==null?void 0:Q.backgroundColor),w||this.consumePeeked("opacity-")&&(w=x8("bg",this.rest),w))||this.consumePeeked("border")&&(w=oU(this.rest,Q),w||this.consumePeeked("-opacity-")&&(w=x8("border",this.rest),w))||this.consumePeeked("rounded")&&(w=aU(this.rest,Q==null?void 0:Q.borderRadius),w)||this.consumePeeked("bottom-")&&(w=o5("bottom",this.rest,this.isNegative,Q==null?void 0:Q.inset),w)||this.consumePeeked("top-")&&(w=o5("top",this.rest,this.isNegative,Q==null?void 0:Q.inset),w)||this.consumePeeked("left-")&&(w=o5("left",this.rest,this.isNegative,Q==null?void 0:Q.inset),w)||this.consumePeeked("right-")&&(w=o5("right",this.rest,this.isNegative,Q==null?void 0:Q.inset),w)||this.consumePeeked("inset-")&&(w=o5("inset",this.rest,this.isNegative,Q==null?void 0:Q.inset),w)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?w=b8("Grow",this.rest,Q==null?void 0:Q.flexGrow):this.consumePeeked("shrink")?w=b8("Shrink",this.rest,Q==null?void 0:Q.flexShrink):w=tU(this.rest,Q==null?void 0:Q.flex),w)||this.consumePeeked("grow")&&(w=b8("Grow",this.rest,Q==null?void 0:Q.flexGrow),w)||this.consumePeeked("shrink")&&(w=b8("Shrink",this.rest,Q==null?void 0:Q.flexShrink),w)||this.consumePeeked("shadow-color-opacity-")&&(w=x8("shadow",this.rest),w)||this.consumePeeked("shadow-opacity-")&&(w=YV(this.rest),w)||this.consumePeeked("shadow-offset-")&&(w=XV(this.rest),w)||this.consumePeeked("shadow-radius-")&&(w=$5("shadowRadius",this.rest),w)||this.consumePeeked("shadow-")&&(w=s5("shadow",this.rest,Q==null?void 0:Q.colors),w))return w;if(this.consumePeeked("elevation-")){let $=parseInt(this.rest,10);if(!Number.isNaN($))return x({elevation:$})}if(this.consumePeeked("opacity-")&&(w=KV(this.rest,Q==null?void 0:Q.opacity),w)||this.consumePeeked("tracking-")&&(w=eU(this.rest,this.isNegative,Q==null?void 0:Q.letterSpacing),w))return w;if(this.consumePeeked("z-")){let $=Number((Z=(X=Q==null?void 0:Q.zIndex)===null||X===void 0?void 0:X[this.rest])!==null&&Z!==void 0?Z:this.rest);if(!Number.isNaN($))return x({zIndex:$})}return v1(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(J){var K;if(J[0]!=="m")return!1;let Y=J.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!Y)return!1;if(!(!((K=this.context.device)===null||K===void 0)&&K.windowDimensions))return this.isNull=!0,!0;let X=this.context.device.windowDimensions,[,Z="",Q="",w=""]=Y,$=Q==="w"?X.width:X.height,W=X1(w,this.context);if(W===null)return this.isNull=!0,!0;let[H,z]=W;return z!=="px"&&(this.isNull=!0),(Z==="min"?$>=H:$<=H)?this.incrementOrder():this.isNull=!0,!0}advance(J=1){this.position+=J,this.char=this.string[this.position]}get rest(){return this.peekSlice(0,this.string.length)}peekSlice(J,K){return this.string.slice(this.position+J,this.position+K)}consumePeeked(J){return this.peekSlice(0,J.length)===J?(this.advance(J.length),!0):!1}parseIsNegative(){this.char==="-"&&(this.advance(),this.isNegative=!0,this.context.isNegative=!0)}incrementOrder(){var J;this.order=((J=this.order)!==null&&J!==void 0?J:0)+1}};function ZV(J){let K=[],Y=null;return J.forEach((X)=>{if(typeof X=="string")K=[...K,...D4(X)];else if(Array.isArray(X))K=[...K,...X.flatMap(D4)];else if(typeof X=="object"&&X!==null)for(let[Z,Q]of Object.entries(X))typeof Q=="boolean"?K=[...K,...Q?D4(Z):[]]:Y?Y[Z]=Q:Y={[Z]:Q}}),[K.filter(Boolean).filter(QV),Y]}function D4(J){return J.trim().split(/\s+/)}function QV(J,K,Y){return Y.indexOf(J)===K}function wV(J){var K;return(K=J==null?void 0:J.reduce((Y,X)=>({...Y,...WV(X.handler)}),{}))!==null&&K!==void 0?K:{}}function WV(J){let K={};return J({addUtilities:(Y)=>{K=Y},...$V}),K}function D1(J){throw Error(`tailwindcss plugin function argument object prop "${J}" not implemented`)}var $V={addComponents:D1,addBase:D1,addVariant:D1,e:D1,prefix:D1,theme:D1,variants:D1,config:D1,corePlugins:D1,matchUtilities:D1,postcss:null};function HV(J,K){let Y=(0,CU.default)(zV(J)),X={},Z=wV(Y.plugins),Q={},w=Object.entries(Z).map(([L,B])=>typeof B=="string"?(Q[L]=B,[L,{kind:"null"}]):[L,x(B)]).filter(([,L])=>L.kind!=="null");function $(){return[X.windowDimensions?`w${X.windowDimensions.width}`:!1,X.windowDimensions?`h${X.windowDimensions.height}`:!1,X.fontScale?`fs${X.fontScale}`:!1,X.colorScheme==="dark"?"dark":!1,X.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let W=$(),H={};function z(){let L=H[W];if(L)return L;let B=new fU(w);return H[W]=B,B}function U(...L){let B=z(),M={},O=[],N=[],[E,D]=ZV(L),F=E.join(" "),j=B.getStyle(F);if(j)return{...j,...D||{}};for(let T of E){let I=B.getIr(T);if(!I&&T in Q){let C=U(Q[T]);B.setIr(T,x(C)),M={...M,...C};continue}switch(I=new jK(T,Y,B,X,K).parse(),I.kind){case"complete":M={...M,...I.style},B.setIr(T,I);break;case"dependent":O.push(I);break;case"ordered":N.push(I);break;case"null":B.setIr(T,I);break}}if(N.length>0){N.sort((T,I)=>T.order-I.order);for(let T of N)switch(T.styleIr.kind){case"complete":M={...M,...T.styleIr.style};break;case"dependent":O.push(T.styleIr);break}}if(O.length>0){for(let T of O){let I=T.complete(M);I&&v1(I)}pU(M)}return F!==""&&B.setStyle(F,M),D&&(M={...M,...D}),M}function V(L){let B=U(L.split(/\s+/g).map((M)=>M.replace(/^(bg|text|border)-/,"")).map((M)=>`bg-${M}`).join(" "));return typeof B.backgroundColor=="string"?B.backgroundColor:void 0}let A=(L,...B)=>{let M="";return L.forEach((O,N)=>{var E;M+=O+((E=B[N])!==null&&E!==void 0?E:"")}),U(M)};return A.style=U,A.color=V,A.prefixMatch=(...L)=>{let B=L.sort().join(":"),M=z(),O=M.getPrefixMatch(B);if(O!==void 0)return O;let N=new jK(`${B}:flex`,Y,M,X,K).parse().kind!=="null";return M.setPrefixMatch(B,N),N},A.setWindowDimensions=(L)=>{X.windowDimensions=L,W=$()},A.setFontScale=(L)=>{X.fontScale=L,W=$()},A.setPixelDensity=(L)=>{X.pixelDensity=L,W=$()},A.setColorScheme=(L)=>{X.colorScheme=L,W=$()},A}function zV(J){return{...J,content:["_no_warnings_please"]}}var UV={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 VV(J){return HV({...J,plugins:[...(J==null?void 0:J.plugins)??[],UV]},"web")}var m8;function AV({width:J,height:K,config:Y}){return m8||(m8=VV(Y)),m8.setWindowDimensions({width:+J,height:+K}),m8}var I4=new WeakMap;async function LY(J,K){let Y=await a8();if(!Y||!Y.Node)throw Error("Satori is not initialized: expect `yoga` to be loaded, got "+Y);K.fonts=K.fonts||[];let X;I4.has(K.fonts)?X=I4.get(K.fonts):I4.set(K.fonts,X=new IU(K.fonts));let Z="width"in K?K.width:void 0,Q="height"in K?K.height:void 0,w=Y.Node.create();Z&&w.setWidth(Z),Q&&w.setHeight(Q),w.setFlexDirection(Y.FLEX_DIRECTION_ROW),w.setFlexWrap(Y.WRAP_WRAP),w.setAlignContent(Y.ALIGN_AUTO),w.setAlignItems(Y.ALIGN_FLEX_START),w.setJustifyContent(Y.JUSTIFY_FLEX_START),w.setOverflow(Y.OVERFLOW_HIDDEN);let $={...K.graphemeImages},W=new Set;r1.clear(),d8.clear(),await qz(J);let H=y4(J,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:"normal",color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:Z,_viewportHeight:Q},parent:w,font:X,embedFont:K.embedFont,debug:K.debug,graphemeImages:$,canLoadAdditionalAssets:!!K.loadAdditionalAsset,onNodeDetected:K.onNodeDetected,getTwStyles:(L,B)=>{let M={...AV({width:Z,height:Q,config:K.tailwindConfig})([L])};return typeof M.lineHeight=="number"&&(M.lineHeight=M.lineHeight/(+M.fontSize||B.fontSize||16)),M.shadowColor&&M.boxShadow&&(M.boxShadow=M.boxShadow.replace(/rgba?\([^)]+\)/,M.shadowColor)),M}}),z=(await H.next()).value;if(K.loadAdditionalAsset&&z.length){let L=BV(z),B=[],M={};await Promise.all(Object.entries(L).flatMap(([O,N])=>N.map((E)=>{let D=`${O}_${E}`;return W.has(D)?null:(W.add(D),K.loadAdditionalAsset(O,E).then((F)=>{typeof F=="string"?M[E]=F:F&&(Array.isArray(F)?B.push(...F):B.push(F))}))}))),X.addFonts(B),Object.assign($,M)}await H.next(),w.calculateLayout(Z,Q,Y.DIRECTION_LTR);let U=(await H.next([0,0])).value,V=w.getComputedWidth(),A=w.getComputedHeight();return w.freeRecursive(),TU({width:V,height:A,content:U})}function BV(J){let K={},Y={};for(let{word:X,locale:Z}of J){let Q=FU(X,Z).join("|");Y[Q]=Y[Q]||"",Y[Q]+=X}return Object.keys(Y).forEach((X)=>{K[X]=K[X]||[],X==="emoji"?K[X].push(...EK(M1(Y[X],"grapheme"))):(K[X][0]=K[X][0]||"",K[X][0]+=EK(M1(Y[X],"grapheme",X==="unknown"?void 0:X)).join(""))}),K}function EK(J){return Array.from(new Set(J))}import jV from"sharp";function r4(J){return J.replace(/\([^)]*\)/g,"").replace(/\/\//g,"/")}function X6(J){let K={};for(let[Y,X]of Object.entries(J))if("run"in X){let Z=X;if("children"in Z){let Q=new Z.children,w=X6(Q.routes);for(let[$,{exec:W,middleware:H}]of Object.entries(w)){let z=Y==="/"?$:`${Y}${$}`,U=$==="/"&&Y!=="/"?Y:z,V=(A)=>Z.run.call(Z,A,Y);K[r4(U)]={exec:[V,...W],middleware:[...Z.middlewares,...H],viewPath:Z.viewPath}}}else{let Q=(w)=>Z.run.call(Z,w,Y);K[r4(Y)]={exec:[Q],middleware:Z.middlewares,viewPath:Z.viewPath}}}else{let Z=new X,Q=X6(Z.routes);for(let[w,{exec:$,middleware:W,viewPath:H}]of Object.entries(Q)){let z=Y==="/"?w:`${Y}${w}`,U=w==="/"&&Y!=="/"?Y:z;K[r4(U)]={exec:$,middleware:[...Z.middlewares,...W],viewPath:H}}}return Object.fromEntries(Object.entries(K).sort(([Y],[X])=>{let Z=Y.split("/").length+Y.split(":").length,Q=X.split("/").length+X.split(":").length;return Z-Q}))}import{renderToReadableStream as U9}from"react-dom/server.browser";import{createElement as X8,Fragment as EV}from"react";var GV=Object.defineProperty,e=(J,K)=>GV(J,"name",{value:K,configurable:!0}),I5=class{type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(J,K,Y,X,Z,Q){this.type=J,this.name=K,this.prefix=Y,this.value=X,this.suffix=Z,this.modifier=Q}hasCustomName(){return this.name!==""&&typeof this.name!="number"}};e(I5,"Part");var MV=/[$_\p{ID_Start}]/u,LV=/[$_\u200C\u200D\p{ID_Continue}]/u,o4=".*";function qY(J,K){return(K?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(J)}e(qY,"isASCII");function t4(J,K=!1){let Y=[],X=0;for(;X<J.length;){let Z=J[X],Q=e(function(w){if(!K)throw TypeError(w);Y.push({type:"INVALID_CHAR",index:X,value:J[X++]})},"ErrorOrInvalid");if(Z==="*"){Y.push({type:"ASTERISK",index:X,value:J[X++]});continue}if(Z==="+"||Z==="?"){Y.push({type:"OTHER_MODIFIER",index:X,value:J[X++]});continue}if(Z==="\\"){Y.push({type:"ESCAPED_CHAR",index:X++,value:J[X++]});continue}if(Z==="{"){Y.push({type:"OPEN",index:X,value:J[X++]});continue}if(Z==="}"){Y.push({type:"CLOSE",index:X,value:J[X++]});continue}if(Z===":"){let w="",$=X+1;for(;$<J.length;){let W=J.substr($,1);if($===X+1&&MV.test(W)||$!==X+1&&LV.test(W)){w+=J[$++];continue}break}if(!w){Q(`Missing parameter name at ${X}`);continue}Y.push({type:"NAME",index:X,value:w}),X=$;continue}if(Z==="("){let w=1,$="",W=X+1,H=!1;if(J[W]==="?"){Q(`Pattern cannot start with "?" at ${W}`);continue}for(;W<J.length;){if(!qY(J[W],!1)){Q(`Invalid character '${J[W]}' at ${W}.`),H=!0;break}if(J[W]==="\\"){$+=J[W++]+J[W++];continue}if(J[W]===")"){if(w--,w===0){W++;break}}else if(J[W]==="("&&(w++,J[W+1]!=="?")){Q(`Capturing groups are not allowed at ${W}`),H=!0;break}$+=J[W++]}if(H)continue;if(w){Q(`Unbalanced pattern at ${X}`);continue}if(!$){Q(`Missing pattern at ${X}`);continue}Y.push({type:"REGEX",index:X,value:$}),X=W;continue}Y.push({type:"CHAR",index:X,value:J[X++]})}return Y.push({type:"END",index:X,value:""}),Y}e(t4,"lexer");function e4(J,K={}){let Y=t4(J);K.delimiter??="/#?",K.prefixes??="./";let X=`[^${s0(K.delimiter)}]+?`,Z=[],Q=0,w=0,$="",W=new Set,H=e((E)=>{if(w<Y.length&&Y[w].type===E)return Y[w++].value},"tryConsume"),z=e(()=>H("OTHER_MODIFIER")??H("ASTERISK"),"tryConsumeModifier"),U=e((E)=>{let D=H(E);if(D!==void 0)return D;let{type:F,index:j}=Y[w];throw TypeError(`Unexpected ${F} at ${j}, expected ${E}`)},"mustConsume"),V=e(()=>{let E="",D;for(;D=H("CHAR")??H("ESCAPED_CHAR");)E+=D;return E},"consumeText"),A=e((E)=>E,"DefaultEncodePart"),L=K.encodePart||A,B="",M=e((E)=>{B+=E},"appendToPendingFixedValue"),O=e(()=>{B.length&&(Z.push(new I5(3,"","",L(B),"",3)),B="")},"maybeAddPartFromPendingFixedValue"),N=e((E,D,F,j,T)=>{let I=3;switch(T){case"?":I=1;break;case"*":I=0;break;case"+":I=2;break}if(!D&&!F&&I===3){M(E);return}if(O(),!D&&!F){if(!E)return;Z.push(new I5(3,"","",L(E),"",I));return}let C;F?F==="*"?C=o4:C=F:C=X;let k=2;C===X?(k=1,C=""):C===o4&&(k=0,C="");let d;if(D?d=D:F&&(d=Q++),W.has(d))throw TypeError(`Duplicate name '${d}'.`);W.add(d),Z.push(new I5(k,d,L(E),C,L(j),I))},"addPart");for(;w<Y.length;){let E=H("CHAR"),D=H("NAME"),F=H("REGEX");if(!D&&!F&&(F=H("ASTERISK")),D||F){let T=E??"";K.prefixes.indexOf(T)===-1&&(M(T),T=""),O();let I=z();N(T,D,F,"",I);continue}let j=E??H("ESCAPED_CHAR");if(j){M(j);continue}if(H("OPEN")){let T=V(),I=H("NAME"),C=H("REGEX");!I&&!C&&(C=H("ASTERISK"));let k=V();U("CLOSE");let d=z();N(T,I,C,k,d);continue}O(),U("END")}return Z}e(e4,"parse");function s0(J){return J.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}e(s0,"escapeString");function s4(J){return J&&J.ignoreCase?"ui":"u"}e(s4,"flags");function OY(J,K,Y){return J9(e4(J,Y),K,Y)}e(OY,"stringToRegexp");function H5(J){switch(J){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}e(H5,"modifierToString");function J9(J,K,Y={}){Y.delimiter??="/#?",Y.prefixes??="./",Y.sensitive??=!1,Y.strict??=!1,Y.end??=!0,Y.start??=!0,Y.endsWith="";let X=Y.start?"^":"";for(let $ of J){if($.type===3){$.modifier===3?X+=s0($.value):X+=`(?:${s0($.value)})${H5($.modifier)}`;continue}K&&K.push($.name);let W=`[^${s0(Y.delimiter)}]+?`,H=$.value;if($.type===1?H=W:$.type===0&&(H=o4),!$.prefix.length&&!$.suffix.length){$.modifier===3||$.modifier===1?X+=`(${H})${H5($.modifier)}`:X+=`((?:${H})${H5($.modifier)})`;continue}if($.modifier===3||$.modifier===1){X+=`(?:${s0($.prefix)}(${H})${s0($.suffix)})`,X+=H5($.modifier);continue}X+=`(?:${s0($.prefix)}`,X+=`((?:${H})(?:`,X+=s0($.suffix),X+=s0($.prefix),X+=`(?:${H}))*)${s0($.suffix)})`,$.modifier===0&&(X+="?")}let Z=`[${s0(Y.endsWith)}]|$`,Q=`[${s0(Y.delimiter)}]`;if(Y.end)return Y.strict||(X+=`${Q}?`),Y.endsWith.length?X+=`(?=${Z})`:X+="$",new RegExp(X,s4(Y));Y.strict||(X+=`(?:${Q}(?=${Z}))?`);let w=!1;if(J.length){let $=J[J.length-1];$.type===3&&$.modifier===3&&(w=Y.delimiter.indexOf($)>-1)}return w||(X+=`(?=${Q}|${Z})`),new RegExp(X,s4(Y))}e(J9,"partsToRegexp");var s1={delimiter:"",prefixes:"",sensitive:!0,strict:!0},qV={delimiter:".",prefixes:"",sensitive:!0,strict:!0},OV={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function NY(J,K){return J.length?J[0]==="/"?!0:!K||J.length<2?!1:(J[0]=="\\"||J[0]=="{")&&J[1]=="/":!1}e(NY,"isAbsolutePathname");function K9(J,K){return J.startsWith(K)?J.substring(K.length,J.length):J}e(K9,"maybeStripPrefix");function jY(J,K){return J.endsWith(K)?J.substr(0,J.length-K.length):J}e(jY,"maybeStripSuffix");function Y9(J){return!J||J.length<2?!1:J[0]==="["||(J[0]==="\\"||J[0]==="{")&&J[1]==="["}e(Y9,"treatAsIPv6Hostname");var EY=["ftp","file","http","https","ws","wss"];function X9(J){if(!J)return!0;for(let K of EY)if(J.test(K))return!0;return!1}e(X9,"isSpecialScheme");function FY(J,K){if(J=K9(J,"#"),K||J==="")return J;let Y=new URL("https://example.com");return Y.hash=J,Y.hash?Y.hash.substring(1,Y.hash.length):""}e(FY,"canonicalizeHash");function _Y(J,K){if(J=K9(J,"?"),K||J==="")return J;let Y=new URL("https://example.com");return Y.search=J,Y.search?Y.search.substring(1,Y.search.length):""}e(_Y,"canonicalizeSearch");function DY(J,K){return K||J===""?J:Y9(J)?w9(J):Q9(J)}e(DY,"canonicalizeHostname");function IY(J,K){if(K||J==="")return J;let Y=new URL("https://example.com");return Y.password=J,Y.password}e(IY,"canonicalizePassword");function RY(J,K){if(K||J==="")return J;let Y=new URL("https://example.com");return Y.username=J,Y.username}e(RY,"canonicalizeUsername");function TY(J,K,Y){if(Y||J==="")return J;if(K&&!EY.includes(K))return new URL(`${K}:${J}`).pathname;let X=J[0]=="/";return J=new URL(X?J:"/-"+J,"https://example.com").pathname,X||(J=J.substring(2,J.length)),J}e(TY,"canonicalizePathname");function CY(J,K,Y){return Z9(K)===J&&(J=""),Y||J===""?J:W9(J)}e(CY,"canonicalizePort");function PY(J,K){return J=jY(J,":"),K||J===""?J:Z6(J)}e(PY,"canonicalizeProtocol");function Z9(J){switch(J){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}e(Z9,"defaultPortForProtocol");function Z6(J){if(J==="")return J;if(/^[-+.A-Za-z0-9]*$/.test(J))return J.toLowerCase();throw TypeError(`Invalid protocol '${J}'.`)}e(Z6,"protocolEncodeCallback");function SY(J){if(J==="")return J;let K=new URL("https://example.com");return K.username=J,K.username}e(SY,"usernameEncodeCallback");function vY(J){if(J==="")return J;let K=new URL("https://example.com");return K.password=J,K.password}e(vY,"passwordEncodeCallback");function Q9(J){if(J==="")return J;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(J))throw TypeError(`Invalid hostname '${J}'`);let K=new URL("https://example.com");return K.hostname=J,K.hostname}e(Q9,"hostnameEncodeCallback");function w9(J){if(J==="")return J;if(/[^0-9a-fA-F[\]:]/g.test(J))throw TypeError(`Invalid IPv6 hostname '${J}'`);return J.toLowerCase()}e(w9,"ipv6HostnameEncodeCallback");function W9(J){if(J===""||/^[0-9]*$/.test(J)&&parseInt(J)<=65535)return J;throw TypeError(`Invalid port '${J}'.`)}e(W9,"portEncodeCallback");function yY(J){if(J==="")return J;let K=new URL("https://example.com");return K.pathname=J[0]!=="/"?"/-"+J:J,J[0]!=="/"?K.pathname.substring(2,K.pathname.length):K.pathname}e(yY,"standardURLPathnameEncodeCallback");function hY(J){return J===""?J:new URL(`data:${J}`).pathname}e(hY,"pathURLPathnameEncodeCallback");function kY(J){if(J==="")return J;let K=new URL("https://example.com");return K.search=J,K.search.substring(1,K.search.length)}e(kY,"searchEncodeCallback");function gY(J){if(J==="")return J;let K=new URL("https://example.com");return K.hash=J,K.hash.substring(1,K.hash.length)}e(gY,"hashEncodeCallback");var xY=class{#Q;#X=[];#K={};#J=0;#Z=1;#H=0;#W=0;#A=0;#B=0;#G=!1;constructor(J){this.#Q=J}get result(){return this.#K}parse(){for(this.#X=t4(this.#Q,!0);this.#J<this.#X.length;this.#J+=this.#Z){if(this.#Z=1,this.#X[this.#J].type==="END"){if(this.#W===0){this.#O(),this.#z()?this.#Y(9,1):this.#U()?this.#Y(8,1):this.#Y(7,0);continue}else if(this.#W===2){this.#V(5);continue}this.#Y(10,0);break}if(this.#A>0)if(this.#I())this.#A-=1;else continue;if(this.#D()){this.#A+=1;continue}switch(this.#W){case 0:this.#N()&&this.#V(1);break;case 1:if(this.#N()){this.#C();let J=7,K=1;this.#E()?(J=2,K=3):this.#G&&(J=2),this.#Y(J,K)}break;case 2:this.#L()?this.#V(3):(this.#q()||this.#U()||this.#z())&&this.#V(5);break;case 3:this.#F()?this.#Y(4,1):this.#L()&&this.#Y(5,1);break;case 4:this.#L()&&this.#Y(5,1);break;case 5:this.#R()?this.#B+=1:this.#T()&&(this.#B-=1),this.#_()&&!this.#B?this.#Y(6,1):this.#q()?this.#Y(7,0):this.#U()?this.#Y(8,1):this.#z()&&this.#Y(9,1);break;case 6:this.#q()?this.#Y(7,0):this.#U()?this.#Y(8,1):this.#z()&&this.#Y(9,1);break;case 7:this.#U()?this.#Y(8,1):this.#z()&&this.#Y(9,1);break;case 8:this.#z()&&this.#Y(9,1);break;case 9:break;case 10:break}}this.#K.hostname!==void 0&&this.#K.port===void 0&&(this.#K.port="")}#Y(J,K){switch(this.#W){case 0:break;case 1:this.#K.protocol=this.#$();break;case 2:break;case 3:this.#K.username=this.#$();break;case 4:this.#K.password=this.#$();break;case 5:this.#K.hostname=this.#$();break;case 6:this.#K.port=this.#$();break;case 7:this.#K.pathname=this.#$();break;case 8:this.#K.search=this.#$();break;case 9:this.#K.hash=this.#$();break;case 10:break}this.#W!==0&&J!==10&&([1,2,3,4].includes(this.#W)&&[6,7,8,9].includes(J)&&(this.#K.hostname??=""),[1,2,3,4,5,6].includes(this.#W)&&[8,9].includes(J)&&(this.#K.pathname??=this.#G?"/":""),[1,2,3,4,5,6,7].includes(this.#W)&&J===9&&(this.#K.search??="")),this.#j(J,K)}#j(J,K){this.#W=J,this.#H=this.#J+K,this.#J+=K,this.#Z=0}#O(){this.#J=this.#H,this.#Z=0}#V(J){this.#O(),this.#W=J}#M(J){return J<0&&(J=this.#X.length-J),J<this.#X.length?this.#X[J]:this.#X[this.#X.length-1]}#w(J,K){let Y=this.#M(J);return Y.value===K&&(Y.type==="CHAR"||Y.type==="ESCAPED_CHAR"||Y.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,":")}#q(){return this.#w(this.#J,"/")}#U(){if(this.#w(this.#J,"?"))return!0;if(this.#X[this.#J].value!=="?")return!1;let J=this.#M(this.#J-1);return J.type!=="NAME"&&J.type!=="REGEX"&&J.type!=="CLOSE"&&J.type!=="ASTERISK"}#z(){return this.#w(this.#J,"#")}#D(){return this.#X[this.#J].type=="OPEN"}#I(){return this.#X[this.#J].type=="CLOSE"}#R(){return this.#w(this.#J,"[")}#T(){return this.#w(this.#J,"]")}#$(){let J=this.#X[this.#J],K=this.#M(this.#H).index;return this.#Q.substring(K,J.index)}#C(){let J={};Object.assign(J,s1),J.encodePart=Z6;let K=OY(this.#$(),void 0,J);this.#G=X9(K)}};e(xY,"Parser");var n4=["protocol","username","password","hostname","port","pathname","search","hash"],o1="*";function a4(J,K){if(typeof J!="string")throw TypeError("parameter 1 is not of type 'string'.");let Y=new URL(J,K);return{protocol:Y.protocol.substring(0,Y.protocol.length-1),username:Y.username,password:Y.password,hostname:Y.hostname,port:Y.port,pathname:Y.pathname,search:Y.search!==""?Y.search.substring(1,Y.search.length):void 0,hash:Y.hash!==""?Y.hash.substring(1,Y.hash.length):void 0}}e(a4,"extractValues");function I1(J,K){return K?D5(J):J}e(I1,"processBaseURLString");function _5(J,K,Y){let X;if(typeof K.baseURL=="string")try{X=new URL(K.baseURL),K.protocol===void 0&&(J.protocol=I1(X.protocol.substring(0,X.protocol.length-1),Y)),!Y&&K.protocol===void 0&&K.hostname===void 0&&K.port===void 0&&K.username===void 0&&(J.username=I1(X.username,Y)),!Y&&K.protocol===void 0&&K.hostname===void 0&&K.port===void 0&&K.username===void 0&&K.password===void 0&&(J.password=I1(X.password,Y)),K.protocol===void 0&&K.hostname===void 0&&(J.hostname=I1(X.hostname,Y)),K.protocol===void 0&&K.hostname===void 0&&K.port===void 0&&(J.port=I1(X.port,Y)),K.protocol===void 0&&K.hostname===void 0&&K.port===void 0&&K.pathname===void 0&&(J.pathname=I1(X.pathname,Y)),K.protocol===void 0&&K.hostname===void 0&&K.port===void 0&&K.pathname===void 0&&K.search===void 0&&(J.search=I1(X.search.substring(1,X.search.length),Y)),K.protocol===void 0&&K.hostname===void 0&&K.port===void 0&&K.pathname===void 0&&K.search===void 0&&K.hash===void 0&&(J.hash=I1(X.hash.substring(1,X.hash.length),Y))}catch{throw TypeError(`invalid baseURL '${K.baseURL}'.`)}if(typeof K.protocol=="string"&&(J.protocol=PY(K.protocol,Y)),typeof K.username=="string"&&(J.username=RY(K.username,Y)),typeof K.password=="string"&&(J.password=IY(K.password,Y)),typeof K.hostname=="string"&&(J.hostname=DY(K.hostname,Y)),typeof K.port=="string"&&(J.port=CY(K.port,J.protocol,Y)),typeof K.pathname=="string"){if(J.pathname=K.pathname,X&&!NY(J.pathname,Y)){let Z=X.pathname.lastIndexOf("/");Z>=0&&(J.pathname=I1(X.pathname.substring(0,Z+1),Y)+J.pathname)}J.pathname=TY(J.pathname,J.protocol,Y)}return typeof K.search=="string"&&(J.search=_Y(K.search,Y)),typeof K.hash=="string"&&(J.hash=FY(K.hash,Y)),J}e(_5,"applyInit");function D5(J){return J.replace(/([+*?:{}()\\])/g,"\\$1")}e(D5,"escapePatternString");function bY(J){return J.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}e(bY,"escapeRegexpString");function fY(J,K){K.delimiter??="/#?",K.prefixes??="./",K.sensitive??=!1,K.strict??=!1,K.end??=!0,K.start??=!0,K.endsWith="";let Y=".*",X=`[^${bY(K.delimiter)}]+?`,Z=/[$_\u200C\u200D\p{ID_Continue}]/u,Q="";for(let w=0;w<J.length;++w){let $=J[w];if($.type===3){if($.modifier===3){Q+=D5($.value);continue}Q+=`{${D5($.value)}}${H5($.modifier)}`;continue}let W=$.hasCustomName(),H=!!$.suffix.length||!!$.prefix.length&&($.prefix.length!==1||!K.prefixes.includes($.prefix)),z=w>0?J[w-1]:null,U=w<J.length-1?J[w+1]:null;if(!H&&W&&$.type===1&&$.modifier===3&&U&&!U.prefix.length&&!U.suffix.length)if(U.type===3){let V=U.value.length>0?U.value[0]:"";H=Z.test(V)}else H=!U.hasCustomName();if(!H&&!$.prefix.length&&z&&z.type===3){let V=z.value[z.value.length-1];H=K.prefixes.includes(V)}H&&(Q+="{"),Q+=D5($.prefix),W&&(Q+=`:${$.name}`),$.type===2?Q+=`(${$.value})`:$.type===1?W||(Q+=`(${X})`):$.type===0&&(!W&&(!z||z.type===3||z.modifier!==3||H||$.prefix!=="")?Q+="*":Q+=`(${Y})`),$.type===1&&W&&$.suffix.length&&Z.test($.suffix[0])&&(Q+="\\"),Q+=D5($.suffix),H&&(Q+="}"),$.modifier!==3&&(Q+=H5($.modifier))}return Q}e(fY,"partsToPattern");var $9=class{#Q;#X={};#K={};#J={};#Z={};#H=!1;constructor(J={},K,Y){try{let X;if(typeof K=="string"?X=K:Y=K,typeof J=="string"){let $=new xY(J);if($.parse(),J=$.result,X===void 0&&typeof J.protocol!="string")throw TypeError("A base URL must be provided for a relative constructor string.");J.baseURL=X}else{if(!J||typeof J!="object")throw TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(X)throw TypeError("parameter 1 is not of type 'string'.")}typeof Y>"u"&&(Y={ignoreCase:!1});let Z={ignoreCase:Y.ignoreCase===!0},Q={pathname:o1,protocol:o1,username:o1,password:o1,hostname:o1,port:o1,search:o1,hash:o1};this.#Q=_5(Q,J,!0),Z9(this.#Q.protocol)===this.#Q.port&&(this.#Q.port="");let w;for(w of n4){if(!(w in this.#Q))continue;let $={},W=this.#Q[w];switch(this.#K[w]=[],w){case"protocol":Object.assign($,s1),$.encodePart=Z6;break;case"username":Object.assign($,s1),$.encodePart=SY;break;case"password":Object.assign($,s1),$.encodePart=vY;break;case"hostname":Object.assign($,qV),Y9(W)?$.encodePart=w9:$.encodePart=Q9;break;case"port":Object.assign($,s1),$.encodePart=W9;break;case"pathname":X9(this.#X.protocol)?(Object.assign($,OV,Z),$.encodePart=yY):(Object.assign($,s1,Z),$.encodePart=hY);break;case"search":Object.assign($,s1,Z),$.encodePart=kY;break;case"hash":Object.assign($,s1,Z),$.encodePart=gY;break}try{this.#Z[w]=e4(W,$),this.#X[w]=J9(this.#Z[w],this.#K[w],$),this.#J[w]=fY(this.#Z[w],$),this.#H=this.#H||this.#Z[w].some((H)=>H.type===2)}catch{throw TypeError(`invalid ${w} pattern '${this.#Q[w]}'.`)}}}catch(X){throw TypeError(`Failed to construct 'URLPattern': ${X.message}`)}}get[Symbol.toStringTag](){return"URLPattern"}test(J={},K){let Y={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof J!="string"&&K)throw TypeError("parameter 1 is not of type 'string'.");if(typeof J>"u")return!1;try{typeof J=="object"?Y=_5(Y,J,!1):Y=_5(Y,a4(J,K),!1)}catch{return!1}let X;for(X of n4)if(!this.#X[X].exec(Y[X]))return!1;return!0}exec(J={},K){let Y={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof J!="string"&&K)throw TypeError("parameter 1 is not of type 'string'.");if(typeof J>"u")return;try{typeof J=="object"?Y=_5(Y,J,!1):Y=_5(Y,a4(J,K),!1)}catch{return null}let X={};K?X.inputs=[J,K]:X.inputs=[J];let Z;for(Z of n4){let Q=this.#X[Z].exec(Y[Z]);if(!Q)return null;let w={};for(let[$,W]of this.#K[Z].entries())if(typeof W=="string"||typeof W=="number"){let H=Q[$+1];w[W]=H}X[Z]={input:Y[Z]??"",groups:w}}return X}static compareComponent(J,K,Y){let X=e(($,W)=>{for(let H of["type","modifier","prefix","value","suffix"]){if($[H]<W[H])return-1;if($[H]===W[H])continue;return 1}return 0},"comparePart"),Z=new I5(3,"","","","",3),Q=new I5(0,"","","","",3),w=e(($,W)=>{let H=0;for(;H<Math.min($.length,W.length);++H){let z=X($[H],W[H]);if(z)return z}return $.length===W.length?0:X($[H]??Z,W[H]??Z)},"comparePartList");return!K.#J[J]&&!Y.#J[J]?0:K.#J[J]&&!Y.#J[J]?w(K.#Z[J],[Q]):!K.#J[J]&&Y.#J[J]?w([Q],Y.#Z[J]):w(K.#Z[J],Y.#Z[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.#H}};e($9,"URLPattern");function NV(J){return J.replace(/\([^)]*\)/g,"").replace(/\/\//g,"/")}function Q6(J){let K={};for(let[Y,X]of Object.entries(J))if("run"in X){let Z=X.viewPath;if("children"in X){K[Y]=[Z];let Q=new X.children,w=Q6(Q.routes);for(let[$,W]of Object.entries(w)){let H=Y==="/"?$:`${Y}${$}`,z=$==="/"&&Y!=="/"?Y:H;K[z]=[Z,...W]}if(K[Y].length===1)delete K[Y]}else K[Y]=[Z]}else{let Z=new X,Q=Q6(Z.routes);for(let[w,$]of Object.entries(Q)){let W=Y==="/"?w:`${Y}${w}`,H=w==="/"&&Y!=="/"?Y:W;K[H]=$}}return Object.fromEntries(Object.entries(K).map(([Y,X])=>[NV(Y),X]))}function w6(J){let K=[];for(let[Y,X]of Object.entries(J))if("run"in X){let Z=X.viewPath;if(Z==="__")continue;if(Z==="REDIRECT")continue;if(Z==="FILE")continue;if("children"in X){let Q=new X.children,w=w6(Q.routes);K.push([Z,w])}else K.push([Z,[]])}else{let Z=new X,Q=w6(Z.routes);K.push(...Q)}return K}function H9(J){let K=[];for(let[Y,X]of J)K.push(Y,...H9(X).flat());return Array.from(new Set(K))}class Y8{static debug(J,K){J1.use().log("debug",J,K)}static info(J,K){J1.use().log("info",J,K)}static notice(J,K){J1.use().log("notice",J,K)}static warning(J,K){J1.use().log("warning",J,K)}static error(J,K){J1.use().log("error",J,K)}static critical(J,K){J1.use().log("critical",J,K)}static alert(J,K){J1.use().log("alert",J,K)}static emergency(J,K){J1.use().log("emergency",J,K)}}class z9 extends y0{service;static _name="KernelIdServiceContainer";constructor(J){super();this.service=J}}var FV=`
67
+ !function(){try{var d=document.documentElement,c=d.classList;
68
+ c.remove('light','dark');
69
+ var e=localStorage.getItem('theme');
70
+ if('system'===e||(!e&&'system'===defaultTheme)){
71
+ var t='(prefers-color-scheme: dark)',m=window.matchMedia(t);
72
+ if(m.media!==t||m.matches){d.style.colorScheme='dark';c.add('dark')}
73
+ else{d.style.colorScheme='light';c.add('light')}
74
+ }else if(e){
75
+ c.add(e||'')
76
+ }}catch(e){}}()
77
+ `;async function _V(J,K,Y){let X=`${Y==="italic"?"italic,":""}wght@${Y==="italic"?"1,":""}${K}`,w=(await(await fetch(`https://fonts.googleapis.com/css2?family=${J}:${X}&display=swap`,{headers:{"User-Agent":"Mozilla/5.0 Firefox/1.0"}})).text()).match(/url\(([^)]+)\)/)?.[1];return await fetch(w).then(($)=>$.arrayBuffer())}var V9="/assets";function DV(J){let K=J.filter((Y)=>Y===V9||Y.startsWith(`${V9}/`));if(K.length>0){let Y=K.length>1;throw Error(`View route path${Y?"s":""} ${K.map((X)=>`"${X}"`).join(", ")} use${Y?"":"s"} the reserved "${V9}" prefix. The client build output is served from there before the router runs, so the route would never match. Mount it somewhere else.`)}}class A9 extends y0{service;static _name="ViewRouterServiceContainer";flatViewRoutes={};routeManifest={};clientRouteManifest={};componentTree=[];flatComponentTree=[];root=null;constructor(J){super();this.service=J;let K={"/":J.rootRouter,"/auth":V6};this.flatViewRoutes=X6(K),DV(Object.keys(this.flatViewRoutes)),this.routeManifest=Q6(K),this.clientRouteManifest=Object.fromEntries(Object.entries(this.routeManifest).filter(([,Y])=>Y.at(-1)!=="FILE")),this.componentTree=w6(K),this.flatComponentTree=H9(this.componentTree),this.root=J.root}boot(){}async onRequestEnd(J){if(!J.cookies.has("session_id"))J.ctx().setCookie("session_id",Bun.randomUUIDv7(),{httpOnly:!0,secure:Bun.env.NODE_ENV==="production",sameSite:"Strict",expires:new Date(Date.now()+31536000000)});return await this.service.onRequestEnd(J)}async render(J){let{csrfTokenHMAC:K,currentPathName:Y,headers:X,i18n:Z,params:Q,pathname:w,prefetchedData:$,url:W,user:H,viewData:z,breadcrumbs:U,urlLocaleSegment:V,meta:A,isOgRequest:L,appId:B}=J,M=w.replace(`/${V}`,""),O={kind:"view",data:{meta:A,pageData:{[M]:z},__csrf:K.toString("base64"),prefetchedData:$,i18n:Z,auth:{user:H},routeManifest:this.clientRouteManifest,breadcrumbs:U,router:{urlLocaleSegment:V,pathname:Y,params:Q,currentPath:w,searchParams:W.search,is404:!Y?!0:!1},appId:B,componentTree:[["404",[]],...this.componentTree]},head:{}},N=this.root,E=this.routeManifest[Y];return async(D)=>{let{bootstrapModules:F,loaders:j,getStyles:T,viewImportMap:I,cssManifest:C,ogMap:k}=D;if(L){let u=null,p=null;for(let S of E)if(typeof k[S]==="function")p=S,u=k[S];if(!u)return new Response("Not found",{status:404});let P=Object.values(O.data.pageData)[0];try{await U9(X8(u,P[p]),{onError:()=>{}})}catch(S){let{fonts:R,...c}=S.satoriOptions,f=await Promise.all(R.map((l)=>{return _V(l.name,l.weight,l.style).then((y)=>({...l,data:y}))})),o=new Headers(X);o.set("Content-Type","image/png");let i=await LY(S.jsx,{...c,fonts:f}),m=await jV(Buffer.from(i)).png({compressionLevel:0,effort:10}).toBuffer();return new Response(new Uint8Array(m),{headers:o})}return new Response("data")}O.data.cssManifest=C;let d=await T(E);try{let u=await U9(X8(EV,{children:[...d,X8("script",{key:"theme-script",dangerouslySetInnerHTML:{__html:FV}}),X8(N,{data:O.data,viewImportMap:I,key:"root"})]}),{bootstrapScriptContent:`window.__GEMI_DATA__ = ${JSON.stringify(O.data)}; window.loaders=${j}`,bootstrapModules:F});return new Response(u,{status:!Y?404:200,headers:X})}catch(u){let p=await U9(X8("div"),{bootstrapScriptContent:`window.error= ${JSON.stringify(u.message)}; window.stack_trace=${JSON.stringify(u.stack)};window.__GEMI_DATA__ = ${JSON.stringify(O.data)}; window.loaders=${j}`,bootstrapModules:Bun.env.NODE_ENV==="development"?["/render-error.js",...F]:F});return new Response(p,{status:!Y?404:200,headers:X})}}}async handleViewRequest(J){let K=new URL(J.url),Y=K.pathname.endsWith(".json"),X=K.pathname.endsWith(".og"),Z=K.pathname.replace(".json","").replace(".og",""),[,Q,...w]=Z.split("/"),$=`/${w.join("/")}`,W=null,H=null,z=P0.use();if(!z.service.supportedLocales.includes(Q))$=Z;else W=Q,H=Q;if(z.isEnabled&&!X){let O=P0.use().detectLocale(new H0(J,{},"view",$));if(H===null&&O!==z.service.defaultLocale){let N=K.pathname==="/"?"":K.pathname;return new Response("",{status:302,headers:{"Cache-Control":"private, no-cache, no-store, max-age=0, must-revalidate",Location:`/${O}${N}${K.search}`}})}}$=$.replace("//","/");let V=[],A=[],L=null,B={};try{for(let[O,N]of Object.entries(this.flatViewRoutes)){let E=new $9({pathname:O});if(E.test({pathname:$})){L=O,B=E.exec({pathname:$})?.pathname.groups,V=N.exec,A=N.middleware;break}}}catch(O){throw O}let M=new H0(J,B,"view",L);return await G0.run(M,async()=>{let O=null,N=G0.getStore();if(H){let D=H.replaceAll("/","");G5.setLocale(D)}else G5.setLocale();let E=N.req;try{await P5.use().runMiddleware(A);let D=P0.use(),F=D.isEnabled,j={};if(F){let f=null;if(H)f=H.replaceAll("/",""),N.setLocale(f);else f=D.detectLocale(new H0(J,E.params)),N.setLocale(f);let o=D.getPageTranslations(f,E.routePath);j={supportedLocales:D.service.supportedLocales,currentLocale:f,dictionary:{[f]:o},defaultLocale:D.service.defaultLocale}}let T=await Promise.all([...V.map((f)=>f(E)),...Array.from(N.prefetchPromiseQueue).map((f)=>f())]),I=N.cookies,C=N.headers,k=N.prefetchedResources;O={data:T,cookies:I,headers:C,user:N.user,prefetchedData:Object.fromEntries(k.entries()),currentPathName:E.routePath,params:E.params,urlLocaleSegment:W,meta:N.renderMeta(),appId:z9.use().service.id};let{params:d,currentPathName:u,user:p}=O,P={},S={};for(let f of T??[]){let[o,i]=Object.entries(f)?.[0]??[];if(!o||!i)continue;S[`${o}:${u}`]=i.breadcrumb,P[o]=i}let R=P.FILE;if(R){for(let f of I)C.append("Set-Cookie",f.toString());try{await this.onRequestEnd(E)}catch(f){Y8.error(f?.message??'Error in "onRequestEnd" event handler',{err:JSON.stringify(f)})}return await mY(R,C)}if(Y)return C.set("Content-Type","application/json; charset=utf-8"),I.forEach((f)=>C.append("Set-Cookie",f.toString())),await this.service.onRequestEnd(E),new Response(JSON.stringify({meta:O.meta,data:{[$]:P},breadcrumbs:S,prefetchedData:O.prefetchedData,i18n:j,is404:!u,appId:O.appId}),{headers:C});C.set("Content-Type","text/html; charset=utf-8");for(let f of I)C.append("Set-Cookie",f.toString());let c=Bun.CSRF.generate(process.env.SECRET);C.append("Set-Cookie",`csrf_token=${c}; HttpOnly; Secure; SameSite=Strict; Expires=${new Date(Date.now()+86400000).toUTCString()}`);try{await this.onRequestEnd(E)}catch(f){Y8.error(f?.message??'Error in "onRequestEnd" event handler',{err:JSON.stringify(f)})}return await this.render({csrfTokenHMAC:Buffer.from(""),currentPathName:u,headers:C,i18n:j,params:d,pathname:K.pathname,prefetchedData:O.prefetchedData,url:K,user:p,viewData:P,breadcrumbs:S,urlLocaleSegment:W,meta:O.meta,appId:O.appId,isOgRequest:X})}catch(D){if(D.kind===Z8)if(Y){let{status:F=400,data:j,directive:T,headers:I}=D.payload.api;return new Response(JSON.stringify({data:j,directive:T}),{headers:I,status:F})}else{let{status:F=400,error:j}=D.payload.view;return new Response(j?.message,{...D.payload.view,status:F})}throw this.service.onRequestFail(E,D),D}})}}class lY extends q1{routes={"/api-routes":this.get(()=>{let J=W6.use().flatRoutes,K=[];for(let[Y,X]of Object.entries(J))for(let[Z,Q]of Object.entries(X)){let{exec:w,middleware:$}=Q;K.push({path:Y,method:Z,middleware:$})}return K}),"/view-routes":this.get(()=>{let J=A9.use().flatViewRoutes,K=[];for(let[Y,{middleware:X,viewPath:Z}]of Object.entries(J))K.push({path:Y,method:"GET",viewPath:Z,middleware:X});return K})}}class W6 extends y0{service;static _name="ApiRouterServiceContainer";flatRoutes={};constructor(J){super();this.service=J;this.flatRoutes=O6({"/":this.service.rootRouter.bind(this.service),"/auth":A6,"/__gemi__/services/i18n":B6,"/__gemi__/services/logs":q6,"/__gemi__/services/image":G6,"/__gemi__/debug":lY})}getRouteHandlerAndParams(J){let Y=new URL(J.url).pathname.replace("/api",""),X={},Z;for(let[Q]of Object.entries(this.flatRoutes))try{let w=new URLPattern({pathname:Q});if(w.test({pathname:Y})){Z=Q,X=w.exec({pathname:Y})?.pathname.groups;break}}catch(w){console.error(w)}return{params:X,path:Z}}async runRouteMiddleware(J,K){let X=this.flatRoutes[J][K.rawRequest.method].middleware;try{await P5.use().runMiddleware(X)}catch(Z){if(Z.kind===Z8){if(K.rawRequest.url.includes("/api")){let{status:Q=400,data:w,headers:$}=Z.payload.api;return new Response(JSON.stringify(w),{status:Q,headers:{"Content-Type":"application/json",...$}})}}else throw this.service.onRequestFail(K,Z),console.error(Z),Z}}async getRouteData(J){let K=this.flatRoutes[J],Y=G0.getStore(),X=K[Y.req.rawRequest.method].exec??(()=>Promise.resolve({})),Z={};try{Z=await X()}catch(Q){if(Q.kind===Z8){let{status:w=400,data:$,headers:W}=Q.payload.api;return new Response(JSON.stringify($),{status:w,headers:{"Content-Type":"application/json",...W}})}throw this.service.onRequestFail(Y.req,Q),console.error(Q),Q}return Z}mergeContextIntoResponse(J,K,Y){let X=[];K?.forEach((w,$)=>X.push([$,w]));let Z=[...typeof K?.getSetCookie==="function"?K.getSetCookie():[],...Array.from(Y??[])];if(X.length===0&&Z.length===0)return J;let Q=(w)=>{for(let[$,W]of X){if($.toLowerCase()==="set-cookie")continue;if(!w.has($))w.set($,W)}for(let $ of Z)w.append("Set-Cookie",$)};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:K,path:Y}=this.getRouteHandlerAndParams(J),X=this.flatRoutes[Y];if(!X||!X[J.method])return new Response(JSON.stringify({error:{message:"Not found"}}),{status:404});let Z=new H0(J,K,"api",Y);if(!J.url.includes("/__gemi__"))this.service.onRequestStart(Z);return await G0.run(Z,async()=>{let Q=G0.getStore(),w=P0.use();if(w.isEnabled){let U=w.detectLocale(Z);Q.setLocale(U)}Q.setRequest(Z);let $=await this.runRouteMiddleware(Y,Z);if($ instanceof Response)return $;let W=await this.getRouteData(Y),H=Q.headers,z=Q.cookies;if(W instanceof Response){let U=this.mergeContextIntoResponse(W,H,z);if(!J.url.includes("/__gemi__"))this.service.onRequestEnd(Z);return Q.destroy(),U}if(H.set("Content-Type","application/json"),z.forEach((U)=>H.append("Set-Cookie",U.toString())),!J.url.includes("/__gemi__"))this.service.onRequestEnd(Z);return Q.destroy(),new Response(JSON.stringify(W),{headers:H})})}}class $6{static prepare(J,...K){let Y={params:{},search:{}},[X={}]=K,{search:Z,params:Q}={...Y,...X},w=G0.getStore();if(w.req.kind==="api")throw Error("Query.prefetch() cannot be called from an API request");let $=w.req.rawRequest,W=new URL($.url),H=new URLSearchParams(N9(Z));H.delete("json"),H.sort();let z=[`${a1(J,Q)}`,H.toString()].filter((M)=>M.length>0).join("?"),U=`${W.origin}/${z}`,V=new Request(U,{headers:$.headers}),A=new H0(V,Q),L=(M)=>{w.prefetchedResources.set(a1(J,Q),{[H.toString()]:M})},B=()=>{return G0.run(A,async()=>{let M=await W6.use().getRouteData(J);return L(M),M})};return{instant:B,prefetch:()=>{w.prefetchPromiseQueue.add(B)}}}static instant(J,...K){return $6.prepare(J,...K).instant()}static prefetch(J,...K){return $6.prepare(J,...K).prefetch()}}class cY{static channel(J,K){let Y=B5.use().service.channels[J];if(!Y)return console.error(`Channel ${J} not found`),{publish:()=>{}};let X=new Y;return{publish:(Z,Q=!1)=>{let w=a1(J,K);B5.use().publish(w,JSON.stringify({topic:w,data:X.publish(Z)}),Q)}}}}class dY{static absolute(J,...K){return`${process.env.HOST_NAME}${a1(String(J),K[0]??{})}`}static relative(J,...K){return a1(String(J),K[0]??{})}}class uY{name="Meta";static description(J){G0.getStore().metadata.description(J)}static title(J){G0.getStore().metadata.title(J)}static openGraph(J){G0.getStore().metadata.openGraph(J)}}var IV={set(J,K,Y){G0.getStore().setCookie(J,K,Y)},setIfAbsent(J,K,Y){if(G0.getStore().req.cookies.has(J))return!1;return G0.getStore().setCookie(J,K,Y),!0},delete(J){G0.getStore().deleteCookie(J)}};var{RedisClient:RV}=globalThis.Bun;class B9 extends y0{service;static _name="RedisServiceContainer";client;constructor(J){super();this.service=J;this.client=new RV(J.url,J.options)}}class y1{static get client(){return B9.use().client}static get(J){return y1.client.get(J)}static set(J,K){return y1.client.set(J,K)}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,K){return y1.client.expire(J,K)}static ttl(J){return y1.client.ttl(J)}}export{B5 as s,b1 as t,G5 as u,M5 as v,O9 as w,$6 as x,cY as y,dY as z,J1 as A,Y8 as B,uY as C,IV as D,B9 as E,y1 as F,nY as G,T9 as H,P5 as I,$9 as J,z9 as K,V9 as L,A9 as M,W6 as N};
78
+
79
+ //# debugId=8B7041E87864289364756E2164756E21