@malloy-publisher/app 0.0.102 → 0.0.103

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 (549) hide show
  1. package/dist/index.cjs.js +23 -23
  2. package/dist/index.es.js +741 -734
  3. package/dist/{index.es252-C5bH04qf.js → index.es243-CNCgOxIv.js} +1 -1
  4. package/dist/{index.es252-BaHyMQ91.cjs → index.es243-Ds0n6HhO.cjs} +1 -1
  5. package/dist/{index.es253-BPJdX9ao.cjs → index.es244-7-qziuZX.cjs} +1 -1
  6. package/dist/{index.es253-Cfjj43_Z.js → index.es244-D5C9GrEp.js} +2 -2
  7. package/dist/{index.es256-ezVxewHB.js → index.es247-BT1bxCNv.js} +5 -5
  8. package/dist/{index.es256-n3QOND9s.cjs → index.es247-Dsc5rJwa.cjs} +1 -1
  9. package/dist/{index.es261-CxF99v09.js → index.es252-Bf3bQaUf.js} +5 -5
  10. package/dist/{index.es261-COCeTMSD.cjs → index.es252-EZrUgMep.cjs} +1 -1
  11. package/dist/{index.es269-Dm_tIaGe.js → index.es260-CN2ipCCP.js} +6 -6
  12. package/dist/{index.es269-BsWMjmK8.cjs → index.es260-CSk-OS6p.cjs} +1 -1
  13. package/dist/{index.es270-CO8qMM6N.js → index.es261-ByR3bsZE.js} +1 -1
  14. package/dist/{index.es270-DwwM1bqi.cjs → index.es261-DW5fyqkC.cjs} +1 -1
  15. package/dist/{index.es273-DgIEKiBg.cjs → index.es264-BzeJwoXk.cjs} +1 -1
  16. package/dist/{index.es273-B0qGWMli.js → index.es264-DF4jBlYa.js} +1 -1
  17. package/dist/{index.es277-B16oYV_g.cjs → index.es268-3HLivlbM.cjs} +1 -1
  18. package/dist/{index.es277-DD8EJWzq.js → index.es268-BFR7m0sI.js} +2 -2
  19. package/dist/{index.es280-CzSI9DpB.cjs → index.es271-BmdyTHFo.cjs} +1 -1
  20. package/dist/{index.es280-D_YOcAMa.js → index.es271-Cp_k-N03.js} +1 -1
  21. package/dist/{index.es283-DyOyyMj2.js → index.es274-Cuqxnl_T.js} +3 -3
  22. package/dist/{index.es283-BXhXa3X9.cjs → index.es274-M5uUd6X1.cjs} +1 -1
  23. package/dist/{index.es284-Du77Kvc0.cjs → index.es275-C0LWBUAx.cjs} +1 -1
  24. package/dist/{index.es284-Db6F0UJO.js → index.es275-Dpi32ITh.js} +6 -6
  25. package/dist/{index.es298-Dhde_NFk.js → index.es289-CpIKwx9P.js} +3 -3
  26. package/dist/{index.es298-walBYOs1.cjs → index.es289-h6iOnWlk.cjs} +1 -1
  27. package/dist/{index.es299-C3-GhogV.cjs → index.es290-B4sA6QCR.cjs} +1 -1
  28. package/dist/{index.es299-BCg3F0ub.js → index.es290-PGBmTW6g.js} +1 -1
  29. package/dist/{index.es300-C_ONMTTl.js → index.es291-Cx4bWsy9.js} +1 -1
  30. package/dist/{index.es300-CUvIiBE1.cjs → index.es291-ZFoid2z0.cjs} +1 -1
  31. package/dist/{index.es302-CJ1oUSOu.js → index.es293-CxRiQymW.js} +2 -2
  32. package/dist/{index.es302-Be1x3jAt.cjs → index.es293-DtXzDenY.cjs} +1 -1
  33. package/dist/{index.es307-DGFGA2DF.cjs → index.es298-CIcQqEBm.cjs} +1 -1
  34. package/dist/{index.es307-DuqHBXZN.js → index.es298-DSCvPyzK.js} +1 -1
  35. package/dist/{index.es309-Dq1IFyMx.js → index.es300-BhWC3xIW.js} +1 -1
  36. package/dist/{index.es309-ZfPTZoHB.cjs → index.es300-CaYDGmTZ.cjs} +1 -1
  37. package/dist/{index.es310-BlNG2I87.cjs → index.es301-CF2gu0f5.cjs} +1 -1
  38. package/dist/{index.es310-Ck2vfDDA.js → index.es301-s2b4B6gy.js} +2 -2
  39. package/dist/{index.es315-CPayHIMN.cjs → index.es306-BGOJVdxG.cjs} +1 -1
  40. package/dist/{index.es315-iq3LMmnH.js → index.es306-CNejG4uO.js} +1 -1
  41. package/dist/{index.es316-CR1ZHDjT.js → index.es307-CLafPIKs.js} +1 -1
  42. package/dist/{index.es316-BAAO0gFt.cjs → index.es307-YXDFndoR.cjs} +1 -1
  43. package/dist/{index.es318-ivkllcud.js → index.es309-DFa3wnVT.js} +4 -4
  44. package/dist/{index.es318-C3zVhHe-.cjs → index.es309-Dzv4e3xT.cjs} +1 -1
  45. package/dist/{index.es319-nyl1w3yX.cjs → index.es310-DdxizEwj.cjs} +1 -1
  46. package/dist/{index.es319-DjTH6V-5.js → index.es310-DjvsnEQx.js} +4 -4
  47. package/dist/{index.es320-Dfg_OE8O.cjs → index.es311-BjOwxtZj.cjs} +1 -1
  48. package/dist/{index.es320-CScV0Ki5.js → index.es311-DiWMmPDk.js} +1 -1
  49. package/dist/{index.es323-CfciOdrI.cjs → index.es314-BMJKzsEE.cjs} +1 -1
  50. package/dist/{index.es323-DXhMaLAM.js → index.es314-CJL59cH4.js} +4 -4
  51. package/dist/{index.es325-DDBTqahV.js → index.es316-Bv00XQZt.js} +2 -2
  52. package/dist/{index.es325-Cmzx5MLO.cjs → index.es316-DjEkuCjz.cjs} +1 -1
  53. package/dist/{index.es326-qWwWlIYi.cjs → index.es317-4CSqWjqs.cjs} +1 -1
  54. package/dist/{index.es326-6RfAequ0.js → index.es317-CYsdsSIK.js} +2 -2
  55. package/dist/{index.es327-CCu_L1WS.js → index.es318-CHjFXWnk.js} +4 -4
  56. package/dist/{index.es327-CLlVDJsL.cjs → index.es318-CcLVV8ug.cjs} +1 -1
  57. package/dist/{index.es333-CRcHh2lx.cjs → index.es324-D0PYU5g0.cjs} +1 -1
  58. package/dist/{index.es333-BLjkFAU7.js → index.es324-SXeDN1ia.js} +2 -2
  59. package/dist/{index.es334-B4YGaAaN.cjs → index.es325-BCxtrNen.cjs} +1 -1
  60. package/dist/{index.es334-BXz232dE.js → index.es325-DxmZXflz.js} +1 -1
  61. package/dist/{index.es335-B-MHFLZY.js → index.es326-BMw3Jy35.js} +4 -4
  62. package/dist/{index.es335-4HcyHKUn.cjs → index.es326-Cv7MfHbW.cjs} +1 -1
  63. package/dist/{index.es336-CG8yGvAa.cjs → index.es327-B-5g0RrG.cjs} +1 -1
  64. package/dist/{index.es336-BWg01DKn.js → index.es327-B73FgY0a.js} +1 -1
  65. package/dist/{index.es338-Bm-Ovu8i.js → index.es329-D16VI9Iw.js} +1 -1
  66. package/dist/{index.es338-DT5n93uN.cjs → index.es329-_Up8BkH-.cjs} +1 -1
  67. package/dist/{index.es342-Da347dQi.cjs → index.es333-BnZe0DoP.cjs} +1 -1
  68. package/dist/{index.es342-C9jRgfLv.js → index.es333-CzL82jAP.js} +1 -1
  69. package/dist/{index.es343-BAD8ZMq1.cjs → index.es334-Bp0mq9Ug.cjs} +1 -1
  70. package/dist/{index.es343-sD5ZIbKV.js → index.es334-CpFMbgii.js} +1 -1
  71. package/dist/{index.es351-DqRF87cU.cjs → index.es342-B8F4oXRu.cjs} +1 -1
  72. package/dist/{index.es351-BiVCEW7d.js → index.es342-Wi7ZAHAt.js} +5 -5
  73. package/dist/{index.es354-BXMokj5O.js → index.es345-DGqZm-mK.js} +1 -1
  74. package/dist/{index.es354-DWKks2er.cjs → index.es345-Fgli4Ky1.cjs} +1 -1
  75. package/dist/{index.es357-CgTjmLue.js → index.es348-0DYzNjwp.js} +4 -4
  76. package/dist/{index.es357-XVQxX2C3.cjs → index.es348-DDKb-PYR.cjs} +1 -1
  77. package/dist/{index.es360-_MwM1ya3.cjs → index.es351-BxS1OwU1.cjs} +1 -1
  78. package/dist/{index.es360-DY7ALW7K.js → index.es351-CWh1Y37F.js} +1 -1
  79. package/dist/{index.es364-D19Xnax7.cjs → index.es355-DG0bsPB0.cjs} +1 -1
  80. package/dist/{index.es364-DB5H3Jqw.js → index.es355-DKSGdC3-.js} +4 -4
  81. package/dist/{index.es366-DEnW1Oxn.js → index.es357-CKom-On3.js} +3 -3
  82. package/dist/{index.es366-CbVef07E.cjs → index.es357-NHpLr9LU.cjs} +1 -1
  83. package/dist/{index.es374-C7aMoyLB.cjs → index.es365-BmmThTOT.cjs} +1 -1
  84. package/dist/{index.es374-CAsi6ntm.js → index.es365-CHkwnx8-.js} +1 -1
  85. package/dist/{index.es375-C_u2T4we.cjs → index.es366-BYraj6NB.cjs} +1 -1
  86. package/dist/{index.es375-vVrc7Msj.js → index.es366-DozcjFDm.js} +7 -7
  87. package/dist/{index.es382-BqJniRLK.js → index.es373-CndRKTT6.js} +5 -5
  88. package/dist/{index.es382-CBXHyupG.cjs → index.es373-D7QScmWF.cjs} +1 -1
  89. package/dist/{index.es383-D3FM8S2W.js → index.es374-D-MxnLcb.js} +6 -6
  90. package/dist/{index.es383-BEOeQCTV.cjs → index.es374-uZOLvMTs.cjs} +1 -1
  91. package/dist/{index.es393-Eov-jeOZ.js → index.es384-BOO27aOt.js} +3 -3
  92. package/dist/{index.es393-Big0D18v.cjs → index.es384-DVjKEYuo.cjs} +1 -1
  93. package/dist/{index.es397-DBIErouu.js → index.es388-5TbNHN67.js} +1 -1
  94. package/dist/{index.es397-CkZFXb1s.cjs → index.es388-C2BRcbKz.cjs} +1 -1
  95. package/dist/{index.es403-CjOJSuaY.js → index.es394-B6WzEdTo.js} +2 -2
  96. package/dist/{index.es403-Z56x0tRI.cjs → index.es394-Dy5cSpcg.cjs} +1 -1
  97. package/dist/{index.es408-DP0cbIUq.cjs → index.es399-Bjx5rpNu.cjs} +1 -1
  98. package/dist/{index.es408-B8kXPe_5.js → index.es399-CXJiNeqO.js} +8 -8
  99. package/dist/{index.es409-tI3x1Mii.js → index.es400-BYhy-oFA.js} +12 -12
  100. package/dist/{index.es409-C-0BMQ9I.cjs → index.es400-GcH50_g9.cjs} +1 -1
  101. package/dist/{index.es411-B_g6Hhnf.cjs → index.es402-BGXbU1g1.cjs} +1 -1
  102. package/dist/{index.es411-BU1JQ8WG.js → index.es402-Ba47DNmV.js} +1 -1
  103. package/dist/{index.es415-CBi3jgRE.js → index.es406-Dst-BAFI.js} +1 -1
  104. package/dist/{index.es415-DHUS4VQ9.cjs → index.es406-DypjqEev.cjs} +1 -1
  105. package/dist/{index.es417-BeaCMBTL.cjs → index.es408-DBXNT72Q.cjs} +1 -1
  106. package/dist/{index.es417-B_rjn_ZK.js → index.es408-DaULXHmb.js} +1 -1
  107. package/dist/{index.es419-ntZoDvMu.cjs → index.es410-92JslvGu.cjs} +1 -1
  108. package/dist/{index.es419-By3tL7yD.js → index.es410-DkGPVo5p.js} +1 -1
  109. package/dist/{index.es422-r-CSaQTI.js → index.es413-CyVYE3m4.js} +1 -1
  110. package/dist/{index.es422-cHkqTWsj.cjs → index.es413-DV7heIL4.cjs} +1 -1
  111. package/dist/{index.es423-DMHdENoG.cjs → index.es414-BpPsle9I.cjs} +1 -1
  112. package/dist/{index.es423-DB_ZpZo9.js → index.es414-Cs77k13g.js} +1 -1
  113. package/dist/{index.es427-Bao3jxkK.cjs → index.es418-DQoIf_Km.cjs} +1 -1
  114. package/dist/{index.es427-l0M7iJJb.js → index.es418-DecNCmQz.js} +1 -1
  115. package/dist/{index.es429-BvTQYKhV.js → index.es420-iP3UK7AH.js} +4 -4
  116. package/dist/{index.es429-BSHXxdsR.cjs → index.es420-rwXDN_T3.cjs} +1 -1
  117. package/dist/{index.es436-DtiVwCN2.js → index.es427-BqXKpJPZ.js} +3 -3
  118. package/dist/{index.es436-BhCXZt6D.cjs → index.es427-rLuN8gdS.cjs} +1 -1
  119. package/dist/{index.es438-wl4yqYDJ.js → index.es429-BkTx0_G9.js} +1 -1
  120. package/dist/{index.es438-DWQLrqVp.cjs → index.es429-CDPe86So.cjs} +1 -1
  121. package/dist/{index.es440-DcQu9iIp.js → index.es431-B6CC8ZdW.js} +7 -7
  122. package/dist/{index.es440-Cx989NPl.cjs → index.es431-DhiLEjwh.cjs} +1 -1
  123. package/dist/{index.es444-D1pqWcqE.js → index.es435-BIcX9Tkk.js} +6 -6
  124. package/dist/{index.es444-2en1h01q.cjs → index.es435-JXER8kHZ.cjs} +1 -1
  125. package/dist/{index.es454-BPGpEjrD.cjs → index.es445-C-lQLLoe.cjs} +1 -1
  126. package/dist/{index.es454-BXZ43IYF.js → index.es445-lhYp3_AI.js} +6 -6
  127. package/dist/{index.es455-DptJoieT.cjs → index.es446-CZ6CUpdJ.cjs} +1 -1
  128. package/dist/{index.es455-Z-6vsTNi.js → index.es446-I2m-yitE.js} +2 -2
  129. package/dist/{index.es462-c6-l-QG7.cjs → index.es453-CWT2007l.cjs} +1 -1
  130. package/dist/{index.es462-hnj5bn5u.js → index.es453-CxUqbbIG.js} +1 -1
  131. package/dist/{index.es463-DSBa4u9B.cjs → index.es454-CI_Xg9DQ.cjs} +1 -1
  132. package/dist/{index.es463-Y6G4gGXU.js → index.es454-DdPaZ2ky.js} +1 -1
  133. package/package.json +2 -2
  134. /package/dist/{index.es241-DQxwEHae.js → index.es232-DQxwEHae.js} +0 -0
  135. /package/dist/{index.es241-Dw4u1m6u.cjs → index.es232-Dw4u1m6u.cjs} +0 -0
  136. /package/dist/{index.es249-BmBUA35e.js → index.es240-BmBUA35e.js} +0 -0
  137. /package/dist/{index.es249-Dwt2rH6y.cjs → index.es240-Dwt2rH6y.cjs} +0 -0
  138. /package/dist/{index.es250-mj8Uhnsc.cjs → index.es241-mj8Uhnsc.cjs} +0 -0
  139. /package/dist/{index.es250-zFUbzQa9.js → index.es241-zFUbzQa9.js} +0 -0
  140. /package/dist/{index.es251-CBvPkFpZ.js → index.es242-CBvPkFpZ.js} +0 -0
  141. /package/dist/{index.es251-DZM58Vqs.cjs → index.es242-DZM58Vqs.cjs} +0 -0
  142. /package/dist/{index.es254-CVNlsSDc.js → index.es245-CVNlsSDc.js} +0 -0
  143. /package/dist/{index.es254-D7v5fxtZ.cjs → index.es245-D7v5fxtZ.cjs} +0 -0
  144. /package/dist/{index.es255-4hrAnw0a.cjs → index.es246-4hrAnw0a.cjs} +0 -0
  145. /package/dist/{index.es255-DFk3KRB1.js → index.es246-DFk3KRB1.js} +0 -0
  146. /package/dist/{index.es257-CYMR_y0g.js → index.es248-CYMR_y0g.js} +0 -0
  147. /package/dist/{index.es257-Cnd3Dxju.cjs → index.es248-Cnd3Dxju.cjs} +0 -0
  148. /package/dist/{index.es258-4QmU5e04.js → index.es249-4QmU5e04.js} +0 -0
  149. /package/dist/{index.es258-BQ2aGbFQ.cjs → index.es249-BQ2aGbFQ.cjs} +0 -0
  150. /package/dist/{index.es259-C6nYvw8K.cjs → index.es250-C6nYvw8K.cjs} +0 -0
  151. /package/dist/{index.es259-v_1bjgUg.js → index.es250-v_1bjgUg.js} +0 -0
  152. /package/dist/{index.es260-CQnBVCj-.cjs → index.es251-CQnBVCj-.cjs} +0 -0
  153. /package/dist/{index.es260-RC0Yh-NZ.js → index.es251-RC0Yh-NZ.js} +0 -0
  154. /package/dist/{index.es262-DUx4h__E.cjs → index.es253-DUx4h__E.cjs} +0 -0
  155. /package/dist/{index.es262-gPH8MVMW.js → index.es253-gPH8MVMW.js} +0 -0
  156. /package/dist/{index.es263-CXlzbmzl.cjs → index.es254-CXlzbmzl.cjs} +0 -0
  157. /package/dist/{index.es263-kvLnRU_e.js → index.es254-kvLnRU_e.js} +0 -0
  158. /package/dist/{index.es264-BHYy44sT.js → index.es255-BHYy44sT.js} +0 -0
  159. /package/dist/{index.es264-DlMT9sut.cjs → index.es255-DlMT9sut.cjs} +0 -0
  160. /package/dist/{index.es265-CyyiuUzM.cjs → index.es256-CyyiuUzM.cjs} +0 -0
  161. /package/dist/{index.es265-D-MADTs_.js → index.es256-D-MADTs_.js} +0 -0
  162. /package/dist/{index.es266-B0EjuzrL.cjs → index.es257-B0EjuzrL.cjs} +0 -0
  163. /package/dist/{index.es266-Ci9U0o4h.js → index.es257-Ci9U0o4h.js} +0 -0
  164. /package/dist/{index.es267-CX618D15.js → index.es258-CX618D15.js} +0 -0
  165. /package/dist/{index.es267-CfoG9xRq.cjs → index.es258-CfoG9xRq.cjs} +0 -0
  166. /package/dist/{index.es268-D6PH_9IY.cjs → index.es259-D6PH_9IY.cjs} +0 -0
  167. /package/dist/{index.es268-iuYiPopT.js → index.es259-iuYiPopT.js} +0 -0
  168. /package/dist/{index.es271-C4sXGJZM.cjs → index.es262-C4sXGJZM.cjs} +0 -0
  169. /package/dist/{index.es271-DASdrs7p.js → index.es262-DASdrs7p.js} +0 -0
  170. /package/dist/{index.es272-BDALQi26.js → index.es263-BDALQi26.js} +0 -0
  171. /package/dist/{index.es272-Dq2CYzXG.cjs → index.es263-Dq2CYzXG.cjs} +0 -0
  172. /package/dist/{index.es274-CNgV2Ths.js → index.es265-CNgV2Ths.js} +0 -0
  173. /package/dist/{index.es274-ytMkUD5Q.cjs → index.es265-ytMkUD5Q.cjs} +0 -0
  174. /package/dist/{index.es275-B_Wv414H.cjs → index.es266-B_Wv414H.cjs} +0 -0
  175. /package/dist/{index.es275-CsKKFGwv.js → index.es266-CsKKFGwv.js} +0 -0
  176. /package/dist/{index.es276-Dr-A3iJx.js → index.es267-Dr-A3iJx.js} +0 -0
  177. /package/dist/{index.es276-TBUaQXYY.cjs → index.es267-TBUaQXYY.cjs} +0 -0
  178. /package/dist/{index.es278-Bt9yU6NX.js → index.es269-Bt9yU6NX.js} +0 -0
  179. /package/dist/{index.es278-QhPK6lIJ.cjs → index.es269-QhPK6lIJ.cjs} +0 -0
  180. /package/dist/{index.es279-B7Q9tkDJ.cjs → index.es270-B7Q9tkDJ.cjs} +0 -0
  181. /package/dist/{index.es279-DBNTqJi1.js → index.es270-DBNTqJi1.js} +0 -0
  182. /package/dist/{index.es281-Ced3ctK5.cjs → index.es272-Ced3ctK5.cjs} +0 -0
  183. /package/dist/{index.es281-r7ZEOG7T.js → index.es272-r7ZEOG7T.js} +0 -0
  184. /package/dist/{index.es282-BTRB4iqi.cjs → index.es273-BTRB4iqi.cjs} +0 -0
  185. /package/dist/{index.es282-CB6Pv_W9.js → index.es273-CB6Pv_W9.js} +0 -0
  186. /package/dist/{index.es285-CYWRhZ2R.js → index.es276-CYWRhZ2R.js} +0 -0
  187. /package/dist/{index.es285-TKds-MhG.cjs → index.es276-TKds-MhG.cjs} +0 -0
  188. /package/dist/{index.es286-B0kbn78J.cjs → index.es277-B0kbn78J.cjs} +0 -0
  189. /package/dist/{index.es286-D1aVdRIU.js → index.es277-D1aVdRIU.js} +0 -0
  190. /package/dist/{index.es287-BVJjiaC3.cjs → index.es278-BVJjiaC3.cjs} +0 -0
  191. /package/dist/{index.es287-Tno401i9.js → index.es278-Tno401i9.js} +0 -0
  192. /package/dist/{index.es288-BXMrmvay.js → index.es279-BXMrmvay.js} +0 -0
  193. /package/dist/{index.es288-Cz4J-rnd.cjs → index.es279-Cz4J-rnd.cjs} +0 -0
  194. /package/dist/{index.es289-DTm5zNR1.js → index.es280-DTm5zNR1.js} +0 -0
  195. /package/dist/{index.es289-DuKTiyez.cjs → index.es280-DuKTiyez.cjs} +0 -0
  196. /package/dist/{index.es290-BW9Wd7aK.cjs → index.es281-BW9Wd7aK.cjs} +0 -0
  197. /package/dist/{index.es290-D6ZXmn3l.js → index.es281-D6ZXmn3l.js} +0 -0
  198. /package/dist/{index.es291-CWs-er6b.cjs → index.es282-CWs-er6b.cjs} +0 -0
  199. /package/dist/{index.es291-Dz59Is3F.js → index.es282-Dz59Is3F.js} +0 -0
  200. /package/dist/{index.es292-CDxFL2Kb.cjs → index.es283-CDxFL2Kb.cjs} +0 -0
  201. /package/dist/{index.es292-DTVGzydb.js → index.es283-DTVGzydb.js} +0 -0
  202. /package/dist/{index.es293-CFgo0jo7.cjs → index.es284-CFgo0jo7.cjs} +0 -0
  203. /package/dist/{index.es293-Db9vb-dl.js → index.es284-Db9vb-dl.js} +0 -0
  204. /package/dist/{index.es294-BsEkKwI8.cjs → index.es285-BsEkKwI8.cjs} +0 -0
  205. /package/dist/{index.es294-XmNrvgM1.js → index.es285-XmNrvgM1.js} +0 -0
  206. /package/dist/{index.es295-DWH2onkn.js → index.es286-DWH2onkn.js} +0 -0
  207. /package/dist/{index.es295-hwiw4W8I.cjs → index.es286-hwiw4W8I.cjs} +0 -0
  208. /package/dist/{index.es296-4337wvzu.js → index.es287-4337wvzu.js} +0 -0
  209. /package/dist/{index.es296-CJ5o3G1C.cjs → index.es287-CJ5o3G1C.cjs} +0 -0
  210. /package/dist/{index.es297-CvvfrJSx.js → index.es288-CvvfrJSx.js} +0 -0
  211. /package/dist/{index.es297-DBharE9Q.cjs → index.es288-DBharE9Q.cjs} +0 -0
  212. /package/dist/{index.es301-BAefI874.js → index.es292-BAefI874.js} +0 -0
  213. /package/dist/{index.es301-CDDyFsvQ.cjs → index.es292-CDDyFsvQ.cjs} +0 -0
  214. /package/dist/{index.es303-3VgdrQXV.cjs → index.es294-3VgdrQXV.cjs} +0 -0
  215. /package/dist/{index.es303-CmIiwF3I.js → index.es294-CmIiwF3I.js} +0 -0
  216. /package/dist/{index.es304-DNqkz9pE.js → index.es295-DNqkz9pE.js} +0 -0
  217. /package/dist/{index.es304-RbmrEXt1.cjs → index.es295-RbmrEXt1.cjs} +0 -0
  218. /package/dist/{index.es305-CnamI0Ar.cjs → index.es296-CnamI0Ar.cjs} +0 -0
  219. /package/dist/{index.es305-DIm72t2T.js → index.es296-DIm72t2T.js} +0 -0
  220. /package/dist/{index.es306-BapTxJsC.js → index.es297-BapTxJsC.js} +0 -0
  221. /package/dist/{index.es306-DFpT66K8.cjs → index.es297-DFpT66K8.cjs} +0 -0
  222. /package/dist/{index.es308-CNDsBFUj.js → index.es299-CNDsBFUj.js} +0 -0
  223. /package/dist/{index.es308-IaGrWIda.cjs → index.es299-IaGrWIda.cjs} +0 -0
  224. /package/dist/{index.es311-5N_43TPQ.cjs → index.es302-5N_43TPQ.cjs} +0 -0
  225. /package/dist/{index.es311-D7aheHm-.js → index.es302-D7aheHm-.js} +0 -0
  226. /package/dist/{index.es312-BGJEsM2Z.js → index.es303-BGJEsM2Z.js} +0 -0
  227. /package/dist/{index.es312-Bl85Hrm5.cjs → index.es303-Bl85Hrm5.cjs} +0 -0
  228. /package/dist/{index.es313-C9gPjc6J.js → index.es304-C9gPjc6J.js} +0 -0
  229. /package/dist/{index.es313-DGsxMAbQ.cjs → index.es304-DGsxMAbQ.cjs} +0 -0
  230. /package/dist/{index.es314-CVV6nEUH.cjs → index.es305-CVV6nEUH.cjs} +0 -0
  231. /package/dist/{index.es314-bka1Exbx.js → index.es305-bka1Exbx.js} +0 -0
  232. /package/dist/{index.es317-B4k9YFGD.js → index.es308-B4k9YFGD.js} +0 -0
  233. /package/dist/{index.es317-nR4mjrhK.cjs → index.es308-nR4mjrhK.cjs} +0 -0
  234. /package/dist/{index.es321-CurtDYoJ.cjs → index.es312-CurtDYoJ.cjs} +0 -0
  235. /package/dist/{index.es321-DnWoRZt-.js → index.es312-DnWoRZt-.js} +0 -0
  236. /package/dist/{index.es322-BErP6iv1.js → index.es313-BErP6iv1.js} +0 -0
  237. /package/dist/{index.es322-CM9_GlwL.cjs → index.es313-CM9_GlwL.cjs} +0 -0
  238. /package/dist/{index.es324-BaVp9Il5.cjs → index.es315-BaVp9Il5.cjs} +0 -0
  239. /package/dist/{index.es324-IWs5-NIO.js → index.es315-IWs5-NIO.js} +0 -0
  240. /package/dist/{index.es328-CtlGos0K.js → index.es319-CtlGos0K.js} +0 -0
  241. /package/dist/{index.es328-suhyCHEm.cjs → index.es319-suhyCHEm.cjs} +0 -0
  242. /package/dist/{index.es329-BIQU1qHi.cjs → index.es320-BIQU1qHi.cjs} +0 -0
  243. /package/dist/{index.es329-CZZ33vZw.js → index.es320-CZZ33vZw.js} +0 -0
  244. /package/dist/{index.es330-6hOg9WP4.js → index.es321-6hOg9WP4.js} +0 -0
  245. /package/dist/{index.es330-CbQ1yCnz.cjs → index.es321-CbQ1yCnz.cjs} +0 -0
  246. /package/dist/{index.es331-CgwED-oz.js → index.es322-CgwED-oz.js} +0 -0
  247. /package/dist/{index.es331-Ddklb4QM.cjs → index.es322-Ddklb4QM.cjs} +0 -0
  248. /package/dist/{index.es332-3-lv4gi7.js → index.es323-3-lv4gi7.js} +0 -0
  249. /package/dist/{index.es332-B4NkiBfC.cjs → index.es323-B4NkiBfC.cjs} +0 -0
  250. /package/dist/{index.es337-C2xHhR6I.js → index.es328-C2xHhR6I.js} +0 -0
  251. /package/dist/{index.es337-DpyTdO3T.cjs → index.es328-DpyTdO3T.cjs} +0 -0
  252. /package/dist/{index.es339-BUcvsX-U.js → index.es330-BUcvsX-U.js} +0 -0
  253. /package/dist/{index.es339-CymULaw_.cjs → index.es330-CymULaw_.cjs} +0 -0
  254. /package/dist/{index.es340-B7odJ7Ap.js → index.es331-B7odJ7Ap.js} +0 -0
  255. /package/dist/{index.es340-Bn1Lvoni.cjs → index.es331-Bn1Lvoni.cjs} +0 -0
  256. /package/dist/{index.es341-Bnnicc83.cjs → index.es332-Bnnicc83.cjs} +0 -0
  257. /package/dist/{index.es341-fa8UlHZE.js → index.es332-fa8UlHZE.js} +0 -0
  258. /package/dist/{index.es344-71t8ZF9g.js → index.es335-71t8ZF9g.js} +0 -0
  259. /package/dist/{index.es344-y-J1j5EW.cjs → index.es335-y-J1j5EW.cjs} +0 -0
  260. /package/dist/{index.es345-CzvlWgZ7.cjs → index.es336-CzvlWgZ7.cjs} +0 -0
  261. /package/dist/{index.es345-Z7F6rA6a.js → index.es336-Z7F6rA6a.js} +0 -0
  262. /package/dist/{index.es346-BnhWfmQw.cjs → index.es337-BnhWfmQw.cjs} +0 -0
  263. /package/dist/{index.es346-Dphhs4m2.js → index.es337-Dphhs4m2.js} +0 -0
  264. /package/dist/{index.es347-BbGkWPJz.cjs → index.es338-BbGkWPJz.cjs} +0 -0
  265. /package/dist/{index.es347-D9jj92Gg.js → index.es338-D9jj92Gg.js} +0 -0
  266. /package/dist/{index.es348-Bn--UDZ1.cjs → index.es339-Bn--UDZ1.cjs} +0 -0
  267. /package/dist/{index.es348-DEQ7IUoJ.js → index.es339-DEQ7IUoJ.js} +0 -0
  268. /package/dist/{index.es349-4CSVp8lc.cjs → index.es340-4CSVp8lc.cjs} +0 -0
  269. /package/dist/{index.es349-j74e88UX.js → index.es340-j74e88UX.js} +0 -0
  270. /package/dist/{index.es350-Bkesy5tT.js → index.es341-Bkesy5tT.js} +0 -0
  271. /package/dist/{index.es350-D8YwVp-7.cjs → index.es341-D8YwVp-7.cjs} +0 -0
  272. /package/dist/{index.es352-DCgZY7Ii.js → index.es343-DCgZY7Ii.js} +0 -0
  273. /package/dist/{index.es352-DDI6myF6.cjs → index.es343-DDI6myF6.cjs} +0 -0
  274. /package/dist/{index.es353-Cw029H-v.js → index.es344-Cw029H-v.js} +0 -0
  275. /package/dist/{index.es353-OZxALJZT.cjs → index.es344-OZxALJZT.cjs} +0 -0
  276. /package/dist/{index.es355-CYSet4vs.js → index.es346-CYSet4vs.js} +0 -0
  277. /package/dist/{index.es355-D1iY-35j.cjs → index.es346-D1iY-35j.cjs} +0 -0
  278. /package/dist/{index.es356-DIaY7vQJ.cjs → index.es347-DIaY7vQJ.cjs} +0 -0
  279. /package/dist/{index.es356-DQA4v-Nm.js → index.es347-DQA4v-Nm.js} +0 -0
  280. /package/dist/{index.es358-BIXUeBaj.cjs → index.es349-BIXUeBaj.cjs} +0 -0
  281. /package/dist/{index.es358-D2eRfqDn.js → index.es349-D2eRfqDn.js} +0 -0
  282. /package/dist/{index.es359-B2d3b27P.cjs → index.es350-B2d3b27P.cjs} +0 -0
  283. /package/dist/{index.es359-QEAtGWZ9.js → index.es350-QEAtGWZ9.js} +0 -0
  284. /package/dist/{index.es361-BjYGiqID.js → index.es352-BjYGiqID.js} +0 -0
  285. /package/dist/{index.es361-CvqAeq4F.cjs → index.es352-CvqAeq4F.cjs} +0 -0
  286. /package/dist/{index.es362-BjuHP00g.js → index.es353-BjuHP00g.js} +0 -0
  287. /package/dist/{index.es362-Oob5Z9Pk.cjs → index.es353-Oob5Z9Pk.cjs} +0 -0
  288. /package/dist/{index.es363-B6guhLWd.js → index.es354-B6guhLWd.js} +0 -0
  289. /package/dist/{index.es363-BGBuj4LZ.cjs → index.es354-BGBuj4LZ.cjs} +0 -0
  290. /package/dist/{index.es365-BpQlIJiw.js → index.es356-BpQlIJiw.js} +0 -0
  291. /package/dist/{index.es365-CbN2rF6P.cjs → index.es356-CbN2rF6P.cjs} +0 -0
  292. /package/dist/{index.es367-Cl31h8mi.cjs → index.es358-Cl31h8mi.cjs} +0 -0
  293. /package/dist/{index.es367-DIoECIFU.js → index.es358-DIoECIFU.js} +0 -0
  294. /package/dist/{index.es368-BZ7WHNIe.js → index.es359-BZ7WHNIe.js} +0 -0
  295. /package/dist/{index.es368-CSogK_LM.cjs → index.es359-CSogK_LM.cjs} +0 -0
  296. /package/dist/{index.es369-BseoYJQp.cjs → index.es360-BseoYJQp.cjs} +0 -0
  297. /package/dist/{index.es369-DusDYkFc.js → index.es360-DusDYkFc.js} +0 -0
  298. /package/dist/{index.es370-CY9jaezJ.js → index.es361-CY9jaezJ.js} +0 -0
  299. /package/dist/{index.es370-D8QAG3Ze.cjs → index.es361-D8QAG3Ze.cjs} +0 -0
  300. /package/dist/{index.es371-ChphFumd.js → index.es362-ChphFumd.js} +0 -0
  301. /package/dist/{index.es371-DaBrcjat.cjs → index.es362-DaBrcjat.cjs} +0 -0
  302. /package/dist/{index.es372-Dz4d7OmN.js → index.es363-Dz4d7OmN.js} +0 -0
  303. /package/dist/{index.es372-oOfAO4q8.cjs → index.es363-oOfAO4q8.cjs} +0 -0
  304. /package/dist/{index.es373-BxJSKvPb.cjs → index.es364-BxJSKvPb.cjs} +0 -0
  305. /package/dist/{index.es373-DW0Yq9a2.js → index.es364-DW0Yq9a2.js} +0 -0
  306. /package/dist/{index.es376-Cg5uV_xg.js → index.es367-Cg5uV_xg.js} +0 -0
  307. /package/dist/{index.es376-DNME0Ea7.cjs → index.es367-DNME0Ea7.cjs} +0 -0
  308. /package/dist/{index.es377-BfRnzRWn.js → index.es368-BfRnzRWn.js} +0 -0
  309. /package/dist/{index.es377-DI9Z3l3M.cjs → index.es368-DI9Z3l3M.cjs} +0 -0
  310. /package/dist/{index.es378-BGg9R27G.js → index.es369-BGg9R27G.js} +0 -0
  311. /package/dist/{index.es378-DVx8Rcni.cjs → index.es369-DVx8Rcni.cjs} +0 -0
  312. /package/dist/{index.es379-CJ3y3V_5.js → index.es370-CJ3y3V_5.js} +0 -0
  313. /package/dist/{index.es379-s6XI7Jvk.cjs → index.es370-s6XI7Jvk.cjs} +0 -0
  314. /package/dist/{index.es380-BZLsfx_o.js → index.es371-BZLsfx_o.js} +0 -0
  315. /package/dist/{index.es380-kUzDDUf2.cjs → index.es371-kUzDDUf2.cjs} +0 -0
  316. /package/dist/{index.es381-D509_I72.cjs → index.es372-D509_I72.cjs} +0 -0
  317. /package/dist/{index.es381-l2bqd7Dz.js → index.es372-l2bqd7Dz.js} +0 -0
  318. /package/dist/{index.es384-C_qH_YOK.cjs → index.es375-C_qH_YOK.cjs} +0 -0
  319. /package/dist/{index.es384-oVq_K_wH.js → index.es375-oVq_K_wH.js} +0 -0
  320. /package/dist/{index.es385-5jaeIyVd.js → index.es376-5jaeIyVd.js} +0 -0
  321. /package/dist/{index.es385-CBsLQIcu.cjs → index.es376-CBsLQIcu.cjs} +0 -0
  322. /package/dist/{index.es386-De-CDeYv.cjs → index.es377-De-CDeYv.cjs} +0 -0
  323. /package/dist/{index.es386-wcLp8ci7.js → index.es377-wcLp8ci7.js} +0 -0
  324. /package/dist/{index.es387-BZ3MNRIJ.js → index.es378-BZ3MNRIJ.js} +0 -0
  325. /package/dist/{index.es387-BtcsgaYj.cjs → index.es378-BtcsgaYj.cjs} +0 -0
  326. /package/dist/{index.es388-B0rHn13V.cjs → index.es379-B0rHn13V.cjs} +0 -0
  327. /package/dist/{index.es388-CgRa2XRw.js → index.es379-CgRa2XRw.js} +0 -0
  328. /package/dist/{index.es389-Diwyv8Eh.js → index.es380-Diwyv8Eh.js} +0 -0
  329. /package/dist/{index.es389-rCX2OYXT.cjs → index.es380-rCX2OYXT.cjs} +0 -0
  330. /package/dist/{index.es390-BaaUHYMp.cjs → index.es381-BaaUHYMp.cjs} +0 -0
  331. /package/dist/{index.es390-COL_v1x4.js → index.es381-COL_v1x4.js} +0 -0
  332. /package/dist/{index.es391-CuvJOxqT.js → index.es382-CuvJOxqT.js} +0 -0
  333. /package/dist/{index.es391-DrXD2tGS.cjs → index.es382-DrXD2tGS.cjs} +0 -0
  334. /package/dist/{index.es392-BtmQjBQu.cjs → index.es383-BtmQjBQu.cjs} +0 -0
  335. /package/dist/{index.es392-o9HLmF90.js → index.es383-o9HLmF90.js} +0 -0
  336. /package/dist/{index.es394-cIrXIuy8.cjs → index.es385-cIrXIuy8.cjs} +0 -0
  337. /package/dist/{index.es394-wpGOnQp5.js → index.es385-wpGOnQp5.js} +0 -0
  338. /package/dist/{index.es395-B_1NgE2N.js → index.es386-B_1NgE2N.js} +0 -0
  339. /package/dist/{index.es395-CX9QPs2N.cjs → index.es386-CX9QPs2N.cjs} +0 -0
  340. /package/dist/{index.es396-B9x3euv6.cjs → index.es387-B9x3euv6.cjs} +0 -0
  341. /package/dist/{index.es396-xYxLFJY-.js → index.es387-xYxLFJY-.js} +0 -0
  342. /package/dist/{index.es398-BInDYbpo.js → index.es389-BInDYbpo.js} +0 -0
  343. /package/dist/{index.es398-DNF9H2ir.cjs → index.es389-DNF9H2ir.cjs} +0 -0
  344. /package/dist/{index.es399-C744dLby.cjs → index.es390-C744dLby.cjs} +0 -0
  345. /package/dist/{index.es399-D-h4NdUG.js → index.es390-D-h4NdUG.js} +0 -0
  346. /package/dist/{index.es400-DgOc9oMe.cjs → index.es391-DgOc9oMe.cjs} +0 -0
  347. /package/dist/{index.es400-F-9I-ITZ.js → index.es391-F-9I-ITZ.js} +0 -0
  348. /package/dist/{index.es401-BoD1TBFT.js → index.es392-BoD1TBFT.js} +0 -0
  349. /package/dist/{index.es401-Do9_vqnd.cjs → index.es392-Do9_vqnd.cjs} +0 -0
  350. /package/dist/{index.es402-BW8wAUIz.cjs → index.es393-BW8wAUIz.cjs} +0 -0
  351. /package/dist/{index.es402-IaYcw19m.js → index.es393-IaYcw19m.js} +0 -0
  352. /package/dist/{index.es404-CGWN_v-z.cjs → index.es395-CGWN_v-z.cjs} +0 -0
  353. /package/dist/{index.es404-CMUdAgIP.js → index.es395-CMUdAgIP.js} +0 -0
  354. /package/dist/{index.es405-GiFkbxS-.js → index.es396-GiFkbxS-.js} +0 -0
  355. /package/dist/{index.es405-N7Z4hEeU.cjs → index.es396-N7Z4hEeU.cjs} +0 -0
  356. /package/dist/{index.es406-BYqA7mnV.cjs → index.es397-BYqA7mnV.cjs} +0 -0
  357. /package/dist/{index.es406-BaRn3QX7.js → index.es397-BaRn3QX7.js} +0 -0
  358. /package/dist/{index.es407-B9V3SsvW.js → index.es398-B9V3SsvW.js} +0 -0
  359. /package/dist/{index.es407-ayQMUpo9.cjs → index.es398-ayQMUpo9.cjs} +0 -0
  360. /package/dist/{index.es410-BnFKGEfa.cjs → index.es401-BnFKGEfa.cjs} +0 -0
  361. /package/dist/{index.es410-Pc7DCsZD.js → index.es401-Pc7DCsZD.js} +0 -0
  362. /package/dist/{index.es412-B9gYryDE.cjs → index.es403-B9gYryDE.cjs} +0 -0
  363. /package/dist/{index.es412-iCyS6eP9.js → index.es403-iCyS6eP9.js} +0 -0
  364. /package/dist/{index.es413-C85dOwSU.cjs → index.es404-C85dOwSU.cjs} +0 -0
  365. /package/dist/{index.es413-Cly-fENF.js → index.es404-Cly-fENF.js} +0 -0
  366. /package/dist/{index.es414-B_XUaARm.cjs → index.es405-B_XUaARm.cjs} +0 -0
  367. /package/dist/{index.es414-Zi24oEYu.js → index.es405-Zi24oEYu.js} +0 -0
  368. /package/dist/{index.es416-7Y5u0OW0.cjs → index.es407-7Y5u0OW0.cjs} +0 -0
  369. /package/dist/{index.es416-BBamrXFL.js → index.es407-BBamrXFL.js} +0 -0
  370. /package/dist/{index.es418-3DYM9fut.cjs → index.es409-3DYM9fut.cjs} +0 -0
  371. /package/dist/{index.es418-Dn0-btNd.js → index.es409-Dn0-btNd.js} +0 -0
  372. /package/dist/{index.es420-CCvytUuW.cjs → index.es411-CCvytUuW.cjs} +0 -0
  373. /package/dist/{index.es420-Cns31tKw.js → index.es411-Cns31tKw.js} +0 -0
  374. /package/dist/{index.es421-BG_k8fA_.js → index.es412-BG_k8fA_.js} +0 -0
  375. /package/dist/{index.es421-BcNcjFC4.cjs → index.es412-BcNcjFC4.cjs} +0 -0
  376. /package/dist/{index.es424-CTqDjQdo.js → index.es415-CTqDjQdo.js} +0 -0
  377. /package/dist/{index.es424-CzITjJj7.cjs → index.es415-CzITjJj7.cjs} +0 -0
  378. /package/dist/{index.es425-BqWZrLHB.cjs → index.es416-BqWZrLHB.cjs} +0 -0
  379. /package/dist/{index.es425-DCkt643-.js → index.es416-DCkt643-.js} +0 -0
  380. /package/dist/{index.es426-DHHGll-v.js → index.es417-DHHGll-v.js} +0 -0
  381. /package/dist/{index.es426-DUPeuEdB.cjs → index.es417-DUPeuEdB.cjs} +0 -0
  382. /package/dist/{index.es428-ByHs6N-o.cjs → index.es419-ByHs6N-o.cjs} +0 -0
  383. /package/dist/{index.es428-n_9f0QQ5.js → index.es419-n_9f0QQ5.js} +0 -0
  384. /package/dist/{index.es430-BAWqNR8A.js → index.es421-BAWqNR8A.js} +0 -0
  385. /package/dist/{index.es430-C5DnOriA.cjs → index.es421-C5DnOriA.cjs} +0 -0
  386. /package/dist/{index.es431-ClPLYLwh.cjs → index.es422-ClPLYLwh.cjs} +0 -0
  387. /package/dist/{index.es431-Cui-g-ut.js → index.es422-Cui-g-ut.js} +0 -0
  388. /package/dist/{index.es432-BASX0DlX.cjs → index.es423-BASX0DlX.cjs} +0 -0
  389. /package/dist/{index.es432-CsKYQIQK.js → index.es423-CsKYQIQK.js} +0 -0
  390. /package/dist/{index.es433-D2dGh8FO.js → index.es424-D2dGh8FO.js} +0 -0
  391. /package/dist/{index.es433-DkCSnLHD.cjs → index.es424-DkCSnLHD.cjs} +0 -0
  392. /package/dist/{index.es434-BAQJK7KZ.cjs → index.es425-BAQJK7KZ.cjs} +0 -0
  393. /package/dist/{index.es434-D3W8HMV6.js → index.es425-D3W8HMV6.js} +0 -0
  394. /package/dist/{index.es435-2y0Fuc4S.js → index.es426-2y0Fuc4S.js} +0 -0
  395. /package/dist/{index.es435-CwJAYTvh.cjs → index.es426-CwJAYTvh.cjs} +0 -0
  396. /package/dist/{index.es437-BGW6Oerf.js → index.es428-BGW6Oerf.js} +0 -0
  397. /package/dist/{index.es437-s-pzyVvp.cjs → index.es428-s-pzyVvp.cjs} +0 -0
  398. /package/dist/{index.es439-CQSfOn0e.js → index.es430-CQSfOn0e.js} +0 -0
  399. /package/dist/{index.es439-CyMM7IXy.cjs → index.es430-CyMM7IXy.cjs} +0 -0
  400. /package/dist/{index.es441-BtvSkaG0.js → index.es432-BtvSkaG0.js} +0 -0
  401. /package/dist/{index.es441-DqNGnuVj.cjs → index.es432-DqNGnuVj.cjs} +0 -0
  402. /package/dist/{index.es442-DiGsgWT8.js → index.es433-DiGsgWT8.js} +0 -0
  403. /package/dist/{index.es442-DpBRUnKC.cjs → index.es433-DpBRUnKC.cjs} +0 -0
  404. /package/dist/{index.es443-BJ2wmjPc.js → index.es434-BJ2wmjPc.js} +0 -0
  405. /package/dist/{index.es443-DfO3eAsu.cjs → index.es434-DfO3eAsu.cjs} +0 -0
  406. /package/dist/{index.es445-BqvpT6pB.cjs → index.es436-BqvpT6pB.cjs} +0 -0
  407. /package/dist/{index.es445-buWNZFwO.js → index.es436-buWNZFwO.js} +0 -0
  408. /package/dist/{index.es446-P-ZVy8yC.cjs → index.es437-P-ZVy8yC.cjs} +0 -0
  409. /package/dist/{index.es446-bLbdsxJL.js → index.es437-bLbdsxJL.js} +0 -0
  410. /package/dist/{index.es447-BVh2IsT9.cjs → index.es438-BVh2IsT9.cjs} +0 -0
  411. /package/dist/{index.es447-Y9_SmXTs.js → index.es438-Y9_SmXTs.js} +0 -0
  412. /package/dist/{index.es448-BUlE9136.cjs → index.es439-BUlE9136.cjs} +0 -0
  413. /package/dist/{index.es448-wa8Orrdd.js → index.es439-wa8Orrdd.js} +0 -0
  414. /package/dist/{index.es449-BIymb2K_.cjs → index.es440-BIymb2K_.cjs} +0 -0
  415. /package/dist/{index.es449-DRdriFr_.js → index.es440-DRdriFr_.js} +0 -0
  416. /package/dist/{index.es450-E2_-jk4M.js → index.es441-E2_-jk4M.js} +0 -0
  417. /package/dist/{index.es450-IXOh8mqV.cjs → index.es441-IXOh8mqV.cjs} +0 -0
  418. /package/dist/{index.es451-B1iBoR5_.js → index.es442-B1iBoR5_.js} +0 -0
  419. /package/dist/{index.es451-BiglCqvO.cjs → index.es442-BiglCqvO.cjs} +0 -0
  420. /package/dist/{index.es452-CJUzuS2t.cjs → index.es443-CJUzuS2t.cjs} +0 -0
  421. /package/dist/{index.es452-CRVaAhXk.js → index.es443-CRVaAhXk.js} +0 -0
  422. /package/dist/{index.es453-B-zWOd7Z.js → index.es444-B-zWOd7Z.js} +0 -0
  423. /package/dist/{index.es453-B1nKLcgt.cjs → index.es444-B1nKLcgt.cjs} +0 -0
  424. /package/dist/{index.es456-CO9xUkIY.cjs → index.es447-CO9xUkIY.cjs} +0 -0
  425. /package/dist/{index.es456-DWutKXpa.js → index.es447-DWutKXpa.js} +0 -0
  426. /package/dist/{index.es457-Bv5f0gKv.js → index.es448-Bv5f0gKv.js} +0 -0
  427. /package/dist/{index.es457-CdIThIat.cjs → index.es448-CdIThIat.cjs} +0 -0
  428. /package/dist/{index.es458-BMYnfus1.js → index.es449-BMYnfus1.js} +0 -0
  429. /package/dist/{index.es458-BSJ3fk7e.cjs → index.es449-BSJ3fk7e.cjs} +0 -0
  430. /package/dist/{index.es459-DnPoPGDU.js → index.es450-DnPoPGDU.js} +0 -0
  431. /package/dist/{index.es459-d3zZE7ZN.cjs → index.es450-d3zZE7ZN.cjs} +0 -0
  432. /package/dist/{index.es460-BRCqXN2g.cjs → index.es451-BRCqXN2g.cjs} +0 -0
  433. /package/dist/{index.es460-CntM04PE.js → index.es451-CntM04PE.js} +0 -0
  434. /package/dist/{index.es461-C3rR92zj.cjs → index.es452-C3rR92zj.cjs} +0 -0
  435. /package/dist/{index.es461-Ws5qPlX9.js → index.es452-Ws5qPlX9.js} +0 -0
  436. /package/dist/{index.es464-7DV6pRKj.cjs → index.es455-7DV6pRKj.cjs} +0 -0
  437. /package/dist/{index.es464-Bbg74JKr.js → index.es455-Bbg74JKr.js} +0 -0
  438. /package/dist/{index.es465-BWMxwjeH.cjs → index.es456-BWMxwjeH.cjs} +0 -0
  439. /package/dist/{index.es465-C0RKE4nU.js → index.es456-C0RKE4nU.js} +0 -0
  440. /package/dist/{index.es466-D6SXBGNm.js → index.es457-D6SXBGNm.js} +0 -0
  441. /package/dist/{index.es466-yAcNfpgW.cjs → index.es457-yAcNfpgW.cjs} +0 -0
  442. /package/dist/{index.es467-BXc5FOIb.cjs → index.es458-BXc5FOIb.cjs} +0 -0
  443. /package/dist/{index.es467-uXNdzNpk.js → index.es458-uXNdzNpk.js} +0 -0
  444. /package/dist/{index.es468-BwoVEUWZ.js → index.es459-BwoVEUWZ.js} +0 -0
  445. /package/dist/{index.es468-C5IpmIOG.cjs → index.es459-C5IpmIOG.cjs} +0 -0
  446. /package/dist/{index.es469-Cv7nTiif.cjs → index.es460-Cv7nTiif.cjs} +0 -0
  447. /package/dist/{index.es469-CxPZkpb2.js → index.es460-CxPZkpb2.js} +0 -0
  448. /package/dist/{index.es470-BrTOiad2.js → index.es461-BrTOiad2.js} +0 -0
  449. /package/dist/{index.es470-DXAedND3.cjs → index.es461-DXAedND3.cjs} +0 -0
  450. /package/dist/{index.es471-D-dc_R4m.js → index.es462-D-dc_R4m.js} +0 -0
  451. /package/dist/{index.es471-mwGw3-Ej.cjs → index.es462-mwGw3-Ej.cjs} +0 -0
  452. /package/dist/{index.es472-DN4jOp0G.js → index.es463-DN4jOp0G.js} +0 -0
  453. /package/dist/{index.es472-cQCk9ADg.cjs → index.es463-cQCk9ADg.cjs} +0 -0
  454. /package/dist/{index.es473-B8yCE3-3.js → index.es464-B8yCE3-3.js} +0 -0
  455. /package/dist/{index.es473-ClSzDZSl.cjs → index.es464-ClSzDZSl.cjs} +0 -0
  456. /package/dist/{index.es474-Cd5emcYO.cjs → index.es465-Cd5emcYO.cjs} +0 -0
  457. /package/dist/{index.es474-pUHDTVV0.js → index.es465-pUHDTVV0.js} +0 -0
  458. /package/dist/{index.es475-BNgwAJ-d.cjs → index.es466-BNgwAJ-d.cjs} +0 -0
  459. /package/dist/{index.es475-BtZx2Kac.js → index.es466-BtZx2Kac.js} +0 -0
  460. /package/dist/{index.es476-BHZ7sHFu.cjs → index.es467-BHZ7sHFu.cjs} +0 -0
  461. /package/dist/{index.es476-BKa-aqBv.js → index.es467-BKa-aqBv.js} +0 -0
  462. /package/dist/{index.es477-DMCBqXCK.js → index.es468-DMCBqXCK.js} +0 -0
  463. /package/dist/{index.es477-_sBMomR1.cjs → index.es468-_sBMomR1.cjs} +0 -0
  464. /package/dist/{index.es478-BbXl82Em.js → index.es469-BbXl82Em.js} +0 -0
  465. /package/dist/{index.es478-H0xoYxl0.cjs → index.es469-H0xoYxl0.cjs} +0 -0
  466. /package/dist/{index.es479-BKL9xNgN.cjs → index.es470-BKL9xNgN.cjs} +0 -0
  467. /package/dist/{index.es479-DenFmJkN.js → index.es470-DenFmJkN.js} +0 -0
  468. /package/dist/{index.es480-BJPUVz4H.js → index.es471-BJPUVz4H.js} +0 -0
  469. /package/dist/{index.es480-Dsv5MuSi.cjs → index.es471-Dsv5MuSi.cjs} +0 -0
  470. /package/dist/{index.es481-CtB9hz8U.cjs → index.es472-CtB9hz8U.cjs} +0 -0
  471. /package/dist/{index.es481-DUshB20C.js → index.es472-DUshB20C.js} +0 -0
  472. /package/dist/{index.es482-BqZVM-jF.cjs → index.es473-BqZVM-jF.cjs} +0 -0
  473. /package/dist/{index.es482-D3aGCnF8.js → index.es473-D3aGCnF8.js} +0 -0
  474. /package/dist/{index.es483-BFTOhCbz.cjs → index.es474-BFTOhCbz.cjs} +0 -0
  475. /package/dist/{index.es483-JYsPkUQd.js → index.es474-JYsPkUQd.js} +0 -0
  476. /package/dist/{index.es484-BZoWH9dH.cjs → index.es475-BZoWH9dH.cjs} +0 -0
  477. /package/dist/{index.es484-D99KPAby.js → index.es475-D99KPAby.js} +0 -0
  478. /package/dist/{index.es485-BbmZE-Mp.js → index.es476-BbmZE-Mp.js} +0 -0
  479. /package/dist/{index.es485-Ks3kPGJU.cjs → index.es476-Ks3kPGJU.cjs} +0 -0
  480. /package/dist/{index.es486-BDYrDoDW.js → index.es477-BDYrDoDW.js} +0 -0
  481. /package/dist/{index.es486-T57H3gQZ.cjs → index.es477-T57H3gQZ.cjs} +0 -0
  482. /package/dist/{index.es487-BJZF7xDr.cjs → index.es478-BJZF7xDr.cjs} +0 -0
  483. /package/dist/{index.es487-CiKur4Hl.js → index.es478-CiKur4Hl.js} +0 -0
  484. /package/dist/{index.es488-BKu-smKu.js → index.es479-BKu-smKu.js} +0 -0
  485. /package/dist/{index.es488-BhgzmRV4.cjs → index.es479-BhgzmRV4.cjs} +0 -0
  486. /package/dist/{index.es489-BgJip59C.cjs → index.es480-BgJip59C.cjs} +0 -0
  487. /package/dist/{index.es489-CQwozSzG.js → index.es480-CQwozSzG.js} +0 -0
  488. /package/dist/{index.es490-6a00oqik.js → index.es481-6a00oqik.js} +0 -0
  489. /package/dist/{index.es490-CIb51Re4.cjs → index.es481-CIb51Re4.cjs} +0 -0
  490. /package/dist/{index.es491-B5D0le0o.cjs → index.es482-B5D0le0o.cjs} +0 -0
  491. /package/dist/{index.es491-CZuVqSLX.js → index.es482-CZuVqSLX.js} +0 -0
  492. /package/dist/{index.es492-D6KBX41T.js → index.es483-D6KBX41T.js} +0 -0
  493. /package/dist/{index.es492-Dj0-OyRN.cjs → index.es483-Dj0-OyRN.cjs} +0 -0
  494. /package/dist/{index.es493-CkRroheE.js → index.es484-CkRroheE.js} +0 -0
  495. /package/dist/{index.es493-Dvfs29ir.cjs → index.es484-Dvfs29ir.cjs} +0 -0
  496. /package/dist/{index.es494-BUBw43Yz.js → index.es485-BUBw43Yz.js} +0 -0
  497. /package/dist/{index.es494-EU3ZGl_r.cjs → index.es485-EU3ZGl_r.cjs} +0 -0
  498. /package/dist/{index.es495-ClGX14Ja.js → index.es486-ClGX14Ja.js} +0 -0
  499. /package/dist/{index.es495-px_3Pwqa.cjs → index.es486-px_3Pwqa.cjs} +0 -0
  500. /package/dist/{index.es496-38jxvsGX.cjs → index.es487-38jxvsGX.cjs} +0 -0
  501. /package/dist/{index.es496-C1RVm8K1.js → index.es487-C1RVm8K1.js} +0 -0
  502. /package/dist/{index.es497-C7ak0t6c.js → index.es488-C7ak0t6c.js} +0 -0
  503. /package/dist/{index.es497-tt5o_I5e.cjs → index.es488-tt5o_I5e.cjs} +0 -0
  504. /package/dist/{index.es498-CKFxVcPp.js → index.es489-CKFxVcPp.js} +0 -0
  505. /package/dist/{index.es498-tmTHl_CQ.cjs → index.es489-tmTHl_CQ.cjs} +0 -0
  506. /package/dist/{index.es499-C1KBYcO0.js → index.es490-C1KBYcO0.js} +0 -0
  507. /package/dist/{index.es499-DMIxv6MM.cjs → index.es490-DMIxv6MM.cjs} +0 -0
  508. /package/dist/{index.es500-BN78kThQ.cjs → index.es491-BN78kThQ.cjs} +0 -0
  509. /package/dist/{index.es500-Bm2rzalh.js → index.es491-Bm2rzalh.js} +0 -0
  510. /package/dist/{index.es501-CC5OiUXg.js → index.es492-CC5OiUXg.js} +0 -0
  511. /package/dist/{index.es501-Ca5AGUWc.cjs → index.es492-Ca5AGUWc.cjs} +0 -0
  512. /package/dist/{index.es502-D7-kP8fv.js → index.es493-D7-kP8fv.js} +0 -0
  513. /package/dist/{index.es502-JOzzHStv.cjs → index.es493-JOzzHStv.cjs} +0 -0
  514. /package/dist/{index.es503-020-h_lv.cjs → index.es494-020-h_lv.cjs} +0 -0
  515. /package/dist/{index.es503-D9sNaUtq.js → index.es494-D9sNaUtq.js} +0 -0
  516. /package/dist/{index.es504-CSTz3KZp.js → index.es495-CSTz3KZp.js} +0 -0
  517. /package/dist/{index.es504-r5piqq-S.cjs → index.es495-r5piqq-S.cjs} +0 -0
  518. /package/dist/{index.es505-BLP3NNjc.cjs → index.es496-BLP3NNjc.cjs} +0 -0
  519. /package/dist/{index.es505-C-VADXHD.js → index.es496-C-VADXHD.js} +0 -0
  520. /package/dist/{index.es506-7y8PH7HH.js → index.es497-7y8PH7HH.js} +0 -0
  521. /package/dist/{index.es506-BQGOv1D5.cjs → index.es497-BQGOv1D5.cjs} +0 -0
  522. /package/dist/{index.es507-DKEdv1Oe.cjs → index.es498-DKEdv1Oe.cjs} +0 -0
  523. /package/dist/{index.es507-DhT-HZE9.js → index.es498-DhT-HZE9.js} +0 -0
  524. /package/dist/{index.es508-Bvt6DtVH.cjs → index.es499-Bvt6DtVH.cjs} +0 -0
  525. /package/dist/{index.es508-DiCjL2i4.js → index.es499-DiCjL2i4.js} +0 -0
  526. /package/dist/{index.es509-BNmGHlcn.js → index.es500-BNmGHlcn.js} +0 -0
  527. /package/dist/{index.es509-cHuJy0Ng.cjs → index.es500-cHuJy0Ng.cjs} +0 -0
  528. /package/dist/{index.es510-akqwQ7ED.cjs → index.es501-akqwQ7ED.cjs} +0 -0
  529. /package/dist/{index.es510-i7wN4OET.js → index.es501-i7wN4OET.js} +0 -0
  530. /package/dist/{index.es511-BoQQWmTv.cjs → index.es502-BoQQWmTv.cjs} +0 -0
  531. /package/dist/{index.es511-ndHf0LoP.js → index.es502-ndHf0LoP.js} +0 -0
  532. /package/dist/{index.es512-BlSJXAu4.js → index.es503-BlSJXAu4.js} +0 -0
  533. /package/dist/{index.es512-D_IwRieF.cjs → index.es503-D_IwRieF.cjs} +0 -0
  534. /package/dist/{index.es513-UTmkh7lw.js → index.es504-UTmkh7lw.js} +0 -0
  535. /package/dist/{index.es513-gmm-WbDC.cjs → index.es504-gmm-WbDC.cjs} +0 -0
  536. /package/dist/{index.es514-BheCkDPT.js → index.es505-BheCkDPT.js} +0 -0
  537. /package/dist/{index.es514-DzcxRSZP.cjs → index.es505-DzcxRSZP.cjs} +0 -0
  538. /package/dist/{index.es515-BBRLOmNT.cjs → index.es506-BBRLOmNT.cjs} +0 -0
  539. /package/dist/{index.es515-NU3C_KFZ.js → index.es506-NU3C_KFZ.js} +0 -0
  540. /package/dist/{index.es516-9T7_vGSy.cjs → index.es507-9T7_vGSy.cjs} +0 -0
  541. /package/dist/{index.es516-LhP3hHhi.js → index.es507-LhP3hHhi.js} +0 -0
  542. /package/dist/{index.es517-CJsaOsSM.js → index.es508-CJsaOsSM.js} +0 -0
  543. /package/dist/{index.es517-DqLWLxOu.cjs → index.es508-DqLWLxOu.cjs} +0 -0
  544. /package/dist/{index.es518-BoGvW84i.js → index.es509-BoGvW84i.js} +0 -0
  545. /package/dist/{index.es518-MF-1S1MG.cjs → index.es509-MF-1S1MG.cjs} +0 -0
  546. /package/dist/{index.es519-Cym-eLtO.js → index.es510-Cym-eLtO.js} +0 -0
  547. /package/dist/{index.es519-SIffJYSe.cjs → index.es510-SIffJYSe.cjs} +0 -0
  548. /package/dist/{index.es520-CcmG315c.js → index.es511-CcmG315c.js} +0 -0
  549. /package/dist/{index.es520-U63SkYGT.cjs → index.es511-U63SkYGT.cjs} +0 -0
package/dist/index.cjs.js CHANGED
@@ -13,8 +13,8 @@ const theme = ${JSON.stringify(t,null,2)};
13
13
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
14
14
  theme.transitions = createTransitions(theme.transitions || {});
15
15
 
16
- export default theme;`}const Ax=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Ix(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=Ax(t),i=Object.keys(a);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,p){const g=i.indexOf(p);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:p)-r/100}${n})`}function d(h){return i.indexOf(h)+1<i.length?c(h,i[i.indexOf(h)+1]):s(h)}function u(h){const p=i.indexOf(h);return p===0?s(i[1]):p===i.length-1?l(i[p]):c(h,i[i.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:i,values:a,up:s,down:l,between:c,only:d,not:u,unit:n,...o}}const _x={borderRadius:4};function up(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{const a=/min-width:\s*([0-9.]+)/;return+(r.match(a)?.[1]||0)-+(o.match(a)?.[1]||0)});return n.length?n.reduce((r,o)=>{const a=t[o];return delete r[o],r[o]=a,r},{...t}):t}function Dx(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function wx(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}function Nx(e){const t=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function n(a,i){a.up=(...s)=>t(e.breakpoints.up(...s),i),a.down=(...s)=>t(e.breakpoints.down(...s),i),a.between=(...s)=>t(e.breakpoints.between(...s),i),a.only=(...s)=>t(e.breakpoints.only(...s),i),a.not=(...s)=>{const l=t(e.breakpoints.not(...s),i);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const Pl={xs:0,sm:600,md:900,lg:1200,xl:1536},dp={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Pl[e]}px)`},Px={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Pl[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Dr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||dp;return t.reduce((a,i,s)=>(a[o.up(o.keys[s])]=n(t[s]),a),{})}if(typeof t=="object"){const o=r.breakpoints||dp;return Object.keys(t).reduce((a,i)=>{if(Dx(o.keys,i)){const s=wx(r.containerQueries?r:Px,i);s&&(a[s]=n(t[i],i))}else if(Object.keys(o.values||Pl).includes(i)){const s=o.up(i);a[s]=n(t[i],i)}else{const s=i;a[s]=t[s]}return a},{})}return n(t)}function Rx(e={}){return e.keys?.reduce((t,n)=>{const r=e.up(n);return t[r]={},t},{})||{}}function hp(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Kn(e){if(typeof e!="string")throw new Error(_o(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Rl(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Js(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Rl(e,n)||r,t&&(o=t(o,r,e)),o}function Pt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],l=i.theme,c=Rl(l,r)||{};return Dr(i,s,d=>{let u=Js(c,o,d);return d===u&&typeof d=="string"&&(u=Js(c,o,`${t}${d==="default"?"":Kn(d)}`,d)),n===!1?u:{[n]:u}})};return a.propTypes={},a.filterProps=[t],a}function li(e,t){return t?In(e,t,{clone:!1}):e}function Lx(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const $x={m:"margin",p:"padding"},Ox={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},pp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Mx=Lx(e=>{if(e.length>2)if(pp[e])e=pp[e];else return[e];const[t,n]=e.split(""),r=$x[t],o=Ox[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),wd=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Nd=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...wd,...Nd];function Bi(e,t,n,r){const o=Rl(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?o.startsWith("var(")&&a===0?0:o.startsWith("var(")&&a===1?o:`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a),s=o[i];return a>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof o=="function"?o:()=>{}}function Pd(e){return Bi(e,"spacing",8)}function ji(e,t){return typeof t=="string"||t==null?t:e(t)}function Fx(e,t){return n=>e.reduce((r,o)=>(r[o]=ji(t,n),r),{})}function Bx(e,t,n,r){if(!t.includes(n))return null;const o=Mx(n),a=Fx(o,r),i=e[n];return Dr(e,i,a)}function $g(e,t){const n=Pd(e.theme);return Object.keys(e).map(r=>Bx(e,t,r,n)).reduce(li,{})}function At(e){return $g(e,wd)}At.propTypes={};At.filterProps=wd;function It(e){return $g(e,Nd)}It.propTypes={};It.filterProps=Nd;function jx(e=8,t=Pd({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function Ll(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?li(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function kn(e){return e<=1&&e!==0?`${e*100}%`:e}const Hx=Pt({prop:"width",transform:kn}),Rd=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Pl[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:kn(n)}};return Dr(e,e.maxWidth,t)}return null};Rd.filterProps=["maxWidth"];const Ux=Pt({prop:"minWidth",transform:kn}),zx=Pt({prop:"height",transform:kn}),Gx=Pt({prop:"maxHeight",transform:kn}),qx=Pt({prop:"minHeight",transform:kn});Pt({prop:"size",cssProperty:"width",transform:kn});Pt({prop:"size",cssProperty:"height",transform:kn});const Wx=Pt({prop:"boxSizing"});Ll(Hx,Rd,Ux,zx,Gx,qx,Wx);const $l=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Bi(e.theme,"spacing",8),n=r=>({gap:ji(t,r)});return Dr(e,e.gap,n)}return null};$l.propTypes={};$l.filterProps=["gap"];const Ol=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Bi(e.theme,"spacing",8),n=r=>({columnGap:ji(t,r)});return Dr(e,e.columnGap,n)}return null};Ol.propTypes={};Ol.filterProps=["columnGap"];const Ml=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Bi(e.theme,"spacing",8),n=r=>({rowGap:ji(t,r)});return Dr(e,e.rowGap,n)}return null};Ml.propTypes={};Ml.filterProps=["rowGap"];const Vx=Pt({prop:"gridColumn"}),Yx=Pt({prop:"gridRow"}),Kx=Pt({prop:"gridAutoFlow"}),Qx=Pt({prop:"gridAutoColumns"}),Xx=Pt({prop:"gridAutoRows"}),Jx=Pt({prop:"gridTemplateColumns"}),Zx=Pt({prop:"gridTemplateRows"}),eT=Pt({prop:"gridTemplateAreas"}),tT=Pt({prop:"gridArea"});Ll($l,Ol,Ml,Vx,Yx,Kx,Qx,Xx,Jx,Zx,eT,tT);function ua(e,t){return t==="grey"?t:e}const nT=Pt({prop:"color",themeKey:"palette",transform:ua}),rT=Pt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ua}),oT=Pt({prop:"backgroundColor",themeKey:"palette",transform:ua});Ll(nT,rT,oT);function $n(e){return typeof e!="number"?e:`${e}px solid`}function Un(e,t){return Pt({prop:e,themeKey:"borders",transform:t})}const aT=Un("border",$n),iT=Un("borderTop",$n),sT=Un("borderRight",$n),lT=Un("borderBottom",$n),cT=Un("borderLeft",$n),uT=Un("borderColor"),dT=Un("borderTopColor"),hT=Un("borderRightColor"),pT=Un("borderBottomColor"),fT=Un("borderLeftColor"),mT=Un("outline",$n),gT=Un("outlineColor"),Fl=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Bi(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:ji(t,r)});return Dr(e,e.borderRadius,n)}return null};Fl.propTypes={};Fl.filterProps=["borderRadius"];Ll(aT,iT,sT,lT,cT,uT,dT,hT,pT,fT,Fl,mT,gT);const Bl={border:{themeKey:"borders",transform:$n},borderTop:{themeKey:"borders",transform:$n},borderRight:{themeKey:"borders",transform:$n},borderBottom:{themeKey:"borders",transform:$n},borderLeft:{themeKey:"borders",transform:$n},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$n},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Fl},color:{themeKey:"palette",transform:ua},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ua},backgroundColor:{themeKey:"palette",transform:ua},p:{style:It},pt:{style:It},pr:{style:It},pb:{style:It},pl:{style:It},px:{style:It},py:{style:It},padding:{style:It},paddingTop:{style:It},paddingRight:{style:It},paddingBottom:{style:It},paddingLeft:{style:It},paddingX:{style:It},paddingY:{style:It},paddingInline:{style:It},paddingInlineStart:{style:It},paddingInlineEnd:{style:It},paddingBlock:{style:It},paddingBlockStart:{style:It},paddingBlockEnd:{style:It},m:{style:At},mt:{style:At},mr:{style:At},mb:{style:At},ml:{style:At},mx:{style:At},my:{style:At},margin:{style:At},marginTop:{style:At},marginRight:{style:At},marginBottom:{style:At},marginLeft:{style:At},marginX:{style:At},marginY:{style:At},marginInline:{style:At},marginInlineStart:{style:At},marginInlineEnd:{style:At},marginBlock:{style:At},marginBlockStart:{style:At},marginBlockEnd:{style:At},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:$l},rowGap:{style:Ml},columnGap:{style:Ol},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:kn},maxWidth:{style:Rd},minWidth:{transform:kn},height:{transform:kn},maxHeight:{transform:kn},minHeight:{transform:kn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function yT(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function bT(e,t){return typeof e=="function"?e(t):e}function ET(){function e(n,r,o,a){const i={[n]:r,theme:o},s=a[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:d,style:u}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=Rl(o,c)||{};return u?u(i):Dr(i,r,p=>{let g=Js(h,d,p);return p===g&&typeof p=="string"&&(g=Js(h,d,`${n}${p==="default"?"":Kn(p)}`,p)),l===!1?g:{[l]:g}})}function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Bl;function s(l){let c=l;if(typeof l=="function")c=l(o);else if(typeof l!="object")return l;if(!c)return null;const d=Rx(o.breakpoints),u=Object.keys(d);let h=d;return Object.keys(c).forEach(p=>{const g=bT(c[p],o);if(g!=null)if(typeof g=="object")if(i[p])h=li(h,e(p,g,o,i));else{const b=Dr({theme:o},g,x=>({[p]:x}));yT(b,g)?h[p]=t({sx:g,theme:o,nested:!0}):h=li(h,b)}else h=li(h,e(p,g,o,i))}),!a&&o.modularCssLayers?{"@layer sx":up(o,hp(u,h))}:up(o,hp(u,h))}return Array.isArray(r)?r.map(s):s(r)}return t}const ya=ET();ya.filterProps=["sx"];function xT(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Ld(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...i}=e,s=Ix(n),l=jx(o);let c=In({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{..._x,...a}},i);return c=Nx(c),c.applyStyles=xT,c=t.reduce((d,u)=>In(d,u),c),c.unstable_sxConfig={...Bl,...i?.unstable_sxConfig},c.unstable_sx=function(d){return ya({sx:d,theme:this})},c}function Cu(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:i={},typography:s={},shape:l,...c}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(_o(20));const d=Dd(a),u=Ld(e);let h=In(u,{mixins:yx(u.breakpoints,r),palette:d,shadows:xx.slice(),typography:Ex(d,s),transitions:vx(i),zIndex:{...Sx}});return h=In(h,c),h=t.reduce((p,g)=>In(p,g),h),h.unstable_sxConfig={...Bl,...c?.unstable_sxConfig},h.unstable_sx=function(p){return ya({sx:p,theme:this})},h.toRuntimeSource=Lg,h}function TT(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const CT=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=TT(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Og(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Mg(e){return e==="dark"?CT:[]}function vT(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,a=Dd(t);return{palette:a,opacity:{...Og(a.mode),...n},overlays:r||Mg(a.mode),...o}}function ST(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const kT=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],AT=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return kT(e.cssVarPrefix).forEach(s=>{i[s]=n[s],delete n[s]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace("%s",t)]:i,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!=="media")return`${r}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}return r};function IT(e){const t={};return Object.entries(e).forEach(n=>{const[r,o]=n;typeof o=="object"&&(t[r]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}const fp=(e,t,n,r=[])=>{let o=e;t.forEach((a,i)=>{i===t.length-1?Array.isArray(o)?o[Number(a)]=n:o&&typeof o=="object"&&(o[a]=n):o&&typeof o=="object"&&(o[a]||(o[a]=r.includes(a)?[]:{}),o=o[a])})},_T=(e,t,n)=>{function r(o,a=[],i=[]){Object.entries(o).forEach(([s,l])=>{(!n||n&&!n([...a,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...a,s],Array.isArray(l)?[...i,s]:i):t([...a,s],l,i))})}r(e)},DT=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Cc(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},i={};return _T(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(s,l))){const d=`--${n?`${n}-`:""}${s.join("-")}`,u=DT(s,l);Object.assign(o,{[d]:u}),fp(a,s,`var(${d})`,c),fp(i,s,`var(${d}, ${u})`,c)}},s=>s[0]==="vars"),{css:o,vars:a,varsWithDefaults:i}}function wT(e,t={}){const{getSelector:n=x,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:a={},components:i,defaultColorScheme:s="light",...l}=e,{vars:c,css:d,varsWithDefaults:u}=Cc(l,t);let h=u;const p={},{[s]:g,...b}=a;if(Object.entries(b||{}).forEach(([E,v])=>{const{vars:C,css:I,varsWithDefaults:N}=Cc(v,t);h=In(h,N),p[E]={css:I,vars:C}}),g){const{css:E,vars:v,varsWithDefaults:C}=Cc(g,t);h=In(h,C),p[s]={css:E,vars:v}}function x(E,v){let C=o;if(o==="class"&&(C=".%s"),o==="data"&&(C="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(C=`[${o}="%s"]`),E){if(C==="media")return e.defaultColorScheme===E?":root":{[`@media (prefers-color-scheme: ${a[E]?.palette?.mode||E})`]:{":root":v}};if(C)return e.defaultColorScheme===E?`:root, ${C.replace("%s",String(E))}`:C.replace("%s",String(E))}return":root"}return{vars:h,generateThemeVars:()=>{let E={...c};return Object.entries(p).forEach(([,{vars:v}])=>{E=In(E,v)}),E},generateStyleSheets:()=>{const E=[],v=e.defaultColorScheme||"light";function C(S,M){Object.keys(M).length&&E.push(typeof S=="string"?{[S]:{...M}}:S)}C(n(void 0,{...d}),d);const{[v]:I,...N}=p;if(I){const{css:S}=I,M=a[v]?.palette?.mode,q=!r&&M?{colorScheme:M,...S}:{...S};C(n(v,{...q}),q)}return Object.entries(N).forEach(([S,{css:M}])=>{const q=a[S]?.palette?.mode,B=!r&&q?{colorScheme:q,...M}:{...M};C(n(S,{...B}),B)}),E}}}function NT(e){return function(t){return e==="media"?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:e==="class"?`.${t} &`:e==="data"?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}function PT(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function K(e,t,n){!e[t]&&n&&(e[t]=n)}function ti(e){return typeof e!="string"||!e.startsWith("hsl")?e:wg(e)}function br(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ei(ti(e[t])))}function RT(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const tr=e=>{try{return e()}catch{}},LT=(e="mui")=>qe.unstable_createGetCssVar(e);function vc(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=vT({...t,palette:{mode:o,...t?.palette}});return}const{palette:a,...i}=Cu({...n,palette:{mode:o,...t?.palette}});return e[r]={...t,palette:a,opacity:{...Og(o),...t?.opacity},overlays:t?.overlays||Mg(o)},i}function $T(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:i=ST,colorSchemeSelector:s=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...c}=e,d=Object.keys(n)[0],u=r||(n.light&&d!=="light"?"light":d),h=LT(a),{[u]:p,light:g,dark:b,...x}=n,E={...x};let v=p;if((u==="dark"&&!("dark"in n)||u==="light"&&!("light"in n))&&(v=!0),!v)throw new Error(_o(21,u));const C=vc(E,v,c,u);g&&!E.light&&vc(E,g,void 0,"light"),b&&!E.dark&&vc(E,b,void 0,"dark");let I={defaultColorScheme:u,...C,cssVarPrefix:a,colorSchemeSelector:s,rootSelector:l,getCssVar:h,colorSchemes:E,font:{...IT(C.typography),...C.font},spacing:RT(c.spacing)};Object.keys(I.colorSchemes).forEach(B=>{const y=I.colorSchemes[B].palette,R=F=>{const $=F.split("-"),U=$[1],Y=$[2];return h(F,y[U][Y])};if(y.mode==="light"&&(K(y.common,"background","#fff"),K(y.common,"onBackground","#000")),y.mode==="dark"&&(K(y.common,"background","#000"),K(y.common,"onBackground","#fff")),PT(y,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),y.mode==="light"){K(y.Alert,"errorColor",tt(y.error.light,.6)),K(y.Alert,"infoColor",tt(y.info.light,.6)),K(y.Alert,"successColor",tt(y.success.light,.6)),K(y.Alert,"warningColor",tt(y.warning.light,.6)),K(y.Alert,"errorFilledBg",R("palette-error-main")),K(y.Alert,"infoFilledBg",R("palette-info-main")),K(y.Alert,"successFilledBg",R("palette-success-main")),K(y.Alert,"warningFilledBg",R("palette-warning-main")),K(y.Alert,"errorFilledColor",tr(()=>y.getContrastText(y.error.main))),K(y.Alert,"infoFilledColor",tr(()=>y.getContrastText(y.info.main))),K(y.Alert,"successFilledColor",tr(()=>y.getContrastText(y.success.main))),K(y.Alert,"warningFilledColor",tr(()=>y.getContrastText(y.warning.main))),K(y.Alert,"errorStandardBg",nt(y.error.light,.9)),K(y.Alert,"infoStandardBg",nt(y.info.light,.9)),K(y.Alert,"successStandardBg",nt(y.success.light,.9)),K(y.Alert,"warningStandardBg",nt(y.warning.light,.9)),K(y.Alert,"errorIconColor",R("palette-error-main")),K(y.Alert,"infoIconColor",R("palette-info-main")),K(y.Alert,"successIconColor",R("palette-success-main")),K(y.Alert,"warningIconColor",R("palette-warning-main")),K(y.AppBar,"defaultBg",R("palette-grey-100")),K(y.Avatar,"defaultBg",R("palette-grey-400")),K(y.Button,"inheritContainedBg",R("palette-grey-300")),K(y.Button,"inheritContainedHoverBg",R("palette-grey-A100")),K(y.Chip,"defaultBorder",R("palette-grey-400")),K(y.Chip,"defaultAvatarColor",R("palette-grey-700")),K(y.Chip,"defaultIconColor",R("palette-grey-700")),K(y.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),K(y.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),K(y.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),K(y.LinearProgress,"primaryBg",nt(y.primary.main,.62)),K(y.LinearProgress,"secondaryBg",nt(y.secondary.main,.62)),K(y.LinearProgress,"errorBg",nt(y.error.main,.62)),K(y.LinearProgress,"infoBg",nt(y.info.main,.62)),K(y.LinearProgress,"successBg",nt(y.success.main,.62)),K(y.LinearProgress,"warningBg",nt(y.warning.main,.62)),K(y.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.11)`),K(y.Slider,"primaryTrack",nt(y.primary.main,.62)),K(y.Slider,"secondaryTrack",nt(y.secondary.main,.62)),K(y.Slider,"errorTrack",nt(y.error.main,.62)),K(y.Slider,"infoTrack",nt(y.info.main,.62)),K(y.Slider,"successTrack",nt(y.success.main,.62)),K(y.Slider,"warningTrack",nt(y.warning.main,.62));const F=hs(y.background.default,.8);K(y.SnackbarContent,"bg",F),K(y.SnackbarContent,"color",tr(()=>y.getContrastText(F))),K(y.SpeedDialAction,"fabHoverBg",hs(y.background.paper,.15)),K(y.StepConnector,"border",R("palette-grey-400")),K(y.StepContent,"border",R("palette-grey-400")),K(y.Switch,"defaultColor",R("palette-common-white")),K(y.Switch,"defaultDisabledColor",R("palette-grey-100")),K(y.Switch,"primaryDisabledColor",nt(y.primary.main,.62)),K(y.Switch,"secondaryDisabledColor",nt(y.secondary.main,.62)),K(y.Switch,"errorDisabledColor",nt(y.error.main,.62)),K(y.Switch,"infoDisabledColor",nt(y.info.main,.62)),K(y.Switch,"successDisabledColor",nt(y.success.main,.62)),K(y.Switch,"warningDisabledColor",nt(y.warning.main,.62)),K(y.TableCell,"border",nt(ds(y.divider,1),.88)),K(y.Tooltip,"bg",ds(y.grey[700],.92))}if(y.mode==="dark"){K(y.Alert,"errorColor",nt(y.error.light,.6)),K(y.Alert,"infoColor",nt(y.info.light,.6)),K(y.Alert,"successColor",nt(y.success.light,.6)),K(y.Alert,"warningColor",nt(y.warning.light,.6)),K(y.Alert,"errorFilledBg",R("palette-error-dark")),K(y.Alert,"infoFilledBg",R("palette-info-dark")),K(y.Alert,"successFilledBg",R("palette-success-dark")),K(y.Alert,"warningFilledBg",R("palette-warning-dark")),K(y.Alert,"errorFilledColor",tr(()=>y.getContrastText(y.error.dark))),K(y.Alert,"infoFilledColor",tr(()=>y.getContrastText(y.info.dark))),K(y.Alert,"successFilledColor",tr(()=>y.getContrastText(y.success.dark))),K(y.Alert,"warningFilledColor",tr(()=>y.getContrastText(y.warning.dark))),K(y.Alert,"errorStandardBg",tt(y.error.light,.9)),K(y.Alert,"infoStandardBg",tt(y.info.light,.9)),K(y.Alert,"successStandardBg",tt(y.success.light,.9)),K(y.Alert,"warningStandardBg",tt(y.warning.light,.9)),K(y.Alert,"errorIconColor",R("palette-error-main")),K(y.Alert,"infoIconColor",R("palette-info-main")),K(y.Alert,"successIconColor",R("palette-success-main")),K(y.Alert,"warningIconColor",R("palette-warning-main")),K(y.AppBar,"defaultBg",R("palette-grey-900")),K(y.AppBar,"darkBg",R("palette-background-paper")),K(y.AppBar,"darkColor",R("palette-text-primary")),K(y.Avatar,"defaultBg",R("palette-grey-600")),K(y.Button,"inheritContainedBg",R("palette-grey-800")),K(y.Button,"inheritContainedHoverBg",R("palette-grey-700")),K(y.Chip,"defaultBorder",R("palette-grey-700")),K(y.Chip,"defaultAvatarColor",R("palette-grey-300")),K(y.Chip,"defaultIconColor",R("palette-grey-300")),K(y.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),K(y.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),K(y.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),K(y.LinearProgress,"primaryBg",tt(y.primary.main,.5)),K(y.LinearProgress,"secondaryBg",tt(y.secondary.main,.5)),K(y.LinearProgress,"errorBg",tt(y.error.main,.5)),K(y.LinearProgress,"infoBg",tt(y.info.main,.5)),K(y.LinearProgress,"successBg",tt(y.success.main,.5)),K(y.LinearProgress,"warningBg",tt(y.warning.main,.5)),K(y.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.13)`),K(y.Slider,"primaryTrack",tt(y.primary.main,.5)),K(y.Slider,"secondaryTrack",tt(y.secondary.main,.5)),K(y.Slider,"errorTrack",tt(y.error.main,.5)),K(y.Slider,"infoTrack",tt(y.info.main,.5)),K(y.Slider,"successTrack",tt(y.success.main,.5)),K(y.Slider,"warningTrack",tt(y.warning.main,.5));const F=hs(y.background.default,.98);K(y.SnackbarContent,"bg",F),K(y.SnackbarContent,"color",tr(()=>y.getContrastText(F))),K(y.SpeedDialAction,"fabHoverBg",hs(y.background.paper,.15)),K(y.StepConnector,"border",R("palette-grey-600")),K(y.StepContent,"border",R("palette-grey-600")),K(y.Switch,"defaultColor",R("palette-grey-300")),K(y.Switch,"defaultDisabledColor",R("palette-grey-600")),K(y.Switch,"primaryDisabledColor",tt(y.primary.main,.55)),K(y.Switch,"secondaryDisabledColor",tt(y.secondary.main,.55)),K(y.Switch,"errorDisabledColor",tt(y.error.main,.55)),K(y.Switch,"infoDisabledColor",tt(y.info.main,.55)),K(y.Switch,"successDisabledColor",tt(y.success.main,.55)),K(y.Switch,"warningDisabledColor",tt(y.warning.main,.55)),K(y.TableCell,"border",tt(ds(y.divider,1),.68)),K(y.Tooltip,"bg",ds(y.grey[700],.92))}br(y.background,"default"),br(y.background,"paper"),br(y.common,"background"),br(y.common,"onBackground"),br(y,"divider"),Object.keys(y).forEach(F=>{const $=y[F];F!=="tonalOffset"&&$&&typeof $=="object"&&($.main&&K(y[F],"mainChannel",ei(ti($.main))),$.light&&K(y[F],"lightChannel",ei(ti($.light))),$.dark&&K(y[F],"darkChannel",ei(ti($.dark))),$.contrastText&&K(y[F],"contrastTextChannel",ei(ti($.contrastText))),F==="text"&&(br(y[F],"primary"),br(y[F],"secondary")),F==="action"&&($.active&&br(y[F],"active"),$.selected&&br(y[F],"selected")))})}),I=t.reduce((B,y)=>In(B,y),I);const N={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:i,getSelector:AT(I)},{vars:S,generateThemeVars:M,generateStyleSheets:q}=wT(I,N);return I.vars=S,Object.entries(I.colorSchemes[I.defaultColorScheme]).forEach(([B,y])=>{I[B]=y}),I.generateThemeVars=M,I.generateStyleSheets=q,I.generateSpacing=function(){return qe.createSpacing(c.spacing,Pd(this))},I.getColorSchemeSelector=NT(s),I.spacing=I.generateSpacing(),I.shouldSkipGeneratingVar=i,I.unstable_sxConfig={...Bl,...c?.unstable_sxConfig},I.unstable_sx=function(B){return ya({sx:B,theme:this})},I.toRuntimeSource=Lg,I}function mp(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Dd({...n===!0?{}:n.palette,mode:t})})}function OT(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...i}=e,s=a||"light",l=o?.[s],c={...o,...n?{[s]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Cu(e,...t);let d=n;"palette"in e||c[s]&&(c[s]!==!0?d=c[s].palette:s==="dark"&&(d={mode:"dark"}));const u=Cu({...e,palette:d},...t);return u.defaultColorScheme=s,u.colorSchemes=c,u.palette.mode==="light"&&(u.colorSchemes.light={...c.light!==!0&&c.light,palette:u.palette},mp(u,"dark",c.dark)),u.palette.mode==="dark"&&(u.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:u.palette},mp(u,"light",c.light)),u}return!n&&!("light"in c)&&s==="light"&&(c.light=!0),$T({...i,colorSchemes:c,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}const $d=OT(),Od="$$material";function MT(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Md=e=>MT(e)&&e!=="classes";function FT(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var BT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function jT(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var HT=/[A-Z]|^ms/g,UT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Fg=function(e){return e.charCodeAt(1)===45},gp=function(e){return e!=null&&typeof e!="boolean"},Sc=jT(function(e){return Fg(e)?e:e.replace(HT,"-$&").toLowerCase()}),yp=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(UT,function(n,r,o){return Gr={name:r,styles:o,next:Gr},r})}return BT[e]!==1&&!Fg(e)&&typeof t=="number"&&t!==0?t+"px":t};function Zs(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Gr={name:o.name,styles:o.styles,next:Gr},o.name;var a=n;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)Gr={name:i.name,styles:i.styles,next:Gr},i=i.next;var s=a.styles+";";return s}return zT(e,t,n)}}var l=n;return l}function zT(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Zs(e,t,n[o])+";";else for(var a in n){var i=n[a];if(typeof i!="object"){var s=i;gp(s)&&(r+=Sc(a)+":"+yp(a,s)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var l=0;l<i.length;l++)gp(i[l])&&(r+=Sc(a)+":"+yp(a,i[l])+";");else{var c=Zs(e,t,i);switch(a){case"animation":case"animationName":{r+=Sc(a)+":"+c+";";break}default:r+=a+"{"+c+"}"}}}return r}var bp=/label:\s*([^\s;{]+)\s*(;|$)/g,Gr;function GT(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Gr=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,o+=Zs(n,t,a);else{var i=a;o+=i[0]}for(var s=1;s<e.length;s++)if(o+=Zs(n,t,e[s]),r){var l=a;o+=l[s]}bp.lastIndex=0;for(var c="",d;(d=bp.exec(o))!==null;)c+="-"+d[1];var u=FT(o)+c;return{name:u,styles:o,next:Gr}}function qT(e,t){return Sg(e,t)}function WT(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Ep=[];function Co(e){return Ep[0]=e,GT(Ep)}function VT(e){const{variants:t,...n}=e,r={variants:t,style:Co(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Co(o.style))}),r}const YT=Ld();function Vr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function po(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function KT(e){return e?(t,n)=>n[e]:null}function QT(e,t,n){e.theme=JT(e.theme)?n:e.theme[t]||e.theme}function Ns(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Ns(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?po(r.style,n):r.style;else{const{variants:a,...i}=r;o=n?po(Co(i),n):i}return Bg(e,r.variants,[o],n)}return r?.isProcessed?n?po(Co(r.style),n):r.style:n?po(Co(r),n):r}function Bg(e,t,n=[],r=void 0){let o;e:for(let a=0;a<t.length;a+=1){const i=t[a];if(typeof i.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!i.props(o))continue}else for(const s in i.props)if(e[s]!==i.props[s]&&e.ownerState?.[s]!==i.props[s])continue e;typeof i.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?po(Co(i.style(o)),r):i.style(o))):n.push(r?po(Co(i.style),r):i.style)}return n}function XT(e={}){const{themeId:t,defaultTheme:n=YT,rootShouldForwardProp:r=Vr,slotShouldForwardProp:o=Vr}=e;function a(i){QT(i,t,n)}return(i,s={})=>{WT(i,N=>N.filter(S=>S!==ya));const{name:l,slot:c,skipVariantsResolver:d,skipSx:u,overridesResolver:h=KT(eC(c)),...p}=s,g=l&&l.startsWith("Mui")||c?"components":"custom",b=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,x=u||!1;let E=Vr;c==="Root"||c==="root"?E=r:c?E=o:ZT(i)&&(E=void 0);const v=qT(i,{shouldForwardProp:E,label:void 0,...p}),C=N=>{if(N.__emotion_real===N)return N;if(typeof N=="function")return function(S){return Ns(S,N,S.theme.modularCssLayers?g:void 0)};if(Sr(N)){const S=VT(N);return function(M){return S.variants?Ns(M,S,M.theme.modularCssLayers?g:void 0):M.theme.modularCssLayers?po(S.style,g):S.style}}return N},I=(...N)=>{const S=[],M=N.map(C),q=[];if(S.push(a),l&&h&&q.push(function(R){const F=R.theme.components?.[l]?.styleOverrides;if(!F)return null;const $={};for(const U in F)$[U]=Ns(R,F[U],R.theme.modularCssLayers?"theme":void 0);return h(R,$)}),l&&!b&&q.push(function(R){const F=R.theme?.components?.[l]?.variants;return F?Bg(R,F,[],R.theme.modularCssLayers?"theme":void 0):null}),x||q.push(ya),Array.isArray(M[0])){const R=M.shift(),F=new Array(S.length).fill(""),$=new Array(q.length).fill("");let U;U=[...F,...R,...$],U.raw=[...F,...R.raw,...$],S.unshift(U)}const B=[...S,...M,...q],y=v(...B);return i.muiName&&(y.muiName=i.muiName),y};return v.withConfig&&(I.withConfig=v.withConfig),I}}function JT(e){for(const t in e)return!1;return!0}function ZT(e){return typeof e=="string"&&e.charCodeAt(0)>96}function eC(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const mt=XT({themeId:Od,defaultTheme:$d,rootShouldForwardProp:Md});function $o(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let i="",s=!0;for(let l=0;l<a.length;l+=1){const c=a[l];c&&(i+=(s===!0?"":" ")+t(c),s=!1,n&&n[c]&&(i+=" "+n[c]))}r[o]=i}return r}const tC=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Kn(t)}`,`fontSize${Kn(n)}`]};return $o(o,JE,r)},nC=mt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Kn(n.color)}`],t[`fontSize${Kn(n.fontSize)}`]]}})(kd(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),vu=D.forwardRef(function(e,t){const n=va({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:i="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:d,viewBox:u="0 0 24 24",...h}=n,p=D.isValidElement(r)&&r.type==="svg",g={...n,color:a,component:i,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:u,hasSvgAsChild:p},b={};c||(b.viewBox=u);const x=tC(g);return f.jsxs(nC,{as:i,className:Mt(x.root,o),focusable:"false",color:l,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:t,...b,...h,...p&&r.props,ownerState:g,children:[p?r.props.children:r,d?f.jsx("title",{children:d}):null]})});vu.muiName="SvgIcon";function pt(e,t){function n(r,o){return f.jsx(vu,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=vu.muiName,D.memo(D.forwardRef(n))}const ba=pt(f.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}));function an({text:e,size:t=20,color:n="primary",thickness:r=3.6,centered:o=!0,spacing:a=2,textVariant:i="body2"}){const s=f.jsxs(T.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:a},children:[f.jsx(T.CircularProgress,{size:t,color:n,thickness:r}),e&&f.jsx(T.Typography,{variant:i,color:"text.secondary",children:e})]});return o?f.jsx(T.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:s}):s}const el=T.styled(T.Card)({display:"flex",flexDirection:"column",height:"100%",boxShadow:"none",border:"none",backgroundColor:"transparent"}),jg=T.styled(T.CardContent)({display:"flex",flexDirection:"column",padding:"0",flexGrow:1}),Fd=T.styled(T.CardMedia)({padding:"0"}),rC=T.styled("div")({backgroundColor:"#ffffff",padding:"0 32px 32px 32px",borderRadius:"12px",boxShadow:"none",border:"none",maxWidth:"1200px",margin:"0 auto"});T.styled("div")({marginBottom:"40px",paddingBottom:"24px",borderBottom:"1px solid #f0f0f0"});const oC=T.styled("div")({marginBottom:"48px",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),Su=T.styled("div")({marginBottom:"0",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),ku=T.styled("div")({backgroundColor:"#ffffff",padding:"24px",borderRadius:"8px",border:"1px solid #f0f0f0",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.04)",marginBottom:"0",transition:"box-shadow 0.2s ease-in-out","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)"}});T.styled("div")({backgroundColor:"#f8f9fa",padding:"16px",borderRadius:"8px",border:"1px solid #e9ecef",fontFamily:"'Monaco', 'Menlo', 'Ubuntu Mono', monospace",fontSize:"13px",lineHeight:"1.5",overflowX:"auto"});T.styled("div")({backgroundColor:"#f8f9fa",padding:"12px 16px",borderRadius:"8px",border:"1px solid #e9ecef",marginBottom:"16px",display:"flex",justifyContent:"space-between",alignItems:"center"});const aC=T.styled("div")({height:"100%"});T.styled("div")({height:"30px",backgroundColor:"rgba(225, 240, 255, 1)",display:"flex",padding:"4px",alignItems:"center"});const Hg=T.styled("div")({height:"75vh",width:"100%",overflowY:"auto"});T.styled("div")({position:"relative",height:"100%",flex:"0 0 auto"});const Nr=T.styled(T.Card)({backgroundColor:"#ffffff",padding:"24px",borderRadius:"8px",border:"1px solid #f0f0f0",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.04)",height:"100%",transition:"box-shadow 0.2s ease-in-out","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)"}}),Pr=T.styled(T.CardContent)({padding:"0","&:last-child":{paddingBottom:"0"}}),Zr=T.styled("div")({fontSize:"12px",fontWeight:"600",color:"#666666",textTransform:"uppercase",letterSpacing:"0.5px",marginBottom:"16px",paddingBottom:"8px",borderBottom:"1px solid #f0f0f0"}),Ug=T.styled("div")({padding:"32px",maxWidth:"1400px",margin:"0 auto",minHeight:"100vh"}),Je="http://localhost/api/v0".replace(/\/+$/,"");let eo=class{constructor(t,n=Je,r=Ye){G(this,"configuration");this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath??n)}},iC=class extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}};const at={},it="https://example.com",Ne=function(e,t,n){if(n==null)throw new iC(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function Au(e,t,n=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>Au(e,r,n)):Object.keys(t).forEach(r=>Au(e,t[r],`${n}${n!==""?".":""}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}const st=function(e,...t){const n=new URLSearchParams(e.search);Au(n,t),e.search=n.toString()},Ci=function(e,t,n){const r=typeof e!="string";return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(e!==void 0?e:{}):e||""},lt=function(e){return e.pathname+e.search+e.hash},ct=function(e,t,n,r){return(o=t,a=n)=>{const i={...e.options,url:(o.defaults.baseURL?"":r?.basePath??a)+e.url};return o.request(i)}},sC=function(e){return{getConnection:async(t,n,r={})=>{Ne("getConnection","projectName",t),Ne("getConnection","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),a=new URL(o,it);let i;e&&(i=e.baseOptions);const s={method:"GET",...i,...r},l={};st(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...l,...c,...r.headers},{url:lt(a),options:s}},getQuerydata:async(t,n,r,o,a={})=>{Ne("getQuerydata","projectName",t),Ne("getQuerydata","connectionName",n);const i="/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(i,it);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...a},d={},u={};r!==void 0&&(u.sqlStatement=r),o!==void 0&&(u.options=o),st(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...d,...h,...a.headers},{url:lt(s),options:c}},getSqlsource:async(t,n,r,o={})=>{Ne("getSqlsource","projectName",t),Ne("getSqlsource","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),i=new URL(a,it);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={},d={};r!==void 0&&(d.sqlStatement=r),st(i,d);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:lt(i),options:l}},getTablesource:async(t,n,r,o,a={})=>{Ne("getTablesource","projectName",t),Ne("getTablesource","connectionName",n);const i="/projects/{projectName}/connections/{connectionName}/tableSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(i,it);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...a},d={},u={};r!==void 0&&(u.tableKey=r),o!==void 0&&(u.tablePath=o),st(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...d,...h,...a.headers},{url:lt(s),options:c}},getTemporarytable:async(t,n,r,o={})=>{Ne("getTemporarytable","projectName",t),Ne("getTemporarytable","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),i=new URL(a,it);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={},d={};r!==void 0&&(d.sqlStatement=r),st(i,d);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:lt(i),options:l}},listConnections:async(t,n={})=>{Ne("listConnections","projectName",t);const r="/projects/{projectName}/connections".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(r,it);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...n},s={};st(o,{});let l=a&&a.headers?a.headers:{};return i.headers={...s,...l,...n.headers},{url:lt(o),options:i}},listSchemas:async(t,n,r={})=>{Ne("listSchemas","projectName",t),Ne("listSchemas","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),a=new URL(o,it);let i;e&&(i=e.baseOptions);const s={method:"GET",...i,...r},l={};st(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...l,...c,...r.headers},{url:lt(a),options:s}},listTables:async(t,n,r,o={})=>{Ne("listTables","projectName",t),Ne("listTables","connectionName",n),Ne("listTables","schemaName",r);const a="/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))).replace("{schemaName}",encodeURIComponent(String(r))),i=new URL(a,it);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={};st(i,{});let d=s&&s.headers?s.headers:{};return l.headers={...c,...d,...o.headers},{url:lt(i),options:l}},testConnection:async(t,n,r={})=>{Ne("testConnection","projectName",t),Ne("testConnection","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/test".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),a=new URL(o,it);let i;e&&(i=e.baseOptions);const s={method:"GET",...i,...r},l={};st(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...l,...c,...r.headers},{url:lt(a),options:s}},testConnectionConfiguration:async(t,n={})=>{Ne("testConnectionConfiguration","connection",t);const r="/connections/test",o=new URL(r,it);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...n},s={},l={};s["Content-Type"]="application/json",st(o,l);let c=a&&a.headers?a.headers:{};return i.headers={...s,...c,...n.headers},i.data=Ci(t,i,e),{url:lt(o),options:i}}}},nr=function(e){const t=sC(e);return{async getConnection(n,r,o){const a=await t.getConnection(n,r,o),i=e?.serverIndex??0,s=at["ConnectionsApi.getConnection"]?.[i]?.url;return(l,c)=>ct(a,Ye,Je,e)(l,s||c)},async getQuerydata(n,r,o,a,i){const s=await t.getQuerydata(n,r,o,a,i),l=e?.serverIndex??0,c=at["ConnectionsApi.getQuerydata"]?.[l]?.url;return(d,u)=>ct(s,Ye,Je,e)(d,c||u)},async getSqlsource(n,r,o,a){const i=await t.getSqlsource(n,r,o,a),s=e?.serverIndex??0,l=at["ConnectionsApi.getSqlsource"]?.[s]?.url;return(c,d)=>ct(i,Ye,Je,e)(c,l||d)},async getTablesource(n,r,o,a,i){const s=await t.getTablesource(n,r,o,a,i),l=e?.serverIndex??0,c=at["ConnectionsApi.getTablesource"]?.[l]?.url;return(d,u)=>ct(s,Ye,Je,e)(d,c||u)},async getTemporarytable(n,r,o,a){const i=await t.getTemporarytable(n,r,o,a),s=e?.serverIndex??0,l=at["ConnectionsApi.getTemporarytable"]?.[s]?.url;return(c,d)=>ct(i,Ye,Je,e)(c,l||d)},async listConnections(n,r){const o=await t.listConnections(n,r),a=e?.serverIndex??0,i=at["ConnectionsApi.listConnections"]?.[a]?.url;return(s,l)=>ct(o,Ye,Je,e)(s,i||l)},async listSchemas(n,r,o){const a=await t.listSchemas(n,r,o),i=e?.serverIndex??0,s=at["ConnectionsApi.listSchemas"]?.[i]?.url;return(l,c)=>ct(a,Ye,Je,e)(l,s||c)},async listTables(n,r,o,a){const i=await t.listTables(n,r,o,a),s=e?.serverIndex??0,l=at["ConnectionsApi.listTables"]?.[s]?.url;return(c,d)=>ct(i,Ye,Je,e)(c,l||d)},async testConnection(n,r,o){const a=await t.testConnection(n,r,o),i=e?.serverIndex??0,s=at["ConnectionsApi.testConnection"]?.[i]?.url;return(l,c)=>ct(a,Ye,Je,e)(l,s||c)},async testConnectionConfiguration(n,r){const o=await t.testConnectionConfiguration(n,r),a=e?.serverIndex??0,i=at["ConnectionsApi.testConnectionConfiguration"]?.[a]?.url;return(s,l)=>ct(o,Ye,Je,e)(s,i||l)}}};let zg=class extends eo{getConnection(t,n,r){return nr(this.configuration).getConnection(t,n,r).then(o=>o(this.axios,this.basePath))}getQuerydata(t,n,r,o,a){return nr(this.configuration).getQuerydata(t,n,r,o,a).then(i=>i(this.axios,this.basePath))}getSqlsource(t,n,r,o){return nr(this.configuration).getSqlsource(t,n,r,o).then(a=>a(this.axios,this.basePath))}getTablesource(t,n,r,o,a){return nr(this.configuration).getTablesource(t,n,r,o,a).then(i=>i(this.axios,this.basePath))}getTemporarytable(t,n,r,o){return nr(this.configuration).getTemporarytable(t,n,r,o).then(a=>a(this.axios,this.basePath))}listConnections(t,n){return nr(this.configuration).listConnections(t,n).then(r=>r(this.axios,this.basePath))}listSchemas(t,n,r){return nr(this.configuration).listSchemas(t,n,r).then(o=>o(this.axios,this.basePath))}listTables(t,n,r,o){return nr(this.configuration).listTables(t,n,r,o).then(a=>a(this.axios,this.basePath))}testConnection(t,n,r){return nr(this.configuration).testConnection(t,n,r).then(o=>o(this.axios,this.basePath))}testConnectionConfiguration(t,n){return nr(this.configuration).testConnectionConfiguration(t,n).then(r=>r(this.axios,this.basePath))}};const lC=function(e){return{listDatabases:async(t,n,r,o={})=>{Ne("listDatabases","projectName",t),Ne("listDatabases","packageName",n);const a="/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),i=new URL(a,it);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={},d={};r!==void 0&&(d.versionId=r),st(i,d);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:lt(i),options:l}}}},cC=function(e){const t=lC(e);return{async listDatabases(n,r,o,a){const i=await t.listDatabases(n,r,o,a),s=e?.serverIndex??0,l=at["DatabasesApi.listDatabases"]?.[s]?.url;return(c,d)=>ct(i,Ye,Je,e)(c,l||d)}}};let uC=class extends eo{listDatabases(t,n,r,o){return cC(this.configuration).listDatabases(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const dC=function(e){return{getModel:async(t,n,r,o,a={})=>{Ne("getModel","projectName",t),Ne("getModel","packageName",n),Ne("getModel","path",r);const i="/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),s=new URL(i,it);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...a},d={},u={};o!==void 0&&(u.versionId=o),st(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...d,...h,...a.headers},{url:lt(s),options:c}},listModels:async(t,n,r,o={})=>{Ne("listModels","projectName",t),Ne("listModels","packageName",n);const a="/projects/{projectName}/packages/{packageName}/models".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),i=new URL(a,it);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={},d={};r!==void 0&&(d.versionId=r),st(i,d);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:lt(i),options:l}}}},xp=function(e){const t=dC(e);return{async getModel(n,r,o,a,i){const s=await t.getModel(n,r,o,a,i),l=e?.serverIndex??0,c=at["ModelsApi.getModel"]?.[l]?.url;return(d,u)=>ct(s,Ye,Je,e)(d,c||u)},async listModels(n,r,o,a){const i=await t.listModels(n,r,o,a),s=e?.serverIndex??0,l=at["ModelsApi.listModels"]?.[s]?.url;return(c,d)=>ct(i,Ye,Je,e)(c,l||d)}}};let jl=class extends eo{getModel(t,n,r,o,a){return xp(this.configuration).getModel(t,n,r,o,a).then(i=>i(this.axios,this.basePath))}listModels(t,n,r,o){return xp(this.configuration).listModels(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const hC=function(e){return{getNotebook:async(t,n,r,o,a={})=>{Ne("getNotebook","projectName",t),Ne("getNotebook","packageName",n),Ne("getNotebook","path",r);const i="/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),s=new URL(i,it);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...a},d={},u={};o!==void 0&&(u.versionId=o),st(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...d,...h,...a.headers},{url:lt(s),options:c}},listNotebooks:async(t,n,r,o={})=>{Ne("listNotebooks","projectName",t),Ne("listNotebooks","packageName",n);const a="/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),i=new URL(a,it);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={},d={};r!==void 0&&(d.versionId=r),st(i,d);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:lt(i),options:l}}}},Tp=function(e){const t=hC(e);return{async getNotebook(n,r,o,a,i){const s=await t.getNotebook(n,r,o,a,i),l=e?.serverIndex??0,c=at["NotebooksApi.getNotebook"]?.[l]?.url;return(d,u)=>ct(s,Ye,Je,e)(d,c||u)},async listNotebooks(n,r,o,a){const i=await t.listNotebooks(n,r,o,a),s=e?.serverIndex??0,l=at["NotebooksApi.listNotebooks"]?.[s]?.url;return(c,d)=>ct(i,Ye,Je,e)(c,l||d)}}};let Gg=class extends eo{getNotebook(t,n,r,o,a){return Tp(this.configuration).getNotebook(t,n,r,o,a).then(i=>i(this.axios,this.basePath))}listNotebooks(t,n,r,o){return Tp(this.configuration).listNotebooks(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const pC=function(e){return{createPackage:async(t,n,r={})=>{Ne("createPackage","projectName",t),Ne("createPackage","body",n);const o="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(o,it);let i;e&&(i=e.baseOptions);const s={method:"POST",...i,...r},l={},c={};l["Content-Type"]="application/json",st(a,c);let d=i&&i.headers?i.headers:{};return s.headers={...l,...d,...r.headers},s.data=Ci(n,s,e),{url:lt(a),options:s}},deletePackage:async(t,n,r={})=>{Ne("deletePackage","projectName",t),Ne("deletePackage","packageName",n);const o="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),a=new URL(o,it);let i;e&&(i=e.baseOptions);const s={method:"DELETE",...i,...r},l={};st(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...l,...c,...r.headers},{url:lt(a),options:s}},getPackage:async(t,n,r,o,a={})=>{Ne("getPackage","projectName",t),Ne("getPackage","packageName",n);const i="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(i,it);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...a},d={},u={};r!==void 0&&(u.versionId=r),o!==void 0&&(u.reload=o),st(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...d,...h,...a.headers},{url:lt(s),options:c}},listPackages:async(t,n={})=>{Ne("listPackages","projectName",t);const r="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(r,it);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...n},s={};st(o,{});let l=a&&a.headers?a.headers:{};return i.headers={...s,...l,...n.headers},{url:lt(o),options:i}},updatePackage:async(t,n,r,o={})=>{Ne("updatePackage","projectName",t),Ne("updatePackage","packageName",n),Ne("updatePackage","body",r);const a="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),i=new URL(a,it);let s;e&&(s=e.baseOptions);const l={method:"PATCH",...s,...o},c={},d={};c["Content-Type"]="application/json",st(i,d);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},l.data=Ci(r,l,e),{url:lt(i),options:l}}}},Fa=function(e){const t=pC(e);return{async createPackage(n,r,o){const a=await t.createPackage(n,r,o),i=e?.serverIndex??0,s=at["PackagesApi.createPackage"]?.[i]?.url;return(l,c)=>ct(a,Ye,Je,e)(l,s||c)},async deletePackage(n,r,o){const a=await t.deletePackage(n,r,o),i=e?.serverIndex??0,s=at["PackagesApi.deletePackage"]?.[i]?.url;return(l,c)=>ct(a,Ye,Je,e)(l,s||c)},async getPackage(n,r,o,a,i){const s=await t.getPackage(n,r,o,a,i),l=e?.serverIndex??0,c=at["PackagesApi.getPackage"]?.[l]?.url;return(d,u)=>ct(s,Ye,Je,e)(d,c||u)},async listPackages(n,r){const o=await t.listPackages(n,r),a=e?.serverIndex??0,i=at["PackagesApi.listPackages"]?.[a]?.url;return(s,l)=>ct(o,Ye,Je,e)(s,i||l)},async updatePackage(n,r,o,a){const i=await t.updatePackage(n,r,o,a),s=e?.serverIndex??0,l=at["PackagesApi.updatePackage"]?.[s]?.url;return(c,d)=>ct(i,Ye,Je,e)(c,l||d)}}};let qg=class extends eo{createPackage(t,n,r){return Fa(this.configuration).createPackage(t,n,r).then(o=>o(this.axios,this.basePath))}deletePackage(t,n,r){return Fa(this.configuration).deletePackage(t,n,r).then(o=>o(this.axios,this.basePath))}getPackage(t,n,r,o,a){return Fa(this.configuration).getPackage(t,n,r,o,a).then(i=>i(this.axios,this.basePath))}listPackages(t,n){return Fa(this.configuration).listPackages(t,n).then(r=>r(this.axios,this.basePath))}updatePackage(t,n,r,o){return Fa(this.configuration).updatePackage(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const fC=function(e){return{createProject:async(t,n={})=>{Ne("createProject","body",t);const r="/projects",o=new URL(r,it);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...n},s={},l={};s["Content-Type"]="application/json",st(o,l);let c=a&&a.headers?a.headers:{};return i.headers={...s,...c,...n.headers},i.data=Ci(t,i,e),{url:lt(o),options:i}},deleteProject:async(t,n={})=>{Ne("deleteProject","projectName",t);const r="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(r,it);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...n},s={};st(o,{});let l=a&&a.headers?a.headers:{};return i.headers={...s,...l,...n.headers},{url:lt(o),options:i}},getProject:async(t,n,r={})=>{Ne("getProject","projectName",t);const o="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(o,it);let i;e&&(i=e.baseOptions);const s={method:"GET",...i,...r},l={},c={};n!==void 0&&(c.reload=n),st(a,c);let d=i&&i.headers?i.headers:{};return s.headers={...l,...d,...r.headers},{url:lt(a),options:s}},listProjects:async(t={})=>{const n="/projects",r=new URL(n,it);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};st(r,{});let s=o&&o.headers?o.headers:{};return a.headers={...i,...s,...t.headers},{url:lt(r),options:a}},updateProject:async(t,n,r={})=>{Ne("updateProject","projectName",t),Ne("updateProject","body",n);const o="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(o,it);let i;e&&(i=e.baseOptions);const s={method:"PATCH",...i,...r},l={},c={};l["Content-Type"]="application/json",st(a,c);let d=i&&i.headers?i.headers:{};return s.headers={...l,...d,...r.headers},s.data=Ci(n,s,e),{url:lt(a),options:s}}}},Ba=function(e){const t=fC(e);return{async createProject(n,r){const o=await t.createProject(n,r),a=e?.serverIndex??0,i=at["ProjectsApi.createProject"]?.[a]?.url;return(s,l)=>ct(o,Ye,Je,e)(s,i||l)},async deleteProject(n,r){const o=await t.deleteProject(n,r),a=e?.serverIndex??0,i=at["ProjectsApi.deleteProject"]?.[a]?.url;return(s,l)=>ct(o,Ye,Je,e)(s,i||l)},async getProject(n,r,o){const a=await t.getProject(n,r,o),i=e?.serverIndex??0,s=at["ProjectsApi.getProject"]?.[i]?.url;return(l,c)=>ct(a,Ye,Je,e)(l,s||c)},async listProjects(n){const r=await t.listProjects(n),o=e?.serverIndex??0,a=at["ProjectsApi.listProjects"]?.[o]?.url;return(i,s)=>ct(r,Ye,Je,e)(i,a||s)},async updateProject(n,r,o){const a=await t.updateProject(n,r,o),i=e?.serverIndex??0,s=at["ProjectsApi.updateProject"]?.[i]?.url;return(l,c)=>ct(a,Ye,Je,e)(l,s||c)}}};let Wg=class extends eo{createProject(t,n){return Ba(this.configuration).createProject(t,n).then(r=>r(this.axios,this.basePath))}deleteProject(t,n){return Ba(this.configuration).deleteProject(t,n).then(r=>r(this.axios,this.basePath))}getProject(t,n,r){return Ba(this.configuration).getProject(t,n,r).then(o=>o(this.axios,this.basePath))}listProjects(t){return Ba(this.configuration).listProjects(t).then(n=>n(this.axios,this.basePath))}updateProject(t,n,r){return Ba(this.configuration).updateProject(t,n,r).then(o=>o(this.axios,this.basePath))}};const mC=function(e){return{executeQuery:async(t,n,r,o,a,i,s,l={})=>{Ne("executeQuery","projectName",t),Ne("executeQuery","packageName",n),Ne("executeQuery","path",r);const c="/projects/{projectName}/packages/{packageName}/queryResults/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),d=new URL(c,it);let u;e&&(u=e.baseOptions);const h={method:"GET",...u,...l},p={},g={};o!==void 0&&(g.query=o),a!==void 0&&(g.sourceName=a),i!==void 0&&(g.queryName=i),s!==void 0&&(g.versionId=s),st(d,g);let b=u&&u.headers?u.headers:{};return h.headers={...p,...b,...l.headers},{url:lt(d),options:h}}}},gC=function(e){const t=mC(e);return{async executeQuery(n,r,o,a,i,s,l,c){const d=await t.executeQuery(n,r,o,a,i,s,l,c),u=e?.serverIndex??0,h=at["QueryresultsApi.executeQuery"]?.[u]?.url;return(p,g)=>ct(d,Ye,Je,e)(p,h||g)}}};let Hl=class extends eo{executeQuery(t,n,r,o,a,i,s,l){return gC(this.configuration).executeQuery(t,n,r,o,a,i,s,l).then(c=>c(this.axios,this.basePath))}};const yC=function(e){return{listSchedules:async(t,n,r,o={})=>{Ne("listSchedules","projectName",t),Ne("listSchedules","packageName",n);const a="/projects/{projectName}/packages/{packageName}/schedules".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),i=new URL(a,it);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={},d={};r!==void 0&&(d.versionId=r),st(i,d);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:lt(i),options:l}}}},bC=function(e){const t=yC(e);return{async listSchedules(n,r,o,a){const i=await t.listSchedules(n,r,o,a),s=e?.serverIndex??0,l=at["SchedulesApi.listSchedules"]?.[s]?.url;return(c,d)=>ct(i,Ye,Je,e)(c,l||d)}}};let EC=class extends eo{listSchedules(t,n,r,o){return bC(this.configuration).listSchedules(t,n,r,o).then(a=>a(this.axios,this.basePath))}},Yt=class{constructor(t={}){G(this,"apiKey");G(this,"username");G(this,"password");G(this,"accessToken");G(this,"basePath");G(this,"serverIndex");G(this,"baseOptions");G(this,"formDataCtor");this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions={...t.baseOptions,headers:{...t.baseOptions?.headers}},this.formDataCtor=t.formDataCtor}isJsonMime(t){const n=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(n.test(t)||t.toLowerCase()==="application/json-patch+json")}};const Vg=[{id:"abap",name:"ABAP",import:()=>Promise.resolve().then(()=>require("./index.es249-Dwt2rH6y.cjs"))},{id:"actionscript-3",name:"ActionScript",import:()=>Promise.resolve().then(()=>require("./index.es250-mj8Uhnsc.cjs"))},{id:"ada",name:"Ada",import:()=>Promise.resolve().then(()=>require("./index.es251-DZM58Vqs.cjs"))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.resolve().then(()=>require("./index.es252-BaHyMQ91.cjs")).then(e=>e.index_es252)},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.resolve().then(()=>require("./index.es253-BPJdX9ao.cjs"))},{id:"apache",name:"Apache Conf",import:()=>Promise.resolve().then(()=>require("./index.es254-D7v5fxtZ.cjs"))},{id:"apex",name:"Apex",import:()=>Promise.resolve().then(()=>require("./index.es255-4hrAnw0a.cjs"))},{id:"apl",name:"APL",import:()=>Promise.resolve().then(()=>require("./index.es256-n3QOND9s.cjs"))},{id:"applescript",name:"AppleScript",import:()=>Promise.resolve().then(()=>require("./index.es257-Cnd3Dxju.cjs"))},{id:"ara",name:"Ara",import:()=>Promise.resolve().then(()=>require("./index.es258-BQ2aGbFQ.cjs"))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>Promise.resolve().then(()=>require("./index.es259-C6nYvw8K.cjs"))},{id:"asm",name:"Assembly",import:()=>Promise.resolve().then(()=>require("./index.es260-CQnBVCj-.cjs"))},{id:"astro",name:"Astro",import:()=>Promise.resolve().then(()=>require("./index.es261-COCeTMSD.cjs"))},{id:"awk",name:"AWK",import:()=>Promise.resolve().then(()=>require("./index.es262-DUx4h__E.cjs"))},{id:"ballerina",name:"Ballerina",import:()=>Promise.resolve().then(()=>require("./index.es263-CXlzbmzl.cjs"))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>Promise.resolve().then(()=>require("./index.es264-DlMT9sut.cjs"))},{id:"beancount",name:"Beancount",import:()=>Promise.resolve().then(()=>require("./index.es265-CyyiuUzM.cjs"))},{id:"berry",name:"Berry",aliases:["be"],import:()=>Promise.resolve().then(()=>require("./index.es266-B0EjuzrL.cjs"))},{id:"bibtex",name:"BibTeX",import:()=>Promise.resolve().then(()=>require("./index.es267-CfoG9xRq.cjs"))},{id:"bicep",name:"Bicep",import:()=>Promise.resolve().then(()=>require("./index.es268-D6PH_9IY.cjs"))},{id:"blade",name:"Blade",import:()=>Promise.resolve().then(()=>require("./index.es269-BsWMjmK8.cjs"))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>Promise.resolve().then(()=>require("./index.es270-DwwM1bqi.cjs"))},{id:"c",name:"C",import:()=>Promise.resolve().then(()=>require("./index.es271-C4sXGJZM.cjs"))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>Promise.resolve().then(()=>require("./index.es272-Dq2CYzXG.cjs"))},{id:"cairo",name:"Cairo",import:()=>Promise.resolve().then(()=>require("./index.es273-DgIEKiBg.cjs"))},{id:"clarity",name:"Clarity",import:()=>Promise.resolve().then(()=>require("./index.es274-ytMkUD5Q.cjs"))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>Promise.resolve().then(()=>require("./index.es275-B_Wv414H.cjs"))},{id:"cmake",name:"CMake",import:()=>Promise.resolve().then(()=>require("./index.es276-TBUaQXYY.cjs"))},{id:"cobol",name:"COBOL",import:()=>Promise.resolve().then(()=>require("./index.es277-B16oYV_g.cjs"))},{id:"codeowners",name:"CODEOWNERS",import:()=>Promise.resolve().then(()=>require("./index.es278-QhPK6lIJ.cjs"))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>Promise.resolve().then(()=>require("./index.es279-B7Q9tkDJ.cjs"))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.resolve().then(()=>require("./index.es280-CzSI9DpB.cjs"))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>Promise.resolve().then(()=>require("./index.es281-Ced3ctK5.cjs"))},{id:"coq",name:"Coq",import:()=>Promise.resolve().then(()=>require("./index.es282-BTRB4iqi.cjs"))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.resolve().then(()=>require("./index.es283-BXhXa3X9.cjs"))},{id:"crystal",name:"Crystal",import:()=>Promise.resolve().then(()=>require("./index.es284-Du77Kvc0.cjs"))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>Promise.resolve().then(()=>require("./index.es285-TKds-MhG.cjs"))},{id:"css",name:"CSS",import:()=>Promise.resolve().then(()=>require("./index.es286-B0kbn78J.cjs"))},{id:"csv",name:"CSV",import:()=>Promise.resolve().then(()=>require("./index.es287-BVJjiaC3.cjs"))},{id:"cue",name:"CUE",import:()=>Promise.resolve().then(()=>require("./index.es288-Cz4J-rnd.cjs"))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>Promise.resolve().then(()=>require("./index.es289-DuKTiyez.cjs"))},{id:"d",name:"D",import:()=>Promise.resolve().then(()=>require("./index.es290-BW9Wd7aK.cjs"))},{id:"dart",name:"Dart",import:()=>Promise.resolve().then(()=>require("./index.es291-CWs-er6b.cjs"))},{id:"dax",name:"DAX",import:()=>Promise.resolve().then(()=>require("./index.es292-CDxFL2Kb.cjs"))},{id:"desktop",name:"Desktop",import:()=>Promise.resolve().then(()=>require("./index.es293-CFgo0jo7.cjs"))},{id:"diff",name:"Diff",import:()=>Promise.resolve().then(()=>require("./index.es294-BsEkKwI8.cjs"))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>Promise.resolve().then(()=>require("./index.es295-hwiw4W8I.cjs"))},{id:"dotenv",name:"dotEnv",import:()=>Promise.resolve().then(()=>require("./index.es296-CJ5o3G1C.cjs"))},{id:"dream-maker",name:"Dream Maker",import:()=>Promise.resolve().then(()=>require("./index.es297-DBharE9Q.cjs"))},{id:"edge",name:"Edge",import:()=>Promise.resolve().then(()=>require("./index.es298-walBYOs1.cjs"))},{id:"elixir",name:"Elixir",import:()=>Promise.resolve().then(()=>require("./index.es299-C3-GhogV.cjs"))},{id:"elm",name:"Elm",import:()=>Promise.resolve().then(()=>require("./index.es300-CUvIiBE1.cjs"))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>Promise.resolve().then(()=>require("./index.es301-CDDyFsvQ.cjs"))},{id:"erb",name:"ERB",import:()=>Promise.resolve().then(()=>require("./index.es302-Be1x3jAt.cjs"))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.resolve().then(()=>require("./index.es303-3VgdrQXV.cjs"))},{id:"fennel",name:"Fennel",import:()=>Promise.resolve().then(()=>require("./index.es304-RbmrEXt1.cjs"))},{id:"fish",name:"Fish",import:()=>Promise.resolve().then(()=>require("./index.es305-CnamI0Ar.cjs"))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>Promise.resolve().then(()=>require("./index.es306-DFpT66K8.cjs"))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.resolve().then(()=>require("./index.es307-DGFGA2DF.cjs"))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>Promise.resolve().then(()=>require("./index.es308-IaGrWIda.cjs"))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.resolve().then(()=>require("./index.es309-ZfPTZoHB.cjs"))},{id:"gdresource",name:"GDResource",import:()=>Promise.resolve().then(()=>require("./index.es310-BlNG2I87.cjs"))},{id:"gdscript",name:"GDScript",import:()=>Promise.resolve().then(()=>require("./index.es311-5N_43TPQ.cjs"))},{id:"gdshader",name:"GDShader",import:()=>Promise.resolve().then(()=>require("./index.es312-Bl85Hrm5.cjs"))},{id:"genie",name:"Genie",import:()=>Promise.resolve().then(()=>require("./index.es313-DGsxMAbQ.cjs"))},{id:"gherkin",name:"Gherkin",import:()=>Promise.resolve().then(()=>require("./index.es314-CVV6nEUH.cjs"))},{id:"git-commit",name:"Git Commit Message",import:()=>Promise.resolve().then(()=>require("./index.es315-CPayHIMN.cjs"))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.resolve().then(()=>require("./index.es316-BAAO0gFt.cjs"))},{id:"gleam",name:"Gleam",import:()=>Promise.resolve().then(()=>require("./index.es317-nR4mjrhK.cjs"))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.resolve().then(()=>require("./index.es318-C3zVhHe-.cjs"))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.resolve().then(()=>require("./index.es319-nyl1w3yX.cjs"))},{id:"glsl",name:"GLSL",import:()=>Promise.resolve().then(()=>require("./index.es320-Dfg_OE8O.cjs"))},{id:"gnuplot",name:"Gnuplot",import:()=>Promise.resolve().then(()=>require("./index.es321-CurtDYoJ.cjs"))},{id:"go",name:"Go",import:()=>Promise.resolve().then(()=>require("./index.es322-CM9_GlwL.cjs"))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.resolve().then(()=>require("./index.es323-CfciOdrI.cjs"))},{id:"groovy",name:"Groovy",import:()=>Promise.resolve().then(()=>require("./index.es324-BaVp9Il5.cjs"))},{id:"hack",name:"Hack",import:()=>Promise.resolve().then(()=>require("./index.es325-Cmzx5MLO.cjs"))},{id:"haml",name:"Ruby Haml",import:()=>Promise.resolve().then(()=>require("./index.es326-qWwWlIYi.cjs"))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.resolve().then(()=>require("./index.es327-CLlVDJsL.cjs"))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>Promise.resolve().then(()=>require("./index.es328-suhyCHEm.cjs"))},{id:"haxe",name:"Haxe",import:()=>Promise.resolve().then(()=>require("./index.es329-BIQU1qHi.cjs"))},{id:"hcl",name:"HashiCorp HCL",import:()=>Promise.resolve().then(()=>require("./index.es330-CbQ1yCnz.cjs"))},{id:"hjson",name:"Hjson",import:()=>Promise.resolve().then(()=>require("./index.es331-Ddklb4QM.cjs"))},{id:"hlsl",name:"HLSL",import:()=>Promise.resolve().then(()=>require("./index.es332-B4NkiBfC.cjs"))},{id:"html",name:"HTML",import:()=>Promise.resolve().then(()=>require("./index.es333-CRcHh2lx.cjs"))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.resolve().then(()=>require("./index.es334-B4YGaAaN.cjs"))},{id:"http",name:"HTTP",import:()=>Promise.resolve().then(()=>require("./index.es335-4HcyHKUn.cjs"))},{id:"hxml",name:"HXML",import:()=>Promise.resolve().then(()=>require("./index.es336-CG8yGvAa.cjs"))},{id:"hy",name:"Hy",import:()=>Promise.resolve().then(()=>require("./index.es337-DpyTdO3T.cjs"))},{id:"imba",name:"Imba",import:()=>Promise.resolve().then(()=>require("./index.es338-DT5n93uN.cjs"))},{id:"ini",name:"INI",aliases:["properties"],import:()=>Promise.resolve().then(()=>require("./index.es339-CymULaw_.cjs"))},{id:"java",name:"Java",import:()=>Promise.resolve().then(()=>require("./index.es340-Bn1Lvoni.cjs"))},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>Promise.resolve().then(()=>require("./index.es341-Bnnicc83.cjs"))},{id:"jinja",name:"Jinja",import:()=>Promise.resolve().then(()=>require("./index.es342-Da347dQi.cjs"))},{id:"jison",name:"Jison",import:()=>Promise.resolve().then(()=>require("./index.es343-BAD8ZMq1.cjs"))},{id:"json",name:"JSON",import:()=>Promise.resolve().then(()=>require("./index.es344-y-J1j5EW.cjs"))},{id:"json5",name:"JSON5",import:()=>Promise.resolve().then(()=>require("./index.es345-CzvlWgZ7.cjs"))},{id:"jsonc",name:"JSON with Comments",import:()=>Promise.resolve().then(()=>require("./index.es346-BnhWfmQw.cjs"))},{id:"jsonl",name:"JSON Lines",import:()=>Promise.resolve().then(()=>require("./index.es347-BbGkWPJz.cjs"))},{id:"jsonnet",name:"Jsonnet",import:()=>Promise.resolve().then(()=>require("./index.es348-Bn--UDZ1.cjs"))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>Promise.resolve().then(()=>require("./index.es349-4CSVp8lc.cjs"))},{id:"jsx",name:"JSX",import:()=>Promise.resolve().then(()=>require("./index.es350-D8YwVp-7.cjs"))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.resolve().then(()=>require("./index.es351-DqRF87cU.cjs"))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>Promise.resolve().then(()=>require("./index.es352-DDI6myF6.cjs"))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>Promise.resolve().then(()=>require("./index.es353-OZxALJZT.cjs"))},{id:"latex",name:"LaTeX",import:()=>Promise.resolve().then(()=>require("./index.es354-DWKks2er.cjs"))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>Promise.resolve().then(()=>require("./index.es355-D1iY-35j.cjs"))},{id:"less",name:"Less",import:()=>Promise.resolve().then(()=>require("./index.es356-DIaY7vQJ.cjs"))},{id:"liquid",name:"Liquid",import:()=>Promise.resolve().then(()=>require("./index.es357-XVQxX2C3.cjs"))},{id:"log",name:"Log file",import:()=>Promise.resolve().then(()=>require("./index.es358-BIXUeBaj.cjs"))},{id:"logo",name:"Logo",import:()=>Promise.resolve().then(()=>require("./index.es359-B2d3b27P.cjs"))},{id:"lua",name:"Lua",import:()=>Promise.resolve().then(()=>require("./index.es360-_MwM1ya3.cjs"))},{id:"luau",name:"Luau",import:()=>Promise.resolve().then(()=>require("./index.es361-CvqAeq4F.cjs"))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>Promise.resolve().then(()=>require("./index.es362-Oob5Z9Pk.cjs"))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>Promise.resolve().then(()=>require("./index.es363-BGBuj4LZ.cjs"))},{id:"marko",name:"Marko",import:()=>Promise.resolve().then(()=>require("./index.es364-D19Xnax7.cjs"))},{id:"matlab",name:"MATLAB",import:()=>Promise.resolve().then(()=>require("./index.es365-CbN2rF6P.cjs"))},{id:"mdc",name:"MDC",import:()=>Promise.resolve().then(()=>require("./index.es366-CbVef07E.cjs"))},{id:"mdx",name:"MDX",import:()=>Promise.resolve().then(()=>require("./index.es367-Cl31h8mi.cjs"))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>Promise.resolve().then(()=>require("./index.es368-CSogK_LM.cjs"))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>Promise.resolve().then(()=>require("./index.es369-BseoYJQp.cjs"))},{id:"mojo",name:"Mojo",import:()=>Promise.resolve().then(()=>require("./index.es370-D8QAG3Ze.cjs"))},{id:"move",name:"Move",import:()=>Promise.resolve().then(()=>require("./index.es371-DaBrcjat.cjs"))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>Promise.resolve().then(()=>require("./index.es372-oOfAO4q8.cjs"))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>Promise.resolve().then(()=>require("./index.es373-BxJSKvPb.cjs"))},{id:"nginx",name:"Nginx",import:()=>Promise.resolve().then(()=>require("./index.es374-C7aMoyLB.cjs"))},{id:"nim",name:"Nim",import:()=>Promise.resolve().then(()=>require("./index.es375-C_u2T4we.cjs"))},{id:"nix",name:"Nix",import:()=>Promise.resolve().then(()=>require("./index.es376-DNME0Ea7.cjs"))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>Promise.resolve().then(()=>require("./index.es377-DI9Z3l3M.cjs"))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>Promise.resolve().then(()=>require("./index.es378-DVx8Rcni.cjs"))},{id:"objective-cpp",name:"Objective-C++",import:()=>Promise.resolve().then(()=>require("./index.es379-s6XI7Jvk.cjs"))},{id:"ocaml",name:"OCaml",import:()=>Promise.resolve().then(()=>require("./index.es380-kUzDDUf2.cjs"))},{id:"pascal",name:"Pascal",import:()=>Promise.resolve().then(()=>require("./index.es381-D509_I72.cjs"))},{id:"perl",name:"Perl",import:()=>Promise.resolve().then(()=>require("./index.es382-CBXHyupG.cjs"))},{id:"php",name:"PHP",import:()=>Promise.resolve().then(()=>require("./index.es383-BEOeQCTV.cjs"))},{id:"plsql",name:"PL/SQL",import:()=>Promise.resolve().then(()=>require("./index.es384-C_qH_YOK.cjs"))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>Promise.resolve().then(()=>require("./index.es385-CBsLQIcu.cjs"))},{id:"polar",name:"Polar",import:()=>Promise.resolve().then(()=>require("./index.es386-De-CDeYv.cjs"))},{id:"postcss",name:"PostCSS",import:()=>Promise.resolve().then(()=>require("./index.es387-BtcsgaYj.cjs"))},{id:"powerquery",name:"PowerQuery",import:()=>Promise.resolve().then(()=>require("./index.es388-B0rHn13V.cjs"))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>Promise.resolve().then(()=>require("./index.es389-rCX2OYXT.cjs"))},{id:"prisma",name:"Prisma",import:()=>Promise.resolve().then(()=>require("./index.es390-BaaUHYMp.cjs"))},{id:"prolog",name:"Prolog",import:()=>Promise.resolve().then(()=>require("./index.es391-DrXD2tGS.cjs"))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>Promise.resolve().then(()=>require("./index.es392-BtmQjBQu.cjs"))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.resolve().then(()=>require("./index.es393-Big0D18v.cjs"))},{id:"puppet",name:"Puppet",import:()=>Promise.resolve().then(()=>require("./index.es394-cIrXIuy8.cjs"))},{id:"purescript",name:"PureScript",import:()=>Promise.resolve().then(()=>require("./index.es395-CX9QPs2N.cjs"))},{id:"python",name:"Python",aliases:["py"],import:()=>Promise.resolve().then(()=>require("./index.es396-B9x3euv6.cjs"))},{id:"qml",name:"QML",import:()=>Promise.resolve().then(()=>require("./index.es397-CkZFXb1s.cjs"))},{id:"qmldir",name:"QML Directory",import:()=>Promise.resolve().then(()=>require("./index.es398-DNF9H2ir.cjs"))},{id:"qss",name:"Qt Style Sheets",import:()=>Promise.resolve().then(()=>require("./index.es399-C744dLby.cjs"))},{id:"r",name:"R",import:()=>Promise.resolve().then(()=>require("./index.es400-DgOc9oMe.cjs"))},{id:"racket",name:"Racket",import:()=>Promise.resolve().then(()=>require("./index.es401-Do9_vqnd.cjs"))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>Promise.resolve().then(()=>require("./index.es402-BW8wAUIz.cjs"))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.resolve().then(()=>require("./index.es403-Z56x0tRI.cjs"))},{id:"reg",name:"Windows Registry Script",import:()=>Promise.resolve().then(()=>require("./index.es404-CGWN_v-z.cjs"))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>Promise.resolve().then(()=>require("./index.es405-N7Z4hEeU.cjs"))},{id:"rel",name:"Rel",import:()=>Promise.resolve().then(()=>require("./index.es406-BYqA7mnV.cjs"))},{id:"riscv",name:"RISC-V",import:()=>Promise.resolve().then(()=>require("./index.es407-ayQMUpo9.cjs"))},{id:"rst",name:"reStructuredText",import:()=>Promise.resolve().then(()=>require("./index.es408-DP0cbIUq.cjs"))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.resolve().then(()=>require("./index.es409-C-0BMQ9I.cjs"))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>Promise.resolve().then(()=>require("./index.es410-BnFKGEfa.cjs"))},{id:"sas",name:"SAS",import:()=>Promise.resolve().then(()=>require("./index.es411-B_g6Hhnf.cjs"))},{id:"sass",name:"Sass",import:()=>Promise.resolve().then(()=>require("./index.es412-B9gYryDE.cjs"))},{id:"scala",name:"Scala",import:()=>Promise.resolve().then(()=>require("./index.es413-C85dOwSU.cjs"))},{id:"scheme",name:"Scheme",import:()=>Promise.resolve().then(()=>require("./index.es414-B_XUaARm.cjs"))},{id:"scss",name:"SCSS",import:()=>Promise.resolve().then(()=>require("./index.es415-DHUS4VQ9.cjs"))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>Promise.resolve().then(()=>require("./index.es416-7Y5u0OW0.cjs"))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>Promise.resolve().then(()=>require("./index.es417-BeaCMBTL.cjs"))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>Promise.resolve().then(()=>require("./index.es418-3DYM9fut.cjs"))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.resolve().then(()=>require("./index.es419-ntZoDvMu.cjs"))},{id:"smalltalk",name:"Smalltalk",import:()=>Promise.resolve().then(()=>require("./index.es420-CCvytUuW.cjs"))},{id:"solidity",name:"Solidity",import:()=>Promise.resolve().then(()=>require("./index.es421-BcNcjFC4.cjs"))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.resolve().then(()=>require("./index.es422-cHkqTWsj.cjs"))},{id:"sparql",name:"SPARQL",import:()=>Promise.resolve().then(()=>require("./index.es423-DMHdENoG.cjs"))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>Promise.resolve().then(()=>require("./index.es424-CzITjJj7.cjs"))},{id:"sql",name:"SQL",import:()=>Promise.resolve().then(()=>require("./index.es425-BqWZrLHB.cjs"))},{id:"ssh-config",name:"SSH Config",import:()=>Promise.resolve().then(()=>require("./index.es426-DUPeuEdB.cjs"))},{id:"stata",name:"Stata",import:()=>Promise.resolve().then(()=>require("./index.es427-Bao3jxkK.cjs"))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>Promise.resolve().then(()=>require("./index.es428-ByHs6N-o.cjs"))},{id:"svelte",name:"Svelte",import:()=>Promise.resolve().then(()=>require("./index.es429-BSHXxdsR.cjs"))},{id:"swift",name:"Swift",import:()=>Promise.resolve().then(()=>require("./index.es430-C5DnOriA.cjs"))},{id:"system-verilog",name:"SystemVerilog",import:()=>Promise.resolve().then(()=>require("./index.es431-ClPLYLwh.cjs"))},{id:"systemd",name:"Systemd Units",import:()=>Promise.resolve().then(()=>require("./index.es432-BASX0DlX.cjs"))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>Promise.resolve().then(()=>require("./index.es433-DkCSnLHD.cjs"))},{id:"tasl",name:"Tasl",import:()=>Promise.resolve().then(()=>require("./index.es434-BAQJK7KZ.cjs"))},{id:"tcl",name:"Tcl",import:()=>Promise.resolve().then(()=>require("./index.es435-CwJAYTvh.cjs"))},{id:"templ",name:"Templ",import:()=>Promise.resolve().then(()=>require("./index.es436-BhCXZt6D.cjs"))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>Promise.resolve().then(()=>require("./index.es437-s-pzyVvp.cjs"))},{id:"tex",name:"TeX",import:()=>Promise.resolve().then(()=>require("./index.es438-DWQLrqVp.cjs"))},{id:"toml",name:"TOML",import:()=>Promise.resolve().then(()=>require("./index.es439-CyMM7IXy.cjs"))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.resolve().then(()=>require("./index.es440-Cx989NPl.cjs"))},{id:"tsv",name:"TSV",import:()=>Promise.resolve().then(()=>require("./index.es441-DqNGnuVj.cjs"))},{id:"tsx",name:"TSX",import:()=>Promise.resolve().then(()=>require("./index.es442-DpBRUnKC.cjs"))},{id:"turtle",name:"Turtle",import:()=>Promise.resolve().then(()=>require("./index.es443-DfO3eAsu.cjs"))},{id:"twig",name:"Twig",import:()=>Promise.resolve().then(()=>require("./index.es444-2en1h01q.cjs"))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>Promise.resolve().then(()=>require("./index.es445-BqvpT6pB.cjs"))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>Promise.resolve().then(()=>require("./index.es446-P-ZVy8yC.cjs"))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>Promise.resolve().then(()=>require("./index.es447-BVh2IsT9.cjs"))},{id:"v",name:"V",import:()=>Promise.resolve().then(()=>require("./index.es448-BUlE9136.cjs"))},{id:"vala",name:"Vala",import:()=>Promise.resolve().then(()=>require("./index.es449-BIymb2K_.cjs"))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>Promise.resolve().then(()=>require("./index.es450-IXOh8mqV.cjs"))},{id:"verilog",name:"Verilog",import:()=>Promise.resolve().then(()=>require("./index.es451-BiglCqvO.cjs"))},{id:"vhdl",name:"VHDL",import:()=>Promise.resolve().then(()=>require("./index.es452-CJUzuS2t.cjs"))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>Promise.resolve().then(()=>require("./index.es453-B1nKLcgt.cjs"))},{id:"vue",name:"Vue",import:()=>Promise.resolve().then(()=>require("./index.es454-BPGpEjrD.cjs"))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.resolve().then(()=>require("./index.es455-DptJoieT.cjs"))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>Promise.resolve().then(()=>require("./index.es456-CO9xUkIY.cjs"))},{id:"wasm",name:"WebAssembly",import:()=>Promise.resolve().then(()=>require("./index.es457-CdIThIat.cjs"))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>Promise.resolve().then(()=>require("./index.es458-BSJ3fk7e.cjs"))},{id:"wgsl",name:"WGSL",import:()=>Promise.resolve().then(()=>require("./index.es459-d3zZE7ZN.cjs"))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>Promise.resolve().then(()=>require("./index.es460-BRCqXN2g.cjs"))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>Promise.resolve().then(()=>require("./index.es461-C3rR92zj.cjs"))},{id:"xml",name:"XML",import:()=>Promise.resolve().then(()=>require("./index.es462-c6-l-QG7.cjs"))},{id:"xsl",name:"XSL",import:()=>Promise.resolve().then(()=>require("./index.es463-DSBa4u9B.cjs"))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>Promise.resolve().then(()=>require("./index.es464-7DV6pRKj.cjs"))},{id:"zenscript",name:"ZenScript",import:()=>Promise.resolve().then(()=>require("./index.es465-BWMxwjeH.cjs"))},{id:"zig",name:"Zig",import:()=>Promise.resolve().then(()=>require("./index.es466-yAcNfpgW.cjs"))}],xC=Object.fromEntries(Vg.map(e=>[e.id,e.import])),TC=Object.fromEntries(Vg.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),CC={...xC,...TC},vC=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es467-BXc5FOIb.cjs"))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es468-C5IpmIOG.cjs"))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es469-Cv7nTiif.cjs"))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es470-DXAedND3.cjs"))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es471-mwGw3-Ej.cjs"))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es472-cQCk9ADg.cjs"))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es473-ClSzDZSl.cjs"))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es474-Cd5emcYO.cjs"))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es475-BNgwAJ-d.cjs"))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es476-BHZ7sHFu.cjs"))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es477-_sBMomR1.cjs"))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es478-H0xoYxl0.cjs"))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es479-BKL9xNgN.cjs"))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es480-Dsv5MuSi.cjs"))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es481-CtB9hz8U.cjs"))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es482-BqZVM-jF.cjs"))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es483-BFTOhCbz.cjs"))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es484-BZoWH9dH.cjs"))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es485-Ks3kPGJU.cjs"))},{id:"houston",displayName:"Houston",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es486-T57H3gQZ.cjs"))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es487-BJZF7xDr.cjs"))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es488-BhgzmRV4.cjs"))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es489-BgJip59C.cjs"))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es490-CIb51Re4.cjs"))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es491-B5D0le0o.cjs"))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es492-Dj0-OyRN.cjs"))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es493-Dvfs29ir.cjs"))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es494-EU3ZGl_r.cjs"))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es495-px_3Pwqa.cjs"))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es496-38jxvsGX.cjs"))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es497-tt5o_I5e.cjs"))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es498-tmTHl_CQ.cjs"))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es499-DMIxv6MM.cjs"))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es500-BN78kThQ.cjs"))},{id:"nord",displayName:"Nord",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es501-Ca5AGUWc.cjs"))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es502-JOzzHStv.cjs"))},{id:"one-light",displayName:"One Light",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es503-020-h_lv.cjs"))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es504-r5piqq-S.cjs"))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es505-BLP3NNjc.cjs"))},{id:"red",displayName:"Red",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es506-BQGOv1D5.cjs"))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es507-DKEdv1Oe.cjs"))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es508-Bvt6DtVH.cjs"))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es509-cHuJy0Ng.cjs"))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es510-akqwQ7ED.cjs"))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es511-BoQQWmTv.cjs"))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es512-D_IwRieF.cjs"))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es513-gmm-WbDC.cjs"))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es514-DzcxRSZP.cjs"))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es515-BBRLOmNT.cjs"))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es516-9T7_vGSy.cjs"))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es517-DqLWLxOu.cjs"))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es518-MF-1S1MG.cjs"))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es519-SIffJYSe.cjs"))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es520-U63SkYGT.cjs"))}],SC=Object.fromEntries(vC.map(e=>[e.id,e.import]));let _r=class extends Error{constructor(t){super(t),this.name="ShikiError"}},Bd=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function kC(){return 2147483648}function AC(){return typeof performance<"u"?performance.now():Date.now()}const IC=(e,t)=>e+(t-e%t)%t;async function _C(e){let t,n;const r={};function o(p){n=p,r.HEAPU8=new Uint8Array(p),r.HEAPU32=new Uint32Array(p)}function a(p,g,b){r.HEAPU8.copyWithin(p,g,g+b)}function i(p){try{return t.grow(p-n.byteLength+65535>>>16),o(t.buffer),1}catch{}}function s(p){const g=r.HEAPU8.length;p=p>>>0;const b=kC();if(p>b)return!1;for(let x=1;x<=4;x*=2){let E=g*(1+.2/x);E=Math.min(E,p+100663296);const v=Math.min(b,IC(Math.max(p,E),65536));if(i(v))return!0}return!1}const l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(p,g,b=1024){const x=g+b;let E=g;for(;p[E]&&!(E>=x);)++E;if(E-g>16&&p.buffer&&l)return l.decode(p.subarray(g,E));let v="";for(;g<E;){let C=p[g++];if(!(C&128)){v+=String.fromCharCode(C);continue}const I=p[g++]&63;if((C&224)===192){v+=String.fromCharCode((C&31)<<6|I);continue}const N=p[g++]&63;if((C&240)===224?C=(C&15)<<12|I<<6|N:C=(C&7)<<18|I<<12|N<<6|p[g++]&63,C<65536)v+=String.fromCharCode(C);else{const S=C-65536;v+=String.fromCharCode(55296|S>>10,56320|S&1023)}}return v}function d(p,g){return p?c(r.HEAPU8,p,g):""}const u={emscripten_get_now:AC,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function h(){const p=await e({env:u,wasi_snapshot_preview1:u});t=p.memory,o(t.buffer),Object.assign(r,p),r.UTF8ToString=d}return await h(),r}var DC=Object.defineProperty,wC=(e,t,n)=>t in e?DC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ht=(e,t,n)=>(wC(e,typeof t!="symbol"?t+"":t,n),n);let qt=null;function NC(e){throw new Bd(e.UTF8ToString(e.getLastOnigError()))}let Yg=class Kg{constructor(t){Ht(this,"utf16Length"),Ht(this,"utf8Length"),Ht(this,"utf16Value"),Ht(this,"utf8Value"),Ht(this,"utf16OffsetToUtf8"),Ht(this,"utf8OffsetToUtf16");const n=t.length,r=Kg._utf8ByteLength(t),o=r!==n,a=o?new Uint32Array(n+1):null;o&&(a[n]=r);const i=o?new Uint32Array(r+1):null;o&&(i[r]=n);const s=new Uint8Array(r);let l=0;for(let c=0;c<n;c++){const d=t.charCodeAt(c);let u=d,h=!1;if(d>=55296&&d<=56319&&c+1<n){const p=t.charCodeAt(c+1);p>=56320&&p<=57343&&(u=(d-55296<<10)+65536|p-56320,h=!0)}o&&(a[c]=l,h&&(a[c+1]=l),u<=127?i[l+0]=c:u<=2047?(i[l+0]=c,i[l+1]=c):u<=65535?(i[l+0]=c,i[l+1]=c,i[l+2]=c):(i[l+0]=c,i[l+1]=c,i[l+2]=c,i[l+3]=c)),u<=127?s[l++]=u:u<=2047?(s[l++]=192|(u&1984)>>>6,s[l++]=128|(u&63)>>>0):u<=65535?(s[l++]=224|(u&61440)>>>12,s[l++]=128|(u&4032)>>>6,s[l++]=128|(u&63)>>>0):(s[l++]=240|(u&1835008)>>>18,s[l++]=128|(u&258048)>>>12,s[l++]=128|(u&4032)>>>6,s[l++]=128|(u&63)>>>0),h&&c++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=i}static _utf8ByteLength(t){let n=0;for(let r=0,o=t.length;r<o;r++){const a=t.charCodeAt(r);let i=a,s=!1;if(a>=55296&&a<=56319&&r+1<o){const l=t.charCodeAt(r+1);l>=56320&&l<=57343&&(i=(a-55296<<10)+65536|l-56320,s=!0)}i<=127?n+=1:i<=2047?n+=2:i<=65535?n+=3:n+=4,s&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}};const or=class{constructor(t){if(Ht(this,"id",++or.LAST_ID),Ht(this,"_onigBinding"),Ht(this,"content"),Ht(this,"utf16Length"),Ht(this,"utf8Length"),Ht(this,"utf16OffsetToUtf8"),Ht(this,"utf8OffsetToUtf16"),Ht(this,"ptr"),!qt)throw new Bd("Must invoke loadWasm first.");this._onigBinding=qt,this.content=t;const n=new Yg(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!or._sharedPtrInUse?(or._sharedPtr||(or._sharedPtr=qt.omalloc(1e4)),or._sharedPtrInUse=!0,qt.HEAPU8.set(n.utf8Value,or._sharedPtr),this.ptr=or._sharedPtr):this.ptr=n.createString(qt)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===or._sharedPtr?or._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let Hi=or;Ht(Hi,"LAST_ID",0);Ht(Hi,"_sharedPtr",0);Ht(Hi,"_sharedPtrInUse",!1);let PC=class{constructor(t){if(Ht(this,"_onigBinding"),Ht(this,"_ptr"),!qt)throw new Bd("Must invoke loadWasm first.");const n=[],r=[];for(let s=0,l=t.length;s<l;s++){const c=new Yg(t[s]);n[s]=c.createString(qt),r[s]=c.utf8Length}const o=qt.omalloc(4*t.length);qt.HEAPU32.set(n,o/4);const a=qt.omalloc(4*t.length);qt.HEAPU32.set(r,a/4);const i=qt.createOnigScanner(o,a,t.length);for(let s=0,l=t.length;s<l;s++)qt.ofree(n[s]);qt.ofree(a),qt.ofree(o),i===0&&NC(qt),this._onigBinding=qt,this._ptr=i}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let o=0;if(typeof r=="number"&&(o=r),typeof t=="string"){t=new Hi(t);const a=this._findNextMatchSync(t,n,!1,o);return t.dispose(),a}return this._findNextMatchSync(t,n,!1,o)}_findNextMatchSync(t,n,r,o){const a=this._onigBinding,i=a.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),o);if(i===0)return null;const s=a.HEAPU32;let l=i/4;const c=s[l++],d=s[l++],u=[];for(let h=0;h<d;h++){const p=t.convertUtf8OffsetToUtf16(s[l++]),g=t.convertUtf8OffsetToUtf16(s[l++]);u[h]={start:p,end:g,length:g-p}}return{index:c,captureIndices:u}}};function RC(e){return typeof e.instantiator=="function"}function LC(e){return typeof e.default=="function"}function $C(e){return typeof e.data<"u"}function OC(e){return typeof Response<"u"&&e instanceof Response}function MC(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let ps;function FC(e){if(ps)return ps;async function t(){qt=await _C(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),RC(r)?r=await r.instantiator(n):LC(r)?r=await r.default(n):($C(r)&&(r=r.data),OC(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await BC(r)(n):r=await jC(r)(n):MC(r)?r=await kc(r)(n):r instanceof WebAssembly.Module?r=await kc(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await kc(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return ps=t(),ps}function kc(e){return t=>WebAssembly.instantiate(e,t)}function BC(e){return t=>WebAssembly.instantiateStreaming(e,t)}function jC(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let HC;function UC(){return HC}async function Qg(e){return e&&await FC(e),{createScanner(t){return new PC(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new Hi(t)}}}function zC(e){return jd(e)}function jd(e){return Array.isArray(e)?GC(e):e instanceof RegExp?e:typeof e=="object"?qC(e):e}function GC(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=jd(e[n]);return t}function qC(e){let t={};for(let n in e)t[n]=jd(e[n]);return t}function Xg(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function Jg(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?Jg(e.substring(0,e.length-1)):e.substr(~t+1)}var Ac=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,fs=class{static hasCaptures(t){return t===null?!1:(Ac.lastIndex=0,Ac.test(t))}static replaceCaptures(t,n,r){return t.replace(Ac,(o,a,i,s)=>{let l=r[parseInt(a||i,10)];if(l){let c=n.substring(l.start,l.end);for(;c[0]===".";)c=c.substring(1);switch(s){case"downcase":return c.toLowerCase();case"upcase":return c.toUpperCase();default:return c}}else return o})}};function Zg(e,t){return e<t?-1:e>t?1:0}function e0(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let o=0;o<n;o++){let a=Zg(e[o],t[o]);if(a!==0)return a}return 0}return n-r}function Cp(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function t0(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var n0=class{constructor(t){G(this,"cache",new Map);this.fn=t}get(t){if(this.cache.has(t))return this.cache.get(t);const n=this.fn(t);return this.cache.set(t,n),n}},tl=class{constructor(t,n,r){G(this,"_cachedMatchRoot",new n0(t=>this._root.match(t)));this._colorMap=t,this._defaults=n,this._root=r}static createFromRawTheme(t,n){return this.createFromParsedTheme(YC(t),n)}static createFromParsedTheme(t,n){return QC(t,n)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const n=t.scopeName,r=this._cachedMatchRoot.get(n).find(o=>WC(t.parent,o.parentScopes));return r?new r0(r.fontStyle,r.foreground,r.background):null}},Ic=class Ps{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Ps(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new Ps(n,t[r]);return n}push(t){return new Ps(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function WC(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],o=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],o=!0}for(;e&&!VC(e.scopeName,r);){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function VC(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var r0=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function YC(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let o=0,a=t.length;o<a;o++){let i=t[o];if(!i.settings)continue;let s;if(typeof i.scope=="string"){let u=i.scope;u=u.replace(/^[,]+/,""),u=u.replace(/[,]+$/,""),s=u.split(",")}else Array.isArray(i.scope)?s=i.scope:s=[""];let l=-1;if(typeof i.settings.fontStyle=="string"){l=0;let u=i.settings.fontStyle.split(" ");for(let h=0,p=u.length;h<p;h++)switch(u[h]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let c=null;typeof i.settings.foreground=="string"&&Cp(i.settings.foreground)&&(c=i.settings.foreground);let d=null;typeof i.settings.background=="string"&&Cp(i.settings.background)&&(d=i.settings.background);for(let u=0,h=s.length;u<h;u++){let p=s[u].trim().split(" "),g=p[p.length-1],b=null;p.length>1&&(b=p.slice(0,p.length-1),b.reverse()),n[r++]=new KC(g,b,o,l,c,d)}}return n}var KC=class{constructor(t,n,r,o,a,i){this.scope=t,this.parentScopes=n,this.index=r,this.fontStyle=o,this.foreground=a,this.background=i}},Ir=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Ir||{});function QC(e,t){e.sort((l,c)=>{let d=Zg(l.scope,c.scope);return d!==0||(d=e0(l.parentScopes,c.parentScopes),d!==0)?d:l.index-c.index});let n=0,r="#000000",o="#ffffff";for(;e.length>=1&&e[0].scope==="";){let l=e.shift();l.fontStyle!==-1&&(n=l.fontStyle),l.foreground!==null&&(r=l.foreground),l.background!==null&&(o=l.background)}let a=new XC(t),i=new r0(n,a.getId(r),a.getId(o)),s=new ZC(new Iu(0,null,-1,0,0),[]);for(let l=0,c=e.length;l<c;l++){let d=e[l];s.insert(0,d.scope,d.parentScopes,d.fontStyle,a.getId(d.foreground),a.getId(d.background))}return new tl(a,i,s)}var XC=class{constructor(t){G(this,"_isFrozen");G(this,"_lastColorId");G(this,"_id2color");G(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let n=0,r=t.length;n<r;n++)this._color2id[t[n]]=n,this._id2color[n]=t[n]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let n=this._color2id[t];if(n)return n;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return n=++this._lastColorId,this._color2id[t]=n,this._id2color[n]=t,n}getColorMap(){return this._id2color.slice(0)}},JC=Object.freeze([]),Iu=class o0{constructor(t,n,r,o,a){G(this,"scopeDepth");G(this,"parentScopes");G(this,"fontStyle");G(this,"foreground");G(this,"background");this.scopeDepth=t,this.parentScopes=n||JC,this.fontStyle=r,this.foreground=o,this.background=a}clone(){return new o0(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,o=t.length;r<o;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,o){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),o!==0&&(this.background=o)}},ZC=class _u{constructor(t,n=[],r={}){G(this,"_rulesWithParentScopes");this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,o=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[o]===">"&&o++,!(r>=t.parentScopes.length||o>=n.parentScopes.length);){const a=n.parentScopes[o].length-t.parentScopes[r].length;if(a!==0)return a;r++,o++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),o,a;if(r===-1?(o=t,a=""):(o=t.substring(0,r),a=t.substring(r+1)),this._children.hasOwnProperty(o))return this._children[o].match(a)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(_u._cmpBySpecificity),n}insert(t,n,r,o,a,i){if(n===""){this._doInsertHere(t,r,o,a,i);return}let s=n.indexOf("."),l,c;s===-1?(l=n,c=""):(l=n.substring(0,s),c=n.substring(s+1));let d;this._children.hasOwnProperty(l)?d=this._children[l]:(d=new _u(this._mainRule.clone(),Iu.cloneArr(this._rulesWithParentScopes)),this._children[l]=d),d.insert(t+1,c,r,o,a,i)}_doInsertHere(t,n,r,o,a){if(n===null){this._mainRule.acceptOverwrite(t,r,o,a);return}for(let i=0,s=this._rulesWithParentScopes.length;i<s;i++){let l=this._rulesWithParentScopes[i];if(e0(l.parentScopes,n)===0){l.acceptOverwrite(t,r,o,a);return}}r===-1&&(r=this._mainRule.fontStyle),o===0&&(o=this._mainRule.foreground),a===0&&(a=this._mainRule.background),this._rulesWithParentScopes.push(new Iu(t,n,r,o,a))}},Ea=class wn{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=wn.getLanguageId(t),r=wn.getTokenType(t),o=wn.getFontStyle(t),a=wn.getForeground(t),i=wn.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:o,foreground:a,background:i})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,o,a,i,s){let l=wn.getLanguageId(t),c=wn.getTokenType(t),d=wn.containsBalancedBrackets(t)?1:0,u=wn.getFontStyle(t),h=wn.getForeground(t),p=wn.getBackground(t);return n!==0&&(l=n),r!==8&&(c=r),o!==null&&(d=o?1:0),a!==-1&&(u=a),i!==0&&(h=i),s!==0&&(p=s),(l<<0|c<<8|d<<10|u<<11|h<<15|p<<24)>>>0}};function nl(e,t){const n=[],r=ev(e);let o=r.next();for(;o!==null;){let l=0;if(o.length===2&&o.charAt(1)===":"){switch(o.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=r.next()}let c=i();if(n.push({matcher:c,priority:l}),o!==",")break;o=r.next()}return n;function a(){if(o==="-"){o=r.next();const l=a();return c=>!!l&&!l(c)}if(o==="("){o=r.next();const l=s();return o===")"&&(o=r.next()),l}if(vp(o)){const l=[];do l.push(o),o=r.next();while(vp(o));return c=>t(l,c)}return null}function i(){const l=[];let c=a();for(;c;)l.push(c),c=a();return d=>l.every(u=>u(d))}function s(){const l=[];let c=i();for(;c&&(l.push(c),o==="|"||o===",");){do o=r.next();while(o==="|"||o===",");c=i()}return d=>l.some(u=>u(d))}}function vp(e){return!!e&&!!e.match(/[\w\.:]+/)}function ev(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function a0(e){typeof e.dispose=="function"&&e.dispose()}var vi=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},tv=class{constructor(t,n){this.scopeName=t,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}},nv=class{constructor(){G(this,"_references",[]);G(this,"_seenReferenceKeys",new Set);G(this,"visitedRule",new Set)}get references(){return this._references}add(t){const n=t.toKey();this._seenReferenceKeys.has(n)||(this._seenReferenceKeys.add(n),this._references.push(t))}},rv=class{constructor(t,n){G(this,"seenFullScopeRequests",new Set);G(this,"seenPartialScopeRequests",new Set);G(this,"Q");this.repo=t,this.initialScopeName=n,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new vi(this.initialScopeName)]}processQueue(){const t=this.Q;this.Q=[];const n=new nv;for(const r of t)ov(r,this.initialScopeName,this.repo,n);for(const r of n.references)if(r instanceof vi){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function ov(e,t,n,r){const o=n.lookup(e.scopeName);if(!o){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const a=n.lookup(t);e instanceof vi?Rs({baseGrammar:a,selfGrammar:o},r):Du(e.ruleName,{baseGrammar:a,selfGrammar:o,repository:o.repository},r);const i=n.injections(e.scopeName);if(i)for(const s of i)r.add(new vi(s))}function Du(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];rl([r],t,n)}}function Rs(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&rl(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&rl(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function rl(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const o=r.repository?Xg({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&rl(r.patterns,{...t,repository:o},n);const a=r.include;if(!a)continue;const i=i0(a);switch(i.kind){case 0:Rs({...t,selfGrammar:t.baseGrammar},n);break;case 1:Rs(t,n);break;case 2:Du(i.ruleName,{...t,repository:o},n);break;case 3:case 4:const s=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){const l={baseGrammar:t.baseGrammar,selfGrammar:s,repository:o};i.kind===4?Du(i.ruleName,l,n):Rs(l,n)}else i.kind===4?n.add(new tv(i.scopeName,i.ruleName)):n.add(new vi(i.scopeName));break}}}var av=class{constructor(){G(this,"kind",0)}},iv=class{constructor(){G(this,"kind",1)}},sv=class{constructor(t){G(this,"kind",2);this.ruleName=t}},lv=class{constructor(t){G(this,"kind",3);this.scopeName=t}},cv=class{constructor(t,n){G(this,"kind",4);this.scopeName=t,this.ruleName=n}};function i0(e){if(e==="$base")return new av;if(e==="$self")return new iv;const t=e.indexOf("#");if(t===-1)return new lv(e);if(t===0)return new sv(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new cv(n,r)}}var uv=/\\(\d+)/,Sp=/\\(\d+)/g,dv=-1,s0=-2,Ui=class{constructor(t,n,r,o){G(this,"$location");G(this,"id");G(this,"_nameIsCapturing");G(this,"_name");G(this,"_contentNameIsCapturing");G(this,"_contentName");this.$location=t,this.id=n,this._name=r||null,this._nameIsCapturing=fs.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=fs.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${Jg(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,n){return!this._nameIsCapturing||this._name===null||t===null||n===null?this._name:fs.replaceCaptures(this._name,t,n)}getContentName(t,n){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:fs.replaceCaptures(this._contentName,t,n)}},hv=class extends Ui{constructor(n,r,o,a,i){super(n,r,o,a);G(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(n,r){throw new Error("Not supported!")}compile(n,r){throw new Error("Not supported!")}compileAG(n,r,o,a){throw new Error("Not supported!")}},pv=class extends Ui{constructor(n,r,o,a,i){super(n,r,o,null);G(this,"_match");G(this,"captures");G(this,"_cachedCompiledPatterns");this._match=new Si(a,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(n,r){r.push(this._match)}compile(n,r){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,r,o,a){return this._getCachedCompiledPatterns(n).compileAG(n,o,a)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ki,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},kp=class extends Ui{constructor(n,r,o,a,i){super(n,r,o,a);G(this,"hasMissingPatterns");G(this,"patterns");G(this,"_cachedCompiledPatterns");this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(n,r){for(const o of this.patterns)n.getRule(o).collectPatterns(n,r)}compile(n,r){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,r,o,a){return this._getCachedCompiledPatterns(n).compileAG(n,o,a)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ki,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},wu=class extends Ui{constructor(n,r,o,a,i,s,l,c,d,u){super(n,r,o,a);G(this,"_begin");G(this,"beginCaptures");G(this,"_end");G(this,"endHasBackReferences");G(this,"endCaptures");G(this,"applyEndPatternLast");G(this,"hasMissingPatterns");G(this,"patterns");G(this,"_cachedCompiledPatterns");this._begin=new Si(i,this.id),this.beginCaptures=s,this._end=new Si(l||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=c,this.applyEndPatternLast=d||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(n,r){return this._end.resolveBackReferences(n,r)}collectPatterns(n,r){r.push(this._begin)}compile(n,r){return this._getCachedCompiledPatterns(n,r).compile(n)}compileAG(n,r,o,a){return this._getCachedCompiledPatterns(n,r).compileAG(n,o,a)}_getCachedCompiledPatterns(n,r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ki;for(const o of this.patterns)n.getRule(o).collectPatterns(n,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,r):this._cachedCompiledPatterns.setSource(0,r)),this._cachedCompiledPatterns}},ol=class extends Ui{constructor(n,r,o,a,i,s,l,c,d){super(n,r,o,a);G(this,"_begin");G(this,"beginCaptures");G(this,"whileCaptures");G(this,"_while");G(this,"whileHasBackReferences");G(this,"hasMissingPatterns");G(this,"patterns");G(this,"_cachedCompiledPatterns");G(this,"_cachedCompiledWhilePatterns");this._begin=new Si(i,this.id),this.beginCaptures=s,this.whileCaptures=c,this._while=new Si(l,s0),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(n,r){return this._while.resolveBackReferences(n,r)}collectPatterns(n,r){r.push(this._begin)}compile(n,r){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,r,o,a){return this._getCachedCompiledPatterns(n).compileAG(n,o,a)}_getCachedCompiledPatterns(n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ki;for(const r of this.patterns)n.getRule(r).collectPatterns(n,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(n,r){return this._getCachedCompiledWhilePatterns(n,r).compile(n)}compileWhileAG(n,r,o,a){return this._getCachedCompiledWhilePatterns(n,r).compileAG(n,o,a)}_getCachedCompiledWhilePatterns(n,r){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ki,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,r||"￿"),this._cachedCompiledWhilePatterns}},l0=class nn{static createCaptureRule(t,n,r,o,a){return t.registerRule(i=>new hv(n,i,r,o,a))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(o=>{if(t.id=o,t.match)return new pv(t.$vscodeTextmateLocation,t.id,t.name,t.match,nn._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=Xg({},r,t.repository));let a=t.patterns;return typeof a>"u"&&t.include&&(a=[{include:t.include}]),new kp(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,nn._compilePatterns(a,n,r))}return t.while?new ol(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,nn._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,nn._compileCaptures(t.whileCaptures||t.captures,n,r),nn._compilePatterns(t.patterns,n,r)):new wu(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,nn._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,nn._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,nn._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let o=[];if(t){let a=0;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const s=parseInt(i,10);s>a&&(a=s)}for(let i=0;i<=a;i++)o[i]=null;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const s=parseInt(i,10);let l=0;t[i].patterns&&(l=nn.getCompiledRuleId(t[i],n,r)),o[s]=nn.createCaptureRule(n,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,l)}}return o}static _compilePatterns(t,n,r){let o=[];if(t)for(let a=0,i=t.length;a<i;a++){const s=t[a];let l=-1;if(s.include){const c=i0(s.include);switch(c.kind){case 0:case 1:l=nn.getCompiledRuleId(r[s.include],n,r);break;case 2:let d=r[c.ruleName];d&&(l=nn.getCompiledRuleId(d,n,r));break;case 3:case 4:const u=c.scopeName,h=c.kind===4?c.ruleName:null,p=n.getExternalGrammar(u,r);if(p)if(h){let g=p.repository[h];g&&(l=nn.getCompiledRuleId(g,n,p.repository))}else l=nn.getCompiledRuleId(p.repository.$self,n,p.repository);break}}else l=nn.getCompiledRuleId(s,n,r);if(l!==-1){const c=n.getRule(l);let d=!1;if((c instanceof kp||c instanceof wu||c instanceof ol)&&c.hasMissingPatterns&&c.patterns.length===0&&(d=!0),d)continue;o.push(l)}}return{patterns:o,hasMissingPatterns:(t?t.length:0)!==o.length}}},Si=class c0{constructor(t,n){G(this,"source");G(this,"ruleId");G(this,"hasAnchor");G(this,"hasBackReferences");G(this,"_anchorCache");if(t&&typeof t=="string"){const r=t.length;let o=0,a=[],i=!1;for(let s=0;s<r;s++)if(t.charAt(s)==="\\"&&s+1<r){const l=t.charAt(s+1);l==="z"?(a.push(t.substring(o,s)),a.push("$(?!\\n)(?<!\\n)"),o=s+2):(l==="A"||l==="G")&&(i=!0),s++}this.hasAnchor=i,o===0?this.source=t:(a.push(t.substring(o,r)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=uv.test(this.source):this.hasBackReferences=!1}clone(){return new c0(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(o=>t.substring(o.start,o.end));return Sp.lastIndex=0,this.source.replace(Sp,(o,a)=>t0(r[parseInt(a,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],o=[],a,i,s,l;for(a=0,i=this.source.length;a<i;a++)s=this.source.charAt(a),t[a]=s,n[a]=s,r[a]=s,o[a]=s,s==="\\"&&a+1<i&&(l=this.source.charAt(a+1),l==="A"?(t[a+1]="￿",n[a+1]="￿",r[a+1]="A",o[a+1]="A"):l==="G"?(t[a+1]="￿",n[a+1]="G",r[a+1]="￿",o[a+1]="G"):(t[a+1]=l,n[a+1]=l,r[a+1]=l,o[a+1]=l),a++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:o.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},ki=class{constructor(){G(this,"_items");G(this,"_hasAnchors");G(this,"_cached");G(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,n){this._items[t].source!==n&&(this._disposeCaches(),this._items[t].setSource(n))}compile(t){if(!this._cached){let n=this._items.map(r=>r.source);this._cached=new Ap(t,n,this._items.map(r=>r.ruleId))}return this._cached}compileAG(t,n,r){return this._hasAnchors?n?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,n,r){let o=this._items.map(a=>a.resolveAnchors(n,r));return new Ap(t,o,this._items.map(a=>a.ruleId))}},Ap=class{constructor(t,n,r){G(this,"scanner");this.regExps=n,this.rules=r,this.scanner=t.createOnigScanner(n)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let n=0,r=this.rules.length;n<r;n++)t.push(" - "+this.rules[n]+": "+this.regExps[n]);return t.join(`
17
- `)}findNextMatchSync(t,n,r){const o=this.scanner.findNextMatchSync(t,n,r);return o?{ruleId:this.rules[o.index],captureIndices:o.captureIndices}:null}},_c=class{constructor(t,n){this.languageId=t,this.tokenType=n}},Ar,fv=(Ar=class{constructor(t,n){G(this,"_defaultAttributes");G(this,"_embeddedLanguagesMatcher");G(this,"_getBasicScopeAttributes",new n0(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new _c(n,r)}));this._defaultAttributes=new _c(t,8),this._embeddedLanguagesMatcher=new mv(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Ar._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Ar.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},G(Ar,"_NULL_SCOPE_METADATA",new _c(0,0)),G(Ar,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),Ar),mv=class{constructor(t){G(this,"values");G(this,"scopesRegExp");if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const n=t.map(([r,o])=>t0(r));n.sort(),n.reverse(),this.scopesRegExp=new RegExp(`^((${n.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const n=t.match(this.scopesRegExp);if(n)return this.values.get(n[1])}};typeof process<"u"&&process.env.VSCODE_TEXTMATE_DEBUG;var Ip=class{constructor(t,n){this.stack=t,this.stoppedEarly=n}};function u0(e,t,n,r,o,a,i,s){const l=t.content.length;let c=!1,d=-1;if(i){const p=gv(e,t,n,r,o,a);o=p.stack,r=p.linePos,n=p.isFirstLine,d=p.anchorPosition}const u=Date.now();for(;!c;){if(s!==0&&Date.now()-u>s)return new Ip(o,!0);h()}return new Ip(o,!1);function h(){const p=yv(e,t,n,r,o,d);if(!p){a.produce(o,l),c=!0;return}const g=p.captureIndices,b=p.matchedRuleId,x=g&&g.length>0?g[0].end>r:!1;if(b===dv){const E=o.getRule(e);a.produce(o,g[0].start),o=o.withContentNameScopesList(o.nameScopesList),ni(e,t,n,o,a,E.endCaptures,g),a.produce(o,g[0].end);const v=o;if(o=o.parent,d=v.getAnchorPos(),!x&&v.getEnterPos()===r){o=v,a.produce(o,l),c=!0;return}}else{const E=e.getRule(b);a.produce(o,g[0].start);const v=o,C=E.getName(t.content,g),I=o.contentNameScopesList.pushAttributed(C,e);if(o=o.push(b,r,d,g[0].end===l,null,I,I),E instanceof wu){const N=E;ni(e,t,n,o,a,N.beginCaptures,g),a.produce(o,g[0].end),d=g[0].end;const S=N.getContentName(t.content,g),M=I.pushAttributed(S,e);if(o=o.withContentNameScopesList(M),N.endHasBackReferences&&(o=o.withEndRule(N.getEndWithResolvedBackReferences(t.content,g))),!x&&v.hasSameRuleAs(o)){o=o.pop(),a.produce(o,l),c=!0;return}}else if(E instanceof ol){const N=E;ni(e,t,n,o,a,N.beginCaptures,g),a.produce(o,g[0].end),d=g[0].end;const S=N.getContentName(t.content,g),M=I.pushAttributed(S,e);if(o=o.withContentNameScopesList(M),N.whileHasBackReferences&&(o=o.withEndRule(N.getWhileWithResolvedBackReferences(t.content,g))),!x&&v.hasSameRuleAs(o)){o=o.pop(),a.produce(o,l),c=!0;return}}else if(ni(e,t,n,o,a,E.captures,g),a.produce(o,g[0].end),o=o.pop(),!x){o=o.safePop(),a.produce(o,l),c=!0;return}}g[0].end>r&&(r=g[0].end,n=!1)}}function gv(e,t,n,r,o,a){let i=o.beginRuleCapturedEOL?0:-1;const s=[];for(let l=o;l;l=l.pop()){const c=l.getRule(e);c instanceof ol&&s.push({rule:c,stack:l})}for(let l=s.pop();l;l=s.pop()){const{ruleScanner:c,findOptions:d}=xv(l.rule,e,l.stack.endRule,n,r===i),u=c.findNextMatchSync(t,r,d);if(u){if(u.ruleId!==s0){o=l.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(l.stack,u.captureIndices[0].start),ni(e,t,n,l.stack,a,l.rule.whileCaptures,u.captureIndices),a.produce(l.stack,u.captureIndices[0].end),i=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}else{o=l.stack.pop();break}}return{stack:o,linePos:r,anchorPosition:i,isFirstLine:n}}function yv(e,t,n,r,o,a){const i=bv(e,t,n,r,o,a),s=e.getInjections();if(s.length===0)return i;const l=Ev(s,e,t,n,r,o,a);if(!l)return i;if(!i)return l;const c=i.captureIndices[0].start,d=l.captureIndices[0].start;return d<c||l.priorityMatch&&d===c?l:i}function bv(e,t,n,r,o,a){const i=o.getRule(e),{ruleScanner:s,findOptions:l}=d0(i,e,o.endRule,n,r===a),c=s.findNextMatchSync(t,r,l);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function Ev(e,t,n,r,o,a,i){let s=Number.MAX_VALUE,l=null,c,d=0;const u=a.contentNameScopesList.getScopeNames();for(let h=0,p=e.length;h<p;h++){const g=e[h];if(!g.matcher(u))continue;const b=t.getRule(g.ruleId),{ruleScanner:x,findOptions:E}=d0(b,t,null,r,o===i),v=x.findNextMatchSync(n,o,E);if(!v)continue;const C=v.captureIndices[0].start;if(!(C>=s)&&(s=C,l=v.captureIndices,c=v.ruleId,d=g.priority,s===o))break}return l?{priorityMatch:d===-1,captureIndices:l,matchedRuleId:c}:null}function d0(e,t,n,r,o){return{ruleScanner:e.compileAG(t,n,r,o),findOptions:0}}function xv(e,t,n,r,o){return{ruleScanner:e.compileWhileAG(t,n,r,o),findOptions:0}}function ni(e,t,n,r,o,a,i){if(a.length===0)return;const s=t.content,l=Math.min(a.length,i.length),c=[],d=i[0].end;for(let u=0;u<l;u++){const h=a[u];if(h===null)continue;const p=i[u];if(p.length===0)continue;if(p.start>d)break;for(;c.length>0&&c[c.length-1].endPos<=p.start;)o.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?o.produceFromScopes(c[c.length-1].scopes,p.start):o.produce(r,p.start),h.retokenizeCapturedWithRuleId){const b=h.getName(s,i),x=r.contentNameScopesList.pushAttributed(b,e),E=h.getContentName(s,i),v=x.pushAttributed(E,e),C=r.push(h.retokenizeCapturedWithRuleId,p.start,-1,!1,null,x,v),I=e.createOnigString(s.substring(0,p.end));u0(e,I,n&&p.start===0,p.start,C,o,!1,0),a0(I);continue}const g=h.getName(s,i);if(g!==null){const b=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(g,e);c.push(new Tv(b,p.end))}}for(;c.length>0;)o.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var Tv=class{constructor(t,n){G(this,"scopes");G(this,"endPos");this.scopes=t,this.endPos=n}};function Cv(e,t,n,r,o,a,i,s){return new Sv(e,t,n,r,o,a,i,s)}function _p(e,t,n,r,o){const a=nl(t,al),i=l0.getCompiledRuleId(n,r,o.repository);for(const s of a)e.push({debugSelector:t,matcher:s.matcher,ruleId:i,grammar:o,priority:s.priority})}function al(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let o=n;o<t.length;o++)if(vv(t[o],r))return n=o+1,!0;return!1})}function vv(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var Sv=class{constructor(t,n,r,o,a,i,s,l){G(this,"_rootId");G(this,"_lastRuleId");G(this,"_ruleId2desc");G(this,"_includedGrammars");G(this,"_grammarRepository");G(this,"_grammar");G(this,"_injections");G(this,"_basicScopeAttributesProvider");G(this,"_tokenTypeMatchers");if(this._rootScopeName=t,this.balancedBracketSelectors=i,this._onigLib=l,this._basicScopeAttributesProvider=new fv(r,o),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=Dp(n,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const c of Object.keys(a)){const d=nl(c,al);for(const u of d)this._tokenTypeMatchers.push({matcher:u.matcher,type:a[c]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:a=>a===this._rootScopeName?this._grammar:this.getExternalGrammar(a),injections:a=>this._grammarRepository.injections(a)},n=[],r=this._rootScopeName,o=t.lookup(r);if(o){const a=o.injections;if(a)for(let s in a)_p(n,s,a[s],this,o);const i=this._grammarRepository.injections(r);i&&i.forEach(s=>{const l=this.getExternalGrammar(s);if(l){const c=l.injectionSelector;c&&_p(n,c,l,this,l)}})}return n.sort((a,i)=>a.priority-i.priority),n}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const n=++this._lastRuleId,r=t(n);return this._ruleId2desc[n]=r,r}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,n){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const r=this._grammarRepository.lookup(t);if(r)return this._includedGrammars[t]=Dp(r,n&&n.$base),this._includedGrammars[t]}}tokenizeLine(t,n,r=0){const o=this._tokenize(t,n,!1,r);return{tokens:o.lineTokens.getResult(o.ruleStack,o.lineLength),ruleStack:o.ruleStack,stoppedEarly:o.stoppedEarly}}tokenizeLine2(t,n,r=0){const o=this._tokenize(t,n,!0,r);return{tokens:o.lineTokens.getBinaryResult(o.ruleStack,o.lineLength),ruleStack:o.ruleStack,stoppedEarly:o.stoppedEarly}}_tokenize(t,n,r,o){this._rootId===-1&&(this._rootId=l0.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!n||n===Nu.NULL){a=!0;const d=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),h=Ea.set(0,d.languageId,d.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),p=this.getRule(this._rootId).getName(null,null);let g;p?g=ci.createRootAndLookUpScopeName(p,h,this):g=ci.createRoot("unknown",h),n=new Nu(null,this._rootId,-1,-1,!1,null,g,g)}else a=!1,n.reset();t=t+`
16
+ export default theme;`}const Ax=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Ix(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=Ax(t),i=Object.keys(a);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,p){const g=i.indexOf(p);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:p)-r/100}${n})`}function d(h){return i.indexOf(h)+1<i.length?c(h,i[i.indexOf(h)+1]):s(h)}function u(h){const p=i.indexOf(h);return p===0?s(i[1]):p===i.length-1?l(i[p]):c(h,i[i.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:i,values:a,up:s,down:l,between:c,only:d,not:u,unit:n,...o}}const _x={borderRadius:4};function up(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{const a=/min-width:\s*([0-9.]+)/;return+(r.match(a)?.[1]||0)-+(o.match(a)?.[1]||0)});return n.length?n.reduce((r,o)=>{const a=t[o];return delete r[o],r[o]=a,r},{...t}):t}function Dx(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function wx(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}function Nx(e){const t=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function n(a,i){a.up=(...s)=>t(e.breakpoints.up(...s),i),a.down=(...s)=>t(e.breakpoints.down(...s),i),a.between=(...s)=>t(e.breakpoints.between(...s),i),a.only=(...s)=>t(e.breakpoints.only(...s),i),a.not=(...s)=>{const l=t(e.breakpoints.not(...s),i);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const Pl={xs:0,sm:600,md:900,lg:1200,xl:1536},dp={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Pl[e]}px)`},Px={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Pl[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Dr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||dp;return t.reduce((a,i,s)=>(a[o.up(o.keys[s])]=n(t[s]),a),{})}if(typeof t=="object"){const o=r.breakpoints||dp;return Object.keys(t).reduce((a,i)=>{if(Dx(o.keys,i)){const s=wx(r.containerQueries?r:Px,i);s&&(a[s]=n(t[i],i))}else if(Object.keys(o.values||Pl).includes(i)){const s=o.up(i);a[s]=n(t[i],i)}else{const s=i;a[s]=t[s]}return a},{})}return n(t)}function Rx(e={}){return e.keys?.reduce((t,n)=>{const r=e.up(n);return t[r]={},t},{})||{}}function hp(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Kn(e){if(typeof e!="string")throw new Error(_o(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Rl(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Js(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Rl(e,n)||r,t&&(o=t(o,r,e)),o}function Pt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],l=i.theme,c=Rl(l,r)||{};return Dr(i,s,d=>{let u=Js(c,o,d);return d===u&&typeof d=="string"&&(u=Js(c,o,`${t}${d==="default"?"":Kn(d)}`,d)),n===!1?u:{[n]:u}})};return a.propTypes={},a.filterProps=[t],a}function li(e,t){return t?In(e,t,{clone:!1}):e}function Lx(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const $x={m:"margin",p:"padding"},Ox={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},pp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Mx=Lx(e=>{if(e.length>2)if(pp[e])e=pp[e];else return[e];const[t,n]=e.split(""),r=$x[t],o=Ox[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),wd=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Nd=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...wd,...Nd];function Bi(e,t,n,r){const o=Rl(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?o.startsWith("var(")&&a===0?0:o.startsWith("var(")&&a===1?o:`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a),s=o[i];return a>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof o=="function"?o:()=>{}}function Pd(e){return Bi(e,"spacing",8)}function ji(e,t){return typeof t=="string"||t==null?t:e(t)}function Fx(e,t){return n=>e.reduce((r,o)=>(r[o]=ji(t,n),r),{})}function Bx(e,t,n,r){if(!t.includes(n))return null;const o=Mx(n),a=Fx(o,r),i=e[n];return Dr(e,i,a)}function $g(e,t){const n=Pd(e.theme);return Object.keys(e).map(r=>Bx(e,t,r,n)).reduce(li,{})}function At(e){return $g(e,wd)}At.propTypes={};At.filterProps=wd;function It(e){return $g(e,Nd)}It.propTypes={};It.filterProps=Nd;function jx(e=8,t=Pd({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function Ll(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?li(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function kn(e){return e<=1&&e!==0?`${e*100}%`:e}const Hx=Pt({prop:"width",transform:kn}),Rd=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Pl[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:kn(n)}};return Dr(e,e.maxWidth,t)}return null};Rd.filterProps=["maxWidth"];const Ux=Pt({prop:"minWidth",transform:kn}),zx=Pt({prop:"height",transform:kn}),Gx=Pt({prop:"maxHeight",transform:kn}),qx=Pt({prop:"minHeight",transform:kn});Pt({prop:"size",cssProperty:"width",transform:kn});Pt({prop:"size",cssProperty:"height",transform:kn});const Wx=Pt({prop:"boxSizing"});Ll(Hx,Rd,Ux,zx,Gx,qx,Wx);const $l=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Bi(e.theme,"spacing",8),n=r=>({gap:ji(t,r)});return Dr(e,e.gap,n)}return null};$l.propTypes={};$l.filterProps=["gap"];const Ol=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Bi(e.theme,"spacing",8),n=r=>({columnGap:ji(t,r)});return Dr(e,e.columnGap,n)}return null};Ol.propTypes={};Ol.filterProps=["columnGap"];const Ml=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Bi(e.theme,"spacing",8),n=r=>({rowGap:ji(t,r)});return Dr(e,e.rowGap,n)}return null};Ml.propTypes={};Ml.filterProps=["rowGap"];const Vx=Pt({prop:"gridColumn"}),Yx=Pt({prop:"gridRow"}),Kx=Pt({prop:"gridAutoFlow"}),Qx=Pt({prop:"gridAutoColumns"}),Xx=Pt({prop:"gridAutoRows"}),Jx=Pt({prop:"gridTemplateColumns"}),Zx=Pt({prop:"gridTemplateRows"}),eT=Pt({prop:"gridTemplateAreas"}),tT=Pt({prop:"gridArea"});Ll($l,Ol,Ml,Vx,Yx,Kx,Qx,Xx,Jx,Zx,eT,tT);function ua(e,t){return t==="grey"?t:e}const nT=Pt({prop:"color",themeKey:"palette",transform:ua}),rT=Pt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ua}),oT=Pt({prop:"backgroundColor",themeKey:"palette",transform:ua});Ll(nT,rT,oT);function $n(e){return typeof e!="number"?e:`${e}px solid`}function Un(e,t){return Pt({prop:e,themeKey:"borders",transform:t})}const aT=Un("border",$n),iT=Un("borderTop",$n),sT=Un("borderRight",$n),lT=Un("borderBottom",$n),cT=Un("borderLeft",$n),uT=Un("borderColor"),dT=Un("borderTopColor"),hT=Un("borderRightColor"),pT=Un("borderBottomColor"),fT=Un("borderLeftColor"),mT=Un("outline",$n),gT=Un("outlineColor"),Fl=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Bi(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:ji(t,r)});return Dr(e,e.borderRadius,n)}return null};Fl.propTypes={};Fl.filterProps=["borderRadius"];Ll(aT,iT,sT,lT,cT,uT,dT,hT,pT,fT,Fl,mT,gT);const Bl={border:{themeKey:"borders",transform:$n},borderTop:{themeKey:"borders",transform:$n},borderRight:{themeKey:"borders",transform:$n},borderBottom:{themeKey:"borders",transform:$n},borderLeft:{themeKey:"borders",transform:$n},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$n},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Fl},color:{themeKey:"palette",transform:ua},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ua},backgroundColor:{themeKey:"palette",transform:ua},p:{style:It},pt:{style:It},pr:{style:It},pb:{style:It},pl:{style:It},px:{style:It},py:{style:It},padding:{style:It},paddingTop:{style:It},paddingRight:{style:It},paddingBottom:{style:It},paddingLeft:{style:It},paddingX:{style:It},paddingY:{style:It},paddingInline:{style:It},paddingInlineStart:{style:It},paddingInlineEnd:{style:It},paddingBlock:{style:It},paddingBlockStart:{style:It},paddingBlockEnd:{style:It},m:{style:At},mt:{style:At},mr:{style:At},mb:{style:At},ml:{style:At},mx:{style:At},my:{style:At},margin:{style:At},marginTop:{style:At},marginRight:{style:At},marginBottom:{style:At},marginLeft:{style:At},marginX:{style:At},marginY:{style:At},marginInline:{style:At},marginInlineStart:{style:At},marginInlineEnd:{style:At},marginBlock:{style:At},marginBlockStart:{style:At},marginBlockEnd:{style:At},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:$l},rowGap:{style:Ml},columnGap:{style:Ol},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:kn},maxWidth:{style:Rd},minWidth:{transform:kn},height:{transform:kn},maxHeight:{transform:kn},minHeight:{transform:kn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function yT(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function bT(e,t){return typeof e=="function"?e(t):e}function ET(){function e(n,r,o,a){const i={[n]:r,theme:o},s=a[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:d,style:u}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=Rl(o,c)||{};return u?u(i):Dr(i,r,p=>{let g=Js(h,d,p);return p===g&&typeof p=="string"&&(g=Js(h,d,`${n}${p==="default"?"":Kn(p)}`,p)),l===!1?g:{[l]:g}})}function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Bl;function s(l){let c=l;if(typeof l=="function")c=l(o);else if(typeof l!="object")return l;if(!c)return null;const d=Rx(o.breakpoints),u=Object.keys(d);let h=d;return Object.keys(c).forEach(p=>{const g=bT(c[p],o);if(g!=null)if(typeof g=="object")if(i[p])h=li(h,e(p,g,o,i));else{const b=Dr({theme:o},g,x=>({[p]:x}));yT(b,g)?h[p]=t({sx:g,theme:o,nested:!0}):h=li(h,b)}else h=li(h,e(p,g,o,i))}),!a&&o.modularCssLayers?{"@layer sx":up(o,hp(u,h))}:up(o,hp(u,h))}return Array.isArray(r)?r.map(s):s(r)}return t}const ya=ET();ya.filterProps=["sx"];function xT(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Ld(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...i}=e,s=Ix(n),l=jx(o);let c=In({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{..._x,...a}},i);return c=Nx(c),c.applyStyles=xT,c=t.reduce((d,u)=>In(d,u),c),c.unstable_sxConfig={...Bl,...i?.unstable_sxConfig},c.unstable_sx=function(d){return ya({sx:d,theme:this})},c}function Cu(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:i={},typography:s={},shape:l,...c}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(_o(20));const d=Dd(a),u=Ld(e);let h=In(u,{mixins:yx(u.breakpoints,r),palette:d,shadows:xx.slice(),typography:Ex(d,s),transitions:vx(i),zIndex:{...Sx}});return h=In(h,c),h=t.reduce((p,g)=>In(p,g),h),h.unstable_sxConfig={...Bl,...c?.unstable_sxConfig},h.unstable_sx=function(p){return ya({sx:p,theme:this})},h.toRuntimeSource=Lg,h}function TT(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const CT=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=TT(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Og(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Mg(e){return e==="dark"?CT:[]}function vT(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,a=Dd(t);return{palette:a,opacity:{...Og(a.mode),...n},overlays:r||Mg(a.mode),...o}}function ST(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const kT=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],AT=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return kT(e.cssVarPrefix).forEach(s=>{i[s]=n[s],delete n[s]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace("%s",t)]:i,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!=="media")return`${r}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}return r};function IT(e){const t={};return Object.entries(e).forEach(n=>{const[r,o]=n;typeof o=="object"&&(t[r]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}const fp=(e,t,n,r=[])=>{let o=e;t.forEach((a,i)=>{i===t.length-1?Array.isArray(o)?o[Number(a)]=n:o&&typeof o=="object"&&(o[a]=n):o&&typeof o=="object"&&(o[a]||(o[a]=r.includes(a)?[]:{}),o=o[a])})},_T=(e,t,n)=>{function r(o,a=[],i=[]){Object.entries(o).forEach(([s,l])=>{(!n||n&&!n([...a,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...a,s],Array.isArray(l)?[...i,s]:i):t([...a,s],l,i))})}r(e)},DT=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Cc(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},i={};return _T(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(s,l))){const d=`--${n?`${n}-`:""}${s.join("-")}`,u=DT(s,l);Object.assign(o,{[d]:u}),fp(a,s,`var(${d})`,c),fp(i,s,`var(${d}, ${u})`,c)}},s=>s[0]==="vars"),{css:o,vars:a,varsWithDefaults:i}}function wT(e,t={}){const{getSelector:n=x,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:a={},components:i,defaultColorScheme:s="light",...l}=e,{vars:c,css:d,varsWithDefaults:u}=Cc(l,t);let h=u;const p={},{[s]:g,...b}=a;if(Object.entries(b||{}).forEach(([E,v])=>{const{vars:C,css:I,varsWithDefaults:w}=Cc(v,t);h=In(h,w),p[E]={css:I,vars:C}}),g){const{css:E,vars:v,varsWithDefaults:C}=Cc(g,t);h=In(h,C),p[s]={css:E,vars:v}}function x(E,v){let C=o;if(o==="class"&&(C=".%s"),o==="data"&&(C="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(C=`[${o}="%s"]`),E){if(C==="media")return e.defaultColorScheme===E?":root":{[`@media (prefers-color-scheme: ${a[E]?.palette?.mode||E})`]:{":root":v}};if(C)return e.defaultColorScheme===E?`:root, ${C.replace("%s",String(E))}`:C.replace("%s",String(E))}return":root"}return{vars:h,generateThemeVars:()=>{let E={...c};return Object.entries(p).forEach(([,{vars:v}])=>{E=In(E,v)}),E},generateStyleSheets:()=>{const E=[],v=e.defaultColorScheme||"light";function C(S,M){Object.keys(M).length&&E.push(typeof S=="string"?{[S]:{...M}}:S)}C(n(void 0,{...d}),d);const{[v]:I,...w}=p;if(I){const{css:S}=I,M=a[v]?.palette?.mode,q=!r&&M?{colorScheme:M,...S}:{...S};C(n(v,{...q}),q)}return Object.entries(w).forEach(([S,{css:M}])=>{const q=a[S]?.palette?.mode,B=!r&&q?{colorScheme:q,...M}:{...M};C(n(S,{...B}),B)}),E}}}function NT(e){return function(t){return e==="media"?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:e==="class"?`.${t} &`:e==="data"?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}function PT(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function K(e,t,n){!e[t]&&n&&(e[t]=n)}function ti(e){return typeof e!="string"||!e.startsWith("hsl")?e:wg(e)}function br(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ei(ti(e[t])))}function RT(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const tr=e=>{try{return e()}catch{}},LT=(e="mui")=>qe.unstable_createGetCssVar(e);function vc(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=vT({...t,palette:{mode:o,...t?.palette}});return}const{palette:a,...i}=Cu({...n,palette:{mode:o,...t?.palette}});return e[r]={...t,palette:a,opacity:{...Og(o),...t?.opacity},overlays:t?.overlays||Mg(o)},i}function $T(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:i=ST,colorSchemeSelector:s=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...c}=e,d=Object.keys(n)[0],u=r||(n.light&&d!=="light"?"light":d),h=LT(a),{[u]:p,light:g,dark:b,...x}=n,E={...x};let v=p;if((u==="dark"&&!("dark"in n)||u==="light"&&!("light"in n))&&(v=!0),!v)throw new Error(_o(21,u));const C=vc(E,v,c,u);g&&!E.light&&vc(E,g,void 0,"light"),b&&!E.dark&&vc(E,b,void 0,"dark");let I={defaultColorScheme:u,...C,cssVarPrefix:a,colorSchemeSelector:s,rootSelector:l,getCssVar:h,colorSchemes:E,font:{...IT(C.typography),...C.font},spacing:RT(c.spacing)};Object.keys(I.colorSchemes).forEach(B=>{const y=I.colorSchemes[B].palette,R=F=>{const $=F.split("-"),U=$[1],Y=$[2];return h(F,y[U][Y])};if(y.mode==="light"&&(K(y.common,"background","#fff"),K(y.common,"onBackground","#000")),y.mode==="dark"&&(K(y.common,"background","#000"),K(y.common,"onBackground","#fff")),PT(y,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),y.mode==="light"){K(y.Alert,"errorColor",tt(y.error.light,.6)),K(y.Alert,"infoColor",tt(y.info.light,.6)),K(y.Alert,"successColor",tt(y.success.light,.6)),K(y.Alert,"warningColor",tt(y.warning.light,.6)),K(y.Alert,"errorFilledBg",R("palette-error-main")),K(y.Alert,"infoFilledBg",R("palette-info-main")),K(y.Alert,"successFilledBg",R("palette-success-main")),K(y.Alert,"warningFilledBg",R("palette-warning-main")),K(y.Alert,"errorFilledColor",tr(()=>y.getContrastText(y.error.main))),K(y.Alert,"infoFilledColor",tr(()=>y.getContrastText(y.info.main))),K(y.Alert,"successFilledColor",tr(()=>y.getContrastText(y.success.main))),K(y.Alert,"warningFilledColor",tr(()=>y.getContrastText(y.warning.main))),K(y.Alert,"errorStandardBg",nt(y.error.light,.9)),K(y.Alert,"infoStandardBg",nt(y.info.light,.9)),K(y.Alert,"successStandardBg",nt(y.success.light,.9)),K(y.Alert,"warningStandardBg",nt(y.warning.light,.9)),K(y.Alert,"errorIconColor",R("palette-error-main")),K(y.Alert,"infoIconColor",R("palette-info-main")),K(y.Alert,"successIconColor",R("palette-success-main")),K(y.Alert,"warningIconColor",R("palette-warning-main")),K(y.AppBar,"defaultBg",R("palette-grey-100")),K(y.Avatar,"defaultBg",R("palette-grey-400")),K(y.Button,"inheritContainedBg",R("palette-grey-300")),K(y.Button,"inheritContainedHoverBg",R("palette-grey-A100")),K(y.Chip,"defaultBorder",R("palette-grey-400")),K(y.Chip,"defaultAvatarColor",R("palette-grey-700")),K(y.Chip,"defaultIconColor",R("palette-grey-700")),K(y.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),K(y.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),K(y.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),K(y.LinearProgress,"primaryBg",nt(y.primary.main,.62)),K(y.LinearProgress,"secondaryBg",nt(y.secondary.main,.62)),K(y.LinearProgress,"errorBg",nt(y.error.main,.62)),K(y.LinearProgress,"infoBg",nt(y.info.main,.62)),K(y.LinearProgress,"successBg",nt(y.success.main,.62)),K(y.LinearProgress,"warningBg",nt(y.warning.main,.62)),K(y.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.11)`),K(y.Slider,"primaryTrack",nt(y.primary.main,.62)),K(y.Slider,"secondaryTrack",nt(y.secondary.main,.62)),K(y.Slider,"errorTrack",nt(y.error.main,.62)),K(y.Slider,"infoTrack",nt(y.info.main,.62)),K(y.Slider,"successTrack",nt(y.success.main,.62)),K(y.Slider,"warningTrack",nt(y.warning.main,.62));const F=hs(y.background.default,.8);K(y.SnackbarContent,"bg",F),K(y.SnackbarContent,"color",tr(()=>y.getContrastText(F))),K(y.SpeedDialAction,"fabHoverBg",hs(y.background.paper,.15)),K(y.StepConnector,"border",R("palette-grey-400")),K(y.StepContent,"border",R("palette-grey-400")),K(y.Switch,"defaultColor",R("palette-common-white")),K(y.Switch,"defaultDisabledColor",R("palette-grey-100")),K(y.Switch,"primaryDisabledColor",nt(y.primary.main,.62)),K(y.Switch,"secondaryDisabledColor",nt(y.secondary.main,.62)),K(y.Switch,"errorDisabledColor",nt(y.error.main,.62)),K(y.Switch,"infoDisabledColor",nt(y.info.main,.62)),K(y.Switch,"successDisabledColor",nt(y.success.main,.62)),K(y.Switch,"warningDisabledColor",nt(y.warning.main,.62)),K(y.TableCell,"border",nt(ds(y.divider,1),.88)),K(y.Tooltip,"bg",ds(y.grey[700],.92))}if(y.mode==="dark"){K(y.Alert,"errorColor",nt(y.error.light,.6)),K(y.Alert,"infoColor",nt(y.info.light,.6)),K(y.Alert,"successColor",nt(y.success.light,.6)),K(y.Alert,"warningColor",nt(y.warning.light,.6)),K(y.Alert,"errorFilledBg",R("palette-error-dark")),K(y.Alert,"infoFilledBg",R("palette-info-dark")),K(y.Alert,"successFilledBg",R("palette-success-dark")),K(y.Alert,"warningFilledBg",R("palette-warning-dark")),K(y.Alert,"errorFilledColor",tr(()=>y.getContrastText(y.error.dark))),K(y.Alert,"infoFilledColor",tr(()=>y.getContrastText(y.info.dark))),K(y.Alert,"successFilledColor",tr(()=>y.getContrastText(y.success.dark))),K(y.Alert,"warningFilledColor",tr(()=>y.getContrastText(y.warning.dark))),K(y.Alert,"errorStandardBg",tt(y.error.light,.9)),K(y.Alert,"infoStandardBg",tt(y.info.light,.9)),K(y.Alert,"successStandardBg",tt(y.success.light,.9)),K(y.Alert,"warningStandardBg",tt(y.warning.light,.9)),K(y.Alert,"errorIconColor",R("palette-error-main")),K(y.Alert,"infoIconColor",R("palette-info-main")),K(y.Alert,"successIconColor",R("palette-success-main")),K(y.Alert,"warningIconColor",R("palette-warning-main")),K(y.AppBar,"defaultBg",R("palette-grey-900")),K(y.AppBar,"darkBg",R("palette-background-paper")),K(y.AppBar,"darkColor",R("palette-text-primary")),K(y.Avatar,"defaultBg",R("palette-grey-600")),K(y.Button,"inheritContainedBg",R("palette-grey-800")),K(y.Button,"inheritContainedHoverBg",R("palette-grey-700")),K(y.Chip,"defaultBorder",R("palette-grey-700")),K(y.Chip,"defaultAvatarColor",R("palette-grey-300")),K(y.Chip,"defaultIconColor",R("palette-grey-300")),K(y.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),K(y.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),K(y.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),K(y.LinearProgress,"primaryBg",tt(y.primary.main,.5)),K(y.LinearProgress,"secondaryBg",tt(y.secondary.main,.5)),K(y.LinearProgress,"errorBg",tt(y.error.main,.5)),K(y.LinearProgress,"infoBg",tt(y.info.main,.5)),K(y.LinearProgress,"successBg",tt(y.success.main,.5)),K(y.LinearProgress,"warningBg",tt(y.warning.main,.5)),K(y.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.13)`),K(y.Slider,"primaryTrack",tt(y.primary.main,.5)),K(y.Slider,"secondaryTrack",tt(y.secondary.main,.5)),K(y.Slider,"errorTrack",tt(y.error.main,.5)),K(y.Slider,"infoTrack",tt(y.info.main,.5)),K(y.Slider,"successTrack",tt(y.success.main,.5)),K(y.Slider,"warningTrack",tt(y.warning.main,.5));const F=hs(y.background.default,.98);K(y.SnackbarContent,"bg",F),K(y.SnackbarContent,"color",tr(()=>y.getContrastText(F))),K(y.SpeedDialAction,"fabHoverBg",hs(y.background.paper,.15)),K(y.StepConnector,"border",R("palette-grey-600")),K(y.StepContent,"border",R("palette-grey-600")),K(y.Switch,"defaultColor",R("palette-grey-300")),K(y.Switch,"defaultDisabledColor",R("palette-grey-600")),K(y.Switch,"primaryDisabledColor",tt(y.primary.main,.55)),K(y.Switch,"secondaryDisabledColor",tt(y.secondary.main,.55)),K(y.Switch,"errorDisabledColor",tt(y.error.main,.55)),K(y.Switch,"infoDisabledColor",tt(y.info.main,.55)),K(y.Switch,"successDisabledColor",tt(y.success.main,.55)),K(y.Switch,"warningDisabledColor",tt(y.warning.main,.55)),K(y.TableCell,"border",tt(ds(y.divider,1),.68)),K(y.Tooltip,"bg",ds(y.grey[700],.92))}br(y.background,"default"),br(y.background,"paper"),br(y.common,"background"),br(y.common,"onBackground"),br(y,"divider"),Object.keys(y).forEach(F=>{const $=y[F];F!=="tonalOffset"&&$&&typeof $=="object"&&($.main&&K(y[F],"mainChannel",ei(ti($.main))),$.light&&K(y[F],"lightChannel",ei(ti($.light))),$.dark&&K(y[F],"darkChannel",ei(ti($.dark))),$.contrastText&&K(y[F],"contrastTextChannel",ei(ti($.contrastText))),F==="text"&&(br(y[F],"primary"),br(y[F],"secondary")),F==="action"&&($.active&&br(y[F],"active"),$.selected&&br(y[F],"selected")))})}),I=t.reduce((B,y)=>In(B,y),I);const w={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:i,getSelector:AT(I)},{vars:S,generateThemeVars:M,generateStyleSheets:q}=wT(I,w);return I.vars=S,Object.entries(I.colorSchemes[I.defaultColorScheme]).forEach(([B,y])=>{I[B]=y}),I.generateThemeVars=M,I.generateStyleSheets=q,I.generateSpacing=function(){return qe.createSpacing(c.spacing,Pd(this))},I.getColorSchemeSelector=NT(s),I.spacing=I.generateSpacing(),I.shouldSkipGeneratingVar=i,I.unstable_sxConfig={...Bl,...c?.unstable_sxConfig},I.unstable_sx=function(B){return ya({sx:B,theme:this})},I.toRuntimeSource=Lg,I}function mp(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Dd({...n===!0?{}:n.palette,mode:t})})}function OT(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...i}=e,s=a||"light",l=o?.[s],c={...o,...n?{[s]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Cu(e,...t);let d=n;"palette"in e||c[s]&&(c[s]!==!0?d=c[s].palette:s==="dark"&&(d={mode:"dark"}));const u=Cu({...e,palette:d},...t);return u.defaultColorScheme=s,u.colorSchemes=c,u.palette.mode==="light"&&(u.colorSchemes.light={...c.light!==!0&&c.light,palette:u.palette},mp(u,"dark",c.dark)),u.palette.mode==="dark"&&(u.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:u.palette},mp(u,"light",c.light)),u}return!n&&!("light"in c)&&s==="light"&&(c.light=!0),$T({...i,colorSchemes:c,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}const $d=OT(),Od="$$material";function MT(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Md=e=>MT(e)&&e!=="classes";function FT(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var BT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function jT(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var HT=/[A-Z]|^ms/g,UT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Fg=function(e){return e.charCodeAt(1)===45},gp=function(e){return e!=null&&typeof e!="boolean"},Sc=jT(function(e){return Fg(e)?e:e.replace(HT,"-$&").toLowerCase()}),yp=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(UT,function(n,r,o){return Gr={name:r,styles:o,next:Gr},r})}return BT[e]!==1&&!Fg(e)&&typeof t=="number"&&t!==0?t+"px":t};function Zs(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Gr={name:o.name,styles:o.styles,next:Gr},o.name;var a=n;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)Gr={name:i.name,styles:i.styles,next:Gr},i=i.next;var s=a.styles+";";return s}return zT(e,t,n)}}var l=n;return l}function zT(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Zs(e,t,n[o])+";";else for(var a in n){var i=n[a];if(typeof i!="object"){var s=i;gp(s)&&(r+=Sc(a)+":"+yp(a,s)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var l=0;l<i.length;l++)gp(i[l])&&(r+=Sc(a)+":"+yp(a,i[l])+";");else{var c=Zs(e,t,i);switch(a){case"animation":case"animationName":{r+=Sc(a)+":"+c+";";break}default:r+=a+"{"+c+"}"}}}return r}var bp=/label:\s*([^\s;{]+)\s*(;|$)/g,Gr;function GT(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Gr=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,o+=Zs(n,t,a);else{var i=a;o+=i[0]}for(var s=1;s<e.length;s++)if(o+=Zs(n,t,e[s]),r){var l=a;o+=l[s]}bp.lastIndex=0;for(var c="",d;(d=bp.exec(o))!==null;)c+="-"+d[1];var u=FT(o)+c;return{name:u,styles:o,next:Gr}}function qT(e,t){return Sg(e,t)}function WT(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Ep=[];function Co(e){return Ep[0]=e,GT(Ep)}function VT(e){const{variants:t,...n}=e,r={variants:t,style:Co(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Co(o.style))}),r}const YT=Ld();function Vr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function po(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function KT(e){return e?(t,n)=>n[e]:null}function QT(e,t,n){e.theme=JT(e.theme)?n:e.theme[t]||e.theme}function Ns(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Ns(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?po(r.style,n):r.style;else{const{variants:a,...i}=r;o=n?po(Co(i),n):i}return Bg(e,r.variants,[o],n)}return r?.isProcessed?n?po(Co(r.style),n):r.style:n?po(Co(r),n):r}function Bg(e,t,n=[],r=void 0){let o;e:for(let a=0;a<t.length;a+=1){const i=t[a];if(typeof i.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!i.props(o))continue}else for(const s in i.props)if(e[s]!==i.props[s]&&e.ownerState?.[s]!==i.props[s])continue e;typeof i.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?po(Co(i.style(o)),r):i.style(o))):n.push(r?po(Co(i.style),r):i.style)}return n}function XT(e={}){const{themeId:t,defaultTheme:n=YT,rootShouldForwardProp:r=Vr,slotShouldForwardProp:o=Vr}=e;function a(i){QT(i,t,n)}return(i,s={})=>{WT(i,w=>w.filter(S=>S!==ya));const{name:l,slot:c,skipVariantsResolver:d,skipSx:u,overridesResolver:h=KT(eC(c)),...p}=s,g=l&&l.startsWith("Mui")||c?"components":"custom",b=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,x=u||!1;let E=Vr;c==="Root"||c==="root"?E=r:c?E=o:ZT(i)&&(E=void 0);const v=qT(i,{shouldForwardProp:E,label:void 0,...p}),C=w=>{if(w.__emotion_real===w)return w;if(typeof w=="function")return function(S){return Ns(S,w,S.theme.modularCssLayers?g:void 0)};if(Sr(w)){const S=VT(w);return function(M){return S.variants?Ns(M,S,M.theme.modularCssLayers?g:void 0):M.theme.modularCssLayers?po(S.style,g):S.style}}return w},I=(...w)=>{const S=[],M=w.map(C),q=[];if(S.push(a),l&&h&&q.push(function(R){const F=R.theme.components?.[l]?.styleOverrides;if(!F)return null;const $={};for(const U in F)$[U]=Ns(R,F[U],R.theme.modularCssLayers?"theme":void 0);return h(R,$)}),l&&!b&&q.push(function(R){const F=R.theme?.components?.[l]?.variants;return F?Bg(R,F,[],R.theme.modularCssLayers?"theme":void 0):null}),x||q.push(ya),Array.isArray(M[0])){const R=M.shift(),F=new Array(S.length).fill(""),$=new Array(q.length).fill("");let U;U=[...F,...R,...$],U.raw=[...F,...R.raw,...$],S.unshift(U)}const B=[...S,...M,...q],y=v(...B);return i.muiName&&(y.muiName=i.muiName),y};return v.withConfig&&(I.withConfig=v.withConfig),I}}function JT(e){for(const t in e)return!1;return!0}function ZT(e){return typeof e=="string"&&e.charCodeAt(0)>96}function eC(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const mt=XT({themeId:Od,defaultTheme:$d,rootShouldForwardProp:Md});function $o(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let i="",s=!0;for(let l=0;l<a.length;l+=1){const c=a[l];c&&(i+=(s===!0?"":" ")+t(c),s=!1,n&&n[c]&&(i+=" "+n[c]))}r[o]=i}return r}const tC=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Kn(t)}`,`fontSize${Kn(n)}`]};return $o(o,JE,r)},nC=mt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Kn(n.color)}`],t[`fontSize${Kn(n.fontSize)}`]]}})(kd(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),vu=D.forwardRef(function(e,t){const n=va({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:i="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:d,viewBox:u="0 0 24 24",...h}=n,p=D.isValidElement(r)&&r.type==="svg",g={...n,color:a,component:i,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:u,hasSvgAsChild:p},b={};c||(b.viewBox=u);const x=tC(g);return f.jsxs(nC,{as:i,className:Mt(x.root,o),focusable:"false",color:l,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:t,...b,...h,...p&&r.props,ownerState:g,children:[p?r.props.children:r,d?f.jsx("title",{children:d}):null]})});vu.muiName="SvgIcon";function pt(e,t){function n(r,o){return f.jsx(vu,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=vu.muiName,D.memo(D.forwardRef(n))}const ba=pt(f.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}));function an({text:e,size:t=20,color:n="primary",thickness:r=3.6,centered:o=!0,spacing:a=2,textVariant:i="body2"}){const s=f.jsxs(T.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:a},children:[f.jsx(T.CircularProgress,{size:t,color:n,thickness:r}),e&&f.jsx(T.Typography,{variant:i,color:"text.secondary",children:e})]});return o?f.jsx(T.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:s}):s}const el=T.styled(T.Card)({display:"flex",flexDirection:"column",height:"100%",boxShadow:"none",border:"none",backgroundColor:"transparent"}),jg=T.styled(T.CardContent)({display:"flex",flexDirection:"column",padding:"0",flexGrow:1}),Fd=T.styled(T.CardMedia)({padding:"0"}),rC=T.styled("div")({backgroundColor:"#ffffff",padding:"0 32px 32px 32px",borderRadius:"12px",boxShadow:"none",border:"none",maxWidth:"1200px",margin:"0 auto"});T.styled("div")({marginBottom:"40px",paddingBottom:"24px",borderBottom:"1px solid #f0f0f0"});const oC=T.styled("div")({marginBottom:"48px",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),Su=T.styled("div")({marginBottom:"0",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),ku=T.styled("div")({backgroundColor:"#ffffff",padding:"24px",borderRadius:"8px",border:"1px solid #f0f0f0",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.04)",marginBottom:"0",transition:"box-shadow 0.2s ease-in-out","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)"}});T.styled("div")({backgroundColor:"#f8f9fa",padding:"16px",borderRadius:"8px",border:"1px solid #e9ecef",fontFamily:"'Monaco', 'Menlo', 'Ubuntu Mono', monospace",fontSize:"13px",lineHeight:"1.5",overflowX:"auto"});T.styled("div")({backgroundColor:"#f8f9fa",padding:"12px 16px",borderRadius:"8px",border:"1px solid #e9ecef",marginBottom:"16px",display:"flex",justifyContent:"space-between",alignItems:"center"});const aC=T.styled("div")({height:"100%"});T.styled("div")({height:"30px",backgroundColor:"rgba(225, 240, 255, 1)",display:"flex",padding:"4px",alignItems:"center"});const Hg=T.styled("div")({height:"75vh",width:"100%",overflowY:"auto"});T.styled("div")({position:"relative",height:"100%",flex:"0 0 auto"});const Nr=T.styled(T.Card)({backgroundColor:"#ffffff",padding:"24px",borderRadius:"8px",border:"1px solid #f0f0f0",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.04)",height:"100%",transition:"box-shadow 0.2s ease-in-out","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)"}}),Pr=T.styled(T.CardContent)({padding:"0","&:last-child":{paddingBottom:"0"}}),Zr=T.styled("div")({fontSize:"12px",fontWeight:"600",color:"#666666",textTransform:"uppercase",letterSpacing:"0.5px",marginBottom:"16px",paddingBottom:"8px",borderBottom:"1px solid #f0f0f0"}),Ug=T.styled("div")({padding:"32px",maxWidth:"1400px",margin:"0 auto",minHeight:"100vh"}),Je="http://localhost/api/v0".replace(/\/+$/,"");let eo=class{constructor(t,n=Je,r=Ye){G(this,"configuration");this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath??n)}},iC=class extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}};const at={},it="https://example.com",Ne=function(e,t,n){if(n==null)throw new iC(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function Au(e,t,n=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>Au(e,r,n)):Object.keys(t).forEach(r=>Au(e,t[r],`${n}${n!==""?".":""}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}const st=function(e,...t){const n=new URLSearchParams(e.search);Au(n,t),e.search=n.toString()},Ci=function(e,t,n){const r=typeof e!="string";return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(e!==void 0?e:{}):e||""},lt=function(e){return e.pathname+e.search+e.hash},ct=function(e,t,n,r){return(o=t,a=n)=>{const i={...e.options,url:(o.defaults.baseURL?"":r?.basePath??a)+e.url};return o.request(i)}},sC=function(e){return{getConnection:async(t,n,r={})=>{Ne("getConnection","projectName",t),Ne("getConnection","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),a=new URL(o,it);let i;e&&(i=e.baseOptions);const s={method:"GET",...i,...r},l={};st(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...l,...c,...r.headers},{url:lt(a),options:s}},getQuerydata:async(t,n,r,o,a={})=>{Ne("getQuerydata","projectName",t),Ne("getQuerydata","connectionName",n);const i="/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(i,it);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...a},d={},u={};r!==void 0&&(u.sqlStatement=r),o!==void 0&&(u.options=o),st(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...d,...h,...a.headers},{url:lt(s),options:c}},getSqlsource:async(t,n,r,o={})=>{Ne("getSqlsource","projectName",t),Ne("getSqlsource","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),i=new URL(a,it);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={},d={};r!==void 0&&(d.sqlStatement=r),st(i,d);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:lt(i),options:l}},getTablesource:async(t,n,r,o,a={})=>{Ne("getTablesource","projectName",t),Ne("getTablesource","connectionName",n);const i="/projects/{projectName}/connections/{connectionName}/tableSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(i,it);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...a},d={},u={};r!==void 0&&(u.tableKey=r),o!==void 0&&(u.tablePath=o),st(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...d,...h,...a.headers},{url:lt(s),options:c}},getTemporarytable:async(t,n,r,o={})=>{Ne("getTemporarytable","projectName",t),Ne("getTemporarytable","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),i=new URL(a,it);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={},d={};r!==void 0&&(d.sqlStatement=r),st(i,d);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:lt(i),options:l}},listConnections:async(t,n={})=>{Ne("listConnections","projectName",t);const r="/projects/{projectName}/connections".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(r,it);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...n},s={};st(o,{});let l=a&&a.headers?a.headers:{};return i.headers={...s,...l,...n.headers},{url:lt(o),options:i}},listSchemas:async(t,n,r={})=>{Ne("listSchemas","projectName",t),Ne("listSchemas","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),a=new URL(o,it);let i;e&&(i=e.baseOptions);const s={method:"GET",...i,...r},l={};st(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...l,...c,...r.headers},{url:lt(a),options:s}},listTables:async(t,n,r,o={})=>{Ne("listTables","projectName",t),Ne("listTables","connectionName",n),Ne("listTables","schemaName",r);const a="/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))).replace("{schemaName}",encodeURIComponent(String(r))),i=new URL(a,it);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={};st(i,{});let d=s&&s.headers?s.headers:{};return l.headers={...c,...d,...o.headers},{url:lt(i),options:l}},testConnection:async(t,n,r={})=>{Ne("testConnection","projectName",t),Ne("testConnection","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/test".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),a=new URL(o,it);let i;e&&(i=e.baseOptions);const s={method:"GET",...i,...r},l={};st(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...l,...c,...r.headers},{url:lt(a),options:s}},testConnectionConfiguration:async(t,n={})=>{Ne("testConnectionConfiguration","connection",t);const r="/connections/test",o=new URL(r,it);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...n},s={},l={};s["Content-Type"]="application/json",st(o,l);let c=a&&a.headers?a.headers:{};return i.headers={...s,...c,...n.headers},i.data=Ci(t,i,e),{url:lt(o),options:i}}}},nr=function(e){const t=sC(e);return{async getConnection(n,r,o){const a=await t.getConnection(n,r,o),i=e?.serverIndex??0,s=at["ConnectionsApi.getConnection"]?.[i]?.url;return(l,c)=>ct(a,Ye,Je,e)(l,s||c)},async getQuerydata(n,r,o,a,i){const s=await t.getQuerydata(n,r,o,a,i),l=e?.serverIndex??0,c=at["ConnectionsApi.getQuerydata"]?.[l]?.url;return(d,u)=>ct(s,Ye,Je,e)(d,c||u)},async getSqlsource(n,r,o,a){const i=await t.getSqlsource(n,r,o,a),s=e?.serverIndex??0,l=at["ConnectionsApi.getSqlsource"]?.[s]?.url;return(c,d)=>ct(i,Ye,Je,e)(c,l||d)},async getTablesource(n,r,o,a,i){const s=await t.getTablesource(n,r,o,a,i),l=e?.serverIndex??0,c=at["ConnectionsApi.getTablesource"]?.[l]?.url;return(d,u)=>ct(s,Ye,Je,e)(d,c||u)},async getTemporarytable(n,r,o,a){const i=await t.getTemporarytable(n,r,o,a),s=e?.serverIndex??0,l=at["ConnectionsApi.getTemporarytable"]?.[s]?.url;return(c,d)=>ct(i,Ye,Je,e)(c,l||d)},async listConnections(n,r){const o=await t.listConnections(n,r),a=e?.serverIndex??0,i=at["ConnectionsApi.listConnections"]?.[a]?.url;return(s,l)=>ct(o,Ye,Je,e)(s,i||l)},async listSchemas(n,r,o){const a=await t.listSchemas(n,r,o),i=e?.serverIndex??0,s=at["ConnectionsApi.listSchemas"]?.[i]?.url;return(l,c)=>ct(a,Ye,Je,e)(l,s||c)},async listTables(n,r,o,a){const i=await t.listTables(n,r,o,a),s=e?.serverIndex??0,l=at["ConnectionsApi.listTables"]?.[s]?.url;return(c,d)=>ct(i,Ye,Je,e)(c,l||d)},async testConnection(n,r,o){const a=await t.testConnection(n,r,o),i=e?.serverIndex??0,s=at["ConnectionsApi.testConnection"]?.[i]?.url;return(l,c)=>ct(a,Ye,Je,e)(l,s||c)},async testConnectionConfiguration(n,r){const o=await t.testConnectionConfiguration(n,r),a=e?.serverIndex??0,i=at["ConnectionsApi.testConnectionConfiguration"]?.[a]?.url;return(s,l)=>ct(o,Ye,Je,e)(s,i||l)}}};let zg=class extends eo{getConnection(t,n,r){return nr(this.configuration).getConnection(t,n,r).then(o=>o(this.axios,this.basePath))}getQuerydata(t,n,r,o,a){return nr(this.configuration).getQuerydata(t,n,r,o,a).then(i=>i(this.axios,this.basePath))}getSqlsource(t,n,r,o){return nr(this.configuration).getSqlsource(t,n,r,o).then(a=>a(this.axios,this.basePath))}getTablesource(t,n,r,o,a){return nr(this.configuration).getTablesource(t,n,r,o,a).then(i=>i(this.axios,this.basePath))}getTemporarytable(t,n,r,o){return nr(this.configuration).getTemporarytable(t,n,r,o).then(a=>a(this.axios,this.basePath))}listConnections(t,n){return nr(this.configuration).listConnections(t,n).then(r=>r(this.axios,this.basePath))}listSchemas(t,n,r){return nr(this.configuration).listSchemas(t,n,r).then(o=>o(this.axios,this.basePath))}listTables(t,n,r,o){return nr(this.configuration).listTables(t,n,r,o).then(a=>a(this.axios,this.basePath))}testConnection(t,n,r){return nr(this.configuration).testConnection(t,n,r).then(o=>o(this.axios,this.basePath))}testConnectionConfiguration(t,n){return nr(this.configuration).testConnectionConfiguration(t,n).then(r=>r(this.axios,this.basePath))}};const lC=function(e){return{listDatabases:async(t,n,r,o={})=>{Ne("listDatabases","projectName",t),Ne("listDatabases","packageName",n);const a="/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),i=new URL(a,it);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={},d={};r!==void 0&&(d.versionId=r),st(i,d);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:lt(i),options:l}}}},cC=function(e){const t=lC(e);return{async listDatabases(n,r,o,a){const i=await t.listDatabases(n,r,o,a),s=e?.serverIndex??0,l=at["DatabasesApi.listDatabases"]?.[s]?.url;return(c,d)=>ct(i,Ye,Je,e)(c,l||d)}}};let uC=class extends eo{listDatabases(t,n,r,o){return cC(this.configuration).listDatabases(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const dC=function(e){return{getModel:async(t,n,r,o,a={})=>{Ne("getModel","projectName",t),Ne("getModel","packageName",n),Ne("getModel","path",r);const i="/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),s=new URL(i,it);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...a},d={},u={};o!==void 0&&(u.versionId=o),st(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...d,...h,...a.headers},{url:lt(s),options:c}},listModels:async(t,n,r,o={})=>{Ne("listModels","projectName",t),Ne("listModels","packageName",n);const a="/projects/{projectName}/packages/{packageName}/models".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),i=new URL(a,it);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={},d={};r!==void 0&&(d.versionId=r),st(i,d);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:lt(i),options:l}}}},xp=function(e){const t=dC(e);return{async getModel(n,r,o,a,i){const s=await t.getModel(n,r,o,a,i),l=e?.serverIndex??0,c=at["ModelsApi.getModel"]?.[l]?.url;return(d,u)=>ct(s,Ye,Je,e)(d,c||u)},async listModels(n,r,o,a){const i=await t.listModels(n,r,o,a),s=e?.serverIndex??0,l=at["ModelsApi.listModels"]?.[s]?.url;return(c,d)=>ct(i,Ye,Je,e)(c,l||d)}}};let jl=class extends eo{getModel(t,n,r,o,a){return xp(this.configuration).getModel(t,n,r,o,a).then(i=>i(this.axios,this.basePath))}listModels(t,n,r,o){return xp(this.configuration).listModels(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const hC=function(e){return{getNotebook:async(t,n,r,o,a={})=>{Ne("getNotebook","projectName",t),Ne("getNotebook","packageName",n),Ne("getNotebook","path",r);const i="/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),s=new URL(i,it);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...a},d={},u={};o!==void 0&&(u.versionId=o),st(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...d,...h,...a.headers},{url:lt(s),options:c}},listNotebooks:async(t,n,r,o={})=>{Ne("listNotebooks","projectName",t),Ne("listNotebooks","packageName",n);const a="/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),i=new URL(a,it);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={},d={};r!==void 0&&(d.versionId=r),st(i,d);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:lt(i),options:l}}}},Tp=function(e){const t=hC(e);return{async getNotebook(n,r,o,a,i){const s=await t.getNotebook(n,r,o,a,i),l=e?.serverIndex??0,c=at["NotebooksApi.getNotebook"]?.[l]?.url;return(d,u)=>ct(s,Ye,Je,e)(d,c||u)},async listNotebooks(n,r,o,a){const i=await t.listNotebooks(n,r,o,a),s=e?.serverIndex??0,l=at["NotebooksApi.listNotebooks"]?.[s]?.url;return(c,d)=>ct(i,Ye,Je,e)(c,l||d)}}};let Gg=class extends eo{getNotebook(t,n,r,o,a){return Tp(this.configuration).getNotebook(t,n,r,o,a).then(i=>i(this.axios,this.basePath))}listNotebooks(t,n,r,o){return Tp(this.configuration).listNotebooks(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const pC=function(e){return{createPackage:async(t,n,r={})=>{Ne("createPackage","projectName",t),Ne("createPackage","body",n);const o="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(o,it);let i;e&&(i=e.baseOptions);const s={method:"POST",...i,...r},l={},c={};l["Content-Type"]="application/json",st(a,c);let d=i&&i.headers?i.headers:{};return s.headers={...l,...d,...r.headers},s.data=Ci(n,s,e),{url:lt(a),options:s}},deletePackage:async(t,n,r={})=>{Ne("deletePackage","projectName",t),Ne("deletePackage","packageName",n);const o="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),a=new URL(o,it);let i;e&&(i=e.baseOptions);const s={method:"DELETE",...i,...r},l={};st(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...l,...c,...r.headers},{url:lt(a),options:s}},getPackage:async(t,n,r,o,a={})=>{Ne("getPackage","projectName",t),Ne("getPackage","packageName",n);const i="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(i,it);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...a},d={},u={};r!==void 0&&(u.versionId=r),o!==void 0&&(u.reload=o),st(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...d,...h,...a.headers},{url:lt(s),options:c}},listPackages:async(t,n={})=>{Ne("listPackages","projectName",t);const r="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(r,it);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...n},s={};st(o,{});let l=a&&a.headers?a.headers:{};return i.headers={...s,...l,...n.headers},{url:lt(o),options:i}},updatePackage:async(t,n,r,o={})=>{Ne("updatePackage","projectName",t),Ne("updatePackage","packageName",n),Ne("updatePackage","body",r);const a="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),i=new URL(a,it);let s;e&&(s=e.baseOptions);const l={method:"PATCH",...s,...o},c={},d={};c["Content-Type"]="application/json",st(i,d);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},l.data=Ci(r,l,e),{url:lt(i),options:l}}}},Fa=function(e){const t=pC(e);return{async createPackage(n,r,o){const a=await t.createPackage(n,r,o),i=e?.serverIndex??0,s=at["PackagesApi.createPackage"]?.[i]?.url;return(l,c)=>ct(a,Ye,Je,e)(l,s||c)},async deletePackage(n,r,o){const a=await t.deletePackage(n,r,o),i=e?.serverIndex??0,s=at["PackagesApi.deletePackage"]?.[i]?.url;return(l,c)=>ct(a,Ye,Je,e)(l,s||c)},async getPackage(n,r,o,a,i){const s=await t.getPackage(n,r,o,a,i),l=e?.serverIndex??0,c=at["PackagesApi.getPackage"]?.[l]?.url;return(d,u)=>ct(s,Ye,Je,e)(d,c||u)},async listPackages(n,r){const o=await t.listPackages(n,r),a=e?.serverIndex??0,i=at["PackagesApi.listPackages"]?.[a]?.url;return(s,l)=>ct(o,Ye,Je,e)(s,i||l)},async updatePackage(n,r,o,a){const i=await t.updatePackage(n,r,o,a),s=e?.serverIndex??0,l=at["PackagesApi.updatePackage"]?.[s]?.url;return(c,d)=>ct(i,Ye,Je,e)(c,l||d)}}};let qg=class extends eo{createPackage(t,n,r){return Fa(this.configuration).createPackage(t,n,r).then(o=>o(this.axios,this.basePath))}deletePackage(t,n,r){return Fa(this.configuration).deletePackage(t,n,r).then(o=>o(this.axios,this.basePath))}getPackage(t,n,r,o,a){return Fa(this.configuration).getPackage(t,n,r,o,a).then(i=>i(this.axios,this.basePath))}listPackages(t,n){return Fa(this.configuration).listPackages(t,n).then(r=>r(this.axios,this.basePath))}updatePackage(t,n,r,o){return Fa(this.configuration).updatePackage(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const fC=function(e){return{createProject:async(t,n={})=>{Ne("createProject","body",t);const r="/projects",o=new URL(r,it);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...n},s={},l={};s["Content-Type"]="application/json",st(o,l);let c=a&&a.headers?a.headers:{};return i.headers={...s,...c,...n.headers},i.data=Ci(t,i,e),{url:lt(o),options:i}},deleteProject:async(t,n={})=>{Ne("deleteProject","projectName",t);const r="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(r,it);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...n},s={};st(o,{});let l=a&&a.headers?a.headers:{};return i.headers={...s,...l,...n.headers},{url:lt(o),options:i}},getProject:async(t,n,r={})=>{Ne("getProject","projectName",t);const o="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(o,it);let i;e&&(i=e.baseOptions);const s={method:"GET",...i,...r},l={},c={};n!==void 0&&(c.reload=n),st(a,c);let d=i&&i.headers?i.headers:{};return s.headers={...l,...d,...r.headers},{url:lt(a),options:s}},listProjects:async(t={})=>{const n="/projects",r=new URL(n,it);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};st(r,{});let s=o&&o.headers?o.headers:{};return a.headers={...i,...s,...t.headers},{url:lt(r),options:a}},updateProject:async(t,n,r={})=>{Ne("updateProject","projectName",t),Ne("updateProject","body",n);const o="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(o,it);let i;e&&(i=e.baseOptions);const s={method:"PATCH",...i,...r},l={},c={};l["Content-Type"]="application/json",st(a,c);let d=i&&i.headers?i.headers:{};return s.headers={...l,...d,...r.headers},s.data=Ci(n,s,e),{url:lt(a),options:s}}}},Ba=function(e){const t=fC(e);return{async createProject(n,r){const o=await t.createProject(n,r),a=e?.serverIndex??0,i=at["ProjectsApi.createProject"]?.[a]?.url;return(s,l)=>ct(o,Ye,Je,e)(s,i||l)},async deleteProject(n,r){const o=await t.deleteProject(n,r),a=e?.serverIndex??0,i=at["ProjectsApi.deleteProject"]?.[a]?.url;return(s,l)=>ct(o,Ye,Je,e)(s,i||l)},async getProject(n,r,o){const a=await t.getProject(n,r,o),i=e?.serverIndex??0,s=at["ProjectsApi.getProject"]?.[i]?.url;return(l,c)=>ct(a,Ye,Je,e)(l,s||c)},async listProjects(n){const r=await t.listProjects(n),o=e?.serverIndex??0,a=at["ProjectsApi.listProjects"]?.[o]?.url;return(i,s)=>ct(r,Ye,Je,e)(i,a||s)},async updateProject(n,r,o){const a=await t.updateProject(n,r,o),i=e?.serverIndex??0,s=at["ProjectsApi.updateProject"]?.[i]?.url;return(l,c)=>ct(a,Ye,Je,e)(l,s||c)}}};let Wg=class extends eo{createProject(t,n){return Ba(this.configuration).createProject(t,n).then(r=>r(this.axios,this.basePath))}deleteProject(t,n){return Ba(this.configuration).deleteProject(t,n).then(r=>r(this.axios,this.basePath))}getProject(t,n,r){return Ba(this.configuration).getProject(t,n,r).then(o=>o(this.axios,this.basePath))}listProjects(t){return Ba(this.configuration).listProjects(t).then(n=>n(this.axios,this.basePath))}updateProject(t,n,r){return Ba(this.configuration).updateProject(t,n,r).then(o=>o(this.axios,this.basePath))}};const mC=function(e){return{executeQuery:async(t,n,r,o,a,i,s,l={})=>{Ne("executeQuery","projectName",t),Ne("executeQuery","packageName",n),Ne("executeQuery","path",r);const c="/projects/{projectName}/packages/{packageName}/queryResults/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),d=new URL(c,it);let u;e&&(u=e.baseOptions);const h={method:"GET",...u,...l},p={},g={};o!==void 0&&(g.query=o),a!==void 0&&(g.sourceName=a),i!==void 0&&(g.queryName=i),s!==void 0&&(g.versionId=s),st(d,g);let b=u&&u.headers?u.headers:{};return h.headers={...p,...b,...l.headers},{url:lt(d),options:h}}}},gC=function(e){const t=mC(e);return{async executeQuery(n,r,o,a,i,s,l,c){const d=await t.executeQuery(n,r,o,a,i,s,l,c),u=e?.serverIndex??0,h=at["QueryresultsApi.executeQuery"]?.[u]?.url;return(p,g)=>ct(d,Ye,Je,e)(p,h||g)}}};let Hl=class extends eo{executeQuery(t,n,r,o,a,i,s,l){return gC(this.configuration).executeQuery(t,n,r,o,a,i,s,l).then(c=>c(this.axios,this.basePath))}};const yC=function(e){return{listSchedules:async(t,n,r,o={})=>{Ne("listSchedules","projectName",t),Ne("listSchedules","packageName",n);const a="/projects/{projectName}/packages/{packageName}/schedules".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),i=new URL(a,it);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={},d={};r!==void 0&&(d.versionId=r),st(i,d);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:lt(i),options:l}}}},bC=function(e){const t=yC(e);return{async listSchedules(n,r,o,a){const i=await t.listSchedules(n,r,o,a),s=e?.serverIndex??0,l=at["SchedulesApi.listSchedules"]?.[s]?.url;return(c,d)=>ct(i,Ye,Je,e)(c,l||d)}}};let EC=class extends eo{listSchedules(t,n,r,o){return bC(this.configuration).listSchedules(t,n,r,o).then(a=>a(this.axios,this.basePath))}},Yt=class{constructor(t={}){G(this,"apiKey");G(this,"username");G(this,"password");G(this,"accessToken");G(this,"basePath");G(this,"serverIndex");G(this,"baseOptions");G(this,"formDataCtor");this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions={...t.baseOptions,headers:{...t.baseOptions?.headers}},this.formDataCtor=t.formDataCtor}isJsonMime(t){const n=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(n.test(t)||t.toLowerCase()==="application/json-patch+json")}};const Vg=[{id:"abap",name:"ABAP",import:()=>Promise.resolve().then(()=>require("./index.es240-Dwt2rH6y.cjs"))},{id:"actionscript-3",name:"ActionScript",import:()=>Promise.resolve().then(()=>require("./index.es241-mj8Uhnsc.cjs"))},{id:"ada",name:"Ada",import:()=>Promise.resolve().then(()=>require("./index.es242-DZM58Vqs.cjs"))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.resolve().then(()=>require("./index.es243-Ds0n6HhO.cjs")).then(e=>e.index_es243)},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.resolve().then(()=>require("./index.es244-7-qziuZX.cjs"))},{id:"apache",name:"Apache Conf",import:()=>Promise.resolve().then(()=>require("./index.es245-D7v5fxtZ.cjs"))},{id:"apex",name:"Apex",import:()=>Promise.resolve().then(()=>require("./index.es246-4hrAnw0a.cjs"))},{id:"apl",name:"APL",import:()=>Promise.resolve().then(()=>require("./index.es247-Dsc5rJwa.cjs"))},{id:"applescript",name:"AppleScript",import:()=>Promise.resolve().then(()=>require("./index.es248-Cnd3Dxju.cjs"))},{id:"ara",name:"Ara",import:()=>Promise.resolve().then(()=>require("./index.es249-BQ2aGbFQ.cjs"))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>Promise.resolve().then(()=>require("./index.es250-C6nYvw8K.cjs"))},{id:"asm",name:"Assembly",import:()=>Promise.resolve().then(()=>require("./index.es251-CQnBVCj-.cjs"))},{id:"astro",name:"Astro",import:()=>Promise.resolve().then(()=>require("./index.es252-EZrUgMep.cjs"))},{id:"awk",name:"AWK",import:()=>Promise.resolve().then(()=>require("./index.es253-DUx4h__E.cjs"))},{id:"ballerina",name:"Ballerina",import:()=>Promise.resolve().then(()=>require("./index.es254-CXlzbmzl.cjs"))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>Promise.resolve().then(()=>require("./index.es255-DlMT9sut.cjs"))},{id:"beancount",name:"Beancount",import:()=>Promise.resolve().then(()=>require("./index.es256-CyyiuUzM.cjs"))},{id:"berry",name:"Berry",aliases:["be"],import:()=>Promise.resolve().then(()=>require("./index.es257-B0EjuzrL.cjs"))},{id:"bibtex",name:"BibTeX",import:()=>Promise.resolve().then(()=>require("./index.es258-CfoG9xRq.cjs"))},{id:"bicep",name:"Bicep",import:()=>Promise.resolve().then(()=>require("./index.es259-D6PH_9IY.cjs"))},{id:"blade",name:"Blade",import:()=>Promise.resolve().then(()=>require("./index.es260-CSk-OS6p.cjs"))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>Promise.resolve().then(()=>require("./index.es261-DW5fyqkC.cjs"))},{id:"c",name:"C",import:()=>Promise.resolve().then(()=>require("./index.es262-C4sXGJZM.cjs"))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>Promise.resolve().then(()=>require("./index.es263-Dq2CYzXG.cjs"))},{id:"cairo",name:"Cairo",import:()=>Promise.resolve().then(()=>require("./index.es264-BzeJwoXk.cjs"))},{id:"clarity",name:"Clarity",import:()=>Promise.resolve().then(()=>require("./index.es265-ytMkUD5Q.cjs"))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>Promise.resolve().then(()=>require("./index.es266-B_Wv414H.cjs"))},{id:"cmake",name:"CMake",import:()=>Promise.resolve().then(()=>require("./index.es267-TBUaQXYY.cjs"))},{id:"cobol",name:"COBOL",import:()=>Promise.resolve().then(()=>require("./index.es268-3HLivlbM.cjs"))},{id:"codeowners",name:"CODEOWNERS",import:()=>Promise.resolve().then(()=>require("./index.es269-QhPK6lIJ.cjs"))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>Promise.resolve().then(()=>require("./index.es270-B7Q9tkDJ.cjs"))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.resolve().then(()=>require("./index.es271-BmdyTHFo.cjs"))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>Promise.resolve().then(()=>require("./index.es272-Ced3ctK5.cjs"))},{id:"coq",name:"Coq",import:()=>Promise.resolve().then(()=>require("./index.es273-BTRB4iqi.cjs"))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.resolve().then(()=>require("./index.es274-M5uUd6X1.cjs"))},{id:"crystal",name:"Crystal",import:()=>Promise.resolve().then(()=>require("./index.es275-C0LWBUAx.cjs"))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>Promise.resolve().then(()=>require("./index.es276-TKds-MhG.cjs"))},{id:"css",name:"CSS",import:()=>Promise.resolve().then(()=>require("./index.es277-B0kbn78J.cjs"))},{id:"csv",name:"CSV",import:()=>Promise.resolve().then(()=>require("./index.es278-BVJjiaC3.cjs"))},{id:"cue",name:"CUE",import:()=>Promise.resolve().then(()=>require("./index.es279-Cz4J-rnd.cjs"))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>Promise.resolve().then(()=>require("./index.es280-DuKTiyez.cjs"))},{id:"d",name:"D",import:()=>Promise.resolve().then(()=>require("./index.es281-BW9Wd7aK.cjs"))},{id:"dart",name:"Dart",import:()=>Promise.resolve().then(()=>require("./index.es282-CWs-er6b.cjs"))},{id:"dax",name:"DAX",import:()=>Promise.resolve().then(()=>require("./index.es283-CDxFL2Kb.cjs"))},{id:"desktop",name:"Desktop",import:()=>Promise.resolve().then(()=>require("./index.es284-CFgo0jo7.cjs"))},{id:"diff",name:"Diff",import:()=>Promise.resolve().then(()=>require("./index.es285-BsEkKwI8.cjs"))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>Promise.resolve().then(()=>require("./index.es286-hwiw4W8I.cjs"))},{id:"dotenv",name:"dotEnv",import:()=>Promise.resolve().then(()=>require("./index.es287-CJ5o3G1C.cjs"))},{id:"dream-maker",name:"Dream Maker",import:()=>Promise.resolve().then(()=>require("./index.es288-DBharE9Q.cjs"))},{id:"edge",name:"Edge",import:()=>Promise.resolve().then(()=>require("./index.es289-h6iOnWlk.cjs"))},{id:"elixir",name:"Elixir",import:()=>Promise.resolve().then(()=>require("./index.es290-B4sA6QCR.cjs"))},{id:"elm",name:"Elm",import:()=>Promise.resolve().then(()=>require("./index.es291-ZFoid2z0.cjs"))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>Promise.resolve().then(()=>require("./index.es292-CDDyFsvQ.cjs"))},{id:"erb",name:"ERB",import:()=>Promise.resolve().then(()=>require("./index.es293-DtXzDenY.cjs"))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.resolve().then(()=>require("./index.es294-3VgdrQXV.cjs"))},{id:"fennel",name:"Fennel",import:()=>Promise.resolve().then(()=>require("./index.es295-RbmrEXt1.cjs"))},{id:"fish",name:"Fish",import:()=>Promise.resolve().then(()=>require("./index.es296-CnamI0Ar.cjs"))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>Promise.resolve().then(()=>require("./index.es297-DFpT66K8.cjs"))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.resolve().then(()=>require("./index.es298-CIcQqEBm.cjs"))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>Promise.resolve().then(()=>require("./index.es299-IaGrWIda.cjs"))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.resolve().then(()=>require("./index.es300-CaYDGmTZ.cjs"))},{id:"gdresource",name:"GDResource",import:()=>Promise.resolve().then(()=>require("./index.es301-CF2gu0f5.cjs"))},{id:"gdscript",name:"GDScript",import:()=>Promise.resolve().then(()=>require("./index.es302-5N_43TPQ.cjs"))},{id:"gdshader",name:"GDShader",import:()=>Promise.resolve().then(()=>require("./index.es303-Bl85Hrm5.cjs"))},{id:"genie",name:"Genie",import:()=>Promise.resolve().then(()=>require("./index.es304-DGsxMAbQ.cjs"))},{id:"gherkin",name:"Gherkin",import:()=>Promise.resolve().then(()=>require("./index.es305-CVV6nEUH.cjs"))},{id:"git-commit",name:"Git Commit Message",import:()=>Promise.resolve().then(()=>require("./index.es306-BGOJVdxG.cjs"))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.resolve().then(()=>require("./index.es307-YXDFndoR.cjs"))},{id:"gleam",name:"Gleam",import:()=>Promise.resolve().then(()=>require("./index.es308-nR4mjrhK.cjs"))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.resolve().then(()=>require("./index.es309-Dzv4e3xT.cjs"))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.resolve().then(()=>require("./index.es310-DdxizEwj.cjs"))},{id:"glsl",name:"GLSL",import:()=>Promise.resolve().then(()=>require("./index.es311-BjOwxtZj.cjs"))},{id:"gnuplot",name:"Gnuplot",import:()=>Promise.resolve().then(()=>require("./index.es312-CurtDYoJ.cjs"))},{id:"go",name:"Go",import:()=>Promise.resolve().then(()=>require("./index.es313-CM9_GlwL.cjs"))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.resolve().then(()=>require("./index.es314-BMJKzsEE.cjs"))},{id:"groovy",name:"Groovy",import:()=>Promise.resolve().then(()=>require("./index.es315-BaVp9Il5.cjs"))},{id:"hack",name:"Hack",import:()=>Promise.resolve().then(()=>require("./index.es316-DjEkuCjz.cjs"))},{id:"haml",name:"Ruby Haml",import:()=>Promise.resolve().then(()=>require("./index.es317-4CSqWjqs.cjs"))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.resolve().then(()=>require("./index.es318-CcLVV8ug.cjs"))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>Promise.resolve().then(()=>require("./index.es319-suhyCHEm.cjs"))},{id:"haxe",name:"Haxe",import:()=>Promise.resolve().then(()=>require("./index.es320-BIQU1qHi.cjs"))},{id:"hcl",name:"HashiCorp HCL",import:()=>Promise.resolve().then(()=>require("./index.es321-CbQ1yCnz.cjs"))},{id:"hjson",name:"Hjson",import:()=>Promise.resolve().then(()=>require("./index.es322-Ddklb4QM.cjs"))},{id:"hlsl",name:"HLSL",import:()=>Promise.resolve().then(()=>require("./index.es323-B4NkiBfC.cjs"))},{id:"html",name:"HTML",import:()=>Promise.resolve().then(()=>require("./index.es324-D0PYU5g0.cjs"))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.resolve().then(()=>require("./index.es325-BCxtrNen.cjs"))},{id:"http",name:"HTTP",import:()=>Promise.resolve().then(()=>require("./index.es326-Cv7MfHbW.cjs"))},{id:"hxml",name:"HXML",import:()=>Promise.resolve().then(()=>require("./index.es327-B-5g0RrG.cjs"))},{id:"hy",name:"Hy",import:()=>Promise.resolve().then(()=>require("./index.es328-DpyTdO3T.cjs"))},{id:"imba",name:"Imba",import:()=>Promise.resolve().then(()=>require("./index.es329-_Up8BkH-.cjs"))},{id:"ini",name:"INI",aliases:["properties"],import:()=>Promise.resolve().then(()=>require("./index.es330-CymULaw_.cjs"))},{id:"java",name:"Java",import:()=>Promise.resolve().then(()=>require("./index.es331-Bn1Lvoni.cjs"))},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>Promise.resolve().then(()=>require("./index.es332-Bnnicc83.cjs"))},{id:"jinja",name:"Jinja",import:()=>Promise.resolve().then(()=>require("./index.es333-BnZe0DoP.cjs"))},{id:"jison",name:"Jison",import:()=>Promise.resolve().then(()=>require("./index.es334-Bp0mq9Ug.cjs"))},{id:"json",name:"JSON",import:()=>Promise.resolve().then(()=>require("./index.es335-y-J1j5EW.cjs"))},{id:"json5",name:"JSON5",import:()=>Promise.resolve().then(()=>require("./index.es336-CzvlWgZ7.cjs"))},{id:"jsonc",name:"JSON with Comments",import:()=>Promise.resolve().then(()=>require("./index.es337-BnhWfmQw.cjs"))},{id:"jsonl",name:"JSON Lines",import:()=>Promise.resolve().then(()=>require("./index.es338-BbGkWPJz.cjs"))},{id:"jsonnet",name:"Jsonnet",import:()=>Promise.resolve().then(()=>require("./index.es339-Bn--UDZ1.cjs"))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>Promise.resolve().then(()=>require("./index.es340-4CSVp8lc.cjs"))},{id:"jsx",name:"JSX",import:()=>Promise.resolve().then(()=>require("./index.es341-D8YwVp-7.cjs"))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.resolve().then(()=>require("./index.es342-B8F4oXRu.cjs"))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>Promise.resolve().then(()=>require("./index.es343-DDI6myF6.cjs"))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>Promise.resolve().then(()=>require("./index.es344-OZxALJZT.cjs"))},{id:"latex",name:"LaTeX",import:()=>Promise.resolve().then(()=>require("./index.es345-Fgli4Ky1.cjs"))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>Promise.resolve().then(()=>require("./index.es346-D1iY-35j.cjs"))},{id:"less",name:"Less",import:()=>Promise.resolve().then(()=>require("./index.es347-DIaY7vQJ.cjs"))},{id:"liquid",name:"Liquid",import:()=>Promise.resolve().then(()=>require("./index.es348-DDKb-PYR.cjs"))},{id:"log",name:"Log file",import:()=>Promise.resolve().then(()=>require("./index.es349-BIXUeBaj.cjs"))},{id:"logo",name:"Logo",import:()=>Promise.resolve().then(()=>require("./index.es350-B2d3b27P.cjs"))},{id:"lua",name:"Lua",import:()=>Promise.resolve().then(()=>require("./index.es351-BxS1OwU1.cjs"))},{id:"luau",name:"Luau",import:()=>Promise.resolve().then(()=>require("./index.es352-CvqAeq4F.cjs"))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>Promise.resolve().then(()=>require("./index.es353-Oob5Z9Pk.cjs"))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>Promise.resolve().then(()=>require("./index.es354-BGBuj4LZ.cjs"))},{id:"marko",name:"Marko",import:()=>Promise.resolve().then(()=>require("./index.es355-DG0bsPB0.cjs"))},{id:"matlab",name:"MATLAB",import:()=>Promise.resolve().then(()=>require("./index.es356-CbN2rF6P.cjs"))},{id:"mdc",name:"MDC",import:()=>Promise.resolve().then(()=>require("./index.es357-NHpLr9LU.cjs"))},{id:"mdx",name:"MDX",import:()=>Promise.resolve().then(()=>require("./index.es358-Cl31h8mi.cjs"))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>Promise.resolve().then(()=>require("./index.es359-CSogK_LM.cjs"))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>Promise.resolve().then(()=>require("./index.es360-BseoYJQp.cjs"))},{id:"mojo",name:"Mojo",import:()=>Promise.resolve().then(()=>require("./index.es361-D8QAG3Ze.cjs"))},{id:"move",name:"Move",import:()=>Promise.resolve().then(()=>require("./index.es362-DaBrcjat.cjs"))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>Promise.resolve().then(()=>require("./index.es363-oOfAO4q8.cjs"))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>Promise.resolve().then(()=>require("./index.es364-BxJSKvPb.cjs"))},{id:"nginx",name:"Nginx",import:()=>Promise.resolve().then(()=>require("./index.es365-BmmThTOT.cjs"))},{id:"nim",name:"Nim",import:()=>Promise.resolve().then(()=>require("./index.es366-BYraj6NB.cjs"))},{id:"nix",name:"Nix",import:()=>Promise.resolve().then(()=>require("./index.es367-DNME0Ea7.cjs"))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>Promise.resolve().then(()=>require("./index.es368-DI9Z3l3M.cjs"))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>Promise.resolve().then(()=>require("./index.es369-DVx8Rcni.cjs"))},{id:"objective-cpp",name:"Objective-C++",import:()=>Promise.resolve().then(()=>require("./index.es370-s6XI7Jvk.cjs"))},{id:"ocaml",name:"OCaml",import:()=>Promise.resolve().then(()=>require("./index.es371-kUzDDUf2.cjs"))},{id:"pascal",name:"Pascal",import:()=>Promise.resolve().then(()=>require("./index.es372-D509_I72.cjs"))},{id:"perl",name:"Perl",import:()=>Promise.resolve().then(()=>require("./index.es373-D7QScmWF.cjs"))},{id:"php",name:"PHP",import:()=>Promise.resolve().then(()=>require("./index.es374-uZOLvMTs.cjs"))},{id:"plsql",name:"PL/SQL",import:()=>Promise.resolve().then(()=>require("./index.es375-C_qH_YOK.cjs"))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>Promise.resolve().then(()=>require("./index.es376-CBsLQIcu.cjs"))},{id:"polar",name:"Polar",import:()=>Promise.resolve().then(()=>require("./index.es377-De-CDeYv.cjs"))},{id:"postcss",name:"PostCSS",import:()=>Promise.resolve().then(()=>require("./index.es378-BtcsgaYj.cjs"))},{id:"powerquery",name:"PowerQuery",import:()=>Promise.resolve().then(()=>require("./index.es379-B0rHn13V.cjs"))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>Promise.resolve().then(()=>require("./index.es380-rCX2OYXT.cjs"))},{id:"prisma",name:"Prisma",import:()=>Promise.resolve().then(()=>require("./index.es381-BaaUHYMp.cjs"))},{id:"prolog",name:"Prolog",import:()=>Promise.resolve().then(()=>require("./index.es382-DrXD2tGS.cjs"))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>Promise.resolve().then(()=>require("./index.es383-BtmQjBQu.cjs"))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.resolve().then(()=>require("./index.es384-DVjKEYuo.cjs"))},{id:"puppet",name:"Puppet",import:()=>Promise.resolve().then(()=>require("./index.es385-cIrXIuy8.cjs"))},{id:"purescript",name:"PureScript",import:()=>Promise.resolve().then(()=>require("./index.es386-CX9QPs2N.cjs"))},{id:"python",name:"Python",aliases:["py"],import:()=>Promise.resolve().then(()=>require("./index.es387-B9x3euv6.cjs"))},{id:"qml",name:"QML",import:()=>Promise.resolve().then(()=>require("./index.es388-C2BRcbKz.cjs"))},{id:"qmldir",name:"QML Directory",import:()=>Promise.resolve().then(()=>require("./index.es389-DNF9H2ir.cjs"))},{id:"qss",name:"Qt Style Sheets",import:()=>Promise.resolve().then(()=>require("./index.es390-C744dLby.cjs"))},{id:"r",name:"R",import:()=>Promise.resolve().then(()=>require("./index.es391-DgOc9oMe.cjs"))},{id:"racket",name:"Racket",import:()=>Promise.resolve().then(()=>require("./index.es392-Do9_vqnd.cjs"))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>Promise.resolve().then(()=>require("./index.es393-BW8wAUIz.cjs"))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.resolve().then(()=>require("./index.es394-Dy5cSpcg.cjs"))},{id:"reg",name:"Windows Registry Script",import:()=>Promise.resolve().then(()=>require("./index.es395-CGWN_v-z.cjs"))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>Promise.resolve().then(()=>require("./index.es396-N7Z4hEeU.cjs"))},{id:"rel",name:"Rel",import:()=>Promise.resolve().then(()=>require("./index.es397-BYqA7mnV.cjs"))},{id:"riscv",name:"RISC-V",import:()=>Promise.resolve().then(()=>require("./index.es398-ayQMUpo9.cjs"))},{id:"rst",name:"reStructuredText",import:()=>Promise.resolve().then(()=>require("./index.es399-Bjx5rpNu.cjs"))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.resolve().then(()=>require("./index.es400-GcH50_g9.cjs"))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>Promise.resolve().then(()=>require("./index.es401-BnFKGEfa.cjs"))},{id:"sas",name:"SAS",import:()=>Promise.resolve().then(()=>require("./index.es402-BGXbU1g1.cjs"))},{id:"sass",name:"Sass",import:()=>Promise.resolve().then(()=>require("./index.es403-B9gYryDE.cjs"))},{id:"scala",name:"Scala",import:()=>Promise.resolve().then(()=>require("./index.es404-C85dOwSU.cjs"))},{id:"scheme",name:"Scheme",import:()=>Promise.resolve().then(()=>require("./index.es405-B_XUaARm.cjs"))},{id:"scss",name:"SCSS",import:()=>Promise.resolve().then(()=>require("./index.es406-DypjqEev.cjs"))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>Promise.resolve().then(()=>require("./index.es407-7Y5u0OW0.cjs"))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>Promise.resolve().then(()=>require("./index.es408-DBXNT72Q.cjs"))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>Promise.resolve().then(()=>require("./index.es409-3DYM9fut.cjs"))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.resolve().then(()=>require("./index.es410-92JslvGu.cjs"))},{id:"smalltalk",name:"Smalltalk",import:()=>Promise.resolve().then(()=>require("./index.es411-CCvytUuW.cjs"))},{id:"solidity",name:"Solidity",import:()=>Promise.resolve().then(()=>require("./index.es412-BcNcjFC4.cjs"))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.resolve().then(()=>require("./index.es413-DV7heIL4.cjs"))},{id:"sparql",name:"SPARQL",import:()=>Promise.resolve().then(()=>require("./index.es414-BpPsle9I.cjs"))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>Promise.resolve().then(()=>require("./index.es415-CzITjJj7.cjs"))},{id:"sql",name:"SQL",import:()=>Promise.resolve().then(()=>require("./index.es416-BqWZrLHB.cjs"))},{id:"ssh-config",name:"SSH Config",import:()=>Promise.resolve().then(()=>require("./index.es417-DUPeuEdB.cjs"))},{id:"stata",name:"Stata",import:()=>Promise.resolve().then(()=>require("./index.es418-DQoIf_Km.cjs"))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>Promise.resolve().then(()=>require("./index.es419-ByHs6N-o.cjs"))},{id:"svelte",name:"Svelte",import:()=>Promise.resolve().then(()=>require("./index.es420-rwXDN_T3.cjs"))},{id:"swift",name:"Swift",import:()=>Promise.resolve().then(()=>require("./index.es421-C5DnOriA.cjs"))},{id:"system-verilog",name:"SystemVerilog",import:()=>Promise.resolve().then(()=>require("./index.es422-ClPLYLwh.cjs"))},{id:"systemd",name:"Systemd Units",import:()=>Promise.resolve().then(()=>require("./index.es423-BASX0DlX.cjs"))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>Promise.resolve().then(()=>require("./index.es424-DkCSnLHD.cjs"))},{id:"tasl",name:"Tasl",import:()=>Promise.resolve().then(()=>require("./index.es425-BAQJK7KZ.cjs"))},{id:"tcl",name:"Tcl",import:()=>Promise.resolve().then(()=>require("./index.es426-CwJAYTvh.cjs"))},{id:"templ",name:"Templ",import:()=>Promise.resolve().then(()=>require("./index.es427-rLuN8gdS.cjs"))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>Promise.resolve().then(()=>require("./index.es428-s-pzyVvp.cjs"))},{id:"tex",name:"TeX",import:()=>Promise.resolve().then(()=>require("./index.es429-CDPe86So.cjs"))},{id:"toml",name:"TOML",import:()=>Promise.resolve().then(()=>require("./index.es430-CyMM7IXy.cjs"))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.resolve().then(()=>require("./index.es431-DhiLEjwh.cjs"))},{id:"tsv",name:"TSV",import:()=>Promise.resolve().then(()=>require("./index.es432-DqNGnuVj.cjs"))},{id:"tsx",name:"TSX",import:()=>Promise.resolve().then(()=>require("./index.es433-DpBRUnKC.cjs"))},{id:"turtle",name:"Turtle",import:()=>Promise.resolve().then(()=>require("./index.es434-DfO3eAsu.cjs"))},{id:"twig",name:"Twig",import:()=>Promise.resolve().then(()=>require("./index.es435-JXER8kHZ.cjs"))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>Promise.resolve().then(()=>require("./index.es436-BqvpT6pB.cjs"))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>Promise.resolve().then(()=>require("./index.es437-P-ZVy8yC.cjs"))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>Promise.resolve().then(()=>require("./index.es438-BVh2IsT9.cjs"))},{id:"v",name:"V",import:()=>Promise.resolve().then(()=>require("./index.es439-BUlE9136.cjs"))},{id:"vala",name:"Vala",import:()=>Promise.resolve().then(()=>require("./index.es440-BIymb2K_.cjs"))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>Promise.resolve().then(()=>require("./index.es441-IXOh8mqV.cjs"))},{id:"verilog",name:"Verilog",import:()=>Promise.resolve().then(()=>require("./index.es442-BiglCqvO.cjs"))},{id:"vhdl",name:"VHDL",import:()=>Promise.resolve().then(()=>require("./index.es443-CJUzuS2t.cjs"))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>Promise.resolve().then(()=>require("./index.es444-B1nKLcgt.cjs"))},{id:"vue",name:"Vue",import:()=>Promise.resolve().then(()=>require("./index.es445-C-lQLLoe.cjs"))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.resolve().then(()=>require("./index.es446-CZ6CUpdJ.cjs"))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>Promise.resolve().then(()=>require("./index.es447-CO9xUkIY.cjs"))},{id:"wasm",name:"WebAssembly",import:()=>Promise.resolve().then(()=>require("./index.es448-CdIThIat.cjs"))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>Promise.resolve().then(()=>require("./index.es449-BSJ3fk7e.cjs"))},{id:"wgsl",name:"WGSL",import:()=>Promise.resolve().then(()=>require("./index.es450-d3zZE7ZN.cjs"))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>Promise.resolve().then(()=>require("./index.es451-BRCqXN2g.cjs"))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>Promise.resolve().then(()=>require("./index.es452-C3rR92zj.cjs"))},{id:"xml",name:"XML",import:()=>Promise.resolve().then(()=>require("./index.es453-CWT2007l.cjs"))},{id:"xsl",name:"XSL",import:()=>Promise.resolve().then(()=>require("./index.es454-CI_Xg9DQ.cjs"))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>Promise.resolve().then(()=>require("./index.es455-7DV6pRKj.cjs"))},{id:"zenscript",name:"ZenScript",import:()=>Promise.resolve().then(()=>require("./index.es456-BWMxwjeH.cjs"))},{id:"zig",name:"Zig",import:()=>Promise.resolve().then(()=>require("./index.es457-yAcNfpgW.cjs"))}],xC=Object.fromEntries(Vg.map(e=>[e.id,e.import])),TC=Object.fromEntries(Vg.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),CC={...xC,...TC},vC=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es458-BXc5FOIb.cjs"))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es459-C5IpmIOG.cjs"))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es460-Cv7nTiif.cjs"))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es461-DXAedND3.cjs"))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es462-mwGw3-Ej.cjs"))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es463-cQCk9ADg.cjs"))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es464-ClSzDZSl.cjs"))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es465-Cd5emcYO.cjs"))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es466-BNgwAJ-d.cjs"))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es467-BHZ7sHFu.cjs"))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es468-_sBMomR1.cjs"))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es469-H0xoYxl0.cjs"))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es470-BKL9xNgN.cjs"))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es471-Dsv5MuSi.cjs"))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es472-CtB9hz8U.cjs"))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es473-BqZVM-jF.cjs"))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es474-BFTOhCbz.cjs"))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es475-BZoWH9dH.cjs"))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es476-Ks3kPGJU.cjs"))},{id:"houston",displayName:"Houston",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es477-T57H3gQZ.cjs"))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es478-BJZF7xDr.cjs"))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es479-BhgzmRV4.cjs"))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es480-BgJip59C.cjs"))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es481-CIb51Re4.cjs"))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es482-B5D0le0o.cjs"))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es483-Dj0-OyRN.cjs"))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es484-Dvfs29ir.cjs"))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es485-EU3ZGl_r.cjs"))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es486-px_3Pwqa.cjs"))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es487-38jxvsGX.cjs"))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es488-tt5o_I5e.cjs"))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es489-tmTHl_CQ.cjs"))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es490-DMIxv6MM.cjs"))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es491-BN78kThQ.cjs"))},{id:"nord",displayName:"Nord",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es492-Ca5AGUWc.cjs"))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es493-JOzzHStv.cjs"))},{id:"one-light",displayName:"One Light",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es494-020-h_lv.cjs"))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es495-r5piqq-S.cjs"))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es496-BLP3NNjc.cjs"))},{id:"red",displayName:"Red",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es497-BQGOv1D5.cjs"))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es498-DKEdv1Oe.cjs"))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es499-Bvt6DtVH.cjs"))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es500-cHuJy0Ng.cjs"))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es501-akqwQ7ED.cjs"))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es502-BoQQWmTv.cjs"))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es503-D_IwRieF.cjs"))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es504-gmm-WbDC.cjs"))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es505-DzcxRSZP.cjs"))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es506-BBRLOmNT.cjs"))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es507-9T7_vGSy.cjs"))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es508-DqLWLxOu.cjs"))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es509-MF-1S1MG.cjs"))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./index.es510-SIffJYSe.cjs"))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>Promise.resolve().then(()=>require("./index.es511-U63SkYGT.cjs"))}],SC=Object.fromEntries(vC.map(e=>[e.id,e.import]));let _r=class extends Error{constructor(t){super(t),this.name="ShikiError"}},Bd=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function kC(){return 2147483648}function AC(){return typeof performance<"u"?performance.now():Date.now()}const IC=(e,t)=>e+(t-e%t)%t;async function _C(e){let t,n;const r={};function o(p){n=p,r.HEAPU8=new Uint8Array(p),r.HEAPU32=new Uint32Array(p)}function a(p,g,b){r.HEAPU8.copyWithin(p,g,g+b)}function i(p){try{return t.grow(p-n.byteLength+65535>>>16),o(t.buffer),1}catch{}}function s(p){const g=r.HEAPU8.length;p=p>>>0;const b=kC();if(p>b)return!1;for(let x=1;x<=4;x*=2){let E=g*(1+.2/x);E=Math.min(E,p+100663296);const v=Math.min(b,IC(Math.max(p,E),65536));if(i(v))return!0}return!1}const l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(p,g,b=1024){const x=g+b;let E=g;for(;p[E]&&!(E>=x);)++E;if(E-g>16&&p.buffer&&l)return l.decode(p.subarray(g,E));let v="";for(;g<E;){let C=p[g++];if(!(C&128)){v+=String.fromCharCode(C);continue}const I=p[g++]&63;if((C&224)===192){v+=String.fromCharCode((C&31)<<6|I);continue}const w=p[g++]&63;if((C&240)===224?C=(C&15)<<12|I<<6|w:C=(C&7)<<18|I<<12|w<<6|p[g++]&63,C<65536)v+=String.fromCharCode(C);else{const S=C-65536;v+=String.fromCharCode(55296|S>>10,56320|S&1023)}}return v}function d(p,g){return p?c(r.HEAPU8,p,g):""}const u={emscripten_get_now:AC,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function h(){const p=await e({env:u,wasi_snapshot_preview1:u});t=p.memory,o(t.buffer),Object.assign(r,p),r.UTF8ToString=d}return await h(),r}var DC=Object.defineProperty,wC=(e,t,n)=>t in e?DC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ht=(e,t,n)=>(wC(e,typeof t!="symbol"?t+"":t,n),n);let qt=null;function NC(e){throw new Bd(e.UTF8ToString(e.getLastOnigError()))}let Yg=class Kg{constructor(t){Ht(this,"utf16Length"),Ht(this,"utf8Length"),Ht(this,"utf16Value"),Ht(this,"utf8Value"),Ht(this,"utf16OffsetToUtf8"),Ht(this,"utf8OffsetToUtf16");const n=t.length,r=Kg._utf8ByteLength(t),o=r!==n,a=o?new Uint32Array(n+1):null;o&&(a[n]=r);const i=o?new Uint32Array(r+1):null;o&&(i[r]=n);const s=new Uint8Array(r);let l=0;for(let c=0;c<n;c++){const d=t.charCodeAt(c);let u=d,h=!1;if(d>=55296&&d<=56319&&c+1<n){const p=t.charCodeAt(c+1);p>=56320&&p<=57343&&(u=(d-55296<<10)+65536|p-56320,h=!0)}o&&(a[c]=l,h&&(a[c+1]=l),u<=127?i[l+0]=c:u<=2047?(i[l+0]=c,i[l+1]=c):u<=65535?(i[l+0]=c,i[l+1]=c,i[l+2]=c):(i[l+0]=c,i[l+1]=c,i[l+2]=c,i[l+3]=c)),u<=127?s[l++]=u:u<=2047?(s[l++]=192|(u&1984)>>>6,s[l++]=128|(u&63)>>>0):u<=65535?(s[l++]=224|(u&61440)>>>12,s[l++]=128|(u&4032)>>>6,s[l++]=128|(u&63)>>>0):(s[l++]=240|(u&1835008)>>>18,s[l++]=128|(u&258048)>>>12,s[l++]=128|(u&4032)>>>6,s[l++]=128|(u&63)>>>0),h&&c++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=i}static _utf8ByteLength(t){let n=0;for(let r=0,o=t.length;r<o;r++){const a=t.charCodeAt(r);let i=a,s=!1;if(a>=55296&&a<=56319&&r+1<o){const l=t.charCodeAt(r+1);l>=56320&&l<=57343&&(i=(a-55296<<10)+65536|l-56320,s=!0)}i<=127?n+=1:i<=2047?n+=2:i<=65535?n+=3:n+=4,s&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}};const or=class{constructor(t){if(Ht(this,"id",++or.LAST_ID),Ht(this,"_onigBinding"),Ht(this,"content"),Ht(this,"utf16Length"),Ht(this,"utf8Length"),Ht(this,"utf16OffsetToUtf8"),Ht(this,"utf8OffsetToUtf16"),Ht(this,"ptr"),!qt)throw new Bd("Must invoke loadWasm first.");this._onigBinding=qt,this.content=t;const n=new Yg(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!or._sharedPtrInUse?(or._sharedPtr||(or._sharedPtr=qt.omalloc(1e4)),or._sharedPtrInUse=!0,qt.HEAPU8.set(n.utf8Value,or._sharedPtr),this.ptr=or._sharedPtr):this.ptr=n.createString(qt)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===or._sharedPtr?or._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let Hi=or;Ht(Hi,"LAST_ID",0);Ht(Hi,"_sharedPtr",0);Ht(Hi,"_sharedPtrInUse",!1);let PC=class{constructor(t){if(Ht(this,"_onigBinding"),Ht(this,"_ptr"),!qt)throw new Bd("Must invoke loadWasm first.");const n=[],r=[];for(let s=0,l=t.length;s<l;s++){const c=new Yg(t[s]);n[s]=c.createString(qt),r[s]=c.utf8Length}const o=qt.omalloc(4*t.length);qt.HEAPU32.set(n,o/4);const a=qt.omalloc(4*t.length);qt.HEAPU32.set(r,a/4);const i=qt.createOnigScanner(o,a,t.length);for(let s=0,l=t.length;s<l;s++)qt.ofree(n[s]);qt.ofree(a),qt.ofree(o),i===0&&NC(qt),this._onigBinding=qt,this._ptr=i}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let o=0;if(typeof r=="number"&&(o=r),typeof t=="string"){t=new Hi(t);const a=this._findNextMatchSync(t,n,!1,o);return t.dispose(),a}return this._findNextMatchSync(t,n,!1,o)}_findNextMatchSync(t,n,r,o){const a=this._onigBinding,i=a.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),o);if(i===0)return null;const s=a.HEAPU32;let l=i/4;const c=s[l++],d=s[l++],u=[];for(let h=0;h<d;h++){const p=t.convertUtf8OffsetToUtf16(s[l++]),g=t.convertUtf8OffsetToUtf16(s[l++]);u[h]={start:p,end:g,length:g-p}}return{index:c,captureIndices:u}}};function RC(e){return typeof e.instantiator=="function"}function LC(e){return typeof e.default=="function"}function $C(e){return typeof e.data<"u"}function OC(e){return typeof Response<"u"&&e instanceof Response}function MC(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let ps;function FC(e){if(ps)return ps;async function t(){qt=await _C(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),RC(r)?r=await r.instantiator(n):LC(r)?r=await r.default(n):($C(r)&&(r=r.data),OC(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await BC(r)(n):r=await jC(r)(n):MC(r)?r=await kc(r)(n):r instanceof WebAssembly.Module?r=await kc(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await kc(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return ps=t(),ps}function kc(e){return t=>WebAssembly.instantiate(e,t)}function BC(e){return t=>WebAssembly.instantiateStreaming(e,t)}function jC(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let HC;function UC(){return HC}async function Qg(e){return e&&await FC(e),{createScanner(t){return new PC(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new Hi(t)}}}function zC(e){return jd(e)}function jd(e){return Array.isArray(e)?GC(e):e instanceof RegExp?e:typeof e=="object"?qC(e):e}function GC(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=jd(e[n]);return t}function qC(e){let t={};for(let n in e)t[n]=jd(e[n]);return t}function Xg(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function Jg(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?Jg(e.substring(0,e.length-1)):e.substr(~t+1)}var Ac=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,fs=class{static hasCaptures(t){return t===null?!1:(Ac.lastIndex=0,Ac.test(t))}static replaceCaptures(t,n,r){return t.replace(Ac,(o,a,i,s)=>{let l=r[parseInt(a||i,10)];if(l){let c=n.substring(l.start,l.end);for(;c[0]===".";)c=c.substring(1);switch(s){case"downcase":return c.toLowerCase();case"upcase":return c.toUpperCase();default:return c}}else return o})}};function Zg(e,t){return e<t?-1:e>t?1:0}function e0(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let o=0;o<n;o++){let a=Zg(e[o],t[o]);if(a!==0)return a}return 0}return n-r}function Cp(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function t0(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var n0=class{constructor(t){G(this,"cache",new Map);this.fn=t}get(t){if(this.cache.has(t))return this.cache.get(t);const n=this.fn(t);return this.cache.set(t,n),n}},tl=class{constructor(t,n,r){G(this,"_cachedMatchRoot",new n0(t=>this._root.match(t)));this._colorMap=t,this._defaults=n,this._root=r}static createFromRawTheme(t,n){return this.createFromParsedTheme(YC(t),n)}static createFromParsedTheme(t,n){return QC(t,n)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const n=t.scopeName,r=this._cachedMatchRoot.get(n).find(o=>WC(t.parent,o.parentScopes));return r?new r0(r.fontStyle,r.foreground,r.background):null}},Ic=class Ps{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Ps(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new Ps(n,t[r]);return n}push(t){return new Ps(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function WC(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],o=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],o=!0}for(;e&&!VC(e.scopeName,r);){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function VC(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var r0=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function YC(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let o=0,a=t.length;o<a;o++){let i=t[o];if(!i.settings)continue;let s;if(typeof i.scope=="string"){let u=i.scope;u=u.replace(/^[,]+/,""),u=u.replace(/[,]+$/,""),s=u.split(",")}else Array.isArray(i.scope)?s=i.scope:s=[""];let l=-1;if(typeof i.settings.fontStyle=="string"){l=0;let u=i.settings.fontStyle.split(" ");for(let h=0,p=u.length;h<p;h++)switch(u[h]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let c=null;typeof i.settings.foreground=="string"&&Cp(i.settings.foreground)&&(c=i.settings.foreground);let d=null;typeof i.settings.background=="string"&&Cp(i.settings.background)&&(d=i.settings.background);for(let u=0,h=s.length;u<h;u++){let p=s[u].trim().split(" "),g=p[p.length-1],b=null;p.length>1&&(b=p.slice(0,p.length-1),b.reverse()),n[r++]=new KC(g,b,o,l,c,d)}}return n}var KC=class{constructor(t,n,r,o,a,i){this.scope=t,this.parentScopes=n,this.index=r,this.fontStyle=o,this.foreground=a,this.background=i}},Ir=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Ir||{});function QC(e,t){e.sort((l,c)=>{let d=Zg(l.scope,c.scope);return d!==0||(d=e0(l.parentScopes,c.parentScopes),d!==0)?d:l.index-c.index});let n=0,r="#000000",o="#ffffff";for(;e.length>=1&&e[0].scope==="";){let l=e.shift();l.fontStyle!==-1&&(n=l.fontStyle),l.foreground!==null&&(r=l.foreground),l.background!==null&&(o=l.background)}let a=new XC(t),i=new r0(n,a.getId(r),a.getId(o)),s=new ZC(new Iu(0,null,-1,0,0),[]);for(let l=0,c=e.length;l<c;l++){let d=e[l];s.insert(0,d.scope,d.parentScopes,d.fontStyle,a.getId(d.foreground),a.getId(d.background))}return new tl(a,i,s)}var XC=class{constructor(t){G(this,"_isFrozen");G(this,"_lastColorId");G(this,"_id2color");G(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let n=0,r=t.length;n<r;n++)this._color2id[t[n]]=n,this._id2color[n]=t[n]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let n=this._color2id[t];if(n)return n;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return n=++this._lastColorId,this._color2id[t]=n,this._id2color[n]=t,n}getColorMap(){return this._id2color.slice(0)}},JC=Object.freeze([]),Iu=class o0{constructor(t,n,r,o,a){G(this,"scopeDepth");G(this,"parentScopes");G(this,"fontStyle");G(this,"foreground");G(this,"background");this.scopeDepth=t,this.parentScopes=n||JC,this.fontStyle=r,this.foreground=o,this.background=a}clone(){return new o0(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,o=t.length;r<o;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,o){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),o!==0&&(this.background=o)}},ZC=class _u{constructor(t,n=[],r={}){G(this,"_rulesWithParentScopes");this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,o=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[o]===">"&&o++,!(r>=t.parentScopes.length||o>=n.parentScopes.length);){const a=n.parentScopes[o].length-t.parentScopes[r].length;if(a!==0)return a;r++,o++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),o,a;if(r===-1?(o=t,a=""):(o=t.substring(0,r),a=t.substring(r+1)),this._children.hasOwnProperty(o))return this._children[o].match(a)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(_u._cmpBySpecificity),n}insert(t,n,r,o,a,i){if(n===""){this._doInsertHere(t,r,o,a,i);return}let s=n.indexOf("."),l,c;s===-1?(l=n,c=""):(l=n.substring(0,s),c=n.substring(s+1));let d;this._children.hasOwnProperty(l)?d=this._children[l]:(d=new _u(this._mainRule.clone(),Iu.cloneArr(this._rulesWithParentScopes)),this._children[l]=d),d.insert(t+1,c,r,o,a,i)}_doInsertHere(t,n,r,o,a){if(n===null){this._mainRule.acceptOverwrite(t,r,o,a);return}for(let i=0,s=this._rulesWithParentScopes.length;i<s;i++){let l=this._rulesWithParentScopes[i];if(e0(l.parentScopes,n)===0){l.acceptOverwrite(t,r,o,a);return}}r===-1&&(r=this._mainRule.fontStyle),o===0&&(o=this._mainRule.foreground),a===0&&(a=this._mainRule.background),this._rulesWithParentScopes.push(new Iu(t,n,r,o,a))}},Ea=class wn{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=wn.getLanguageId(t),r=wn.getTokenType(t),o=wn.getFontStyle(t),a=wn.getForeground(t),i=wn.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:o,foreground:a,background:i})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,o,a,i,s){let l=wn.getLanguageId(t),c=wn.getTokenType(t),d=wn.containsBalancedBrackets(t)?1:0,u=wn.getFontStyle(t),h=wn.getForeground(t),p=wn.getBackground(t);return n!==0&&(l=n),r!==8&&(c=r),o!==null&&(d=o?1:0),a!==-1&&(u=a),i!==0&&(h=i),s!==0&&(p=s),(l<<0|c<<8|d<<10|u<<11|h<<15|p<<24)>>>0}};function nl(e,t){const n=[],r=ev(e);let o=r.next();for(;o!==null;){let l=0;if(o.length===2&&o.charAt(1)===":"){switch(o.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=r.next()}let c=i();if(n.push({matcher:c,priority:l}),o!==",")break;o=r.next()}return n;function a(){if(o==="-"){o=r.next();const l=a();return c=>!!l&&!l(c)}if(o==="("){o=r.next();const l=s();return o===")"&&(o=r.next()),l}if(vp(o)){const l=[];do l.push(o),o=r.next();while(vp(o));return c=>t(l,c)}return null}function i(){const l=[];let c=a();for(;c;)l.push(c),c=a();return d=>l.every(u=>u(d))}function s(){const l=[];let c=i();for(;c&&(l.push(c),o==="|"||o===",");){do o=r.next();while(o==="|"||o===",");c=i()}return d=>l.some(u=>u(d))}}function vp(e){return!!e&&!!e.match(/[\w\.:]+/)}function ev(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function a0(e){typeof e.dispose=="function"&&e.dispose()}var vi=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},tv=class{constructor(t,n){this.scopeName=t,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}},nv=class{constructor(){G(this,"_references",[]);G(this,"_seenReferenceKeys",new Set);G(this,"visitedRule",new Set)}get references(){return this._references}add(t){const n=t.toKey();this._seenReferenceKeys.has(n)||(this._seenReferenceKeys.add(n),this._references.push(t))}},rv=class{constructor(t,n){G(this,"seenFullScopeRequests",new Set);G(this,"seenPartialScopeRequests",new Set);G(this,"Q");this.repo=t,this.initialScopeName=n,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new vi(this.initialScopeName)]}processQueue(){const t=this.Q;this.Q=[];const n=new nv;for(const r of t)ov(r,this.initialScopeName,this.repo,n);for(const r of n.references)if(r instanceof vi){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function ov(e,t,n,r){const o=n.lookup(e.scopeName);if(!o){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const a=n.lookup(t);e instanceof vi?Rs({baseGrammar:a,selfGrammar:o},r):Du(e.ruleName,{baseGrammar:a,selfGrammar:o,repository:o.repository},r);const i=n.injections(e.scopeName);if(i)for(const s of i)r.add(new vi(s))}function Du(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];rl([r],t,n)}}function Rs(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&rl(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&rl(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function rl(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const o=r.repository?Xg({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&rl(r.patterns,{...t,repository:o},n);const a=r.include;if(!a)continue;const i=i0(a);switch(i.kind){case 0:Rs({...t,selfGrammar:t.baseGrammar},n);break;case 1:Rs(t,n);break;case 2:Du(i.ruleName,{...t,repository:o},n);break;case 3:case 4:const s=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){const l={baseGrammar:t.baseGrammar,selfGrammar:s,repository:o};i.kind===4?Du(i.ruleName,l,n):Rs(l,n)}else i.kind===4?n.add(new tv(i.scopeName,i.ruleName)):n.add(new vi(i.scopeName));break}}}var av=class{constructor(){G(this,"kind",0)}},iv=class{constructor(){G(this,"kind",1)}},sv=class{constructor(t){G(this,"kind",2);this.ruleName=t}},lv=class{constructor(t){G(this,"kind",3);this.scopeName=t}},cv=class{constructor(t,n){G(this,"kind",4);this.scopeName=t,this.ruleName=n}};function i0(e){if(e==="$base")return new av;if(e==="$self")return new iv;const t=e.indexOf("#");if(t===-1)return new lv(e);if(t===0)return new sv(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new cv(n,r)}}var uv=/\\(\d+)/,Sp=/\\(\d+)/g,dv=-1,s0=-2,Ui=class{constructor(t,n,r,o){G(this,"$location");G(this,"id");G(this,"_nameIsCapturing");G(this,"_name");G(this,"_contentNameIsCapturing");G(this,"_contentName");this.$location=t,this.id=n,this._name=r||null,this._nameIsCapturing=fs.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=fs.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${Jg(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,n){return!this._nameIsCapturing||this._name===null||t===null||n===null?this._name:fs.replaceCaptures(this._name,t,n)}getContentName(t,n){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:fs.replaceCaptures(this._contentName,t,n)}},hv=class extends Ui{constructor(n,r,o,a,i){super(n,r,o,a);G(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(n,r){throw new Error("Not supported!")}compile(n,r){throw new Error("Not supported!")}compileAG(n,r,o,a){throw new Error("Not supported!")}},pv=class extends Ui{constructor(n,r,o,a,i){super(n,r,o,null);G(this,"_match");G(this,"captures");G(this,"_cachedCompiledPatterns");this._match=new Si(a,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(n,r){r.push(this._match)}compile(n,r){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,r,o,a){return this._getCachedCompiledPatterns(n).compileAG(n,o,a)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ki,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},kp=class extends Ui{constructor(n,r,o,a,i){super(n,r,o,a);G(this,"hasMissingPatterns");G(this,"patterns");G(this,"_cachedCompiledPatterns");this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(n,r){for(const o of this.patterns)n.getRule(o).collectPatterns(n,r)}compile(n,r){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,r,o,a){return this._getCachedCompiledPatterns(n).compileAG(n,o,a)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ki,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},wu=class extends Ui{constructor(n,r,o,a,i,s,l,c,d,u){super(n,r,o,a);G(this,"_begin");G(this,"beginCaptures");G(this,"_end");G(this,"endHasBackReferences");G(this,"endCaptures");G(this,"applyEndPatternLast");G(this,"hasMissingPatterns");G(this,"patterns");G(this,"_cachedCompiledPatterns");this._begin=new Si(i,this.id),this.beginCaptures=s,this._end=new Si(l||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=c,this.applyEndPatternLast=d||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(n,r){return this._end.resolveBackReferences(n,r)}collectPatterns(n,r){r.push(this._begin)}compile(n,r){return this._getCachedCompiledPatterns(n,r).compile(n)}compileAG(n,r,o,a){return this._getCachedCompiledPatterns(n,r).compileAG(n,o,a)}_getCachedCompiledPatterns(n,r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ki;for(const o of this.patterns)n.getRule(o).collectPatterns(n,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,r):this._cachedCompiledPatterns.setSource(0,r)),this._cachedCompiledPatterns}},ol=class extends Ui{constructor(n,r,o,a,i,s,l,c,d){super(n,r,o,a);G(this,"_begin");G(this,"beginCaptures");G(this,"whileCaptures");G(this,"_while");G(this,"whileHasBackReferences");G(this,"hasMissingPatterns");G(this,"patterns");G(this,"_cachedCompiledPatterns");G(this,"_cachedCompiledWhilePatterns");this._begin=new Si(i,this.id),this.beginCaptures=s,this.whileCaptures=c,this._while=new Si(l,s0),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(n,r){return this._while.resolveBackReferences(n,r)}collectPatterns(n,r){r.push(this._begin)}compile(n,r){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,r,o,a){return this._getCachedCompiledPatterns(n).compileAG(n,o,a)}_getCachedCompiledPatterns(n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ki;for(const r of this.patterns)n.getRule(r).collectPatterns(n,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(n,r){return this._getCachedCompiledWhilePatterns(n,r).compile(n)}compileWhileAG(n,r,o,a){return this._getCachedCompiledWhilePatterns(n,r).compileAG(n,o,a)}_getCachedCompiledWhilePatterns(n,r){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ki,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,r||"￿"),this._cachedCompiledWhilePatterns}},l0=class nn{static createCaptureRule(t,n,r,o,a){return t.registerRule(i=>new hv(n,i,r,o,a))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(o=>{if(t.id=o,t.match)return new pv(t.$vscodeTextmateLocation,t.id,t.name,t.match,nn._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=Xg({},r,t.repository));let a=t.patterns;return typeof a>"u"&&t.include&&(a=[{include:t.include}]),new kp(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,nn._compilePatterns(a,n,r))}return t.while?new ol(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,nn._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,nn._compileCaptures(t.whileCaptures||t.captures,n,r),nn._compilePatterns(t.patterns,n,r)):new wu(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,nn._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,nn._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,nn._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let o=[];if(t){let a=0;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const s=parseInt(i,10);s>a&&(a=s)}for(let i=0;i<=a;i++)o[i]=null;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const s=parseInt(i,10);let l=0;t[i].patterns&&(l=nn.getCompiledRuleId(t[i],n,r)),o[s]=nn.createCaptureRule(n,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,l)}}return o}static _compilePatterns(t,n,r){let o=[];if(t)for(let a=0,i=t.length;a<i;a++){const s=t[a];let l=-1;if(s.include){const c=i0(s.include);switch(c.kind){case 0:case 1:l=nn.getCompiledRuleId(r[s.include],n,r);break;case 2:let d=r[c.ruleName];d&&(l=nn.getCompiledRuleId(d,n,r));break;case 3:case 4:const u=c.scopeName,h=c.kind===4?c.ruleName:null,p=n.getExternalGrammar(u,r);if(p)if(h){let g=p.repository[h];g&&(l=nn.getCompiledRuleId(g,n,p.repository))}else l=nn.getCompiledRuleId(p.repository.$self,n,p.repository);break}}else l=nn.getCompiledRuleId(s,n,r);if(l!==-1){const c=n.getRule(l);let d=!1;if((c instanceof kp||c instanceof wu||c instanceof ol)&&c.hasMissingPatterns&&c.patterns.length===0&&(d=!0),d)continue;o.push(l)}}return{patterns:o,hasMissingPatterns:(t?t.length:0)!==o.length}}},Si=class c0{constructor(t,n){G(this,"source");G(this,"ruleId");G(this,"hasAnchor");G(this,"hasBackReferences");G(this,"_anchorCache");if(t&&typeof t=="string"){const r=t.length;let o=0,a=[],i=!1;for(let s=0;s<r;s++)if(t.charAt(s)==="\\"&&s+1<r){const l=t.charAt(s+1);l==="z"?(a.push(t.substring(o,s)),a.push("$(?!\\n)(?<!\\n)"),o=s+2):(l==="A"||l==="G")&&(i=!0),s++}this.hasAnchor=i,o===0?this.source=t:(a.push(t.substring(o,r)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=uv.test(this.source):this.hasBackReferences=!1}clone(){return new c0(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(o=>t.substring(o.start,o.end));return Sp.lastIndex=0,this.source.replace(Sp,(o,a)=>t0(r[parseInt(a,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],o=[],a,i,s,l;for(a=0,i=this.source.length;a<i;a++)s=this.source.charAt(a),t[a]=s,n[a]=s,r[a]=s,o[a]=s,s==="\\"&&a+1<i&&(l=this.source.charAt(a+1),l==="A"?(t[a+1]="￿",n[a+1]="￿",r[a+1]="A",o[a+1]="A"):l==="G"?(t[a+1]="￿",n[a+1]="G",r[a+1]="￿",o[a+1]="G"):(t[a+1]=l,n[a+1]=l,r[a+1]=l,o[a+1]=l),a++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:o.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},ki=class{constructor(){G(this,"_items");G(this,"_hasAnchors");G(this,"_cached");G(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,n){this._items[t].source!==n&&(this._disposeCaches(),this._items[t].setSource(n))}compile(t){if(!this._cached){let n=this._items.map(r=>r.source);this._cached=new Ap(t,n,this._items.map(r=>r.ruleId))}return this._cached}compileAG(t,n,r){return this._hasAnchors?n?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,n,r){let o=this._items.map(a=>a.resolveAnchors(n,r));return new Ap(t,o,this._items.map(a=>a.ruleId))}},Ap=class{constructor(t,n,r){G(this,"scanner");this.regExps=n,this.rules=r,this.scanner=t.createOnigScanner(n)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let n=0,r=this.rules.length;n<r;n++)t.push(" - "+this.rules[n]+": "+this.regExps[n]);return t.join(`
17
+ `)}findNextMatchSync(t,n,r){const o=this.scanner.findNextMatchSync(t,n,r);return o?{ruleId:this.rules[o.index],captureIndices:o.captureIndices}:null}},_c=class{constructor(t,n){this.languageId=t,this.tokenType=n}},Ar,fv=(Ar=class{constructor(t,n){G(this,"_defaultAttributes");G(this,"_embeddedLanguagesMatcher");G(this,"_getBasicScopeAttributes",new n0(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new _c(n,r)}));this._defaultAttributes=new _c(t,8),this._embeddedLanguagesMatcher=new mv(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Ar._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Ar.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},G(Ar,"_NULL_SCOPE_METADATA",new _c(0,0)),G(Ar,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),Ar),mv=class{constructor(t){G(this,"values");G(this,"scopesRegExp");if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const n=t.map(([r,o])=>t0(r));n.sort(),n.reverse(),this.scopesRegExp=new RegExp(`^((${n.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const n=t.match(this.scopesRegExp);if(n)return this.values.get(n[1])}};typeof process<"u"&&process.env.VSCODE_TEXTMATE_DEBUG;var Ip=class{constructor(t,n){this.stack=t,this.stoppedEarly=n}};function u0(e,t,n,r,o,a,i,s){const l=t.content.length;let c=!1,d=-1;if(i){const p=gv(e,t,n,r,o,a);o=p.stack,r=p.linePos,n=p.isFirstLine,d=p.anchorPosition}const u=Date.now();for(;!c;){if(s!==0&&Date.now()-u>s)return new Ip(o,!0);h()}return new Ip(o,!1);function h(){const p=yv(e,t,n,r,o,d);if(!p){a.produce(o,l),c=!0;return}const g=p.captureIndices,b=p.matchedRuleId,x=g&&g.length>0?g[0].end>r:!1;if(b===dv){const E=o.getRule(e);a.produce(o,g[0].start),o=o.withContentNameScopesList(o.nameScopesList),ni(e,t,n,o,a,E.endCaptures,g),a.produce(o,g[0].end);const v=o;if(o=o.parent,d=v.getAnchorPos(),!x&&v.getEnterPos()===r){o=v,a.produce(o,l),c=!0;return}}else{const E=e.getRule(b);a.produce(o,g[0].start);const v=o,C=E.getName(t.content,g),I=o.contentNameScopesList.pushAttributed(C,e);if(o=o.push(b,r,d,g[0].end===l,null,I,I),E instanceof wu){const w=E;ni(e,t,n,o,a,w.beginCaptures,g),a.produce(o,g[0].end),d=g[0].end;const S=w.getContentName(t.content,g),M=I.pushAttributed(S,e);if(o=o.withContentNameScopesList(M),w.endHasBackReferences&&(o=o.withEndRule(w.getEndWithResolvedBackReferences(t.content,g))),!x&&v.hasSameRuleAs(o)){o=o.pop(),a.produce(o,l),c=!0;return}}else if(E instanceof ol){const w=E;ni(e,t,n,o,a,w.beginCaptures,g),a.produce(o,g[0].end),d=g[0].end;const S=w.getContentName(t.content,g),M=I.pushAttributed(S,e);if(o=o.withContentNameScopesList(M),w.whileHasBackReferences&&(o=o.withEndRule(w.getWhileWithResolvedBackReferences(t.content,g))),!x&&v.hasSameRuleAs(o)){o=o.pop(),a.produce(o,l),c=!0;return}}else if(ni(e,t,n,o,a,E.captures,g),a.produce(o,g[0].end),o=o.pop(),!x){o=o.safePop(),a.produce(o,l),c=!0;return}}g[0].end>r&&(r=g[0].end,n=!1)}}function gv(e,t,n,r,o,a){let i=o.beginRuleCapturedEOL?0:-1;const s=[];for(let l=o;l;l=l.pop()){const c=l.getRule(e);c instanceof ol&&s.push({rule:c,stack:l})}for(let l=s.pop();l;l=s.pop()){const{ruleScanner:c,findOptions:d}=xv(l.rule,e,l.stack.endRule,n,r===i),u=c.findNextMatchSync(t,r,d);if(u){if(u.ruleId!==s0){o=l.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(l.stack,u.captureIndices[0].start),ni(e,t,n,l.stack,a,l.rule.whileCaptures,u.captureIndices),a.produce(l.stack,u.captureIndices[0].end),i=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}else{o=l.stack.pop();break}}return{stack:o,linePos:r,anchorPosition:i,isFirstLine:n}}function yv(e,t,n,r,o,a){const i=bv(e,t,n,r,o,a),s=e.getInjections();if(s.length===0)return i;const l=Ev(s,e,t,n,r,o,a);if(!l)return i;if(!i)return l;const c=i.captureIndices[0].start,d=l.captureIndices[0].start;return d<c||l.priorityMatch&&d===c?l:i}function bv(e,t,n,r,o,a){const i=o.getRule(e),{ruleScanner:s,findOptions:l}=d0(i,e,o.endRule,n,r===a),c=s.findNextMatchSync(t,r,l);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function Ev(e,t,n,r,o,a,i){let s=Number.MAX_VALUE,l=null,c,d=0;const u=a.contentNameScopesList.getScopeNames();for(let h=0,p=e.length;h<p;h++){const g=e[h];if(!g.matcher(u))continue;const b=t.getRule(g.ruleId),{ruleScanner:x,findOptions:E}=d0(b,t,null,r,o===i),v=x.findNextMatchSync(n,o,E);if(!v)continue;const C=v.captureIndices[0].start;if(!(C>=s)&&(s=C,l=v.captureIndices,c=v.ruleId,d=g.priority,s===o))break}return l?{priorityMatch:d===-1,captureIndices:l,matchedRuleId:c}:null}function d0(e,t,n,r,o){return{ruleScanner:e.compileAG(t,n,r,o),findOptions:0}}function xv(e,t,n,r,o){return{ruleScanner:e.compileWhileAG(t,n,r,o),findOptions:0}}function ni(e,t,n,r,o,a,i){if(a.length===0)return;const s=t.content,l=Math.min(a.length,i.length),c=[],d=i[0].end;for(let u=0;u<l;u++){const h=a[u];if(h===null)continue;const p=i[u];if(p.length===0)continue;if(p.start>d)break;for(;c.length>0&&c[c.length-1].endPos<=p.start;)o.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?o.produceFromScopes(c[c.length-1].scopes,p.start):o.produce(r,p.start),h.retokenizeCapturedWithRuleId){const b=h.getName(s,i),x=r.contentNameScopesList.pushAttributed(b,e),E=h.getContentName(s,i),v=x.pushAttributed(E,e),C=r.push(h.retokenizeCapturedWithRuleId,p.start,-1,!1,null,x,v),I=e.createOnigString(s.substring(0,p.end));u0(e,I,n&&p.start===0,p.start,C,o,!1,0),a0(I);continue}const g=h.getName(s,i);if(g!==null){const b=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(g,e);c.push(new Tv(b,p.end))}}for(;c.length>0;)o.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var Tv=class{constructor(t,n){G(this,"scopes");G(this,"endPos");this.scopes=t,this.endPos=n}};function Cv(e,t,n,r,o,a,i,s){return new Sv(e,t,n,r,o,a,i,s)}function _p(e,t,n,r,o){const a=nl(t,al),i=l0.getCompiledRuleId(n,r,o.repository);for(const s of a)e.push({debugSelector:t,matcher:s.matcher,ruleId:i,grammar:o,priority:s.priority})}function al(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let o=n;o<t.length;o++)if(vv(t[o],r))return n=o+1,!0;return!1})}function vv(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var Sv=class{constructor(t,n,r,o,a,i,s,l){G(this,"_rootId");G(this,"_lastRuleId");G(this,"_ruleId2desc");G(this,"_includedGrammars");G(this,"_grammarRepository");G(this,"_grammar");G(this,"_injections");G(this,"_basicScopeAttributesProvider");G(this,"_tokenTypeMatchers");if(this._rootScopeName=t,this.balancedBracketSelectors=i,this._onigLib=l,this._basicScopeAttributesProvider=new fv(r,o),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=Dp(n,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const c of Object.keys(a)){const d=nl(c,al);for(const u of d)this._tokenTypeMatchers.push({matcher:u.matcher,type:a[c]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:a=>a===this._rootScopeName?this._grammar:this.getExternalGrammar(a),injections:a=>this._grammarRepository.injections(a)},n=[],r=this._rootScopeName,o=t.lookup(r);if(o){const a=o.injections;if(a)for(let s in a)_p(n,s,a[s],this,o);const i=this._grammarRepository.injections(r);i&&i.forEach(s=>{const l=this.getExternalGrammar(s);if(l){const c=l.injectionSelector;c&&_p(n,c,l,this,l)}})}return n.sort((a,i)=>a.priority-i.priority),n}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const n=++this._lastRuleId,r=t(n);return this._ruleId2desc[n]=r,r}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,n){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const r=this._grammarRepository.lookup(t);if(r)return this._includedGrammars[t]=Dp(r,n&&n.$base),this._includedGrammars[t]}}tokenizeLine(t,n,r=0){const o=this._tokenize(t,n,!1,r);return{tokens:o.lineTokens.getResult(o.ruleStack,o.lineLength),ruleStack:o.ruleStack,stoppedEarly:o.stoppedEarly}}tokenizeLine2(t,n,r=0){const o=this._tokenize(t,n,!0,r);return{tokens:o.lineTokens.getBinaryResult(o.ruleStack,o.lineLength),ruleStack:o.ruleStack,stoppedEarly:o.stoppedEarly}}_tokenize(t,n,r,o){this._rootId===-1&&(this._rootId=l0.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!n||n===Nu.NULL){a=!0;const d=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),h=Ea.set(0,d.languageId,d.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),p=this.getRule(this._rootId).getName(null,null);let g;p?g=ci.createRootAndLookUpScopeName(p,h,this):g=ci.createRoot("unknown",h),n=new Nu(null,this._rootId,-1,-1,!1,null,g,g)}else a=!1,n.reset();t=t+`
18
18
  `;const i=this.createOnigString(t),s=i.content.length,l=new Av(r,t,this._tokenTypeMatchers,this.balancedBracketSelectors),c=u0(this,i,a,0,n,l,!0,o);return a0(i),{lineLength:s,lineTokens:l,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function Dp(e,t){return e=zC(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var ci=class ar{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,o=t?.scopePath??null;for(const a of n)o=Ic.push(o,a.scopeNames),r=new ar(r,o,a.encodedTokenAttributes);return r}static createRoot(t,n){return new ar(null,new Ic(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const o=r.getMetadataForScope(t),a=new Ic(null,t),i=r.themeProvider.themeMatch(a),s=ar.mergeAttributes(n,o,i);return new ar(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return ar.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let o=-1,a=0,i=0;return r!==null&&(o=r.fontStyle,a=r.foregroundId,i=r.backgroundId),Ea.set(t,n.languageId,n.tokenType,null,o,a,i)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return ar._pushAttributed(this,t,n);const r=t.split(/ /g);let o=this;for(const a of r)o=ar._pushAttributed(o,a,n);return o}static _pushAttributed(t,n,r){const o=r.getMetadataForScope(n),a=t.scopePath.push(n),i=r.themeProvider.themeMatch(a),s=ar.mergeAttributes(t.tokenAttributes,o,i);return new ar(t,a,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},Bn,Nu=(Bn=class{constructor(t,n,r,o,a,i,s,l){G(this,"_stackElementBrand");G(this,"_enterPos");G(this,"_anchorPos");G(this,"depth");this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=a,this.endRule=i,this.nameScopesList=s,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=o}equals(t){return t===null?!1:Bn._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?ci.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){Bn._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,o,a,i,s){return new Bn(this,t,n,r,o,a,i,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new Bn(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=ci.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new Bn(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,ci.fromExtension(r,n.contentNameScopesList))}},G(Bn,"NULL",new Bn(null,0,0,0,!1,null,null,null)),Bn),kv=class{constructor(t,n){G(this,"balancedBracketScopes");G(this,"unbalancedBracketScopes");G(this,"allowAny",!1);this.balancedBracketScopes=t.flatMap(r=>r==="*"?(this.allowAny=!0,[]):nl(r,al).map(o=>o.matcher)),this.unbalancedBracketScopes=n.flatMap(r=>nl(r,al).map(o=>o.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const n of this.unbalancedBracketScopes)if(n(t))return!1;for(const n of this.balancedBracketScopes)if(n(t))return!0;return this.allowAny}},Av=class{constructor(t,n,r,o){G(this,"_emitBinaryTokens");G(this,"_lineText");G(this,"_tokens");G(this,"_binaryTokens");G(this,"_lastTokenEndIndex");G(this,"_tokenTypeOverrides");this.balancedBracketSelectors=o,this._emitBinaryTokens=t,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(t,n){this.produceFromScopes(t.contentNameScopesList,n)}produceFromScopes(t,n){if(this._lastTokenEndIndex>=n)return;if(this._emitBinaryTokens){let o=t?.tokenAttributes??0,a=!1;if(this.balancedBracketSelectors?.matchesAlways&&(a=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const i=t?.getScopeNames()??[];for(const s of this._tokenTypeOverrides)s.matcher(i)&&(o=Ea.set(o,0,s.type,null,-1,0,0));this.balancedBracketSelectors&&(a=this.balancedBracketSelectors.match(i))}if(a&&(o=Ea.set(o,0,8,a,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===o){this._lastTokenEndIndex=n;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(o),this._lastTokenEndIndex=n;return}const r=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:n,scopes:r}),this._lastTokenEndIndex=n}getResult(t,n){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===n-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,n),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,n){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===n-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,n),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let o=0,a=this._binaryTokens.length;o<a;o++)r[o]=this._binaryTokens[o];return r}},Iv=class{constructor(t,n){G(this,"_grammars",new Map);G(this,"_rawGrammars",new Map);G(this,"_injectionGrammars",new Map);G(this,"_theme");this._onigLib=n,this._theme=t}dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,n){this._rawGrammars.set(t.scopeName,t),n&&this._injectionGrammars.set(t.scopeName,n)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,n,r,o,a){if(!this._grammars.has(t)){let i=this._rawGrammars.get(t);if(!i)return null;this._grammars.set(t,Cv(t,i,n,r,o,a,this,this._onigLib))}return this._grammars.get(t)}},_v=class{constructor(t){G(this,"_options");G(this,"_syncRegistry");G(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new Iv(tl.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(tl.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new kv(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,o,a){const i=new rv(this._syncRegistry,t);for(;i.Q.length>0;)i.Q.map(s=>this._loadSingleGrammar(s.scopeName)),i.processQueue();return this._grammarForScopeName(t,n,r,o,a)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,o=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,o)}_grammarForScopeName(t,n=0,r=null,o=null,a=null){return this._syncRegistry.grammarForScopeName(t,n,r,o,a)}},Pu=Nu.NULL;const h0=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let zi=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};zi.prototype.normal={};zi.prototype.property={};zi.prototype.space=void 0;function p0(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new zi(n,r,t)}function Ai(e){return e.toLowerCase()}let Tn=class{constructor(t,n){this.attribute=n,this.property=t}};Tn.prototype.attribute="";Tn.prototype.booleanish=!1;Tn.prototype.boolean=!1;Tn.prototype.commaOrSpaceSeparated=!1;Tn.prototype.commaSeparated=!1;Tn.prototype.defined=!1;Tn.prototype.mustUseProperty=!1;Tn.prototype.number=!1;Tn.prototype.overloadedBoolean=!1;Tn.prototype.property="";Tn.prototype.spaceSeparated=!1;Tn.prototype.space=void 0;let Dv=0;const $e=Oo(),$t=Oo(),Ru=Oo(),le=Oo(),dt=Oo(),da=Oo(),Cn=Oo();function Oo(){return 2**++Dv}const Lu=Object.freeze(Object.defineProperty({__proto__:null,boolean:$e,booleanish:$t,commaOrSpaceSeparated:Cn,commaSeparated:da,number:le,overloadedBoolean:Ru,spaceSeparated:dt},Symbol.toStringTag,{value:"Module"})),Dc=Object.keys(Lu);let Hd=class extends Tn{constructor(t,n,r,o){let a=-1;if(super(t,n),wp(this,"space",o),typeof r=="number")for(;++a<Dc.length;){const i=Dc[a];wp(this,Dc[a],(r&Lu[i])===Lu[i])}}};Hd.prototype.defined=!0;function wp(e,t,n){n&&(e[t]=n)}function Sa(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const a=new Hd(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Ai(r)]=r,n[Ai(a.attribute)]=r}return new zi(t,n,e.space)}const f0=Sa({properties:{ariaActiveDescendant:null,ariaAtomic:$t,ariaAutoComplete:null,ariaBusy:$t,ariaChecked:$t,ariaColCount:le,ariaColIndex:le,ariaColSpan:le,ariaControls:dt,ariaCurrent:null,ariaDescribedBy:dt,ariaDetails:null,ariaDisabled:$t,ariaDropEffect:dt,ariaErrorMessage:null,ariaExpanded:$t,ariaFlowTo:dt,ariaGrabbed:$t,ariaHasPopup:null,ariaHidden:$t,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:dt,ariaLevel:le,ariaLive:null,ariaModal:$t,ariaMultiLine:$t,ariaMultiSelectable:$t,ariaOrientation:null,ariaOwns:dt,ariaPlaceholder:null,ariaPosInSet:le,ariaPressed:$t,ariaReadOnly:$t,ariaRelevant:null,ariaRequired:$t,ariaRoleDescription:dt,ariaRowCount:le,ariaRowIndex:le,ariaRowSpan:le,ariaSelected:$t,ariaSetSize:le,ariaSort:null,ariaValueMax:le,ariaValueMin:le,ariaValueNow:le,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function m0(e,t){return t in e?e[t]:t}function g0(e,t){return m0(e,t.toLowerCase())}const wv=Sa({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:da,acceptCharset:dt,accessKey:dt,action:null,allow:null,allowFullScreen:$e,allowPaymentRequest:$e,allowUserMedia:$e,alt:null,as:null,async:$e,autoCapitalize:null,autoComplete:dt,autoFocus:$e,autoPlay:$e,blocking:dt,capture:null,charSet:null,checked:$e,cite:null,className:dt,cols:le,colSpan:null,content:null,contentEditable:$t,controls:$e,controlsList:dt,coords:le|da,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$e,defer:$e,dir:null,dirName:null,disabled:$e,download:Ru,draggable:$t,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$e,formTarget:null,headers:dt,height:le,hidden:Ru,high:le,href:null,hrefLang:null,htmlFor:dt,httpEquiv:dt,id:null,imageSizes:null,imageSrcSet:null,inert:$e,inputMode:null,integrity:null,is:null,isMap:$e,itemId:null,itemProp:dt,itemRef:dt,itemScope:$e,itemType:dt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$e,low:le,manifest:null,max:null,maxLength:le,media:null,method:null,min:null,minLength:le,multiple:$e,muted:$e,name:null,nonce:null,noModule:$e,noValidate:$e,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:$e,optimum:le,pattern:null,ping:dt,placeholder:null,playsInline:$e,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:$e,referrerPolicy:null,rel:dt,required:$e,reversed:$e,rows:le,rowSpan:le,sandbox:dt,scope:null,scoped:$e,seamless:$e,selected:$e,shadowRootClonable:$e,shadowRootDelegatesFocus:$e,shadowRootMode:null,shape:null,size:le,sizes:null,slot:null,span:le,spellCheck:$t,src:null,srcDoc:null,srcLang:null,srcSet:null,start:le,step:null,style:null,tabIndex:le,target:null,title:null,translate:null,type:null,typeMustMatch:$e,useMap:null,value:$t,width:le,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:dt,axis:null,background:null,bgColor:null,border:le,borderColor:null,bottomMargin:le,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:$e,declare:$e,event:null,face:null,frame:null,frameBorder:null,hSpace:le,leftMargin:le,link:null,longDesc:null,lowSrc:null,marginHeight:le,marginWidth:le,noResize:$e,noHref:$e,noShade:$e,noWrap:$e,object:null,profile:null,prompt:null,rev:null,rightMargin:le,rules:null,scheme:null,scrolling:$t,standby:null,summary:null,text:null,topMargin:le,valueType:null,version:null,vAlign:null,vLink:null,vSpace:le,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:$e,disableRemotePlayback:$e,prefix:null,property:null,results:le,security:null,unselectable:null},space:"html",transform:g0}),Nv=Sa({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Cn,accentHeight:le,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:le,amplitude:le,arabicForm:null,ascent:le,attributeName:null,attributeType:null,azimuth:le,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:le,by:null,calcMode:null,capHeight:le,className:dt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:le,diffuseConstant:le,direction:null,display:null,dur:null,divisor:le,dominantBaseline:null,download:$e,dx:null,dy:null,edgeMode:null,editable:null,elevation:le,enableBackground:null,end:null,event:null,exponent:le,externalResourcesRequired:null,fill:null,fillOpacity:le,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:da,g2:da,glyphName:da,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:le,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:le,horizOriginX:le,horizOriginY:le,id:null,ideographic:le,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:le,k:le,k1:le,k2:le,k3:le,k4:le,kernelMatrix:Cn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:le,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:le,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:le,overlineThickness:le,paintOrder:null,panose1:null,path:null,pathLength:le,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:dt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:le,pointsAtY:le,pointsAtZ:le,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Cn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Cn,rev:Cn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Cn,requiredFeatures:Cn,requiredFonts:Cn,requiredFormats:Cn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:le,specularExponent:le,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:le,strikethroughThickness:le,string:null,stroke:null,strokeDashArray:Cn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:le,strokeOpacity:le,strokeWidth:null,style:null,surfaceScale:le,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Cn,tabIndex:le,tableValues:null,target:null,targetX:le,targetY:le,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Cn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:le,underlineThickness:le,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:le,values:null,vAlphabetic:le,vMathematical:le,vectorEffect:null,vHanging:le,vIdeographic:le,version:null,vertAdvY:le,vertOriginX:le,vertOriginY:le,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:le,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:m0}),y0=Sa({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),b0=Sa({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:g0}),E0=Sa({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ka=p0([f0,wv,y0,b0,E0],"html"),Rr=p0([f0,Nv,y0,b0,E0],"svg"),Np={}.hasOwnProperty;function Ul(e,t){const n=t||{};function r(o,...a){let i=r.invalid;const s=r.handlers;if(o&&Np.call(o,e)){const l=String(o[e]);i=Np.call(s,l)?s[l]:r.unknown}if(i)return i.call(this,o,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Pv=/["&'<>`]/g,Rv=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Lv=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,$v=/[|\\{}()[\]^$+*?.]/g,Pp=new WeakMap;function Ov(e,t){if(e=e.replace(t.subset?Mv(t.subset):Pv,r),t.subset||t.escapeOnly)return e;return e.replace(Rv,n).replace(Lv,r);function n(o,a,i){return t.format((o.charCodeAt(0)-55296)*1024+o.charCodeAt(1)-56320+65536,i.charCodeAt(a+2),t)}function r(o,a,i){return t.format(o.charCodeAt(0),i.charCodeAt(a+1),t)}}function Mv(e){let t=Pp.get(e);return t||(t=Fv(e),Pp.set(e,t)),t}function Fv(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace($v,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const Bv=/[\dA-Fa-f]/;function jv(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!Bv.test(String.fromCharCode(t))?r:r+";"}const Hv=/\d/;function Uv(e,t,n){const r="&#"+String(e);return n&&t&&!Hv.test(String.fromCharCode(t))?r:r+";"}const zv=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],wc={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Gv=["cent","copy","divide","gt","lt","not","para","times"],x0={}.hasOwnProperty,$u={};let ms;for(ms in wc)x0.call(wc,ms)&&($u[wc[ms]]=ms);const qv=/[^\dA-Za-z]/;function Wv(e,t,n,r){const o=String.fromCharCode(e);if(x0.call($u,o)){const a=$u[o],i="&"+a;return n&&zv.includes(a)&&!Gv.includes(a)&&(!r||t&&t!==61&&qv.test(String.fromCharCode(t)))?i:i+";"}return""}function Vv(e,t,n){let r=jv(e,t,n.omitOptionalSemicolons),o;if((n.useNamedReferences||n.useShortestReferences)&&(o=Wv(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!o)&&n.useShortestReferences){const a=Uv(e,t,n.omitOptionalSemicolons);a.length<r.length&&(r=a)}return o&&(!n.useShortestReferences||o.length<r.length)?o:r}function ha(e,t){return Ov(e,Object.assign({format:Vv},t))}const Yv=/^>|^->|<!--|-->|--!>|<!-$/g,Kv=[">"],Qv=["<",">"];function Xv(e,t,n,r){return r.settings.bogusComments?"<?"+ha(e.value,Object.assign({},r.settings.characterReferences,{subset:Kv}))+">":"<!--"+e.value.replace(Yv,o)+"-->";function o(a){return ha(a,Object.assign({},r.settings.characterReferences,{subset:Qv}))}}function Jv(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function il(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;o!==-1;)r++,o=n.indexOf(t,o+t.length);return r}function Ou(e){const t=[],n=String(e||"");let r=n.indexOf(","),o=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const i=n.slice(o,r).trim();(i||!a)&&t.push(i),o=r+1,r=n.indexOf(",",o)}return t}function zl(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function Mu(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Gl(e){return e.join(" ").trim()}const Zv=/[ \t\n\f\r]/g;function Gi(e){return typeof e=="object"?e.type==="text"?Rp(e.value):!1:Rp(e)}function Rp(e){return e.replace(Zv,"")===""}const Ut=C0(1),T0=C0(-1),eS=[];function C0(e){return t;function t(n,r,o){const a=n?n.children:eS;let i=(r||0)+e,s=a[i];if(!o)for(;s&&Gi(s);)i+=e,s=a[i];return s}}const tS={}.hasOwnProperty;function v0(e){return t;function t(n,r,o){return tS.call(e,n.tagName)&&e[n.tagName](n,r,o)}}const Ud=v0({body:rS,caption:Nc,colgroup:Nc,dd:sS,dt:iS,head:Nc,html:nS,li:aS,optgroup:lS,option:cS,p:oS,rp:Lp,rt:Lp,tbody:dS,td:$p,tfoot:hS,th:$p,thead:uS,tr:pS});function Nc(e,t,n){const r=Ut(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Gi(r.value.charAt(0)))}function nS(e,t,n){const r=Ut(n,t);return!r||r.type!=="comment"}function rS(e,t,n){const r=Ut(n,t);return!r||r.type!=="comment"}function oS(e,t,n){const r=Ut(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function aS(e,t,n){const r=Ut(n,t);return!r||r.type==="element"&&r.tagName==="li"}function iS(e,t,n){const r=Ut(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function sS(e,t,n){const r=Ut(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Lp(e,t,n){const r=Ut(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function lS(e,t,n){const r=Ut(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function cS(e,t,n){const r=Ut(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function uS(e,t,n){const r=Ut(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function dS(e,t,n){const r=Ut(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function hS(e,t,n){return!Ut(n,t)}function pS(e,t,n){const r=Ut(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function $p(e,t,n){const r=Ut(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const fS=v0({body:yS,colgroup:bS,head:gS,html:mS,tbody:ES});function mS(e){const t=Ut(e,-1);return!t||t.type!=="comment"}function gS(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function yS(e){const t=Ut(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Gi(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function bS(e,t,n){const r=T0(n,t),o=Ut(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&Ud(r,n.children.indexOf(r),n)?!1:!!(o&&o.type==="element"&&o.tagName==="col")}function ES(e,t,n){const r=T0(n,t),o=Ut(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Ud(r,n.children.indexOf(r),n)?!1:!!(o&&o.type==="element"&&o.tagName==="tr")}const xS=/[A-Z]/g,Op=/-[a-z]/g,TS=/^data[-\w.:]+$/i;function qi(e,t){const n=Ai(t);let r=t,o=Tn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&TS.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Op,vS);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Op.test(a)){let i=a.replace(xS,CS);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}o=Hd}return new o(r,t)}function CS(e){return"-"+e.toLowerCase()}function vS(e){return e.charAt(1).toUpperCase()}const gs={name:[[`
19
19
  \f\r &/=>`.split(""),`
20
20
  \f\r "&'/=>\``.split("")],[`\0
@@ -23,10 +23,10 @@ export default theme;`}const Ax=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[
23
23
  \f\r &>`.split(""),`\0
24
24
  \f\r "&'<=>\``.split("")],[`\0
25
25
  \f\r "&'<=>\``.split(""),`\0
26
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function SS(e,t,n,r){const o=r.schema,a=o.space==="svg"?!1:r.settings.omitOptionalTags;let i=o.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const s=[];let l;o.space==="html"&&e.tagName==="svg"&&(r.schema=Rr);const c=kS(r,e.properties),d=r.all(o.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=o,d&&(i=!1),(c||!a||!fS(e,t,n))&&(s.push("<",e.tagName,c?" "+c:""),i&&(o.space==="svg"||r.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(d),!i&&(!a||!Ud(e,t,n))&&s.push("</"+e.tagName+">"),s.join("")}function kS(e,t){const n=[];let r=-1,o;if(t){for(o in t)if(t[o]!==null&&t[o]!==void 0){const a=AS(e,o,t[o]);a&&n.push(a)}}for(;++r<n.length;){const a=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&a!=='"'&&a!=="'"&&(n[r]+=" ")}return n.join("")}function AS(e,t,n){const r=qi(e.schema,t),o=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,a=e.settings.allowDangerousCharacters?0:1;let i=e.quote,s;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const l=ha(r.attribute,Object.assign({},e.settings.characterReferences,{subset:gs.name[o][a]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?zl:Gl)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(s=ha(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:gs.unquoted[o][a]}))),s!==n&&(e.settings.quoteSmart&&il(n,i)>il(n,e.alternative)&&(i=e.alternative),s=i+ha(n,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?gs.single:gs.double)[o][a],attribute:!0}))+i),l+(s&&"="+s))}const IS=["<","&"];function S0(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:ha(e.value,Object.assign({},r.settings.characterReferences,{subset:IS}))}function _S(e,t,n,r){return r.settings.allowDangerousHtml?e.value:S0(e,t,n,r)}function DS(e,t,n,r){return r.all(e)}const wS=Ul("type",{invalid:NS,unknown:PS,handlers:{comment:Xv,doctype:Jv,element:SS,raw:_S,root:DS,text:S0}});function NS(e){throw new Error("Expected node, not `"+e+"`")}function PS(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const RS={},LS={},$S=[];function OS(e,t){const n=RS,r=n.quote||'"',o=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:MS,all:FS,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||h0,characterReferences:n.characterReferences||LS,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Rr:ka,quote:r,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function MS(e,t,n){return wS(e,t,n,this)}function FS(e){const t=[],n=e&&e.children||$S;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function BS(e){return Array.isArray(e)?e:[e]}function ql(e,t=!1){const n=e.split(/(\r?\n)/g);let r=0;const o=[];for(let a=0;a<n.length;a+=2){const i=t?n[a]+(n[a+1]||""):n[a];o.push([i,r]),r+=n[a].length,r+=n[a+1]?.length||0}return o}function zd(e){return!e||["plaintext","txt","text","plain"].includes(e)}function k0(e){return e==="ansi"||zd(e)}function Gd(e){return e==="none"}function A0(e){return Gd(e)}function I0(e,t){var r;if(!t)return e;e.properties||(e.properties={}),(r=e.properties).class||(r.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const o of n)o&&!e.properties.class.includes(o)&&e.properties.class.push(o);return e}function jS(e,t){let n=0;const r=[];for(const o of t)o>n&&r.push({...e,content:e.content.slice(n,o),offset:e.offset+n}),n=o;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function HS(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,o)=>r-o);return n.length?e.map(r=>r.flatMap(o=>{const a=n.filter(i=>o.offset<i&&i<o.offset+o.content.length).map(i=>i-o.offset).sort((i,s)=>i-s);return a.length?jS(o,a):o})):e}async function _0(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function sl(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[o,a]of Object.entries(t?.colorReplacements||{}))typeof a=="string"?n[o]=a:o===r&&Object.assign(n,a);return n}function fo(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function D0(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&Ir.Italic&&(t["font-style"]="italic"),e.fontStyle&Ir.Bold&&(t["font-weight"]="bold"),e.fontStyle&Ir.Underline&&(t["text-decoration"]="underline")),t}function US(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function zS(e){const t=ql(e,!0).map(([o])=>o);function n(o){if(o===e.length)return{line:t.length-1,character:t[t.length-1].length};let a=o,i=0;for(const s of t){if(a<s.length)break;a-=s.length,i++}return{line:i,character:a}}function r(o,a){let i=0;for(let s=0;s<o;s++)i+=t[s].length;return i+=a,i}return{lines:t,indexToPos:n,posToIndex:r}}let pn=class extends Error{constructor(t){super(t),this.name="ShikiError"}};const w0=new WeakMap;function Wl(e,t){w0.set(e,t)}function Ii(e){return w0.get(e)}let Vl=class N0{constructor(...t){G(this,"_stacks",{});G(this,"lang");if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,o]=t;this.lang=r,this._stacks={[o]:n}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new N0(Object.fromEntries(BS(n).map(r=>[r,Pu])),t)}getInternalStack(t=this.theme){return this._stacks[t]}get scopes(){return Mp(this._stacks[this.theme])}getScopes(t=this.theme){return Mp(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}};function Mp(e){const t=[],n=new Set;function r(o){if(n.has(o))return;n.add(o);const a=o?.nameScopesList?.scopeName;a&&t.push(a),o.parent&&r(o.parent)}return r(e),t}function GS(e,t){if(!(e instanceof Vl))throw new pn("Invalid grammar state");return e.getInternalStack(t)}function qS(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(i){if(typeof i=="number"){if(i<0||i>n.source.length)throw new pn(`Invalid decoration offset: ${i}. Code length: ${n.source.length}`);return{...o.indexToPos(i),offset:i}}else{const s=o.lines[i.line];if(s===void 0)throw new pn(`Invalid decoration position ${JSON.stringify(i)}. Lines length: ${o.lines.length}`);if(i.character<0||i.character>s.length)throw new pn(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${s.length}`);return{...i,offset:o.posToIndex(i.line,i.character)}}};const o=zS(n.source),a=(n.options.decorations||[]).map(i=>({...i,start:r(i.start),end:r(i.end)}));WS(a),e.set(n.meta,{decorations:a,converter:o,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const r=t(this).decorations.flatMap(o=>[o.start.offset,o.end.offset]);return HS(n,r)},code(n){if(!this.options.decorations?.length)return;const r=t(this),o=Array.from(n.children).filter(d=>d.type==="element"&&d.tagName==="span");if(o.length!==r.converter.lines.length)throw new pn(`Number of lines in code element (${o.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function a(d,u,h,p){const g=o[d];let b="",x=-1,E=-1;if(u===0&&(x=0),h===0&&(E=0),h===Number.POSITIVE_INFINITY&&(E=g.children.length),x===-1||E===-1)for(let C=0;C<g.children.length;C++)b+=P0(g.children[C]),x===-1&&b.length===u&&(x=C+1),E===-1&&b.length===h&&(E=C+1);if(x===-1)throw new pn(`Failed to find start index for decoration ${JSON.stringify(p.start)}`);if(E===-1)throw new pn(`Failed to find end index for decoration ${JSON.stringify(p.end)}`);const v=g.children.slice(x,E);if(!p.alwaysWrap&&v.length===g.children.length)s(g,p,"line");else if(!p.alwaysWrap&&v.length===1&&v[0].type==="element")s(v[0],p,"token");else{const C={type:"element",tagName:"span",properties:{},children:v};s(C,p,"wrapper"),g.children.splice(x,v.length,C)}}function i(d,u){o[d]=s(o[d],u,"line")}function s(d,u,h){const p=u.properties||{},g=u.transform||(b=>b);return d.tagName=u.tagName||"span",d.properties={...d.properties,...p,class:d.properties.class},u.properties?.class&&I0(d,u.properties.class),d=g(d,h)||d,d}const l=[],c=r.decorations.sort((d,u)=>u.start.offset-d.start.offset);for(const d of c){const{start:u,end:h}=d;if(u.line===h.line)a(u.line,u.character,h.character,d);else if(u.line<h.line){a(u.line,u.character,Number.POSITIVE_INFINITY,d);for(let p=u.line+1;p<h.line;p++)l.unshift(()=>i(p,d));a(h.line,0,h.character,d)}}l.forEach(d=>d())}}}function WS(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new pn(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const o=e[r],a=n.start.offset<o.start.offset&&o.start.offset<n.end.offset,i=n.start.offset<o.end.offset&&o.end.offset<n.end.offset,s=o.start.offset<n.start.offset&&n.start.offset<o.end.offset,l=o.start.offset<n.end.offset&&n.end.offset<o.end.offset;if(a||i||s||l){if(i&&i||s&&l)continue;throw new pn(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(o.start)} intersect.`)}}}}function P0(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(P0).join(""):""}const VS=[qS()];function ll(e){return[...e.transformers||[],...VS]}var mo=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Pc={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function YS(e,t){const n=e.indexOf("\x1B[",t);if(n!==-1){const r=e.indexOf("m",n);return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function Fp(e,t){let n=1;const r=e[t+n++];let o;if(r==="2"){const a=[e[t+n++],e[t+n++],e[t+n]].map(i=>Number.parseInt(i));a.length===3&&!a.some(i=>Number.isNaN(i))&&(o={type:"rgb",rgb:a})}else if(r==="5"){const a=Number.parseInt(e[t+n]);Number.isNaN(a)||(o={type:"table",index:Number(a)})}return[n,o]}function KS(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],o=Number.parseInt(r);if(!Number.isNaN(o))if(o===0)t.push({type:"resetAll"});else if(o<=9)Pc[o]&&t.push({type:"setDecoration",value:Pc[o]});else if(o<=29){const a=Pc[o-20];a&&t.push({type:"resetDecoration",value:a})}else if(o<=37)t.push({type:"setForegroundColor",value:{type:"named",name:mo[o-30]}});else if(o===38){const[a,i]=Fp(e,n);i&&t.push({type:"setForegroundColor",value:i}),n+=a}else if(o===39)t.push({type:"resetForegroundColor"});else if(o<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:mo[o-40]}});else if(o===48){const[a,i]=Fp(e,n);i&&t.push({type:"setBackgroundColor",value:i}),n+=a}else o===49?t.push({type:"resetBackgroundColor"}):o>=90&&o<=97?t.push({type:"setForegroundColor",value:{type:"named",name:mo[o-90+8]}}):o>=100&&o<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:mo[o-100+8]}})}return t}function QS(){let e=null,t=null,n=new Set;return{parse(r){const o=[];let a=0;do{const i=YS(r,a),s=i.sequence?r.substring(a,i.startPosition):r.substring(a);if(s.length>0&&o.push({value:s,foreground:e,background:t,decorations:new Set(n)}),i.sequence){const l=KS(i.sequence);for(const c of l)c.type==="resetAll"?(e=null,t=null,n.clear()):c.type==="resetForegroundColor"?e=null:c.type==="resetBackgroundColor"?t=null:c.type==="resetDecoration"&&n.delete(c.value);for(const c of l)c.type==="setForegroundColor"?e=c.value:c.type==="setBackgroundColor"?t=c.value:c.type==="setDecoration"&&n.add(c.value)}a=i.position}while(a<r.length);return o}}}var XS={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function JS(e=XS){function t(s){return e[s]}function n(s){return`#${s.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let r;function o(){if(r)return r;r=[];for(let c=0;c<mo.length;c++)r.push(t(mo[c]));let s=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let d=0;d<6;d++)for(let u=0;u<6;u++)r.push(n([s[c],s[d],s[u]]));let l=8;for(let c=0;c<24;c++,l+=10)r.push(n([l,l,l]));return r}function a(s){return o()[s]}function i(s){switch(s.type){case"named":return t(s.name);case"rgb":return n(s.rgb);case"table":return a(s.index)}}return{value:i}}function ZS(e,t,n){const r=sl(e,n),o=ql(t),a=JS(Object.fromEntries(mo.map(s=>[s,e.colors?.[`terminal.ansi${s[0].toUpperCase()}${s.substring(1)}`]]))),i=QS();return o.map(s=>i.parse(s[0]).map(l=>{let c,d;l.decorations.has("reverse")?(c=l.background?a.value(l.background):e.bg,d=l.foreground?a.value(l.foreground):e.fg):(c=l.foreground?a.value(l.foreground):e.fg,d=l.background?a.value(l.background):void 0),c=fo(c,r),d=fo(d,r),l.decorations.has("dim")&&(c=ek(c));let u=Ir.None;return l.decorations.has("bold")&&(u|=Ir.Bold),l.decorations.has("italic")&&(u|=Ir.Italic),l.decorations.has("underline")&&(u|=Ir.Underline),{content:l.value,offset:s[1],color:c,bgColor:d,fontStyle:u}}))}function ek(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const r=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${r}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(r=>`${r}${r}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function qd(e,t,n={}){const{lang:r="text",theme:o=e.getLoadedThemes()[0]}=n;if(zd(r)||Gd(o))return ql(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:a,colorMap:i}=e.setTheme(o);if(r==="ansi")return ZS(a,t,n);const s=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==s.name)throw new _r(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${s.name}"`);if(!n.grammarState.themes.includes(a.name))throw new _r(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return nk(t,s,a,i,n)}function tk(...e){if(e.length===2)return Ii(e[1]);const[t,n,r={}]=e,{lang:o="text",theme:a=t.getLoadedThemes()[0]}=r;if(zd(o)||Gd(a))throw new _r("Plain language does not have grammar state");if(o==="ansi")throw new _r("ANSI language does not have grammar state");const{theme:i,colorMap:s}=t.setTheme(a),l=t.getLanguage(o);return new Vl(cl(n,l,i,s,r).stateStack,l.name,i.name)}function nk(e,t,n,r,o){const a=cl(e,t,n,r,o),i=new Vl(cl(e,t,n,r,o).stateStack,t.name,n.name);return Wl(a.tokens,i),a.tokens}function cl(e,t,n,r,o){const a=sl(n,o),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:s=500}=o,l=ql(e);let c=o.grammarState?GS(o.grammarState,n.name)??Pu:o.grammarContextCode!=null?cl(o.grammarContextCode,t,n,r,{...o,grammarState:void 0,grammarContextCode:void 0}).stateStack:Pu,d=[];const u=[];for(let h=0,p=l.length;h<p;h++){const[g,b]=l[h];if(g===""){d=[],u.push([]);continue}if(i>0&&g.length>=i){d=[],u.push([{content:g,offset:b,color:"",fontStyle:0}]);continue}let x,E,v;o.includeExplanation&&(x=t.tokenizeLine(g,c),E=x.tokens,v=0);const C=t.tokenizeLine2(g,c,s),I=C.tokens.length/2;for(let N=0;N<I;N++){const S=C.tokens[2*N],M=N+1<I?C.tokens[2*N+2]:g.length;if(S===M)continue;const q=C.tokens[2*N+1],B=fo(r[Ea.getForeground(q)],a),y=Ea.getFontStyle(q),R={content:g.substring(S,M),offset:b+S,color:B,fontStyle:y};if(o.includeExplanation){const F=[];if(o.includeExplanation!=="scopeName")for(const U of n.settings){let Y;switch(typeof U.scope){case"string":Y=U.scope.split(/,/).map(re=>re.trim());break;case"object":Y=U.scope;break;default:continue}F.push({settings:U,selectors:Y.map(re=>re.split(/ /))})}R.explanation=[];let $=0;for(;S+$<M;){const U=E[v],Y=g.substring(U.startIndex,U.endIndex);$+=Y.length,R.explanation.push({content:Y,scopes:o.includeExplanation==="scopeName"?rk(U.scopes):ok(F,U.scopes)}),v+=1}}d.push(R)}u.push(d),d=[],c=C.ruleStack}return{tokens:u,stateStack:c}}function rk(e){return e.map(t=>({scopeName:t}))}function ok(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const a=t[r];n[r]={scopeName:a,themeMatches:ik(e,a,t.slice(0,r))}}return n}function Bp(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function ak(e,t,n){if(!Bp(e[e.length-1],t))return!1;let r=e.length-2,o=n.length-1;for(;r>=0&&o>=0;)Bp(e[r],n[o])&&(r-=1),o-=1;return r===-1}function ik(e,t,n){const r=[];for(const{selectors:o,settings:a}of e)for(const i of o)if(ak(i,t,n)){r.push(a);break}return r}function R0(e,t,n){const r=Object.entries(n.themes).filter(l=>l[1]).map(l=>({color:l[0],theme:l[1]})),o=r.map(l=>{const c=qd(e,t,{...n,theme:l.theme}),d=Ii(c),u=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:c,state:d,theme:u}}),a=sk(...o.map(l=>l.tokens)),i=a[0].map((l,c)=>l.map((d,u)=>{const h={content:d.content,variants:{},offset:d.offset};return"includeExplanation"in n&&n.includeExplanation&&(h.explanation=d.explanation),a.forEach((p,g)=>{const{content:b,explanation:x,offset:E,...v}=p[c][u];h.variants[r[g].color]=v}),h})),s=o[0].state?new Vl(Object.fromEntries(o.map(l=>[l.theme,l.state?.getInternalStack(l.theme)])),o[0].state.lang):void 0;return s&&Wl(i,s),i}function sk(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const o=e.map(l=>l[r]),a=t.map(()=>[]);t.forEach((l,c)=>l.push(a[c]));const i=o.map(()=>0),s=o.map(l=>l[0]);for(;s.every(l=>l);){const l=Math.min(...s.map(c=>c.content.length));for(let c=0;c<n;c++){const d=s[c];d.content.length===l?(a[c].push(d),i[c]+=1,s[c]=o[c][i[c]]):(a[c].push({...d,content:d.content.slice(0,l)}),s[c]={...d,content:d.content.slice(l),offset:d.offset+l})}}}return t}function ul(e,t,n){let r,o,a,i,s,l;if("themes"in n){const{defaultColor:c="light",cssVariablePrefix:d="--shiki-"}=n,u=Object.entries(n.themes).filter(x=>x[1]).map(x=>({color:x[0],theme:x[1]})).sort((x,E)=>x.color===c?-1:E.color===c?1:0);if(u.length===0)throw new _r("`themes` option must not be empty");const h=R0(e,t,n);if(l=Ii(h),c&&!u.find(x=>x.color===c))throw new _r(`\`themes\` option must contain the defaultColor key \`${c}\``);const p=u.map(x=>e.getTheme(x.theme)),g=u.map(x=>x.color);a=h.map(x=>x.map(E=>lk(E,g,d,c))),l&&Wl(a,l);const b=u.map(x=>sl(x.theme,n));o=u.map((x,E)=>(E===0&&c?"":`${d+x.color}:`)+(fo(p[E].fg,b[E])||"inherit")).join(";"),r=u.map((x,E)=>(E===0&&c?"":`${d+x.color}-bg:`)+(fo(p[E].bg,b[E])||"inherit")).join(";"),i=`shiki-themes ${p.map(x=>x.name).join(" ")}`,s=c?void 0:[o,r].join(";")}else if("theme"in n){const c=sl(n.theme,n);a=qd(e,t,n);const d=e.getTheme(n.theme);r=fo(d.bg,c),o=fo(d.fg,c),i=d.name,l=Ii(a)}else throw new _r("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:o,bg:r,themeName:i,rootStyle:s,grammarState:l}}function lk(e,t,n,r){const o={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(l=>D0(e.variants[l])),i=new Set(a.flatMap(l=>Object.keys(l))),s={};return a.forEach((l,c)=>{for(const d of i){const u=l[d]||"inherit";if(c===0&&r)s[d]=u;else{const h=d==="color"?"":d==="background-color"?"-bg":`-${d}`,p=n+t[c]+(d==="color"?"":h);s[p]=u}}}),o.htmlStyle=s,o}function dl(e,t,n,r={meta:{},options:n,codeToHast:(o,a)=>dl(e,o,a),codeToTokens:(o,a)=>ul(e,o,a)}){let o=t;for(const p of ll(n))o=p.preprocess?.call(r,o,n)||o;let{tokens:a,fg:i,bg:s,themeName:l,rootStyle:c,grammarState:d}=ul(e,o,n);const{mergeWhitespaces:u=!0}=n;u===!0?a=uk(a):u==="never"&&(a=dk(a));const h={...r,get source(){return o}};for(const p of ll(n))a=p.tokens?.call(h,a)||a;return ck(a,{...n,fg:i,bg:s,themeName:l,rootStyle:c},h,d)}function ck(e,t,n,r=Ii(e)){const o=ll(t),a=[],i={type:"root",children:[]},{structure:s="classic",tabindex:l="0"}=t;let c={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...l!==!1&&l!=null?{tabindex:l.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([g])=>!g.startsWith("_")))},children:[]},d={type:"element",tagName:"code",properties:{},children:a};const u=[],h={...n,structure:s,addClassToHast:I0,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return i},get pre(){return c},get code(){return d},get lines(){return u}};if(e.forEach((g,b)=>{b&&(s==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):s==="classic"&&a.push({type:"text",value:`
27
- `}));let x={type:"element",tagName:"span",properties:{class:"line"},children:[]},E=0;for(const v of g){let C={type:"element",tagName:"span",properties:{...v.htmlAttrs},children:[{type:"text",value:v.content}]};v.htmlStyle;const I=US(v.htmlStyle||D0(v));I&&(C.properties.style=I);for(const N of o)C=N?.span?.call(h,C,b+1,E,x,v)||C;s==="inline"?i.children.push(C):s==="classic"&&x.children.push(C),E+=v.content.length}if(s==="classic"){for(const v of o)x=v?.line?.call(h,x,b+1)||x;u.push(x),a.push(x)}}),s==="classic"){for(const g of o)d=g?.code?.call(h,d)||d;c.children.push(d);for(const g of o)c=g?.pre?.call(h,c)||c;i.children.push(c)}let p=i;for(const g of o)p=g?.root?.call(h,p)||p;return r&&Wl(p,r),p}function uk(e){return e.map(t=>{const n=[];let r="",o=0;return t.forEach((a,i)=>{const s=!(a.fontStyle&&a.fontStyle&Ir.Underline);s&&a.content.match(/^\s+$/)&&t[i+1]?(o||(o=a.offset),r+=a.content):r?(s?n.push({...a,offset:o,content:r+a.content}):n.push({content:r,offset:o},a),o=0,r=""):n.push(a)}),n})}function dk(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,o,a,i]=r;if(!o&&!i)return n;const s=[{...n,offset:n.offset+o.length,content:a}];return o&&s.unshift({content:o,offset:n.offset}),i&&s.push({content:i,offset:n.offset+o.length+a.length}),s}))}function hk(e,t,n){const r={meta:{},options:n,codeToHast:(a,i)=>dl(e,a,i),codeToTokens:(a,i)=>ul(e,a,i)};let o=OS(dl(e,t,n,r));for(const a of ll(n))o=a.postprocess?.call(r,o,n)||o;return o}const jp={light:"#333333",dark:"#bbbbbb"},Hp={light:"#fffffe",dark:"#1e1e1e"},Up="__shiki_resolved";function Wd(e){if(e?.[Up])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:n,fg:r}=t;if(!n||!r){const s=t.settings?t.settings.find(l=>!l.name&&!l.scope):void 0;s?.settings?.foreground&&(r=s.settings.foreground),s?.settings?.background&&(n=s.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?jp.light:jp.dark),n||(n=t.type==="light"?Hp.light:Hp.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let o=0;const a=new Map;function i(s){if(a.has(s))return a.get(s);o+=1;const l=`#${o.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${l}`]?i(s):(a.set(s,l),l)}t.settings=t.settings.map(s=>{const l=s.settings?.foreground&&!s.settings.foreground.startsWith("#"),c=s.settings?.background&&!s.settings.background.startsWith("#");if(!l&&!c)return s;const d={...s,settings:{...s.settings}};if(l){const u=i(s.settings.foreground);t.colorReplacements[u]=s.settings.foreground,d.settings.foreground=u}if(c){const u=i(s.settings.background);t.colorReplacements[u]=s.settings.background,d.settings.background=u}return d});for(const s of Object.keys(t.colors||{}))if((s==="editor.foreground"||s==="editor.background"||s.startsWith("terminal.ansi"))&&!t.colors[s]?.startsWith("#")){const l=i(t.colors[s]);t.colorReplacements[l]=t.colors[s],t.colors[s]=l}return Object.defineProperty(t,Up,{enumerable:!1,writable:!1,value:!0}),t}async function L0(e){return Array.from(new Set((await Promise.all(e.filter(t=>!k0(t)).map(async t=>await _0(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function $0(e){return(await Promise.all(e.map(async t=>A0(t)?null:Wd(await _0(t))))).filter(t=>!!t)}let pk=class extends _v{constructor(n,r,o,a={}){super(n);G(this,"_resolvedThemes",new Map);G(this,"_resolvedGrammars",new Map);G(this,"_langMap",new Map);G(this,"_langGraph",new Map);G(this,"_textmateThemeCache",new WeakMap);G(this,"_loadedThemesCache",null);G(this,"_loadedLanguagesCache",null);this._resolver=n,this._themes=r,this._langs=o,this._alias=a,this._themes.map(i=>this.loadTheme(i)),this.loadLanguages(this._langs)}getTheme(n){return typeof n=="string"?this._resolvedThemes.get(n):this.loadTheme(n)}loadTheme(n){const r=Wd(n);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(n){let r=this._textmateThemeCache.get(n);r||(r=tl.createFromRawTheme(n),this._textmateThemeCache.set(n,r)),this._syncRegistry.setTheme(r)}getGrammar(n){if(this._alias[n]){const r=new Set([n]);for(;this._alias[n];){if(n=this._alias[n],r.has(n))throw new pn(`Circular alias \`${Array.from(r).join(" -> ")} -> ${n}\``);r.add(n)}}return this._resolvedGrammars.get(n)}loadLanguage(n){if(this.getGrammar(n.name))return;const r=new Set([...this._langMap.values()].filter(i=>i.embeddedLangsLazy?.includes(n.name)));this._resolver.addLanguage(n);const o={balancedBracketSelectors:n.balancedBracketSelectors||["*"],unbalancedBracketSelectors:n.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(n.scopeName,n);const a=this.loadGrammarWithConfiguration(n.scopeName,1,o);if(a.name=n.name,this._resolvedGrammars.set(n.name,a),n.aliases&&n.aliases.forEach(i=>{this._alias[i]=n.name}),this._loadedLanguagesCache=null,r.size)for(const i of r)this._resolvedGrammars.delete(i.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(i.scopeName),this._syncRegistry?._grammars?.delete(i.scopeName),this.loadLanguage(this._langMap.get(i.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(n){for(const a of n)this.resolveEmbeddedLanguages(a);const r=Array.from(this._langGraph.entries()),o=r.filter(([a,i])=>!i);if(o.length){const a=r.filter(([i,s])=>s&&s.embeddedLangs?.some(l=>o.map(([c])=>c).includes(l))).filter(i=>!o.includes(i));throw new pn(`Missing languages ${o.map(([i])=>`\`${i}\``).join(", ")}, required by ${a.map(([i])=>`\`${i}\``).join(", ")}`)}for(const[a,i]of r)this._resolver.addLanguage(i);for(const[a,i]of r)this.loadLanguage(i)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(n){if(this._langMap.set(n.name,n),this._langGraph.set(n.name,n),n.embeddedLangs)for(const r of n.embeddedLangs)this._langGraph.set(r,this._langMap.get(r))}},fk=class{constructor(t,n){G(this,"_langs",new Map);G(this,"_scopeToLang",new Map);G(this,"_injections",new Map);G(this,"_onigLib");this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let o=1;o<=n.length;o++){const a=n.slice(0,o).join(".");r=[...r,...this._injections.get(a)||[]]}return r}},ja=0;function mk(e){ja+=1,e.warnings!==!1&&ja>=10&&ja%10===0&&console.warn(`[Shiki] ${ja} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new pn("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(Wd),o=new fk(e.engine,n),a=new pk(o,r,n,e.langAlias);let i;function s(v){x();const C=a.getGrammar(typeof v=="string"?v:v.name);if(!C)throw new pn(`Language \`${v}\` not found, you may need to load it first`);return C}function l(v){if(v==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};x();const C=a.getTheme(v);if(!C)throw new pn(`Theme \`${v}\` not found, you may need to load it first`);return C}function c(v){x();const C=l(v);i!==v&&(a.setTheme(C),i=v);const I=a.getColorMap();return{theme:C,colorMap:I}}function d(){return x(),a.getLoadedThemes()}function u(){return x(),a.getLoadedLanguages()}function h(...v){x(),a.loadLanguages(v.flat(1))}async function p(...v){return h(await L0(v))}function g(...v){x();for(const C of v.flat(1))a.loadTheme(C)}async function b(...v){return x(),g(await $0(v))}function x(){if(t)throw new pn("Shiki instance has been disposed")}function E(){t||(t=!0,a.dispose(),ja-=1)}return{setTheme:c,getTheme:l,getLanguage:s,getLoadedThemes:d,getLoadedLanguages:u,loadLanguage:p,loadLanguageSync:h,loadTheme:b,loadThemeSync:g,dispose:E,[Symbol.dispose]:E}}async function gk(e={}){e.loadWasm;const[t,n,r]=await Promise.all([$0(e.themes||[]),L0(e.langs||[]),e.engine||Qg(e.loadWasm||UC())]);return mk({...e,themes:t,langs:n,engine:r})}async function yk(e={}){const t=await gk(e);return{getLastGrammarState:(...n)=>tk(t,...n),codeToTokensBase:(n,r)=>qd(t,n,r),codeToTokensWithThemes:(n,r)=>R0(t,n,r),codeToTokens:(n,r)=>ul(t,n,r),codeToHast:(n,r)=>dl(t,n,r),codeToHtml:(n,r)=>hk(t,n,r),...t,getInternalContext:()=>t}}function bk(e,t,n){let r,o,a;{const s=e;r=s.langs,o=s.themes,a=s.engine}async function i(s){function l(p){if(typeof p=="string"){if(k0(p))return[];const g=r[p];if(!g)throw new _r(`Language \`${p}\` is not included in this bundle. You may want to load it from external source.`);return g}return p}function c(p){if(A0(p))return"none";if(typeof p=="string"){const g=o[p];if(!g)throw new _r(`Theme \`${p}\` is not included in this bundle. You may want to load it from external source.`);return g}return p}const d=(s.themes??[]).map(p=>c(p)),u=(s.langs??[]).map(p=>l(p)),h=await yk({engine:s.engine??a(),...s,themes:d,langs:u});return{...h,loadLanguage(...p){return h.loadLanguage(...p.map(l))},loadTheme(...p){return h.loadTheme(...p.map(c))}}}return i}const Ek=bk({langs:CC,themes:SC,engine:()=>Qg(Promise.resolve().then(()=>require("./index.es241-Dw4u1m6u.cjs")))}),Rc={scopeName:"source.malloy",patterns:[{include:"#malloy-language"}],repository:{"malloy-language":{patterns:[{include:"#sql-string"},{include:"#comments"},{include:"#tags"},{include:"#strings"},{include:"#numbers"},{include:"#keywords"},{include:"#properties"},{include:"#functions"},{include:"#datetimes"},{include:"#identifiers-quoted"},{include:"#types"},{include:"#constants"},{include:"#timeframes"},{include:"#identifiers-unquoted"}]},"malloy-matched":{begin:"{",end:"}",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"malloy-in-sql":{begin:"%{",name:"source.malloy-in-sql",end:"}%?",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"sql-string":{patterns:[{begin:'(\\b[A-Za-z_][A-Za-z_0-9]*)(\\s*\\.\\s*)(sql)(\\s*\\(\\s*)(""")',end:'"""',beginCaptures:{1:{name:"variable.other"},3:{name:"keyword.control.sql"},5:{name:"punctuation.sql-block.open"}},endCaptures:{0:{name:"punctuation.sql-block.close"}},name:"source.sql",patterns:[{include:"#malloy-in-sql"},{include:"source.sql"}]}]},functions:{patterns:[{match:"(?i)\\b(count)(\\s*\\()(distinct)",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.function.modifier"}}},{match:"(?i)\\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|UNGROUPED)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(!)(timestamp|number|string|boolean|date)?(\\s*\\()",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.type"}}}]},datetimes:{patterns:[{match:"(?i)@[0-9]{4}-[0-9]{2}-[0-9]{2}[ T][0-9]{2}:[0-9]{2}((:[0-9]{2})(([\\.,][0-9]+)(\\[[A-Za-z_/]+\\])?)?)?",name:"constant.numeric.timestamp"},{match:"(?i)@[0-9]{4}(-Q[1-4]|-[0-9]{2}(-[0-9]{2}(-WK)?)?)?",name:"constant.numeric.date"}]},"identifiers-quoted":{patterns:[{match:"`[^`]*`",name:"variable.other.quoted"}]},"identifiers-unquoted":{patterns:[{match:"(?i)\\b[A-Za-z_][A-Za-z_0-9]*\\b",name:"variable.other"}]},timeframes:{patterns:[{match:"(?i)\\b((year|quarter|month|week|day|hour|minute|second)s?)\\b",name:"keyword.other.timeframe"},{match:"(?i)\\b(day_of_year|day_of_month)\\b",name:"keyword.other.timeframe"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]},tags:{patterns:[{match:"##\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:'#"',end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{match:"#\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:"#\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"##\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"#",end:"\\n",beginCaptures:{0:{name:"string.quoted"}},name:"string.quoted"}],repository:{"tag-values":{name:"support.type.property-name.json",match:'(-)?((?:[^\\s=#]+)|(?:"[^#]+"))(?:\\s*(=)\\s*((?:[^\\s=#]+)|(?:"[^#]+")))?',captures:{1:{name:"keyword.control.negate"},2:{name:"support.type.property-name.json"},3:{name:"keyword.operator.comparison.ts"},4:{name:"string.quoted"}}}}},strings:{patterns:[{begin:"'",end:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.single",patterns:[{include:"#escapes"}]},{begin:'"',end:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.double",patterns:[{include:"#escapes"}]},{begin:'"""',end:'"""',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.triple"},{begin:"(?i)[r|/]'",end:"'",name:"string.regexp",patterns:[{include:"#regex-escapes"}]}],repository:{escapes:{name:"constant.character.escape",match:"\\\\(u[A-Fa-f0-9]{4}|.)",captures:{0:{name:"constant.character.escape"}}},"regex-escapes":{name:"constant.character.escape",match:"\\\\.",captures:{0:{name:"constant.character.escape"}}}}},numbers:{match:"(?i)(\\b((0|[1-9][0-9]*)(E[+-]?[0-9]+|\\.[0-9]*)?)|\\.[0-9]+)",name:"constant.numeric"},constants:{patterns:[{match:"(?i)\\bnull\\b",name:"constant.language.null"},{match:"(?i)\\btrue\\b",name:"constant.language.true"},{match:"(?i)\\bfalse\\b",name:"constant.language.false"}]},types:{patterns:[{match:"(?i)\\bstring\\b",name:"entity.name.type.string"},{match:"(?i)\\bnumber\\b",name:"entity.name.type.number"},{match:"(?i)\\bdate\\b",name:"entity.name.type.date"},{match:"(?i)\\btimestamp\\b",name:"entity.name.type.timestamp"},{match:"(?i)\\bboolean\\b",name:"entity.name.type.boolean"}]},properties:{patterns:[{match:"(?i)\\baccept\\b",name:"keyword.control.accept"},{match:"(?i)\\bselect\\b",name:"keyword.control.select"},{match:"(?i)\\bconnection\\b",name:"keyword.control.connection"},{match:"(?i)\\brun\\b",name:"keyword.control.run"},{match:"(?i)\\bextend\\b",name:"keyword.control.extend"},{match:"(?i)\\brefine\\b",name:"keyword.control.refine"},{match:"(?i)\\baggregate\\b",name:"keyword.control.aggregate"},{match:"(?i)\\bsample\\b",name:"keyword.control.sample"},{match:"(?i)\\bcalculate\\b",name:"keyword.control.calculate"},{match:"(?i)\\btimezone\\b",name:"keyword.control.timezone"},{match:"(?i)\\bdimension\\b",name:"keyword.control.dimension"},{match:"(?i)\\bexcept\\b",name:"keyword.control.except"},{match:"(?i)\\bsource\\b",name:"keyword.control.source"},{match:"(?i)\\bgroup_by\\b",name:"keyword.control.group_by"},{match:"(?i)\\bhaving\\b",name:"keyword.control.having"},{match:"(?i)\\bindex\\b",name:"keyword.control.index"},{match:"(?i)\\bjoin_one\\b",name:"keyword.control.join_one"},{match:"(?i)\\bwith\\b",name:"keyword.control.with"},{match:"(?i)\\bjoin_many\\b",name:"keyword.control.join_many"},{match:"(?i)\\bjoin_cross\\b",name:"keyword.control.join_cross"},{match:"(?i)\\blimit\\b",name:"keyword.control.limit"},{match:"(?i)\\bmeasure\\b",name:"keyword.control.measure"},{match:"(?i)\\bnest\\b",name:"keyword.control.nest"},{match:"(?i)\\border_by\\b",name:"keyword.control.order_by"},{match:"(?i)\\bpartition_by\\b",name:"keyword.control.partition_by"},{match:"(?i)\\bprimary_key\\b",name:"keyword.control.primary_key"},{match:"(?i)\\bproject\\b",name:"keyword.control.project"},{match:"(?i)\\bquery\\b",name:"keyword.control.query"},{match:"(?i)\\brename\\b",name:"keyword.control.rename"},{match:"(?i)\\btop\\b",name:"keyword.control.top"},{match:"(?i)\\bview\\b",name:"keyword.control.view"},{match:"(?i)\\bwhere\\b",name:"keyword.control.where"},{match:"(?i)\\bdeclare\\b",name:"keyword.control.declare"}]},keywords:{patterns:[{match:"(?i)\\bis\\b",name:"keyword.control.is"},{match:"(?i)\\bon\\b",name:"keyword.control.on"},{match:"(?i)\\bnot\\b",name:"keyword.other.not"},{match:"(?i)\\bor\\b",name:"keyword.other.or"},{match:"(?i)\\bdesc\\b",name:"keyword.control.desc"},{match:"(?i)\\bby\\b",name:"keyword.control.by"},{match:"(?i)\\band\\b",name:"keyword.other.and"},{match:"(?i)\\basc\\b",name:"keyword.control.asc"},{match:"(?i)\\bfor\\b",name:"keyword.other.for"},{match:"(?i)\\belse\\b",name:"keyword.other.else"},{match:"(?i)\\bto\\b",name:"keyword.other.to"},{match:"(?i)\\bwhen\\b",name:"keyword.other.when"},{match:"(?i)\\bpick\\b",name:"keyword.other.pick"},{match:"(?i)\\bimport\\b",name:"keyword.control.import"}]}}},xk={...Rc,patterns:[...Rc.patterns,{include:"#docvar"}],repository:{...Rc.repository,docvar:{patterns:[{match:"\\<\\<[^(\\>\\>)]*\\>\\>",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"markup.italic.markdown"}]}}},Tk={name:"Malloy SQL",scopeName:"source.malloy-sql",patterns:[{include:"#malloysql-sql"}],repository:{"malloysql-sql":{beginCaptures:{0:{name:"entity.other.attribute.malloy-sql"},1:{name:"entity.other.attribute.malloy-sql"},3:{name:"comment.line.double-slash"}},name:"meta.embedded.block.malloysql.sql",patterns:[{include:"#comments"},{begin:"%{",end:"}%",beginCaptures:{0:{name:"punctuation.definition.malloy-sql"}},endCaptures:{0:{name:"punctuation.definition.malloy-sql"}},name:"meta.embedded.block.malloy",patterns:[{include:"source.malloy"}]},{include:"source.sql"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]}}},O0="github-light",Ck=Ek({themes:[O0],langs:["sql","json","typescript",{name:"malloy",scopeName:"source.malloy",embeddedLangs:["sql"],...xk},{name:"malloysql",scopeName:"source.malloy-sql",embeddedLangs:["sql"],...Tk}]});async function hl(e,t){return(await Ck).codeToHtml(e,{lang:t,theme:O0})}const M0=O.createContext(void 0),pl=({projectName:e,packageName:t,versionId:n,children:r})=>f.jsx(M0.Provider,{value:{projectName:e,packageName:t,versionId:n},children:r});function zn(e=!0){const t=O.useContext(M0);if(!t&&e)throw new Error("usePackage must be used within a PackageProvider");return t}const F0=pt(f.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"})),_i=pt(f.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),vk=pt(f.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}));function B0({open:e,onClose:t,modelPath:n,data:r,title:o="Data Sources",hasValidImport:a=!0,existingQuery:i,initialSelectedSourceIndex:s,onChange:l,onSourceChange:c}){return f.jsxs(T.Dialog,{open:e,onClose:t,maxWidth:!1,fullWidth:!0,sx:{"& .MuiDialog-paper":{width:"95vw",height:"95vh",maxWidth:"none"}},children:[f.jsxs(T.DialogTitle,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[o,f.jsx(T.IconButton,{onClick:t,sx:{color:"#666666"},children:f.jsx(_i,{})})]}),f.jsx(T.DialogContent,{children:a?f.jsx(dE,{modelPath:n,data:r,existingQuery:i,initialSelectedSourceIndex:s,onChange:l,onSourceChange:c}):f.jsx("div",{children:"No valid import statement found in cell"})})]})}const Sk=O.lazy(()=>Promise.resolve().then(()=>require("./index.es24-D1lbCkVE.cjs")));function Yl({result:e,minHeight:t,maxHeight:n,hideToggle:r=!1}){const[o,a]=O.useState(!1),[i,s]=O.useState(0),[l,c]=O.useState(!1),d=O.useRef(null),u=O.useRef(null),[h,p]=O.useState(void 0),[g,b]=O.useState(!1),x=O.useCallback(()=>{const N=o;a(!o),N&&u.current&&setTimeout(()=>{u.current?.scrollIntoView({behavior:"smooth",block:"start"})},100)},[o]),E=O.useCallback(N=>{s(N)},[]);if(O.useEffect(()=>{if(r){c(!1);return}if(g){c(!0);return}if(i===0){c(!1);return}const N=t-20,S=i>N;i<N&&p(i+20),c(S)},[i,g,t,r]),!e)return null;const v=f.jsx(an,{text:"Loading...",centered:!0,size:32}),C=g?o?n-40:t-40:void 0,I=h?{minHeight:`${h}px`,height:"100%"}:{height:"100%"};return f.jsx(f.Fragment,{children:f.jsxs(T.Box,{ref:u,sx:{position:"relative",minHeight:`${t}px`,maxHeight:`${o?n:t}px`,border:"0px",borderRadius:0,overflow:"hidden",display:"flex",flexDirection:"column",...I},children:[f.jsx(T.Box,{ref:d,sx:{flex:1,overflow:"scroll",p:0,pb:l?"40px":1},children:e&&f.jsx(O.Suspense,{fallback:v,children:f.jsx(Sk,{result:e,height:C,isFillElement:N=>{b(N)},onSizeChange:E})})||v}),l&&f.jsx(T.Box,{sx:{position:"absolute",bottom:0,left:0,right:0,height:"32px",backgroundColor:"rgba(255,255,255,0.75)",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(T.IconButton,{size:"small",onClick:x,sx:{color:"text.secondary","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},title:o?"Collapse to original size":"Expand to full size",children:o?f.jsx(Eu.ExpandLess,{sx:{fontSize:30}}):f.jsx(Eu.ExpandMore,{sx:{fontSize:30}})})})]})})}function j0({open:e,onClose:t,result:n,title:r="Results"}){return f.jsxs(T.Dialog,{open:e,onClose:t,maxWidth:!1,fullWidth:!0,sx:{"& .MuiDialog-paper":{width:"95vw",height:"95vh",maxWidth:"none"}},children:[f.jsxs(T.DialogTitle,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r,f.jsx(T.IconButton,{onClick:t,sx:{color:"#666666"},children:f.jsx(_i,{})})]}),f.jsx(T.DialogContent,{sx:{height:"calc(95vh - 120px)",overflow:"auto",padding:"0 16px"},children:f.jsx(Yl,{result:n,minHeight:800,maxHeight:800,hideToggle:!0})})]})}const H0=pt(f.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),kk=new qg(new Yt);function Ak(){const{projectName:e,packageName:t,versionId:n}=zn(),{data:r,isSuccess:o,isError:a,error:i}=un({queryKey:["package",e,t,n],queryFn:s=>kk.getPackage(e,t,n,!1,s)});return f.jsx(Nr,{children:f.jsxs(Pr,{children:[f.jsx(Zr,{children:"Package Config"}),f.jsx(T.Box,{sx:{maxHeight:"200px",overflowY:"auto"},children:f.jsxs(T.List,{dense:!0,disablePadding:!0,children:[f.jsx(T.ListItem,{dense:!0,disablePadding:!0,children:f.jsx(T.ListItemText,{primary:"Name",primaryTypographyProps:{fontWeight:"500"},secondary:t})}),!o&&!a&&f.jsx(T.ListItem,{children:f.jsx(an,{text:"Fetching Package Metadata..."})}),o&&(r.data&&f.jsx(T.ListItem,{dense:!0,disablePadding:!0,children:f.jsx(T.ListItemText,{primary:"Description",primaryTypographyProps:{fontWeight:"500"},secondary:r.data.description})})||f.jsxs(T.ListItem,{disablePadding:!0,dense:!0,sx:{mt:"20px"},children:[f.jsx(H0,{sx:{color:"grey.600",mr:"10px"}}),f.jsx(T.ListItemText,{primary:"No package manifest"})]})),a&&f.jsx(sn,{error:i,context:`${e} > ${t} > ${n}`})]})})]})})}const Ik=new Wg(new Yt);function _k(){const{projectName:e}=Wi(),{data:t,isSuccess:n,isError:r,error:o}=un({queryKey:["about",e],queryFn:a=>Ik.getProject(e,!1,a)});return f.jsxs(f.Fragment,{children:[!n&&!r&&f.jsx(an,{text:"Fetching About..."}),n&&t.data?.readme&&f.jsx(Nr,{children:f.jsxs(Pr,{children:[f.jsx(Zr,{children:"Readme"}),f.jsx(T.Box,{sx:{mt:1},children:f.jsx(Sd,{children:t.data.readme})})]})}),r&&f.jsx(sn,{error:o,context:`${e} > About`})]})}const Dk=new qg(new Yt);function wk({navigate:e}){const{projectName:t}=Wi(),{data:n,isSuccess:r,isError:o,error:a}=un({queryKey:["packages",t],queryFn:i=>Dk.listPackages(t,i)});return f.jsxs(f.Fragment,{children:[!r&&!o&&f.jsx(an,{text:"Fetching Packages..."}),r&&f.jsx(T.Grid,{container:!0,spacing:3,columns:12,children:n.data.sort((i,s)=>i.name.localeCompare(s.name)).map(i=>f.jsx(T.Grid,{size:{xs:12,sm:12,md:12,lg:4},children:f.jsx(Nr,{sx:{cursor:"pointer",transition:"all 0.2s ease-in-out","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)",transform:"translateY(-1px)"}},onClick:s=>e(i.name,s),children:f.jsxs(Pr,{children:[f.jsx(T.Typography,{variant:"overline",sx:{fontSize:"12px",fontWeight:"600",color:"primary.main",textTransform:"uppercase",letterSpacing:"0.5px",marginBottom:"8px",marginTop:"-16px"},children:i.name}),f.jsx(T.Divider,{sx:{mb:2}}),f.jsx(T.Box,{sx:{maxHeight:"120px",overflowY:"auto",mt:2},children:f.jsx(T.Typography,{variant:"body2",children:i.description})})]})})},i.name))}),o&&f.jsx(sn,{error:a,context:`${t} > Packages`})]})}const U0=O.createContext(void 0);function Wi(){const e=O.useContext(U0);if(!e)throw new Error("useProject must be used within a ProjectProvider");return e}function z0({children:e,projectName:t}){return f.jsx(U0.Provider,{value:{projectName:t},children:e})}function Nk({navigate:e}){return f.jsx(Ug,{children:f.jsxs(T.Grid,{container:!0,spacing:3,columns:12,children:[f.jsx(T.Grid,{size:{xs:12,md:12},children:f.jsx(wk,{navigate:e})}),f.jsx(T.Grid,{size:{xs:12,md:12},children:f.jsx(_k,{})})]})})}const Vd=new zg(new Yt);function Pk({connectionName:e,schema:t}){const{projectName:n}=Wi(),[r,o]=O.useState(void 0),[a,i]=O.useState(t||null),[s,l]=O.useState(!1),{data:c,isSuccess:d,isError:u,error:h,isLoading:p}=un({queryKey:["tablePath",n,e],queryFn:g=>Vd.listSchemas(n,e,g)});return f.jsxs(T.Grid,{container:!0,spacing:1,children:[!t&&f.jsx(T.Grid,{size:{xs:12,md:4},children:f.jsxs(T.Paper,{sx:{p:1,m:0},children:[f.jsxs(T.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:0},children:[f.jsx(T.Typography,{variant:"overline",fontWeight:"bold",children:"Table Paths"}),f.jsx(T.FormControlLabel,{control:f.jsx(T.Switch,{checked:s,onChange:g=>l(g.target.checked)}),label:"Hidden Schemas"})]}),f.jsx(T.Divider,{sx:{mt:"2px"}}),f.jsxs(T.Box,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[p&&f.jsx(an,{text:"Fetching Table Paths..."}),u&&f.jsx(sn,{error:h,context:`${n} > ${e}`}),d&&c.data.length===0&&f.jsx(T.Typography,{variant:"body2",children:"No Schemas"}),d&&c.data.length>0&&f.jsx(T.List,{dense:!0,disablePadding:!0,children:c.data.filter(({isHidden:g})=>s||!g).sort((g,b)=>g.isDefault===b.isDefault?0:g.isDefault?-1:1).map(g=>{const b=(g.description||"").trim(),x=b!=="",E=x?b.split(/\r?\n/)[0]:void 0,v=f.jsx(T.ListItemButton,{selected:a===g.name,onClick:()=>i(g.name),children:f.jsx(T.ListItemText,{primary:g.name,secondary:E})},g.name);return x?f.jsx(T.Tooltip,{title:b,arrow:!0,children:v},g.name):v})})]})]})}),f.jsx(T.Grid,{size:{xs:12,md:t?6:4},children:a&&f.jsx(T.Paper,{sx:{p:1,m:0},children:f.jsx(Lk,{connectionName:e,schemaName:a,onTableClick:g=>{o(g)}})})}),f.jsx(T.Grid,{size:{xs:12,md:t?6:4},children:r&&a&&f.jsx(T.Paper,{sx:{p:1,m:0},children:f.jsx(Rk,{connectionName:e,schemaName:a,tableName:r})})})]})}function Rk({connectionName:e,schemaName:t,tableName:n}){const{projectName:r}=Wi(),{data:o,isSuccess:a,isError:i,error:s,isLoading:l}=un({queryKey:["tablePathSchema",r,e,t,n],queryFn:c=>Vd.getTablesource(r,e,n,`${t}.${n}`,c)});return f.jsxs(f.Fragment,{children:[f.jsxs(T.Typography,{variant:"overline",fontWeight:"bold",children:["Schema: ",t,".",n]}),f.jsx(T.Divider,{}),f.jsxs(T.Box,{sx:{mt:"10px",maxHeight:"600px",overflowY:"auto"},children:[l&&f.jsx(an,{text:"Fetching Table Details..."}),i&&f.jsx(sn,{error:s,context:`${r} > ${e} > ${t}.${n}`}),a&&o&&f.jsx(T.TableContainer,{children:f.jsxs(T.Table,{size:"small",sx:{"& .MuiTableCell-root":{padding:"10px"}},children:[f.jsx(T.TableHead,{children:f.jsxs(T.TableRow,{children:[f.jsx(T.TableCell,{children:"NAME"}),f.jsx(T.TableCell,{children:"TYPE"})]})}),f.jsx(T.TableBody,{children:o.data.columns?.map(c=>f.jsxs(T.TableRow,{children:[f.jsx(T.TableCell,{children:c.name}),f.jsx(T.TableCell,{children:c.type})]},c.name))})]})})]})]})}function Lk({connectionName:e,schemaName:t,onTableClick:n}){const{projectName:r}=Wi(),{data:o,isSuccess:a,isError:i,error:s,isLoading:l}=un({queryKey:["tablesInSchema",r,e,t],queryFn:c=>Vd.listTables(r,e,t,c)});return f.jsxs(f.Fragment,{children:[f.jsxs(T.Typography,{variant:"overline",fontWeight:"bold",children:["Tables in ",t]}),f.jsx(T.Divider,{}),f.jsxs(T.Box,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[l&&f.jsx(an,{text:"Fetching Tables..."}),i&&f.jsx(sn,{error:s,context:`${r} > ${e} > ${t}`}),a&&o.data.length===0&&f.jsx(T.Typography,{variant:"body2",children:"No Tables"}),a&&o.data.length>0&&f.jsx(T.List,{dense:!0,disablePadding:!0,children:o.data.map(c=>f.jsx(T.ListItemButton,{onClick:()=>n(c),children:f.jsx(T.ListItemText,{primary:c})},c))})]})]})}const $k=new zg(new Yt);function Ok({connection:e,onClick:t}){return f.jsxs(T.TableRow,{onClick:t,sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:[f.jsx(T.TableCell,{children:f.jsxs(T.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[f.jsx(T.Typography,{variant:"body2",children:e.name}),f.jsx(ba,{sx:{fontSize:"1rem",color:"action.active",opacity:.7}})]})}),f.jsx(T.TableCell,{children:f.jsx(T.Typography,{variant:"body2",children:e.type})})]},e.name)}function Mk(){const{projectName:e}=zn(),[t,n]=O.useState(null),{data:r,isSuccess:o,isError:a,error:i}=un({queryKey:["connections",e],queryFn:c=>$k.listConnections(e,c)}),s=c=>{n(c)},l=()=>{n(null)};return f.jsxs(z0,{projectName:e,children:[f.jsx(Nr,{children:f.jsxs(Pr,{children:[f.jsx(Zr,{children:"Database Connections"}),f.jsxs(T.Box,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!o&&!a&&f.jsx(T.Typography,{variant:"body2",sx:{m:"auto"},children:"Fetching Connections..."}),o&&r.data.length>0&&f.jsx(T.Table,{size:"small",sx:{borderCollapse:"collapse","& .MuiTableCell-root":{borderBottom:"1px solid #e0e0e0"},"& .MuiTableRow-root:last-child .MuiTableCell-root":{borderBottom:"none"}},children:f.jsxs(T.TableBody,{children:[f.jsxs(T.TableRow,{children:[f.jsx(T.TableCell,{children:f.jsx(T.Typography,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Connection Name"})}),f.jsx(T.TableCell,{children:f.jsx(T.Typography,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Type"})})]}),r.data.map(c=>f.jsx(Ok,{connection:c,onClick:()=>s(c.name)},c.name))]})}),o&&r.data.length===0&&f.jsx(T.Typography,{variant:"body2",children:"No Connections"}),a&&f.jsx(sn,{error:i,context:`${e} > Connections`})]})]})}),f.jsxs(T.Dialog,{open:t!==null,onClose:l,maxWidth:"lg",fullWidth:!0,children:[f.jsxs(T.DialogTitle,{children:["Connection Explorer: ",t,f.jsx(T.IconButton,{"aria-label":"close",onClick:l,sx:{position:"absolute",right:8,top:8},children:f.jsx(T.Box,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:"X"})})]}),f.jsx(T.DialogContent,{children:t&&f.jsx(Pk,{connectionName:t})})]})]})}const Fk=new uC(new Yt);function Bk(){const{projectName:e,packageName:t,versionId:n}=zn(),[r,o]=O.useState(!1),[a,i]=O.useState(null),s=g=>{i(g),o(!0)},l=()=>{o(!1),i(null)},{data:c,isError:d,error:u,isSuccess:h}=un({queryKey:["databases",e,t,n],queryFn:g=>Fk.listDatabases(e,t,n,g)}),p=g=>g>=1024*1024*1024*1024?`${(g/(1024*1024*1024)).toFixed(2)} T`:g>=1024*1024*1024?`${(g/(1024*1024*1024)).toFixed(2)} G`:g>=1024*1024?`${(g/(1024*1024)).toFixed(2)} M`:`${(g/1024).toFixed(2)} K`;return f.jsxs(f.Fragment,{children:[f.jsx(Nr,{children:f.jsxs(Pr,{children:[f.jsx(Zr,{children:"Embedded Databases"}),f.jsxs(T.Box,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!h&&!d&&f.jsx(an,{text:"Fetching Databases..."}),d&&f.jsx(sn,{error:u,context:`${e} > ${t} > Databases`}),h&&c.data.length>0&&f.jsx(T.Table,{size:"small",sx:{borderCollapse:"collapse","& .MuiTableCell-root":{borderBottom:"1px solid #e0e0e0"},"& .MuiTableRow-root:last-child .MuiTableCell-root":{borderBottom:"none"}},children:f.jsxs(T.TableBody,{children:[f.jsxs(T.TableRow,{children:[f.jsx(T.TableCell,{children:f.jsx(T.Typography,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Name"})}),f.jsx(T.TableCell,{align:"right",children:f.jsx(T.Typography,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Rows"})})]}),c.data.map(g=>f.jsxs(T.TableRow,{onClick:()=>s(g),sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:[f.jsx(T.TableCell,{component:"th",scope:"row",children:f.jsxs(T.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[f.jsx(T.Typography,{variant:"body2",children:g.path}),f.jsx(ba,{sx:{fontSize:"1rem",color:"action.active",opacity:.7}})]})}),f.jsx(T.TableCell,{align:"right",children:f.jsx(T.Typography,{variant:"body2",children:p(g.info.rowCount)})})]},g.path))]})}),h&&c.data.length===0&&f.jsx(T.Typography,{variant:"body2",sx:{m:"auto"},children:"No databases found"})]})]})}),f.jsxs(T.Dialog,{open:r,onClose:l,maxWidth:"sm",fullWidth:!0,children:[f.jsxs(T.DialogTitle,{children:[a?.path,f.jsx(T.IconButton,{"aria-label":"close",onClick:l,sx:{position:"absolute",right:8,top:8},children:f.jsx(T.Box,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:"X"})})]}),f.jsx(T.DialogContent,{children:a?.info?.columns&&f.jsx(T.TableContainer,{children:f.jsxs(T.Table,{size:"small",children:[f.jsx(T.TableHead,{children:f.jsxs(T.TableRow,{children:[f.jsx(T.TableCell,{children:"Column"}),f.jsx(T.TableCell,{children:"Type"})]})}),f.jsx(T.TableBody,{children:a.info.columns.map(g=>f.jsxs(T.TableRow,{children:[f.jsx(T.TableCell,{component:"th",scope:"row",children:g.name}),f.jsx(T.TableCell,{children:g.type})]},g.name))})]})})})]})]})}function ne(){return ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ne.apply(null,arguments)}const G0=(e,t)=>{let n=t.length-1;for(;n>=0&&!e.isItemNavigable(t[n]);)n-=1;if(n!==-1)return t[n]},q0=(e,t)=>{const n=e.getItemMeta(t),r=e.getItemOrderedChildrenIds(n.parentId),o=e.getItemIndex(t);if(o===0)return n.parentId;let a=o-1;for(;!e.isItemNavigable(r[a])&&a>=0;)a-=1;if(a===-1)return n.parentId==null?null:q0(e,n.parentId);let i=r[a],s=G0(e,e.getItemOrderedChildrenIds(i));for(;e.isItemExpanded(i)&&s!=null;)i=s,s=e.getItemOrderedChildrenIds(i).find(e.isItemNavigable);return i},Ls=(e,t)=>{if(e.isItemExpanded(t)){const r=e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);if(r!=null)return r}let n=e.getItemMeta(t);for(;n!=null;){const r=e.getItemOrderedChildrenIds(n.parentId),o=e.getItemIndex(n.id);if(o<r.length-1){let a=o+1;for(;!e.isItemNavigable(r[a])&&a<r.length-1;)a+=1;if(e.isItemNavigable(r[a]))return r[a]}n=e.getItemMeta(n.parentId)}return null},W0=e=>{let t=null;for(;t==null||e.isItemExpanded(t);){const n=e.getItemOrderedChildrenIds(t),r=G0(e,n);if(r==null)return t;t=r}return t},Di=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),V0=(e,t,n)=>{if(t===n)return[t,n];const r=e.getItemMeta(t),o=e.getItemMeta(n);if(r.parentId===o.id||o.parentId===r.id)return o.parentId===r.id?[r.id,o.id]:[o.id,r.id];const a=[r.id],i=[o.id];let s=r.parentId,l=o.parentId,c=i.indexOf(s)!==-1,d=a.indexOf(l)!==-1,u=!0,h=!0;for(;!d&&!c;)u&&(a.push(s),c=i.indexOf(s)!==-1,u=s!==null,!c&&u&&(s=e.getItemMeta(s).parentId)),h&&!c&&(i.push(l),d=a.indexOf(l)!==-1,h=l!==null,!d&&h&&(l=e.getItemMeta(l).parentId));const p=c?s:l,g=e.getItemOrderedChildrenIds(p),b=a[a.indexOf(p)-1],x=i[i.indexOf(p)-1];return g.indexOf(b)<g.indexOf(x)?[t,n]:[n,t]},jk=(e,t,n)=>{const r=l=>{if(e.isItemExpandable(l)&&e.isItemExpanded(l))return e.getItemOrderedChildrenIds(l)[0];let c=e.getItemMeta(l);for(;c!=null;){const d=e.getItemOrderedChildrenIds(c.parentId),u=e.getItemIndex(c.id);if(u<d.length-1)return d[u+1];c=e.getItemMeta(c.parentId)}throw new Error("Invalid range")},[o,a]=V0(e,t,n),i=[o];let s=o;for(;s!==a;)s=r(s),e.isItemDisabled(s)||i.push(s);return i},Hk=e=>{let t=Di(e);const n=[];for(;t!=null;)n.push(t),t=Ls(e,t);return n},wi=(e,t)=>t!==e.closest('*[role="treeitem"]');let zp=0;const Uk=()=>(zp+=1,`mui-tree-view-${zp}`),Yd=({id:e,treeId:t="",itemId:n})=>e??`${t}-${n}`,Y0=D.createContext(null),Mo=()=>{const e=D.useContext(Y0);if(e==null)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join(`
26
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function SS(e,t,n,r){const o=r.schema,a=o.space==="svg"?!1:r.settings.omitOptionalTags;let i=o.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const s=[];let l;o.space==="html"&&e.tagName==="svg"&&(r.schema=Rr);const c=kS(r,e.properties),d=r.all(o.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=o,d&&(i=!1),(c||!a||!fS(e,t,n))&&(s.push("<",e.tagName,c?" "+c:""),i&&(o.space==="svg"||r.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(d),!i&&(!a||!Ud(e,t,n))&&s.push("</"+e.tagName+">"),s.join("")}function kS(e,t){const n=[];let r=-1,o;if(t){for(o in t)if(t[o]!==null&&t[o]!==void 0){const a=AS(e,o,t[o]);a&&n.push(a)}}for(;++r<n.length;){const a=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&a!=='"'&&a!=="'"&&(n[r]+=" ")}return n.join("")}function AS(e,t,n){const r=qi(e.schema,t),o=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,a=e.settings.allowDangerousCharacters?0:1;let i=e.quote,s;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const l=ha(r.attribute,Object.assign({},e.settings.characterReferences,{subset:gs.name[o][a]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?zl:Gl)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(s=ha(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:gs.unquoted[o][a]}))),s!==n&&(e.settings.quoteSmart&&il(n,i)>il(n,e.alternative)&&(i=e.alternative),s=i+ha(n,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?gs.single:gs.double)[o][a],attribute:!0}))+i),l+(s&&"="+s))}const IS=["<","&"];function S0(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:ha(e.value,Object.assign({},r.settings.characterReferences,{subset:IS}))}function _S(e,t,n,r){return r.settings.allowDangerousHtml?e.value:S0(e,t,n,r)}function DS(e,t,n,r){return r.all(e)}const wS=Ul("type",{invalid:NS,unknown:PS,handlers:{comment:Xv,doctype:Jv,element:SS,raw:_S,root:DS,text:S0}});function NS(e){throw new Error("Expected node, not `"+e+"`")}function PS(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const RS={},LS={},$S=[];function OS(e,t){const n=RS,r=n.quote||'"',o=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:MS,all:FS,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||h0,characterReferences:n.characterReferences||LS,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Rr:ka,quote:r,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function MS(e,t,n){return wS(e,t,n,this)}function FS(e){const t=[],n=e&&e.children||$S;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function BS(e){return Array.isArray(e)?e:[e]}function ql(e,t=!1){const n=e.split(/(\r?\n)/g);let r=0;const o=[];for(let a=0;a<n.length;a+=2){const i=t?n[a]+(n[a+1]||""):n[a];o.push([i,r]),r+=n[a].length,r+=n[a+1]?.length||0}return o}function zd(e){return!e||["plaintext","txt","text","plain"].includes(e)}function k0(e){return e==="ansi"||zd(e)}function Gd(e){return e==="none"}function A0(e){return Gd(e)}function I0(e,t){var r;if(!t)return e;e.properties||(e.properties={}),(r=e.properties).class||(r.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const o of n)o&&!e.properties.class.includes(o)&&e.properties.class.push(o);return e}function jS(e,t){let n=0;const r=[];for(const o of t)o>n&&r.push({...e,content:e.content.slice(n,o),offset:e.offset+n}),n=o;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function HS(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,o)=>r-o);return n.length?e.map(r=>r.flatMap(o=>{const a=n.filter(i=>o.offset<i&&i<o.offset+o.content.length).map(i=>i-o.offset).sort((i,s)=>i-s);return a.length?jS(o,a):o})):e}async function _0(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function sl(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[o,a]of Object.entries(t?.colorReplacements||{}))typeof a=="string"?n[o]=a:o===r&&Object.assign(n,a);return n}function fo(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function D0(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&Ir.Italic&&(t["font-style"]="italic"),e.fontStyle&Ir.Bold&&(t["font-weight"]="bold"),e.fontStyle&Ir.Underline&&(t["text-decoration"]="underline")),t}function US(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function zS(e){const t=ql(e,!0).map(([o])=>o);function n(o){if(o===e.length)return{line:t.length-1,character:t[t.length-1].length};let a=o,i=0;for(const s of t){if(a<s.length)break;a-=s.length,i++}return{line:i,character:a}}function r(o,a){let i=0;for(let s=0;s<o;s++)i+=t[s].length;return i+=a,i}return{lines:t,indexToPos:n,posToIndex:r}}let pn=class extends Error{constructor(t){super(t),this.name="ShikiError"}};const w0=new WeakMap;function Wl(e,t){w0.set(e,t)}function Ii(e){return w0.get(e)}let Vl=class N0{constructor(...t){G(this,"_stacks",{});G(this,"lang");if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,o]=t;this.lang=r,this._stacks={[o]:n}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new N0(Object.fromEntries(BS(n).map(r=>[r,Pu])),t)}getInternalStack(t=this.theme){return this._stacks[t]}get scopes(){return Mp(this._stacks[this.theme])}getScopes(t=this.theme){return Mp(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}};function Mp(e){const t=[],n=new Set;function r(o){if(n.has(o))return;n.add(o);const a=o?.nameScopesList?.scopeName;a&&t.push(a),o.parent&&r(o.parent)}return r(e),t}function GS(e,t){if(!(e instanceof Vl))throw new pn("Invalid grammar state");return e.getInternalStack(t)}function qS(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(i){if(typeof i=="number"){if(i<0||i>n.source.length)throw new pn(`Invalid decoration offset: ${i}. Code length: ${n.source.length}`);return{...o.indexToPos(i),offset:i}}else{const s=o.lines[i.line];if(s===void 0)throw new pn(`Invalid decoration position ${JSON.stringify(i)}. Lines length: ${o.lines.length}`);if(i.character<0||i.character>s.length)throw new pn(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${s.length}`);return{...i,offset:o.posToIndex(i.line,i.character)}}};const o=zS(n.source),a=(n.options.decorations||[]).map(i=>({...i,start:r(i.start),end:r(i.end)}));WS(a),e.set(n.meta,{decorations:a,converter:o,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const r=t(this).decorations.flatMap(o=>[o.start.offset,o.end.offset]);return HS(n,r)},code(n){if(!this.options.decorations?.length)return;const r=t(this),o=Array.from(n.children).filter(d=>d.type==="element"&&d.tagName==="span");if(o.length!==r.converter.lines.length)throw new pn(`Number of lines in code element (${o.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function a(d,u,h,p){const g=o[d];let b="",x=-1,E=-1;if(u===0&&(x=0),h===0&&(E=0),h===Number.POSITIVE_INFINITY&&(E=g.children.length),x===-1||E===-1)for(let C=0;C<g.children.length;C++)b+=P0(g.children[C]),x===-1&&b.length===u&&(x=C+1),E===-1&&b.length===h&&(E=C+1);if(x===-1)throw new pn(`Failed to find start index for decoration ${JSON.stringify(p.start)}`);if(E===-1)throw new pn(`Failed to find end index for decoration ${JSON.stringify(p.end)}`);const v=g.children.slice(x,E);if(!p.alwaysWrap&&v.length===g.children.length)s(g,p,"line");else if(!p.alwaysWrap&&v.length===1&&v[0].type==="element")s(v[0],p,"token");else{const C={type:"element",tagName:"span",properties:{},children:v};s(C,p,"wrapper"),g.children.splice(x,v.length,C)}}function i(d,u){o[d]=s(o[d],u,"line")}function s(d,u,h){const p=u.properties||{},g=u.transform||(b=>b);return d.tagName=u.tagName||"span",d.properties={...d.properties,...p,class:d.properties.class},u.properties?.class&&I0(d,u.properties.class),d=g(d,h)||d,d}const l=[],c=r.decorations.sort((d,u)=>u.start.offset-d.start.offset);for(const d of c){const{start:u,end:h}=d;if(u.line===h.line)a(u.line,u.character,h.character,d);else if(u.line<h.line){a(u.line,u.character,Number.POSITIVE_INFINITY,d);for(let p=u.line+1;p<h.line;p++)l.unshift(()=>i(p,d));a(h.line,0,h.character,d)}}l.forEach(d=>d())}}}function WS(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new pn(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const o=e[r],a=n.start.offset<o.start.offset&&o.start.offset<n.end.offset,i=n.start.offset<o.end.offset&&o.end.offset<n.end.offset,s=o.start.offset<n.start.offset&&n.start.offset<o.end.offset,l=o.start.offset<n.end.offset&&n.end.offset<o.end.offset;if(a||i||s||l){if(i&&i||s&&l)continue;throw new pn(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(o.start)} intersect.`)}}}}function P0(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(P0).join(""):""}const VS=[qS()];function ll(e){return[...e.transformers||[],...VS]}var mo=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Pc={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function YS(e,t){const n=e.indexOf("\x1B[",t);if(n!==-1){const r=e.indexOf("m",n);return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function Fp(e,t){let n=1;const r=e[t+n++];let o;if(r==="2"){const a=[e[t+n++],e[t+n++],e[t+n]].map(i=>Number.parseInt(i));a.length===3&&!a.some(i=>Number.isNaN(i))&&(o={type:"rgb",rgb:a})}else if(r==="5"){const a=Number.parseInt(e[t+n]);Number.isNaN(a)||(o={type:"table",index:Number(a)})}return[n,o]}function KS(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],o=Number.parseInt(r);if(!Number.isNaN(o))if(o===0)t.push({type:"resetAll"});else if(o<=9)Pc[o]&&t.push({type:"setDecoration",value:Pc[o]});else if(o<=29){const a=Pc[o-20];a&&t.push({type:"resetDecoration",value:a})}else if(o<=37)t.push({type:"setForegroundColor",value:{type:"named",name:mo[o-30]}});else if(o===38){const[a,i]=Fp(e,n);i&&t.push({type:"setForegroundColor",value:i}),n+=a}else if(o===39)t.push({type:"resetForegroundColor"});else if(o<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:mo[o-40]}});else if(o===48){const[a,i]=Fp(e,n);i&&t.push({type:"setBackgroundColor",value:i}),n+=a}else o===49?t.push({type:"resetBackgroundColor"}):o>=90&&o<=97?t.push({type:"setForegroundColor",value:{type:"named",name:mo[o-90+8]}}):o>=100&&o<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:mo[o-100+8]}})}return t}function QS(){let e=null,t=null,n=new Set;return{parse(r){const o=[];let a=0;do{const i=YS(r,a),s=i.sequence?r.substring(a,i.startPosition):r.substring(a);if(s.length>0&&o.push({value:s,foreground:e,background:t,decorations:new Set(n)}),i.sequence){const l=KS(i.sequence);for(const c of l)c.type==="resetAll"?(e=null,t=null,n.clear()):c.type==="resetForegroundColor"?e=null:c.type==="resetBackgroundColor"?t=null:c.type==="resetDecoration"&&n.delete(c.value);for(const c of l)c.type==="setForegroundColor"?e=c.value:c.type==="setBackgroundColor"?t=c.value:c.type==="setDecoration"&&n.add(c.value)}a=i.position}while(a<r.length);return o}}}var XS={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function JS(e=XS){function t(s){return e[s]}function n(s){return`#${s.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let r;function o(){if(r)return r;r=[];for(let c=0;c<mo.length;c++)r.push(t(mo[c]));let s=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let d=0;d<6;d++)for(let u=0;u<6;u++)r.push(n([s[c],s[d],s[u]]));let l=8;for(let c=0;c<24;c++,l+=10)r.push(n([l,l,l]));return r}function a(s){return o()[s]}function i(s){switch(s.type){case"named":return t(s.name);case"rgb":return n(s.rgb);case"table":return a(s.index)}}return{value:i}}function ZS(e,t,n){const r=sl(e,n),o=ql(t),a=JS(Object.fromEntries(mo.map(s=>[s,e.colors?.[`terminal.ansi${s[0].toUpperCase()}${s.substring(1)}`]]))),i=QS();return o.map(s=>i.parse(s[0]).map(l=>{let c,d;l.decorations.has("reverse")?(c=l.background?a.value(l.background):e.bg,d=l.foreground?a.value(l.foreground):e.fg):(c=l.foreground?a.value(l.foreground):e.fg,d=l.background?a.value(l.background):void 0),c=fo(c,r),d=fo(d,r),l.decorations.has("dim")&&(c=ek(c));let u=Ir.None;return l.decorations.has("bold")&&(u|=Ir.Bold),l.decorations.has("italic")&&(u|=Ir.Italic),l.decorations.has("underline")&&(u|=Ir.Underline),{content:l.value,offset:s[1],color:c,bgColor:d,fontStyle:u}}))}function ek(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const r=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${r}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(r=>`${r}${r}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function qd(e,t,n={}){const{lang:r="text",theme:o=e.getLoadedThemes()[0]}=n;if(zd(r)||Gd(o))return ql(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:a,colorMap:i}=e.setTheme(o);if(r==="ansi")return ZS(a,t,n);const s=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==s.name)throw new _r(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${s.name}"`);if(!n.grammarState.themes.includes(a.name))throw new _r(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return nk(t,s,a,i,n)}function tk(...e){if(e.length===2)return Ii(e[1]);const[t,n,r={}]=e,{lang:o="text",theme:a=t.getLoadedThemes()[0]}=r;if(zd(o)||Gd(a))throw new _r("Plain language does not have grammar state");if(o==="ansi")throw new _r("ANSI language does not have grammar state");const{theme:i,colorMap:s}=t.setTheme(a),l=t.getLanguage(o);return new Vl(cl(n,l,i,s,r).stateStack,l.name,i.name)}function nk(e,t,n,r,o){const a=cl(e,t,n,r,o),i=new Vl(cl(e,t,n,r,o).stateStack,t.name,n.name);return Wl(a.tokens,i),a.tokens}function cl(e,t,n,r,o){const a=sl(n,o),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:s=500}=o,l=ql(e);let c=o.grammarState?GS(o.grammarState,n.name)??Pu:o.grammarContextCode!=null?cl(o.grammarContextCode,t,n,r,{...o,grammarState:void 0,grammarContextCode:void 0}).stateStack:Pu,d=[];const u=[];for(let h=0,p=l.length;h<p;h++){const[g,b]=l[h];if(g===""){d=[],u.push([]);continue}if(i>0&&g.length>=i){d=[],u.push([{content:g,offset:b,color:"",fontStyle:0}]);continue}let x,E,v;o.includeExplanation&&(x=t.tokenizeLine(g,c),E=x.tokens,v=0);const C=t.tokenizeLine2(g,c,s),I=C.tokens.length/2;for(let w=0;w<I;w++){const S=C.tokens[2*w],M=w+1<I?C.tokens[2*w+2]:g.length;if(S===M)continue;const q=C.tokens[2*w+1],B=fo(r[Ea.getForeground(q)],a),y=Ea.getFontStyle(q),R={content:g.substring(S,M),offset:b+S,color:B,fontStyle:y};if(o.includeExplanation){const F=[];if(o.includeExplanation!=="scopeName")for(const U of n.settings){let Y;switch(typeof U.scope){case"string":Y=U.scope.split(/,/).map(re=>re.trim());break;case"object":Y=U.scope;break;default:continue}F.push({settings:U,selectors:Y.map(re=>re.split(/ /))})}R.explanation=[];let $=0;for(;S+$<M;){const U=E[v],Y=g.substring(U.startIndex,U.endIndex);$+=Y.length,R.explanation.push({content:Y,scopes:o.includeExplanation==="scopeName"?rk(U.scopes):ok(F,U.scopes)}),v+=1}}d.push(R)}u.push(d),d=[],c=C.ruleStack}return{tokens:u,stateStack:c}}function rk(e){return e.map(t=>({scopeName:t}))}function ok(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const a=t[r];n[r]={scopeName:a,themeMatches:ik(e,a,t.slice(0,r))}}return n}function Bp(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function ak(e,t,n){if(!Bp(e[e.length-1],t))return!1;let r=e.length-2,o=n.length-1;for(;r>=0&&o>=0;)Bp(e[r],n[o])&&(r-=1),o-=1;return r===-1}function ik(e,t,n){const r=[];for(const{selectors:o,settings:a}of e)for(const i of o)if(ak(i,t,n)){r.push(a);break}return r}function R0(e,t,n){const r=Object.entries(n.themes).filter(l=>l[1]).map(l=>({color:l[0],theme:l[1]})),o=r.map(l=>{const c=qd(e,t,{...n,theme:l.theme}),d=Ii(c),u=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:c,state:d,theme:u}}),a=sk(...o.map(l=>l.tokens)),i=a[0].map((l,c)=>l.map((d,u)=>{const h={content:d.content,variants:{},offset:d.offset};return"includeExplanation"in n&&n.includeExplanation&&(h.explanation=d.explanation),a.forEach((p,g)=>{const{content:b,explanation:x,offset:E,...v}=p[c][u];h.variants[r[g].color]=v}),h})),s=o[0].state?new Vl(Object.fromEntries(o.map(l=>[l.theme,l.state?.getInternalStack(l.theme)])),o[0].state.lang):void 0;return s&&Wl(i,s),i}function sk(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const o=e.map(l=>l[r]),a=t.map(()=>[]);t.forEach((l,c)=>l.push(a[c]));const i=o.map(()=>0),s=o.map(l=>l[0]);for(;s.every(l=>l);){const l=Math.min(...s.map(c=>c.content.length));for(let c=0;c<n;c++){const d=s[c];d.content.length===l?(a[c].push(d),i[c]+=1,s[c]=o[c][i[c]]):(a[c].push({...d,content:d.content.slice(0,l)}),s[c]={...d,content:d.content.slice(l),offset:d.offset+l})}}}return t}function ul(e,t,n){let r,o,a,i,s,l;if("themes"in n){const{defaultColor:c="light",cssVariablePrefix:d="--shiki-"}=n,u=Object.entries(n.themes).filter(x=>x[1]).map(x=>({color:x[0],theme:x[1]})).sort((x,E)=>x.color===c?-1:E.color===c?1:0);if(u.length===0)throw new _r("`themes` option must not be empty");const h=R0(e,t,n);if(l=Ii(h),c&&!u.find(x=>x.color===c))throw new _r(`\`themes\` option must contain the defaultColor key \`${c}\``);const p=u.map(x=>e.getTheme(x.theme)),g=u.map(x=>x.color);a=h.map(x=>x.map(E=>lk(E,g,d,c))),l&&Wl(a,l);const b=u.map(x=>sl(x.theme,n));o=u.map((x,E)=>(E===0&&c?"":`${d+x.color}:`)+(fo(p[E].fg,b[E])||"inherit")).join(";"),r=u.map((x,E)=>(E===0&&c?"":`${d+x.color}-bg:`)+(fo(p[E].bg,b[E])||"inherit")).join(";"),i=`shiki-themes ${p.map(x=>x.name).join(" ")}`,s=c?void 0:[o,r].join(";")}else if("theme"in n){const c=sl(n.theme,n);a=qd(e,t,n);const d=e.getTheme(n.theme);r=fo(d.bg,c),o=fo(d.fg,c),i=d.name,l=Ii(a)}else throw new _r("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:o,bg:r,themeName:i,rootStyle:s,grammarState:l}}function lk(e,t,n,r){const o={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(l=>D0(e.variants[l])),i=new Set(a.flatMap(l=>Object.keys(l))),s={};return a.forEach((l,c)=>{for(const d of i){const u=l[d]||"inherit";if(c===0&&r)s[d]=u;else{const h=d==="color"?"":d==="background-color"?"-bg":`-${d}`,p=n+t[c]+(d==="color"?"":h);s[p]=u}}}),o.htmlStyle=s,o}function dl(e,t,n,r={meta:{},options:n,codeToHast:(o,a)=>dl(e,o,a),codeToTokens:(o,a)=>ul(e,o,a)}){let o=t;for(const p of ll(n))o=p.preprocess?.call(r,o,n)||o;let{tokens:a,fg:i,bg:s,themeName:l,rootStyle:c,grammarState:d}=ul(e,o,n);const{mergeWhitespaces:u=!0}=n;u===!0?a=uk(a):u==="never"&&(a=dk(a));const h={...r,get source(){return o}};for(const p of ll(n))a=p.tokens?.call(h,a)||a;return ck(a,{...n,fg:i,bg:s,themeName:l,rootStyle:c},h,d)}function ck(e,t,n,r=Ii(e)){const o=ll(t),a=[],i={type:"root",children:[]},{structure:s="classic",tabindex:l="0"}=t;let c={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...l!==!1&&l!=null?{tabindex:l.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([g])=>!g.startsWith("_")))},children:[]},d={type:"element",tagName:"code",properties:{},children:a};const u=[],h={...n,structure:s,addClassToHast:I0,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return i},get pre(){return c},get code(){return d},get lines(){return u}};if(e.forEach((g,b)=>{b&&(s==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):s==="classic"&&a.push({type:"text",value:`
27
+ `}));let x={type:"element",tagName:"span",properties:{class:"line"},children:[]},E=0;for(const v of g){let C={type:"element",tagName:"span",properties:{...v.htmlAttrs},children:[{type:"text",value:v.content}]};v.htmlStyle;const I=US(v.htmlStyle||D0(v));I&&(C.properties.style=I);for(const w of o)C=w?.span?.call(h,C,b+1,E,x,v)||C;s==="inline"?i.children.push(C):s==="classic"&&x.children.push(C),E+=v.content.length}if(s==="classic"){for(const v of o)x=v?.line?.call(h,x,b+1)||x;u.push(x),a.push(x)}}),s==="classic"){for(const g of o)d=g?.code?.call(h,d)||d;c.children.push(d);for(const g of o)c=g?.pre?.call(h,c)||c;i.children.push(c)}let p=i;for(const g of o)p=g?.root?.call(h,p)||p;return r&&Wl(p,r),p}function uk(e){return e.map(t=>{const n=[];let r="",o=0;return t.forEach((a,i)=>{const s=!(a.fontStyle&&a.fontStyle&Ir.Underline);s&&a.content.match(/^\s+$/)&&t[i+1]?(o||(o=a.offset),r+=a.content):r?(s?n.push({...a,offset:o,content:r+a.content}):n.push({content:r,offset:o},a),o=0,r=""):n.push(a)}),n})}function dk(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,o,a,i]=r;if(!o&&!i)return n;const s=[{...n,offset:n.offset+o.length,content:a}];return o&&s.unshift({content:o,offset:n.offset}),i&&s.push({content:i,offset:n.offset+o.length+a.length}),s}))}function hk(e,t,n){const r={meta:{},options:n,codeToHast:(a,i)=>dl(e,a,i),codeToTokens:(a,i)=>ul(e,a,i)};let o=OS(dl(e,t,n,r));for(const a of ll(n))o=a.postprocess?.call(r,o,n)||o;return o}const jp={light:"#333333",dark:"#bbbbbb"},Hp={light:"#fffffe",dark:"#1e1e1e"},Up="__shiki_resolved";function Wd(e){if(e?.[Up])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:n,fg:r}=t;if(!n||!r){const s=t.settings?t.settings.find(l=>!l.name&&!l.scope):void 0;s?.settings?.foreground&&(r=s.settings.foreground),s?.settings?.background&&(n=s.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?jp.light:jp.dark),n||(n=t.type==="light"?Hp.light:Hp.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let o=0;const a=new Map;function i(s){if(a.has(s))return a.get(s);o+=1;const l=`#${o.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${l}`]?i(s):(a.set(s,l),l)}t.settings=t.settings.map(s=>{const l=s.settings?.foreground&&!s.settings.foreground.startsWith("#"),c=s.settings?.background&&!s.settings.background.startsWith("#");if(!l&&!c)return s;const d={...s,settings:{...s.settings}};if(l){const u=i(s.settings.foreground);t.colorReplacements[u]=s.settings.foreground,d.settings.foreground=u}if(c){const u=i(s.settings.background);t.colorReplacements[u]=s.settings.background,d.settings.background=u}return d});for(const s of Object.keys(t.colors||{}))if((s==="editor.foreground"||s==="editor.background"||s.startsWith("terminal.ansi"))&&!t.colors[s]?.startsWith("#")){const l=i(t.colors[s]);t.colorReplacements[l]=t.colors[s],t.colors[s]=l}return Object.defineProperty(t,Up,{enumerable:!1,writable:!1,value:!0}),t}async function L0(e){return Array.from(new Set((await Promise.all(e.filter(t=>!k0(t)).map(async t=>await _0(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function $0(e){return(await Promise.all(e.map(async t=>A0(t)?null:Wd(await _0(t))))).filter(t=>!!t)}let pk=class extends _v{constructor(n,r,o,a={}){super(n);G(this,"_resolvedThemes",new Map);G(this,"_resolvedGrammars",new Map);G(this,"_langMap",new Map);G(this,"_langGraph",new Map);G(this,"_textmateThemeCache",new WeakMap);G(this,"_loadedThemesCache",null);G(this,"_loadedLanguagesCache",null);this._resolver=n,this._themes=r,this._langs=o,this._alias=a,this._themes.map(i=>this.loadTheme(i)),this.loadLanguages(this._langs)}getTheme(n){return typeof n=="string"?this._resolvedThemes.get(n):this.loadTheme(n)}loadTheme(n){const r=Wd(n);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(n){let r=this._textmateThemeCache.get(n);r||(r=tl.createFromRawTheme(n),this._textmateThemeCache.set(n,r)),this._syncRegistry.setTheme(r)}getGrammar(n){if(this._alias[n]){const r=new Set([n]);for(;this._alias[n];){if(n=this._alias[n],r.has(n))throw new pn(`Circular alias \`${Array.from(r).join(" -> ")} -> ${n}\``);r.add(n)}}return this._resolvedGrammars.get(n)}loadLanguage(n){if(this.getGrammar(n.name))return;const r=new Set([...this._langMap.values()].filter(i=>i.embeddedLangsLazy?.includes(n.name)));this._resolver.addLanguage(n);const o={balancedBracketSelectors:n.balancedBracketSelectors||["*"],unbalancedBracketSelectors:n.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(n.scopeName,n);const a=this.loadGrammarWithConfiguration(n.scopeName,1,o);if(a.name=n.name,this._resolvedGrammars.set(n.name,a),n.aliases&&n.aliases.forEach(i=>{this._alias[i]=n.name}),this._loadedLanguagesCache=null,r.size)for(const i of r)this._resolvedGrammars.delete(i.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(i.scopeName),this._syncRegistry?._grammars?.delete(i.scopeName),this.loadLanguage(this._langMap.get(i.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(n){for(const a of n)this.resolveEmbeddedLanguages(a);const r=Array.from(this._langGraph.entries()),o=r.filter(([a,i])=>!i);if(o.length){const a=r.filter(([i,s])=>s&&s.embeddedLangs?.some(l=>o.map(([c])=>c).includes(l))).filter(i=>!o.includes(i));throw new pn(`Missing languages ${o.map(([i])=>`\`${i}\``).join(", ")}, required by ${a.map(([i])=>`\`${i}\``).join(", ")}`)}for(const[a,i]of r)this._resolver.addLanguage(i);for(const[a,i]of r)this.loadLanguage(i)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(n){if(this._langMap.set(n.name,n),this._langGraph.set(n.name,n),n.embeddedLangs)for(const r of n.embeddedLangs)this._langGraph.set(r,this._langMap.get(r))}},fk=class{constructor(t,n){G(this,"_langs",new Map);G(this,"_scopeToLang",new Map);G(this,"_injections",new Map);G(this,"_onigLib");this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let o=1;o<=n.length;o++){const a=n.slice(0,o).join(".");r=[...r,...this._injections.get(a)||[]]}return r}},ja=0;function mk(e){ja+=1,e.warnings!==!1&&ja>=10&&ja%10===0&&console.warn(`[Shiki] ${ja} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new pn("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(Wd),o=new fk(e.engine,n),a=new pk(o,r,n,e.langAlias);let i;function s(v){x();const C=a.getGrammar(typeof v=="string"?v:v.name);if(!C)throw new pn(`Language \`${v}\` not found, you may need to load it first`);return C}function l(v){if(v==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};x();const C=a.getTheme(v);if(!C)throw new pn(`Theme \`${v}\` not found, you may need to load it first`);return C}function c(v){x();const C=l(v);i!==v&&(a.setTheme(C),i=v);const I=a.getColorMap();return{theme:C,colorMap:I}}function d(){return x(),a.getLoadedThemes()}function u(){return x(),a.getLoadedLanguages()}function h(...v){x(),a.loadLanguages(v.flat(1))}async function p(...v){return h(await L0(v))}function g(...v){x();for(const C of v.flat(1))a.loadTheme(C)}async function b(...v){return x(),g(await $0(v))}function x(){if(t)throw new pn("Shiki instance has been disposed")}function E(){t||(t=!0,a.dispose(),ja-=1)}return{setTheme:c,getTheme:l,getLanguage:s,getLoadedThemes:d,getLoadedLanguages:u,loadLanguage:p,loadLanguageSync:h,loadTheme:b,loadThemeSync:g,dispose:E,[Symbol.dispose]:E}}async function gk(e={}){e.loadWasm;const[t,n,r]=await Promise.all([$0(e.themes||[]),L0(e.langs||[]),e.engine||Qg(e.loadWasm||UC())]);return mk({...e,themes:t,langs:n,engine:r})}async function yk(e={}){const t=await gk(e);return{getLastGrammarState:(...n)=>tk(t,...n),codeToTokensBase:(n,r)=>qd(t,n,r),codeToTokensWithThemes:(n,r)=>R0(t,n,r),codeToTokens:(n,r)=>ul(t,n,r),codeToHast:(n,r)=>dl(t,n,r),codeToHtml:(n,r)=>hk(t,n,r),...t,getInternalContext:()=>t}}function bk(e,t,n){let r,o,a;{const s=e;r=s.langs,o=s.themes,a=s.engine}async function i(s){function l(p){if(typeof p=="string"){if(k0(p))return[];const g=r[p];if(!g)throw new _r(`Language \`${p}\` is not included in this bundle. You may want to load it from external source.`);return g}return p}function c(p){if(A0(p))return"none";if(typeof p=="string"){const g=o[p];if(!g)throw new _r(`Theme \`${p}\` is not included in this bundle. You may want to load it from external source.`);return g}return p}const d=(s.themes??[]).map(p=>c(p)),u=(s.langs??[]).map(p=>l(p)),h=await yk({engine:s.engine??a(),...s,themes:d,langs:u});return{...h,loadLanguage(...p){return h.loadLanguage(...p.map(l))},loadTheme(...p){return h.loadTheme(...p.map(c))}}}return i}const Ek=bk({langs:CC,themes:SC,engine:()=>Qg(Promise.resolve().then(()=>require("./index.es232-Dw4u1m6u.cjs")))}),Rc={scopeName:"source.malloy",patterns:[{include:"#malloy-language"}],repository:{"malloy-language":{patterns:[{include:"#sql-string"},{include:"#comments"},{include:"#tags"},{include:"#strings"},{include:"#numbers"},{include:"#keywords"},{include:"#properties"},{include:"#functions"},{include:"#datetimes"},{include:"#identifiers-quoted"},{include:"#types"},{include:"#constants"},{include:"#timeframes"},{include:"#identifiers-unquoted"}]},"malloy-matched":{begin:"{",end:"}",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"malloy-in-sql":{begin:"%{",name:"source.malloy-in-sql",end:"}%?",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"sql-string":{patterns:[{begin:'(\\b[A-Za-z_][A-Za-z_0-9]*)(\\s*\\.\\s*)(sql)(\\s*\\(\\s*)(""")',end:'"""',beginCaptures:{1:{name:"variable.other"},3:{name:"keyword.control.sql"},5:{name:"punctuation.sql-block.open"}},endCaptures:{0:{name:"punctuation.sql-block.close"}},name:"source.sql",patterns:[{include:"#malloy-in-sql"},{include:"source.sql"}]}]},functions:{patterns:[{match:"(?i)\\b(count)(\\s*\\()(distinct)",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.function.modifier"}}},{match:"(?i)\\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|UNGROUPED)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(!)(timestamp|number|string|boolean|date)?(\\s*\\()",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.type"}}}]},datetimes:{patterns:[{match:"(?i)@[0-9]{4}-[0-9]{2}-[0-9]{2}[ T][0-9]{2}:[0-9]{2}((:[0-9]{2})(([\\.,][0-9]+)(\\[[A-Za-z_/]+\\])?)?)?",name:"constant.numeric.timestamp"},{match:"(?i)@[0-9]{4}(-Q[1-4]|-[0-9]{2}(-[0-9]{2}(-WK)?)?)?",name:"constant.numeric.date"}]},"identifiers-quoted":{patterns:[{match:"`[^`]*`",name:"variable.other.quoted"}]},"identifiers-unquoted":{patterns:[{match:"(?i)\\b[A-Za-z_][A-Za-z_0-9]*\\b",name:"variable.other"}]},timeframes:{patterns:[{match:"(?i)\\b((year|quarter|month|week|day|hour|minute|second)s?)\\b",name:"keyword.other.timeframe"},{match:"(?i)\\b(day_of_year|day_of_month)\\b",name:"keyword.other.timeframe"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]},tags:{patterns:[{match:"##\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:'#"',end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{match:"#\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:"#\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"##\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"#",end:"\\n",beginCaptures:{0:{name:"string.quoted"}},name:"string.quoted"}],repository:{"tag-values":{name:"support.type.property-name.json",match:'(-)?((?:[^\\s=#]+)|(?:"[^#]+"))(?:\\s*(=)\\s*((?:[^\\s=#]+)|(?:"[^#]+")))?',captures:{1:{name:"keyword.control.negate"},2:{name:"support.type.property-name.json"},3:{name:"keyword.operator.comparison.ts"},4:{name:"string.quoted"}}}}},strings:{patterns:[{begin:"'",end:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.single",patterns:[{include:"#escapes"}]},{begin:'"',end:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.double",patterns:[{include:"#escapes"}]},{begin:'"""',end:'"""',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.triple"},{begin:"(?i)[r|/]'",end:"'",name:"string.regexp",patterns:[{include:"#regex-escapes"}]}],repository:{escapes:{name:"constant.character.escape",match:"\\\\(u[A-Fa-f0-9]{4}|.)",captures:{0:{name:"constant.character.escape"}}},"regex-escapes":{name:"constant.character.escape",match:"\\\\.",captures:{0:{name:"constant.character.escape"}}}}},numbers:{match:"(?i)(\\b((0|[1-9][0-9]*)(E[+-]?[0-9]+|\\.[0-9]*)?)|\\.[0-9]+)",name:"constant.numeric"},constants:{patterns:[{match:"(?i)\\bnull\\b",name:"constant.language.null"},{match:"(?i)\\btrue\\b",name:"constant.language.true"},{match:"(?i)\\bfalse\\b",name:"constant.language.false"}]},types:{patterns:[{match:"(?i)\\bstring\\b",name:"entity.name.type.string"},{match:"(?i)\\bnumber\\b",name:"entity.name.type.number"},{match:"(?i)\\bdate\\b",name:"entity.name.type.date"},{match:"(?i)\\btimestamp\\b",name:"entity.name.type.timestamp"},{match:"(?i)\\bboolean\\b",name:"entity.name.type.boolean"}]},properties:{patterns:[{match:"(?i)\\baccept\\b",name:"keyword.control.accept"},{match:"(?i)\\bselect\\b",name:"keyword.control.select"},{match:"(?i)\\bconnection\\b",name:"keyword.control.connection"},{match:"(?i)\\brun\\b",name:"keyword.control.run"},{match:"(?i)\\bextend\\b",name:"keyword.control.extend"},{match:"(?i)\\brefine\\b",name:"keyword.control.refine"},{match:"(?i)\\baggregate\\b",name:"keyword.control.aggregate"},{match:"(?i)\\bsample\\b",name:"keyword.control.sample"},{match:"(?i)\\bcalculate\\b",name:"keyword.control.calculate"},{match:"(?i)\\btimezone\\b",name:"keyword.control.timezone"},{match:"(?i)\\bdimension\\b",name:"keyword.control.dimension"},{match:"(?i)\\bexcept\\b",name:"keyword.control.except"},{match:"(?i)\\bsource\\b",name:"keyword.control.source"},{match:"(?i)\\bgroup_by\\b",name:"keyword.control.group_by"},{match:"(?i)\\bhaving\\b",name:"keyword.control.having"},{match:"(?i)\\bindex\\b",name:"keyword.control.index"},{match:"(?i)\\bjoin_one\\b",name:"keyword.control.join_one"},{match:"(?i)\\bwith\\b",name:"keyword.control.with"},{match:"(?i)\\bjoin_many\\b",name:"keyword.control.join_many"},{match:"(?i)\\bjoin_cross\\b",name:"keyword.control.join_cross"},{match:"(?i)\\blimit\\b",name:"keyword.control.limit"},{match:"(?i)\\bmeasure\\b",name:"keyword.control.measure"},{match:"(?i)\\bnest\\b",name:"keyword.control.nest"},{match:"(?i)\\border_by\\b",name:"keyword.control.order_by"},{match:"(?i)\\bpartition_by\\b",name:"keyword.control.partition_by"},{match:"(?i)\\bprimary_key\\b",name:"keyword.control.primary_key"},{match:"(?i)\\bproject\\b",name:"keyword.control.project"},{match:"(?i)\\bquery\\b",name:"keyword.control.query"},{match:"(?i)\\brename\\b",name:"keyword.control.rename"},{match:"(?i)\\btop\\b",name:"keyword.control.top"},{match:"(?i)\\bview\\b",name:"keyword.control.view"},{match:"(?i)\\bwhere\\b",name:"keyword.control.where"},{match:"(?i)\\bdeclare\\b",name:"keyword.control.declare"}]},keywords:{patterns:[{match:"(?i)\\bis\\b",name:"keyword.control.is"},{match:"(?i)\\bon\\b",name:"keyword.control.on"},{match:"(?i)\\bnot\\b",name:"keyword.other.not"},{match:"(?i)\\bor\\b",name:"keyword.other.or"},{match:"(?i)\\bdesc\\b",name:"keyword.control.desc"},{match:"(?i)\\bby\\b",name:"keyword.control.by"},{match:"(?i)\\band\\b",name:"keyword.other.and"},{match:"(?i)\\basc\\b",name:"keyword.control.asc"},{match:"(?i)\\bfor\\b",name:"keyword.other.for"},{match:"(?i)\\belse\\b",name:"keyword.other.else"},{match:"(?i)\\bto\\b",name:"keyword.other.to"},{match:"(?i)\\bwhen\\b",name:"keyword.other.when"},{match:"(?i)\\bpick\\b",name:"keyword.other.pick"},{match:"(?i)\\bimport\\b",name:"keyword.control.import"}]}}},xk={...Rc,patterns:[...Rc.patterns,{include:"#docvar"}],repository:{...Rc.repository,docvar:{patterns:[{match:"\\<\\<[^(\\>\\>)]*\\>\\>",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"markup.italic.markdown"}]}}},Tk={name:"Malloy SQL",scopeName:"source.malloy-sql",patterns:[{include:"#malloysql-sql"}],repository:{"malloysql-sql":{beginCaptures:{0:{name:"entity.other.attribute.malloy-sql"},1:{name:"entity.other.attribute.malloy-sql"},3:{name:"comment.line.double-slash"}},name:"meta.embedded.block.malloysql.sql",patterns:[{include:"#comments"},{begin:"%{",end:"}%",beginCaptures:{0:{name:"punctuation.definition.malloy-sql"}},endCaptures:{0:{name:"punctuation.definition.malloy-sql"}},name:"meta.embedded.block.malloy",patterns:[{include:"source.malloy"}]},{include:"source.sql"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]}}},O0="github-light",Ck=Ek({themes:[O0],langs:["sql","json","typescript",{name:"malloy",scopeName:"source.malloy",embeddedLangs:["sql"],...xk},{name:"malloysql",scopeName:"source.malloy-sql",embeddedLangs:["sql"],...Tk}]});async function hl(e,t){return(await Ck).codeToHtml(e,{lang:t,theme:O0})}const M0=O.createContext(void 0),pl=({projectName:e,packageName:t,versionId:n,children:r})=>f.jsx(M0.Provider,{value:{projectName:e,packageName:t,versionId:n},children:r});function zn(e=!0){const t=O.useContext(M0);if(!t&&e)throw new Error("usePackage must be used within a PackageProvider");return t}const F0=pt(f.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"})),_i=pt(f.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),vk=pt(f.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}));function B0({open:e,onClose:t,modelPath:n,data:r,title:o="Data Sources",hasValidImport:a=!0,existingQuery:i,initialSelectedSourceIndex:s,onChange:l,onSourceChange:c}){return f.jsxs(T.Dialog,{open:e,onClose:t,maxWidth:!1,fullWidth:!0,sx:{"& .MuiDialog-paper":{width:"95vw",height:"95vh",maxWidth:"none"}},children:[f.jsxs(T.DialogTitle,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[o,f.jsx(T.IconButton,{onClick:t,sx:{color:"#666666"},children:f.jsx(_i,{})})]}),f.jsx(T.DialogContent,{children:a?f.jsx(dE,{modelPath:n,data:r,existingQuery:i,initialSelectedSourceIndex:s,onChange:l,onSourceChange:c}):f.jsx("div",{children:"No valid import statement found in cell"})})]})}const Sk=O.lazy(()=>Promise.resolve().then(()=>require("./index.es24-D1lbCkVE.cjs")));function Yl({result:e,minHeight:t,maxHeight:n,hideToggle:r=!1}){const[o,a]=O.useState(!1),[i,s]=O.useState(0),[l,c]=O.useState(!1),d=O.useRef(null),u=O.useRef(null),[h,p]=O.useState(void 0),[g,b]=O.useState(!1),x=O.useCallback(()=>{const w=o;a(!o),w&&u.current&&setTimeout(()=>{u.current?.scrollIntoView({behavior:"smooth",block:"start"})},100)},[o]),E=O.useCallback(w=>{s(w)},[]);if(O.useEffect(()=>{if(r){c(!1);return}if(g){c(!0);return}if(i===0){c(!1);return}const w=t-20,S=i>w;i<w&&p(i+20),c(S)},[i,g,t,r]),!e)return null;const v=f.jsx(an,{text:"Loading...",centered:!0,size:32}),C=g?o?n-40:t-40:void 0,I=h?{minHeight:`${h}px`,height:"100%"}:{height:"100%"};return f.jsx(f.Fragment,{children:f.jsxs(T.Box,{ref:u,sx:{position:"relative",minHeight:`${t}px`,maxHeight:`${o?n:t}px`,border:"0px",borderRadius:0,overflow:"hidden",display:"flex",flexDirection:"column",...I},children:[f.jsx(T.Box,{ref:d,sx:{flex:1,overflow:"scroll",p:0,pb:l?"40px":1},children:e&&f.jsx(O.Suspense,{fallback:v,children:f.jsx(Sk,{result:e,height:C,isFillElement:w=>{b(w)},onSizeChange:E})})||v}),l&&f.jsx(T.Box,{sx:{position:"absolute",bottom:0,left:0,right:0,height:"32px",backgroundColor:"rgba(255,255,255,0.75)",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(T.IconButton,{size:"small",onClick:x,sx:{color:"text.secondary","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},title:o?"Collapse to original size":"Expand to full size",children:o?f.jsx(Eu.ExpandLess,{sx:{fontSize:30}}):f.jsx(Eu.ExpandMore,{sx:{fontSize:30}})})})]})})}function j0({open:e,onClose:t,result:n,title:r="Results"}){return f.jsxs(T.Dialog,{open:e,onClose:t,maxWidth:!1,fullWidth:!0,sx:{"& .MuiDialog-paper":{width:"95vw",height:"95vh",maxWidth:"none"}},children:[f.jsxs(T.DialogTitle,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r,f.jsx(T.IconButton,{onClick:t,sx:{color:"#666666"},children:f.jsx(_i,{})})]}),f.jsx(T.DialogContent,{sx:{height:"calc(95vh - 120px)",overflow:"auto",padding:"0 16px"},children:f.jsx(Yl,{result:n,minHeight:800,maxHeight:800,hideToggle:!0})})]})}const H0=pt(f.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),kk=new qg(new Yt);function Ak(){const{projectName:e,packageName:t,versionId:n}=zn(),{data:r,isSuccess:o,isError:a,error:i}=un({queryKey:["package",e,t,n],queryFn:s=>kk.getPackage(e,t,n,!1,s)});return f.jsx(Nr,{children:f.jsxs(Pr,{children:[f.jsx(Zr,{children:"Package Config"}),f.jsx(T.Box,{sx:{maxHeight:"200px",overflowY:"auto"},children:f.jsxs(T.List,{dense:!0,disablePadding:!0,children:[f.jsx(T.ListItem,{dense:!0,disablePadding:!0,children:f.jsx(T.ListItemText,{primary:"Name",primaryTypographyProps:{fontWeight:"500"},secondary:t})}),!o&&!a&&f.jsx(T.ListItem,{children:f.jsx(an,{text:"Fetching Package Metadata..."})}),o&&(r.data&&f.jsx(T.ListItem,{dense:!0,disablePadding:!0,children:f.jsx(T.ListItemText,{primary:"Description",primaryTypographyProps:{fontWeight:"500"},secondary:r.data.description})})||f.jsxs(T.ListItem,{disablePadding:!0,dense:!0,sx:{mt:"20px"},children:[f.jsx(H0,{sx:{color:"grey.600",mr:"10px"}}),f.jsx(T.ListItemText,{primary:"No package manifest"})]})),a&&f.jsx(sn,{error:i,context:`${e} > ${t} > ${n}`})]})})]})})}const Ik=new Wg(new Yt);function _k(){const{projectName:e}=Wi(),{data:t,isSuccess:n,isError:r,error:o}=un({queryKey:["about",e],queryFn:a=>Ik.getProject(e,!1,a)});return f.jsxs(f.Fragment,{children:[!n&&!r&&f.jsx(an,{text:"Fetching About..."}),n&&t.data?.readme&&f.jsx(Nr,{children:f.jsxs(Pr,{children:[f.jsx(Zr,{children:"Readme"}),f.jsx(T.Box,{sx:{mt:1},children:f.jsx(Sd,{children:t.data.readme})})]})}),r&&f.jsx(sn,{error:o,context:`${e} > About`})]})}const Dk=new qg(new Yt);function wk({navigate:e}){const{projectName:t}=Wi(),{data:n,isSuccess:r,isError:o,error:a}=un({queryKey:["packages",t],queryFn:i=>Dk.listPackages(t,i)});return f.jsxs(f.Fragment,{children:[!r&&!o&&f.jsx(an,{text:"Fetching Packages..."}),r&&f.jsx(T.Grid,{container:!0,spacing:3,columns:12,children:n.data.sort((i,s)=>i.name.localeCompare(s.name)).map(i=>f.jsx(T.Grid,{size:{xs:12,sm:12,md:12,lg:4},children:f.jsx(Nr,{sx:{cursor:"pointer",transition:"all 0.2s ease-in-out","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)",transform:"translateY(-1px)"}},onClick:s=>e(i.name,s),children:f.jsxs(Pr,{children:[f.jsx(T.Typography,{variant:"overline",sx:{fontSize:"12px",fontWeight:"600",color:"primary.main",textTransform:"uppercase",letterSpacing:"0.5px",marginBottom:"8px",marginTop:"-16px"},children:i.name}),f.jsx(T.Divider,{sx:{mb:2}}),f.jsx(T.Box,{sx:{maxHeight:"120px",overflowY:"auto",mt:2},children:f.jsx(T.Typography,{variant:"body2",children:i.description})})]})})},i.name))}),o&&f.jsx(sn,{error:a,context:`${t} > Packages`})]})}const U0=O.createContext(void 0);function Wi(){const e=O.useContext(U0);if(!e)throw new Error("useProject must be used within a ProjectProvider");return e}function z0({children:e,projectName:t}){return f.jsx(U0.Provider,{value:{projectName:t},children:e})}function Nk({navigate:e}){return f.jsx(Ug,{children:f.jsxs(T.Grid,{container:!0,spacing:3,columns:12,children:[f.jsx(T.Grid,{size:{xs:12,md:12},children:f.jsx(wk,{navigate:e})}),f.jsx(T.Grid,{size:{xs:12,md:12},children:f.jsx(_k,{})})]})})}const Vd=new zg(new Yt);function Pk({connectionName:e,schema:t}){const{projectName:n}=Wi(),[r,o]=O.useState(void 0),[a,i]=O.useState(t||null),[s,l]=O.useState(!1),{data:c,isSuccess:d,isError:u,error:h,isLoading:p}=un({queryKey:["tablePath",n,e],queryFn:g=>Vd.listSchemas(n,e,g)});return f.jsxs(T.Grid,{container:!0,spacing:1,children:[!t&&f.jsx(T.Grid,{size:{xs:12,md:4},children:f.jsxs(T.Paper,{sx:{p:1,m:0},children:[f.jsxs(T.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:0},children:[f.jsx(T.Typography,{variant:"overline",fontWeight:"bold",children:"Table Paths"}),f.jsx(T.FormControlLabel,{control:f.jsx(T.Switch,{checked:s,onChange:g=>l(g.target.checked)}),label:"Hidden Schemas"})]}),f.jsx(T.Divider,{sx:{mt:"2px"}}),f.jsxs(T.Box,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[p&&f.jsx(an,{text:"Fetching Table Paths..."}),u&&f.jsx(sn,{error:h,context:`${n} > ${e}`}),d&&c.data.length===0&&f.jsx(T.Typography,{variant:"body2",children:"No Schemas"}),d&&c.data.length>0&&f.jsx(T.List,{dense:!0,disablePadding:!0,children:c.data.filter(({isHidden:g})=>s||!g).sort((g,b)=>g.isDefault===b.isDefault?0:g.isDefault?-1:1).map(g=>{const b=(g.description||"").trim(),x=b!=="",E=x?b.split(/\r?\n/)[0]:void 0,v=f.jsx(T.ListItemButton,{selected:a===g.name,onClick:()=>i(g.name),children:f.jsx(T.ListItemText,{primary:g.name,secondary:E})},g.name);return x?f.jsx(T.Tooltip,{title:b,arrow:!0,children:v},g.name):v})})]})]})}),f.jsx(T.Grid,{size:{xs:12,md:t?6:4},children:a&&f.jsx(T.Paper,{sx:{p:1,m:0},children:f.jsx(Lk,{connectionName:e,schemaName:a,onTableClick:g=>{o(g)}})})}),f.jsx(T.Grid,{size:{xs:12,md:t?6:4},children:r&&a&&f.jsx(T.Paper,{sx:{p:1,m:0},children:f.jsx(Rk,{connectionName:e,schemaName:a,tableName:r})})})]})}function Rk({connectionName:e,schemaName:t,tableName:n}){const{projectName:r}=Wi(),{data:o,isSuccess:a,isError:i,error:s,isLoading:l}=un({queryKey:["tablePathSchema",r,e,t,n],queryFn:c=>Vd.getTablesource(r,e,n,`${t}.${n}`,c)});return f.jsxs(f.Fragment,{children:[f.jsxs(T.Typography,{variant:"overline",fontWeight:"bold",children:["Schema: ",t,".",n]}),f.jsx(T.Divider,{}),f.jsxs(T.Box,{sx:{mt:"10px",maxHeight:"600px",overflowY:"auto"},children:[l&&f.jsx(an,{text:"Fetching Table Details..."}),i&&f.jsx(sn,{error:s,context:`${r} > ${e} > ${t}.${n}`}),a&&o&&f.jsx(T.TableContainer,{children:f.jsxs(T.Table,{size:"small",sx:{"& .MuiTableCell-root":{padding:"10px"}},children:[f.jsx(T.TableHead,{children:f.jsxs(T.TableRow,{children:[f.jsx(T.TableCell,{children:"NAME"}),f.jsx(T.TableCell,{children:"TYPE"})]})}),f.jsx(T.TableBody,{children:o.data.columns?.map(c=>f.jsxs(T.TableRow,{children:[f.jsx(T.TableCell,{children:c.name}),f.jsx(T.TableCell,{children:c.type})]},c.name))})]})})]})]})}function Lk({connectionName:e,schemaName:t,onTableClick:n}){const{projectName:r}=Wi(),{data:o,isSuccess:a,isError:i,error:s,isLoading:l}=un({queryKey:["tablesInSchema",r,e,t],queryFn:c=>Vd.listTables(r,e,t,c)});return f.jsxs(f.Fragment,{children:[f.jsxs(T.Typography,{variant:"overline",fontWeight:"bold",children:["Tables in ",t]}),f.jsx(T.Divider,{}),f.jsxs(T.Box,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[l&&f.jsx(an,{text:"Fetching Tables..."}),i&&f.jsx(sn,{error:s,context:`${r} > ${e} > ${t}`}),a&&o.data.length===0&&f.jsx(T.Typography,{variant:"body2",children:"No Tables"}),a&&o.data.length>0&&f.jsx(T.List,{dense:!0,disablePadding:!0,children:o.data.map(c=>f.jsx(T.ListItemButton,{onClick:()=>n(c),children:f.jsx(T.ListItemText,{primary:c})},c))})]})]})}const $k=new zg(new Yt);function Ok({connection:e,onClick:t}){return f.jsxs(T.TableRow,{onClick:t,sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:[f.jsx(T.TableCell,{children:f.jsxs(T.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[f.jsx(T.Typography,{variant:"body2",children:e.name}),f.jsx(ba,{sx:{fontSize:"1rem",color:"action.active",opacity:.7}})]})}),f.jsx(T.TableCell,{children:f.jsx(T.Typography,{variant:"body2",children:e.type})})]},e.name)}function Mk(){const{projectName:e}=zn(),[t,n]=O.useState(null),{data:r,isSuccess:o,isError:a,error:i}=un({queryKey:["connections",e],queryFn:c=>$k.listConnections(e,c)}),s=c=>{n(c)},l=()=>{n(null)};return f.jsxs(z0,{projectName:e,children:[f.jsx(Nr,{children:f.jsxs(Pr,{children:[f.jsx(Zr,{children:"Database Connections"}),f.jsxs(T.Box,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!o&&!a&&f.jsx(T.Typography,{variant:"body2",sx:{m:"auto"},children:"Fetching Connections..."}),o&&r.data.length>0&&f.jsx(T.Table,{size:"small",sx:{borderCollapse:"collapse","& .MuiTableCell-root":{borderBottom:"1px solid #e0e0e0"},"& .MuiTableRow-root:last-child .MuiTableCell-root":{borderBottom:"none"}},children:f.jsxs(T.TableBody,{children:[f.jsxs(T.TableRow,{children:[f.jsx(T.TableCell,{children:f.jsx(T.Typography,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Connection Name"})}),f.jsx(T.TableCell,{children:f.jsx(T.Typography,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Type"})})]}),r.data.map(c=>f.jsx(Ok,{connection:c,onClick:()=>s(c.name)},c.name))]})}),o&&r.data.length===0&&f.jsx(T.Typography,{variant:"body2",children:"No Connections"}),a&&f.jsx(sn,{error:i,context:`${e} > Connections`})]})]})}),f.jsxs(T.Dialog,{open:t!==null,onClose:l,maxWidth:"lg",fullWidth:!0,children:[f.jsxs(T.DialogTitle,{children:["Connection Explorer: ",t,f.jsx(T.IconButton,{"aria-label":"close",onClick:l,sx:{position:"absolute",right:8,top:8},children:f.jsx(T.Box,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:"X"})})]}),f.jsx(T.DialogContent,{children:t&&f.jsx(Pk,{connectionName:t})})]})]})}const Fk=new uC(new Yt);function Bk(){const{projectName:e,packageName:t,versionId:n}=zn(),[r,o]=O.useState(!1),[a,i]=O.useState(null),s=g=>{i(g),o(!0)},l=()=>{o(!1),i(null)},{data:c,isError:d,error:u,isSuccess:h}=un({queryKey:["databases",e,t,n],queryFn:g=>Fk.listDatabases(e,t,n,g)}),p=g=>g>=1024*1024*1024*1024?`${(g/(1024*1024*1024)).toFixed(2)} T`:g>=1024*1024*1024?`${(g/(1024*1024*1024)).toFixed(2)} G`:g>=1024*1024?`${(g/(1024*1024)).toFixed(2)} M`:`${(g/1024).toFixed(2)} K`;return f.jsxs(f.Fragment,{children:[f.jsx(Nr,{children:f.jsxs(Pr,{children:[f.jsx(Zr,{children:"Embedded Databases"}),f.jsxs(T.Box,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!h&&!d&&f.jsx(an,{text:"Fetching Databases..."}),d&&f.jsx(sn,{error:u,context:`${e} > ${t} > Databases`}),h&&c.data.length>0&&f.jsx(T.Table,{size:"small",sx:{borderCollapse:"collapse","& .MuiTableCell-root":{borderBottom:"1px solid #e0e0e0"},"& .MuiTableRow-root:last-child .MuiTableCell-root":{borderBottom:"none"}},children:f.jsxs(T.TableBody,{children:[f.jsxs(T.TableRow,{children:[f.jsx(T.TableCell,{children:f.jsx(T.Typography,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Name"})}),f.jsx(T.TableCell,{align:"right",children:f.jsx(T.Typography,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Rows"})})]}),c.data.map(g=>f.jsxs(T.TableRow,{onClick:()=>s(g),sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:[f.jsx(T.TableCell,{component:"th",scope:"row",children:f.jsxs(T.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[f.jsx(T.Typography,{variant:"body2",children:g.path}),f.jsx(ba,{sx:{fontSize:"1rem",color:"action.active",opacity:.7}})]})}),f.jsx(T.TableCell,{align:"right",children:f.jsx(T.Typography,{variant:"body2",children:p(g.info.rowCount)})})]},g.path))]})}),h&&c.data.length===0&&f.jsx(T.Typography,{variant:"body2",sx:{m:"auto"},children:"No databases found"})]})]})}),f.jsxs(T.Dialog,{open:r,onClose:l,maxWidth:"sm",fullWidth:!0,children:[f.jsxs(T.DialogTitle,{children:[a?.path,f.jsx(T.IconButton,{"aria-label":"close",onClick:l,sx:{position:"absolute",right:8,top:8},children:f.jsx(T.Box,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:"X"})})]}),f.jsx(T.DialogContent,{children:a?.info?.columns&&f.jsx(T.TableContainer,{children:f.jsxs(T.Table,{size:"small",children:[f.jsx(T.TableHead,{children:f.jsxs(T.TableRow,{children:[f.jsx(T.TableCell,{children:"Column"}),f.jsx(T.TableCell,{children:"Type"})]})}),f.jsx(T.TableBody,{children:a.info.columns.map(g=>f.jsxs(T.TableRow,{children:[f.jsx(T.TableCell,{component:"th",scope:"row",children:g.name}),f.jsx(T.TableCell,{children:g.type})]},g.name))})]})})})]})]})}function ne(){return ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ne.apply(null,arguments)}const G0=(e,t)=>{let n=t.length-1;for(;n>=0&&!e.isItemNavigable(t[n]);)n-=1;if(n!==-1)return t[n]},q0=(e,t)=>{const n=e.getItemMeta(t),r=e.getItemOrderedChildrenIds(n.parentId),o=e.getItemIndex(t);if(o===0)return n.parentId;let a=o-1;for(;!e.isItemNavigable(r[a])&&a>=0;)a-=1;if(a===-1)return n.parentId==null?null:q0(e,n.parentId);let i=r[a],s=G0(e,e.getItemOrderedChildrenIds(i));for(;e.isItemExpanded(i)&&s!=null;)i=s,s=e.getItemOrderedChildrenIds(i).find(e.isItemNavigable);return i},Ls=(e,t)=>{if(e.isItemExpanded(t)){const r=e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);if(r!=null)return r}let n=e.getItemMeta(t);for(;n!=null;){const r=e.getItemOrderedChildrenIds(n.parentId),o=e.getItemIndex(n.id);if(o<r.length-1){let a=o+1;for(;!e.isItemNavigable(r[a])&&a<r.length-1;)a+=1;if(e.isItemNavigable(r[a]))return r[a]}n=e.getItemMeta(n.parentId)}return null},W0=e=>{let t=null;for(;t==null||e.isItemExpanded(t);){const n=e.getItemOrderedChildrenIds(t),r=G0(e,n);if(r==null)return t;t=r}return t},Di=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),V0=(e,t,n)=>{if(t===n)return[t,n];const r=e.getItemMeta(t),o=e.getItemMeta(n);if(r.parentId===o.id||o.parentId===r.id)return o.parentId===r.id?[r.id,o.id]:[o.id,r.id];const a=[r.id],i=[o.id];let s=r.parentId,l=o.parentId,c=i.indexOf(s)!==-1,d=a.indexOf(l)!==-1,u=!0,h=!0;for(;!d&&!c;)u&&(a.push(s),c=i.indexOf(s)!==-1,u=s!==null,!c&&u&&(s=e.getItemMeta(s).parentId)),h&&!c&&(i.push(l),d=a.indexOf(l)!==-1,h=l!==null,!d&&h&&(l=e.getItemMeta(l).parentId));const p=c?s:l,g=e.getItemOrderedChildrenIds(p),b=a[a.indexOf(p)-1],x=i[i.indexOf(p)-1];return g.indexOf(b)<g.indexOf(x)?[t,n]:[n,t]},jk=(e,t,n)=>{const r=l=>{if(e.isItemExpandable(l)&&e.isItemExpanded(l))return e.getItemOrderedChildrenIds(l)[0];let c=e.getItemMeta(l);for(;c!=null;){const d=e.getItemOrderedChildrenIds(c.parentId),u=e.getItemIndex(c.id);if(u<d.length-1)return d[u+1];c=e.getItemMeta(c.parentId)}throw new Error("Invalid range")},[o,a]=V0(e,t,n),i=[o];let s=o;for(;s!==a;)s=r(s),e.isItemDisabled(s)||i.push(s);return i},Hk=e=>{let t=Di(e);const n=[];for(;t!=null;)n.push(t),t=Ls(e,t);return n},wi=(e,t)=>t!==e.closest('*[role="treeitem"]');let zp=0;const Uk=()=>(zp+=1,`mui-tree-view-${zp}`),Yd=({id:e,treeId:t="",itemId:n})=>e??`${t}-${n}`,Y0=D.createContext(null),Mo=()=>{const e=D.useContext(Y0);if(e==null)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join(`
28
28
  `));return e},Kd=D.createContext(()=>-1),vo=(e,t)=>e.getAvailablePlugins().has(t),zk=({props:e})=>{const{instance:t}=Mo(),{label:n,itemId:r}=e,[o,a]=D.useState(n),i=t.isItemBeingEdited(r);return D.useEffect(()=>{i||a(n)},[i,n]),{propsEnhancers:{labelInput:({externalEventHandlers:s,interactions:l})=>t.isItemEditable(r)?{value:o??"","data-element":"labelInput",onChange:c=>{s.onChange?.(c),a(c.target.value)},onKeyDown:c=>{if(s.onKeyDown?.(c),c.defaultMuiPrevented)return;const d=c.target;c.key==="Enter"&&d.value?l.handleSaveItemLabel(c,d.value):c.key==="Escape"&&l.handleCancelItemLabelEditing(c)},onBlur:c=>{s.onBlur?.(c),!c.defaultMuiPrevented&&c.target.value&&l.handleSaveItemLabel(c,c.target.value)},autoFocus:!0,type:"text"}:{}}}},jn=({instance:e,state:t,setState:n,params:r})=>{const o=D.useRef(t.editedItemId),a=u=>o.current===u,i=u=>{n(h=>ne({},h,{editedItemId:u})),o.current=u},s=u=>u===t.editedItemId,l=!!r.isItemEditable,c=u=>{if(u==null||!l)return!1;const h=e.getItem(u);return h?typeof r.isItemEditable=="function"?r.isItemEditable(h):!!r.isItemEditable:!1},d=(u,h)=>{if(!h)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","The label of an item cannot be empty.",u].join(`
29
- `));n(p=>{const g=p.items.itemMetaMap[u];return g.label!==h?ne({},p,{items:ne({},p.items,{itemMetaMap:ne({},p.items.itemMetaMap,{[u]:ne({},g,{label:h})})})}):p}),r.onItemLabelChange&&r.onItemLabelChange(u,h)};return{instance:{setEditedItemId:i,isItemBeingEdited:s,updateItemLabel:d,isItemEditable:c,isTreeViewEditable:l,isItemBeingEditedRef:a},publicAPI:{updateItemLabel:d}}};jn.itemPlugin=zk;jn.getDefaultizedParams=({params:e,experimentalFeatures:t})=>{const n=t?.labelEditing;return ne({},e,{isItemEditable:n?e.isItemEditable??!1:!1})};jn.getInitialState=()=>({editedItemId:null});jn.params={onItemLabelChange:!0,isItemEditable:!0};const K0=e=>Array.isArray(e)?e.length>0&&e.some(K0):!!e,Gk=({itemId:e,children:t})=>{const{instance:n,selection:{multiSelect:r},publicAPI:o}=Mo(),a={expandable:K0(t),expanded:n.isItemExpanded(e),focused:n.isItemFocused(e),selected:n.isItemSelected(e),disabled:n.isItemDisabled(e),editing:n?.isItemBeingEdited?n?.isItemBeingEdited(e):!1,editable:n.isItemEditable?n.isItemEditable(e):!1},i=d=>{if(a.disabled)return;a.focused||n.focusItem(d,e);const u=r&&(d.shiftKey||d.ctrlKey||d.metaKey);a.expandable&&!(u&&n.isItemExpanded(e))&&n.toggleItemExpansion(d,e)},s=d=>{a.disabled||(!a.focused&&!a.editing&&n.focusItem(d,e),r&&(d.shiftKey||d.ctrlKey||d.metaKey)?d.shiftKey?n.expandSelectionRange(d,e):n.selectItem({event:d,itemId:e,keepExistingSelection:!0}):n.selectItem({event:d,itemId:e,shouldBeSelected:!0}))},l=d=>{const u=d.nativeEvent.shiftKey;r&&u?n.expandSelectionRange(d,e):n.selectItem({event:d,itemId:e,keepExistingSelection:r,shouldBeSelected:d.target.checked})},c=()=>{vo(n,jn)&&n.isItemEditable(e)&&(n.isItemBeingEdited(e)?n.setEditedItemId(null):n.setEditedItemId(e))};return{interactions:{handleExpansion:i,handleSelection:s,handleCheckboxSelection:l,toggleItemEditing:c,handleSaveItemLabel:(d,u)=>{vo(n,jn)&&n.isItemBeingEditedRef(e)&&(n.updateItemLabel(e,u),c(),n.focusItem(d,e))},handleCancelItemLabelEditing:d=>{vo(n,jn)&&n.isItemBeingEditedRef(e)&&(c(),n.focusItem(d,e))}},status:a,publicAPI:o}};function hr(...e){const t=D.useRef(void 0),n=D.useCallback(r=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const i=a,s=i(r);return typeof s=="function"?s:()=>{i(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return D.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function Nn(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}const qk=e=>{const{runItemPlugins:t,items:{onItemClick:n,disabledItemsFocusable:r,indentationAtItemLevel:o},selection:{disableSelection:a,checkboxSelection:i},expansion:{expansionTrigger:s},treeId:l,instance:c,publicAPI:d}=Mo(),u=D.useContext(Kd),{id:h,itemId:p,label:g,children:b,rootRef:x}=e,{rootRef:E,contentRef:v,propsEnhancers:C}=t(e),{interactions:I,status:N}=Gk({itemId:p,children:b}),S=D.useRef(null),M=D.useRef(null),q=hr(x,E,S),B=hr(v,M),y=D.useRef(null),R=Yd({itemId:p,treeId:l,id:h}),F=c.canItemBeTabbed(p)?0:-1,$={rootRefObject:S,contentRefObject:M,interactions:I},U=ee=>k=>{if(ee.onFocus?.(k),k.defaultMuiPrevented)return;const J=!N.disabled||r;!N.focused&&J&&k.currentTarget===k.target&&c.focusItem(k,p)},Y=ee=>k=>{if(ee.onBlur?.(k),k.defaultMuiPrevented)return;const J=c.getItemDOMElement(p);N.editing||k.relatedTarget&&wi(k.relatedTarget,J)&&(k.target&&k.target?.dataset?.element==="labelInput"&&wi(k.target,J)||k.relatedTarget?.dataset?.element==="labelInput")||c.removeFocusedItem()},re=ee=>k=>{ee.onKeyDown?.(k),!(k.defaultMuiPrevented||k.target?.dataset?.element==="labelInput")&&c.handleItemKeyDown(k,p)},fe=ee=>k=>{ee.onDoubleClick?.(k),!k.defaultMuiPrevented&&I.toggleItemEditing()},ue=ee=>k=>{ee.onClick?.(k),n?.(k,p),!(k.defaultMuiPrevented||y.current?.contains(k.target))&&(s==="content"&&I.handleExpansion(k),i||I.handleSelection(k))},X=ee=>k=>{ee.onMouseDown?.(k),!k.defaultMuiPrevented&&(k.shiftKey||k.ctrlKey||k.metaKey||N.disabled)&&k.preventDefault()},A=ee=>k=>{ee.onChange?.(k),!k.defaultMuiPrevented&&(a||N.disabled||I.handleCheckboxSelection(k))},de=ee=>k=>{ee.onClick?.(k),!k.defaultMuiPrevented&&s==="iconContainer"&&I.handleExpansion(k)};return{getRootProps:(ee={})=>{const k=ne({},Nn(e),Nn(ee));let J;N.selected?J=!0:a||N.disabled?J=void 0:J=!1;const Ee=ne({},k,{ref:q,role:"treeitem",tabIndex:F,id:R,"aria-expanded":N.expandable?N.expanded:void 0,"aria-selected":J,"aria-disabled":N.disabled||void 0},ee,{onFocus:U(k),onBlur:Y(k),onKeyDown:re(k)});o&&(Ee.style={"--TreeView-itemDepth":typeof u=="function"?u(p):u});const he=C.root?.(ne({},$,{externalEventHandlers:k}))??{};return ne({},Ee,he)},getContentProps:(ee={})=>{const k=Nn(ee),J=ne({},k,ee,{ref:B,onClick:ue(k),onMouseDown:X(k),status:N});o&&(J.indentationAtItemLevel=!0);const Ee=C.content?.(ne({},$,{externalEventHandlers:k}))??{};return ne({},J,Ee)},getGroupTransitionProps:(ee={})=>{const k=Nn(ee),J=ne({},k,{unmountOnExit:!0,component:"ul",role:"group",in:N.expanded,children:b},ee);return o&&(J.indentationAtItemLevel=!0),J},getIconContainerProps:(ee={})=>{const k=Nn(ee);return ne({},k,ee,{onClick:de(k)})},getCheckboxProps:(ee={})=>{const k=Nn(ee);return ne({},k,{visible:i,ref:y,checked:N.selected,disabled:a||N.disabled,tabIndex:-1},ee,{onChange:A(k)})},getLabelProps:(ee={})=>{const k=ne({},Nn(ee)),J=ne({},k,{children:g},ee,{onDoubleClick:fe(k)});return c.isTreeViewEditable&&(J.editable=N.editable),J},getLabelInputProps:(ee={})=>{const k=Nn(ee),J=C.labelInput?.({rootRefObject:S,contentRefObject:M,externalEventHandlers:k,interactions:I})??{};return ne({},ee,J)},getDragAndDropOverlayProps:(ee={})=>{const k=Nn(ee),J=C.dragAndDropOverlay?.(ne({},$,{externalEventHandlers:k}))??{};return ne({},ee,J)},rootRef:q,status:N,publicAPI:d}},Wk=qk,Vk=pt(f.jsx("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"})),Yk=pt([f.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},"0"),f.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]),Kk=pt(f.jsx("path",{d:"M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"})),Qk=pt(f.jsx("path",{d:"M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"}));function Xk(){const e=qe.useTheme($d);return e[Od]||e}function Gp(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function Jk(e){return Xr("MuiCollapse",e)}Jr("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);function rn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Fu(e,t){return Fu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Fu(e,t)}function Q0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fu(e,t)}const qp={disabled:!1},fl=O.createContext(null);var Zk=function(e){return e.scrollTop},ri="unmounted",co="exited",uo="entering",aa="entered",Bu="exiting",Lr=function(e){Q0(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=o,s=i&&!i.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?s?(l=co,a.appearStatus=uo):l=aa:r.unmountOnExit||r.mountOnEnter?l=ri:l=co,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(r,o){var a=r.in;return a&&o.status===ri?{status:co}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var o=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==uo&&a!==aa&&(o=uo):(a===uo||a===aa)&&(o=Bu)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,o,a,i;return o=a=i=r,r!=null&&typeof r!="number"&&(o=r.exit,a=r.enter,i=r.appear!==void 0?r.appear:a),{exit:o,enter:a,appear:i}},n.updateStatus=function(r,o){if(r===void 0&&(r=!1),o!==null)if(this.cancelNextCallback(),o===uo){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Za.findDOMNode(this);a&&Zk(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===co&&this.setState({status:ri})},n.performEnter=function(r){var o=this,a=this.props.enter,i=this.context?this.context.isMounting:r,s=this.props.nodeRef?[i]:[Za.findDOMNode(this),i],l=s[0],c=s[1],d=this.getTimeouts(),u=i?d.appear:d.enter;if(!r&&!a||qp.disabled){this.safeSetState({status:aa},function(){o.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:uo},function(){o.props.onEntering(l,c),o.onTransitionEnd(u,function(){o.safeSetState({status:aa},function(){o.props.onEntered(l,c)})})})},n.performExit=function(){var r=this,o=this.props.exit,a=this.getTimeouts(),i=this.props.nodeRef?void 0:Za.findDOMNode(this);if(!o||qp.disabled){this.safeSetState({status:co},function(){r.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:Bu},function(){r.props.onExiting(i),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:co},function(){r.props.onExited(i)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,o){o=this.setNextCallback(o),this.setState(r,o)},n.setNextCallback=function(r){var o=this,a=!0;return this.nextCallback=function(i){a&&(a=!1,o.nextCallback=null,r(i))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(r,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:Za.findDOMNode(this),i=r==null&&!this.props.addEndListener;if(!a||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=s[0],c=s[1];this.props.addEndListener(l,c)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===ri)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var i=rn(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return O.createElement(fl.Provider,{value:null},typeof a=="function"?a(r,i):O.cloneElement(O.Children.only(a),i))},t}(O.Component);Lr.contextType=fl;Lr.propTypes={};function Ko(){}Lr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ko,onEntering:Ko,onEntered:Ko,onExit:Ko,onExiting:Ko,onExited:Ko};Lr.UNMOUNTED=ri;Lr.EXITED=co;Lr.ENTERING=uo;Lr.ENTERED=aa;Lr.EXITING=Bu;const Wp={};function X0(e,t){const n=D.useRef(Wp);return n.current===Wp&&(n.current=e(t)),n}const eA=[];function tA(e){D.useEffect(e,eA)}let nA=class J0{constructor(){G(this,"currentId",null);G(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});G(this,"disposeEffect",()=>this.clear)}static create(){return new J0}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}};function Z0(){const e=X0(nA.create).current;return tA(e.disposeEffect),e}const rA=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return $o(r,Jk,n)},oA=mt("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(kd(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),aA=mt("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),iA=mt("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Ni=D.forwardRef(function(e,t){const n=va({props:e,name:"MuiCollapse"}),{addEndListener:r,children:o,className:a,collapsedSize:i="0px",component:s,easing:l,in:c,onEnter:d,onEntered:u,onEntering:h,onExit:p,onExited:g,onExiting:b,orientation:x="vertical",style:E,timeout:v=Rg.standard,TransitionComponent:C=Lr,...I}=n,N={...n,orientation:x,collapsedSize:i},S=rA(N),M=Xk(),q=Z0(),B=D.useRef(null),y=D.useRef(),R=typeof i=="number"?`${i}px`:i,F=x==="horizontal",$=F?"width":"height",U=D.useRef(null),Y=hr(t,U),re=J=>Ee=>{if(J){const he=U.current;Ee===void 0?J(he):J(he,Ee)}},fe=()=>B.current?B.current[F?"clientWidth":"clientHeight"]:0,ue=re((J,Ee)=>{B.current&&F&&(B.current.style.position="absolute"),J.style[$]=R,d&&d(J,Ee)}),X=re((J,Ee)=>{const he=fe();B.current&&F&&(B.current.style.position="");const{duration:ye,easing:me}=Gp({style:E,timeout:v,easing:l},{mode:"enter"});if(v==="auto"){const Fe=M.transitions.getAutoHeightDuration(he);J.style.transitionDuration=`${Fe}ms`,y.current=Fe}else J.style.transitionDuration=typeof ye=="string"?ye:`${ye}ms`;J.style[$]=`${he}px`,J.style.transitionTimingFunction=me,h&&h(J,Ee)}),A=re((J,Ee)=>{J.style[$]="auto",u&&u(J,Ee)}),de=re(J=>{J.style[$]=`${fe()}px`,p&&p(J)}),ee=re(g),k=re(J=>{const Ee=fe(),{duration:he,easing:ye}=Gp({style:E,timeout:v,easing:l},{mode:"exit"});if(v==="auto"){const me=M.transitions.getAutoHeightDuration(Ee);J.style.transitionDuration=`${me}ms`,y.current=me}else J.style.transitionDuration=typeof he=="string"?he:`${he}ms`;J.style[$]=R,J.style.transitionTimingFunction=ye,b&&b(J)});return f.jsx(C,{in:c,onEnter:ue,onEntered:A,onEntering:X,onExit:de,onExited:ee,onExiting:k,addEndListener:J=>{v==="auto"&&q.start(y.current||0,J),r&&r(U.current,J)},nodeRef:U,timeout:v==="auto"?null:v,...I,children:(J,{ownerState:Ee,...he})=>f.jsx(oA,{as:s,className:Mt(S.root,a,{entered:S.entered,exited:!c&&R==="0px"&&S.hidden}[J]),style:{[F?"minWidth":"minHeight"]:R,...E},ref:Y,ownerState:{...N,state:J},...he,children:f.jsx(aA,{ownerState:{...N,state:J},className:S.wrapper,ref:B,children:f.jsx(iA,{ownerState:{...N,state:J},className:S.wrapperInner,children:o})})})})});Ni&&(Ni.muiSupportAuto=!0);function Kl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lc={exports:{}},$c,Vp;function sA(){if(Vp)return $c;Vp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return $c=e,$c}var Oc,Yp;function lA(){if(Yp)return Oc;Yp=1;var e=sA();function t(){}function n(){}return n.resetWarningCache=t,Oc=function(){function r(i,s,l,c,d,u){if(u!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function o(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},Oc}var Kp;function cA(){return Kp||(Kp=1,Lc.exports=lA()()),Lc.exports}var uA=cA();const Qp=Kl(uA);function Qd(e){const{children:t,itemId:n}=e,{wrapItem:r,instance:o}=Mo();return r({children:t,itemId:n,instance:o})}Qd.propTypes={children:Qp.node,itemId:Qp.string.isRequired};const dA=D.createContext(void 0);function hA(){return D.useContext(dA)}function pA(e){return Xr("PrivateSwitchBase",e)}Jr("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);function sr(e,t,n){return typeof e=="function"?e(t,n):e}function Xp(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function e1(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const p=Mt(n?.className,a,o?.className,r?.className),g={...n?.style,...o?.style,...r?.style},b={...n,...o,...r};return p.length>0&&(b.className=p),Object.keys(g).length>0&&(b.style=g),{props:b,internalRef:void 0}}const i=Nn({...o,...r}),s=Xp(r),l=Xp(o),c=t(i),d=Mt(c?.className,n?.className,a,o?.className,r?.className),u={...c?.style,...n?.style,...o?.style,...r?.style},h={...c,...n,...l,...s};return d.length>0&&(h.className=d),Object.keys(u).length>0&&(h.style=u),{props:h,internalRef:c.ref}}function fA(e){return typeof e=="string"}function t1(e,t,n){return e===void 0||fA(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function ju(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:i,shouldForwardComponentProp:s=!1,...l}=t,{component:c,slots:d={[e]:void 0},slotProps:u={[e]:void 0},...h}=a,p=d[e]||r,g=sr(u[e],o),{props:{component:b,...x},internalRef:E}=e1({className:n,...l,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:g}),v=hr(E,g?.ref,t.ref),C=e==="root"?b||c:b,I=t1(p,{...e==="root"&&!c&&!d[e]&&i,...e!=="root"&&!d[e]&&i,...x,...C&&!s&&{as:C},...C&&s&&{component:C},ref:v},o);return[p,I]}function mA(e){const{controlled:t,default:n}=e,{current:r}=D.useRef(t!==void 0),[o,a]=D.useState(n),i=r?t:o,s=D.useCallback(l=>{r||a(l)},[]);return[i,s]}function gA(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:c}=e,[d,u]=D.useState(!1),h=Mt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},g=Mt(n.child,d&&n.childLeaving,r&&n.childPulsate);return!s&&!d&&u(!0),D.useEffect(()=>{if(!s&&l!=null){const b=setTimeout(l,c);return()=>{clearTimeout(b)}}},[l,s,c]),f.jsx("span",{className:h,style:p,children:f.jsx("span",{className:g})})}const Rn=Jr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);function yA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xd(e,t){var n=function(o){return t&&O.isValidElement(o)?t(o):o},r=Object.create(null);return e&&O.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function bA(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),o=[];for(var a in e)a in t?o.length&&(r[a]=o,o=[]):o.push(a);var i,s={};for(var l in t){if(r[l])for(i=0;i<r[l].length;i++){var c=r[l][i];s[r[l][i]]=n(c)}s[l]=n(l)}for(i=0;i<o.length;i++)s[o[i]]=n(o[i]);return s}function go(e,t,n){return n[t]!=null?n[t]:e.props[t]}function EA(e,t){return Xd(e.children,function(n){return O.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:go(n,"appear",e),enter:go(n,"enter",e),exit:go(n,"exit",e)})})}function xA(e,t,n){var r=Xd(e.children),o=bA(t,r);return Object.keys(o).forEach(function(a){var i=o[a];if(O.isValidElement(i)){var s=a in t,l=a in r,c=t[a],d=O.isValidElement(c)&&!c.props.in;l&&(!s||d)?o[a]=O.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:go(i,"exit",e),enter:go(i,"enter",e)}):!l&&s&&!d?o[a]=O.cloneElement(i,{in:!1}):l&&s&&O.isValidElement(c)&&(o[a]=O.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:go(i,"exit",e),enter:go(i,"enter",e)}))}}),o}var TA=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},CA={component:"div",childFactory:function(e){return e}},Jd=function(e){Q0(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=a.handleExited.bind(yA(a));return a.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},a}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,o){var a=o.children,i=o.handleExited,s=o.firstRender;return{children:s?EA(r,i):xA(r,a,i),firstRender:!1}},n.handleExited=function(r,o){var a=Xd(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(o),this.mounted&&this.setState(function(i){var s=ne({},i.children);return delete s[r.key],{children:s}}))},n.render=function(){var r=this.props,o=r.component,a=r.childFactory,i=rn(r,["component","childFactory"]),s=this.state.contextValue,l=TA(this.state.children).map(a);return delete i.appear,delete i.enter,delete i.exit,o===null?O.createElement(fl.Provider,{value:s},l):O.createElement(fl.Provider,{value:s},O.createElement(o,i,l))},t}(O.Component);Jd.propTypes={};Jd.defaultProps=CA;const Hu=550,vA=80,SA=qe.keyframes`
29
+ `));n(p=>{const g=p.items.itemMetaMap[u];return g.label!==h?ne({},p,{items:ne({},p.items,{itemMetaMap:ne({},p.items.itemMetaMap,{[u]:ne({},g,{label:h})})})}):p}),r.onItemLabelChange&&r.onItemLabelChange(u,h)};return{instance:{setEditedItemId:i,isItemBeingEdited:s,updateItemLabel:d,isItemEditable:c,isTreeViewEditable:l,isItemBeingEditedRef:a},publicAPI:{updateItemLabel:d}}};jn.itemPlugin=zk;jn.getDefaultizedParams=({params:e,experimentalFeatures:t})=>{const n=t?.labelEditing;return ne({},e,{isItemEditable:n?e.isItemEditable??!1:!1})};jn.getInitialState=()=>({editedItemId:null});jn.params={onItemLabelChange:!0,isItemEditable:!0};const K0=e=>Array.isArray(e)?e.length>0&&e.some(K0):!!e,Gk=({itemId:e,children:t})=>{const{instance:n,selection:{multiSelect:r},publicAPI:o}=Mo(),a={expandable:K0(t),expanded:n.isItemExpanded(e),focused:n.isItemFocused(e),selected:n.isItemSelected(e),disabled:n.isItemDisabled(e),editing:n?.isItemBeingEdited?n?.isItemBeingEdited(e):!1,editable:n.isItemEditable?n.isItemEditable(e):!1},i=d=>{if(a.disabled)return;a.focused||n.focusItem(d,e);const u=r&&(d.shiftKey||d.ctrlKey||d.metaKey);a.expandable&&!(u&&n.isItemExpanded(e))&&n.toggleItemExpansion(d,e)},s=d=>{a.disabled||(!a.focused&&!a.editing&&n.focusItem(d,e),r&&(d.shiftKey||d.ctrlKey||d.metaKey)?d.shiftKey?n.expandSelectionRange(d,e):n.selectItem({event:d,itemId:e,keepExistingSelection:!0}):n.selectItem({event:d,itemId:e,shouldBeSelected:!0}))},l=d=>{const u=d.nativeEvent.shiftKey;r&&u?n.expandSelectionRange(d,e):n.selectItem({event:d,itemId:e,keepExistingSelection:r,shouldBeSelected:d.target.checked})},c=()=>{vo(n,jn)&&n.isItemEditable(e)&&(n.isItemBeingEdited(e)?n.setEditedItemId(null):n.setEditedItemId(e))};return{interactions:{handleExpansion:i,handleSelection:s,handleCheckboxSelection:l,toggleItemEditing:c,handleSaveItemLabel:(d,u)=>{vo(n,jn)&&n.isItemBeingEditedRef(e)&&(n.updateItemLabel(e,u),c(),n.focusItem(d,e))},handleCancelItemLabelEditing:d=>{vo(n,jn)&&n.isItemBeingEditedRef(e)&&(c(),n.focusItem(d,e))}},status:a,publicAPI:o}};function hr(...e){const t=D.useRef(void 0),n=D.useCallback(r=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const i=a,s=i(r);return typeof s=="function"?s:()=>{i(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return D.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function Nn(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}const qk=e=>{const{runItemPlugins:t,items:{onItemClick:n,disabledItemsFocusable:r,indentationAtItemLevel:o},selection:{disableSelection:a,checkboxSelection:i},expansion:{expansionTrigger:s},treeId:l,instance:c,publicAPI:d}=Mo(),u=D.useContext(Kd),{id:h,itemId:p,label:g,children:b,rootRef:x}=e,{rootRef:E,contentRef:v,propsEnhancers:C}=t(e),{interactions:I,status:w}=Gk({itemId:p,children:b}),S=D.useRef(null),M=D.useRef(null),q=hr(x,E,S),B=hr(v,M),y=D.useRef(null),R=Yd({itemId:p,treeId:l,id:h}),F=c.canItemBeTabbed(p)?0:-1,$={rootRefObject:S,contentRefObject:M,interactions:I},U=ee=>k=>{if(ee.onFocus?.(k),k.defaultMuiPrevented)return;const J=!w.disabled||r;!w.focused&&J&&k.currentTarget===k.target&&c.focusItem(k,p)},Y=ee=>k=>{if(ee.onBlur?.(k),k.defaultMuiPrevented)return;const J=c.getItemDOMElement(p);w.editing||k.relatedTarget&&wi(k.relatedTarget,J)&&(k.target&&k.target?.dataset?.element==="labelInput"&&wi(k.target,J)||k.relatedTarget?.dataset?.element==="labelInput")||c.removeFocusedItem()},re=ee=>k=>{ee.onKeyDown?.(k),!(k.defaultMuiPrevented||k.target?.dataset?.element==="labelInput")&&c.handleItemKeyDown(k,p)},fe=ee=>k=>{ee.onDoubleClick?.(k),!k.defaultMuiPrevented&&I.toggleItemEditing()},ue=ee=>k=>{ee.onClick?.(k),n?.(k,p),!(k.defaultMuiPrevented||y.current?.contains(k.target))&&(s==="content"&&I.handleExpansion(k),i||I.handleSelection(k))},X=ee=>k=>{ee.onMouseDown?.(k),!k.defaultMuiPrevented&&(k.shiftKey||k.ctrlKey||k.metaKey||w.disabled)&&k.preventDefault()},A=ee=>k=>{ee.onChange?.(k),!k.defaultMuiPrevented&&(a||w.disabled||I.handleCheckboxSelection(k))},de=ee=>k=>{ee.onClick?.(k),!k.defaultMuiPrevented&&s==="iconContainer"&&I.handleExpansion(k)};return{getRootProps:(ee={})=>{const k=ne({},Nn(e),Nn(ee));let J;w.selected?J=!0:a||w.disabled?J=void 0:J=!1;const Ee=ne({},k,{ref:q,role:"treeitem",tabIndex:F,id:R,"aria-expanded":w.expandable?w.expanded:void 0,"aria-selected":J,"aria-disabled":w.disabled||void 0},ee,{onFocus:U(k),onBlur:Y(k),onKeyDown:re(k)});o&&(Ee.style={"--TreeView-itemDepth":typeof u=="function"?u(p):u});const he=C.root?.(ne({},$,{externalEventHandlers:k}))??{};return ne({},Ee,he)},getContentProps:(ee={})=>{const k=Nn(ee),J=ne({},k,ee,{ref:B,onClick:ue(k),onMouseDown:X(k),status:w});o&&(J.indentationAtItemLevel=!0);const Ee=C.content?.(ne({},$,{externalEventHandlers:k}))??{};return ne({},J,Ee)},getGroupTransitionProps:(ee={})=>{const k=Nn(ee),J=ne({},k,{unmountOnExit:!0,component:"ul",role:"group",in:w.expanded,children:b},ee);return o&&(J.indentationAtItemLevel=!0),J},getIconContainerProps:(ee={})=>{const k=Nn(ee);return ne({},k,ee,{onClick:de(k)})},getCheckboxProps:(ee={})=>{const k=Nn(ee);return ne({},k,{visible:i,ref:y,checked:w.selected,disabled:a||w.disabled,tabIndex:-1},ee,{onChange:A(k)})},getLabelProps:(ee={})=>{const k=ne({},Nn(ee)),J=ne({},k,{children:g},ee,{onDoubleClick:fe(k)});return c.isTreeViewEditable&&(J.editable=w.editable),J},getLabelInputProps:(ee={})=>{const k=Nn(ee),J=C.labelInput?.({rootRefObject:S,contentRefObject:M,externalEventHandlers:k,interactions:I})??{};return ne({},ee,J)},getDragAndDropOverlayProps:(ee={})=>{const k=Nn(ee),J=C.dragAndDropOverlay?.(ne({},$,{externalEventHandlers:k}))??{};return ne({},ee,J)},rootRef:q,status:w,publicAPI:d}},Wk=qk,Vk=pt(f.jsx("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"})),Yk=pt([f.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},"0"),f.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]),Kk=pt(f.jsx("path",{d:"M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"})),Qk=pt(f.jsx("path",{d:"M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"}));function Xk(){const e=qe.useTheme($d);return e[Od]||e}function Gp(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function Jk(e){return Xr("MuiCollapse",e)}Jr("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);function rn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Fu(e,t){return Fu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Fu(e,t)}function Q0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fu(e,t)}const qp={disabled:!1},fl=O.createContext(null);var Zk=function(e){return e.scrollTop},ri="unmounted",co="exited",uo="entering",aa="entered",Bu="exiting",Lr=function(e){Q0(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=o,s=i&&!i.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?s?(l=co,a.appearStatus=uo):l=aa:r.unmountOnExit||r.mountOnEnter?l=ri:l=co,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(r,o){var a=r.in;return a&&o.status===ri?{status:co}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var o=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==uo&&a!==aa&&(o=uo):(a===uo||a===aa)&&(o=Bu)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,o,a,i;return o=a=i=r,r!=null&&typeof r!="number"&&(o=r.exit,a=r.enter,i=r.appear!==void 0?r.appear:a),{exit:o,enter:a,appear:i}},n.updateStatus=function(r,o){if(r===void 0&&(r=!1),o!==null)if(this.cancelNextCallback(),o===uo){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Za.findDOMNode(this);a&&Zk(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===co&&this.setState({status:ri})},n.performEnter=function(r){var o=this,a=this.props.enter,i=this.context?this.context.isMounting:r,s=this.props.nodeRef?[i]:[Za.findDOMNode(this),i],l=s[0],c=s[1],d=this.getTimeouts(),u=i?d.appear:d.enter;if(!r&&!a||qp.disabled){this.safeSetState({status:aa},function(){o.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:uo},function(){o.props.onEntering(l,c),o.onTransitionEnd(u,function(){o.safeSetState({status:aa},function(){o.props.onEntered(l,c)})})})},n.performExit=function(){var r=this,o=this.props.exit,a=this.getTimeouts(),i=this.props.nodeRef?void 0:Za.findDOMNode(this);if(!o||qp.disabled){this.safeSetState({status:co},function(){r.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:Bu},function(){r.props.onExiting(i),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:co},function(){r.props.onExited(i)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,o){o=this.setNextCallback(o),this.setState(r,o)},n.setNextCallback=function(r){var o=this,a=!0;return this.nextCallback=function(i){a&&(a=!1,o.nextCallback=null,r(i))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(r,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:Za.findDOMNode(this),i=r==null&&!this.props.addEndListener;if(!a||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=s[0],c=s[1];this.props.addEndListener(l,c)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===ri)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var i=rn(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return O.createElement(fl.Provider,{value:null},typeof a=="function"?a(r,i):O.cloneElement(O.Children.only(a),i))},t}(O.Component);Lr.contextType=fl;Lr.propTypes={};function Ko(){}Lr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ko,onEntering:Ko,onEntered:Ko,onExit:Ko,onExiting:Ko,onExited:Ko};Lr.UNMOUNTED=ri;Lr.EXITED=co;Lr.ENTERING=uo;Lr.ENTERED=aa;Lr.EXITING=Bu;const Wp={};function X0(e,t){const n=D.useRef(Wp);return n.current===Wp&&(n.current=e(t)),n}const eA=[];function tA(e){D.useEffect(e,eA)}let nA=class J0{constructor(){G(this,"currentId",null);G(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});G(this,"disposeEffect",()=>this.clear)}static create(){return new J0}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}};function Z0(){const e=X0(nA.create).current;return tA(e.disposeEffect),e}const rA=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return $o(r,Jk,n)},oA=mt("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(kd(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),aA=mt("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),iA=mt("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Ni=D.forwardRef(function(e,t){const n=va({props:e,name:"MuiCollapse"}),{addEndListener:r,children:o,className:a,collapsedSize:i="0px",component:s,easing:l,in:c,onEnter:d,onEntered:u,onEntering:h,onExit:p,onExited:g,onExiting:b,orientation:x="vertical",style:E,timeout:v=Rg.standard,TransitionComponent:C=Lr,...I}=n,w={...n,orientation:x,collapsedSize:i},S=rA(w),M=Xk(),q=Z0(),B=D.useRef(null),y=D.useRef(),R=typeof i=="number"?`${i}px`:i,F=x==="horizontal",$=F?"width":"height",U=D.useRef(null),Y=hr(t,U),re=J=>Ee=>{if(J){const he=U.current;Ee===void 0?J(he):J(he,Ee)}},fe=()=>B.current?B.current[F?"clientWidth":"clientHeight"]:0,ue=re((J,Ee)=>{B.current&&F&&(B.current.style.position="absolute"),J.style[$]=R,d&&d(J,Ee)}),X=re((J,Ee)=>{const he=fe();B.current&&F&&(B.current.style.position="");const{duration:ye,easing:me}=Gp({style:E,timeout:v,easing:l},{mode:"enter"});if(v==="auto"){const Fe=M.transitions.getAutoHeightDuration(he);J.style.transitionDuration=`${Fe}ms`,y.current=Fe}else J.style.transitionDuration=typeof ye=="string"?ye:`${ye}ms`;J.style[$]=`${he}px`,J.style.transitionTimingFunction=me,h&&h(J,Ee)}),A=re((J,Ee)=>{J.style[$]="auto",u&&u(J,Ee)}),de=re(J=>{J.style[$]=`${fe()}px`,p&&p(J)}),ee=re(g),k=re(J=>{const Ee=fe(),{duration:he,easing:ye}=Gp({style:E,timeout:v,easing:l},{mode:"exit"});if(v==="auto"){const me=M.transitions.getAutoHeightDuration(Ee);J.style.transitionDuration=`${me}ms`,y.current=me}else J.style.transitionDuration=typeof he=="string"?he:`${he}ms`;J.style[$]=R,J.style.transitionTimingFunction=ye,b&&b(J)});return f.jsx(C,{in:c,onEnter:ue,onEntered:A,onEntering:X,onExit:de,onExited:ee,onExiting:k,addEndListener:J=>{v==="auto"&&q.start(y.current||0,J),r&&r(U.current,J)},nodeRef:U,timeout:v==="auto"?null:v,...I,children:(J,{ownerState:Ee,...he})=>f.jsx(oA,{as:s,className:Mt(S.root,a,{entered:S.entered,exited:!c&&R==="0px"&&S.hidden}[J]),style:{[F?"minWidth":"minHeight"]:R,...E},ref:Y,ownerState:{...w,state:J},...he,children:f.jsx(aA,{ownerState:{...w,state:J},className:S.wrapper,ref:B,children:f.jsx(iA,{ownerState:{...w,state:J},className:S.wrapperInner,children:o})})})})});Ni&&(Ni.muiSupportAuto=!0);function Kl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lc={exports:{}},$c,Vp;function sA(){if(Vp)return $c;Vp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return $c=e,$c}var Oc,Yp;function lA(){if(Yp)return Oc;Yp=1;var e=sA();function t(){}function n(){}return n.resetWarningCache=t,Oc=function(){function r(i,s,l,c,d,u){if(u!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function o(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},Oc}var Kp;function cA(){return Kp||(Kp=1,Lc.exports=lA()()),Lc.exports}var uA=cA();const Qp=Kl(uA);function Qd(e){const{children:t,itemId:n}=e,{wrapItem:r,instance:o}=Mo();return r({children:t,itemId:n,instance:o})}Qd.propTypes={children:Qp.node,itemId:Qp.string.isRequired};const dA=D.createContext(void 0);function hA(){return D.useContext(dA)}function pA(e){return Xr("PrivateSwitchBase",e)}Jr("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);function sr(e,t,n){return typeof e=="function"?e(t,n):e}function Xp(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function e1(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const p=Mt(n?.className,a,o?.className,r?.className),g={...n?.style,...o?.style,...r?.style},b={...n,...o,...r};return p.length>0&&(b.className=p),Object.keys(g).length>0&&(b.style=g),{props:b,internalRef:void 0}}const i=Nn({...o,...r}),s=Xp(r),l=Xp(o),c=t(i),d=Mt(c?.className,n?.className,a,o?.className,r?.className),u={...c?.style,...n?.style,...o?.style,...r?.style},h={...c,...n,...l,...s};return d.length>0&&(h.className=d),Object.keys(u).length>0&&(h.style=u),{props:h,internalRef:c.ref}}function fA(e){return typeof e=="string"}function t1(e,t,n){return e===void 0||fA(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function ju(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:i,shouldForwardComponentProp:s=!1,...l}=t,{component:c,slots:d={[e]:void 0},slotProps:u={[e]:void 0},...h}=a,p=d[e]||r,g=sr(u[e],o),{props:{component:b,...x},internalRef:E}=e1({className:n,...l,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:g}),v=hr(E,g?.ref,t.ref),C=e==="root"?b||c:b,I=t1(p,{...e==="root"&&!c&&!d[e]&&i,...e!=="root"&&!d[e]&&i,...x,...C&&!s&&{as:C},...C&&s&&{component:C},ref:v},o);return[p,I]}function mA(e){const{controlled:t,default:n}=e,{current:r}=D.useRef(t!==void 0),[o,a]=D.useState(n),i=r?t:o,s=D.useCallback(l=>{r||a(l)},[]);return[i,s]}function gA(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:c}=e,[d,u]=D.useState(!1),h=Mt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},g=Mt(n.child,d&&n.childLeaving,r&&n.childPulsate);return!s&&!d&&u(!0),D.useEffect(()=>{if(!s&&l!=null){const b=setTimeout(l,c);return()=>{clearTimeout(b)}}},[l,s,c]),f.jsx("span",{className:h,style:p,children:f.jsx("span",{className:g})})}const Rn=Jr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);function yA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xd(e,t){var n=function(o){return t&&O.isValidElement(o)?t(o):o},r=Object.create(null);return e&&O.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function bA(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),o=[];for(var a in e)a in t?o.length&&(r[a]=o,o=[]):o.push(a);var i,s={};for(var l in t){if(r[l])for(i=0;i<r[l].length;i++){var c=r[l][i];s[r[l][i]]=n(c)}s[l]=n(l)}for(i=0;i<o.length;i++)s[o[i]]=n(o[i]);return s}function go(e,t,n){return n[t]!=null?n[t]:e.props[t]}function EA(e,t){return Xd(e.children,function(n){return O.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:go(n,"appear",e),enter:go(n,"enter",e),exit:go(n,"exit",e)})})}function xA(e,t,n){var r=Xd(e.children),o=bA(t,r);return Object.keys(o).forEach(function(a){var i=o[a];if(O.isValidElement(i)){var s=a in t,l=a in r,c=t[a],d=O.isValidElement(c)&&!c.props.in;l&&(!s||d)?o[a]=O.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:go(i,"exit",e),enter:go(i,"enter",e)}):!l&&s&&!d?o[a]=O.cloneElement(i,{in:!1}):l&&s&&O.isValidElement(c)&&(o[a]=O.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:go(i,"exit",e),enter:go(i,"enter",e)}))}}),o}var TA=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},CA={component:"div",childFactory:function(e){return e}},Jd=function(e){Q0(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=a.handleExited.bind(yA(a));return a.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},a}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,o){var a=o.children,i=o.handleExited,s=o.firstRender;return{children:s?EA(r,i):xA(r,a,i),firstRender:!1}},n.handleExited=function(r,o){var a=Xd(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(o),this.mounted&&this.setState(function(i){var s=ne({},i.children);return delete s[r.key],{children:s}}))},n.render=function(){var r=this.props,o=r.component,a=r.childFactory,i=rn(r,["component","childFactory"]),s=this.state.contextValue,l=TA(this.state.children).map(a);return delete i.appear,delete i.enter,delete i.exit,o===null?O.createElement(fl.Provider,{value:s},l):O.createElement(fl.Provider,{value:s},O.createElement(o,i,l))},t}(O.Component);Jd.propTypes={};Jd.defaultProps=CA;const Hu=550,vA=80,SA=qe.keyframes`
30
30
  0% {
31
31
  transform: scale(0);
32
32
  opacity: 0.1;
@@ -99,18 +99,18 @@ export default theme;`}const Ax=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[
99
99
  animation-iteration-count: infinite;
100
100
  animation-delay: 200ms;
101
101
  }
102
- `,DA=D.forwardRef(function(e,t){const n=va({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a,...i}=n,[s,l]=D.useState([]),c=D.useRef(0),d=D.useRef(null);D.useEffect(()=>{d.current&&(d.current(),d.current=null)},[s]);const u=D.useRef(!1),h=Z0(),p=D.useRef(null),g=D.useRef(null),b=D.useCallback(C=>{const{pulsate:I,rippleX:N,rippleY:S,rippleSize:M,cb:q}=C;l(B=>[...B,f.jsx(_A,{classes:{ripple:Mt(o.ripple,Rn.ripple),rippleVisible:Mt(o.rippleVisible,Rn.rippleVisible),ripplePulsate:Mt(o.ripplePulsate,Rn.ripplePulsate),child:Mt(o.child,Rn.child),childLeaving:Mt(o.childLeaving,Rn.childLeaving),childPulsate:Mt(o.childPulsate,Rn.childPulsate)},timeout:Hu,pulsate:I,rippleX:N,rippleY:S,rippleSize:M},c.current)]),c.current+=1,d.current=q},[o]),x=D.useCallback((C={},I={},N=()=>{})=>{const{pulsate:S=!1,center:M=r||I.pulsate,fakeElement:q=!1}=I;if(C?.type==="mousedown"&&u.current){u.current=!1;return}C?.type==="touchstart"&&(u.current=!0);const B=q?null:g.current,y=B?B.getBoundingClientRect():{width:0,height:0,left:0,top:0};let R,F,$;if(M||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)R=Math.round(y.width/2),F=Math.round(y.height/2);else{const{clientX:U,clientY:Y}=C.touches&&C.touches.length>0?C.touches[0]:C;R=Math.round(U-y.left),F=Math.round(Y-y.top)}if(M)$=Math.sqrt((2*y.width**2+y.height**2)/3),$%2===0&&($+=1);else{const U=Math.max(Math.abs((B?B.clientWidth:0)-R),R)*2+2,Y=Math.max(Math.abs((B?B.clientHeight:0)-F),F)*2+2;$=Math.sqrt(U**2+Y**2)}C?.touches?p.current===null&&(p.current=()=>{b({pulsate:S,rippleX:R,rippleY:F,rippleSize:$,cb:N})},h.start(vA,()=>{p.current&&(p.current(),p.current=null)})):b({pulsate:S,rippleX:R,rippleY:F,rippleSize:$,cb:N})},[r,b,h]),E=D.useCallback(()=>{x({},{pulsate:!0})},[x]),v=D.useCallback((C,I)=>{if(h.clear(),C?.type==="touchend"&&p.current){p.current(),p.current=null,h.start(0,()=>{v(C,I)});return}p.current=null,l(N=>N.length>0?N.slice(1):N),d.current=I},[h]);return D.useImperativeHandle(t,()=>({pulsate:E,start:x,stop:v}),[E,x,v]),f.jsx(IA,{className:Mt(Rn.root,o.root,a),ref:g,...i,children:f.jsx(Jd,{component:null,exit:!0,children:s})})});function wA(e){return Xr("MuiButtonBase",e)}const NA=Jr("MuiButtonBase",["root","disabled","focusVisible"]);let PA=class Uu{constructor(){G(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Uu}static use(){const t=X0(Uu.create).current,[n,r]=D.useState(!1);return t.shouldMount=n,t.setShouldMount=r,D.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=LA(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}};function RA(){return PA.use()}function LA(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}const $A=typeof window<"u"?D.useLayoutEffect:D.useEffect;function ur(e){const t=D.useRef(e);return $A(()=>{t.current=e}),D.useRef((...n)=>(0,t.current)(...n)).current}function Jp(e){try{return e.matches(":focus-visible")}catch{}return!1}const OA=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=$o({root:["root",t&&"disabled",n&&"focusVisible"]},wA,o);return n&&r&&(a.root+=` ${r}`),a},MA=mt("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${NA.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),FA=D.forwardRef(function(e,t){const n=va({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:i,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:u=!1,focusVisibleClassName:h,LinkComponent:p="a",onBlur:g,onClick:b,onContextMenu:x,onDragLeave:E,onFocus:v,onFocusVisible:C,onKeyDown:I,onKeyUp:N,onMouseDown:S,onMouseLeave:M,onMouseUp:q,onTouchEnd:B,onTouchMove:y,onTouchStart:R,tabIndex:F=0,TouchRippleProps:$,touchRippleRef:U,type:Y,...re}=n,fe=D.useRef(null),ue=RA(),X=hr(ue.ref,U),[A,de]=D.useState(!1);l&&A&&de(!1),D.useImperativeHandle(r,()=>({focusVisible:()=>{de(!0),fe.current.focus()}}),[]);const ee=ue.shouldMount&&!c&&!l;D.useEffect(()=>{A&&u&&!c&&ue.pulsate()},[c,u,A,ue]);const k=Er(ue,"start",S,d),J=Er(ue,"stop",x,d),Ee=Er(ue,"stop",E,d),he=Er(ue,"stop",q,d),ye=Er(ue,"stop",ke=>{A&&ke.preventDefault(),M&&M(ke)},d),me=Er(ue,"start",R,d),Fe=Er(ue,"stop",B,d),Oe=Er(ue,"stop",y,d),Te=Er(ue,"stop",ke=>{Jp(ke.target)||de(!1),g&&g(ke)},!1),gt=ur(ke=>{fe.current||(fe.current=ke.currentTarget),Jp(ke.target)&&(de(!0),C&&C(ke)),v&&v(ke)}),Ze=()=>{const ke=fe.current;return s&&s!=="button"&&!(ke.tagName==="A"&&ke.href)},be=ur(ke=>{u&&!ke.repeat&&A&&ke.key===" "&&ue.stop(ke,()=>{ue.start(ke)}),ke.target===ke.currentTarget&&Ze()&&ke.key===" "&&ke.preventDefault(),I&&I(ke),ke.target===ke.currentTarget&&Ze()&&ke.key==="Enter"&&!l&&(ke.preventDefault(),b&&b(ke))}),Xt=ur(ke=>{u&&ke.key===" "&&A&&!ke.defaultPrevented&&ue.stop(ke,()=>{ue.pulsate(ke)}),N&&N(ke),b&&ke.target===ke.currentTarget&&Ze()&&ke.key===" "&&!ke.defaultPrevented&&b(ke)});let vt=s;vt==="button"&&(re.href||re.to)&&(vt=p);const De={};vt==="button"?(De.type=Y===void 0?"button":Y,De.disabled=l):(!re.href&&!re.to&&(De.role="button"),l&&(De["aria-disabled"]=l));const wt=hr(t,fe),yt={...n,centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:d,focusRipple:u,tabIndex:F,focusVisible:A},bt=OA(yt);return f.jsxs(MA,{as:vt,className:Mt(bt.root,i),ownerState:yt,onBlur:Te,onClick:b,onContextMenu:J,onFocus:gt,onKeyDown:be,onKeyUp:Xt,onMouseDown:k,onMouseLeave:ye,onMouseUp:he,onDragLeave:Ee,onTouchEnd:Fe,onTouchMove:Oe,onTouchStart:me,ref:wt,tabIndex:l?-1:F,type:Y,...De,...re,children:[a,ee?f.jsx(DA,{ref:X,center:o,...$}):null]})});function Er(e,t,n,r=!1){return ur(o=>(n&&n(o),r||e[t](o),!0))}const BA=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${Kn(o)}`],input:["input"]};return $o(a,pA,t)},jA=mt(FA,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),HA=mt("input",{name:"MuiSwitchBase",shouldForwardProp:Md})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),UA=D.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,defaultChecked:a,disabled:i,disableFocusRipple:s=!1,edge:l=!1,icon:c,id:d,inputProps:u,inputRef:h,name:p,onBlur:g,onChange:b,onFocus:x,readOnly:E,required:v=!1,tabIndex:C,type:I,value:N,slots:S={},slotProps:M={},...q}=e,[B,y]=mA({controlled:r,default:!!a}),R=hA(),F=J=>{x&&x(J),R&&R.onFocus&&R.onFocus(J)},$=J=>{g&&g(J),R&&R.onBlur&&R.onBlur(J)},U=J=>{if(J.nativeEvent.defaultPrevented)return;const Ee=J.target.checked;y(Ee),b&&b(J,Ee)};let Y=i;R&&typeof Y>"u"&&(Y=R.disabled);const re=I==="checkbox"||I==="radio",fe={...e,checked:B,disabled:Y,disableFocusRipple:s,edge:l},ue=BA(fe),X={slots:S,slotProps:{input:u,...M}},[A,de]=ju("root",{ref:t,elementType:jA,className:ue.root,shouldForwardComponentProp:!0,externalForwardedProps:{...X,component:"span",...q},getSlotProps:J=>({...J,onFocus:Ee=>{J.onFocus?.(Ee),F(Ee)},onBlur:Ee=>{J.onBlur?.(Ee),$(Ee)}}),ownerState:fe,additionalProps:{centerRipple:!0,focusRipple:!s,disabled:Y,role:void 0,tabIndex:null}}),[ee,k]=ju("input",{ref:h,elementType:HA,className:ue.input,externalForwardedProps:X,getSlotProps:J=>({...J,onChange:Ee=>{J.onChange?.(Ee),U(Ee)}}),ownerState:fe,additionalProps:{autoFocus:n,checked:r,defaultChecked:a,disabled:Y,id:re?d:void 0,name:p,readOnly:E,required:v,tabIndex:C,type:I,...I==="checkbox"&&N===void 0?{}:{value:N}}});return f.jsxs(A,{...de,children:[f.jsx(ee,{...k}),B?o:c]})}),zA=pt(f.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),GA=pt(f.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),qA=pt(f.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function WA(e){return Xr("MuiCheckbox",e)}const Mc=Jr("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);function VA(e){return typeof e.main=="string"}function YA(e,t=[]){if(!VA(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Zp(e=[]){return([,t])=>t&&YA(t,e)}function KA(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function QA(e,t){if(!e)return t;function n(i,s){const l={};return Object.keys(s).forEach(c=>{KA(c,s[c])&&typeof i[c]=="function"&&(l[c]=(...d)=>{i[c](...d),s[c](...d)})}),l}if(typeof e=="function"||typeof t=="function")return i=>{const s=typeof t=="function"?t(i):t,l=typeof e=="function"?e({...i,...s}):e,c=Mt(i?.className,s?.className,l?.className),d=n(l,s);return{...s,...l,...d,...!!c&&{className:c},...s?.style&&l?.style&&{style:{...s.style,...l.style}},...s?.sx&&l?.sx&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};const r=t,o=n(e,r),a=Mt(r?.className,e?.className);return{...t,...e,...o,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const XA=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${Kn(r)}`,`size${Kn(o)}`]},i=$o(a,WA,t);return{...t,...i}},JA=mt(UA,{shouldForwardProp:e=>Md(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Kn(n.size)}`],n.color!=="default"&&t[`color${Kn(n.color)}`]]}})(kd(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tu(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Zp()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tu(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Zp()).map(([t])=>({props:{color:t},style:{[`&.${Mc.checked}, &.${Mc.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Mc.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),ZA=f.jsx(GA,{}),e2=f.jsx(zA,{}),t2=f.jsx(qA,{}),n1=D.forwardRef(function(e,t){const n=va({props:e,name:"MuiCheckbox"}),{checkedIcon:r=ZA,color:o="primary",icon:a=e2,indeterminate:i=!1,indeterminateIcon:s=t2,inputProps:l,size:c="medium",disableRipple:d=!1,className:u,slots:h={},slotProps:p={},...g}=n,b=i?s:a,x=i?s:r,E={...n,disableRipple:d,color:o,indeterminate:i,size:c},v=XA(E),C=p.input??l,[I,N]=ju("root",{ref:t,elementType:JA,className:Mt(v.root,u),shouldForwardComponentProp:!0,externalForwardedProps:{slots:h,slotProps:p,...g},ownerState:E,additionalProps:{type:"checkbox",icon:D.cloneElement(b,{fontSize:b.props.fontSize??c}),checkedIcon:D.cloneElement(x,{fontSize:x.props.fontSize??c}),disableRipple:d,slots:h,slotProps:{input:QA(typeof C=="function"?C(E):C,{"data-indeterminate":i})}}});return f.jsx(I,{...N,classes:v})}),n2=["visible"],r2=mt("li",{name:"MuiTreeItem2",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),o2=mt("div",{name:"MuiTreeItem2",slot:"Content",overridesResolver:(e,t)=>t.content,shouldForwardProp:e=>Vr(e)&&e!=="status"&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}},{props:({status:t})=>t.disabled,style:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"}},{props:({status:t})=>t.focused,style:{backgroundColor:(e.vars||e).palette.action.focus}},{props:({status:t})=>t.selected,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:qe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:qe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:qe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},{props:({status:t})=>t.selected&&t.focused,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:qe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}]})),a2=mt("div",{name:"MuiTreeItem2",slot:"Label",overridesResolver:(e,t)=>t.label,shouldForwardProp:e=>Vr(e)&&e!=="editable"})(({theme:e})=>ne({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:t})=>t,style:{paddingLeft:"2px"}}]})),i2=mt("div",{name:"MuiTreeItem2",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}});mt(Ni,{name:"MuiTreeItem2",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Vr(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]});mt(D.forwardRef((e,t)=>{const{visible:n}=e,r=rn(e,n2);return n?f.jsx(n1,ne({},r,{ref:t})):null}),{name:"MuiTreeItem2",slot:"Checkbox",overridesResolver:(e,t)=>t.checkbox})({padding:0});function yo(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,i=o?{}:sr(n,r),{props:s,internalRef:l}=e1({...a,externalSlotProps:i}),c=hr(l,i?.ref,e.additionalProps?.ref);return t1(t,{...s,ref:c},r)}const r1=pt(f.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),o1=pt(f.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}));function s2(e){const{slots:t,slotProps:n,status:r}=e,o=Mo(),a=ne({},o.icons.slots,{expandIcon:o.icons.slots.expandIcon??r1,collapseIcon:o.icons.slots.collapseIcon??o1}),i=o.icons.slotProps;let s;t?.icon?s="icon":r.expandable?r.expanded?s="collapseIcon":s="expandIcon":s="endIcon";const l=t?.[s]??a[s],c=yo({elementType:l,externalSlotProps:d=>ne({},sr(i[s],d),sr(n?.[s],d)),ownerState:{}});return l?f.jsx(l,ne({},c)):null}function l2(e){return Xr("MuiRichTreeView",e)}Jr("MuiRichTreeView",["root"]);function c2(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Xs(t.components[n].defaultProps,r)}function u2(e){return Object.keys(e).length===0}function d2(e=null){const t=D.useContext(VE.ThemeContext);return!t||u2(t)?e:t}const h2=Ld();function p2(e=h2){return d2(e)}function f2({props:e,name:t,defaultTheme:n,themeId:r}){let o=p2(n);return o=o[r]||o,c2({theme:o,name:t,props:e})}function m2({props:e,name:t}){return f2({props:e,name:t,defaultTheme:$d,themeId:Od})}function a1(e){return m2}const g2=(e,t,n)=>{e.$$publishEvent(t,n)},la="__TREE_VIEW_ROOT_PARENT_ID__",y2=e=>{const t={};return e.forEach((n,r)=>{t[n]=r}),t},b2=["children"],i1=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{const o={},a={},i={[la]:[]},s=(c,d,u)=>{const h=r?r(c):c.id;if(h==null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(c)].join(`
102
+ `,DA=D.forwardRef(function(e,t){const n=va({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a,...i}=n,[s,l]=D.useState([]),c=D.useRef(0),d=D.useRef(null);D.useEffect(()=>{d.current&&(d.current(),d.current=null)},[s]);const u=D.useRef(!1),h=Z0(),p=D.useRef(null),g=D.useRef(null),b=D.useCallback(C=>{const{pulsate:I,rippleX:w,rippleY:S,rippleSize:M,cb:q}=C;l(B=>[...B,f.jsx(_A,{classes:{ripple:Mt(o.ripple,Rn.ripple),rippleVisible:Mt(o.rippleVisible,Rn.rippleVisible),ripplePulsate:Mt(o.ripplePulsate,Rn.ripplePulsate),child:Mt(o.child,Rn.child),childLeaving:Mt(o.childLeaving,Rn.childLeaving),childPulsate:Mt(o.childPulsate,Rn.childPulsate)},timeout:Hu,pulsate:I,rippleX:w,rippleY:S,rippleSize:M},c.current)]),c.current+=1,d.current=q},[o]),x=D.useCallback((C={},I={},w=()=>{})=>{const{pulsate:S=!1,center:M=r||I.pulsate,fakeElement:q=!1}=I;if(C?.type==="mousedown"&&u.current){u.current=!1;return}C?.type==="touchstart"&&(u.current=!0);const B=q?null:g.current,y=B?B.getBoundingClientRect():{width:0,height:0,left:0,top:0};let R,F,$;if(M||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)R=Math.round(y.width/2),F=Math.round(y.height/2);else{const{clientX:U,clientY:Y}=C.touches&&C.touches.length>0?C.touches[0]:C;R=Math.round(U-y.left),F=Math.round(Y-y.top)}if(M)$=Math.sqrt((2*y.width**2+y.height**2)/3),$%2===0&&($+=1);else{const U=Math.max(Math.abs((B?B.clientWidth:0)-R),R)*2+2,Y=Math.max(Math.abs((B?B.clientHeight:0)-F),F)*2+2;$=Math.sqrt(U**2+Y**2)}C?.touches?p.current===null&&(p.current=()=>{b({pulsate:S,rippleX:R,rippleY:F,rippleSize:$,cb:w})},h.start(vA,()=>{p.current&&(p.current(),p.current=null)})):b({pulsate:S,rippleX:R,rippleY:F,rippleSize:$,cb:w})},[r,b,h]),E=D.useCallback(()=>{x({},{pulsate:!0})},[x]),v=D.useCallback((C,I)=>{if(h.clear(),C?.type==="touchend"&&p.current){p.current(),p.current=null,h.start(0,()=>{v(C,I)});return}p.current=null,l(w=>w.length>0?w.slice(1):w),d.current=I},[h]);return D.useImperativeHandle(t,()=>({pulsate:E,start:x,stop:v}),[E,x,v]),f.jsx(IA,{className:Mt(Rn.root,o.root,a),ref:g,...i,children:f.jsx(Jd,{component:null,exit:!0,children:s})})});function wA(e){return Xr("MuiButtonBase",e)}const NA=Jr("MuiButtonBase",["root","disabled","focusVisible"]);let PA=class Uu{constructor(){G(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Uu}static use(){const t=X0(Uu.create).current,[n,r]=D.useState(!1);return t.shouldMount=n,t.setShouldMount=r,D.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=LA(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}};function RA(){return PA.use()}function LA(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}const $A=typeof window<"u"?D.useLayoutEffect:D.useEffect;function ur(e){const t=D.useRef(e);return $A(()=>{t.current=e}),D.useRef((...n)=>(0,t.current)(...n)).current}function Jp(e){try{return e.matches(":focus-visible")}catch{}return!1}const OA=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=$o({root:["root",t&&"disabled",n&&"focusVisible"]},wA,o);return n&&r&&(a.root+=` ${r}`),a},MA=mt("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${NA.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),FA=D.forwardRef(function(e,t){const n=va({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:i,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:u=!1,focusVisibleClassName:h,LinkComponent:p="a",onBlur:g,onClick:b,onContextMenu:x,onDragLeave:E,onFocus:v,onFocusVisible:C,onKeyDown:I,onKeyUp:w,onMouseDown:S,onMouseLeave:M,onMouseUp:q,onTouchEnd:B,onTouchMove:y,onTouchStart:R,tabIndex:F=0,TouchRippleProps:$,touchRippleRef:U,type:Y,...re}=n,fe=D.useRef(null),ue=RA(),X=hr(ue.ref,U),[A,de]=D.useState(!1);l&&A&&de(!1),D.useImperativeHandle(r,()=>({focusVisible:()=>{de(!0),fe.current.focus()}}),[]);const ee=ue.shouldMount&&!c&&!l;D.useEffect(()=>{A&&u&&!c&&ue.pulsate()},[c,u,A,ue]);const k=Er(ue,"start",S,d),J=Er(ue,"stop",x,d),Ee=Er(ue,"stop",E,d),he=Er(ue,"stop",q,d),ye=Er(ue,"stop",ke=>{A&&ke.preventDefault(),M&&M(ke)},d),me=Er(ue,"start",R,d),Fe=Er(ue,"stop",B,d),Oe=Er(ue,"stop",y,d),Te=Er(ue,"stop",ke=>{Jp(ke.target)||de(!1),g&&g(ke)},!1),gt=ur(ke=>{fe.current||(fe.current=ke.currentTarget),Jp(ke.target)&&(de(!0),C&&C(ke)),v&&v(ke)}),Ze=()=>{const ke=fe.current;return s&&s!=="button"&&!(ke.tagName==="A"&&ke.href)},be=ur(ke=>{u&&!ke.repeat&&A&&ke.key===" "&&ue.stop(ke,()=>{ue.start(ke)}),ke.target===ke.currentTarget&&Ze()&&ke.key===" "&&ke.preventDefault(),I&&I(ke),ke.target===ke.currentTarget&&Ze()&&ke.key==="Enter"&&!l&&(ke.preventDefault(),b&&b(ke))}),Xt=ur(ke=>{u&&ke.key===" "&&A&&!ke.defaultPrevented&&ue.stop(ke,()=>{ue.pulsate(ke)}),w&&w(ke),b&&ke.target===ke.currentTarget&&Ze()&&ke.key===" "&&!ke.defaultPrevented&&b(ke)});let vt=s;vt==="button"&&(re.href||re.to)&&(vt=p);const De={};vt==="button"?(De.type=Y===void 0?"button":Y,De.disabled=l):(!re.href&&!re.to&&(De.role="button"),l&&(De["aria-disabled"]=l));const wt=hr(t,fe),yt={...n,centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:d,focusRipple:u,tabIndex:F,focusVisible:A},bt=OA(yt);return f.jsxs(MA,{as:vt,className:Mt(bt.root,i),ownerState:yt,onBlur:Te,onClick:b,onContextMenu:J,onFocus:gt,onKeyDown:be,onKeyUp:Xt,onMouseDown:k,onMouseLeave:ye,onMouseUp:he,onDragLeave:Ee,onTouchEnd:Fe,onTouchMove:Oe,onTouchStart:me,ref:wt,tabIndex:l?-1:F,type:Y,...De,...re,children:[a,ee?f.jsx(DA,{ref:X,center:o,...$}):null]})});function Er(e,t,n,r=!1){return ur(o=>(n&&n(o),r||e[t](o),!0))}const BA=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${Kn(o)}`],input:["input"]};return $o(a,pA,t)},jA=mt(FA,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),HA=mt("input",{name:"MuiSwitchBase",shouldForwardProp:Md})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),UA=D.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,defaultChecked:a,disabled:i,disableFocusRipple:s=!1,edge:l=!1,icon:c,id:d,inputProps:u,inputRef:h,name:p,onBlur:g,onChange:b,onFocus:x,readOnly:E,required:v=!1,tabIndex:C,type:I,value:w,slots:S={},slotProps:M={},...q}=e,[B,y]=mA({controlled:r,default:!!a}),R=hA(),F=J=>{x&&x(J),R&&R.onFocus&&R.onFocus(J)},$=J=>{g&&g(J),R&&R.onBlur&&R.onBlur(J)},U=J=>{if(J.nativeEvent.defaultPrevented)return;const Ee=J.target.checked;y(Ee),b&&b(J,Ee)};let Y=i;R&&typeof Y>"u"&&(Y=R.disabled);const re=I==="checkbox"||I==="radio",fe={...e,checked:B,disabled:Y,disableFocusRipple:s,edge:l},ue=BA(fe),X={slots:S,slotProps:{input:u,...M}},[A,de]=ju("root",{ref:t,elementType:jA,className:ue.root,shouldForwardComponentProp:!0,externalForwardedProps:{...X,component:"span",...q},getSlotProps:J=>({...J,onFocus:Ee=>{J.onFocus?.(Ee),F(Ee)},onBlur:Ee=>{J.onBlur?.(Ee),$(Ee)}}),ownerState:fe,additionalProps:{centerRipple:!0,focusRipple:!s,disabled:Y,role:void 0,tabIndex:null}}),[ee,k]=ju("input",{ref:h,elementType:HA,className:ue.input,externalForwardedProps:X,getSlotProps:J=>({...J,onChange:Ee=>{J.onChange?.(Ee),U(Ee)}}),ownerState:fe,additionalProps:{autoFocus:n,checked:r,defaultChecked:a,disabled:Y,id:re?d:void 0,name:p,readOnly:E,required:v,tabIndex:C,type:I,...I==="checkbox"&&w===void 0?{}:{value:w}}});return f.jsxs(A,{...de,children:[f.jsx(ee,{...k}),B?o:c]})}),zA=pt(f.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),GA=pt(f.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),qA=pt(f.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function WA(e){return Xr("MuiCheckbox",e)}const Mc=Jr("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);function VA(e){return typeof e.main=="string"}function YA(e,t=[]){if(!VA(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Zp(e=[]){return([,t])=>t&&YA(t,e)}function KA(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function QA(e,t){if(!e)return t;function n(i,s){const l={};return Object.keys(s).forEach(c=>{KA(c,s[c])&&typeof i[c]=="function"&&(l[c]=(...d)=>{i[c](...d),s[c](...d)})}),l}if(typeof e=="function"||typeof t=="function")return i=>{const s=typeof t=="function"?t(i):t,l=typeof e=="function"?e({...i,...s}):e,c=Mt(i?.className,s?.className,l?.className),d=n(l,s);return{...s,...l,...d,...!!c&&{className:c},...s?.style&&l?.style&&{style:{...s.style,...l.style}},...s?.sx&&l?.sx&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};const r=t,o=n(e,r),a=Mt(r?.className,e?.className);return{...t,...e,...o,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const XA=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${Kn(r)}`,`size${Kn(o)}`]},i=$o(a,WA,t);return{...t,...i}},JA=mt(UA,{shouldForwardProp:e=>Md(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Kn(n.size)}`],n.color!=="default"&&t[`color${Kn(n.color)}`]]}})(kd(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tu(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Zp()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tu(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Zp()).map(([t])=>({props:{color:t},style:{[`&.${Mc.checked}, &.${Mc.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Mc.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),ZA=f.jsx(GA,{}),e2=f.jsx(zA,{}),t2=f.jsx(qA,{}),n1=D.forwardRef(function(e,t){const n=va({props:e,name:"MuiCheckbox"}),{checkedIcon:r=ZA,color:o="primary",icon:a=e2,indeterminate:i=!1,indeterminateIcon:s=t2,inputProps:l,size:c="medium",disableRipple:d=!1,className:u,slots:h={},slotProps:p={},...g}=n,b=i?s:a,x=i?s:r,E={...n,disableRipple:d,color:o,indeterminate:i,size:c},v=XA(E),C=p.input??l,[I,w]=ju("root",{ref:t,elementType:JA,className:Mt(v.root,u),shouldForwardComponentProp:!0,externalForwardedProps:{slots:h,slotProps:p,...g},ownerState:E,additionalProps:{type:"checkbox",icon:D.cloneElement(b,{fontSize:b.props.fontSize??c}),checkedIcon:D.cloneElement(x,{fontSize:x.props.fontSize??c}),disableRipple:d,slots:h,slotProps:{input:QA(typeof C=="function"?C(E):C,{"data-indeterminate":i})}}});return f.jsx(I,{...w,classes:v})}),n2=["visible"],r2=mt("li",{name:"MuiTreeItem2",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),o2=mt("div",{name:"MuiTreeItem2",slot:"Content",overridesResolver:(e,t)=>t.content,shouldForwardProp:e=>Vr(e)&&e!=="status"&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}},{props:({status:t})=>t.disabled,style:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"}},{props:({status:t})=>t.focused,style:{backgroundColor:(e.vars||e).palette.action.focus}},{props:({status:t})=>t.selected,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:qe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:qe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:qe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},{props:({status:t})=>t.selected&&t.focused,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:qe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}]})),a2=mt("div",{name:"MuiTreeItem2",slot:"Label",overridesResolver:(e,t)=>t.label,shouldForwardProp:e=>Vr(e)&&e!=="editable"})(({theme:e})=>ne({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:t})=>t,style:{paddingLeft:"2px"}}]})),i2=mt("div",{name:"MuiTreeItem2",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}});mt(Ni,{name:"MuiTreeItem2",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Vr(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]});mt(D.forwardRef((e,t)=>{const{visible:n}=e,r=rn(e,n2);return n?f.jsx(n1,ne({},r,{ref:t})):null}),{name:"MuiTreeItem2",slot:"Checkbox",overridesResolver:(e,t)=>t.checkbox})({padding:0});function yo(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,i=o?{}:sr(n,r),{props:s,internalRef:l}=e1({...a,externalSlotProps:i}),c=hr(l,i?.ref,e.additionalProps?.ref);return t1(t,{...s,ref:c},r)}const r1=pt(f.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),o1=pt(f.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}));function s2(e){const{slots:t,slotProps:n,status:r}=e,o=Mo(),a=ne({},o.icons.slots,{expandIcon:o.icons.slots.expandIcon??r1,collapseIcon:o.icons.slots.collapseIcon??o1}),i=o.icons.slotProps;let s;t?.icon?s="icon":r.expandable?r.expanded?s="collapseIcon":s="expandIcon":s="endIcon";const l=t?.[s]??a[s],c=yo({elementType:l,externalSlotProps:d=>ne({},sr(i[s],d),sr(n?.[s],d)),ownerState:{}});return l?f.jsx(l,ne({},c)):null}function l2(e){return Xr("MuiRichTreeView",e)}Jr("MuiRichTreeView",["root"]);function c2(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Xs(t.components[n].defaultProps,r)}function u2(e){return Object.keys(e).length===0}function d2(e=null){const t=D.useContext(VE.ThemeContext);return!t||u2(t)?e:t}const h2=Ld();function p2(e=h2){return d2(e)}function f2({props:e,name:t,defaultTheme:n,themeId:r}){let o=p2(n);return o=o[r]||o,c2({theme:o,name:t,props:e})}function m2({props:e,name:t}){return f2({props:e,name:t,defaultTheme:$d,themeId:Od})}function a1(e){return m2}const g2=(e,t,n)=>{e.$$publishEvent(t,n)},la="__TREE_VIEW_ROOT_PARENT_ID__",y2=e=>{const t={};return e.forEach((n,r)=>{t[n]=r}),t},b2=["children"],i1=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{const o={},a={},i={[la]:[]},s=(c,d,u)=>{const h=r?r(c):c.id;if(h==null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(c)].join(`
103
103
  `));if(o[h]!=null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${h}"`].join(`
104
104
  `));const p=n?n(c):c.label;if(p==null)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.","An item was provided without label in the `items` prop:",JSON.stringify(c)].join(`
105
- `));o[h]={id:h,label:p,parentId:u,idAttribute:void 0,expandable:!!c.children?.length,disabled:t?t(c):!1,depth:d},a[h]=c;const g=u??la;i[g]||(i[g]=[]),i[g].push(h),c.children?.forEach(b=>s(b,d+1,h))};e.forEach(c=>s(c,0,null));const l={};return Object.keys(i).forEach(c=>{l[c]=y2(i[c])}),{itemMetaMap:o,itemMap:a,itemOrderedChildrenIds:i,itemChildrenIndexes:l}},Vi=({instance:e,params:t,state:n,setState:r,experimentalFeatures:o})=>{const a=D.useCallback(x=>n.items.itemMetaMap[x],[n.items.itemMetaMap]),i=D.useCallback(x=>n.items.itemMap[x],[n.items.itemMap]),s=D.useCallback(()=>{const x=E=>{const v=n.items.itemMap[E],C=rn(v,b2),I=n.items.itemOrderedChildrenIds[E];return I&&(C.children=I.map(x)),C};return n.items.itemOrderedChildrenIds[la].map(x)},[n.items.itemMap,n.items.itemOrderedChildrenIds]),l=D.useCallback(x=>{if(x==null)return!1;let E=e.getItemMeta(x);if(!E)return!1;if(E.disabled)return!0;for(;E.parentId!=null;)if(E=e.getItemMeta(E.parentId),E.disabled)return!0;return!1},[e]),c=D.useCallback(x=>{const E=e.getItemMeta(x).parentId??la;return n.items.itemChildrenIndexes[E][x]},[e,n.items.itemChildrenIndexes]),d=D.useCallback(x=>n.items.itemOrderedChildrenIds[x??la]??[],[n.items.itemOrderedChildrenIds]),u=x=>{const E=e.getItemMeta(x);return E==null?null:document.getElementById(Yd({treeId:n.id.treeId,itemId:x,id:E.idAttribute}))},h=x=>t.disabledItemsFocusable?!0:!e.isItemDisabled(x),p=D.useRef(!1),g=D.useCallback(()=>{p.current=!0},[]),b=D.useCallback(()=>p.current,[]);return D.useEffect(()=>{e.areItemUpdatesPrevented()||r(x=>{const E=i1({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(x.items.itemMetaMap).forEach(v=>{E.itemMetaMap[v.id]||g2(e,"removeItem",{id:v.id})}),ne({},x,{items:E})})},[e,r,t.items,t.isItemDisabled,t.getItemId,t.getItemLabel]),{getRootProps:()=>({style:{"--TreeView-itemChildrenIndentation":typeof t.itemChildrenIndentation=="number"?`${t.itemChildrenIndentation}px`:t.itemChildrenIndentation}}),publicAPI:{getItem:i,getItemDOMElement:u,getItemTree:s,getItemOrderedChildrenIds:d},instance:{getItemMeta:a,getItem:i,getItemTree:s,getItemsToRender:()=>{const x=E=>{const v=n.items.itemMetaMap[E];return{label:v.label,itemId:v.id,id:v.idAttribute,children:n.items.itemOrderedChildrenIds[E]?.map(x)}};return n.items.itemOrderedChildrenIds[la].map(x)},getItemIndex:c,getItemDOMElement:u,getItemOrderedChildrenIds:d,isItemDisabled:l,isItemNavigable:h,preventItemUpdates:g,areItemUpdatesPrevented:b},contextValue:{items:{onItemClick:t.onItemClick,disabledItemsFocusable:t.disabledItemsFocusable,indentationAtItemLevel:o.indentationAtItemLevel??!1}}}};Vi.getInitialState=e=>({items:i1({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});Vi.getDefaultizedParams=({params:e})=>ne({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"});Vi.wrapRoot=({children:e,instance:t})=>f.jsx(Kd.Provider,{value:n=>t.getItemMeta(n)?.depth??0,children:e});Vi.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};const Ql=({instance:e,params:t,models:n})=>{const r=D.useMemo(()=>{const u=new Map;return n.expandedItems.value.forEach(h=>{u.set(h,!0)}),u},[n.expandedItems.value]),o=(u,h)=>{t.onExpandedItemsChange?.(u,h),n.expandedItems.setControlledValue(h)},a=D.useCallback(u=>r.has(u),[r]),i=D.useCallback(u=>!!e.getItemMeta(u)?.expandable,[e]),s=ur((u,h)=>{const p=e.isItemExpanded(h);e.setItemExpansion(u,h,!p)}),l=ur((u,h,p)=>{if(e.isItemExpanded(h)===p)return;let g;p?g=[h].concat(n.expandedItems.value):g=n.expandedItems.value.filter(b=>b!==h),t.onItemExpansionToggle&&t.onItemExpansionToggle(u,h,p),o(u,g)}),c=(u,h)=>{const p=e.getItemMeta(h),g=e.getItemOrderedChildrenIds(p.parentId).filter(x=>e.isItemExpandable(x)&&!e.isItemExpanded(x)),b=n.expandedItems.value.concat(g);g.length>0&&(t.onItemExpansionToggle&&g.forEach(x=>{t.onItemExpansionToggle(u,x,!0)}),o(u,b))},d=D.useMemo(()=>t.expansionTrigger?t.expansionTrigger:e.isTreeViewEditable?"iconContainer":"content",[t.expansionTrigger,e.isTreeViewEditable]);return{publicAPI:{setItemExpansion:l},instance:{isItemExpanded:a,isItemExpandable:i,setItemExpansion:l,toggleItemExpansion:s,expandAllSiblings:c},contextValue:{expansion:{expansionTrigger:d}}}};Ql.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const E2=[];Ql.getDefaultizedParams=({params:e})=>ne({},e,{defaultExpandedItems:e.defaultExpandedItems??E2});Ql.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const $s=e=>Array.isArray(e)?e:e!=null?[e]:[],Fc=e=>{const t={};return e.forEach(n=>{t[n]=!0}),t},Xl=({instance:e,params:t,models:n})=>{const r=D.useRef(null),o=D.useRef({}),a=D.useMemo(()=>{const d=new Map;return Array.isArray(n.selectedItems.value)?n.selectedItems.value.forEach(u=>{d.set(u,!0)}):n.selectedItems.value!=null&&d.set(n.selectedItems.value,!0),d},[n.selectedItems.value]),i=(d,u)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const h=u.filter(g=>!e.isItemSelected(g)),p=n.selectedItems.value.filter(g=>!u.includes(g));h.forEach(g=>{t.onItemSelectionToggle(d,g,!0)}),p.forEach(g=>{t.onItemSelectionToggle(d,g,!1)})}else u!==n.selectedItems.value&&(n.selectedItems.value!=null&&t.onItemSelectionToggle(d,n.selectedItems.value,!1),u!=null&&t.onItemSelectionToggle(d,u,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(d,u),n.selectedItems.setControlledValue(u)},s=d=>a.has(d),l=({event:d,itemId:u,keepExistingSelection:h=!1,shouldBeSelected:p})=>{if(t.disableSelection)return;let g;if(h){const b=$s(n.selectedItems.value),x=e.isItemSelected(u);x&&(p===!1||p==null)?g=b.filter(E=>E!==u):!x&&(p===!0||p==null)?g=[u].concat(b):g=b}else p===!1||p==null&&e.isItemSelected(u)?g=t.multiSelect?[]:null:g=t.multiSelect?[u]:u;i(d,g),r.current=u,o.current={}},c=(d,[u,h])=>{if(t.disableSelection||!t.multiSelect)return;let p=$s(n.selectedItems.value).slice();Object.keys(o.current).length>0&&(p=p.filter(E=>!o.current[E]));const g=Fc(p),b=jk(e,u,h),x=b.filter(E=>!g[E]);p=p.concat(x),i(d,p),o.current=Fc(b)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{selectItem:l},instance:{isItemSelected:s,selectItem:l,selectAllNavigableItems:d=>{if(t.disableSelection||!t.multiSelect)return;const u=Hk(e);i(d,u),o.current=Fc(u)},expandSelectionRange:(d,u)=>{if(r.current!=null){const[h,p]=V0(e,u,r.current);c(d,[h,p])}},selectRangeFromStartToItem:(d,u)=>{c(d,[Di(e),u])},selectRangeFromItemToEnd:(d,u)=>{c(d,[u,W0(e)])},selectItemFromArrowNavigation:(d,u,h)=>{if(t.disableSelection||!t.multiSelect)return;let p=$s(n.selectedItems.value).slice();Object.keys(o.current).length===0?(p.push(h),o.current={[u]:!0,[h]:!0}):(o.current[u]||(o.current={}),o.current[h]?(p=p.filter(g=>g!==u),delete o.current[u]):(p.push(h),o.current[h]=!0)),i(d,p)}},contextValue:{selection:{multiSelect:t.multiSelect,checkboxSelection:t.checkboxSelection,disableSelection:t.disableSelection}}}};Xl.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const x2=[];Xl.getDefaultizedParams=({params:e})=>ne({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?x2:null)});Xl.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};let T2=class{constructor(t=1e3){this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}},C2=class{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}},v2=class{};function S2(e){let t=0;return function(n,r,o){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new C2:new T2);const[a]=D.useState(new v2),i=D.useRef(null),s=D.useRef(void 0);s.current=o;const l=D.useRef(null);if(!i.current&&s.current){const c=(d,u)=>{u.defaultMuiPrevented||s.current?.(d,u)};i.current=n.$$subscribeEvent(r,c),t+=1,l.current={cleanupToken:t},e.registry.register(a,()=>{i.current?.(),i.current=null,l.current=null},l.current)}else!s.current&&i.current&&(i.current(),i.current=null,l.current&&(e.registry.unregister(l.current),l.current=null));D.useEffect(()=>{if(!i.current&&s.current){const c=(d,u)=>{u.defaultMuiPrevented||s.current?.(d,u)};i.current=n.$$subscribeEvent(r,c)}return l.current&&e.registry&&(e.registry.unregister(l.current),l.current=null),()=>{i.current?.(),i.current=null}},[n,r])}}const k2={registry:null},A2=S2(k2),s1=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?s1(t.shadowRoot):t:null};function I2(e){return e&&e.ownerDocument||document}const _2=(e,t)=>{let n=$s(t).find(r=>{if(!e.isItemNavigable(r))return!1;const o=e.getItemMeta(r);return o&&(o.parentId==null||e.isItemExpanded(o.parentId))});return n==null&&(n=Di(e)),n},Zd=({instance:e,params:t,state:n,setState:r,models:o,rootRef:a})=>{const i=_2(e,o.selectedItems.value),s=ur(x=>{const E=typeof x=="function"?x(n.focusedItemId):x;n.focusedItemId!==E&&r(v=>ne({},v,{focusedItemId:E}))}),l=D.useCallback(()=>!!a.current&&a.current.contains(s1(I2(a.current))),[a]),c=D.useCallback(x=>n.focusedItemId===x&&l(),[n.focusedItemId,l]),d=x=>{const E=e.getItemMeta(x);return E&&(E.parentId==null||e.isItemExpanded(E.parentId))},u=(x,E)=>{const v=e.getItemDOMElement(E);v&&v.focus(),s(E),t.onItemFocus&&t.onItemFocus(x,E)},h=ur((x,E)=>{d(E)&&u(x,E)}),p=ur(()=>{if(n.focusedItemId!=null){if(e.getItemMeta(n.focusedItemId)){const x=e.getItemDOMElement(n.focusedItemId);x&&x.blur()}s(null)}}),g=x=>x===i;A2(e,"removeItem",({id:x})=>{n.focusedItemId===x&&u(null,i)});const b=x=>E=>{x.onFocus?.(E),!E.defaultMuiPrevented&&E.target===E.currentTarget&&u(E,i)};return{getRootProps:x=>({onFocus:b(x)}),publicAPI:{focusItem:h},instance:{isItemFocused:c,canItemBeTabbed:g,focusItem:h,removeFocusedItem:p}}};Zd.getInitialState=()=>({focusedItemId:null});Zd.params={onItemFocus:!0};const D2=D.createContext(),w2=()=>D.useContext(D2)??!1;function N2(e){return!!e&&e.length===1&&!!e.match(/\S/)}const l1=({instance:e,params:t,state:n})=>{const r=w2(),o=D.useRef({}),a=ur(c=>{o.current=c(o.current)});D.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const c={},d=u=>{c[u.id]=u.label.substring(0,1).toLowerCase()};Object.values(n.items.itemMetaMap).forEach(d),o.current=c},[n.items.itemMetaMap,t.getItemId,e]);const i=(c,d)=>{const u=d.toLowerCase(),h=x=>{const E=Ls(e,x);return E===null?Di(e):E};let p=null,g=h(c);const b={};for(;p==null&&!b[g];)o.current[g]===u?p=g:(b[g]=!0,g=h(g));return p},s=c=>!t.disableSelection&&!e.isItemDisabled(c),l=c=>!e.isItemDisabled(c)&&e.isItemExpandable(c);return{instance:{updateFirstCharMap:a,handleItemKeyDown:(c,d)=>{if(c.defaultMuiPrevented||c.altKey||wi(c.target,c.currentTarget))return;const u=c.ctrlKey||c.metaKey,h=c.key;switch(!0){case(h===" "&&s(d)):{c.preventDefault(),t.multiSelect&&c.shiftKey?e.expandSelectionRange(c,d):e.selectItem({event:c,itemId:d,keepExistingSelection:t.multiSelect,shouldBeSelected:t.multiSelect?void 0:!0});break}case h==="Enter":{vo(e,jn)&&e.isItemEditable(d)&&!e.isItemBeingEdited(d)?e.setEditedItemId(d):l(d)?(e.toggleItemExpansion(c,d),c.preventDefault()):s(d)&&(t.multiSelect?(c.preventDefault(),e.selectItem({event:c,itemId:d,keepExistingSelection:!0})):e.isItemSelected(d)||(e.selectItem({event:c,itemId:d}),c.preventDefault()));break}case h==="ArrowDown":{const p=Ls(e,d);p&&(c.preventDefault(),e.focusItem(c,p),t.multiSelect&&c.shiftKey&&s(p)&&e.selectItemFromArrowNavigation(c,d,p));break}case h==="ArrowUp":{const p=q0(e,d);p&&(c.preventDefault(),e.focusItem(c,p),t.multiSelect&&c.shiftKey&&s(p)&&e.selectItemFromArrowNavigation(c,d,p));break}case(h==="ArrowRight"&&!r||h==="ArrowLeft"&&r):{if(u)return;if(e.isItemExpanded(d)){const p=Ls(e,d);p&&(e.focusItem(c,p),c.preventDefault())}else l(d)&&(e.toggleItemExpansion(c,d),c.preventDefault());break}case(h==="ArrowLeft"&&!r||h==="ArrowRight"&&r):{if(u)return;if(l(d)&&e.isItemExpanded(d))e.toggleItemExpansion(c,d),c.preventDefault();else{const p=e.getItemMeta(d).parentId;p&&(e.focusItem(c,p),c.preventDefault())}break}case h==="Home":{s(d)&&t.multiSelect&&u&&c.shiftKey?e.selectRangeFromStartToItem(c,d):e.focusItem(c,Di(e)),c.preventDefault();break}case h==="End":{s(d)&&t.multiSelect&&u&&c.shiftKey?e.selectRangeFromItemToEnd(c,d):e.focusItem(c,W0(e)),c.preventDefault();break}case h==="*":{e.expandAllSiblings(c,d),c.preventDefault();break}case(String.fromCharCode(c.keyCode)==="A"&&u&&t.multiSelect&&!t.disableSelection):{e.selectAllNavigableItems(c),c.preventDefault();break}case(!u&&!c.shiftKey&&N2(h)):{const p=i(d,h);p!=null&&(e.focusItem(c,p),c.preventDefault());break}}}}}};l1.params={};const c1=({slots:e,slotProps:t})=>({contextValue:{icons:{slots:{collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,endIcon:e.endIcon},slotProps:{collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,endIcon:t.endIcon}}}});c1.params={};const P2=[Vi,Ql,Xl,Zd,l1,c1,jn];function u1(e){const{instance:t,items:{onItemClick:n},selection:{multiSelect:r,checkboxSelection:o,disableSelection:a},expansion:{expansionTrigger:i}}=Mo(),s=t.isItemExpandable(e),l=t.isItemExpanded(e),c=t.isItemFocused(e),d=t.isItemSelected(e),u=t.isItemDisabled(e),h=t?.isItemBeingEdited?t?.isItemBeingEdited(e):!1,p=t.isItemEditable?t.isItemEditable(e):!1,g=C=>{if(!u){c||t.focusItem(C,e);const I=r&&(C.shiftKey||C.ctrlKey||C.metaKey);s&&!(I&&t.isItemExpanded(e))&&t.toggleItemExpansion(C,e)}},b=C=>{u||(!c&&!h&&t.focusItem(C,e),r&&(C.shiftKey||C.ctrlKey||C.metaKey)?C.shiftKey?t.expandSelectionRange(C,e):t.selectItem({event:C,itemId:e,keepExistingSelection:!0}):t.selectItem({event:C,itemId:e,shouldBeSelected:!0}))},x=C=>{if(a||u)return;const I=C.nativeEvent.shiftKey;r&&I?t.expandSelectionRange(C,e):t.selectItem({event:C,itemId:e,keepExistingSelection:r,shouldBeSelected:C.target.checked})},E=C=>{(C.shiftKey||C.ctrlKey||C.metaKey||u)&&C.preventDefault()},v=()=>{vo(t,jn)&&t.isItemEditable(e)&&(t.isItemBeingEdited(e)?t.setEditedItemId(null):t.setEditedItemId(e))};return{disabled:u,expanded:l,selected:d,focused:c,editable:p,editing:h,disableSelection:a,checkboxSelection:o,handleExpansion:g,handleSelection:b,handleCheckboxSelection:x,handleContentClick:n,preventSelection:E,expansionTrigger:i,toggleItemEditing:v,handleSaveItemLabel:(C,I)=>{vo(t,jn)&&t.isItemBeingEditedRef(e)&&(t.updateItemLabel(e,I),v(),t.focusItem(C,e))},handleCancelItemLabelEditing:C=>{vo(t,jn)&&t.isItemBeingEditedRef(e)&&(v(),t.focusItem(C,e))}}}const R2=mt("input",{name:"MuiTreeItem2",slot:"LabelInput",overridesResolver:(e,t)=>t.labelInput})(({theme:e})=>ne({},e.typography.body1,{width:"100%",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${e.palette.primary.main}`}})),L2=mt("div",{name:"MuiTreeItem2DragAndDropOverlay",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>qe.shouldForwardProp(e)&&e!=="action"})(({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})`:qe.alpha(e.palette.primary.dark,e.palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]}));function $2(e){return e.action==null?null:f.jsx(L2,ne({},e))}const O2=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown","dragAndDropOverlayProps","labelInputProps"],d1=D.forwardRef(function(e,t){const{classes:n,className:r,displayIcon:o,expansionIcon:a,icon:i,label:s,itemId:l,onClick:c,onMouseDown:d,dragAndDropOverlayProps:u,labelInputProps:h}=e,p=rn(e,O2),{disabled:g,expanded:b,selected:x,focused:E,editing:v,editable:C,disableSelection:I,checkboxSelection:N,handleExpansion:S,handleSelection:M,handleCheckboxSelection:q,handleContentClick:B,preventSelection:y,expansionTrigger:R,toggleItemEditing:F}=u1(l),$=i||a||o,U=D.useRef(null),Y=ue=>{y(ue),d&&d(ue)},re=ue=>{B?.(ue,l),!U.current?.contains(ue.target)&&(R==="content"&&S(ue),N||M(ue),c&&c(ue))},fe=ue=>{ue.defaultMuiPrevented||F()};return f.jsxs("div",ne({},p,{className:Mt(n.root,r,b&&n.expanded,x&&n.selected,E&&n.focused,g&&n.disabled,v&&n.editing,C&&n.editable),onClick:re,onMouseDown:Y,ref:t,children:[f.jsx("div",{className:n.iconContainer,children:$}),N&&f.jsx(n1,{className:n.checkbox,checked:x,onChange:q,disabled:g||I,ref:U,tabIndex:-1}),v?f.jsx(R2,ne({},h,{className:n.labelInput})):f.jsx("div",ne({className:n.label},C&&{onDoubleClick:fe},{children:s})),u&&f.jsx($2,ne({},u))]}))});function M2(e){return Xr("MuiTreeItem",e)}const xr=Jr("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label","checkbox","labelInput","editable","editing","dragAndDropOverlay"]),F2=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],B2=["ownerState"],j2=["ownerState"],H2=["ownerState"],U2=a1(),z2=e=>{const{classes:t}=e;return $o({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],labelInput:["labelInput"],editing:["editing"],editable:["editable"],groupTransition:["groupTransition"]},M2,t)},G2=mt("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),q2=mt(d1,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${xr.iconContainer}`]:t.iconContainer},t.label&&{[`& .${xr.label}`]:t.label}],shouldForwardProp:e=>Vr(e)&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${xr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${xr.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${xr.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:qe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:qe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:qe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${xr.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:qe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${xr.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${xr.label}`]:ne({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1),[`& .${xr.checkbox}`]:{padding:0},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}}]})),W2=mt(Ni,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Vr(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]}),V2=D.forwardRef(function(e,t){const{icons:n,runItemPlugins:r,items:{disabledItemsFocusable:o,indentationAtItemLevel:a},selection:{disableSelection:i},expansion:{expansionTrigger:s},treeId:l,instance:c}=Mo(),d=D.useContext(Kd),u=U2({props:e,name:"MuiTreeItem"}),{children:h,className:p,slots:g,slotProps:b,ContentComponent:x=d1,ContentProps:E,itemId:v,id:C,label:I,onClick:N,onMouseDown:S,onBlur:M,onKeyDown:q}=u,B=rn(u,F2),{expanded:y,focused:R,selected:F,disabled:$,editing:U,handleExpansion:Y,handleCancelItemLabelEditing:re,handleSaveItemLabel:fe}=u1(v),{contentRef:ue,rootRef:X,propsEnhancers:A}=r(u),de=D.useRef(null),ee=D.useRef(null),k=hr(t,X,de),J=hr(E?.ref,ue,ee),Ee={expandIcon:g?.expandIcon??n.slots.expandIcon??r1,collapseIcon:g?.collapseIcon??n.slots.collapseIcon??o1,endIcon:g?.endIcon??n.slots.endIcon,icon:g?.icon,groupTransition:g?.groupTransition},he=te=>Array.isArray(te)?te.length>0&&te.some(he):!!te,ye=he(h),me=ne({},u,{expanded:y,focused:R,selected:F,disabled:$,indentationAtItemLevel:a}),Fe=z2(me),Oe=Ee.groupTransition??void 0,Te=yo({elementType:Oe,ownerState:{},externalSlotProps:b?.groupTransition,additionalProps:ne({unmountOnExit:!0,in:y,component:"ul",role:"group"},a?{indentationAtItemLevel:!0}:{}),className:Fe.groupTransition}),gt=te=>{s==="iconContainer"&&Y(te)},Ze=y?Ee.collapseIcon:Ee.expandIcon,be=yo({elementType:Ze,ownerState:{},externalSlotProps:te=>y?ne({},sr(n.slotProps.collapseIcon,te),sr(b?.collapseIcon,te)):ne({},sr(n.slotProps.expandIcon,te),sr(b?.expandIcon,te)),additionalProps:{onClick:gt}}),Xt=rn(be,B2),vt=ye&&Ze?f.jsx(Ze,ne({},Xt)):null,De=ye?void 0:Ee.endIcon,wt=yo({elementType:De,ownerState:{},externalSlotProps:te=>ye?{}:ne({},sr(n.slotProps.endIcon,te),sr(b?.endIcon,te))}),yt=rn(wt,j2),bt=De?f.jsx(De,ne({},yt)):null,ke=Ee.icon,ge=yo({elementType:ke,ownerState:{},externalSlotProps:b?.icon}),Wn=rn(ge,H2),Or=ke?f.jsx(ke,ne({},Wn)):null;let Ve;F?Ve=!0:i||$?Ve=void 0:Ve=!1;function V(te){!R&&(!$||o)&&te.currentTarget===te.target&&c.focusItem(te,v)}function oe(te){M?.(te),!(U||te.relatedTarget&&wi(te.relatedTarget,de.current)&&(te.target&&te.target?.dataset?.element==="labelInput"&&wi(te.target,de.current)||te.relatedTarget?.dataset?.element==="labelInput"))&&c.removeFocusedItem()}const Ae=te=>{q?.(te),te.target?.dataset?.element!=="labelInput"&&c.handleItemKeyDown(te,v)},Ue=Yd({itemId:v,treeId:l,id:C}),We=c.canItemBeTabbed(v)?0:-1,et={rootRefObject:de,contentRefObject:ee,interactions:{handleSaveItemLabel:fe,handleCancelItemLabelEditing:re}},Jt=A.root?.(ne({},et,{externalEventHandlers:Nn(B)}))??{},Kt=A.content?.(ne({},et,{externalEventHandlers:Nn(E)}))??{},Zt=A.dragAndDropOverlay?.(ne({},et,{externalEventHandlers:{}}))??{},ie=A.labelInput?.(ne({},et,{externalEventHandlers:{}}))??{};return f.jsx(Qd,{itemId:v,children:f.jsxs(G2,ne({className:Mt(Fe.root,p),role:"treeitem","aria-expanded":ye?y:void 0,"aria-selected":Ve,"aria-disabled":$||void 0,id:Ue,tabIndex:We},B,{ownerState:me,onFocus:V,onBlur:oe,onKeyDown:Ae,ref:k,style:a?ne({},B.style,{"--TreeView-itemDepth":typeof d=="function"?d(v):d}):B.style},Jt,{children:[f.jsx(q2,ne({as:x,classes:{root:Fe.content,expanded:Fe.expanded,selected:Fe.selected,focused:Fe.focused,disabled:Fe.disabled,editable:Fe.editable,editing:Fe.editing,iconContainer:Fe.iconContainer,label:Fe.label,labelInput:Fe.labelInput,checkbox:Fe.checkbox},label:I,itemId:v,onClick:N,onMouseDown:S,icon:Or,expansionIcon:vt,displayIcon:bt,ownerState:me},E,Kt,Zt.action==null?{}:{dragAndDropOverlayProps:Zt},ie.value==null?{}:{labelInputProps:ie},{ref:J})),h&&f.jsx(W2,ne({as:Oe},Te,{children:h}))]}))})}),Y2=["ownerState"];function K2({slots:e,slotProps:t,label:n,id:r,itemId:o,itemsToRender:a}){const i=e?.item??V2,s=yo({elementType:i,externalSlotProps:t?.item,additionalProps:{itemId:o,id:r,label:n},ownerState:{itemId:o,label:n}}),l=rn(s,Y2),c=D.useMemo(()=>a?f.jsx(h1,{itemsToRender:a,slots:e,slotProps:t}):null,[a,e,t]);return f.jsx(i,ne({},l,{children:c}))}function h1(e){const{itemsToRender:t,slots:n,slotProps:r}=e;return f.jsx(D.Fragment,{children:t.map(o=>f.jsx(K2,{slots:n,slotProps:r,label:o.label,id:o.id,itemId:o.itemId,itemsToRender:o.children},o.itemId))})}const Q2=(e,t)=>{const n=D.useRef({}),[r,o]=D.useState(()=>{const a={};return e.forEach(i=>{i.models&&Object.entries(i.models).forEach(([s,l])=>{n.current[s]={isControlled:t[s]!==void 0,getDefaultValue:l.getDefaultValue},a[s]=l.getDefaultValue(t)})}),a});return Object.fromEntries(Object.entries(n.current).map(([a,i])=>{const s=t[a]??r[a];return[a,{value:s,setControlledValue:l=>{i.isControlled||o(c=>ne({},c,{[a]:l}))}}]}))},X2=["slots","slotProps","apiRef","experimentalFeatures"],J2=e=>{let{props:{slots:t,slotProps:n,apiRef:r,experimentalFeatures:o},plugins:a}=e,i=rn(e.props,X2);const s={};a.forEach(h=>{Object.assign(s,h.params)});const l={},c={};Object.keys(i).forEach(h=>{const p=i[h];s[h]?l[h]=p:c[h]=p});const d=o??{},u=a.reduce((h,p)=>p.getDefaultizedParams?p.getDefaultizedParams({params:h,experimentalFeatures:d}):h,l);return{apiRef:r,forwardedProps:c,pluginParams:u,slots:t??{},slotProps:n??{},experimentalFeatures:d}},Z2=({plugins:e,instance:t,publicAPI:n,rootRef:r})=>({runItemPlugins:o=>{let a=null,i=null;const s=[],l={};e.forEach(u=>{if(!u.itemPlugin)return;const h=u.itemPlugin({props:o,rootRef:a,contentRef:i});h?.rootRef&&(a=h.rootRef),h?.contentRef&&(i=h.contentRef),h?.propsEnhancers&&(s.push(h.propsEnhancers),Object.keys(h.propsEnhancers).forEach(p=>{l[p]=!0}))});const c=u=>h=>{const p={};return s.forEach(g=>{const b=g[u];b!=null&&Object.assign(p,b(h))}),p},d=Object.fromEntries(Object.keys(l).map(u=>[u,c(u)]));return{contentRef:i,rootRef:a,propsEnhancers:d}},wrapItem:({itemId:o,children:a})=>{let i=a;for(let s=e.length-1;s>=0;s-=1){const l=e[s];l.wrapItem&&(i=l.wrapItem({itemId:o,children:i,instance:t}))}return i},wrapRoot:({children:o})=>{let a=o;for(let i=e.length-1;i>=0;i-=1){const s=e[i];s.wrapRoot&&(a=s.wrapRoot({children:a,instance:t}))}return a},instance:t,rootRef:r,publicAPI:n});let eI=class{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),a=Array.from(r.regular.keys());for(let i=o.length-1;i>=0;i-=1){const s=o[i];r.highPriority.has(s)&&s.apply(this,n)}for(let i=0;i<a.length;i+=1){const s=a[i];r.regular.has(s)&&s.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...a){r.removeListener(t,o),n.apply(r,a)})}};const tI=e=>e.isPropagationStopped!==void 0,p1=()=>{const[e]=D.useState(()=>new eI),t=D.useCallback((...r)=>{const[o,a,i={}]=r;i.defaultMuiPrevented=!1,!(tI(i)&&i.isPropagationStopped())&&e.emit(o,a,i)},[e]),n=D.useCallback((r,o)=>(e.on(r,o),()=>{e.removeListener(r,o)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:n}}};p1.params={};const f1=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};f1.params={};const eh=({params:e,state:t,setState:n})=>{D.useEffect(()=>{n(o=>o.id.treeId===e.id&&o.id.treeId!==void 0?o:ne({},o,{id:ne({},o.id,{treeId:e.id??Uk()})}))},[n,e.id]);const r=e.id??t.id.treeId;return{getRootProps:()=>({id:r}),contextValue:{treeId:r}}};eh.params={id:!0};eh.getInitialState=({id:e})=>({id:{treeId:e??void 0}});const nI=[p1,f1,eh];function rI(e){const t=D.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const oI=({plugins:e,rootRef:t,props:n})=>{const r=[...nI,...e],{pluginParams:o,forwardedProps:a,apiRef:i,experimentalFeatures:s,slots:l,slotProps:c}=J2({plugins:r,props:n}),d=Q2(r,o),u=D.useRef({}).current,h=rI(i),p=D.useRef(null),g=hr(p,t),b=Z2({plugins:r,instance:u,publicAPI:h,rootRef:p}),[x,E]=D.useState(()=>{const I={};return r.forEach(N=>{N.getInitialState&&Object.assign(I,N.getInitialState(o))}),I}),v=[],C=I=>{const N=I({instance:u,params:o,slots:l,slotProps:c,experimentalFeatures:s,state:x,setState:E,rootRef:p,models:d,plugins:r});N.getRootProps&&v.push(N.getRootProps),N.publicAPI&&Object.assign(h,N.publicAPI),N.instance&&Object.assign(u,N.instance),N.contextValue&&Object.assign(b,N.contextValue)};return r.forEach(C),{getRootProps:(I={})=>{const N=ne({role:"tree"},a,I,{ref:g});return v.forEach(S=>{Object.assign(N,S(I))}),N},rootRef:g,contextValue:b,instance:u}};function aI(e){const{value:t,children:n}=e;return f.jsx(Y0.Provider,{value:t,children:t.wrapRoot({children:n,instance:t.instance})})}const iI=a1(),sI=e=>{const{classes:t}=e;return $o({root:["root"]},l2,t)},lI=mt("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),cI=D.forwardRef(function(e,t){const n=iI({props:e,name:"MuiRichTreeView"}),{getRootProps:r,contextValue:o,instance:a}=oI({plugins:P2,rootRef:t,props:n}),{slots:i,slotProps:s}=n,l=sI(n),c=i?.root??lI,d=yo({elementType:c,externalSlotProps:s?.root,className:l.root,getSlotProps:r,ownerState:n});return f.jsx(aI,{value:o,children:f.jsx(c,ne({},d,{children:f.jsx(h1,{slots:i,slotProps:s,itemsToRender:a.getItemsToRender()})}))})});function m1({items:e,defaultExpandedItems:t,navigate:n}){return f.jsx(cI,{items:fI(e,n),defaultExpandedItems:t,slots:{item:pI}})}const uI=kg.animated(Ni);function dI(e){const t=kg.useSpring({to:{opacity:e.in?1:0,transform:`translate3d(0,${e.in?0:20}px,0)`}});return f.jsx(uI,{style:t,...e})}function hI({item:e,...t}){const n=f.jsxs(a2,{...t,sx:{display:"flex",alignItems:"center",color:e.error?"error.main":"grey.600"},children:[e.fileType==="directory"&&f.jsx(Vk,{})||e.fileType==="notebook"&&f.jsx(Yk,{})||e.fileType==="model"&&f.jsx(Qk,{})||e.fileType=="database"&&f.jsx(Kk,{})||f.jsx(H0,{}),f.jsx(T.Typography,{variant:"body2",sx:{marginLeft:"5px"},color:e.error?"error.main":e.link?"primary.main":"grey.600",children:e.label})]});return e.error?f.jsx(T.Tooltip,{title:e.error,placement:"right",children:n}):n}const pI=D.forwardRef(function(e,t){const{id:n,itemId:r,label:o,children:a,disabled:i,...s}=e,{getRootProps:l,getContentProps:c,getLabelProps:d,getIconContainerProps:u,getGroupTransitionProps:h,status:p,publicAPI:g}=Wk({id:n,itemId:r,children:a,label:o,disabled:i,rootRef:t}),b=g.getItem(r);return p.selected=!1,p.focused=!1,f.jsx(Qd,{itemId:r,children:f.jsxs(r2,{...l(s),children:[f.jsxs(o2,{...c(),...b.link&&{onClick:x=>b.link(x)},sx:{pointerEvents:!b.selectable&&"none"},children:[f.jsx(i2,{...u(),children:f.jsx(s2,{status:p})}),f.jsx(hI,{...d({item:b})})]}),a&&f.jsx(dI,{...h()})]})})});function fI(e,t){const n=new Map;return e.map(r=>{let o=n;const a=r.path.split("/");a.forEach((i,s)=>{s===a.length-1?o.set(i,r):(o.has(i)||o.set(i,new Map),o=o.get(i))})}),g1(n,"",t)}function g1(e,t,n){const r=[];return e.forEach((o,a)=>{const i=a.endsWith(".malloy")&&"model"||a.endsWith(".malloynb")&&"notebook"||a.endsWith(".parquet")&&"database"||"unknown";if(i!=="unknown"){const s=o;r.push({id:t+a,label:a,fileType:i,link:i==="model"||i==="notebook"?l=>n(t+a,l):void 0,selectable:i==="model"||i==="notebook",error:"error"in s?s.error:void 0})}else t+=`${a}/`,r.push({id:t,label:a,fileType:"directory",selectable:!0,link:void 0,children:g1(o,t,n)})}),r}const mI=new jl(new Yt),gI=["notebooks/","models/"];function yI({navigate:e}){const{projectName:t,packageName:n,versionId:r}=zn(),{data:o,isError:a,error:i,isSuccess:s}=un({queryKey:["models",t,n,r],queryFn:l=>mI.listModels(t,n,r,l)});return f.jsx(Nr,{children:f.jsxs(Pr,{children:[f.jsx(Zr,{children:"Semantic Models"}),f.jsxs(T.Box,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!s&&!a&&f.jsx(an,{text:"Fetching Models..."}),a&&f.jsx(sn,{error:i,context:`${t} > ${n} > Models`}),s&&o.data.length>0&&f.jsx(m1,{items:o.data.sort((l,c)=>l.path.localeCompare(c.path)),navigate:e,defaultExpandedItems:gI}),s&&o.data.length===0&&f.jsx(T.Typography,{variant:"body2",children:"No models found"})]})]})})}const bI=new Gg(new Yt),EI=["notebooks/"];function xI({navigate:e}){const{projectName:t,packageName:n,versionId:r}=zn(),{data:o,isError:a,error:i,isSuccess:s}=un({queryKey:["notebooks",t,n,r],queryFn:l=>bI.listNotebooks(t,n,r,l)});return f.jsx(Nr,{children:f.jsxs(Pr,{children:[f.jsx(Zr,{children:"Notebooks"}),f.jsxs(T.Box,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!s&&!a&&f.jsx(an,{text:"Fetching Notebooks..."}),a&&f.jsx(sn,{error:i,context:`${t} > ${n} > Notebooks`}),s&&o.data.length>0&&f.jsx(m1,{items:o.data.sort((l,c)=>l.path.localeCompare(c.path)),defaultExpandedItems:EI,navigate:e}),s&&o.data.length===0&&f.jsx(T.Typography,{variant:"body2",children:"No notebooks found"})]})]})})}const TI=new EC(new Yt);function CI(){const{projectName:e,packageName:t,versionId:n}=zn(),{data:r,isError:o,isLoading:a,error:i}=un({queryKey:["schedules",e,t,n],queryFn:s=>TI.listSchedules(e,t,n,s)});return a?f.jsx(an,{text:"Fetching Schedules..."}):o?f.jsx(sn,{error:i,context:`${e} > ${t} > Schedules`}):r.data.length?f.jsx(Nr,{children:f.jsxs(Pr,{children:[f.jsx(Zr,{children:"Scheduler"}),f.jsx(T.Box,{sx:{maxHeight:"200px",overflowY:"auto"},children:f.jsx(T.TableContainer,{component:T.Paper,children:f.jsxs(T.Table,{sx:{minWidth:300},size:"small",children:[f.jsx(T.TableHead,{children:f.jsxs(T.TableRow,{children:[f.jsx(T.TableCell,{align:"left",children:"Resource"}),f.jsx(T.TableCell,{align:"left",children:"Schedule"}),f.jsx(T.TableCell,{align:"left",children:"Action"}),f.jsx(T.TableCell,{align:"left",children:"Connection"}),f.jsx(T.TableCell,{align:"left",children:"Last Run"}),f.jsx(T.TableCell,{align:"left",children:"Status"})]})}),f.jsx(T.TableBody,{children:r.data.map(s=>f.jsxs(T.TableRow,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[f.jsx(T.TableCell,{align:"left",children:s.resource}),f.jsx(T.TableCell,{align:"left",children:s.schedule}),f.jsx(T.TableCell,{align:"left",children:s.action}),f.jsx(T.TableCell,{align:"left",children:s.connection}),f.jsx(T.TableCell,{align:"left",children:s.lastRunTime?new Date(s.lastRunTime).toLocaleString():"n/a"}),f.jsx(T.TableCell,{align:"left",children:s.lastRunStatus})]},s.resource))})]})})})]})}):null}O.lazy(()=>Promise.resolve().then(()=>require("./index.es24-D1lbCkVE.cjs")));new Hl(new Yt);function vI(e){const{optionalProjectName:t,optionalPackageName:n}=e;if(!t||!n)throw new Error("Project and Package name must be provided for query embedding.");return JSON.stringify({...e})}const SI=/import\s*(?:\{[^}]*\}\s*from\s*)?['"`]([^'"`]+)['"`]/;function kI({cell:e,notebookPath:t,hideCodeCellIcon:n,hideEmbeddingIcon:r}){const[o,a]=O.useState(!1),[i,s]=O.useState(!1),[l,c]=O.useState(!1),[d,u]=O.useState(),[h,p]=O.useState(),[g,b]=O.useState(!1),{packageName:x,projectName:E}=zn(),v=e.text.match(SI),C=v?v[1]:null,I=!!v,N=vI({modelPath:t,query:e.text,optionalPackageName:x,optionalProjectName:E});return O.useEffect(()=>{e.type==="code"&&hl(e.text,"malloy").then(S=>{u(S)})},[e]),O.useEffect(()=>{hl(N,"typescript").then(S=>{p(S)})},[N]),e.type==="markdown"&&f.jsx(Su,{children:f.jsx(T.Box,{sx:{"& h1, & h2, & h3, & h4, & h5, & h6":{fontWeight:"600",color:"#1a1a1a",marginBottom:"8px",marginTop:"16px"},"& h1":{fontSize:"28px"},"& h2":{fontSize:"24px"},"& h3":{fontSize:"20px"},"& p":{color:"#333333",lineHeight:"1.7",marginBottom:"8px",fontSize:"16px"},"& ul, & ol":{color:"#333333",lineHeight:"1.7",marginBottom:"8px",fontSize:"16px"},"& li":{marginBottom:"4px"}},children:f.jsx(Sd,{children:e.text})})})||e.type==="code"&&f.jsxs(Su,{children:[(!n||!r&&e.result||e.newSources&&e.newSources.length>0)&&f.jsx(T.Stack,{sx:{flexDirection:"column",gap:"8px",marginBottom:"16px"},children:e.newSources&&e.newSources.length>0&&I&&f.jsx(ku,{sx:{position:"relative",padding:"0"},children:f.jsxs(T.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingLeft:"24px",paddingRight:"8px"},children:[f.jsx("span",{dangerouslySetInnerHTML:{__html:e.text.length>50?`${d.substring(0,50)}...`:d},style:{fontFamily:"monospace",fontSize:"14px",flex:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginRight:"8px"}}),f.jsx(T.IconButton,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px",flexShrink:0},onClick:()=>b(!0),children:f.jsx(ba,{sx:{fontSize:"18px",color:"#666666"}})})]})})}),f.jsx(B0,{open:g,onClose:()=>b(!1),modelPath:C||"",title:"Data Sources",hasValidImport:I}),f.jsxs(T.Dialog,{open:o,onClose:()=>a(!1),maxWidth:"lg",fullWidth:!0,children:[f.jsxs(T.DialogTitle,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Malloy Code",f.jsx(T.IconButton,{onClick:()=>a(!1),sx:{color:"#666666"},children:f.jsx(_i,{})})]}),f.jsx(T.DialogContent,{children:f.jsx(T.Box,{sx:{border:"1px solid #e0e0e0",borderRadius:"8px",padding:"16px",fontFamily:"monospace",fontSize:"14px",lineHeight:"1.5",overflow:"auto",maxHeight:"70vh",backgroundColor:"#ffffff"},children:f.jsx("pre",{className:"code-display",style:{margin:0},dangerouslySetInnerHTML:{__html:d}})})})]}),f.jsxs(T.Dialog,{open:i,onClose:()=>s(!1),maxWidth:"lg",fullWidth:!0,children:[f.jsxs(T.DialogTitle,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Embeddable Code",f.jsx(T.IconButton,{onClick:()=>s(!1),sx:{color:"#666666"},children:f.jsx(_i,{})})]}),f.jsx(T.DialogContent,{children:f.jsxs(T.Stack,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start"},children:[f.jsx(T.Typography,{component:"div",sx:{fontSize:"12px",fontFamily:"monospace","& .line":{textWrap:"wrap"},flex:1},dangerouslySetInnerHTML:{__html:h}}),f.jsx(T.Tooltip,{title:"Copy Embeddable Code",children:f.jsx(T.IconButton,{sx:{width:"24px",height:"24px",marginLeft:"8px",color:"#666666"},onClick:()=>{navigator.clipboard.writeText(N)},children:f.jsx(vk,{})})})]})})]}),f.jsx(j0,{open:l,onClose:()=>c(!1),result:e.result||"",title:"Results"}),e.result&&f.jsxs(ku,{sx:{position:"relative"},children:[f.jsx(T.Box,{sx:{paddingTop:"24px"},children:f.jsx(Yl,{result:e.result,minHeight:300,maxHeight:1e3})}),f.jsx(T.Box,{sx:{position:"absolute",bottom:0,left:0,right:0,height:"40px",background:"linear-gradient(transparent, rgba(255, 255, 255, 0.9))",pointerEvents:"none",zIndex:1}}),f.jsxs(T.Stack,{sx:{position:"absolute",top:"8px",right:"8px",flexDirection:"row",gap:"8px",alignItems:"center",zIndex:2},children:[!n&&f.jsx(T.IconButton,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px"},onClick:S=>{S.stopPropagation(),a(!0)},children:f.jsx(F0,{sx:{fontSize:"18px",color:"#666666"}})}),f.jsx(T.IconButton,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px"},onClick:()=>c(!0),children:f.jsx(ba,{sx:{fontSize:"18px",color:"#666666"}})})]})]})]})}const AI=new Gg(new Yt);function y1({notebookPath:e}){const{projectName:t,packageName:n,versionId:r}=zn(),{data:o,isSuccess:a,isError:i,error:s}=un({queryKey:["notebook",t,n,e,r],queryFn:async l=>(await AI.getNotebook(t,n,e,r,l)).data});return f.jsx(rC,{children:f.jsx(oC,{children:f.jsxs(T.Stack,{spacing:3,component:"section",children:[!a&&!i&&f.jsx(an,{text:"Fetching Notebook..."}),a&&o.notebookCells?.map((l,c)=>f.jsx(kI,{cell:l,notebookPath:e},c)),i&&s.status===404&&f.jsxs(T.Typography,{variant:"body2",sx:{color:"#666666"},children:[f.jsx("code",{children:`${t} > ${n} > ${e}`})," ","not found."]}),i&&s.status!==404&&f.jsx(sn,{error:s,context:`${t} > ${n} > ${e}`})]})})})}const II=new jl(new Yt);function b1(e,t){const{projectName:n,packageName:r,versionId:o}=zn(),a=t||o;return un({queryKey:["package",n,r,e,a],queryFn:async i=>(await II.getModel(n,r,e,a,i)).data})}const _I=pt(f.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}));let DI=class Os{constructor(t,n){G(this,"isSaved");G(this,"workbookStorage");this.workbookData=n,this.workbookStorage=t,this.workbookData?this.isSaved=!0:(this.workbookData={models:[],cells:[],workbookPath:void 0},this.isSaved=!1)}getWorkbookData(){return this.workbookData}getWorkbookPath(){return this.workbookData.workbookPath}async renameWorkbook(t){if(this.workbookData.workbookPath.path!==t)try{await this.workbookStorage.moveWorkbook(this.workbookData.workbookPath,{path:t,workspace:this.workbookData.workbookPath.workspace})}catch{}return this.workbookData.workbookPath.path=t,this.isSaved=!1,await this.saveWorkbook()}getCells(){return this.workbookData.cells}deleteCell(t){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),...this.workbookData.cells.slice(t+1)],this.isSaved=!1,this}insertCell(t,n){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),n,...this.workbookData.cells.slice(t)],this.isSaved=!1,this}setCell(t,n){return this.workbookData.cells[t]=n,this.isSaved=!1,this}setModels(t){return this.workbookData.models=t,this.isSaved=!1,this}getModels(){return this.workbookData.models}updateWorkbookData(t){return this.workbookData=t,this.isSaved=!1,this}async saveWorkbook(){if(!this.isSaved){if(!this.workbookData.workbookPath)throw new Error("Workbook path is not set");await this.workbookStorage.saveWorkbook(this.workbookData.workbookPath,JSON.stringify(this.workbookData)),this.isSaved=!0}return new Os(this.workbookStorage,this.workbookData)}toMalloyWorkbook(){return this.workbookData.cells.map(t=>t.isMarkdown?`>>>markdown
105
+ `));o[h]={id:h,label:p,parentId:u,idAttribute:void 0,expandable:!!c.children?.length,disabled:t?t(c):!1,depth:d},a[h]=c;const g=u??la;i[g]||(i[g]=[]),i[g].push(h),c.children?.forEach(b=>s(b,d+1,h))};e.forEach(c=>s(c,0,null));const l={};return Object.keys(i).forEach(c=>{l[c]=y2(i[c])}),{itemMetaMap:o,itemMap:a,itemOrderedChildrenIds:i,itemChildrenIndexes:l}},Vi=({instance:e,params:t,state:n,setState:r,experimentalFeatures:o})=>{const a=D.useCallback(x=>n.items.itemMetaMap[x],[n.items.itemMetaMap]),i=D.useCallback(x=>n.items.itemMap[x],[n.items.itemMap]),s=D.useCallback(()=>{const x=E=>{const v=n.items.itemMap[E],C=rn(v,b2),I=n.items.itemOrderedChildrenIds[E];return I&&(C.children=I.map(x)),C};return n.items.itemOrderedChildrenIds[la].map(x)},[n.items.itemMap,n.items.itemOrderedChildrenIds]),l=D.useCallback(x=>{if(x==null)return!1;let E=e.getItemMeta(x);if(!E)return!1;if(E.disabled)return!0;for(;E.parentId!=null;)if(E=e.getItemMeta(E.parentId),E.disabled)return!0;return!1},[e]),c=D.useCallback(x=>{const E=e.getItemMeta(x).parentId??la;return n.items.itemChildrenIndexes[E][x]},[e,n.items.itemChildrenIndexes]),d=D.useCallback(x=>n.items.itemOrderedChildrenIds[x??la]??[],[n.items.itemOrderedChildrenIds]),u=x=>{const E=e.getItemMeta(x);return E==null?null:document.getElementById(Yd({treeId:n.id.treeId,itemId:x,id:E.idAttribute}))},h=x=>t.disabledItemsFocusable?!0:!e.isItemDisabled(x),p=D.useRef(!1),g=D.useCallback(()=>{p.current=!0},[]),b=D.useCallback(()=>p.current,[]);return D.useEffect(()=>{e.areItemUpdatesPrevented()||r(x=>{const E=i1({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(x.items.itemMetaMap).forEach(v=>{E.itemMetaMap[v.id]||g2(e,"removeItem",{id:v.id})}),ne({},x,{items:E})})},[e,r,t.items,t.isItemDisabled,t.getItemId,t.getItemLabel]),{getRootProps:()=>({style:{"--TreeView-itemChildrenIndentation":typeof t.itemChildrenIndentation=="number"?`${t.itemChildrenIndentation}px`:t.itemChildrenIndentation}}),publicAPI:{getItem:i,getItemDOMElement:u,getItemTree:s,getItemOrderedChildrenIds:d},instance:{getItemMeta:a,getItem:i,getItemTree:s,getItemsToRender:()=>{const x=E=>{const v=n.items.itemMetaMap[E];return{label:v.label,itemId:v.id,id:v.idAttribute,children:n.items.itemOrderedChildrenIds[E]?.map(x)}};return n.items.itemOrderedChildrenIds[la].map(x)},getItemIndex:c,getItemDOMElement:u,getItemOrderedChildrenIds:d,isItemDisabled:l,isItemNavigable:h,preventItemUpdates:g,areItemUpdatesPrevented:b},contextValue:{items:{onItemClick:t.onItemClick,disabledItemsFocusable:t.disabledItemsFocusable,indentationAtItemLevel:o.indentationAtItemLevel??!1}}}};Vi.getInitialState=e=>({items:i1({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});Vi.getDefaultizedParams=({params:e})=>ne({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"});Vi.wrapRoot=({children:e,instance:t})=>f.jsx(Kd.Provider,{value:n=>t.getItemMeta(n)?.depth??0,children:e});Vi.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};const Ql=({instance:e,params:t,models:n})=>{const r=D.useMemo(()=>{const u=new Map;return n.expandedItems.value.forEach(h=>{u.set(h,!0)}),u},[n.expandedItems.value]),o=(u,h)=>{t.onExpandedItemsChange?.(u,h),n.expandedItems.setControlledValue(h)},a=D.useCallback(u=>r.has(u),[r]),i=D.useCallback(u=>!!e.getItemMeta(u)?.expandable,[e]),s=ur((u,h)=>{const p=e.isItemExpanded(h);e.setItemExpansion(u,h,!p)}),l=ur((u,h,p)=>{if(e.isItemExpanded(h)===p)return;let g;p?g=[h].concat(n.expandedItems.value):g=n.expandedItems.value.filter(b=>b!==h),t.onItemExpansionToggle&&t.onItemExpansionToggle(u,h,p),o(u,g)}),c=(u,h)=>{const p=e.getItemMeta(h),g=e.getItemOrderedChildrenIds(p.parentId).filter(x=>e.isItemExpandable(x)&&!e.isItemExpanded(x)),b=n.expandedItems.value.concat(g);g.length>0&&(t.onItemExpansionToggle&&g.forEach(x=>{t.onItemExpansionToggle(u,x,!0)}),o(u,b))},d=D.useMemo(()=>t.expansionTrigger?t.expansionTrigger:e.isTreeViewEditable?"iconContainer":"content",[t.expansionTrigger,e.isTreeViewEditable]);return{publicAPI:{setItemExpansion:l},instance:{isItemExpanded:a,isItemExpandable:i,setItemExpansion:l,toggleItemExpansion:s,expandAllSiblings:c},contextValue:{expansion:{expansionTrigger:d}}}};Ql.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const E2=[];Ql.getDefaultizedParams=({params:e})=>ne({},e,{defaultExpandedItems:e.defaultExpandedItems??E2});Ql.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const $s=e=>Array.isArray(e)?e:e!=null?[e]:[],Fc=e=>{const t={};return e.forEach(n=>{t[n]=!0}),t},Xl=({instance:e,params:t,models:n})=>{const r=D.useRef(null),o=D.useRef({}),a=D.useMemo(()=>{const d=new Map;return Array.isArray(n.selectedItems.value)?n.selectedItems.value.forEach(u=>{d.set(u,!0)}):n.selectedItems.value!=null&&d.set(n.selectedItems.value,!0),d},[n.selectedItems.value]),i=(d,u)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const h=u.filter(g=>!e.isItemSelected(g)),p=n.selectedItems.value.filter(g=>!u.includes(g));h.forEach(g=>{t.onItemSelectionToggle(d,g,!0)}),p.forEach(g=>{t.onItemSelectionToggle(d,g,!1)})}else u!==n.selectedItems.value&&(n.selectedItems.value!=null&&t.onItemSelectionToggle(d,n.selectedItems.value,!1),u!=null&&t.onItemSelectionToggle(d,u,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(d,u),n.selectedItems.setControlledValue(u)},s=d=>a.has(d),l=({event:d,itemId:u,keepExistingSelection:h=!1,shouldBeSelected:p})=>{if(t.disableSelection)return;let g;if(h){const b=$s(n.selectedItems.value),x=e.isItemSelected(u);x&&(p===!1||p==null)?g=b.filter(E=>E!==u):!x&&(p===!0||p==null)?g=[u].concat(b):g=b}else p===!1||p==null&&e.isItemSelected(u)?g=t.multiSelect?[]:null:g=t.multiSelect?[u]:u;i(d,g),r.current=u,o.current={}},c=(d,[u,h])=>{if(t.disableSelection||!t.multiSelect)return;let p=$s(n.selectedItems.value).slice();Object.keys(o.current).length>0&&(p=p.filter(E=>!o.current[E]));const g=Fc(p),b=jk(e,u,h),x=b.filter(E=>!g[E]);p=p.concat(x),i(d,p),o.current=Fc(b)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{selectItem:l},instance:{isItemSelected:s,selectItem:l,selectAllNavigableItems:d=>{if(t.disableSelection||!t.multiSelect)return;const u=Hk(e);i(d,u),o.current=Fc(u)},expandSelectionRange:(d,u)=>{if(r.current!=null){const[h,p]=V0(e,u,r.current);c(d,[h,p])}},selectRangeFromStartToItem:(d,u)=>{c(d,[Di(e),u])},selectRangeFromItemToEnd:(d,u)=>{c(d,[u,W0(e)])},selectItemFromArrowNavigation:(d,u,h)=>{if(t.disableSelection||!t.multiSelect)return;let p=$s(n.selectedItems.value).slice();Object.keys(o.current).length===0?(p.push(h),o.current={[u]:!0,[h]:!0}):(o.current[u]||(o.current={}),o.current[h]?(p=p.filter(g=>g!==u),delete o.current[u]):(p.push(h),o.current[h]=!0)),i(d,p)}},contextValue:{selection:{multiSelect:t.multiSelect,checkboxSelection:t.checkboxSelection,disableSelection:t.disableSelection}}}};Xl.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const x2=[];Xl.getDefaultizedParams=({params:e})=>ne({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?x2:null)});Xl.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};let T2=class{constructor(t=1e3){this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}},C2=class{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}},v2=class{};function S2(e){let t=0;return function(n,r,o){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new C2:new T2);const[a]=D.useState(new v2),i=D.useRef(null),s=D.useRef(void 0);s.current=o;const l=D.useRef(null);if(!i.current&&s.current){const c=(d,u)=>{u.defaultMuiPrevented||s.current?.(d,u)};i.current=n.$$subscribeEvent(r,c),t+=1,l.current={cleanupToken:t},e.registry.register(a,()=>{i.current?.(),i.current=null,l.current=null},l.current)}else!s.current&&i.current&&(i.current(),i.current=null,l.current&&(e.registry.unregister(l.current),l.current=null));D.useEffect(()=>{if(!i.current&&s.current){const c=(d,u)=>{u.defaultMuiPrevented||s.current?.(d,u)};i.current=n.$$subscribeEvent(r,c)}return l.current&&e.registry&&(e.registry.unregister(l.current),l.current=null),()=>{i.current?.(),i.current=null}},[n,r])}}const k2={registry:null},A2=S2(k2),s1=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?s1(t.shadowRoot):t:null};function I2(e){return e&&e.ownerDocument||document}const _2=(e,t)=>{let n=$s(t).find(r=>{if(!e.isItemNavigable(r))return!1;const o=e.getItemMeta(r);return o&&(o.parentId==null||e.isItemExpanded(o.parentId))});return n==null&&(n=Di(e)),n},Zd=({instance:e,params:t,state:n,setState:r,models:o,rootRef:a})=>{const i=_2(e,o.selectedItems.value),s=ur(x=>{const E=typeof x=="function"?x(n.focusedItemId):x;n.focusedItemId!==E&&r(v=>ne({},v,{focusedItemId:E}))}),l=D.useCallback(()=>!!a.current&&a.current.contains(s1(I2(a.current))),[a]),c=D.useCallback(x=>n.focusedItemId===x&&l(),[n.focusedItemId,l]),d=x=>{const E=e.getItemMeta(x);return E&&(E.parentId==null||e.isItemExpanded(E.parentId))},u=(x,E)=>{const v=e.getItemDOMElement(E);v&&v.focus(),s(E),t.onItemFocus&&t.onItemFocus(x,E)},h=ur((x,E)=>{d(E)&&u(x,E)}),p=ur(()=>{if(n.focusedItemId!=null){if(e.getItemMeta(n.focusedItemId)){const x=e.getItemDOMElement(n.focusedItemId);x&&x.blur()}s(null)}}),g=x=>x===i;A2(e,"removeItem",({id:x})=>{n.focusedItemId===x&&u(null,i)});const b=x=>E=>{x.onFocus?.(E),!E.defaultMuiPrevented&&E.target===E.currentTarget&&u(E,i)};return{getRootProps:x=>({onFocus:b(x)}),publicAPI:{focusItem:h},instance:{isItemFocused:c,canItemBeTabbed:g,focusItem:h,removeFocusedItem:p}}};Zd.getInitialState=()=>({focusedItemId:null});Zd.params={onItemFocus:!0};const D2=D.createContext(),w2=()=>D.useContext(D2)??!1;function N2(e){return!!e&&e.length===1&&!!e.match(/\S/)}const l1=({instance:e,params:t,state:n})=>{const r=w2(),o=D.useRef({}),a=ur(c=>{o.current=c(o.current)});D.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const c={},d=u=>{c[u.id]=u.label.substring(0,1).toLowerCase()};Object.values(n.items.itemMetaMap).forEach(d),o.current=c},[n.items.itemMetaMap,t.getItemId,e]);const i=(c,d)=>{const u=d.toLowerCase(),h=x=>{const E=Ls(e,x);return E===null?Di(e):E};let p=null,g=h(c);const b={};for(;p==null&&!b[g];)o.current[g]===u?p=g:(b[g]=!0,g=h(g));return p},s=c=>!t.disableSelection&&!e.isItemDisabled(c),l=c=>!e.isItemDisabled(c)&&e.isItemExpandable(c);return{instance:{updateFirstCharMap:a,handleItemKeyDown:(c,d)=>{if(c.defaultMuiPrevented||c.altKey||wi(c.target,c.currentTarget))return;const u=c.ctrlKey||c.metaKey,h=c.key;switch(!0){case(h===" "&&s(d)):{c.preventDefault(),t.multiSelect&&c.shiftKey?e.expandSelectionRange(c,d):e.selectItem({event:c,itemId:d,keepExistingSelection:t.multiSelect,shouldBeSelected:t.multiSelect?void 0:!0});break}case h==="Enter":{vo(e,jn)&&e.isItemEditable(d)&&!e.isItemBeingEdited(d)?e.setEditedItemId(d):l(d)?(e.toggleItemExpansion(c,d),c.preventDefault()):s(d)&&(t.multiSelect?(c.preventDefault(),e.selectItem({event:c,itemId:d,keepExistingSelection:!0})):e.isItemSelected(d)||(e.selectItem({event:c,itemId:d}),c.preventDefault()));break}case h==="ArrowDown":{const p=Ls(e,d);p&&(c.preventDefault(),e.focusItem(c,p),t.multiSelect&&c.shiftKey&&s(p)&&e.selectItemFromArrowNavigation(c,d,p));break}case h==="ArrowUp":{const p=q0(e,d);p&&(c.preventDefault(),e.focusItem(c,p),t.multiSelect&&c.shiftKey&&s(p)&&e.selectItemFromArrowNavigation(c,d,p));break}case(h==="ArrowRight"&&!r||h==="ArrowLeft"&&r):{if(u)return;if(e.isItemExpanded(d)){const p=Ls(e,d);p&&(e.focusItem(c,p),c.preventDefault())}else l(d)&&(e.toggleItemExpansion(c,d),c.preventDefault());break}case(h==="ArrowLeft"&&!r||h==="ArrowRight"&&r):{if(u)return;if(l(d)&&e.isItemExpanded(d))e.toggleItemExpansion(c,d),c.preventDefault();else{const p=e.getItemMeta(d).parentId;p&&(e.focusItem(c,p),c.preventDefault())}break}case h==="Home":{s(d)&&t.multiSelect&&u&&c.shiftKey?e.selectRangeFromStartToItem(c,d):e.focusItem(c,Di(e)),c.preventDefault();break}case h==="End":{s(d)&&t.multiSelect&&u&&c.shiftKey?e.selectRangeFromItemToEnd(c,d):e.focusItem(c,W0(e)),c.preventDefault();break}case h==="*":{e.expandAllSiblings(c,d),c.preventDefault();break}case(String.fromCharCode(c.keyCode)==="A"&&u&&t.multiSelect&&!t.disableSelection):{e.selectAllNavigableItems(c),c.preventDefault();break}case(!u&&!c.shiftKey&&N2(h)):{const p=i(d,h);p!=null&&(e.focusItem(c,p),c.preventDefault());break}}}}}};l1.params={};const c1=({slots:e,slotProps:t})=>({contextValue:{icons:{slots:{collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,endIcon:e.endIcon},slotProps:{collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,endIcon:t.endIcon}}}});c1.params={};const P2=[Vi,Ql,Xl,Zd,l1,c1,jn];function u1(e){const{instance:t,items:{onItemClick:n},selection:{multiSelect:r,checkboxSelection:o,disableSelection:a},expansion:{expansionTrigger:i}}=Mo(),s=t.isItemExpandable(e),l=t.isItemExpanded(e),c=t.isItemFocused(e),d=t.isItemSelected(e),u=t.isItemDisabled(e),h=t?.isItemBeingEdited?t?.isItemBeingEdited(e):!1,p=t.isItemEditable?t.isItemEditable(e):!1,g=C=>{if(!u){c||t.focusItem(C,e);const I=r&&(C.shiftKey||C.ctrlKey||C.metaKey);s&&!(I&&t.isItemExpanded(e))&&t.toggleItemExpansion(C,e)}},b=C=>{u||(!c&&!h&&t.focusItem(C,e),r&&(C.shiftKey||C.ctrlKey||C.metaKey)?C.shiftKey?t.expandSelectionRange(C,e):t.selectItem({event:C,itemId:e,keepExistingSelection:!0}):t.selectItem({event:C,itemId:e,shouldBeSelected:!0}))},x=C=>{if(a||u)return;const I=C.nativeEvent.shiftKey;r&&I?t.expandSelectionRange(C,e):t.selectItem({event:C,itemId:e,keepExistingSelection:r,shouldBeSelected:C.target.checked})},E=C=>{(C.shiftKey||C.ctrlKey||C.metaKey||u)&&C.preventDefault()},v=()=>{vo(t,jn)&&t.isItemEditable(e)&&(t.isItemBeingEdited(e)?t.setEditedItemId(null):t.setEditedItemId(e))};return{disabled:u,expanded:l,selected:d,focused:c,editable:p,editing:h,disableSelection:a,checkboxSelection:o,handleExpansion:g,handleSelection:b,handleCheckboxSelection:x,handleContentClick:n,preventSelection:E,expansionTrigger:i,toggleItemEditing:v,handleSaveItemLabel:(C,I)=>{vo(t,jn)&&t.isItemBeingEditedRef(e)&&(t.updateItemLabel(e,I),v(),t.focusItem(C,e))},handleCancelItemLabelEditing:C=>{vo(t,jn)&&t.isItemBeingEditedRef(e)&&(v(),t.focusItem(C,e))}}}const R2=mt("input",{name:"MuiTreeItem2",slot:"LabelInput",overridesResolver:(e,t)=>t.labelInput})(({theme:e})=>ne({},e.typography.body1,{width:"100%",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${e.palette.primary.main}`}})),L2=mt("div",{name:"MuiTreeItem2DragAndDropOverlay",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>qe.shouldForwardProp(e)&&e!=="action"})(({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})`:qe.alpha(e.palette.primary.dark,e.palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]}));function $2(e){return e.action==null?null:f.jsx(L2,ne({},e))}const O2=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown","dragAndDropOverlayProps","labelInputProps"],d1=D.forwardRef(function(e,t){const{classes:n,className:r,displayIcon:o,expansionIcon:a,icon:i,label:s,itemId:l,onClick:c,onMouseDown:d,dragAndDropOverlayProps:u,labelInputProps:h}=e,p=rn(e,O2),{disabled:g,expanded:b,selected:x,focused:E,editing:v,editable:C,disableSelection:I,checkboxSelection:w,handleExpansion:S,handleSelection:M,handleCheckboxSelection:q,handleContentClick:B,preventSelection:y,expansionTrigger:R,toggleItemEditing:F}=u1(l),$=i||a||o,U=D.useRef(null),Y=ue=>{y(ue),d&&d(ue)},re=ue=>{B?.(ue,l),!U.current?.contains(ue.target)&&(R==="content"&&S(ue),w||M(ue),c&&c(ue))},fe=ue=>{ue.defaultMuiPrevented||F()};return f.jsxs("div",ne({},p,{className:Mt(n.root,r,b&&n.expanded,x&&n.selected,E&&n.focused,g&&n.disabled,v&&n.editing,C&&n.editable),onClick:re,onMouseDown:Y,ref:t,children:[f.jsx("div",{className:n.iconContainer,children:$}),w&&f.jsx(n1,{className:n.checkbox,checked:x,onChange:q,disabled:g||I,ref:U,tabIndex:-1}),v?f.jsx(R2,ne({},h,{className:n.labelInput})):f.jsx("div",ne({className:n.label},C&&{onDoubleClick:fe},{children:s})),u&&f.jsx($2,ne({},u))]}))});function M2(e){return Xr("MuiTreeItem",e)}const xr=Jr("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label","checkbox","labelInput","editable","editing","dragAndDropOverlay"]),F2=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],B2=["ownerState"],j2=["ownerState"],H2=["ownerState"],U2=a1(),z2=e=>{const{classes:t}=e;return $o({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],labelInput:["labelInput"],editing:["editing"],editable:["editable"],groupTransition:["groupTransition"]},M2,t)},G2=mt("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),q2=mt(d1,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${xr.iconContainer}`]:t.iconContainer},t.label&&{[`& .${xr.label}`]:t.label}],shouldForwardProp:e=>Vr(e)&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${xr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${xr.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${xr.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:qe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:qe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:qe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${xr.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:qe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${xr.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${xr.label}`]:ne({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1),[`& .${xr.checkbox}`]:{padding:0},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}}]})),W2=mt(Ni,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Vr(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]}),V2=D.forwardRef(function(e,t){const{icons:n,runItemPlugins:r,items:{disabledItemsFocusable:o,indentationAtItemLevel:a},selection:{disableSelection:i},expansion:{expansionTrigger:s},treeId:l,instance:c}=Mo(),d=D.useContext(Kd),u=U2({props:e,name:"MuiTreeItem"}),{children:h,className:p,slots:g,slotProps:b,ContentComponent:x=d1,ContentProps:E,itemId:v,id:C,label:I,onClick:w,onMouseDown:S,onBlur:M,onKeyDown:q}=u,B=rn(u,F2),{expanded:y,focused:R,selected:F,disabled:$,editing:U,handleExpansion:Y,handleCancelItemLabelEditing:re,handleSaveItemLabel:fe}=u1(v),{contentRef:ue,rootRef:X,propsEnhancers:A}=r(u),de=D.useRef(null),ee=D.useRef(null),k=hr(t,X,de),J=hr(E?.ref,ue,ee),Ee={expandIcon:g?.expandIcon??n.slots.expandIcon??r1,collapseIcon:g?.collapseIcon??n.slots.collapseIcon??o1,endIcon:g?.endIcon??n.slots.endIcon,icon:g?.icon,groupTransition:g?.groupTransition},he=te=>Array.isArray(te)?te.length>0&&te.some(he):!!te,ye=he(h),me=ne({},u,{expanded:y,focused:R,selected:F,disabled:$,indentationAtItemLevel:a}),Fe=z2(me),Oe=Ee.groupTransition??void 0,Te=yo({elementType:Oe,ownerState:{},externalSlotProps:b?.groupTransition,additionalProps:ne({unmountOnExit:!0,in:y,component:"ul",role:"group"},a?{indentationAtItemLevel:!0}:{}),className:Fe.groupTransition}),gt=te=>{s==="iconContainer"&&Y(te)},Ze=y?Ee.collapseIcon:Ee.expandIcon,be=yo({elementType:Ze,ownerState:{},externalSlotProps:te=>y?ne({},sr(n.slotProps.collapseIcon,te),sr(b?.collapseIcon,te)):ne({},sr(n.slotProps.expandIcon,te),sr(b?.expandIcon,te)),additionalProps:{onClick:gt}}),Xt=rn(be,B2),vt=ye&&Ze?f.jsx(Ze,ne({},Xt)):null,De=ye?void 0:Ee.endIcon,wt=yo({elementType:De,ownerState:{},externalSlotProps:te=>ye?{}:ne({},sr(n.slotProps.endIcon,te),sr(b?.endIcon,te))}),yt=rn(wt,j2),bt=De?f.jsx(De,ne({},yt)):null,ke=Ee.icon,ge=yo({elementType:ke,ownerState:{},externalSlotProps:b?.icon}),Wn=rn(ge,H2),Or=ke?f.jsx(ke,ne({},Wn)):null;let Ve;F?Ve=!0:i||$?Ve=void 0:Ve=!1;function V(te){!R&&(!$||o)&&te.currentTarget===te.target&&c.focusItem(te,v)}function oe(te){M?.(te),!(U||te.relatedTarget&&wi(te.relatedTarget,de.current)&&(te.target&&te.target?.dataset?.element==="labelInput"&&wi(te.target,de.current)||te.relatedTarget?.dataset?.element==="labelInput"))&&c.removeFocusedItem()}const Ae=te=>{q?.(te),te.target?.dataset?.element!=="labelInput"&&c.handleItemKeyDown(te,v)},Ue=Yd({itemId:v,treeId:l,id:C}),We=c.canItemBeTabbed(v)?0:-1,et={rootRefObject:de,contentRefObject:ee,interactions:{handleSaveItemLabel:fe,handleCancelItemLabelEditing:re}},Jt=A.root?.(ne({},et,{externalEventHandlers:Nn(B)}))??{},Kt=A.content?.(ne({},et,{externalEventHandlers:Nn(E)}))??{},Zt=A.dragAndDropOverlay?.(ne({},et,{externalEventHandlers:{}}))??{},ie=A.labelInput?.(ne({},et,{externalEventHandlers:{}}))??{};return f.jsx(Qd,{itemId:v,children:f.jsxs(G2,ne({className:Mt(Fe.root,p),role:"treeitem","aria-expanded":ye?y:void 0,"aria-selected":Ve,"aria-disabled":$||void 0,id:Ue,tabIndex:We},B,{ownerState:me,onFocus:V,onBlur:oe,onKeyDown:Ae,ref:k,style:a?ne({},B.style,{"--TreeView-itemDepth":typeof d=="function"?d(v):d}):B.style},Jt,{children:[f.jsx(q2,ne({as:x,classes:{root:Fe.content,expanded:Fe.expanded,selected:Fe.selected,focused:Fe.focused,disabled:Fe.disabled,editable:Fe.editable,editing:Fe.editing,iconContainer:Fe.iconContainer,label:Fe.label,labelInput:Fe.labelInput,checkbox:Fe.checkbox},label:I,itemId:v,onClick:w,onMouseDown:S,icon:Or,expansionIcon:vt,displayIcon:bt,ownerState:me},E,Kt,Zt.action==null?{}:{dragAndDropOverlayProps:Zt},ie.value==null?{}:{labelInputProps:ie},{ref:J})),h&&f.jsx(W2,ne({as:Oe},Te,{children:h}))]}))})}),Y2=["ownerState"];function K2({slots:e,slotProps:t,label:n,id:r,itemId:o,itemsToRender:a}){const i=e?.item??V2,s=yo({elementType:i,externalSlotProps:t?.item,additionalProps:{itemId:o,id:r,label:n},ownerState:{itemId:o,label:n}}),l=rn(s,Y2),c=D.useMemo(()=>a?f.jsx(h1,{itemsToRender:a,slots:e,slotProps:t}):null,[a,e,t]);return f.jsx(i,ne({},l,{children:c}))}function h1(e){const{itemsToRender:t,slots:n,slotProps:r}=e;return f.jsx(D.Fragment,{children:t.map(o=>f.jsx(K2,{slots:n,slotProps:r,label:o.label,id:o.id,itemId:o.itemId,itemsToRender:o.children},o.itemId))})}const Q2=(e,t)=>{const n=D.useRef({}),[r,o]=D.useState(()=>{const a={};return e.forEach(i=>{i.models&&Object.entries(i.models).forEach(([s,l])=>{n.current[s]={isControlled:t[s]!==void 0,getDefaultValue:l.getDefaultValue},a[s]=l.getDefaultValue(t)})}),a});return Object.fromEntries(Object.entries(n.current).map(([a,i])=>{const s=t[a]??r[a];return[a,{value:s,setControlledValue:l=>{i.isControlled||o(c=>ne({},c,{[a]:l}))}}]}))},X2=["slots","slotProps","apiRef","experimentalFeatures"],J2=e=>{let{props:{slots:t,slotProps:n,apiRef:r,experimentalFeatures:o},plugins:a}=e,i=rn(e.props,X2);const s={};a.forEach(h=>{Object.assign(s,h.params)});const l={},c={};Object.keys(i).forEach(h=>{const p=i[h];s[h]?l[h]=p:c[h]=p});const d=o??{},u=a.reduce((h,p)=>p.getDefaultizedParams?p.getDefaultizedParams({params:h,experimentalFeatures:d}):h,l);return{apiRef:r,forwardedProps:c,pluginParams:u,slots:t??{},slotProps:n??{},experimentalFeatures:d}},Z2=({plugins:e,instance:t,publicAPI:n,rootRef:r})=>({runItemPlugins:o=>{let a=null,i=null;const s=[],l={};e.forEach(u=>{if(!u.itemPlugin)return;const h=u.itemPlugin({props:o,rootRef:a,contentRef:i});h?.rootRef&&(a=h.rootRef),h?.contentRef&&(i=h.contentRef),h?.propsEnhancers&&(s.push(h.propsEnhancers),Object.keys(h.propsEnhancers).forEach(p=>{l[p]=!0}))});const c=u=>h=>{const p={};return s.forEach(g=>{const b=g[u];b!=null&&Object.assign(p,b(h))}),p},d=Object.fromEntries(Object.keys(l).map(u=>[u,c(u)]));return{contentRef:i,rootRef:a,propsEnhancers:d}},wrapItem:({itemId:o,children:a})=>{let i=a;for(let s=e.length-1;s>=0;s-=1){const l=e[s];l.wrapItem&&(i=l.wrapItem({itemId:o,children:i,instance:t}))}return i},wrapRoot:({children:o})=>{let a=o;for(let i=e.length-1;i>=0;i-=1){const s=e[i];s.wrapRoot&&(a=s.wrapRoot({children:a,instance:t}))}return a},instance:t,rootRef:r,publicAPI:n});let eI=class{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),a=Array.from(r.regular.keys());for(let i=o.length-1;i>=0;i-=1){const s=o[i];r.highPriority.has(s)&&s.apply(this,n)}for(let i=0;i<a.length;i+=1){const s=a[i];r.regular.has(s)&&s.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...a){r.removeListener(t,o),n.apply(r,a)})}};const tI=e=>e.isPropagationStopped!==void 0,p1=()=>{const[e]=D.useState(()=>new eI),t=D.useCallback((...r)=>{const[o,a,i={}]=r;i.defaultMuiPrevented=!1,!(tI(i)&&i.isPropagationStopped())&&e.emit(o,a,i)},[e]),n=D.useCallback((r,o)=>(e.on(r,o),()=>{e.removeListener(r,o)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:n}}};p1.params={};const f1=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};f1.params={};const eh=({params:e,state:t,setState:n})=>{D.useEffect(()=>{n(o=>o.id.treeId===e.id&&o.id.treeId!==void 0?o:ne({},o,{id:ne({},o.id,{treeId:e.id??Uk()})}))},[n,e.id]);const r=e.id??t.id.treeId;return{getRootProps:()=>({id:r}),contextValue:{treeId:r}}};eh.params={id:!0};eh.getInitialState=({id:e})=>({id:{treeId:e??void 0}});const nI=[p1,f1,eh];function rI(e){const t=D.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const oI=({plugins:e,rootRef:t,props:n})=>{const r=[...nI,...e],{pluginParams:o,forwardedProps:a,apiRef:i,experimentalFeatures:s,slots:l,slotProps:c}=J2({plugins:r,props:n}),d=Q2(r,o),u=D.useRef({}).current,h=rI(i),p=D.useRef(null),g=hr(p,t),b=Z2({plugins:r,instance:u,publicAPI:h,rootRef:p}),[x,E]=D.useState(()=>{const I={};return r.forEach(w=>{w.getInitialState&&Object.assign(I,w.getInitialState(o))}),I}),v=[],C=I=>{const w=I({instance:u,params:o,slots:l,slotProps:c,experimentalFeatures:s,state:x,setState:E,rootRef:p,models:d,plugins:r});w.getRootProps&&v.push(w.getRootProps),w.publicAPI&&Object.assign(h,w.publicAPI),w.instance&&Object.assign(u,w.instance),w.contextValue&&Object.assign(b,w.contextValue)};return r.forEach(C),{getRootProps:(I={})=>{const w=ne({role:"tree"},a,I,{ref:g});return v.forEach(S=>{Object.assign(w,S(I))}),w},rootRef:g,contextValue:b,instance:u}};function aI(e){const{value:t,children:n}=e;return f.jsx(Y0.Provider,{value:t,children:t.wrapRoot({children:n,instance:t.instance})})}const iI=a1(),sI=e=>{const{classes:t}=e;return $o({root:["root"]},l2,t)},lI=mt("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),cI=D.forwardRef(function(e,t){const n=iI({props:e,name:"MuiRichTreeView"}),{getRootProps:r,contextValue:o,instance:a}=oI({plugins:P2,rootRef:t,props:n}),{slots:i,slotProps:s}=n,l=sI(n),c=i?.root??lI,d=yo({elementType:c,externalSlotProps:s?.root,className:l.root,getSlotProps:r,ownerState:n});return f.jsx(aI,{value:o,children:f.jsx(c,ne({},d,{children:f.jsx(h1,{slots:i,slotProps:s,itemsToRender:a.getItemsToRender()})}))})});function m1({items:e,defaultExpandedItems:t,navigate:n}){return f.jsx(cI,{items:fI(e,n),defaultExpandedItems:t,slots:{item:pI}})}const uI=kg.animated(Ni);function dI(e){const t=kg.useSpring({to:{opacity:e.in?1:0,transform:`translate3d(0,${e.in?0:20}px,0)`}});return f.jsx(uI,{style:t,...e})}function hI({item:e,...t}){const n=f.jsxs(a2,{...t,sx:{display:"flex",alignItems:"center",color:e.error?"error.main":"grey.600"},children:[e.fileType==="directory"&&f.jsx(Vk,{})||e.fileType==="notebook"&&f.jsx(Yk,{})||e.fileType==="model"&&f.jsx(Qk,{})||e.fileType=="database"&&f.jsx(Kk,{})||f.jsx(H0,{}),f.jsx(T.Typography,{variant:"body2",sx:{marginLeft:"5px"},color:e.error?"error.main":e.link?"primary.main":"grey.600",children:e.label})]});return e.error?f.jsx(T.Tooltip,{title:e.error,placement:"right",children:n}):n}const pI=D.forwardRef(function(e,t){const{id:n,itemId:r,label:o,children:a,disabled:i,...s}=e,{getRootProps:l,getContentProps:c,getLabelProps:d,getIconContainerProps:u,getGroupTransitionProps:h,status:p,publicAPI:g}=Wk({id:n,itemId:r,children:a,label:o,disabled:i,rootRef:t}),b=g.getItem(r);return p.selected=!1,p.focused=!1,f.jsx(Qd,{itemId:r,children:f.jsxs(r2,{...l(s),children:[f.jsxs(o2,{...c(),...b.link&&{onClick:x=>b.link(x)},sx:{pointerEvents:!b.selectable&&"none"},children:[f.jsx(i2,{...u(),children:f.jsx(s2,{status:p})}),f.jsx(hI,{...d({item:b})})]}),a&&f.jsx(dI,{...h()})]})})});function fI(e,t){const n=new Map;return e.map(r=>{let o=n;const a=r.path.split("/");a.forEach((i,s)=>{s===a.length-1?o.set(i,r):(o.has(i)||o.set(i,new Map),o=o.get(i))})}),g1(n,"",t)}function g1(e,t,n){const r=[];return e.forEach((o,a)=>{const i=a.endsWith(".malloy")&&"model"||a.endsWith(".malloynb")&&"notebook"||a.endsWith(".parquet")&&"database"||"unknown";if(i!=="unknown"){const s=o;r.push({id:t+a,label:a,fileType:i,link:i==="model"||i==="notebook"?l=>n(t+a,l):void 0,selectable:i==="model"||i==="notebook",error:"error"in s?s.error:void 0})}else t+=`${a}/`,r.push({id:t,label:a,fileType:"directory",selectable:!0,link:void 0,children:g1(o,t,n)})}),r}const mI=new jl(new Yt),gI=["notebooks/","models/"];function yI({navigate:e}){const{projectName:t,packageName:n,versionId:r}=zn(),{data:o,isError:a,error:i,isSuccess:s}=un({queryKey:["models",t,n,r],queryFn:l=>mI.listModels(t,n,r,l)});return f.jsx(Nr,{children:f.jsxs(Pr,{children:[f.jsx(Zr,{children:"Semantic Models"}),f.jsxs(T.Box,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!s&&!a&&f.jsx(an,{text:"Fetching Models..."}),a&&f.jsx(sn,{error:i,context:`${t} > ${n} > Models`}),s&&o.data.length>0&&f.jsx(m1,{items:o.data.sort((l,c)=>l.path.localeCompare(c.path)),navigate:e,defaultExpandedItems:gI}),s&&o.data.length===0&&f.jsx(T.Typography,{variant:"body2",children:"No models found"})]})]})})}const bI=new Gg(new Yt),EI=["notebooks/"];function xI({navigate:e}){const{projectName:t,packageName:n,versionId:r}=zn(),{data:o,isError:a,error:i,isSuccess:s}=un({queryKey:["notebooks",t,n,r],queryFn:l=>bI.listNotebooks(t,n,r,l)});return f.jsx(Nr,{children:f.jsxs(Pr,{children:[f.jsx(Zr,{children:"Notebooks"}),f.jsxs(T.Box,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!s&&!a&&f.jsx(an,{text:"Fetching Notebooks..."}),a&&f.jsx(sn,{error:i,context:`${t} > ${n} > Notebooks`}),s&&o.data.length>0&&f.jsx(m1,{items:o.data.sort((l,c)=>l.path.localeCompare(c.path)),defaultExpandedItems:EI,navigate:e}),s&&o.data.length===0&&f.jsx(T.Typography,{variant:"body2",children:"No notebooks found"})]})]})})}const TI=new EC(new Yt);function CI(){const{projectName:e,packageName:t,versionId:n}=zn(),{data:r,isError:o,isLoading:a,error:i}=un({queryKey:["schedules",e,t,n],queryFn:s=>TI.listSchedules(e,t,n,s)});return a?f.jsx(an,{text:"Fetching Schedules..."}):o?f.jsx(sn,{error:i,context:`${e} > ${t} > Schedules`}):r.data.length?f.jsx(Nr,{children:f.jsxs(Pr,{children:[f.jsx(Zr,{children:"Scheduler"}),f.jsx(T.Box,{sx:{maxHeight:"200px",overflowY:"auto"},children:f.jsx(T.TableContainer,{component:T.Paper,children:f.jsxs(T.Table,{sx:{minWidth:300},size:"small",children:[f.jsx(T.TableHead,{children:f.jsxs(T.TableRow,{children:[f.jsx(T.TableCell,{align:"left",children:"Resource"}),f.jsx(T.TableCell,{align:"left",children:"Schedule"}),f.jsx(T.TableCell,{align:"left",children:"Action"}),f.jsx(T.TableCell,{align:"left",children:"Connection"}),f.jsx(T.TableCell,{align:"left",children:"Last Run"}),f.jsx(T.TableCell,{align:"left",children:"Status"})]})}),f.jsx(T.TableBody,{children:r.data.map(s=>f.jsxs(T.TableRow,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[f.jsx(T.TableCell,{align:"left",children:s.resource}),f.jsx(T.TableCell,{align:"left",children:s.schedule}),f.jsx(T.TableCell,{align:"left",children:s.action}),f.jsx(T.TableCell,{align:"left",children:s.connection}),f.jsx(T.TableCell,{align:"left",children:s.lastRunTime?new Date(s.lastRunTime).toLocaleString():"n/a"}),f.jsx(T.TableCell,{align:"left",children:s.lastRunStatus})]},s.resource))})]})})})]})}):null}O.lazy(()=>Promise.resolve().then(()=>require("./index.es24-D1lbCkVE.cjs")));new Hl(new Yt);function vI(e){const{optionalProjectName:t,optionalPackageName:n}=e;if(!t||!n)throw new Error("Project and Package name must be provided for query embedding.");return JSON.stringify({...e})}const SI=/import\s*(?:\{[^}]*\}\s*from\s*)?['"`]([^'"`]+)['"`]/;function kI({cell:e,notebookPath:t,hideCodeCellIcon:n,hideEmbeddingIcon:r}){const[o,a]=O.useState(!1),[i,s]=O.useState(!1),[l,c]=O.useState(!1),[d,u]=O.useState(),[h,p]=O.useState(),[g,b]=O.useState(!1),{packageName:x,projectName:E}=zn(),v=e.text.match(SI),C=v?v[1]:null,I=!!v,w=vI({modelPath:t,query:e.text,optionalPackageName:x,optionalProjectName:E});return O.useEffect(()=>{e.type==="code"&&hl(e.text,"malloy").then(S=>{u(S)})},[e]),O.useEffect(()=>{hl(w,"typescript").then(S=>{p(S)})},[w]),e.type==="markdown"&&f.jsx(Su,{children:f.jsx(T.Box,{sx:{"& h1, & h2, & h3, & h4, & h5, & h6":{fontWeight:"600",color:"#1a1a1a",marginBottom:"8px",marginTop:"16px"},"& h1":{fontSize:"28px"},"& h2":{fontSize:"24px"},"& h3":{fontSize:"20px"},"& p":{color:"#333333",lineHeight:"1.7",marginBottom:"8px",fontSize:"16px"},"& ul, & ol":{color:"#333333",lineHeight:"1.7",marginBottom:"8px",fontSize:"16px"},"& li":{marginBottom:"4px"}},children:f.jsx(Sd,{children:e.text})})})||e.type==="code"&&f.jsxs(Su,{children:[(!n||!r&&e.result||e.newSources&&e.newSources.length>0)&&f.jsx(T.Stack,{sx:{flexDirection:"column",gap:"8px",marginBottom:"16px"},children:e.newSources&&e.newSources.length>0&&I&&f.jsx(ku,{sx:{position:"relative",padding:"0"},children:f.jsxs(T.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingLeft:"24px",paddingRight:"8px"},children:[f.jsx("span",{dangerouslySetInnerHTML:{__html:e.text.length>50?`${d.substring(0,50)}...`:d},style:{fontFamily:"monospace",fontSize:"14px",flex:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginRight:"8px"}}),f.jsx(T.IconButton,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px",flexShrink:0},onClick:()=>b(!0),children:f.jsx(ba,{sx:{fontSize:"18px",color:"#666666"}})})]})})}),f.jsx(B0,{open:g,onClose:()=>b(!1),modelPath:C||"",title:"Data Sources",hasValidImport:I}),f.jsxs(T.Dialog,{open:o,onClose:()=>a(!1),maxWidth:"lg",fullWidth:!0,children:[f.jsxs(T.DialogTitle,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Malloy Code",f.jsx(T.IconButton,{onClick:()=>a(!1),sx:{color:"#666666"},children:f.jsx(_i,{})})]}),f.jsx(T.DialogContent,{children:f.jsx(T.Box,{sx:{border:"1px solid #e0e0e0",borderRadius:"8px",padding:"16px",fontFamily:"monospace",fontSize:"14px",lineHeight:"1.5",overflow:"auto",maxHeight:"70vh",backgroundColor:"#ffffff"},children:f.jsx("pre",{className:"code-display",style:{margin:0},dangerouslySetInnerHTML:{__html:d}})})})]}),f.jsxs(T.Dialog,{open:i,onClose:()=>s(!1),maxWidth:"lg",fullWidth:!0,children:[f.jsxs(T.DialogTitle,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Embeddable Code",f.jsx(T.IconButton,{onClick:()=>s(!1),sx:{color:"#666666"},children:f.jsx(_i,{})})]}),f.jsx(T.DialogContent,{children:f.jsxs(T.Stack,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start"},children:[f.jsx(T.Typography,{component:"div",sx:{fontSize:"12px",fontFamily:"monospace","& .line":{textWrap:"wrap"},flex:1},dangerouslySetInnerHTML:{__html:h}}),f.jsx(T.Tooltip,{title:"Copy Embeddable Code",children:f.jsx(T.IconButton,{sx:{width:"24px",height:"24px",marginLeft:"8px",color:"#666666"},onClick:()=>{navigator.clipboard.writeText(w)},children:f.jsx(vk,{})})})]})})]}),f.jsx(j0,{open:l,onClose:()=>c(!1),result:e.result||"",title:"Results"}),e.result&&f.jsxs(ku,{sx:{position:"relative"},children:[f.jsx(T.Box,{sx:{paddingTop:"24px"},children:f.jsx(Yl,{result:e.result,minHeight:300,maxHeight:1e3})}),f.jsx(T.Box,{sx:{position:"absolute",bottom:0,left:0,right:0,height:"40px",background:"linear-gradient(transparent, rgba(255, 255, 255, 0.9))",pointerEvents:"none",zIndex:1}}),f.jsxs(T.Stack,{sx:{position:"absolute",top:"8px",right:"8px",flexDirection:"row",gap:"8px",alignItems:"center",zIndex:2},children:[!n&&f.jsx(T.IconButton,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px"},onClick:S=>{S.stopPropagation(),a(!0)},children:f.jsx(F0,{sx:{fontSize:"18px",color:"#666666"}})}),f.jsx(T.IconButton,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px"},onClick:()=>c(!0),children:f.jsx(ba,{sx:{fontSize:"18px",color:"#666666"}})})]})]})]})}const AI=new Gg(new Yt);function y1({notebookPath:e}){const{projectName:t,packageName:n,versionId:r}=zn(),{data:o,isSuccess:a,isError:i,error:s}=un({queryKey:["notebook",t,n,e,r],queryFn:async l=>(await AI.getNotebook(t,n,e,r,l)).data});return f.jsx(rC,{children:f.jsx(oC,{children:f.jsxs(T.Stack,{spacing:3,component:"section",children:[!a&&!i&&f.jsx(an,{text:"Fetching Notebook..."}),a&&o.notebookCells?.map((l,c)=>f.jsx(kI,{cell:l,notebookPath:e},c)),i&&s.status===404&&f.jsxs(T.Typography,{variant:"body2",sx:{color:"#666666"},children:[f.jsx("code",{children:`${t} > ${n} > ${e}`})," ","not found."]}),i&&s.status!==404&&f.jsx(sn,{error:s,context:`${t} > ${n} > ${e}`})]})})})}const II=new jl(new Yt);function b1(e,t){const{projectName:n,packageName:r,versionId:o}=zn(),a=t||o;return un({queryKey:["package",n,r,e,a],queryFn:async i=>(await II.getModel(n,r,e,a,i)).data})}const _I=pt(f.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}));let DI=class Os{constructor(t,n){G(this,"isSaved");G(this,"workbookStorage");this.workbookData=n,this.workbookStorage=t,this.workbookData?this.isSaved=!0:(this.workbookData={models:[],cells:[],workbookPath:void 0},this.isSaved=!1)}getWorkbookData(){return this.workbookData}getWorkbookPath(){return this.workbookData.workbookPath}async renameWorkbook(t){if(this.workbookData.workbookPath.path!==t)try{await this.workbookStorage.moveWorkbook(this.workbookData.workbookPath,{path:t,workspace:this.workbookData.workbookPath.workspace})}catch{}return this.workbookData.workbookPath.path=t,this.isSaved=!1,await this.saveWorkbook()}getCells(){return this.workbookData.cells}deleteCell(t){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),...this.workbookData.cells.slice(t+1)],this.isSaved=!1,this}insertCell(t,n){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),n,...this.workbookData.cells.slice(t)],this.isSaved=!1,this}setCell(t,n){return this.workbookData.cells[t]=n,this.isSaved=!1,this}setModels(t){return this.workbookData.models=t,this.isSaved=!1,this}getModels(){return this.workbookData.models}updateWorkbookData(t){return this.workbookData=t,this.isSaved=!1,this}async saveWorkbook(){if(!this.isSaved){if(!this.workbookData.workbookPath)throw new Error("Workbook path is not set");await this.workbookStorage.saveWorkbook(this.workbookData.workbookPath,JSON.stringify(this.workbookData)),this.isSaved=!0}return new Os(this.workbookStorage,this.workbookData)}toMalloyWorkbook(){return this.workbookData.cells.map(t=>t.isMarkdown?`>>>markdown
106
106
  `+t.value:`>>>malloy
107
107
  import {${t.sourceName}}" from '${t.modelPath}'"
108
108
  `+t.value+`
109
109
  `).join(`
110
110
  `)}static newWorkbook(t){return new Os(t,void 0)}static async loadWorkbook(t,n){let r;try{const o=await t.getWorkbook(n);o&&(r=JSON.parse(o))}catch{r={models:[],cells:[],workbookPath:n}}return new Os(t,r)}};const E1=O.createContext(void 0),wI=({server:e=`${window.location.protocol}//${window.location.host}/api/v0`,getAccessToken:t,children:n})=>{const r={server:e,getAccessToken:t};return f.jsx(E1.Provider,{value:r,children:n})},th=()=>{const e=O.useContext(E1);if(e===void 0)throw new Error("useServer must be used within a ServerProvider");return e},ys=pt(f.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),ef=pt(f.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"})),NI=pt(f.jsx("path",{d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5m-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4zm-3-4h8v2H8z"}));const Jl=function(e){if(e==null)return $I;if(typeof e=="function")return Zl(e);if(typeof e=="object")return Array.isArray(e)?PI(e):RI(e);if(typeof e=="string")return LI(e);throw new Error("Expected function, string, or object as test")};function PI(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Jl(e[n]);return Zl(r);function r(...o){let a=-1;for(;++a<t.length;)if(t[a].apply(this,o))return!0;return!1}}function RI(e){const t=e;return Zl(n);function n(r){const o=r;let a;for(a in e)if(o[a]!==t[a])return!1;return!0}}function LI(e){return Zl(t);function t(n){return n&&n.type===e}}function Zl(e){return t;function t(n,r,o){return!!(OI(n)&&e.call(this,n,typeof r=="number"?r:void 0,o||void 0))}}function $I(){return!0}function OI(e){return e!==null&&typeof e=="object"&&"type"in e}const x1=[],MI=!0,ml=!1,ui="skip";function T1(e,t,n,r){let o;typeof t=="function"&&typeof n!="function"?(r=n,n=t):o=t;const a=Jl(o),i=r?-1:1;s(e,void 0,[])();function s(l,c,d){const u=l&&typeof l=="object"?l:{};if(typeof u.type=="string"){const p=typeof u.tagName=="string"?u.tagName:typeof u.name=="string"?u.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(l.type+(p?"<"+p+">":""))+")"})}return h;function h(){let p=x1,g,b,x;if((!t||a(l,c,d[d.length-1]||void 0))&&(p=FI(n(l,d)),p[0]===ml))return p;if("children"in l&&l.children){const E=l;if(E.children&&p[0]!==ui)for(b=(r?E.children.length:-1)+i,x=d.concat(E);b>-1&&b<E.children.length;){const v=E.children[b];if(g=s(v,b,x)(),g[0]===ml)return g;b=typeof g[1]=="number"?g[1]:b+i}}return p}}}function FI(e){return Array.isArray(e)?e:typeof e=="number"?[MI,e]:e==null?x1:[e]}function xn(e,t,n,r){let o,a,i;typeof t=="function"&&typeof n!="function"?(a=void 0,i=t,o=n):(a=t,i=n,o=r),T1(e,a,s,o);function s(l,c){const d=c[c.length-1],u=d?d.children.indexOf(l):void 0;return i(l,u,d)}}const BI=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,jI=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,HI=({legacyTitle:e=!1,tagName:t="div"}={})=>n=>{xn(n,"blockquote",(r,o,a)=>{let i="",s="",l=!0,c=r.children.map(d=>{if(l&&d.type==="paragraph"){const u=d.children[0],h=u.type==="text"?u.value:"",p=e?jI:BI,g=h.match(p);if(g&&(l=!1,i=g[1].toLocaleLowerCase(),s=e&&g[2]||i.toLocaleUpperCase(),h.includes(`
111
111
  `)&&(d.children[0]={type:"text",value:h.replace(p,"").replace(/^\n+/,"")}),!h.includes(`
112
- `))){const b=[];d.children.forEach((x,E)=>{E!=0&&(E==1&&x.type==="break"||b.push(x))}),d.children=[...b]}}return d});i&&(r.data={hName:t,hProperties:{class:`markdown-alert markdown-alert-${i}`,dir:"auto"}},c.unshift({type:"paragraph",children:[UI(i),{type:"text",value:s.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),r.children=[...c]})};function UI(e){let t=zI[e]??"";return{type:"emphasis",data:{hName:"svg",hProperties:{class:"octicon",viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:t}},children:[]}]}}const zI={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"};function GI(e,t){if(typeof document>"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let o=!1;try{o=!!document.execCommand("copy")}catch{o=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(o)}function C1(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?C1(t.parentElement):null}function qI(e){var t=n=>{var r=C1(n.target);r&&(r.classList.add("active"),GI(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};O.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var o;(o=e.current)==null||o.removeEventListener("click",t,!1)}},[e])}function _n(e,t,n,r){const o=e.length;let a=0,i;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function On(e,t){return e.length>0?(_n(e,e.length,0,t),e):t}const tf={}.hasOwnProperty;function v1(e){const t={};let n=-1;for(;++n<e.length;)WI(t,e[n]);return t}function WI(e,t){let n;for(n in t){const r=(tf.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){tf.call(r,a)||(r[a]=[]);const i=o[a];VI(r[a],Array.isArray(i)?i:i?[i]:[])}}}function VI(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);_n(e,0,0,r)}const fn=to(/[A-Za-z]/),on=to(/[\dA-Za-z]/),YI=to(/[#-'*+\--9=?A-Z^-~]/);function gl(e){return e!==null&&(e<32||e===127)}const zu=to(/\d/),KI=to(/[\dA-Fa-f]/),QI=to(/[!-/:-@[-`{-~]/);function we(e){return e!==null&&e<-2}function ut(e){return e!==null&&(e<0||e===32)}function He(e){return e===-2||e===-1||e===32}const ec=to(/\p{P}|\p{S}/u),Do=to(/\s/);function to(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}const XI={tokenize:r_,partial:!0},S1={tokenize:o_,partial:!0},k1={tokenize:a_,partial:!0},A1={tokenize:i_,partial:!0},JI={tokenize:s_,partial:!0},I1={name:"wwwAutolink",tokenize:t_,previous:D1},_1={name:"protocolAutolink",tokenize:n_,previous:w1},$r={name:"emailAutolink",tokenize:e_,previous:N1},pr={};function ZI(){return{text:pr}}let lo=48;for(;lo<123;)pr[lo]=$r,lo++,lo===58?lo=65:lo===91&&(lo=97);pr[43]=$r;pr[45]=$r;pr[46]=$r;pr[95]=$r;pr[72]=[$r,_1];pr[104]=[$r,_1];pr[87]=[$r,I1];pr[119]=[$r,I1];function e_(e,t,n){const r=this;let o,a;return i;function i(u){return!Gu(u)||!N1.call(r,r.previous)||nh(r.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(u))}function s(u){return Gu(u)?(e.consume(u),s):u===64?(e.consume(u),l):n(u)}function l(u){return u===46?e.check(JI,d,c)(u):u===45||u===95||on(u)?(a=!0,e.consume(u),l):d(u)}function c(u){return e.consume(u),o=!0,l}function d(u){return a&&o&&fn(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(u)):n(u)}}function t_(e,t,n){const r=this;return o;function o(i){return i!==87&&i!==119||!D1.call(r,r.previous)||nh(r.events)?n(i):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(XI,e.attempt(S1,e.attempt(k1,a),n),n)(i))}function a(i){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(i)}}function n_(e,t,n){const r=this;let o="",a=!1;return i;function i(u){return(u===72||u===104)&&w1.call(r,r.previous)&&!nh(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(u),e.consume(u),s):n(u)}function s(u){if(fn(u)&&o.length<5)return o+=String.fromCodePoint(u),e.consume(u),s;if(u===58){const h=o.toLowerCase();if(h==="http"||h==="https")return e.consume(u),l}return n(u)}function l(u){return u===47?(e.consume(u),a?c:(a=!0,l)):n(u)}function c(u){return u===null||gl(u)||ut(u)||Do(u)||ec(u)?n(u):e.attempt(S1,e.attempt(k1,d),n)(u)}function d(u){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(u)}}function r_(e,t,n){let r=0;return o;function o(i){return(i===87||i===119)&&r<3?(r++,e.consume(i),o):i===46&&r===3?(e.consume(i),a):n(i)}function a(i){return i===null?n(i):t(i)}}function o_(e,t,n){let r,o,a;return i;function i(c){return c===46||c===95?e.check(A1,l,s)(c):c===null||ut(c)||Do(c)||c!==45&&ec(c)?l(c):(a=!0,e.consume(c),i)}function s(c){return c===95?r=!0:(o=r,r=void 0),e.consume(c),i}function l(c){return o||r||!a?n(c):t(c)}}function a_(e,t){let n=0,r=0;return o;function o(i){return i===40?(n++,e.consume(i),o):i===41&&r<n?a(i):i===33||i===34||i===38||i===39||i===41||i===42||i===44||i===46||i===58||i===59||i===60||i===63||i===93||i===95||i===126?e.check(A1,t,a)(i):i===null||ut(i)||Do(i)?t(i):(e.consume(i),o)}function a(i){return i===41&&r++,e.consume(i),o}}function i_(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),a):s===93?(e.consume(s),o):s===60||s===null||ut(s)||Do(s)?t(s):n(s)}function o(s){return s===null||s===40||s===91||ut(s)||Do(s)?t(s):r(s)}function a(s){return fn(s)?i(s):n(s)}function i(s){return s===59?(e.consume(s),r):fn(s)?(e.consume(s),i):n(s)}}function s_(e,t,n){return r;function r(a){return e.consume(a),o}function o(a){return on(a)?n(a):t(a)}}function D1(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ut(e)}function w1(e){return!fn(e)}function N1(e){return!(e===47||Gu(e))}function Gu(e){return e===43||e===45||e===46||e===95||on(e)}function nh(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function ze(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let a=0;return i;function i(l){return He(l)?(e.enter(n),s(l)):t(l)}function s(l){return He(l)&&a++<o?(e.consume(l),s):(e.exit(n),t(l))}}function Yn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Yi={partial:!0,tokenize:l_};function l_(e,t,n){return r;function r(a){return He(a)?ze(e,o,"linePrefix")(a):o(a)}function o(a){return a===null||we(a)?t(a):n(a)}}const c_={tokenize:y_,partial:!0};function u_(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:f_,continuation:{tokenize:m_},exit:g_}},text:{91:{name:"gfmFootnoteCall",tokenize:p_},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:d_,resolveTo:h_}}}}function d_(e,t,n){const r=this;let o=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;o--;){const l=r.events[o][1];if(l.type==="labelImage"){i=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!i||!i._balanced)return n(l);const c=Yn(r.sliceSerialize({start:i.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function h_(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function p_(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,i;return s;function s(u){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),l}function l(u){return u!==94?n(u):(e.enter("gfmFootnoteCallMarker"),e.consume(u),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(u){if(a>999||u===93&&!i||u===null||u===91||ut(u))return n(u);if(u===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return o.includes(Yn(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(u)}return ut(u)||(i=!0),a++,e.consume(u),u===92?d:c}function d(u){return u===91||u===92||u===93?(e.consume(u),a++,c):c(u)}}function f_(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,i=0,s;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(g)}function d(g){if(i>999||g===93&&!s||g===null||g===91||ut(g))return n(g);if(g===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return a=Yn(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return ut(g)||(s=!0),i++,e.consume(g),g===92?u:d}function u(g){return g===91||g===92||g===93?(e.consume(g),i++,d):d(g)}function h(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),o.includes(a)||o.push(a),ze(e,p,"gfmFootnoteDefinitionWhitespace")):n(g)}function p(g){return t(g)}}function m_(e,t,n){return e.check(Yi,t,e.attempt(c_,t,n))}function g_(e){e.exit("gfmFootnoteDefinition")}function y_(e,t,n){const r=this;return ze(e,o,"gfmFootnoteDefinitionIndent",5);function o(a){const i=r.events[r.events.length-1];return i&&i[1].type==="gfmFootnoteDefinitionIndent"&&i[2].sliceSerialize(i[1],!0).length===4?t(a):n(a)}}function xa(e){if(e===null||ut(e)||Do(e))return 1;if(ec(e))return 2}function tc(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const a=e[o].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}function b_(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:o,resolveAll:r};return t==null&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(a,i){let s=-1;for(;++s<a.length;)if(a[s][0]==="enter"&&a[s][1].type==="strikethroughSequenceTemporary"&&a[s][1]._close){let l=s;for(;l--;)if(a[l][0]==="exit"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._open&&a[s][1].end.offset-a[s][1].start.offset===a[l][1].end.offset-a[l][1].start.offset){a[s][1].type="strikethroughSequence",a[l][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},a[l][1].start),end:Object.assign({},a[s][1].end)},d={type:"strikethroughText",start:Object.assign({},a[l][1].end),end:Object.assign({},a[s][1].start)},u=[["enter",c,i],["enter",a[l][1],i],["exit",a[l][1],i],["enter",d,i]],h=i.parser.constructs.insideSpan.null;h&&_n(u,u.length,0,tc(h,a.slice(l+1,s),i)),_n(u,u.length,0,[["exit",d,i],["enter",a[s][1],i],["exit",a[s][1],i],["exit",c,i]]),_n(a,l-1,s-l+3,u),s=l+u.length-2;break}}for(s=-1;++s<a.length;)a[s][1].type==="strikethroughSequenceTemporary"&&(a[s][1].type="data");return a}function o(a,i,s){const l=this.previous,c=this.events;let d=0;return u;function u(p){return l===126&&c[c.length-1][1].type!=="characterEscape"?s(p):(a.enter("strikethroughSequenceTemporary"),h(p))}function h(p){const g=xa(l);if(p===126)return d>1?s(p):(a.consume(p),d++,h);if(d<2&&!t)return s(p);const b=a.exit("strikethroughSequenceTemporary"),x=xa(p);return b._open=!x||x===2&&!!g,b._close=!g||g===2&&!!x,i(p)}}}let E_=class{constructor(){this.map=[]}add(t,n,r){x_(this,t,n,r)}consume(t){if(this.map.sort(function(a,i){return a[0]-i[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let o=r.pop();for(;o;){for(const a of o)t.push(a);o=r.pop()}this.map.length=0}};function x_(e,t,n,r){let o=0;if(!(n===0&&r.length===0)){for(;o<e.map.length;){if(e.map[o][0]===t){e.map[o][1]+=n,e.map[o][2].push(...r);return}o+=1}e.map.push([t,n,r])}}function T_(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if(o[0]==="enter")o[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function C_(){return{flow:{null:{name:"table",tokenize:v_,resolveAll:S_}}}}function v_(e,t,n){const r=this;let o=0,a=0,i;return s;function s(y){let R=r.events.length-1;for(;R>-1;){const U=r.events[R][1].type;if(U==="lineEnding"||U==="linePrefix")R--;else break}const F=R>-1?r.events[R][1].type:null,$=F==="tableHead"||F==="tableRow"?S:l;return $===S&&r.parser.lazy[r.now().line]?n(y):$(y)}function l(y){return e.enter("tableHead"),e.enter("tableRow"),c(y)}function c(y){return y===124||(i=!0,a+=1),d(y)}function d(y){return y===null?n(y):we(y)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),p):n(y):He(y)?ze(e,d,"whitespace")(y):(a+=1,i&&(i=!1,o+=1),y===124?(e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),i=!0,d):(e.enter("data"),u(y)))}function u(y){return y===null||y===124||ut(y)?(e.exit("data"),d(y)):(e.consume(y),y===92?h:u)}function h(y){return y===92||y===124?(e.consume(y),u):u(y)}function p(y){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(y):(e.enter("tableDelimiterRow"),i=!1,He(y)?ze(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(y):g(y))}function g(y){return y===45||y===58?x(y):y===124?(i=!0,e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),b):N(y)}function b(y){return He(y)?ze(e,x,"whitespace")(y):x(y)}function x(y){return y===58?(a+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(y),e.exit("tableDelimiterMarker"),E):y===45?(a+=1,E(y)):y===null||we(y)?I(y):N(y)}function E(y){return y===45?(e.enter("tableDelimiterFiller"),v(y)):N(y)}function v(y){return y===45?(e.consume(y),v):y===58?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(y),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(y))}function C(y){return He(y)?ze(e,I,"whitespace")(y):I(y)}function I(y){return y===124?g(y):y===null||we(y)?!i||o!==a?N(y):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(y)):N(y)}function N(y){return n(y)}function S(y){return e.enter("tableRow"),M(y)}function M(y){return y===124?(e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),M):y===null||we(y)?(e.exit("tableRow"),t(y)):He(y)?ze(e,M,"whitespace")(y):(e.enter("data"),q(y))}function q(y){return y===null||y===124||ut(y)?(e.exit("data"),M(y)):(e.consume(y),y===92?B:q)}function B(y){return y===92||y===124?(e.consume(y),q):q(y)}}function S_(e,t){let n=-1,r=!0,o=0,a=[0,0,0,0],i=[0,0,0,0],s=!1,l=0,c,d,u;const h=new E_;for(;++n<e.length;){const p=e[n],g=p[1];p[0]==="enter"?g.type==="tableHead"?(s=!1,l!==0&&(nf(h,t,l,c,d),d=void 0,l=0),c={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},h.add(n,0,[["enter",c,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,u=void 0,a=[0,0,0,0],i=[0,n+1,0,0],s&&(s=!1,d={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},h.add(n,0,[["enter",d,t]])),o=g.type==="tableDelimiterRow"?2:d?3:1):o&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,i[2]===0&&(a[1]!==0&&(i[0]=i[1],u=bs(h,t,a,o,void 0,u),a=[0,0,0,0]),i[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(i[0]=i[1],u=bs(h,t,a,o,void 0,u)),a=i,i=[a[1],n,0,0])):g.type==="tableHead"?(s=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,a[1]!==0?(i[0]=i[1],u=bs(h,t,a,o,n,u)):i[1]!==0&&(u=bs(h,t,i,o,n,u)),o=0):o&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(i[3]=n)}for(l!==0&&nf(h,t,l,c,d),h.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=T_(t.events,n))}return e}function bs(e,t,n,r,o,a){const i=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(a.end=Object.assign({},ia(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const l=ia(t.events,n[1]);if(a={type:i,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const c=ia(t.events,n[2]),d=ia(t.events,n[3]),u={type:s,start:Object.assign({},c),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",u,t]]),r!==2){const h=t.events[n[2]],p=t.events[n[3]];if(h[1].end=Object.assign({},p[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,b=n[3]-n[2]-1;e.add(g,b,[])}}e.add(n[3]+1,0,[["exit",u,t]])}return o!==void 0&&(a.end=Object.assign({},ia(t.events,o)),e.add(o,0,[["exit",a,t]]),a=void 0),a}function nf(e,t,n,r,o){const a=[],i=ia(t.events,n);o&&(o.end=Object.assign({},i),a.push(["exit",o,t])),r.end=Object.assign({},i),a.push(["exit",r,t]),e.add(n+1,0,a)}function ia(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const k_={name:"tasklistCheck",tokenize:I_};function A_(){return{text:{91:k_}}}function I_(e,t,n){const r=this;return o;function o(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return ut(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),i):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),i):n(l)}function i(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return we(l)?t(l):He(l)?e.check({tokenize:__},t,n)(l):n(l)}}function __(e,t,n){return ze(e,r,"whitespace");function r(o){return o===null?n(o):t(o)}}function D_(e){return v1([ZI(),u_(),b_(e),C_(),A_()])}function w_(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function N_(e,t,n){const r=Jl((n||{}).ignore||[]),o=P_(t);let a=-1;for(;++a<o.length;)T1(e,"text",i);function i(l,c){let d=-1,u;for(;++d<c.length;){const h=c[d],p=u?u.children:void 0;if(r(h,p?p.indexOf(h):void 0,u))return;u=h}if(u)return s(l,c)}function s(l,c){const d=c[c.length-1],u=o[a][0],h=o[a][1];let p=0;const g=d.children.indexOf(l);let b=!1,x=[];u.lastIndex=0;let E=u.exec(l.value);for(;E;){const v=E.index,C={index:E.index,input:E.input,stack:[...c,l]};let I=h(...E,C);if(typeof I=="string"&&(I=I.length>0?{type:"text",value:I}:void 0),I===!1?u.lastIndex=v+1:(p!==v&&x.push({type:"text",value:l.value.slice(p,v)}),Array.isArray(I)?x.push(...I):I&&x.push(I),p=v+E[0].length,b=!0),!u.global)break;E=u.exec(l.value)}return b?(p<l.value.length&&x.push({type:"text",value:l.value.slice(p)}),d.children.splice(g,1,...x)):x=[l],g+x.length}}function P_(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const o=n[r];t.push([R_(o[0]),L_(o[1])])}return t}function R_(e){return typeof e=="string"?new RegExp(w_(e),"g"):e}function L_(e){return typeof e=="function"?e:function(){return e}}const Bc="phrasing",jc=["autolink","link","image","label"];function $_(){return{transforms:[U_],enter:{literalAutolink:M_,literalAutolinkEmail:Hc,literalAutolinkHttp:Hc,literalAutolinkWww:Hc},exit:{literalAutolink:H_,literalAutolinkEmail:j_,literalAutolinkHttp:F_,literalAutolinkWww:B_}}}function O_(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Bc,notInConstruct:jc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Bc,notInConstruct:jc},{character:":",before:"[ps]",after:"\\/",inConstruct:Bc,notInConstruct:jc}]}}function M_(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Hc(e){this.config.enter.autolinkProtocol.call(this,e)}function F_(e){this.config.exit.autolinkProtocol.call(this,e)}function B_(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function j_(e){this.config.exit.autolinkEmail.call(this,e)}function H_(e){this.exit(e)}function U_(e){N_(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,z_],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,G_]],{ignore:["link","linkReference"]})}function z_(e,t,n,r,o){let a="";if(!P1(o)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!q_(n)))return!1;const i=W_(n+r);if(!i[0])return!1;const s={type:"link",title:null,url:a+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[s,{type:"text",value:i[1]}]:s}function G_(e,t,n,r){return!P1(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function q_(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function W_(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=il(e,"(");let a=il(e,")");for(;r!==-1&&o>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function P1(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Do(n)||ec(n))&&(!t||n!==47)}R1.peek=tD;function V_(){this.buffer()}function Y_(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function K_(){this.buffer()}function Q_(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function X_(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Yn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function J_(e){this.exit(e)}function Z_(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Yn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function eD(e){this.exit(e)}function tD(){return"["}function R1(e,t,n,r){const o=n.createTracker(r);let a=o.move("[^");const i=n.enter("footnoteReference"),s=n.enter("reference");return a+=o.move(n.safe(n.associationId(e),{after:"]",before:a})),s(),i(),a+=o.move("]"),a}function nD(){return{enter:{gfmFootnoteCallString:V_,gfmFootnoteCall:Y_,gfmFootnoteDefinitionLabelString:K_,gfmFootnoteDefinition:Q_},exit:{gfmFootnoteCallString:X_,gfmFootnoteCall:J_,gfmFootnoteDefinitionLabelString:Z_,gfmFootnoteDefinition:eD}}}function rD(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:R1},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,o,a,i){const s=a.createTracker(i);let l=s.move("[^");const c=a.enter("footnoteDefinition"),d=a.enter("label");return l+=s.move(a.safe(a.associationId(r),{before:l,after:"]"})),d(),l+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),l+=s.move((t?`
113
- `:" ")+a.indentLines(a.containerFlow(r,s.current()),t?L1:oD))),c(),l}}function oD(e,t,n){return t===0?e:L1(e,t,n)}function L1(e,t,n){return(n?"":" ")+e}const aD=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];$1.peek=uD;function iD(){return{canContainEols:["delete"],enter:{strikethrough:lD},exit:{strikethrough:cD}}}function sD(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:aD}],handlers:{delete:$1}}}function lD(e){this.enter({type:"delete",children:[]},e)}function cD(e){this.exit(e)}function $1(e,t,n,r){const o=n.createTracker(r),a=n.enter("strikethrough");let i=o.move("~~");return i+=n.containerPhrasing(e,{...o.current(),before:i,after:"~"}),i+=o.move("~~"),a(),i}function uD(){return"~"}function dD(e){return e.length}function hD(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||dD,a=[],i=[],s=[],l=[];let c=0,d=-1;for(;++d<e.length;){const b=[],x=[];let E=-1;for(e[d].length>c&&(c=e[d].length);++E<e[d].length;){const v=pD(e[d][E]);if(n.alignDelimiters!==!1){const C=o(v);x[E]=C,(l[E]===void 0||C>l[E])&&(l[E]=C)}b.push(v)}i[d]=b,s[d]=x}let u=-1;if(typeof r=="object"&&"length"in r)for(;++u<c;)a[u]=rf(r[u]);else{const b=rf(r);for(;++u<c;)a[u]=b}u=-1;const h=[],p=[];for(;++u<c;){const b=a[u];let x="",E="";b===99?(x=":",E=":"):b===108?x=":":b===114&&(E=":");let v=n.alignDelimiters===!1?1:Math.max(1,l[u]-x.length-E.length);const C=x+"-".repeat(v)+E;n.alignDelimiters!==!1&&(v=x.length+v+E.length,v>l[u]&&(l[u]=v),p[u]=v),h[u]=C}i.splice(1,0,h),s.splice(1,0,p),d=-1;const g=[];for(;++d<i.length;){const b=i[d],x=s[d];u=-1;const E=[];for(;++u<c;){const v=b[u]||"";let C="",I="";if(n.alignDelimiters!==!1){const N=l[u]-(x[u]||0),S=a[u];S===114?C=" ".repeat(N):S===99?N%2?(C=" ".repeat(N/2+.5),I=" ".repeat(N/2-.5)):(C=" ".repeat(N/2),I=C):I=" ".repeat(N)}n.delimiterStart!==!1&&!u&&E.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&v==="")&&(n.delimiterStart!==!1||u)&&E.push(" "),n.alignDelimiters!==!1&&E.push(C),E.push(v),n.alignDelimiters!==!1&&E.push(I),n.padding!==!1&&E.push(" "),(n.delimiterEnd!==!1||u!==c-1)&&E.push("|")}g.push(n.delimiterEnd===!1?E.join("").replace(/ +$/,""):E.join(""))}return g.join(`
112
+ `))){const b=[];d.children.forEach((x,E)=>{E!=0&&(E==1&&x.type==="break"||b.push(x))}),d.children=[...b]}}return d});i&&(r.data={hName:t,hProperties:{class:`markdown-alert markdown-alert-${i}`,dir:"auto"}},c.unshift({type:"paragraph",children:[UI(i),{type:"text",value:s.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),r.children=[...c]})};function UI(e){let t=zI[e]??"";return{type:"emphasis",data:{hName:"svg",hProperties:{class:"octicon",viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:t}},children:[]}]}}const zI={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"};function GI(e,t){if(typeof document>"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let o=!1;try{o=!!document.execCommand("copy")}catch{o=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(o)}function C1(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?C1(t.parentElement):null}function qI(e){var t=n=>{var r=C1(n.target);r&&(r.classList.add("active"),GI(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};O.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var o;(o=e.current)==null||o.removeEventListener("click",t,!1)}},[e])}function _n(e,t,n,r){const o=e.length;let a=0,i;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function On(e,t){return e.length>0?(_n(e,e.length,0,t),e):t}const tf={}.hasOwnProperty;function v1(e){const t={};let n=-1;for(;++n<e.length;)WI(t,e[n]);return t}function WI(e,t){let n;for(n in t){const r=(tf.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){tf.call(r,a)||(r[a]=[]);const i=o[a];VI(r[a],Array.isArray(i)?i:i?[i]:[])}}}function VI(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);_n(e,0,0,r)}const fn=to(/[A-Za-z]/),on=to(/[\dA-Za-z]/),YI=to(/[#-'*+\--9=?A-Z^-~]/);function gl(e){return e!==null&&(e<32||e===127)}const zu=to(/\d/),KI=to(/[\dA-Fa-f]/),QI=to(/[!-/:-@[-`{-~]/);function we(e){return e!==null&&e<-2}function ut(e){return e!==null&&(e<0||e===32)}function He(e){return e===-2||e===-1||e===32}const ec=to(/\p{P}|\p{S}/u),Do=to(/\s/);function to(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}const XI={tokenize:r_,partial:!0},S1={tokenize:o_,partial:!0},k1={tokenize:a_,partial:!0},A1={tokenize:i_,partial:!0},JI={tokenize:s_,partial:!0},I1={name:"wwwAutolink",tokenize:t_,previous:D1},_1={name:"protocolAutolink",tokenize:n_,previous:w1},$r={name:"emailAutolink",tokenize:e_,previous:N1},pr={};function ZI(){return{text:pr}}let lo=48;for(;lo<123;)pr[lo]=$r,lo++,lo===58?lo=65:lo===91&&(lo=97);pr[43]=$r;pr[45]=$r;pr[46]=$r;pr[95]=$r;pr[72]=[$r,_1];pr[104]=[$r,_1];pr[87]=[$r,I1];pr[119]=[$r,I1];function e_(e,t,n){const r=this;let o,a;return i;function i(u){return!Gu(u)||!N1.call(r,r.previous)||nh(r.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(u))}function s(u){return Gu(u)?(e.consume(u),s):u===64?(e.consume(u),l):n(u)}function l(u){return u===46?e.check(JI,d,c)(u):u===45||u===95||on(u)?(a=!0,e.consume(u),l):d(u)}function c(u){return e.consume(u),o=!0,l}function d(u){return a&&o&&fn(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(u)):n(u)}}function t_(e,t,n){const r=this;return o;function o(i){return i!==87&&i!==119||!D1.call(r,r.previous)||nh(r.events)?n(i):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(XI,e.attempt(S1,e.attempt(k1,a),n),n)(i))}function a(i){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(i)}}function n_(e,t,n){const r=this;let o="",a=!1;return i;function i(u){return(u===72||u===104)&&w1.call(r,r.previous)&&!nh(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(u),e.consume(u),s):n(u)}function s(u){if(fn(u)&&o.length<5)return o+=String.fromCodePoint(u),e.consume(u),s;if(u===58){const h=o.toLowerCase();if(h==="http"||h==="https")return e.consume(u),l}return n(u)}function l(u){return u===47?(e.consume(u),a?c:(a=!0,l)):n(u)}function c(u){return u===null||gl(u)||ut(u)||Do(u)||ec(u)?n(u):e.attempt(S1,e.attempt(k1,d),n)(u)}function d(u){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(u)}}function r_(e,t,n){let r=0;return o;function o(i){return(i===87||i===119)&&r<3?(r++,e.consume(i),o):i===46&&r===3?(e.consume(i),a):n(i)}function a(i){return i===null?n(i):t(i)}}function o_(e,t,n){let r,o,a;return i;function i(c){return c===46||c===95?e.check(A1,l,s)(c):c===null||ut(c)||Do(c)||c!==45&&ec(c)?l(c):(a=!0,e.consume(c),i)}function s(c){return c===95?r=!0:(o=r,r=void 0),e.consume(c),i}function l(c){return o||r||!a?n(c):t(c)}}function a_(e,t){let n=0,r=0;return o;function o(i){return i===40?(n++,e.consume(i),o):i===41&&r<n?a(i):i===33||i===34||i===38||i===39||i===41||i===42||i===44||i===46||i===58||i===59||i===60||i===63||i===93||i===95||i===126?e.check(A1,t,a)(i):i===null||ut(i)||Do(i)?t(i):(e.consume(i),o)}function a(i){return i===41&&r++,e.consume(i),o}}function i_(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),a):s===93?(e.consume(s),o):s===60||s===null||ut(s)||Do(s)?t(s):n(s)}function o(s){return s===null||s===40||s===91||ut(s)||Do(s)?t(s):r(s)}function a(s){return fn(s)?i(s):n(s)}function i(s){return s===59?(e.consume(s),r):fn(s)?(e.consume(s),i):n(s)}}function s_(e,t,n){return r;function r(a){return e.consume(a),o}function o(a){return on(a)?n(a):t(a)}}function D1(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ut(e)}function w1(e){return!fn(e)}function N1(e){return!(e===47||Gu(e))}function Gu(e){return e===43||e===45||e===46||e===95||on(e)}function nh(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function ze(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let a=0;return i;function i(l){return He(l)?(e.enter(n),s(l)):t(l)}function s(l){return He(l)&&a++<o?(e.consume(l),s):(e.exit(n),t(l))}}function Yn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Yi={partial:!0,tokenize:l_};function l_(e,t,n){return r;function r(a){return He(a)?ze(e,o,"linePrefix")(a):o(a)}function o(a){return a===null||we(a)?t(a):n(a)}}const c_={tokenize:y_,partial:!0};function u_(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:f_,continuation:{tokenize:m_},exit:g_}},text:{91:{name:"gfmFootnoteCall",tokenize:p_},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:d_,resolveTo:h_}}}}function d_(e,t,n){const r=this;let o=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;o--;){const l=r.events[o][1];if(l.type==="labelImage"){i=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!i||!i._balanced)return n(l);const c=Yn(r.sliceSerialize({start:i.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function h_(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function p_(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,i;return s;function s(u){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),l}function l(u){return u!==94?n(u):(e.enter("gfmFootnoteCallMarker"),e.consume(u),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(u){if(a>999||u===93&&!i||u===null||u===91||ut(u))return n(u);if(u===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return o.includes(Yn(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(u)}return ut(u)||(i=!0),a++,e.consume(u),u===92?d:c}function d(u){return u===91||u===92||u===93?(e.consume(u),a++,c):c(u)}}function f_(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,i=0,s;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(g)}function d(g){if(i>999||g===93&&!s||g===null||g===91||ut(g))return n(g);if(g===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return a=Yn(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return ut(g)||(s=!0),i++,e.consume(g),g===92?u:d}function u(g){return g===91||g===92||g===93?(e.consume(g),i++,d):d(g)}function h(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),o.includes(a)||o.push(a),ze(e,p,"gfmFootnoteDefinitionWhitespace")):n(g)}function p(g){return t(g)}}function m_(e,t,n){return e.check(Yi,t,e.attempt(c_,t,n))}function g_(e){e.exit("gfmFootnoteDefinition")}function y_(e,t,n){const r=this;return ze(e,o,"gfmFootnoteDefinitionIndent",5);function o(a){const i=r.events[r.events.length-1];return i&&i[1].type==="gfmFootnoteDefinitionIndent"&&i[2].sliceSerialize(i[1],!0).length===4?t(a):n(a)}}function xa(e){if(e===null||ut(e)||Do(e))return 1;if(ec(e))return 2}function tc(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const a=e[o].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}function b_(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:o,resolveAll:r};return t==null&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(a,i){let s=-1;for(;++s<a.length;)if(a[s][0]==="enter"&&a[s][1].type==="strikethroughSequenceTemporary"&&a[s][1]._close){let l=s;for(;l--;)if(a[l][0]==="exit"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._open&&a[s][1].end.offset-a[s][1].start.offset===a[l][1].end.offset-a[l][1].start.offset){a[s][1].type="strikethroughSequence",a[l][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},a[l][1].start),end:Object.assign({},a[s][1].end)},d={type:"strikethroughText",start:Object.assign({},a[l][1].end),end:Object.assign({},a[s][1].start)},u=[["enter",c,i],["enter",a[l][1],i],["exit",a[l][1],i],["enter",d,i]],h=i.parser.constructs.insideSpan.null;h&&_n(u,u.length,0,tc(h,a.slice(l+1,s),i)),_n(u,u.length,0,[["exit",d,i],["enter",a[s][1],i],["exit",a[s][1],i],["exit",c,i]]),_n(a,l-1,s-l+3,u),s=l+u.length-2;break}}for(s=-1;++s<a.length;)a[s][1].type==="strikethroughSequenceTemporary"&&(a[s][1].type="data");return a}function o(a,i,s){const l=this.previous,c=this.events;let d=0;return u;function u(p){return l===126&&c[c.length-1][1].type!=="characterEscape"?s(p):(a.enter("strikethroughSequenceTemporary"),h(p))}function h(p){const g=xa(l);if(p===126)return d>1?s(p):(a.consume(p),d++,h);if(d<2&&!t)return s(p);const b=a.exit("strikethroughSequenceTemporary"),x=xa(p);return b._open=!x||x===2&&!!g,b._close=!g||g===2&&!!x,i(p)}}}let E_=class{constructor(){this.map=[]}add(t,n,r){x_(this,t,n,r)}consume(t){if(this.map.sort(function(a,i){return a[0]-i[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let o=r.pop();for(;o;){for(const a of o)t.push(a);o=r.pop()}this.map.length=0}};function x_(e,t,n,r){let o=0;if(!(n===0&&r.length===0)){for(;o<e.map.length;){if(e.map[o][0]===t){e.map[o][1]+=n,e.map[o][2].push(...r);return}o+=1}e.map.push([t,n,r])}}function T_(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if(o[0]==="enter")o[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function C_(){return{flow:{null:{name:"table",tokenize:v_,resolveAll:S_}}}}function v_(e,t,n){const r=this;let o=0,a=0,i;return s;function s(y){let R=r.events.length-1;for(;R>-1;){const U=r.events[R][1].type;if(U==="lineEnding"||U==="linePrefix")R--;else break}const F=R>-1?r.events[R][1].type:null,$=F==="tableHead"||F==="tableRow"?S:l;return $===S&&r.parser.lazy[r.now().line]?n(y):$(y)}function l(y){return e.enter("tableHead"),e.enter("tableRow"),c(y)}function c(y){return y===124||(i=!0,a+=1),d(y)}function d(y){return y===null?n(y):we(y)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),p):n(y):He(y)?ze(e,d,"whitespace")(y):(a+=1,i&&(i=!1,o+=1),y===124?(e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),i=!0,d):(e.enter("data"),u(y)))}function u(y){return y===null||y===124||ut(y)?(e.exit("data"),d(y)):(e.consume(y),y===92?h:u)}function h(y){return y===92||y===124?(e.consume(y),u):u(y)}function p(y){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(y):(e.enter("tableDelimiterRow"),i=!1,He(y)?ze(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(y):g(y))}function g(y){return y===45||y===58?x(y):y===124?(i=!0,e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),b):w(y)}function b(y){return He(y)?ze(e,x,"whitespace")(y):x(y)}function x(y){return y===58?(a+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(y),e.exit("tableDelimiterMarker"),E):y===45?(a+=1,E(y)):y===null||we(y)?I(y):w(y)}function E(y){return y===45?(e.enter("tableDelimiterFiller"),v(y)):w(y)}function v(y){return y===45?(e.consume(y),v):y===58?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(y),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(y))}function C(y){return He(y)?ze(e,I,"whitespace")(y):I(y)}function I(y){return y===124?g(y):y===null||we(y)?!i||o!==a?w(y):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(y)):w(y)}function w(y){return n(y)}function S(y){return e.enter("tableRow"),M(y)}function M(y){return y===124?(e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),M):y===null||we(y)?(e.exit("tableRow"),t(y)):He(y)?ze(e,M,"whitespace")(y):(e.enter("data"),q(y))}function q(y){return y===null||y===124||ut(y)?(e.exit("data"),M(y)):(e.consume(y),y===92?B:q)}function B(y){return y===92||y===124?(e.consume(y),q):q(y)}}function S_(e,t){let n=-1,r=!0,o=0,a=[0,0,0,0],i=[0,0,0,0],s=!1,l=0,c,d,u;const h=new E_;for(;++n<e.length;){const p=e[n],g=p[1];p[0]==="enter"?g.type==="tableHead"?(s=!1,l!==0&&(nf(h,t,l,c,d),d=void 0,l=0),c={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},h.add(n,0,[["enter",c,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,u=void 0,a=[0,0,0,0],i=[0,n+1,0,0],s&&(s=!1,d={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},h.add(n,0,[["enter",d,t]])),o=g.type==="tableDelimiterRow"?2:d?3:1):o&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,i[2]===0&&(a[1]!==0&&(i[0]=i[1],u=bs(h,t,a,o,void 0,u),a=[0,0,0,0]),i[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(i[0]=i[1],u=bs(h,t,a,o,void 0,u)),a=i,i=[a[1],n,0,0])):g.type==="tableHead"?(s=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,a[1]!==0?(i[0]=i[1],u=bs(h,t,a,o,n,u)):i[1]!==0&&(u=bs(h,t,i,o,n,u)),o=0):o&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(i[3]=n)}for(l!==0&&nf(h,t,l,c,d),h.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=T_(t.events,n))}return e}function bs(e,t,n,r,o,a){const i=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(a.end=Object.assign({},ia(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const l=ia(t.events,n[1]);if(a={type:i,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const c=ia(t.events,n[2]),d=ia(t.events,n[3]),u={type:s,start:Object.assign({},c),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",u,t]]),r!==2){const h=t.events[n[2]],p=t.events[n[3]];if(h[1].end=Object.assign({},p[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,b=n[3]-n[2]-1;e.add(g,b,[])}}e.add(n[3]+1,0,[["exit",u,t]])}return o!==void 0&&(a.end=Object.assign({},ia(t.events,o)),e.add(o,0,[["exit",a,t]]),a=void 0),a}function nf(e,t,n,r,o){const a=[],i=ia(t.events,n);o&&(o.end=Object.assign({},i),a.push(["exit",o,t])),r.end=Object.assign({},i),a.push(["exit",r,t]),e.add(n+1,0,a)}function ia(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const k_={name:"tasklistCheck",tokenize:I_};function A_(){return{text:{91:k_}}}function I_(e,t,n){const r=this;return o;function o(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return ut(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),i):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),i):n(l)}function i(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return we(l)?t(l):He(l)?e.check({tokenize:__},t,n)(l):n(l)}}function __(e,t,n){return ze(e,r,"whitespace");function r(o){return o===null?n(o):t(o)}}function D_(e){return v1([ZI(),u_(),b_(e),C_(),A_()])}function w_(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function N_(e,t,n){const r=Jl((n||{}).ignore||[]),o=P_(t);let a=-1;for(;++a<o.length;)T1(e,"text",i);function i(l,c){let d=-1,u;for(;++d<c.length;){const h=c[d],p=u?u.children:void 0;if(r(h,p?p.indexOf(h):void 0,u))return;u=h}if(u)return s(l,c)}function s(l,c){const d=c[c.length-1],u=o[a][0],h=o[a][1];let p=0;const g=d.children.indexOf(l);let b=!1,x=[];u.lastIndex=0;let E=u.exec(l.value);for(;E;){const v=E.index,C={index:E.index,input:E.input,stack:[...c,l]};let I=h(...E,C);if(typeof I=="string"&&(I=I.length>0?{type:"text",value:I}:void 0),I===!1?u.lastIndex=v+1:(p!==v&&x.push({type:"text",value:l.value.slice(p,v)}),Array.isArray(I)?x.push(...I):I&&x.push(I),p=v+E[0].length,b=!0),!u.global)break;E=u.exec(l.value)}return b?(p<l.value.length&&x.push({type:"text",value:l.value.slice(p)}),d.children.splice(g,1,...x)):x=[l],g+x.length}}function P_(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const o=n[r];t.push([R_(o[0]),L_(o[1])])}return t}function R_(e){return typeof e=="string"?new RegExp(w_(e),"g"):e}function L_(e){return typeof e=="function"?e:function(){return e}}const Bc="phrasing",jc=["autolink","link","image","label"];function $_(){return{transforms:[U_],enter:{literalAutolink:M_,literalAutolinkEmail:Hc,literalAutolinkHttp:Hc,literalAutolinkWww:Hc},exit:{literalAutolink:H_,literalAutolinkEmail:j_,literalAutolinkHttp:F_,literalAutolinkWww:B_}}}function O_(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Bc,notInConstruct:jc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Bc,notInConstruct:jc},{character:":",before:"[ps]",after:"\\/",inConstruct:Bc,notInConstruct:jc}]}}function M_(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Hc(e){this.config.enter.autolinkProtocol.call(this,e)}function F_(e){this.config.exit.autolinkProtocol.call(this,e)}function B_(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function j_(e){this.config.exit.autolinkEmail.call(this,e)}function H_(e){this.exit(e)}function U_(e){N_(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,z_],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,G_]],{ignore:["link","linkReference"]})}function z_(e,t,n,r,o){let a="";if(!P1(o)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!q_(n)))return!1;const i=W_(n+r);if(!i[0])return!1;const s={type:"link",title:null,url:a+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[s,{type:"text",value:i[1]}]:s}function G_(e,t,n,r){return!P1(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function q_(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function W_(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=il(e,"(");let a=il(e,")");for(;r!==-1&&o>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function P1(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Do(n)||ec(n))&&(!t||n!==47)}R1.peek=tD;function V_(){this.buffer()}function Y_(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function K_(){this.buffer()}function Q_(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function X_(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Yn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function J_(e){this.exit(e)}function Z_(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Yn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function eD(e){this.exit(e)}function tD(){return"["}function R1(e,t,n,r){const o=n.createTracker(r);let a=o.move("[^");const i=n.enter("footnoteReference"),s=n.enter("reference");return a+=o.move(n.safe(n.associationId(e),{after:"]",before:a})),s(),i(),a+=o.move("]"),a}function nD(){return{enter:{gfmFootnoteCallString:V_,gfmFootnoteCall:Y_,gfmFootnoteDefinitionLabelString:K_,gfmFootnoteDefinition:Q_},exit:{gfmFootnoteCallString:X_,gfmFootnoteCall:J_,gfmFootnoteDefinitionLabelString:Z_,gfmFootnoteDefinition:eD}}}function rD(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:R1},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,o,a,i){const s=a.createTracker(i);let l=s.move("[^");const c=a.enter("footnoteDefinition"),d=a.enter("label");return l+=s.move(a.safe(a.associationId(r),{before:l,after:"]"})),d(),l+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),l+=s.move((t?`
113
+ `:" ")+a.indentLines(a.containerFlow(r,s.current()),t?L1:oD))),c(),l}}function oD(e,t,n){return t===0?e:L1(e,t,n)}function L1(e,t,n){return(n?"":" ")+e}const aD=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];$1.peek=uD;function iD(){return{canContainEols:["delete"],enter:{strikethrough:lD},exit:{strikethrough:cD}}}function sD(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:aD}],handlers:{delete:$1}}}function lD(e){this.enter({type:"delete",children:[]},e)}function cD(e){this.exit(e)}function $1(e,t,n,r){const o=n.createTracker(r),a=n.enter("strikethrough");let i=o.move("~~");return i+=n.containerPhrasing(e,{...o.current(),before:i,after:"~"}),i+=o.move("~~"),a(),i}function uD(){return"~"}function dD(e){return e.length}function hD(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||dD,a=[],i=[],s=[],l=[];let c=0,d=-1;for(;++d<e.length;){const b=[],x=[];let E=-1;for(e[d].length>c&&(c=e[d].length);++E<e[d].length;){const v=pD(e[d][E]);if(n.alignDelimiters!==!1){const C=o(v);x[E]=C,(l[E]===void 0||C>l[E])&&(l[E]=C)}b.push(v)}i[d]=b,s[d]=x}let u=-1;if(typeof r=="object"&&"length"in r)for(;++u<c;)a[u]=rf(r[u]);else{const b=rf(r);for(;++u<c;)a[u]=b}u=-1;const h=[],p=[];for(;++u<c;){const b=a[u];let x="",E="";b===99?(x=":",E=":"):b===108?x=":":b===114&&(E=":");let v=n.alignDelimiters===!1?1:Math.max(1,l[u]-x.length-E.length);const C=x+"-".repeat(v)+E;n.alignDelimiters!==!1&&(v=x.length+v+E.length,v>l[u]&&(l[u]=v),p[u]=v),h[u]=C}i.splice(1,0,h),s.splice(1,0,p),d=-1;const g=[];for(;++d<i.length;){const b=i[d],x=s[d];u=-1;const E=[];for(;++u<c;){const v=b[u]||"";let C="",I="";if(n.alignDelimiters!==!1){const w=l[u]-(x[u]||0),S=a[u];S===114?C=" ".repeat(w):S===99?w%2?(C=" ".repeat(w/2+.5),I=" ".repeat(w/2-.5)):(C=" ".repeat(w/2),I=C):I=" ".repeat(w)}n.delimiterStart!==!1&&!u&&E.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&v==="")&&(n.delimiterStart!==!1||u)&&E.push(" "),n.alignDelimiters!==!1&&E.push(C),E.push(v),n.alignDelimiters!==!1&&E.push(I),n.padding!==!1&&E.push(" "),(n.delimiterEnd!==!1||u!==c-1)&&E.push("|")}g.push(n.delimiterEnd===!1?E.join("").replace(/ +$/,""):E.join(""))}return g.join(`
114
114
  `)}function pD(e){return e==null?"":String(e)}function rf(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function fD(e,t,n,r){const o=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const i=n.indentLines(n.containerFlow(e,a.current()),mD);return o(),i}function mD(e,t,n){return">"+(n?"":" ")+e}function gD(e,t){return of(e,t.inConstruct,!0)&&!of(e,t.notInConstruct,!1)}function of(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function af(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if(n.unsafe[o].character===`
115
115
  `&&gD(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return`\\
116
116
  `}function yD(e,t){const n=String(e);let r=n.indexOf(t),o=r,a=0,i=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===o?++a>i&&(i=a):a=1,o=r+t.length,r=n.indexOf(t,o);return i}function bD(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function ED(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function xD(e,t,n,r){const o=ED(n),a=e.value||"",i=o==="`"?"GraveAccent":"Tilde";if(bD(e,n)){const u=n.enter("codeIndented"),h=n.indentLines(a,TD);return u(),h}const s=n.createTracker(r),l=o.repeat(Math.max(yD(a,o)+1,3)),c=n.enter("codeFenced");let d=s.move(l);if(e.lang){const u=n.enter(`codeFencedLang${i}`);d+=s.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...s.current()})),u()}if(e.lang&&e.meta){const u=n.enter(`codeFencedMeta${i}`);d+=s.move(" "),d+=s.move(n.safe(e.meta,{before:d,after:`
@@ -124,9 +124,9 @@ import {${t.sourceName}}" from '${t.modelPath}'"
124
124
  `))+1))}const i="#".repeat(o),s=n.enter("headingAtx"),l=n.enter("phrasing");a.move(i+" ");let c=n.containerPhrasing(e,{before:"# ",after:`
125
125
  `,...a.current()});return/^[\t ]/.test(c)&&(c=Pi(c.charCodeAt(0))+c.slice(1)),c=c?i+" "+c:i,n.options.closeAtx&&(c+=" "+i),l(),s(),c}F1.peek=DD;function F1(e){return e.value||""}function DD(){return"<"}B1.peek=wD;function B1(e,t,n,r){const o=rh(n),a=o==='"'?"Quote":"Apostrophe",i=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${a}`),c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current()})),c+=l.move(o),s()),c+=l.move(")"),i(),c}function wD(){return"!"}j1.peek=ND;function j1(e,t,n,r){const o=e.referenceType,a=n.enter("imageReference");let i=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),i();const d=n.stack;n.stack=[],i=n.enter("reference");const u=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return i(),n.stack=d,a(),o==="full"||!c||c!==u?l+=s.move(u+"]"):o==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function ND(){return"!"}H1.peek=PD;function H1(e,t,n){let r=e.value||"",o="`",a=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const i=n.unsafe[a],s=n.compilePattern(i);let l;if(i.atBreak)for(;l=s.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return o+r+o}function PD(){return"`"}function U1(e,t){const n=oh(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}z1.peek=RD;function z1(e,t,n,r){const o=rh(n),a=o==='"'?"Quote":"Apostrophe",i=n.createTracker(r);let s,l;if(U1(e,n)){const d=n.stack;n.stack=[],s=n.enter("autolink");let u=i.move("<");return u+=i.move(n.containerPhrasing(e,{before:u,after:">",...i.current()})),u+=i.move(">"),s(),n.stack=d,u}s=n.enter("link"),l=n.enter("label");let c=i.move("[");return c+=i.move(n.containerPhrasing(e,{before:c,after:"](",...i.current()})),c+=i.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=i.move("<"),c+=i.move(n.safe(e.url,{before:c,after:">",...i.current()})),c+=i.move(">")):(l=n.enter("destinationRaw"),c+=i.move(n.safe(e.url,{before:c,after:e.title?" ":")",...i.current()}))),l(),e.title&&(l=n.enter(`title${a}`),c+=i.move(" "+o),c+=i.move(n.safe(e.title,{before:c,after:o,...i.current()})),c+=i.move(o),l()),c+=i.move(")"),s(),c}function RD(e,t,n){return U1(e,n)?"<":"["}G1.peek=LD;function G1(e,t,n,r){const o=e.referenceType,a=n.enter("linkReference");let i=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),i();const d=n.stack;n.stack=[],i=n.enter("reference");const u=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return i(),n.stack=d,a(),o==="full"||!c||c!==u?l+=s.move(u+"]"):o==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function LD(){return"["}function ah(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function $D(e){const t=ah(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function OD(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function q1(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function MD(e,t,n,r){const o=n.enter("list"),a=n.bulletCurrent;let i=e.ordered?OD(n):ah(n);const s=e.ordered?i==="."?")":".":$D(n);let l=t&&n.bulletLastUsed?i===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((i==="*"||i==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),q1(n)===i&&d){let u=-1;for(;++u<e.children.length;){const h=e.children[u];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(i=s),n.bulletCurrent=i;const c=n.containerFlow(e,r);return n.bulletLastUsed=i,n.bulletCurrent=a,o(),c}function FD(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function BD(e,t,n,r){const o=FD(n);let a=n.bulletCurrent||ah(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let i=a.length+1;(o==="tab"||o==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(i=Math.ceil(i/4)*4);const s=n.createTracker(r);s.move(a+" ".repeat(i-a.length)),s.shift(i);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),d);return l(),c;function d(u,h,p){return h?(p?"":" ".repeat(i))+u:(p?a:a+" ".repeat(i-a.length))+u}}function jD(e,t,n,r){const o=n.enter("paragraph"),a=n.enter("phrasing"),i=n.containerPhrasing(e,r);return a(),o(),i}const HD=Jl(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function UD(e,t,n,r){return(e.children.some(function(o){return HD(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function zD(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}W1.peek=GD;function W1(e,t,n,r){const o=zD(n),a=n.enter("strong"),i=n.createTracker(r),s=i.move(o+o);let l=i.move(n.containerPhrasing(e,{after:o,before:s,...i.current()}));const c=l.charCodeAt(0),d=yl(r.before.charCodeAt(r.before.length-1),c,o);d.inside&&(l=Pi(c)+l.slice(1));const u=l.charCodeAt(l.length-1),h=yl(r.after.charCodeAt(0),u,o);h.inside&&(l=l.slice(0,-1)+Pi(u));const p=i.move(o+o);return a(),n.attentionEncodeSurroundingInfo={after:h.outside,before:d.outside},s+l+p}function GD(e,t,n){return n.options.strong||"*"}function qD(e,t,n,r){return n.safe(e.value,r)}function WD(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function VD(e,t,n){const r=(q1(n)+(n.options.ruleSpaces?" ":"")).repeat(WD(n));return n.options.ruleSpaces?r.slice(0,-1):r}const V1={blockquote:fD,break:af,code:xD,definition:CD,emphasis:O1,hardBreak:af,heading:_D,html:F1,image:B1,imageReference:j1,inlineCode:H1,link:z1,linkReference:G1,list:MD,listItem:BD,paragraph:jD,root:UD,strong:W1,text:qD,thematicBreak:VD};function YD(){return{enter:{table:KD,tableData:lf,tableHeader:lf,tableRow:XD},exit:{codeText:JD,table:QD,tableData:Uc,tableHeader:Uc,tableRow:Uc}}}function KD(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function QD(e){this.exit(e),this.data.inTable=void 0}function XD(e){this.enter({type:"tableRow",children:[]},e)}function Uc(e){this.exit(e)}function lf(e){this.enter({type:"tableCell",children:[]},e)}function JD(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,ZD));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function ZD(e,t){return t==="|"?t:e}function ew(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
126
126
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:i,tableCell:l,tableRow:s}};function i(p,g,b,x){return c(d(p,b,x),p.align)}function s(p,g,b,x){const E=u(p,b,x),v=c([E]);return v.slice(0,v.indexOf(`
127
- `))}function l(p,g,b,x){const E=b.enter("tableCell"),v=b.enter("phrasing"),C=b.containerPhrasing(p,{...x,before:a,after:a});return v(),E(),C}function c(p,g){return hD(p,{align:g,alignDelimiters:r,padding:n,stringLength:o})}function d(p,g,b){const x=p.children;let E=-1;const v=[],C=g.enter("table");for(;++E<x.length;)v[E]=u(x[E],g,b);return C(),v}function u(p,g,b){const x=p.children;let E=-1;const v=[],C=g.enter("tableRow");for(;++E<x.length;)v[E]=l(x[E],p,g,b);return C(),v}function h(p,g,b){let x=V1.inlineCode(p,g,b);return b.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function tw(){return{exit:{taskListCheckValueChecked:cf,taskListCheckValueUnchecked:cf,paragraph:rw}}}function nw(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ow}}}function cf(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function rw(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const o=t.children;let a=-1,i;for(;++a<o.length;){const s=o[a];if(s.type==="paragraph"){i=s;break}}i===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function ow(e,t,n,r){const o=e.children[0],a=typeof e.checked=="boolean"&&o&&o.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);a&&s.move(i);let l=V1.listItem(e,t,n,{...r,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(d){return d+i}}function aw(){return[$_(),nD(),iD(),YD(),tw()]}function iw(e){return{extensions:[O_(),rD(e),sD(),ew(e),nw()]}}const sw={};function lw(e){const t=this,n=e||sw,r=t.data(),o=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),i=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);o.push(D_(n)),a.push(aw()),i.push(iw(n))}function uf(e){if(e)throw e}var zc,df;function cw(){if(df)return zc;df=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(l){return typeof Array.isArray=="function"?Array.isArray(l):t.call(l)==="[object Array]"},a=function(l){if(!l||t.call(l)!=="[object Object]")return!1;var c=e.call(l,"constructor"),d=l.constructor&&l.constructor.prototype&&e.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!c&&!d)return!1;var u;for(u in l);return typeof u>"u"||e.call(l,u)},i=function(l,c){n&&c.name==="__proto__"?n(l,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):l[c.name]=c.newValue},s=function(l,c){if(c==="__proto__")if(e.call(l,c)){if(r)return r(l,c).value}else return;return l[c]};return zc=function l(){var c,d,u,h,p,g,b=arguments[0],x=1,E=arguments.length,v=!1;for(typeof b=="boolean"&&(v=b,b=arguments[1]||{},x=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});x<E;++x)if(c=arguments[x],c!=null)for(d in c)u=s(b,d),h=s(c,d),b!==h&&(v&&h&&(a(h)||(p=o(h)))?(p?(p=!1,g=u&&o(u)?u:[]):g=u&&a(u)?u:{},i(b,{name:d,newValue:l(v,g,h)})):typeof h<"u"&&i(b,{name:d,newValue:h}));return b},zc}var uw=cw();const Gc=Kl(uw);function qu(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}const dw=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r};function hw(){const e=[],t={run:n,use:r};return t;function n(...o){let a=-1;const i=o.pop();if(typeof i!="function")throw new TypeError("Expected function as last argument, not "+i);s(null,...o);function s(l,...c){const d=e[++a];let u=-1;if(l){i(l);return}for(;++u<o.length;)(c[u]===null||c[u]===void 0)&&(c[u]=o[u]);o=c,d?pw(d,s)(...c):i(null,...c)}}function r(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function pw(e,t){let n;return r;function r(...i){const s=e.length>i.length;let l;s&&i.push(o);try{l=e.apply(this,i)}catch(c){const d=c;if(s&&n)throw d;return o(d)}s||(l&&l.then&&typeof l.then=="function"?l.then(a,o):l instanceof Error?o(l):a(l))}function o(i,...s){n||(n=!0,t(i,...s))}function a(i){o(null,i)}}const ir={basename:fw,dirname:mw,extname:gw,join:yw,sep:"/"};function fw(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ki(e);let n=0,r=-1,o=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(a){n=o+1;break}}else r<0&&(a=!0,r=o+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let i=-1,s=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(a){n=o+1;break}}else i<0&&(a=!0,i=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(r=o):(s=-1,r=i));return n===r?r=i:r<0&&(r=e.length),e.slice(n,r)}function mw(e){if(Ki(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function gw(e){Ki(e);let t=e.length,n=-1,r=0,o=-1,a=0,i;for(;t--;){const s=e.codePointAt(t);if(s===47){if(i){r=t+1;break}continue}n<0&&(i=!0,n=t+1),s===46?o<0?o=t:a!==1&&(a=1):o>-1&&(a=-1)}return o<0||n<0||a===0||a===1&&o===n-1&&o===r+1?"":e.slice(o,n)}function yw(...e){let t=-1,n;for(;++t<e.length;)Ki(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":bw(n)}function bw(e){Ki(e);const t=e.codePointAt(0)===47;let n=Ew(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Ew(e,t){let n="",r=0,o=-1,a=0,i=-1,s,l;for(;++i<=e.length;){if(i<e.length)s=e.codePointAt(i);else{if(s===47)break;s=47}if(s===47){if(!(o===i-1||a===1))if(o!==i-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),o=i,a=0;continue}}else if(n.length>0){n="",r=0,o=i,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(o+1,i):n=e.slice(o+1,i),r=i-o-1;o=i,a=0}else s===46&&a>-1?a++:a=-1}return n}function Ki(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const xw={cwd:Tw};function Tw(){return"/"}function Wu(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Cw(e){if(typeof e=="string")e=new URL(e);else if(!Wu(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return vw(e)}function vw(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}function di(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?hf(e.position):"start"in e||"end"in e?hf(e):"line"in e||"column"in e?Vu(e):""}function Vu(e){return pf(e&&e.line)+":"+pf(e&&e.column)}function hf(e){return Vu(e&&e.start)+"-"+Vu(e&&e.end)}function pf(e){return e&&typeof e=="number"?e:1}let ln=class extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",a={},i=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?o=t:!a.cause&&t&&(i=!0,o=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=s?s.line:void 0,this.name=di(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=i&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};ln.prototype.file="";ln.prototype.name="";ln.prototype.reason="";ln.prototype.message="";ln.prototype.stack="";ln.prototype.column=void 0;ln.prototype.line=void 0;ln.prototype.ancestors=void 0;ln.prototype.cause=void 0;ln.prototype.fatal=void 0;ln.prototype.place=void 0;ln.prototype.ruleId=void 0;ln.prototype.source=void 0;const qc=["history","path","basename","stem","extname","dirname"];let Y1=class{constructor(t){let n;t?Wu(t)?n={path:t}:typeof t=="string"||Sw(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":xw.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<qc.length;){const a=qc[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let o;for(o in n)qc.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?ir.basename(this.path):void 0}set basename(t){Vc(t,"basename"),Wc(t,"basename"),this.path=ir.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ir.dirname(this.path):void 0}set dirname(t){ff(this.basename,"dirname"),this.path=ir.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ir.extname(this.path):void 0}set extname(t){if(Wc(t,"extname"),ff(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ir.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Wu(t)&&(t=Cw(t)),Vc(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ir.basename(this.path,this.extname):void 0}set stem(t){Vc(t,"stem"),Wc(t,"stem"),this.path=ir.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const o=this.message(t,n,r);throw o.fatal=!0,o}info(t,n,r){const o=this.message(t,n,r);return o.fatal=void 0,o}message(t,n,r){const o=new ln(t,n,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function Wc(e,t){if(e&&e.includes(ir.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ir.sep+"`")}function Vc(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ff(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Sw(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const kw={}.hasOwnProperty;let Aw=class K1 extends dw{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=hw()}copy(){const t=new K1;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Gc(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Qc("data",this.frozen),this.namespace[t]=n,this):kw.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Qc("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const o=n.call(t,...r);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Es(t),r=this.parser||this.Parser;return Yc("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Yc("process",this.parser||this.Parser),Kc("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(a,i){const s=Es(t),l=r.parse(s);r.run(l,s,function(d,u,h){if(d||!u||!h)return c(d);const p=u,g=r.stringify(p,h);Dw(g)?h.value=g:h.result=g,c(d,h)});function c(d,u){d||!u?i(d):a?a(u):n(void 0,u)}}}processSync(t){let n=!1,r;return this.freeze(),Yc("processSync",this.parser||this.Parser),Kc("processSync",this.compiler||this.Compiler),this.process(t,o),gf("processSync","process",n),r;function o(a,i){n=!0,uf(a),r=i}}run(t,n,r){mf(t),this.freeze();const o=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(i,s){const l=Es(n);o.run(t,l,c);function c(d,u,h){const p=u||t;d?s(d):i?i(p):r(void 0,p,h)}}}runSync(t,n){let r=!1,o;return this.run(t,n,a),gf("runSync","run",r),o;function a(i,s){uf(i),o=s,r=!0}}stringify(t,n){this.freeze();const r=Es(n),o=this.compiler||this.Compiler;return Kc("stringify",o),mf(t),o(t,r)}use(t,...n){const r=this.attachers,o=this.namespace;if(Qc("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):i(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[d,...u]=c;l(d,u)}else i(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function i(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(c.plugins),c.settings&&(o.settings=Gc(!0,o.settings,c.settings))}function s(c){let d=-1;if(c!=null)if(Array.isArray(c))for(;++d<c.length;){const u=c[d];a(u)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,d){let u=-1,h=-1;for(;++u<r.length;)if(r[u][0]===c){h=u;break}if(h===-1)r.push([c,...d]);else if(d.length>0){let[p,...g]=d;const b=r[h][1];qu(b)&&qu(p)&&(p=Gc(!0,b,p)),r[h]=[c,p,...g]}}}};const Iw=new Aw().freeze();function Yc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Kc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Qc(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function mf(e){if(!qu(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function gf(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Es(e){return _w(e)?e:new Y1(e)}function _w(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Dw(e){return typeof e=="string"||ww(e)}function ww(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function Q1(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const yf=document.createElement("i");function ih(e){const t="&"+e+";";yf.innerHTML=t;const n=yf.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const Nw=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Pw(e){return e.replace(Nw,Rw)}function Rw(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),o=r===120||r===88;return Q1(n.slice(o?2:1),o?16:10)}return ih(n)||e}let Lw=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const o=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&Ha(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ha(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ha(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Ha(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ha(this.left,n.reverse())}}};function Ha(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function X1(e){const t={};let n=-1,r,o,a,i,s,l,c;const d=new Lw(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,$w(d,n)),n=t[n],c=!0);else if(r[1]._container){for(a=n,o=void 0;a--;)if(i=d.get(a),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(o&&(d.get(o)[1].type="lineEndingBlank"),i[1].type="lineEnding",o=a);else if(!(i[1].type==="linePrefix"||i[1].type==="listItemIndent"))break;o&&(r[1].end={...d.get(o)[1].start},s=d.slice(o,n),s.unshift(r),d.splice(o,n-o+1,s))}}return _n(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!c}function $w(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const a=[];let i=n._tokenizer;i||(i=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const s=i.events,l=[],c={};let d,u,h=-1,p=n,g=0,b=0;const x=[b];for(;p;){for(;e.get(++o)[1]!==p;);a.push(o),p._tokenizer||(d=r.sliceStream(p),p.next||d.push(null),u&&i.defineSkip(p.start),p._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(d),p._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),u=p,p=p.next}for(p=n;++h<s.length;)s[h][0]==="exit"&&s[h-1][0]==="enter"&&s[h][1].type===s[h-1][1].type&&s[h][1].start.line!==s[h][1].end.line&&(b=h+1,x.push(b),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(i.events=[],p?(p._tokenizer=void 0,p.previous=void 0):x.pop(),h=x.length;h--;){const E=s.slice(x[h],x[h+1]),v=a.pop();l.push([v,v+E.length-1]),e.splice(v,2,E)}for(l.reverse(),h=-1;++h<l.length;)c[g+l[h][0]]=g+l[h][1],g+=l[h][1]-l[h][0]-1;return c}function Ow(e){for(;!X1(e););return e}const Mw={tokenize:Fw};function Fw(e){const t=e.attempt(this.parser.constructs.contentInitial,r,o);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ze(e,t,"linePrefix")}function o(s){return e.enter("paragraph"),a(s)}function a(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,i(s)}function i(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return we(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),i)}}const Bw={tokenize:jw},bf={tokenize:Hw};function jw(e){const t=this,n=[];let r=0,o,a,i;return s;function s(C){if(r<n.length){const I=n[r];return t.containerState=I[1],e.attempt(I[0].continuation,l,c)(C)}return c(C)}function l(C){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&v();const I=t.events.length;let N=I,S;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){S=t.events[N][1].end;break}E(r);let M=I;for(;M<t.events.length;)t.events[M][1].end={...S},M++;return _n(t.events,N+1,0,t.events.slice(I)),t.events.length=M,c(C)}return s(C)}function c(C){if(r===n.length){if(!o)return h(C);if(o.currentConstruct&&o.currentConstruct.concrete)return g(C);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(bf,d,u)(C)}function d(C){return o&&v(),E(r),h(C)}function u(C){return t.parser.lazy[t.now().line]=r!==n.length,i=t.now().offset,g(C)}function h(C){return t.containerState={},e.attempt(bf,p,g)(C)}function p(C){return r++,n.push([t.currentConstruct,t.containerState]),h(C)}function g(C){if(C===null){o&&v(),E(0),e.consume(C);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:a}),b(C)}function b(C){if(C===null){x(e.exit("chunkFlow"),!0),E(0),e.consume(C);return}return we(C)?(e.consume(C),x(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(C),b)}function x(C,I){const N=t.sliceStream(C);if(I&&N.push(null),C.previous=a,a&&(a.next=C),a=C,o.defineSkip(C.start),o.write(N),t.parser.lazy[C.start.line]){let S=o.events.length;for(;S--;)if(o.events[S][1].start.offset<i&&(!o.events[S][1].end||o.events[S][1].end.offset>i))return;const M=t.events.length;let q=M,B,y;for(;q--;)if(t.events[q][0]==="exit"&&t.events[q][1].type==="chunkFlow"){if(B){y=t.events[q][1].end;break}B=!0}for(E(r),S=M;S<t.events.length;)t.events[S][1].end={...y},S++;_n(t.events,q+1,0,t.events.slice(M)),t.events.length=S}}function E(C){let I=n.length;for(;I-- >C;){const N=n[I];t.containerState=N[1],N[0].exit.call(t,e)}n.length=C}function v(){o.write([null]),a=void 0,o=void 0,t.containerState._closeFlow=void 0}}function Hw(e,t,n){return ze(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const Uw={resolve:Gw,tokenize:qw},zw={partial:!0,tokenize:Ww};function Gw(e){return X1(e),e}function qw(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(s)}function o(s){return s===null?a(s):we(s)?e.check(zw,i,a)(s):(e.consume(s),o)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function i(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function Ww(e,t,n){const r=this;return o;function o(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),ze(e,a,"linePrefix")}function a(i){if(i===null||we(i))return n(i);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}const Vw={tokenize:Yw};function Yw(e){const t=this,n=e.attempt(Yi,r,e.attempt(this.parser.constructs.flowInitial,o,ze(e,e.attempt(this.parser.constructs.flow,o,e.attempt(Uw,o)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Kw={resolveAll:Z1()},Qw=J1("string"),Xw=J1("text");function J1(e){return{resolveAll:Z1(e==="text"?Jw:void 0),tokenize:t};function t(n){const r=this,o=this.parser.constructs[e],a=n.attempt(o,i,s);return i;function i(d){return c(d)?a(d):s(d)}function s(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return c(d)?(n.exit("data"),a(d)):(n.consume(d),l)}function c(d){if(d===null)return!0;const u=o[d];let h=-1;if(u)for(;++h<u.length;){const p=u[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Z1(e){return t;function t(n,r){let o=-1,a;for(;++o<=n.length;)a===void 0?n[o]&&n[o][1].type==="data"&&(a=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==a+2&&(n[a][1].end=n[o-1][1].end,n.splice(a+2,o-a-2),o=a+2),a=void 0);return e?e(n,r):n}}function Jw(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],o=t.sliceStream(r);let a=o.length,i=-1,s=0,l;for(;a--;){const c=o[a];if(typeof c=="string"){for(i=c.length;c.charCodeAt(i-1)===32;)s++,i--;if(i)break;i=-1}else if(c===-2)l=!0,s++;else if(c!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const c={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?i:r.start._bufferIndex+i,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const ey={continuation:{tokenize:eN},exit:tN,name:"blockQuote",tokenize:Zw};function Zw(e,t,n){const r=this;return o;function o(i){if(i===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),a}return n(i)}function a(i){return He(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}function eN(e,t,n){const r=this;return o;function o(i){return He(i)?ze(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):a(i)}function a(i){return e.attempt(ey,t,n)(i)}}function tN(e){e.exit("blockQuote")}const Ms={name:"thematicBreak",tokenize:nN};function nN(e,t,n){let r=0,o;return a;function a(c){return e.enter("thematicBreak"),i(c)}function i(c){return o=c,s(c)}function s(c){return c===o?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||we(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===o?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),He(c)?ze(e,s,"whitespace")(c):s(c))}}const bn={continuation:{tokenize:iN},exit:lN,name:"list",tokenize:aN},rN={partial:!0,tokenize:cN},oN={partial:!0,tokenize:sN};function aN(e,t,n){const r=this,o=r.events[r.events.length-1];let a=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,i=0;return s;function s(p){const g=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:zu(p)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Ms,n,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return zu(p)&&++i<10?(e.consume(p),l):(!r.interrupt||i<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):n(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Yi,r.interrupt?n:d,e.attempt(rN,h,u))}function d(p){return r.containerState.initialBlankLine=!0,a++,h(p)}function u(p){return He(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function iN(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Yi,o,a);function o(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ze(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!He(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(oN,t,i)(s))}function i(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,ze(e,e.attempt(bn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function sN(e,t,n){const r=this;return ze(e,o,"listItemIndent",r.containerState.size+1);function o(a){const i=r.events[r.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(a):n(a)}}function lN(e){e.exit(this.containerState.type)}function cN(e,t,n){const r=this;return ze(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(a){const i=r.events[r.events.length-1];return!He(a)&&i&&i[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}function ty(e,t,n,r,o,a,i,s,l){const c=l||Number.POSITIVE_INFINITY;let d=0;return u;function u(E){return E===60?(e.enter(r),e.enter(o),e.enter(a),e.consume(E),e.exit(a),h):E===null||E===32||E===41||gl(E)?n(E):(e.enter(r),e.enter(i),e.enter(s),e.enter("chunkString",{contentType:"string"}),b(E))}function h(E){return E===62?(e.enter(a),e.consume(E),e.exit(a),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(E))}function p(E){return E===62?(e.exit("chunkString"),e.exit(s),h(E)):E===null||E===60||we(E)?n(E):(e.consume(E),E===92?g:p)}function g(E){return E===60||E===62||E===92?(e.consume(E),p):p(E)}function b(E){return!d&&(E===null||E===41||ut(E))?(e.exit("chunkString"),e.exit(s),e.exit(i),e.exit(r),t(E)):d<c&&E===40?(e.consume(E),d++,b):E===41?(e.consume(E),d--,b):E===null||E===32||E===40||gl(E)?n(E):(e.consume(E),E===92?x:b)}function x(E){return E===40||E===41||E===92?(e.consume(E),b):b(E)}}function ny(e,t,n,r,o,a){const i=this;let s=0,l;return c;function c(p){return e.enter(r),e.enter(o),e.consume(p),e.exit(o),e.enter(a),d}function d(p){return s>999||p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in i.parser.constructs?n(p):p===93?(e.exit(a),e.enter(o),e.consume(p),e.exit(o),e.exit(r),t):we(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===null||p===91||p===93||we(p)||s++>999?(e.exit("chunkString"),d(p)):(e.consume(p),l||(l=!He(p)),p===92?h:u)}function h(p){return p===91||p===92||p===93?(e.consume(p),s++,u):u(p)}}function ry(e,t,n,r,o,a){let i;return s;function s(h){return h===34||h===39||h===40?(e.enter(r),e.enter(o),e.consume(h),e.exit(o),i=h===40?41:h,l):n(h)}function l(h){return h===i?(e.enter(o),e.consume(h),e.exit(o),e.exit(r),t):(e.enter(a),c(h))}function c(h){return h===i?(e.exit(a),l(i)):h===null?n(h):we(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),ze(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===i||h===null||we(h)?(e.exit("chunkString"),c(h)):(e.consume(h),h===92?u:d)}function u(h){return h===i||h===92?(e.consume(h),d):d(h)}}function hi(e,t){let n;return r;function r(o){return we(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):He(o)?ze(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const uN={name:"definition",tokenize:hN},dN={partial:!0,tokenize:pN};function hN(e,t,n){const r=this;let o;return a;function a(p){return e.enter("definition"),i(p)}function i(p){return ny.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return o=Yn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return ut(p)?hi(e,c)(p):c(p)}function c(p){return ty(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function d(p){return e.attempt(dN,u,u)(p)}function u(p){return He(p)?ze(e,h,"whitespace")(p):h(p)}function h(p){return p===null||we(p)?(e.exit("definition"),r.parser.defined.push(o),t(p)):n(p)}}function pN(e,t,n){return r;function r(s){return ut(s)?hi(e,o)(s):n(s)}function o(s){return ry(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return He(s)?ze(e,i,"whitespace")(s):i(s)}function i(s){return s===null||we(s)?t(s):n(s)}}const Xc={name:"codeIndented",tokenize:mN},fN={partial:!0,tokenize:gN};function mN(e,t,n){const r=this;return o;function o(c){return e.enter("codeIndented"),ze(e,a,"linePrefix",5)(c)}function a(c){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?i(c):n(c)}function i(c){return c===null?l(c):we(c)?e.attempt(fN,i,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||we(c)?(e.exit("codeFlowValue"),i(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function gN(e,t,n){const r=this;return o;function o(i){return r.parser.lazy[r.now().line]?n(i):we(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o):ze(e,a,"linePrefix",5)(i)}function a(i){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(i):we(i)?o(i):n(i)}}const Ef={partial:!0,tokenize:bN},xf={concrete:!0,name:"codeFenced",tokenize:yN};function yN(e,t,n){const r=this,o={partial:!0,tokenize:N};let a=0,i=0,s;return l;function l(S){return c(S)}function c(S){const M=r.events[r.events.length-1];return a=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,s=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(S)}function d(S){return S===s?(i++,e.consume(S),d):i<3?n(S):(e.exit("codeFencedFenceSequence"),He(S)?ze(e,u,"whitespace")(S):u(S))}function u(S){return S===null||we(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(Ef,b,I)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(S))}function h(S){return S===null||we(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(S)):He(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ze(e,p,"whitespace")(S)):S===96&&S===s?n(S):(e.consume(S),h)}function p(S){return S===null||we(S)?u(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(S))}function g(S){return S===null||we(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(S)):S===96&&S===s?n(S):(e.consume(S),g)}function b(S){return e.attempt(o,I,x)(S)}function x(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),E}function E(S){return a>0&&He(S)?ze(e,v,"linePrefix",a+1)(S):v(S)}function v(S){return S===null||we(S)?e.check(Ef,b,I)(S):(e.enter("codeFlowValue"),C(S))}function C(S){return S===null||we(S)?(e.exit("codeFlowValue"),v(S)):(e.consume(S),C)}function I(S){return e.exit("codeFenced"),t(S)}function N(S,M,q){let B=0;return y;function y(Y){return S.enter("lineEnding"),S.consume(Y),S.exit("lineEnding"),R}function R(Y){return S.enter("codeFencedFence"),He(Y)?ze(S,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):F(Y)}function F(Y){return Y===s?(S.enter("codeFencedFenceSequence"),$(Y)):q(Y)}function $(Y){return Y===s?(B++,S.consume(Y),$):B>=i?(S.exit("codeFencedFenceSequence"),He(Y)?ze(S,U,"whitespace")(Y):U(Y)):q(Y)}function U(Y){return Y===null||we(Y)?(S.exit("codeFencedFence"),M(Y)):q(Y)}}}function bN(e,t,n){const r=this;return o;function o(i){return i===null?n(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a)}function a(i){return r.parser.lazy[r.now().line]?n(i):t(i)}}const Tf={name:"setextUnderline",resolveTo:EN,tokenize:xN};function EN(e,t){let n=e.length,r,o,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const i={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",a?(e.splice(o,0,["enter",i,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=i,e.push(["exit",i,t]),e}function xN(e,t,n){const r=this;let o;return a;function a(c){let d=r.events.length,u;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){u=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||u)?(e.enter("setextHeadingLine"),o=c,i(c)):n(c)}function i(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===o?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),He(c)?ze(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||we(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const TN=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Cf=["pre","script","style","textarea"],CN={concrete:!0,name:"htmlFlow",resolveTo:kN,tokenize:AN},vN={partial:!0,tokenize:_N},SN={partial:!0,tokenize:IN};function kN(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function AN(e,t,n){const r=this;let o,a,i,s,l;return c;function c(k){return d(k)}function d(k){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(k),u}function u(k){return k===33?(e.consume(k),h):k===47?(e.consume(k),a=!0,b):k===63?(e.consume(k),o=3,r.interrupt?t:A):fn(k)?(e.consume(k),i=String.fromCharCode(k),x):n(k)}function h(k){return k===45?(e.consume(k),o=2,p):k===91?(e.consume(k),o=5,s=0,g):fn(k)?(e.consume(k),o=4,r.interrupt?t:A):n(k)}function p(k){return k===45?(e.consume(k),r.interrupt?t:A):n(k)}function g(k){const J="CDATA[";return k===J.charCodeAt(s++)?(e.consume(k),s===J.length?r.interrupt?t:F:g):n(k)}function b(k){return fn(k)?(e.consume(k),i=String.fromCharCode(k),x):n(k)}function x(k){if(k===null||k===47||k===62||ut(k)){const J=k===47,Ee=i.toLowerCase();return!J&&!a&&Cf.includes(Ee)?(o=1,r.interrupt?t(k):F(k)):TN.includes(i.toLowerCase())?(o=6,J?(e.consume(k),E):r.interrupt?t(k):F(k)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(k):a?v(k):C(k))}return k===45||on(k)?(e.consume(k),i+=String.fromCharCode(k),x):n(k)}function E(k){return k===62?(e.consume(k),r.interrupt?t:F):n(k)}function v(k){return He(k)?(e.consume(k),v):y(k)}function C(k){return k===47?(e.consume(k),y):k===58||k===95||fn(k)?(e.consume(k),I):He(k)?(e.consume(k),C):y(k)}function I(k){return k===45||k===46||k===58||k===95||on(k)?(e.consume(k),I):N(k)}function N(k){return k===61?(e.consume(k),S):He(k)?(e.consume(k),N):C(k)}function S(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),l=k,M):He(k)?(e.consume(k),S):q(k)}function M(k){return k===l?(e.consume(k),l=null,B):k===null||we(k)?n(k):(e.consume(k),M)}function q(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||ut(k)?N(k):(e.consume(k),q)}function B(k){return k===47||k===62||He(k)?C(k):n(k)}function y(k){return k===62?(e.consume(k),R):n(k)}function R(k){return k===null||we(k)?F(k):He(k)?(e.consume(k),R):n(k)}function F(k){return k===45&&o===2?(e.consume(k),re):k===60&&o===1?(e.consume(k),fe):k===62&&o===4?(e.consume(k),de):k===63&&o===3?(e.consume(k),A):k===93&&o===5?(e.consume(k),X):we(k)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(vN,ee,$)(k)):k===null||we(k)?(e.exit("htmlFlowData"),$(k)):(e.consume(k),F)}function $(k){return e.check(SN,U,ee)(k)}function U(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),Y}function Y(k){return k===null||we(k)?$(k):(e.enter("htmlFlowData"),F(k))}function re(k){return k===45?(e.consume(k),A):F(k)}function fe(k){return k===47?(e.consume(k),i="",ue):F(k)}function ue(k){if(k===62){const J=i.toLowerCase();return Cf.includes(J)?(e.consume(k),de):F(k)}return fn(k)&&i.length<8?(e.consume(k),i+=String.fromCharCode(k),ue):F(k)}function X(k){return k===93?(e.consume(k),A):F(k)}function A(k){return k===62?(e.consume(k),de):k===45&&o===2?(e.consume(k),A):F(k)}function de(k){return k===null||we(k)?(e.exit("htmlFlowData"),ee(k)):(e.consume(k),de)}function ee(k){return e.exit("htmlFlow"),t(k)}}function IN(e,t,n){const r=this;return o;function o(i){return we(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a):n(i)}function a(i){return r.parser.lazy[r.now().line]?n(i):t(i)}}function _N(e,t,n){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(Yi,t,n)}}const DN={name:"headingAtx",resolve:wN,tokenize:NN};function wN(e,t){let n=e.length-2,r=3,o,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(o={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},_n(e,r,n-r+1,[["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t]])),e}function NN(e,t,n){let r=0;return o;function o(d){return e.enter("atxHeading"),a(d)}function a(d){return e.enter("atxHeadingSequence"),i(d)}function i(d){return d===35&&r++<6?(e.consume(d),i):d===null||ut(d)?(e.exit("atxHeadingSequence"),s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||we(d)?(e.exit("atxHeading"),t(d)):He(d)?ze(e,s,"whitespace")(d):(e.enter("atxHeadingText"),c(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),s(d))}function c(d){return d===null||d===35||ut(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),c)}}const oy={name:"characterEscape",tokenize:PN};function PN(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),o}function o(a){return QI(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const ay={name:"characterReference",tokenize:RN};function RN(e,t,n){const r=this;let o=0,a,i;return s;function s(u){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),l}function l(u){return u===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(u),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,i=on,d(u))}function c(u){return u===88||u===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(u),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,i=KI,d):(e.enter("characterReferenceValue"),a=7,i=zu,d(u))}function d(u){if(u===59&&o){const h=e.exit("characterReferenceValue");return i===on&&!ih(r.sliceSerialize(h))?n(u):(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return i(u)&&o++<a?(e.consume(u),d):n(u)}}const LN={name:"codeText",previous:ON,resolve:$N,tokenize:MN};function $N(e){let t=e.length-4,n=3,r,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)o===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(o=r):(r===t||e[r][1].type==="lineEnding")&&(e[o][1].type="codeTextData",r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),t-=r-o-2,r=o+2),o=void 0);return e}function ON(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function MN(e,t,n){let r=0,o,a;return i;function i(u){return e.enter("codeText"),e.enter("codeTextSequence"),s(u)}function s(u){return u===96?(e.consume(u),r++,s):(e.exit("codeTextSequence"),l(u))}function l(u){return u===null?n(u):u===32?(e.enter("space"),e.consume(u),e.exit("space"),l):u===96?(a=e.enter("codeTextSequence"),o=0,d(u)):we(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(u))}function c(u){return u===null||u===32||u===96||we(u)?(e.exit("codeTextData"),l(u)):(e.consume(u),c)}function d(u){return u===96?(e.consume(u),o++,d):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(u)):(a.type="codeTextData",c(u))}}const Yu={name:"attention",resolveAll:FN,tokenize:BN};function FN(e,t){let n=-1,r,o,a,i,s,l,c,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const u={...e[r][1].end},h={...e[n][1].start};vf(u,-l),vf(h,l),i={type:l>1?"strongSequence":"emphasisSequence",start:u,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},a={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},o={type:l>1?"strong":"emphasis",start:{...i.start},end:{...s.end}},e[r][1].end={...i.start},e[n][1].start={...s.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=On(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=On(c,[["enter",o,t],["enter",i,t],["exit",i,t],["enter",a,t]]),c=On(c,tc(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=On(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,c=On(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,_n(e,r-1,n-r+3,c),n=r+c.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function BN(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=xa(r);let a;return i;function i(l){return a=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===a)return e.consume(l),s;const c=e.exit("attentionSequence"),d=xa(l),u=!d||d===2&&o||n.includes(l),h=!o||o===2&&d||n.includes(r);return c._open=!!(a===42?u:u&&(o||!h)),c._close=!!(a===42?h:h&&(d||!u)),t(l)}}function vf(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const sh={name:"labelEnd",resolveAll:zN,resolveTo:GN,tokenize:qN},jN={tokenize:WN},HN={tokenize:VN},UN={tokenize:YN};function zN(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const o=r.type==="labelImage"?4:2;r.type="data",t+=o}}return e.length!==n.length&&_n(e,0,e.length,n),e}function GN(e,t){let n=e.length,r=0,o,a,i,s;for(;n--;)if(o=e[n][1],a){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(i){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(a=n,o.type!=="labelLink")){r=2;break}}else o.type==="labelEnd"&&(i=n);const l={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[a][1].start},end:{...e[i][1].end}},d={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[i-2][1].start}};return s=[["enter",l,t],["enter",c,t]],s=On(s,e.slice(a+1,a+r+3)),s=On(s,[["enter",d,t]]),s=On(s,tc(t.parser.constructs.insideSpan.null,e.slice(a+r+4,i-3),t)),s=On(s,[["exit",d,t],e[i-2],e[i-1],["exit",c,t]]),s=On(s,e.slice(i+1)),s=On(s,[["exit",l,t]]),_n(e,a,e.length,s),e}function qN(e,t,n){const r=this;let o=r.events.length,a,i;for(;o--;)if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){a=r.events[o][1];break}return s;function s(h){return a?a._inactive?u(h):(i=r.parser.defined.includes(Yn(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),l):n(h)}function l(h){return h===40?e.attempt(jN,d,i?d:u)(h):h===91?e.attempt(HN,d,i?c:u)(h):i?d(h):u(h)}function c(h){return e.attempt(UN,d,u)(h)}function d(h){return t(h)}function u(h){return a._balanced=!0,n(h)}}function WN(e,t,n){return r;function r(u){return e.enter("resource"),e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),o}function o(u){return ut(u)?hi(e,a)(u):a(u)}function a(u){return u===41?d(u):ty(e,i,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function i(u){return ut(u)?hi(e,l)(u):d(u)}function s(u){return n(u)}function l(u){return u===34||u===39||u===40?ry(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):d(u)}function c(u){return ut(u)?hi(e,d)(u):d(u)}function d(u){return u===41?(e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),e.exit("resource"),t):n(u)}}function VN(e,t,n){const r=this;return o;function o(s){return ny.call(r,e,a,i,"reference","referenceMarker","referenceString")(s)}function a(s){return r.parser.defined.includes(Yn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function i(s){return n(s)}}function YN(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),o}function o(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const KN={name:"hardBreakEscape",tokenize:QN};function QN(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),o}function o(a){return we(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const XN={name:"labelStartLink",resolveAll:sh.resolveAll,tokenize:JN};function JN(e,t,n){const r=this;return o;function o(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),a}function a(i){return i===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(i):t(i)}}const ZN={name:"autolink",tokenize:e5};function e5(e,t,n){let r=0;return o;function o(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(p){return fn(p)?(e.consume(p),i):p===64?n(p):c(p)}function i(p){return p===43||p===45||p===46||on(p)?(r=1,s(p)):c(p)}function s(p){return p===58?(e.consume(p),r=0,l):(p===43||p===45||p===46||on(p))&&r++<32?(e.consume(p),s):(r=0,c(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||gl(p)?n(p):(e.consume(p),l)}function c(p){return p===64?(e.consume(p),d):YI(p)?(e.consume(p),c):n(p)}function d(p){return on(p)?u(p):n(p)}function u(p){return p===46?(e.consume(p),r=0,d):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):h(p)}function h(p){if((p===45||on(p))&&r++<63){const g=p===45?h:u;return e.consume(p),g}return n(p)}}const t5={name:"htmlText",tokenize:n5};function n5(e,t,n){const r=this;let o,a,i;return s;function s(A){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(A),l}function l(A){return A===33?(e.consume(A),c):A===47?(e.consume(A),N):A===63?(e.consume(A),C):fn(A)?(e.consume(A),q):n(A)}function c(A){return A===45?(e.consume(A),d):A===91?(e.consume(A),a=0,g):fn(A)?(e.consume(A),v):n(A)}function d(A){return A===45?(e.consume(A),p):n(A)}function u(A){return A===null?n(A):A===45?(e.consume(A),h):we(A)?(i=u,fe(A)):(e.consume(A),u)}function h(A){return A===45?(e.consume(A),p):u(A)}function p(A){return A===62?re(A):A===45?h(A):u(A)}function g(A){const de="CDATA[";return A===de.charCodeAt(a++)?(e.consume(A),a===de.length?b:g):n(A)}function b(A){return A===null?n(A):A===93?(e.consume(A),x):we(A)?(i=b,fe(A)):(e.consume(A),b)}function x(A){return A===93?(e.consume(A),E):b(A)}function E(A){return A===62?re(A):A===93?(e.consume(A),E):b(A)}function v(A){return A===null||A===62?re(A):we(A)?(i=v,fe(A)):(e.consume(A),v)}function C(A){return A===null?n(A):A===63?(e.consume(A),I):we(A)?(i=C,fe(A)):(e.consume(A),C)}function I(A){return A===62?re(A):C(A)}function N(A){return fn(A)?(e.consume(A),S):n(A)}function S(A){return A===45||on(A)?(e.consume(A),S):M(A)}function M(A){return we(A)?(i=M,fe(A)):He(A)?(e.consume(A),M):re(A)}function q(A){return A===45||on(A)?(e.consume(A),q):A===47||A===62||ut(A)?B(A):n(A)}function B(A){return A===47?(e.consume(A),re):A===58||A===95||fn(A)?(e.consume(A),y):we(A)?(i=B,fe(A)):He(A)?(e.consume(A),B):re(A)}function y(A){return A===45||A===46||A===58||A===95||on(A)?(e.consume(A),y):R(A)}function R(A){return A===61?(e.consume(A),F):we(A)?(i=R,fe(A)):He(A)?(e.consume(A),R):B(A)}function F(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),o=A,$):we(A)?(i=F,fe(A)):He(A)?(e.consume(A),F):(e.consume(A),U)}function $(A){return A===o?(e.consume(A),o=void 0,Y):A===null?n(A):we(A)?(i=$,fe(A)):(e.consume(A),$)}function U(A){return A===null||A===34||A===39||A===60||A===61||A===96?n(A):A===47||A===62||ut(A)?B(A):(e.consume(A),U)}function Y(A){return A===47||A===62||ut(A)?B(A):n(A)}function re(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),t):n(A)}function fe(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),ue}function ue(A){return He(A)?ze(e,X,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):X(A)}function X(A){return e.enter("htmlTextData"),i(A)}}const r5={name:"labelStartImage",resolveAll:sh.resolveAll,tokenize:o5};function o5(e,t,n){const r=this;return o;function o(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),i):n(s)}function i(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Jc={name:"lineEnding",tokenize:a5};function a5(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ze(e,t,"linePrefix")}}const i5={42:bn,43:bn,45:bn,48:bn,49:bn,50:bn,51:bn,52:bn,53:bn,54:bn,55:bn,56:bn,57:bn,62:ey},s5={91:uN},l5={[-2]:Xc,[-1]:Xc,32:Xc},c5={35:DN,42:Ms,45:[Tf,Ms],60:CN,61:Tf,95:Ms,96:xf,126:xf},u5={38:ay,92:oy},d5={[-5]:Jc,[-4]:Jc,[-3]:Jc,33:r5,38:ay,42:Yu,60:[ZN,t5],91:XN,92:[KN,oy],93:sh,95:Yu,96:LN},h5={null:[Yu,Kw]},p5={null:[42,95]},f5={null:[]},m5=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:p5,contentInitial:s5,disable:f5,document:i5,flow:c5,flowInitial:l5,insideSpan:h5,string:u5,text:d5},Symbol.toStringTag,{value:"Module"}));function g5(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},a=[];let i=[],s=[];const l={attempt:M(N),check:M(S),consume:v,enter:C,exit:I,interrupt:M(S,{interrupt:!0})},c={code:null,containerState:{},defineSkip:b,events:[],now:g,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:u};let d=t.tokenize.call(c,l);return t.resolveAll&&a.push(t),c;function u(R){return i=On(i,R),x(),i[i.length-1]!==null?[]:(q(t,0),c.events=tc(a,c.events,c),c.events)}function h(R,F){return b5(p(R),F)}function p(R){return y5(i,R)}function g(){const{_bufferIndex:R,_index:F,line:$,column:U,offset:Y}=r;return{_bufferIndex:R,_index:F,line:$,column:U,offset:Y}}function b(R){o[R.line]=R.column,y()}function x(){let R;for(;r._index<i.length;){const F=i[r._index];if(typeof F=="string")for(R=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===R&&r._bufferIndex<F.length;)E(F.charCodeAt(r._bufferIndex));else E(F)}}function E(R){d=d(R)}function v(R){we(R)?(r.line++,r.column=1,r.offset+=R===-3?2:1,y()):R!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=R}function C(R,F){const $=F||{};return $.type=R,$.start=g(),c.events.push(["enter",$,c]),s.push($),$}function I(R){const F=s.pop();return F.end=g(),c.events.push(["exit",F,c]),F}function N(R,F){q(R,F.from)}function S(R,F){F.restore()}function M(R,F){return $;function $(U,Y,re){let fe,ue,X,A;return Array.isArray(U)?ee(U):"tokenize"in U?ee([U]):de(U);function de(he){return ye;function ye(me){const Fe=me!==null&&he[me],Oe=me!==null&&he.null,Te=[...Array.isArray(Fe)?Fe:Fe?[Fe]:[],...Array.isArray(Oe)?Oe:Oe?[Oe]:[]];return ee(Te)(me)}}function ee(he){return fe=he,ue=0,he.length===0?re:k(he[ue])}function k(he){return ye;function ye(me){return A=B(),X=he,he.partial||(c.currentConstruct=he),he.name&&c.parser.constructs.disable.null.includes(he.name)?Ee():he.tokenize.call(F?Object.assign(Object.create(c),F):c,l,J,Ee)(me)}}function J(he){return R(X,A),Y}function Ee(he){return A.restore(),++ue<fe.length?k(fe[ue]):re}}}function q(R,F){R.resolveAll&&!a.includes(R)&&a.push(R),R.resolve&&_n(c.events,F,c.events.length-F,R.resolve(c.events.slice(F),c)),R.resolveTo&&(c.events=R.resolveTo(c.events,c))}function B(){const R=g(),F=c.previous,$=c.currentConstruct,U=c.events.length,Y=Array.from(s);return{from:U,restore:re};function re(){r=R,c.previous=F,c.currentConstruct=$,c.events.length=U,s=Y,y()}}function y(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function y5(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;let i;if(n===o)i=[e[n].slice(r,a)];else{if(i=e.slice(n,o),r>-1){const s=i[0];typeof s=="string"?i[0]=s.slice(r):i.shift()}a>0&&i.push(e[o].slice(0,a))}return i}function b5(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const a=e[n];let i;if(typeof a=="string")i=a;else switch(a){case-5:{i="\r";break}case-4:{i=`
127
+ `))}function l(p,g,b,x){const E=b.enter("tableCell"),v=b.enter("phrasing"),C=b.containerPhrasing(p,{...x,before:a,after:a});return v(),E(),C}function c(p,g){return hD(p,{align:g,alignDelimiters:r,padding:n,stringLength:o})}function d(p,g,b){const x=p.children;let E=-1;const v=[],C=g.enter("table");for(;++E<x.length;)v[E]=u(x[E],g,b);return C(),v}function u(p,g,b){const x=p.children;let E=-1;const v=[],C=g.enter("tableRow");for(;++E<x.length;)v[E]=l(x[E],p,g,b);return C(),v}function h(p,g,b){let x=V1.inlineCode(p,g,b);return b.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function tw(){return{exit:{taskListCheckValueChecked:cf,taskListCheckValueUnchecked:cf,paragraph:rw}}}function nw(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ow}}}function cf(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function rw(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const o=t.children;let a=-1,i;for(;++a<o.length;){const s=o[a];if(s.type==="paragraph"){i=s;break}}i===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function ow(e,t,n,r){const o=e.children[0],a=typeof e.checked=="boolean"&&o&&o.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);a&&s.move(i);let l=V1.listItem(e,t,n,{...r,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(d){return d+i}}function aw(){return[$_(),nD(),iD(),YD(),tw()]}function iw(e){return{extensions:[O_(),rD(e),sD(),ew(e),nw()]}}const sw={};function lw(e){const t=this,n=e||sw,r=t.data(),o=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),i=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);o.push(D_(n)),a.push(aw()),i.push(iw(n))}function uf(e){if(e)throw e}var zc,df;function cw(){if(df)return zc;df=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(l){return typeof Array.isArray=="function"?Array.isArray(l):t.call(l)==="[object Array]"},a=function(l){if(!l||t.call(l)!=="[object Object]")return!1;var c=e.call(l,"constructor"),d=l.constructor&&l.constructor.prototype&&e.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!c&&!d)return!1;var u;for(u in l);return typeof u>"u"||e.call(l,u)},i=function(l,c){n&&c.name==="__proto__"?n(l,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):l[c.name]=c.newValue},s=function(l,c){if(c==="__proto__")if(e.call(l,c)){if(r)return r(l,c).value}else return;return l[c]};return zc=function l(){var c,d,u,h,p,g,b=arguments[0],x=1,E=arguments.length,v=!1;for(typeof b=="boolean"&&(v=b,b=arguments[1]||{},x=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});x<E;++x)if(c=arguments[x],c!=null)for(d in c)u=s(b,d),h=s(c,d),b!==h&&(v&&h&&(a(h)||(p=o(h)))?(p?(p=!1,g=u&&o(u)?u:[]):g=u&&a(u)?u:{},i(b,{name:d,newValue:l(v,g,h)})):typeof h<"u"&&i(b,{name:d,newValue:h}));return b},zc}var uw=cw();const Gc=Kl(uw);function qu(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}const dw=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r};function hw(){const e=[],t={run:n,use:r};return t;function n(...o){let a=-1;const i=o.pop();if(typeof i!="function")throw new TypeError("Expected function as last argument, not "+i);s(null,...o);function s(l,...c){const d=e[++a];let u=-1;if(l){i(l);return}for(;++u<o.length;)(c[u]===null||c[u]===void 0)&&(c[u]=o[u]);o=c,d?pw(d,s)(...c):i(null,...c)}}function r(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function pw(e,t){let n;return r;function r(...i){const s=e.length>i.length;let l;s&&i.push(o);try{l=e.apply(this,i)}catch(c){const d=c;if(s&&n)throw d;return o(d)}s||(l&&l.then&&typeof l.then=="function"?l.then(a,o):l instanceof Error?o(l):a(l))}function o(i,...s){n||(n=!0,t(i,...s))}function a(i){o(null,i)}}const ir={basename:fw,dirname:mw,extname:gw,join:yw,sep:"/"};function fw(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ki(e);let n=0,r=-1,o=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(a){n=o+1;break}}else r<0&&(a=!0,r=o+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let i=-1,s=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(a){n=o+1;break}}else i<0&&(a=!0,i=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(r=o):(s=-1,r=i));return n===r?r=i:r<0&&(r=e.length),e.slice(n,r)}function mw(e){if(Ki(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function gw(e){Ki(e);let t=e.length,n=-1,r=0,o=-1,a=0,i;for(;t--;){const s=e.codePointAt(t);if(s===47){if(i){r=t+1;break}continue}n<0&&(i=!0,n=t+1),s===46?o<0?o=t:a!==1&&(a=1):o>-1&&(a=-1)}return o<0||n<0||a===0||a===1&&o===n-1&&o===r+1?"":e.slice(o,n)}function yw(...e){let t=-1,n;for(;++t<e.length;)Ki(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":bw(n)}function bw(e){Ki(e);const t=e.codePointAt(0)===47;let n=Ew(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Ew(e,t){let n="",r=0,o=-1,a=0,i=-1,s,l;for(;++i<=e.length;){if(i<e.length)s=e.codePointAt(i);else{if(s===47)break;s=47}if(s===47){if(!(o===i-1||a===1))if(o!==i-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),o=i,a=0;continue}}else if(n.length>0){n="",r=0,o=i,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(o+1,i):n=e.slice(o+1,i),r=i-o-1;o=i,a=0}else s===46&&a>-1?a++:a=-1}return n}function Ki(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const xw={cwd:Tw};function Tw(){return"/"}function Wu(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Cw(e){if(typeof e=="string")e=new URL(e);else if(!Wu(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return vw(e)}function vw(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}function di(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?hf(e.position):"start"in e||"end"in e?hf(e):"line"in e||"column"in e?Vu(e):""}function Vu(e){return pf(e&&e.line)+":"+pf(e&&e.column)}function hf(e){return Vu(e&&e.start)+"-"+Vu(e&&e.end)}function pf(e){return e&&typeof e=="number"?e:1}let ln=class extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",a={},i=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?o=t:!a.cause&&t&&(i=!0,o=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=s?s.line:void 0,this.name=di(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=i&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};ln.prototype.file="";ln.prototype.name="";ln.prototype.reason="";ln.prototype.message="";ln.prototype.stack="";ln.prototype.column=void 0;ln.prototype.line=void 0;ln.prototype.ancestors=void 0;ln.prototype.cause=void 0;ln.prototype.fatal=void 0;ln.prototype.place=void 0;ln.prototype.ruleId=void 0;ln.prototype.source=void 0;const qc=["history","path","basename","stem","extname","dirname"];let Y1=class{constructor(t){let n;t?Wu(t)?n={path:t}:typeof t=="string"||Sw(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":xw.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<qc.length;){const a=qc[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let o;for(o in n)qc.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?ir.basename(this.path):void 0}set basename(t){Vc(t,"basename"),Wc(t,"basename"),this.path=ir.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ir.dirname(this.path):void 0}set dirname(t){ff(this.basename,"dirname"),this.path=ir.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ir.extname(this.path):void 0}set extname(t){if(Wc(t,"extname"),ff(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ir.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Wu(t)&&(t=Cw(t)),Vc(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ir.basename(this.path,this.extname):void 0}set stem(t){Vc(t,"stem"),Wc(t,"stem"),this.path=ir.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const o=this.message(t,n,r);throw o.fatal=!0,o}info(t,n,r){const o=this.message(t,n,r);return o.fatal=void 0,o}message(t,n,r){const o=new ln(t,n,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function Wc(e,t){if(e&&e.includes(ir.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ir.sep+"`")}function Vc(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ff(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Sw(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const kw={}.hasOwnProperty;let Aw=class K1 extends dw{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=hw()}copy(){const t=new K1;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Gc(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Qc("data",this.frozen),this.namespace[t]=n,this):kw.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Qc("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const o=n.call(t,...r);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Es(t),r=this.parser||this.Parser;return Yc("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Yc("process",this.parser||this.Parser),Kc("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(a,i){const s=Es(t),l=r.parse(s);r.run(l,s,function(d,u,h){if(d||!u||!h)return c(d);const p=u,g=r.stringify(p,h);Dw(g)?h.value=g:h.result=g,c(d,h)});function c(d,u){d||!u?i(d):a?a(u):n(void 0,u)}}}processSync(t){let n=!1,r;return this.freeze(),Yc("processSync",this.parser||this.Parser),Kc("processSync",this.compiler||this.Compiler),this.process(t,o),gf("processSync","process",n),r;function o(a,i){n=!0,uf(a),r=i}}run(t,n,r){mf(t),this.freeze();const o=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(i,s){const l=Es(n);o.run(t,l,c);function c(d,u,h){const p=u||t;d?s(d):i?i(p):r(void 0,p,h)}}}runSync(t,n){let r=!1,o;return this.run(t,n,a),gf("runSync","run",r),o;function a(i,s){uf(i),o=s,r=!0}}stringify(t,n){this.freeze();const r=Es(n),o=this.compiler||this.Compiler;return Kc("stringify",o),mf(t),o(t,r)}use(t,...n){const r=this.attachers,o=this.namespace;if(Qc("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):i(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[d,...u]=c;l(d,u)}else i(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function i(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(c.plugins),c.settings&&(o.settings=Gc(!0,o.settings,c.settings))}function s(c){let d=-1;if(c!=null)if(Array.isArray(c))for(;++d<c.length;){const u=c[d];a(u)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,d){let u=-1,h=-1;for(;++u<r.length;)if(r[u][0]===c){h=u;break}if(h===-1)r.push([c,...d]);else if(d.length>0){let[p,...g]=d;const b=r[h][1];qu(b)&&qu(p)&&(p=Gc(!0,b,p)),r[h]=[c,p,...g]}}}};const Iw=new Aw().freeze();function Yc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Kc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Qc(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function mf(e){if(!qu(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function gf(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Es(e){return _w(e)?e:new Y1(e)}function _w(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Dw(e){return typeof e=="string"||ww(e)}function ww(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function Q1(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const yf=document.createElement("i");function ih(e){const t="&"+e+";";yf.innerHTML=t;const n=yf.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const Nw=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Pw(e){return e.replace(Nw,Rw)}function Rw(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),o=r===120||r===88;return Q1(n.slice(o?2:1),o?16:10)}return ih(n)||e}let Lw=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const o=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&Ha(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ha(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ha(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Ha(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ha(this.left,n.reverse())}}};function Ha(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function X1(e){const t={};let n=-1,r,o,a,i,s,l,c;const d=new Lw(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,$w(d,n)),n=t[n],c=!0);else if(r[1]._container){for(a=n,o=void 0;a--;)if(i=d.get(a),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(o&&(d.get(o)[1].type="lineEndingBlank"),i[1].type="lineEnding",o=a);else if(!(i[1].type==="linePrefix"||i[1].type==="listItemIndent"))break;o&&(r[1].end={...d.get(o)[1].start},s=d.slice(o,n),s.unshift(r),d.splice(o,n-o+1,s))}}return _n(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!c}function $w(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const a=[];let i=n._tokenizer;i||(i=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const s=i.events,l=[],c={};let d,u,h=-1,p=n,g=0,b=0;const x=[b];for(;p;){for(;e.get(++o)[1]!==p;);a.push(o),p._tokenizer||(d=r.sliceStream(p),p.next||d.push(null),u&&i.defineSkip(p.start),p._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(d),p._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),u=p,p=p.next}for(p=n;++h<s.length;)s[h][0]==="exit"&&s[h-1][0]==="enter"&&s[h][1].type===s[h-1][1].type&&s[h][1].start.line!==s[h][1].end.line&&(b=h+1,x.push(b),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(i.events=[],p?(p._tokenizer=void 0,p.previous=void 0):x.pop(),h=x.length;h--;){const E=s.slice(x[h],x[h+1]),v=a.pop();l.push([v,v+E.length-1]),e.splice(v,2,E)}for(l.reverse(),h=-1;++h<l.length;)c[g+l[h][0]]=g+l[h][1],g+=l[h][1]-l[h][0]-1;return c}function Ow(e){for(;!X1(e););return e}const Mw={tokenize:Fw};function Fw(e){const t=e.attempt(this.parser.constructs.contentInitial,r,o);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ze(e,t,"linePrefix")}function o(s){return e.enter("paragraph"),a(s)}function a(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,i(s)}function i(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return we(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),i)}}const Bw={tokenize:jw},bf={tokenize:Hw};function jw(e){const t=this,n=[];let r=0,o,a,i;return s;function s(C){if(r<n.length){const I=n[r];return t.containerState=I[1],e.attempt(I[0].continuation,l,c)(C)}return c(C)}function l(C){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&v();const I=t.events.length;let w=I,S;for(;w--;)if(t.events[w][0]==="exit"&&t.events[w][1].type==="chunkFlow"){S=t.events[w][1].end;break}E(r);let M=I;for(;M<t.events.length;)t.events[M][1].end={...S},M++;return _n(t.events,w+1,0,t.events.slice(I)),t.events.length=M,c(C)}return s(C)}function c(C){if(r===n.length){if(!o)return h(C);if(o.currentConstruct&&o.currentConstruct.concrete)return g(C);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(bf,d,u)(C)}function d(C){return o&&v(),E(r),h(C)}function u(C){return t.parser.lazy[t.now().line]=r!==n.length,i=t.now().offset,g(C)}function h(C){return t.containerState={},e.attempt(bf,p,g)(C)}function p(C){return r++,n.push([t.currentConstruct,t.containerState]),h(C)}function g(C){if(C===null){o&&v(),E(0),e.consume(C);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:a}),b(C)}function b(C){if(C===null){x(e.exit("chunkFlow"),!0),E(0),e.consume(C);return}return we(C)?(e.consume(C),x(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(C),b)}function x(C,I){const w=t.sliceStream(C);if(I&&w.push(null),C.previous=a,a&&(a.next=C),a=C,o.defineSkip(C.start),o.write(w),t.parser.lazy[C.start.line]){let S=o.events.length;for(;S--;)if(o.events[S][1].start.offset<i&&(!o.events[S][1].end||o.events[S][1].end.offset>i))return;const M=t.events.length;let q=M,B,y;for(;q--;)if(t.events[q][0]==="exit"&&t.events[q][1].type==="chunkFlow"){if(B){y=t.events[q][1].end;break}B=!0}for(E(r),S=M;S<t.events.length;)t.events[S][1].end={...y},S++;_n(t.events,q+1,0,t.events.slice(M)),t.events.length=S}}function E(C){let I=n.length;for(;I-- >C;){const w=n[I];t.containerState=w[1],w[0].exit.call(t,e)}n.length=C}function v(){o.write([null]),a=void 0,o=void 0,t.containerState._closeFlow=void 0}}function Hw(e,t,n){return ze(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const Uw={resolve:Gw,tokenize:qw},zw={partial:!0,tokenize:Ww};function Gw(e){return X1(e),e}function qw(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(s)}function o(s){return s===null?a(s):we(s)?e.check(zw,i,a)(s):(e.consume(s),o)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function i(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function Ww(e,t,n){const r=this;return o;function o(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),ze(e,a,"linePrefix")}function a(i){if(i===null||we(i))return n(i);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}const Vw={tokenize:Yw};function Yw(e){const t=this,n=e.attempt(Yi,r,e.attempt(this.parser.constructs.flowInitial,o,ze(e,e.attempt(this.parser.constructs.flow,o,e.attempt(Uw,o)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Kw={resolveAll:Z1()},Qw=J1("string"),Xw=J1("text");function J1(e){return{resolveAll:Z1(e==="text"?Jw:void 0),tokenize:t};function t(n){const r=this,o=this.parser.constructs[e],a=n.attempt(o,i,s);return i;function i(d){return c(d)?a(d):s(d)}function s(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return c(d)?(n.exit("data"),a(d)):(n.consume(d),l)}function c(d){if(d===null)return!0;const u=o[d];let h=-1;if(u)for(;++h<u.length;){const p=u[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Z1(e){return t;function t(n,r){let o=-1,a;for(;++o<=n.length;)a===void 0?n[o]&&n[o][1].type==="data"&&(a=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==a+2&&(n[a][1].end=n[o-1][1].end,n.splice(a+2,o-a-2),o=a+2),a=void 0);return e?e(n,r):n}}function Jw(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],o=t.sliceStream(r);let a=o.length,i=-1,s=0,l;for(;a--;){const c=o[a];if(typeof c=="string"){for(i=c.length;c.charCodeAt(i-1)===32;)s++,i--;if(i)break;i=-1}else if(c===-2)l=!0,s++;else if(c!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const c={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?i:r.start._bufferIndex+i,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const ey={continuation:{tokenize:eN},exit:tN,name:"blockQuote",tokenize:Zw};function Zw(e,t,n){const r=this;return o;function o(i){if(i===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),a}return n(i)}function a(i){return He(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}function eN(e,t,n){const r=this;return o;function o(i){return He(i)?ze(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):a(i)}function a(i){return e.attempt(ey,t,n)(i)}}function tN(e){e.exit("blockQuote")}const Ms={name:"thematicBreak",tokenize:nN};function nN(e,t,n){let r=0,o;return a;function a(c){return e.enter("thematicBreak"),i(c)}function i(c){return o=c,s(c)}function s(c){return c===o?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||we(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===o?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),He(c)?ze(e,s,"whitespace")(c):s(c))}}const bn={continuation:{tokenize:iN},exit:lN,name:"list",tokenize:aN},rN={partial:!0,tokenize:cN},oN={partial:!0,tokenize:sN};function aN(e,t,n){const r=this,o=r.events[r.events.length-1];let a=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,i=0;return s;function s(p){const g=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:zu(p)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Ms,n,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return zu(p)&&++i<10?(e.consume(p),l):(!r.interrupt||i<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):n(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Yi,r.interrupt?n:d,e.attempt(rN,h,u))}function d(p){return r.containerState.initialBlankLine=!0,a++,h(p)}function u(p){return He(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function iN(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Yi,o,a);function o(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ze(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!He(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(oN,t,i)(s))}function i(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,ze(e,e.attempt(bn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function sN(e,t,n){const r=this;return ze(e,o,"listItemIndent",r.containerState.size+1);function o(a){const i=r.events[r.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(a):n(a)}}function lN(e){e.exit(this.containerState.type)}function cN(e,t,n){const r=this;return ze(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(a){const i=r.events[r.events.length-1];return!He(a)&&i&&i[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}function ty(e,t,n,r,o,a,i,s,l){const c=l||Number.POSITIVE_INFINITY;let d=0;return u;function u(E){return E===60?(e.enter(r),e.enter(o),e.enter(a),e.consume(E),e.exit(a),h):E===null||E===32||E===41||gl(E)?n(E):(e.enter(r),e.enter(i),e.enter(s),e.enter("chunkString",{contentType:"string"}),b(E))}function h(E){return E===62?(e.enter(a),e.consume(E),e.exit(a),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(E))}function p(E){return E===62?(e.exit("chunkString"),e.exit(s),h(E)):E===null||E===60||we(E)?n(E):(e.consume(E),E===92?g:p)}function g(E){return E===60||E===62||E===92?(e.consume(E),p):p(E)}function b(E){return!d&&(E===null||E===41||ut(E))?(e.exit("chunkString"),e.exit(s),e.exit(i),e.exit(r),t(E)):d<c&&E===40?(e.consume(E),d++,b):E===41?(e.consume(E),d--,b):E===null||E===32||E===40||gl(E)?n(E):(e.consume(E),E===92?x:b)}function x(E){return E===40||E===41||E===92?(e.consume(E),b):b(E)}}function ny(e,t,n,r,o,a){const i=this;let s=0,l;return c;function c(p){return e.enter(r),e.enter(o),e.consume(p),e.exit(o),e.enter(a),d}function d(p){return s>999||p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in i.parser.constructs?n(p):p===93?(e.exit(a),e.enter(o),e.consume(p),e.exit(o),e.exit(r),t):we(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===null||p===91||p===93||we(p)||s++>999?(e.exit("chunkString"),d(p)):(e.consume(p),l||(l=!He(p)),p===92?h:u)}function h(p){return p===91||p===92||p===93?(e.consume(p),s++,u):u(p)}}function ry(e,t,n,r,o,a){let i;return s;function s(h){return h===34||h===39||h===40?(e.enter(r),e.enter(o),e.consume(h),e.exit(o),i=h===40?41:h,l):n(h)}function l(h){return h===i?(e.enter(o),e.consume(h),e.exit(o),e.exit(r),t):(e.enter(a),c(h))}function c(h){return h===i?(e.exit(a),l(i)):h===null?n(h):we(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),ze(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===i||h===null||we(h)?(e.exit("chunkString"),c(h)):(e.consume(h),h===92?u:d)}function u(h){return h===i||h===92?(e.consume(h),d):d(h)}}function hi(e,t){let n;return r;function r(o){return we(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):He(o)?ze(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const uN={name:"definition",tokenize:hN},dN={partial:!0,tokenize:pN};function hN(e,t,n){const r=this;let o;return a;function a(p){return e.enter("definition"),i(p)}function i(p){return ny.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return o=Yn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return ut(p)?hi(e,c)(p):c(p)}function c(p){return ty(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function d(p){return e.attempt(dN,u,u)(p)}function u(p){return He(p)?ze(e,h,"whitespace")(p):h(p)}function h(p){return p===null||we(p)?(e.exit("definition"),r.parser.defined.push(o),t(p)):n(p)}}function pN(e,t,n){return r;function r(s){return ut(s)?hi(e,o)(s):n(s)}function o(s){return ry(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return He(s)?ze(e,i,"whitespace")(s):i(s)}function i(s){return s===null||we(s)?t(s):n(s)}}const Xc={name:"codeIndented",tokenize:mN},fN={partial:!0,tokenize:gN};function mN(e,t,n){const r=this;return o;function o(c){return e.enter("codeIndented"),ze(e,a,"linePrefix",5)(c)}function a(c){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?i(c):n(c)}function i(c){return c===null?l(c):we(c)?e.attempt(fN,i,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||we(c)?(e.exit("codeFlowValue"),i(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function gN(e,t,n){const r=this;return o;function o(i){return r.parser.lazy[r.now().line]?n(i):we(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o):ze(e,a,"linePrefix",5)(i)}function a(i){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(i):we(i)?o(i):n(i)}}const Ef={partial:!0,tokenize:bN},xf={concrete:!0,name:"codeFenced",tokenize:yN};function yN(e,t,n){const r=this,o={partial:!0,tokenize:w};let a=0,i=0,s;return l;function l(S){return c(S)}function c(S){const M=r.events[r.events.length-1];return a=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,s=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(S)}function d(S){return S===s?(i++,e.consume(S),d):i<3?n(S):(e.exit("codeFencedFenceSequence"),He(S)?ze(e,u,"whitespace")(S):u(S))}function u(S){return S===null||we(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(Ef,b,I)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(S))}function h(S){return S===null||we(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(S)):He(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ze(e,p,"whitespace")(S)):S===96&&S===s?n(S):(e.consume(S),h)}function p(S){return S===null||we(S)?u(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(S))}function g(S){return S===null||we(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(S)):S===96&&S===s?n(S):(e.consume(S),g)}function b(S){return e.attempt(o,I,x)(S)}function x(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),E}function E(S){return a>0&&He(S)?ze(e,v,"linePrefix",a+1)(S):v(S)}function v(S){return S===null||we(S)?e.check(Ef,b,I)(S):(e.enter("codeFlowValue"),C(S))}function C(S){return S===null||we(S)?(e.exit("codeFlowValue"),v(S)):(e.consume(S),C)}function I(S){return e.exit("codeFenced"),t(S)}function w(S,M,q){let B=0;return y;function y(Y){return S.enter("lineEnding"),S.consume(Y),S.exit("lineEnding"),R}function R(Y){return S.enter("codeFencedFence"),He(Y)?ze(S,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):F(Y)}function F(Y){return Y===s?(S.enter("codeFencedFenceSequence"),$(Y)):q(Y)}function $(Y){return Y===s?(B++,S.consume(Y),$):B>=i?(S.exit("codeFencedFenceSequence"),He(Y)?ze(S,U,"whitespace")(Y):U(Y)):q(Y)}function U(Y){return Y===null||we(Y)?(S.exit("codeFencedFence"),M(Y)):q(Y)}}}function bN(e,t,n){const r=this;return o;function o(i){return i===null?n(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a)}function a(i){return r.parser.lazy[r.now().line]?n(i):t(i)}}const Tf={name:"setextUnderline",resolveTo:EN,tokenize:xN};function EN(e,t){let n=e.length,r,o,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const i={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",a?(e.splice(o,0,["enter",i,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=i,e.push(["exit",i,t]),e}function xN(e,t,n){const r=this;let o;return a;function a(c){let d=r.events.length,u;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){u=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||u)?(e.enter("setextHeadingLine"),o=c,i(c)):n(c)}function i(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===o?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),He(c)?ze(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||we(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const TN=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Cf=["pre","script","style","textarea"],CN={concrete:!0,name:"htmlFlow",resolveTo:kN,tokenize:AN},vN={partial:!0,tokenize:_N},SN={partial:!0,tokenize:IN};function kN(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function AN(e,t,n){const r=this;let o,a,i,s,l;return c;function c(k){return d(k)}function d(k){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(k),u}function u(k){return k===33?(e.consume(k),h):k===47?(e.consume(k),a=!0,b):k===63?(e.consume(k),o=3,r.interrupt?t:A):fn(k)?(e.consume(k),i=String.fromCharCode(k),x):n(k)}function h(k){return k===45?(e.consume(k),o=2,p):k===91?(e.consume(k),o=5,s=0,g):fn(k)?(e.consume(k),o=4,r.interrupt?t:A):n(k)}function p(k){return k===45?(e.consume(k),r.interrupt?t:A):n(k)}function g(k){const J="CDATA[";return k===J.charCodeAt(s++)?(e.consume(k),s===J.length?r.interrupt?t:F:g):n(k)}function b(k){return fn(k)?(e.consume(k),i=String.fromCharCode(k),x):n(k)}function x(k){if(k===null||k===47||k===62||ut(k)){const J=k===47,Ee=i.toLowerCase();return!J&&!a&&Cf.includes(Ee)?(o=1,r.interrupt?t(k):F(k)):TN.includes(i.toLowerCase())?(o=6,J?(e.consume(k),E):r.interrupt?t(k):F(k)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(k):a?v(k):C(k))}return k===45||on(k)?(e.consume(k),i+=String.fromCharCode(k),x):n(k)}function E(k){return k===62?(e.consume(k),r.interrupt?t:F):n(k)}function v(k){return He(k)?(e.consume(k),v):y(k)}function C(k){return k===47?(e.consume(k),y):k===58||k===95||fn(k)?(e.consume(k),I):He(k)?(e.consume(k),C):y(k)}function I(k){return k===45||k===46||k===58||k===95||on(k)?(e.consume(k),I):w(k)}function w(k){return k===61?(e.consume(k),S):He(k)?(e.consume(k),w):C(k)}function S(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),l=k,M):He(k)?(e.consume(k),S):q(k)}function M(k){return k===l?(e.consume(k),l=null,B):k===null||we(k)?n(k):(e.consume(k),M)}function q(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||ut(k)?w(k):(e.consume(k),q)}function B(k){return k===47||k===62||He(k)?C(k):n(k)}function y(k){return k===62?(e.consume(k),R):n(k)}function R(k){return k===null||we(k)?F(k):He(k)?(e.consume(k),R):n(k)}function F(k){return k===45&&o===2?(e.consume(k),re):k===60&&o===1?(e.consume(k),fe):k===62&&o===4?(e.consume(k),de):k===63&&o===3?(e.consume(k),A):k===93&&o===5?(e.consume(k),X):we(k)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(vN,ee,$)(k)):k===null||we(k)?(e.exit("htmlFlowData"),$(k)):(e.consume(k),F)}function $(k){return e.check(SN,U,ee)(k)}function U(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),Y}function Y(k){return k===null||we(k)?$(k):(e.enter("htmlFlowData"),F(k))}function re(k){return k===45?(e.consume(k),A):F(k)}function fe(k){return k===47?(e.consume(k),i="",ue):F(k)}function ue(k){if(k===62){const J=i.toLowerCase();return Cf.includes(J)?(e.consume(k),de):F(k)}return fn(k)&&i.length<8?(e.consume(k),i+=String.fromCharCode(k),ue):F(k)}function X(k){return k===93?(e.consume(k),A):F(k)}function A(k){return k===62?(e.consume(k),de):k===45&&o===2?(e.consume(k),A):F(k)}function de(k){return k===null||we(k)?(e.exit("htmlFlowData"),ee(k)):(e.consume(k),de)}function ee(k){return e.exit("htmlFlow"),t(k)}}function IN(e,t,n){const r=this;return o;function o(i){return we(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a):n(i)}function a(i){return r.parser.lazy[r.now().line]?n(i):t(i)}}function _N(e,t,n){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(Yi,t,n)}}const DN={name:"headingAtx",resolve:wN,tokenize:NN};function wN(e,t){let n=e.length-2,r=3,o,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(o={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},_n(e,r,n-r+1,[["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t]])),e}function NN(e,t,n){let r=0;return o;function o(d){return e.enter("atxHeading"),a(d)}function a(d){return e.enter("atxHeadingSequence"),i(d)}function i(d){return d===35&&r++<6?(e.consume(d),i):d===null||ut(d)?(e.exit("atxHeadingSequence"),s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||we(d)?(e.exit("atxHeading"),t(d)):He(d)?ze(e,s,"whitespace")(d):(e.enter("atxHeadingText"),c(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),s(d))}function c(d){return d===null||d===35||ut(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),c)}}const oy={name:"characterEscape",tokenize:PN};function PN(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),o}function o(a){return QI(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const ay={name:"characterReference",tokenize:RN};function RN(e,t,n){const r=this;let o=0,a,i;return s;function s(u){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),l}function l(u){return u===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(u),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,i=on,d(u))}function c(u){return u===88||u===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(u),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,i=KI,d):(e.enter("characterReferenceValue"),a=7,i=zu,d(u))}function d(u){if(u===59&&o){const h=e.exit("characterReferenceValue");return i===on&&!ih(r.sliceSerialize(h))?n(u):(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return i(u)&&o++<a?(e.consume(u),d):n(u)}}const LN={name:"codeText",previous:ON,resolve:$N,tokenize:MN};function $N(e){let t=e.length-4,n=3,r,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)o===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(o=r):(r===t||e[r][1].type==="lineEnding")&&(e[o][1].type="codeTextData",r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),t-=r-o-2,r=o+2),o=void 0);return e}function ON(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function MN(e,t,n){let r=0,o,a;return i;function i(u){return e.enter("codeText"),e.enter("codeTextSequence"),s(u)}function s(u){return u===96?(e.consume(u),r++,s):(e.exit("codeTextSequence"),l(u))}function l(u){return u===null?n(u):u===32?(e.enter("space"),e.consume(u),e.exit("space"),l):u===96?(a=e.enter("codeTextSequence"),o=0,d(u)):we(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(u))}function c(u){return u===null||u===32||u===96||we(u)?(e.exit("codeTextData"),l(u)):(e.consume(u),c)}function d(u){return u===96?(e.consume(u),o++,d):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(u)):(a.type="codeTextData",c(u))}}const Yu={name:"attention",resolveAll:FN,tokenize:BN};function FN(e,t){let n=-1,r,o,a,i,s,l,c,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const u={...e[r][1].end},h={...e[n][1].start};vf(u,-l),vf(h,l),i={type:l>1?"strongSequence":"emphasisSequence",start:u,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},a={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},o={type:l>1?"strong":"emphasis",start:{...i.start},end:{...s.end}},e[r][1].end={...i.start},e[n][1].start={...s.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=On(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=On(c,[["enter",o,t],["enter",i,t],["exit",i,t],["enter",a,t]]),c=On(c,tc(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=On(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,c=On(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,_n(e,r-1,n-r+3,c),n=r+c.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function BN(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=xa(r);let a;return i;function i(l){return a=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===a)return e.consume(l),s;const c=e.exit("attentionSequence"),d=xa(l),u=!d||d===2&&o||n.includes(l),h=!o||o===2&&d||n.includes(r);return c._open=!!(a===42?u:u&&(o||!h)),c._close=!!(a===42?h:h&&(d||!u)),t(l)}}function vf(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const sh={name:"labelEnd",resolveAll:zN,resolveTo:GN,tokenize:qN},jN={tokenize:WN},HN={tokenize:VN},UN={tokenize:YN};function zN(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const o=r.type==="labelImage"?4:2;r.type="data",t+=o}}return e.length!==n.length&&_n(e,0,e.length,n),e}function GN(e,t){let n=e.length,r=0,o,a,i,s;for(;n--;)if(o=e[n][1],a){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(i){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(a=n,o.type!=="labelLink")){r=2;break}}else o.type==="labelEnd"&&(i=n);const l={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[a][1].start},end:{...e[i][1].end}},d={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[i-2][1].start}};return s=[["enter",l,t],["enter",c,t]],s=On(s,e.slice(a+1,a+r+3)),s=On(s,[["enter",d,t]]),s=On(s,tc(t.parser.constructs.insideSpan.null,e.slice(a+r+4,i-3),t)),s=On(s,[["exit",d,t],e[i-2],e[i-1],["exit",c,t]]),s=On(s,e.slice(i+1)),s=On(s,[["exit",l,t]]),_n(e,a,e.length,s),e}function qN(e,t,n){const r=this;let o=r.events.length,a,i;for(;o--;)if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){a=r.events[o][1];break}return s;function s(h){return a?a._inactive?u(h):(i=r.parser.defined.includes(Yn(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),l):n(h)}function l(h){return h===40?e.attempt(jN,d,i?d:u)(h):h===91?e.attempt(HN,d,i?c:u)(h):i?d(h):u(h)}function c(h){return e.attempt(UN,d,u)(h)}function d(h){return t(h)}function u(h){return a._balanced=!0,n(h)}}function WN(e,t,n){return r;function r(u){return e.enter("resource"),e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),o}function o(u){return ut(u)?hi(e,a)(u):a(u)}function a(u){return u===41?d(u):ty(e,i,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function i(u){return ut(u)?hi(e,l)(u):d(u)}function s(u){return n(u)}function l(u){return u===34||u===39||u===40?ry(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):d(u)}function c(u){return ut(u)?hi(e,d)(u):d(u)}function d(u){return u===41?(e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),e.exit("resource"),t):n(u)}}function VN(e,t,n){const r=this;return o;function o(s){return ny.call(r,e,a,i,"reference","referenceMarker","referenceString")(s)}function a(s){return r.parser.defined.includes(Yn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function i(s){return n(s)}}function YN(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),o}function o(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const KN={name:"hardBreakEscape",tokenize:QN};function QN(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),o}function o(a){return we(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const XN={name:"labelStartLink",resolveAll:sh.resolveAll,tokenize:JN};function JN(e,t,n){const r=this;return o;function o(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),a}function a(i){return i===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(i):t(i)}}const ZN={name:"autolink",tokenize:e5};function e5(e,t,n){let r=0;return o;function o(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(p){return fn(p)?(e.consume(p),i):p===64?n(p):c(p)}function i(p){return p===43||p===45||p===46||on(p)?(r=1,s(p)):c(p)}function s(p){return p===58?(e.consume(p),r=0,l):(p===43||p===45||p===46||on(p))&&r++<32?(e.consume(p),s):(r=0,c(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||gl(p)?n(p):(e.consume(p),l)}function c(p){return p===64?(e.consume(p),d):YI(p)?(e.consume(p),c):n(p)}function d(p){return on(p)?u(p):n(p)}function u(p){return p===46?(e.consume(p),r=0,d):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):h(p)}function h(p){if((p===45||on(p))&&r++<63){const g=p===45?h:u;return e.consume(p),g}return n(p)}}const t5={name:"htmlText",tokenize:n5};function n5(e,t,n){const r=this;let o,a,i;return s;function s(A){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(A),l}function l(A){return A===33?(e.consume(A),c):A===47?(e.consume(A),w):A===63?(e.consume(A),C):fn(A)?(e.consume(A),q):n(A)}function c(A){return A===45?(e.consume(A),d):A===91?(e.consume(A),a=0,g):fn(A)?(e.consume(A),v):n(A)}function d(A){return A===45?(e.consume(A),p):n(A)}function u(A){return A===null?n(A):A===45?(e.consume(A),h):we(A)?(i=u,fe(A)):(e.consume(A),u)}function h(A){return A===45?(e.consume(A),p):u(A)}function p(A){return A===62?re(A):A===45?h(A):u(A)}function g(A){const de="CDATA[";return A===de.charCodeAt(a++)?(e.consume(A),a===de.length?b:g):n(A)}function b(A){return A===null?n(A):A===93?(e.consume(A),x):we(A)?(i=b,fe(A)):(e.consume(A),b)}function x(A){return A===93?(e.consume(A),E):b(A)}function E(A){return A===62?re(A):A===93?(e.consume(A),E):b(A)}function v(A){return A===null||A===62?re(A):we(A)?(i=v,fe(A)):(e.consume(A),v)}function C(A){return A===null?n(A):A===63?(e.consume(A),I):we(A)?(i=C,fe(A)):(e.consume(A),C)}function I(A){return A===62?re(A):C(A)}function w(A){return fn(A)?(e.consume(A),S):n(A)}function S(A){return A===45||on(A)?(e.consume(A),S):M(A)}function M(A){return we(A)?(i=M,fe(A)):He(A)?(e.consume(A),M):re(A)}function q(A){return A===45||on(A)?(e.consume(A),q):A===47||A===62||ut(A)?B(A):n(A)}function B(A){return A===47?(e.consume(A),re):A===58||A===95||fn(A)?(e.consume(A),y):we(A)?(i=B,fe(A)):He(A)?(e.consume(A),B):re(A)}function y(A){return A===45||A===46||A===58||A===95||on(A)?(e.consume(A),y):R(A)}function R(A){return A===61?(e.consume(A),F):we(A)?(i=R,fe(A)):He(A)?(e.consume(A),R):B(A)}function F(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),o=A,$):we(A)?(i=F,fe(A)):He(A)?(e.consume(A),F):(e.consume(A),U)}function $(A){return A===o?(e.consume(A),o=void 0,Y):A===null?n(A):we(A)?(i=$,fe(A)):(e.consume(A),$)}function U(A){return A===null||A===34||A===39||A===60||A===61||A===96?n(A):A===47||A===62||ut(A)?B(A):(e.consume(A),U)}function Y(A){return A===47||A===62||ut(A)?B(A):n(A)}function re(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),t):n(A)}function fe(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),ue}function ue(A){return He(A)?ze(e,X,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):X(A)}function X(A){return e.enter("htmlTextData"),i(A)}}const r5={name:"labelStartImage",resolveAll:sh.resolveAll,tokenize:o5};function o5(e,t,n){const r=this;return o;function o(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),i):n(s)}function i(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Jc={name:"lineEnding",tokenize:a5};function a5(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ze(e,t,"linePrefix")}}const i5={42:bn,43:bn,45:bn,48:bn,49:bn,50:bn,51:bn,52:bn,53:bn,54:bn,55:bn,56:bn,57:bn,62:ey},s5={91:uN},l5={[-2]:Xc,[-1]:Xc,32:Xc},c5={35:DN,42:Ms,45:[Tf,Ms],60:CN,61:Tf,95:Ms,96:xf,126:xf},u5={38:ay,92:oy},d5={[-5]:Jc,[-4]:Jc,[-3]:Jc,33:r5,38:ay,42:Yu,60:[ZN,t5],91:XN,92:[KN,oy],93:sh,95:Yu,96:LN},h5={null:[Yu,Kw]},p5={null:[42,95]},f5={null:[]},m5=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:p5,contentInitial:s5,disable:f5,document:i5,flow:c5,flowInitial:l5,insideSpan:h5,string:u5,text:d5},Symbol.toStringTag,{value:"Module"}));function g5(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},a=[];let i=[],s=[];const l={attempt:M(w),check:M(S),consume:v,enter:C,exit:I,interrupt:M(S,{interrupt:!0})},c={code:null,containerState:{},defineSkip:b,events:[],now:g,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:u};let d=t.tokenize.call(c,l);return t.resolveAll&&a.push(t),c;function u(R){return i=On(i,R),x(),i[i.length-1]!==null?[]:(q(t,0),c.events=tc(a,c.events,c),c.events)}function h(R,F){return b5(p(R),F)}function p(R){return y5(i,R)}function g(){const{_bufferIndex:R,_index:F,line:$,column:U,offset:Y}=r;return{_bufferIndex:R,_index:F,line:$,column:U,offset:Y}}function b(R){o[R.line]=R.column,y()}function x(){let R;for(;r._index<i.length;){const F=i[r._index];if(typeof F=="string")for(R=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===R&&r._bufferIndex<F.length;)E(F.charCodeAt(r._bufferIndex));else E(F)}}function E(R){d=d(R)}function v(R){we(R)?(r.line++,r.column=1,r.offset+=R===-3?2:1,y()):R!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=R}function C(R,F){const $=F||{};return $.type=R,$.start=g(),c.events.push(["enter",$,c]),s.push($),$}function I(R){const F=s.pop();return F.end=g(),c.events.push(["exit",F,c]),F}function w(R,F){q(R,F.from)}function S(R,F){F.restore()}function M(R,F){return $;function $(U,Y,re){let fe,ue,X,A;return Array.isArray(U)?ee(U):"tokenize"in U?ee([U]):de(U);function de(he){return ye;function ye(me){const Fe=me!==null&&he[me],Oe=me!==null&&he.null,Te=[...Array.isArray(Fe)?Fe:Fe?[Fe]:[],...Array.isArray(Oe)?Oe:Oe?[Oe]:[]];return ee(Te)(me)}}function ee(he){return fe=he,ue=0,he.length===0?re:k(he[ue])}function k(he){return ye;function ye(me){return A=B(),X=he,he.partial||(c.currentConstruct=he),he.name&&c.parser.constructs.disable.null.includes(he.name)?Ee():he.tokenize.call(F?Object.assign(Object.create(c),F):c,l,J,Ee)(me)}}function J(he){return R(X,A),Y}function Ee(he){return A.restore(),++ue<fe.length?k(fe[ue]):re}}}function q(R,F){R.resolveAll&&!a.includes(R)&&a.push(R),R.resolve&&_n(c.events,F,c.events.length-F,R.resolve(c.events.slice(F),c)),R.resolveTo&&(c.events=R.resolveTo(c.events,c))}function B(){const R=g(),F=c.previous,$=c.currentConstruct,U=c.events.length,Y=Array.from(s);return{from:U,restore:re};function re(){r=R,c.previous=F,c.currentConstruct=$,c.events.length=U,s=Y,y()}}function y(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function y5(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;let i;if(n===o)i=[e[n].slice(r,a)];else{if(i=e.slice(n,o),r>-1){const s=i[0];typeof s=="string"?i[0]=s.slice(r):i.shift()}a>0&&i.push(e[o].slice(0,a))}return i}function b5(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const a=e[n];let i;if(typeof a=="string")i=a;else switch(a){case-5:{i="\r";break}case-4:{i=`
128
128
  `;break}case-3:{i=`\r
129
- `;break}case-2:{i=t?" ":" ";break}case-1:{if(!t&&o)continue;i=" ";break}default:i=String.fromCharCode(a)}o=a===-2,r.push(i)}return r.join("")}function E5(e){const t={constructs:v1([m5,...(e||{}).extensions||[]]),content:n(Mw),defined:[],document:n(Bw),flow:n(Vw),lazy:{},string:n(Qw),text:n(Xw)};return t;function n(r){return o;function o(a){return g5(t,r,a)}}}const Sf=/[\0\t\n\r]/g;function x5(){let e=1,t="",n=!0,r;return o;function o(a,i,s){const l=[];let c,d,u,h,p;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(i||void 0).decode(a)),u=0,t="",n&&(a.charCodeAt(0)===65279&&u++,n=void 0);u<a.length;){if(Sf.lastIndex=u,c=Sf.exec(a),h=c&&c.index!==void 0?c.index:a.length,p=a.charCodeAt(h),!c){t=a.slice(u);break}if(p===10&&u===h&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),u<h&&(l.push(a.slice(u,h)),e+=h-u),p){case 0:{l.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,l.push(-2);e++<d;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}u=h+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const iy={}.hasOwnProperty;function T5(e,t,n){return typeof t!="string"&&(n=t,t=void 0),C5(n)(Ow(E5(n).document().write(x5()(e,t,!0))))}function C5(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(yt),autolinkProtocol:B,autolinkEmail:B,atxHeading:a(Xt),blockQuote:a(Oe),characterEscape:B,characterReference:B,codeFenced:a(Te),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:a(Te,i),codeText:a(gt,i),codeTextData:B,data:B,codeFlowValue:B,definition:a(Ze),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:a(be),hardBreakEscape:a(vt),hardBreakTrailing:a(vt),htmlFlow:a(De,i),htmlFlowData:B,htmlText:a(De,i),htmlTextData:B,image:a(wt),label:i,link:a(yt),listItem:a(ke),listItemValue:h,listOrdered:a(bt,u),listUnordered:a(bt),paragraph:a(ge),reference:k,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:a(Xt),strong:a(Wn),thematicBreak:a(Ve)},exit:{atxHeading:l(),atxHeadingSequence:N,autolink:l(),autolinkEmail:Fe,autolinkProtocol:me,blockQuote:l(),characterEscapeValue:y,characterReferenceMarkerHexadecimal:Ee,characterReferenceMarkerNumeric:Ee,characterReferenceValue:he,characterReference:ye,codeFenced:l(x),codeFencedFence:b,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:y,codeIndented:l(E),codeText:l(Y),codeTextData:y,data:y,definition:l(),definitionDestinationString:I,definitionLabelString:v,definitionTitleString:C,emphasis:l(),hardBreakEscape:l(F),hardBreakTrailing:l(F),htmlFlow:l($),htmlFlowData:y,htmlText:l(U),htmlTextData:y,image:l(fe),label:X,labelText:ue,lineEnding:R,link:l(re),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:J,resourceDestinationString:A,resourceTitleString:de,resource:ee,setextHeading:l(q),setextHeadingLineSequence:M,setextHeadingText:S,strong:l(),thematicBreak:l()}};sy(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(V){let oe={type:"root",children:[]};const Ae={stack:[oe],tokenStack:[],config:t,enter:s,exit:c,buffer:i,resume:d,data:n},Ue=[];let We=-1;for(;++We<V.length;)if(V[We][1].type==="listOrdered"||V[We][1].type==="listUnordered")if(V[We][0]==="enter")Ue.push(We);else{const et=Ue.pop();We=o(V,et,We)}for(We=-1;++We<V.length;){const et=t[V[We][0]];iy.call(et,V[We][1].type)&&et[V[We][1].type].call(Object.assign({sliceSerialize:V[We][2].sliceSerialize},Ae),V[We][1])}if(Ae.tokenStack.length>0){const et=Ae.tokenStack[Ae.tokenStack.length-1];(et[1]||kf).call(Ae,void 0,et[0])}for(oe.position={start:Fr(V.length>0?V[0][1].start:{line:1,column:1,offset:0}),end:Fr(V.length>0?V[V.length-2][1].end:{line:1,column:1,offset:0})},We=-1;++We<t.transforms.length;)oe=t.transforms[We](oe)||oe;return oe}function o(V,oe,Ae){let Ue=oe-1,We=-1,et=!1,Jt,Kt,Zt,ie;for(;++Ue<=Ae;){const te=V[Ue];switch(te[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{te[0]==="enter"?We++:We--,ie=void 0;break}case"lineEndingBlank":{te[0]==="enter"&&(Jt&&!ie&&!We&&!Zt&&(Zt=Ue),ie=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ie=void 0}if(!We&&te[0]==="enter"&&te[1].type==="listItemPrefix"||We===-1&&te[0]==="exit"&&(te[1].type==="listUnordered"||te[1].type==="listOrdered")){if(Jt){let Me=Ue;for(Kt=void 0;Me--;){const Pe=V[Me];if(Pe[1].type==="lineEnding"||Pe[1].type==="lineEndingBlank"){if(Pe[0]==="exit")continue;Kt&&(V[Kt][1].type="lineEndingBlank",et=!0),Pe[1].type="lineEnding",Kt=Me}else if(!(Pe[1].type==="linePrefix"||Pe[1].type==="blockQuotePrefix"||Pe[1].type==="blockQuotePrefixWhitespace"||Pe[1].type==="blockQuoteMarker"||Pe[1].type==="listItemIndent"))break}Zt&&(!Kt||Zt<Kt)&&(Jt._spread=!0),Jt.end=Object.assign({},Kt?V[Kt][1].start:te[1].end),V.splice(Kt||Ue,0,["exit",Jt,te[2]]),Ue++,Ae++}if(te[1].type==="listItemPrefix"){const Me={type:"listItem",_spread:!1,start:Object.assign({},te[1].start),end:void 0};Jt=Me,V.splice(Ue,0,["enter",Me,te[2]]),Ue++,Ae++,Zt=void 0,ie=!0}}}return V[oe][1]._spread=et,Ae}function a(V,oe){return Ae;function Ae(Ue){s.call(this,V(Ue),Ue),oe&&oe.call(this,Ue)}}function i(){this.stack.push({type:"fragment",children:[]})}function s(V,oe,Ae){this.stack[this.stack.length-1].children.push(V),this.stack.push(V),this.tokenStack.push([oe,Ae||void 0]),V.position={start:Fr(oe.start),end:void 0}}function l(V){return oe;function oe(Ae){V&&V.call(this,Ae),c.call(this,Ae)}}function c(V,oe){const Ae=this.stack.pop(),Ue=this.tokenStack.pop();if(Ue)Ue[0].type!==V.type&&(oe?oe.call(this,V,Ue[0]):(Ue[1]||kf).call(this,V,Ue[0]));else throw new Error("Cannot close `"+V.type+"` ("+di({start:V.start,end:V.end})+"): it’s not open");Ae.position.end=Fr(V.end)}function d(){return oh(this.stack.pop())}function u(){this.data.expectingFirstListItemValue=!0}function h(V){if(this.data.expectingFirstListItemValue){const oe=this.stack[this.stack.length-2];oe.start=Number.parseInt(this.sliceSerialize(V),10),this.data.expectingFirstListItemValue=void 0}}function p(){const V=this.resume(),oe=this.stack[this.stack.length-1];oe.lang=V}function g(){const V=this.resume(),oe=this.stack[this.stack.length-1];oe.meta=V}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){const V=this.resume(),oe=this.stack[this.stack.length-1];oe.value=V.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const V=this.resume(),oe=this.stack[this.stack.length-1];oe.value=V.replace(/(\r?\n|\r)$/g,"")}function v(V){const oe=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=oe,Ae.identifier=Yn(this.sliceSerialize(V)).toLowerCase()}function C(){const V=this.resume(),oe=this.stack[this.stack.length-1];oe.title=V}function I(){const V=this.resume(),oe=this.stack[this.stack.length-1];oe.url=V}function N(V){const oe=this.stack[this.stack.length-1];if(!oe.depth){const Ae=this.sliceSerialize(V).length;oe.depth=Ae}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function M(V){const oe=this.stack[this.stack.length-1];oe.depth=this.sliceSerialize(V).codePointAt(0)===61?1:2}function q(){this.data.setextHeadingSlurpLineEnding=void 0}function B(V){const oe=this.stack[this.stack.length-1].children;let Ae=oe[oe.length-1];(!Ae||Ae.type!=="text")&&(Ae=Or(),Ae.position={start:Fr(V.start),end:void 0},oe.push(Ae)),this.stack.push(Ae)}function y(V){const oe=this.stack.pop();oe.value+=this.sliceSerialize(V),oe.position.end=Fr(V.end)}function R(V){const oe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ae=oe.children[oe.children.length-1];Ae.position.end=Fr(V.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(oe.type)&&(B.call(this,V),y.call(this,V))}function F(){this.data.atHardBreak=!0}function $(){const V=this.resume(),oe=this.stack[this.stack.length-1];oe.value=V}function U(){const V=this.resume(),oe=this.stack[this.stack.length-1];oe.value=V}function Y(){const V=this.resume(),oe=this.stack[this.stack.length-1];oe.value=V}function re(){const V=this.stack[this.stack.length-1];if(this.data.inReference){const oe=this.data.referenceType||"shortcut";V.type+="Reference",V.referenceType=oe,delete V.url,delete V.title}else delete V.identifier,delete V.label;this.data.referenceType=void 0}function fe(){const V=this.stack[this.stack.length-1];if(this.data.inReference){const oe=this.data.referenceType||"shortcut";V.type+="Reference",V.referenceType=oe,delete V.url,delete V.title}else delete V.identifier,delete V.label;this.data.referenceType=void 0}function ue(V){const oe=this.sliceSerialize(V),Ae=this.stack[this.stack.length-2];Ae.label=Pw(oe),Ae.identifier=Yn(oe).toLowerCase()}function X(){const V=this.stack[this.stack.length-1],oe=this.resume(),Ae=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ae.type==="link"){const Ue=V.children;Ae.children=Ue}else Ae.alt=oe}function A(){const V=this.resume(),oe=this.stack[this.stack.length-1];oe.url=V}function de(){const V=this.resume(),oe=this.stack[this.stack.length-1];oe.title=V}function ee(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function J(V){const oe=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=oe,Ae.identifier=Yn(this.sliceSerialize(V)).toLowerCase(),this.data.referenceType="full"}function Ee(V){this.data.characterReferenceType=V.type}function he(V){const oe=this.sliceSerialize(V),Ae=this.data.characterReferenceType;let Ue;Ae?(Ue=Q1(oe,Ae==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ue=ih(oe);const We=this.stack[this.stack.length-1];We.value+=Ue}function ye(V){const oe=this.stack.pop();oe.position.end=Fr(V.end)}function me(V){y.call(this,V);const oe=this.stack[this.stack.length-1];oe.url=this.sliceSerialize(V)}function Fe(V){y.call(this,V);const oe=this.stack[this.stack.length-1];oe.url="mailto:"+this.sliceSerialize(V)}function Oe(){return{type:"blockquote",children:[]}}function Te(){return{type:"code",lang:null,meta:null,value:""}}function gt(){return{type:"inlineCode",value:""}}function Ze(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function be(){return{type:"emphasis",children:[]}}function Xt(){return{type:"heading",depth:0,children:[]}}function vt(){return{type:"break"}}function De(){return{type:"html",value:""}}function wt(){return{type:"image",title:null,url:"",alt:null}}function yt(){return{type:"link",title:null,url:"",children:[]}}function bt(V){return{type:"list",ordered:V.type==="listOrdered",start:null,spread:V._spread,children:[]}}function ke(V){return{type:"listItem",spread:V._spread,checked:null,children:[]}}function ge(){return{type:"paragraph",children:[]}}function Wn(){return{type:"strong",children:[]}}function Or(){return{type:"text",value:""}}function Ve(){return{type:"thematicBreak"}}}function Fr(e){return{line:e.line,column:e.column,offset:e.offset}}function sy(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?sy(e,r):v5(e,r)}}function v5(e,t){let n;for(n in t)if(iy.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function kf(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+di({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+di({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+di({start:t.start,end:t.end})+") is still open")}function S5(e){const t=this;t.parser=n;function n(r){return T5(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const ly=-1,nc=0,pi=1,bl=2,lh=3,ch=4,uh=5,dh=6,cy=7,uy=8,Af=typeof self=="object"?self:globalThis,k5=(e,t)=>{const n=(o,a)=>(e.set(a,o),o),r=o=>{if(e.has(o))return e.get(o);const[a,i]=t[o];switch(a){case nc:case ly:return n(i,o);case pi:{const s=n([],o);for(const l of i)s.push(r(l));return s}case bl:{const s=n({},o);for(const[l,c]of i)s[r(l)]=r(c);return s}case lh:return n(new Date(i),o);case ch:{const{source:s,flags:l}=i;return n(new RegExp(s,l),o)}case uh:{const s=n(new Map,o);for(const[l,c]of i)s.set(r(l),r(c));return s}case dh:{const s=n(new Set,o);for(const l of i)s.add(r(l));return s}case cy:{const{name:s,message:l}=i;return n(new Af[s](l),o)}case uy:return n(BigInt(i),o);case"BigInt":return n(Object(BigInt(i)),o);case"ArrayBuffer":return n(new Uint8Array(i).buffer,i);case"DataView":{const{buffer:s}=new Uint8Array(i);return n(new DataView(s),i)}}return n(new Af[a](i),o)};return r},If=e=>k5(new Map,e)(0),Qo="",{toString:A5}={},{keys:I5}=Object,Ua=e=>{const t=typeof e;if(t!=="object"||!e)return[nc,t];const n=A5.call(e).slice(8,-1);switch(n){case"Array":return[pi,Qo];case"Object":return[bl,Qo];case"Date":return[lh,Qo];case"RegExp":return[ch,Qo];case"Map":return[uh,Qo];case"Set":return[dh,Qo];case"DataView":return[pi,n]}return n.includes("Array")?[pi,n]:n.includes("Error")?[cy,n]:[bl,n]},xs=([e,t])=>e===nc&&(t==="function"||t==="symbol"),_5=(e,t,n,r)=>{const o=(i,s)=>{const l=r.push(i)-1;return n.set(s,l),l},a=i=>{if(n.has(i))return n.get(i);let[s,l]=Ua(i);switch(s){case nc:{let d=i;switch(l){case"bigint":s=uy,d=i.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return o([ly],i)}return o([s,d],i)}case pi:{if(l){let h=i;return l==="DataView"?h=new Uint8Array(i.buffer):l==="ArrayBuffer"&&(h=new Uint8Array(i)),o([l,[...h]],i)}const d=[],u=o([s,d],i);for(const h of i)d.push(a(h));return u}case bl:{if(l)switch(l){case"BigInt":return o([l,i.toString()],i);case"Boolean":case"Number":case"String":return o([l,i.valueOf()],i)}if(t&&"toJSON"in i)return a(i.toJSON());const d=[],u=o([s,d],i);for(const h of I5(i))(e||!xs(Ua(i[h])))&&d.push([a(h),a(i[h])]);return u}case lh:return o([s,i.toISOString()],i);case ch:{const{source:d,flags:u}=i;return o([s,{source:d,flags:u}],i)}case uh:{const d=[],u=o([s,d],i);for(const[h,p]of i)(e||!(xs(Ua(h))||xs(Ua(p))))&&d.push([a(h),a(p)]);return u}case dh:{const d=[],u=o([s,d],i);for(const h of i)(e||!xs(Ua(h)))&&d.push(a(h));return u}}const{message:c}=i;return o([s,{name:l,message:c}],i)};return a},_f=(e,{json:t,lossy:n}={})=>{const r=[];return _5(!(t||n),!!t,new Map,r)(e),r},wo=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?If(_f(e,t)):structuredClone(e):(e,t)=>If(_f(e,t));function Aa(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const a=e.charCodeAt(n);let i="";if(a===37&&on(e.charCodeAt(n+1))&&on(e.charCodeAt(n+2)))o=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(i=String.fromCharCode(a));else if(a>55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(i=String.fromCharCode(a,s),o=1):i="�"}else i=String.fromCharCode(a);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+o+1,i=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function D5(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function w5(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function N5(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||D5,r=e.options.footnoteBackLabel||w5,o=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[l]);if(!c)continue;const d=e.all(c),u=String(c.identifier).toUpperCase(),h=Aa(u.toLowerCase());let p=0;const g=[],b=e.footnoteCounts.get(u);for(;b!==void 0&&++p<=b;){g.length>0&&g.push({type:"text",value:" "});let v=typeof n=="string"?n:n(l,p);typeof v=="string"&&(v={type:"text",value:v}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,p),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const x=d[d.length-1];if(x&&x.type==="element"&&x.tagName==="p"){const v=x.children[x.children.length-1];v&&v.type==="text"?v.value+=" ":x.children.push({type:"text",value:" "}),x.children.push(...g)}else d.push(...g);const E={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(d,!0)};e.patch(c,E),s.push(E)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...wo(i),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
129
+ `;break}case-2:{i=t?" ":" ";break}case-1:{if(!t&&o)continue;i=" ";break}default:i=String.fromCharCode(a)}o=a===-2,r.push(i)}return r.join("")}function E5(e){const t={constructs:v1([m5,...(e||{}).extensions||[]]),content:n(Mw),defined:[],document:n(Bw),flow:n(Vw),lazy:{},string:n(Qw),text:n(Xw)};return t;function n(r){return o;function o(a){return g5(t,r,a)}}}const Sf=/[\0\t\n\r]/g;function x5(){let e=1,t="",n=!0,r;return o;function o(a,i,s){const l=[];let c,d,u,h,p;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(i||void 0).decode(a)),u=0,t="",n&&(a.charCodeAt(0)===65279&&u++,n=void 0);u<a.length;){if(Sf.lastIndex=u,c=Sf.exec(a),h=c&&c.index!==void 0?c.index:a.length,p=a.charCodeAt(h),!c){t=a.slice(u);break}if(p===10&&u===h&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),u<h&&(l.push(a.slice(u,h)),e+=h-u),p){case 0:{l.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,l.push(-2);e++<d;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}u=h+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const iy={}.hasOwnProperty;function T5(e,t,n){return typeof t!="string"&&(n=t,t=void 0),C5(n)(Ow(E5(n).document().write(x5()(e,t,!0))))}function C5(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(yt),autolinkProtocol:B,autolinkEmail:B,atxHeading:a(Xt),blockQuote:a(Oe),characterEscape:B,characterReference:B,codeFenced:a(Te),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:a(Te,i),codeText:a(gt,i),codeTextData:B,data:B,codeFlowValue:B,definition:a(Ze),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:a(be),hardBreakEscape:a(vt),hardBreakTrailing:a(vt),htmlFlow:a(De,i),htmlFlowData:B,htmlText:a(De,i),htmlTextData:B,image:a(wt),label:i,link:a(yt),listItem:a(ke),listItemValue:h,listOrdered:a(bt,u),listUnordered:a(bt),paragraph:a(ge),reference:k,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:a(Xt),strong:a(Wn),thematicBreak:a(Ve)},exit:{atxHeading:l(),atxHeadingSequence:w,autolink:l(),autolinkEmail:Fe,autolinkProtocol:me,blockQuote:l(),characterEscapeValue:y,characterReferenceMarkerHexadecimal:Ee,characterReferenceMarkerNumeric:Ee,characterReferenceValue:he,characterReference:ye,codeFenced:l(x),codeFencedFence:b,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:y,codeIndented:l(E),codeText:l(Y),codeTextData:y,data:y,definition:l(),definitionDestinationString:I,definitionLabelString:v,definitionTitleString:C,emphasis:l(),hardBreakEscape:l(F),hardBreakTrailing:l(F),htmlFlow:l($),htmlFlowData:y,htmlText:l(U),htmlTextData:y,image:l(fe),label:X,labelText:ue,lineEnding:R,link:l(re),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:J,resourceDestinationString:A,resourceTitleString:de,resource:ee,setextHeading:l(q),setextHeadingLineSequence:M,setextHeadingText:S,strong:l(),thematicBreak:l()}};sy(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(V){let oe={type:"root",children:[]};const Ae={stack:[oe],tokenStack:[],config:t,enter:s,exit:c,buffer:i,resume:d,data:n},Ue=[];let We=-1;for(;++We<V.length;)if(V[We][1].type==="listOrdered"||V[We][1].type==="listUnordered")if(V[We][0]==="enter")Ue.push(We);else{const et=Ue.pop();We=o(V,et,We)}for(We=-1;++We<V.length;){const et=t[V[We][0]];iy.call(et,V[We][1].type)&&et[V[We][1].type].call(Object.assign({sliceSerialize:V[We][2].sliceSerialize},Ae),V[We][1])}if(Ae.tokenStack.length>0){const et=Ae.tokenStack[Ae.tokenStack.length-1];(et[1]||kf).call(Ae,void 0,et[0])}for(oe.position={start:Fr(V.length>0?V[0][1].start:{line:1,column:1,offset:0}),end:Fr(V.length>0?V[V.length-2][1].end:{line:1,column:1,offset:0})},We=-1;++We<t.transforms.length;)oe=t.transforms[We](oe)||oe;return oe}function o(V,oe,Ae){let Ue=oe-1,We=-1,et=!1,Jt,Kt,Zt,ie;for(;++Ue<=Ae;){const te=V[Ue];switch(te[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{te[0]==="enter"?We++:We--,ie=void 0;break}case"lineEndingBlank":{te[0]==="enter"&&(Jt&&!ie&&!We&&!Zt&&(Zt=Ue),ie=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ie=void 0}if(!We&&te[0]==="enter"&&te[1].type==="listItemPrefix"||We===-1&&te[0]==="exit"&&(te[1].type==="listUnordered"||te[1].type==="listOrdered")){if(Jt){let Me=Ue;for(Kt=void 0;Me--;){const Pe=V[Me];if(Pe[1].type==="lineEnding"||Pe[1].type==="lineEndingBlank"){if(Pe[0]==="exit")continue;Kt&&(V[Kt][1].type="lineEndingBlank",et=!0),Pe[1].type="lineEnding",Kt=Me}else if(!(Pe[1].type==="linePrefix"||Pe[1].type==="blockQuotePrefix"||Pe[1].type==="blockQuotePrefixWhitespace"||Pe[1].type==="blockQuoteMarker"||Pe[1].type==="listItemIndent"))break}Zt&&(!Kt||Zt<Kt)&&(Jt._spread=!0),Jt.end=Object.assign({},Kt?V[Kt][1].start:te[1].end),V.splice(Kt||Ue,0,["exit",Jt,te[2]]),Ue++,Ae++}if(te[1].type==="listItemPrefix"){const Me={type:"listItem",_spread:!1,start:Object.assign({},te[1].start),end:void 0};Jt=Me,V.splice(Ue,0,["enter",Me,te[2]]),Ue++,Ae++,Zt=void 0,ie=!0}}}return V[oe][1]._spread=et,Ae}function a(V,oe){return Ae;function Ae(Ue){s.call(this,V(Ue),Ue),oe&&oe.call(this,Ue)}}function i(){this.stack.push({type:"fragment",children:[]})}function s(V,oe,Ae){this.stack[this.stack.length-1].children.push(V),this.stack.push(V),this.tokenStack.push([oe,Ae||void 0]),V.position={start:Fr(oe.start),end:void 0}}function l(V){return oe;function oe(Ae){V&&V.call(this,Ae),c.call(this,Ae)}}function c(V,oe){const Ae=this.stack.pop(),Ue=this.tokenStack.pop();if(Ue)Ue[0].type!==V.type&&(oe?oe.call(this,V,Ue[0]):(Ue[1]||kf).call(this,V,Ue[0]));else throw new Error("Cannot close `"+V.type+"` ("+di({start:V.start,end:V.end})+"): it’s not open");Ae.position.end=Fr(V.end)}function d(){return oh(this.stack.pop())}function u(){this.data.expectingFirstListItemValue=!0}function h(V){if(this.data.expectingFirstListItemValue){const oe=this.stack[this.stack.length-2];oe.start=Number.parseInt(this.sliceSerialize(V),10),this.data.expectingFirstListItemValue=void 0}}function p(){const V=this.resume(),oe=this.stack[this.stack.length-1];oe.lang=V}function g(){const V=this.resume(),oe=this.stack[this.stack.length-1];oe.meta=V}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){const V=this.resume(),oe=this.stack[this.stack.length-1];oe.value=V.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const V=this.resume(),oe=this.stack[this.stack.length-1];oe.value=V.replace(/(\r?\n|\r)$/g,"")}function v(V){const oe=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=oe,Ae.identifier=Yn(this.sliceSerialize(V)).toLowerCase()}function C(){const V=this.resume(),oe=this.stack[this.stack.length-1];oe.title=V}function I(){const V=this.resume(),oe=this.stack[this.stack.length-1];oe.url=V}function w(V){const oe=this.stack[this.stack.length-1];if(!oe.depth){const Ae=this.sliceSerialize(V).length;oe.depth=Ae}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function M(V){const oe=this.stack[this.stack.length-1];oe.depth=this.sliceSerialize(V).codePointAt(0)===61?1:2}function q(){this.data.setextHeadingSlurpLineEnding=void 0}function B(V){const oe=this.stack[this.stack.length-1].children;let Ae=oe[oe.length-1];(!Ae||Ae.type!=="text")&&(Ae=Or(),Ae.position={start:Fr(V.start),end:void 0},oe.push(Ae)),this.stack.push(Ae)}function y(V){const oe=this.stack.pop();oe.value+=this.sliceSerialize(V),oe.position.end=Fr(V.end)}function R(V){const oe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ae=oe.children[oe.children.length-1];Ae.position.end=Fr(V.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(oe.type)&&(B.call(this,V),y.call(this,V))}function F(){this.data.atHardBreak=!0}function $(){const V=this.resume(),oe=this.stack[this.stack.length-1];oe.value=V}function U(){const V=this.resume(),oe=this.stack[this.stack.length-1];oe.value=V}function Y(){const V=this.resume(),oe=this.stack[this.stack.length-1];oe.value=V}function re(){const V=this.stack[this.stack.length-1];if(this.data.inReference){const oe=this.data.referenceType||"shortcut";V.type+="Reference",V.referenceType=oe,delete V.url,delete V.title}else delete V.identifier,delete V.label;this.data.referenceType=void 0}function fe(){const V=this.stack[this.stack.length-1];if(this.data.inReference){const oe=this.data.referenceType||"shortcut";V.type+="Reference",V.referenceType=oe,delete V.url,delete V.title}else delete V.identifier,delete V.label;this.data.referenceType=void 0}function ue(V){const oe=this.sliceSerialize(V),Ae=this.stack[this.stack.length-2];Ae.label=Pw(oe),Ae.identifier=Yn(oe).toLowerCase()}function X(){const V=this.stack[this.stack.length-1],oe=this.resume(),Ae=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ae.type==="link"){const Ue=V.children;Ae.children=Ue}else Ae.alt=oe}function A(){const V=this.resume(),oe=this.stack[this.stack.length-1];oe.url=V}function de(){const V=this.resume(),oe=this.stack[this.stack.length-1];oe.title=V}function ee(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function J(V){const oe=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=oe,Ae.identifier=Yn(this.sliceSerialize(V)).toLowerCase(),this.data.referenceType="full"}function Ee(V){this.data.characterReferenceType=V.type}function he(V){const oe=this.sliceSerialize(V),Ae=this.data.characterReferenceType;let Ue;Ae?(Ue=Q1(oe,Ae==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ue=ih(oe);const We=this.stack[this.stack.length-1];We.value+=Ue}function ye(V){const oe=this.stack.pop();oe.position.end=Fr(V.end)}function me(V){y.call(this,V);const oe=this.stack[this.stack.length-1];oe.url=this.sliceSerialize(V)}function Fe(V){y.call(this,V);const oe=this.stack[this.stack.length-1];oe.url="mailto:"+this.sliceSerialize(V)}function Oe(){return{type:"blockquote",children:[]}}function Te(){return{type:"code",lang:null,meta:null,value:""}}function gt(){return{type:"inlineCode",value:""}}function Ze(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function be(){return{type:"emphasis",children:[]}}function Xt(){return{type:"heading",depth:0,children:[]}}function vt(){return{type:"break"}}function De(){return{type:"html",value:""}}function wt(){return{type:"image",title:null,url:"",alt:null}}function yt(){return{type:"link",title:null,url:"",children:[]}}function bt(V){return{type:"list",ordered:V.type==="listOrdered",start:null,spread:V._spread,children:[]}}function ke(V){return{type:"listItem",spread:V._spread,checked:null,children:[]}}function ge(){return{type:"paragraph",children:[]}}function Wn(){return{type:"strong",children:[]}}function Or(){return{type:"text",value:""}}function Ve(){return{type:"thematicBreak"}}}function Fr(e){return{line:e.line,column:e.column,offset:e.offset}}function sy(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?sy(e,r):v5(e,r)}}function v5(e,t){let n;for(n in t)if(iy.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function kf(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+di({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+di({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+di({start:t.start,end:t.end})+") is still open")}function S5(e){const t=this;t.parser=n;function n(r){return T5(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const ly=-1,nc=0,pi=1,bl=2,lh=3,ch=4,uh=5,dh=6,cy=7,uy=8,Af=typeof self=="object"?self:globalThis,k5=(e,t)=>{const n=(o,a)=>(e.set(a,o),o),r=o=>{if(e.has(o))return e.get(o);const[a,i]=t[o];switch(a){case nc:case ly:return n(i,o);case pi:{const s=n([],o);for(const l of i)s.push(r(l));return s}case bl:{const s=n({},o);for(const[l,c]of i)s[r(l)]=r(c);return s}case lh:return n(new Date(i),o);case ch:{const{source:s,flags:l}=i;return n(new RegExp(s,l),o)}case uh:{const s=n(new Map,o);for(const[l,c]of i)s.set(r(l),r(c));return s}case dh:{const s=n(new Set,o);for(const l of i)s.add(r(l));return s}case cy:{const{name:s,message:l}=i;return n(new Af[s](l),o)}case uy:return n(BigInt(i),o);case"BigInt":return n(Object(BigInt(i)),o);case"ArrayBuffer":return n(new Uint8Array(i).buffer,i);case"DataView":{const{buffer:s}=new Uint8Array(i);return n(new DataView(s),i)}}return n(new Af[a](i),o)};return r},If=e=>k5(new Map,e)(0),Qo="",{toString:A5}={},{keys:I5}=Object,Ua=e=>{const t=typeof e;if(t!=="object"||!e)return[nc,t];const n=A5.call(e).slice(8,-1);switch(n){case"Array":return[pi,Qo];case"Object":return[bl,Qo];case"Date":return[lh,Qo];case"RegExp":return[ch,Qo];case"Map":return[uh,Qo];case"Set":return[dh,Qo];case"DataView":return[pi,n]}return n.includes("Array")?[pi,n]:n.includes("Error")?[cy,n]:[bl,n]},xs=([e,t])=>e===nc&&(t==="function"||t==="symbol"),_5=(e,t,n,r)=>{const o=(i,s)=>{const l=r.push(i)-1;return n.set(s,l),l},a=i=>{if(n.has(i))return n.get(i);let[s,l]=Ua(i);switch(s){case nc:{let d=i;switch(l){case"bigint":s=uy,d=i.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return o([ly],i)}return o([s,d],i)}case pi:{if(l){let h=i;return l==="DataView"?h=new Uint8Array(i.buffer):l==="ArrayBuffer"&&(h=new Uint8Array(i)),o([l,[...h]],i)}const d=[],u=o([s,d],i);for(const h of i)d.push(a(h));return u}case bl:{if(l)switch(l){case"BigInt":return o([l,i.toString()],i);case"Boolean":case"Number":case"String":return o([l,i.valueOf()],i)}if(t&&"toJSON"in i)return a(i.toJSON());const d=[],u=o([s,d],i);for(const h of I5(i))(e||!xs(Ua(i[h])))&&d.push([a(h),a(i[h])]);return u}case lh:return o([s,i.toISOString()],i);case ch:{const{source:d,flags:u}=i;return o([s,{source:d,flags:u}],i)}case uh:{const d=[],u=o([s,d],i);for(const[h,p]of i)(e||!(xs(Ua(h))||xs(Ua(p))))&&d.push([a(h),a(p)]);return u}case dh:{const d=[],u=o([s,d],i);for(const h of i)(e||!xs(Ua(h)))&&d.push(a(h));return u}}const{message:c}=i;return o([s,{name:l,message:c}],i)};return a},_f=(e,{json:t,lossy:n}={})=>{const r=[];return _5(!(t||n),!!t,new Map,r)(e),r},wo=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?If(_f(e,t)):structuredClone(e):(e,t)=>If(_f(e,t));function Aa(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const a=e.charCodeAt(n);let i="";if(a===37&&on(e.charCodeAt(n+1))&&on(e.charCodeAt(n+2)))o=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(i=String.fromCharCode(a));else if(a>55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(i=String.fromCharCode(a,s),o=1):i="�"}else i=String.fromCharCode(a);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+o+1,i=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function D5(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function w5(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function N5(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||D5,r=e.options.footnoteBackLabel||w5,o=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[l]);if(!c)continue;const d=e.all(c),u=String(c.identifier).toUpperCase(),h=Aa(u.toLowerCase());let p=0;const g=[],b=e.footnoteCounts.get(u);for(;b!==void 0&&++p<=b;){g.length>0&&g.push({type:"text",value:" "});let v=typeof n=="string"?n:n(l,p);typeof v=="string"&&(v={type:"text",value:v}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,p),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const x=d[d.length-1];if(x&&x.type==="element"&&x.tagName==="p"){const v=x.children[x.children.length-1];v&&v.type==="text"?v.value+=" ":x.children.push({type:"text",value:" "}),x.children.push(...g)}else d.push(...g);const E={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(d,!0)};e.patch(c,E),s.push(E)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...wo(i),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
130
130
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
131
131
  `}]}}function P5(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function R5(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
132
132
  `}]}function L5(e,t){const n=t.value?t.value+`
@@ -137,12 +137,12 @@ import {${t.sourceName}}" from '${t.modelPath}'"
137
137
  `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
138
138
  `}),n}function wf(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Nf(e,t){const n=i3(e,t),r=n.one(e,void 0),o=N5(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&a.children.push({type:"text",value:`
139
139
  `},o),a}function d3(e,t){return e&&"run"in e?async function(n,r){const o=Nf(n,{file:r,...t});await e.run(o,r)}:function(n,r){return Nf(n,{file:r,...e||t})}}var Xo={},Zc,Pf;function h3(){if(Pf)return Zc;Pf=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,i=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
140
- `,c="/",d="*",u="",h="comment",p="declaration";Zc=function(b,x){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];x=x||{};var E=1,v=1;function C($){var U=$.match(t);U&&(E+=U.length);var Y=$.lastIndexOf(l);v=~Y?$.length-Y:v+$.length}function I(){var $={line:E,column:v};return function(U){return U.position=new N($),q(),U}}function N($){this.start=$,this.end={line:E,column:v},this.source=x.source}N.prototype.content=b;function S($){var U=new Error(x.source+":"+E+":"+v+": "+$);if(U.reason=$,U.filename=x.source,U.line=E,U.column=v,U.source=b,!x.silent)throw U}function M($){var U=$.exec(b);if(U){var Y=U[0];return C(Y),b=b.slice(Y.length),U}}function q(){M(n)}function B($){var U;for($=$||[];U=y();)U!==!1&&$.push(U);return $}function y(){var $=I();if(!(c!=b.charAt(0)||d!=b.charAt(1))){for(var U=2;u!=b.charAt(U)&&(d!=b.charAt(U)||c!=b.charAt(U+1));)++U;if(U+=2,u===b.charAt(U-1))return S("End of comment missing");var Y=b.slice(2,U-2);return v+=2,C(Y),b=b.slice(U),v+=2,$({type:h,comment:Y})}}function R(){var $=I(),U=M(r);if(U){if(y(),!M(o))return S("property missing ':'");var Y=M(a),re=$({type:p,property:g(U[0].replace(e,u)),value:Y?g(Y[0].replace(e,u)):u});return M(i),re}}function F(){var $=[];B($);for(var U;U=R();)U!==!1&&($.push(U),B($));return $}return q(),F()};function g(b){return b?b.replace(s,u):u}return Zc}var Rf;function p3(){if(Rf)return Xo;Rf=1;var e=Xo&&Xo.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.default=n;var t=e(h3());function n(r,o){var a=null;if(!r||typeof r!="string")return a;var i=(0,t.default)(r),s=typeof o=="function";return i.forEach(function(l){if(l.type==="declaration"){var c=l.property,d=l.value;s?o(c,d,l):d&&(a=a||{},a[c]=d)}}),a}return Xo}var za={},Lf;function f3(){if(Lf)return za;Lf=1,Object.defineProperty(za,"__esModule",{value:!0}),za.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,a=function(c){return!c||n.test(c)||e.test(c)},i=function(c,d){return d.toUpperCase()},s=function(c,d){return"".concat(d,"-")},l=function(c,d){return d===void 0&&(d={}),a(c)?c:(c=c.toLowerCase(),d.reactCompat?c=c.replace(o,s):c=c.replace(r,s),c.replace(t,i))};return za.camelCase=l,za}var Ga,$f;function m3(){if($f)return Ga;$f=1;var e=Ga&&Ga.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(p3()),n=f3();function r(o,a){var i={};return!o||typeof o!="string"||(0,t.default)(o,function(s,l){s&&l&&(i[(0,n.camelCase)(s,a)]=l)}),i}return r.default=r,Ga=r,Ga}var g3=m3();const y3=Kl(g3),b3=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,E3=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,x3={};function Of(e,t){return(x3.jsx?E3:b3).test(e)}const T3={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},hh={}.hasOwnProperty,C3=new Map,v3=/[A-Z]/g,S3=new Set(["table","tbody","thead","tfoot","tr"]),k3=new Set(["td","th"]),fy="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function A3(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=L3(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=R3(n,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Rr:ka,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=my(o,e,void 0);return a&&typeof a!="string"?a:o.create(e,o.Fragment,{children:a||void 0},void 0)}function my(e,t,n){if(t.type==="element")return I3(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return _3(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return w3(e,t,n);if(t.type==="mdxjsEsm")return D3(e,t);if(t.type==="root")return N3(e,t,n);if(t.type==="text")return P3(e,t)}function I3(e,t,n){const r=e.schema;let o=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=Rr,e.schema=o),e.ancestors.push(t);const a=yy(e,t.tagName,!1),i=$3(e,t);let s=fh(e,t);return S3.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!Gi(l):!0})),gy(e,i,a,t),ph(i,s),e.ancestors.pop(),e.schema=r,e.create(t,a,i,n)}function _3(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Ri(e,t.position)}function D3(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ri(e,t.position)}function w3(e,t,n){const r=e.schema;let o=r;t.name==="svg"&&r.space==="html"&&(o=Rr,e.schema=o),e.ancestors.push(t);const a=t.name===null?e.Fragment:yy(e,t.name,!0),i=O3(e,t),s=fh(e,t);return gy(e,i,a,t),ph(i,s),e.ancestors.pop(),e.schema=r,e.create(t,a,i,n)}function N3(e,t,n){const r={};return ph(r,fh(e,t)),e.create(t,e.Fragment,r,n)}function P3(e,t){return t.value}function gy(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ph(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function R3(e,t,n){return r;function r(o,a,i,s){const l=Array.isArray(i.children)?n:t;return s?l(a,i,s):l(a,i)}}function L3(e,t){return n;function n(r,o,a,i){const s=Array.isArray(a.children),l=fr(r);return t(o,a,i,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function $3(e,t){const n={};let r,o;for(o in t.properties)if(o!=="children"&&hh.call(t.properties,o)){const a=M3(e,o,t.properties[o]);if(a){const[i,s]=a;e.tableCellAlignToStyle&&i==="align"&&typeof s=="string"&&k3.has(t.tagName)?r=s:n[i]=s}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function O3(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const i=a.properties[0];i.type,Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else Ri(e,t.position);else{const o=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const i=r.value.data.estree.body[0];i.type,a=e.evaluater.evaluateExpression(i.expression)}else Ri(e,t.position);else a=r.value===null?!0:r.value;n[o]=a}return n}function fh(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:C3;for(;++r<t.children.length;){const a=t.children[r];let i;if(e.passKeys){const l=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(l){const c=o.get(l)||0;i=l+"-"+c,o.set(l,c+1)}}const s=my(e,a,i);s!==void 0&&n.push(s)}return n}function M3(e,t,n){const r=qi(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?zl(n):Gl(n)),r.property==="style"){let o=typeof n=="object"?n:F3(e,String(n));return e.stylePropertyNameCase==="css"&&(o=B3(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?T3[r.property]||r.property:r.attribute,n]}}function F3(e,t){try{return y3(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,o=new ln("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=fy+"#cannot-parse-style-attribute",o}}function yy(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let a=-1,i;for(;++a<o.length;){const s=Of(o[a])?{type:"Identifier",name:o[a]}:{type:"Literal",value:o[a]};i=i?{type:"MemberExpression",object:i,property:s,computed:!!(a&&s.type==="Literal"),optional:!1}:s}r=i}else r=Of(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return hh.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ri(e)}function Ri(e,t){const n=new ln("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=fy+"#cannot-handle-mdx-estrees-without-createevaluater",n}function B3(e){const t={};let n;for(n in e)hh.call(e,n)&&(t[j3(n)]=e[n]);return t}function j3(e){let t=e.replace(v3,H3);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function H3(e){return"-"+e.toLowerCase()}const eu={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},U3="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Mf=[],Ff={allowDangerousHtml:!0},z3=/^(https?|ircs?|mailto|xmpp)$/i,G3=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function q3(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,a=e.components,i=e.disallowedElements,s=e.rehypePlugins||Mf,l=e.remarkPlugins||Mf,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ff}:Ff,d=e.skipHtml,u=e.unwrapDisallowed,h=e.urlTransform||W3,p=Iw().use(S5).use(l).use(d3,c).use(s),g=new Y1;typeof r=="string"&&(g.value=r);for(const v of G3)Object.hasOwn(e,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+U3+v.id,void 0);const b=p.parse(g);let x=p.runSync(b,g);return o&&(x={type:"element",tagName:"div",properties:{className:o},children:x.type==="root"?x.children:[x]}),xn(x,E),A3(x,{Fragment:f.Fragment,components:a,ignoreInvalidStyle:!0,jsx:f.jsx,jsxs:f.jsxs,passKeys:!0,passNode:!0});function E(v,C,I){if(v.type==="raw"&&I&&typeof C=="number")return d?I.children.splice(C,1):I.children[C]={type:"text",value:v.value},C;if(v.type==="element"){let N;for(N in eu)if(Object.hasOwn(eu,N)&&Object.hasOwn(v.properties,N)){const S=v.properties[N],M=eu[N];(M===null||M.includes(v.tagName))&&(v.properties[N]=h(String(S||""),N,v))}}if(v.type==="element"){let N=t?!t.includes(v.tagName):i?i.includes(v.tagName):!1;if(!N&&n&&typeof C=="number"&&(N=!n(v,C,I)),N&&I&&typeof C=="number")return u&&v.children?I.children.splice(C,1,...v.children):I.children.splice(C,1),C}}}function W3(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||n!==-1&&t>n||r!==-1&&t>r||z3.test(e.slice(0,t))?e:""}const V3=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ct="�";var _;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(_||(_={}));const yn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function by(e){return e>=55296&&e<=57343}function Y3(e){return e>=56320&&e<=57343}function K3(e,t){return(e-55296)*1024+9216+t}function Ey(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function xy(e){return e>=64976&&e<=65007||V3.has(e)}var W;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(W||(W={}));const Q3=65536;let X3=class{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Q3,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:o,offset:a}=this,i=o+n,s=a+n;return{code:t,startLine:r,endLine:r,startCol:i,endCol:i,startOffset:s,endOffset:s}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(Y3(n))return this.pos++,this._addGap(),K3(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,_.EOF;return this._err(W.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,_.EOF;const r=this.html.charCodeAt(n);return r===_.CARRIAGE_RETURN?_.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,_.EOF;let t=this.html.charCodeAt(this.pos);return t===_.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,_.LINE_FEED):t===_.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,by(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===_.LINE_FEED||t===_.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Ey(t)?this._err(W.controlCharacterInInputStream):xy(t)&&this._err(W.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}};var Be;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Be||(Be={}));function Ty(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const J3=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function Z3(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=J3.get(e))!==null&&t!==void 0?t:e}var Vt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Vt||(Vt={}));const eP=32;var qr;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(qr||(qr={}));function Qu(e){return e>=Vt.ZERO&&e<=Vt.NINE}function tP(e){return e>=Vt.UPPER_A&&e<=Vt.UPPER_F||e>=Vt.LOWER_A&&e<=Vt.LOWER_F}function nP(e){return e>=Vt.UPPER_A&&e<=Vt.UPPER_Z||e>=Vt.LOWER_A&&e<=Vt.LOWER_Z||Qu(e)}function rP(e){return e===Vt.EQUALS||nP(e)}var Gt;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Gt||(Gt={}));var kr;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(kr||(kr={}));let oP=class{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Gt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=kr.Strict}startEntity(t){this.decodeMode=t,this.state=Gt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Gt.EntityStart:return t.charCodeAt(n)===Vt.NUM?(this.state=Gt.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Gt.NamedEntity,this.stateNamedEntity(t,n));case Gt.NumericStart:return this.stateNumericStart(t,n);case Gt.NumericDecimal:return this.stateNumericDecimal(t,n);case Gt.NumericHex:return this.stateNumericHex(t,n);case Gt.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|eP)===Vt.LOWER_X?(this.state=Gt.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Gt.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,o){if(n!==r){const a=r-n;this.result=this.result*Math.pow(o,a)+Number.parseInt(t.substr(n,a),o),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(Qu(o)||tP(o))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(Qu(o))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Vt.SEMI)this.consumed+=1;else if(this.decodeMode===kr.Strict)return 0;return this.emitCodePoint(Z3(this.result),this.consumed),this.errors&&(t!==Vt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let o=r[this.treeIndex],a=(o&qr.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const i=t.charCodeAt(n);if(this.treeIndex=aP(r,o,this.treeIndex+Math.max(1,a),i),this.treeIndex<0)return this.result===0||this.decodeMode===kr.Attribute&&(a===0||rP(i))?0:this.emitNotTerminatedNamedEntity();if(o=r[this.treeIndex],a=(o&qr.VALUE_LENGTH)>>14,a!==0){if(i===Vt.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==kr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,o=(r[n]&qr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,o,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[t]&~qr.VALUE_LENGTH:o[t+1],r),n===3&&this.emitCodePoint(o[t+2],r),r}end(){var t;switch(this.state){case Gt.NamedEntity:return this.result!==0&&(this.decodeMode!==kr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Gt.NumericDecimal:return this.emitNumericEntity(0,2);case Gt.NumericHex:return this.emitNumericEntity(0,3);case Gt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Gt.EntityStart:return 0}}};function aP(e,t,n,r){const o=(t&qr.BRANCH_LENGTH)>>7,a=t&qr.JUMP_TABLE;if(o===0)return a!==0&&r===a?n:-1;if(a){const l=r-a;return l<0||l>=o?-1:e[n+l]-1}let i=n,s=i+o-1;for(;i<=s;){const l=i+s>>>1,c=e[l];if(c<r)i=l+1;else if(c>r)s=l-1;else return e[l+o]}return-1}var Z;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Z||(Z={}));var So;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(So||(So={}));var Mn;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Mn||(Mn={}));var H;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(H||(H={}));var m;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(m||(m={}));const iP=new Map([[H.A,m.A],[H.ADDRESS,m.ADDRESS],[H.ANNOTATION_XML,m.ANNOTATION_XML],[H.APPLET,m.APPLET],[H.AREA,m.AREA],[H.ARTICLE,m.ARTICLE],[H.ASIDE,m.ASIDE],[H.B,m.B],[H.BASE,m.BASE],[H.BASEFONT,m.BASEFONT],[H.BGSOUND,m.BGSOUND],[H.BIG,m.BIG],[H.BLOCKQUOTE,m.BLOCKQUOTE],[H.BODY,m.BODY],[H.BR,m.BR],[H.BUTTON,m.BUTTON],[H.CAPTION,m.CAPTION],[H.CENTER,m.CENTER],[H.CODE,m.CODE],[H.COL,m.COL],[H.COLGROUP,m.COLGROUP],[H.DD,m.DD],[H.DESC,m.DESC],[H.DETAILS,m.DETAILS],[H.DIALOG,m.DIALOG],[H.DIR,m.DIR],[H.DIV,m.DIV],[H.DL,m.DL],[H.DT,m.DT],[H.EM,m.EM],[H.EMBED,m.EMBED],[H.FIELDSET,m.FIELDSET],[H.FIGCAPTION,m.FIGCAPTION],[H.FIGURE,m.FIGURE],[H.FONT,m.FONT],[H.FOOTER,m.FOOTER],[H.FOREIGN_OBJECT,m.FOREIGN_OBJECT],[H.FORM,m.FORM],[H.FRAME,m.FRAME],[H.FRAMESET,m.FRAMESET],[H.H1,m.H1],[H.H2,m.H2],[H.H3,m.H3],[H.H4,m.H4],[H.H5,m.H5],[H.H6,m.H6],[H.HEAD,m.HEAD],[H.HEADER,m.HEADER],[H.HGROUP,m.HGROUP],[H.HR,m.HR],[H.HTML,m.HTML],[H.I,m.I],[H.IMG,m.IMG],[H.IMAGE,m.IMAGE],[H.INPUT,m.INPUT],[H.IFRAME,m.IFRAME],[H.KEYGEN,m.KEYGEN],[H.LABEL,m.LABEL],[H.LI,m.LI],[H.LINK,m.LINK],[H.LISTING,m.LISTING],[H.MAIN,m.MAIN],[H.MALIGNMARK,m.MALIGNMARK],[H.MARQUEE,m.MARQUEE],[H.MATH,m.MATH],[H.MENU,m.MENU],[H.META,m.META],[H.MGLYPH,m.MGLYPH],[H.MI,m.MI],[H.MO,m.MO],[H.MN,m.MN],[H.MS,m.MS],[H.MTEXT,m.MTEXT],[H.NAV,m.NAV],[H.NOBR,m.NOBR],[H.NOFRAMES,m.NOFRAMES],[H.NOEMBED,m.NOEMBED],[H.NOSCRIPT,m.NOSCRIPT],[H.OBJECT,m.OBJECT],[H.OL,m.OL],[H.OPTGROUP,m.OPTGROUP],[H.OPTION,m.OPTION],[H.P,m.P],[H.PARAM,m.PARAM],[H.PLAINTEXT,m.PLAINTEXT],[H.PRE,m.PRE],[H.RB,m.RB],[H.RP,m.RP],[H.RT,m.RT],[H.RTC,m.RTC],[H.RUBY,m.RUBY],[H.S,m.S],[H.SCRIPT,m.SCRIPT],[H.SEARCH,m.SEARCH],[H.SECTION,m.SECTION],[H.SELECT,m.SELECT],[H.SOURCE,m.SOURCE],[H.SMALL,m.SMALL],[H.SPAN,m.SPAN],[H.STRIKE,m.STRIKE],[H.STRONG,m.STRONG],[H.STYLE,m.STYLE],[H.SUB,m.SUB],[H.SUMMARY,m.SUMMARY],[H.SUP,m.SUP],[H.TABLE,m.TABLE],[H.TBODY,m.TBODY],[H.TEMPLATE,m.TEMPLATE],[H.TEXTAREA,m.TEXTAREA],[H.TFOOT,m.TFOOT],[H.TD,m.TD],[H.TH,m.TH],[H.THEAD,m.THEAD],[H.TITLE,m.TITLE],[H.TR,m.TR],[H.TRACK,m.TRACK],[H.TT,m.TT],[H.U,m.U],[H.UL,m.UL],[H.SVG,m.SVG],[H.VAR,m.VAR],[H.WBR,m.WBR],[H.XMP,m.XMP]]);function Ia(e){var t;return(t=iP.get(e))!==null&&t!==void 0?t:m.UNKNOWN}const ae=m,sP={[Z.HTML]:new Set([ae.ADDRESS,ae.APPLET,ae.AREA,ae.ARTICLE,ae.ASIDE,ae.BASE,ae.BASEFONT,ae.BGSOUND,ae.BLOCKQUOTE,ae.BODY,ae.BR,ae.BUTTON,ae.CAPTION,ae.CENTER,ae.COL,ae.COLGROUP,ae.DD,ae.DETAILS,ae.DIR,ae.DIV,ae.DL,ae.DT,ae.EMBED,ae.FIELDSET,ae.FIGCAPTION,ae.FIGURE,ae.FOOTER,ae.FORM,ae.FRAME,ae.FRAMESET,ae.H1,ae.H2,ae.H3,ae.H4,ae.H5,ae.H6,ae.HEAD,ae.HEADER,ae.HGROUP,ae.HR,ae.HTML,ae.IFRAME,ae.IMG,ae.INPUT,ae.LI,ae.LINK,ae.LISTING,ae.MAIN,ae.MARQUEE,ae.MENU,ae.META,ae.NAV,ae.NOEMBED,ae.NOFRAMES,ae.NOSCRIPT,ae.OBJECT,ae.OL,ae.P,ae.PARAM,ae.PLAINTEXT,ae.PRE,ae.SCRIPT,ae.SECTION,ae.SELECT,ae.SOURCE,ae.STYLE,ae.SUMMARY,ae.TABLE,ae.TBODY,ae.TD,ae.TEMPLATE,ae.TEXTAREA,ae.TFOOT,ae.TH,ae.THEAD,ae.TITLE,ae.TR,ae.TRACK,ae.UL,ae.WBR,ae.XMP]),[Z.MATHML]:new Set([ae.MI,ae.MO,ae.MN,ae.MS,ae.MTEXT,ae.ANNOTATION_XML]),[Z.SVG]:new Set([ae.TITLE,ae.FOREIGN_OBJECT,ae.DESC]),[Z.XLINK]:new Set,[Z.XML]:new Set,[Z.XMLNS]:new Set},Xu=new Set([ae.H1,ae.H2,ae.H3,ae.H4,ae.H5,ae.H6]);H.STYLE,H.SCRIPT,H.XMP,H.IFRAME,H.NOEMBED,H.NOFRAMES,H.PLAINTEXT;const lP=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0)));var w;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(w||(w={}));const Nt={DATA:w.DATA,RCDATA:w.RCDATA,RAWTEXT:w.RAWTEXT,SCRIPT_DATA:w.SCRIPT_DATA,PLAINTEXT:w.PLAINTEXT,CDATA_SECTION:w.CDATA_SECTION};function cP(e){return e>=_.DIGIT_0&&e<=_.DIGIT_9}function oi(e){return e>=_.LATIN_CAPITAL_A&&e<=_.LATIN_CAPITAL_Z}function uP(e){return e>=_.LATIN_SMALL_A&&e<=_.LATIN_SMALL_Z}function jr(e){return uP(e)||oi(e)}function Bf(e){return jr(e)||cP(e)}function Cs(e){return e+32}function Cy(e){return e===_.SPACE||e===_.LINE_FEED||e===_.TABULATION||e===_.FORM_FEED}function jf(e){return Cy(e)||e===_.SOLIDUS||e===_.GREATER_THAN_SIGN}function dP(e){return e===_.NULL?W.nullCharacterReference:e>1114111?W.characterReferenceOutsideUnicodeRange:by(e)?W.surrogateCharacterReference:xy(e)?W.noncharacterCharacterReference:Ey(e)||e===_.CARRIAGE_RETURN?W.controlCharacterReference:null}let hP=class{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=w.DATA,this.returnState=w.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new X3(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new oP(lP,(r,o)=>{this.preprocessor.pos=this.entityStartPos+o-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(W.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(W.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const o=dP(r);o&&this._err(o,1)}}:void 0)}_err(t,n=0){var r,o;(o=(r=this.handler).onParseError)===null||o===void 0||o.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Be.START_TAG,tagName:"",tagID:m.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Be.END_TAG,tagName:"",tagID:m.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Be.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Be.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(Ty(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const o=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);o[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(W.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Ia(t.tagName),t.type===Be.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(W.endTagWithAttributes),t.selfClosing&&this._err(W.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Be.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Be.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Be.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Be.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=Cy(t)?Be.WHITESPACE_CHARACTER:t===_.NULL?Be.NULL_CHARACTER:Be.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Be.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=w.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?kr.Attribute:kr.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===w.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===w.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===w.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case w.DATA:{this._stateData(t);break}case w.RCDATA:{this._stateRcdata(t);break}case w.RAWTEXT:{this._stateRawtext(t);break}case w.SCRIPT_DATA:{this._stateScriptData(t);break}case w.PLAINTEXT:{this._statePlaintext(t);break}case w.TAG_OPEN:{this._stateTagOpen(t);break}case w.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case w.TAG_NAME:{this._stateTagName(t);break}case w.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case w.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case w.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case w.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case w.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case w.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case w.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case w.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case w.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case w.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case w.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case w.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case w.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case w.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case w.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case w.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case w.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case w.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case w.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case w.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case w.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case w.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case w.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case w.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case w.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case w.BOGUS_COMMENT:{this._stateBogusComment(t);break}case w.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case w.COMMENT_START:{this._stateCommentStart(t);break}case w.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case w.COMMENT:{this._stateComment(t);break}case w.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case w.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case w.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case w.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case w.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case w.COMMENT_END:{this._stateCommentEnd(t);break}case w.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case w.DOCTYPE:{this._stateDoctype(t);break}case w.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case w.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case w.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case w.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case w.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case w.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case w.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case w.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case w.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case w.CDATA_SECTION:{this._stateCdataSection(t);break}case w.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case w.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case w.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case w.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case _.LESS_THAN_SIGN:{this.state=w.TAG_OPEN;break}case _.AMPERSAND:{this._startCharacterReference();break}case _.NULL:{this._err(W.unexpectedNullCharacter),this._emitCodePoint(t);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case _.AMPERSAND:{this._startCharacterReference();break}case _.LESS_THAN_SIGN:{this.state=w.RCDATA_LESS_THAN_SIGN;break}case _.NULL:{this._err(W.unexpectedNullCharacter),this._emitChars(Ct);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case _.LESS_THAN_SIGN:{this.state=w.RAWTEXT_LESS_THAN_SIGN;break}case _.NULL:{this._err(W.unexpectedNullCharacter),this._emitChars(Ct);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case _.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_LESS_THAN_SIGN;break}case _.NULL:{this._err(W.unexpectedNullCharacter),this._emitChars(Ct);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case _.NULL:{this._err(W.unexpectedNullCharacter),this._emitChars(Ct);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(jr(t))this._createStartTagToken(),this.state=w.TAG_NAME,this._stateTagName(t);else switch(t){case _.EXCLAMATION_MARK:{this.state=w.MARKUP_DECLARATION_OPEN;break}case _.SOLIDUS:{this.state=w.END_TAG_OPEN;break}case _.QUESTION_MARK:{this._err(W.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t);break}case _.EOF:{this._err(W.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(W.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=w.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(jr(t))this._createEndTagToken(),this.state=w.TAG_NAME,this._stateTagName(t);else switch(t){case _.GREATER_THAN_SIGN:{this._err(W.missingEndTagName),this.state=w.DATA;break}case _.EOF:{this._err(W.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(W.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=w.BEFORE_ATTRIBUTE_NAME;break}case _.SOLIDUS:{this.state=w.SELF_CLOSING_START_TAG;break}case _.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentTagToken();break}case _.NULL:{this._err(W.unexpectedNullCharacter),n.tagName+=Ct;break}case _.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(oi(t)?Cs(t):t)}}_stateRcdataLessThanSign(t){t===_.SOLIDUS?this.state=w.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=w.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){jr(t)?(this.state=w.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=w.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=w.BEFORE_ATTRIBUTE_NAME,!1;case _.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=w.SELF_CLOSING_START_TAG,!1;case _.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=w.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=w.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===_.SOLIDUS?this.state=w.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=w.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){jr(t)?(this.state=w.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=w.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=w.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case _.SOLIDUS:{this.state=w.SCRIPT_DATA_END_TAG_OPEN;break}case _.EXCLAMATION_MARK:{this.state=w.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=w.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){jr(t)?(this.state=w.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=w.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=w.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===_.HYPHEN_MINUS?(this.state=w.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=w.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===_.HYPHEN_MINUS?(this.state=w.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=w.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case _.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case _.NULL:{this._err(W.unexpectedNullCharacter),this._emitChars(Ct);break}case _.EOF:{this._err(W.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case _.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case _.NULL:{this._err(W.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_ESCAPED,this._emitChars(Ct);break}case _.EOF:{this._err(W.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case _.HYPHEN_MINUS:{this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case _.GREATER_THAN_SIGN:{this.state=w.SCRIPT_DATA,this._emitChars(">");break}case _.NULL:{this._err(W.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_ESCAPED,this._emitChars(Ct);break}case _.EOF:{this._err(W.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===_.SOLIDUS?this.state=w.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:jr(t)?(this._emitChars("<"),this.state=w.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=w.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){jr(t)?(this.state=w.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=w.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=w.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(yn.SCRIPT,!1)&&jf(this.preprocessor.peek(yn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<yn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=w.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case _.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case _.NULL:{this._err(W.unexpectedNullCharacter),this._emitChars(Ct);break}case _.EOF:{this._err(W.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case _.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case _.NULL:{this._err(W.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ct);break}case _.EOF:{this._err(W.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case _.HYPHEN_MINUS:{this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case _.GREATER_THAN_SIGN:{this.state=w.SCRIPT_DATA,this._emitChars(">");break}case _.NULL:{this._err(W.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ct);break}case _.EOF:{this._err(W.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===_.SOLIDUS?(this.state=w.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(yn.SCRIPT,!1)&&jf(this.preprocessor.peek(yn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<yn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=w.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.SOLIDUS:case _.GREATER_THAN_SIGN:case _.EOF:{this.state=w.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case _.EQUALS_SIGN:{this._err(W.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=w.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=w.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:case _.SOLIDUS:case _.GREATER_THAN_SIGN:case _.EOF:{this._leaveAttrName(),this.state=w.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case _.EQUALS_SIGN:{this._leaveAttrName(),this.state=w.BEFORE_ATTRIBUTE_VALUE;break}case _.QUOTATION_MARK:case _.APOSTROPHE:case _.LESS_THAN_SIGN:{this._err(W.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case _.NULL:{this._err(W.unexpectedNullCharacter),this.currentAttr.name+=Ct;break}default:this.currentAttr.name+=String.fromCodePoint(oi(t)?Cs(t):t)}}_stateAfterAttributeName(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.SOLIDUS:{this.state=w.SELF_CLOSING_START_TAG;break}case _.EQUALS_SIGN:{this.state=w.BEFORE_ATTRIBUTE_VALUE;break}case _.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentTagToken();break}case _.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=w.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.QUOTATION_MARK:{this.state=w.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case _.APOSTROPHE:{this.state=w.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(W.missingAttributeValue),this.state=w.DATA,this.emitCurrentTagToken();break}default:this.state=w.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case _.QUOTATION_MARK:{this.state=w.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case _.AMPERSAND:{this._startCharacterReference();break}case _.NULL:{this._err(W.unexpectedNullCharacter),this.currentAttr.value+=Ct;break}case _.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case _.APOSTROPHE:{this.state=w.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case _.AMPERSAND:{this._startCharacterReference();break}case _.NULL:{this._err(W.unexpectedNullCharacter),this.currentAttr.value+=Ct;break}case _.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this._leaveAttrValue(),this.state=w.BEFORE_ATTRIBUTE_NAME;break}case _.AMPERSAND:{this._startCharacterReference();break}case _.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=w.DATA,this.emitCurrentTagToken();break}case _.NULL:{this._err(W.unexpectedNullCharacter),this.currentAttr.value+=Ct;break}case _.QUOTATION_MARK:case _.APOSTROPHE:case _.LESS_THAN_SIGN:case _.EQUALS_SIGN:case _.GRAVE_ACCENT:{this._err(W.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case _.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this._leaveAttrValue(),this.state=w.BEFORE_ATTRIBUTE_NAME;break}case _.SOLIDUS:{this._leaveAttrValue(),this.state=w.SELF_CLOSING_START_TAG;break}case _.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=w.DATA,this.emitCurrentTagToken();break}case _.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:this._err(W.missingWhitespaceBetweenAttributes),this.state=w.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case _.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=w.DATA,this.emitCurrentTagToken();break}case _.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:this._err(W.unexpectedSolidusInTag),this.state=w.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case _.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentComment(n);break}case _.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case _.NULL:{this._err(W.unexpectedNullCharacter),n.data+=Ct;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(yn.DASH_DASH,!0)?(this._createCommentToken(yn.DASH_DASH.length+1),this.state=w.COMMENT_START):this._consumeSequenceIfMatch(yn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(yn.DOCTYPE.length+1),this.state=w.DOCTYPE):this._consumeSequenceIfMatch(yn.CDATA_START,!0)?this.inForeignNode?this.state=w.CDATA_SECTION:(this._err(W.cdataInHtmlContent),this._createCommentToken(yn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=w.BOGUS_COMMENT):this._ensureHibernation()||(this._err(W.incorrectlyOpenedComment),this._createCommentToken(2),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case _.HYPHEN_MINUS:{this.state=w.COMMENT_START_DASH;break}case _.GREATER_THAN_SIGN:{this._err(W.abruptClosingOfEmptyComment),this.state=w.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=w.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case _.HYPHEN_MINUS:{this.state=w.COMMENT_END;break}case _.GREATER_THAN_SIGN:{this._err(W.abruptClosingOfEmptyComment),this.state=w.DATA,this.emitCurrentComment(n);break}case _.EOF:{this._err(W.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=w.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case _.HYPHEN_MINUS:{this.state=w.COMMENT_END_DASH;break}case _.LESS_THAN_SIGN:{n.data+="<",this.state=w.COMMENT_LESS_THAN_SIGN;break}case _.NULL:{this._err(W.unexpectedNullCharacter),n.data+=Ct;break}case _.EOF:{this._err(W.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case _.EXCLAMATION_MARK:{n.data+="!",this.state=w.COMMENT_LESS_THAN_SIGN_BANG;break}case _.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=w.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===_.HYPHEN_MINUS?this.state=w.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=w.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===_.HYPHEN_MINUS?this.state=w.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=w.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==_.GREATER_THAN_SIGN&&t!==_.EOF&&this._err(W.nestedComment),this.state=w.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case _.HYPHEN_MINUS:{this.state=w.COMMENT_END;break}case _.EOF:{this._err(W.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=w.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case _.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentComment(n);break}case _.EXCLAMATION_MARK:{this.state=w.COMMENT_END_BANG;break}case _.HYPHEN_MINUS:{n.data+="-";break}case _.EOF:{this._err(W.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=w.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case _.HYPHEN_MINUS:{n.data+="--!",this.state=w.COMMENT_END_DASH;break}case _.GREATER_THAN_SIGN:{this._err(W.incorrectlyClosedComment),this.state=w.DATA,this.emitCurrentComment(n);break}case _.EOF:{this._err(W.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=w.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_NAME;break}case _.GREATER_THAN_SIGN:{this.state=w.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case _.EOF:{this._err(W.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingWhitespaceBeforeDoctypeName),this.state=w.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(oi(t))this._createDoctypeToken(String.fromCharCode(Cs(t))),this.state=w.DOCTYPE_NAME;else switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.NULL:{this._err(W.unexpectedNullCharacter),this._createDoctypeToken(Ct),this.state=w.DOCTYPE_NAME;break}case _.GREATER_THAN_SIGN:{this._err(W.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=w.DATA;break}case _.EOF:{this._err(W.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=w.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=w.AFTER_DOCTYPE_NAME;break}case _.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(n);break}case _.NULL:{this._err(W.unexpectedNullCharacter),n.name+=Ct;break}case _.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(oi(t)?Cs(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(n);break}case _.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(yn.PUBLIC,!1)?this.state=w.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(yn.SYSTEM,!1)?this.state=w.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(W.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case _.QUOTATION_MARK:{this._err(W.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{this._err(W.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(W.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(n);break}case _.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.QUOTATION_MARK:{n.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{n.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(W.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(n);break}case _.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case _.QUOTATION_MARK:{this.state=w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case _.NULL:{this._err(W.unexpectedNullCharacter),n.publicId+=Ct;break}case _.GREATER_THAN_SIGN:{this._err(W.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=w.DATA;break}case _.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case _.APOSTROPHE:{this.state=w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case _.NULL:{this._err(W.unexpectedNullCharacter),n.publicId+=Ct;break}case _.GREATER_THAN_SIGN:{this._err(W.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=w.DATA;break}case _.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=w.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case _.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(n);break}case _.QUOTATION_MARK:{this._err(W.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{this._err(W.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case _.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=w.DATA;break}case _.QUOTATION_MARK:{n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case _.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case _.QUOTATION_MARK:{this._err(W.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{this._err(W.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(W.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(n);break}case _.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.QUOTATION_MARK:{n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(W.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(n);break}case _.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case _.QUOTATION_MARK:{this.state=w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case _.NULL:{this._err(W.unexpectedNullCharacter),n.systemId+=Ct;break}case _.GREATER_THAN_SIGN:{this._err(W.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=w.DATA;break}case _.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case _.APOSTROPHE:{this.state=w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case _.NULL:{this._err(W.unexpectedNullCharacter),n.systemId+=Ct;break}case _.GREATER_THAN_SIGN:{this._err(W.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=w.DATA;break}case _.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=w.DATA;break}case _.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case _.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=w.DATA;break}case _.NULL:{this._err(W.unexpectedNullCharacter);break}case _.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case _.RIGHT_SQUARE_BRACKET:{this.state=w.CDATA_SECTION_BRACKET;break}case _.EOF:{this._err(W.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===_.RIGHT_SQUARE_BRACKET?this.state=w.CDATA_SECTION_END:(this._emitChars("]"),this.state=w.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case _.GREATER_THAN_SIGN:{this.state=w.DATA;break}case _.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=w.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(_.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Bf(this.preprocessor.peek(1))?w.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Bf(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===_.SEMICOLON&&this._err(W.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}};const vy=new Set([m.DD,m.DT,m.LI,m.OPTGROUP,m.OPTION,m.P,m.RB,m.RP,m.RT,m.RTC]),Hf=new Set([...vy,m.CAPTION,m.COLGROUP,m.TBODY,m.TD,m.TFOOT,m.TH,m.THEAD,m.TR]),El=new Set([m.APPLET,m.CAPTION,m.HTML,m.MARQUEE,m.OBJECT,m.TABLE,m.TD,m.TEMPLATE,m.TH]),pP=new Set([...El,m.OL,m.UL]),fP=new Set([...El,m.BUTTON]),Uf=new Set([m.ANNOTATION_XML,m.MI,m.MN,m.MO,m.MS,m.MTEXT]),zf=new Set([m.DESC,m.FOREIGN_OBJECT,m.TITLE]),mP=new Set([m.TR,m.TEMPLATE,m.HTML]),gP=new Set([m.TBODY,m.TFOOT,m.THEAD,m.TEMPLATE,m.HTML]),yP=new Set([m.TABLE,m.TEMPLATE,m.HTML]),bP=new Set([m.TD,m.TH]);let EP=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=m.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===m.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Z.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const o=this._indexOf(t)+1;this.items.splice(o,0,n),this.tagIDs.splice(o,0,r),this.stackTop++,o===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,o===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==Z.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Xu,Z.HTML)}popUntilTableCellPopped(){this.popUntilPopped(bP,Z.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(yP,Z.HTML)}clearBackToTableBodyContext(){this.clearBackTo(gP,Z.HTML)}clearBackToTableRowContext(){this.clearBackTo(mP,Z.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===m.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===m.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const o=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Z.HTML:{if(o===t)return!0;if(n.has(o))return!1;break}case Z.SVG:{if(zf.has(o))return!1;break}case Z.MATHML:{if(Uf.has(o))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,El)}hasInListItemScope(t){return this.hasInDynamicScope(t,pP)}hasInButtonScope(t){return this.hasInDynamicScope(t,fP)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case Z.HTML:{if(Xu.has(n))return!0;if(El.has(n))return!1;break}case Z.SVG:{if(zf.has(n))return!1;break}case Z.MATHML:{if(Uf.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Z.HTML)switch(this.tagIDs[n]){case t:return!0;case m.TABLE:case m.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Z.HTML)switch(this.tagIDs[t]){case m.TBODY:case m.THEAD:case m.TFOOT:return!0;case m.TABLE:case m.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Z.HTML)switch(this.tagIDs[n]){case t:return!0;case m.OPTION:case m.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&vy.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Hf.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Hf.has(this.currentTagId);)this.pop()}};var lr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(lr||(lr={}));const Gf={type:lr.Marker};let xP=class{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],o=n.length,a=this.treeAdapter.getTagName(t),i=this.treeAdapter.getNamespaceURI(t);for(let s=0;s<this.entries.length;s++){const l=this.entries[s];if(l.type===lr.Marker)break;const{element:c}=l;if(this.treeAdapter.getTagName(c)===a&&this.treeAdapter.getNamespaceURI(c)===i){const d=this.treeAdapter.getAttrList(c);d.length===o&&r.push({idx:s,attrs:d})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<3)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<3)return;const o=new Map(n.map(i=>[i.name,i.value]));let a=0;for(let i=0;i<r.length;i++){const s=r[i];s.attrs.every(l=>o.get(l.name)===l.value)&&(a+=1,a>=3&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(Gf)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:lr.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:lr.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Gf);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===lr.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===lr.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===lr.Element&&n.element===t)}};const Hr={createDocument(){return{nodeName:"#document",mode:Mn.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const o=e.childNodes.find(a=>a.nodeName==="#documentType");if(o)o.name=t,o.publicId=n,o.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Hr.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Hr.isTextNode(n)){n.value+=t;return}}Hr.appendChild(e,Hr.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Hr.isTextNode(r)?r.value+=t:Hr.insertBefore(e,Hr.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Sy="html",TP="about:legacy-compat",CP="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",ky=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],vP=[...ky,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],SP=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Ay=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],kP=[...Ay,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function qf(e,t){return t.some(n=>e.startsWith(n))}function AP(e){return e.name===Sy&&e.publicId===null&&(e.systemId===null||e.systemId===TP)}function IP(e){if(e.name!==Sy)return Mn.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===CP)return Mn.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),SP.has(n))return Mn.QUIRKS;let r=t===null?vP:ky;if(qf(n,r))return Mn.QUIRKS;if(r=t===null?Ay:kP,qf(n,r))return Mn.LIMITED_QUIRKS}return Mn.NO_QUIRKS}const Wf={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},_P="definitionurl",DP="definitionURL",wP=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),NP=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Z.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Z.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Z.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Z.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Z.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Z.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Z.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Z.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Z.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Z.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Z.XMLNS}]]),PP=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),RP=new Set([m.B,m.BIG,m.BLOCKQUOTE,m.BODY,m.BR,m.CENTER,m.CODE,m.DD,m.DIV,m.DL,m.DT,m.EM,m.EMBED,m.H1,m.H2,m.H3,m.H4,m.H5,m.H6,m.HEAD,m.HR,m.I,m.IMG,m.LI,m.LISTING,m.MENU,m.META,m.NOBR,m.OL,m.P,m.PRE,m.RUBY,m.S,m.SMALL,m.SPAN,m.STRONG,m.STRIKE,m.SUB,m.SUP,m.TABLE,m.TT,m.U,m.UL,m.VAR]);function LP(e){const t=e.tagID;return t===m.FONT&&e.attrs.some(({name:n})=>n===So.COLOR||n===So.SIZE||n===So.FACE)||RP.has(t)}function Iy(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===_P){e.attrs[t].name=DP;break}}function _y(e){for(let t=0;t<e.attrs.length;t++){const n=wP.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function mh(e){for(let t=0;t<e.attrs.length;t++){const n=NP.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function $P(e){const t=PP.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Ia(e.tagName))}function OP(e,t){return t===Z.MATHML&&(e===m.MI||e===m.MO||e===m.MN||e===m.MS||e===m.MTEXT)}function MP(e,t,n){if(t===Z.MATHML&&e===m.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===So.ENCODING){const o=n[r].value.toLowerCase();return o===Wf.TEXT_HTML||o===Wf.APPLICATION_XML}}return t===Z.SVG&&(e===m.FOREIGN_OBJECT||e===m.DESC||e===m.TITLE)}function FP(e,t,n,r){return(!r||r===Z.HTML)&&MP(e,t,n)||(!r||r===Z.MATHML)&&OP(e,t)}const BP="hidden",jP=8,HP=3;var P;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(P||(P={}));const UP={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Dy=new Set([m.TABLE,m.TBODY,m.TFOOT,m.THEAD,m.TR]),Vf={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Hr,onParseError:null};class Yf{constructor(t,n,r=null,o=null){this.fragmentContext=r,this.scriptHandler=o,this.currentToken=null,this.stopped=!1,this.insertionMode=P.INITIAL,this.originalInsertionMode=P.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Vf,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new hP(this.options,this),this.activeFormattingElements=new xP(this.treeAdapter),this.fragmentContextID=r?Ia(this.treeAdapter.getTagName(r)):m.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new EP(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...Vf,...n};t??(t=r.treeAdapter.createElement(H.TEMPLATE,Z.HTML,[]));const o=r.treeAdapter.createElement("documentmock",Z.HTML,[]),a=new this(r,o,t);return a.fragmentContextID===m.TEMPLATE&&a.tmplInsertionModeStack.unshift(P.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var o;if(!this.onParseError)return;const a=(o=t.location)!==null&&o!==void 0?o:UP,i={code:n,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(i)}onItemPush(t,n,r){var o,a;(a=(o=this.treeAdapter).onItemPush)===null||a===void 0||a.call(o,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,o;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(o=(r=this.treeAdapter).onItemPop)===null||o===void 0||o.call(r,t,this.openElements.current),n){let a,i;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,i=this.fragmentContextID):{current:a,currentTagId:i}=this.openElements,this._setContextModes(a,i)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===Z.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Z.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=P.TEXT}switchToPlaintextParsing(){this.insertionMode=P.TEXT,this.originalInsertionMode=P.IN_BODY,this.tokenizer.state=Nt.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===H.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Z.HTML))switch(this.fragmentContextID){case m.TITLE:case m.TEXTAREA:{this.tokenizer.state=Nt.RCDATA;break}case m.STYLE:case m.XMP:case m.IFRAME:case m.NOEMBED:case m.NOFRAMES:case m.NOSCRIPT:{this.tokenizer.state=Nt.RAWTEXT;break}case m.SCRIPT:{this.tokenizer.state=Nt.SCRIPT_DATA;break}case m.PLAINTEXT:{this.tokenizer.state=Nt.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",o=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,o),t.location){const a=this.treeAdapter.getChildNodes(this.document).find(i=>this.treeAdapter.isDocumentTypeNode(i));a&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,Z.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Z.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(H.HTML,Z.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,m.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const o=this.treeAdapter.getChildNodes(n),a=r?o.lastIndexOf(r):o.length,i=o[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){const{endLine:s,endCol:l,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:s,endCol:l,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,o=this.treeAdapter.getTagName(t),a=n.type===Be.END_TAG&&o===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===m.SVG&&this.treeAdapter.getTagName(n)===H.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Z.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===m.MGLYPH||t.tagID===m.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,Z.HTML)}_processToken(t){switch(t.type){case Be.CHARACTER:{this.onCharacter(t);break}case Be.NULL_CHARACTER:{this.onNullCharacter(t);break}case Be.COMMENT:{this.onComment(t);break}case Be.DOCTYPE:{this.onDoctype(t);break}case Be.START_TAG:{this._processStartTag(t);break}case Be.END_TAG:{this.onEndTag(t);break}case Be.EOF:{this.onEof(t);break}case Be.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const o=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return FP(t,o,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(o=>o.type===lr.Marker||this.openElements.contains(o.element)),r=n===-1?t-1:n-1;for(let o=r;o>=0;o--){const a=this.activeFormattingElements.entries[o];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=P.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(m.P),this.openElements.popUntilTagNamePopped(m.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case m.TR:{this.insertionMode=P.IN_ROW;return}case m.TBODY:case m.THEAD:case m.TFOOT:{this.insertionMode=P.IN_TABLE_BODY;return}case m.CAPTION:{this.insertionMode=P.IN_CAPTION;return}case m.COLGROUP:{this.insertionMode=P.IN_COLUMN_GROUP;return}case m.TABLE:{this.insertionMode=P.IN_TABLE;return}case m.BODY:{this.insertionMode=P.IN_BODY;return}case m.FRAMESET:{this.insertionMode=P.IN_FRAMESET;return}case m.SELECT:{this._resetInsertionModeForSelect(t);return}case m.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case m.HTML:{this.insertionMode=this.headElement?P.AFTER_HEAD:P.BEFORE_HEAD;return}case m.TD:case m.TH:{if(t>0){this.insertionMode=P.IN_CELL;return}break}case m.HEAD:{if(t>0){this.insertionMode=P.IN_HEAD;return}break}}this.insertionMode=P.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===m.TEMPLATE)break;if(r===m.TABLE){this.insertionMode=P.IN_SELECT_IN_TABLE;return}}this.insertionMode=P.IN_SELECT}_isElementCausesFosterParenting(t){return Dy.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case m.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Z.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case m.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return sP[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){b6(this,t);return}switch(this.insertionMode){case P.INITIAL:{qa(this,t);break}case P.BEFORE_HTML:{fi(this,t);break}case P.BEFORE_HEAD:{mi(this,t);break}case P.IN_HEAD:{gi(this,t);break}case P.IN_HEAD_NO_SCRIPT:{yi(this,t);break}case P.AFTER_HEAD:{bi(this,t);break}case P.IN_BODY:case P.IN_CAPTION:case P.IN_CELL:case P.IN_TEMPLATE:{Ny(this,t);break}case P.TEXT:case P.IN_SELECT:case P.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case P.IN_TABLE:case P.IN_TABLE_BODY:case P.IN_ROW:{tu(this,t);break}case P.IN_TABLE_TEXT:{My(this,t);break}case P.IN_COLUMN_GROUP:{xl(this,t);break}case P.AFTER_BODY:{Tl(this,t);break}case P.AFTER_AFTER_BODY:{Fs(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){y6(this,t);return}switch(this.insertionMode){case P.INITIAL:{qa(this,t);break}case P.BEFORE_HTML:{fi(this,t);break}case P.BEFORE_HEAD:{mi(this,t);break}case P.IN_HEAD:{gi(this,t);break}case P.IN_HEAD_NO_SCRIPT:{yi(this,t);break}case P.AFTER_HEAD:{bi(this,t);break}case P.TEXT:{this._insertCharacters(t);break}case P.IN_TABLE:case P.IN_TABLE_BODY:case P.IN_ROW:{tu(this,t);break}case P.IN_COLUMN_GROUP:{xl(this,t);break}case P.AFTER_BODY:{Tl(this,t);break}case P.AFTER_AFTER_BODY:{Fs(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Ju(this,t);return}switch(this.insertionMode){case P.INITIAL:case P.BEFORE_HTML:case P.BEFORE_HEAD:case P.IN_HEAD:case P.IN_HEAD_NO_SCRIPT:case P.AFTER_HEAD:case P.IN_BODY:case P.IN_TABLE:case P.IN_CAPTION:case P.IN_COLUMN_GROUP:case P.IN_TABLE_BODY:case P.IN_ROW:case P.IN_CELL:case P.IN_SELECT:case P.IN_SELECT_IN_TABLE:case P.IN_TEMPLATE:case P.IN_FRAMESET:case P.AFTER_FRAMESET:{Ju(this,t);break}case P.IN_TABLE_TEXT:{Wa(this,t);break}case P.AFTER_BODY:{KP(this,t);break}case P.AFTER_AFTER_BODY:case P.AFTER_AFTER_FRAMESET:{QP(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case P.INITIAL:{XP(this,t);break}case P.BEFORE_HEAD:case P.IN_HEAD:case P.IN_HEAD_NO_SCRIPT:case P.AFTER_HEAD:{this._err(t,W.misplacedDoctype);break}case P.IN_TABLE_TEXT:{Wa(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,W.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?E6(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case P.INITIAL:{qa(this,t);break}case P.BEFORE_HTML:{JP(this,t);break}case P.BEFORE_HEAD:{eR(this,t);break}case P.IN_HEAD:{Qn(this,t);break}case P.IN_HEAD_NO_SCRIPT:{rR(this,t);break}case P.AFTER_HEAD:{aR(this,t);break}case P.IN_BODY:{cn(this,t);break}case P.IN_TABLE:{Ta(this,t);break}case P.IN_TABLE_TEXT:{Wa(this,t);break}case P.IN_CAPTION:{t6(this,t);break}case P.IN_COLUMN_GROUP:{bh(this,t);break}case P.IN_TABLE_BODY:{ic(this,t);break}case P.IN_ROW:{sc(this,t);break}case P.IN_CELL:{o6(this,t);break}case P.IN_SELECT:{jy(this,t);break}case P.IN_SELECT_IN_TABLE:{i6(this,t);break}case P.IN_TEMPLATE:{l6(this,t);break}case P.AFTER_BODY:{u6(this,t);break}case P.IN_FRAMESET:{d6(this,t);break}case P.AFTER_FRAMESET:{p6(this,t);break}case P.AFTER_AFTER_BODY:{m6(this,t);break}case P.AFTER_AFTER_FRAMESET:{g6(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?x6(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case P.INITIAL:{qa(this,t);break}case P.BEFORE_HTML:{ZP(this,t);break}case P.BEFORE_HEAD:{tR(this,t);break}case P.IN_HEAD:{nR(this,t);break}case P.IN_HEAD_NO_SCRIPT:{oR(this,t);break}case P.AFTER_HEAD:{iR(this,t);break}case P.IN_BODY:{ac(this,t);break}case P.TEXT:{qR(this,t);break}case P.IN_TABLE:{Li(this,t);break}case P.IN_TABLE_TEXT:{Wa(this,t);break}case P.IN_CAPTION:{n6(this,t);break}case P.IN_COLUMN_GROUP:{r6(this,t);break}case P.IN_TABLE_BODY:{Zu(this,t);break}case P.IN_ROW:{By(this,t);break}case P.IN_CELL:{a6(this,t);break}case P.IN_SELECT:{Hy(this,t);break}case P.IN_SELECT_IN_TABLE:{s6(this,t);break}case P.IN_TEMPLATE:{c6(this,t);break}case P.AFTER_BODY:{zy(this,t);break}case P.IN_FRAMESET:{h6(this,t);break}case P.AFTER_FRAMESET:{f6(this,t);break}case P.AFTER_AFTER_BODY:{Fs(this,t);break}}}onEof(t){switch(this.insertionMode){case P.INITIAL:{qa(this,t);break}case P.BEFORE_HTML:{fi(this,t);break}case P.BEFORE_HEAD:{mi(this,t);break}case P.IN_HEAD:{gi(this,t);break}case P.IN_HEAD_NO_SCRIPT:{yi(this,t);break}case P.AFTER_HEAD:{bi(this,t);break}case P.IN_BODY:case P.IN_TABLE:case P.IN_CAPTION:case P.IN_COLUMN_GROUP:case P.IN_TABLE_BODY:case P.IN_ROW:case P.IN_CELL:case P.IN_SELECT:case P.IN_SELECT_IN_TABLE:{$y(this,t);break}case P.TEXT:{WR(this,t);break}case P.IN_TABLE_TEXT:{Wa(this,t);break}case P.IN_TEMPLATE:{Uy(this,t);break}case P.AFTER_BODY:case P.IN_FRAMESET:case P.AFTER_FRAMESET:case P.AFTER_AFTER_BODY:case P.AFTER_AFTER_FRAMESET:{yh(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===_.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case P.IN_HEAD:case P.IN_HEAD_NO_SCRIPT:case P.AFTER_HEAD:case P.TEXT:case P.IN_COLUMN_GROUP:case P.IN_SELECT:case P.IN_SELECT_IN_TABLE:case P.IN_FRAMESET:case P.AFTER_FRAMESET:{this._insertCharacters(t);break}case P.IN_BODY:case P.IN_CAPTION:case P.IN_CELL:case P.IN_TEMPLATE:case P.AFTER_BODY:case P.AFTER_AFTER_BODY:case P.AFTER_AFTER_FRAMESET:{wy(this,t);break}case P.IN_TABLE:case P.IN_TABLE_BODY:case P.IN_ROW:{tu(this,t);break}case P.IN_TABLE_TEXT:{Oy(this,t);break}}}}function zP(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Ly(e,t),n}function GP(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const o=e.openElements.items[r];if(o===t.element)break;e._isSpecialElement(o,e.openElements.tagIDs[r])&&(n=o)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function qP(e,t,n){let r=t,o=e.openElements.getCommonAncestor(t);for(let a=0,i=o;i!==n;a++,i=o){o=e.openElements.getCommonAncestor(i);const s=e.activeFormattingElements.getElementEntry(i),l=s&&a>=HP;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(i)):(i=WP(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(i,r),r=i)}return r}function WP(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function VP(e,t,n){const r=e.treeAdapter.getTagName(t),o=Ia(r);if(e._isElementCausesFosterParenting(o))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);o===m.TEMPLATE&&a===Z.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function YP(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:o}=n,a=e.treeAdapter.createElement(o.tagName,r,o.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,o),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,o.tagID)}function gh(e,t){for(let n=0;n<jP;n++){const r=zP(e,t);if(!r)break;const o=GP(e,r);if(!o)break;e.activeFormattingElements.bookmark=r;const a=qP(e,o,r.element),i=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),i&&VP(e,i,a),YP(e,o,r)}}function Ju(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function KP(e,t){e._appendCommentNode(t,e.openElements.items[0])}function QP(e,t){e._appendCommentNode(t,e.document)}function yh(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],o=e.treeAdapter.getNodeSourceCodeLocation(r);if(o&&!o.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],i=e.treeAdapter.getNodeSourceCodeLocation(a);i&&!i.endTag&&e._setEndLocation(a,t)}}}}function XP(e,t){e._setDocumentType(t);const n=t.forceQuirks?Mn.QUIRKS:IP(t);AP(t)||e._err(t,W.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=P.BEFORE_HTML}function qa(e,t){e._err(t,W.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Mn.QUIRKS),e.insertionMode=P.BEFORE_HTML,e._processToken(t)}function JP(e,t){t.tagID===m.HTML?(e._insertElement(t,Z.HTML),e.insertionMode=P.BEFORE_HEAD):fi(e,t)}function ZP(e,t){const n=t.tagID;(n===m.HTML||n===m.HEAD||n===m.BODY||n===m.BR)&&fi(e,t)}function fi(e,t){e._insertFakeRootElement(),e.insertionMode=P.BEFORE_HEAD,e._processToken(t)}function eR(e,t){switch(t.tagID){case m.HTML:{cn(e,t);break}case m.HEAD:{e._insertElement(t,Z.HTML),e.headElement=e.openElements.current,e.insertionMode=P.IN_HEAD;break}default:mi(e,t)}}function tR(e,t){const n=t.tagID;n===m.HEAD||n===m.BODY||n===m.HTML||n===m.BR?mi(e,t):e._err(t,W.endTagWithoutMatchingOpenElement)}function mi(e,t){e._insertFakeElement(H.HEAD,m.HEAD),e.headElement=e.openElements.current,e.insertionMode=P.IN_HEAD,e._processToken(t)}function Qn(e,t){switch(t.tagID){case m.HTML:{cn(e,t);break}case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:{e._appendElement(t,Z.HTML),t.ackSelfClosing=!0;break}case m.TITLE:{e._switchToTextParsing(t,Nt.RCDATA);break}case m.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Nt.RAWTEXT):(e._insertElement(t,Z.HTML),e.insertionMode=P.IN_HEAD_NO_SCRIPT);break}case m.NOFRAMES:case m.STYLE:{e._switchToTextParsing(t,Nt.RAWTEXT);break}case m.SCRIPT:{e._switchToTextParsing(t,Nt.SCRIPT_DATA);break}case m.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=P.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(P.IN_TEMPLATE);break}case m.HEAD:{e._err(t,W.misplacedStartTagForHeadElement);break}default:gi(e,t)}}function nR(e,t){switch(t.tagID){case m.HEAD:{e.openElements.pop(),e.insertionMode=P.AFTER_HEAD;break}case m.BODY:case m.BR:case m.HTML:{gi(e,t);break}case m.TEMPLATE:{Fo(e,t);break}default:e._err(t,W.endTagWithoutMatchingOpenElement)}}function Fo(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==m.TEMPLATE&&e._err(t,W.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(m.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,W.endTagWithoutMatchingOpenElement)}function gi(e,t){e.openElements.pop(),e.insertionMode=P.AFTER_HEAD,e._processToken(t)}function rR(e,t){switch(t.tagID){case m.HTML:{cn(e,t);break}case m.BASEFONT:case m.BGSOUND:case m.HEAD:case m.LINK:case m.META:case m.NOFRAMES:case m.STYLE:{Qn(e,t);break}case m.NOSCRIPT:{e._err(t,W.nestedNoscriptInHead);break}default:yi(e,t)}}function oR(e,t){switch(t.tagID){case m.NOSCRIPT:{e.openElements.pop(),e.insertionMode=P.IN_HEAD;break}case m.BR:{yi(e,t);break}default:e._err(t,W.endTagWithoutMatchingOpenElement)}}function yi(e,t){const n=t.type===Be.EOF?W.openElementsLeftAfterEof:W.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=P.IN_HEAD,e._processToken(t)}function aR(e,t){switch(t.tagID){case m.HTML:{cn(e,t);break}case m.BODY:{e._insertElement(t,Z.HTML),e.framesetOk=!1,e.insertionMode=P.IN_BODY;break}case m.FRAMESET:{e._insertElement(t,Z.HTML),e.insertionMode=P.IN_FRAMESET;break}case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:case m.NOFRAMES:case m.SCRIPT:case m.STYLE:case m.TEMPLATE:case m.TITLE:{e._err(t,W.abandonedHeadElementChild),e.openElements.push(e.headElement,m.HEAD),Qn(e,t),e.openElements.remove(e.headElement);break}case m.HEAD:{e._err(t,W.misplacedStartTagForHeadElement);break}default:bi(e,t)}}function iR(e,t){switch(t.tagID){case m.BODY:case m.HTML:case m.BR:{bi(e,t);break}case m.TEMPLATE:{Fo(e,t);break}default:e._err(t,W.endTagWithoutMatchingOpenElement)}}function bi(e,t){e._insertFakeElement(H.BODY,m.BODY),e.insertionMode=P.IN_BODY,oc(e,t)}function oc(e,t){switch(t.type){case Be.CHARACTER:{Ny(e,t);break}case Be.WHITESPACE_CHARACTER:{wy(e,t);break}case Be.COMMENT:{Ju(e,t);break}case Be.START_TAG:{cn(e,t);break}case Be.END_TAG:{ac(e,t);break}case Be.EOF:{$y(e,t);break}}}function wy(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Ny(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function sR(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function lR(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function cR(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Z.HTML),e.insertionMode=P.IN_FRAMESET)}function uR(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,Z.HTML)}function dR(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Xu.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Z.HTML)}function hR(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,Z.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function pR(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,Z.HTML),n||(e.formElement=e.openElements.current))}function fR(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const o=e.openElements.tagIDs[r];if(n===m.LI&&o===m.LI||(n===m.DD||n===m.DT)&&(o===m.DD||o===m.DT)){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(o!==m.ADDRESS&&o!==m.DIV&&o!==m.P&&e._isSpecialElement(e.openElements.items[r],o))break}e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,Z.HTML)}function mR(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,Z.HTML),e.tokenizer.state=Nt.PLAINTEXT}function gR(e,t){e.openElements.hasInScope(m.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.framesetOk=!1}function yR(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(H.A);n&&(gh(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function bR(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ER(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(m.NOBR)&&(gh(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Z.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function xR(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function TR(e,t){e.treeAdapter.getDocumentMode(e.document)!==Mn.QUIRKS&&e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,Z.HTML),e.framesetOk=!1,e.insertionMode=P.IN_TABLE}function Py(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Z.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Ry(e){const t=Ty(e,So.TYPE);return t!=null&&t.toLowerCase()===BP}function CR(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Z.HTML),Ry(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function vR(e,t){e._appendElement(t,Z.HTML),t.ackSelfClosing=!0}function SR(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._appendElement(t,Z.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function kR(e,t){t.tagName=H.IMG,t.tagID=m.IMG,Py(e,t)}function AR(e,t){e._insertElement(t,Z.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Nt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=P.TEXT}function IR(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Nt.RAWTEXT)}function _R(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Nt.RAWTEXT)}function Kf(e,t){e._switchToTextParsing(t,Nt.RAWTEXT)}function DR(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===P.IN_TABLE||e.insertionMode===P.IN_CAPTION||e.insertionMode===P.IN_TABLE_BODY||e.insertionMode===P.IN_ROW||e.insertionMode===P.IN_CELL?P.IN_SELECT_IN_TABLE:P.IN_SELECT}function wR(e,t){e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML)}function NR(e,t){e.openElements.hasInScope(m.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Z.HTML)}function PR(e,t){e.openElements.hasInScope(m.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(m.RTC),e._insertElement(t,Z.HTML)}function RR(e,t){e._reconstructActiveFormattingElements(),Iy(t),mh(t),t.selfClosing?e._appendElement(t,Z.MATHML):e._insertElement(t,Z.MATHML),t.ackSelfClosing=!0}function LR(e,t){e._reconstructActiveFormattingElements(),_y(t),mh(t),t.selfClosing?e._appendElement(t,Z.SVG):e._insertElement(t,Z.SVG),t.ackSelfClosing=!0}function Qf(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML)}function cn(e,t){switch(t.tagID){case m.I:case m.S:case m.B:case m.U:case m.EM:case m.TT:case m.BIG:case m.CODE:case m.FONT:case m.SMALL:case m.STRIKE:case m.STRONG:{bR(e,t);break}case m.A:{yR(e,t);break}case m.H1:case m.H2:case m.H3:case m.H4:case m.H5:case m.H6:{dR(e,t);break}case m.P:case m.DL:case m.OL:case m.UL:case m.DIV:case m.DIR:case m.NAV:case m.MAIN:case m.MENU:case m.ASIDE:case m.CENTER:case m.FIGURE:case m.FOOTER:case m.HEADER:case m.HGROUP:case m.DIALOG:case m.DETAILS:case m.ADDRESS:case m.ARTICLE:case m.SEARCH:case m.SECTION:case m.SUMMARY:case m.FIELDSET:case m.BLOCKQUOTE:case m.FIGCAPTION:{uR(e,t);break}case m.LI:case m.DD:case m.DT:{fR(e,t);break}case m.BR:case m.IMG:case m.WBR:case m.AREA:case m.EMBED:case m.KEYGEN:{Py(e,t);break}case m.HR:{SR(e,t);break}case m.RB:case m.RTC:{NR(e,t);break}case m.RT:case m.RP:{PR(e,t);break}case m.PRE:case m.LISTING:{hR(e,t);break}case m.XMP:{IR(e,t);break}case m.SVG:{LR(e,t);break}case m.HTML:{sR(e,t);break}case m.BASE:case m.LINK:case m.META:case m.STYLE:case m.TITLE:case m.SCRIPT:case m.BGSOUND:case m.BASEFONT:case m.TEMPLATE:{Qn(e,t);break}case m.BODY:{lR(e,t);break}case m.FORM:{pR(e,t);break}case m.NOBR:{ER(e,t);break}case m.MATH:{RR(e,t);break}case m.TABLE:{TR(e,t);break}case m.INPUT:{CR(e,t);break}case m.PARAM:case m.TRACK:case m.SOURCE:{vR(e,t);break}case m.IMAGE:{kR(e,t);break}case m.BUTTON:{gR(e,t);break}case m.APPLET:case m.OBJECT:case m.MARQUEE:{xR(e,t);break}case m.IFRAME:{_R(e,t);break}case m.SELECT:{DR(e,t);break}case m.OPTION:case m.OPTGROUP:{wR(e,t);break}case m.NOEMBED:case m.NOFRAMES:{Kf(e,t);break}case m.FRAMESET:{cR(e,t);break}case m.TEXTAREA:{AR(e,t);break}case m.NOSCRIPT:{e.options.scriptingEnabled?Kf(e,t):Qf(e,t);break}case m.PLAINTEXT:{mR(e,t);break}case m.COL:case m.TH:case m.TD:case m.TR:case m.HEAD:case m.FRAME:case m.TBODY:case m.TFOOT:case m.THEAD:case m.CAPTION:case m.COLGROUP:break;default:Qf(e,t)}}function $R(e,t){if(e.openElements.hasInScope(m.BODY)&&(e.insertionMode=P.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function OR(e,t){e.openElements.hasInScope(m.BODY)&&(e.insertionMode=P.AFTER_BODY,zy(e,t))}function MR(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function FR(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(m.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(m.FORM):n&&e.openElements.remove(n))}function BR(e){e.openElements.hasInButtonScope(m.P)||e._insertFakeElement(H.P,m.P),e._closePElement()}function jR(e){e.openElements.hasInListItemScope(m.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(m.LI),e.openElements.popUntilTagNamePopped(m.LI))}function HR(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function UR(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function zR(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function GR(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(H.BR,m.BR),e.openElements.pop(),e.framesetOk=!1}function Ly(e,t){const n=t.tagName,r=t.tagID;for(let o=e.openElements.stackTop;o>0;o--){const a=e.openElements.items[o],i=e.openElements.tagIDs[o];if(r===i&&(r!==m.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=o&&e.openElements.shortenToLength(o);break}if(e._isSpecialElement(a,i))break}}function ac(e,t){switch(t.tagID){case m.A:case m.B:case m.I:case m.S:case m.U:case m.EM:case m.TT:case m.BIG:case m.CODE:case m.FONT:case m.NOBR:case m.SMALL:case m.STRIKE:case m.STRONG:{gh(e,t);break}case m.P:{BR(e);break}case m.DL:case m.UL:case m.OL:case m.DIR:case m.DIV:case m.NAV:case m.PRE:case m.MAIN:case m.MENU:case m.ASIDE:case m.BUTTON:case m.CENTER:case m.FIGURE:case m.FOOTER:case m.HEADER:case m.HGROUP:case m.DIALOG:case m.ADDRESS:case m.ARTICLE:case m.DETAILS:case m.SEARCH:case m.SECTION:case m.SUMMARY:case m.LISTING:case m.FIELDSET:case m.BLOCKQUOTE:case m.FIGCAPTION:{MR(e,t);break}case m.LI:{jR(e);break}case m.DD:case m.DT:{HR(e,t);break}case m.H1:case m.H2:case m.H3:case m.H4:case m.H5:case m.H6:{UR(e);break}case m.BR:{GR(e);break}case m.BODY:{$R(e,t);break}case m.HTML:{OR(e,t);break}case m.FORM:{FR(e);break}case m.APPLET:case m.OBJECT:case m.MARQUEE:{zR(e,t);break}case m.TEMPLATE:{Fo(e,t);break}default:Ly(e,t)}}function $y(e,t){e.tmplInsertionModeStack.length>0?Uy(e,t):yh(e,t)}function qR(e,t){var n;t.tagID===m.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function WR(e,t){e._err(t,W.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function tu(e,t){if(e.openElements.currentTagId!==void 0&&Dy.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=P.IN_TABLE_TEXT,t.type){case Be.CHARACTER:{My(e,t);break}case Be.WHITESPACE_CHARACTER:{Oy(e,t);break}}else Qi(e,t)}function VR(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Z.HTML),e.insertionMode=P.IN_CAPTION}function YR(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Z.HTML),e.insertionMode=P.IN_COLUMN_GROUP}function KR(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(H.COLGROUP,m.COLGROUP),e.insertionMode=P.IN_COLUMN_GROUP,bh(e,t)}function QR(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Z.HTML),e.insertionMode=P.IN_TABLE_BODY}function XR(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(H.TBODY,m.TBODY),e.insertionMode=P.IN_TABLE_BODY,ic(e,t)}function JR(e,t){e.openElements.hasInTableScope(m.TABLE)&&(e.openElements.popUntilTagNamePopped(m.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function ZR(e,t){Ry(t)?e._appendElement(t,Z.HTML):Qi(e,t),t.ackSelfClosing=!0}function e6(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Z.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Ta(e,t){switch(t.tagID){case m.TD:case m.TH:case m.TR:{XR(e,t);break}case m.STYLE:case m.SCRIPT:case m.TEMPLATE:{Qn(e,t);break}case m.COL:{KR(e,t);break}case m.FORM:{e6(e,t);break}case m.TABLE:{JR(e,t);break}case m.TBODY:case m.TFOOT:case m.THEAD:{QR(e,t);break}case m.INPUT:{ZR(e,t);break}case m.CAPTION:{VR(e,t);break}case m.COLGROUP:{YR(e,t);break}default:Qi(e,t)}}function Li(e,t){switch(t.tagID){case m.TABLE:{e.openElements.hasInTableScope(m.TABLE)&&(e.openElements.popUntilTagNamePopped(m.TABLE),e._resetInsertionMode());break}case m.TEMPLATE:{Fo(e,t);break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TBODY:case m.TD:case m.TFOOT:case m.TH:case m.THEAD:case m.TR:break;default:Qi(e,t)}}function Qi(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,oc(e,t),e.fosterParentingEnabled=n}function Oy(e,t){e.pendingCharacterTokens.push(t)}function My(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Wa(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Qi(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Fy=new Set([m.CAPTION,m.COL,m.COLGROUP,m.TBODY,m.TD,m.TFOOT,m.TH,m.THEAD,m.TR]);function t6(e,t){const n=t.tagID;Fy.has(n)?e.openElements.hasInTableScope(m.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=P.IN_TABLE,Ta(e,t)):cn(e,t)}function n6(e,t){const n=t.tagID;switch(n){case m.CAPTION:case m.TABLE:{e.openElements.hasInTableScope(m.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=P.IN_TABLE,n===m.TABLE&&Li(e,t));break}case m.BODY:case m.COL:case m.COLGROUP:case m.HTML:case m.TBODY:case m.TD:case m.TFOOT:case m.TH:case m.THEAD:case m.TR:break;default:ac(e,t)}}function bh(e,t){switch(t.tagID){case m.HTML:{cn(e,t);break}case m.COL:{e._appendElement(t,Z.HTML),t.ackSelfClosing=!0;break}case m.TEMPLATE:{Qn(e,t);break}default:xl(e,t)}}function r6(e,t){switch(t.tagID){case m.COLGROUP:{e.openElements.currentTagId===m.COLGROUP&&(e.openElements.pop(),e.insertionMode=P.IN_TABLE);break}case m.TEMPLATE:{Fo(e,t);break}case m.COL:break;default:xl(e,t)}}function xl(e,t){e.openElements.currentTagId===m.COLGROUP&&(e.openElements.pop(),e.insertionMode=P.IN_TABLE,e._processToken(t))}function ic(e,t){switch(t.tagID){case m.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Z.HTML),e.insertionMode=P.IN_ROW;break}case m.TH:case m.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(H.TR,m.TR),e.insertionMode=P.IN_ROW,sc(e,t);break}case m.CAPTION:case m.COL:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=P.IN_TABLE,Ta(e,t));break}default:Ta(e,t)}}function Zu(e,t){const n=t.tagID;switch(t.tagID){case m.TBODY:case m.TFOOT:case m.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=P.IN_TABLE);break}case m.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=P.IN_TABLE,Li(e,t));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TD:case m.TH:case m.TR:break;default:Li(e,t)}}function sc(e,t){switch(t.tagID){case m.TH:case m.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,Z.HTML),e.insertionMode=P.IN_CELL,e.activeFormattingElements.insertMarker();break}case m.CAPTION:case m.COL:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:case m.TR:{e.openElements.hasInTableScope(m.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=P.IN_TABLE_BODY,ic(e,t));break}default:Ta(e,t)}}function By(e,t){switch(t.tagID){case m.TR:{e.openElements.hasInTableScope(m.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=P.IN_TABLE_BODY);break}case m.TABLE:{e.openElements.hasInTableScope(m.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=P.IN_TABLE_BODY,Zu(e,t));break}case m.TBODY:case m.TFOOT:case m.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(m.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=P.IN_TABLE_BODY,Zu(e,t));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TD:case m.TH:break;default:Li(e,t)}}function o6(e,t){const n=t.tagID;Fy.has(n)?(e.openElements.hasInTableScope(m.TD)||e.openElements.hasInTableScope(m.TH))&&(e._closeTableCell(),sc(e,t)):cn(e,t)}function a6(e,t){const n=t.tagID;switch(n){case m.TD:case m.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=P.IN_ROW);break}case m.TABLE:case m.TBODY:case m.TFOOT:case m.THEAD:case m.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),By(e,t));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:break;default:ac(e,t)}}function jy(e,t){switch(t.tagID){case m.HTML:{cn(e,t);break}case m.OPTION:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e._insertElement(t,Z.HTML);break}case m.OPTGROUP:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e.openElements.currentTagId===m.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Z.HTML);break}case m.HR:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e.openElements.currentTagId===m.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Z.HTML),t.ackSelfClosing=!0;break}case m.INPUT:case m.KEYGEN:case m.TEXTAREA:case m.SELECT:{e.openElements.hasInSelectScope(m.SELECT)&&(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),t.tagID!==m.SELECT&&e._processStartTag(t));break}case m.SCRIPT:case m.TEMPLATE:{Qn(e,t);break}}}function Hy(e,t){switch(t.tagID){case m.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===m.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===m.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===m.OPTGROUP&&e.openElements.pop();break}case m.OPTION:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop();break}case m.SELECT:{e.openElements.hasInSelectScope(m.SELECT)&&(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode());break}case m.TEMPLATE:{Fo(e,t);break}}}function i6(e,t){const n=t.tagID;n===m.CAPTION||n===m.TABLE||n===m.TBODY||n===m.TFOOT||n===m.THEAD||n===m.TR||n===m.TD||n===m.TH?(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),e._processStartTag(t)):jy(e,t)}function s6(e,t){const n=t.tagID;n===m.CAPTION||n===m.TABLE||n===m.TBODY||n===m.TFOOT||n===m.THEAD||n===m.TR||n===m.TD||n===m.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Hy(e,t)}function l6(e,t){switch(t.tagID){case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:case m.NOFRAMES:case m.SCRIPT:case m.STYLE:case m.TEMPLATE:case m.TITLE:{Qn(e,t);break}case m.CAPTION:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:{e.tmplInsertionModeStack[0]=P.IN_TABLE,e.insertionMode=P.IN_TABLE,Ta(e,t);break}case m.COL:{e.tmplInsertionModeStack[0]=P.IN_COLUMN_GROUP,e.insertionMode=P.IN_COLUMN_GROUP,bh(e,t);break}case m.TR:{e.tmplInsertionModeStack[0]=P.IN_TABLE_BODY,e.insertionMode=P.IN_TABLE_BODY,ic(e,t);break}case m.TD:case m.TH:{e.tmplInsertionModeStack[0]=P.IN_ROW,e.insertionMode=P.IN_ROW,sc(e,t);break}default:e.tmplInsertionModeStack[0]=P.IN_BODY,e.insertionMode=P.IN_BODY,cn(e,t)}}function c6(e,t){t.tagID===m.TEMPLATE&&Fo(e,t)}function Uy(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(m.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):yh(e,t)}function u6(e,t){t.tagID===m.HTML?cn(e,t):Tl(e,t)}function zy(e,t){var n;if(t.tagID===m.HTML){if(e.fragmentContext||(e.insertionMode=P.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===m.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Tl(e,t)}function Tl(e,t){e.insertionMode=P.IN_BODY,oc(e,t)}function d6(e,t){switch(t.tagID){case m.HTML:{cn(e,t);break}case m.FRAMESET:{e._insertElement(t,Z.HTML);break}case m.FRAME:{e._appendElement(t,Z.HTML),t.ackSelfClosing=!0;break}case m.NOFRAMES:{Qn(e,t);break}}}function h6(e,t){t.tagID===m.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==m.FRAMESET&&(e.insertionMode=P.AFTER_FRAMESET))}function p6(e,t){switch(t.tagID){case m.HTML:{cn(e,t);break}case m.NOFRAMES:{Qn(e,t);break}}}function f6(e,t){t.tagID===m.HTML&&(e.insertionMode=P.AFTER_AFTER_FRAMESET)}function m6(e,t){t.tagID===m.HTML?cn(e,t):Fs(e,t)}function Fs(e,t){e.insertionMode=P.IN_BODY,oc(e,t)}function g6(e,t){switch(t.tagID){case m.HTML:{cn(e,t);break}case m.NOFRAMES:{Qn(e,t);break}}}function y6(e,t){t.chars=Ct,e._insertCharacters(t)}function b6(e,t){e._insertCharacters(t),e.framesetOk=!1}function Gy(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Z.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function E6(e,t){if(LP(t))Gy(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Z.MATHML?Iy(t):r===Z.SVG&&($P(t),_y(t)),mh(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function x6(e,t){if(t.tagID===m.P||t.tagID===m.BR){Gy(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Z.HTML){e._endTagOutsideForeignContent(t);break}const o=e.treeAdapter.getTagName(r);if(o.toLowerCase()===t.tagName){t.tagName=o,e.openElements.shortenToLength(n);break}}}H.AREA,H.BASE,H.BASEFONT,H.BGSOUND,H.BR,H.COL,H.EMBED,H.FRAME,H.HR,H.IMG,H.INPUT,H.KEYGEN,H.LINK,H.META,H.PARAM,H.SOURCE,H.TRACK,H.WBR;const bo={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Xf=/[#.]/g;function T6(e,t){const n=e||"",r={};let o=0,a,i;for(;o<n.length;){Xf.lastIndex=o;const s=Xf.exec(n),l=n.slice(o,s?s.index:n.length);l&&(a?a==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:i=l,o+=l.length),s&&(a=s[0],o++)}return{type:"element",tagName:i||t||"div",properties:r,children:[]}}function qy(e,t,n){const r=n?k6(n):void 0;function o(a,i,...s){let l;if(a==null){l={type:"root",children:[]};const c=i;s.unshift(c)}else{l=T6(a,t);const c=l.tagName.toLowerCase(),d=r?r.get(c):void 0;if(l.tagName=d||c,C6(i))s.unshift(i);else for(const[u,h]of Object.entries(i))v6(e,l.properties,u,h)}for(const c of s)ed(l.children,c);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return o}function C6(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const o=t[r];if(o&&typeof o=="object"){if(!Array.isArray(o))return!0;const a=o;for(const i of a)if(typeof i!="number"&&typeof i!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function v6(e,t,n,r){const o=qi(e,n);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?o.spaceSeparated?a=Mu(r):o.commaSeparated?a=Ou(r):o.commaOrSpaceSeparated?a=Mu(Ou(r).join(" ")):a=Jf(o,o.property,r):Array.isArray(r)?a=[...r]:a=o.property==="style"?S6(r):String(r);if(Array.isArray(a)){const i=[];for(const s of a)i.push(Jf(o,o.property,s));a=i}o.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[o.property]=a}}function ed(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)ed(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?ed(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Jf(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Ai(n)===Ai(t)))return!0}return n}function S6(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function k6(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const A6=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],I6=qy(ka,"div"),_6=qy(Rr,"g",A6);function D6(e){const t=String(e),n=[];return{toOffset:o,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let i=0;for(;;){let s=n[i];if(s===void 0){const l=Zf(t,n[i-1]);s=l===-1?t.length+1:l+1,n[i]=s}if(s>a)return{line:i+1,column:a-(i>0?n[i-1]:0)+1,offset:a};i++}}}function o(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const s=n[n.length-1],l=Zf(t,s),c=l===-1?t.length+1:l+1;if(s===c)break;n.push(c)}const i=(a.line>1?n[a.line-2]:0)+a.column-1;if(i<n[a.line-1])return i}}}function Zf(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
141
- `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Wy={}.hasOwnProperty,w6=Object.prototype;function N6(e,t){const n=t||{};return Eh({file:n.file||void 0,location:!1,schema:n.space==="svg"?Rr:ka,verbose:n.verbose||!1},e)}function Eh(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Bs(e,r,n),n}case"#document":case"#document-fragment":{const r=t,o="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Vy(e,t.childNodes),data:{quirksMode:o}},e.file&&e.location){const a=String(e.file),i=D6(a),s=i.toPoint(0),l=i.toPoint(a.length);n.position={start:s,end:l}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Bs(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Bs(e,r,n),n}default:return n=P6(e,t),n}}function Vy(e,t){let n=-1;const r=[];for(;++n<t.length;){const o=Eh(e,t[n]);r.push(o)}return r}function P6(e,t){const n=e.schema;e.schema=t.namespaceURI===bo.svg?Rr:ka;let r=-1;const o={};for(;++r<t.attrs.length;){const i=t.attrs[r],s=(i.prefix?i.prefix+":":"")+i.name;Wy.call(w6,s)||(o[s]=i.value)}const a=(e.schema.space==="svg"?_6:I6)(t.tagName,o,Vy(e,t.childNodes));if(Bs(e,t,a),a.tagName==="template"){const i=t,s=i.sourceCodeLocation,l=s&&s.startTag&&ca(s.startTag),c=s&&s.endTag&&ca(s.endTag),d=Eh(e,i.content);l&&c&&e.file&&(d.position={start:l.end,end:c.start}),a.content=d}return e.schema=n,a}function Bs(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=R6(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function R6(e,t,n){const r=ca(n);if(t.type==="element"){const o=t.children[t.children.length-1];if(r&&!n.endTag&&o&&o.position&&o.position.end&&(r.end=Object.assign({},o.position.end)),e.verbose){const a={};let i;if(n.attrs)for(i in n.attrs)Wy.call(n.attrs,i)&&(a[qi(e.schema,i).property]=ca(n.attrs[i]));n.startTag;const s=ca(n.startTag),l=n.endTag?ca(n.endTag):void 0,c={opening:s};l&&(c.closing=l),c.properties=a,t.data={position:c}}}return r}function ca(e){const t=em({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=em({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function em(e){return e.line&&e.column?e:void 0}let Xi=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};Xi.prototype.property={};Xi.prototype.normal={};Xi.prototype.space=null;function Yy(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new Xi(n,r,t)}function td(e){return e.toLowerCase()}let Gn=class{constructor(t,n){this.property=t,this.attribute=n}};Gn.prototype.space=null;Gn.prototype.boolean=!1;Gn.prototype.booleanish=!1;Gn.prototype.overloadedBoolean=!1;Gn.prototype.number=!1;Gn.prototype.commaSeparated=!1;Gn.prototype.spaceSeparated=!1;Gn.prototype.commaOrSpaceSeparated=!1;Gn.prototype.mustUseProperty=!1;Gn.prototype.defined=!1;let L6=0;const Le=Bo(),Ot=Bo(),Ky=Bo(),ce=Bo(),ht=Bo(),pa=Bo(),vn=Bo();function Bo(){return 2**++L6}const nd=Object.freeze(Object.defineProperty({__proto__:null,boolean:Le,booleanish:Ot,commaOrSpaceSeparated:vn,commaSeparated:pa,number:ce,overloadedBoolean:Ky,spaceSeparated:ht},Symbol.toStringTag,{value:"Module"})),nu=Object.keys(nd);let xh=class extends Gn{constructor(t,n,r,o){let a=-1;if(super(t,n),tm(this,"space",o),typeof r=="number")for(;++a<nu.length;){const i=nu[a];tm(this,nu[a],(r&nd[i])===nd[i])}}};xh.prototype.defined=!0;function tm(e,t,n){n&&(e[t]=n)}const $6={}.hasOwnProperty;function _a(e){const t={},n={};let r;for(r in e.properties)if($6.call(e.properties,r)){const o=e.properties[r],a=new xh(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[td(r)]=r,n[td(a.attribute)]=r}return new Xi(t,n,e.space)}const Qy=_a({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Xy=_a({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Jy(e,t){return t in e?e[t]:t}function Zy(e,t){return Jy(e,t.toLowerCase())}const eb=_a({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Zy,properties:{xmlns:null,xmlnsXLink:null}}),tb=_a({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Ot,ariaAutoComplete:null,ariaBusy:Ot,ariaChecked:Ot,ariaColCount:ce,ariaColIndex:ce,ariaColSpan:ce,ariaControls:ht,ariaCurrent:null,ariaDescribedBy:ht,ariaDetails:null,ariaDisabled:Ot,ariaDropEffect:ht,ariaErrorMessage:null,ariaExpanded:Ot,ariaFlowTo:ht,ariaGrabbed:Ot,ariaHasPopup:null,ariaHidden:Ot,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ht,ariaLevel:ce,ariaLive:null,ariaModal:Ot,ariaMultiLine:Ot,ariaMultiSelectable:Ot,ariaOrientation:null,ariaOwns:ht,ariaPlaceholder:null,ariaPosInSet:ce,ariaPressed:Ot,ariaReadOnly:Ot,ariaRelevant:null,ariaRequired:Ot,ariaRoleDescription:ht,ariaRowCount:ce,ariaRowIndex:ce,ariaRowSpan:ce,ariaSelected:Ot,ariaSetSize:ce,ariaSort:null,ariaValueMax:ce,ariaValueMin:ce,ariaValueNow:ce,ariaValueText:null,role:null}}),O6=_a({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Zy,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:pa,acceptCharset:ht,accessKey:ht,action:null,allow:null,allowFullScreen:Le,allowPaymentRequest:Le,allowUserMedia:Le,alt:null,as:null,async:Le,autoCapitalize:null,autoComplete:ht,autoFocus:Le,autoPlay:Le,blocking:ht,capture:null,charSet:null,checked:Le,cite:null,className:ht,cols:ce,colSpan:null,content:null,contentEditable:Ot,controls:Le,controlsList:ht,coords:ce|pa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Le,defer:Le,dir:null,dirName:null,disabled:Le,download:Ky,draggable:Ot,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Le,formTarget:null,headers:ht,height:ce,hidden:Le,high:ce,href:null,hrefLang:null,htmlFor:ht,httpEquiv:ht,id:null,imageSizes:null,imageSrcSet:null,inert:Le,inputMode:null,integrity:null,is:null,isMap:Le,itemId:null,itemProp:ht,itemRef:ht,itemScope:Le,itemType:ht,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Le,low:ce,manifest:null,max:null,maxLength:ce,media:null,method:null,min:null,minLength:ce,multiple:Le,muted:Le,name:null,nonce:null,noModule:Le,noValidate:Le,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Le,optimum:ce,pattern:null,ping:ht,placeholder:null,playsInline:Le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Le,referrerPolicy:null,rel:ht,required:Le,reversed:Le,rows:ce,rowSpan:ce,sandbox:ht,scope:null,scoped:Le,seamless:Le,selected:Le,shadowRootClonable:Le,shadowRootDelegatesFocus:Le,shadowRootMode:null,shape:null,size:ce,sizes:null,slot:null,span:ce,spellCheck:Ot,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ce,step:null,style:null,tabIndex:ce,target:null,title:null,translate:null,type:null,typeMustMatch:Le,useMap:null,value:Ot,width:ce,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ht,axis:null,background:null,bgColor:null,border:ce,borderColor:null,bottomMargin:ce,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Le,declare:Le,event:null,face:null,frame:null,frameBorder:null,hSpace:ce,leftMargin:ce,link:null,longDesc:null,lowSrc:null,marginHeight:ce,marginWidth:ce,noResize:Le,noHref:Le,noShade:Le,noWrap:Le,object:null,profile:null,prompt:null,rev:null,rightMargin:ce,rules:null,scheme:null,scrolling:Ot,standby:null,summary:null,text:null,topMargin:ce,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ce,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Le,disableRemotePlayback:Le,prefix:null,property:null,results:ce,security:null,unselectable:null}}),M6=_a({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Jy,properties:{about:vn,accentHeight:ce,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ce,amplitude:ce,arabicForm:null,ascent:ce,attributeName:null,attributeType:null,azimuth:ce,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ce,by:null,calcMode:null,capHeight:ce,className:ht,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ce,diffuseConstant:ce,direction:null,display:null,dur:null,divisor:ce,dominantBaseline:null,download:Le,dx:null,dy:null,edgeMode:null,editable:null,elevation:ce,enableBackground:null,end:null,event:null,exponent:ce,externalResourcesRequired:null,fill:null,fillOpacity:ce,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:pa,g2:pa,glyphName:pa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ce,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ce,horizOriginX:ce,horizOriginY:ce,id:null,ideographic:ce,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ce,k:ce,k1:ce,k2:ce,k3:ce,k4:ce,kernelMatrix:vn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ce,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ce,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ce,overlineThickness:ce,paintOrder:null,panose1:null,path:null,pathLength:ce,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ht,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ce,pointsAtY:ce,pointsAtZ:ce,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:vn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:vn,rev:vn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:vn,requiredFeatures:vn,requiredFonts:vn,requiredFormats:vn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ce,specularExponent:ce,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ce,strikethroughThickness:ce,string:null,stroke:null,strokeDashArray:vn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ce,strokeOpacity:ce,strokeWidth:null,style:null,surfaceScale:ce,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:vn,tabIndex:ce,tableValues:null,target:null,targetX:ce,targetY:ce,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:vn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ce,underlineThickness:ce,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ce,values:null,vAlphabetic:ce,vMathematical:ce,vectorEffect:null,vHanging:ce,vIdeographic:ce,version:null,vertAdvY:ce,vertOriginX:ce,vertOriginY:ce,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ce,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),F6=Yy([Xy,Qy,eb,tb,O6],"html"),nb=Yy([Xy,Qy,eb,tb,M6],"svg"),B6=/^data[-\w.:]+$/i,nm=/-[a-z]/g,j6=/[A-Z]/g;function H6(e,t){const n=td(t);let r=t,o=Gn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&B6.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(nm,z6);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!nm.test(a)){let i=a.replace(j6,U6);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}o=xh}return new o(r,t)}function U6(e){return"-"+e.toLowerCase()}function z6(e){return e.charAt(1).toUpperCase()}const G6={},q6={}.hasOwnProperty,rb=Ul("type",{handlers:{root:V6,element:J6,text:Q6,comment:X6,doctype:K6}});function W6(e,t){const n=(t||G6).space;return rb(e,n==="svg"?nb:F6)}function V6(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Th(e.children,n,t),Da(e,n),n}function Y6(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Th(e.children,n,t),Da(e,n),n}function K6(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Da(e,t),t}function Q6(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Da(e,t),t}function X6(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Da(e,t),t}function J6(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=nb);const o=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&q6.call(e.properties,a)){const l=Z6(r,a,e.properties[a]);l&&o.push(l)}}const i=r.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:o,namespaceURI:bo[i],childNodes:[],parentNode:null};return s.childNodes=Th(e.children,s,r),Da(e,s),e.tagName==="template"&&e.content&&(s.content=Y6(e.content,r)),s}function Z6(e,t,n){const r=H6(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?zl(n):Gl(n));const o={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=o.name.indexOf(":");a<0?o.prefix="":(o.name=o.name.slice(a+1),o.prefix=r.attribute.slice(0,a)),o.namespace=bo[r.space]}return o}function Th(e,t,n){let r=-1;const o=[];if(e)for(;++r<e.length;){const a=rb(e[r],n);a.parentNode=t,o.push(a)}return o}function Da(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const e4=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,t4=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),rm={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function ob(e,t){const n=d4(e),r=Ul("type",{handlers:{root:n4,element:r4,text:o4,comment:ib,doctype:a4,raw:s4},unknown:l4}),o={parser:n?new Yf(rm):Yf.getFragmentParser(void 0,rm),handle(s){r(s,o)},stitches:!1,options:t||{}};r(e,o),wa(o,fr());const a=n?o.parser.document:o.parser.getFragment(),i=N6(a,{file:o.options.file});return o.stitches&&xn(i,"comment",function(s,l,c){const d=s;if(d.value.stitch&&c&&l!==void 0){const u=c.children;return u[l]=d.value.stitch,l}}),i.type==="root"&&i.children.length===1&&i.children[0].type===e.type?i.children[0]:i}function ab(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function n4(e,t){ab(e.children,t)}function r4(e,t){c4(e,t),ab(e.children,t),u4(e,t)}function o4(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Be.CHARACTER,chars:e.value,location:Ji(e)};wa(t,fr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function a4(e,t){const n={type:Be.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Ji(e)};wa(t,fr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function i4(e,t){t.stitches=!0;const n=h4(e);if("children"in e&&"children"in n){const r=ob({type:"root",children:e.children},t.options);n.children=r.children}ib({type:"comment",value:{stitch:n}},t)}function ib(e,t){const n=e.value,r={type:Be.COMMENT,data:n,location:Ji(e)};wa(t,fr(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function s4(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,sb(t,fr(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(e4,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function l4(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))i4(n,t);else{let r="";throw t4.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function wa(e,t){sb(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Nt.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function sb(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function c4(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Nt.PLAINTEXT)return;wa(t,fr(e));const r=t.parser.openElements.current;let o="namespaceURI"in r?r.namespaceURI:bo.html;o===bo.html&&n==="svg"&&(o=bo.svg);const a=W6({...e,children:[]},{space:o===bo.svg?"svg":"html"}),i={type:Be.START_TAG,tagName:n,tagID:Ia(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:Ji(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function u4(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&h0.includes(n)||t.parser.tokenizer.state===Nt.PLAINTEXT)return;wa(t,rc(e));const r={type:Be.END_TAG,tagName:n,tagID:Ia(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Ji(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Nt.RCDATA||t.parser.tokenizer.state===Nt.RAWTEXT||t.parser.tokenizer.state===Nt.SCRIPT_DATA)&&(t.parser.tokenizer.state=Nt.DATA)}function d4(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Ji(e){const t=fr(e)||{line:void 0,column:void 0,offset:void 0},n=rc(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function h4(e){return"children"in e?wo({...e,children:[]}):wo(e)}function p4(e){return function(t,n){return ob(t,{...e,file:n})}}var f4=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],m4=e=>e;const g4=O.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:o,style:a,disableCopy:i=!1,skipHtml:s=!0,onScroll:l,onMouseOver:c,pluginsFilter:d,wrapperElement:u={},warpperElement:h={},urlTransform:p}=e,g=rn(e,f4),b=O.useRef(null);O.useImperativeHandle(t,()=>ne({},e,{mdp:b}),[b,e]);var x=(n||"")+" "+(r||"");qI(b);var E=[...g.rehypePlugins||[]],v={allowElement:(N,S,M)=>g.allowElement?g.allowElement(N,S,M):/^[A-Za-z0-9]+$/.test(N.tagName)};s||E.push(p4);var C=[HI,...g.remarkPlugins||[],lw],I=ne({},h,u);return f.jsx("div",ne({ref:b,onScroll:l,onMouseOver:c},I,{className:x,style:a,children:f.jsx(q3,ne({},v,g,{skipHtml:!s,urlTransform:p||m4,rehypePlugins:d?d("rehype",E):E,remarkPlugins:d?d("remark",C):C,children:o||""}))}))});var js={},rd={};function y4(e,t){for(var n=t,r=0;r<e.length;r++){var o=r===e.length-1,a=e.charAt(r),i=n[a]||(n[a]={chars:{}});o&&(i.self=e),n=i.chars}}function om(e){if(e.length===0)return js;for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];y4(o,t)}return t}function b4(e){if(e.length===0)return rd;for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];t[o]=!0}return t}var vs={},am={type:"String",optional:!0};function E4(e){var t={type:"NoArgument",optional:!1};function n(i){if(t.type&&t.type!==i&&t.type!=="NoArgument")throw new Error('Conflicting pseudo-class argument type: "'.concat(t.type,'" vs "').concat(i,'".'));t.type=i}for(var r=0,o=e;r<o.length;r++){var a=o[r];a==="NoArgument"&&(t.optional=!0),a==="Formula"&&n("Formula"),a==="FormulaOfSelector"&&(n("Formula"),t.ofSelector=!0),a==="String"&&n("String"),a==="Selector"&&n("Selector")}return t}function x4(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var o=r[n],a=e[o];if(a)for(var i=0,s=a;i<s.length;i++){var l=s[i];(t[l]||(t[l]=[])).push(o)}}return t}function im(e){for(var t=x4(e),n={},r=0,o=Object.keys(t);r<o.length;r++){var a=o[r],i=t[a];i&&(n[a]=E4(i))}return n}var Ca=function(){return Ca=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ca.apply(this,arguments)},T4={},od={wildcard:!0};function C4(e){return e?typeof e=="boolean"?od:e:T4}function v4(e,t){return function(n,r){return t(e(n),e(r))}}function S4(e){return function(t,n){var r=e(t,n);if(!r)throw new Error("Syntax definition cannot be null or undefined.");return r}}function sm(e,t){return function(n,r){return r===!0?e:t(n===!0?e:n,r)}}function Jo(e){return function(t,n){if(!n||!t)return n;if(typeof n!="object"||n===null)throw new Error("Unexpected syntax definition extension type: ".concat(n,"."));for(var r=Ca({},t),o=0,a=Object.entries(n);o<a.length;o++){var i=a[o],s=i[0],l=i[1];if(s!=="latest"){var c=e[s];r[s]=c(t[s],l)}}return r}}function Tr(e,t){return t!==void 0?t:e}function Ss(e,t){return t?e?e.concat(t):t:e}function lm(e,t){if(!t)return e;if(!e)return t;for(var n=Ca({},e),r=0,o=Object.entries(t);r<o.length;r++){var a=o[r],i=a[0],s=a[1];if(!s){delete n[i];continue}var l=e[i];if(!l){n[i]=s;continue}n[i]=l.concat(s)}return n}var ko=S4(Jo({baseSyntax:Tr,modules:Ss,tag:sm(od,Jo({wildcard:Tr})),ids:Tr,classNames:Tr,namespace:sm(od,Jo({wildcard:Tr})),combinators:Ss,attributes:Jo({operators:Ss,caseSensitivityModifiers:Ss,unknownCaseSensitivityModifiers:Tr}),pseudoClasses:Jo({unknown:Tr,definitions:lm}),pseudoElements:Jo({unknown:Tr,notation:Tr,definitions:v4(function(e){return Array.isArray(e)?{NoArgument:e}:e},lm)})})),lb={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},cb=ko(lb,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),ad=ko(cb,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),ub=ko(ad,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid","playing","paused","autofill","modal","fullscreen","picture-in-picture","defined","loading","popover-open"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has","state"]}},pseudoElements:{definitions:{NoArgument:["marker"]}}}),Cl={"css-position-1":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute"]}}},"css-position-2":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute","fixed"]}}},"css-position-3":{latest:!1,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static"]}}},"css-position-4":{latest:!0,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static","initial"]}}},"css-scoping-1":{latest:!0,pseudoClasses:{definitions:{NoArgument:["host","host-context"],Selector:["host","host-context"]}},pseudoElements:{definitions:{Selector:["slotted"]}}},"css-pseudo-4":{latest:!0,pseudoElements:{definitions:{NoArgument:["marker","selection","target-text","search-text","spelling-error","grammar-error","backdrop","file-selector-button","prefix","postfix","placeholder","details-content"],String:["highlight"]}}},"css-shadow-parts-1":{latest:!0,pseudoElements:{definitions:{String:["part"]}}}},db=Ca(Ca({},ub),{modules:Object.entries(Cl).filter(function(e){var t=e[1].latest;return t}).map(function(e){var t=e[0];return t})}),k4=ko(db,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),id={css1:lb,css2:cb,css3:ad,"selectors-3":ad,"selectors-4":ub,latest:db,progressive:k4};function A4(){for(var e={pseudoClasses:{},pseudoElements:{}},t=["css1","css2","css3","selectors-3","selectors-4"],n=0,r=t;n<r.length;n++){var o=r[n],a=id[o];if(a.pseudoClasses&&typeof a.pseudoClasses=="object"){var i=a.pseudoClasses.definitions;if(i)for(var s=0,l=Object.entries(i);s<l.length;s++)for(var c=l[s],d=c[1],u=0,h=d;u<h.length;u++){var p=h[u];e.pseudoClasses[p]||(e.pseudoClasses[p]=[]),e.pseudoClasses[p].includes(o)||e.pseudoClasses[p].push(o)}}if(a.pseudoElements&&typeof a.pseudoElements=="object"){var i=a.pseudoElements.definitions;if(i)if(Array.isArray(i))for(var g=0,b=i;g<b.length;g++){var x=b[g];e.pseudoElements[x]||(e.pseudoElements[x]=[]),e.pseudoElements[x].includes(o)||e.pseudoElements[x].push(o)}else for(var E=0,v=Object.values(i);E<v.length;E++)for(var d=v[E],C=0,I=d;C<I.length;C++){var N=I[C];e.pseudoElements[N]||(e.pseudoElements[N]=[]),e.pseudoElements[N].includes(o)||e.pseudoElements[N].push(o)}}}for(var S=0,M=Object.entries(Cl);S<M.length;S++){var q=M[S],B=q[0],y=q[1];if(y.pseudoClasses&&typeof y.pseudoClasses=="object"){var i=y.pseudoClasses.definitions;if(i)for(var R=0,F=Object.values(i);R<F.length;R++)for(var d=F[R],$=0,U=d;$<U.length;$++){var Y=U[$];e.pseudoClasses[Y]||(e.pseudoClasses[Y]=[]),e.pseudoClasses[Y].includes(B)||e.pseudoClasses[Y].push(B)}}if(y.pseudoElements&&typeof y.pseudoElements=="object"){var i=y.pseudoElements.definitions;if(i)if(Array.isArray(i))for(var re=0,fe=i;re<fe.length;re++){var ue=fe[re];e.pseudoElements[ue]||(e.pseudoElements[ue]=[]),e.pseudoElements[ue].includes(B)||e.pseudoElements[ue].push(B)}else for(var X=0,A=Object.values(i);X<A.length;X++)for(var d=A[X],de=0,ee=d;de<ee.length;de++){var k=ee[de];e.pseudoElements[k]||(e.pseudoElements[k]=[]),e.pseudoElements[k].includes(B)||e.pseudoElements[k].push(B)}}}return e}var cm=A4();function Va(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function um(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function Ya(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var I4={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},_4={'"':!0,"'":!0},ru={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},D4=6,ou="css-selector-parser parse error: ";function w4(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,o=e.strict,a=o===void 0?!0:o,i=e.modules,s=typeof n=="object"?n:id[n];if(s.baseSyntax&&(s=ko(id[s.baseSyntax],s)),s.modules&&s.modules.length>0)for(var l=0,c=s.modules;l<c.length;l++){var d=c[l],u=Cl[d];u&&(s=ko(u,s))}if(i&&i.length>0)for(var h=0,p=i;h<p.length;h++){var g=p[h],u=Cl[g];u&&(s=ko(u,s))}var b=s.tag?[!0,!!C4(s.tag).wildcard]:[!1,!1],x=b[0],E=b[1],v=!!s.ids,C=!!s.classNames,I=!!s.namespace,N=s.namespace&&(s.namespace===!0||s.namespace.wildcard===!0);if(I&&!x)throw new Error("".concat(ou,"Namespaces cannot be enabled while tags are disabled."));var S=!!r,M=s.combinators?om(s.combinators):js,q=s.attributes?[!0,s.attributes.operators?om(s.attributes.operators):js,s.attributes.caseSensitivityModifiers?b4(s.attributes.caseSensitivityModifiers):rd,s.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,js,rd,!1],B=q[0],y=q[1],R=q[2],F=q[3],$=F||Object.keys(R).length>0,U=s.pseudoClasses?[!0,s.pseudoClasses.definitions?im(s.pseudoClasses.definitions):vs,s.pseudoClasses.unknown==="accept"]:[!1,vs,!1],Y=U[0],re=U[1],fe=U[2],ue=s.pseudoElements?[!0,s.pseudoElements.notation==="singleColon"||s.pseudoElements.notation==="both",!s.pseudoElements.notation||s.pseudoElements.notation==="doubleColon"||s.pseudoElements.notation==="both",s.pseudoElements.definitions?im(Array.isArray(s.pseudoElements.definitions)?{NoArgument:s.pseudoElements.definitions}:s.pseudoElements.definitions):vs,s.pseudoElements.unknown==="accept"]:[!1,!1,!1,vs,!1],X=ue[0],A=ue[1],de=ue[2],ee=ue[3],k=ue[4],J="",Ee=J.length,he=0,ye="",me=function(ie){return ye===ie},Fe=function(){return me("*")||Va(ye)},Oe=function(ie){he=ie,ye=J.charAt(he)},Te=function(){he++,ye=J.charAt(he)},gt=function(){var ie=ye;return he++,ye=J.charAt(he),ie};function Ze(ie){var te=Math.min(Ee-1,he),Me=new Error("".concat(ou).concat(ie," Pos: ").concat(te,"."));throw Me.position=te,Me.name="ParserError",Me}function be(ie,te){if(!ie)return Ze(te)}var Xt=function(){be(he<Ee,"Unexpected end of input.")},vt=function(){return he>=Ee},De=function(ie){be(he<Ee,'Expected "'.concat(ie,'" but end of input reached.')),be(ye===ie,'Expected "'.concat(ie,'" but "').concat(ye,'" found.')),he++,ye=J.charAt(he)};function wt(ie){var te=yt(ie,he);if(te)return he+=te.length,ye=J.charAt(he),te}function yt(ie,te){var Me=J.charAt(te),Pe=ie[Me];if(Pe){var zt=yt(Pe.chars,te+1);if(zt)return zt;if(Pe.self)return Pe.self}}function bt(){for(var ie=gt(),te=1;Ya(ye)&&te<D4;)ie+=gt(),te++;return Or(),String.fromCharCode(parseInt(ie,16))}function ke(ie){var te="";for(De(ie);he<Ee;){if(me(ie))return Te(),te;me("\\")?(Te(),me(ie)?(te+=ie,Te()):ye===`
140
+ `,c="/",d="*",u="",h="comment",p="declaration";Zc=function(b,x){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];x=x||{};var E=1,v=1;function C($){var U=$.match(t);U&&(E+=U.length);var Y=$.lastIndexOf(l);v=~Y?$.length-Y:v+$.length}function I(){var $={line:E,column:v};return function(U){return U.position=new w($),q(),U}}function w($){this.start=$,this.end={line:E,column:v},this.source=x.source}w.prototype.content=b;function S($){var U=new Error(x.source+":"+E+":"+v+": "+$);if(U.reason=$,U.filename=x.source,U.line=E,U.column=v,U.source=b,!x.silent)throw U}function M($){var U=$.exec(b);if(U){var Y=U[0];return C(Y),b=b.slice(Y.length),U}}function q(){M(n)}function B($){var U;for($=$||[];U=y();)U!==!1&&$.push(U);return $}function y(){var $=I();if(!(c!=b.charAt(0)||d!=b.charAt(1))){for(var U=2;u!=b.charAt(U)&&(d!=b.charAt(U)||c!=b.charAt(U+1));)++U;if(U+=2,u===b.charAt(U-1))return S("End of comment missing");var Y=b.slice(2,U-2);return v+=2,C(Y),b=b.slice(U),v+=2,$({type:h,comment:Y})}}function R(){var $=I(),U=M(r);if(U){if(y(),!M(o))return S("property missing ':'");var Y=M(a),re=$({type:p,property:g(U[0].replace(e,u)),value:Y?g(Y[0].replace(e,u)):u});return M(i),re}}function F(){var $=[];B($);for(var U;U=R();)U!==!1&&($.push(U),B($));return $}return q(),F()};function g(b){return b?b.replace(s,u):u}return Zc}var Rf;function p3(){if(Rf)return Xo;Rf=1;var e=Xo&&Xo.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.default=n;var t=e(h3());function n(r,o){var a=null;if(!r||typeof r!="string")return a;var i=(0,t.default)(r),s=typeof o=="function";return i.forEach(function(l){if(l.type==="declaration"){var c=l.property,d=l.value;s?o(c,d,l):d&&(a=a||{},a[c]=d)}}),a}return Xo}var za={},Lf;function f3(){if(Lf)return za;Lf=1,Object.defineProperty(za,"__esModule",{value:!0}),za.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,a=function(c){return!c||n.test(c)||e.test(c)},i=function(c,d){return d.toUpperCase()},s=function(c,d){return"".concat(d,"-")},l=function(c,d){return d===void 0&&(d={}),a(c)?c:(c=c.toLowerCase(),d.reactCompat?c=c.replace(o,s):c=c.replace(r,s),c.replace(t,i))};return za.camelCase=l,za}var Ga,$f;function m3(){if($f)return Ga;$f=1;var e=Ga&&Ga.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(p3()),n=f3();function r(o,a){var i={};return!o||typeof o!="string"||(0,t.default)(o,function(s,l){s&&l&&(i[(0,n.camelCase)(s,a)]=l)}),i}return r.default=r,Ga=r,Ga}var g3=m3();const y3=Kl(g3),b3=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,E3=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,x3={};function Of(e,t){return(x3.jsx?E3:b3).test(e)}const T3={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},hh={}.hasOwnProperty,C3=new Map,v3=/[A-Z]/g,S3=new Set(["table","tbody","thead","tfoot","tr"]),k3=new Set(["td","th"]),fy="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function A3(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=L3(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=R3(n,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Rr:ka,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=my(o,e,void 0);return a&&typeof a!="string"?a:o.create(e,o.Fragment,{children:a||void 0},void 0)}function my(e,t,n){if(t.type==="element")return I3(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return _3(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return w3(e,t,n);if(t.type==="mdxjsEsm")return D3(e,t);if(t.type==="root")return N3(e,t,n);if(t.type==="text")return P3(e,t)}function I3(e,t,n){const r=e.schema;let o=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=Rr,e.schema=o),e.ancestors.push(t);const a=yy(e,t.tagName,!1),i=$3(e,t);let s=fh(e,t);return S3.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!Gi(l):!0})),gy(e,i,a,t),ph(i,s),e.ancestors.pop(),e.schema=r,e.create(t,a,i,n)}function _3(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Ri(e,t.position)}function D3(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ri(e,t.position)}function w3(e,t,n){const r=e.schema;let o=r;t.name==="svg"&&r.space==="html"&&(o=Rr,e.schema=o),e.ancestors.push(t);const a=t.name===null?e.Fragment:yy(e,t.name,!0),i=O3(e,t),s=fh(e,t);return gy(e,i,a,t),ph(i,s),e.ancestors.pop(),e.schema=r,e.create(t,a,i,n)}function N3(e,t,n){const r={};return ph(r,fh(e,t)),e.create(t,e.Fragment,r,n)}function P3(e,t){return t.value}function gy(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ph(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function R3(e,t,n){return r;function r(o,a,i,s){const l=Array.isArray(i.children)?n:t;return s?l(a,i,s):l(a,i)}}function L3(e,t){return n;function n(r,o,a,i){const s=Array.isArray(a.children),l=fr(r);return t(o,a,i,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function $3(e,t){const n={};let r,o;for(o in t.properties)if(o!=="children"&&hh.call(t.properties,o)){const a=M3(e,o,t.properties[o]);if(a){const[i,s]=a;e.tableCellAlignToStyle&&i==="align"&&typeof s=="string"&&k3.has(t.tagName)?r=s:n[i]=s}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function O3(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const i=a.properties[0];i.type,Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else Ri(e,t.position);else{const o=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const i=r.value.data.estree.body[0];i.type,a=e.evaluater.evaluateExpression(i.expression)}else Ri(e,t.position);else a=r.value===null?!0:r.value;n[o]=a}return n}function fh(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:C3;for(;++r<t.children.length;){const a=t.children[r];let i;if(e.passKeys){const l=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(l){const c=o.get(l)||0;i=l+"-"+c,o.set(l,c+1)}}const s=my(e,a,i);s!==void 0&&n.push(s)}return n}function M3(e,t,n){const r=qi(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?zl(n):Gl(n)),r.property==="style"){let o=typeof n=="object"?n:F3(e,String(n));return e.stylePropertyNameCase==="css"&&(o=B3(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?T3[r.property]||r.property:r.attribute,n]}}function F3(e,t){try{return y3(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,o=new ln("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=fy+"#cannot-parse-style-attribute",o}}function yy(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let a=-1,i;for(;++a<o.length;){const s=Of(o[a])?{type:"Identifier",name:o[a]}:{type:"Literal",value:o[a]};i=i?{type:"MemberExpression",object:i,property:s,computed:!!(a&&s.type==="Literal"),optional:!1}:s}r=i}else r=Of(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return hh.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ri(e)}function Ri(e,t){const n=new ln("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=fy+"#cannot-handle-mdx-estrees-without-createevaluater",n}function B3(e){const t={};let n;for(n in e)hh.call(e,n)&&(t[j3(n)]=e[n]);return t}function j3(e){let t=e.replace(v3,H3);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function H3(e){return"-"+e.toLowerCase()}const eu={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},U3="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Mf=[],Ff={allowDangerousHtml:!0},z3=/^(https?|ircs?|mailto|xmpp)$/i,G3=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function q3(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,a=e.components,i=e.disallowedElements,s=e.rehypePlugins||Mf,l=e.remarkPlugins||Mf,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ff}:Ff,d=e.skipHtml,u=e.unwrapDisallowed,h=e.urlTransform||W3,p=Iw().use(S5).use(l).use(d3,c).use(s),g=new Y1;typeof r=="string"&&(g.value=r);for(const v of G3)Object.hasOwn(e,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+U3+v.id,void 0);const b=p.parse(g);let x=p.runSync(b,g);return o&&(x={type:"element",tagName:"div",properties:{className:o},children:x.type==="root"?x.children:[x]}),xn(x,E),A3(x,{Fragment:f.Fragment,components:a,ignoreInvalidStyle:!0,jsx:f.jsx,jsxs:f.jsxs,passKeys:!0,passNode:!0});function E(v,C,I){if(v.type==="raw"&&I&&typeof C=="number")return d?I.children.splice(C,1):I.children[C]={type:"text",value:v.value},C;if(v.type==="element"){let w;for(w in eu)if(Object.hasOwn(eu,w)&&Object.hasOwn(v.properties,w)){const S=v.properties[w],M=eu[w];(M===null||M.includes(v.tagName))&&(v.properties[w]=h(String(S||""),w,v))}}if(v.type==="element"){let w=t?!t.includes(v.tagName):i?i.includes(v.tagName):!1;if(!w&&n&&typeof C=="number"&&(w=!n(v,C,I)),w&&I&&typeof C=="number")return u&&v.children?I.children.splice(C,1,...v.children):I.children.splice(C,1),C}}}function W3(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||n!==-1&&t>n||r!==-1&&t>r||z3.test(e.slice(0,t))?e:""}const V3=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ct="�";var _;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(_||(_={}));const yn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function by(e){return e>=55296&&e<=57343}function Y3(e){return e>=56320&&e<=57343}function K3(e,t){return(e-55296)*1024+9216+t}function Ey(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function xy(e){return e>=64976&&e<=65007||V3.has(e)}var W;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(W||(W={}));const Q3=65536;let X3=class{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Q3,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:o,offset:a}=this,i=o+n,s=a+n;return{code:t,startLine:r,endLine:r,startCol:i,endCol:i,startOffset:s,endOffset:s}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(Y3(n))return this.pos++,this._addGap(),K3(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,_.EOF;return this._err(W.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,_.EOF;const r=this.html.charCodeAt(n);return r===_.CARRIAGE_RETURN?_.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,_.EOF;let t=this.html.charCodeAt(this.pos);return t===_.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,_.LINE_FEED):t===_.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,by(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===_.LINE_FEED||t===_.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Ey(t)?this._err(W.controlCharacterInInputStream):xy(t)&&this._err(W.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}};var Be;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Be||(Be={}));function Ty(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const J3=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function Z3(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=J3.get(e))!==null&&t!==void 0?t:e}var Vt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Vt||(Vt={}));const eP=32;var qr;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(qr||(qr={}));function Qu(e){return e>=Vt.ZERO&&e<=Vt.NINE}function tP(e){return e>=Vt.UPPER_A&&e<=Vt.UPPER_F||e>=Vt.LOWER_A&&e<=Vt.LOWER_F}function nP(e){return e>=Vt.UPPER_A&&e<=Vt.UPPER_Z||e>=Vt.LOWER_A&&e<=Vt.LOWER_Z||Qu(e)}function rP(e){return e===Vt.EQUALS||nP(e)}var Gt;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Gt||(Gt={}));var kr;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(kr||(kr={}));let oP=class{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Gt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=kr.Strict}startEntity(t){this.decodeMode=t,this.state=Gt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Gt.EntityStart:return t.charCodeAt(n)===Vt.NUM?(this.state=Gt.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Gt.NamedEntity,this.stateNamedEntity(t,n));case Gt.NumericStart:return this.stateNumericStart(t,n);case Gt.NumericDecimal:return this.stateNumericDecimal(t,n);case Gt.NumericHex:return this.stateNumericHex(t,n);case Gt.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|eP)===Vt.LOWER_X?(this.state=Gt.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Gt.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,o){if(n!==r){const a=r-n;this.result=this.result*Math.pow(o,a)+Number.parseInt(t.substr(n,a),o),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(Qu(o)||tP(o))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(Qu(o))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Vt.SEMI)this.consumed+=1;else if(this.decodeMode===kr.Strict)return 0;return this.emitCodePoint(Z3(this.result),this.consumed),this.errors&&(t!==Vt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let o=r[this.treeIndex],a=(o&qr.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const i=t.charCodeAt(n);if(this.treeIndex=aP(r,o,this.treeIndex+Math.max(1,a),i),this.treeIndex<0)return this.result===0||this.decodeMode===kr.Attribute&&(a===0||rP(i))?0:this.emitNotTerminatedNamedEntity();if(o=r[this.treeIndex],a=(o&qr.VALUE_LENGTH)>>14,a!==0){if(i===Vt.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==kr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,o=(r[n]&qr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,o,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[t]&~qr.VALUE_LENGTH:o[t+1],r),n===3&&this.emitCodePoint(o[t+2],r),r}end(){var t;switch(this.state){case Gt.NamedEntity:return this.result!==0&&(this.decodeMode!==kr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Gt.NumericDecimal:return this.emitNumericEntity(0,2);case Gt.NumericHex:return this.emitNumericEntity(0,3);case Gt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Gt.EntityStart:return 0}}};function aP(e,t,n,r){const o=(t&qr.BRANCH_LENGTH)>>7,a=t&qr.JUMP_TABLE;if(o===0)return a!==0&&r===a?n:-1;if(a){const l=r-a;return l<0||l>=o?-1:e[n+l]-1}let i=n,s=i+o-1;for(;i<=s;){const l=i+s>>>1,c=e[l];if(c<r)i=l+1;else if(c>r)s=l-1;else return e[l+o]}return-1}var Z;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Z||(Z={}));var So;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(So||(So={}));var Mn;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Mn||(Mn={}));var H;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(H||(H={}));var m;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(m||(m={}));const iP=new Map([[H.A,m.A],[H.ADDRESS,m.ADDRESS],[H.ANNOTATION_XML,m.ANNOTATION_XML],[H.APPLET,m.APPLET],[H.AREA,m.AREA],[H.ARTICLE,m.ARTICLE],[H.ASIDE,m.ASIDE],[H.B,m.B],[H.BASE,m.BASE],[H.BASEFONT,m.BASEFONT],[H.BGSOUND,m.BGSOUND],[H.BIG,m.BIG],[H.BLOCKQUOTE,m.BLOCKQUOTE],[H.BODY,m.BODY],[H.BR,m.BR],[H.BUTTON,m.BUTTON],[H.CAPTION,m.CAPTION],[H.CENTER,m.CENTER],[H.CODE,m.CODE],[H.COL,m.COL],[H.COLGROUP,m.COLGROUP],[H.DD,m.DD],[H.DESC,m.DESC],[H.DETAILS,m.DETAILS],[H.DIALOG,m.DIALOG],[H.DIR,m.DIR],[H.DIV,m.DIV],[H.DL,m.DL],[H.DT,m.DT],[H.EM,m.EM],[H.EMBED,m.EMBED],[H.FIELDSET,m.FIELDSET],[H.FIGCAPTION,m.FIGCAPTION],[H.FIGURE,m.FIGURE],[H.FONT,m.FONT],[H.FOOTER,m.FOOTER],[H.FOREIGN_OBJECT,m.FOREIGN_OBJECT],[H.FORM,m.FORM],[H.FRAME,m.FRAME],[H.FRAMESET,m.FRAMESET],[H.H1,m.H1],[H.H2,m.H2],[H.H3,m.H3],[H.H4,m.H4],[H.H5,m.H5],[H.H6,m.H6],[H.HEAD,m.HEAD],[H.HEADER,m.HEADER],[H.HGROUP,m.HGROUP],[H.HR,m.HR],[H.HTML,m.HTML],[H.I,m.I],[H.IMG,m.IMG],[H.IMAGE,m.IMAGE],[H.INPUT,m.INPUT],[H.IFRAME,m.IFRAME],[H.KEYGEN,m.KEYGEN],[H.LABEL,m.LABEL],[H.LI,m.LI],[H.LINK,m.LINK],[H.LISTING,m.LISTING],[H.MAIN,m.MAIN],[H.MALIGNMARK,m.MALIGNMARK],[H.MARQUEE,m.MARQUEE],[H.MATH,m.MATH],[H.MENU,m.MENU],[H.META,m.META],[H.MGLYPH,m.MGLYPH],[H.MI,m.MI],[H.MO,m.MO],[H.MN,m.MN],[H.MS,m.MS],[H.MTEXT,m.MTEXT],[H.NAV,m.NAV],[H.NOBR,m.NOBR],[H.NOFRAMES,m.NOFRAMES],[H.NOEMBED,m.NOEMBED],[H.NOSCRIPT,m.NOSCRIPT],[H.OBJECT,m.OBJECT],[H.OL,m.OL],[H.OPTGROUP,m.OPTGROUP],[H.OPTION,m.OPTION],[H.P,m.P],[H.PARAM,m.PARAM],[H.PLAINTEXT,m.PLAINTEXT],[H.PRE,m.PRE],[H.RB,m.RB],[H.RP,m.RP],[H.RT,m.RT],[H.RTC,m.RTC],[H.RUBY,m.RUBY],[H.S,m.S],[H.SCRIPT,m.SCRIPT],[H.SEARCH,m.SEARCH],[H.SECTION,m.SECTION],[H.SELECT,m.SELECT],[H.SOURCE,m.SOURCE],[H.SMALL,m.SMALL],[H.SPAN,m.SPAN],[H.STRIKE,m.STRIKE],[H.STRONG,m.STRONG],[H.STYLE,m.STYLE],[H.SUB,m.SUB],[H.SUMMARY,m.SUMMARY],[H.SUP,m.SUP],[H.TABLE,m.TABLE],[H.TBODY,m.TBODY],[H.TEMPLATE,m.TEMPLATE],[H.TEXTAREA,m.TEXTAREA],[H.TFOOT,m.TFOOT],[H.TD,m.TD],[H.TH,m.TH],[H.THEAD,m.THEAD],[H.TITLE,m.TITLE],[H.TR,m.TR],[H.TRACK,m.TRACK],[H.TT,m.TT],[H.U,m.U],[H.UL,m.UL],[H.SVG,m.SVG],[H.VAR,m.VAR],[H.WBR,m.WBR],[H.XMP,m.XMP]]);function Ia(e){var t;return(t=iP.get(e))!==null&&t!==void 0?t:m.UNKNOWN}const ae=m,sP={[Z.HTML]:new Set([ae.ADDRESS,ae.APPLET,ae.AREA,ae.ARTICLE,ae.ASIDE,ae.BASE,ae.BASEFONT,ae.BGSOUND,ae.BLOCKQUOTE,ae.BODY,ae.BR,ae.BUTTON,ae.CAPTION,ae.CENTER,ae.COL,ae.COLGROUP,ae.DD,ae.DETAILS,ae.DIR,ae.DIV,ae.DL,ae.DT,ae.EMBED,ae.FIELDSET,ae.FIGCAPTION,ae.FIGURE,ae.FOOTER,ae.FORM,ae.FRAME,ae.FRAMESET,ae.H1,ae.H2,ae.H3,ae.H4,ae.H5,ae.H6,ae.HEAD,ae.HEADER,ae.HGROUP,ae.HR,ae.HTML,ae.IFRAME,ae.IMG,ae.INPUT,ae.LI,ae.LINK,ae.LISTING,ae.MAIN,ae.MARQUEE,ae.MENU,ae.META,ae.NAV,ae.NOEMBED,ae.NOFRAMES,ae.NOSCRIPT,ae.OBJECT,ae.OL,ae.P,ae.PARAM,ae.PLAINTEXT,ae.PRE,ae.SCRIPT,ae.SECTION,ae.SELECT,ae.SOURCE,ae.STYLE,ae.SUMMARY,ae.TABLE,ae.TBODY,ae.TD,ae.TEMPLATE,ae.TEXTAREA,ae.TFOOT,ae.TH,ae.THEAD,ae.TITLE,ae.TR,ae.TRACK,ae.UL,ae.WBR,ae.XMP]),[Z.MATHML]:new Set([ae.MI,ae.MO,ae.MN,ae.MS,ae.MTEXT,ae.ANNOTATION_XML]),[Z.SVG]:new Set([ae.TITLE,ae.FOREIGN_OBJECT,ae.DESC]),[Z.XLINK]:new Set,[Z.XML]:new Set,[Z.XMLNS]:new Set},Xu=new Set([ae.H1,ae.H2,ae.H3,ae.H4,ae.H5,ae.H6]);H.STYLE,H.SCRIPT,H.XMP,H.IFRAME,H.NOEMBED,H.NOFRAMES,H.PLAINTEXT;const lP=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0)));var N;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(N||(N={}));const Nt={DATA:N.DATA,RCDATA:N.RCDATA,RAWTEXT:N.RAWTEXT,SCRIPT_DATA:N.SCRIPT_DATA,PLAINTEXT:N.PLAINTEXT,CDATA_SECTION:N.CDATA_SECTION};function cP(e){return e>=_.DIGIT_0&&e<=_.DIGIT_9}function oi(e){return e>=_.LATIN_CAPITAL_A&&e<=_.LATIN_CAPITAL_Z}function uP(e){return e>=_.LATIN_SMALL_A&&e<=_.LATIN_SMALL_Z}function jr(e){return uP(e)||oi(e)}function Bf(e){return jr(e)||cP(e)}function Cs(e){return e+32}function Cy(e){return e===_.SPACE||e===_.LINE_FEED||e===_.TABULATION||e===_.FORM_FEED}function jf(e){return Cy(e)||e===_.SOLIDUS||e===_.GREATER_THAN_SIGN}function dP(e){return e===_.NULL?W.nullCharacterReference:e>1114111?W.characterReferenceOutsideUnicodeRange:by(e)?W.surrogateCharacterReference:xy(e)?W.noncharacterCharacterReference:Ey(e)||e===_.CARRIAGE_RETURN?W.controlCharacterReference:null}let hP=class{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=N.DATA,this.returnState=N.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new X3(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new oP(lP,(r,o)=>{this.preprocessor.pos=this.entityStartPos+o-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(W.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(W.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const o=dP(r);o&&this._err(o,1)}}:void 0)}_err(t,n=0){var r,o;(o=(r=this.handler).onParseError)===null||o===void 0||o.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Be.START_TAG,tagName:"",tagID:m.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Be.END_TAG,tagName:"",tagID:m.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Be.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Be.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(Ty(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const o=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);o[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(W.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Ia(t.tagName),t.type===Be.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(W.endTagWithAttributes),t.selfClosing&&this._err(W.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Be.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Be.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Be.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Be.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=Cy(t)?Be.WHITESPACE_CHARACTER:t===_.NULL?Be.NULL_CHARACTER:Be.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Be.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=N.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?kr.Attribute:kr.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===N.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===N.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===N.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case N.DATA:{this._stateData(t);break}case N.RCDATA:{this._stateRcdata(t);break}case N.RAWTEXT:{this._stateRawtext(t);break}case N.SCRIPT_DATA:{this._stateScriptData(t);break}case N.PLAINTEXT:{this._statePlaintext(t);break}case N.TAG_OPEN:{this._stateTagOpen(t);break}case N.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case N.TAG_NAME:{this._stateTagName(t);break}case N.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case N.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case N.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case N.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case N.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case N.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case N.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case N.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case N.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case N.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case N.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case N.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case N.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case N.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case N.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case N.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case N.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case N.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case N.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case N.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case N.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case N.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case N.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case N.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case N.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case N.BOGUS_COMMENT:{this._stateBogusComment(t);break}case N.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case N.COMMENT_START:{this._stateCommentStart(t);break}case N.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case N.COMMENT:{this._stateComment(t);break}case N.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case N.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case N.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case N.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case N.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case N.COMMENT_END:{this._stateCommentEnd(t);break}case N.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case N.DOCTYPE:{this._stateDoctype(t);break}case N.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case N.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case N.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case N.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case N.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case N.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case N.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case N.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case N.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case N.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case N.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case N.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case N.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case N.CDATA_SECTION:{this._stateCdataSection(t);break}case N.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case N.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case N.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case N.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case _.LESS_THAN_SIGN:{this.state=N.TAG_OPEN;break}case _.AMPERSAND:{this._startCharacterReference();break}case _.NULL:{this._err(W.unexpectedNullCharacter),this._emitCodePoint(t);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case _.AMPERSAND:{this._startCharacterReference();break}case _.LESS_THAN_SIGN:{this.state=N.RCDATA_LESS_THAN_SIGN;break}case _.NULL:{this._err(W.unexpectedNullCharacter),this._emitChars(Ct);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case _.LESS_THAN_SIGN:{this.state=N.RAWTEXT_LESS_THAN_SIGN;break}case _.NULL:{this._err(W.unexpectedNullCharacter),this._emitChars(Ct);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case _.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_LESS_THAN_SIGN;break}case _.NULL:{this._err(W.unexpectedNullCharacter),this._emitChars(Ct);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case _.NULL:{this._err(W.unexpectedNullCharacter),this._emitChars(Ct);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(jr(t))this._createStartTagToken(),this.state=N.TAG_NAME,this._stateTagName(t);else switch(t){case _.EXCLAMATION_MARK:{this.state=N.MARKUP_DECLARATION_OPEN;break}case _.SOLIDUS:{this.state=N.END_TAG_OPEN;break}case _.QUESTION_MARK:{this._err(W.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=N.BOGUS_COMMENT,this._stateBogusComment(t);break}case _.EOF:{this._err(W.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(W.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=N.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(jr(t))this._createEndTagToken(),this.state=N.TAG_NAME,this._stateTagName(t);else switch(t){case _.GREATER_THAN_SIGN:{this._err(W.missingEndTagName),this.state=N.DATA;break}case _.EOF:{this._err(W.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(W.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=N.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=N.BEFORE_ATTRIBUTE_NAME;break}case _.SOLIDUS:{this.state=N.SELF_CLOSING_START_TAG;break}case _.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentTagToken();break}case _.NULL:{this._err(W.unexpectedNullCharacter),n.tagName+=Ct;break}case _.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(oi(t)?Cs(t):t)}}_stateRcdataLessThanSign(t){t===_.SOLIDUS?this.state=N.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=N.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){jr(t)?(this.state=N.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=N.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=N.BEFORE_ATTRIBUTE_NAME,!1;case _.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=N.SELF_CLOSING_START_TAG,!1;case _.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=N.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=N.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===_.SOLIDUS?this.state=N.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=N.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){jr(t)?(this.state=N.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=N.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=N.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case _.SOLIDUS:{this.state=N.SCRIPT_DATA_END_TAG_OPEN;break}case _.EXCLAMATION_MARK:{this.state=N.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=N.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){jr(t)?(this.state=N.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=N.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=N.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===_.HYPHEN_MINUS?(this.state=N.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=N.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===_.HYPHEN_MINUS?(this.state=N.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=N.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case _.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case _.NULL:{this._err(W.unexpectedNullCharacter),this._emitChars(Ct);break}case _.EOF:{this._err(W.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case _.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case _.NULL:{this._err(W.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_ESCAPED,this._emitChars(Ct);break}case _.EOF:{this._err(W.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case _.HYPHEN_MINUS:{this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case _.GREATER_THAN_SIGN:{this.state=N.SCRIPT_DATA,this._emitChars(">");break}case _.NULL:{this._err(W.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_ESCAPED,this._emitChars(Ct);break}case _.EOF:{this._err(W.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===_.SOLIDUS?this.state=N.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:jr(t)?(this._emitChars("<"),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=N.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){jr(t)?(this.state=N.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=N.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=N.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(yn.SCRIPT,!1)&&jf(this.preprocessor.peek(yn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<yn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=N.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case _.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case _.NULL:{this._err(W.unexpectedNullCharacter),this._emitChars(Ct);break}case _.EOF:{this._err(W.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case _.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case _.NULL:{this._err(W.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ct);break}case _.EOF:{this._err(W.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case _.HYPHEN_MINUS:{this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case _.GREATER_THAN_SIGN:{this.state=N.SCRIPT_DATA,this._emitChars(">");break}case _.NULL:{this._err(W.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ct);break}case _.EOF:{this._err(W.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===_.SOLIDUS?(this.state=N.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(yn.SCRIPT,!1)&&jf(this.preprocessor.peek(yn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<yn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=N.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.SOLIDUS:case _.GREATER_THAN_SIGN:case _.EOF:{this.state=N.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case _.EQUALS_SIGN:{this._err(W.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=N.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=N.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:case _.SOLIDUS:case _.GREATER_THAN_SIGN:case _.EOF:{this._leaveAttrName(),this.state=N.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case _.EQUALS_SIGN:{this._leaveAttrName(),this.state=N.BEFORE_ATTRIBUTE_VALUE;break}case _.QUOTATION_MARK:case _.APOSTROPHE:case _.LESS_THAN_SIGN:{this._err(W.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case _.NULL:{this._err(W.unexpectedNullCharacter),this.currentAttr.name+=Ct;break}default:this.currentAttr.name+=String.fromCodePoint(oi(t)?Cs(t):t)}}_stateAfterAttributeName(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.SOLIDUS:{this.state=N.SELF_CLOSING_START_TAG;break}case _.EQUALS_SIGN:{this.state=N.BEFORE_ATTRIBUTE_VALUE;break}case _.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentTagToken();break}case _.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=N.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.QUOTATION_MARK:{this.state=N.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case _.APOSTROPHE:{this.state=N.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(W.missingAttributeValue),this.state=N.DATA,this.emitCurrentTagToken();break}default:this.state=N.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case _.QUOTATION_MARK:{this.state=N.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case _.AMPERSAND:{this._startCharacterReference();break}case _.NULL:{this._err(W.unexpectedNullCharacter),this.currentAttr.value+=Ct;break}case _.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case _.APOSTROPHE:{this.state=N.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case _.AMPERSAND:{this._startCharacterReference();break}case _.NULL:{this._err(W.unexpectedNullCharacter),this.currentAttr.value+=Ct;break}case _.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this._leaveAttrValue(),this.state=N.BEFORE_ATTRIBUTE_NAME;break}case _.AMPERSAND:{this._startCharacterReference();break}case _.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=N.DATA,this.emitCurrentTagToken();break}case _.NULL:{this._err(W.unexpectedNullCharacter),this.currentAttr.value+=Ct;break}case _.QUOTATION_MARK:case _.APOSTROPHE:case _.LESS_THAN_SIGN:case _.EQUALS_SIGN:case _.GRAVE_ACCENT:{this._err(W.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case _.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this._leaveAttrValue(),this.state=N.BEFORE_ATTRIBUTE_NAME;break}case _.SOLIDUS:{this._leaveAttrValue(),this.state=N.SELF_CLOSING_START_TAG;break}case _.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=N.DATA,this.emitCurrentTagToken();break}case _.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:this._err(W.missingWhitespaceBetweenAttributes),this.state=N.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case _.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=N.DATA,this.emitCurrentTagToken();break}case _.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:this._err(W.unexpectedSolidusInTag),this.state=N.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case _.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentComment(n);break}case _.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case _.NULL:{this._err(W.unexpectedNullCharacter),n.data+=Ct;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(yn.DASH_DASH,!0)?(this._createCommentToken(yn.DASH_DASH.length+1),this.state=N.COMMENT_START):this._consumeSequenceIfMatch(yn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(yn.DOCTYPE.length+1),this.state=N.DOCTYPE):this._consumeSequenceIfMatch(yn.CDATA_START,!0)?this.inForeignNode?this.state=N.CDATA_SECTION:(this._err(W.cdataInHtmlContent),this._createCommentToken(yn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=N.BOGUS_COMMENT):this._ensureHibernation()||(this._err(W.incorrectlyOpenedComment),this._createCommentToken(2),this.state=N.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case _.HYPHEN_MINUS:{this.state=N.COMMENT_START_DASH;break}case _.GREATER_THAN_SIGN:{this._err(W.abruptClosingOfEmptyComment),this.state=N.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=N.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case _.HYPHEN_MINUS:{this.state=N.COMMENT_END;break}case _.GREATER_THAN_SIGN:{this._err(W.abruptClosingOfEmptyComment),this.state=N.DATA,this.emitCurrentComment(n);break}case _.EOF:{this._err(W.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=N.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case _.HYPHEN_MINUS:{this.state=N.COMMENT_END_DASH;break}case _.LESS_THAN_SIGN:{n.data+="<",this.state=N.COMMENT_LESS_THAN_SIGN;break}case _.NULL:{this._err(W.unexpectedNullCharacter),n.data+=Ct;break}case _.EOF:{this._err(W.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case _.EXCLAMATION_MARK:{n.data+="!",this.state=N.COMMENT_LESS_THAN_SIGN_BANG;break}case _.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=N.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===_.HYPHEN_MINUS?this.state=N.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=N.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===_.HYPHEN_MINUS?this.state=N.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=N.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==_.GREATER_THAN_SIGN&&t!==_.EOF&&this._err(W.nestedComment),this.state=N.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case _.HYPHEN_MINUS:{this.state=N.COMMENT_END;break}case _.EOF:{this._err(W.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=N.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case _.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentComment(n);break}case _.EXCLAMATION_MARK:{this.state=N.COMMENT_END_BANG;break}case _.HYPHEN_MINUS:{n.data+="-";break}case _.EOF:{this._err(W.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=N.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case _.HYPHEN_MINUS:{n.data+="--!",this.state=N.COMMENT_END_DASH;break}case _.GREATER_THAN_SIGN:{this._err(W.incorrectlyClosedComment),this.state=N.DATA,this.emitCurrentComment(n);break}case _.EOF:{this._err(W.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=N.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=N.BEFORE_DOCTYPE_NAME;break}case _.GREATER_THAN_SIGN:{this.state=N.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case _.EOF:{this._err(W.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingWhitespaceBeforeDoctypeName),this.state=N.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(oi(t))this._createDoctypeToken(String.fromCharCode(Cs(t))),this.state=N.DOCTYPE_NAME;else switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.NULL:{this._err(W.unexpectedNullCharacter),this._createDoctypeToken(Ct),this.state=N.DOCTYPE_NAME;break}case _.GREATER_THAN_SIGN:{this._err(W.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case _.EOF:{this._err(W.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=N.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=N.AFTER_DOCTYPE_NAME;break}case _.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentDoctype(n);break}case _.NULL:{this._err(W.unexpectedNullCharacter),n.name+=Ct;break}case _.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(oi(t)?Cs(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentDoctype(n);break}case _.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(yn.PUBLIC,!1)?this.state=N.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(yn.SYSTEM,!1)?this.state=N.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(W.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=N.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case _.QUOTATION_MARK:{this._err(W.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{this._err(W.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(W.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case _.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.QUOTATION_MARK:{n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(W.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case _.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case _.QUOTATION_MARK:{this.state=N.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case _.NULL:{this._err(W.unexpectedNullCharacter),n.publicId+=Ct;break}case _.GREATER_THAN_SIGN:{this._err(W.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case _.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case _.APOSTROPHE:{this.state=N.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case _.NULL:{this._err(W.unexpectedNullCharacter),n.publicId+=Ct;break}case _.GREATER_THAN_SIGN:{this._err(W.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case _.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=N.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case _.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentDoctype(n);break}case _.QUOTATION_MARK:{this._err(W.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{this._err(W.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case _.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=N.DATA;break}case _.QUOTATION_MARK:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case _.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=N.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case _.QUOTATION_MARK:{this._err(W.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{this._err(W.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(W.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case _.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.QUOTATION_MARK:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(W.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case _.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case _.QUOTATION_MARK:{this.state=N.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case _.NULL:{this._err(W.unexpectedNullCharacter),n.systemId+=Ct;break}case _.GREATER_THAN_SIGN:{this._err(W.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case _.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case _.APOSTROPHE:{this.state=N.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case _.NULL:{this._err(W.unexpectedNullCharacter),n.systemId+=Ct;break}case _.GREATER_THAN_SIGN:{this._err(W.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case _.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=N.DATA;break}case _.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case _.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=N.DATA;break}case _.NULL:{this._err(W.unexpectedNullCharacter);break}case _.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case _.RIGHT_SQUARE_BRACKET:{this.state=N.CDATA_SECTION_BRACKET;break}case _.EOF:{this._err(W.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===_.RIGHT_SQUARE_BRACKET?this.state=N.CDATA_SECTION_END:(this._emitChars("]"),this.state=N.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case _.GREATER_THAN_SIGN:{this.state=N.DATA;break}case _.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=N.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(_.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Bf(this.preprocessor.peek(1))?N.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Bf(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===_.SEMICOLON&&this._err(W.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}};const vy=new Set([m.DD,m.DT,m.LI,m.OPTGROUP,m.OPTION,m.P,m.RB,m.RP,m.RT,m.RTC]),Hf=new Set([...vy,m.CAPTION,m.COLGROUP,m.TBODY,m.TD,m.TFOOT,m.TH,m.THEAD,m.TR]),El=new Set([m.APPLET,m.CAPTION,m.HTML,m.MARQUEE,m.OBJECT,m.TABLE,m.TD,m.TEMPLATE,m.TH]),pP=new Set([...El,m.OL,m.UL]),fP=new Set([...El,m.BUTTON]),Uf=new Set([m.ANNOTATION_XML,m.MI,m.MN,m.MO,m.MS,m.MTEXT]),zf=new Set([m.DESC,m.FOREIGN_OBJECT,m.TITLE]),mP=new Set([m.TR,m.TEMPLATE,m.HTML]),gP=new Set([m.TBODY,m.TFOOT,m.THEAD,m.TEMPLATE,m.HTML]),yP=new Set([m.TABLE,m.TEMPLATE,m.HTML]),bP=new Set([m.TD,m.TH]);let EP=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=m.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===m.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Z.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const o=this._indexOf(t)+1;this.items.splice(o,0,n),this.tagIDs.splice(o,0,r),this.stackTop++,o===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,o===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==Z.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Xu,Z.HTML)}popUntilTableCellPopped(){this.popUntilPopped(bP,Z.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(yP,Z.HTML)}clearBackToTableBodyContext(){this.clearBackTo(gP,Z.HTML)}clearBackToTableRowContext(){this.clearBackTo(mP,Z.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===m.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===m.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const o=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Z.HTML:{if(o===t)return!0;if(n.has(o))return!1;break}case Z.SVG:{if(zf.has(o))return!1;break}case Z.MATHML:{if(Uf.has(o))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,El)}hasInListItemScope(t){return this.hasInDynamicScope(t,pP)}hasInButtonScope(t){return this.hasInDynamicScope(t,fP)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case Z.HTML:{if(Xu.has(n))return!0;if(El.has(n))return!1;break}case Z.SVG:{if(zf.has(n))return!1;break}case Z.MATHML:{if(Uf.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Z.HTML)switch(this.tagIDs[n]){case t:return!0;case m.TABLE:case m.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Z.HTML)switch(this.tagIDs[t]){case m.TBODY:case m.THEAD:case m.TFOOT:return!0;case m.TABLE:case m.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Z.HTML)switch(this.tagIDs[n]){case t:return!0;case m.OPTION:case m.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&vy.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Hf.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Hf.has(this.currentTagId);)this.pop()}};var lr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(lr||(lr={}));const Gf={type:lr.Marker};let xP=class{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],o=n.length,a=this.treeAdapter.getTagName(t),i=this.treeAdapter.getNamespaceURI(t);for(let s=0;s<this.entries.length;s++){const l=this.entries[s];if(l.type===lr.Marker)break;const{element:c}=l;if(this.treeAdapter.getTagName(c)===a&&this.treeAdapter.getNamespaceURI(c)===i){const d=this.treeAdapter.getAttrList(c);d.length===o&&r.push({idx:s,attrs:d})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<3)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<3)return;const o=new Map(n.map(i=>[i.name,i.value]));let a=0;for(let i=0;i<r.length;i++){const s=r[i];s.attrs.every(l=>o.get(l.name)===l.value)&&(a+=1,a>=3&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(Gf)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:lr.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:lr.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Gf);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===lr.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===lr.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===lr.Element&&n.element===t)}};const Hr={createDocument(){return{nodeName:"#document",mode:Mn.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const o=e.childNodes.find(a=>a.nodeName==="#documentType");if(o)o.name=t,o.publicId=n,o.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Hr.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Hr.isTextNode(n)){n.value+=t;return}}Hr.appendChild(e,Hr.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Hr.isTextNode(r)?r.value+=t:Hr.insertBefore(e,Hr.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Sy="html",TP="about:legacy-compat",CP="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",ky=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],vP=[...ky,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],SP=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Ay=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],kP=[...Ay,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function qf(e,t){return t.some(n=>e.startsWith(n))}function AP(e){return e.name===Sy&&e.publicId===null&&(e.systemId===null||e.systemId===TP)}function IP(e){if(e.name!==Sy)return Mn.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===CP)return Mn.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),SP.has(n))return Mn.QUIRKS;let r=t===null?vP:ky;if(qf(n,r))return Mn.QUIRKS;if(r=t===null?Ay:kP,qf(n,r))return Mn.LIMITED_QUIRKS}return Mn.NO_QUIRKS}const Wf={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},_P="definitionurl",DP="definitionURL",wP=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),NP=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Z.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Z.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Z.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Z.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Z.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Z.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Z.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Z.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Z.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Z.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Z.XMLNS}]]),PP=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),RP=new Set([m.B,m.BIG,m.BLOCKQUOTE,m.BODY,m.BR,m.CENTER,m.CODE,m.DD,m.DIV,m.DL,m.DT,m.EM,m.EMBED,m.H1,m.H2,m.H3,m.H4,m.H5,m.H6,m.HEAD,m.HR,m.I,m.IMG,m.LI,m.LISTING,m.MENU,m.META,m.NOBR,m.OL,m.P,m.PRE,m.RUBY,m.S,m.SMALL,m.SPAN,m.STRONG,m.STRIKE,m.SUB,m.SUP,m.TABLE,m.TT,m.U,m.UL,m.VAR]);function LP(e){const t=e.tagID;return t===m.FONT&&e.attrs.some(({name:n})=>n===So.COLOR||n===So.SIZE||n===So.FACE)||RP.has(t)}function Iy(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===_P){e.attrs[t].name=DP;break}}function _y(e){for(let t=0;t<e.attrs.length;t++){const n=wP.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function mh(e){for(let t=0;t<e.attrs.length;t++){const n=NP.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function $P(e){const t=PP.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Ia(e.tagName))}function OP(e,t){return t===Z.MATHML&&(e===m.MI||e===m.MO||e===m.MN||e===m.MS||e===m.MTEXT)}function MP(e,t,n){if(t===Z.MATHML&&e===m.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===So.ENCODING){const o=n[r].value.toLowerCase();return o===Wf.TEXT_HTML||o===Wf.APPLICATION_XML}}return t===Z.SVG&&(e===m.FOREIGN_OBJECT||e===m.DESC||e===m.TITLE)}function FP(e,t,n,r){return(!r||r===Z.HTML)&&MP(e,t,n)||(!r||r===Z.MATHML)&&OP(e,t)}const BP="hidden",jP=8,HP=3;var P;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(P||(P={}));const UP={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Dy=new Set([m.TABLE,m.TBODY,m.TFOOT,m.THEAD,m.TR]),Vf={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Hr,onParseError:null};class Yf{constructor(t,n,r=null,o=null){this.fragmentContext=r,this.scriptHandler=o,this.currentToken=null,this.stopped=!1,this.insertionMode=P.INITIAL,this.originalInsertionMode=P.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Vf,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new hP(this.options,this),this.activeFormattingElements=new xP(this.treeAdapter),this.fragmentContextID=r?Ia(this.treeAdapter.getTagName(r)):m.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new EP(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...Vf,...n};t??(t=r.treeAdapter.createElement(H.TEMPLATE,Z.HTML,[]));const o=r.treeAdapter.createElement("documentmock",Z.HTML,[]),a=new this(r,o,t);return a.fragmentContextID===m.TEMPLATE&&a.tmplInsertionModeStack.unshift(P.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var o;if(!this.onParseError)return;const a=(o=t.location)!==null&&o!==void 0?o:UP,i={code:n,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(i)}onItemPush(t,n,r){var o,a;(a=(o=this.treeAdapter).onItemPush)===null||a===void 0||a.call(o,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,o;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(o=(r=this.treeAdapter).onItemPop)===null||o===void 0||o.call(r,t,this.openElements.current),n){let a,i;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,i=this.fragmentContextID):{current:a,currentTagId:i}=this.openElements,this._setContextModes(a,i)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===Z.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Z.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=P.TEXT}switchToPlaintextParsing(){this.insertionMode=P.TEXT,this.originalInsertionMode=P.IN_BODY,this.tokenizer.state=Nt.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===H.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Z.HTML))switch(this.fragmentContextID){case m.TITLE:case m.TEXTAREA:{this.tokenizer.state=Nt.RCDATA;break}case m.STYLE:case m.XMP:case m.IFRAME:case m.NOEMBED:case m.NOFRAMES:case m.NOSCRIPT:{this.tokenizer.state=Nt.RAWTEXT;break}case m.SCRIPT:{this.tokenizer.state=Nt.SCRIPT_DATA;break}case m.PLAINTEXT:{this.tokenizer.state=Nt.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",o=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,o),t.location){const a=this.treeAdapter.getChildNodes(this.document).find(i=>this.treeAdapter.isDocumentTypeNode(i));a&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,Z.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Z.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(H.HTML,Z.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,m.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const o=this.treeAdapter.getChildNodes(n),a=r?o.lastIndexOf(r):o.length,i=o[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){const{endLine:s,endCol:l,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:s,endCol:l,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,o=this.treeAdapter.getTagName(t),a=n.type===Be.END_TAG&&o===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===m.SVG&&this.treeAdapter.getTagName(n)===H.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Z.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===m.MGLYPH||t.tagID===m.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,Z.HTML)}_processToken(t){switch(t.type){case Be.CHARACTER:{this.onCharacter(t);break}case Be.NULL_CHARACTER:{this.onNullCharacter(t);break}case Be.COMMENT:{this.onComment(t);break}case Be.DOCTYPE:{this.onDoctype(t);break}case Be.START_TAG:{this._processStartTag(t);break}case Be.END_TAG:{this.onEndTag(t);break}case Be.EOF:{this.onEof(t);break}case Be.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const o=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return FP(t,o,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(o=>o.type===lr.Marker||this.openElements.contains(o.element)),r=n===-1?t-1:n-1;for(let o=r;o>=0;o--){const a=this.activeFormattingElements.entries[o];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=P.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(m.P),this.openElements.popUntilTagNamePopped(m.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case m.TR:{this.insertionMode=P.IN_ROW;return}case m.TBODY:case m.THEAD:case m.TFOOT:{this.insertionMode=P.IN_TABLE_BODY;return}case m.CAPTION:{this.insertionMode=P.IN_CAPTION;return}case m.COLGROUP:{this.insertionMode=P.IN_COLUMN_GROUP;return}case m.TABLE:{this.insertionMode=P.IN_TABLE;return}case m.BODY:{this.insertionMode=P.IN_BODY;return}case m.FRAMESET:{this.insertionMode=P.IN_FRAMESET;return}case m.SELECT:{this._resetInsertionModeForSelect(t);return}case m.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case m.HTML:{this.insertionMode=this.headElement?P.AFTER_HEAD:P.BEFORE_HEAD;return}case m.TD:case m.TH:{if(t>0){this.insertionMode=P.IN_CELL;return}break}case m.HEAD:{if(t>0){this.insertionMode=P.IN_HEAD;return}break}}this.insertionMode=P.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===m.TEMPLATE)break;if(r===m.TABLE){this.insertionMode=P.IN_SELECT_IN_TABLE;return}}this.insertionMode=P.IN_SELECT}_isElementCausesFosterParenting(t){return Dy.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case m.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Z.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case m.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return sP[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){b6(this,t);return}switch(this.insertionMode){case P.INITIAL:{qa(this,t);break}case P.BEFORE_HTML:{fi(this,t);break}case P.BEFORE_HEAD:{mi(this,t);break}case P.IN_HEAD:{gi(this,t);break}case P.IN_HEAD_NO_SCRIPT:{yi(this,t);break}case P.AFTER_HEAD:{bi(this,t);break}case P.IN_BODY:case P.IN_CAPTION:case P.IN_CELL:case P.IN_TEMPLATE:{Ny(this,t);break}case P.TEXT:case P.IN_SELECT:case P.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case P.IN_TABLE:case P.IN_TABLE_BODY:case P.IN_ROW:{tu(this,t);break}case P.IN_TABLE_TEXT:{My(this,t);break}case P.IN_COLUMN_GROUP:{xl(this,t);break}case P.AFTER_BODY:{Tl(this,t);break}case P.AFTER_AFTER_BODY:{Fs(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){y6(this,t);return}switch(this.insertionMode){case P.INITIAL:{qa(this,t);break}case P.BEFORE_HTML:{fi(this,t);break}case P.BEFORE_HEAD:{mi(this,t);break}case P.IN_HEAD:{gi(this,t);break}case P.IN_HEAD_NO_SCRIPT:{yi(this,t);break}case P.AFTER_HEAD:{bi(this,t);break}case P.TEXT:{this._insertCharacters(t);break}case P.IN_TABLE:case P.IN_TABLE_BODY:case P.IN_ROW:{tu(this,t);break}case P.IN_COLUMN_GROUP:{xl(this,t);break}case P.AFTER_BODY:{Tl(this,t);break}case P.AFTER_AFTER_BODY:{Fs(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Ju(this,t);return}switch(this.insertionMode){case P.INITIAL:case P.BEFORE_HTML:case P.BEFORE_HEAD:case P.IN_HEAD:case P.IN_HEAD_NO_SCRIPT:case P.AFTER_HEAD:case P.IN_BODY:case P.IN_TABLE:case P.IN_CAPTION:case P.IN_COLUMN_GROUP:case P.IN_TABLE_BODY:case P.IN_ROW:case P.IN_CELL:case P.IN_SELECT:case P.IN_SELECT_IN_TABLE:case P.IN_TEMPLATE:case P.IN_FRAMESET:case P.AFTER_FRAMESET:{Ju(this,t);break}case P.IN_TABLE_TEXT:{Wa(this,t);break}case P.AFTER_BODY:{KP(this,t);break}case P.AFTER_AFTER_BODY:case P.AFTER_AFTER_FRAMESET:{QP(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case P.INITIAL:{XP(this,t);break}case P.BEFORE_HEAD:case P.IN_HEAD:case P.IN_HEAD_NO_SCRIPT:case P.AFTER_HEAD:{this._err(t,W.misplacedDoctype);break}case P.IN_TABLE_TEXT:{Wa(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,W.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?E6(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case P.INITIAL:{qa(this,t);break}case P.BEFORE_HTML:{JP(this,t);break}case P.BEFORE_HEAD:{eR(this,t);break}case P.IN_HEAD:{Qn(this,t);break}case P.IN_HEAD_NO_SCRIPT:{rR(this,t);break}case P.AFTER_HEAD:{aR(this,t);break}case P.IN_BODY:{cn(this,t);break}case P.IN_TABLE:{Ta(this,t);break}case P.IN_TABLE_TEXT:{Wa(this,t);break}case P.IN_CAPTION:{t6(this,t);break}case P.IN_COLUMN_GROUP:{bh(this,t);break}case P.IN_TABLE_BODY:{ic(this,t);break}case P.IN_ROW:{sc(this,t);break}case P.IN_CELL:{o6(this,t);break}case P.IN_SELECT:{jy(this,t);break}case P.IN_SELECT_IN_TABLE:{i6(this,t);break}case P.IN_TEMPLATE:{l6(this,t);break}case P.AFTER_BODY:{u6(this,t);break}case P.IN_FRAMESET:{d6(this,t);break}case P.AFTER_FRAMESET:{p6(this,t);break}case P.AFTER_AFTER_BODY:{m6(this,t);break}case P.AFTER_AFTER_FRAMESET:{g6(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?x6(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case P.INITIAL:{qa(this,t);break}case P.BEFORE_HTML:{ZP(this,t);break}case P.BEFORE_HEAD:{tR(this,t);break}case P.IN_HEAD:{nR(this,t);break}case P.IN_HEAD_NO_SCRIPT:{oR(this,t);break}case P.AFTER_HEAD:{iR(this,t);break}case P.IN_BODY:{ac(this,t);break}case P.TEXT:{qR(this,t);break}case P.IN_TABLE:{Li(this,t);break}case P.IN_TABLE_TEXT:{Wa(this,t);break}case P.IN_CAPTION:{n6(this,t);break}case P.IN_COLUMN_GROUP:{r6(this,t);break}case P.IN_TABLE_BODY:{Zu(this,t);break}case P.IN_ROW:{By(this,t);break}case P.IN_CELL:{a6(this,t);break}case P.IN_SELECT:{Hy(this,t);break}case P.IN_SELECT_IN_TABLE:{s6(this,t);break}case P.IN_TEMPLATE:{c6(this,t);break}case P.AFTER_BODY:{zy(this,t);break}case P.IN_FRAMESET:{h6(this,t);break}case P.AFTER_FRAMESET:{f6(this,t);break}case P.AFTER_AFTER_BODY:{Fs(this,t);break}}}onEof(t){switch(this.insertionMode){case P.INITIAL:{qa(this,t);break}case P.BEFORE_HTML:{fi(this,t);break}case P.BEFORE_HEAD:{mi(this,t);break}case P.IN_HEAD:{gi(this,t);break}case P.IN_HEAD_NO_SCRIPT:{yi(this,t);break}case P.AFTER_HEAD:{bi(this,t);break}case P.IN_BODY:case P.IN_TABLE:case P.IN_CAPTION:case P.IN_COLUMN_GROUP:case P.IN_TABLE_BODY:case P.IN_ROW:case P.IN_CELL:case P.IN_SELECT:case P.IN_SELECT_IN_TABLE:{$y(this,t);break}case P.TEXT:{WR(this,t);break}case P.IN_TABLE_TEXT:{Wa(this,t);break}case P.IN_TEMPLATE:{Uy(this,t);break}case P.AFTER_BODY:case P.IN_FRAMESET:case P.AFTER_FRAMESET:case P.AFTER_AFTER_BODY:case P.AFTER_AFTER_FRAMESET:{yh(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===_.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case P.IN_HEAD:case P.IN_HEAD_NO_SCRIPT:case P.AFTER_HEAD:case P.TEXT:case P.IN_COLUMN_GROUP:case P.IN_SELECT:case P.IN_SELECT_IN_TABLE:case P.IN_FRAMESET:case P.AFTER_FRAMESET:{this._insertCharacters(t);break}case P.IN_BODY:case P.IN_CAPTION:case P.IN_CELL:case P.IN_TEMPLATE:case P.AFTER_BODY:case P.AFTER_AFTER_BODY:case P.AFTER_AFTER_FRAMESET:{wy(this,t);break}case P.IN_TABLE:case P.IN_TABLE_BODY:case P.IN_ROW:{tu(this,t);break}case P.IN_TABLE_TEXT:{Oy(this,t);break}}}}function zP(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Ly(e,t),n}function GP(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const o=e.openElements.items[r];if(o===t.element)break;e._isSpecialElement(o,e.openElements.tagIDs[r])&&(n=o)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function qP(e,t,n){let r=t,o=e.openElements.getCommonAncestor(t);for(let a=0,i=o;i!==n;a++,i=o){o=e.openElements.getCommonAncestor(i);const s=e.activeFormattingElements.getElementEntry(i),l=s&&a>=HP;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(i)):(i=WP(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(i,r),r=i)}return r}function WP(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function VP(e,t,n){const r=e.treeAdapter.getTagName(t),o=Ia(r);if(e._isElementCausesFosterParenting(o))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);o===m.TEMPLATE&&a===Z.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function YP(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:o}=n,a=e.treeAdapter.createElement(o.tagName,r,o.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,o),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,o.tagID)}function gh(e,t){for(let n=0;n<jP;n++){const r=zP(e,t);if(!r)break;const o=GP(e,r);if(!o)break;e.activeFormattingElements.bookmark=r;const a=qP(e,o,r.element),i=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),i&&VP(e,i,a),YP(e,o,r)}}function Ju(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function KP(e,t){e._appendCommentNode(t,e.openElements.items[0])}function QP(e,t){e._appendCommentNode(t,e.document)}function yh(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],o=e.treeAdapter.getNodeSourceCodeLocation(r);if(o&&!o.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],i=e.treeAdapter.getNodeSourceCodeLocation(a);i&&!i.endTag&&e._setEndLocation(a,t)}}}}function XP(e,t){e._setDocumentType(t);const n=t.forceQuirks?Mn.QUIRKS:IP(t);AP(t)||e._err(t,W.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=P.BEFORE_HTML}function qa(e,t){e._err(t,W.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Mn.QUIRKS),e.insertionMode=P.BEFORE_HTML,e._processToken(t)}function JP(e,t){t.tagID===m.HTML?(e._insertElement(t,Z.HTML),e.insertionMode=P.BEFORE_HEAD):fi(e,t)}function ZP(e,t){const n=t.tagID;(n===m.HTML||n===m.HEAD||n===m.BODY||n===m.BR)&&fi(e,t)}function fi(e,t){e._insertFakeRootElement(),e.insertionMode=P.BEFORE_HEAD,e._processToken(t)}function eR(e,t){switch(t.tagID){case m.HTML:{cn(e,t);break}case m.HEAD:{e._insertElement(t,Z.HTML),e.headElement=e.openElements.current,e.insertionMode=P.IN_HEAD;break}default:mi(e,t)}}function tR(e,t){const n=t.tagID;n===m.HEAD||n===m.BODY||n===m.HTML||n===m.BR?mi(e,t):e._err(t,W.endTagWithoutMatchingOpenElement)}function mi(e,t){e._insertFakeElement(H.HEAD,m.HEAD),e.headElement=e.openElements.current,e.insertionMode=P.IN_HEAD,e._processToken(t)}function Qn(e,t){switch(t.tagID){case m.HTML:{cn(e,t);break}case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:{e._appendElement(t,Z.HTML),t.ackSelfClosing=!0;break}case m.TITLE:{e._switchToTextParsing(t,Nt.RCDATA);break}case m.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Nt.RAWTEXT):(e._insertElement(t,Z.HTML),e.insertionMode=P.IN_HEAD_NO_SCRIPT);break}case m.NOFRAMES:case m.STYLE:{e._switchToTextParsing(t,Nt.RAWTEXT);break}case m.SCRIPT:{e._switchToTextParsing(t,Nt.SCRIPT_DATA);break}case m.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=P.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(P.IN_TEMPLATE);break}case m.HEAD:{e._err(t,W.misplacedStartTagForHeadElement);break}default:gi(e,t)}}function nR(e,t){switch(t.tagID){case m.HEAD:{e.openElements.pop(),e.insertionMode=P.AFTER_HEAD;break}case m.BODY:case m.BR:case m.HTML:{gi(e,t);break}case m.TEMPLATE:{Fo(e,t);break}default:e._err(t,W.endTagWithoutMatchingOpenElement)}}function Fo(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==m.TEMPLATE&&e._err(t,W.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(m.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,W.endTagWithoutMatchingOpenElement)}function gi(e,t){e.openElements.pop(),e.insertionMode=P.AFTER_HEAD,e._processToken(t)}function rR(e,t){switch(t.tagID){case m.HTML:{cn(e,t);break}case m.BASEFONT:case m.BGSOUND:case m.HEAD:case m.LINK:case m.META:case m.NOFRAMES:case m.STYLE:{Qn(e,t);break}case m.NOSCRIPT:{e._err(t,W.nestedNoscriptInHead);break}default:yi(e,t)}}function oR(e,t){switch(t.tagID){case m.NOSCRIPT:{e.openElements.pop(),e.insertionMode=P.IN_HEAD;break}case m.BR:{yi(e,t);break}default:e._err(t,W.endTagWithoutMatchingOpenElement)}}function yi(e,t){const n=t.type===Be.EOF?W.openElementsLeftAfterEof:W.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=P.IN_HEAD,e._processToken(t)}function aR(e,t){switch(t.tagID){case m.HTML:{cn(e,t);break}case m.BODY:{e._insertElement(t,Z.HTML),e.framesetOk=!1,e.insertionMode=P.IN_BODY;break}case m.FRAMESET:{e._insertElement(t,Z.HTML),e.insertionMode=P.IN_FRAMESET;break}case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:case m.NOFRAMES:case m.SCRIPT:case m.STYLE:case m.TEMPLATE:case m.TITLE:{e._err(t,W.abandonedHeadElementChild),e.openElements.push(e.headElement,m.HEAD),Qn(e,t),e.openElements.remove(e.headElement);break}case m.HEAD:{e._err(t,W.misplacedStartTagForHeadElement);break}default:bi(e,t)}}function iR(e,t){switch(t.tagID){case m.BODY:case m.HTML:case m.BR:{bi(e,t);break}case m.TEMPLATE:{Fo(e,t);break}default:e._err(t,W.endTagWithoutMatchingOpenElement)}}function bi(e,t){e._insertFakeElement(H.BODY,m.BODY),e.insertionMode=P.IN_BODY,oc(e,t)}function oc(e,t){switch(t.type){case Be.CHARACTER:{Ny(e,t);break}case Be.WHITESPACE_CHARACTER:{wy(e,t);break}case Be.COMMENT:{Ju(e,t);break}case Be.START_TAG:{cn(e,t);break}case Be.END_TAG:{ac(e,t);break}case Be.EOF:{$y(e,t);break}}}function wy(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Ny(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function sR(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function lR(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function cR(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Z.HTML),e.insertionMode=P.IN_FRAMESET)}function uR(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,Z.HTML)}function dR(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Xu.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Z.HTML)}function hR(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,Z.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function pR(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,Z.HTML),n||(e.formElement=e.openElements.current))}function fR(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const o=e.openElements.tagIDs[r];if(n===m.LI&&o===m.LI||(n===m.DD||n===m.DT)&&(o===m.DD||o===m.DT)){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(o!==m.ADDRESS&&o!==m.DIV&&o!==m.P&&e._isSpecialElement(e.openElements.items[r],o))break}e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,Z.HTML)}function mR(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,Z.HTML),e.tokenizer.state=Nt.PLAINTEXT}function gR(e,t){e.openElements.hasInScope(m.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.framesetOk=!1}function yR(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(H.A);n&&(gh(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function bR(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ER(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(m.NOBR)&&(gh(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Z.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function xR(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function TR(e,t){e.treeAdapter.getDocumentMode(e.document)!==Mn.QUIRKS&&e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,Z.HTML),e.framesetOk=!1,e.insertionMode=P.IN_TABLE}function Py(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Z.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Ry(e){const t=Ty(e,So.TYPE);return t!=null&&t.toLowerCase()===BP}function CR(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Z.HTML),Ry(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function vR(e,t){e._appendElement(t,Z.HTML),t.ackSelfClosing=!0}function SR(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._appendElement(t,Z.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function kR(e,t){t.tagName=H.IMG,t.tagID=m.IMG,Py(e,t)}function AR(e,t){e._insertElement(t,Z.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Nt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=P.TEXT}function IR(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Nt.RAWTEXT)}function _R(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Nt.RAWTEXT)}function Kf(e,t){e._switchToTextParsing(t,Nt.RAWTEXT)}function DR(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===P.IN_TABLE||e.insertionMode===P.IN_CAPTION||e.insertionMode===P.IN_TABLE_BODY||e.insertionMode===P.IN_ROW||e.insertionMode===P.IN_CELL?P.IN_SELECT_IN_TABLE:P.IN_SELECT}function wR(e,t){e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML)}function NR(e,t){e.openElements.hasInScope(m.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Z.HTML)}function PR(e,t){e.openElements.hasInScope(m.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(m.RTC),e._insertElement(t,Z.HTML)}function RR(e,t){e._reconstructActiveFormattingElements(),Iy(t),mh(t),t.selfClosing?e._appendElement(t,Z.MATHML):e._insertElement(t,Z.MATHML),t.ackSelfClosing=!0}function LR(e,t){e._reconstructActiveFormattingElements(),_y(t),mh(t),t.selfClosing?e._appendElement(t,Z.SVG):e._insertElement(t,Z.SVG),t.ackSelfClosing=!0}function Qf(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML)}function cn(e,t){switch(t.tagID){case m.I:case m.S:case m.B:case m.U:case m.EM:case m.TT:case m.BIG:case m.CODE:case m.FONT:case m.SMALL:case m.STRIKE:case m.STRONG:{bR(e,t);break}case m.A:{yR(e,t);break}case m.H1:case m.H2:case m.H3:case m.H4:case m.H5:case m.H6:{dR(e,t);break}case m.P:case m.DL:case m.OL:case m.UL:case m.DIV:case m.DIR:case m.NAV:case m.MAIN:case m.MENU:case m.ASIDE:case m.CENTER:case m.FIGURE:case m.FOOTER:case m.HEADER:case m.HGROUP:case m.DIALOG:case m.DETAILS:case m.ADDRESS:case m.ARTICLE:case m.SEARCH:case m.SECTION:case m.SUMMARY:case m.FIELDSET:case m.BLOCKQUOTE:case m.FIGCAPTION:{uR(e,t);break}case m.LI:case m.DD:case m.DT:{fR(e,t);break}case m.BR:case m.IMG:case m.WBR:case m.AREA:case m.EMBED:case m.KEYGEN:{Py(e,t);break}case m.HR:{SR(e,t);break}case m.RB:case m.RTC:{NR(e,t);break}case m.RT:case m.RP:{PR(e,t);break}case m.PRE:case m.LISTING:{hR(e,t);break}case m.XMP:{IR(e,t);break}case m.SVG:{LR(e,t);break}case m.HTML:{sR(e,t);break}case m.BASE:case m.LINK:case m.META:case m.STYLE:case m.TITLE:case m.SCRIPT:case m.BGSOUND:case m.BASEFONT:case m.TEMPLATE:{Qn(e,t);break}case m.BODY:{lR(e,t);break}case m.FORM:{pR(e,t);break}case m.NOBR:{ER(e,t);break}case m.MATH:{RR(e,t);break}case m.TABLE:{TR(e,t);break}case m.INPUT:{CR(e,t);break}case m.PARAM:case m.TRACK:case m.SOURCE:{vR(e,t);break}case m.IMAGE:{kR(e,t);break}case m.BUTTON:{gR(e,t);break}case m.APPLET:case m.OBJECT:case m.MARQUEE:{xR(e,t);break}case m.IFRAME:{_R(e,t);break}case m.SELECT:{DR(e,t);break}case m.OPTION:case m.OPTGROUP:{wR(e,t);break}case m.NOEMBED:case m.NOFRAMES:{Kf(e,t);break}case m.FRAMESET:{cR(e,t);break}case m.TEXTAREA:{AR(e,t);break}case m.NOSCRIPT:{e.options.scriptingEnabled?Kf(e,t):Qf(e,t);break}case m.PLAINTEXT:{mR(e,t);break}case m.COL:case m.TH:case m.TD:case m.TR:case m.HEAD:case m.FRAME:case m.TBODY:case m.TFOOT:case m.THEAD:case m.CAPTION:case m.COLGROUP:break;default:Qf(e,t)}}function $R(e,t){if(e.openElements.hasInScope(m.BODY)&&(e.insertionMode=P.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function OR(e,t){e.openElements.hasInScope(m.BODY)&&(e.insertionMode=P.AFTER_BODY,zy(e,t))}function MR(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function FR(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(m.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(m.FORM):n&&e.openElements.remove(n))}function BR(e){e.openElements.hasInButtonScope(m.P)||e._insertFakeElement(H.P,m.P),e._closePElement()}function jR(e){e.openElements.hasInListItemScope(m.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(m.LI),e.openElements.popUntilTagNamePopped(m.LI))}function HR(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function UR(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function zR(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function GR(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(H.BR,m.BR),e.openElements.pop(),e.framesetOk=!1}function Ly(e,t){const n=t.tagName,r=t.tagID;for(let o=e.openElements.stackTop;o>0;o--){const a=e.openElements.items[o],i=e.openElements.tagIDs[o];if(r===i&&(r!==m.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=o&&e.openElements.shortenToLength(o);break}if(e._isSpecialElement(a,i))break}}function ac(e,t){switch(t.tagID){case m.A:case m.B:case m.I:case m.S:case m.U:case m.EM:case m.TT:case m.BIG:case m.CODE:case m.FONT:case m.NOBR:case m.SMALL:case m.STRIKE:case m.STRONG:{gh(e,t);break}case m.P:{BR(e);break}case m.DL:case m.UL:case m.OL:case m.DIR:case m.DIV:case m.NAV:case m.PRE:case m.MAIN:case m.MENU:case m.ASIDE:case m.BUTTON:case m.CENTER:case m.FIGURE:case m.FOOTER:case m.HEADER:case m.HGROUP:case m.DIALOG:case m.ADDRESS:case m.ARTICLE:case m.DETAILS:case m.SEARCH:case m.SECTION:case m.SUMMARY:case m.LISTING:case m.FIELDSET:case m.BLOCKQUOTE:case m.FIGCAPTION:{MR(e,t);break}case m.LI:{jR(e);break}case m.DD:case m.DT:{HR(e,t);break}case m.H1:case m.H2:case m.H3:case m.H4:case m.H5:case m.H6:{UR(e);break}case m.BR:{GR(e);break}case m.BODY:{$R(e,t);break}case m.HTML:{OR(e,t);break}case m.FORM:{FR(e);break}case m.APPLET:case m.OBJECT:case m.MARQUEE:{zR(e,t);break}case m.TEMPLATE:{Fo(e,t);break}default:Ly(e,t)}}function $y(e,t){e.tmplInsertionModeStack.length>0?Uy(e,t):yh(e,t)}function qR(e,t){var n;t.tagID===m.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function WR(e,t){e._err(t,W.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function tu(e,t){if(e.openElements.currentTagId!==void 0&&Dy.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=P.IN_TABLE_TEXT,t.type){case Be.CHARACTER:{My(e,t);break}case Be.WHITESPACE_CHARACTER:{Oy(e,t);break}}else Qi(e,t)}function VR(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Z.HTML),e.insertionMode=P.IN_CAPTION}function YR(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Z.HTML),e.insertionMode=P.IN_COLUMN_GROUP}function KR(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(H.COLGROUP,m.COLGROUP),e.insertionMode=P.IN_COLUMN_GROUP,bh(e,t)}function QR(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Z.HTML),e.insertionMode=P.IN_TABLE_BODY}function XR(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(H.TBODY,m.TBODY),e.insertionMode=P.IN_TABLE_BODY,ic(e,t)}function JR(e,t){e.openElements.hasInTableScope(m.TABLE)&&(e.openElements.popUntilTagNamePopped(m.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function ZR(e,t){Ry(t)?e._appendElement(t,Z.HTML):Qi(e,t),t.ackSelfClosing=!0}function e6(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Z.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Ta(e,t){switch(t.tagID){case m.TD:case m.TH:case m.TR:{XR(e,t);break}case m.STYLE:case m.SCRIPT:case m.TEMPLATE:{Qn(e,t);break}case m.COL:{KR(e,t);break}case m.FORM:{e6(e,t);break}case m.TABLE:{JR(e,t);break}case m.TBODY:case m.TFOOT:case m.THEAD:{QR(e,t);break}case m.INPUT:{ZR(e,t);break}case m.CAPTION:{VR(e,t);break}case m.COLGROUP:{YR(e,t);break}default:Qi(e,t)}}function Li(e,t){switch(t.tagID){case m.TABLE:{e.openElements.hasInTableScope(m.TABLE)&&(e.openElements.popUntilTagNamePopped(m.TABLE),e._resetInsertionMode());break}case m.TEMPLATE:{Fo(e,t);break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TBODY:case m.TD:case m.TFOOT:case m.TH:case m.THEAD:case m.TR:break;default:Qi(e,t)}}function Qi(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,oc(e,t),e.fosterParentingEnabled=n}function Oy(e,t){e.pendingCharacterTokens.push(t)}function My(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Wa(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Qi(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Fy=new Set([m.CAPTION,m.COL,m.COLGROUP,m.TBODY,m.TD,m.TFOOT,m.TH,m.THEAD,m.TR]);function t6(e,t){const n=t.tagID;Fy.has(n)?e.openElements.hasInTableScope(m.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=P.IN_TABLE,Ta(e,t)):cn(e,t)}function n6(e,t){const n=t.tagID;switch(n){case m.CAPTION:case m.TABLE:{e.openElements.hasInTableScope(m.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=P.IN_TABLE,n===m.TABLE&&Li(e,t));break}case m.BODY:case m.COL:case m.COLGROUP:case m.HTML:case m.TBODY:case m.TD:case m.TFOOT:case m.TH:case m.THEAD:case m.TR:break;default:ac(e,t)}}function bh(e,t){switch(t.tagID){case m.HTML:{cn(e,t);break}case m.COL:{e._appendElement(t,Z.HTML),t.ackSelfClosing=!0;break}case m.TEMPLATE:{Qn(e,t);break}default:xl(e,t)}}function r6(e,t){switch(t.tagID){case m.COLGROUP:{e.openElements.currentTagId===m.COLGROUP&&(e.openElements.pop(),e.insertionMode=P.IN_TABLE);break}case m.TEMPLATE:{Fo(e,t);break}case m.COL:break;default:xl(e,t)}}function xl(e,t){e.openElements.currentTagId===m.COLGROUP&&(e.openElements.pop(),e.insertionMode=P.IN_TABLE,e._processToken(t))}function ic(e,t){switch(t.tagID){case m.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Z.HTML),e.insertionMode=P.IN_ROW;break}case m.TH:case m.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(H.TR,m.TR),e.insertionMode=P.IN_ROW,sc(e,t);break}case m.CAPTION:case m.COL:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=P.IN_TABLE,Ta(e,t));break}default:Ta(e,t)}}function Zu(e,t){const n=t.tagID;switch(t.tagID){case m.TBODY:case m.TFOOT:case m.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=P.IN_TABLE);break}case m.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=P.IN_TABLE,Li(e,t));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TD:case m.TH:case m.TR:break;default:Li(e,t)}}function sc(e,t){switch(t.tagID){case m.TH:case m.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,Z.HTML),e.insertionMode=P.IN_CELL,e.activeFormattingElements.insertMarker();break}case m.CAPTION:case m.COL:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:case m.TR:{e.openElements.hasInTableScope(m.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=P.IN_TABLE_BODY,ic(e,t));break}default:Ta(e,t)}}function By(e,t){switch(t.tagID){case m.TR:{e.openElements.hasInTableScope(m.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=P.IN_TABLE_BODY);break}case m.TABLE:{e.openElements.hasInTableScope(m.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=P.IN_TABLE_BODY,Zu(e,t));break}case m.TBODY:case m.TFOOT:case m.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(m.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=P.IN_TABLE_BODY,Zu(e,t));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TD:case m.TH:break;default:Li(e,t)}}function o6(e,t){const n=t.tagID;Fy.has(n)?(e.openElements.hasInTableScope(m.TD)||e.openElements.hasInTableScope(m.TH))&&(e._closeTableCell(),sc(e,t)):cn(e,t)}function a6(e,t){const n=t.tagID;switch(n){case m.TD:case m.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=P.IN_ROW);break}case m.TABLE:case m.TBODY:case m.TFOOT:case m.THEAD:case m.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),By(e,t));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:break;default:ac(e,t)}}function jy(e,t){switch(t.tagID){case m.HTML:{cn(e,t);break}case m.OPTION:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e._insertElement(t,Z.HTML);break}case m.OPTGROUP:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e.openElements.currentTagId===m.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Z.HTML);break}case m.HR:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e.openElements.currentTagId===m.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Z.HTML),t.ackSelfClosing=!0;break}case m.INPUT:case m.KEYGEN:case m.TEXTAREA:case m.SELECT:{e.openElements.hasInSelectScope(m.SELECT)&&(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),t.tagID!==m.SELECT&&e._processStartTag(t));break}case m.SCRIPT:case m.TEMPLATE:{Qn(e,t);break}}}function Hy(e,t){switch(t.tagID){case m.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===m.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===m.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===m.OPTGROUP&&e.openElements.pop();break}case m.OPTION:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop();break}case m.SELECT:{e.openElements.hasInSelectScope(m.SELECT)&&(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode());break}case m.TEMPLATE:{Fo(e,t);break}}}function i6(e,t){const n=t.tagID;n===m.CAPTION||n===m.TABLE||n===m.TBODY||n===m.TFOOT||n===m.THEAD||n===m.TR||n===m.TD||n===m.TH?(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),e._processStartTag(t)):jy(e,t)}function s6(e,t){const n=t.tagID;n===m.CAPTION||n===m.TABLE||n===m.TBODY||n===m.TFOOT||n===m.THEAD||n===m.TR||n===m.TD||n===m.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Hy(e,t)}function l6(e,t){switch(t.tagID){case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:case m.NOFRAMES:case m.SCRIPT:case m.STYLE:case m.TEMPLATE:case m.TITLE:{Qn(e,t);break}case m.CAPTION:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:{e.tmplInsertionModeStack[0]=P.IN_TABLE,e.insertionMode=P.IN_TABLE,Ta(e,t);break}case m.COL:{e.tmplInsertionModeStack[0]=P.IN_COLUMN_GROUP,e.insertionMode=P.IN_COLUMN_GROUP,bh(e,t);break}case m.TR:{e.tmplInsertionModeStack[0]=P.IN_TABLE_BODY,e.insertionMode=P.IN_TABLE_BODY,ic(e,t);break}case m.TD:case m.TH:{e.tmplInsertionModeStack[0]=P.IN_ROW,e.insertionMode=P.IN_ROW,sc(e,t);break}default:e.tmplInsertionModeStack[0]=P.IN_BODY,e.insertionMode=P.IN_BODY,cn(e,t)}}function c6(e,t){t.tagID===m.TEMPLATE&&Fo(e,t)}function Uy(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(m.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):yh(e,t)}function u6(e,t){t.tagID===m.HTML?cn(e,t):Tl(e,t)}function zy(e,t){var n;if(t.tagID===m.HTML){if(e.fragmentContext||(e.insertionMode=P.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===m.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Tl(e,t)}function Tl(e,t){e.insertionMode=P.IN_BODY,oc(e,t)}function d6(e,t){switch(t.tagID){case m.HTML:{cn(e,t);break}case m.FRAMESET:{e._insertElement(t,Z.HTML);break}case m.FRAME:{e._appendElement(t,Z.HTML),t.ackSelfClosing=!0;break}case m.NOFRAMES:{Qn(e,t);break}}}function h6(e,t){t.tagID===m.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==m.FRAMESET&&(e.insertionMode=P.AFTER_FRAMESET))}function p6(e,t){switch(t.tagID){case m.HTML:{cn(e,t);break}case m.NOFRAMES:{Qn(e,t);break}}}function f6(e,t){t.tagID===m.HTML&&(e.insertionMode=P.AFTER_AFTER_FRAMESET)}function m6(e,t){t.tagID===m.HTML?cn(e,t):Fs(e,t)}function Fs(e,t){e.insertionMode=P.IN_BODY,oc(e,t)}function g6(e,t){switch(t.tagID){case m.HTML:{cn(e,t);break}case m.NOFRAMES:{Qn(e,t);break}}}function y6(e,t){t.chars=Ct,e._insertCharacters(t)}function b6(e,t){e._insertCharacters(t),e.framesetOk=!1}function Gy(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Z.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function E6(e,t){if(LP(t))Gy(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Z.MATHML?Iy(t):r===Z.SVG&&($P(t),_y(t)),mh(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function x6(e,t){if(t.tagID===m.P||t.tagID===m.BR){Gy(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Z.HTML){e._endTagOutsideForeignContent(t);break}const o=e.treeAdapter.getTagName(r);if(o.toLowerCase()===t.tagName){t.tagName=o,e.openElements.shortenToLength(n);break}}}H.AREA,H.BASE,H.BASEFONT,H.BGSOUND,H.BR,H.COL,H.EMBED,H.FRAME,H.HR,H.IMG,H.INPUT,H.KEYGEN,H.LINK,H.META,H.PARAM,H.SOURCE,H.TRACK,H.WBR;const bo={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Xf=/[#.]/g;function T6(e,t){const n=e||"",r={};let o=0,a,i;for(;o<n.length;){Xf.lastIndex=o;const s=Xf.exec(n),l=n.slice(o,s?s.index:n.length);l&&(a?a==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:i=l,o+=l.length),s&&(a=s[0],o++)}return{type:"element",tagName:i||t||"div",properties:r,children:[]}}function qy(e,t,n){const r=n?k6(n):void 0;function o(a,i,...s){let l;if(a==null){l={type:"root",children:[]};const c=i;s.unshift(c)}else{l=T6(a,t);const c=l.tagName.toLowerCase(),d=r?r.get(c):void 0;if(l.tagName=d||c,C6(i))s.unshift(i);else for(const[u,h]of Object.entries(i))v6(e,l.properties,u,h)}for(const c of s)ed(l.children,c);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return o}function C6(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const o=t[r];if(o&&typeof o=="object"){if(!Array.isArray(o))return!0;const a=o;for(const i of a)if(typeof i!="number"&&typeof i!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function v6(e,t,n,r){const o=qi(e,n);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?o.spaceSeparated?a=Mu(r):o.commaSeparated?a=Ou(r):o.commaOrSpaceSeparated?a=Mu(Ou(r).join(" ")):a=Jf(o,o.property,r):Array.isArray(r)?a=[...r]:a=o.property==="style"?S6(r):String(r);if(Array.isArray(a)){const i=[];for(const s of a)i.push(Jf(o,o.property,s));a=i}o.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[o.property]=a}}function ed(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)ed(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?ed(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Jf(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Ai(n)===Ai(t)))return!0}return n}function S6(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function k6(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const A6=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],I6=qy(ka,"div"),_6=qy(Rr,"g",A6);function D6(e){const t=String(e),n=[];return{toOffset:o,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let i=0;for(;;){let s=n[i];if(s===void 0){const l=Zf(t,n[i-1]);s=l===-1?t.length+1:l+1,n[i]=s}if(s>a)return{line:i+1,column:a-(i>0?n[i-1]:0)+1,offset:a};i++}}}function o(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const s=n[n.length-1],l=Zf(t,s),c=l===-1?t.length+1:l+1;if(s===c)break;n.push(c)}const i=(a.line>1?n[a.line-2]:0)+a.column-1;if(i<n[a.line-1])return i}}}function Zf(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
141
+ `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Wy={}.hasOwnProperty,w6=Object.prototype;function N6(e,t){const n=t||{};return Eh({file:n.file||void 0,location:!1,schema:n.space==="svg"?Rr:ka,verbose:n.verbose||!1},e)}function Eh(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Bs(e,r,n),n}case"#document":case"#document-fragment":{const r=t,o="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Vy(e,t.childNodes),data:{quirksMode:o}},e.file&&e.location){const a=String(e.file),i=D6(a),s=i.toPoint(0),l=i.toPoint(a.length);n.position={start:s,end:l}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Bs(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Bs(e,r,n),n}default:return n=P6(e,t),n}}function Vy(e,t){let n=-1;const r=[];for(;++n<t.length;){const o=Eh(e,t[n]);r.push(o)}return r}function P6(e,t){const n=e.schema;e.schema=t.namespaceURI===bo.svg?Rr:ka;let r=-1;const o={};for(;++r<t.attrs.length;){const i=t.attrs[r],s=(i.prefix?i.prefix+":":"")+i.name;Wy.call(w6,s)||(o[s]=i.value)}const a=(e.schema.space==="svg"?_6:I6)(t.tagName,o,Vy(e,t.childNodes));if(Bs(e,t,a),a.tagName==="template"){const i=t,s=i.sourceCodeLocation,l=s&&s.startTag&&ca(s.startTag),c=s&&s.endTag&&ca(s.endTag),d=Eh(e,i.content);l&&c&&e.file&&(d.position={start:l.end,end:c.start}),a.content=d}return e.schema=n,a}function Bs(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=R6(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function R6(e,t,n){const r=ca(n);if(t.type==="element"){const o=t.children[t.children.length-1];if(r&&!n.endTag&&o&&o.position&&o.position.end&&(r.end=Object.assign({},o.position.end)),e.verbose){const a={};let i;if(n.attrs)for(i in n.attrs)Wy.call(n.attrs,i)&&(a[qi(e.schema,i).property]=ca(n.attrs[i]));n.startTag;const s=ca(n.startTag),l=n.endTag?ca(n.endTag):void 0,c={opening:s};l&&(c.closing=l),c.properties=a,t.data={position:c}}}return r}function ca(e){const t=em({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=em({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function em(e){return e.line&&e.column?e:void 0}let Xi=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};Xi.prototype.property={};Xi.prototype.normal={};Xi.prototype.space=null;function Yy(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new Xi(n,r,t)}function td(e){return e.toLowerCase()}let Gn=class{constructor(t,n){this.property=t,this.attribute=n}};Gn.prototype.space=null;Gn.prototype.boolean=!1;Gn.prototype.booleanish=!1;Gn.prototype.overloadedBoolean=!1;Gn.prototype.number=!1;Gn.prototype.commaSeparated=!1;Gn.prototype.spaceSeparated=!1;Gn.prototype.commaOrSpaceSeparated=!1;Gn.prototype.mustUseProperty=!1;Gn.prototype.defined=!1;let L6=0;const Le=Bo(),Ot=Bo(),Ky=Bo(),ce=Bo(),ht=Bo(),pa=Bo(),vn=Bo();function Bo(){return 2**++L6}const nd=Object.freeze(Object.defineProperty({__proto__:null,boolean:Le,booleanish:Ot,commaOrSpaceSeparated:vn,commaSeparated:pa,number:ce,overloadedBoolean:Ky,spaceSeparated:ht},Symbol.toStringTag,{value:"Module"})),nu=Object.keys(nd);let xh=class extends Gn{constructor(t,n,r,o){let a=-1;if(super(t,n),tm(this,"space",o),typeof r=="number")for(;++a<nu.length;){const i=nu[a];tm(this,nu[a],(r&nd[i])===nd[i])}}};xh.prototype.defined=!0;function tm(e,t,n){n&&(e[t]=n)}const $6={}.hasOwnProperty;function _a(e){const t={},n={};let r;for(r in e.properties)if($6.call(e.properties,r)){const o=e.properties[r],a=new xh(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[td(r)]=r,n[td(a.attribute)]=r}return new Xi(t,n,e.space)}const Qy=_a({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Xy=_a({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Jy(e,t){return t in e?e[t]:t}function Zy(e,t){return Jy(e,t.toLowerCase())}const eb=_a({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Zy,properties:{xmlns:null,xmlnsXLink:null}}),tb=_a({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Ot,ariaAutoComplete:null,ariaBusy:Ot,ariaChecked:Ot,ariaColCount:ce,ariaColIndex:ce,ariaColSpan:ce,ariaControls:ht,ariaCurrent:null,ariaDescribedBy:ht,ariaDetails:null,ariaDisabled:Ot,ariaDropEffect:ht,ariaErrorMessage:null,ariaExpanded:Ot,ariaFlowTo:ht,ariaGrabbed:Ot,ariaHasPopup:null,ariaHidden:Ot,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ht,ariaLevel:ce,ariaLive:null,ariaModal:Ot,ariaMultiLine:Ot,ariaMultiSelectable:Ot,ariaOrientation:null,ariaOwns:ht,ariaPlaceholder:null,ariaPosInSet:ce,ariaPressed:Ot,ariaReadOnly:Ot,ariaRelevant:null,ariaRequired:Ot,ariaRoleDescription:ht,ariaRowCount:ce,ariaRowIndex:ce,ariaRowSpan:ce,ariaSelected:Ot,ariaSetSize:ce,ariaSort:null,ariaValueMax:ce,ariaValueMin:ce,ariaValueNow:ce,ariaValueText:null,role:null}}),O6=_a({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Zy,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:pa,acceptCharset:ht,accessKey:ht,action:null,allow:null,allowFullScreen:Le,allowPaymentRequest:Le,allowUserMedia:Le,alt:null,as:null,async:Le,autoCapitalize:null,autoComplete:ht,autoFocus:Le,autoPlay:Le,blocking:ht,capture:null,charSet:null,checked:Le,cite:null,className:ht,cols:ce,colSpan:null,content:null,contentEditable:Ot,controls:Le,controlsList:ht,coords:ce|pa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Le,defer:Le,dir:null,dirName:null,disabled:Le,download:Ky,draggable:Ot,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Le,formTarget:null,headers:ht,height:ce,hidden:Le,high:ce,href:null,hrefLang:null,htmlFor:ht,httpEquiv:ht,id:null,imageSizes:null,imageSrcSet:null,inert:Le,inputMode:null,integrity:null,is:null,isMap:Le,itemId:null,itemProp:ht,itemRef:ht,itemScope:Le,itemType:ht,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Le,low:ce,manifest:null,max:null,maxLength:ce,media:null,method:null,min:null,minLength:ce,multiple:Le,muted:Le,name:null,nonce:null,noModule:Le,noValidate:Le,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Le,optimum:ce,pattern:null,ping:ht,placeholder:null,playsInline:Le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Le,referrerPolicy:null,rel:ht,required:Le,reversed:Le,rows:ce,rowSpan:ce,sandbox:ht,scope:null,scoped:Le,seamless:Le,selected:Le,shadowRootClonable:Le,shadowRootDelegatesFocus:Le,shadowRootMode:null,shape:null,size:ce,sizes:null,slot:null,span:ce,spellCheck:Ot,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ce,step:null,style:null,tabIndex:ce,target:null,title:null,translate:null,type:null,typeMustMatch:Le,useMap:null,value:Ot,width:ce,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ht,axis:null,background:null,bgColor:null,border:ce,borderColor:null,bottomMargin:ce,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Le,declare:Le,event:null,face:null,frame:null,frameBorder:null,hSpace:ce,leftMargin:ce,link:null,longDesc:null,lowSrc:null,marginHeight:ce,marginWidth:ce,noResize:Le,noHref:Le,noShade:Le,noWrap:Le,object:null,profile:null,prompt:null,rev:null,rightMargin:ce,rules:null,scheme:null,scrolling:Ot,standby:null,summary:null,text:null,topMargin:ce,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ce,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Le,disableRemotePlayback:Le,prefix:null,property:null,results:ce,security:null,unselectable:null}}),M6=_a({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Jy,properties:{about:vn,accentHeight:ce,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ce,amplitude:ce,arabicForm:null,ascent:ce,attributeName:null,attributeType:null,azimuth:ce,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ce,by:null,calcMode:null,capHeight:ce,className:ht,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ce,diffuseConstant:ce,direction:null,display:null,dur:null,divisor:ce,dominantBaseline:null,download:Le,dx:null,dy:null,edgeMode:null,editable:null,elevation:ce,enableBackground:null,end:null,event:null,exponent:ce,externalResourcesRequired:null,fill:null,fillOpacity:ce,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:pa,g2:pa,glyphName:pa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ce,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ce,horizOriginX:ce,horizOriginY:ce,id:null,ideographic:ce,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ce,k:ce,k1:ce,k2:ce,k3:ce,k4:ce,kernelMatrix:vn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ce,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ce,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ce,overlineThickness:ce,paintOrder:null,panose1:null,path:null,pathLength:ce,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ht,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ce,pointsAtY:ce,pointsAtZ:ce,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:vn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:vn,rev:vn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:vn,requiredFeatures:vn,requiredFonts:vn,requiredFormats:vn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ce,specularExponent:ce,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ce,strikethroughThickness:ce,string:null,stroke:null,strokeDashArray:vn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ce,strokeOpacity:ce,strokeWidth:null,style:null,surfaceScale:ce,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:vn,tabIndex:ce,tableValues:null,target:null,targetX:ce,targetY:ce,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:vn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ce,underlineThickness:ce,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ce,values:null,vAlphabetic:ce,vMathematical:ce,vectorEffect:null,vHanging:ce,vIdeographic:ce,version:null,vertAdvY:ce,vertOriginX:ce,vertOriginY:ce,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ce,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),F6=Yy([Xy,Qy,eb,tb,O6],"html"),nb=Yy([Xy,Qy,eb,tb,M6],"svg"),B6=/^data[-\w.:]+$/i,nm=/-[a-z]/g,j6=/[A-Z]/g;function H6(e,t){const n=td(t);let r=t,o=Gn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&B6.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(nm,z6);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!nm.test(a)){let i=a.replace(j6,U6);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}o=xh}return new o(r,t)}function U6(e){return"-"+e.toLowerCase()}function z6(e){return e.charAt(1).toUpperCase()}const G6={},q6={}.hasOwnProperty,rb=Ul("type",{handlers:{root:V6,element:J6,text:Q6,comment:X6,doctype:K6}});function W6(e,t){const n=(t||G6).space;return rb(e,n==="svg"?nb:F6)}function V6(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Th(e.children,n,t),Da(e,n),n}function Y6(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Th(e.children,n,t),Da(e,n),n}function K6(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Da(e,t),t}function Q6(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Da(e,t),t}function X6(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Da(e,t),t}function J6(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=nb);const o=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&q6.call(e.properties,a)){const l=Z6(r,a,e.properties[a]);l&&o.push(l)}}const i=r.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:o,namespaceURI:bo[i],childNodes:[],parentNode:null};return s.childNodes=Th(e.children,s,r),Da(e,s),e.tagName==="template"&&e.content&&(s.content=Y6(e.content,r)),s}function Z6(e,t,n){const r=H6(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?zl(n):Gl(n));const o={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=o.name.indexOf(":");a<0?o.prefix="":(o.name=o.name.slice(a+1),o.prefix=r.attribute.slice(0,a)),o.namespace=bo[r.space]}return o}function Th(e,t,n){let r=-1;const o=[];if(e)for(;++r<e.length;){const a=rb(e[r],n);a.parentNode=t,o.push(a)}return o}function Da(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const e4=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,t4=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),rm={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function ob(e,t){const n=d4(e),r=Ul("type",{handlers:{root:n4,element:r4,text:o4,comment:ib,doctype:a4,raw:s4},unknown:l4}),o={parser:n?new Yf(rm):Yf.getFragmentParser(void 0,rm),handle(s){r(s,o)},stitches:!1,options:t||{}};r(e,o),wa(o,fr());const a=n?o.parser.document:o.parser.getFragment(),i=N6(a,{file:o.options.file});return o.stitches&&xn(i,"comment",function(s,l,c){const d=s;if(d.value.stitch&&c&&l!==void 0){const u=c.children;return u[l]=d.value.stitch,l}}),i.type==="root"&&i.children.length===1&&i.children[0].type===e.type?i.children[0]:i}function ab(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function n4(e,t){ab(e.children,t)}function r4(e,t){c4(e,t),ab(e.children,t),u4(e,t)}function o4(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Be.CHARACTER,chars:e.value,location:Ji(e)};wa(t,fr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function a4(e,t){const n={type:Be.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Ji(e)};wa(t,fr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function i4(e,t){t.stitches=!0;const n=h4(e);if("children"in e&&"children"in n){const r=ob({type:"root",children:e.children},t.options);n.children=r.children}ib({type:"comment",value:{stitch:n}},t)}function ib(e,t){const n=e.value,r={type:Be.COMMENT,data:n,location:Ji(e)};wa(t,fr(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function s4(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,sb(t,fr(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(e4,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function l4(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))i4(n,t);else{let r="";throw t4.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function wa(e,t){sb(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Nt.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function sb(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function c4(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Nt.PLAINTEXT)return;wa(t,fr(e));const r=t.parser.openElements.current;let o="namespaceURI"in r?r.namespaceURI:bo.html;o===bo.html&&n==="svg"&&(o=bo.svg);const a=W6({...e,children:[]},{space:o===bo.svg?"svg":"html"}),i={type:Be.START_TAG,tagName:n,tagID:Ia(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:Ji(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function u4(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&h0.includes(n)||t.parser.tokenizer.state===Nt.PLAINTEXT)return;wa(t,rc(e));const r={type:Be.END_TAG,tagName:n,tagID:Ia(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Ji(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Nt.RCDATA||t.parser.tokenizer.state===Nt.RAWTEXT||t.parser.tokenizer.state===Nt.SCRIPT_DATA)&&(t.parser.tokenizer.state=Nt.DATA)}function d4(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Ji(e){const t=fr(e)||{line:void 0,column:void 0,offset:void 0},n=rc(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function h4(e){return"children"in e?wo({...e,children:[]}):wo(e)}function p4(e){return function(t,n){return ob(t,{...e,file:n})}}var f4=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],m4=e=>e;const g4=O.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:o,style:a,disableCopy:i=!1,skipHtml:s=!0,onScroll:l,onMouseOver:c,pluginsFilter:d,wrapperElement:u={},warpperElement:h={},urlTransform:p}=e,g=rn(e,f4),b=O.useRef(null);O.useImperativeHandle(t,()=>ne({},e,{mdp:b}),[b,e]);var x=(n||"")+" "+(r||"");qI(b);var E=[...g.rehypePlugins||[]],v={allowElement:(w,S,M)=>g.allowElement?g.allowElement(w,S,M):/^[A-Za-z0-9]+$/.test(w.tagName)};s||E.push(p4);var C=[HI,...g.remarkPlugins||[],lw],I=ne({},h,u);return f.jsx("div",ne({ref:b,onScroll:l,onMouseOver:c},I,{className:x,style:a,children:f.jsx(q3,ne({},v,g,{skipHtml:!s,urlTransform:p||m4,rehypePlugins:d?d("rehype",E):E,remarkPlugins:d?d("remark",C):C,children:o||""}))}))});var js={},rd={};function y4(e,t){for(var n=t,r=0;r<e.length;r++){var o=r===e.length-1,a=e.charAt(r),i=n[a]||(n[a]={chars:{}});o&&(i.self=e),n=i.chars}}function om(e){if(e.length===0)return js;for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];y4(o,t)}return t}function b4(e){if(e.length===0)return rd;for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];t[o]=!0}return t}var vs={},am={type:"String",optional:!0};function E4(e){var t={type:"NoArgument",optional:!1};function n(i){if(t.type&&t.type!==i&&t.type!=="NoArgument")throw new Error('Conflicting pseudo-class argument type: "'.concat(t.type,'" vs "').concat(i,'".'));t.type=i}for(var r=0,o=e;r<o.length;r++){var a=o[r];a==="NoArgument"&&(t.optional=!0),a==="Formula"&&n("Formula"),a==="FormulaOfSelector"&&(n("Formula"),t.ofSelector=!0),a==="String"&&n("String"),a==="Selector"&&n("Selector")}return t}function x4(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var o=r[n],a=e[o];if(a)for(var i=0,s=a;i<s.length;i++){var l=s[i];(t[l]||(t[l]=[])).push(o)}}return t}function im(e){for(var t=x4(e),n={},r=0,o=Object.keys(t);r<o.length;r++){var a=o[r],i=t[a];i&&(n[a]=E4(i))}return n}var Ca=function(){return Ca=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ca.apply(this,arguments)},T4={},od={wildcard:!0};function C4(e){return e?typeof e=="boolean"?od:e:T4}function v4(e,t){return function(n,r){return t(e(n),e(r))}}function S4(e){return function(t,n){var r=e(t,n);if(!r)throw new Error("Syntax definition cannot be null or undefined.");return r}}function sm(e,t){return function(n,r){return r===!0?e:t(n===!0?e:n,r)}}function Jo(e){return function(t,n){if(!n||!t)return n;if(typeof n!="object"||n===null)throw new Error("Unexpected syntax definition extension type: ".concat(n,"."));for(var r=Ca({},t),o=0,a=Object.entries(n);o<a.length;o++){var i=a[o],s=i[0],l=i[1];if(s!=="latest"){var c=e[s];r[s]=c(t[s],l)}}return r}}function Tr(e,t){return t!==void 0?t:e}function Ss(e,t){return t?e?e.concat(t):t:e}function lm(e,t){if(!t)return e;if(!e)return t;for(var n=Ca({},e),r=0,o=Object.entries(t);r<o.length;r++){var a=o[r],i=a[0],s=a[1];if(!s){delete n[i];continue}var l=e[i];if(!l){n[i]=s;continue}n[i]=l.concat(s)}return n}var ko=S4(Jo({baseSyntax:Tr,modules:Ss,tag:sm(od,Jo({wildcard:Tr})),ids:Tr,classNames:Tr,namespace:sm(od,Jo({wildcard:Tr})),combinators:Ss,attributes:Jo({operators:Ss,caseSensitivityModifiers:Ss,unknownCaseSensitivityModifiers:Tr}),pseudoClasses:Jo({unknown:Tr,definitions:lm}),pseudoElements:Jo({unknown:Tr,notation:Tr,definitions:v4(function(e){return Array.isArray(e)?{NoArgument:e}:e},lm)})})),lb={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},cb=ko(lb,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),ad=ko(cb,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),ub=ko(ad,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid","playing","paused","autofill","modal","fullscreen","picture-in-picture","defined","loading","popover-open"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has","state"]}},pseudoElements:{definitions:{NoArgument:["marker"]}}}),Cl={"css-position-1":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute"]}}},"css-position-2":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute","fixed"]}}},"css-position-3":{latest:!1,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static"]}}},"css-position-4":{latest:!0,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static","initial"]}}},"css-scoping-1":{latest:!0,pseudoClasses:{definitions:{NoArgument:["host","host-context"],Selector:["host","host-context"]}},pseudoElements:{definitions:{Selector:["slotted"]}}},"css-pseudo-4":{latest:!0,pseudoElements:{definitions:{NoArgument:["marker","selection","target-text","search-text","spelling-error","grammar-error","backdrop","file-selector-button","prefix","postfix","placeholder","details-content"],String:["highlight"]}}},"css-shadow-parts-1":{latest:!0,pseudoElements:{definitions:{String:["part"]}}}},db=Ca(Ca({},ub),{modules:Object.entries(Cl).filter(function(e){var t=e[1].latest;return t}).map(function(e){var t=e[0];return t})}),k4=ko(db,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),id={css1:lb,css2:cb,css3:ad,"selectors-3":ad,"selectors-4":ub,latest:db,progressive:k4};function A4(){for(var e={pseudoClasses:{},pseudoElements:{}},t=["css1","css2","css3","selectors-3","selectors-4"],n=0,r=t;n<r.length;n++){var o=r[n],a=id[o];if(a.pseudoClasses&&typeof a.pseudoClasses=="object"){var i=a.pseudoClasses.definitions;if(i)for(var s=0,l=Object.entries(i);s<l.length;s++)for(var c=l[s],d=c[1],u=0,h=d;u<h.length;u++){var p=h[u];e.pseudoClasses[p]||(e.pseudoClasses[p]=[]),e.pseudoClasses[p].includes(o)||e.pseudoClasses[p].push(o)}}if(a.pseudoElements&&typeof a.pseudoElements=="object"){var i=a.pseudoElements.definitions;if(i)if(Array.isArray(i))for(var g=0,b=i;g<b.length;g++){var x=b[g];e.pseudoElements[x]||(e.pseudoElements[x]=[]),e.pseudoElements[x].includes(o)||e.pseudoElements[x].push(o)}else for(var E=0,v=Object.values(i);E<v.length;E++)for(var d=v[E],C=0,I=d;C<I.length;C++){var w=I[C];e.pseudoElements[w]||(e.pseudoElements[w]=[]),e.pseudoElements[w].includes(o)||e.pseudoElements[w].push(o)}}}for(var S=0,M=Object.entries(Cl);S<M.length;S++){var q=M[S],B=q[0],y=q[1];if(y.pseudoClasses&&typeof y.pseudoClasses=="object"){var i=y.pseudoClasses.definitions;if(i)for(var R=0,F=Object.values(i);R<F.length;R++)for(var d=F[R],$=0,U=d;$<U.length;$++){var Y=U[$];e.pseudoClasses[Y]||(e.pseudoClasses[Y]=[]),e.pseudoClasses[Y].includes(B)||e.pseudoClasses[Y].push(B)}}if(y.pseudoElements&&typeof y.pseudoElements=="object"){var i=y.pseudoElements.definitions;if(i)if(Array.isArray(i))for(var re=0,fe=i;re<fe.length;re++){var ue=fe[re];e.pseudoElements[ue]||(e.pseudoElements[ue]=[]),e.pseudoElements[ue].includes(B)||e.pseudoElements[ue].push(B)}else for(var X=0,A=Object.values(i);X<A.length;X++)for(var d=A[X],de=0,ee=d;de<ee.length;de++){var k=ee[de];e.pseudoElements[k]||(e.pseudoElements[k]=[]),e.pseudoElements[k].includes(B)||e.pseudoElements[k].push(B)}}}return e}var cm=A4();function Va(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function um(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function Ya(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var I4={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},_4={'"':!0,"'":!0},ru={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},D4=6,ou="css-selector-parser parse error: ";function w4(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,o=e.strict,a=o===void 0?!0:o,i=e.modules,s=typeof n=="object"?n:id[n];if(s.baseSyntax&&(s=ko(id[s.baseSyntax],s)),s.modules&&s.modules.length>0)for(var l=0,c=s.modules;l<c.length;l++){var d=c[l],u=Cl[d];u&&(s=ko(u,s))}if(i&&i.length>0)for(var h=0,p=i;h<p.length;h++){var g=p[h],u=Cl[g];u&&(s=ko(u,s))}var b=s.tag?[!0,!!C4(s.tag).wildcard]:[!1,!1],x=b[0],E=b[1],v=!!s.ids,C=!!s.classNames,I=!!s.namespace,w=s.namespace&&(s.namespace===!0||s.namespace.wildcard===!0);if(I&&!x)throw new Error("".concat(ou,"Namespaces cannot be enabled while tags are disabled."));var S=!!r,M=s.combinators?om(s.combinators):js,q=s.attributes?[!0,s.attributes.operators?om(s.attributes.operators):js,s.attributes.caseSensitivityModifiers?b4(s.attributes.caseSensitivityModifiers):rd,s.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,js,rd,!1],B=q[0],y=q[1],R=q[2],F=q[3],$=F||Object.keys(R).length>0,U=s.pseudoClasses?[!0,s.pseudoClasses.definitions?im(s.pseudoClasses.definitions):vs,s.pseudoClasses.unknown==="accept"]:[!1,vs,!1],Y=U[0],re=U[1],fe=U[2],ue=s.pseudoElements?[!0,s.pseudoElements.notation==="singleColon"||s.pseudoElements.notation==="both",!s.pseudoElements.notation||s.pseudoElements.notation==="doubleColon"||s.pseudoElements.notation==="both",s.pseudoElements.definitions?im(Array.isArray(s.pseudoElements.definitions)?{NoArgument:s.pseudoElements.definitions}:s.pseudoElements.definitions):vs,s.pseudoElements.unknown==="accept"]:[!1,!1,!1,vs,!1],X=ue[0],A=ue[1],de=ue[2],ee=ue[3],k=ue[4],J="",Ee=J.length,he=0,ye="",me=function(ie){return ye===ie},Fe=function(){return me("*")||Va(ye)},Oe=function(ie){he=ie,ye=J.charAt(he)},Te=function(){he++,ye=J.charAt(he)},gt=function(){var ie=ye;return he++,ye=J.charAt(he),ie};function Ze(ie){var te=Math.min(Ee-1,he),Me=new Error("".concat(ou).concat(ie," Pos: ").concat(te,"."));throw Me.position=te,Me.name="ParserError",Me}function be(ie,te){if(!ie)return Ze(te)}var Xt=function(){be(he<Ee,"Unexpected end of input.")},vt=function(){return he>=Ee},De=function(ie){be(he<Ee,'Expected "'.concat(ie,'" but end of input reached.')),be(ye===ie,'Expected "'.concat(ie,'" but "').concat(ye,'" found.')),he++,ye=J.charAt(he)};function wt(ie){var te=yt(ie,he);if(te)return he+=te.length,ye=J.charAt(he),te}function yt(ie,te){var Me=J.charAt(te),Pe=ie[Me];if(Pe){var zt=yt(Pe.chars,te+1);if(zt)return zt;if(Pe.self)return Pe.self}}function bt(){for(var ie=gt(),te=1;Ya(ye)&&te<D4;)ie+=gt(),te++;return Or(),String.fromCharCode(parseInt(ie,16))}function ke(ie){var te="";for(De(ie);he<Ee;){if(me(ie))return Te(),te;me("\\")?(Te(),me(ie)?(te+=ie,Te()):ye===`
142
142
  `||ye==="\f"?Te():ye==="\r"?(Te(),me(`
143
143
  `)&&Te()):Ya(ye)?te+=bt():(te+=ye,Te())):(te+=ye,Te())}return te}function ge(){if(!Va(ye))return null;for(var ie="";me("-");)ie+=ye,Te();for(ie==="-"&&!um(ye)&&!me("\\")&&Ze("Identifiers cannot consist of a single hyphen."),a&&ie.length>=2&&Ze("Identifiers cannot start with two hyphens with strict mode on."),ru[ye]&&Ze("Identifiers cannot start with hyphens followed by digits.");he<Ee;)if(um(ye))ie+=gt();else if(me("\\"))Te(),Xt(),Ya(ye)?ie+=bt():ie+=gt();else break;return ie}function Wn(){for(var ie="";he<Ee&&!me(")");)if(me("\\")){if(Te(),vt()&&!a)return(ie+"\\").trim();Xt(),Ya(ye)?ie+=bt():ie+=gt()}else ie+=gt();return ie.trim()}function Or(){if(ye===" "||ye===" "||ye==="\f"||ye===`
144
144
  `){Te();return}ye==="\r"&&Te(),ye===`
145
- `&&Te()}function Ve(){for(;I4[ye];)Te()}function V(ie){ie===void 0&&(ie=!1),Ve();for(var te=[Zt(ie)];me(",");)Te(),Ve(),te.push(Zt(ie));return{type:"Selector",rules:te}}function oe(){De("["),Ve();var ie;if(me("|")){be(I,"Namespaces are not enabled."),Te();var te=ge();be(te,"Expected attribute name."),ie={type:"Attribute",name:te,namespace:{type:"NoNamespace"}}}else if(me("*")){be(I,"Namespaces are not enabled."),be(N,"Wildcard namespace is not enabled."),Te(),De("|");var Me=ge();be(Me,"Expected attribute name."),ie={type:"Attribute",name:Me,namespace:{type:"WildcardNamespace"}}}else{var Pe=ge();if(be(Pe,"Expected attribute name."),ie={type:"Attribute",name:Pe},me("|")){var zt=he;if(Te(),Va(ye)){be(I,"Namespaces are not enabled.");var Jn=ge();be(Jn,"Expected attribute name."),ie={type:"Attribute",name:Jn,namespace:{type:"NamespaceName",name:Pe}}}else Oe(zt)}}if(be(ie.name,"Expected attribute name."),Ve(),vt()&&!a)return ie;if(me("]"))Te();else{if(ie.operator=wt(y),be(ie.operator,"Expected a valid attribute selector operator."),Ve(),Xt(),_4[ye])ie.value={type:"String",value:ke(ye)};else if(S&&me("$")){Te();var Vn=ge();be(Vn,"Expected substitute name."),ie.value={type:"Substitution",name:Vn}}else{var Zn=ge();be(Zn,"Expected attribute value."),ie.value={type:"String",value:Zn}}if(Ve(),vt()&&!a)return ie;if(!me("]")){var gn=ge();if(be(gn,"Expected end of attribute selector."),ie.caseSensitivityModifier=gn,be($,"Attribute case sensitivity modifiers are not enabled."),be(F||R[ie.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),Ve(),vt()&&!a)return ie}De("]")}return ie}function Ae(){for(var ie="";ru[ye];)ie+=gt();return be(ie!=="","Formula parse error."),parseInt(ie)}var Ue=function(){return me("-")||me("+")||ru[ye]};function We(){if(me("e")||me("o")){var ie=ge();if(ie==="even")return Ve(),[2,0];if(ie==="odd")return Ve(),[2,1]}var te=null,Me=1;if(me("-")&&(Te(),Me=-1),Ue()&&(me("+")&&Te(),te=Ae(),!me("\\")&&!me("n")))return[0,te*Me];te===null&&(te=1),te*=Me;var Pe;if(me("\\")?(Te(),Ya(ye)?Pe=bt():Pe=gt()):Pe=gt(),be(Pe==="n",'Formula parse error: expected "n".'),Ve(),me("+")||me("-")){var zt=me("+")?1:-1;return Te(),Ve(),[te,zt*Ae()]}else return[te,0]}function et(ie,te,Me){var Pe;if(me("(")){if(Te(),Ve(),S&&me("$")){Te();var zt=ge();be(zt,"Expected substitute name."),Pe={type:"Substitution",name:zt}}else if(Me.type==="String")Pe={type:"String",value:Wn()},be(Pe.value,"Expected ".concat(te," argument value."));else if(Me.type==="Selector")Pe=V(!0);else if(Me.type==="Formula"){var Jn=We(),Vn=Jn[0],Zn=Jn[1];if(Pe={type:"Formula",a:Vn,b:Zn},Me.ofSelector&&(Ve(),me("o")||me("\\"))){var gn=ge();be(gn==="of","Formula of selector parse error."),Ve(),Pe={type:"FormulaOfSelector",a:Vn,b:Zn,selector:Zt()}}}else return Ze("Invalid ".concat(te," signature."));if(Ve(),vt()&&!a)return Pe;De(")")}else be(Me.optional,"Argument is required for ".concat(te,' "').concat(ie,'".'));return Pe}function Jt(){if(me("*"))return be(E,"Wildcard tag name is not enabled."),Te(),{type:"WildcardTag"};if(Va(ye)){be(x,"Tag names are not enabled.");var ie=ge();return be(ie,"Expected tag name."),{type:"TagName",name:ie}}else return Ze("Expected tag name.")}function Kt(){if(me("*")){var ie=he;if(Te(),!me("|")||(Te(),!Fe()))return Oe(ie),Jt();be(I,"Namespaces are not enabled."),be(N,"Wildcard namespace is not enabled.");var te=Jt();return te.namespace={type:"WildcardNamespace"},te}else if(me("|")){be(I,"Namespaces are not enabled."),Te();var te=Jt();return te.namespace={type:"NoNamespace"},te}else if(Va(ye)){var Me=ge();if(be(Me,"Expected tag name."),!me("|"))return be(x,"Tag names are not enabled."),{type:"TagName",name:Me};var ie=he;if(Te(),!Fe())return Oe(ie),{type:"TagName",name:Me};be(I,"Namespaces are not enabled.");var te=Jt();return te.namespace={type:"NamespaceName",name:Me},te}else return Ze("Expected tag name.")}function Zt(ie){var te,Me;ie===void 0&&(ie=!1);var Pe={type:"Rule",items:[]};if(ie){var zt=wt(M);zt&&(Pe.combinator=zt,Ve())}for(;he<Ee;)if(Fe())be(Pe.items.length===0,"Unexpected tag/namespace start."),Pe.items.push(Kt());else if(me("|")){var Jn=he;if(Te(),Fe())be(Pe.items.length===0,"Unexpected tag/namespace start."),Oe(Jn),Pe.items.push(Kt());else{Oe(Jn);break}}else if(me(".")){be(C,"Class names are not enabled."),Te();var Vn=ge();be(Vn,"Expected class name."),Pe.items.push({type:"ClassName",name:Vn})}else if(me("#")){be(v,"IDs are not enabled."),Te();var Zn=ge();be(Zn,"Expected ID name."),Pe.items.push({type:"Id",name:Zn})}else if(me("["))be(B,"Attributes are not enabled."),Pe.items.push(oe());else if(me(":")){var gn=!1,oo=!1;Te(),me(":")&&(be(X,"Pseudo elements are not enabled."),be(de,"Pseudo elements double colon notation is not enabled."),gn=!0,Te());var Lt=ge();if(be(gn||Lt,"Expected pseudo-class name."),be(!gn||Lt,"Expected pseudo-element name."),be(Lt,"Expected pseudo-class name."),!(!gn||k||Object.prototype.hasOwnProperty.call(ee,Lt))){var yr=cm.pseudoElements[Lt],ao='Unknown pseudo-element "'.concat(Lt,'"');yr&&yr.length>0&&(ao+=". It is defined in: ".concat(yr.join(", "))),Ze(ao+".")}if(oo=X&&(gn||!gn&&A&&Object.prototype.hasOwnProperty.call(ee,Lt)),oo){var L=(te=ee[Lt])!==null&&te!==void 0?te:k&&am,j={type:"PseudoElement",name:Lt},z=et(Lt,"pseudo-element",L);z&&(be(z.type!=="Formula"&&z.type!=="FormulaOfSelector","Pseudo-elements cannot have formula argument."),j.argument=z),Pe.items.push(j)}else{be(Y,"Pseudo-classes are not enabled.");var L=(Me=re[Lt])!==null&&Me!==void 0?Me:fe&&am;if(!L){var yr=cm.pseudoClasses[Lt],ao='Unknown pseudo-class: "'.concat(Lt,'"');yr&&yr.length>0&&(ao+=". It is defined in: ".concat(yr.join(", "))),Ze(ao+".")}var z=et(Lt,"pseudo-class",L),se={type:"PseudoClass",name:Lt};z&&(se.argument=z),Pe.items.push(se)}}else break;if(Pe.items.length===0)return vt()?Ze("Expected rule but end of input reached."):Ze('Expected rule but "'.concat(ye,'" found.'));if(Ve(),!vt()&&!me(",")&&!me(")")){var zt=wt(M);Ve(),Pe.nestedRule=Zt(),Pe.nestedRule.combinator=zt}return Pe}return function(ie){if(typeof ie!="string")throw new Error("".concat(ou,"Expected string input."));return J=ie,Ee=J.length,he=0,ye=J.charAt(0),V()}}const N4=w4({syntax:"selectors-4"});function P4(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return N4(e)}const hb="֑-߿יִ-﷽ﹰ-ﻼ",pb="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",R4=new RegExp("^[^"+pb+"]*["+hb+"]"),L4=new RegExp("^[^"+hb+"]*["+pb+"]");function $4(e){const t=String(e||"");return R4.test(t)?"rtl":L4.test(t)?"ltr":"neutral"}function fb(e){return"children"in e?mb(e):"value"in e?e.value:""}function O4(e){return e.type==="text"?e.value:"children"in e?mb(e):""}function mb(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=O4(e.children[t]);return n.join("")}function M4(e,t){const n=e.schema,r=e.language,o=e.direction,a=e.editableOrEditingHost;let i;if(t.type==="element"){const c=t.properties.xmlLang||t.properties.lang,d=t.properties.type||"text",u=dm(t);c!=null&&(e.language=String(c)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=Rr),u==="rtl"?i=u:u==="ltr"||u!=="auto"&&t.tagName==="html"||u!=="auto"&&t.tagName==="input"&&d==="tel"?i="ltr":(u==="auto"||t.tagName==="bdi")&&(t.tagName==="textarea"?i=au(fb(t)):t.tagName==="input"&&(d==="email"||d==="search"||d==="tel"||d==="text")?i=t.properties.value?au(String(t.properties.value)):"ltr":xn(t,l)),i&&(e.direction=i)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return s;function s(){e.schema=n,e.language=r,e.direction=o,e.editableOrEditingHost=a}function l(c){if(c.type==="text")return i=au(c.value),i?ml:void 0;if(c!==t&&c.type==="element"&&(c.tagName==="bdi"||c.tagName==="script"||c.tagName==="style"||c.tagName==="textare"||dm(c)))return ui}}function au(e){const t=$4(e);return t==="neutral"?void 0:t}function dm(e){const t=e.type==="element"&&typeof e.properties.dir=="string"?e.properties.dir.toLowerCase():void 0;return t==="auto"||t==="ltr"||t==="rtl"?t:void 0}function F4(e,t,n){const r=qi(n,e.name),o=t.properties[r.property];let a=B4(o,r);if(!e.value)return a!==void 0;e.value.type;let i=e.value.value;if(e.caseSensitivityModifier==="i"&&(i=i.toLowerCase(),a&&(a=a.toLowerCase())),a!==void 0)switch(e.operator){case"=":return i===a;case"$=":return i===a.slice(-i.length);case"*=":return a.includes(i);case"^=":return i===a.slice(0,i.length);case"|=":return i===a||i===a.slice(0,i.length)&&a.charAt(i.length)==="-";case"~=":return i===a||Mu(a).includes(i)}return!1}function B4(e,t){if(e!=null)if(typeof e=="boolean"){if(e)return t.attribute}else if(Array.isArray(e)){if(e.length>0)return(t.commaSeparated?zl:Gl)(e)}else return String(e)}const j4=[];function H4(e,t){return(t.properties.className||j4).includes(e.name)}function U4(e,t){return t.properties.id===e.name}function z4(e,t){return e.name===t.tagName}function G4(e,t){return function(n,r){let o=hm(n,"tag");const a=hm(r??"*","range"),i=[];let s=-1;for(;++s<a.length;){const l=a[s].toLowerCase();let c=-1;const d=[];for(;++c<o.length;)e(o[c].toLowerCase(),l)?i.push(o[c]):d.push(o[c]);o=d}return i}}const q4=G4(function(e,t){const n=e.split("-"),r=t.split("-");let o=0,a=0;if(r[a]!=="*"&&n[o]!==r[a])return!1;for(o++,a++;a<r.length;){if(r[a]==="*"){a++;continue}if(!n[o])return!1;if(n[o]===r[a]){o++,a++;continue}if(n[o].length===1)return!1;o++}return!0});function hm(e,t){const n=e&&typeof e=="string"?[e]:e;if(!n||typeof n!="object"||!("length"in n))throw new Error("Invalid "+t+" `"+n+"`, expected non-empty string");return n}const W4=new Set([9,10,12,13,32]),pm=48,V4=57;function Y4(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,n=0,r=a(),o=i();if(t<e.length&&e.charAt(t)==="n"&&(t++,n=r*(o??1),s(),t<e.length?(r=a(),s(),o=i()):r=o=0),o===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[n,r*o];function a(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function i(){const l=t;let c=0;for(;t<e.length&&e.charCodeAt(t)>=pm&&e.charCodeAt(t)<=V4;)c=c*10+(e.charCodeAt(t)-pm),t++;return t===l?null:c}function s(){for(;t<e.length&&W4.has(e.charCodeAt(t));)t++}}var fm,mm;function K4(){return mm||(mm=1,fm={trueFunc:function(){return!0},falseFunc:function(){return!1}}),fm}var Q4=K4();const gm=Kl(Q4);function X4(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return gm.falseFunc;if(t===-1)return a=>a<=n;if(t===0)return a=>a===n;if(t===1)return n<0?gm.trueFunc:a=>a>=n;const r=Math.abs(t),o=(n%r+r)%r;return t>1?a=>a>=n&&a%r===o:a=>a<=n&&a%r===o}function ym(e){return X4(Y4(e))}const J4={}.hasOwnProperty;function No(e,t){const n=e.type==="element"&&J4.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}const Z4=ym.default||ym,eL=Ul("name",{handlers:{"any-link":tL,blank:nL,checked:rL,dir:oL,disabled:gb,empty:aL,enabled:iL,"first-child":sL,"first-of-type":lL,has:cL,is:yb,lang:dL,"last-child":hL,"last-of-type":pL,not:fL,"nth-child":mL,"nth-last-child":gL,"nth-last-of-type":yL,"nth-of-type":bL,"only-child":EL,"only-of-type":xL,optional:TL,"read-only":CL,"read-write":bb,required:Eb,root:vL,scope:SL},invalid:uL,unknown:kL});function tL(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&No(t,"href")}function mr(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function nL(e,t){return!xb(t,n);function n(r){return r.type==="element"||r.type==="text"&&!Gi(r)}}function rL(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&No(t,"checked")):t.tagName==="option"?No(t,"selected"):!1}function oL(e,t,n,r,o){return e.argument,e.argument.type,o.direction===e.argument.value}function gb(e,t){return(t.tagName==="button"||t.tagName==="input"||t.tagName==="select"||t.tagName==="textarea"||t.tagName==="optgroup"||t.tagName==="option"||t.tagName==="menuitem"||t.tagName==="fieldset")&&No(t,"disabled")}function aL(e,t){return!xb(t,n);function n(r){return r.type==="element"||r.type==="text"}}function iL(e,t){return!gb(e,t)}function sL(e,t,n,r,o){return mr(o,e),o.elementIndex===0}function lL(e,t,n,r,o){return mr(o,e),o.typeIndex===0}function lc(e){let t=e._cachedFn;if(!t){const n=e.argument;if(n.type!=="Formula")throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");t=Z4(n.a+"n+"+n.b),e._cachedFn=t}return t}function cL(e,t,n,r,o){e.argument,e.argument.type;const a={...o,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return Ch(a,{type:"root",children:t.children}),a.results.length>0}function uL(){}function yb(e,t,n,r,o){e.argument,e.argument.type;const a={...o,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return Ch(a,t),a.results[0]===t}function dL(e,t,n,r,o){return e.argument,e.argument.type,o.language!==""&&o.language!==void 0&&q4(o.language,Ou(e.argument.value)).length>0}function hL(e,t,n,r,o){return mr(o,e),!!(o.elementCount&&o.elementIndex===o.elementCount-1)}function pL(e,t,n,r,o){return mr(o,e),typeof o.typeIndex=="number"&&typeof o.typeCount=="number"&&o.typeIndex===o.typeCount-1}function fL(e,t,n,r,o){return!yb(e,t,n,r,o)}function mL(e,t,n,r,o){const a=lc(e);return mr(o,e),typeof o.elementIndex=="number"&&a(o.elementIndex)}function gL(e,t,n,r,o){const a=lc(e);return mr(o,e),!!(typeof o.elementCount=="number"&&typeof o.elementIndex=="number"&&a(o.elementCount-o.elementIndex-1))}function yL(e,t,n,r,o){const a=lc(e);return mr(o,e),typeof o.typeCount=="number"&&typeof o.typeIndex=="number"&&a(o.typeCount-1-o.typeIndex)}function bL(e,t,n,r,o){const a=lc(e);return mr(o,e),typeof o.typeIndex=="number"&&a(o.typeIndex)}function EL(e,t,n,r,o){return mr(o,e),o.elementCount===1}function xL(e,t,n,r,o){return mr(o,e),o.typeCount===1}function TL(e,t){return!Eb(e,t)}function CL(e,t,n,r,o){return!bb(e,t,n,r,o)}function bb(e,t,n,r,o){return t.tagName==="input"||t.tagName==="textarea"?!No(t,"readOnly")&&!No(t,"disabled"):!!o.editableOrEditingHost}function Eb(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&No(t,"required")}function vL(e,t,n,r,o){return!!((!r||r.type==="root")&&o.schema&&(o.schema.space==="html"||o.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function SL(e,t,n,r,o){return o.scopeElements.includes(t)}function xb(e,t){const n=e.children;let r=-1;for(;++r<n.length;)if(t(n[r]))return!0;return!1}function kL(e){const t=e;throw new Error("Unknown pseudo-selector `"+t.name+"`")}function AL(e,t,n,r,o){for(const a of e.items)if(a.type==="Attribute"){if(!F4(a,t,o.schema))return!1}else if(a.type==="Id"){if(!U4(a,t))return!1}else if(a.type==="ClassName"){if(!H4(a,t))return!1}else if(a.type==="PseudoClass"){if(!eL(a,t,n,r,o))return!1}else{if(a.type==="PseudoElement")throw new Error("Invalid selector: `::"+a.name+"`");if(a.type==="TagName"&&!z4(a,t))return!1}return!0}const IL=[];function Ch(e,t){t&&Tb(e,[],t,void 0,void 0,t)}function iu(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function _L(e,t,n,r){const o=Hs(t.descendant,t.directChild);let a,i=-1;const s={count:0,types:new Map},l={count:0,types:new Map};for(;++i<n.children.length;)bm(s,n.children[i]);for(i=-1;++i<n.children.length;){const c=n.children[i],d=c.type==="element"?c.tagName.toUpperCase():void 0;if(e.elementIndex=l.count,e.typeIndex=d&&l.types.get(d)||0,e.elementCount=s.count,e.typeCount=d?s.types.get(d):0,"children"in c){const u=Hs(o,a),h=Tb(e,u,n.children[i],i,n,r);a=Hs(h.generalSibling,h.adjacentSibling)}if(e.one&&e.found)break;bm(l,n.children[i])}}function DL(e,t,n,r,o){const a={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};let i=-1;for(;++i<t.length;){const s=t[i];if(e.one&&e.found)break;if(e.shallow&&s.nestedRule)throw new Error("Expected selector without nesting");if(AL(s,n,r,o,e)){const l=s.nestedRule;if(l){const c=l.combinator==="+"?"adjacentSibling":l.combinator==="~"?"generalSibling":l.combinator===">"?"directChild":"descendant";iu(a,c,l)}else e.found=!0,e.results.includes(n)||e.results.push(n)}s.combinator===void 0?iu(a,"descendant",s):s.combinator==="~"&&iu(a,"generalSibling",s)}return a}function Hs(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:IL}function bm(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}function Tb(e,t,n,r,o,a){let i={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const s=M4(e,n);if(n.type==="element"){let l=e.rootQuery.rules;o&&o!==a&&(l=e.rootQuery.rules.filter(c=>c.combinator===void 0||c.combinator===">"&&o===a)),i=DL(e,Hs(t,l),n,r,o)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&_L(e,i,n,a),s(),i}function wL(e,t,n){const r=NL(e,t);return Ch(r,t||void 0),r.results}function NL(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:P4(e),schema:ka,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const Cb=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=Cb(n.children))}),t),PL=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const o=wL(t,r);o&&o.length>0&&xn(r,o,(a,i,s)=>{n(a,i,s)});return}xn(r,(o,a,i)=>{n(o,a,i)})}}},RL=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),LL=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},vb=(e=[],t,n,r)=>{let o=t;for(;o<e.length;)if(o++,n){const a=e[o];if(a&&a.value&&a.value.replace(/(\n|\s)/g,"")!==""||e[o]&&e[o].type==="element")return a.tagName===n?a:void 0}else{const a=e[o];if(!a||a.type==="element"||a.type==="text"&&a.value.replace(/(\n|\s)/g,"")!=="")return;if(a.type&&/^(comment|raw)$/ig.test(a.type))return a.value&&!/^rehype:/.test(a.value.replace(/^(\s+)?<!--(.*?)-->/,"$2")||"")?void 0:r?vb(e,o,"pre",r)?void 0:(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a):(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a)}},Em=({value:e=""})=>{const t=RL(e.replace(/^<!--(.*?)-->/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},xm=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},$L=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{xn(r,"element",(o,a,i)=>{if(n&&o.tagName==="pre"&&o&&Array.isArray(o.children)&&i&&Array.isArray(i.children)&&i.children.length>1){const s=o.children[0];if(s&&s.tagName==="code"&&typeof a=="number"){const l=LL(i.children,a);if(l){const c=Em(l);Object.keys(c).length>0&&(o.properties={...o.properties,"data-type":"rehyp"},s.properties=xm(s.properties,c,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(o.tagName)&&i&&Array.isArray(i.children)&&typeof a=="number"){const s=vb(i.children,a,"",n);if(s){const l=Em(s);Object.keys(l).length>0&&(o.properties=xm(o.properties,l,t))}}})}};var OL=function(e){return t=>{xn(t,n=>{n.type==="element"&&n.tagName==="code"&&n.data&&n.data.meta&&(n.properties=ne({},n.properties,{"data-meta":String(n.data.meta)}))})}},ML=function(e){return t=>{xn(t,n=>{if(n.type==="element"&&n.tagName==="code"&&n.properties&&n.properties.dataMeta){n.data||(n.data={});var r=n.properties.dataMeta;typeof r=="string"&&(n.data.meta=r),delete n.properties.dataMeta}})}};const FL=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{xn(r,(o,a,i)=>{if(o.type==="element"||o.type==="root"){let s=!1;o.children=o.children.filter(l=>{if(l.type==="raw"||l.type==="comment"){let c=(l.value||"").trim();if(c=c.replace(/^<!--(.*?)-->/,"$1"),c===t)return s=!0,!1;if(c===n)return s=!1,!1}return!s})}})}};var BL={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function jL(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}const HL=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,UL=Object.hasOwnProperty;let zL=class{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let o=GL(t,n===!0);const a=o;for(;UL.call(r.occurrences,o);)r.occurrences[a]++,o=a+"-"+r.occurrences[a];return r.occurrences[o]=0,o}reset(){this.occurrences=Object.create(null)}};function GL(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(HL,"").replace(/ /g,"-"))}function Sb(e){const t=e.type==="element"?e.tagName.toLowerCase():"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}const qL={},Tm=new zL;function WL(e){const t=(e||qL).prefix||"";return function(n){Tm.reset(),xn(n,"element",function(r){Sb(r)&&!r.properties.id&&(r.properties.id=t+Tm.slug(fb(r)))})}}const kb=function(e){if(e==null)return KL;if(typeof e=="string")return YL(e);if(typeof e=="object")return VL(e);if(typeof e=="function")return vh(e);throw new Error("Expected function, string, or array as `test`")};function VL(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=kb(e[n]);return vh(r);function r(...o){let a=-1;for(;++a<t.length;)if(t[a].apply(this,o))return!0;return!1}}function YL(e){return vh(t);function t(n){return n.tagName===e}}function vh(e){return t;function t(n,r,o){return!!(QL(n)&&e.call(this,n,typeof r=="number"?r:void 0,o||void 0))}}function KL(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function QL(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const Cm={type:"element",tagName:"span",properties:{className:["icon","icon-link"]},children:[]},XL={};function JL(e){const t=e||XL;let n=t.properties;const r=t.headingProperties,o=t.behavior||"prepend",a=t.content,i=t.group,s=kb(t.test);let l;return o==="after"||o==="before"?l=d:o==="wrap"?l=u:(l=c,n||(n={ariaHidden:"true",tabIndex:-1})),function(h){xn(h,"element",function(p,g,b){if(Sb(p)&&p.properties.id&&s(p,g,b))return Object.assign(p.properties,ks(r,p)),l(p,g,b)})};function c(h){const p=vm(a||Cm,h);return h.children[o==="prepend"?"unshift":"push"](su(h,ks(n,h),p)),[ui]}function d(h,p,g){if(typeof p!="number"||!g)return;const b=vm(a||Cm,h),x=su(h,ks(n,h),b);let E=o==="before"?[x,h]:[h,x];if(i){const v=Ab(i,h);v&&!Array.isArray(v)&&v.type==="element"&&(v.children=E,E=[v])}return g.children.splice(p,1,...E),[ui,p+E.length]}function u(h){let p=h.children,g=[];return typeof a=="function"?(p=[],g=a(h)):a&&(g=Sh(a)),h.children=[su(h,ks(n,h),Array.isArray(g)?[...p,...g]:[...p,g])],[ui]}}function Sh(e){return wo(e)}function su(e,t,n){return{type:"element",tagName:"a",properties:{...t,href:"#"+e.properties.id},children:n}}function vm(e,t){const n=Ab(e,t);return Array.isArray(n)?n:[n]}function Ab(e,t){return typeof e=="function"?e(t):Sh(e)}function ks(e,t){return typeof e=="function"?e(t):e?Sh(e):{}}var ZL=(e,t)=>(n,r,o)=>{if(n.type==="element"&&o&&o.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var a=n.children&&n.children[0];a&&a.properties&&a.properties.ariaHidden==="true"&&(a.properties=ne({class:"anchor"},a.properties),a.children=[BL])}if(n.type==="element"&&n.tagName==="pre"&&!e){var i=Cb(n.children);n.children.push(jL(i))}t&&t(n,r===null?void 0:r,o===null?void 0:o)},e$=[WL,JL,FL];const Ib=O.forwardRef((e,t)=>{var n,r=[OL,ML,...e$,[PL,{rewrite:ZL((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[$L,{properties:"attr"}],...e.rehypePlugins||[]];return f.jsx(g4,ne({},e,{rehypePlugins:r,ref:t}))});function t$(e,t){return ne({},e,t)}var Na=O.createContext({markdown:""});function _b(e,t){return e===void 0&&(e=[]),t===void 0&&(t={}),e.forEach(n=>{n.children&&Array.isArray(n.children)?t=ne({},t,_b(n.children||[])):n.keyCommand&&n.shortcuts&&n.execute&&(t[n.shortcuts.toLocaleLowerCase()]=n)}),t}function Db(e,t,n,r,o){t===void 0&&(t=[]);var a=_b(t||[]),i=[];if(e.altKey&&i.push("alt"),e.shiftKey&&i.push("shift"),e.metaKey&&i.push("cmd"),e.ctrlKey&&i.push("ctrl"),i.length>0&&!/(control|alt|meta|shift)/.test(e.key.toLocaleLowerCase())&&i.push(e.key.toLocaleLowerCase()),/escape/.test(e.key.toLocaleLowerCase())&&i.push("escape"),!(i.length<1)){var s=!!a[i.join("+")],l=s?a[i.join("+")]:void 0;if(Object.keys(a).forEach(c=>{var d=c.split("+").every(u=>/ctrlcmd/.test(u)?i.includes("ctrl")||i.includes("cmd"):i.includes(u));d&&(l=a[c])}),l&&n){e.stopPropagation(),e.preventDefault(),n.executeCommand(l,r,o,i);return}}}var lu;function Sm(e){if(e.nodeName!=="TEXTAREA")return!1;if(typeof lu>"u"){var t=document.createElement("textarea");t.value="1",lu=!!t.firstChild}return lu}function fa(e,t){if(e.focus(),document.selection){var n=document.selection.createRange();n.text=t,n.collapse(!1),n.select();return}var r=!1;if(t!==""?r=document.execCommand&&document.execCommand("insertText",!1,t):r=document.execCommand&&document.execCommand("delete",!1),!r){var o=e.selectionStart,a=e.selectionEnd;if(typeof e.setRangeText=="function")e.setRangeText(t);else{var i=document.createRange(),s=document.createTextNode(t);if(Sm(e)){var l=e.firstChild;if(!l)e.appendChild(s);else{for(var c=0,d=null,u=null;l&&(d===null||u===null);){var h=l.nodeValue.length;o>=c&&o<=c+h&&i.setStart(d=l,o-c),a>=c&&a<=c+h&&i.setEnd(u=l,a-c),c+=h,l=l.nextSibling}o!==a&&i.deleteContents()}}if(Sm(e)&&i.commonAncestorContainer.nodeName==="#text")i.insertNode(s);else{var p=e.value;e.value=p.slice(0,o)+t+p.slice(a)}}e.setSelectionRange(o+t.length,o+t.length);var g=document.createEvent("UIEvent");g.initEvent("input",!0,!1),e.dispatchEvent(g)}}function mn(e){var{text:t,selection:n,prefix:r,suffix:o=r}=e,a=n;if(t&&t.length&&n.start===n.end&&(a=n$(t,n.start)),a.start>=r.length&&a.end<=t.length-o.length){var i=t.slice(a.start-r.length,a.end+o.length);if(i.startsWith(r)&&i.endsWith(o))return{start:a.start-r.length,end:a.end+o.length}}return a}function Ei(e){var{text:t,selection:n}=e,r=t.slice(0,n.start).lastIndexOf(`
145
+ `&&Te()}function Ve(){for(;I4[ye];)Te()}function V(ie){ie===void 0&&(ie=!1),Ve();for(var te=[Zt(ie)];me(",");)Te(),Ve(),te.push(Zt(ie));return{type:"Selector",rules:te}}function oe(){De("["),Ve();var ie;if(me("|")){be(I,"Namespaces are not enabled."),Te();var te=ge();be(te,"Expected attribute name."),ie={type:"Attribute",name:te,namespace:{type:"NoNamespace"}}}else if(me("*")){be(I,"Namespaces are not enabled."),be(w,"Wildcard namespace is not enabled."),Te(),De("|");var Me=ge();be(Me,"Expected attribute name."),ie={type:"Attribute",name:Me,namespace:{type:"WildcardNamespace"}}}else{var Pe=ge();if(be(Pe,"Expected attribute name."),ie={type:"Attribute",name:Pe},me("|")){var zt=he;if(Te(),Va(ye)){be(I,"Namespaces are not enabled.");var Jn=ge();be(Jn,"Expected attribute name."),ie={type:"Attribute",name:Jn,namespace:{type:"NamespaceName",name:Pe}}}else Oe(zt)}}if(be(ie.name,"Expected attribute name."),Ve(),vt()&&!a)return ie;if(me("]"))Te();else{if(ie.operator=wt(y),be(ie.operator,"Expected a valid attribute selector operator."),Ve(),Xt(),_4[ye])ie.value={type:"String",value:ke(ye)};else if(S&&me("$")){Te();var Vn=ge();be(Vn,"Expected substitute name."),ie.value={type:"Substitution",name:Vn}}else{var Zn=ge();be(Zn,"Expected attribute value."),ie.value={type:"String",value:Zn}}if(Ve(),vt()&&!a)return ie;if(!me("]")){var gn=ge();if(be(gn,"Expected end of attribute selector."),ie.caseSensitivityModifier=gn,be($,"Attribute case sensitivity modifiers are not enabled."),be(F||R[ie.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),Ve(),vt()&&!a)return ie}De("]")}return ie}function Ae(){for(var ie="";ru[ye];)ie+=gt();return be(ie!=="","Formula parse error."),parseInt(ie)}var Ue=function(){return me("-")||me("+")||ru[ye]};function We(){if(me("e")||me("o")){var ie=ge();if(ie==="even")return Ve(),[2,0];if(ie==="odd")return Ve(),[2,1]}var te=null,Me=1;if(me("-")&&(Te(),Me=-1),Ue()&&(me("+")&&Te(),te=Ae(),!me("\\")&&!me("n")))return[0,te*Me];te===null&&(te=1),te*=Me;var Pe;if(me("\\")?(Te(),Ya(ye)?Pe=bt():Pe=gt()):Pe=gt(),be(Pe==="n",'Formula parse error: expected "n".'),Ve(),me("+")||me("-")){var zt=me("+")?1:-1;return Te(),Ve(),[te,zt*Ae()]}else return[te,0]}function et(ie,te,Me){var Pe;if(me("(")){if(Te(),Ve(),S&&me("$")){Te();var zt=ge();be(zt,"Expected substitute name."),Pe={type:"Substitution",name:zt}}else if(Me.type==="String")Pe={type:"String",value:Wn()},be(Pe.value,"Expected ".concat(te," argument value."));else if(Me.type==="Selector")Pe=V(!0);else if(Me.type==="Formula"){var Jn=We(),Vn=Jn[0],Zn=Jn[1];if(Pe={type:"Formula",a:Vn,b:Zn},Me.ofSelector&&(Ve(),me("o")||me("\\"))){var gn=ge();be(gn==="of","Formula of selector parse error."),Ve(),Pe={type:"FormulaOfSelector",a:Vn,b:Zn,selector:Zt()}}}else return Ze("Invalid ".concat(te," signature."));if(Ve(),vt()&&!a)return Pe;De(")")}else be(Me.optional,"Argument is required for ".concat(te,' "').concat(ie,'".'));return Pe}function Jt(){if(me("*"))return be(E,"Wildcard tag name is not enabled."),Te(),{type:"WildcardTag"};if(Va(ye)){be(x,"Tag names are not enabled.");var ie=ge();return be(ie,"Expected tag name."),{type:"TagName",name:ie}}else return Ze("Expected tag name.")}function Kt(){if(me("*")){var ie=he;if(Te(),!me("|")||(Te(),!Fe()))return Oe(ie),Jt();be(I,"Namespaces are not enabled."),be(w,"Wildcard namespace is not enabled.");var te=Jt();return te.namespace={type:"WildcardNamespace"},te}else if(me("|")){be(I,"Namespaces are not enabled."),Te();var te=Jt();return te.namespace={type:"NoNamespace"},te}else if(Va(ye)){var Me=ge();if(be(Me,"Expected tag name."),!me("|"))return be(x,"Tag names are not enabled."),{type:"TagName",name:Me};var ie=he;if(Te(),!Fe())return Oe(ie),{type:"TagName",name:Me};be(I,"Namespaces are not enabled.");var te=Jt();return te.namespace={type:"NamespaceName",name:Me},te}else return Ze("Expected tag name.")}function Zt(ie){var te,Me;ie===void 0&&(ie=!1);var Pe={type:"Rule",items:[]};if(ie){var zt=wt(M);zt&&(Pe.combinator=zt,Ve())}for(;he<Ee;)if(Fe())be(Pe.items.length===0,"Unexpected tag/namespace start."),Pe.items.push(Kt());else if(me("|")){var Jn=he;if(Te(),Fe())be(Pe.items.length===0,"Unexpected tag/namespace start."),Oe(Jn),Pe.items.push(Kt());else{Oe(Jn);break}}else if(me(".")){be(C,"Class names are not enabled."),Te();var Vn=ge();be(Vn,"Expected class name."),Pe.items.push({type:"ClassName",name:Vn})}else if(me("#")){be(v,"IDs are not enabled."),Te();var Zn=ge();be(Zn,"Expected ID name."),Pe.items.push({type:"Id",name:Zn})}else if(me("["))be(B,"Attributes are not enabled."),Pe.items.push(oe());else if(me(":")){var gn=!1,oo=!1;Te(),me(":")&&(be(X,"Pseudo elements are not enabled."),be(de,"Pseudo elements double colon notation is not enabled."),gn=!0,Te());var Lt=ge();if(be(gn||Lt,"Expected pseudo-class name."),be(!gn||Lt,"Expected pseudo-element name."),be(Lt,"Expected pseudo-class name."),!(!gn||k||Object.prototype.hasOwnProperty.call(ee,Lt))){var yr=cm.pseudoElements[Lt],ao='Unknown pseudo-element "'.concat(Lt,'"');yr&&yr.length>0&&(ao+=". It is defined in: ".concat(yr.join(", "))),Ze(ao+".")}if(oo=X&&(gn||!gn&&A&&Object.prototype.hasOwnProperty.call(ee,Lt)),oo){var L=(te=ee[Lt])!==null&&te!==void 0?te:k&&am,j={type:"PseudoElement",name:Lt},z=et(Lt,"pseudo-element",L);z&&(be(z.type!=="Formula"&&z.type!=="FormulaOfSelector","Pseudo-elements cannot have formula argument."),j.argument=z),Pe.items.push(j)}else{be(Y,"Pseudo-classes are not enabled.");var L=(Me=re[Lt])!==null&&Me!==void 0?Me:fe&&am;if(!L){var yr=cm.pseudoClasses[Lt],ao='Unknown pseudo-class: "'.concat(Lt,'"');yr&&yr.length>0&&(ao+=". It is defined in: ".concat(yr.join(", "))),Ze(ao+".")}var z=et(Lt,"pseudo-class",L),se={type:"PseudoClass",name:Lt};z&&(se.argument=z),Pe.items.push(se)}}else break;if(Pe.items.length===0)return vt()?Ze("Expected rule but end of input reached."):Ze('Expected rule but "'.concat(ye,'" found.'));if(Ve(),!vt()&&!me(",")&&!me(")")){var zt=wt(M);Ve(),Pe.nestedRule=Zt(),Pe.nestedRule.combinator=zt}return Pe}return function(ie){if(typeof ie!="string")throw new Error("".concat(ou,"Expected string input."));return J=ie,Ee=J.length,he=0,ye=J.charAt(0),V()}}const N4=w4({syntax:"selectors-4"});function P4(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return N4(e)}const hb="֑-߿יִ-﷽ﹰ-ﻼ",pb="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",R4=new RegExp("^[^"+pb+"]*["+hb+"]"),L4=new RegExp("^[^"+hb+"]*["+pb+"]");function $4(e){const t=String(e||"");return R4.test(t)?"rtl":L4.test(t)?"ltr":"neutral"}function fb(e){return"children"in e?mb(e):"value"in e?e.value:""}function O4(e){return e.type==="text"?e.value:"children"in e?mb(e):""}function mb(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=O4(e.children[t]);return n.join("")}function M4(e,t){const n=e.schema,r=e.language,o=e.direction,a=e.editableOrEditingHost;let i;if(t.type==="element"){const c=t.properties.xmlLang||t.properties.lang,d=t.properties.type||"text",u=dm(t);c!=null&&(e.language=String(c)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=Rr),u==="rtl"?i=u:u==="ltr"||u!=="auto"&&t.tagName==="html"||u!=="auto"&&t.tagName==="input"&&d==="tel"?i="ltr":(u==="auto"||t.tagName==="bdi")&&(t.tagName==="textarea"?i=au(fb(t)):t.tagName==="input"&&(d==="email"||d==="search"||d==="tel"||d==="text")?i=t.properties.value?au(String(t.properties.value)):"ltr":xn(t,l)),i&&(e.direction=i)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return s;function s(){e.schema=n,e.language=r,e.direction=o,e.editableOrEditingHost=a}function l(c){if(c.type==="text")return i=au(c.value),i?ml:void 0;if(c!==t&&c.type==="element"&&(c.tagName==="bdi"||c.tagName==="script"||c.tagName==="style"||c.tagName==="textare"||dm(c)))return ui}}function au(e){const t=$4(e);return t==="neutral"?void 0:t}function dm(e){const t=e.type==="element"&&typeof e.properties.dir=="string"?e.properties.dir.toLowerCase():void 0;return t==="auto"||t==="ltr"||t==="rtl"?t:void 0}function F4(e,t,n){const r=qi(n,e.name),o=t.properties[r.property];let a=B4(o,r);if(!e.value)return a!==void 0;e.value.type;let i=e.value.value;if(e.caseSensitivityModifier==="i"&&(i=i.toLowerCase(),a&&(a=a.toLowerCase())),a!==void 0)switch(e.operator){case"=":return i===a;case"$=":return i===a.slice(-i.length);case"*=":return a.includes(i);case"^=":return i===a.slice(0,i.length);case"|=":return i===a||i===a.slice(0,i.length)&&a.charAt(i.length)==="-";case"~=":return i===a||Mu(a).includes(i)}return!1}function B4(e,t){if(e!=null)if(typeof e=="boolean"){if(e)return t.attribute}else if(Array.isArray(e)){if(e.length>0)return(t.commaSeparated?zl:Gl)(e)}else return String(e)}const j4=[];function H4(e,t){return(t.properties.className||j4).includes(e.name)}function U4(e,t){return t.properties.id===e.name}function z4(e,t){return e.name===t.tagName}function G4(e,t){return function(n,r){let o=hm(n,"tag");const a=hm(r??"*","range"),i=[];let s=-1;for(;++s<a.length;){const l=a[s].toLowerCase();let c=-1;const d=[];for(;++c<o.length;)e(o[c].toLowerCase(),l)?i.push(o[c]):d.push(o[c]);o=d}return i}}const q4=G4(function(e,t){const n=e.split("-"),r=t.split("-");let o=0,a=0;if(r[a]!=="*"&&n[o]!==r[a])return!1;for(o++,a++;a<r.length;){if(r[a]==="*"){a++;continue}if(!n[o])return!1;if(n[o]===r[a]){o++,a++;continue}if(n[o].length===1)return!1;o++}return!0});function hm(e,t){const n=e&&typeof e=="string"?[e]:e;if(!n||typeof n!="object"||!("length"in n))throw new Error("Invalid "+t+" `"+n+"`, expected non-empty string");return n}const W4=new Set([9,10,12,13,32]),pm=48,V4=57;function Y4(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,n=0,r=a(),o=i();if(t<e.length&&e.charAt(t)==="n"&&(t++,n=r*(o??1),s(),t<e.length?(r=a(),s(),o=i()):r=o=0),o===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[n,r*o];function a(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function i(){const l=t;let c=0;for(;t<e.length&&e.charCodeAt(t)>=pm&&e.charCodeAt(t)<=V4;)c=c*10+(e.charCodeAt(t)-pm),t++;return t===l?null:c}function s(){for(;t<e.length&&W4.has(e.charCodeAt(t));)t++}}var fm,mm;function K4(){return mm||(mm=1,fm={trueFunc:function(){return!0},falseFunc:function(){return!1}}),fm}var Q4=K4();const gm=Kl(Q4);function X4(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return gm.falseFunc;if(t===-1)return a=>a<=n;if(t===0)return a=>a===n;if(t===1)return n<0?gm.trueFunc:a=>a>=n;const r=Math.abs(t),o=(n%r+r)%r;return t>1?a=>a>=n&&a%r===o:a=>a<=n&&a%r===o}function ym(e){return X4(Y4(e))}const J4={}.hasOwnProperty;function No(e,t){const n=e.type==="element"&&J4.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}const Z4=ym.default||ym,eL=Ul("name",{handlers:{"any-link":tL,blank:nL,checked:rL,dir:oL,disabled:gb,empty:aL,enabled:iL,"first-child":sL,"first-of-type":lL,has:cL,is:yb,lang:dL,"last-child":hL,"last-of-type":pL,not:fL,"nth-child":mL,"nth-last-child":gL,"nth-last-of-type":yL,"nth-of-type":bL,"only-child":EL,"only-of-type":xL,optional:TL,"read-only":CL,"read-write":bb,required:Eb,root:vL,scope:SL},invalid:uL,unknown:kL});function tL(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&No(t,"href")}function mr(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function nL(e,t){return!xb(t,n);function n(r){return r.type==="element"||r.type==="text"&&!Gi(r)}}function rL(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&No(t,"checked")):t.tagName==="option"?No(t,"selected"):!1}function oL(e,t,n,r,o){return e.argument,e.argument.type,o.direction===e.argument.value}function gb(e,t){return(t.tagName==="button"||t.tagName==="input"||t.tagName==="select"||t.tagName==="textarea"||t.tagName==="optgroup"||t.tagName==="option"||t.tagName==="menuitem"||t.tagName==="fieldset")&&No(t,"disabled")}function aL(e,t){return!xb(t,n);function n(r){return r.type==="element"||r.type==="text"}}function iL(e,t){return!gb(e,t)}function sL(e,t,n,r,o){return mr(o,e),o.elementIndex===0}function lL(e,t,n,r,o){return mr(o,e),o.typeIndex===0}function lc(e){let t=e._cachedFn;if(!t){const n=e.argument;if(n.type!=="Formula")throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");t=Z4(n.a+"n+"+n.b),e._cachedFn=t}return t}function cL(e,t,n,r,o){e.argument,e.argument.type;const a={...o,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return Ch(a,{type:"root",children:t.children}),a.results.length>0}function uL(){}function yb(e,t,n,r,o){e.argument,e.argument.type;const a={...o,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return Ch(a,t),a.results[0]===t}function dL(e,t,n,r,o){return e.argument,e.argument.type,o.language!==""&&o.language!==void 0&&q4(o.language,Ou(e.argument.value)).length>0}function hL(e,t,n,r,o){return mr(o,e),!!(o.elementCount&&o.elementIndex===o.elementCount-1)}function pL(e,t,n,r,o){return mr(o,e),typeof o.typeIndex=="number"&&typeof o.typeCount=="number"&&o.typeIndex===o.typeCount-1}function fL(e,t,n,r,o){return!yb(e,t,n,r,o)}function mL(e,t,n,r,o){const a=lc(e);return mr(o,e),typeof o.elementIndex=="number"&&a(o.elementIndex)}function gL(e,t,n,r,o){const a=lc(e);return mr(o,e),!!(typeof o.elementCount=="number"&&typeof o.elementIndex=="number"&&a(o.elementCount-o.elementIndex-1))}function yL(e,t,n,r,o){const a=lc(e);return mr(o,e),typeof o.typeCount=="number"&&typeof o.typeIndex=="number"&&a(o.typeCount-1-o.typeIndex)}function bL(e,t,n,r,o){const a=lc(e);return mr(o,e),typeof o.typeIndex=="number"&&a(o.typeIndex)}function EL(e,t,n,r,o){return mr(o,e),o.elementCount===1}function xL(e,t,n,r,o){return mr(o,e),o.typeCount===1}function TL(e,t){return!Eb(e,t)}function CL(e,t,n,r,o){return!bb(e,t,n,r,o)}function bb(e,t,n,r,o){return t.tagName==="input"||t.tagName==="textarea"?!No(t,"readOnly")&&!No(t,"disabled"):!!o.editableOrEditingHost}function Eb(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&No(t,"required")}function vL(e,t,n,r,o){return!!((!r||r.type==="root")&&o.schema&&(o.schema.space==="html"||o.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function SL(e,t,n,r,o){return o.scopeElements.includes(t)}function xb(e,t){const n=e.children;let r=-1;for(;++r<n.length;)if(t(n[r]))return!0;return!1}function kL(e){const t=e;throw new Error("Unknown pseudo-selector `"+t.name+"`")}function AL(e,t,n,r,o){for(const a of e.items)if(a.type==="Attribute"){if(!F4(a,t,o.schema))return!1}else if(a.type==="Id"){if(!U4(a,t))return!1}else if(a.type==="ClassName"){if(!H4(a,t))return!1}else if(a.type==="PseudoClass"){if(!eL(a,t,n,r,o))return!1}else{if(a.type==="PseudoElement")throw new Error("Invalid selector: `::"+a.name+"`");if(a.type==="TagName"&&!z4(a,t))return!1}return!0}const IL=[];function Ch(e,t){t&&Tb(e,[],t,void 0,void 0,t)}function iu(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function _L(e,t,n,r){const o=Hs(t.descendant,t.directChild);let a,i=-1;const s={count:0,types:new Map},l={count:0,types:new Map};for(;++i<n.children.length;)bm(s,n.children[i]);for(i=-1;++i<n.children.length;){const c=n.children[i],d=c.type==="element"?c.tagName.toUpperCase():void 0;if(e.elementIndex=l.count,e.typeIndex=d&&l.types.get(d)||0,e.elementCount=s.count,e.typeCount=d?s.types.get(d):0,"children"in c){const u=Hs(o,a),h=Tb(e,u,n.children[i],i,n,r);a=Hs(h.generalSibling,h.adjacentSibling)}if(e.one&&e.found)break;bm(l,n.children[i])}}function DL(e,t,n,r,o){const a={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};let i=-1;for(;++i<t.length;){const s=t[i];if(e.one&&e.found)break;if(e.shallow&&s.nestedRule)throw new Error("Expected selector without nesting");if(AL(s,n,r,o,e)){const l=s.nestedRule;if(l){const c=l.combinator==="+"?"adjacentSibling":l.combinator==="~"?"generalSibling":l.combinator===">"?"directChild":"descendant";iu(a,c,l)}else e.found=!0,e.results.includes(n)||e.results.push(n)}s.combinator===void 0?iu(a,"descendant",s):s.combinator==="~"&&iu(a,"generalSibling",s)}return a}function Hs(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:IL}function bm(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}function Tb(e,t,n,r,o,a){let i={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const s=M4(e,n);if(n.type==="element"){let l=e.rootQuery.rules;o&&o!==a&&(l=e.rootQuery.rules.filter(c=>c.combinator===void 0||c.combinator===">"&&o===a)),i=DL(e,Hs(t,l),n,r,o)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&_L(e,i,n,a),s(),i}function wL(e,t,n){const r=NL(e,t);return Ch(r,t||void 0),r.results}function NL(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:P4(e),schema:ka,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const Cb=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=Cb(n.children))}),t),PL=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const o=wL(t,r);o&&o.length>0&&xn(r,o,(a,i,s)=>{n(a,i,s)});return}xn(r,(o,a,i)=>{n(o,a,i)})}}},RL=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),LL=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},vb=(e=[],t,n,r)=>{let o=t;for(;o<e.length;)if(o++,n){const a=e[o];if(a&&a.value&&a.value.replace(/(\n|\s)/g,"")!==""||e[o]&&e[o].type==="element")return a.tagName===n?a:void 0}else{const a=e[o];if(!a||a.type==="element"||a.type==="text"&&a.value.replace(/(\n|\s)/g,"")!=="")return;if(a.type&&/^(comment|raw)$/ig.test(a.type))return a.value&&!/^rehype:/.test(a.value.replace(/^(\s+)?<!--(.*?)-->/,"$2")||"")?void 0:r?vb(e,o,"pre",r)?void 0:(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a):(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a)}},Em=({value:e=""})=>{const t=RL(e.replace(/^<!--(.*?)-->/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},xm=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},$L=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{xn(r,"element",(o,a,i)=>{if(n&&o.tagName==="pre"&&o&&Array.isArray(o.children)&&i&&Array.isArray(i.children)&&i.children.length>1){const s=o.children[0];if(s&&s.tagName==="code"&&typeof a=="number"){const l=LL(i.children,a);if(l){const c=Em(l);Object.keys(c).length>0&&(o.properties={...o.properties,"data-type":"rehyp"},s.properties=xm(s.properties,c,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(o.tagName)&&i&&Array.isArray(i.children)&&typeof a=="number"){const s=vb(i.children,a,"",n);if(s){const l=Em(s);Object.keys(l).length>0&&(o.properties=xm(o.properties,l,t))}}})}};var OL=function(e){return t=>{xn(t,n=>{n.type==="element"&&n.tagName==="code"&&n.data&&n.data.meta&&(n.properties=ne({},n.properties,{"data-meta":String(n.data.meta)}))})}},ML=function(e){return t=>{xn(t,n=>{if(n.type==="element"&&n.tagName==="code"&&n.properties&&n.properties.dataMeta){n.data||(n.data={});var r=n.properties.dataMeta;typeof r=="string"&&(n.data.meta=r),delete n.properties.dataMeta}})}};const FL=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{xn(r,(o,a,i)=>{if(o.type==="element"||o.type==="root"){let s=!1;o.children=o.children.filter(l=>{if(l.type==="raw"||l.type==="comment"){let c=(l.value||"").trim();if(c=c.replace(/^<!--(.*?)-->/,"$1"),c===t)return s=!0,!1;if(c===n)return s=!1,!1}return!s})}})}};var BL={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function jL(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}const HL=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,UL=Object.hasOwnProperty;let zL=class{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let o=GL(t,n===!0);const a=o;for(;UL.call(r.occurrences,o);)r.occurrences[a]++,o=a+"-"+r.occurrences[a];return r.occurrences[o]=0,o}reset(){this.occurrences=Object.create(null)}};function GL(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(HL,"").replace(/ /g,"-"))}function Sb(e){const t=e.type==="element"?e.tagName.toLowerCase():"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}const qL={},Tm=new zL;function WL(e){const t=(e||qL).prefix||"";return function(n){Tm.reset(),xn(n,"element",function(r){Sb(r)&&!r.properties.id&&(r.properties.id=t+Tm.slug(fb(r)))})}}const kb=function(e){if(e==null)return KL;if(typeof e=="string")return YL(e);if(typeof e=="object")return VL(e);if(typeof e=="function")return vh(e);throw new Error("Expected function, string, or array as `test`")};function VL(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=kb(e[n]);return vh(r);function r(...o){let a=-1;for(;++a<t.length;)if(t[a].apply(this,o))return!0;return!1}}function YL(e){return vh(t);function t(n){return n.tagName===e}}function vh(e){return t;function t(n,r,o){return!!(QL(n)&&e.call(this,n,typeof r=="number"?r:void 0,o||void 0))}}function KL(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function QL(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const Cm={type:"element",tagName:"span",properties:{className:["icon","icon-link"]},children:[]},XL={};function JL(e){const t=e||XL;let n=t.properties;const r=t.headingProperties,o=t.behavior||"prepend",a=t.content,i=t.group,s=kb(t.test);let l;return o==="after"||o==="before"?l=d:o==="wrap"?l=u:(l=c,n||(n={ariaHidden:"true",tabIndex:-1})),function(h){xn(h,"element",function(p,g,b){if(Sb(p)&&p.properties.id&&s(p,g,b))return Object.assign(p.properties,ks(r,p)),l(p,g,b)})};function c(h){const p=vm(a||Cm,h);return h.children[o==="prepend"?"unshift":"push"](su(h,ks(n,h),p)),[ui]}function d(h,p,g){if(typeof p!="number"||!g)return;const b=vm(a||Cm,h),x=su(h,ks(n,h),b);let E=o==="before"?[x,h]:[h,x];if(i){const v=Ab(i,h);v&&!Array.isArray(v)&&v.type==="element"&&(v.children=E,E=[v])}return g.children.splice(p,1,...E),[ui,p+E.length]}function u(h){let p=h.children,g=[];return typeof a=="function"?(p=[],g=a(h)):a&&(g=Sh(a)),h.children=[su(h,ks(n,h),Array.isArray(g)?[...p,...g]:[...p,g])],[ui]}}function Sh(e){return wo(e)}function su(e,t,n){return{type:"element",tagName:"a",properties:{...t,href:"#"+e.properties.id},children:n}}function vm(e,t){const n=Ab(e,t);return Array.isArray(n)?n:[n]}function Ab(e,t){return typeof e=="function"?e(t):Sh(e)}function ks(e,t){return typeof e=="function"?e(t):e?Sh(e):{}}var ZL=(e,t)=>(n,r,o)=>{if(n.type==="element"&&o&&o.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var a=n.children&&n.children[0];a&&a.properties&&a.properties.ariaHidden==="true"&&(a.properties=ne({class:"anchor"},a.properties),a.children=[BL])}if(n.type==="element"&&n.tagName==="pre"&&!e){var i=Cb(n.children);n.children.push(jL(i))}t&&t(n,r===null?void 0:r,o===null?void 0:o)},e$=[WL,JL,FL];const Ib=O.forwardRef((e,t)=>{var n,r=[OL,ML,...e$,[PL,{rewrite:ZL((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[$L,{properties:"attr"}],...e.rehypePlugins||[]];return f.jsx(g4,ne({},e,{rehypePlugins:r,ref:t}))});function t$(e,t){return ne({},e,t)}var Na=O.createContext({markdown:""});function _b(e,t){return e===void 0&&(e=[]),t===void 0&&(t={}),e.forEach(n=>{n.children&&Array.isArray(n.children)?t=ne({},t,_b(n.children||[])):n.keyCommand&&n.shortcuts&&n.execute&&(t[n.shortcuts.toLocaleLowerCase()]=n)}),t}function Db(e,t,n,r,o){t===void 0&&(t=[]);var a=_b(t||[]),i=[];if(e.altKey&&i.push("alt"),e.shiftKey&&i.push("shift"),e.metaKey&&i.push("cmd"),e.ctrlKey&&i.push("ctrl"),i.length>0&&!/(control|alt|meta|shift)/.test(e.key.toLocaleLowerCase())&&i.push(e.key.toLocaleLowerCase()),/escape/.test(e.key.toLocaleLowerCase())&&i.push("escape"),!(i.length<1)){var s=!!a[i.join("+")],l=s?a[i.join("+")]:void 0;if(Object.keys(a).forEach(c=>{var d=c.split("+").every(u=>/ctrlcmd/.test(u)?i.includes("ctrl")||i.includes("cmd"):i.includes(u));d&&(l=a[c])}),l&&n){e.stopPropagation(),e.preventDefault(),n.executeCommand(l,r,o,i);return}}}var lu;function Sm(e){if(e.nodeName!=="TEXTAREA")return!1;if(typeof lu>"u"){var t=document.createElement("textarea");t.value="1",lu=!!t.firstChild}return lu}function fa(e,t){if(e.focus(),document.selection){var n=document.selection.createRange();n.text=t,n.collapse(!1),n.select();return}var r=!1;if(t!==""?r=document.execCommand&&document.execCommand("insertText",!1,t):r=document.execCommand&&document.execCommand("delete",!1),!r){var o=e.selectionStart,a=e.selectionEnd;if(typeof e.setRangeText=="function")e.setRangeText(t);else{var i=document.createRange(),s=document.createTextNode(t);if(Sm(e)){var l=e.firstChild;if(!l)e.appendChild(s);else{for(var c=0,d=null,u=null;l&&(d===null||u===null);){var h=l.nodeValue.length;o>=c&&o<=c+h&&i.setStart(d=l,o-c),a>=c&&a<=c+h&&i.setEnd(u=l,a-c),c+=h,l=l.nextSibling}o!==a&&i.deleteContents()}}if(Sm(e)&&i.commonAncestorContainer.nodeName==="#text")i.insertNode(s);else{var p=e.value;e.value=p.slice(0,o)+t+p.slice(a)}}e.setSelectionRange(o+t.length,o+t.length);var g=document.createEvent("UIEvent");g.initEvent("input",!0,!1),e.dispatchEvent(g)}}function mn(e){var{text:t,selection:n,prefix:r,suffix:o=r}=e,a=n;if(t&&t.length&&n.start===n.end&&(a=n$(t,n.start)),a.start>=r.length&&a.end<=t.length-o.length){var i=t.slice(a.start-r.length,a.end+o.length);if(i.startsWith(r)&&i.endsWith(o))return{start:a.start-r.length,end:a.end+o.length}}return a}function Ei(e){var{text:t,selection:n}=e,r=t.slice(0,n.start).lastIndexOf(`
146
146
  `)+1,o=t.slice(n.end).indexOf(`
147
147
  `)+n.end;return o===n.end-1&&(o=t.length),{start:r,end:o}}function wb(e,t){if(e===void 0&&(e=""),t===0)return 0;for(var n=2,r=!0,o=t-1;o>=0&&n>=0;o--)switch(e.charCodeAt(o)){case 32:continue;case 10:n--,r=!1;break;default:return n}return r?0:n}function Nb(e,t){if(e===void 0&&(e=""),t===e.length-1)return 0;for(var n=2,r=!0,o=t;o<e.length&&n>=0;o++)switch(e.charCodeAt(o)){case 32:continue;case 10:{n--,r=!1;break}default:return n}return r?0:n}function n$(e,t){if(!e)throw Error("Argument 'text' should be truthy");for(var n=s=>s===" "||s.charCodeAt(0)===10,r=0,o=e.length,a=t;a-1>-1;a--)if(n(e[a-1])){r=a;break}for(var i=t;i<e.length;i++)if(n(e[i])){o=i;break}return{start:r,end:o}}function Qt(e){var{api:t,selectedText:n,selection:r,prefix:o,suffix:a=o}=e;n.length>=o.length+a.length&&n.startsWith(o)&&n.endsWith(a)?(t.replaceSelection(n.slice(o.length,a.length?-a.length:void 0)),t.setSelectionRange({start:r.start-o.length,end:r.end-o.length})):(t.replaceSelection(""+o+n+a),t.setSelectionRange({start:r.start+o.length,end:r.end+o.length}))}function kh(e,t){var n=e.split(/\n/),r=0,o=n.map((a,i)=>{if(typeof t=="string")return a.startsWith(t)?(r-=t.length,a.slice(t.length)):(r+=t.length,t+a);if(typeof t=="function"){if(a.startsWith(t(a,i)))return r-=t(a,i).length,a.slice(t(a,i).length);var s=t(a,i);return r+=s.length,t(a,i)+a}throw Error("insertion is expected to be either a string or a function")}).join(`
148
148
  `);return{modifiedText:o,insertionLength:r}}var r$={name:"bold",keyCommand:"bold",shortcuts:"ctrlcmd+b",prefix:"**",buttonProps:{"aria-label":"Add bold text (ctrl + b)",title:"Add bold text (ctrl + b)"},icon:f.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 384 512",children:f.jsx("path",{fill:"currentColor",d:"M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"})}),execute:(e,t)=>{var n=mn({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);Qt({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},Pb={name:"codeBlock",keyCommand:"codeBlock",shortcuts:"ctrlcmd+shift+j",prefix:"```",buttonProps:{"aria-label":"Insert Code Block (ctrl + shift + j)",title:"Insert Code Block (ctrl + shift +j)"},icon:f.jsx("svg",{width:"13",height:"13",role:"img",viewBox:"0 0 156 156",children:f.jsx("path",{fill:"currentColor",d:"M110.85 120.575 43.7 120.483333 43.7083334 110.091667 110.85 110.191667 110.841667 120.583333 110.85 120.575ZM85.1333334 87.1916666 43.625 86.7083332 43.7083334 76.3166666 85.2083334 76.7916666 85.1333334 87.1916666 85.1333334 87.1916666ZM110.841667 53.4166666 43.7 53.3166666 43.7083334 42.925 110.85 43.025 110.841667 53.4166666ZM36 138C27.2916666 138 20.75 136.216667 16.4 132.666667 12.1333334 129.2 10 124.308333 10 118L10 95.3333332C10 91.0666666 9.25 88.1333332 7.7333334 86.5333332 6.3166668 84.8416666 3.7333334 84 0 84L0 72C3.7333334 72 6.3083334 71.2 7.7333334 69.6 9.2416668 67.9083334 10 64.9333334 10 60.6666666L10 38C10 31.775 12.1333334 26.8833334 16.4 23.3333332 20.7583334 19.7749998 27.2916666 18 36 18L40.6666668 18 40.6666668 30 36 30C34.0212222 29.9719277 32.1263151 30.7979128 30.8 32.2666666 29.3605875 33.8216362 28.5938182 35.8823287 28.6666668 38L28.6666668 60.6666666C28.6666668 67.5083332 26.6666668 72.4 22.6666668 75.3333332 20.9317416 76.7274684 18.8640675 77.6464347 16.6666668 78 18.8916668 78.35 20.8916668 79.2416666 22.6666668 80.6666666 26.6666668 83.95 28.6666668 88.8416666 28.6666668 95.3333332L28.6666668 118C28.6666668 120.308333 29.3750002 122.216667 30.8 123.733333 32.2166666 125.241667 33.9583334 126 36 126L40.6666668 126 40.6666668 138 36 138 36 138ZM114.116667 126 118.783333 126C120.833333 126 122.566667 125.241667 123.983333 123.733333 125.422746 122.178364 126.189515 120.117671 126.116667 118L126.116667 95.3333332C126.116667 88.8333332 128.116667 83.9499998 132.116667 80.6666666 133.9 79.2416666 135.9 78.35 138.116667 78 135.919156 77.6468047 133.851391 76.7277979 132.116667 75.3333332 128.116667 72.3999998 126.116667 67.5 126.116667 60.6666666L126.116667 38C126.189515 35.8823287 125.422746 33.8216361 123.983333 32.2666666 122.657018 30.7979128 120.762111 29.9719277 118.783333 30L114.116667 30 114.116667 18 118.783333 18C127.5 18 133.983333 19.775 138.25 23.3333332 142.608333 26.8833332 144.783333 31.7749998 144.783333 38L144.783333 60.6666666C144.783333 64.9333332 145.5 67.9083332 146.916667 69.6 148.433333 71.2 151.05 72 154.783333 72L154.783333 84C151.05 84 148.433333 84.8333334 146.916667 86.5333332 145.5 88.1333332 144.783333 91.0666666 144.783333 95.3333332L144.783333 118C144.783333 124.308333 142.616667 129.2 138.25 132.666667 133.983333 136.216667 127.5 138 118.783333 138L114.116667 138 114.116667 126 114.116667 126Z"})}),execute:(e,t)=>{var n=mn({text:e.text,selection:e.selection,prefix:"```\n",suffix:"\n```"}),r=t.setSelectionRange(n),o="\n```\n",a="\n```\n";r.selectedText.length>=o.length+a.length-2&&r.selectedText.startsWith(o)&&r.selectedText.endsWith(a)?(o="```\n",a="\n```"):((r.selection.start>=1&&e.text.slice(r.selection.start-1,r.selection.start)===`
@@ -176,9 +176,9 @@ import {${t.sourceName}}" from '${t.modelPath}'"
176
176
  - `;return i.startsWith("*")&&(C=`
177
177
  * `),(i.startsWith("- [ ]")||i.startsWith("- [X]")||i.startsWith("- [x]"))&&(C=`
178
178
  - [ ] `),/^\d+.\s/.test(i)&&(C=`
179
- `+(parseInt(i)+1)+". "),fa(r,C)}else if(e.code&&e.code.toLowerCase()==="keyd"&&e.ctrlKey){zs(e);var I={start:r.selectionStart,end:r.selectionEnd},N=I;I=Ei({text:r.value,selection:I});var S=r.value.slice(I.start,I.end);s.setSelectionRange({start:I.end,end:I.end}),fa(r,`
180
- `+S),s.setSelectionRange({start:N.start,end:N.end})}else e.code&&e.code.toLowerCase()==="arrowup"&&e.altKey?km(e,-1):e.code&&e.code.toLowerCase()==="arrowdown"&&e.altKey&&km(e,1)}var M$=["prefixCls","onChange"],F$=["markdown","commands","fullscreen","preview","highlightEnable","extraCommands","tabSize","defaultTabEnable","autoFocusEnd","textareaWarp","dispatch"];function B$(e){var{prefixCls:t,onChange:n}=e,r=rn(e,M$),o=O.useContext(Na),{markdown:a,commands:i,fullscreen:s,preview:l,highlightEnable:c,extraCommands:d,tabSize:u,defaultTabEnable:h,autoFocusEnd:p,textareaWarp:g,dispatch:b}=o;rn(o,F$);var x=O.useRef(null),E=O.useRef(),v=O.useRef({fullscreen:s,preview:l});O.useEffect(()=>{v.current={fullscreen:s,preview:l,highlightEnable:c}},[s,l,c]),O.useEffect(()=>{if(x.current&&b){var I=new _h(x.current);E.current=I,b({textarea:x.current,commandOrchestrator:I})}},[]),O.useEffect(()=>{if(p&&x.current&&g){x.current.focus();var I=x.current.value.length;x.current.setSelectionRange(I,I),setTimeout(()=>{g&&(g.scrollTop=g.scrollHeight),x.current&&(x.current.scrollTop=x.current.scrollHeight)},0)}},[g]);var C=I=>{O$(I,u,h),Db(I,[...i||[],...d||[]],E.current,b,v.current)};return O.useEffect(()=>(x.current&&x.current.addEventListener("keydown",C),()=>{x.current&&x.current.removeEventListener("keydown",C)}),[]),f.jsx("textarea",ne({autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1},r,{ref:x,className:t+"-text-input "+(r.className?r.className:""),value:a,onChange:I=>{b&&b({markdown:I.target.value}),n&&n(I)}}))}var j$=["prefixCls","className","onScroll","renderTextarea"];function H$(e){var t=e||{},{prefixCls:n,className:r,onScroll:o,renderTextarea:a}=t,i=rn(t,j$),{markdown:s,scrollTop:l,commands:c,extraCommands:d,dispatch:u}=O.useContext(Na),h=O.useRef(null),p=O.useRef(),g=O.createRef();O.useEffect(()=>{var x={};g.current&&(x.textareaWarp=g.current||void 0,g.current.scrollTop=l||0),u&&u(ne({},x))},[]),O.useEffect(()=>{if(h.current&&u){var x=new _h(h.current);p.current=x,u({textarea:h.current,commandOrchestrator:x})}},[]);var b={WebkitTextFillColor:"initial",overflow:"auto"};return f.jsx("div",{ref:g,className:n+"-area "+(r||""),onScroll:o,children:f.jsx("div",{className:n+"-text",children:a?O.cloneElement(a(ne({},i,{value:s,autoComplete:"off",autoCorrect:"off",spellCheck:"false",autoCapitalize:"off",className:n+"-text-input",style:{WebkitTextFillColor:"inherit",overflow:"auto"}}),{dispatch:u,onChange:i.onChange,shortcuts:Db,useContext:{commands:c,extraCommands:d,commandOrchestrator:p.current}}),{ref:h}):f.jsx(O.Fragment,{children:f.jsx(B$,ne({prefixCls:n},i,{style:b}))})})})}function U$(e){var{prefixCls:t,groupName:n,commands:r,children:o}=e||{},{barPopup:a={}}=O.useContext(Na);return O.useMemo(()=>f.jsx("div",{className:t+"-toolbar-child "+(n&&a[n]?"active":""),onClick:i=>i.stopPropagation(),children:Array.isArray(r)?f.jsx(Lb,ne({commands:r},e,{isChild:!0})):o}),[r,a,n,t])}function Am(e){var{prefixCls:t,overflow:n}=e,{fullscreen:r,preview:o,barPopup:a={},components:i,commandOrchestrator:s,dispatch:l}=O.useContext(Na),c=O.useRef("");function d(u,h){if(l){var p={barPopup:ne({},a)};u.keyCommand==="preview"&&(p.preview=u.value),u.keyCommand==="fullscreen"&&(p.fullscreen=!r),e.commands&&u.keyCommand==="group"?e.commands.forEach(g=>{h===g.groupName?p.barPopup[h]=!0:g.keyCommand&&(p.barPopup[g.groupName]=!1)}):(h||u.parent)&&Object.keys(p.barPopup||{}).forEach(g=>{p.barPopup[g]=!1}),Object.keys(p).length&&l(ne({},p)),s&&s.executeCommand(u)}}return O.useEffect(()=>{document&&n&&(r?document.body.style.overflow="hidden":(c.current||(c.current=window.getComputedStyle(document.body,null).overflow),document.body.style.overflow=c.current))},[r,c,n]),f.jsx("ul",{children:(e.commands||[]).map((u,h)=>{if(u.keyCommand==="divider")return f.jsx("li",ne({},u.liProps,{className:t+"-toolbar-divider"}),h);if(!u.keyCommand)return f.jsx(O.Fragment,{},h);var p=r&&u.keyCommand==="fullscreen"||u.keyCommand==="preview"&&o===u.value,g=u.children&&typeof u.children=="function"?u.children({getState:()=>s.getState(),textApi:s?s.textApi:void 0,close:()=>d({},u.groupName),execute:()=>d({execute:u.execute}),dispatch:l}):void 0,b=a&&o&&o==="preview"&&!/(preview|fullscreen)/.test(u.keyCommand),x=i?.toolbar||u.render,E=x&&typeof x=="function"?x(u,!!b,d,h):null;return f.jsxs("li",ne({},u.liProps,{className:p?"active":"",children:[E&&O.isValidElement(E)&&E,!E&&!u.buttonProps&&u.icon,!E&&u.buttonProps&&O.createElement("button",ne({type:"button",key:h,disabled:b,"data-name":u.name},u.buttonProps,{onClick:v=>{v.stopPropagation(),d(u,u.groupName)}}),u.icon),u.children&&f.jsx(U$,{overflow:n,groupName:u.groupName,prefixCls:t,children:g,commands:Array.isArray(u.children)?u.children:void 0})]}),h)})})}function Lb(e){e===void 0&&(e={});var{prefixCls:t,isChild:n,className:r}=e,{commands:o,extraCommands:a}=O.useContext(Na);return f.jsxs("div",{className:t+"-toolbar "+r,children:[f.jsx(Am,ne({},e,{commands:e.commands||o||[]})),!n&&f.jsx(Am,ne({},e,{commands:a||[]}))]})}function Im(e){var{hideToolbar:t,toolbarBottom:n,placement:r,overflow:o,prefixCls:a}=e;if(t||r==="bottom"&&!n||r==="top"&&n)return null;var i=n?"bottom":"";return f.jsx(Lb,{prefixCls:a,overflow:o,className:i})}var z$=e=>{var{prefixCls:t,onChange:n}=e||{},r=O.useRef(null),o=O.useRef(),a=O.useRef(e.height);O.useEffect(()=>{a.current!==e.height&&(a.current=e.height)},[e.height]);function i(d){if(o.current){var u,h=d.clientY||((u=d.changedTouches[0])==null?void 0:u.clientY),p=o.current.height+h-o.current.dragY;p>=e.minHeight&&p<=e.maxHeight&&n&&n(o.current.height+(h-o.current.dragY))}}function s(){var d,u;o.current=void 0,document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",s),(d=r.current)==null||d.removeEventListener("touchmove",i),(u=r.current)==null||u.removeEventListener("touchend",s)}function l(d){var u,h,p;d.preventDefault();var g=d.clientY||((u=d.changedTouches[0])==null?void 0:u.clientY);o.current={height:a.current,dragY:g},document.addEventListener("mousemove",i),document.addEventListener("mouseup",s),(h=r.current)==null||h.addEventListener("touchmove",i,{passive:!1}),(p=r.current)==null||p.addEventListener("touchend",s,{passive:!1})}O.useEffect(()=>{if(document){var d,u;(d=r.current)==null||d.addEventListener("touchstart",l,{passive:!1}),(u=r.current)==null||u.addEventListener("mousedown",l)}return()=>{if(document){var h;(h=r.current)==null||h.removeEventListener("touchstart",l),document.removeEventListener("mousemove",i)}}},[]);var c=O.useMemo(()=>f.jsx("svg",{viewBox:"0 0 512 512",height:"100%",children:f.jsx("path",{fill:"currentColor",d:"M304 256c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48 48 21.5 48 48zm120-48c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm-336 0c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z"})}),[]);return f.jsx("div",{className:t+"-bar",ref:r,children:c})},G$=["prefixCls","className","value","commands","commandsFilter","direction","extraCommands","height","enableScroll","visibleDragbar","highlightEnable","preview","fullscreen","overflow","previewOptions","textareaProps","maxHeight","minHeight","autoFocus","autoFocusEnd","tabSize","defaultTabEnable","onChange","onStatistics","onHeightChange","hideToolbar","toolbarBottom","components","renderTextarea"];function q$(e){return e===void 0&&(e={}),Object.keys(e).forEach(t=>{e[t]=!1}),e}var W$=O.forwardRef((e,t)=>{var n=e||{},{prefixCls:r="w-md-editor",className:o,value:a,commands:i=L$(),commandsFilter:s,direction:l,extraCommands:c=$$(),height:d=200,enableScroll:u=!0,visibleDragbar:h=typeof e.visiableDragbar=="boolean"?e.visiableDragbar:!0,highlightEnable:p=!0,preview:g="live",fullscreen:b=!1,overflow:x=!0,previewOptions:E={},textareaProps:v,maxHeight:C=1200,minHeight:I=100,autoFocus:N,autoFocusEnd:S=!1,tabSize:M=2,defaultTabEnable:q=!1,onChange:B,onStatistics:y,onHeightChange:R,hideToolbar:F,toolbarBottom:$=!1,components:U,renderTextarea:Y}=n,re=rn(n,G$),fe=i.map(De=>s?s(De,!1):De).filter(Boolean),ue=c.map(De=>s?s(De,!0):De).filter(Boolean),[X,A]=O.useReducer(t$,{markdown:a,preview:g,components:U,height:d,minHeight:I,highlightEnable:p,tabSize:M,defaultTabEnable:q,scrollTop:0,scrollTopPreview:0,commands:fe,extraCommands:ue,fullscreen:b,barPopup:{}}),de=O.useRef(null),ee=O.useRef(null),k=O.useRef(u);O.useImperativeHandle(t,()=>ne({},X,{container:de.current,dispatch:A})),O.useMemo(()=>k.current=u,[u]),O.useEffect(()=>{var De={};de.current&&(De.container=de.current||void 0),De.markdown=a||"",De.barPopup={},A&&A(ne({},X,De))},[]);var J=[o,"wmde-markdown-var",l?r+"-"+l:null,r,X.preview?r+"-show-"+X.preview:null,X.fullscreen?r+"-fullscreen":null].filter(Boolean).join(" ").trim();O.useMemo(()=>a!==X.markdown&&A({markdown:a||""}),[a,X.markdown]),O.useMemo(()=>g!==X.preview&&A({preview:g}),[g]),O.useMemo(()=>M!==X.tabSize&&A({tabSize:M}),[M]),O.useMemo(()=>p!==X.highlightEnable&&A({highlightEnable:p}),[p]),O.useMemo(()=>N!==X.autoFocus&&A({autoFocus:N}),[N]),O.useMemo(()=>S!==X.autoFocusEnd&&A({autoFocusEnd:S}),[S]),O.useMemo(()=>b!==X.fullscreen&&A({fullscreen:b}),[b]),O.useMemo(()=>d!==X.height&&A({height:d}),[d]),O.useMemo(()=>d!==X.height&&R&&R(X.height,d,X),[d,R,X]),O.useMemo(()=>i!==X.commands&&A({commands:fe}),[e.commands]),O.useMemo(()=>c!==X.extraCommands&&A({extraCommands:ue}),[e.extraCommands]);var Ee=O.useRef(),he=O.useRef("preview"),ye=O.useRef(!1);O.useMemo(()=>{Ee.current=X.textareaWarp,X.textareaWarp&&(X.textareaWarp.addEventListener("mouseover",()=>{he.current="text"}),X.textareaWarp.addEventListener("mouseleave",()=>{he.current="preview"}))},[X.textareaWarp]);var me=(De,wt)=>{if(k.current){var yt=Ee.current,bt=ee.current?ee.current:void 0;if(ye.current||(he.current=wt,ye.current=!0),yt&&bt){var ke=(yt.scrollHeight-yt.offsetHeight)/(bt.scrollHeight-bt.offsetHeight);De.target===yt&&he.current==="text"&&(bt.scrollTop=yt.scrollTop/ke),De.target===bt&&he.current==="preview"&&(yt.scrollTop=bt.scrollTop*ke);var ge=0;he.current==="text"?ge=yt.scrollTop||0:he.current==="preview"&&(ge=bt.scrollTop||0),A({scrollTop:ge})}}},Fe=r+"-preview "+(E.className||""),Oe=De=>me(De,"preview"),Te=O.useMemo(()=>f.jsx("div",{ref:ee,className:Fe,children:f.jsx(Ib,ne({},E,{onScroll:Oe,source:X.markdown||""}))}),[Fe,E,X.markdown]),gt=U?.preview&&U?.preview(X.markdown||"",X,A);gt&&O.isValidElement(gt)&&(Te=f.jsx("div",{className:Fe,ref:ee,onScroll:Oe,children:gt}));var Ze=ne({},re.style,{height:X.height||"100%"}),be=()=>A({barPopup:ne({},q$(X.barPopup))}),Xt=De=>A({height:De}),vt=De=>{if(B&&B(De.target.value,De,X),v&&v.onChange&&v.onChange(De),X.textarea&&X.textarea instanceof HTMLTextAreaElement&&y){var wt=new _h(X.textarea),yt=wt.getState()||{};y(ne({},yt,{lineCount:De.target.value.split(`
181
- `).length,length:De.target.value.length}))}};return f.jsx(Na.Provider,{value:ne({},X,{dispatch:A}),children:f.jsxs("div",ne({ref:de,className:J},re,{onClick:be,style:Ze,children:[f.jsx(Im,{hideToolbar:F,toolbarBottom:$,prefixCls:r,overflow:x,placement:"top"}),f.jsxs("div",{className:r+"-content",children:[/(edit|live)/.test(X.preview||"")&&f.jsx(H$,ne({className:r+"-input",prefixCls:r,autoFocus:N},v,{onChange:vt,renderTextarea:U?.textarea||Y,onScroll:De=>me(De,"text")})),/(live|preview)/.test(X.preview||"")&&Te]}),h&&!X.fullscreen&&f.jsx(z$,{prefixCls:r,height:X.height,maxHeight:C,minHeight:I,onChange:Xt}),f.jsx(Im,{hideToolbar:F,toolbarBottom:$,prefixCls:r,overflow:x,placement:"bottom"})]}))})}),$b=W$;$b.Markdown=Ib;function V$({cell:e,sourceAndPaths:t,onQueryChange:n,onSourceChange:r}){const o={query:e.value,malloyResult:e.result?JSON.parse(e.result):void 0,malloyQuery:e.queryInfo?JSON.parse(e.queryInfo):void 0},a=t.findIndex(i=>i.sourceInfo.name===e.sourceName);return f.jsx(uE,{sourceAndPaths:t,selectedSourceIndex:a>=0?a:0,existingQuery:o,onQueryChange:n,onSourceChange:r})}function Y$({cell:e,editingMalloy:t,editingMarkdown:n,sourceAndPaths:r,onCellChange:o,onClose:a,onEdit:i,onDelete:s,addButtonCallback:l}){const[c,d]=O.useState(e.value),[u,h]=O.useState(!1),[p,g]=O.useState(!1),[b,x]=O.useState(),[E]=O.useState(),[v,C]=O.useState(Ys()),[I,N]=O.useState(!1),[S,M]=O.useState(e.sourceName?r.findIndex(A=>A.sourceInfo.name===e.sourceName):0);O.useEffect(()=>{e.isMarkdown||hl(e.value,"malloy").then(A=>{x(A)})},[e]),O.useEffect(()=>{document.documentElement.setAttribute("data-color-mode","light")});const[q,B]=O.useState(!1),y=()=>{s(),B(!1)},R=r.length===0,F=O.useCallback(()=>{const A=r[S],de=A?.modelPath||e.modelPath||"",ee=A?.sourceInfo.name||e.sourceName||"";o({...e,value:e.isMarkdown?c:v.query,result:v.malloyResult?JSON.stringify(v.malloyResult):void 0,queryInfo:v.malloyQuery?JSON.stringify(v.malloyQuery):void 0,sourceName:ee,modelPath:de})},[e,c,v,o,S,r]),$=f.jsx(T.Tooltip,{title:"Delete Cell",children:f.jsx(T.IconButton,{size:"small",onClick:()=>B(!0),children:f.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{d:"M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2m2 0v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6h14zM10 11v6M14 11v6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})}),U=f.jsxs(T.Dialog,{open:q,onClose:()=>B(!1),children:[f.jsx(T.DialogTitle,{children:"Confirm Delete"}),f.jsx(T.DialogContent,{children:f.jsx(T.Typography,{children:"Are you sure you want to delete this cell?"})}),f.jsxs(T.DialogActions,{children:[f.jsx(T.Button,{onClick:()=>B(!1),children:"Cancel"}),f.jsx(T.Button,{onClick:y,color:"error",children:"Delete"})]})]}),Y=()=>{F(),a()},re=e.isMarkdown?f.jsxs(f.Fragment,{children:[n?f.jsx(T.Tooltip,{title:"Save",children:f.jsx(T.IconButton,{size:"small",onClick:Y,children:f.jsx(ys,{})})}):f.jsx(T.Tooltip,{title:"Edit",children:f.jsx(T.IconButton,{size:"small",onClick:i,children:f.jsx(ef,{})})}),!n&&$]}):f.jsxs(f.Fragment,{children:[!t&&f.jsx(T.Tooltip,{title:u?"Hide Code":"View Code",children:f.jsx(T.IconButton,{size:"small",onClick:()=>{h(!u)},children:f.jsx(F0,{})})}),!t&&e.result&&f.jsx(T.Tooltip,{title:p?"Hide Embedding":"View Embedding",children:f.jsx(T.IconButton,{size:"small",onClick:()=>{g(!p)},children:f.jsx(NI,{})})}),t&&f.jsx(T.Tooltip,{title:"Save",children:f.jsx(T.IconButton,{size:"small",onClick:Y,children:f.jsx(ys,{})})}),!t&&f.jsx(T.Tooltip,{title:"Edit",children:f.jsx(T.IconButton,{size:"small",onClick:i,children:f.jsx(ef,{})})}),!t&&$]}),fe=t||n,ue=n?f.jsx(T.Tooltip,{title:"Save",children:f.jsx(T.IconButton,{size:"small",onClick:Y,children:f.jsx(ys,{})})}):t?f.jsx(T.Tooltip,{title:"Save",children:f.jsx(T.IconButton,{size:"small",onClick:Y,children:f.jsx(ys,{})})}):null,X=I&&f.jsx(T.Box,{sx:{position:"absolute",top:"4px",right:"4px",display:"flex",gap:"8px",backgroundColor:"background.paper",border:"1px solid",borderColor:"divider",borderRadius:"8px",padding:"2px 4px",boxShadow:1,zIndex:10},children:!fe&&f.jsxs(f.Fragment,{children:[l(!0),l(!1),re]})||ue});return f.jsxs(el,{sx:{position:"relative",marginTop:"5px",marginBottom:"5px",borderWidth:"1.5px",backgroundColor:"#fff",minHeight:"50px"},onMouseEnter:()=>N(!0),onMouseLeave:()=>{N(!1)},children:[X,e.isMarkdown?f.jsx(f.Fragment,{children:n?f.jsx($b,{value:c,preview:"edit",autoFocus:!0,onChange:A=>{d(A),o({...e,value:A})},onBlur:()=>{F(),I||Y()}}):f.jsx(T.Box,{sx:{px:.5,pt:0,mt:0,"& h1, & h2, & h3, & h4, & h5, & h6":{mt:.5,mb:.5},"& p":{mt:.5,mb:.5},"& ul, & ol":{mt:.5,mb:.5},"& li":{mt:0,mb:0},"& pre, & code":{mt:.5,mb:.5},"& blockquote":{mt:.5,mb:.5}},children:e.value?f.jsx(T.Box,{onClick:i,sx:{cursor:"pointer"},children:f.jsx(Sd,{children:e.value})}):f.jsxs(T.Box,{onClick:i,sx:{cursor:"pointer"},children:[f.jsx(T.Typography,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Markdown is empty"}),f.jsx(T.Typography,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})})}):f.jsxs(f.Fragment,{children:[f.jsx(T.Collapse,{in:p,timeout:"auto",unmountOnExit:!0,children:f.jsx(T.Stack,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:f.jsx(T.Typography,{component:"div",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:E}})})}),f.jsx(T.Collapse,{in:u,timeout:"auto",unmountOnExit:!0,children:f.jsx(T.Stack,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:f.jsx(T.Typography,{component:"div",className:"content",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:b}})})}),t&&(R?f.jsxs(f.Fragment,{children:[f.jsx(T.Typography,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"No Model Imports"}),f.jsx(T.Typography,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Please add a model import above."})]}):f.jsx(V$,{sourceAndPaths:r,onQueryChange:A=>{C(A)},onSourceChange:A=>{M(A)},cell:e})),!t&&e.result&&f.jsx(el,{variant:"outlined",sx:{borderRadius:0},children:f.jsx(Yl,{result:e.result,minHeight:300,maxHeight:800})}),!t&&!e.result&&f.jsxs(T.Box,{onClick:i,sx:{cursor:"pointer"},children:[f.jsx(T.Typography,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Explore is empty"}),f.jsx(T.Typography,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})]}),q&&U]})}const Ob=O.createContext(void 0);function K$({children:e,workbookStorage:t}){const n=O.useMemo(()=>({workbookStorage:t}),[t]);return f.jsx(Ob.Provider,{value:n,children:e})}function Q$(){const e=O.useContext(Ob);if(!e)throw new Error("useWorkbookStorage must be used within a WorkbookStorageProvider");return e}const X$=pt(f.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"})),J$=new jl(new Yt);function Z$({initialSelectedModels:e,onModelChange:t}){const{projectName:n,packageName:r,versionId:o}=zn(),{data:a,isLoading:i,isSuccess:s,isError:l,error:c}=un({queryKey:["models",n,r,o],queryFn:E=>J$.listModels(n,r,o,E)}),[d,u]=O.useState(e||[]),[h,p]=O.useState(null);O.useEffect(()=>{u(e||[])},[e]);const g=E=>{const v=d.filter(C=>C!==E);u(v),t(v)},b=E=>{const v=[...d,E];u(v),t(v),p(null)};let x=[];return s&&a?.data&&(x=a.data.filter(E=>!d.includes(E.path)).map(E=>E.path)),l?f.jsx(sn,{error:c,context:`${n} > ${r} > Model Picker`}):f.jsxs(f.Fragment,{children:[f.jsxs(T.FormControl,{fullWidth:!0,children:[i&&f.jsx(T.Typography,{children:"Loading..."}),f.jsxs(T.Stack,{direction:"row",spacing:1,children:[d.map(E=>f.jsx(T.Chip,{label:E,onDelete:()=>g(E),deleteIcon:f.jsx(_i,{}),sx:{marginBottom:"5px"}},E)),f.jsx(T.Button,{size:"small",startIcon:f.jsx(X$,{}),onClick:E=>p(E.currentTarget),disabled:i||l||x.length===0,children:"Add Model"})]})]}),f.jsxs(T.Menu,{anchorEl:h,open:!!h,onClose:()=>p(null),children:[f.jsx(T.Typography,{variant:"subtitle2",sx:{ml:1},children:"Models"}),f.jsx(T.Divider,{}),x.length===0?f.jsx(T.MenuItem,{disabled:!0,children:"No models available"}):x.map(E=>f.jsx(T.MenuItem,{onClick:()=>b(E),children:f.jsx(T.Typography,{variant:"body2",children:E})},E))]})]})}/**
179
+ `+(parseInt(i)+1)+". "),fa(r,C)}else if(e.code&&e.code.toLowerCase()==="keyd"&&e.ctrlKey){zs(e);var I={start:r.selectionStart,end:r.selectionEnd},w=I;I=Ei({text:r.value,selection:I});var S=r.value.slice(I.start,I.end);s.setSelectionRange({start:I.end,end:I.end}),fa(r,`
180
+ `+S),s.setSelectionRange({start:w.start,end:w.end})}else e.code&&e.code.toLowerCase()==="arrowup"&&e.altKey?km(e,-1):e.code&&e.code.toLowerCase()==="arrowdown"&&e.altKey&&km(e,1)}var M$=["prefixCls","onChange"],F$=["markdown","commands","fullscreen","preview","highlightEnable","extraCommands","tabSize","defaultTabEnable","autoFocusEnd","textareaWarp","dispatch"];function B$(e){var{prefixCls:t,onChange:n}=e,r=rn(e,M$),o=O.useContext(Na),{markdown:a,commands:i,fullscreen:s,preview:l,highlightEnable:c,extraCommands:d,tabSize:u,defaultTabEnable:h,autoFocusEnd:p,textareaWarp:g,dispatch:b}=o;rn(o,F$);var x=O.useRef(null),E=O.useRef(),v=O.useRef({fullscreen:s,preview:l});O.useEffect(()=>{v.current={fullscreen:s,preview:l,highlightEnable:c}},[s,l,c]),O.useEffect(()=>{if(x.current&&b){var I=new _h(x.current);E.current=I,b({textarea:x.current,commandOrchestrator:I})}},[]),O.useEffect(()=>{if(p&&x.current&&g){x.current.focus();var I=x.current.value.length;x.current.setSelectionRange(I,I),setTimeout(()=>{g&&(g.scrollTop=g.scrollHeight),x.current&&(x.current.scrollTop=x.current.scrollHeight)},0)}},[g]);var C=I=>{O$(I,u,h),Db(I,[...i||[],...d||[]],E.current,b,v.current)};return O.useEffect(()=>(x.current&&x.current.addEventListener("keydown",C),()=>{x.current&&x.current.removeEventListener("keydown",C)}),[]),f.jsx("textarea",ne({autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1},r,{ref:x,className:t+"-text-input "+(r.className?r.className:""),value:a,onChange:I=>{b&&b({markdown:I.target.value}),n&&n(I)}}))}var j$=["prefixCls","className","onScroll","renderTextarea"];function H$(e){var t=e||{},{prefixCls:n,className:r,onScroll:o,renderTextarea:a}=t,i=rn(t,j$),{markdown:s,scrollTop:l,commands:c,extraCommands:d,dispatch:u}=O.useContext(Na),h=O.useRef(null),p=O.useRef(),g=O.createRef();O.useEffect(()=>{var x={};g.current&&(x.textareaWarp=g.current||void 0,g.current.scrollTop=l||0),u&&u(ne({},x))},[]),O.useEffect(()=>{if(h.current&&u){var x=new _h(h.current);p.current=x,u({textarea:h.current,commandOrchestrator:x})}},[]);var b={WebkitTextFillColor:"initial",overflow:"auto"};return f.jsx("div",{ref:g,className:n+"-area "+(r||""),onScroll:o,children:f.jsx("div",{className:n+"-text",children:a?O.cloneElement(a(ne({},i,{value:s,autoComplete:"off",autoCorrect:"off",spellCheck:"false",autoCapitalize:"off",className:n+"-text-input",style:{WebkitTextFillColor:"inherit",overflow:"auto"}}),{dispatch:u,onChange:i.onChange,shortcuts:Db,useContext:{commands:c,extraCommands:d,commandOrchestrator:p.current}}),{ref:h}):f.jsx(O.Fragment,{children:f.jsx(B$,ne({prefixCls:n},i,{style:b}))})})})}function U$(e){var{prefixCls:t,groupName:n,commands:r,children:o}=e||{},{barPopup:a={}}=O.useContext(Na);return O.useMemo(()=>f.jsx("div",{className:t+"-toolbar-child "+(n&&a[n]?"active":""),onClick:i=>i.stopPropagation(),children:Array.isArray(r)?f.jsx(Lb,ne({commands:r},e,{isChild:!0})):o}),[r,a,n,t])}function Am(e){var{prefixCls:t,overflow:n}=e,{fullscreen:r,preview:o,barPopup:a={},components:i,commandOrchestrator:s,dispatch:l}=O.useContext(Na),c=O.useRef("");function d(u,h){if(l){var p={barPopup:ne({},a)};u.keyCommand==="preview"&&(p.preview=u.value),u.keyCommand==="fullscreen"&&(p.fullscreen=!r),e.commands&&u.keyCommand==="group"?e.commands.forEach(g=>{h===g.groupName?p.barPopup[h]=!0:g.keyCommand&&(p.barPopup[g.groupName]=!1)}):(h||u.parent)&&Object.keys(p.barPopup||{}).forEach(g=>{p.barPopup[g]=!1}),Object.keys(p).length&&l(ne({},p)),s&&s.executeCommand(u)}}return O.useEffect(()=>{document&&n&&(r?document.body.style.overflow="hidden":(c.current||(c.current=window.getComputedStyle(document.body,null).overflow),document.body.style.overflow=c.current))},[r,c,n]),f.jsx("ul",{children:(e.commands||[]).map((u,h)=>{if(u.keyCommand==="divider")return f.jsx("li",ne({},u.liProps,{className:t+"-toolbar-divider"}),h);if(!u.keyCommand)return f.jsx(O.Fragment,{},h);var p=r&&u.keyCommand==="fullscreen"||u.keyCommand==="preview"&&o===u.value,g=u.children&&typeof u.children=="function"?u.children({getState:()=>s.getState(),textApi:s?s.textApi:void 0,close:()=>d({},u.groupName),execute:()=>d({execute:u.execute}),dispatch:l}):void 0,b=a&&o&&o==="preview"&&!/(preview|fullscreen)/.test(u.keyCommand),x=i?.toolbar||u.render,E=x&&typeof x=="function"?x(u,!!b,d,h):null;return f.jsxs("li",ne({},u.liProps,{className:p?"active":"",children:[E&&O.isValidElement(E)&&E,!E&&!u.buttonProps&&u.icon,!E&&u.buttonProps&&O.createElement("button",ne({type:"button",key:h,disabled:b,"data-name":u.name},u.buttonProps,{onClick:v=>{v.stopPropagation(),d(u,u.groupName)}}),u.icon),u.children&&f.jsx(U$,{overflow:n,groupName:u.groupName,prefixCls:t,children:g,commands:Array.isArray(u.children)?u.children:void 0})]}),h)})})}function Lb(e){e===void 0&&(e={});var{prefixCls:t,isChild:n,className:r}=e,{commands:o,extraCommands:a}=O.useContext(Na);return f.jsxs("div",{className:t+"-toolbar "+r,children:[f.jsx(Am,ne({},e,{commands:e.commands||o||[]})),!n&&f.jsx(Am,ne({},e,{commands:a||[]}))]})}function Im(e){var{hideToolbar:t,toolbarBottom:n,placement:r,overflow:o,prefixCls:a}=e;if(t||r==="bottom"&&!n||r==="top"&&n)return null;var i=n?"bottom":"";return f.jsx(Lb,{prefixCls:a,overflow:o,className:i})}var z$=e=>{var{prefixCls:t,onChange:n}=e||{},r=O.useRef(null),o=O.useRef(),a=O.useRef(e.height);O.useEffect(()=>{a.current!==e.height&&(a.current=e.height)},[e.height]);function i(d){if(o.current){var u,h=d.clientY||((u=d.changedTouches[0])==null?void 0:u.clientY),p=o.current.height+h-o.current.dragY;p>=e.minHeight&&p<=e.maxHeight&&n&&n(o.current.height+(h-o.current.dragY))}}function s(){var d,u;o.current=void 0,document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",s),(d=r.current)==null||d.removeEventListener("touchmove",i),(u=r.current)==null||u.removeEventListener("touchend",s)}function l(d){var u,h,p;d.preventDefault();var g=d.clientY||((u=d.changedTouches[0])==null?void 0:u.clientY);o.current={height:a.current,dragY:g},document.addEventListener("mousemove",i),document.addEventListener("mouseup",s),(h=r.current)==null||h.addEventListener("touchmove",i,{passive:!1}),(p=r.current)==null||p.addEventListener("touchend",s,{passive:!1})}O.useEffect(()=>{if(document){var d,u;(d=r.current)==null||d.addEventListener("touchstart",l,{passive:!1}),(u=r.current)==null||u.addEventListener("mousedown",l)}return()=>{if(document){var h;(h=r.current)==null||h.removeEventListener("touchstart",l),document.removeEventListener("mousemove",i)}}},[]);var c=O.useMemo(()=>f.jsx("svg",{viewBox:"0 0 512 512",height:"100%",children:f.jsx("path",{fill:"currentColor",d:"M304 256c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48 48 21.5 48 48zm120-48c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm-336 0c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z"})}),[]);return f.jsx("div",{className:t+"-bar",ref:r,children:c})},G$=["prefixCls","className","value","commands","commandsFilter","direction","extraCommands","height","enableScroll","visibleDragbar","highlightEnable","preview","fullscreen","overflow","previewOptions","textareaProps","maxHeight","minHeight","autoFocus","autoFocusEnd","tabSize","defaultTabEnable","onChange","onStatistics","onHeightChange","hideToolbar","toolbarBottom","components","renderTextarea"];function q$(e){return e===void 0&&(e={}),Object.keys(e).forEach(t=>{e[t]=!1}),e}var W$=O.forwardRef((e,t)=>{var n=e||{},{prefixCls:r="w-md-editor",className:o,value:a,commands:i=L$(),commandsFilter:s,direction:l,extraCommands:c=$$(),height:d=200,enableScroll:u=!0,visibleDragbar:h=typeof e.visiableDragbar=="boolean"?e.visiableDragbar:!0,highlightEnable:p=!0,preview:g="live",fullscreen:b=!1,overflow:x=!0,previewOptions:E={},textareaProps:v,maxHeight:C=1200,minHeight:I=100,autoFocus:w,autoFocusEnd:S=!1,tabSize:M=2,defaultTabEnable:q=!1,onChange:B,onStatistics:y,onHeightChange:R,hideToolbar:F,toolbarBottom:$=!1,components:U,renderTextarea:Y}=n,re=rn(n,G$),fe=i.map(De=>s?s(De,!1):De).filter(Boolean),ue=c.map(De=>s?s(De,!0):De).filter(Boolean),[X,A]=O.useReducer(t$,{markdown:a,preview:g,components:U,height:d,minHeight:I,highlightEnable:p,tabSize:M,defaultTabEnable:q,scrollTop:0,scrollTopPreview:0,commands:fe,extraCommands:ue,fullscreen:b,barPopup:{}}),de=O.useRef(null),ee=O.useRef(null),k=O.useRef(u);O.useImperativeHandle(t,()=>ne({},X,{container:de.current,dispatch:A})),O.useMemo(()=>k.current=u,[u]),O.useEffect(()=>{var De={};de.current&&(De.container=de.current||void 0),De.markdown=a||"",De.barPopup={},A&&A(ne({},X,De))},[]);var J=[o,"wmde-markdown-var",l?r+"-"+l:null,r,X.preview?r+"-show-"+X.preview:null,X.fullscreen?r+"-fullscreen":null].filter(Boolean).join(" ").trim();O.useMemo(()=>a!==X.markdown&&A({markdown:a||""}),[a,X.markdown]),O.useMemo(()=>g!==X.preview&&A({preview:g}),[g]),O.useMemo(()=>M!==X.tabSize&&A({tabSize:M}),[M]),O.useMemo(()=>p!==X.highlightEnable&&A({highlightEnable:p}),[p]),O.useMemo(()=>w!==X.autoFocus&&A({autoFocus:w}),[w]),O.useMemo(()=>S!==X.autoFocusEnd&&A({autoFocusEnd:S}),[S]),O.useMemo(()=>b!==X.fullscreen&&A({fullscreen:b}),[b]),O.useMemo(()=>d!==X.height&&A({height:d}),[d]),O.useMemo(()=>d!==X.height&&R&&R(X.height,d,X),[d,R,X]),O.useMemo(()=>i!==X.commands&&A({commands:fe}),[e.commands]),O.useMemo(()=>c!==X.extraCommands&&A({extraCommands:ue}),[e.extraCommands]);var Ee=O.useRef(),he=O.useRef("preview"),ye=O.useRef(!1);O.useMemo(()=>{Ee.current=X.textareaWarp,X.textareaWarp&&(X.textareaWarp.addEventListener("mouseover",()=>{he.current="text"}),X.textareaWarp.addEventListener("mouseleave",()=>{he.current="preview"}))},[X.textareaWarp]);var me=(De,wt)=>{if(k.current){var yt=Ee.current,bt=ee.current?ee.current:void 0;if(ye.current||(he.current=wt,ye.current=!0),yt&&bt){var ke=(yt.scrollHeight-yt.offsetHeight)/(bt.scrollHeight-bt.offsetHeight);De.target===yt&&he.current==="text"&&(bt.scrollTop=yt.scrollTop/ke),De.target===bt&&he.current==="preview"&&(yt.scrollTop=bt.scrollTop*ke);var ge=0;he.current==="text"?ge=yt.scrollTop||0:he.current==="preview"&&(ge=bt.scrollTop||0),A({scrollTop:ge})}}},Fe=r+"-preview "+(E.className||""),Oe=De=>me(De,"preview"),Te=O.useMemo(()=>f.jsx("div",{ref:ee,className:Fe,children:f.jsx(Ib,ne({},E,{onScroll:Oe,source:X.markdown||""}))}),[Fe,E,X.markdown]),gt=U?.preview&&U?.preview(X.markdown||"",X,A);gt&&O.isValidElement(gt)&&(Te=f.jsx("div",{className:Fe,ref:ee,onScroll:Oe,children:gt}));var Ze=ne({},re.style,{height:X.height||"100%"}),be=()=>A({barPopup:ne({},q$(X.barPopup))}),Xt=De=>A({height:De}),vt=De=>{if(B&&B(De.target.value,De,X),v&&v.onChange&&v.onChange(De),X.textarea&&X.textarea instanceof HTMLTextAreaElement&&y){var wt=new _h(X.textarea),yt=wt.getState()||{};y(ne({},yt,{lineCount:De.target.value.split(`
181
+ `).length,length:De.target.value.length}))}};return f.jsx(Na.Provider,{value:ne({},X,{dispatch:A}),children:f.jsxs("div",ne({ref:de,className:J},re,{onClick:be,style:Ze,children:[f.jsx(Im,{hideToolbar:F,toolbarBottom:$,prefixCls:r,overflow:x,placement:"top"}),f.jsxs("div",{className:r+"-content",children:[/(edit|live)/.test(X.preview||"")&&f.jsx(H$,ne({className:r+"-input",prefixCls:r,autoFocus:w},v,{onChange:vt,renderTextarea:U?.textarea||Y,onScroll:De=>me(De,"text")})),/(live|preview)/.test(X.preview||"")&&Te]}),h&&!X.fullscreen&&f.jsx(z$,{prefixCls:r,height:X.height,maxHeight:C,minHeight:I,onChange:Xt}),f.jsx(Im,{hideToolbar:F,toolbarBottom:$,prefixCls:r,overflow:x,placement:"bottom"})]}))})}),$b=W$;$b.Markdown=Ib;function V$({cell:e,sourceAndPaths:t,onQueryChange:n,onSourceChange:r}){const o={query:e.value,malloyResult:e.result?JSON.parse(e.result):void 0,malloyQuery:e.queryInfo?JSON.parse(e.queryInfo):void 0},a=t.findIndex(i=>i.sourceInfo.name===e.sourceName);return f.jsx(uE,{sourceAndPaths:t,selectedSourceIndex:a>=0?a:0,existingQuery:o,onQueryChange:n,onSourceChange:r})}function Y$({cell:e,editingMalloy:t,editingMarkdown:n,sourceAndPaths:r,onCellChange:o,onClose:a,onEdit:i,onDelete:s,addButtonCallback:l}){const[c,d]=O.useState(e.value),[u,h]=O.useState(!1),[p,g]=O.useState(!1),[b,x]=O.useState(),[E]=O.useState(),[v,C]=O.useState(Ys()),[I,w]=O.useState(!1),[S,M]=O.useState(e.sourceName?r.findIndex(A=>A.sourceInfo.name===e.sourceName):0);O.useEffect(()=>{e.isMarkdown||hl(e.value,"malloy").then(A=>{x(A)})},[e]),O.useEffect(()=>{document.documentElement.setAttribute("data-color-mode","light")});const[q,B]=O.useState(!1),y=()=>{s(),B(!1)},R=r.length===0,F=O.useCallback(()=>{const A=r[S],de=A?.modelPath||e.modelPath||"",ee=A?.sourceInfo.name||e.sourceName||"";o({...e,value:e.isMarkdown?c:v.query,result:v.malloyResult?JSON.stringify(v.malloyResult):void 0,queryInfo:v.malloyQuery?JSON.stringify(v.malloyQuery):void 0,sourceName:ee,modelPath:de})},[e,c,v,o,S,r]),$=f.jsx(T.Tooltip,{title:"Delete Cell",children:f.jsx(T.IconButton,{size:"small",onClick:()=>B(!0),children:f.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{d:"M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2m2 0v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6h14zM10 11v6M14 11v6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})}),U=f.jsxs(T.Dialog,{open:q,onClose:()=>B(!1),children:[f.jsx(T.DialogTitle,{children:"Confirm Delete"}),f.jsx(T.DialogContent,{children:f.jsx(T.Typography,{children:"Are you sure you want to delete this cell?"})}),f.jsxs(T.DialogActions,{children:[f.jsx(T.Button,{onClick:()=>B(!1),children:"Cancel"}),f.jsx(T.Button,{onClick:y,color:"error",children:"Delete"})]})]}),Y=()=>{F(),a()},re=e.isMarkdown?f.jsxs(f.Fragment,{children:[n?f.jsx(T.Tooltip,{title:"Save",children:f.jsx(T.IconButton,{size:"small",onClick:Y,children:f.jsx(ys,{})})}):f.jsx(T.Tooltip,{title:"Edit",children:f.jsx(T.IconButton,{size:"small",onClick:i,children:f.jsx(ef,{})})}),!n&&$]}):f.jsxs(f.Fragment,{children:[!t&&f.jsx(T.Tooltip,{title:u?"Hide Code":"View Code",children:f.jsx(T.IconButton,{size:"small",onClick:()=>{h(!u)},children:f.jsx(F0,{})})}),!t&&e.result&&f.jsx(T.Tooltip,{title:p?"Hide Embedding":"View Embedding",children:f.jsx(T.IconButton,{size:"small",onClick:()=>{g(!p)},children:f.jsx(NI,{})})}),t&&f.jsx(T.Tooltip,{title:"Save",children:f.jsx(T.IconButton,{size:"small",onClick:Y,children:f.jsx(ys,{})})}),!t&&f.jsx(T.Tooltip,{title:"Edit",children:f.jsx(T.IconButton,{size:"small",onClick:i,children:f.jsx(ef,{})})}),!t&&$]}),fe=t||n,ue=n?f.jsx(T.Tooltip,{title:"Save",children:f.jsx(T.IconButton,{size:"small",onClick:Y,children:f.jsx(ys,{})})}):t?f.jsx(T.Tooltip,{title:"Save",children:f.jsx(T.IconButton,{size:"small",onClick:Y,children:f.jsx(ys,{})})}):null,X=I&&f.jsx(T.Box,{sx:{position:"absolute",top:"4px",right:"4px",display:"flex",gap:"8px",backgroundColor:"background.paper",border:"1px solid",borderColor:"divider",borderRadius:"8px",padding:"2px 4px",boxShadow:1,zIndex:10},children:!fe&&f.jsxs(f.Fragment,{children:[l(!0),l(!1),re]})||ue});return f.jsxs(el,{sx:{position:"relative",marginTop:"5px",marginBottom:"5px",borderWidth:"1.5px",backgroundColor:"#fff",minHeight:"50px"},onMouseEnter:()=>w(!0),onMouseLeave:()=>{w(!1)},children:[X,e.isMarkdown?f.jsx(f.Fragment,{children:n?f.jsx($b,{value:c,preview:"edit",autoFocus:!0,onChange:A=>{d(A),o({...e,value:A})},onBlur:()=>{F(),I||Y()}}):f.jsx(T.Box,{sx:{px:.5,pt:0,mt:0,"& h1, & h2, & h3, & h4, & h5, & h6":{mt:.5,mb:.5},"& p":{mt:.5,mb:.5},"& ul, & ol":{mt:.5,mb:.5},"& li":{mt:0,mb:0},"& pre, & code":{mt:.5,mb:.5},"& blockquote":{mt:.5,mb:.5}},children:e.value?f.jsx(T.Box,{onClick:i,sx:{cursor:"pointer"},children:f.jsx(Sd,{children:e.value})}):f.jsxs(T.Box,{onClick:i,sx:{cursor:"pointer"},children:[f.jsx(T.Typography,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Markdown is empty"}),f.jsx(T.Typography,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})})}):f.jsxs(f.Fragment,{children:[f.jsx(T.Collapse,{in:p,timeout:"auto",unmountOnExit:!0,children:f.jsx(T.Stack,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:f.jsx(T.Typography,{component:"div",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:E}})})}),f.jsx(T.Collapse,{in:u,timeout:"auto",unmountOnExit:!0,children:f.jsx(T.Stack,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:f.jsx(T.Typography,{component:"div",className:"content",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:b}})})}),t&&(R?f.jsxs(f.Fragment,{children:[f.jsx(T.Typography,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"No Model Imports"}),f.jsx(T.Typography,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Please add a model import above."})]}):f.jsx(V$,{sourceAndPaths:r,onQueryChange:A=>{C(A)},onSourceChange:A=>{M(A)},cell:e})),!t&&e.result&&f.jsx(el,{variant:"outlined",sx:{borderRadius:0},children:f.jsx(Yl,{result:e.result,minHeight:300,maxHeight:800})}),!t&&!e.result&&f.jsxs(T.Box,{onClick:i,sx:{cursor:"pointer"},children:[f.jsx(T.Typography,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Explore is empty"}),f.jsx(T.Typography,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})]}),q&&U]})}const Ob=O.createContext(void 0);function K$({children:e,workbookStorage:t}){const n=O.useMemo(()=>({workbookStorage:t}),[t]);return f.jsx(Ob.Provider,{value:n,children:e})}function Q$(){const e=O.useContext(Ob);if(!e)throw new Error("useWorkbookStorage must be used within a WorkbookStorageProvider");return e}const X$=pt(f.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"})),J$=new jl(new Yt);function Z$({initialSelectedModels:e,onModelChange:t}){const{projectName:n,packageName:r,versionId:o}=zn(),{data:a,isLoading:i,isSuccess:s,isError:l,error:c}=un({queryKey:["models",n,r,o],queryFn:E=>J$.listModels(n,r,o,E)}),[d,u]=O.useState(e||[]),[h,p]=O.useState(null);O.useEffect(()=>{u(e||[])},[e]);const g=E=>{const v=d.filter(C=>C!==E);u(v),t(v)},b=E=>{const v=[...d,E];u(v),t(v),p(null)};let x=[];return s&&a?.data&&(x=a.data.filter(E=>!d.includes(E.path)).map(E=>E.path)),l?f.jsx(sn,{error:c,context:`${n} > ${r} > Model Picker`}):f.jsxs(f.Fragment,{children:[f.jsxs(T.FormControl,{fullWidth:!0,children:[i&&f.jsx(T.Typography,{children:"Loading..."}),f.jsxs(T.Stack,{direction:"row",spacing:1,children:[d.map(E=>f.jsx(T.Chip,{label:E,onDelete:()=>g(E),deleteIcon:f.jsx(_i,{}),sx:{marginBottom:"5px"}},E)),f.jsx(T.Button,{size:"small",startIcon:f.jsx(X$,{}),onClick:E=>p(E.currentTarget),disabled:i||l||x.length===0,children:"Add Model"})]})]}),f.jsxs(T.Menu,{anchorEl:h,open:!!h,onClose:()=>p(null),children:[f.jsx(T.Typography,{variant:"subtitle2",sx:{ml:1},children:"Models"}),f.jsx(T.Divider,{}),x.length===0?f.jsx(T.MenuItem,{disabled:!0,children:"No models available"}):x.map(E=>f.jsx(T.MenuItem,{onClick:()=>b(E),children:f.jsx(T.Typography,{variant:"body2",children:E})},E))]})]})}/**
182
182
  * react-router v7.7.1
183
183
  *
184
184
  * Copyright (c) Remix Software Inc.
@@ -187,10 +187,10 @@ import {${t.sourceName}}" from '${t.modelPath}'"
187
187
  * LICENSE.md file in the root directory of this source tree.
188
188
  *
189
189
  * @license MIT
190
- */var Mb=e=>{throw TypeError(e)},eO=(e,t,n)=>t.has(e)||Mb("Cannot "+n),cu=(e,t,n)=>(eO(e,t,"read from private field"),n?n.call(e):t.get(e)),tO=(e,t,n)=>t.has(e)?Mb("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),_m="popstate";function nO(e={}){function t(r,o){let{pathname:a,search:i,hash:s}=r.location;return $i("",{pathname:a,search:i,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Kr(o)}return oO(t,n,null,e)}function je(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ft(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function rO(){return Math.random().toString(36).substring(2,10)}function Dm(e,t){return{usr:e.state,key:e.key,idx:t}}function $i(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?no(t):t,state:n,key:t&&t.key||r||rO()}}function Kr({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function no(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function oO(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,s="POP",l=null,c=d();c==null&&(c=0,i.replaceState({...i.state,idx:c},""));function d(){return(i.state||{idx:null}).idx}function u(){s="POP";let x=d(),E=x==null?null:x-c;c=x,l&&l({action:s,location:b.location,delta:E})}function h(x,E){s="PUSH";let v=$i(b.location,x,E);c=d()+1;let C=Dm(v,c),I=b.createHref(v);try{i.pushState(C,"",I)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;o.location.assign(I)}a&&l&&l({action:s,location:b.location,delta:1})}function p(x,E){s="REPLACE";let v=$i(b.location,x,E);c=d();let C=Dm(v,c),I=b.createHref(v);i.replaceState(C,"",I),a&&l&&l({action:s,location:b.location,delta:0})}function g(x){return Fb(x)}let b={get action(){return s},get location(){return e(o,i)},listen(x){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(_m,u),l=x,()=>{o.removeEventListener(_m,u),l=null}},createHref(x){return t(o,x)},createURL:g,encodeLocation(x){let E=g(x);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:h,replace:p,go(x){return i.go(x)}};return b}function Fb(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),je(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Kr(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var ai,wm=class{constructor(e){if(tO(this,ai,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(cu(this,ai).has(e))return cu(this,ai).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){cu(this,ai).set(e,t)}};ai=new WeakMap;var aO=new Set(["lazy","caseSensitive","path","id","index","children"]);function iO(e){return aO.has(e)}var sO=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function lO(e){return sO.has(e)}function cO(e){return e.index===!0}function Oi(e,t,n=[],r={},o=!1){return e.map((a,i)=>{let s=[...n,String(i)],l=typeof a.id=="string"?a.id:s.join("-");if(je(a.index!==!0||!a.children,"Cannot specify children on an index route"),je(o||!r[l],`Found a route id collision on id "${l}". Route id's must be globally unique within Data Router usages`),cO(a)){let c={...a,...t(a),id:l};return r[l]=c,c}else{let c={...a,...t(a),id:l,children:void 0};return r[l]=c,a.children&&(c.children=Oi(a.children,t,s,r,o)),c}})}function zr(e,t,n="/"){return Gs(e,t,n,!1)}function Gs(e,t,n,r){let o=typeof t=="string"?no(t):t,a=Hn(o.pathname||"/",n);if(a==null)return null;let i=Bb(e);dO(i);let s=null;for(let l=0;s==null&&l<i.length;++l){let c=CO(a);s=xO(i[l],c,r)}return s}function uO(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function Bb(e,t=[],n=[],r=""){let o=(a,i,s)=>{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};l.relativePath.startsWith("/")&&(je(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length));let c=dr([r,l.relativePath]),d=n.concat(l);a.children&&a.children.length>0&&(je(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),Bb(a.children,t,d,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:bO(c,a.index),routesMeta:d})};return e.forEach((a,i)=>{if(a.path===""||!a.path?.includes("?"))o(a,i);else for(let s of jb(a.path))o(a,i,s)}),t}function jb(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let i=jb(r.join("/")),s=[];return s.push(...i.map(l=>l===""?a:[a,l].join("/"))),o&&s.push(...i),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function dO(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:EO(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var hO=/^:[\w-]+$/,pO=3,fO=2,mO=1,gO=10,yO=-2,Nm=e=>e==="*";function bO(e,t){let n=e.split("/"),r=n.length;return n.some(Nm)&&(r+=yO),t&&(r+=fO),n.filter(o=>!Nm(o)).reduce((o,a)=>o+(hO.test(a)?pO:a===""?mO:gO),r)}function EO(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function xO(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",i=[];for(let s=0;s<r.length;++s){let l=r[s],c=s===r.length-1,d=a==="/"?t:t.slice(a.length)||"/",u=Sl({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),h=l.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=Sl({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!u)return null;Object.assign(o,u.params),i.push({params:o,pathname:dr([a,u.pathname]),pathnameBase:AO(dr([a,u.pathnameBase])),route:h}),u.pathnameBase!=="/"&&(a=dr([a,u.pathnameBase]))}return i}function Sl(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=TO(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((c,{paramName:d,isOptional:u},h)=>{if(d==="*"){let g=s[h]||"";i=a.slice(0,a.length-g.length).replace(/(.)\/+$/,"$1")}const p=s[h];return u&&!p?c[d]=void 0:c[d]=(p||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:i,pattern:e}}function TO(e,t=!1,n=!0){Ft(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function CO(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ft(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Hn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function vO({basename:e,pathname:t}){return t==="/"?e:dr([e,t])}function SO(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?no(e):e;return{pathname:n?n.startsWith("/")?n:kO(n,t):t,search:IO(r),hash:_O(o)}}function kO(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function uu(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Hb(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Dh(e){let t=Hb(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function wh(e,t,n,r=!1){let o;typeof e=="string"?o=no(e):(o={...e},je(!o.pathname||!o.pathname.includes("?"),uu("?","pathname","search",o)),je(!o.pathname||!o.pathname.includes("#"),uu("#","pathname","hash",o)),je(!o.search||!o.search.includes("#"),uu("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(i==null)s=n;else{let u=t.length-1;if(!r&&i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),u-=1;o.pathname=h.join("/")}s=u>=0?t[u]:"/"}let l=SO(o,s),c=i&&i!=="/"&&i.endsWith("/"),d=(a||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}var dr=e=>e.join("/").replace(/\/\/+/g,"/"),AO=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),IO=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_O=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,kl=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Mi(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Ub=["POST","PUT","PATCH","DELETE"],DO=new Set(Ub),wO=["GET",...Ub],NO=new Set(wO),PO=new Set([301,302,303,307,308]),RO=new Set([307,308]),du={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},LO={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ka={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},$O=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Nh=e=>$O.test(e),OO=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),zb="remix-router-transitions",Gb=Symbol("ResetLoaderData");function MO(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";je(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||OO,a={},i=Oi(e.routes,o,void 0,a),s,l=e.basename||"/",c=e.dataStrategy||UO,d={unstable_middleware:!1,...e.future},u=null,h=new Set,p=null,g=null,b=null,x=e.hydrationData!=null,E=zr(i,e.history.location,l),v=!1,C=null,I;if(E==null&&!e.patchRoutesOnNavigation){let L=Pn(404,{pathname:e.history.location.pathname}),{matches:j,route:z}=zm(i);I=!0,E=j,C={[z.id]:L}}else if(E&&!e.hydrationData&&oo(E,i,e.history.location.pathname).active&&(E=null),E)if(E.some(L=>L.route.lazy))I=!1;else if(!E.some(L=>L.route.loader))I=!0;else{let L=e.hydrationData?e.hydrationData.loaderData:null,j=e.hydrationData?e.hydrationData.errors:null;if(j){let z=E.findIndex(se=>j[se.route.id]!==void 0);I=E.slice(0,z+1).every(se=>!ld(se.route,L,j))}else I=E.every(z=>!ld(z.route,L,j))}else{I=!1,E=[];let L=oo(null,i,e.history.location.pathname);L.active&&L.matches&&(v=!0,E=L.matches)}let N,S={historyAction:e.history.action,location:e.history.location,matches:E,initialized:I,navigation:du,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||C,fetchers:new Map,blockers:new Map},M="POP",q=!1,B,y=!1,R=new Map,F=null,$=!1,U=!1,Y=new Set,re=new Map,fe=0,ue=-1,X=new Map,A=new Set,de=new Map,ee=new Map,k=new Set,J=new Map,Ee,he=null;function ye(){if(u=e.history.listen(({action:L,location:j,delta:z})=>{if(Ee){Ee(),Ee=void 0;return}Ft(J.size===0||z!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let se=Pe({currentLocation:S.location,nextLocation:j,historyAction:L});if(se&&z!=null){let pe=new Promise(Ce=>{Ee=Ce});e.history.go(z*-1),Me(se,{state:"blocked",location:j,proceed(){Me(se,{state:"proceeding",proceed:void 0,reset:void 0,location:j}),pe.then(()=>e.history.go(z))},reset(){let Ce=new Map(S.blockers);Ce.set(se,Ka),Oe({blockers:Ce})}});return}return be(L,j)}),n){ZO(t,R);let L=()=>eM(t,R);t.addEventListener("pagehide",L),F=()=>t.removeEventListener("pagehide",L)}return S.initialized||be("POP",S.location,{initialHydration:!0}),N}function me(){u&&u(),F&&F(),h.clear(),B&&B.abort(),S.fetchers.forEach((L,j)=>Ue(j)),S.blockers.forEach((L,j)=>te(j))}function Fe(L){return h.add(L),()=>h.delete(L)}function Oe(L,j={}){L.matches&&(L.matches=L.matches.map(pe=>{let Ce=a[pe.route.id],ve=pe.route;return ve.element!==Ce.element||ve.errorElement!==Ce.errorElement||ve.hydrateFallbackElement!==Ce.hydrateFallbackElement?{...pe,route:Ce}:pe})),S={...S,...L};let z=[],se=[];S.fetchers.forEach((pe,Ce)=>{pe.state==="idle"&&(k.has(Ce)?z.push(Ce):se.push(Ce))}),k.forEach(pe=>{!S.fetchers.has(pe)&&!re.has(pe)&&z.push(pe)}),[...h].forEach(pe=>pe(S,{deletedFetchers:z,viewTransitionOpts:j.viewTransitionOpts,flushSync:j.flushSync===!0})),z.forEach(pe=>Ue(pe)),se.forEach(pe=>S.fetchers.delete(pe))}function Te(L,j,{flushSync:z}={}){let se=S.actionData!=null&&S.navigation.formMethod!=null&&En(S.navigation.formMethod)&&S.navigation.state==="loading"&&L.state?._isRedirect!==!0,pe;j.actionData?Object.keys(j.actionData).length>0?pe=j.actionData:pe=null:se?pe=S.actionData:pe=null;let Ce=j.loaderData?Hm(S.loaderData,j.loaderData,j.matches||[],j.errors):S.loaderData,ve=S.blockers;ve.size>0&&(ve=new Map(ve),ve.forEach((Se,_e)=>ve.set(_e,Ka)));let xe=$?!1:gn(L,j.matches||S.matches),Ie=q===!0||S.navigation.formMethod!=null&&En(S.navigation.formMethod)&&L.state?._isRedirect!==!0;s&&(i=s,s=void 0),$||M==="POP"||(M==="PUSH"?e.history.push(L,L.state):M==="REPLACE"&&e.history.replace(L,L.state));let Re;if(M==="POP"){let Se=R.get(S.location.pathname);Se&&Se.has(L.pathname)?Re={currentLocation:S.location,nextLocation:L}:R.has(L.pathname)&&(Re={currentLocation:L,nextLocation:S.location})}else if(y){let Se=R.get(S.location.pathname);Se?Se.add(L.pathname):(Se=new Set([L.pathname]),R.set(S.location.pathname,Se)),Re={currentLocation:S.location,nextLocation:L}}Oe({...j,actionData:pe,loaderData:Ce,historyAction:M,location:L,initialized:!0,navigation:du,revalidation:"idle",restoreScrollPosition:xe,preventScrollReset:Ie,blockers:ve},{viewTransitionOpts:Re,flushSync:z===!0}),M="POP",q=!1,y=!1,$=!1,U=!1,he?.resolve(),he=null}async function gt(L,j){if(typeof L=="number"){e.history.go(L);return}let z=sd(S.location,S.matches,l,L,j?.fromRouteId,j?.relative),{path:se,submission:pe,error:Ce}=Pm(!1,z,j),ve=S.location,xe=$i(S.location,se,j&&j.state);xe={...xe,...e.history.encodeLocation(xe)};let Ie=j&&j.replace!=null?j.replace:void 0,Re="PUSH";Ie===!0?Re="REPLACE":Ie===!1||pe!=null&&En(pe.formMethod)&&pe.formAction===S.location.pathname+S.location.search&&(Re="REPLACE");let Se=j&&"preventScrollReset"in j?j.preventScrollReset===!0:void 0,_e=(j&&j.flushSync)===!0,Ge=Pe({currentLocation:ve,nextLocation:xe,historyAction:Re});if(Ge){Me(Ge,{state:"blocked",location:xe,proceed(){Me(Ge,{state:"proceeding",proceed:void 0,reset:void 0,location:xe}),gt(L,j)},reset(){let St=new Map(S.blockers);St.set(Ge,Ka),Oe({blockers:St})}});return}await be(Re,xe,{submission:pe,pendingError:Ce,preventScrollReset:Se,replace:j&&j.replace,enableViewTransition:j&&j.viewTransition,flushSync:_e})}function Ze(){he||(he=tM()),Ve(),Oe({revalidation:"loading"});let L=he.promise;return S.navigation.state==="submitting"?L:S.navigation.state==="idle"?(be(S.historyAction,S.location,{startUninterruptedRevalidation:!0}),L):(be(M||S.historyAction,S.navigation.location,{overrideNavigation:S.navigation,enableViewTransition:y===!0}),L)}async function be(L,j,z){B&&B.abort(),B=null,M=L,$=(z&&z.startUninterruptedRevalidation)===!0,Zn(S.location,S.matches),q=(z&&z.preventScrollReset)===!0,y=(z&&z.enableViewTransition)===!0;let se=s||i,pe=z&&z.overrideNavigation,Ce=z?.initialHydration&&S.matches&&S.matches.length>0&&!v?S.matches:zr(se,j,l),ve=(z&&z.flushSync)===!0;if(Ce&&S.initialized&&!U&&YO(S.location,j)&&!(z&&z.submission&&En(z.submission.formMethod))){Te(j,{matches:Ce},{flushSync:ve});return}let xe=oo(Ce,se,j.pathname);if(xe.active&&xe.matches&&(Ce=xe.matches),!Ce){let{error:hn,notFoundMatches:kt,route:ft}=zt(j.pathname);Te(j,{matches:kt,loaderData:{},errors:{[ft.id]:hn}},{flushSync:ve});return}B=new AbortController;let Ie=sa(e.history,j,B.signal,z&&z.submission),Re=new wm(e.unstable_getContext?await e.unstable_getContext():void 0),Se;if(z&&z.pendingError)Se=[ho(Ce).route.id,{type:"error",error:z.pendingError}];else if(z&&z.submission&&En(z.submission.formMethod)){let hn=await Xt(Ie,j,z.submission,Ce,Re,xe.active,z&&z.initialHydration===!0,{replace:z.replace,flushSync:ve});if(hn.shortCircuited)return;if(hn.pendingActionResult){let[kt,ft]=hn.pendingActionResult;if(Sn(ft)&&Mi(ft.error)&&ft.error.status===404){B=null,Te(j,{matches:hn.matches,loaderData:{},errors:{[kt]:ft.error}});return}}Ce=hn.matches||Ce,Se=hn.pendingActionResult,pe=hu(j,z.submission),ve=!1,xe.active=!1,Ie=sa(e.history,Ie.url,Ie.signal)}let{shortCircuited:_e,matches:Ge,loaderData:St,errors:en}=await vt(Ie,j,Ce,Re,xe.active,pe,z&&z.submission,z&&z.fetcherSubmission,z&&z.replace,z&&z.initialHydration===!0,ve,Se);_e||(B=null,Te(j,{matches:Ge||Ce,...Um(Se),loaderData:St,errors:en}))}async function Xt(L,j,z,se,pe,Ce,ve,xe={}){Ve();let Ie=XO(j,z);if(Oe({navigation:Ie},{flushSync:xe.flushSync===!0}),Ce){let _e=await Lt(se,j.pathname,L.signal);if(_e.type==="aborted")return{shortCircuited:!0};if(_e.type==="error"){let Ge=ho(_e.partialMatches).route.id;return{matches:_e.partialMatches,pendingActionResult:[Ge,{type:"error",error:_e.error}]}}else if(_e.matches)se=_e.matches;else{let{notFoundMatches:Ge,error:St,route:en}=zt(j.pathname);return{matches:Ge,pendingActionResult:[en.id,{type:"error",error:St}]}}}let Re,Se=qs(se,j);if(!Se.route.action&&!Se.route.lazy)Re={type:"error",error:Pn(405,{method:L.method,pathname:j.pathname,routeId:Se.route.id})};else{let _e=ma(o,a,L,se,Se,ve?[]:r,pe),Ge=await Wn(L,_e,pe,null);if(Re=Ge[Se.route.id],!Re){for(let St of se)if(Ge[St.route.id]){Re=Ge[St.route.id];break}}if(L.signal.aborted)return{shortCircuited:!0}}if(Eo(Re)){let _e;return xe&&xe.replace!=null?_e=xe.replace:_e=Fm(Re.response.headers.get("Location"),new URL(L.url),l)===S.location.pathname+S.location.search,await ge(L,Re,!0,{submission:z,replace:_e}),{shortCircuited:!0}}if(Sn(Re)){let _e=ho(se,Se.route.id);return(xe&&xe.replace)!==!0&&(M="PUSH"),{matches:se,pendingActionResult:[_e.route.id,Re,Se.route.id]}}return{matches:se,pendingActionResult:[Se.route.id,Re]}}async function vt(L,j,z,se,pe,Ce,ve,xe,Ie,Re,Se,_e){let Ge=Ce||hu(j,ve),St=ve||xe||qm(Ge),en=!$&&!Re;if(pe){if(en){let tn=De(_e);Oe({navigation:Ge,...tn!==void 0?{actionData:tn}:{}},{flushSync:Se})}let Ke=await Lt(z,j.pathname,L.signal);if(Ke.type==="aborted")return{shortCircuited:!0};if(Ke.type==="error"){let tn=ho(Ke.partialMatches).route.id;return{matches:Ke.partialMatches,loaderData:{},errors:{[tn]:Ke.error}}}else if(Ke.matches)z=Ke.matches;else{let{error:tn,notFoundMatches:cs,route:Oa}=zt(j.pathname);return{matches:cs,loaderData:{},errors:{[Oa.id]:tn}}}}let hn=s||i,{dsMatches:kt,revalidatingFetchers:ft}=Rm(L,se,o,a,e.history,S,z,St,j,Re?[]:r,Re===!0,U,Y,k,de,A,hn,l,e.patchRoutesOnNavigation!=null,_e);if(ue=++fe,!e.dataStrategy&&!kt.some(Ke=>Ke.shouldLoad)&&ft.length===0){let Ke=Kt();return Te(j,{matches:z,loaderData:{},errors:_e&&Sn(_e[1])?{[_e[0]]:_e[1].error}:null,...Um(_e),...Ke?{fetchers:new Map(S.fetchers)}:{}},{flushSync:Se}),{shortCircuited:!0}}if(en){let Ke={};if(!pe){Ke.navigation=Ge;let tn=De(_e);tn!==void 0&&(Ke.actionData=tn)}ft.length>0&&(Ke.fetchers=wt(ft)),Oe(Ke,{flushSync:Se})}ft.forEach(Ke=>{et(Ke.key),Ke.controller&&re.set(Ke.key,Ke.controller)});let io=()=>ft.forEach(Ke=>et(Ke.key));B&&B.signal.addEventListener("abort",io);let{loaderResults:La,fetcherResults:Mr}=await Or(kt,ft,L,se);if(L.signal.aborted)return{shortCircuited:!0};B&&B.signal.removeEventListener("abort",io),ft.forEach(Ke=>re.delete(Ke.key));let er=As(La);if(er)return await ge(L,er.result,!0,{replace:Ie}),{shortCircuited:!0};if(er=As(Mr),er)return A.add(er.key),await ge(L,er.result,!0,{replace:Ie}),{shortCircuited:!0};let{loaderData:Ec,errors:$a}=jm(S,z,La,_e,ft,Mr);Re&&S.errors&&($a={...S.errors,...$a});let so=Kt(),ss=Zt(ue),ls=so||ss||ft.length>0;return{matches:z,loaderData:Ec,errors:$a,...ls?{fetchers:new Map(S.fetchers)}:{}}}function De(L){if(L&&!Sn(L[1]))return{[L[0]]:L[1].data};if(S.actionData)return Object.keys(S.actionData).length===0?null:S.actionData}function wt(L){return L.forEach(j=>{let z=S.fetchers.get(j.key),se=Qa(void 0,z?z.data:void 0);S.fetchers.set(j.key,se)}),new Map(S.fetchers)}async function yt(L,j,z,se){et(L);let pe=(se&&se.flushSync)===!0,Ce=s||i,ve=sd(S.location,S.matches,l,z,j,se?.relative),xe=zr(Ce,ve,l),Ie=oo(xe,Ce,ve);if(Ie.active&&Ie.matches&&(xe=Ie.matches),!xe){oe(L,j,Pn(404,{pathname:ve}),{flushSync:pe});return}let{path:Re,submission:Se,error:_e}=Pm(!0,ve,se);if(_e){oe(L,j,_e,{flushSync:pe});return}let Ge=new wm(e.unstable_getContext?await e.unstable_getContext():void 0),St=(se&&se.preventScrollReset)===!0;if(Se&&En(Se.formMethod)){await bt(L,j,Re,xe,Ge,Ie.active,pe,St,Se);return}de.set(L,{routeId:j,path:Re}),await ke(L,j,Re,xe,Ge,Ie.active,pe,St,Se)}async function bt(L,j,z,se,pe,Ce,ve,xe,Ie){Ve(),de.delete(L);let Re=S.fetchers.get(L);V(L,JO(Ie,Re),{flushSync:ve});let Se=new AbortController,_e=sa(e.history,z,Se.signal,Ie);if(Ce){let jt=await Lt(se,new URL(_e.url).pathname,_e.signal,L);if(jt.type==="aborted")return;if(jt.type==="error"){oe(L,j,jt.error,{flushSync:ve});return}else if(jt.matches)se=jt.matches;else{oe(L,j,Pn(404,{pathname:z}),{flushSync:ve});return}}let Ge=qs(se,z);if(!Ge.route.action&&!Ge.route.lazy){let jt=Pn(405,{method:Ie.formMethod,pathname:z,routeId:j});oe(L,j,jt,{flushSync:ve});return}re.set(L,Se);let St=fe,en=ma(o,a,_e,se,Ge,r,pe),kt=(await Wn(_e,en,pe,L))[Ge.route.id];if(_e.signal.aborted){re.get(L)===Se&&re.delete(L);return}if(k.has(L)){if(Eo(kt)||Sn(kt)){V(L,Ur(void 0));return}}else{if(Eo(kt))if(re.delete(L),ue>St){V(L,Ur(void 0));return}else return A.add(L),V(L,Qa(Ie)),ge(_e,kt,!1,{fetcherSubmission:Ie,preventScrollReset:xe});if(Sn(kt)){oe(L,j,kt.error);return}}let ft=S.navigation.location||S.location,io=sa(e.history,ft,Se.signal),La=s||i,Mr=S.navigation.state!=="idle"?zr(La,S.navigation.location,l):S.matches;je(Mr,"Didn't find any matches after fetcher action");let er=++fe;X.set(L,er);let Ec=Qa(Ie,kt.data);S.fetchers.set(L,Ec);let{dsMatches:$a,revalidatingFetchers:so}=Rm(io,pe,o,a,e.history,S,Mr,Ie,ft,r,!1,U,Y,k,de,A,La,l,e.patchRoutesOnNavigation!=null,[Ge.route.id,kt]);so.filter(jt=>jt.key!==L).forEach(jt=>{let us=jt.key,ep=S.fetchers.get(us),BE=Qa(void 0,ep?ep.data:void 0);S.fetchers.set(us,BE),et(us),jt.controller&&re.set(us,jt.controller)}),Oe({fetchers:new Map(S.fetchers)});let ss=()=>so.forEach(jt=>et(jt.key));Se.signal.addEventListener("abort",ss);let{loaderResults:ls,fetcherResults:Ke}=await Or($a,so,io,pe);if(Se.signal.aborted)return;if(Se.signal.removeEventListener("abort",ss),X.delete(L),re.delete(L),so.forEach(jt=>re.delete(jt.key)),S.fetchers.has(L)){let jt=Ur(kt.data);S.fetchers.set(L,jt)}let tn=As(ls);if(tn)return ge(io,tn.result,!1,{preventScrollReset:xe});if(tn=As(Ke),tn)return A.add(tn.key),ge(io,tn.result,!1,{preventScrollReset:xe});let{loaderData:cs,errors:Oa}=jm(S,Mr,ls,void 0,so,Ke);Zt(er),S.navigation.state==="loading"&&er>ue?(je(M,"Expected pending action"),B&&B.abort(),Te(S.navigation.location,{matches:Mr,loaderData:cs,errors:Oa,fetchers:new Map(S.fetchers)})):(Oe({errors:Oa,loaderData:Hm(S.loaderData,cs,Mr,Oa),fetchers:new Map(S.fetchers)}),U=!1)}async function ke(L,j,z,se,pe,Ce,ve,xe,Ie){let Re=S.fetchers.get(L);V(L,Qa(Ie,Re?Re.data:void 0),{flushSync:ve});let Se=new AbortController,_e=sa(e.history,z,Se.signal);if(Ce){let ft=await Lt(se,new URL(_e.url).pathname,_e.signal,L);if(ft.type==="aborted")return;if(ft.type==="error"){oe(L,j,ft.error,{flushSync:ve});return}else if(ft.matches)se=ft.matches;else{oe(L,j,Pn(404,{pathname:z}),{flushSync:ve});return}}let Ge=qs(se,z);re.set(L,Se);let St=fe,en=ma(o,a,_e,se,Ge,r,pe),kt=(await Wn(_e,en,pe,L))[Ge.route.id];if(re.get(L)===Se&&re.delete(L),!_e.signal.aborted){if(k.has(L)){V(L,Ur(void 0));return}if(Eo(kt))if(ue>St){V(L,Ur(void 0));return}else{A.add(L),await ge(_e,kt,!1,{preventScrollReset:xe});return}if(Sn(kt)){oe(L,j,kt.error);return}V(L,Ur(kt.data))}}async function ge(L,j,z,{submission:se,fetcherSubmission:pe,preventScrollReset:Ce,replace:ve}={}){j.response.headers.has("X-Remix-Revalidate")&&(U=!0);let xe=j.response.headers.get("Location");je(xe,"Expected a Location header on the redirect Response"),xe=Fm(xe,new URL(L.url),l);let Ie=$i(S.location,xe,{_isRedirect:!0});if(n){let en=!1;if(j.response.headers.has("X-Remix-Reload-Document"))en=!0;else if(Nh(xe)){const hn=Fb(xe,!0);en=hn.origin!==t.location.origin||Hn(hn.pathname,l)==null}if(en){ve?t.location.replace(xe):t.location.assign(xe);return}}B=null;let Re=ve===!0||j.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Se,formAction:_e,formEncType:Ge}=S.navigation;!se&&!pe&&Se&&_e&&Ge&&(se=qm(S.navigation));let St=se||pe;if(RO.has(j.response.status)&&St&&En(St.formMethod))await be(Re,Ie,{submission:{...St,formAction:xe},preventScrollReset:Ce||q,enableViewTransition:z?y:void 0});else{let en=hu(Ie,se);await be(Re,Ie,{overrideNavigation:en,fetcherSubmission:pe,preventScrollReset:Ce||q,enableViewTransition:z?y:void 0})}}async function Wn(L,j,z,se){let pe,Ce={};try{pe=await zO(c,L,j,se,z,!1)}catch(ve){return j.filter(xe=>xe.shouldLoad).forEach(xe=>{Ce[xe.route.id]={type:"error",error:ve}}),Ce}if(L.signal.aborted)return Ce;for(let[ve,xe]of Object.entries(pe))if(KO(xe)){let Ie=xe.result;Ce[ve]={type:"redirect",response:WO(Ie,L,ve,j,l)}}else Ce[ve]=await qO(xe);return Ce}async function Or(L,j,z,se){let pe=Wn(z,L,se,null),Ce=Promise.all(j.map(async Ie=>{if(Ie.matches&&Ie.match&&Ie.request&&Ie.controller){let Se=(await Wn(Ie.request,Ie.matches,se,Ie.key))[Ie.match.route.id];return{[Ie.key]:Se}}else return Promise.resolve({[Ie.key]:{type:"error",error:Pn(404,{pathname:Ie.path})}})})),ve=await pe,xe=(await Ce).reduce((Ie,Re)=>Object.assign(Ie,Re),{});return{loaderResults:ve,fetcherResults:xe}}function Ve(){U=!0,de.forEach((L,j)=>{re.has(j)&&Y.add(j),et(j)})}function V(L,j,z={}){S.fetchers.set(L,j),Oe({fetchers:new Map(S.fetchers)},{flushSync:(z&&z.flushSync)===!0})}function oe(L,j,z,se={}){let pe=ho(S.matches,j);Ue(L),Oe({errors:{[pe.route.id]:z},fetchers:new Map(S.fetchers)},{flushSync:(se&&se.flushSync)===!0})}function Ae(L){return ee.set(L,(ee.get(L)||0)+1),k.has(L)&&k.delete(L),S.fetchers.get(L)||LO}function Ue(L){let j=S.fetchers.get(L);re.has(L)&&!(j&&j.state==="loading"&&X.has(L))&&et(L),de.delete(L),X.delete(L),A.delete(L),k.delete(L),Y.delete(L),S.fetchers.delete(L)}function We(L){let j=(ee.get(L)||0)-1;j<=0?(ee.delete(L),k.add(L)):ee.set(L,j),Oe({fetchers:new Map(S.fetchers)})}function et(L){let j=re.get(L);j&&(j.abort(),re.delete(L))}function Jt(L){for(let j of L){let z=Ae(j),se=Ur(z.data);S.fetchers.set(j,se)}}function Kt(){let L=[],j=!1;for(let z of A){let se=S.fetchers.get(z);je(se,`Expected fetcher: ${z}`),se.state==="loading"&&(A.delete(z),L.push(z),j=!0)}return Jt(L),j}function Zt(L){let j=[];for(let[z,se]of X)if(se<L){let pe=S.fetchers.get(z);je(pe,`Expected fetcher: ${z}`),pe.state==="loading"&&(et(z),X.delete(z),j.push(z))}return Jt(j),j.length>0}function ie(L,j){let z=S.blockers.get(L)||Ka;return J.get(L)!==j&&J.set(L,j),z}function te(L){S.blockers.delete(L),J.delete(L)}function Me(L,j){let z=S.blockers.get(L)||Ka;je(z.state==="unblocked"&&j.state==="blocked"||z.state==="blocked"&&j.state==="blocked"||z.state==="blocked"&&j.state==="proceeding"||z.state==="blocked"&&j.state==="unblocked"||z.state==="proceeding"&&j.state==="unblocked",`Invalid blocker state transition: ${z.state} -> ${j.state}`);let se=new Map(S.blockers);se.set(L,j),Oe({blockers:se})}function Pe({currentLocation:L,nextLocation:j,historyAction:z}){if(J.size===0)return;J.size>1&&Ft(!1,"A router only supports one blocker at a time");let se=Array.from(J.entries()),[pe,Ce]=se[se.length-1],ve=S.blockers.get(pe);if(!(ve&&ve.state==="proceeding")&&Ce({currentLocation:L,nextLocation:j,historyAction:z}))return pe}function zt(L){let j=Pn(404,{pathname:L}),z=s||i,{matches:se,route:pe}=zm(z);return{notFoundMatches:se,route:pe,error:j}}function Jn(L,j,z){if(p=L,b=j,g=z||null,!x&&S.navigation===du){x=!0;let se=gn(S.location,S.matches);se!=null&&Oe({restoreScrollPosition:se})}return()=>{p=null,b=null,g=null}}function Vn(L,j){return g&&g(L,j.map(se=>uO(se,S.loaderData)))||L.key}function Zn(L,j){if(p&&b){let z=Vn(L,j);p[z]=b()}}function gn(L,j){if(p){let z=Vn(L,j),se=p[z];if(typeof se=="number")return se}return null}function oo(L,j,z){if(e.patchRoutesOnNavigation)if(L){if(Object.keys(L[0].params).length>0)return{active:!0,matches:Gs(j,z,l,!0)}}else return{active:!0,matches:Gs(j,z,l,!0)||[]};return{active:!1,matches:null}}async function Lt(L,j,z,se){if(!e.patchRoutesOnNavigation)return{type:"success",matches:L};let pe=L;for(;;){let Ce=s==null,ve=s||i,xe=a;try{await e.patchRoutesOnNavigation({signal:z,path:j,matches:pe,fetcherKey:se,patch:(Se,_e)=>{z.aborted||Lm(Se,_e,ve,xe,o,!1)}})}catch(Se){return{type:"error",error:Se,partialMatches:pe}}finally{Ce&&!z.aborted&&(i=[...i])}if(z.aborted)return{type:"aborted"};let Ie=zr(ve,j,l);if(Ie)return{type:"success",matches:Ie};let Re=Gs(ve,j,l,!0);if(!Re||pe.length===Re.length&&pe.every((Se,_e)=>Se.route.id===Re[_e].route.id))return{type:"success",matches:null};pe=Re}}function yr(L){a={},s=Oi(L,o,void 0,a)}function ao(L,j,z=!1){let se=s==null;Lm(L,j,s||i,a,o,z),se&&(i=[...i],Oe({}))}return N={get basename(){return l},get future(){return d},get state(){return S},get routes(){return i},get window(){return t},initialize:ye,subscribe:Fe,enableScrollRestoration:Jn,navigate:gt,fetch:yt,revalidate:Ze,createHref:L=>e.history.createHref(L),encodeLocation:L=>e.history.encodeLocation(L),getFetcher:Ae,deleteFetcher:We,dispose:me,getBlocker:ie,deleteBlocker:te,patchRoutes:ao,_internalFetchControllers:re,_internalSetRoutes:yr,_internalSetStateDoNotUseOrYouWillBreakYourApp(L){Oe(L)}},N}function FO(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function sd(e,t,n,r,o,a){let i,s;if(o){i=[];for(let c of t)if(i.push(c),c.route.id===o){s=c;break}}else i=t,s=t[t.length-1];let l=wh(r||".",Dh(i),Hn(e.pathname,n)||e.pathname,a==="path");if(r==null&&(l.search=e.search,l.hash=e.hash),(r==null||r===""||r===".")&&s){let c=Ph(l.search);if(s.route.index&&!c)l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index";else if(!s.route.index&&c){let d=new URLSearchParams(l.search),u=d.getAll("index");d.delete("index"),u.filter(p=>p).forEach(p=>d.append("index",p));let h=d.toString();l.search=h?`?${h}`:""}}return n!=="/"&&(l.pathname=vO({basename:n,pathname:l.pathname})),Kr(l)}function Pm(e,t,n){if(!n||!FO(n))return{path:t};if(n.formMethod&&!QO(n.formMethod))return{path:t,error:Pn(405,{method:n.formMethod})};let r=()=>({path:t,error:Pn(400,{type:"invalid-body"})}),a=(n.formMethod||"get").toUpperCase(),i=Qb(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!En(a))return r();let u=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((h,[p,g])=>`${h}${p}=${g}
191
- `,""):String(n.body);return{path:t,submission:{formMethod:a,formAction:i,formEncType:n.formEncType,formData:void 0,json:void 0,text:u}}}else if(n.formEncType==="application/json"){if(!En(a))return r();try{let u=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:a,formAction:i,formEncType:n.formEncType,formData:void 0,json:u,text:void 0}}}catch{return r()}}}je(typeof FormData=="function","FormData is not available in this environment");let s,l;if(n.formData)s=ud(n.formData),l=n.formData;else if(n.body instanceof FormData)s=ud(n.body),l=n.body;else if(n.body instanceof URLSearchParams)s=n.body,l=Bm(s);else if(n.body==null)s=new URLSearchParams,l=new FormData;else try{s=new URLSearchParams(n.body),l=Bm(s)}catch{return r()}let c={formMethod:a,formAction:i,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(En(c.formMethod))return{path:t,submission:c};let d=no(t);return e&&d.search&&Ph(d.search)&&s.append("index",""),d.search=`?${s}`,{path:Kr(d),submission:c}}function Rm(e,t,n,r,o,a,i,s,l,c,d,u,h,p,g,b,x,E,v,C){let I=C?Sn(C[1])?C[1].error:C[1].data:void 0,N=o.createURL(a.location),S=o.createURL(l),M;if(d&&a.errors){let $=Object.keys(a.errors)[0];M=i.findIndex(U=>U.route.id===$)}else if(C&&Sn(C[1])){let $=C[0];M=i.findIndex(U=>U.route.id===$)-1}let q=C?C[1].statusCode:void 0,B=q&&q>=400,y={currentUrl:N,currentParams:a.matches[0]?.params||{},nextUrl:S,nextParams:i[0].params,...s,actionResult:I,actionStatus:q},R=i.map(($,U)=>{let{route:Y}=$,re=null;if(M!=null&&U>M?re=!1:Y.lazy?re=!0:Y.loader==null?re=!1:d?re=ld(Y,a.loaderData,a.errors):BO(a.loaderData,a.matches[U],$)&&(re=!0),re!==null)return cd(n,r,e,$,c,t,re);let fe=B?!1:u||N.pathname+N.search===S.pathname+S.search||N.search!==S.search||jO(a.matches[U],$),ue={...y,defaultShouldRevalidate:fe},X=Al($,ue);return cd(n,r,e,$,c,t,X,ue)}),F=[];return g.forEach(($,U)=>{if(d||!i.some(ee=>ee.route.id===$.routeId)||p.has(U))return;let Y=a.fetchers.get(U),re=Y&&Y.state!=="idle"&&Y.data===void 0,fe=zr(x,$.path,E);if(!fe){if(v&&re)return;F.push({key:U,routeId:$.routeId,path:$.path,matches:null,match:null,request:null,controller:null});return}if(b.has(U))return;let ue=qs(fe,$.path),X=new AbortController,A=sa(o,$.path,X.signal),de=null;if(h.has(U))h.delete(U),de=ma(n,r,A,fe,ue,c,t);else if(re)u&&(de=ma(n,r,A,fe,ue,c,t));else{let ee={...y,defaultShouldRevalidate:B?!1:u};Al(ue,ee)&&(de=ma(n,r,A,fe,ue,c,t,ee))}de&&F.push({key:U,routeId:$.routeId,path:$.path,matches:de,match:ue,request:A,controller:X})}),{dsMatches:R,revalidatingFetchers:F}}function ld(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&e.id in t,o=n!=null&&n[e.id]!==void 0;return!r&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!o}function BO(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}function jO(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Al(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function Lm(e,t,n,r,o,a){let i;if(e){let c=r[e];je(c,`No route found to patch children into: routeId = ${e}`),c.children||(c.children=[]),i=c.children}else i=n;let s=[],l=[];if(t.forEach(c=>{let d=i.find(u=>qb(c,u));d?l.push({existingRoute:d,newRoute:c}):s.push(c)}),s.length>0){let c=Oi(s,o,[e||"_","patch",String(i?.length||"0")],r);i.push(...c)}if(a&&l.length>0)for(let c=0;c<l.length;c++){let{existingRoute:d,newRoute:u}=l[c],h=d,[p]=Oi([u],o,[],{},!0);Object.assign(h,{element:p.element?p.element:h.element,errorElement:p.errorElement?p.errorElement:h.errorElement,hydrateFallbackElement:p.hydrateFallbackElement?p.hydrateFallbackElement:h.hydrateFallbackElement})}}function qb(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>t.children?.some(o=>qb(n,o))):!1}var $m=new WeakMap,Wb=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(je(o,"No route found in manifest"),!o.lazy||typeof o.lazy!="object")return;let a=o.lazy[e];if(!a)return;let i=$m.get(o);i||(i={},$m.set(o,i));let s=i[e];if(s)return s;let l=(async()=>{let c=iO(e),u=o[e]!==void 0&&e!=="hasErrorBoundary";if(c)Ft(!c,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),i[e]=Promise.resolve();else if(u)Ft(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let h=await a();h!=null&&(Object.assign(o,{[e]:h}),Object.assign(o,r(o)))}typeof o.lazy=="object"&&(o.lazy[e]=void 0,Object.values(o.lazy).every(h=>h===void 0)&&(o.lazy=void 0))})();return i[e]=l,l},Om=new WeakMap;function HO(e,t,n,r,o){let a=n[e.id];if(je(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let d=Om.get(a);if(d)return{lazyRoutePromise:d,lazyHandlerPromise:d};let u=(async()=>{je(typeof e.lazy=="function","No lazy route function found");let h=await e.lazy(),p={};for(let g in h){let b=h[g];if(b===void 0)continue;let x=lO(g),v=a[g]!==void 0&&g!=="hasErrorBoundary";x?Ft(!x,"Route property "+g+" is not a supported property to be returned from a lazy route function. This property will be ignored."):v?Ft(!v,`Route "${a.id}" has a static property "${g}" defined but its lazy function is also returning a value for this property. The lazy route property "${g}" will be ignored.`):p[g]=b}Object.assign(a,p),Object.assign(a,{...r(a),lazy:void 0})})();return Om.set(a,u),u.catch(()=>{}),{lazyRoutePromise:u,lazyHandlerPromise:u}}let i=Object.keys(e.lazy),s=[],l;for(let d of i){if(o&&o.includes(d))continue;let u=Wb({key:d,route:e,manifest:n,mapRouteProperties:r});u&&(s.push(u),d===t&&(l=u))}let c=s.length>0?Promise.all(s).then(()=>{}):void 0;return c?.catch(()=>{}),l?.catch(()=>{}),{lazyRoutePromise:c,lazyHandlerPromise:l}}async function Mm(e){let t=e.matches.filter(o=>o.shouldLoad),n={};return(await Promise.all(t.map(o=>o.resolve()))).forEach((o,a)=>{n[t[a].route.id]=o}),n}async function UO(e){return e.matches.some(t=>t.route.unstable_middleware)?Vb(e,!1,()=>Mm(e),(t,n)=>({[n]:{type:"error",result:t}})):Mm(e)}async function Vb(e,t,n,r){let{matches:o,request:a,params:i,context:s}=e,l={handlerResult:void 0};try{let c=o.flatMap(u=>u.route.unstable_middleware?u.route.unstable_middleware.map(h=>[u.route.id,h]):[]),d=await Yb({request:a,params:i,context:s},c,t,l,n);return t?d:l.handlerResult}catch(c){if(!l.middlewareError)throw c;let d=await r(l.middlewareError.error,l.middlewareError.routeId);return l.handlerResult?Object.assign(l.handlerResult,d):d}}async function Yb(e,t,n,r,o,a=0){let{request:i}=e;if(i.signal.aborted)throw i.signal.reason?i.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${i.method} ${i.url}`);let s=t[a];if(!s)return r.handlerResult=await o(),r.handlerResult;let[l,c]=s,d=!1,u,h=async()=>{if(d)throw new Error("You may only call `next()` once per middleware");d=!0,await Yb(e,t,n,r,o,a+1)};try{let p=await c({request:e.request,params:e.params,context:e.context},h);return d?p===void 0?u:p:h()}catch(p){throw r.middlewareError?r.middlewareError.error!==p&&(r.middlewareError={routeId:l,error:p}):r.middlewareError={routeId:l,error:p},p}}function Kb(e,t,n,r,o){let a=Wb({key:"unstable_middleware",route:r.route,manifest:t,mapRouteProperties:e}),i=HO(r.route,En(n.method)?"action":"loader",t,e,o);return{middleware:a,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function cd(e,t,n,r,o,a,i,s=null){let l=!1,c=Kb(e,t,n,r,o);return{...r,_lazyPromises:c,shouldLoad:i,unstable_shouldRevalidateArgs:s,unstable_shouldCallHandler(d){return l=!0,s?typeof d=="boolean"?Al(r,{...s,defaultShouldRevalidate:d}):Al(r,s):i},resolve(d){return l||i||d&&!En(n.method)&&(r.route.lazy||r.route.loader)?GO({request:n,match:r,lazyHandlerPromise:c?.handler,lazyRoutePromise:c?.route,handlerOverride:d,scopedContext:a}):Promise.resolve({type:"data",result:void 0})}}}function ma(e,t,n,r,o,a,i,s=null){return r.map(l=>l.route.id!==o.route.id?{...l,shouldLoad:!1,unstable_shouldRevalidateArgs:s,unstable_shouldCallHandler:()=>!1,_lazyPromises:Kb(e,t,n,l,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:cd(e,t,n,l,a,i,!0,s))}async function zO(e,t,n,r,o,a){n.some(c=>c._lazyPromises?.middleware)&&await Promise.all(n.map(c=>c._lazyPromises?.middleware));let i={request:t,params:n[0].params,context:o,matches:n},l=await e({...i,fetcherKey:r,unstable_runClientMiddleware:c=>{let d=i;return Vb(d,!1,()=>c({...d,fetcherKey:r,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(u,h)=>({[h]:{type:"error",result:u}}))}});try{await Promise.all(n.flatMap(c=>[c._lazyPromises?.handler,c._lazyPromises?.route]))}catch{}return l}async function GO({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:o,scopedContext:a}){let i,s,l=En(e.method),c=l?"action":"loader",d=u=>{let h,p=new Promise((x,E)=>h=E);s=()=>h(),e.signal.addEventListener("abort",s);let g=x=>typeof u!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${c}" [routeId: ${t.route.id}]`)):u({request:e,params:t.params,context:a},...x!==void 0?[x]:[]),b=(async()=>{try{return{type:"data",result:await(o?o(E=>g(E)):g())}}catch(x){return{type:"error",result:x}}})();return Promise.race([b,p])};try{let u=l?t.route.action:t.route.loader;if(n||r)if(u){let h,[p]=await Promise.all([d(u).catch(g=>{h=g}),n,r]);if(h!==void 0)throw h;i=p}else{await n;let h=l?t.route.action:t.route.loader;if(h)[i]=await Promise.all([d(h),r]);else if(c==="action"){let p=new URL(e.url),g=p.pathname+p.search;throw Pn(405,{method:e.method,pathname:g,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(u)i=await d(u);else{let h=new URL(e.url),p=h.pathname+h.search;throw Pn(404,{pathname:p})}}catch(u){return{type:"error",result:u}}finally{s&&e.signal.removeEventListener("abort",s)}return i}async function qO(e){let{result:t,type:n}=e;if(Xb(t)){let r;try{let o=t.headers.get("Content-Type");o&&/\bapplication\/json\b/.test(o)?t.body==null?r=null:r=await t.json():r=await t.text()}catch(o){return{type:"error",error:o}}return n==="error"?{type:"error",error:new kl(t.status,t.statusText,r),statusCode:t.status,headers:t.headers}:{type:"data",data:r,statusCode:t.status,headers:t.headers}}return n==="error"?Gm(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new kl(t.init?.status||500,void 0,t.data),statusCode:Mi(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Mi(t)?t.status:void 0}:Gm(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function WO(e,t,n,r,o){let a=e.headers.get("Location");if(je(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!Nh(a)){let i=r.slice(0,r.findIndex(s=>s.route.id===n)+1);a=sd(new URL(t.url),i,o,a),e.headers.set("Location",a)}return e}function Fm(e,t,n){if(Nh(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=Hn(o.pathname,n)!=null;if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function sa(e,t,n,r){let o=e.createURL(Qb(t)).toString(),a={signal:n};if(r&&En(r.formMethod)){let{formMethod:i,formEncType:s}=r;a.method=i.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(r.json)):s==="text/plain"?a.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?a.body=ud(r.formData):a.body=r.formData}return new Request(o,a)}function ud(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Bm(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function VO(e,t,n,r=!1,o=!1){let a={},i=null,s,l=!1,c={},d=n&&Sn(n[1])?n[1].error:void 0;return e.forEach(u=>{if(!(u.route.id in t))return;let h=u.route.id,p=t[h];if(je(!Eo(p),"Cannot handle redirect results in processLoaderData"),Sn(p)){let g=p.error;if(d!==void 0&&(g=d,d=void 0),i=i||{},o)i[h]=g;else{let b=ho(e,h);i[b.route.id]==null&&(i[b.route.id]=g)}r||(a[h]=Gb),l||(l=!0,s=Mi(p.error)?p.error.status:500),p.headers&&(c[h]=p.headers)}else a[h]=p.data,p.statusCode&&p.statusCode!==200&&!l&&(s=p.statusCode),p.headers&&(c[h]=p.headers)}),d!==void 0&&n&&(i={[n[0]]:d},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:i,statusCode:s||200,loaderHeaders:c}}function jm(e,t,n,r,o,a){let{loaderData:i,errors:s}=VO(t,n,r);return o.filter(l=>!l.matches||l.matches.some(c=>c.shouldLoad)).forEach(l=>{let{key:c,match:d,controller:u}=l,h=a[c];if(je(h,"Did not find corresponding fetcher result"),!(u&&u.signal.aborted))if(Sn(h)){let p=ho(e.matches,d?.route.id);s&&s[p.route.id]||(s={...s,[p.route.id]:h.error}),e.fetchers.delete(c)}else if(Eo(h))je(!1,"Unhandled fetcher revalidation redirect");else{let p=Ur(h.data);e.fetchers.set(c,p)}}),{loaderData:i,errors:s}}function Hm(e,t,n,r){let o=Object.entries(t).filter(([,a])=>a!==Gb).reduce((a,[i,s])=>(a[i]=s,a),{});for(let a of n){let i=a.route.id;if(!t.hasOwnProperty(i)&&e.hasOwnProperty(i)&&a.route.loader&&(o[i]=e[i]),r&&r.hasOwnProperty(i))break}return o}function Um(e){return e?Sn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ho(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function zm(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Pn(e,{pathname:t,routeId:n,method:r,type:o,message:a}={}){let i="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(i="Bad Request",r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:o==="invalid-body"&&(s="Unable to encode submission body")):e===403?(i="Forbidden",s=`Route "${n}" does not match URL "${t}"`):e===404?(i="Not Found",s=`No route matches URL "${t}"`):e===405&&(i="Method Not Allowed",r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new kl(e||500,i,new Error(s),!0)}function As(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(Eo(o))return{key:r,result:o}}}function Qb(e){let t=typeof e=="string"?no(e):e;return Kr({...t,hash:""})}function YO(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function KO(e){return Xb(e.result)&&PO.has(e.result.status)}function Sn(e){return e.type==="error"}function Eo(e){return(e&&e.type)==="redirect"}function Gm(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Xb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function QO(e){return NO.has(e.toUpperCase())}function En(e){return DO.has(e.toUpperCase())}function Ph(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function qs(e,t){let n=typeof t=="string"?no(t).search:t.search;if(e[e.length-1].route.index&&Ph(n||""))return e[e.length-1];let r=Hb(e);return r[r.length-1]}function qm(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function hu(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function XO(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Qa(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function JO(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Ur(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function ZO(e,t){try{let n=e.sessionStorage.getItem(zb);if(n){let r=JSON.parse(n);for(let[o,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(o,new Set(a||[]))}}catch{}}function eM(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(zb,JSON.stringify(n))}catch(r){Ft(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function tM(){let e,t,n=new Promise((r,o)=>{e=async a=>{r(a);try{await n}catch{}},t=async a=>{o(a);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var jo=D.createContext(null);jo.displayName="DataRouter";var Zi=D.createContext(null);Zi.displayName="DataRouterState";D.createContext(!1);var Rh=D.createContext({isTransitioning:!1});Rh.displayName="ViewTransition";var Jb=D.createContext(new Map);Jb.displayName="Fetchers";var nM=D.createContext(null);nM.displayName="Await";var gr=D.createContext(null);gr.displayName="Navigation";var cc=D.createContext(null);cc.displayName="Location";var Xn=D.createContext({outlet:null,matches:[],isDataRoute:!1});Xn.displayName="Route";var Lh=D.createContext(null);Lh.displayName="RouteError";function rM(e,{relative:t}={}){je(es(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=D.useContext(gr),{hash:o,pathname:a,search:i}=ns(e,{relative:t}),s=a;return n!=="/"&&(s=a==="/"?n:dr([n,a])),r.createHref({pathname:s,search:i,hash:o})}function es(){return D.useContext(cc)!=null}function Ho(){return je(es(),"useLocation() may be used only in the context of a <Router> component."),D.useContext(cc).location}var Zb="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function eE(e){D.useContext(gr).static||D.useLayoutEffect(e)}function $h(){let{isDataRoute:e}=D.useContext(Xn);return e?yM():oM()}function oM(){je(es(),"useNavigate() may be used only in the context of a <Router> component.");let e=D.useContext(jo),{basename:t,navigator:n}=D.useContext(gr),{matches:r}=D.useContext(Xn),{pathname:o}=Ho(),a=JSON.stringify(Dh(r)),i=D.useRef(!1);return eE(()=>{i.current=!0}),D.useCallback((l,c={})=>{if(Ft(i.current,Zb),!i.current)return;if(typeof l=="number"){n.go(l);return}let d=wh(l,JSON.parse(a),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:dr([t,d.pathname])),(c.replace?n.replace:n.push)(d,c.state,c)},[t,n,a,o,e])}var aM=D.createContext(null);function iM(e){let t=D.useContext(Xn).outlet;return t&&D.createElement(aM.Provider,{value:e},t)}function ts(){let{matches:e}=D.useContext(Xn),t=e[e.length-1];return t?t.params:{}}function ns(e,{relative:t}={}){let{matches:n}=D.useContext(Xn),{pathname:r}=Ho(),o=JSON.stringify(Dh(n));return D.useMemo(()=>wh(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function sM(e,t,n,r){je(es(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=D.useContext(gr),{matches:a}=D.useContext(Xn),i=a[a.length-1],s=i?i.params:{},l=i?i.pathname:"/",c=i?i.pathnameBase:"/",d=i&&i.route;{let E=d&&d.path||"";nE(l,!d||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${E}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
190
+ */var Mb=e=>{throw TypeError(e)},eO=(e,t,n)=>t.has(e)||Mb("Cannot "+n),cu=(e,t,n)=>(eO(e,t,"read from private field"),n?n.call(e):t.get(e)),tO=(e,t,n)=>t.has(e)?Mb("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),_m="popstate";function nO(e={}){function t(r,o){let{pathname:a,search:i,hash:s}=r.location;return $i("",{pathname:a,search:i,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Kr(o)}return oO(t,n,null,e)}function je(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ft(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function rO(){return Math.random().toString(36).substring(2,10)}function Dm(e,t){return{usr:e.state,key:e.key,idx:t}}function $i(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?no(t):t,state:n,key:t&&t.key||r||rO()}}function Kr({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function no(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function oO(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,s="POP",l=null,c=d();c==null&&(c=0,i.replaceState({...i.state,idx:c},""));function d(){return(i.state||{idx:null}).idx}function u(){s="POP";let x=d(),E=x==null?null:x-c;c=x,l&&l({action:s,location:b.location,delta:E})}function h(x,E){s="PUSH";let v=$i(b.location,x,E);c=d()+1;let C=Dm(v,c),I=b.createHref(v);try{i.pushState(C,"",I)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;o.location.assign(I)}a&&l&&l({action:s,location:b.location,delta:1})}function p(x,E){s="REPLACE";let v=$i(b.location,x,E);c=d();let C=Dm(v,c),I=b.createHref(v);i.replaceState(C,"",I),a&&l&&l({action:s,location:b.location,delta:0})}function g(x){return Fb(x)}let b={get action(){return s},get location(){return e(o,i)},listen(x){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(_m,u),l=x,()=>{o.removeEventListener(_m,u),l=null}},createHref(x){return t(o,x)},createURL:g,encodeLocation(x){let E=g(x);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:h,replace:p,go(x){return i.go(x)}};return b}function Fb(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),je(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Kr(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var ai,wm=class{constructor(e){if(tO(this,ai,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(cu(this,ai).has(e))return cu(this,ai).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){cu(this,ai).set(e,t)}};ai=new WeakMap;var aO=new Set(["lazy","caseSensitive","path","id","index","children"]);function iO(e){return aO.has(e)}var sO=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function lO(e){return sO.has(e)}function cO(e){return e.index===!0}function Oi(e,t,n=[],r={},o=!1){return e.map((a,i)=>{let s=[...n,String(i)],l=typeof a.id=="string"?a.id:s.join("-");if(je(a.index!==!0||!a.children,"Cannot specify children on an index route"),je(o||!r[l],`Found a route id collision on id "${l}". Route id's must be globally unique within Data Router usages`),cO(a)){let c={...a,...t(a),id:l};return r[l]=c,c}else{let c={...a,...t(a),id:l,children:void 0};return r[l]=c,a.children&&(c.children=Oi(a.children,t,s,r,o)),c}})}function zr(e,t,n="/"){return Gs(e,t,n,!1)}function Gs(e,t,n,r){let o=typeof t=="string"?no(t):t,a=Hn(o.pathname||"/",n);if(a==null)return null;let i=Bb(e);dO(i);let s=null;for(let l=0;s==null&&l<i.length;++l){let c=CO(a);s=xO(i[l],c,r)}return s}function uO(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function Bb(e,t=[],n=[],r=""){let o=(a,i,s)=>{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};l.relativePath.startsWith("/")&&(je(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length));let c=dr([r,l.relativePath]),d=n.concat(l);a.children&&a.children.length>0&&(je(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),Bb(a.children,t,d,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:bO(c,a.index),routesMeta:d})};return e.forEach((a,i)=>{if(a.path===""||!a.path?.includes("?"))o(a,i);else for(let s of jb(a.path))o(a,i,s)}),t}function jb(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let i=jb(r.join("/")),s=[];return s.push(...i.map(l=>l===""?a:[a,l].join("/"))),o&&s.push(...i),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function dO(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:EO(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var hO=/^:[\w-]+$/,pO=3,fO=2,mO=1,gO=10,yO=-2,Nm=e=>e==="*";function bO(e,t){let n=e.split("/"),r=n.length;return n.some(Nm)&&(r+=yO),t&&(r+=fO),n.filter(o=>!Nm(o)).reduce((o,a)=>o+(hO.test(a)?pO:a===""?mO:gO),r)}function EO(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function xO(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",i=[];for(let s=0;s<r.length;++s){let l=r[s],c=s===r.length-1,d=a==="/"?t:t.slice(a.length)||"/",u=Sl({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),h=l.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=Sl({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!u)return null;Object.assign(o,u.params),i.push({params:o,pathname:dr([a,u.pathname]),pathnameBase:AO(dr([a,u.pathnameBase])),route:h}),u.pathnameBase!=="/"&&(a=dr([a,u.pathnameBase]))}return i}function Sl(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=TO(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((c,{paramName:d,isOptional:u},h)=>{if(d==="*"){let g=s[h]||"";i=a.slice(0,a.length-g.length).replace(/(.)\/+$/,"$1")}const p=s[h];return u&&!p?c[d]=void 0:c[d]=(p||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:i,pattern:e}}function TO(e,t=!1,n=!0){Ft(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function CO(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ft(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Hn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function vO({basename:e,pathname:t}){return t==="/"?e:dr([e,t])}function SO(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?no(e):e;return{pathname:n?n.startsWith("/")?n:kO(n,t):t,search:IO(r),hash:_O(o)}}function kO(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function uu(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Hb(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Dh(e){let t=Hb(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function wh(e,t,n,r=!1){let o;typeof e=="string"?o=no(e):(o={...e},je(!o.pathname||!o.pathname.includes("?"),uu("?","pathname","search",o)),je(!o.pathname||!o.pathname.includes("#"),uu("#","pathname","hash",o)),je(!o.search||!o.search.includes("#"),uu("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(i==null)s=n;else{let u=t.length-1;if(!r&&i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),u-=1;o.pathname=h.join("/")}s=u>=0?t[u]:"/"}let l=SO(o,s),c=i&&i!=="/"&&i.endsWith("/"),d=(a||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}var dr=e=>e.join("/").replace(/\/\/+/g,"/"),AO=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),IO=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_O=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,kl=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Mi(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Ub=["POST","PUT","PATCH","DELETE"],DO=new Set(Ub),wO=["GET",...Ub],NO=new Set(wO),PO=new Set([301,302,303,307,308]),RO=new Set([307,308]),du={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},LO={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ka={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},$O=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Nh=e=>$O.test(e),OO=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),zb="remix-router-transitions",Gb=Symbol("ResetLoaderData");function MO(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";je(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||OO,a={},i=Oi(e.routes,o,void 0,a),s,l=e.basename||"/",c=e.dataStrategy||UO,d={unstable_middleware:!1,...e.future},u=null,h=new Set,p=null,g=null,b=null,x=e.hydrationData!=null,E=zr(i,e.history.location,l),v=!1,C=null,I;if(E==null&&!e.patchRoutesOnNavigation){let L=Pn(404,{pathname:e.history.location.pathname}),{matches:j,route:z}=zm(i);I=!0,E=j,C={[z.id]:L}}else if(E&&!e.hydrationData&&oo(E,i,e.history.location.pathname).active&&(E=null),E)if(E.some(L=>L.route.lazy))I=!1;else if(!E.some(L=>L.route.loader))I=!0;else{let L=e.hydrationData?e.hydrationData.loaderData:null,j=e.hydrationData?e.hydrationData.errors:null;if(j){let z=E.findIndex(se=>j[se.route.id]!==void 0);I=E.slice(0,z+1).every(se=>!ld(se.route,L,j))}else I=E.every(z=>!ld(z.route,L,j))}else{I=!1,E=[];let L=oo(null,i,e.history.location.pathname);L.active&&L.matches&&(v=!0,E=L.matches)}let w,S={historyAction:e.history.action,location:e.history.location,matches:E,initialized:I,navigation:du,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||C,fetchers:new Map,blockers:new Map},M="POP",q=!1,B,y=!1,R=new Map,F=null,$=!1,U=!1,Y=new Set,re=new Map,fe=0,ue=-1,X=new Map,A=new Set,de=new Map,ee=new Map,k=new Set,J=new Map,Ee,he=null;function ye(){if(u=e.history.listen(({action:L,location:j,delta:z})=>{if(Ee){Ee(),Ee=void 0;return}Ft(J.size===0||z!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let se=Pe({currentLocation:S.location,nextLocation:j,historyAction:L});if(se&&z!=null){let pe=new Promise(Ce=>{Ee=Ce});e.history.go(z*-1),Me(se,{state:"blocked",location:j,proceed(){Me(se,{state:"proceeding",proceed:void 0,reset:void 0,location:j}),pe.then(()=>e.history.go(z))},reset(){let Ce=new Map(S.blockers);Ce.set(se,Ka),Oe({blockers:Ce})}});return}return be(L,j)}),n){ZO(t,R);let L=()=>eM(t,R);t.addEventListener("pagehide",L),F=()=>t.removeEventListener("pagehide",L)}return S.initialized||be("POP",S.location,{initialHydration:!0}),w}function me(){u&&u(),F&&F(),h.clear(),B&&B.abort(),S.fetchers.forEach((L,j)=>Ue(j)),S.blockers.forEach((L,j)=>te(j))}function Fe(L){return h.add(L),()=>h.delete(L)}function Oe(L,j={}){L.matches&&(L.matches=L.matches.map(pe=>{let Ce=a[pe.route.id],ve=pe.route;return ve.element!==Ce.element||ve.errorElement!==Ce.errorElement||ve.hydrateFallbackElement!==Ce.hydrateFallbackElement?{...pe,route:Ce}:pe})),S={...S,...L};let z=[],se=[];S.fetchers.forEach((pe,Ce)=>{pe.state==="idle"&&(k.has(Ce)?z.push(Ce):se.push(Ce))}),k.forEach(pe=>{!S.fetchers.has(pe)&&!re.has(pe)&&z.push(pe)}),[...h].forEach(pe=>pe(S,{deletedFetchers:z,viewTransitionOpts:j.viewTransitionOpts,flushSync:j.flushSync===!0})),z.forEach(pe=>Ue(pe)),se.forEach(pe=>S.fetchers.delete(pe))}function Te(L,j,{flushSync:z}={}){let se=S.actionData!=null&&S.navigation.formMethod!=null&&En(S.navigation.formMethod)&&S.navigation.state==="loading"&&L.state?._isRedirect!==!0,pe;j.actionData?Object.keys(j.actionData).length>0?pe=j.actionData:pe=null:se?pe=S.actionData:pe=null;let Ce=j.loaderData?Hm(S.loaderData,j.loaderData,j.matches||[],j.errors):S.loaderData,ve=S.blockers;ve.size>0&&(ve=new Map(ve),ve.forEach((Se,_e)=>ve.set(_e,Ka)));let xe=$?!1:gn(L,j.matches||S.matches),Ie=q===!0||S.navigation.formMethod!=null&&En(S.navigation.formMethod)&&L.state?._isRedirect!==!0;s&&(i=s,s=void 0),$||M==="POP"||(M==="PUSH"?e.history.push(L,L.state):M==="REPLACE"&&e.history.replace(L,L.state));let Re;if(M==="POP"){let Se=R.get(S.location.pathname);Se&&Se.has(L.pathname)?Re={currentLocation:S.location,nextLocation:L}:R.has(L.pathname)&&(Re={currentLocation:L,nextLocation:S.location})}else if(y){let Se=R.get(S.location.pathname);Se?Se.add(L.pathname):(Se=new Set([L.pathname]),R.set(S.location.pathname,Se)),Re={currentLocation:S.location,nextLocation:L}}Oe({...j,actionData:pe,loaderData:Ce,historyAction:M,location:L,initialized:!0,navigation:du,revalidation:"idle",restoreScrollPosition:xe,preventScrollReset:Ie,blockers:ve},{viewTransitionOpts:Re,flushSync:z===!0}),M="POP",q=!1,y=!1,$=!1,U=!1,he?.resolve(),he=null}async function gt(L,j){if(typeof L=="number"){e.history.go(L);return}let z=sd(S.location,S.matches,l,L,j?.fromRouteId,j?.relative),{path:se,submission:pe,error:Ce}=Pm(!1,z,j),ve=S.location,xe=$i(S.location,se,j&&j.state);xe={...xe,...e.history.encodeLocation(xe)};let Ie=j&&j.replace!=null?j.replace:void 0,Re="PUSH";Ie===!0?Re="REPLACE":Ie===!1||pe!=null&&En(pe.formMethod)&&pe.formAction===S.location.pathname+S.location.search&&(Re="REPLACE");let Se=j&&"preventScrollReset"in j?j.preventScrollReset===!0:void 0,_e=(j&&j.flushSync)===!0,Ge=Pe({currentLocation:ve,nextLocation:xe,historyAction:Re});if(Ge){Me(Ge,{state:"blocked",location:xe,proceed(){Me(Ge,{state:"proceeding",proceed:void 0,reset:void 0,location:xe}),gt(L,j)},reset(){let St=new Map(S.blockers);St.set(Ge,Ka),Oe({blockers:St})}});return}await be(Re,xe,{submission:pe,pendingError:Ce,preventScrollReset:Se,replace:j&&j.replace,enableViewTransition:j&&j.viewTransition,flushSync:_e})}function Ze(){he||(he=tM()),Ve(),Oe({revalidation:"loading"});let L=he.promise;return S.navigation.state==="submitting"?L:S.navigation.state==="idle"?(be(S.historyAction,S.location,{startUninterruptedRevalidation:!0}),L):(be(M||S.historyAction,S.navigation.location,{overrideNavigation:S.navigation,enableViewTransition:y===!0}),L)}async function be(L,j,z){B&&B.abort(),B=null,M=L,$=(z&&z.startUninterruptedRevalidation)===!0,Zn(S.location,S.matches),q=(z&&z.preventScrollReset)===!0,y=(z&&z.enableViewTransition)===!0;let se=s||i,pe=z&&z.overrideNavigation,Ce=z?.initialHydration&&S.matches&&S.matches.length>0&&!v?S.matches:zr(se,j,l),ve=(z&&z.flushSync)===!0;if(Ce&&S.initialized&&!U&&YO(S.location,j)&&!(z&&z.submission&&En(z.submission.formMethod))){Te(j,{matches:Ce},{flushSync:ve});return}let xe=oo(Ce,se,j.pathname);if(xe.active&&xe.matches&&(Ce=xe.matches),!Ce){let{error:hn,notFoundMatches:kt,route:ft}=zt(j.pathname);Te(j,{matches:kt,loaderData:{},errors:{[ft.id]:hn}},{flushSync:ve});return}B=new AbortController;let Ie=sa(e.history,j,B.signal,z&&z.submission),Re=new wm(e.unstable_getContext?await e.unstable_getContext():void 0),Se;if(z&&z.pendingError)Se=[ho(Ce).route.id,{type:"error",error:z.pendingError}];else if(z&&z.submission&&En(z.submission.formMethod)){let hn=await Xt(Ie,j,z.submission,Ce,Re,xe.active,z&&z.initialHydration===!0,{replace:z.replace,flushSync:ve});if(hn.shortCircuited)return;if(hn.pendingActionResult){let[kt,ft]=hn.pendingActionResult;if(Sn(ft)&&Mi(ft.error)&&ft.error.status===404){B=null,Te(j,{matches:hn.matches,loaderData:{},errors:{[kt]:ft.error}});return}}Ce=hn.matches||Ce,Se=hn.pendingActionResult,pe=hu(j,z.submission),ve=!1,xe.active=!1,Ie=sa(e.history,Ie.url,Ie.signal)}let{shortCircuited:_e,matches:Ge,loaderData:St,errors:en}=await vt(Ie,j,Ce,Re,xe.active,pe,z&&z.submission,z&&z.fetcherSubmission,z&&z.replace,z&&z.initialHydration===!0,ve,Se);_e||(B=null,Te(j,{matches:Ge||Ce,...Um(Se),loaderData:St,errors:en}))}async function Xt(L,j,z,se,pe,Ce,ve,xe={}){Ve();let Ie=XO(j,z);if(Oe({navigation:Ie},{flushSync:xe.flushSync===!0}),Ce){let _e=await Lt(se,j.pathname,L.signal);if(_e.type==="aborted")return{shortCircuited:!0};if(_e.type==="error"){let Ge=ho(_e.partialMatches).route.id;return{matches:_e.partialMatches,pendingActionResult:[Ge,{type:"error",error:_e.error}]}}else if(_e.matches)se=_e.matches;else{let{notFoundMatches:Ge,error:St,route:en}=zt(j.pathname);return{matches:Ge,pendingActionResult:[en.id,{type:"error",error:St}]}}}let Re,Se=qs(se,j);if(!Se.route.action&&!Se.route.lazy)Re={type:"error",error:Pn(405,{method:L.method,pathname:j.pathname,routeId:Se.route.id})};else{let _e=ma(o,a,L,se,Se,ve?[]:r,pe),Ge=await Wn(L,_e,pe,null);if(Re=Ge[Se.route.id],!Re){for(let St of se)if(Ge[St.route.id]){Re=Ge[St.route.id];break}}if(L.signal.aborted)return{shortCircuited:!0}}if(Eo(Re)){let _e;return xe&&xe.replace!=null?_e=xe.replace:_e=Fm(Re.response.headers.get("Location"),new URL(L.url),l)===S.location.pathname+S.location.search,await ge(L,Re,!0,{submission:z,replace:_e}),{shortCircuited:!0}}if(Sn(Re)){let _e=ho(se,Se.route.id);return(xe&&xe.replace)!==!0&&(M="PUSH"),{matches:se,pendingActionResult:[_e.route.id,Re,Se.route.id]}}return{matches:se,pendingActionResult:[Se.route.id,Re]}}async function vt(L,j,z,se,pe,Ce,ve,xe,Ie,Re,Se,_e){let Ge=Ce||hu(j,ve),St=ve||xe||qm(Ge),en=!$&&!Re;if(pe){if(en){let tn=De(_e);Oe({navigation:Ge,...tn!==void 0?{actionData:tn}:{}},{flushSync:Se})}let Ke=await Lt(z,j.pathname,L.signal);if(Ke.type==="aborted")return{shortCircuited:!0};if(Ke.type==="error"){let tn=ho(Ke.partialMatches).route.id;return{matches:Ke.partialMatches,loaderData:{},errors:{[tn]:Ke.error}}}else if(Ke.matches)z=Ke.matches;else{let{error:tn,notFoundMatches:cs,route:Oa}=zt(j.pathname);return{matches:cs,loaderData:{},errors:{[Oa.id]:tn}}}}let hn=s||i,{dsMatches:kt,revalidatingFetchers:ft}=Rm(L,se,o,a,e.history,S,z,St,j,Re?[]:r,Re===!0,U,Y,k,de,A,hn,l,e.patchRoutesOnNavigation!=null,_e);if(ue=++fe,!e.dataStrategy&&!kt.some(Ke=>Ke.shouldLoad)&&ft.length===0){let Ke=Kt();return Te(j,{matches:z,loaderData:{},errors:_e&&Sn(_e[1])?{[_e[0]]:_e[1].error}:null,...Um(_e),...Ke?{fetchers:new Map(S.fetchers)}:{}},{flushSync:Se}),{shortCircuited:!0}}if(en){let Ke={};if(!pe){Ke.navigation=Ge;let tn=De(_e);tn!==void 0&&(Ke.actionData=tn)}ft.length>0&&(Ke.fetchers=wt(ft)),Oe(Ke,{flushSync:Se})}ft.forEach(Ke=>{et(Ke.key),Ke.controller&&re.set(Ke.key,Ke.controller)});let io=()=>ft.forEach(Ke=>et(Ke.key));B&&B.signal.addEventListener("abort",io);let{loaderResults:La,fetcherResults:Mr}=await Or(kt,ft,L,se);if(L.signal.aborted)return{shortCircuited:!0};B&&B.signal.removeEventListener("abort",io),ft.forEach(Ke=>re.delete(Ke.key));let er=As(La);if(er)return await ge(L,er.result,!0,{replace:Ie}),{shortCircuited:!0};if(er=As(Mr),er)return A.add(er.key),await ge(L,er.result,!0,{replace:Ie}),{shortCircuited:!0};let{loaderData:Ec,errors:$a}=jm(S,z,La,_e,ft,Mr);Re&&S.errors&&($a={...S.errors,...$a});let so=Kt(),ss=Zt(ue),ls=so||ss||ft.length>0;return{matches:z,loaderData:Ec,errors:$a,...ls?{fetchers:new Map(S.fetchers)}:{}}}function De(L){if(L&&!Sn(L[1]))return{[L[0]]:L[1].data};if(S.actionData)return Object.keys(S.actionData).length===0?null:S.actionData}function wt(L){return L.forEach(j=>{let z=S.fetchers.get(j.key),se=Qa(void 0,z?z.data:void 0);S.fetchers.set(j.key,se)}),new Map(S.fetchers)}async function yt(L,j,z,se){et(L);let pe=(se&&se.flushSync)===!0,Ce=s||i,ve=sd(S.location,S.matches,l,z,j,se?.relative),xe=zr(Ce,ve,l),Ie=oo(xe,Ce,ve);if(Ie.active&&Ie.matches&&(xe=Ie.matches),!xe){oe(L,j,Pn(404,{pathname:ve}),{flushSync:pe});return}let{path:Re,submission:Se,error:_e}=Pm(!0,ve,se);if(_e){oe(L,j,_e,{flushSync:pe});return}let Ge=new wm(e.unstable_getContext?await e.unstable_getContext():void 0),St=(se&&se.preventScrollReset)===!0;if(Se&&En(Se.formMethod)){await bt(L,j,Re,xe,Ge,Ie.active,pe,St,Se);return}de.set(L,{routeId:j,path:Re}),await ke(L,j,Re,xe,Ge,Ie.active,pe,St,Se)}async function bt(L,j,z,se,pe,Ce,ve,xe,Ie){Ve(),de.delete(L);let Re=S.fetchers.get(L);V(L,JO(Ie,Re),{flushSync:ve});let Se=new AbortController,_e=sa(e.history,z,Se.signal,Ie);if(Ce){let jt=await Lt(se,new URL(_e.url).pathname,_e.signal,L);if(jt.type==="aborted")return;if(jt.type==="error"){oe(L,j,jt.error,{flushSync:ve});return}else if(jt.matches)se=jt.matches;else{oe(L,j,Pn(404,{pathname:z}),{flushSync:ve});return}}let Ge=qs(se,z);if(!Ge.route.action&&!Ge.route.lazy){let jt=Pn(405,{method:Ie.formMethod,pathname:z,routeId:j});oe(L,j,jt,{flushSync:ve});return}re.set(L,Se);let St=fe,en=ma(o,a,_e,se,Ge,r,pe),kt=(await Wn(_e,en,pe,L))[Ge.route.id];if(_e.signal.aborted){re.get(L)===Se&&re.delete(L);return}if(k.has(L)){if(Eo(kt)||Sn(kt)){V(L,Ur(void 0));return}}else{if(Eo(kt))if(re.delete(L),ue>St){V(L,Ur(void 0));return}else return A.add(L),V(L,Qa(Ie)),ge(_e,kt,!1,{fetcherSubmission:Ie,preventScrollReset:xe});if(Sn(kt)){oe(L,j,kt.error);return}}let ft=S.navigation.location||S.location,io=sa(e.history,ft,Se.signal),La=s||i,Mr=S.navigation.state!=="idle"?zr(La,S.navigation.location,l):S.matches;je(Mr,"Didn't find any matches after fetcher action");let er=++fe;X.set(L,er);let Ec=Qa(Ie,kt.data);S.fetchers.set(L,Ec);let{dsMatches:$a,revalidatingFetchers:so}=Rm(io,pe,o,a,e.history,S,Mr,Ie,ft,r,!1,U,Y,k,de,A,La,l,e.patchRoutesOnNavigation!=null,[Ge.route.id,kt]);so.filter(jt=>jt.key!==L).forEach(jt=>{let us=jt.key,ep=S.fetchers.get(us),BE=Qa(void 0,ep?ep.data:void 0);S.fetchers.set(us,BE),et(us),jt.controller&&re.set(us,jt.controller)}),Oe({fetchers:new Map(S.fetchers)});let ss=()=>so.forEach(jt=>et(jt.key));Se.signal.addEventListener("abort",ss);let{loaderResults:ls,fetcherResults:Ke}=await Or($a,so,io,pe);if(Se.signal.aborted)return;if(Se.signal.removeEventListener("abort",ss),X.delete(L),re.delete(L),so.forEach(jt=>re.delete(jt.key)),S.fetchers.has(L)){let jt=Ur(kt.data);S.fetchers.set(L,jt)}let tn=As(ls);if(tn)return ge(io,tn.result,!1,{preventScrollReset:xe});if(tn=As(Ke),tn)return A.add(tn.key),ge(io,tn.result,!1,{preventScrollReset:xe});let{loaderData:cs,errors:Oa}=jm(S,Mr,ls,void 0,so,Ke);Zt(er),S.navigation.state==="loading"&&er>ue?(je(M,"Expected pending action"),B&&B.abort(),Te(S.navigation.location,{matches:Mr,loaderData:cs,errors:Oa,fetchers:new Map(S.fetchers)})):(Oe({errors:Oa,loaderData:Hm(S.loaderData,cs,Mr,Oa),fetchers:new Map(S.fetchers)}),U=!1)}async function ke(L,j,z,se,pe,Ce,ve,xe,Ie){let Re=S.fetchers.get(L);V(L,Qa(Ie,Re?Re.data:void 0),{flushSync:ve});let Se=new AbortController,_e=sa(e.history,z,Se.signal);if(Ce){let ft=await Lt(se,new URL(_e.url).pathname,_e.signal,L);if(ft.type==="aborted")return;if(ft.type==="error"){oe(L,j,ft.error,{flushSync:ve});return}else if(ft.matches)se=ft.matches;else{oe(L,j,Pn(404,{pathname:z}),{flushSync:ve});return}}let Ge=qs(se,z);re.set(L,Se);let St=fe,en=ma(o,a,_e,se,Ge,r,pe),kt=(await Wn(_e,en,pe,L))[Ge.route.id];if(re.get(L)===Se&&re.delete(L),!_e.signal.aborted){if(k.has(L)){V(L,Ur(void 0));return}if(Eo(kt))if(ue>St){V(L,Ur(void 0));return}else{A.add(L),await ge(_e,kt,!1,{preventScrollReset:xe});return}if(Sn(kt)){oe(L,j,kt.error);return}V(L,Ur(kt.data))}}async function ge(L,j,z,{submission:se,fetcherSubmission:pe,preventScrollReset:Ce,replace:ve}={}){j.response.headers.has("X-Remix-Revalidate")&&(U=!0);let xe=j.response.headers.get("Location");je(xe,"Expected a Location header on the redirect Response"),xe=Fm(xe,new URL(L.url),l);let Ie=$i(S.location,xe,{_isRedirect:!0});if(n){let en=!1;if(j.response.headers.has("X-Remix-Reload-Document"))en=!0;else if(Nh(xe)){const hn=Fb(xe,!0);en=hn.origin!==t.location.origin||Hn(hn.pathname,l)==null}if(en){ve?t.location.replace(xe):t.location.assign(xe);return}}B=null;let Re=ve===!0||j.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Se,formAction:_e,formEncType:Ge}=S.navigation;!se&&!pe&&Se&&_e&&Ge&&(se=qm(S.navigation));let St=se||pe;if(RO.has(j.response.status)&&St&&En(St.formMethod))await be(Re,Ie,{submission:{...St,formAction:xe},preventScrollReset:Ce||q,enableViewTransition:z?y:void 0});else{let en=hu(Ie,se);await be(Re,Ie,{overrideNavigation:en,fetcherSubmission:pe,preventScrollReset:Ce||q,enableViewTransition:z?y:void 0})}}async function Wn(L,j,z,se){let pe,Ce={};try{pe=await zO(c,L,j,se,z,!1)}catch(ve){return j.filter(xe=>xe.shouldLoad).forEach(xe=>{Ce[xe.route.id]={type:"error",error:ve}}),Ce}if(L.signal.aborted)return Ce;for(let[ve,xe]of Object.entries(pe))if(KO(xe)){let Ie=xe.result;Ce[ve]={type:"redirect",response:WO(Ie,L,ve,j,l)}}else Ce[ve]=await qO(xe);return Ce}async function Or(L,j,z,se){let pe=Wn(z,L,se,null),Ce=Promise.all(j.map(async Ie=>{if(Ie.matches&&Ie.match&&Ie.request&&Ie.controller){let Se=(await Wn(Ie.request,Ie.matches,se,Ie.key))[Ie.match.route.id];return{[Ie.key]:Se}}else return Promise.resolve({[Ie.key]:{type:"error",error:Pn(404,{pathname:Ie.path})}})})),ve=await pe,xe=(await Ce).reduce((Ie,Re)=>Object.assign(Ie,Re),{});return{loaderResults:ve,fetcherResults:xe}}function Ve(){U=!0,de.forEach((L,j)=>{re.has(j)&&Y.add(j),et(j)})}function V(L,j,z={}){S.fetchers.set(L,j),Oe({fetchers:new Map(S.fetchers)},{flushSync:(z&&z.flushSync)===!0})}function oe(L,j,z,se={}){let pe=ho(S.matches,j);Ue(L),Oe({errors:{[pe.route.id]:z},fetchers:new Map(S.fetchers)},{flushSync:(se&&se.flushSync)===!0})}function Ae(L){return ee.set(L,(ee.get(L)||0)+1),k.has(L)&&k.delete(L),S.fetchers.get(L)||LO}function Ue(L){let j=S.fetchers.get(L);re.has(L)&&!(j&&j.state==="loading"&&X.has(L))&&et(L),de.delete(L),X.delete(L),A.delete(L),k.delete(L),Y.delete(L),S.fetchers.delete(L)}function We(L){let j=(ee.get(L)||0)-1;j<=0?(ee.delete(L),k.add(L)):ee.set(L,j),Oe({fetchers:new Map(S.fetchers)})}function et(L){let j=re.get(L);j&&(j.abort(),re.delete(L))}function Jt(L){for(let j of L){let z=Ae(j),se=Ur(z.data);S.fetchers.set(j,se)}}function Kt(){let L=[],j=!1;for(let z of A){let se=S.fetchers.get(z);je(se,`Expected fetcher: ${z}`),se.state==="loading"&&(A.delete(z),L.push(z),j=!0)}return Jt(L),j}function Zt(L){let j=[];for(let[z,se]of X)if(se<L){let pe=S.fetchers.get(z);je(pe,`Expected fetcher: ${z}`),pe.state==="loading"&&(et(z),X.delete(z),j.push(z))}return Jt(j),j.length>0}function ie(L,j){let z=S.blockers.get(L)||Ka;return J.get(L)!==j&&J.set(L,j),z}function te(L){S.blockers.delete(L),J.delete(L)}function Me(L,j){let z=S.blockers.get(L)||Ka;je(z.state==="unblocked"&&j.state==="blocked"||z.state==="blocked"&&j.state==="blocked"||z.state==="blocked"&&j.state==="proceeding"||z.state==="blocked"&&j.state==="unblocked"||z.state==="proceeding"&&j.state==="unblocked",`Invalid blocker state transition: ${z.state} -> ${j.state}`);let se=new Map(S.blockers);se.set(L,j),Oe({blockers:se})}function Pe({currentLocation:L,nextLocation:j,historyAction:z}){if(J.size===0)return;J.size>1&&Ft(!1,"A router only supports one blocker at a time");let se=Array.from(J.entries()),[pe,Ce]=se[se.length-1],ve=S.blockers.get(pe);if(!(ve&&ve.state==="proceeding")&&Ce({currentLocation:L,nextLocation:j,historyAction:z}))return pe}function zt(L){let j=Pn(404,{pathname:L}),z=s||i,{matches:se,route:pe}=zm(z);return{notFoundMatches:se,route:pe,error:j}}function Jn(L,j,z){if(p=L,b=j,g=z||null,!x&&S.navigation===du){x=!0;let se=gn(S.location,S.matches);se!=null&&Oe({restoreScrollPosition:se})}return()=>{p=null,b=null,g=null}}function Vn(L,j){return g&&g(L,j.map(se=>uO(se,S.loaderData)))||L.key}function Zn(L,j){if(p&&b){let z=Vn(L,j);p[z]=b()}}function gn(L,j){if(p){let z=Vn(L,j),se=p[z];if(typeof se=="number")return se}return null}function oo(L,j,z){if(e.patchRoutesOnNavigation)if(L){if(Object.keys(L[0].params).length>0)return{active:!0,matches:Gs(j,z,l,!0)}}else return{active:!0,matches:Gs(j,z,l,!0)||[]};return{active:!1,matches:null}}async function Lt(L,j,z,se){if(!e.patchRoutesOnNavigation)return{type:"success",matches:L};let pe=L;for(;;){let Ce=s==null,ve=s||i,xe=a;try{await e.patchRoutesOnNavigation({signal:z,path:j,matches:pe,fetcherKey:se,patch:(Se,_e)=>{z.aborted||Lm(Se,_e,ve,xe,o,!1)}})}catch(Se){return{type:"error",error:Se,partialMatches:pe}}finally{Ce&&!z.aborted&&(i=[...i])}if(z.aborted)return{type:"aborted"};let Ie=zr(ve,j,l);if(Ie)return{type:"success",matches:Ie};let Re=Gs(ve,j,l,!0);if(!Re||pe.length===Re.length&&pe.every((Se,_e)=>Se.route.id===Re[_e].route.id))return{type:"success",matches:null};pe=Re}}function yr(L){a={},s=Oi(L,o,void 0,a)}function ao(L,j,z=!1){let se=s==null;Lm(L,j,s||i,a,o,z),se&&(i=[...i],Oe({}))}return w={get basename(){return l},get future(){return d},get state(){return S},get routes(){return i},get window(){return t},initialize:ye,subscribe:Fe,enableScrollRestoration:Jn,navigate:gt,fetch:yt,revalidate:Ze,createHref:L=>e.history.createHref(L),encodeLocation:L=>e.history.encodeLocation(L),getFetcher:Ae,deleteFetcher:We,dispose:me,getBlocker:ie,deleteBlocker:te,patchRoutes:ao,_internalFetchControllers:re,_internalSetRoutes:yr,_internalSetStateDoNotUseOrYouWillBreakYourApp(L){Oe(L)}},w}function FO(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function sd(e,t,n,r,o,a){let i,s;if(o){i=[];for(let c of t)if(i.push(c),c.route.id===o){s=c;break}}else i=t,s=t[t.length-1];let l=wh(r||".",Dh(i),Hn(e.pathname,n)||e.pathname,a==="path");if(r==null&&(l.search=e.search,l.hash=e.hash),(r==null||r===""||r===".")&&s){let c=Ph(l.search);if(s.route.index&&!c)l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index";else if(!s.route.index&&c){let d=new URLSearchParams(l.search),u=d.getAll("index");d.delete("index"),u.filter(p=>p).forEach(p=>d.append("index",p));let h=d.toString();l.search=h?`?${h}`:""}}return n!=="/"&&(l.pathname=vO({basename:n,pathname:l.pathname})),Kr(l)}function Pm(e,t,n){if(!n||!FO(n))return{path:t};if(n.formMethod&&!QO(n.formMethod))return{path:t,error:Pn(405,{method:n.formMethod})};let r=()=>({path:t,error:Pn(400,{type:"invalid-body"})}),a=(n.formMethod||"get").toUpperCase(),i=Qb(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!En(a))return r();let u=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((h,[p,g])=>`${h}${p}=${g}
191
+ `,""):String(n.body);return{path:t,submission:{formMethod:a,formAction:i,formEncType:n.formEncType,formData:void 0,json:void 0,text:u}}}else if(n.formEncType==="application/json"){if(!En(a))return r();try{let u=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:a,formAction:i,formEncType:n.formEncType,formData:void 0,json:u,text:void 0}}}catch{return r()}}}je(typeof FormData=="function","FormData is not available in this environment");let s,l;if(n.formData)s=ud(n.formData),l=n.formData;else if(n.body instanceof FormData)s=ud(n.body),l=n.body;else if(n.body instanceof URLSearchParams)s=n.body,l=Bm(s);else if(n.body==null)s=new URLSearchParams,l=new FormData;else try{s=new URLSearchParams(n.body),l=Bm(s)}catch{return r()}let c={formMethod:a,formAction:i,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(En(c.formMethod))return{path:t,submission:c};let d=no(t);return e&&d.search&&Ph(d.search)&&s.append("index",""),d.search=`?${s}`,{path:Kr(d),submission:c}}function Rm(e,t,n,r,o,a,i,s,l,c,d,u,h,p,g,b,x,E,v,C){let I=C?Sn(C[1])?C[1].error:C[1].data:void 0,w=o.createURL(a.location),S=o.createURL(l),M;if(d&&a.errors){let $=Object.keys(a.errors)[0];M=i.findIndex(U=>U.route.id===$)}else if(C&&Sn(C[1])){let $=C[0];M=i.findIndex(U=>U.route.id===$)-1}let q=C?C[1].statusCode:void 0,B=q&&q>=400,y={currentUrl:w,currentParams:a.matches[0]?.params||{},nextUrl:S,nextParams:i[0].params,...s,actionResult:I,actionStatus:q},R=i.map(($,U)=>{let{route:Y}=$,re=null;if(M!=null&&U>M?re=!1:Y.lazy?re=!0:Y.loader==null?re=!1:d?re=ld(Y,a.loaderData,a.errors):BO(a.loaderData,a.matches[U],$)&&(re=!0),re!==null)return cd(n,r,e,$,c,t,re);let fe=B?!1:u||w.pathname+w.search===S.pathname+S.search||w.search!==S.search||jO(a.matches[U],$),ue={...y,defaultShouldRevalidate:fe},X=Al($,ue);return cd(n,r,e,$,c,t,X,ue)}),F=[];return g.forEach(($,U)=>{if(d||!i.some(ee=>ee.route.id===$.routeId)||p.has(U))return;let Y=a.fetchers.get(U),re=Y&&Y.state!=="idle"&&Y.data===void 0,fe=zr(x,$.path,E);if(!fe){if(v&&re)return;F.push({key:U,routeId:$.routeId,path:$.path,matches:null,match:null,request:null,controller:null});return}if(b.has(U))return;let ue=qs(fe,$.path),X=new AbortController,A=sa(o,$.path,X.signal),de=null;if(h.has(U))h.delete(U),de=ma(n,r,A,fe,ue,c,t);else if(re)u&&(de=ma(n,r,A,fe,ue,c,t));else{let ee={...y,defaultShouldRevalidate:B?!1:u};Al(ue,ee)&&(de=ma(n,r,A,fe,ue,c,t,ee))}de&&F.push({key:U,routeId:$.routeId,path:$.path,matches:de,match:ue,request:A,controller:X})}),{dsMatches:R,revalidatingFetchers:F}}function ld(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&e.id in t,o=n!=null&&n[e.id]!==void 0;return!r&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!o}function BO(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}function jO(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Al(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function Lm(e,t,n,r,o,a){let i;if(e){let c=r[e];je(c,`No route found to patch children into: routeId = ${e}`),c.children||(c.children=[]),i=c.children}else i=n;let s=[],l=[];if(t.forEach(c=>{let d=i.find(u=>qb(c,u));d?l.push({existingRoute:d,newRoute:c}):s.push(c)}),s.length>0){let c=Oi(s,o,[e||"_","patch",String(i?.length||"0")],r);i.push(...c)}if(a&&l.length>0)for(let c=0;c<l.length;c++){let{existingRoute:d,newRoute:u}=l[c],h=d,[p]=Oi([u],o,[],{},!0);Object.assign(h,{element:p.element?p.element:h.element,errorElement:p.errorElement?p.errorElement:h.errorElement,hydrateFallbackElement:p.hydrateFallbackElement?p.hydrateFallbackElement:h.hydrateFallbackElement})}}function qb(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>t.children?.some(o=>qb(n,o))):!1}var $m=new WeakMap,Wb=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(je(o,"No route found in manifest"),!o.lazy||typeof o.lazy!="object")return;let a=o.lazy[e];if(!a)return;let i=$m.get(o);i||(i={},$m.set(o,i));let s=i[e];if(s)return s;let l=(async()=>{let c=iO(e),u=o[e]!==void 0&&e!=="hasErrorBoundary";if(c)Ft(!c,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),i[e]=Promise.resolve();else if(u)Ft(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let h=await a();h!=null&&(Object.assign(o,{[e]:h}),Object.assign(o,r(o)))}typeof o.lazy=="object"&&(o.lazy[e]=void 0,Object.values(o.lazy).every(h=>h===void 0)&&(o.lazy=void 0))})();return i[e]=l,l},Om=new WeakMap;function HO(e,t,n,r,o){let a=n[e.id];if(je(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let d=Om.get(a);if(d)return{lazyRoutePromise:d,lazyHandlerPromise:d};let u=(async()=>{je(typeof e.lazy=="function","No lazy route function found");let h=await e.lazy(),p={};for(let g in h){let b=h[g];if(b===void 0)continue;let x=lO(g),v=a[g]!==void 0&&g!=="hasErrorBoundary";x?Ft(!x,"Route property "+g+" is not a supported property to be returned from a lazy route function. This property will be ignored."):v?Ft(!v,`Route "${a.id}" has a static property "${g}" defined but its lazy function is also returning a value for this property. The lazy route property "${g}" will be ignored.`):p[g]=b}Object.assign(a,p),Object.assign(a,{...r(a),lazy:void 0})})();return Om.set(a,u),u.catch(()=>{}),{lazyRoutePromise:u,lazyHandlerPromise:u}}let i=Object.keys(e.lazy),s=[],l;for(let d of i){if(o&&o.includes(d))continue;let u=Wb({key:d,route:e,manifest:n,mapRouteProperties:r});u&&(s.push(u),d===t&&(l=u))}let c=s.length>0?Promise.all(s).then(()=>{}):void 0;return c?.catch(()=>{}),l?.catch(()=>{}),{lazyRoutePromise:c,lazyHandlerPromise:l}}async function Mm(e){let t=e.matches.filter(o=>o.shouldLoad),n={};return(await Promise.all(t.map(o=>o.resolve()))).forEach((o,a)=>{n[t[a].route.id]=o}),n}async function UO(e){return e.matches.some(t=>t.route.unstable_middleware)?Vb(e,!1,()=>Mm(e),(t,n)=>({[n]:{type:"error",result:t}})):Mm(e)}async function Vb(e,t,n,r){let{matches:o,request:a,params:i,context:s}=e,l={handlerResult:void 0};try{let c=o.flatMap(u=>u.route.unstable_middleware?u.route.unstable_middleware.map(h=>[u.route.id,h]):[]),d=await Yb({request:a,params:i,context:s},c,t,l,n);return t?d:l.handlerResult}catch(c){if(!l.middlewareError)throw c;let d=await r(l.middlewareError.error,l.middlewareError.routeId);return l.handlerResult?Object.assign(l.handlerResult,d):d}}async function Yb(e,t,n,r,o,a=0){let{request:i}=e;if(i.signal.aborted)throw i.signal.reason?i.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${i.method} ${i.url}`);let s=t[a];if(!s)return r.handlerResult=await o(),r.handlerResult;let[l,c]=s,d=!1,u,h=async()=>{if(d)throw new Error("You may only call `next()` once per middleware");d=!0,await Yb(e,t,n,r,o,a+1)};try{let p=await c({request:e.request,params:e.params,context:e.context},h);return d?p===void 0?u:p:h()}catch(p){throw r.middlewareError?r.middlewareError.error!==p&&(r.middlewareError={routeId:l,error:p}):r.middlewareError={routeId:l,error:p},p}}function Kb(e,t,n,r,o){let a=Wb({key:"unstable_middleware",route:r.route,manifest:t,mapRouteProperties:e}),i=HO(r.route,En(n.method)?"action":"loader",t,e,o);return{middleware:a,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function cd(e,t,n,r,o,a,i,s=null){let l=!1,c=Kb(e,t,n,r,o);return{...r,_lazyPromises:c,shouldLoad:i,unstable_shouldRevalidateArgs:s,unstable_shouldCallHandler(d){return l=!0,s?typeof d=="boolean"?Al(r,{...s,defaultShouldRevalidate:d}):Al(r,s):i},resolve(d){return l||i||d&&!En(n.method)&&(r.route.lazy||r.route.loader)?GO({request:n,match:r,lazyHandlerPromise:c?.handler,lazyRoutePromise:c?.route,handlerOverride:d,scopedContext:a}):Promise.resolve({type:"data",result:void 0})}}}function ma(e,t,n,r,o,a,i,s=null){return r.map(l=>l.route.id!==o.route.id?{...l,shouldLoad:!1,unstable_shouldRevalidateArgs:s,unstable_shouldCallHandler:()=>!1,_lazyPromises:Kb(e,t,n,l,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:cd(e,t,n,l,a,i,!0,s))}async function zO(e,t,n,r,o,a){n.some(c=>c._lazyPromises?.middleware)&&await Promise.all(n.map(c=>c._lazyPromises?.middleware));let i={request:t,params:n[0].params,context:o,matches:n},l=await e({...i,fetcherKey:r,unstable_runClientMiddleware:c=>{let d=i;return Vb(d,!1,()=>c({...d,fetcherKey:r,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(u,h)=>({[h]:{type:"error",result:u}}))}});try{await Promise.all(n.flatMap(c=>[c._lazyPromises?.handler,c._lazyPromises?.route]))}catch{}return l}async function GO({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:o,scopedContext:a}){let i,s,l=En(e.method),c=l?"action":"loader",d=u=>{let h,p=new Promise((x,E)=>h=E);s=()=>h(),e.signal.addEventListener("abort",s);let g=x=>typeof u!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${c}" [routeId: ${t.route.id}]`)):u({request:e,params:t.params,context:a},...x!==void 0?[x]:[]),b=(async()=>{try{return{type:"data",result:await(o?o(E=>g(E)):g())}}catch(x){return{type:"error",result:x}}})();return Promise.race([b,p])};try{let u=l?t.route.action:t.route.loader;if(n||r)if(u){let h,[p]=await Promise.all([d(u).catch(g=>{h=g}),n,r]);if(h!==void 0)throw h;i=p}else{await n;let h=l?t.route.action:t.route.loader;if(h)[i]=await Promise.all([d(h),r]);else if(c==="action"){let p=new URL(e.url),g=p.pathname+p.search;throw Pn(405,{method:e.method,pathname:g,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(u)i=await d(u);else{let h=new URL(e.url),p=h.pathname+h.search;throw Pn(404,{pathname:p})}}catch(u){return{type:"error",result:u}}finally{s&&e.signal.removeEventListener("abort",s)}return i}async function qO(e){let{result:t,type:n}=e;if(Xb(t)){let r;try{let o=t.headers.get("Content-Type");o&&/\bapplication\/json\b/.test(o)?t.body==null?r=null:r=await t.json():r=await t.text()}catch(o){return{type:"error",error:o}}return n==="error"?{type:"error",error:new kl(t.status,t.statusText,r),statusCode:t.status,headers:t.headers}:{type:"data",data:r,statusCode:t.status,headers:t.headers}}return n==="error"?Gm(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new kl(t.init?.status||500,void 0,t.data),statusCode:Mi(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Mi(t)?t.status:void 0}:Gm(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function WO(e,t,n,r,o){let a=e.headers.get("Location");if(je(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!Nh(a)){let i=r.slice(0,r.findIndex(s=>s.route.id===n)+1);a=sd(new URL(t.url),i,o,a),e.headers.set("Location",a)}return e}function Fm(e,t,n){if(Nh(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=Hn(o.pathname,n)!=null;if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function sa(e,t,n,r){let o=e.createURL(Qb(t)).toString(),a={signal:n};if(r&&En(r.formMethod)){let{formMethod:i,formEncType:s}=r;a.method=i.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(r.json)):s==="text/plain"?a.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?a.body=ud(r.formData):a.body=r.formData}return new Request(o,a)}function ud(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Bm(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function VO(e,t,n,r=!1,o=!1){let a={},i=null,s,l=!1,c={},d=n&&Sn(n[1])?n[1].error:void 0;return e.forEach(u=>{if(!(u.route.id in t))return;let h=u.route.id,p=t[h];if(je(!Eo(p),"Cannot handle redirect results in processLoaderData"),Sn(p)){let g=p.error;if(d!==void 0&&(g=d,d=void 0),i=i||{},o)i[h]=g;else{let b=ho(e,h);i[b.route.id]==null&&(i[b.route.id]=g)}r||(a[h]=Gb),l||(l=!0,s=Mi(p.error)?p.error.status:500),p.headers&&(c[h]=p.headers)}else a[h]=p.data,p.statusCode&&p.statusCode!==200&&!l&&(s=p.statusCode),p.headers&&(c[h]=p.headers)}),d!==void 0&&n&&(i={[n[0]]:d},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:i,statusCode:s||200,loaderHeaders:c}}function jm(e,t,n,r,o,a){let{loaderData:i,errors:s}=VO(t,n,r);return o.filter(l=>!l.matches||l.matches.some(c=>c.shouldLoad)).forEach(l=>{let{key:c,match:d,controller:u}=l,h=a[c];if(je(h,"Did not find corresponding fetcher result"),!(u&&u.signal.aborted))if(Sn(h)){let p=ho(e.matches,d?.route.id);s&&s[p.route.id]||(s={...s,[p.route.id]:h.error}),e.fetchers.delete(c)}else if(Eo(h))je(!1,"Unhandled fetcher revalidation redirect");else{let p=Ur(h.data);e.fetchers.set(c,p)}}),{loaderData:i,errors:s}}function Hm(e,t,n,r){let o=Object.entries(t).filter(([,a])=>a!==Gb).reduce((a,[i,s])=>(a[i]=s,a),{});for(let a of n){let i=a.route.id;if(!t.hasOwnProperty(i)&&e.hasOwnProperty(i)&&a.route.loader&&(o[i]=e[i]),r&&r.hasOwnProperty(i))break}return o}function Um(e){return e?Sn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ho(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function zm(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Pn(e,{pathname:t,routeId:n,method:r,type:o,message:a}={}){let i="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(i="Bad Request",r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:o==="invalid-body"&&(s="Unable to encode submission body")):e===403?(i="Forbidden",s=`Route "${n}" does not match URL "${t}"`):e===404?(i="Not Found",s=`No route matches URL "${t}"`):e===405&&(i="Method Not Allowed",r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new kl(e||500,i,new Error(s),!0)}function As(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(Eo(o))return{key:r,result:o}}}function Qb(e){let t=typeof e=="string"?no(e):e;return Kr({...t,hash:""})}function YO(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function KO(e){return Xb(e.result)&&PO.has(e.result.status)}function Sn(e){return e.type==="error"}function Eo(e){return(e&&e.type)==="redirect"}function Gm(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Xb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function QO(e){return NO.has(e.toUpperCase())}function En(e){return DO.has(e.toUpperCase())}function Ph(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function qs(e,t){let n=typeof t=="string"?no(t).search:t.search;if(e[e.length-1].route.index&&Ph(n||""))return e[e.length-1];let r=Hb(e);return r[r.length-1]}function qm(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function hu(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function XO(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Qa(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function JO(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Ur(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function ZO(e,t){try{let n=e.sessionStorage.getItem(zb);if(n){let r=JSON.parse(n);for(let[o,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(o,new Set(a||[]))}}catch{}}function eM(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(zb,JSON.stringify(n))}catch(r){Ft(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function tM(){let e,t,n=new Promise((r,o)=>{e=async a=>{r(a);try{await n}catch{}},t=async a=>{o(a);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var jo=D.createContext(null);jo.displayName="DataRouter";var Zi=D.createContext(null);Zi.displayName="DataRouterState";D.createContext(!1);var Rh=D.createContext({isTransitioning:!1});Rh.displayName="ViewTransition";var Jb=D.createContext(new Map);Jb.displayName="Fetchers";var nM=D.createContext(null);nM.displayName="Await";var gr=D.createContext(null);gr.displayName="Navigation";var cc=D.createContext(null);cc.displayName="Location";var Xn=D.createContext({outlet:null,matches:[],isDataRoute:!1});Xn.displayName="Route";var Lh=D.createContext(null);Lh.displayName="RouteError";function rM(e,{relative:t}={}){je(es(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=D.useContext(gr),{hash:o,pathname:a,search:i}=ns(e,{relative:t}),s=a;return n!=="/"&&(s=a==="/"?n:dr([n,a])),r.createHref({pathname:s,search:i,hash:o})}function es(){return D.useContext(cc)!=null}function Ho(){return je(es(),"useLocation() may be used only in the context of a <Router> component."),D.useContext(cc).location}var Zb="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function eE(e){D.useContext(gr).static||D.useLayoutEffect(e)}function $h(){let{isDataRoute:e}=D.useContext(Xn);return e?yM():oM()}function oM(){je(es(),"useNavigate() may be used only in the context of a <Router> component.");let e=D.useContext(jo),{basename:t,navigator:n}=D.useContext(gr),{matches:r}=D.useContext(Xn),{pathname:o}=Ho(),a=JSON.stringify(Dh(r)),i=D.useRef(!1);return eE(()=>{i.current=!0}),D.useCallback((l,c={})=>{if(Ft(i.current,Zb),!i.current)return;if(typeof l=="number"){n.go(l);return}let d=wh(l,JSON.parse(a),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:dr([t,d.pathname])),(c.replace?n.replace:n.push)(d,c.state,c)},[t,n,a,o,e])}var aM=D.createContext(null);function iM(e){let t=D.useContext(Xn).outlet;return t&&D.createElement(aM.Provider,{value:e},t)}function ts(){let{matches:e}=D.useContext(Xn),t=e[e.length-1];return t?t.params:{}}function ns(e,{relative:t}={}){let{matches:n}=D.useContext(Xn),{pathname:r}=Ho(),o=JSON.stringify(Dh(n));return D.useMemo(()=>wh(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function sM(e,t,n,r){je(es(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=D.useContext(gr),{matches:a}=D.useContext(Xn),i=a[a.length-1],s=i?i.params:{},l=i?i.pathname:"/",c=i?i.pathnameBase:"/",d=i&&i.route;{let E=d&&d.path||"";nE(l,!d||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${E}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
192
192
 
193
- Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let u=Ho(),h;h=u;let p=h.pathname||"/",g=p;if(c!=="/"){let E=c.replace(/^\//,"").split("/");g="/"+p.replace(/^\//,"").split("/").slice(E.length).join("/")}let b=zr(e,{pathname:g});return Ft(d||b!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),Ft(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),hM(b&&b.map(E=>Object.assign({},E,{params:Object.assign({},s,E.params),pathname:dr([c,o.encodeLocation?o.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?c:dr([c,o.encodeLocation?o.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),a,n,r)}function lM(){let e=tE(),t=Mi(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=D.createElement(D.Fragment,null,D.createElement("p",null,"💿 Hey developer 👋"),D.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",D.createElement("code",{style:a},"ErrorBoundary")," or"," ",D.createElement("code",{style:a},"errorElement")," prop on your route.")),D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},t),n?D.createElement("pre",{style:o},n):null,i)}var cM=D.createElement(lM,null),uM=class extends D.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?D.createElement(Xn.Provider,{value:this.props.routeContext},D.createElement(Lh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function dM({routeContext:e,match:t,children:n}){let r=D.useContext(jo);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),D.createElement(Xn.Provider,{value:e},n)}function hM(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=n?.errors;if(a!=null){let l=o.findIndex(c=>c.route.id&&a?.[c.route.id]!==void 0);je(l>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),o=o.slice(0,Math.min(o.length,l+1))}let i=!1,s=-1;if(n)for(let l=0;l<o.length;l++){let c=o[l];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(s=l),c.route.id){let{loaderData:d,errors:u}=n,h=c.route.loader&&!d.hasOwnProperty(c.route.id)&&(!u||u[c.route.id]===void 0);if(c.route.lazy||h){i=!0,s>=0?o=o.slice(0,s+1):o=[o[0]];break}}}return o.reduceRight((l,c,d)=>{let u,h=!1,p=null,g=null;n&&(u=a&&c.route.id?a[c.route.id]:void 0,p=c.route.errorElement||cM,i&&(s<0&&d===0?(nE("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,g=null):s===d&&(h=!0,g=c.route.hydrateFallbackElement||null)));let b=t.concat(o.slice(0,d+1)),x=()=>{let E;return u?E=p:h?E=g:c.route.Component?E=D.createElement(c.route.Component,null):c.route.element?E=c.route.element:E=l,D.createElement(dM,{match:c,routeContext:{outlet:l,matches:b,isDataRoute:n!=null},children:E})};return n&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?D.createElement(uM,{location:n.location,revalidation:n.revalidation,component:p,error:u,children:x(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):x()},null)}function Oh(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function pM(e){let t=D.useContext(jo);return je(t,Oh(e)),t}function fM(e){let t=D.useContext(Zi);return je(t,Oh(e)),t}function mM(e){let t=D.useContext(Xn);return je(t,Oh(e)),t}function Mh(e){let t=mM(e),n=t.matches[t.matches.length-1];return je(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function gM(){return Mh("useRouteId")}function tE(){let e=D.useContext(Lh),t=fM("useRouteError"),n=Mh("useRouteError");return e!==void 0?e:t.errors?.[n]}function yM(){let{router:e}=pM("useNavigate"),t=Mh("useNavigate"),n=D.useRef(!1);return eE(()=>{n.current=!0}),D.useCallback(async(o,a={})=>{Ft(n.current,Zb),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...a}))},[e,t])}var Wm={};function nE(e,t,n){!t&&!Wm[e]&&(Wm[e]=!0,Ft(!1,n))}var Vm={};function Ym(e,t){!e&&!Vm[t]&&(Vm[t]=!0,console.warn(t))}function bM(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&Ft(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:D.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&Ft(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:D.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&Ft(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:D.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var EM=["HydrateFallback","hydrateFallbackElement"],xM=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}};function TM({router:e,flushSync:t}){let[n,r]=D.useState(e.state),[o,a]=D.useState(),[i,s]=D.useState({isTransitioning:!1}),[l,c]=D.useState(),[d,u]=D.useState(),[h,p]=D.useState(),g=D.useRef(new Map),b=D.useCallback((C,{deletedFetchers:I,flushSync:N,viewTransitionOpts:S})=>{C.fetchers.forEach((q,B)=>{q.data!==void 0&&g.current.set(B,q.data)}),I.forEach(q=>g.current.delete(q)),Ym(N===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let M=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(Ym(S==null||M,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!S||!M){t&&N?t(()=>r(C)):D.startTransition(()=>r(C));return}if(t&&N){t(()=>{d&&(l&&l.resolve(),d.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:S.currentLocation,nextLocation:S.nextLocation})});let q=e.window.document.startViewTransition(()=>{t(()=>r(C))});q.finished.finally(()=>{t(()=>{c(void 0),u(void 0),a(void 0),s({isTransitioning:!1})})}),t(()=>u(q));return}d?(l&&l.resolve(),d.skipTransition(),p({state:C,currentLocation:S.currentLocation,nextLocation:S.nextLocation})):(a(C),s({isTransitioning:!0,flushSync:!1,currentLocation:S.currentLocation,nextLocation:S.nextLocation}))},[e.window,t,d,l]);D.useLayoutEffect(()=>e.subscribe(b),[e,b]),D.useEffect(()=>{i.isTransitioning&&!i.flushSync&&c(new xM)},[i]),D.useEffect(()=>{if(l&&o&&e.window){let C=o,I=l.promise,N=e.window.document.startViewTransition(async()=>{D.startTransition(()=>r(C)),await I});N.finished.finally(()=>{c(void 0),u(void 0),a(void 0),s({isTransitioning:!1})}),u(N)}},[o,l,e.window]),D.useEffect(()=>{l&&o&&n.location.key===o.location.key&&l.resolve()},[l,d,n.location,o]),D.useEffect(()=>{!i.isTransitioning&&h&&(a(h.state),s({isTransitioning:!0,flushSync:!1,currentLocation:h.currentLocation,nextLocation:h.nextLocation}),p(void 0))},[i.isTransitioning,h]);let x=D.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:C=>e.navigate(C),push:(C,I,N)=>e.navigate(C,{state:I,preventScrollReset:N?.preventScrollReset}),replace:(C,I,N)=>e.navigate(C,{replace:!0,state:I,preventScrollReset:N?.preventScrollReset})}),[e]),E=e.basename||"/",v=D.useMemo(()=>({router:e,navigator:x,static:!1,basename:E}),[e,x,E]);return D.createElement(D.Fragment,null,D.createElement(jo.Provider,{value:v},D.createElement(Zi.Provider,{value:n},D.createElement(Jb.Provider,{value:g.current},D.createElement(Rh.Provider,{value:i},D.createElement(kM,{basename:E,location:n.location,navigationType:n.historyAction,navigator:x},D.createElement(CM,{routes:e.routes,future:e.future,state:n})))))),null)}var CM=D.memo(vM);function vM({routes:e,future:t,state:n}){return sM(e,void 0,n,t)}function SM(e){return iM(e.context)}function kM({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:a=!1}){je(!es(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let i=e.replace(/^\/*/,"/"),s=D.useMemo(()=>({basename:i,navigator:o,static:a,future:{}}),[i,o,a]);typeof n=="string"&&(n=no(n));let{pathname:l="/",search:c="",hash:d="",state:u=null,key:h="default"}=n,p=D.useMemo(()=>{let g=Hn(l,i);return g==null?null:{location:{pathname:g,search:c,hash:d,state:u,key:h},navigationType:r}},[i,l,c,d,u,h,r]);return Ft(p!=null,`<Router basename="${i}"> is not able to match the URL "${l}${c}${d}" because it does not start with the basename, so the <Router> won't render anything.`),p==null?null:D.createElement(gr.Provider,{value:s},D.createElement(cc.Provider,{children:t,value:p}))}var Ws="get",Vs="application/x-www-form-urlencoded";function uc(e){return e!=null&&typeof e.tagName=="string"}function AM(e){return uc(e)&&e.tagName.toLowerCase()==="button"}function IM(e){return uc(e)&&e.tagName.toLowerCase()==="form"}function _M(e){return uc(e)&&e.tagName.toLowerCase()==="input"}function DM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function wM(e,t){return e.button===0&&(!t||t==="_self")&&!DM(e)}var Is=null;function NM(){if(Is===null)try{new FormData(document.createElement("form"),0),Is=!1}catch{Is=!0}return Is}var PM=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function pu(e){return e!=null&&!PM.has(e)?(Ft(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Vs}"`),null):e}function RM(e,t){let n,r,o,a,i;if(IM(e)){let s=e.getAttribute("action");r=s?Hn(s,t):null,n=e.getAttribute("method")||Ws,o=pu(e.getAttribute("enctype"))||Vs,a=new FormData(e)}else if(AM(e)||_M(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||s.getAttribute("action");if(r=l?Hn(l,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||Ws,o=pu(e.getAttribute("formenctype"))||pu(s.getAttribute("enctype"))||Vs,a=new FormData(s,e),!NM()){let{name:c,type:d,value:u}=e;if(d==="image"){let h=c?`${c}.`:"";a.append(`${h}x`,"0"),a.append(`${h}y`,"0")}else c&&a.append(c,u)}}else{if(uc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ws,r=null,o=Vs,i=e}return a&&o==="text/plain"&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Fh(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function LM(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&Hn(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function $M(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function OM(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function MM(e,t,n){let r=await Promise.all(e.map(async o=>{let a=t.routes[o.route.id];if(a){let i=await $M(a,n);return i.links?i.links():[]}return[]}));return HM(r.flat(1).filter(OM).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Km(e,t,n,r,o,a){let i=(l,c)=>n[c]?l.route.id!==n[c].route.id:!0,s=(l,c)=>n[c].pathname!==l.pathname||n[c].route.path?.endsWith("*")&&n[c].params["*"]!==l.params["*"];return a==="assets"?t.filter((l,c)=>i(l,c)||s(l,c)):a==="data"?t.filter((l,c)=>{let d=r.routes[l.route.id];if(!d||!d.hasLoader)return!1;if(i(l,c)||s(l,c))return!0;if(l.route.shouldRevalidate){let u=l.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof u=="boolean")return u}return!0}):[]}function FM(e,t,{includeHydrateFallback:n}={}){return BM(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let a=[o.module];return o.clientActionModule&&(a=a.concat(o.clientActionModule)),o.clientLoaderModule&&(a=a.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(a=a.concat(o.hydrateFallbackModule)),o.imports&&(a=a.concat(o.imports)),a}).flat(1))}function BM(e){return[...new Set(e)]}function jM(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function HM(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let a=JSON.stringify(jM(o));return n.has(a)||(n.add(a),r.push({key:a,link:o})),r},[])}function rE(){let e=D.useContext(jo);return Fh(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function UM(){let e=D.useContext(Zi);return Fh(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Bh=D.createContext(void 0);Bh.displayName="FrameworkContext";function oE(){let e=D.useContext(Bh);return Fh(e,"You must render this element inside a <HydratedRouter> element"),e}function zM(e,t){let n=D.useContext(Bh),[r,o]=D.useState(!1),[a,i]=D.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:c,onMouseLeave:d,onTouchStart:u}=t,h=D.useRef(null);D.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let b=E=>{E.forEach(v=>{i(v.isIntersecting)})},x=new IntersectionObserver(b,{threshold:.5});return h.current&&x.observe(h.current),()=>{x.disconnect()}}},[e]),D.useEffect(()=>{if(r){let b=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(b)}}},[r]);let p=()=>{o(!0)},g=()=>{o(!1),i(!1)};return n?e!=="intent"?[a,h,{}]:[a,h,{onFocus:Xa(s,p),onBlur:Xa(l,g),onMouseEnter:Xa(c,p),onMouseLeave:Xa(d,g),onTouchStart:Xa(u,p)}]:[!1,h,{}]}function Xa(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function GM({page:e,...t}){let{router:n}=rE(),r=D.useMemo(()=>zr(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?D.createElement(WM,{page:e,matches:r,...t}):null}function qM(e){let{manifest:t,routeModules:n}=oE(),[r,o]=D.useState([]);return D.useEffect(()=>{let a=!1;return MM(e,t,n).then(i=>{a||o(i)}),()=>{a=!0}},[e,t,n]),r}function WM({page:e,matches:t,...n}){let r=Ho(),{manifest:o,routeModules:a}=oE(),{basename:i}=rE(),{loaderData:s,matches:l}=UM(),c=D.useMemo(()=>Km(e,t,l,o,r,"data"),[e,t,l,o,r]),d=D.useMemo(()=>Km(e,t,l,o,r,"assets"),[e,t,l,o,r]),u=D.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let g=new Set,b=!1;if(t.forEach(E=>{let v=o.routes[E.route.id];!v||!v.hasLoader||(!c.some(C=>C.route.id===E.route.id)&&E.route.id in s&&a[E.route.id]?.shouldRevalidate||v.hasClientLoader?b=!0:g.add(E.route.id))}),g.size===0)return[];let x=LM(e,i,"data");return b&&g.size>0&&x.searchParams.set("_routes",t.filter(E=>g.has(E.route.id)).map(E=>E.route.id).join(",")),[x.pathname+x.search]},[i,s,r,o,c,t,e,a]),h=D.useMemo(()=>FM(d,o),[d,o]),p=qM(d);return D.createElement(D.Fragment,null,u.map(g=>D.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...n})),h.map(g=>D.createElement("link",{key:g,rel:"modulepreload",href:g,...n})),p.map(({key:g,link:b})=>D.createElement("link",{key:g,...b})))}function VM(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var aE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{aE&&(window.__reactRouterVersion="7.7.1")}catch{}function YM(e,t){return MO({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:nO({window:t?.window}),hydrationData:KM(),routes:e,mapRouteProperties:bM,hydrationRouteProperties:EM,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function KM(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:QM(e.errors)}),e}function QM(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new kl(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let a=window[o.__subType];if(typeof a=="function")try{let i=new a(o.message);i.stack="",n[r]=i}catch{}}if(n[r]==null){let a=new Error(o.message);a.stack="",n[r]=a}}else n[r]=o;return n}var iE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sE=D.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:a,replace:i,state:s,target:l,to:c,preventScrollReset:d,viewTransition:u,...h},p){let{basename:g}=D.useContext(gr),b=typeof c=="string"&&iE.test(c),x,E=!1;if(typeof c=="string"&&b&&(x=c,aE))try{let B=new URL(window.location.href),y=c.startsWith("//")?new URL(B.protocol+c):new URL(c),R=Hn(y.pathname,g);y.origin===B.origin&&R!=null?c=R+y.search+y.hash:E=!0}catch{Ft(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let v=rM(c,{relative:o}),[C,I,N]=zM(r,h),S=eF(c,{replace:i,state:s,target:l,preventScrollReset:d,relative:o,viewTransition:u});function M(B){t&&t(B),B.defaultPrevented||S(B)}let q=D.createElement("a",{...h,...N,href:x||v,onClick:E||a?t:M,ref:VM(p,I),target:l,"data-discover":!b&&n==="render"?"true":void 0});return C&&!b?D.createElement(D.Fragment,null,q,D.createElement(GM,{page:v})):q});sE.displayName="Link";var XM=D.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:a,to:i,viewTransition:s,children:l,...c},d){let u=ns(i,{relative:c.relative}),h=Ho(),p=D.useContext(Zi),{navigator:g,basename:b}=D.useContext(gr),x=p!=null&&aF(u)&&s===!0,E=g.encodeLocation?g.encodeLocation(u).pathname:u.pathname,v=h.pathname,C=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(v=v.toLowerCase(),C=C?C.toLowerCase():null,E=E.toLowerCase()),C&&b&&(C=Hn(C,b)||C);const I=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let N=v===E||!o&&v.startsWith(E)&&v.charAt(I)==="/",S=C!=null&&(C===E||!o&&C.startsWith(E)&&C.charAt(E.length)==="/"),M={isActive:N,isPending:S,isTransitioning:x},q=N?t:void 0,B;typeof r=="function"?B=r(M):B=[r,N?"active":null,S?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let y=typeof a=="function"?a(M):a;return D.createElement(sE,{...c,"aria-current":q,className:B,ref:d,style:y,to:i,viewTransition:s},typeof l=="function"?l(M):l)});XM.displayName="NavLink";var JM=D.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:a,method:i=Ws,action:s,onSubmit:l,relative:c,preventScrollReset:d,viewTransition:u,...h},p)=>{let g=rF(),b=oF(s,{relative:c}),x=i.toLowerCase()==="get"?"get":"post",E=typeof s=="string"&&iE.test(s),v=C=>{if(l&&l(C),C.defaultPrevented)return;C.preventDefault();let I=C.nativeEvent.submitter,N=I?.getAttribute("formmethod")||i;g(I||C.currentTarget,{fetcherKey:t,method:N,navigate:n,replace:o,state:a,relative:c,preventScrollReset:d,viewTransition:u})};return D.createElement("form",{ref:p,method:x,action:b,onSubmit:r?l:v,...h,"data-discover":!E&&e==="render"?"true":void 0})});JM.displayName="Form";function ZM(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function lE(e){let t=D.useContext(jo);return je(t,ZM(e)),t}function eF(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:a,viewTransition:i}={}){let s=$h(),l=Ho(),c=ns(e,{relative:a});return D.useCallback(d=>{if(wM(d,t)){d.preventDefault();let u=n!==void 0?n:Kr(l)===Kr(c);s(e,{replace:u,state:r,preventScrollReset:o,relative:a,viewTransition:i})}},[l,s,c,n,r,t,e,o,a,i])}var tF=0,nF=()=>`__${String(++tF)}__`;function rF(){let{router:e}=lE("useSubmit"),{basename:t}=D.useContext(gr),n=gM();return D.useCallback(async(r,o={})=>{let{action:a,method:i,encType:s,formData:l,body:c}=RM(r,t);if(o.navigate===!1){let d=o.fetcherKey||nF();await e.fetch(d,n,o.action||a,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||i,formEncType:o.encType||s,flushSync:o.flushSync})}else await e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||i,formEncType:o.encType||s,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function oF(e,{relative:t}={}){let{basename:n}=D.useContext(gr),r=D.useContext(Xn);je(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),a={...ns(e||".",{relative:t})},i=Ho();if(e==null){a.search=i.search;let s=new URLSearchParams(a.search),l=s.getAll("index");if(l.some(d=>d==="")){s.delete("index"),l.filter(u=>u).forEach(u=>s.append("index",u));let d=s.toString();a.search=d?`?${d}`:""}}return(!e||e===".")&&o.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:dr([n,a.pathname])),Kr(a)}function aF(e,{relative:t}={}){let n=D.useContext(Rh);je(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=lE("useViewTransitionState"),o=ns(e,{relative:t});if(!n.isTransitioning)return!1;let a=Hn(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=Hn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Sl(o.pathname,i)!=null||Sl(o.pathname,a)!=null}function iF(e){return D.createElement(TM,{flushSync:YE.flushSync,...e})}function rs(){const e=$h();return(t,n)=>{if(!n||!n.metaKey&&!n.ctrlKey&&!n.shiftKey&&n.button!==1){e(t);return}const r=new URL(t,window.location.href).href;(n.metaKey||n.ctrlKey||n.button===1||n.shiftKey)&&window.open(r,"_blank")}}const Zo=qe.createStack({createStyledComponent:mt("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>va({props:e,name:"MuiStack"})}),sF=new jl(new Yt);function lF({workbookPath:e,defaultProjectName:t,defaultPackageName:n}){const r=rs(),{server:o,getAccessToken:a}=th(),{workbookStorage:i}=Q$(),[s,l]=O.useState(void 0),[c,d]=O.useState(void 0);if(!i)throw new Error("Workbook storage be provided via WorkbookStorageProvider");const[u,h]=O.useState(),[p,g]=O.useState(),[b,x]=O.useState(),[E,v]=O.useState([]),[C,I]=O.useState(null),[N,S]=O.useState(null),M=!!C,q=()=>{I(null),S(null)},B=(X,A)=>{u&&(h(u.insertCell(A,{isMarkdown:X,value:""})),X?x(A):g(A),q(),console.log("handleAddCell",X,A))},[y,R]=O.useState(!1),F=()=>{R(!0)},$=async()=>{e&&i&&await i.deleteWorkbook(e).then(()=>{d(void 0),l(void 0)}).catch(X=>{d(`Error deleting workbook: ${X.message}`),l(void 0)}),R(!1),r(`/${t}/${n}`)},U=()=>{R(!1)},Y=O.useCallback(async()=>{if(!u){console.log("No workbook data ref");return}try{h(await u.saveWorkbook()),d(void 0),l("Workbook saved")}catch(X){d(`Error saving workbook: ${X.message}`),l(void 0)}},[u]);if(O.useEffect(()=>{u&&(async()=>{const X=new Map(E.map(({modelPath:ee,sourceInfos:k})=>[ee,k])),A=[],de=[];for(const ee of u.getModels())X.has(ee)?A.push({modelPath:ee,sourceInfos:X.get(ee)}):(console.log("Fetching model from Publisher",ee),de.push(sF.getModel(t,n,ee,void 0,await jh(o,a)).then(k=>({modelPath:ee,sourceInfos:k.data.sourceInfos.map(J=>JSON.parse(J))}))));if(de.length>0){const ee=await Promise.all(de);v([...A,...ee])}else v(A)})()},[a,u,n,t,o]),O.useEffect(()=>{e&&DI.loadWorkbook(i,e).then(X=>{h(X)})},[e,i]),!u)return f.jsx("div",{children:"Loading..."});const re=X=>{const A=[];for(const de of X)for(const ee of de.sourceInfos)A.push({modelPath:de.modelPath,sourceInfo:ee});return A},fe=(X,A)=>f.jsx(T.Button,{size:"small",startIcon:f.jsx(_I,{}),onClick:()=>B(X,A),variant:"contained",sx:{backgroundColor:"#fff",color:de=>de.palette.mode==="dark"?de.palette.grey[100]:de.palette.grey[700],boxShadow:"none","&:hover":{backgroundColor:de=>de.palette.mode==="dark"?de.palette.grey[500]:de.palette.grey[300],boxShadow:"none"}},children:X?"Markdown":"Explore"}),ue=f.jsxs(T.Box,{sx:{display:"flex",gap:1,justifyContent:"center",flex:2},children:[fe(!1,u.getCells().length),fe(!0,u.getCells().length)]});return f.jsxs(el,{variant:"outlined",children:[f.jsxs(jg,{children:[f.jsx(T.Box,{sx:{mb:2},children:f.jsx(T.Box,{sx:{minHeight:"24px"},children:c?f.jsx(T.Typography,{color:"error",variant:"body2",children:c}):s?f.jsx(T.Typography,{color:"success",variant:"body2",children:s}):f.jsx("span",{children:" "})})}),f.jsxs(Zo,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:[f.jsxs(Zo,{direction:"row",spacing:1,alignItems:"center",children:[f.jsx(T.Typography,{variant:"overline",sx:{fontSize:"13px",fontWeight:"bold",verticalAlign:"middle"},children:"Workbook"}),f.jsx(T.Typography,{variant:"subtitle2",sx:{fontSize:"13px",fontWeight:"normal",verticalAlign:"middle",ml:1},children:`${e.workspace} > ${e.path}`})]}),f.jsxs(Zo,{sx:{display:"flex",flexDirection:"row",gap:1},children:[f.jsx(T.Box,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:f.jsx(cF,{workbookData:u})}),f.jsxs(T.Box,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:[f.jsx(T.Button,{color:"error",onClick:F,size:"small",children:"Delete"}),f.jsxs(T.Dialog,{open:y,onClose:U,children:[f.jsx(T.DialogTitle,{children:"Delete Workbook"}),f.jsx(T.DialogContent,{children:f.jsxs(T.DialogContentText,{children:['Are you sure you want to delete the workbook "',e.path,'"? This action cannot be undone.']})}),f.jsxs(T.DialogActions,{children:[f.jsx(T.Button,{onClick:U,color:"primary",size:"small",children:"Cancel"}),f.jsx(T.Button,{onClick:$,color:"error",autoFocus:!0,size:"small",children:"Delete"})]})]})]})]})]}),f.jsx(T.Divider,{}),f.jsxs(Zo,{sx:{display:"flex",flexDirection:"row",width:"100%",mt:2},children:[f.jsx(T.Box,{sx:{flex:1},children:f.jsx(Z$,{initialSelectedModels:u.getModels(),onModelChange:X=>{h(u.setModels(X)),Y()}})}),f.jsx(T.Box,{sx:{flex:1}})]})]}),f.jsx(Fd,{children:f.jsxs(Zo,{children:[u.getCells().length===0&&f.jsxs(f.Fragment,{children:[f.jsx(T.Typography,{sx:{textAlign:"center",p:2,variant:"subtitle2",fontWeight:"medium"},children:"Workbook is empty"}),f.jsx(T.Typography,{variant:"body2",sx:{textAlign:"center",mb:2,variant:"body2"},children:"Click the + buttons to add a markdown or code cell."})]}),u.getCells().map((X,A)=>f.jsx(O.Fragment,{children:f.jsx(Y$,{cell:X,addButtonCallback:de=>fe(de,A),sourceAndPaths:re(E),editingMarkdown:b===A,editingMalloy:p===A,onDelete:()=>{h(u.deleteCell(A)),Y()},onCellChange:de=>{h(u.setCell(A,de))},onEdit:()=>{X.isMarkdown?x(A):g(A)},onClose:()=>{X.isMarkdown?x(void 0):g(void 0),Y()}},`${A}-${X.isMarkdown}-${e.workspace}-${e.path}`)},`${A}-${u.getCells().length}`)),ue,f.jsxs(T.Menu,{anchorEl:C,open:M,onClose:q,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[f.jsx(T.MenuItem,{onClick:()=>B(!0,N??0),children:"Add Markdown"}),f.jsx(T.MenuItem,{onClick:()=>B(!1,N??0),children:"Add Malloy"})]}),f.jsx(Zo,{sx:{flexDirection:"row",justifyContent:"flex-end",p:1}})]})})]})}function cF({workbookData:e}){const[t,n]=O.useState(!1);return f.jsx(T.Button,{color:"primary",onClick:async()=>{if(!e)return;const r=e.toMalloyWorkbook();try{await navigator.clipboard.writeText(r),n(!0),setTimeout(()=>n(!1),1500)}catch{n(!1),alert("Failed to copy to clipboard")}},size:"small",children:t?"Copied!":"Export"})}const uF=pt(f.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M8 17c-.55 0-1-.45-1-1v-3c0-.55.45-1 1-1s1 .45 1 1v3c0 .55-.45 1-1 1m4 0c-.55 0-1-.45-1-1v-1c0-.55.45-1 1-1s1 .45 1 1v1c0 .55-.45 1-1 1m0-5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m4 5c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v8c0 .55-.45 1-1 1"})),dF=pt(f.jsx("path",{d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42s1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1"})),Qm=pt(f.jsx("path",{d:"m19.46 8 .79-1.75L22 5.46c.39-.18.39-.73 0-.91l-1.75-.79L19.46 2c-.18-.39-.73-.39-.91 0l-.79 1.75-1.76.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.74.39.92 0M11.5 9.5 9.91 6c-.35-.78-1.47-.78-1.82 0L6.5 9.5 3 11.09c-.78.36-.78 1.47 0 1.82l3.5 1.59L8.09 18c.36.78 1.47.78 1.82 0l1.59-3.5 3.5-1.59c.78-.36.78-1.47 0-1.82zm7.04 6.5-.79 1.75-1.75.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.73.39.91 0l.79-1.75 1.76-.79c.39-.18.39-.73 0-.91l-1.75-.79-.79-1.76c-.18-.39-.74-.39-.92 0"})),hF=pt(f.jsx("path",{d:"M8.7 15.9 4.8 12l3.9-3.9c.39-.39.39-1.01 0-1.4a.984.984 0 0 0-1.4 0l-4.59 4.59c-.39.39-.39 1.02 0 1.41l4.59 4.6c.39.39 1.01.39 1.4 0s.39-1.01 0-1.4m6.6 0 3.9-3.9-3.9-3.9a.984.984 0 0 1 0-1.4c.39-.39 1.01-.39 1.4 0l4.59 4.59c.39.39.39 1.02 0 1.41l-4.59 4.6c-.39.39-1.01.39-1.4 0a.984.984 0 0 1 0-1.4"})),pF=pt(f.jsx("path",{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1 1.1-.49 1.1-1.1-.49-1.1-1.1-1.1M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m2.19 12.19L6 18l3.81-8.19L18 6z"})),fF=pt([f.jsx("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),f.jsx("path",{d:"M13.21 3c-3.84-.11-7 2.87-7.19 6.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v2c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-3.68c2.44-1.16 4.1-3.68 4-6.58-.14-3.62-3.18-6.63-6.79-6.74M16 10c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")]),Xm=pt(f.jsx("path",{d:"M4 20h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2m0-3h2v2H4zM2 6c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2m4 1H4V5h2zm-2 7h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2m0-3h2v2H4z"})),mF=new Wg(new Yt),gF=e=>{if(!e)return"Explore semantic models, run queries, and build dashboards";const t=e.replace(/^#+\s+/gm,"").replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/`([^`]+)`/g,"$1").trim(),n=t.split(/\n\s*\n/)[0]||t;if(n.length<=120)return n;const r=n.substring(0,120).split(" ");return r.pop(),r.join(" ")+"..."};function yF({navigate:e}){const{data:t,isSuccess:n,isError:r,error:o}=un({queryKey:["projects"],queryFn:a=>mF.listProjects(a)});return r?f.jsx(sn,{error:o,context:"Projects List"}):n?f.jsxs(T.Container,{maxWidth:"lg",sx:{py:4},children:[f.jsxs(T.Box,{sx:{textAlign:"center",mb:6},children:[f.jsxs(T.Stack,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[f.jsx(Qm,{sx:{fontSize:32,color:"primary.main"}}),f.jsx(T.Typography,{variant:"h3",component:"h1",fontWeight:700,children:"Publisher"})]}),f.jsx(T.Typography,{variant:"h5",color:"text.secondary",sx:{mb:3,maxWidth:600,mx:"auto"},children:"The open-source semantic model server for the Malloy data language"}),f.jsx(T.Typography,{variant:"body1",color:"text.secondary",sx:{maxWidth:800,mx:"auto"},children:"Define semantic models once — and use them everywhere. Publisher serves Malloy models through clean APIs, enabling consistent, interpretable, and AI-ready data access for tools, applications, and agents."})]}),f.jsxs(T.Grid,{container:!0,spacing:3,sx:{mb:6},children:[f.jsx(T.Grid,{size:{xs:12,md:4},children:f.jsx(T.Card,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#ad-hoc-data-analysis","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:f.jsxs(T.CardContent,{sx:{p:3},children:[f.jsxs(T.Stack,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[f.jsx(uF,{sx:{color:"info.main",fontSize:28}}),f.jsx(T.Typography,{variant:"h6",fontWeight:600,children:"Ad Hoc Analysis"})]}),f.jsx(T.Typography,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Use Explorer, a visual query builder that allows analysts to browse semantic sources, build queries, and run nested logic — all without writing code."}),f.jsx(T.Chip,{label:"No-code",size:"small",color:"primary",variant:"outlined"})]})})}),f.jsx(T.Grid,{size:{xs:12,md:4},children:f.jsx(T.Card,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#notebook-based-dashboards","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:f.jsxs(T.CardContent,{sx:{p:3},children:[f.jsxs(T.Stack,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[f.jsx(hF,{sx:{color:"warning.main",fontSize:28}}),f.jsx(T.Typography,{variant:"h6",fontWeight:600,children:"Notebook Dashboards"})]}),f.jsx(T.Typography,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Create shareable, code-first dashboards using Malloy notebooks. Include text, charts, and reusable views — all versioned alongside your models."}),f.jsx(T.Chip,{label:"Versioned",size:"small",color:"warning",variant:"outlined"})]})})}),f.jsx(T.Grid,{size:{xs:12,md:4},children:f.jsx(T.Card,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#mcp-based-ai-data-agents","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:f.jsxs(T.CardContent,{sx:{p:3},children:[f.jsxs(T.Stack,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[f.jsx(fF,{sx:{color:"success.main",fontSize:28}}),f.jsx(T.Typography,{variant:"h6",fontWeight:600,children:"AI Data Agents"})]}),f.jsx(T.Typography,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Expose your semantic models via the Model Context Protocol (MCP), enabling AI agents to discover sources and ask well-formed questions."}),f.jsx(T.Chip,{label:"AI-Ready",size:"small",color:"success",variant:"outlined"})]})})})]}),f.jsx(T.Divider,{sx:{my:4}}),t.data.length>0?f.jsxs(f.Fragment,{children:[f.jsxs(T.Box,{sx:{textAlign:"center",mb:4},children:[f.jsxs(T.Stack,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[f.jsx(Xm,{sx:{color:"primary.main",fontSize:24}}),f.jsx(T.Typography,{variant:"h4",fontWeight:600,children:"Select a Project"})]}),f.jsx(T.Typography,{variant:"body1",color:"text.secondary",children:"Choose a project to explore its semantic models and start analyzing your data"})]}),f.jsx(T.Grid,{container:!0,spacing:3,justifyContent:"center",children:t.data.map(a=>f.jsx(T.Grid,{size:{xs:12,sm:6,md:4},children:f.jsx(T.Card,{variant:"outlined",sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2,borderColor:"primary.main"}},onClick:i=>e(`/${a.name}/`,i),children:f.jsxs(T.CardContent,{sx:{p:3,textAlign:"center"},children:[f.jsx(pF,{sx:{fontSize:48,color:"primary.main",mb:2}}),f.jsx(T.Typography,{variant:"h6",fontWeight:600,gutterBottom:!0,children:a.name}),f.jsx(T.Typography,{variant:"body2",color:"text.secondary",sx:{mb:2},children:gF(a.readme)}),f.jsx(T.Button,{variant:"contained",color:"secondary",endIcon:f.jsx(dF,{}),fullWidth:!0,children:"Open Project"})]})})},a.name))})]}):f.jsxs(T.Box,{sx:{textAlign:"center",mb:4},children:[f.jsxs(T.Stack,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[f.jsx(Xm,{sx:{color:"primary.main",fontSize:24}}),f.jsx(T.Typography,{variant:"h4",fontWeight:600,children:"Get Started"})]}),f.jsx(T.Typography,{variant:"body1",color:"text.secondary",sx:{mb:3},children:"No projects found. Create your first Malloy project to start exploring semantic models and building data experiences."}),f.jsx(T.Button,{variant:"contained",size:"large",color:"primary",startIcon:f.jsx(Qm,{}),href:"https://github.com/malloydata/publisher/blob/main/README.md#server-configuration",target:"_blank",rel:"noopener noreferrer",children:"Learn How to Create Models"})]}),f.jsx(T.Box,{sx:{textAlign:"center",mt:6,pt:4,borderTop:1,borderColor:"divider"},children:f.jsxs(T.Typography,{variant:"body2",color:"text.secondary",children:["Publisher is built on fully open infrastructure and designed for the AI era. Join the"," ",f.jsx("a",{href:"https://join.slack.com/t/malloy-community/shared_invite/zt-1kgfwgi5g-CrsdaRqs81QY67QW0~t_uw",target:"_blank",rel:"noopener noreferrer",style:{color:"primary.main",textDecoration:"underline"},children:"Malloy Slack community"})," ","to ask questions, share ideas, and contribute to the future of data modeling."]})})]}):f.jsx(an,{text:"Loading projects..."})}const cE=new vd.QueryClient({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}}),jh=async(e,t)=>{const n=t?await t():void 0,r=n?{Authorization:`Bearer ${n}`}:{};return{baseURL:e,withCredentials:!!n,headers:r}};function un(e){const{server:t,getAccessToken:n}=th(),r={...e,queryKey:[...e.queryKey,t],queryFn:async()=>{try{const o=await jh(t,n);return await e.queryFn(o)}catch(o){if(o&&typeof o=="object"&&"response"in o){const a=o;if(a.response?.data){const i=new Error(a.response.data.message||a.message);throw i.status=a.response.status,i.data=a.response.data,i}}throw o}},retry:!1,throwOnError:!1};return vd.useQuery(r,cE)}function bF(e){const{server:t,getAccessToken:n}=th(),r={...e,mutationFn:async o=>{try{const a=await jh(t,n);return await e.mutationFn(o,a)}catch(a){if(a&&typeof a=="object"&&"response"in a){const i=a;if(i.response?.data){const s=new Error(i.response.data.message||i.message);throw s.status=i.response.status,s.data=i.response.data,s}}throw a}},retry:!1,throwOnError:!1};return vd.useMutation(r,cE)}const EF=new Hl(new Yt);function uE({sourceAndPaths:e,selectedSourceIndex:t,existingQuery:n,onQueryChange:r,onSourceChange:o}){return O.useEffect(()=>{o&&o(t)},[t,o]),f.jsx(Fd,{children:f.jsxs(qe.Stack,{spacing:2,component:"section",children:[f.jsx(TF,{sourceAndPath:e[t],existingQuery:n,onChange:a=>{r&&r(a)}}),f.jsx(qe.Box,{height:"5px"})]})})}function Ys(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function xF({sourceAndPath:e,onChange:t,existingQuery:n,explorerComponents:r,QueryBuilder:o}){const[a,i]=O.useState(n||Ys());O.useEffect(()=>{n&&i(n)},[n]);const[s,l]=O.useState([]),{MalloyExplorerProvider:c,QueryPanel:d,ResizableCollapsiblePanel:u,ResultPanel:h,SourcePanel:p}=r;O.useEffect(()=>{t&&t(a)},[t,a]);const{projectName:g,packageName:b,versionId:x}=zn(),E=bF({mutationFn:(N,S)=>{const M=new o.ASTQuery({source:e.sourceInfo,query:a?.malloyQuery}).toMalloy();return i({...a,query:M}),EF.executeQuery(g,b,e.modelPath,M,void 0,void 0,x,S)},onSuccess:N=>{if(N){const S=JSON.parse(N.data.result);i({...a,malloyResult:S})}}}),[v,C]=O.useState(e.sourceInfo.name);O.useEffect(()=>{v!==e.sourceInfo.name&&(C(e.sourceInfo.name),i(Ys()))},[e,v]);const I=O.useCallback(N=>{i({...a,malloyQuery:N,malloyResult:void 0})},[a]);return v!==e.sourceInfo.name?f.jsx("div",{children:"Loading..."}):f.jsx(Hg,{sx:{border:"1px solid #e0e0e0",borderRadius:"8px",overflow:"hidden"},children:f.jsx(c,{source:e.sourceInfo,query:a?.malloyQuery,onQueryChange:I,focusedNestViewPath:s,onFocusedNestViewPathChange:l,onDrill:N=>{console.info(N)},children:f.jsxs("div",{style:{display:"flex",height:"100%",overflowY:"auto"},children:[f.jsx(u,{isInitiallyExpanded:!0,initialWidth:180,minWidth:180,icon:"database",title:e.sourceInfo.name,children:f.jsx(p,{onRefresh:()=>i(Ys())})}),f.jsx(u,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:f.jsx(d,{runQuery:()=>{E.mutate()}})}),f.jsx(h,{source:e.sourceInfo,draftQuery:a?.malloyQuery,setDraftQuery:N=>i({...a,malloyQuery:N}),submittedQuery:a?.malloyQuery?{executionState:E.isPending?"running":"finished",response:{result:a.malloyResult},query:a.malloyQuery,queryResolutionStartMillis:Date.now(),onCancel:E.reset}:void 0,options:{showRawQuery:!0}})]})})},e.sourceInfo.name)}function TF(e){const[t,n]=O.useState(null),[r,o]=O.useState(null),[a,i]=O.useState(!0);return O.useEffect(()=>{let s=!0;return Promise.all([import("@malloydata/malloy-explorer"),import("@malloydata/malloy-query-builder")]).then(([l,c])=>{s&&(n(l),o(c),i(!1))}).catch(l=>{console.error("Failed to load Malloy components:",l),s&&i(!1)}),()=>{s=!1}},[]),a||!t||!r?f.jsx(aC,{children:f.jsx(Hg,{children:f.jsx("div",{style:{alignItems:"center",justifyContent:"center",height:"200px",color:"#666"},children:"Loading explorer..."})})}):f.jsx(xF,{...e,explorerComponents:t,QueryBuilder:r})}const CF=mt(T.Box)(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing(1),borderBottom:"1px solid #f0f0f0",minHeight:48,paddingBottom:"8px"})),vF=mt(T.Button)(({theme:e,selected:t})=>({minHeight:32,padding:e.spacing(.75,2),borderRadius:"6px",background:t?"#f8f9fa":"transparent",color:t?"#495057":"#666666",fontWeight:t?600:500,border:t?"1px solid #e9ecef":"1px solid transparent",boxShadow:"none",textTransform:"none",fontSize:"15px","&:hover":{background:t?"#f8f9fa":"#fafafa",border:t?"1px solid #e9ecef":"1px solid #f0f0f0"}}));function dE({modelPath:e,data:t,onChange:n,existingQuery:r,initialSelectedSourceIndex:o=0,onSourceChange:a}){const[i,s]=O.useState(o);O.useEffect(()=>{s(o)},[o]);const{data:l,isError:c,isLoading:d,error:u}=b1(e,void 0),h=t||l;return d&&!t?f.jsx(an,{text:"Fetching Model..."}):c&&!t?(console.log("error",u),f.jsx(sn,{error:u,context:`ModelExplorer > ${e}`})):h?f.jsxs(el,{variant:"outlined",children:[f.jsx(jg,{children:f.jsx(T.Stack,{sx:{flexDirection:"row",justifyContent:"space-between"},children:Array.isArray(h.sourceInfos)&&h.sourceInfos.length>0&&f.jsx(CF,{children:h.sourceInfos.map((p,g)=>{let b;try{b=JSON.parse(p)}catch{b={name:String(g)}}return f.jsx(vF,{selected:i===g,onClick:()=>{s(g),a&&a(g)},children:b.name||`Source ${g+1}`},b.name||g)})})})}),f.jsx(Fd,{children:f.jsxs(T.Stack,{spacing:2,component:"section",children:[Array.isArray(h.sourceInfos)&&h.sourceInfos.length>0&&f.jsx(uE,{sourceAndPaths:h.sourceInfos.map(p=>({sourceInfo:JSON.parse(p),modelPath:e})),selectedSourceIndex:i,existingQuery:r,onQueryChange:n}),f.jsx(T.Box,{height:"5px"})]})})]}):f.jsx(an,{text:"Loading..."})}function SF({modelPath:e,queryName:t,annotations:n}){const[r,o]=O.useState(),[a,i]=O.useState(!1),{packageName:s,projectName:l}=zn(),c=new Hl(new Yt),{data:d,isSuccess:u,isLoading:h}=un({queryKey:["namedQueryResult",l,s,e,t],queryFn:p=>c.executeQuery(l,s,e,void 0,void 0,t,void 0,p),enabled:!0});return O.useEffect(()=>{if(n&&n.length>0){const p=n.map(g=>`// ${g}`).join(`
193
+ Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let u=Ho(),h;h=u;let p=h.pathname||"/",g=p;if(c!=="/"){let E=c.replace(/^\//,"").split("/");g="/"+p.replace(/^\//,"").split("/").slice(E.length).join("/")}let b=zr(e,{pathname:g});return Ft(d||b!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),Ft(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),hM(b&&b.map(E=>Object.assign({},E,{params:Object.assign({},s,E.params),pathname:dr([c,o.encodeLocation?o.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?c:dr([c,o.encodeLocation?o.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),a,n,r)}function lM(){let e=tE(),t=Mi(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=D.createElement(D.Fragment,null,D.createElement("p",null,"💿 Hey developer 👋"),D.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",D.createElement("code",{style:a},"ErrorBoundary")," or"," ",D.createElement("code",{style:a},"errorElement")," prop on your route.")),D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},t),n?D.createElement("pre",{style:o},n):null,i)}var cM=D.createElement(lM,null),uM=class extends D.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?D.createElement(Xn.Provider,{value:this.props.routeContext},D.createElement(Lh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function dM({routeContext:e,match:t,children:n}){let r=D.useContext(jo);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),D.createElement(Xn.Provider,{value:e},n)}function hM(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=n?.errors;if(a!=null){let l=o.findIndex(c=>c.route.id&&a?.[c.route.id]!==void 0);je(l>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),o=o.slice(0,Math.min(o.length,l+1))}let i=!1,s=-1;if(n)for(let l=0;l<o.length;l++){let c=o[l];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(s=l),c.route.id){let{loaderData:d,errors:u}=n,h=c.route.loader&&!d.hasOwnProperty(c.route.id)&&(!u||u[c.route.id]===void 0);if(c.route.lazy||h){i=!0,s>=0?o=o.slice(0,s+1):o=[o[0]];break}}}return o.reduceRight((l,c,d)=>{let u,h=!1,p=null,g=null;n&&(u=a&&c.route.id?a[c.route.id]:void 0,p=c.route.errorElement||cM,i&&(s<0&&d===0?(nE("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,g=null):s===d&&(h=!0,g=c.route.hydrateFallbackElement||null)));let b=t.concat(o.slice(0,d+1)),x=()=>{let E;return u?E=p:h?E=g:c.route.Component?E=D.createElement(c.route.Component,null):c.route.element?E=c.route.element:E=l,D.createElement(dM,{match:c,routeContext:{outlet:l,matches:b,isDataRoute:n!=null},children:E})};return n&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?D.createElement(uM,{location:n.location,revalidation:n.revalidation,component:p,error:u,children:x(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):x()},null)}function Oh(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function pM(e){let t=D.useContext(jo);return je(t,Oh(e)),t}function fM(e){let t=D.useContext(Zi);return je(t,Oh(e)),t}function mM(e){let t=D.useContext(Xn);return je(t,Oh(e)),t}function Mh(e){let t=mM(e),n=t.matches[t.matches.length-1];return je(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function gM(){return Mh("useRouteId")}function tE(){let e=D.useContext(Lh),t=fM("useRouteError"),n=Mh("useRouteError");return e!==void 0?e:t.errors?.[n]}function yM(){let{router:e}=pM("useNavigate"),t=Mh("useNavigate"),n=D.useRef(!1);return eE(()=>{n.current=!0}),D.useCallback(async(o,a={})=>{Ft(n.current,Zb),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...a}))},[e,t])}var Wm={};function nE(e,t,n){!t&&!Wm[e]&&(Wm[e]=!0,Ft(!1,n))}var Vm={};function Ym(e,t){!e&&!Vm[t]&&(Vm[t]=!0,console.warn(t))}function bM(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&Ft(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:D.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&Ft(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:D.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&Ft(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:D.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var EM=["HydrateFallback","hydrateFallbackElement"],xM=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}};function TM({router:e,flushSync:t}){let[n,r]=D.useState(e.state),[o,a]=D.useState(),[i,s]=D.useState({isTransitioning:!1}),[l,c]=D.useState(),[d,u]=D.useState(),[h,p]=D.useState(),g=D.useRef(new Map),b=D.useCallback((C,{deletedFetchers:I,flushSync:w,viewTransitionOpts:S})=>{C.fetchers.forEach((q,B)=>{q.data!==void 0&&g.current.set(B,q.data)}),I.forEach(q=>g.current.delete(q)),Ym(w===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let M=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(Ym(S==null||M,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!S||!M){t&&w?t(()=>r(C)):D.startTransition(()=>r(C));return}if(t&&w){t(()=>{d&&(l&&l.resolve(),d.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:S.currentLocation,nextLocation:S.nextLocation})});let q=e.window.document.startViewTransition(()=>{t(()=>r(C))});q.finished.finally(()=>{t(()=>{c(void 0),u(void 0),a(void 0),s({isTransitioning:!1})})}),t(()=>u(q));return}d?(l&&l.resolve(),d.skipTransition(),p({state:C,currentLocation:S.currentLocation,nextLocation:S.nextLocation})):(a(C),s({isTransitioning:!0,flushSync:!1,currentLocation:S.currentLocation,nextLocation:S.nextLocation}))},[e.window,t,d,l]);D.useLayoutEffect(()=>e.subscribe(b),[e,b]),D.useEffect(()=>{i.isTransitioning&&!i.flushSync&&c(new xM)},[i]),D.useEffect(()=>{if(l&&o&&e.window){let C=o,I=l.promise,w=e.window.document.startViewTransition(async()=>{D.startTransition(()=>r(C)),await I});w.finished.finally(()=>{c(void 0),u(void 0),a(void 0),s({isTransitioning:!1})}),u(w)}},[o,l,e.window]),D.useEffect(()=>{l&&o&&n.location.key===o.location.key&&l.resolve()},[l,d,n.location,o]),D.useEffect(()=>{!i.isTransitioning&&h&&(a(h.state),s({isTransitioning:!0,flushSync:!1,currentLocation:h.currentLocation,nextLocation:h.nextLocation}),p(void 0))},[i.isTransitioning,h]);let x=D.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:C=>e.navigate(C),push:(C,I,w)=>e.navigate(C,{state:I,preventScrollReset:w?.preventScrollReset}),replace:(C,I,w)=>e.navigate(C,{replace:!0,state:I,preventScrollReset:w?.preventScrollReset})}),[e]),E=e.basename||"/",v=D.useMemo(()=>({router:e,navigator:x,static:!1,basename:E}),[e,x,E]);return D.createElement(D.Fragment,null,D.createElement(jo.Provider,{value:v},D.createElement(Zi.Provider,{value:n},D.createElement(Jb.Provider,{value:g.current},D.createElement(Rh.Provider,{value:i},D.createElement(kM,{basename:E,location:n.location,navigationType:n.historyAction,navigator:x},D.createElement(CM,{routes:e.routes,future:e.future,state:n})))))),null)}var CM=D.memo(vM);function vM({routes:e,future:t,state:n}){return sM(e,void 0,n,t)}function SM(e){return iM(e.context)}function kM({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:a=!1}){je(!es(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let i=e.replace(/^\/*/,"/"),s=D.useMemo(()=>({basename:i,navigator:o,static:a,future:{}}),[i,o,a]);typeof n=="string"&&(n=no(n));let{pathname:l="/",search:c="",hash:d="",state:u=null,key:h="default"}=n,p=D.useMemo(()=>{let g=Hn(l,i);return g==null?null:{location:{pathname:g,search:c,hash:d,state:u,key:h},navigationType:r}},[i,l,c,d,u,h,r]);return Ft(p!=null,`<Router basename="${i}"> is not able to match the URL "${l}${c}${d}" because it does not start with the basename, so the <Router> won't render anything.`),p==null?null:D.createElement(gr.Provider,{value:s},D.createElement(cc.Provider,{children:t,value:p}))}var Ws="get",Vs="application/x-www-form-urlencoded";function uc(e){return e!=null&&typeof e.tagName=="string"}function AM(e){return uc(e)&&e.tagName.toLowerCase()==="button"}function IM(e){return uc(e)&&e.tagName.toLowerCase()==="form"}function _M(e){return uc(e)&&e.tagName.toLowerCase()==="input"}function DM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function wM(e,t){return e.button===0&&(!t||t==="_self")&&!DM(e)}var Is=null;function NM(){if(Is===null)try{new FormData(document.createElement("form"),0),Is=!1}catch{Is=!0}return Is}var PM=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function pu(e){return e!=null&&!PM.has(e)?(Ft(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Vs}"`),null):e}function RM(e,t){let n,r,o,a,i;if(IM(e)){let s=e.getAttribute("action");r=s?Hn(s,t):null,n=e.getAttribute("method")||Ws,o=pu(e.getAttribute("enctype"))||Vs,a=new FormData(e)}else if(AM(e)||_M(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||s.getAttribute("action");if(r=l?Hn(l,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||Ws,o=pu(e.getAttribute("formenctype"))||pu(s.getAttribute("enctype"))||Vs,a=new FormData(s,e),!NM()){let{name:c,type:d,value:u}=e;if(d==="image"){let h=c?`${c}.`:"";a.append(`${h}x`,"0"),a.append(`${h}y`,"0")}else c&&a.append(c,u)}}else{if(uc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ws,r=null,o=Vs,i=e}return a&&o==="text/plain"&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Fh(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function LM(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&Hn(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function $M(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function OM(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function MM(e,t,n){let r=await Promise.all(e.map(async o=>{let a=t.routes[o.route.id];if(a){let i=await $M(a,n);return i.links?i.links():[]}return[]}));return HM(r.flat(1).filter(OM).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Km(e,t,n,r,o,a){let i=(l,c)=>n[c]?l.route.id!==n[c].route.id:!0,s=(l,c)=>n[c].pathname!==l.pathname||n[c].route.path?.endsWith("*")&&n[c].params["*"]!==l.params["*"];return a==="assets"?t.filter((l,c)=>i(l,c)||s(l,c)):a==="data"?t.filter((l,c)=>{let d=r.routes[l.route.id];if(!d||!d.hasLoader)return!1;if(i(l,c)||s(l,c))return!0;if(l.route.shouldRevalidate){let u=l.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof u=="boolean")return u}return!0}):[]}function FM(e,t,{includeHydrateFallback:n}={}){return BM(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let a=[o.module];return o.clientActionModule&&(a=a.concat(o.clientActionModule)),o.clientLoaderModule&&(a=a.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(a=a.concat(o.hydrateFallbackModule)),o.imports&&(a=a.concat(o.imports)),a}).flat(1))}function BM(e){return[...new Set(e)]}function jM(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function HM(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let a=JSON.stringify(jM(o));return n.has(a)||(n.add(a),r.push({key:a,link:o})),r},[])}function rE(){let e=D.useContext(jo);return Fh(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function UM(){let e=D.useContext(Zi);return Fh(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Bh=D.createContext(void 0);Bh.displayName="FrameworkContext";function oE(){let e=D.useContext(Bh);return Fh(e,"You must render this element inside a <HydratedRouter> element"),e}function zM(e,t){let n=D.useContext(Bh),[r,o]=D.useState(!1),[a,i]=D.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:c,onMouseLeave:d,onTouchStart:u}=t,h=D.useRef(null);D.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let b=E=>{E.forEach(v=>{i(v.isIntersecting)})},x=new IntersectionObserver(b,{threshold:.5});return h.current&&x.observe(h.current),()=>{x.disconnect()}}},[e]),D.useEffect(()=>{if(r){let b=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(b)}}},[r]);let p=()=>{o(!0)},g=()=>{o(!1),i(!1)};return n?e!=="intent"?[a,h,{}]:[a,h,{onFocus:Xa(s,p),onBlur:Xa(l,g),onMouseEnter:Xa(c,p),onMouseLeave:Xa(d,g),onTouchStart:Xa(u,p)}]:[!1,h,{}]}function Xa(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function GM({page:e,...t}){let{router:n}=rE(),r=D.useMemo(()=>zr(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?D.createElement(WM,{page:e,matches:r,...t}):null}function qM(e){let{manifest:t,routeModules:n}=oE(),[r,o]=D.useState([]);return D.useEffect(()=>{let a=!1;return MM(e,t,n).then(i=>{a||o(i)}),()=>{a=!0}},[e,t,n]),r}function WM({page:e,matches:t,...n}){let r=Ho(),{manifest:o,routeModules:a}=oE(),{basename:i}=rE(),{loaderData:s,matches:l}=UM(),c=D.useMemo(()=>Km(e,t,l,o,r,"data"),[e,t,l,o,r]),d=D.useMemo(()=>Km(e,t,l,o,r,"assets"),[e,t,l,o,r]),u=D.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let g=new Set,b=!1;if(t.forEach(E=>{let v=o.routes[E.route.id];!v||!v.hasLoader||(!c.some(C=>C.route.id===E.route.id)&&E.route.id in s&&a[E.route.id]?.shouldRevalidate||v.hasClientLoader?b=!0:g.add(E.route.id))}),g.size===0)return[];let x=LM(e,i,"data");return b&&g.size>0&&x.searchParams.set("_routes",t.filter(E=>g.has(E.route.id)).map(E=>E.route.id).join(",")),[x.pathname+x.search]},[i,s,r,o,c,t,e,a]),h=D.useMemo(()=>FM(d,o),[d,o]),p=qM(d);return D.createElement(D.Fragment,null,u.map(g=>D.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...n})),h.map(g=>D.createElement("link",{key:g,rel:"modulepreload",href:g,...n})),p.map(({key:g,link:b})=>D.createElement("link",{key:g,...b})))}function VM(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var aE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{aE&&(window.__reactRouterVersion="7.7.1")}catch{}function YM(e,t){return MO({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:nO({window:t?.window}),hydrationData:KM(),routes:e,mapRouteProperties:bM,hydrationRouteProperties:EM,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function KM(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:QM(e.errors)}),e}function QM(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new kl(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let a=window[o.__subType];if(typeof a=="function")try{let i=new a(o.message);i.stack="",n[r]=i}catch{}}if(n[r]==null){let a=new Error(o.message);a.stack="",n[r]=a}}else n[r]=o;return n}var iE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sE=D.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:a,replace:i,state:s,target:l,to:c,preventScrollReset:d,viewTransition:u,...h},p){let{basename:g}=D.useContext(gr),b=typeof c=="string"&&iE.test(c),x,E=!1;if(typeof c=="string"&&b&&(x=c,aE))try{let B=new URL(window.location.href),y=c.startsWith("//")?new URL(B.protocol+c):new URL(c),R=Hn(y.pathname,g);y.origin===B.origin&&R!=null?c=R+y.search+y.hash:E=!0}catch{Ft(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let v=rM(c,{relative:o}),[C,I,w]=zM(r,h),S=eF(c,{replace:i,state:s,target:l,preventScrollReset:d,relative:o,viewTransition:u});function M(B){t&&t(B),B.defaultPrevented||S(B)}let q=D.createElement("a",{...h,...w,href:x||v,onClick:E||a?t:M,ref:VM(p,I),target:l,"data-discover":!b&&n==="render"?"true":void 0});return C&&!b?D.createElement(D.Fragment,null,q,D.createElement(GM,{page:v})):q});sE.displayName="Link";var XM=D.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:a,to:i,viewTransition:s,children:l,...c},d){let u=ns(i,{relative:c.relative}),h=Ho(),p=D.useContext(Zi),{navigator:g,basename:b}=D.useContext(gr),x=p!=null&&aF(u)&&s===!0,E=g.encodeLocation?g.encodeLocation(u).pathname:u.pathname,v=h.pathname,C=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(v=v.toLowerCase(),C=C?C.toLowerCase():null,E=E.toLowerCase()),C&&b&&(C=Hn(C,b)||C);const I=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let w=v===E||!o&&v.startsWith(E)&&v.charAt(I)==="/",S=C!=null&&(C===E||!o&&C.startsWith(E)&&C.charAt(E.length)==="/"),M={isActive:w,isPending:S,isTransitioning:x},q=w?t:void 0,B;typeof r=="function"?B=r(M):B=[r,w?"active":null,S?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let y=typeof a=="function"?a(M):a;return D.createElement(sE,{...c,"aria-current":q,className:B,ref:d,style:y,to:i,viewTransition:s},typeof l=="function"?l(M):l)});XM.displayName="NavLink";var JM=D.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:a,method:i=Ws,action:s,onSubmit:l,relative:c,preventScrollReset:d,viewTransition:u,...h},p)=>{let g=rF(),b=oF(s,{relative:c}),x=i.toLowerCase()==="get"?"get":"post",E=typeof s=="string"&&iE.test(s),v=C=>{if(l&&l(C),C.defaultPrevented)return;C.preventDefault();let I=C.nativeEvent.submitter,w=I?.getAttribute("formmethod")||i;g(I||C.currentTarget,{fetcherKey:t,method:w,navigate:n,replace:o,state:a,relative:c,preventScrollReset:d,viewTransition:u})};return D.createElement("form",{ref:p,method:x,action:b,onSubmit:r?l:v,...h,"data-discover":!E&&e==="render"?"true":void 0})});JM.displayName="Form";function ZM(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function lE(e){let t=D.useContext(jo);return je(t,ZM(e)),t}function eF(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:a,viewTransition:i}={}){let s=$h(),l=Ho(),c=ns(e,{relative:a});return D.useCallback(d=>{if(wM(d,t)){d.preventDefault();let u=n!==void 0?n:Kr(l)===Kr(c);s(e,{replace:u,state:r,preventScrollReset:o,relative:a,viewTransition:i})}},[l,s,c,n,r,t,e,o,a,i])}var tF=0,nF=()=>`__${String(++tF)}__`;function rF(){let{router:e}=lE("useSubmit"),{basename:t}=D.useContext(gr),n=gM();return D.useCallback(async(r,o={})=>{let{action:a,method:i,encType:s,formData:l,body:c}=RM(r,t);if(o.navigate===!1){let d=o.fetcherKey||nF();await e.fetch(d,n,o.action||a,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||i,formEncType:o.encType||s,flushSync:o.flushSync})}else await e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||i,formEncType:o.encType||s,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function oF(e,{relative:t}={}){let{basename:n}=D.useContext(gr),r=D.useContext(Xn);je(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),a={...ns(e||".",{relative:t})},i=Ho();if(e==null){a.search=i.search;let s=new URLSearchParams(a.search),l=s.getAll("index");if(l.some(d=>d==="")){s.delete("index"),l.filter(u=>u).forEach(u=>s.append("index",u));let d=s.toString();a.search=d?`?${d}`:""}}return(!e||e===".")&&o.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:dr([n,a.pathname])),Kr(a)}function aF(e,{relative:t}={}){let n=D.useContext(Rh);je(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=lE("useViewTransitionState"),o=ns(e,{relative:t});if(!n.isTransitioning)return!1;let a=Hn(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=Hn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Sl(o.pathname,i)!=null||Sl(o.pathname,a)!=null}function iF(e){return D.createElement(TM,{flushSync:YE.flushSync,...e})}function rs(){const e=$h();return(t,n)=>{if(!n||!n.metaKey&&!n.ctrlKey&&!n.shiftKey&&n.button!==1){e(t);return}const r=new URL(t,window.location.href).href;(n.metaKey||n.ctrlKey||n.button===1||n.shiftKey)&&window.open(r,"_blank")}}const Zo=qe.createStack({createStyledComponent:mt("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>va({props:e,name:"MuiStack"})}),sF=new jl(new Yt);function lF({workbookPath:e,defaultProjectName:t,defaultPackageName:n}){const r=rs(),{server:o,getAccessToken:a}=th(),{workbookStorage:i}=Q$(),[s,l]=O.useState(void 0),[c,d]=O.useState(void 0);if(!i)throw new Error("Workbook storage be provided via WorkbookStorageProvider");const[u,h]=O.useState(),[p,g]=O.useState(),[b,x]=O.useState(),[E,v]=O.useState([]),[C,I]=O.useState(null),[w,S]=O.useState(null),M=!!C,q=()=>{I(null),S(null)},B=(X,A)=>{u&&(h(u.insertCell(A,{isMarkdown:X,value:""})),X?x(A):g(A),q(),console.log("handleAddCell",X,A))},[y,R]=O.useState(!1),F=()=>{R(!0)},$=async()=>{e&&i&&await i.deleteWorkbook(e).then(()=>{d(void 0),l(void 0)}).catch(X=>{d(`Error deleting workbook: ${X.message}`),l(void 0)}),R(!1),r(`/${t}/${n}`)},U=()=>{R(!1)},Y=O.useCallback(async()=>{if(!u){console.log("No workbook data ref");return}try{h(await u.saveWorkbook()),d(void 0),l("Workbook saved")}catch(X){d(`Error saving workbook: ${X.message}`),l(void 0)}},[u]);if(O.useEffect(()=>{u&&(async()=>{const X=new Map(E.map(({modelPath:ee,sourceInfos:k})=>[ee,k])),A=[],de=[];for(const ee of u.getModels())X.has(ee)?A.push({modelPath:ee,sourceInfos:X.get(ee)}):(console.log("Fetching model from Publisher",ee),de.push(sF.getModel(t,n,ee,void 0,await jh(o,a)).then(k=>({modelPath:ee,sourceInfos:k.data.sourceInfos.map(J=>JSON.parse(J))}))));if(de.length>0){const ee=await Promise.all(de);v([...A,...ee])}else v(A)})()},[a,u,n,t,o]),O.useEffect(()=>{e&&DI.loadWorkbook(i,e).then(X=>{h(X)})},[e,i]),!u)return f.jsx("div",{children:"Loading..."});const re=X=>{const A=[];for(const de of X)for(const ee of de.sourceInfos)A.push({modelPath:de.modelPath,sourceInfo:ee});return A},fe=(X,A)=>f.jsx(T.Button,{size:"small",startIcon:f.jsx(_I,{}),onClick:()=>B(X,A),variant:"contained",sx:{backgroundColor:"#fff",color:de=>de.palette.mode==="dark"?de.palette.grey[100]:de.palette.grey[700],boxShadow:"none","&:hover":{backgroundColor:de=>de.palette.mode==="dark"?de.palette.grey[500]:de.palette.grey[300],boxShadow:"none"}},children:X?"Markdown":"Explore"}),ue=f.jsxs(T.Box,{sx:{display:"flex",gap:1,justifyContent:"center",flex:2},children:[fe(!1,u.getCells().length),fe(!0,u.getCells().length)]});return f.jsxs(el,{variant:"outlined",children:[f.jsxs(jg,{children:[f.jsx(T.Box,{sx:{mb:2},children:f.jsx(T.Box,{sx:{minHeight:"24px"},children:c?f.jsx(T.Typography,{color:"error",variant:"body2",children:c}):s?f.jsx(T.Typography,{color:"success",variant:"body2",children:s}):f.jsx("span",{children:" "})})}),f.jsxs(Zo,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:[f.jsxs(Zo,{direction:"row",spacing:1,alignItems:"center",children:[f.jsx(T.Typography,{variant:"overline",sx:{fontSize:"13px",fontWeight:"bold",verticalAlign:"middle"},children:"Workbook"}),f.jsx(T.Typography,{variant:"subtitle2",sx:{fontSize:"13px",fontWeight:"normal",verticalAlign:"middle",ml:1},children:`${e.workspace} > ${e.path}`})]}),f.jsxs(Zo,{sx:{display:"flex",flexDirection:"row",gap:1},children:[f.jsx(T.Box,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:f.jsx(cF,{workbookData:u})}),f.jsxs(T.Box,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:[f.jsx(T.Button,{color:"error",onClick:F,size:"small",children:"Delete"}),f.jsxs(T.Dialog,{open:y,onClose:U,children:[f.jsx(T.DialogTitle,{children:"Delete Workbook"}),f.jsx(T.DialogContent,{children:f.jsxs(T.DialogContentText,{children:['Are you sure you want to delete the workbook "',e.path,'"? This action cannot be undone.']})}),f.jsxs(T.DialogActions,{children:[f.jsx(T.Button,{onClick:U,color:"primary",size:"small",children:"Cancel"}),f.jsx(T.Button,{onClick:$,color:"error",autoFocus:!0,size:"small",children:"Delete"})]})]})]})]})]}),f.jsx(T.Divider,{}),f.jsxs(Zo,{sx:{display:"flex",flexDirection:"row",width:"100%",mt:2},children:[f.jsx(T.Box,{sx:{flex:1},children:f.jsx(Z$,{initialSelectedModels:u.getModels(),onModelChange:X=>{h(u.setModels(X)),Y()}})}),f.jsx(T.Box,{sx:{flex:1}})]})]}),f.jsx(Fd,{children:f.jsxs(Zo,{children:[u.getCells().length===0&&f.jsxs(f.Fragment,{children:[f.jsx(T.Typography,{sx:{textAlign:"center",p:2,variant:"subtitle2",fontWeight:"medium"},children:"Workbook is empty"}),f.jsx(T.Typography,{variant:"body2",sx:{textAlign:"center",mb:2,variant:"body2"},children:"Click the + buttons to add a markdown or code cell."})]}),u.getCells().map((X,A)=>f.jsx(O.Fragment,{children:f.jsx(Y$,{cell:X,addButtonCallback:de=>fe(de,A),sourceAndPaths:re(E),editingMarkdown:b===A,editingMalloy:p===A,onDelete:()=>{h(u.deleteCell(A)),Y()},onCellChange:de=>{h(u.setCell(A,de))},onEdit:()=>{X.isMarkdown?x(A):g(A)},onClose:()=>{X.isMarkdown?x(void 0):g(void 0),Y()}},`${A}-${X.isMarkdown}-${e.workspace}-${e.path}`)},`${A}-${u.getCells().length}`)),ue,f.jsxs(T.Menu,{anchorEl:C,open:M,onClose:q,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[f.jsx(T.MenuItem,{onClick:()=>B(!0,w??0),children:"Add Markdown"}),f.jsx(T.MenuItem,{onClick:()=>B(!1,w??0),children:"Add Malloy"})]}),f.jsx(Zo,{sx:{flexDirection:"row",justifyContent:"flex-end",p:1}})]})})]})}function cF({workbookData:e}){const[t,n]=O.useState(!1);return f.jsx(T.Button,{color:"primary",onClick:async()=>{if(!e)return;const r=e.toMalloyWorkbook();try{await navigator.clipboard.writeText(r),n(!0),setTimeout(()=>n(!1),1500)}catch{n(!1),alert("Failed to copy to clipboard")}},size:"small",children:t?"Copied!":"Export"})}const uF=pt(f.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M8 17c-.55 0-1-.45-1-1v-3c0-.55.45-1 1-1s1 .45 1 1v3c0 .55-.45 1-1 1m4 0c-.55 0-1-.45-1-1v-1c0-.55.45-1 1-1s1 .45 1 1v1c0 .55-.45 1-1 1m0-5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m4 5c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v8c0 .55-.45 1-1 1"})),dF=pt(f.jsx("path",{d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42s1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1"})),Qm=pt(f.jsx("path",{d:"m19.46 8 .79-1.75L22 5.46c.39-.18.39-.73 0-.91l-1.75-.79L19.46 2c-.18-.39-.73-.39-.91 0l-.79 1.75-1.76.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.74.39.92 0M11.5 9.5 9.91 6c-.35-.78-1.47-.78-1.82 0L6.5 9.5 3 11.09c-.78.36-.78 1.47 0 1.82l3.5 1.59L8.09 18c.36.78 1.47.78 1.82 0l1.59-3.5 3.5-1.59c.78-.36.78-1.47 0-1.82zm7.04 6.5-.79 1.75-1.75.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.73.39.91 0l.79-1.75 1.76-.79c.39-.18.39-.73 0-.91l-1.75-.79-.79-1.76c-.18-.39-.74-.39-.92 0"})),hF=pt(f.jsx("path",{d:"M8.7 15.9 4.8 12l3.9-3.9c.39-.39.39-1.01 0-1.4a.984.984 0 0 0-1.4 0l-4.59 4.59c-.39.39-.39 1.02 0 1.41l4.59 4.6c.39.39 1.01.39 1.4 0s.39-1.01 0-1.4m6.6 0 3.9-3.9-3.9-3.9a.984.984 0 0 1 0-1.4c.39-.39 1.01-.39 1.4 0l4.59 4.59c.39.39.39 1.02 0 1.41l-4.59 4.6c-.39.39-1.01.39-1.4 0a.984.984 0 0 1 0-1.4"})),pF=pt(f.jsx("path",{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1 1.1-.49 1.1-1.1-.49-1.1-1.1-1.1M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m2.19 12.19L6 18l3.81-8.19L18 6z"})),fF=pt([f.jsx("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),f.jsx("path",{d:"M13.21 3c-3.84-.11-7 2.87-7.19 6.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v2c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-3.68c2.44-1.16 4.1-3.68 4-6.58-.14-3.62-3.18-6.63-6.79-6.74M16 10c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")]),Xm=pt(f.jsx("path",{d:"M4 20h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2m0-3h2v2H4zM2 6c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2m4 1H4V5h2zm-2 7h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2m0-3h2v2H4z"})),mF=new Wg(new Yt),gF=e=>{if(!e)return"Explore semantic models, run queries, and build dashboards";const t=e.replace(/^#+\s+/gm,"").replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/`([^`]+)`/g,"$1").trim(),n=t.split(/\n\s*\n/)[0]||t;if(n.length<=120)return n;const r=n.substring(0,120).split(" ");return r.pop(),r.join(" ")+"..."};function yF({navigate:e}){const{data:t,isSuccess:n,isError:r,error:o}=un({queryKey:["projects"],queryFn:a=>mF.listProjects(a)});return r?f.jsx(sn,{error:o,context:"Projects List"}):n?f.jsxs(T.Container,{maxWidth:"lg",sx:{py:4},children:[f.jsxs(T.Box,{sx:{textAlign:"center",mb:6},children:[f.jsxs(T.Stack,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[f.jsx(Qm,{sx:{fontSize:32,color:"primary.main"}}),f.jsx(T.Typography,{variant:"h3",component:"h1",fontWeight:700,children:"Publisher"})]}),f.jsx(T.Typography,{variant:"h5",color:"text.secondary",sx:{mb:3,maxWidth:600,mx:"auto"},children:"The open-source semantic model server for the Malloy data language"}),f.jsx(T.Typography,{variant:"body1",color:"text.secondary",sx:{maxWidth:800,mx:"auto"},children:"Define semantic models once — and use them everywhere. Publisher serves Malloy models through clean APIs, enabling consistent, interpretable, and AI-ready data access for tools, applications, and agents."})]}),f.jsxs(T.Grid,{container:!0,spacing:3,sx:{mb:6},children:[f.jsx(T.Grid,{size:{xs:12,md:4},children:f.jsx(T.Card,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#ad-hoc-data-analysis","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:f.jsxs(T.CardContent,{sx:{p:3},children:[f.jsxs(T.Stack,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[f.jsx(uF,{sx:{color:"info.main",fontSize:28}}),f.jsx(T.Typography,{variant:"h6",fontWeight:600,children:"Ad Hoc Analysis"})]}),f.jsx(T.Typography,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Use Explorer, a visual query builder that allows analysts to browse semantic sources, build queries, and run nested logic — all without writing code."}),f.jsx(T.Chip,{label:"No-code",size:"small",color:"primary",variant:"outlined"})]})})}),f.jsx(T.Grid,{size:{xs:12,md:4},children:f.jsx(T.Card,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#notebook-based-dashboards","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:f.jsxs(T.CardContent,{sx:{p:3},children:[f.jsxs(T.Stack,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[f.jsx(hF,{sx:{color:"warning.main",fontSize:28}}),f.jsx(T.Typography,{variant:"h6",fontWeight:600,children:"Notebook Dashboards"})]}),f.jsx(T.Typography,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Create shareable, code-first dashboards using Malloy notebooks. Include text, charts, and reusable views — all versioned alongside your models."}),f.jsx(T.Chip,{label:"Versioned",size:"small",color:"warning",variant:"outlined"})]})})}),f.jsx(T.Grid,{size:{xs:12,md:4},children:f.jsx(T.Card,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#mcp-based-ai-data-agents","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:f.jsxs(T.CardContent,{sx:{p:3},children:[f.jsxs(T.Stack,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[f.jsx(fF,{sx:{color:"success.main",fontSize:28}}),f.jsx(T.Typography,{variant:"h6",fontWeight:600,children:"AI Data Agents"})]}),f.jsx(T.Typography,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Expose your semantic models via the Model Context Protocol (MCP), enabling AI agents to discover sources and ask well-formed questions."}),f.jsx(T.Chip,{label:"AI-Ready",size:"small",color:"success",variant:"outlined"})]})})})]}),f.jsx(T.Divider,{sx:{my:4}}),t.data.length>0?f.jsxs(f.Fragment,{children:[f.jsxs(T.Box,{sx:{textAlign:"center",mb:4},children:[f.jsxs(T.Stack,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[f.jsx(Xm,{sx:{color:"primary.main",fontSize:24}}),f.jsx(T.Typography,{variant:"h4",fontWeight:600,children:"Select a Project"})]}),f.jsx(T.Typography,{variant:"body1",color:"text.secondary",children:"Choose a project to explore its semantic models and start analyzing your data"})]}),f.jsx(T.Grid,{container:!0,spacing:3,justifyContent:"center",children:t.data.map(a=>f.jsx(T.Grid,{size:{xs:12,sm:6,md:4},children:f.jsx(T.Card,{variant:"outlined",sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2,borderColor:"primary.main"}},onClick:i=>e(`/${a.name}/`,i),children:f.jsxs(T.CardContent,{sx:{p:3,textAlign:"center"},children:[f.jsx(pF,{sx:{fontSize:48,color:"primary.main",mb:2}}),f.jsx(T.Typography,{variant:"h6",fontWeight:600,gutterBottom:!0,children:a.name}),f.jsx(T.Typography,{variant:"body2",color:"text.secondary",sx:{mb:2},children:gF(a.readme)}),f.jsx(T.Button,{variant:"contained",color:"secondary",endIcon:f.jsx(dF,{}),fullWidth:!0,children:"Open Project"})]})})},a.name))})]}):f.jsxs(T.Box,{sx:{textAlign:"center",mb:4},children:[f.jsxs(T.Stack,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[f.jsx(Xm,{sx:{color:"primary.main",fontSize:24}}),f.jsx(T.Typography,{variant:"h4",fontWeight:600,children:"Get Started"})]}),f.jsx(T.Typography,{variant:"body1",color:"text.secondary",sx:{mb:3},children:"No projects found. Create your first Malloy project to start exploring semantic models and building data experiences."}),f.jsx(T.Button,{variant:"contained",size:"large",color:"primary",startIcon:f.jsx(Qm,{}),href:"https://github.com/malloydata/publisher/blob/main/README.md#server-configuration",target:"_blank",rel:"noopener noreferrer",children:"Learn How to Create Models"})]}),f.jsx(T.Box,{sx:{textAlign:"center",mt:6,pt:4,borderTop:1,borderColor:"divider"},children:f.jsxs(T.Typography,{variant:"body2",color:"text.secondary",children:["Publisher is built on fully open infrastructure and designed for the AI era. Join the"," ",f.jsx("a",{href:"https://join.slack.com/t/malloy-community/shared_invite/zt-1kgfwgi5g-CrsdaRqs81QY67QW0~t_uw",target:"_blank",rel:"noopener noreferrer",style:{color:"primary.main",textDecoration:"underline"},children:"Malloy Slack community"})," ","to ask questions, share ideas, and contribute to the future of data modeling."]})})]}):f.jsx(an,{text:"Loading projects..."})}const cE=new vd.QueryClient({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}}),jh=async(e,t)=>{const n=t?await t():void 0,r=n?{Authorization:`Bearer ${n}`}:{};return{baseURL:e,withCredentials:!!n,headers:r}};function un(e){const{server:t,getAccessToken:n}=th(),r={...e,queryKey:[...e.queryKey,t],queryFn:async()=>{try{const o=await jh(t,n);return await e.queryFn(o)}catch(o){if(o&&typeof o=="object"&&"response"in o){const a=o;if(a.response?.data){const i=new Error(a.response.data.message||a.message);throw i.status=a.response.status,i.data=a.response.data,i}}throw o}},retry:!1,throwOnError:!1};return vd.useQuery(r,cE)}function bF(e){const{server:t,getAccessToken:n}=th(),r={...e,mutationFn:async o=>{try{const a=await jh(t,n);return await e.mutationFn(o,a)}catch(a){if(a&&typeof a=="object"&&"response"in a){const i=a;if(i.response?.data){const s=new Error(i.response.data.message||i.message);throw s.status=i.response.status,s.data=i.response.data,s}}throw a}},retry:!1,throwOnError:!1};return vd.useMutation(r,cE)}const EF=new Hl(new Yt);function uE({sourceAndPaths:e,selectedSourceIndex:t,existingQuery:n,onQueryChange:r,onSourceChange:o}){return O.useEffect(()=>{o&&o(t)},[t,o]),f.jsx(Fd,{children:f.jsxs(qe.Stack,{spacing:2,component:"section",children:[f.jsx(TF,{sourceAndPath:e[t],existingQuery:n,onChange:a=>{r&&r(a)}}),f.jsx(qe.Box,{height:"5px"})]})})}function Ys(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function xF({sourceAndPath:e,onChange:t,existingQuery:n,explorerComponents:r,QueryBuilder:o}){const[a,i]=O.useState(n||Ys());O.useEffect(()=>{n&&i(n)},[n]);const[s,l]=O.useState([]),{MalloyExplorerProvider:c,QueryPanel:d,ResizableCollapsiblePanel:u,ResultPanel:h,SourcePanel:p}=r;O.useEffect(()=>{t&&t(a)},[t,a]);const{projectName:g,packageName:b,versionId:x}=zn(),E=bF({mutationFn:(w,S)=>{const M=new o.ASTQuery({source:e.sourceInfo,query:a?.malloyQuery}).toMalloy();return i({...a,query:M}),EF.executeQuery(g,b,e.modelPath,M,void 0,void 0,x,S)},onSuccess:w=>{if(w){const S=JSON.parse(w.data.result);i({...a,malloyResult:S})}}}),[v,C]=O.useState(e.sourceInfo.name);O.useEffect(()=>{v!==e.sourceInfo.name&&(C(e.sourceInfo.name),i(Ys()))},[e,v]);const I=O.useCallback(w=>{i({...a,malloyQuery:w,malloyResult:void 0})},[a]);return v!==e.sourceInfo.name?f.jsx("div",{children:"Loading..."}):f.jsx(Hg,{sx:{border:"1px solid #e0e0e0",borderRadius:"8px",overflow:"hidden"},children:f.jsx(c,{source:e.sourceInfo,query:a?.malloyQuery,onQueryChange:I,focusedNestViewPath:s,onFocusedNestViewPathChange:l,onDrill:w=>{console.info(w)},children:f.jsxs("div",{style:{display:"flex",height:"100%",overflowY:"auto"},children:[f.jsx(u,{isInitiallyExpanded:!0,initialWidth:180,minWidth:180,icon:"database",title:e.sourceInfo.name,children:f.jsx(p,{onRefresh:()=>i(Ys())})}),f.jsx(u,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:f.jsx(d,{runQuery:()=>{console.log(`running query with: ${a?.malloyQuery}`);try{E.mutate()}catch(w){console.error("Error running query:",w)}}})}),f.jsx(h,{source:e.sourceInfo,draftQuery:a?.malloyQuery,setDraftQuery:w=>i({...a,malloyQuery:w}),submittedQuery:a?.malloyQuery?{executionState:E.isPending?"running":"finished",response:{result:a.malloyResult},query:a.malloyQuery,queryResolutionStartMillis:Date.now(),onCancel:E.reset}:void 0,options:{showRawQuery:!0}})]})})},e.sourceInfo.name)}function TF(e){const[t,n]=O.useState(null),[r,o]=O.useState(null),[a,i]=O.useState(!0);return O.useEffect(()=>{let s=!0;return Promise.all([import("@malloydata/malloy-explorer"),import("@malloydata/malloy-query-builder")]).then(([l,c])=>{s&&(n(l),o(c),i(!1))}).catch(l=>{console.error("Failed to load Malloy components:",l),s&&i(!1)}),()=>{s=!1}},[]),a||!t||!r?f.jsx(aC,{children:f.jsx(Hg,{children:f.jsx("div",{style:{alignItems:"center",justifyContent:"center",height:"200px",color:"#666"},children:"Loading explorer..."})})}):f.jsx(xF,{...e,explorerComponents:t,QueryBuilder:r})}const CF=mt(T.Box)(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing(1),borderBottom:"1px solid #f0f0f0",minHeight:48,paddingBottom:"8px"})),vF=mt(T.Button)(({theme:e,selected:t})=>({minHeight:32,padding:e.spacing(.75,2),borderRadius:"6px",background:t?"#f8f9fa":"transparent",color:t?"#495057":"#666666",fontWeight:t?600:500,border:t?"1px solid #e9ecef":"1px solid transparent",boxShadow:"none",textTransform:"none",fontSize:"15px","&:hover":{background:t?"#f8f9fa":"#fafafa",border:t?"1px solid #e9ecef":"1px solid #f0f0f0"}}));function dE({modelPath:e,data:t,onChange:n,existingQuery:r,initialSelectedSourceIndex:o=0,onSourceChange:a}){const[i,s]=O.useState(o);O.useEffect(()=>{s(o)},[o]);const{data:l,isError:c,isLoading:d,error:u}=b1(e,void 0),h=t||l;return d&&!t?f.jsx(an,{text:"Fetching Model..."}):c&&!t?(console.log("error",u),f.jsx(sn,{error:u,context:`ModelExplorer > ${e}`})):h?f.jsxs(el,{variant:"outlined",children:[f.jsx(jg,{children:f.jsx(T.Stack,{sx:{flexDirection:"row",justifyContent:"space-between"},children:Array.isArray(h.sourceInfos)&&h.sourceInfos.length>0&&f.jsx(CF,{children:h.sourceInfos.map((p,g)=>{let b;try{b=JSON.parse(p)}catch{b={name:String(g)}}return f.jsx(vF,{selected:i===g,onClick:()=>{s(g),a&&a(g)},children:b.name||`Source ${g+1}`},b.name||g)})})})}),f.jsx(Fd,{children:f.jsxs(T.Stack,{spacing:2,component:"section",children:[Array.isArray(h.sourceInfos)&&h.sourceInfos.length>0&&f.jsx(uE,{sourceAndPaths:h.sourceInfos.map(p=>({sourceInfo:JSON.parse(p),modelPath:e})),selectedSourceIndex:i,existingQuery:r,onQueryChange:n}),f.jsx(T.Box,{height:"5px"})]})})]}):f.jsx(an,{text:"Loading..."})}function SF({modelPath:e,queryName:t,annotations:n}){const[r,o]=O.useState(),[a,i]=O.useState(!1),{packageName:s,projectName:l}=zn(),c=new Hl(new Yt),{data:d,isSuccess:u,isLoading:h}=un({queryKey:["namedQueryResult",l,s,e,t],queryFn:p=>c.executeQuery(l,s,e,void 0,void 0,t,void 0,p),enabled:!0});return O.useEffect(()=>{if(n&&n.length>0){const p=n.map(g=>`// ${g}`).join(`
194
194
  `);hl(p,"typescript").then(g=>{o(g)})}},[n]),f.jsxs(Su,{children:[r&&f.jsx(T.Box,{sx:{marginBottom:"16px"},children:f.jsx(T.Typography,{fontSize:"12px",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:f.jsx("div",{className:"content",dangerouslySetInnerHTML:{__html:r}})})}),f.jsxs(T.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},children:[f.jsx(T.Typography,{variant:"body2",sx:{fontSize:"15px",fontWeight:"600",color:"#495057",padding:"8px 16px",backgroundColor:"#f8f9fa",borderRadius:"6px",border:"1px solid #e9ecef"},children:t}),f.jsx(T.IconButton,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px"},onClick:()=>i(!0),children:f.jsx(ba,{sx:{fontSize:"18px",color:"#666666"}})})]}),f.jsxs(ku,{sx:{position:"relative"},children:[h&&f.jsx(T.Box,{sx:{padding:"20px",textAlign:"center"},children:f.jsx(T.Typography,{children:"Loading results..."})}),u&&d?.data?.result&&f.jsx(Yl,{result:d.data.result,minHeight:300,maxHeight:600,hideToggle:!1})]}),f.jsx(j0,{open:a,onClose:()=>i(!1),result:d?.data?.result||"",title:`Query: ${t}`})]})}function kF({modelPath:e,versionId:t,onChange:n}){const{data:r,isError:o,isLoading:a,error:i}=b1(e,t),[s,l]=O.useState(!1),[c,d]=O.useState(),[u,h]=O.useState(0);if(a)return f.jsx(an,{text:"Fetching Model..."});if(o)return console.log("error",i),f.jsx(sn,{error:i,context:`Model > ${e}`});const p=b=>{d(b),n&&n(b)},g=b=>{h(b)};return f.jsxs(T.Box,{sx:{position:"relative",maxWidth:"1200px",margin:"0 auto",paddingTop:"24px"},children:[Array.isArray(r?.sourceInfos)&&r.sourceInfos.length>0&&f.jsxs(T.Stack,{spacing:2,component:"section",children:[f.jsx(T.Box,{sx:{padding:"0 0 16px 0"},children:f.jsx(T.Typography,{variant:"h1",sx:{fontSize:"28px",fontWeight:"600",color:"#1a1a1a",marginBottom:"8px",marginTop:"0",paddingLeft:"0"},children:"Sources"})}),f.jsx(dE,{modelPath:e,data:r,onChange:p,onSourceChange:g,existingQuery:c,initialSelectedSourceIndex:u}),f.jsx(T.IconButton,{sx:{position:"absolute",top:"90px",right:"4px",backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px",zIndex:2},onClick:()=>l(!0),children:f.jsx(ba,{sx:{fontSize:"18px",color:"#666666"}})})]}),r?.queries?.length>0&&f.jsxs(T.Stack,{spacing:2,component:"section",sx:{marginTop:"24px"},children:[f.jsx(T.Box,{sx:{padding:"0 0 16px 0"},children:f.jsx(T.Typography,{variant:"h2",sx:{fontSize:"24px",fontWeight:"600",color:"#1a1a1a",marginBottom:"0",marginTop:"8px",paddingLeft:"0"},children:"Named Queries"})}),r.queries.map(b=>f.jsx(SF,{modelPath:e,queryName:b.name,annotations:b.annotations},b.name))]}),f.jsx(B0,{open:s,onClose:()=>l(!1),modelPath:e,data:r,title:`Model: ${e.split("/").pop()}`,existingQuery:c,initialSelectedSourceIndex:u,onChange:p,onSourceChange:g})]})}const AF="README.malloynb";function IF({navigate:e}){return e||(e=t=>{window.location.href=t}),f.jsx(Ug,{children:f.jsxs(T.Grid,{container:!0,spacing:3,columns:12,children:[f.jsx(T.Grid,{size:{xs:12,md:4},children:f.jsx(Ak,{})}),f.jsx(T.Grid,{size:{xs:12,md:4},children:f.jsx(xI,{navigate:e})}),f.jsx(T.Grid,{size:{xs:12,md:4},children:f.jsx(yI,{navigate:e})}),f.jsx(T.Grid,{size:{xs:12,md:6},children:f.jsx(Bk,{})}),f.jsx(T.Grid,{size:{xs:12,md:6},children:f.jsx(Mk,{})}),f.jsx(T.Grid,{size:{xs:12,md:12},children:f.jsx(CI,{})}),f.jsx(T.Grid,{size:{xs:12,md:12},children:f.jsx(Nr,{children:f.jsxs(Pr,{children:[f.jsx(Zr,{children:"README"}),f.jsx(T.Box,{sx:{mt:1},children:f.jsx(y1,{notebookPath:AF})})]})})})]})})}new Hl(new Yt);Ye.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet";function Po(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const Ao="$$material",_F=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function DF(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=_F(t),i=Object.keys(a);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,p){const g=i.indexOf(p);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:p)-r/100}${n})`}function d(h){return i.indexOf(h)+1<i.length?c(h,i[i.indexOf(h)+1]):s(h)}function u(h){const p=i.indexOf(h);return p===0?s(i[1]):p===i.length-1?l(i[p]):c(h,i[i.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:i,values:a,up:s,down:l,between:c,only:d,not:u,unit:n,...o}}var fu={exports:{}},Xe={};/**
195
195
  * @license React
196
196
  * react-is.production.js
@@ -199,14 +199,14 @@ Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}
199
199
  *
200
200
  * This source code is licensed under the MIT license found in the
201
201
  * LICENSE file in the root directory of this source tree.
202
- */var Jm;function wF(){if(Jm)return Xe;Jm=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),i=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function g(b){if(typeof b=="object"&&b!==null){var x=b.$$typeof;switch(x){case e:switch(b=b.type,b){case n:case o:case r:case l:case c:case h:return b;default:switch(b=b&&b.$$typeof,b){case i:case s:case u:case d:return b;case a:return b;default:return x}}case t:return x}}}return Xe.ContextConsumer=a,Xe.ContextProvider=i,Xe.Element=e,Xe.ForwardRef=s,Xe.Fragment=n,Xe.Lazy=u,Xe.Memo=d,Xe.Portal=t,Xe.Profiler=o,Xe.StrictMode=r,Xe.Suspense=l,Xe.SuspenseList=c,Xe.isContextConsumer=function(b){return g(b)===a},Xe.isContextProvider=function(b){return g(b)===i},Xe.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Xe.isForwardRef=function(b){return g(b)===s},Xe.isFragment=function(b){return g(b)===n},Xe.isLazy=function(b){return g(b)===u},Xe.isMemo=function(b){return g(b)===d},Xe.isPortal=function(b){return g(b)===t},Xe.isProfiler=function(b){return g(b)===o},Xe.isStrictMode=function(b){return g(b)===r},Xe.isSuspense=function(b){return g(b)===l},Xe.isSuspenseList=function(b){return g(b)===c},Xe.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===o||b===r||b===l||b===c||typeof b=="object"&&b!==null&&(b.$$typeof===u||b.$$typeof===d||b.$$typeof===i||b.$$typeof===a||b.$$typeof===s||b.$$typeof===p||b.getModuleId!==void 0)},Xe.typeOf=g,Xe}var Zm;function NF(){return Zm||(Zm=1,fu.exports=wF()),fu.exports}var hE=NF();function cr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function pE(e){if(D.isValidElement(e)||hE.isValidElementType(e)||!cr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=pE(e[n])}),t}function Dn(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return cr(e)&&cr(t)&&Object.keys(t).forEach(o=>{D.isValidElement(t[o])||hE.isValidElementType(t[o])?r[o]=t[o]:cr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&cr(e[o])?r[o]=Dn(e[o],t[o],n):n.clone?r[o]=cr(t[o])?pE(t[o]):t[o]:r[o]=t[o]}),r}function PF(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Hh(e,t=0,n=1){return PF(e,t,n)}function RF(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Qr(e){if(e.type)return e;if(e.charAt(0)==="#")return Qr(RF(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Po(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Po(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const LF=e=>{const t=Qr(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},ii=(e,t)=>{try{return LF(e)}catch{return e}};function dc(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function fE(e){e=Qr(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(c,d=(c+n/30)%12)=>o-a*Math.max(Math.min(d-3,9-d,1),-1);let s="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),dc({type:s,values:l})}function dd(e){e=Qr(e);let t=e.type==="hsl"||e.type==="hsla"?Qr(fE(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function $F(e,t){const n=dd(e),r=dd(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function hd(e,t){return e=Qr(e),t=Hh(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,dc(e)}function _s(e,t,n){try{return hd(e,t)}catch{return e}}function Uh(e,t){if(e=Qr(e),t=Hh(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return dc(e)}function rt(e,t,n){try{return Uh(e,t)}catch{return e}}function zh(e,t){if(e=Qr(e),t=Hh(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return dc(e)}function ot(e,t,n){try{return zh(e,t)}catch{return e}}function pd(e,t=.15){return dd(e)>.5?Uh(e,t):zh(e,t)}function Ds(e,t,n){try{return pd(e,t)}catch{return e}}const Fi={black:"#000",white:"#fff"},OF={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ea={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ta={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ja={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},na={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ra={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},oa={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function mE(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Fi.white,default:Fi.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const MF=mE();function gE(){return{text:{primary:Fi.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Fi.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const eg=gE();function tg(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=zh(e.main,o):t==="dark"&&(e.dark=Uh(e.main,a)))}function FF(e="light"){return e==="dark"?{main:na[200],light:na[50],dark:na[400]}:{main:na[700],light:na[400],dark:na[800]}}function BF(e="light"){return e==="dark"?{main:ea[200],light:ea[50],dark:ea[400]}:{main:ea[500],light:ea[300],dark:ea[700]}}function jF(e="light"){return e==="dark"?{main:ta[500],light:ta[300],dark:ta[700]}:{main:ta[700],light:ta[400],dark:ta[800]}}function HF(e="light"){return e==="dark"?{main:ra[400],light:ra[300],dark:ra[700]}:{main:ra[700],light:ra[500],dark:ra[900]}}function UF(e="light"){return e==="dark"?{main:oa[400],light:oa[300],dark:oa[700]}:{main:oa[800],light:oa[500],dark:oa[900]}}function zF(e="light"){return e==="dark"?{main:Ja[400],light:Ja[300],dark:Ja[700]}:{main:"#ed6c02",light:Ja[500],dark:Ja[900]}}function Gh(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,a=e.primary||FF(t),i=e.secondary||BF(t),s=e.error||jF(t),l=e.info||HF(t),c=e.success||UF(t),d=e.warning||zF(t);function u(b){return $F(b,eg.text.primary)>=n?eg.text.primary:MF.text.primary}const h=({color:b,name:x,mainShade:E=500,lightShade:v=300,darkShade:C=700})=>{if(b={...b},!b.main&&b[E]&&(b.main=b[E]),!b.hasOwnProperty("main"))throw new Error(Po(11,x?` (${x})`:"",E));if(typeof b.main!="string")throw new Error(Po(12,x?` (${x})`:"",JSON.stringify(b.main)));return tg(b,"light",v,r),tg(b,"dark",C,r),b.contrastText||(b.contrastText=u(b.main)),b};let p;return t==="light"?p=mE():t==="dark"&&(p=gE()),Dn({common:{...Fi},mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:OF,contrastThreshold:n,getContrastText:u,augmentColor:h,tonalOffset:r,...p},o)}function xi(e,t){return t?Dn(e,t,{clone:!1}):e}function ng(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{const a=/min-width:\s*([0-9.]+)/;return+(r.match(a)?.[1]||0)-+(o.match(a)?.[1]||0)});return n.length?n.reduce((r,o)=>{const a=t[o];return delete r[o],r[o]=a,r},{...t}):t}function GF(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function qF(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}function WF(e){const t=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function n(a,i){a.up=(...s)=>t(e.breakpoints.up(...s),i),a.down=(...s)=>t(e.breakpoints.down(...s),i),a.between=(...s)=>t(e.breakpoints.between(...s),i),a.only=(...s)=>t(e.breakpoints.only(...s),i),a.not=(...s)=>{const l=t(e.breakpoints.not(...s),i);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const hc={xs:0,sm:600,md:900,lg:1200,xl:1536},rg={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${hc[e]}px)`},VF={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:hc[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function wr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||rg;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const a=r.breakpoints||rg;return Object.keys(t).reduce((i,s)=>{if(GF(a.keys,s)){const l=qF(r.containerQueries?r:VF,s);l&&(i[l]=n(t[s],s))}else if(Object.keys(a.values||hc).includes(s)){const l=a.up(s);i[l]=n(t[s],s)}else{const l=s;i[l]=t[l]}return i},{})}return n(t)}function YF(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function og(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Bt(e){if(typeof e!="string")throw new Error(Po(7));return e.charAt(0).toUpperCase()+e.slice(1)}function pc(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Il(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=pc(e,n)||r,t&&(o=t(o,r,e)),o}function Rt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],l=i.theme,c=pc(l,r)||{};return wr(i,s,u=>{let h=Il(c,o,u);return u===h&&typeof u=="string"&&(h=Il(c,o,`${t}${u==="default"?"":Bt(u)}`,u)),n===!1?h:{[n]:h}})};return a.propTypes={},a.filterProps=[t],a}function KF(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const QF={m:"margin",p:"padding"},XF={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ag={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},JF=KF(e=>{if(e.length>2)if(ag[e])e=ag[e];else return[e];const[t,n]=e.split(""),r=QF[t],o=XF[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),qh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Wh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...qh,...Wh];function os(e,t,n,r){const o=pc(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?o.startsWith("var(")&&a===0?0:o.startsWith("var(")&&a===1?o:`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a),s=o[i];return a>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof o=="function"?o:()=>{}}function Vh(e){return os(e,"spacing",8)}function as(e,t){return typeof t=="string"||t==null?t:e(t)}function ZF(e,t){return n=>e.reduce((r,o)=>(r[o]=as(t,n),r),{})}function e7(e,t,n,r){if(!t.includes(n))return null;const o=JF(n),a=ZF(o,r),i=e[n];return wr(e,i,a)}function yE(e,t){const n=Vh(e.theme);return Object.keys(e).map(r=>e7(e,t,r,n)).reduce(xi,{})}function _t(e){return yE(e,qh)}_t.propTypes={};_t.filterProps=qh;function Dt(e){return yE(e,Wh)}Dt.propTypes={};Dt.filterProps=Wh;function t7(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var n7={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function r7(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var o7=/[A-Z]|^ms/g,a7=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bE=function(t){return t.charCodeAt(1)===45},ig=function(t){return t!=null&&typeof t!="boolean"},mu=r7(function(e){return bE(e)?e:e.replace(o7,"-$&").toLowerCase()}),sg=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(a7,function(r,o,a){return Wr={name:o,styles:a,next:Wr},o})}return n7[t]!==1&&!bE(t)&&typeof n=="number"&&n!==0?n+"px":n};function _l(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Wr={name:o.name,styles:o.styles,next:Wr},o.name;var a=n;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)Wr={name:i.name,styles:i.styles,next:Wr},i=i.next;var s=a.styles+";";return s}return i7(e,t,n)}}var l=n;return l}function i7(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=_l(e,t,n[o])+";";else for(var a in n){var i=n[a];if(typeof i!="object"){var s=i;ig(s)&&(r+=mu(a)+":"+sg(a,s)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var l=0;l<i.length;l++)ig(i[l])&&(r+=mu(a)+":"+sg(a,i[l])+";");else{var c=_l(e,t,i);switch(a){case"animation":case"animationName":{r+=mu(a)+":"+c+";";break}default:r+=a+"{"+c+"}"}}}return r}var lg=/label:\s*([^\s;{]+)\s*(;|$)/g,Wr;function s7(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Wr=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,o+=_l(n,t,a);else{var i=a;o+=i[0]}for(var s=1;s<e.length;s++)if(o+=_l(n,t,e[s]),r){var l=a;o+=l[s]}lg.lastIndex=0;for(var c="",d;(d=lg.exec(o))!==null;)c+="-"+d[1];var u=t7(o)+c;return{name:u,styles:o,next:Wr}}function l7(e,t){return Sg(e,t)}function c7(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const cg=[];function Io(e){return cg[0]=e,s7(cg)}const u7=typeof window<"u"?D.useLayoutEffect:D.useEffect;function EE(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=EE(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Wt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=EE(e))&&(r&&(r+=" "),r+=t);return r}function fd(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if(a==="components"||a==="slots")r[a]={...e[a],...r[a]};else if(a==="componentsProps"||a==="slotProps"){const i=e[a],s=t[a];if(!s)r[a]=i||{};else if(!i)r[a]=s;else{r[a]={...s};for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l)){const c=l;r[a][c]=fd(i[c],s[c],n)}}}else a==="className"&&n&&t.className?r.className=Wt(e?.className,t?.className):a==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}const d7=D.createContext(void 0);function h7(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?fd(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?fd(o,r,t.components.mergeClassNameAndStyle):r}function p7({props:e,name:t}){const n=D.useContext(d7);return h7({props:e,name:t,theme:{components:n}})}let ug=0;function f7(e){const[t,n]=D.useState(e),r=e||t;return D.useEffect(()=>{t==null&&(ug+=1,n(`mui-${ug}`))},[t]),r}const m7={...D},dg=m7.useId;function g7(e){if(dg!==void 0){const t=dg();return e??t}return f7(e)}const y7={borderRadius:4};function b7(e=8,t=Vh({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function fc(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?xi(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Fn(e){return typeof e!="number"?e:`${e}px solid`}function qn(e,t){return Rt({prop:e,themeKey:"borders",transform:t})}const E7=qn("border",Fn),x7=qn("borderTop",Fn),T7=qn("borderRight",Fn),C7=qn("borderBottom",Fn),v7=qn("borderLeft",Fn),S7=qn("borderColor"),k7=qn("borderTopColor"),A7=qn("borderRightColor"),I7=qn("borderBottomColor"),_7=qn("borderLeftColor"),D7=qn("outline",Fn),w7=qn("outlineColor"),mc=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=os(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:as(t,r)});return wr(e,e.borderRadius,n)}return null};mc.propTypes={};mc.filterProps=["borderRadius"];fc(E7,x7,T7,C7,v7,S7,k7,A7,I7,_7,mc,D7,w7);const gc=e=>{if(e.gap!==void 0&&e.gap!==null){const t=os(e.theme,"spacing",8),n=r=>({gap:as(t,r)});return wr(e,e.gap,n)}return null};gc.propTypes={};gc.filterProps=["gap"];const yc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=os(e.theme,"spacing",8),n=r=>({columnGap:as(t,r)});return wr(e,e.columnGap,n)}return null};yc.propTypes={};yc.filterProps=["columnGap"];const bc=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=os(e.theme,"spacing",8),n=r=>({rowGap:as(t,r)});return wr(e,e.rowGap,n)}return null};bc.propTypes={};bc.filterProps=["rowGap"];const N7=Rt({prop:"gridColumn"}),P7=Rt({prop:"gridRow"}),R7=Rt({prop:"gridAutoFlow"}),L7=Rt({prop:"gridAutoColumns"}),$7=Rt({prop:"gridAutoRows"}),O7=Rt({prop:"gridTemplateColumns"}),M7=Rt({prop:"gridTemplateRows"}),F7=Rt({prop:"gridTemplateAreas"}),B7=Rt({prop:"gridArea"});fc(gc,yc,bc,N7,P7,R7,L7,$7,O7,M7,F7,B7);function ga(e,t){return t==="grey"?t:e}const j7=Rt({prop:"color",themeKey:"palette",transform:ga}),H7=Rt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ga}),U7=Rt({prop:"backgroundColor",themeKey:"palette",transform:ga});fc(j7,H7,U7);function An(e){return e<=1&&e!==0?`${e*100}%`:e}const z7=Rt({prop:"width",transform:An}),Yh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||hc[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:An(n)}};return wr(e,e.maxWidth,t)}return null};Yh.filterProps=["maxWidth"];const G7=Rt({prop:"minWidth",transform:An}),q7=Rt({prop:"height",transform:An}),W7=Rt({prop:"maxHeight",transform:An}),V7=Rt({prop:"minHeight",transform:An});Rt({prop:"size",cssProperty:"width",transform:An});Rt({prop:"size",cssProperty:"height",transform:An});const Y7=Rt({prop:"boxSizing"});fc(z7,Yh,G7,q7,W7,V7,Y7);const is={border:{themeKey:"borders",transform:Fn},borderTop:{themeKey:"borders",transform:Fn},borderRight:{themeKey:"borders",transform:Fn},borderBottom:{themeKey:"borders",transform:Fn},borderLeft:{themeKey:"borders",transform:Fn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Fn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:mc},color:{themeKey:"palette",transform:ga},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ga},backgroundColor:{themeKey:"palette",transform:ga},p:{style:Dt},pt:{style:Dt},pr:{style:Dt},pb:{style:Dt},pl:{style:Dt},px:{style:Dt},py:{style:Dt},padding:{style:Dt},paddingTop:{style:Dt},paddingRight:{style:Dt},paddingBottom:{style:Dt},paddingLeft:{style:Dt},paddingX:{style:Dt},paddingY:{style:Dt},paddingInline:{style:Dt},paddingInlineStart:{style:Dt},paddingInlineEnd:{style:Dt},paddingBlock:{style:Dt},paddingBlockStart:{style:Dt},paddingBlockEnd:{style:Dt},m:{style:_t},mt:{style:_t},mr:{style:_t},mb:{style:_t},ml:{style:_t},mx:{style:_t},my:{style:_t},margin:{style:_t},marginTop:{style:_t},marginRight:{style:_t},marginBottom:{style:_t},marginLeft:{style:_t},marginX:{style:_t},marginY:{style:_t},marginInline:{style:_t},marginInlineStart:{style:_t},marginInlineEnd:{style:_t},marginBlock:{style:_t},marginBlockStart:{style:_t},marginBlockEnd:{style:_t},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:gc},rowGap:{style:bc},columnGap:{style:yc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:An},maxWidth:{style:Yh},minWidth:{transform:An},height:{transform:An},maxHeight:{transform:An},minHeight:{transform:An},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function K7(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Q7(e,t){return typeof e=="function"?e(t):e}function X7(){function e(n,r,o,a){const i={[n]:r,theme:o},s=a[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:d,style:u}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=pc(o,c)||{};return u?u(i):wr(i,r,g=>{let b=Il(h,d,g);return g===b&&typeof g=="string"&&(b=Il(h,d,`${n}${g==="default"?"":Bt(g)}`,g)),l===!1?b:{[l]:b}})}function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const i=o.unstable_sxConfig??is;function s(l){let c=l;if(typeof l=="function")c=l(o);else if(typeof l!="object")return l;if(!c)return null;const d=YF(o.breakpoints),u=Object.keys(d);let h=d;return Object.keys(c).forEach(p=>{const g=Q7(c[p],o);if(g!=null)if(typeof g=="object")if(i[p])h=xi(h,e(p,g,o,i));else{const b=wr({theme:o},g,x=>({[p]:x}));K7(b,g)?h[p]=t({sx:g,theme:o,nested:!0}):h=xi(h,b)}else h=xi(h,e(p,g,o,i))}),!a&&o.modularCssLayers?{"@layer sx":ng(o,og(u,h))}:ng(o,og(u,h))}return Array.isArray(r)?r.map(s):s(r)}return t}const Ro=X7();Ro.filterProps=["sx"];function J7(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function xE(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...i}=e,s=DF(n),l=b7(o);let c=Dn({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...y7,...a}},i);return c=WF(c),c.applyStyles=J7,c=t.reduce((d,u)=>Dn(d,u),c),c.unstable_sxConfig={...is,...i?.unstable_sxConfig},c.unstable_sx=function(u){return Ro({sx:u,theme:this})},c}const hg=(e,t,n,r=[])=>{let o=e;t.forEach((a,i)=>{i===t.length-1?Array.isArray(o)?o[Number(a)]=n:o&&typeof o=="object"&&(o[a]=n):o&&typeof o=="object"&&(o[a]||(o[a]=r.includes(a)?[]:{}),o=o[a])})},Z7=(e,t,n)=>{function r(o,a=[],i=[]){Object.entries(o).forEach(([s,l])=>{(!n||n&&!n([...a,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...a,s],Array.isArray(l)?[...i,s]:i):t([...a,s],l,i))})}r(e)},e9=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function gu(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},i={};return Z7(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(s,l))){const d=`--${n?`${n}-`:""}${s.join("-")}`,u=e9(s,l);Object.assign(o,{[d]:u}),hg(a,s,`var(${d})`,c),hg(i,s,`var(${d}, ${u})`,c)}},s=>s[0]==="vars"),{css:o,vars:a,varsWithDefaults:i}}function t9(e,t={}){const{getSelector:n=x,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:a={},components:i,defaultColorScheme:s="light",...l}=e,{vars:c,css:d,varsWithDefaults:u}=gu(l,t);let h=u;const p={},{[s]:g,...b}=a;if(Object.entries(b||{}).forEach(([C,I])=>{const{vars:N,css:S,varsWithDefaults:M}=gu(I,t);h=Dn(h,M),p[C]={css:S,vars:N}}),g){const{css:C,vars:I,varsWithDefaults:N}=gu(g,t);h=Dn(h,N),p[s]={css:C,vars:I}}function x(C,I){let N=o;if(o==="class"&&(N=".%s"),o==="data"&&(N="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(N=`[${o}="%s"]`),C){if(N==="media")return e.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${a[C]?.palette?.mode||C})`]:{":root":I}};if(N)return e.defaultColorScheme===C?`:root, ${N.replace("%s",String(C))}`:N.replace("%s",String(C))}return":root"}return{vars:h,generateThemeVars:()=>{let C={...c};return Object.entries(p).forEach(([,{vars:I}])=>{C=Dn(C,I)}),C},generateStyleSheets:()=>{const C=[],I=e.defaultColorScheme||"light";function N(q,B){Object.keys(B).length&&C.push(typeof q=="string"?{[q]:{...B}}:q)}N(n(void 0,{...d}),d);const{[I]:S,...M}=p;if(S){const{css:q}=S,B=a[I]?.palette?.mode,y=!r&&B?{colorScheme:B,...q}:{...q};N(n(I,{...y}),y)}return Object.entries(M).forEach(([q,{css:B}])=>{const y=a[q]?.palette?.mode,R=!r&&y?{colorScheme:y,...B}:{...B};N(n(q,{...R}),R)}),C}}}function n9(e){const t={};return Object.entries(e).forEach(r=>{const[o,a]=r;typeof a=="object"&&(t[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function r9(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const o9=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??is;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function a9(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=o9(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return cr(s)?{...r,...s}:r}:a={...r,...t},{...o,sx:a}}const pg=e=>e,i9=()=>{let e=pg;return{configure(t){e=t},generate(t){return e(t)},reset(){e=pg}}},s9=i9(),l9={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Uo(e,t,n="Mui"){const r=l9[t];return r?`${n}-${r}`:`${s9.generate(e)}-${t}`}function c9(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function u9(e){return Math.round(e*1e5)/1e5}const fg={textTransform:"uppercase"},mg='"Roboto", "Helvetica", "Arial", sans-serif';function TE(e,t){const{fontFamily:n=mg,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:d,...u}=typeof t=="function"?t(e):t,h=r/14,p=d||(x=>`${x/l*h}rem`),g=(x,E,v,C,I)=>({fontFamily:n,fontWeight:x,fontSize:p(E),lineHeight:v,...n===mg?{letterSpacing:`${u9(C/E)}em`}:{},...I,...c}),b={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(i,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(i,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(i,14,1.75,.4,fg),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,fg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Dn({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:s,...b},u,{clone:!1})}const d9=.2,h9=.14,p9=.12;function xt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${d9})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${h9})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${p9})`].join(",")}const f9=["none",xt(0,2,1,-1,0,1,1,0,0,1,3,0),xt(0,3,1,-2,0,2,2,0,0,1,5,0),xt(0,3,3,-2,0,3,4,0,0,1,8,0),xt(0,2,4,-1,0,4,5,0,0,1,10,0),xt(0,3,5,-1,0,5,8,0,0,1,14,0),xt(0,3,5,-1,0,6,10,0,0,1,18,0),xt(0,4,5,-2,0,7,10,1,0,2,16,1),xt(0,5,5,-3,0,8,10,1,0,3,14,2),xt(0,5,6,-3,0,9,12,1,0,3,16,2),xt(0,6,6,-3,0,10,14,1,0,4,18,3),xt(0,6,7,-4,0,11,15,1,0,4,20,3),xt(0,7,8,-4,0,12,17,2,0,5,22,4),xt(0,7,8,-4,0,13,19,2,0,5,24,4),xt(0,7,9,-4,0,14,21,2,0,5,26,4),xt(0,8,9,-5,0,15,22,2,0,6,28,5),xt(0,8,10,-5,0,16,24,2,0,6,30,5),xt(0,8,11,-5,0,17,26,2,0,6,32,5),xt(0,9,11,-5,0,18,28,2,0,7,34,6),xt(0,9,12,-6,0,19,29,2,0,7,36,6),xt(0,10,13,-6,0,20,31,3,0,8,38,7),xt(0,10,13,-6,0,21,33,3,0,8,40,7),xt(0,10,14,-6,0,22,35,3,0,8,42,7),xt(0,11,14,-7,0,23,36,3,0,9,44,8),xt(0,11,15,-7,0,24,38,3,0,9,46,8)],m9={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},g9={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function gg(e){return`${Math.round(e)}ms`}function y9(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function b9(e){const t={...m9,...e.easing},n={...g9,...e.duration};return{getAutoHeightDuration:y9,create:(o=["all"],a={})=>{const{duration:i=n.standard,easing:s=t.easeInOut,delay:l=0,...c}=a;return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof i=="string"?i:gg(i)} ${s} ${typeof l=="string"?l:gg(l)}`).join(",")},...e,easing:t,duration:n}}const E9={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function x9(e){return cr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function CE(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let a=0;a<o.length;a++){const[i,s]=o[a];!x9(s)||i.startsWith("unstable_")?delete r[i]:cr(s)&&(r[i]={...s},n(r[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
202
+ */var Jm;function wF(){if(Jm)return Xe;Jm=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),i=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function g(b){if(typeof b=="object"&&b!==null){var x=b.$$typeof;switch(x){case e:switch(b=b.type,b){case n:case o:case r:case l:case c:case h:return b;default:switch(b=b&&b.$$typeof,b){case i:case s:case u:case d:return b;case a:return b;default:return x}}case t:return x}}}return Xe.ContextConsumer=a,Xe.ContextProvider=i,Xe.Element=e,Xe.ForwardRef=s,Xe.Fragment=n,Xe.Lazy=u,Xe.Memo=d,Xe.Portal=t,Xe.Profiler=o,Xe.StrictMode=r,Xe.Suspense=l,Xe.SuspenseList=c,Xe.isContextConsumer=function(b){return g(b)===a},Xe.isContextProvider=function(b){return g(b)===i},Xe.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Xe.isForwardRef=function(b){return g(b)===s},Xe.isFragment=function(b){return g(b)===n},Xe.isLazy=function(b){return g(b)===u},Xe.isMemo=function(b){return g(b)===d},Xe.isPortal=function(b){return g(b)===t},Xe.isProfiler=function(b){return g(b)===o},Xe.isStrictMode=function(b){return g(b)===r},Xe.isSuspense=function(b){return g(b)===l},Xe.isSuspenseList=function(b){return g(b)===c},Xe.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===o||b===r||b===l||b===c||typeof b=="object"&&b!==null&&(b.$$typeof===u||b.$$typeof===d||b.$$typeof===i||b.$$typeof===a||b.$$typeof===s||b.$$typeof===p||b.getModuleId!==void 0)},Xe.typeOf=g,Xe}var Zm;function NF(){return Zm||(Zm=1,fu.exports=wF()),fu.exports}var hE=NF();function cr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function pE(e){if(D.isValidElement(e)||hE.isValidElementType(e)||!cr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=pE(e[n])}),t}function Dn(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return cr(e)&&cr(t)&&Object.keys(t).forEach(o=>{D.isValidElement(t[o])||hE.isValidElementType(t[o])?r[o]=t[o]:cr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&cr(e[o])?r[o]=Dn(e[o],t[o],n):n.clone?r[o]=cr(t[o])?pE(t[o]):t[o]:r[o]=t[o]}),r}function PF(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Hh(e,t=0,n=1){return PF(e,t,n)}function RF(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Qr(e){if(e.type)return e;if(e.charAt(0)==="#")return Qr(RF(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Po(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Po(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const LF=e=>{const t=Qr(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},ii=(e,t)=>{try{return LF(e)}catch{return e}};function dc(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function fE(e){e=Qr(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(c,d=(c+n/30)%12)=>o-a*Math.max(Math.min(d-3,9-d,1),-1);let s="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),dc({type:s,values:l})}function dd(e){e=Qr(e);let t=e.type==="hsl"||e.type==="hsla"?Qr(fE(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function $F(e,t){const n=dd(e),r=dd(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function hd(e,t){return e=Qr(e),t=Hh(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,dc(e)}function _s(e,t,n){try{return hd(e,t)}catch{return e}}function Uh(e,t){if(e=Qr(e),t=Hh(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return dc(e)}function rt(e,t,n){try{return Uh(e,t)}catch{return e}}function zh(e,t){if(e=Qr(e),t=Hh(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return dc(e)}function ot(e,t,n){try{return zh(e,t)}catch{return e}}function pd(e,t=.15){return dd(e)>.5?Uh(e,t):zh(e,t)}function Ds(e,t,n){try{return pd(e,t)}catch{return e}}const Fi={black:"#000",white:"#fff"},OF={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ea={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ta={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ja={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},na={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ra={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},oa={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function mE(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Fi.white,default:Fi.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const MF=mE();function gE(){return{text:{primary:Fi.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Fi.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const eg=gE();function tg(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=zh(e.main,o):t==="dark"&&(e.dark=Uh(e.main,a)))}function FF(e="light"){return e==="dark"?{main:na[200],light:na[50],dark:na[400]}:{main:na[700],light:na[400],dark:na[800]}}function BF(e="light"){return e==="dark"?{main:ea[200],light:ea[50],dark:ea[400]}:{main:ea[500],light:ea[300],dark:ea[700]}}function jF(e="light"){return e==="dark"?{main:ta[500],light:ta[300],dark:ta[700]}:{main:ta[700],light:ta[400],dark:ta[800]}}function HF(e="light"){return e==="dark"?{main:ra[400],light:ra[300],dark:ra[700]}:{main:ra[700],light:ra[500],dark:ra[900]}}function UF(e="light"){return e==="dark"?{main:oa[400],light:oa[300],dark:oa[700]}:{main:oa[800],light:oa[500],dark:oa[900]}}function zF(e="light"){return e==="dark"?{main:Ja[400],light:Ja[300],dark:Ja[700]}:{main:"#ed6c02",light:Ja[500],dark:Ja[900]}}function Gh(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,a=e.primary||FF(t),i=e.secondary||BF(t),s=e.error||jF(t),l=e.info||HF(t),c=e.success||UF(t),d=e.warning||zF(t);function u(b){return $F(b,eg.text.primary)>=n?eg.text.primary:MF.text.primary}const h=({color:b,name:x,mainShade:E=500,lightShade:v=300,darkShade:C=700})=>{if(b={...b},!b.main&&b[E]&&(b.main=b[E]),!b.hasOwnProperty("main"))throw new Error(Po(11,x?` (${x})`:"",E));if(typeof b.main!="string")throw new Error(Po(12,x?` (${x})`:"",JSON.stringify(b.main)));return tg(b,"light",v,r),tg(b,"dark",C,r),b.contrastText||(b.contrastText=u(b.main)),b};let p;return t==="light"?p=mE():t==="dark"&&(p=gE()),Dn({common:{...Fi},mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:OF,contrastThreshold:n,getContrastText:u,augmentColor:h,tonalOffset:r,...p},o)}function xi(e,t){return t?Dn(e,t,{clone:!1}):e}function ng(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{const a=/min-width:\s*([0-9.]+)/;return+(r.match(a)?.[1]||0)-+(o.match(a)?.[1]||0)});return n.length?n.reduce((r,o)=>{const a=t[o];return delete r[o],r[o]=a,r},{...t}):t}function GF(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function qF(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}function WF(e){const t=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function n(a,i){a.up=(...s)=>t(e.breakpoints.up(...s),i),a.down=(...s)=>t(e.breakpoints.down(...s),i),a.between=(...s)=>t(e.breakpoints.between(...s),i),a.only=(...s)=>t(e.breakpoints.only(...s),i),a.not=(...s)=>{const l=t(e.breakpoints.not(...s),i);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const hc={xs:0,sm:600,md:900,lg:1200,xl:1536},rg={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${hc[e]}px)`},VF={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:hc[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function wr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||rg;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const a=r.breakpoints||rg;return Object.keys(t).reduce((i,s)=>{if(GF(a.keys,s)){const l=qF(r.containerQueries?r:VF,s);l&&(i[l]=n(t[s],s))}else if(Object.keys(a.values||hc).includes(s)){const l=a.up(s);i[l]=n(t[s],s)}else{const l=s;i[l]=t[l]}return i},{})}return n(t)}function YF(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function og(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Bt(e){if(typeof e!="string")throw new Error(Po(7));return e.charAt(0).toUpperCase()+e.slice(1)}function pc(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Il(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=pc(e,n)||r,t&&(o=t(o,r,e)),o}function Rt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],l=i.theme,c=pc(l,r)||{};return wr(i,s,u=>{let h=Il(c,o,u);return u===h&&typeof u=="string"&&(h=Il(c,o,`${t}${u==="default"?"":Bt(u)}`,u)),n===!1?h:{[n]:h}})};return a.propTypes={},a.filterProps=[t],a}function KF(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const QF={m:"margin",p:"padding"},XF={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ag={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},JF=KF(e=>{if(e.length>2)if(ag[e])e=ag[e];else return[e];const[t,n]=e.split(""),r=QF[t],o=XF[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),qh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Wh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...qh,...Wh];function os(e,t,n,r){const o=pc(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?o.startsWith("var(")&&a===0?0:o.startsWith("var(")&&a===1?o:`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a),s=o[i];return a>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof o=="function"?o:()=>{}}function Vh(e){return os(e,"spacing",8)}function as(e,t){return typeof t=="string"||t==null?t:e(t)}function ZF(e,t){return n=>e.reduce((r,o)=>(r[o]=as(t,n),r),{})}function e7(e,t,n,r){if(!t.includes(n))return null;const o=JF(n),a=ZF(o,r),i=e[n];return wr(e,i,a)}function yE(e,t){const n=Vh(e.theme);return Object.keys(e).map(r=>e7(e,t,r,n)).reduce(xi,{})}function _t(e){return yE(e,qh)}_t.propTypes={};_t.filterProps=qh;function Dt(e){return yE(e,Wh)}Dt.propTypes={};Dt.filterProps=Wh;function t7(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var n7={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function r7(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var o7=/[A-Z]|^ms/g,a7=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bE=function(t){return t.charCodeAt(1)===45},ig=function(t){return t!=null&&typeof t!="boolean"},mu=r7(function(e){return bE(e)?e:e.replace(o7,"-$&").toLowerCase()}),sg=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(a7,function(r,o,a){return Wr={name:o,styles:a,next:Wr},o})}return n7[t]!==1&&!bE(t)&&typeof n=="number"&&n!==0?n+"px":n};function _l(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Wr={name:o.name,styles:o.styles,next:Wr},o.name;var a=n;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)Wr={name:i.name,styles:i.styles,next:Wr},i=i.next;var s=a.styles+";";return s}return i7(e,t,n)}}var l=n;return l}function i7(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=_l(e,t,n[o])+";";else for(var a in n){var i=n[a];if(typeof i!="object"){var s=i;ig(s)&&(r+=mu(a)+":"+sg(a,s)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var l=0;l<i.length;l++)ig(i[l])&&(r+=mu(a)+":"+sg(a,i[l])+";");else{var c=_l(e,t,i);switch(a){case"animation":case"animationName":{r+=mu(a)+":"+c+";";break}default:r+=a+"{"+c+"}"}}}return r}var lg=/label:\s*([^\s;{]+)\s*(;|$)/g,Wr;function s7(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Wr=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,o+=_l(n,t,a);else{var i=a;o+=i[0]}for(var s=1;s<e.length;s++)if(o+=_l(n,t,e[s]),r){var l=a;o+=l[s]}lg.lastIndex=0;for(var c="",d;(d=lg.exec(o))!==null;)c+="-"+d[1];var u=t7(o)+c;return{name:u,styles:o,next:Wr}}function l7(e,t){return Sg(e,t)}function c7(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const cg=[];function Io(e){return cg[0]=e,s7(cg)}const u7=typeof window<"u"?D.useLayoutEffect:D.useEffect;function EE(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=EE(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Wt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=EE(e))&&(r&&(r+=" "),r+=t);return r}function fd(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if(a==="components"||a==="slots")r[a]={...e[a],...r[a]};else if(a==="componentsProps"||a==="slotProps"){const i=e[a],s=t[a];if(!s)r[a]=i||{};else if(!i)r[a]=s;else{r[a]={...s};for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l)){const c=l;r[a][c]=fd(i[c],s[c],n)}}}else a==="className"&&n&&t.className?r.className=Wt(e?.className,t?.className):a==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}const d7=D.createContext(void 0);function h7(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?fd(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?fd(o,r,t.components.mergeClassNameAndStyle):r}function p7({props:e,name:t}){const n=D.useContext(d7);return h7({props:e,name:t,theme:{components:n}})}let ug=0;function f7(e){const[t,n]=D.useState(e),r=e||t;return D.useEffect(()=>{t==null&&(ug+=1,n(`mui-${ug}`))},[t]),r}const m7={...D},dg=m7.useId;function g7(e){if(dg!==void 0){const t=dg();return e??t}return f7(e)}const y7={borderRadius:4};function b7(e=8,t=Vh({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function fc(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?xi(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Fn(e){return typeof e!="number"?e:`${e}px solid`}function qn(e,t){return Rt({prop:e,themeKey:"borders",transform:t})}const E7=qn("border",Fn),x7=qn("borderTop",Fn),T7=qn("borderRight",Fn),C7=qn("borderBottom",Fn),v7=qn("borderLeft",Fn),S7=qn("borderColor"),k7=qn("borderTopColor"),A7=qn("borderRightColor"),I7=qn("borderBottomColor"),_7=qn("borderLeftColor"),D7=qn("outline",Fn),w7=qn("outlineColor"),mc=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=os(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:as(t,r)});return wr(e,e.borderRadius,n)}return null};mc.propTypes={};mc.filterProps=["borderRadius"];fc(E7,x7,T7,C7,v7,S7,k7,A7,I7,_7,mc,D7,w7);const gc=e=>{if(e.gap!==void 0&&e.gap!==null){const t=os(e.theme,"spacing",8),n=r=>({gap:as(t,r)});return wr(e,e.gap,n)}return null};gc.propTypes={};gc.filterProps=["gap"];const yc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=os(e.theme,"spacing",8),n=r=>({columnGap:as(t,r)});return wr(e,e.columnGap,n)}return null};yc.propTypes={};yc.filterProps=["columnGap"];const bc=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=os(e.theme,"spacing",8),n=r=>({rowGap:as(t,r)});return wr(e,e.rowGap,n)}return null};bc.propTypes={};bc.filterProps=["rowGap"];const N7=Rt({prop:"gridColumn"}),P7=Rt({prop:"gridRow"}),R7=Rt({prop:"gridAutoFlow"}),L7=Rt({prop:"gridAutoColumns"}),$7=Rt({prop:"gridAutoRows"}),O7=Rt({prop:"gridTemplateColumns"}),M7=Rt({prop:"gridTemplateRows"}),F7=Rt({prop:"gridTemplateAreas"}),B7=Rt({prop:"gridArea"});fc(gc,yc,bc,N7,P7,R7,L7,$7,O7,M7,F7,B7);function ga(e,t){return t==="grey"?t:e}const j7=Rt({prop:"color",themeKey:"palette",transform:ga}),H7=Rt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ga}),U7=Rt({prop:"backgroundColor",themeKey:"palette",transform:ga});fc(j7,H7,U7);function An(e){return e<=1&&e!==0?`${e*100}%`:e}const z7=Rt({prop:"width",transform:An}),Yh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||hc[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:An(n)}};return wr(e,e.maxWidth,t)}return null};Yh.filterProps=["maxWidth"];const G7=Rt({prop:"minWidth",transform:An}),q7=Rt({prop:"height",transform:An}),W7=Rt({prop:"maxHeight",transform:An}),V7=Rt({prop:"minHeight",transform:An});Rt({prop:"size",cssProperty:"width",transform:An});Rt({prop:"size",cssProperty:"height",transform:An});const Y7=Rt({prop:"boxSizing"});fc(z7,Yh,G7,q7,W7,V7,Y7);const is={border:{themeKey:"borders",transform:Fn},borderTop:{themeKey:"borders",transform:Fn},borderRight:{themeKey:"borders",transform:Fn},borderBottom:{themeKey:"borders",transform:Fn},borderLeft:{themeKey:"borders",transform:Fn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Fn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:mc},color:{themeKey:"palette",transform:ga},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ga},backgroundColor:{themeKey:"palette",transform:ga},p:{style:Dt},pt:{style:Dt},pr:{style:Dt},pb:{style:Dt},pl:{style:Dt},px:{style:Dt},py:{style:Dt},padding:{style:Dt},paddingTop:{style:Dt},paddingRight:{style:Dt},paddingBottom:{style:Dt},paddingLeft:{style:Dt},paddingX:{style:Dt},paddingY:{style:Dt},paddingInline:{style:Dt},paddingInlineStart:{style:Dt},paddingInlineEnd:{style:Dt},paddingBlock:{style:Dt},paddingBlockStart:{style:Dt},paddingBlockEnd:{style:Dt},m:{style:_t},mt:{style:_t},mr:{style:_t},mb:{style:_t},ml:{style:_t},mx:{style:_t},my:{style:_t},margin:{style:_t},marginTop:{style:_t},marginRight:{style:_t},marginBottom:{style:_t},marginLeft:{style:_t},marginX:{style:_t},marginY:{style:_t},marginInline:{style:_t},marginInlineStart:{style:_t},marginInlineEnd:{style:_t},marginBlock:{style:_t},marginBlockStart:{style:_t},marginBlockEnd:{style:_t},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:gc},rowGap:{style:bc},columnGap:{style:yc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:An},maxWidth:{style:Yh},minWidth:{transform:An},height:{transform:An},maxHeight:{transform:An},minHeight:{transform:An},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function K7(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Q7(e,t){return typeof e=="function"?e(t):e}function X7(){function e(n,r,o,a){const i={[n]:r,theme:o},s=a[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:d,style:u}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=pc(o,c)||{};return u?u(i):wr(i,r,g=>{let b=Il(h,d,g);return g===b&&typeof g=="string"&&(b=Il(h,d,`${n}${g==="default"?"":Bt(g)}`,g)),l===!1?b:{[l]:b}})}function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const i=o.unstable_sxConfig??is;function s(l){let c=l;if(typeof l=="function")c=l(o);else if(typeof l!="object")return l;if(!c)return null;const d=YF(o.breakpoints),u=Object.keys(d);let h=d;return Object.keys(c).forEach(p=>{const g=Q7(c[p],o);if(g!=null)if(typeof g=="object")if(i[p])h=xi(h,e(p,g,o,i));else{const b=wr({theme:o},g,x=>({[p]:x}));K7(b,g)?h[p]=t({sx:g,theme:o,nested:!0}):h=xi(h,b)}else h=xi(h,e(p,g,o,i))}),!a&&o.modularCssLayers?{"@layer sx":ng(o,og(u,h))}:ng(o,og(u,h))}return Array.isArray(r)?r.map(s):s(r)}return t}const Ro=X7();Ro.filterProps=["sx"];function J7(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function xE(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...i}=e,s=DF(n),l=b7(o);let c=Dn({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...y7,...a}},i);return c=WF(c),c.applyStyles=J7,c=t.reduce((d,u)=>Dn(d,u),c),c.unstable_sxConfig={...is,...i?.unstable_sxConfig},c.unstable_sx=function(u){return Ro({sx:u,theme:this})},c}const hg=(e,t,n,r=[])=>{let o=e;t.forEach((a,i)=>{i===t.length-1?Array.isArray(o)?o[Number(a)]=n:o&&typeof o=="object"&&(o[a]=n):o&&typeof o=="object"&&(o[a]||(o[a]=r.includes(a)?[]:{}),o=o[a])})},Z7=(e,t,n)=>{function r(o,a=[],i=[]){Object.entries(o).forEach(([s,l])=>{(!n||n&&!n([...a,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...a,s],Array.isArray(l)?[...i,s]:i):t([...a,s],l,i))})}r(e)},e9=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function gu(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},i={};return Z7(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(s,l))){const d=`--${n?`${n}-`:""}${s.join("-")}`,u=e9(s,l);Object.assign(o,{[d]:u}),hg(a,s,`var(${d})`,c),hg(i,s,`var(${d}, ${u})`,c)}},s=>s[0]==="vars"),{css:o,vars:a,varsWithDefaults:i}}function t9(e,t={}){const{getSelector:n=x,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:a={},components:i,defaultColorScheme:s="light",...l}=e,{vars:c,css:d,varsWithDefaults:u}=gu(l,t);let h=u;const p={},{[s]:g,...b}=a;if(Object.entries(b||{}).forEach(([C,I])=>{const{vars:w,css:S,varsWithDefaults:M}=gu(I,t);h=Dn(h,M),p[C]={css:S,vars:w}}),g){const{css:C,vars:I,varsWithDefaults:w}=gu(g,t);h=Dn(h,w),p[s]={css:C,vars:I}}function x(C,I){let w=o;if(o==="class"&&(w=".%s"),o==="data"&&(w="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(w=`[${o}="%s"]`),C){if(w==="media")return e.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${a[C]?.palette?.mode||C})`]:{":root":I}};if(w)return e.defaultColorScheme===C?`:root, ${w.replace("%s",String(C))}`:w.replace("%s",String(C))}return":root"}return{vars:h,generateThemeVars:()=>{let C={...c};return Object.entries(p).forEach(([,{vars:I}])=>{C=Dn(C,I)}),C},generateStyleSheets:()=>{const C=[],I=e.defaultColorScheme||"light";function w(q,B){Object.keys(B).length&&C.push(typeof q=="string"?{[q]:{...B}}:q)}w(n(void 0,{...d}),d);const{[I]:S,...M}=p;if(S){const{css:q}=S,B=a[I]?.palette?.mode,y=!r&&B?{colorScheme:B,...q}:{...q};w(n(I,{...y}),y)}return Object.entries(M).forEach(([q,{css:B}])=>{const y=a[q]?.palette?.mode,R=!r&&y?{colorScheme:y,...B}:{...B};w(n(q,{...R}),R)}),C}}}function n9(e){const t={};return Object.entries(e).forEach(r=>{const[o,a]=r;typeof a=="object"&&(t[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function r9(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const o9=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??is;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function a9(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=o9(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return cr(s)?{...r,...s}:r}:a={...r,...t},{...o,sx:a}}const pg=e=>e,i9=()=>{let e=pg;return{configure(t){e=t},generate(t){return e(t)},reset(){e=pg}}},s9=i9(),l9={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Uo(e,t,n="Mui"){const r=l9[t];return r?`${n}-${r}`:`${s9.generate(e)}-${t}`}function c9(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function u9(e){return Math.round(e*1e5)/1e5}const fg={textTransform:"uppercase"},mg='"Roboto", "Helvetica", "Arial", sans-serif';function TE(e,t){const{fontFamily:n=mg,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:d,...u}=typeof t=="function"?t(e):t,h=r/14,p=d||(x=>`${x/l*h}rem`),g=(x,E,v,C,I)=>({fontFamily:n,fontWeight:x,fontSize:p(E),lineHeight:v,...n===mg?{letterSpacing:`${u9(C/E)}em`}:{},...I,...c}),b={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(i,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(i,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(i,14,1.75,.4,fg),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,fg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Dn({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:s,...b},u,{clone:!1})}const d9=.2,h9=.14,p9=.12;function xt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${d9})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${h9})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${p9})`].join(",")}const f9=["none",xt(0,2,1,-1,0,1,1,0,0,1,3,0),xt(0,3,1,-2,0,2,2,0,0,1,5,0),xt(0,3,3,-2,0,3,4,0,0,1,8,0),xt(0,2,4,-1,0,4,5,0,0,1,10,0),xt(0,3,5,-1,0,5,8,0,0,1,14,0),xt(0,3,5,-1,0,6,10,0,0,1,18,0),xt(0,4,5,-2,0,7,10,1,0,2,16,1),xt(0,5,5,-3,0,8,10,1,0,3,14,2),xt(0,5,6,-3,0,9,12,1,0,3,16,2),xt(0,6,6,-3,0,10,14,1,0,4,18,3),xt(0,6,7,-4,0,11,15,1,0,4,20,3),xt(0,7,8,-4,0,12,17,2,0,5,22,4),xt(0,7,8,-4,0,13,19,2,0,5,24,4),xt(0,7,9,-4,0,14,21,2,0,5,26,4),xt(0,8,9,-5,0,15,22,2,0,6,28,5),xt(0,8,10,-5,0,16,24,2,0,6,30,5),xt(0,8,11,-5,0,17,26,2,0,6,32,5),xt(0,9,11,-5,0,18,28,2,0,7,34,6),xt(0,9,12,-6,0,19,29,2,0,7,36,6),xt(0,10,13,-6,0,20,31,3,0,8,38,7),xt(0,10,13,-6,0,21,33,3,0,8,40,7),xt(0,10,14,-6,0,22,35,3,0,8,42,7),xt(0,11,14,-7,0,23,36,3,0,9,44,8),xt(0,11,15,-7,0,24,38,3,0,9,46,8)],m9={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},g9={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function gg(e){return`${Math.round(e)}ms`}function y9(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function b9(e){const t={...m9,...e.easing},n={...g9,...e.duration};return{getAutoHeightDuration:y9,create:(o=["all"],a={})=>{const{duration:i=n.standard,easing:s=t.easeInOut,delay:l=0,...c}=a;return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof i=="string"?i:gg(i)} ${s} ${typeof l=="string"?l:gg(l)}`).join(",")},...e,easing:t,duration:n}}const E9={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function x9(e){return cr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function CE(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let a=0;a<o.length;a++){const[i,s]=o[a];!x9(s)||i.startsWith("unstable_")?delete r[i]:cr(s)&&(r[i]={...s},n(r[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
203
203
 
204
204
  const theme = ${JSON.stringify(t,null,2)};
205
205
 
206
206
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
207
207
  theme.transitions = createTransitions(theme.transitions || {});
208
208
 
209
- export default theme;`}function md(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:i={},typography:s={},shape:l,...c}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Po(20));const d=Gh(a),u=xE(e);let h=Dn(u,{mixins:c9(u.breakpoints,r),palette:d,shadows:f9.slice(),typography:TE(d,s),transitions:b9(i),zIndex:{...E9}});return h=Dn(h,c),h=t.reduce((p,g)=>Dn(p,g),h),h.unstable_sxConfig={...is,...c?.unstable_sxConfig},h.unstable_sx=function(g){return Ro({sx:g,theme:this})},h.toRuntimeSource=CE,h}function T9(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const C9=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=T9(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function vE(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function SE(e){return e==="dark"?C9:[]}function v9(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,a=Gh(t);return{palette:a,opacity:{...vE(a.mode),...n},overlays:r||SE(a.mode),...o}}function S9(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const k9=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],A9=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return k9(e.cssVarPrefix).forEach(s=>{i[s]=n[s],delete n[s]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace("%s",t)]:i,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!=="media")return`${r}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}return r};function I9(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Q(e,t,n){!e[t]&&n&&(e[t]=n)}function si(e){return typeof e!="string"||!e.startsWith("hsl")?e:fE(e)}function Cr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ii(si(e[t])))}function _9(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const rr=e=>{try{return e()}catch{}},D9=(e="mui")=>qe.unstable_createGetCssVar(e);function yu(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=v9({...t,palette:{mode:o,...t?.palette}});return}const{palette:a,...i}=md({...n,palette:{mode:o,...t?.palette}});return e[r]={...t,palette:a,opacity:{...vE(o),...t?.opacity},overlays:t?.overlays||SE(o)},i}function w9(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:i=S9,colorSchemeSelector:s=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...c}=e,d=Object.keys(n)[0],u=r||(n.light&&d!=="light"?"light":d),h=D9(a),{[u]:p,light:g,dark:b,...x}=n,E={...x};let v=p;if((u==="dark"&&!("dark"in n)||u==="light"&&!("light"in n))&&(v=!0),!v)throw new Error(Po(21,u));const C=yu(E,v,c,u);g&&!E.light&&yu(E,g,void 0,"light"),b&&!E.dark&&yu(E,b,void 0,"dark");let I={defaultColorScheme:u,...C,cssVarPrefix:a,colorSchemeSelector:s,rootSelector:l,getCssVar:h,colorSchemes:E,font:{...n9(C.typography),...C.font},spacing:_9(c.spacing)};Object.keys(I.colorSchemes).forEach(B=>{const y=I.colorSchemes[B].palette,R=F=>{const $=F.split("-"),U=$[1],Y=$[2];return h(F,y[U][Y])};if(y.mode==="light"&&(Q(y.common,"background","#fff"),Q(y.common,"onBackground","#000")),y.mode==="dark"&&(Q(y.common,"background","#000"),Q(y.common,"onBackground","#fff")),I9(y,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),y.mode==="light"){Q(y.Alert,"errorColor",rt(y.error.light,.6)),Q(y.Alert,"infoColor",rt(y.info.light,.6)),Q(y.Alert,"successColor",rt(y.success.light,.6)),Q(y.Alert,"warningColor",rt(y.warning.light,.6)),Q(y.Alert,"errorFilledBg",R("palette-error-main")),Q(y.Alert,"infoFilledBg",R("palette-info-main")),Q(y.Alert,"successFilledBg",R("palette-success-main")),Q(y.Alert,"warningFilledBg",R("palette-warning-main")),Q(y.Alert,"errorFilledColor",rr(()=>y.getContrastText(y.error.main))),Q(y.Alert,"infoFilledColor",rr(()=>y.getContrastText(y.info.main))),Q(y.Alert,"successFilledColor",rr(()=>y.getContrastText(y.success.main))),Q(y.Alert,"warningFilledColor",rr(()=>y.getContrastText(y.warning.main))),Q(y.Alert,"errorStandardBg",ot(y.error.light,.9)),Q(y.Alert,"infoStandardBg",ot(y.info.light,.9)),Q(y.Alert,"successStandardBg",ot(y.success.light,.9)),Q(y.Alert,"warningStandardBg",ot(y.warning.light,.9)),Q(y.Alert,"errorIconColor",R("palette-error-main")),Q(y.Alert,"infoIconColor",R("palette-info-main")),Q(y.Alert,"successIconColor",R("palette-success-main")),Q(y.Alert,"warningIconColor",R("palette-warning-main")),Q(y.AppBar,"defaultBg",R("palette-grey-100")),Q(y.Avatar,"defaultBg",R("palette-grey-400")),Q(y.Button,"inheritContainedBg",R("palette-grey-300")),Q(y.Button,"inheritContainedHoverBg",R("palette-grey-A100")),Q(y.Chip,"defaultBorder",R("palette-grey-400")),Q(y.Chip,"defaultAvatarColor",R("palette-grey-700")),Q(y.Chip,"defaultIconColor",R("palette-grey-700")),Q(y.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Q(y.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Q(y.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Q(y.LinearProgress,"primaryBg",ot(y.primary.main,.62)),Q(y.LinearProgress,"secondaryBg",ot(y.secondary.main,.62)),Q(y.LinearProgress,"errorBg",ot(y.error.main,.62)),Q(y.LinearProgress,"infoBg",ot(y.info.main,.62)),Q(y.LinearProgress,"successBg",ot(y.success.main,.62)),Q(y.LinearProgress,"warningBg",ot(y.warning.main,.62)),Q(y.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.11)`),Q(y.Slider,"primaryTrack",ot(y.primary.main,.62)),Q(y.Slider,"secondaryTrack",ot(y.secondary.main,.62)),Q(y.Slider,"errorTrack",ot(y.error.main,.62)),Q(y.Slider,"infoTrack",ot(y.info.main,.62)),Q(y.Slider,"successTrack",ot(y.success.main,.62)),Q(y.Slider,"warningTrack",ot(y.warning.main,.62));const F=Ds(y.background.default,.8);Q(y.SnackbarContent,"bg",F),Q(y.SnackbarContent,"color",rr(()=>y.getContrastText(F))),Q(y.SpeedDialAction,"fabHoverBg",Ds(y.background.paper,.15)),Q(y.StepConnector,"border",R("palette-grey-400")),Q(y.StepContent,"border",R("palette-grey-400")),Q(y.Switch,"defaultColor",R("palette-common-white")),Q(y.Switch,"defaultDisabledColor",R("palette-grey-100")),Q(y.Switch,"primaryDisabledColor",ot(y.primary.main,.62)),Q(y.Switch,"secondaryDisabledColor",ot(y.secondary.main,.62)),Q(y.Switch,"errorDisabledColor",ot(y.error.main,.62)),Q(y.Switch,"infoDisabledColor",ot(y.info.main,.62)),Q(y.Switch,"successDisabledColor",ot(y.success.main,.62)),Q(y.Switch,"warningDisabledColor",ot(y.warning.main,.62)),Q(y.TableCell,"border",ot(_s(y.divider,1),.88)),Q(y.Tooltip,"bg",_s(y.grey[700],.92))}if(y.mode==="dark"){Q(y.Alert,"errorColor",ot(y.error.light,.6)),Q(y.Alert,"infoColor",ot(y.info.light,.6)),Q(y.Alert,"successColor",ot(y.success.light,.6)),Q(y.Alert,"warningColor",ot(y.warning.light,.6)),Q(y.Alert,"errorFilledBg",R("palette-error-dark")),Q(y.Alert,"infoFilledBg",R("palette-info-dark")),Q(y.Alert,"successFilledBg",R("palette-success-dark")),Q(y.Alert,"warningFilledBg",R("palette-warning-dark")),Q(y.Alert,"errorFilledColor",rr(()=>y.getContrastText(y.error.dark))),Q(y.Alert,"infoFilledColor",rr(()=>y.getContrastText(y.info.dark))),Q(y.Alert,"successFilledColor",rr(()=>y.getContrastText(y.success.dark))),Q(y.Alert,"warningFilledColor",rr(()=>y.getContrastText(y.warning.dark))),Q(y.Alert,"errorStandardBg",rt(y.error.light,.9)),Q(y.Alert,"infoStandardBg",rt(y.info.light,.9)),Q(y.Alert,"successStandardBg",rt(y.success.light,.9)),Q(y.Alert,"warningStandardBg",rt(y.warning.light,.9)),Q(y.Alert,"errorIconColor",R("palette-error-main")),Q(y.Alert,"infoIconColor",R("palette-info-main")),Q(y.Alert,"successIconColor",R("palette-success-main")),Q(y.Alert,"warningIconColor",R("palette-warning-main")),Q(y.AppBar,"defaultBg",R("palette-grey-900")),Q(y.AppBar,"darkBg",R("palette-background-paper")),Q(y.AppBar,"darkColor",R("palette-text-primary")),Q(y.Avatar,"defaultBg",R("palette-grey-600")),Q(y.Button,"inheritContainedBg",R("palette-grey-800")),Q(y.Button,"inheritContainedHoverBg",R("palette-grey-700")),Q(y.Chip,"defaultBorder",R("palette-grey-700")),Q(y.Chip,"defaultAvatarColor",R("palette-grey-300")),Q(y.Chip,"defaultIconColor",R("palette-grey-300")),Q(y.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Q(y.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Q(y.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Q(y.LinearProgress,"primaryBg",rt(y.primary.main,.5)),Q(y.LinearProgress,"secondaryBg",rt(y.secondary.main,.5)),Q(y.LinearProgress,"errorBg",rt(y.error.main,.5)),Q(y.LinearProgress,"infoBg",rt(y.info.main,.5)),Q(y.LinearProgress,"successBg",rt(y.success.main,.5)),Q(y.LinearProgress,"warningBg",rt(y.warning.main,.5)),Q(y.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.13)`),Q(y.Slider,"primaryTrack",rt(y.primary.main,.5)),Q(y.Slider,"secondaryTrack",rt(y.secondary.main,.5)),Q(y.Slider,"errorTrack",rt(y.error.main,.5)),Q(y.Slider,"infoTrack",rt(y.info.main,.5)),Q(y.Slider,"successTrack",rt(y.success.main,.5)),Q(y.Slider,"warningTrack",rt(y.warning.main,.5));const F=Ds(y.background.default,.98);Q(y.SnackbarContent,"bg",F),Q(y.SnackbarContent,"color",rr(()=>y.getContrastText(F))),Q(y.SpeedDialAction,"fabHoverBg",Ds(y.background.paper,.15)),Q(y.StepConnector,"border",R("palette-grey-600")),Q(y.StepContent,"border",R("palette-grey-600")),Q(y.Switch,"defaultColor",R("palette-grey-300")),Q(y.Switch,"defaultDisabledColor",R("palette-grey-600")),Q(y.Switch,"primaryDisabledColor",rt(y.primary.main,.55)),Q(y.Switch,"secondaryDisabledColor",rt(y.secondary.main,.55)),Q(y.Switch,"errorDisabledColor",rt(y.error.main,.55)),Q(y.Switch,"infoDisabledColor",rt(y.info.main,.55)),Q(y.Switch,"successDisabledColor",rt(y.success.main,.55)),Q(y.Switch,"warningDisabledColor",rt(y.warning.main,.55)),Q(y.TableCell,"border",rt(_s(y.divider,1),.68)),Q(y.Tooltip,"bg",_s(y.grey[700],.92))}Cr(y.background,"default"),Cr(y.background,"paper"),Cr(y.common,"background"),Cr(y.common,"onBackground"),Cr(y,"divider"),Object.keys(y).forEach(F=>{const $=y[F];F!=="tonalOffset"&&$&&typeof $=="object"&&($.main&&Q(y[F],"mainChannel",ii(si($.main))),$.light&&Q(y[F],"lightChannel",ii(si($.light))),$.dark&&Q(y[F],"darkChannel",ii(si($.dark))),$.contrastText&&Q(y[F],"contrastTextChannel",ii(si($.contrastText))),F==="text"&&(Cr(y[F],"primary"),Cr(y[F],"secondary")),F==="action"&&($.active&&Cr(y[F],"active"),$.selected&&Cr(y[F],"selected")))})}),I=t.reduce((B,y)=>Dn(B,y),I);const N={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:i,getSelector:A9(I)},{vars:S,generateThemeVars:M,generateStyleSheets:q}=t9(I,N);return I.vars=S,Object.entries(I.colorSchemes[I.defaultColorScheme]).forEach(([B,y])=>{I[B]=y}),I.generateThemeVars=M,I.generateStyleSheets=q,I.generateSpacing=function(){return qe.createSpacing(c.spacing,Vh(this))},I.getColorSchemeSelector=r9(s),I.spacing=I.generateSpacing(),I.shouldSkipGeneratingVar=i,I.unstable_sxConfig={...is,...c?.unstable_sxConfig},I.unstable_sx=function(y){return Ro({sx:y,theme:this})},I.toRuntimeSource=CE,I}function yg(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Gh({...n===!0?{}:n.palette,mode:t})})}function Kh(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...i}=e,s=a||"light",l=o?.[s],c={...o,...n?{[s]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return md(e,...t);let d=n;"palette"in e||c[s]&&(c[s]!==!0?d=c[s].palette:s==="dark"&&(d={mode:"dark"}));const u=md({...e,palette:d},...t);return u.defaultColorScheme=s,u.colorSchemes=c,u.palette.mode==="light"&&(u.colorSchemes.light={...c.light!==!0&&c.light,palette:u.palette},yg(u,"dark",c.dark)),u.palette.mode==="dark"&&(u.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:u.palette},yg(u,"light",c.light)),u}return!n&&!("light"in c)&&s==="light"&&(c.light=!0),w9({...i,colorSchemes:c,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}const N9=Kh();function P9(e){const{variants:t,...n}=e,r={variants:t,style:Io(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Io(o.style))}),r}const R9=xE();function bu(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function xo(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function L9(e){return e?(t,n)=>n[e]:null}function $9(e,t,n){e.theme=F9(e.theme)?n:e.theme[t]||e.theme}function Ks(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Ks(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?xo(r.style,n):r.style;else{const{variants:a,...i}=r;o=n?xo(Io(i),n):i}return kE(e,r.variants,[o],n)}return r?.isProcessed?n?xo(Io(r.style),n):r.style:n?xo(Io(r),n):r}function kE(e,t,n=[],r=void 0){let o;e:for(let a=0;a<t.length;a+=1){const i=t[a];if(typeof i.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!i.props(o))continue}else for(const s in i.props)if(e[s]!==i.props[s]&&e.ownerState?.[s]!==i.props[s])continue e;typeof i.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?xo(Io(i.style(o)),r):i.style(o))):n.push(r?xo(Io(i.style),r):i.style)}return n}function O9(e={}){const{themeId:t,defaultTheme:n=R9,rootShouldForwardProp:r=bu,slotShouldForwardProp:o=bu}=e;function a(s){$9(s,t,n)}return(s,l={})=>{c7(s,S=>S.filter(M=>M!==Ro));const{name:c,slot:d,skipVariantsResolver:u,skipSx:h,overridesResolver:p=L9(j9(d)),...g}=l,b=c&&c.startsWith("Mui")||d?"components":"custom",x=u!==void 0?u:d&&d!=="Root"&&d!=="root"||!1,E=h||!1;let v=bu;d==="Root"||d==="root"?v=r:d?v=o:B9(s)&&(v=void 0);const C=l7(s,{shouldForwardProp:v,label:M9(),...g}),I=S=>{if(S.__emotion_real===S)return S;if(typeof S=="function")return function(q){return Ks(q,S,q.theme.modularCssLayers?b:void 0)};if(cr(S)){const M=P9(S);return function(B){return M.variants?Ks(B,M,B.theme.modularCssLayers?b:void 0):B.theme.modularCssLayers?xo(M.style,b):M.style}}return S},N=(...S)=>{const M=[],q=S.map(I),B=[];if(M.push(a),c&&p&&B.push(function($){const Y=$.theme.components?.[c]?.styleOverrides;if(!Y)return null;const re={};for(const fe in Y)re[fe]=Ks($,Y[fe],$.theme.modularCssLayers?"theme":void 0);return p($,re)}),c&&!x&&B.push(function($){const Y=$.theme?.components?.[c]?.variants;return Y?kE($,Y,[],$.theme.modularCssLayers?"theme":void 0):null}),E||B.push(Ro),Array.isArray(q[0])){const F=q.shift(),$=new Array(M.length).fill(""),U=new Array(B.length).fill("");let Y;Y=[...$,...F,...U],Y.raw=[...$,...F.raw,...U],M.unshift(Y)}const y=[...M,...q,...B],R=C(...y);return s.muiName&&(R.muiName=s.muiName),R};return C.withConfig&&(N.withConfig=C.withConfig),N}}function M9(e,t){return void 0}function F9(e){for(const t in e)return!1;return!0}function B9(e){return typeof e=="string"&&e.charCodeAt(0)>96}function j9(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function H9(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const U9=e=>H9(e)&&e!=="classes",dn=O9({themeId:Ao,defaultTheme:N9,rootShouldForwardProp:U9});function z9({theme:e,...t}){const n=Ao in e?e[Ao]:void 0;return f.jsx(qe.ThemeProvider,{...t,themeId:n?Ao:void 0,theme:n||e})}const ws={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:G9,useColorScheme:Dj,getInitColorSchemeScript:wj}=qe.unstable_createCssVarsProvider({themeId:Ao,theme:()=>Kh({cssVariables:!0}),colorSchemeStorageKey:ws.colorSchemeStorageKey,modeStorageKey:ws.modeStorageKey,defaultColorScheme:{light:ws.defaultLightColorScheme,dark:ws.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:TE(e.palette,e.typography)};return t.unstable_sx=function(r){return Ro({sx:r,theme:this})},t}}),q9=G9;function W9({theme:e,...t}){const n=D.useMemo(()=>{if(typeof e=="function")return e;const r=Ao in e?e[Ao]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return n?f.jsx(z9,{theme:n,...t}):f.jsx(q9,{theme:e,...t})}function AE(){const e=rs();return f.jsx(yF,{navigate:e})}function ro(e){return p7(e)}const IE=qe.createContainer({createStyledComponent:dn("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Bt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>ro({props:e,name:"MuiContainer"})});function zo(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Uo(e,o,n)}),r}function Ra(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let i="",s=!0;for(let l=0;l<a.length;l+=1){const c=a[l];c&&(i+=(s===!0?"":" ")+t(c),s=!1,n&&n[c]&&(i+=" "+n[c]))}r[o]=i}return r}function gd(...e){const t=D.useRef(void 0),n=D.useCallback(r=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const i=a,s=i(r);return typeof s=="function"?s:()=>{i(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return D.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function V9(e){return typeof e=="string"}function Y9(e,t,n){return e===void 0||V9(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function K9(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function bg(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Q9(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const p=Wt(n?.className,a,o?.className,r?.className),g={...n?.style,...o?.style,...r?.style},b={...n,...o,...r};return p.length>0&&(b.className=p),Object.keys(g).length>0&&(b.style=g),{props:b,internalRef:void 0}}const i=K9({...o,...r}),s=bg(r),l=bg(o),c=t(i),d=Wt(c?.className,n?.className,a,o?.className,r?.className),u={...c?.style,...n?.style,...o?.style,...r?.style},h={...c,...n,...l,...s};return d.length>0&&(h.className=d),Object.keys(u).length>0&&(h.style=u),{props:h,internalRef:c.ref}}function X9(e,t,n){return typeof e=="function"?e(t,n):e}function J9(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,i=o?{}:X9(n,r),{props:s,internalRef:l}=Q9({...a,externalSlotProps:i}),c=gd(l,i?.ref,e.additionalProps?.ref);return Y9(t,{...s,ref:c},r)}function Z9(){return a9}const Lo=qe.unstable_memoTheme;function e8(e){return typeof e.main=="string"}function t8(e,t=[]){if(!e8(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Dl(e=[]){return([,t])=>t&&t8(t,e)}function n8(e){return Uo("MuiTypography",e)}zo("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const r8={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},o8=Z9(),a8=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${Bt(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ra(s,n8,i)},i8=dn("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Bt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Lo(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(Dl()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${Bt(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Eg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},s8=D.forwardRef(function(t,n){const{color:r,...o}=ro({props:t,name:"MuiTypography"}),a=!r8[r],i=o8({...o,...a&&{color:r}}),{align:s="inherit",className:l,component:c,gutterBottom:d=!1,noWrap:u=!1,paragraph:h=!1,variant:p="body1",variantMapping:g=Eg,...b}=i,x={...i,align:s,color:r,className:l,component:c,gutterBottom:d,noWrap:u,paragraph:h,variant:p,variantMapping:g},E=c||(h?"p":g[p]||Eg[p])||"span",v=a8(x);return f.jsx(i8,{as:E,ref:n,className:Wt(v.root,l),...b,ownerState:x,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...b.style}})});function l8(e){return Uo("MuiSvgIcon",e)}zo("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const c8=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Bt(t)}`,`fontSize${Bt(n)}`]};return Ra(o,l8,r)},u8=dn("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Bt(n.color)}`],t[`fontSize${Bt(n.fontSize)}`]]}})(Lo(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),yd=D.forwardRef(function(t,n){const r=ro({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:u,viewBox:h="0 0 24 24",...p}=r,g=D.isValidElement(o)&&o.type==="svg",b={...r,color:i,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:g},x={};d||(x.viewBox=h);const E=c8(b);return f.jsxs(u8,{as:s,className:Wt(E.root,a),focusable:"false",color:c,"aria-hidden":u?void 0:!0,role:u?"img":void 0,ref:n,...x,...p,...g&&o.props,ownerState:b,children:[g?o.props.children:o,u?f.jsx("title",{children:u}):null]})});yd.muiName="SvgIcon";function Qh(e,t){function n(r,o){return f.jsx(yd,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=yd.muiName,D.memo(D.forwardRef(n))}const d8=Qh(f.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}));function xg(e){try{return e.matches(":focus-visible")}catch{}return!1}function Qs(e){const t=D.useRef(e);return u7(()=>{t.current=e}),D.useRef((...n)=>(0,t.current)(...n)).current}const Tg={};function _E(e,t){const n=D.useRef(Tg);return n.current===Tg&&(n.current=e(t)),n}class wl{constructor(){G(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new wl}static use(){const t=_E(wl.create).current,[n,r]=D.useState(!1);return t.shouldMount=n,t.setShouldMount=r,D.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=p8(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function h8(){return wl.use()}function p8(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function bd(){return bd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bd.apply(null,arguments)}function f8(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ed(e,t){return Ed=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ed(e,t)}function m8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ed(e,t)}const Cg=O.createContext(null);function g8(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xh(e,t){var n=function(a){return t&&O.isValidElement(a)?t(a):a},r=Object.create(null);return e&&O.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function y8(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),o=[];for(var a in e)a in t?o.length&&(r[a]=o,o=[]):o.push(a);var i,s={};for(var l in t){if(r[l])for(i=0;i<r[l].length;i++){var c=r[l][i];s[r[l][i]]=n(c)}s[l]=n(l)}for(i=0;i<o.length;i++)s[o[i]]=n(o[i]);return s}function To(e,t,n){return n[t]!=null?n[t]:e.props[t]}function b8(e,t){return Xh(e.children,function(n){return O.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:To(n,"appear",e),enter:To(n,"enter",e),exit:To(n,"exit",e)})})}function E8(e,t,n){var r=Xh(e.children),o=y8(t,r);return Object.keys(o).forEach(function(a){var i=o[a];if(O.isValidElement(i)){var s=a in t,l=a in r,c=t[a],d=O.isValidElement(c)&&!c.props.in;l&&(!s||d)?o[a]=O.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:To(i,"exit",e),enter:To(i,"enter",e)}):!l&&s&&!d?o[a]=O.cloneElement(i,{in:!1}):l&&s&&O.isValidElement(c)&&(o[a]=O.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:To(i,"exit",e),enter:To(i,"enter",e)}))}}),o}var x8=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},T8={component:"div",childFactory:function(t){return t}},Jh=function(e){m8(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=a.handleExited.bind(g8(a));return a.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},a}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,a){var i=a.children,s=a.handleExited,l=a.firstRender;return{children:l?b8(o,s):E8(o,i,s),firstRender:!1}},n.handleExited=function(o,a){var i=Xh(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(a),this.mounted&&this.setState(function(s){var l=bd({},s.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,a=o.component,i=o.childFactory,s=f8(o,["component","childFactory"]),l=this.state.contextValue,c=x8(this.state.children).map(i);return delete s.appear,delete s.enter,delete s.exit,a===null?O.createElement(Cg.Provider,{value:l},c):O.createElement(Cg.Provider,{value:l},O.createElement(a,s,c))},t}(O.Component);Jh.propTypes={};Jh.defaultProps=T8;const C8=[];function v8(e){D.useEffect(e,C8)}class Zh{constructor(){G(this,"currentId",null);G(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});G(this,"disposeEffect",()=>this.clear)}static create(){return new Zh}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function S8(){const e=_E(Zh.create).current;return v8(e.disposeEffect),e}function k8(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:c}=e,[d,u]=D.useState(!1),h=Wt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},g=Wt(n.child,d&&n.childLeaving,r&&n.childPulsate);return!s&&!d&&u(!0),D.useEffect(()=>{if(!s&&l!=null){const b=setTimeout(l,c);return()=>{clearTimeout(b)}}},[l,s,c]),f.jsx("span",{className:h,style:p,children:f.jsx("span",{className:g})})}const Ln=zo("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),xd=550,A8=80,I8=qe.keyframes`
209
+ export default theme;`}function md(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:i={},typography:s={},shape:l,...c}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Po(20));const d=Gh(a),u=xE(e);let h=Dn(u,{mixins:c9(u.breakpoints,r),palette:d,shadows:f9.slice(),typography:TE(d,s),transitions:b9(i),zIndex:{...E9}});return h=Dn(h,c),h=t.reduce((p,g)=>Dn(p,g),h),h.unstable_sxConfig={...is,...c?.unstable_sxConfig},h.unstable_sx=function(g){return Ro({sx:g,theme:this})},h.toRuntimeSource=CE,h}function T9(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const C9=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=T9(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function vE(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function SE(e){return e==="dark"?C9:[]}function v9(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,a=Gh(t);return{palette:a,opacity:{...vE(a.mode),...n},overlays:r||SE(a.mode),...o}}function S9(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const k9=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],A9=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return k9(e.cssVarPrefix).forEach(s=>{i[s]=n[s],delete n[s]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace("%s",t)]:i,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!=="media")return`${r}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}return r};function I9(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Q(e,t,n){!e[t]&&n&&(e[t]=n)}function si(e){return typeof e!="string"||!e.startsWith("hsl")?e:fE(e)}function Cr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ii(si(e[t])))}function _9(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const rr=e=>{try{return e()}catch{}},D9=(e="mui")=>qe.unstable_createGetCssVar(e);function yu(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=v9({...t,palette:{mode:o,...t?.palette}});return}const{palette:a,...i}=md({...n,palette:{mode:o,...t?.palette}});return e[r]={...t,palette:a,opacity:{...vE(o),...t?.opacity},overlays:t?.overlays||SE(o)},i}function w9(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:i=S9,colorSchemeSelector:s=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...c}=e,d=Object.keys(n)[0],u=r||(n.light&&d!=="light"?"light":d),h=D9(a),{[u]:p,light:g,dark:b,...x}=n,E={...x};let v=p;if((u==="dark"&&!("dark"in n)||u==="light"&&!("light"in n))&&(v=!0),!v)throw new Error(Po(21,u));const C=yu(E,v,c,u);g&&!E.light&&yu(E,g,void 0,"light"),b&&!E.dark&&yu(E,b,void 0,"dark");let I={defaultColorScheme:u,...C,cssVarPrefix:a,colorSchemeSelector:s,rootSelector:l,getCssVar:h,colorSchemes:E,font:{...n9(C.typography),...C.font},spacing:_9(c.spacing)};Object.keys(I.colorSchemes).forEach(B=>{const y=I.colorSchemes[B].palette,R=F=>{const $=F.split("-"),U=$[1],Y=$[2];return h(F,y[U][Y])};if(y.mode==="light"&&(Q(y.common,"background","#fff"),Q(y.common,"onBackground","#000")),y.mode==="dark"&&(Q(y.common,"background","#000"),Q(y.common,"onBackground","#fff")),I9(y,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),y.mode==="light"){Q(y.Alert,"errorColor",rt(y.error.light,.6)),Q(y.Alert,"infoColor",rt(y.info.light,.6)),Q(y.Alert,"successColor",rt(y.success.light,.6)),Q(y.Alert,"warningColor",rt(y.warning.light,.6)),Q(y.Alert,"errorFilledBg",R("palette-error-main")),Q(y.Alert,"infoFilledBg",R("palette-info-main")),Q(y.Alert,"successFilledBg",R("palette-success-main")),Q(y.Alert,"warningFilledBg",R("palette-warning-main")),Q(y.Alert,"errorFilledColor",rr(()=>y.getContrastText(y.error.main))),Q(y.Alert,"infoFilledColor",rr(()=>y.getContrastText(y.info.main))),Q(y.Alert,"successFilledColor",rr(()=>y.getContrastText(y.success.main))),Q(y.Alert,"warningFilledColor",rr(()=>y.getContrastText(y.warning.main))),Q(y.Alert,"errorStandardBg",ot(y.error.light,.9)),Q(y.Alert,"infoStandardBg",ot(y.info.light,.9)),Q(y.Alert,"successStandardBg",ot(y.success.light,.9)),Q(y.Alert,"warningStandardBg",ot(y.warning.light,.9)),Q(y.Alert,"errorIconColor",R("palette-error-main")),Q(y.Alert,"infoIconColor",R("palette-info-main")),Q(y.Alert,"successIconColor",R("palette-success-main")),Q(y.Alert,"warningIconColor",R("palette-warning-main")),Q(y.AppBar,"defaultBg",R("palette-grey-100")),Q(y.Avatar,"defaultBg",R("palette-grey-400")),Q(y.Button,"inheritContainedBg",R("palette-grey-300")),Q(y.Button,"inheritContainedHoverBg",R("palette-grey-A100")),Q(y.Chip,"defaultBorder",R("palette-grey-400")),Q(y.Chip,"defaultAvatarColor",R("palette-grey-700")),Q(y.Chip,"defaultIconColor",R("palette-grey-700")),Q(y.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Q(y.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Q(y.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Q(y.LinearProgress,"primaryBg",ot(y.primary.main,.62)),Q(y.LinearProgress,"secondaryBg",ot(y.secondary.main,.62)),Q(y.LinearProgress,"errorBg",ot(y.error.main,.62)),Q(y.LinearProgress,"infoBg",ot(y.info.main,.62)),Q(y.LinearProgress,"successBg",ot(y.success.main,.62)),Q(y.LinearProgress,"warningBg",ot(y.warning.main,.62)),Q(y.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.11)`),Q(y.Slider,"primaryTrack",ot(y.primary.main,.62)),Q(y.Slider,"secondaryTrack",ot(y.secondary.main,.62)),Q(y.Slider,"errorTrack",ot(y.error.main,.62)),Q(y.Slider,"infoTrack",ot(y.info.main,.62)),Q(y.Slider,"successTrack",ot(y.success.main,.62)),Q(y.Slider,"warningTrack",ot(y.warning.main,.62));const F=Ds(y.background.default,.8);Q(y.SnackbarContent,"bg",F),Q(y.SnackbarContent,"color",rr(()=>y.getContrastText(F))),Q(y.SpeedDialAction,"fabHoverBg",Ds(y.background.paper,.15)),Q(y.StepConnector,"border",R("palette-grey-400")),Q(y.StepContent,"border",R("palette-grey-400")),Q(y.Switch,"defaultColor",R("palette-common-white")),Q(y.Switch,"defaultDisabledColor",R("palette-grey-100")),Q(y.Switch,"primaryDisabledColor",ot(y.primary.main,.62)),Q(y.Switch,"secondaryDisabledColor",ot(y.secondary.main,.62)),Q(y.Switch,"errorDisabledColor",ot(y.error.main,.62)),Q(y.Switch,"infoDisabledColor",ot(y.info.main,.62)),Q(y.Switch,"successDisabledColor",ot(y.success.main,.62)),Q(y.Switch,"warningDisabledColor",ot(y.warning.main,.62)),Q(y.TableCell,"border",ot(_s(y.divider,1),.88)),Q(y.Tooltip,"bg",_s(y.grey[700],.92))}if(y.mode==="dark"){Q(y.Alert,"errorColor",ot(y.error.light,.6)),Q(y.Alert,"infoColor",ot(y.info.light,.6)),Q(y.Alert,"successColor",ot(y.success.light,.6)),Q(y.Alert,"warningColor",ot(y.warning.light,.6)),Q(y.Alert,"errorFilledBg",R("palette-error-dark")),Q(y.Alert,"infoFilledBg",R("palette-info-dark")),Q(y.Alert,"successFilledBg",R("palette-success-dark")),Q(y.Alert,"warningFilledBg",R("palette-warning-dark")),Q(y.Alert,"errorFilledColor",rr(()=>y.getContrastText(y.error.dark))),Q(y.Alert,"infoFilledColor",rr(()=>y.getContrastText(y.info.dark))),Q(y.Alert,"successFilledColor",rr(()=>y.getContrastText(y.success.dark))),Q(y.Alert,"warningFilledColor",rr(()=>y.getContrastText(y.warning.dark))),Q(y.Alert,"errorStandardBg",rt(y.error.light,.9)),Q(y.Alert,"infoStandardBg",rt(y.info.light,.9)),Q(y.Alert,"successStandardBg",rt(y.success.light,.9)),Q(y.Alert,"warningStandardBg",rt(y.warning.light,.9)),Q(y.Alert,"errorIconColor",R("palette-error-main")),Q(y.Alert,"infoIconColor",R("palette-info-main")),Q(y.Alert,"successIconColor",R("palette-success-main")),Q(y.Alert,"warningIconColor",R("palette-warning-main")),Q(y.AppBar,"defaultBg",R("palette-grey-900")),Q(y.AppBar,"darkBg",R("palette-background-paper")),Q(y.AppBar,"darkColor",R("palette-text-primary")),Q(y.Avatar,"defaultBg",R("palette-grey-600")),Q(y.Button,"inheritContainedBg",R("palette-grey-800")),Q(y.Button,"inheritContainedHoverBg",R("palette-grey-700")),Q(y.Chip,"defaultBorder",R("palette-grey-700")),Q(y.Chip,"defaultAvatarColor",R("palette-grey-300")),Q(y.Chip,"defaultIconColor",R("palette-grey-300")),Q(y.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Q(y.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Q(y.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Q(y.LinearProgress,"primaryBg",rt(y.primary.main,.5)),Q(y.LinearProgress,"secondaryBg",rt(y.secondary.main,.5)),Q(y.LinearProgress,"errorBg",rt(y.error.main,.5)),Q(y.LinearProgress,"infoBg",rt(y.info.main,.5)),Q(y.LinearProgress,"successBg",rt(y.success.main,.5)),Q(y.LinearProgress,"warningBg",rt(y.warning.main,.5)),Q(y.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.13)`),Q(y.Slider,"primaryTrack",rt(y.primary.main,.5)),Q(y.Slider,"secondaryTrack",rt(y.secondary.main,.5)),Q(y.Slider,"errorTrack",rt(y.error.main,.5)),Q(y.Slider,"infoTrack",rt(y.info.main,.5)),Q(y.Slider,"successTrack",rt(y.success.main,.5)),Q(y.Slider,"warningTrack",rt(y.warning.main,.5));const F=Ds(y.background.default,.98);Q(y.SnackbarContent,"bg",F),Q(y.SnackbarContent,"color",rr(()=>y.getContrastText(F))),Q(y.SpeedDialAction,"fabHoverBg",Ds(y.background.paper,.15)),Q(y.StepConnector,"border",R("palette-grey-600")),Q(y.StepContent,"border",R("palette-grey-600")),Q(y.Switch,"defaultColor",R("palette-grey-300")),Q(y.Switch,"defaultDisabledColor",R("palette-grey-600")),Q(y.Switch,"primaryDisabledColor",rt(y.primary.main,.55)),Q(y.Switch,"secondaryDisabledColor",rt(y.secondary.main,.55)),Q(y.Switch,"errorDisabledColor",rt(y.error.main,.55)),Q(y.Switch,"infoDisabledColor",rt(y.info.main,.55)),Q(y.Switch,"successDisabledColor",rt(y.success.main,.55)),Q(y.Switch,"warningDisabledColor",rt(y.warning.main,.55)),Q(y.TableCell,"border",rt(_s(y.divider,1),.68)),Q(y.Tooltip,"bg",_s(y.grey[700],.92))}Cr(y.background,"default"),Cr(y.background,"paper"),Cr(y.common,"background"),Cr(y.common,"onBackground"),Cr(y,"divider"),Object.keys(y).forEach(F=>{const $=y[F];F!=="tonalOffset"&&$&&typeof $=="object"&&($.main&&Q(y[F],"mainChannel",ii(si($.main))),$.light&&Q(y[F],"lightChannel",ii(si($.light))),$.dark&&Q(y[F],"darkChannel",ii(si($.dark))),$.contrastText&&Q(y[F],"contrastTextChannel",ii(si($.contrastText))),F==="text"&&(Cr(y[F],"primary"),Cr(y[F],"secondary")),F==="action"&&($.active&&Cr(y[F],"active"),$.selected&&Cr(y[F],"selected")))})}),I=t.reduce((B,y)=>Dn(B,y),I);const w={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:i,getSelector:A9(I)},{vars:S,generateThemeVars:M,generateStyleSheets:q}=t9(I,w);return I.vars=S,Object.entries(I.colorSchemes[I.defaultColorScheme]).forEach(([B,y])=>{I[B]=y}),I.generateThemeVars=M,I.generateStyleSheets=q,I.generateSpacing=function(){return qe.createSpacing(c.spacing,Vh(this))},I.getColorSchemeSelector=r9(s),I.spacing=I.generateSpacing(),I.shouldSkipGeneratingVar=i,I.unstable_sxConfig={...is,...c?.unstable_sxConfig},I.unstable_sx=function(y){return Ro({sx:y,theme:this})},I.toRuntimeSource=CE,I}function yg(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Gh({...n===!0?{}:n.palette,mode:t})})}function Kh(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...i}=e,s=a||"light",l=o?.[s],c={...o,...n?{[s]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return md(e,...t);let d=n;"palette"in e||c[s]&&(c[s]!==!0?d=c[s].palette:s==="dark"&&(d={mode:"dark"}));const u=md({...e,palette:d},...t);return u.defaultColorScheme=s,u.colorSchemes=c,u.palette.mode==="light"&&(u.colorSchemes.light={...c.light!==!0&&c.light,palette:u.palette},yg(u,"dark",c.dark)),u.palette.mode==="dark"&&(u.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:u.palette},yg(u,"light",c.light)),u}return!n&&!("light"in c)&&s==="light"&&(c.light=!0),w9({...i,colorSchemes:c,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}const N9=Kh();function P9(e){const{variants:t,...n}=e,r={variants:t,style:Io(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Io(o.style))}),r}const R9=xE();function bu(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function xo(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function L9(e){return e?(t,n)=>n[e]:null}function $9(e,t,n){e.theme=F9(e.theme)?n:e.theme[t]||e.theme}function Ks(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Ks(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?xo(r.style,n):r.style;else{const{variants:a,...i}=r;o=n?xo(Io(i),n):i}return kE(e,r.variants,[o],n)}return r?.isProcessed?n?xo(Io(r.style),n):r.style:n?xo(Io(r),n):r}function kE(e,t,n=[],r=void 0){let o;e:for(let a=0;a<t.length;a+=1){const i=t[a];if(typeof i.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!i.props(o))continue}else for(const s in i.props)if(e[s]!==i.props[s]&&e.ownerState?.[s]!==i.props[s])continue e;typeof i.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?xo(Io(i.style(o)),r):i.style(o))):n.push(r?xo(Io(i.style),r):i.style)}return n}function O9(e={}){const{themeId:t,defaultTheme:n=R9,rootShouldForwardProp:r=bu,slotShouldForwardProp:o=bu}=e;function a(s){$9(s,t,n)}return(s,l={})=>{c7(s,S=>S.filter(M=>M!==Ro));const{name:c,slot:d,skipVariantsResolver:u,skipSx:h,overridesResolver:p=L9(j9(d)),...g}=l,b=c&&c.startsWith("Mui")||d?"components":"custom",x=u!==void 0?u:d&&d!=="Root"&&d!=="root"||!1,E=h||!1;let v=bu;d==="Root"||d==="root"?v=r:d?v=o:B9(s)&&(v=void 0);const C=l7(s,{shouldForwardProp:v,label:M9(),...g}),I=S=>{if(S.__emotion_real===S)return S;if(typeof S=="function")return function(q){return Ks(q,S,q.theme.modularCssLayers?b:void 0)};if(cr(S)){const M=P9(S);return function(B){return M.variants?Ks(B,M,B.theme.modularCssLayers?b:void 0):B.theme.modularCssLayers?xo(M.style,b):M.style}}return S},w=(...S)=>{const M=[],q=S.map(I),B=[];if(M.push(a),c&&p&&B.push(function($){const Y=$.theme.components?.[c]?.styleOverrides;if(!Y)return null;const re={};for(const fe in Y)re[fe]=Ks($,Y[fe],$.theme.modularCssLayers?"theme":void 0);return p($,re)}),c&&!x&&B.push(function($){const Y=$.theme?.components?.[c]?.variants;return Y?kE($,Y,[],$.theme.modularCssLayers?"theme":void 0):null}),E||B.push(Ro),Array.isArray(q[0])){const F=q.shift(),$=new Array(M.length).fill(""),U=new Array(B.length).fill("");let Y;Y=[...$,...F,...U],Y.raw=[...$,...F.raw,...U],M.unshift(Y)}const y=[...M,...q,...B],R=C(...y);return s.muiName&&(R.muiName=s.muiName),R};return C.withConfig&&(w.withConfig=C.withConfig),w}}function M9(e,t){return void 0}function F9(e){for(const t in e)return!1;return!0}function B9(e){return typeof e=="string"&&e.charCodeAt(0)>96}function j9(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function H9(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const U9=e=>H9(e)&&e!=="classes",dn=O9({themeId:Ao,defaultTheme:N9,rootShouldForwardProp:U9});function z9({theme:e,...t}){const n=Ao in e?e[Ao]:void 0;return f.jsx(qe.ThemeProvider,{...t,themeId:n?Ao:void 0,theme:n||e})}const ws={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:G9,useColorScheme:Dj,getInitColorSchemeScript:wj}=qe.unstable_createCssVarsProvider({themeId:Ao,theme:()=>Kh({cssVariables:!0}),colorSchemeStorageKey:ws.colorSchemeStorageKey,modeStorageKey:ws.modeStorageKey,defaultColorScheme:{light:ws.defaultLightColorScheme,dark:ws.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:TE(e.palette,e.typography)};return t.unstable_sx=function(r){return Ro({sx:r,theme:this})},t}}),q9=G9;function W9({theme:e,...t}){const n=D.useMemo(()=>{if(typeof e=="function")return e;const r=Ao in e?e[Ao]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return n?f.jsx(z9,{theme:n,...t}):f.jsx(q9,{theme:e,...t})}function AE(){const e=rs();return f.jsx(yF,{navigate:e})}function ro(e){return p7(e)}const IE=qe.createContainer({createStyledComponent:dn("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Bt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>ro({props:e,name:"MuiContainer"})});function zo(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Uo(e,o,n)}),r}function Ra(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let i="",s=!0;for(let l=0;l<a.length;l+=1){const c=a[l];c&&(i+=(s===!0?"":" ")+t(c),s=!1,n&&n[c]&&(i+=" "+n[c]))}r[o]=i}return r}function gd(...e){const t=D.useRef(void 0),n=D.useCallback(r=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const i=a,s=i(r);return typeof s=="function"?s:()=>{i(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return D.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function V9(e){return typeof e=="string"}function Y9(e,t,n){return e===void 0||V9(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function K9(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function bg(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Q9(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const p=Wt(n?.className,a,o?.className,r?.className),g={...n?.style,...o?.style,...r?.style},b={...n,...o,...r};return p.length>0&&(b.className=p),Object.keys(g).length>0&&(b.style=g),{props:b,internalRef:void 0}}const i=K9({...o,...r}),s=bg(r),l=bg(o),c=t(i),d=Wt(c?.className,n?.className,a,o?.className,r?.className),u={...c?.style,...n?.style,...o?.style,...r?.style},h={...c,...n,...l,...s};return d.length>0&&(h.className=d),Object.keys(u).length>0&&(h.style=u),{props:h,internalRef:c.ref}}function X9(e,t,n){return typeof e=="function"?e(t,n):e}function J9(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,i=o?{}:X9(n,r),{props:s,internalRef:l}=Q9({...a,externalSlotProps:i}),c=gd(l,i?.ref,e.additionalProps?.ref);return Y9(t,{...s,ref:c},r)}function Z9(){return a9}const Lo=qe.unstable_memoTheme;function e8(e){return typeof e.main=="string"}function t8(e,t=[]){if(!e8(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Dl(e=[]){return([,t])=>t&&t8(t,e)}function n8(e){return Uo("MuiTypography",e)}zo("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const r8={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},o8=Z9(),a8=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${Bt(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ra(s,n8,i)},i8=dn("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Bt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Lo(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(Dl()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${Bt(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Eg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},s8=D.forwardRef(function(t,n){const{color:r,...o}=ro({props:t,name:"MuiTypography"}),a=!r8[r],i=o8({...o,...a&&{color:r}}),{align:s="inherit",className:l,component:c,gutterBottom:d=!1,noWrap:u=!1,paragraph:h=!1,variant:p="body1",variantMapping:g=Eg,...b}=i,x={...i,align:s,color:r,className:l,component:c,gutterBottom:d,noWrap:u,paragraph:h,variant:p,variantMapping:g},E=c||(h?"p":g[p]||Eg[p])||"span",v=a8(x);return f.jsx(i8,{as:E,ref:n,className:Wt(v.root,l),...b,ownerState:x,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...b.style}})});function l8(e){return Uo("MuiSvgIcon",e)}zo("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const c8=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Bt(t)}`,`fontSize${Bt(n)}`]};return Ra(o,l8,r)},u8=dn("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Bt(n.color)}`],t[`fontSize${Bt(n.fontSize)}`]]}})(Lo(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),yd=D.forwardRef(function(t,n){const r=ro({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:u,viewBox:h="0 0 24 24",...p}=r,g=D.isValidElement(o)&&o.type==="svg",b={...r,color:i,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:g},x={};d||(x.viewBox=h);const E=c8(b);return f.jsxs(u8,{as:s,className:Wt(E.root,a),focusable:"false",color:c,"aria-hidden":u?void 0:!0,role:u?"img":void 0,ref:n,...x,...p,...g&&o.props,ownerState:b,children:[g?o.props.children:o,u?f.jsx("title",{children:u}):null]})});yd.muiName="SvgIcon";function Qh(e,t){function n(r,o){return f.jsx(yd,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=yd.muiName,D.memo(D.forwardRef(n))}const d8=Qh(f.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}));function xg(e){try{return e.matches(":focus-visible")}catch{}return!1}function Qs(e){const t=D.useRef(e);return u7(()=>{t.current=e}),D.useRef((...n)=>(0,t.current)(...n)).current}const Tg={};function _E(e,t){const n=D.useRef(Tg);return n.current===Tg&&(n.current=e(t)),n}class wl{constructor(){G(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new wl}static use(){const t=_E(wl.create).current,[n,r]=D.useState(!1);return t.shouldMount=n,t.setShouldMount=r,D.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=p8(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function h8(){return wl.use()}function p8(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function bd(){return bd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bd.apply(null,arguments)}function f8(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ed(e,t){return Ed=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ed(e,t)}function m8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ed(e,t)}const Cg=O.createContext(null);function g8(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xh(e,t){var n=function(a){return t&&O.isValidElement(a)?t(a):a},r=Object.create(null);return e&&O.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function y8(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),o=[];for(var a in e)a in t?o.length&&(r[a]=o,o=[]):o.push(a);var i,s={};for(var l in t){if(r[l])for(i=0;i<r[l].length;i++){var c=r[l][i];s[r[l][i]]=n(c)}s[l]=n(l)}for(i=0;i<o.length;i++)s[o[i]]=n(o[i]);return s}function To(e,t,n){return n[t]!=null?n[t]:e.props[t]}function b8(e,t){return Xh(e.children,function(n){return O.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:To(n,"appear",e),enter:To(n,"enter",e),exit:To(n,"exit",e)})})}function E8(e,t,n){var r=Xh(e.children),o=y8(t,r);return Object.keys(o).forEach(function(a){var i=o[a];if(O.isValidElement(i)){var s=a in t,l=a in r,c=t[a],d=O.isValidElement(c)&&!c.props.in;l&&(!s||d)?o[a]=O.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:To(i,"exit",e),enter:To(i,"enter",e)}):!l&&s&&!d?o[a]=O.cloneElement(i,{in:!1}):l&&s&&O.isValidElement(c)&&(o[a]=O.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:To(i,"exit",e),enter:To(i,"enter",e)}))}}),o}var x8=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},T8={component:"div",childFactory:function(t){return t}},Jh=function(e){m8(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=a.handleExited.bind(g8(a));return a.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},a}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,a){var i=a.children,s=a.handleExited,l=a.firstRender;return{children:l?b8(o,s):E8(o,i,s),firstRender:!1}},n.handleExited=function(o,a){var i=Xh(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(a),this.mounted&&this.setState(function(s){var l=bd({},s.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,a=o.component,i=o.childFactory,s=f8(o,["component","childFactory"]),l=this.state.contextValue,c=x8(this.state.children).map(i);return delete s.appear,delete s.enter,delete s.exit,a===null?O.createElement(Cg.Provider,{value:l},c):O.createElement(Cg.Provider,{value:l},O.createElement(a,s,c))},t}(O.Component);Jh.propTypes={};Jh.defaultProps=T8;const C8=[];function v8(e){D.useEffect(e,C8)}class Zh{constructor(){G(this,"currentId",null);G(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});G(this,"disposeEffect",()=>this.clear)}static create(){return new Zh}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function S8(){const e=_E(Zh.create).current;return v8(e.disposeEffect),e}function k8(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:c}=e,[d,u]=D.useState(!1),h=Wt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},g=Wt(n.child,d&&n.childLeaving,r&&n.childPulsate);return!s&&!d&&u(!0),D.useEffect(()=>{if(!s&&l!=null){const b=setTimeout(l,c);return()=>{clearTimeout(b)}}},[l,s,c]),f.jsx("span",{className:h,style:p,children:f.jsx("span",{className:g})})}const Ln=zo("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),xd=550,A8=80,I8=qe.keyframes`
210
210
  0% {
211
211
  transform: scale(0);
212
212
  opacity: 0.1;
@@ -279,7 +279,7 @@ export default theme;`}function md(e={},...t){const{breakpoints:n,mixins:r={},sp
279
279
  animation-iteration-count: infinite;
280
280
  animation-delay: 200ms;
281
281
  }
282
- `,P8=D.forwardRef(function(t,n){const r=ro({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i,...s}=r,[l,c]=D.useState([]),d=D.useRef(0),u=D.useRef(null);D.useEffect(()=>{u.current&&(u.current(),u.current=null)},[l]);const h=D.useRef(!1),p=S8(),g=D.useRef(null),b=D.useRef(null),x=D.useCallback(I=>{const{pulsate:N,rippleX:S,rippleY:M,rippleSize:q,cb:B}=I;c(y=>[...y,f.jsx(N8,{classes:{ripple:Wt(a.ripple,Ln.ripple),rippleVisible:Wt(a.rippleVisible,Ln.rippleVisible),ripplePulsate:Wt(a.ripplePulsate,Ln.ripplePulsate),child:Wt(a.child,Ln.child),childLeaving:Wt(a.childLeaving,Ln.childLeaving),childPulsate:Wt(a.childPulsate,Ln.childPulsate)},timeout:xd,pulsate:N,rippleX:S,rippleY:M,rippleSize:q},d.current)]),d.current+=1,u.current=B},[a]),E=D.useCallback((I={},N={},S=()=>{})=>{const{pulsate:M=!1,center:q=o||N.pulsate,fakeElement:B=!1}=N;if(I?.type==="mousedown"&&h.current){h.current=!1;return}I?.type==="touchstart"&&(h.current=!0);const y=B?null:b.current,R=y?y.getBoundingClientRect():{width:0,height:0,left:0,top:0};let F,$,U;if(q||I===void 0||I.clientX===0&&I.clientY===0||!I.clientX&&!I.touches)F=Math.round(R.width/2),$=Math.round(R.height/2);else{const{clientX:Y,clientY:re}=I.touches&&I.touches.length>0?I.touches[0]:I;F=Math.round(Y-R.left),$=Math.round(re-R.top)}if(q)U=Math.sqrt((2*R.width**2+R.height**2)/3),U%2===0&&(U+=1);else{const Y=Math.max(Math.abs((y?y.clientWidth:0)-F),F)*2+2,re=Math.max(Math.abs((y?y.clientHeight:0)-$),$)*2+2;U=Math.sqrt(Y**2+re**2)}I?.touches?g.current===null&&(g.current=()=>{x({pulsate:M,rippleX:F,rippleY:$,rippleSize:U,cb:S})},p.start(A8,()=>{g.current&&(g.current(),g.current=null)})):x({pulsate:M,rippleX:F,rippleY:$,rippleSize:U,cb:S})},[o,x,p]),v=D.useCallback(()=>{E({},{pulsate:!0})},[E]),C=D.useCallback((I,N)=>{if(p.clear(),I?.type==="touchend"&&g.current){g.current(),g.current=null,p.start(0,()=>{C(I,N)});return}g.current=null,c(S=>S.length>0?S.slice(1):S),u.current=N},[p]);return D.useImperativeHandle(n,()=>({pulsate:v,start:E,stop:C}),[v,E,C]),f.jsx(w8,{className:Wt(Ln.root,a.root,i),ref:b,...s,children:f.jsx(Jh,{component:null,exit:!0,children:l})})});function R8(e){return Uo("MuiButtonBase",e)}const L8=zo("MuiButtonBase",["root","disabled","focusVisible"]),$8=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Ra({root:["root",t&&"disabled",n&&"focusVisible"]},R8,o);return n&&r&&(i.root+=` ${r}`),i},O8=dn("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${L8.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),DE=D.forwardRef(function(t,n){const r=ro({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:l="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:u=!1,focusRipple:h=!1,focusVisibleClassName:p,LinkComponent:g="a",onBlur:b,onClick:x,onContextMenu:E,onDragLeave:v,onFocus:C,onFocusVisible:I,onKeyDown:N,onKeyUp:S,onMouseDown:M,onMouseLeave:q,onMouseUp:B,onTouchEnd:y,onTouchMove:R,onTouchStart:F,tabIndex:$=0,TouchRippleProps:U,touchRippleRef:Y,type:re,...fe}=r,ue=D.useRef(null),X=h8(),A=gd(X.ref,Y),[de,ee]=D.useState(!1);c&&de&&ee(!1),D.useImperativeHandle(o,()=>({focusVisible:()=>{ee(!0),ue.current.focus()}}),[]);const k=X.shouldMount&&!d&&!c;D.useEffect(()=>{de&&h&&!d&&X.pulsate()},[d,h,de,X]);const J=vr(X,"start",M,u),Ee=vr(X,"stop",E,u),he=vr(X,"stop",v,u),ye=vr(X,"stop",B,u),me=vr(X,"stop",ge=>{de&&ge.preventDefault(),q&&q(ge)},u),Fe=vr(X,"start",F,u),Oe=vr(X,"stop",y,u),Te=vr(X,"stop",R,u),gt=vr(X,"stop",ge=>{xg(ge.target)||ee(!1),b&&b(ge)},!1),Ze=Qs(ge=>{ue.current||(ue.current=ge.currentTarget),xg(ge.target)&&(ee(!0),I&&I(ge)),C&&C(ge)}),be=()=>{const ge=ue.current;return l&&l!=="button"&&!(ge.tagName==="A"&&ge.href)},Xt=Qs(ge=>{h&&!ge.repeat&&de&&ge.key===" "&&X.stop(ge,()=>{X.start(ge)}),ge.target===ge.currentTarget&&be()&&ge.key===" "&&ge.preventDefault(),N&&N(ge),ge.target===ge.currentTarget&&be()&&ge.key==="Enter"&&!c&&(ge.preventDefault(),x&&x(ge))}),vt=Qs(ge=>{h&&ge.key===" "&&de&&!ge.defaultPrevented&&X.stop(ge,()=>{X.pulsate(ge)}),S&&S(ge),x&&ge.target===ge.currentTarget&&be()&&ge.key===" "&&!ge.defaultPrevented&&x(ge)});let De=l;De==="button"&&(fe.href||fe.to)&&(De=g);const wt={};De==="button"?(wt.type=re===void 0?"button":re,wt.disabled=c):(!fe.href&&!fe.to&&(wt.role="button"),c&&(wt["aria-disabled"]=c));const yt=gd(n,ue),bt={...r,centerRipple:a,component:l,disabled:c,disableRipple:d,disableTouchRipple:u,focusRipple:h,tabIndex:$,focusVisible:de},ke=$8(bt);return f.jsxs(O8,{as:De,className:Wt(ke.root,s),ownerState:bt,onBlur:gt,onClick:x,onContextMenu:Ee,onFocus:Ze,onKeyDown:Xt,onKeyUp:vt,onMouseDown:J,onMouseLeave:me,onMouseUp:ye,onDragLeave:he,onTouchEnd:Oe,onTouchMove:Te,onTouchStart:Fe,ref:yt,tabIndex:c?-1:$,type:re,...wt,...fe,children:[i,k?f.jsx(P8,{ref:A,center:a,...U}):null]})});function vr(e,t,n,r=!1){return Qs(o=>(n&&n(o),r||e[t](o),!0))}const M8=dn(DE,{name:"MuiBreadcrumbCollapsed"})(Lo(({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode==="light"?{backgroundColor:pd(e.palette.grey[200],.12)}:{backgroundColor:pd(e.palette.grey[600],.12)}}}))),F8=dn(d8)({width:24,height:16});function B8(e){const{slots:t={},slotProps:n={},...r}=e,o=e;return f.jsx("li",{children:f.jsx(M8,{focusRipple:!0,...r,ownerState:o,children:f.jsx(F8,{as:t.CollapsedIcon,ownerState:o,...n.collapsedIcon})})})}function j8(e){return Uo("MuiBreadcrumbs",e)}const H8=zo("MuiBreadcrumbs",["root","ol","li","separator"]),U8=e=>{const{classes:t}=e;return Ra({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},j8,t)},z8=dn(s8,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${H8.li}`]:t.li},t.root]})({}),G8=dn("ol",{name:"MuiBreadcrumbs",slot:"Ol"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),q8=dn("li",{name:"MuiBreadcrumbs",slot:"Separator"})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function W8(e,t,n,r){return e.reduce((o,a,i)=>(i<e.length-1?o=o.concat(a,f.jsx(q8,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${i}`)):o.push(a),o),[])}const V8=D.forwardRef(function(t,n){const r=ro({props:t,name:"MuiBreadcrumbs"}),{children:o,className:a,component:i="nav",slots:s={},slotProps:l={},expandText:c="Show path",itemsAfterCollapse:d=1,itemsBeforeCollapse:u=1,maxItems:h=8,separator:p="/",...g}=r,[b,x]=D.useState(!1),E={...r,component:i,expanded:b,expandText:c,itemsAfterCollapse:d,itemsBeforeCollapse:u,maxItems:h,separator:p},v=U8(E),C=J9({elementType:s.CollapsedIcon,externalSlotProps:l.collapsedIcon,ownerState:E}),I=D.useRef(null),N=M=>{const q=()=>{x(!0);const B=I.current.querySelector("a[href],button,[tabindex]");B&&B.focus()};return u+d>=M.length?M:[...M.slice(0,u),f.jsx(B8,{"aria-label":c,slots:{CollapsedIcon:s.CollapsedIcon},slotProps:{collapsedIcon:C},onClick:q},"ellipsis"),...M.slice(M.length-d,M.length)]},S=D.Children.toArray(o).filter(M=>D.isValidElement(M)).map((M,q)=>f.jsx("li",{className:v.li,children:M},`child-${q}`));return f.jsx(z8,{ref:n,component:i,color:"textSecondary",className:Wt(v.root,a),ownerState:E,...g,children:f.jsx(G8,{className:v.ol,ref:I,ownerState:E,children:W8(b||h&&S.length<=h?S:N(S),v.separator,p,E)})})});function wE(){const e=ts(),t=e["*"],n=rs();return f.jsx(T.Box,{sx:{display:"flex",alignItems:"center"},children:f.jsxs(V8,{"aria-label":"breadcrumb",separator:f.jsx(Eu.ChevronRight,{sx:{fontSize:14,color:"text.secondary"}}),sx:{"& .MuiBreadcrumbs-separator":{margin:"0 6px"}},children:[e.projectName&&f.jsx(T.Chip,{onClick:r=>n(`/${e.projectName}/`,r),label:e.projectName,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"1rem",cursor:"pointer","&:hover":{backgroundColor:"primary.100"}}}),e.packageName&&f.jsx(T.Chip,{onClick:r=>n(`/${e.projectName}/${e.packageName}/`,r),label:e.packageName,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"1rem",cursor:"pointer","&:hover":{backgroundColor:"secondary.100"}}}),t&&f.jsx(T.Chip,{onClick:r=>n(`/${e.projectName}/${e.packageName}/${t}`,r),label:t,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"1rem",cursor:"pointer","&:hover":{backgroundColor:"grey.200"}}})]})})}function Y8({logoHeader:e,endCap:t}){const n=$h();return f.jsx(T.AppBar,{position:"sticky",elevation:0,sx:{backgroundColor:"background.paper",borderBottom:"1px solid",borderColor:"divider"},children:f.jsxs(T.Toolbar,{sx:{justifyContent:"space-between"},children:[f.jsxs(T.Stack,{direction:"row",spacing:2,alignItems:"center",children:[e||f.jsxs(T.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[f.jsx(T.Box,{component:"img",src:"/logo.svg",alt:"Malloy",sx:{width:28,height:28}}),f.jsx(T.Typography,{variant:"h5",sx:{color:"text.primary",fontWeight:700,letterSpacing:"-0.025em",cursor:"pointer"},onClick:()=>{n("/")},children:"Malloy Publisher"})]}),f.jsx(wE,{})]}),f.jsxs(T.Stack,{direction:"row",spacing:2,alignItems:"center",children:[!e&&f.jsxs(f.Fragment,{children:[f.jsx(T.Button,{href:"https://docs.malloydata.dev/documentation/",children:"Malloy Docs"}),f.jsx(T.Button,{href:"https://github.com/malloydata/publisher/blob/main/README.md",children:"Publisher Docs"}),f.jsx(T.Button,{href:"/api-doc.html",children:"Publisher API"})]}),t]})]})})}function NE({headerProps:e}){return f.jsxs(T.Box,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh"},children:[f.jsx(Y8,{...e}),f.jsx(IE,{maxWidth:"xl",component:"main",sx:{flex:1,display:"flex",flexDirection:"column",py:2,gap:2},children:f.jsx(T.Box,{sx:{flex:1},children:f.jsx(SM,{})})})]})}function PE(){const e=ts(),t=e["*"];return e.projectName?e.packageName?t?.endsWith(".malloy")?f.jsx(pl,{projectName:e.projectName,packageName:e.packageName,children:f.jsx(kF,{modelPath:t})}):t?.endsWith(".malloynb")?f.jsx(pl,{projectName:e.projectName,packageName:e.packageName,children:f.jsx(y1,{notebookPath:t})}):f.jsx("div",{children:f.jsxs("h2",{children:["Unrecognized file type: ",t]})}):f.jsx("div",{children:f.jsx("h2",{children:"Missing package name"})}):f.jsx("div",{children:f.jsx("h2",{children:"Missing project name"})})}function RE(){const{projectName:e,packageName:t}=ts(),n=rs();return e?t?f.jsx(pl,{projectName:e,packageName:t,children:f.jsx(IF,{navigate:n})}):f.jsx("div",{children:f.jsx("h2",{children:"Missing package name"})}):f.jsx("div",{children:f.jsx("h2",{children:"Missing project name"})})}function LE(){const e=rs(),{projectName:t}=ts();return t?f.jsx(z0,{projectName:t,children:f.jsx(Nk,{navigate:e})}):f.jsx("div",{children:f.jsx("h2",{children:"Missing project name"})})}function $E(){const e=tE();return console.error(e),f.jsx(IE,{maxWidth:"lg",component:"main",sx:{display:"flex",flexDirection:"column",my:2,gap:0},children:f.jsxs(T.Stack,{sx:{m:"auto",flexDirection:"column"},children:[f.jsx(T.Box,{sx:{height:"300px"}}),f.jsx("img",{src:"/error.png"}),f.jsx(T.Typography,{variant:"subtitle1",children:"An unexpected error occurred"})]})})}function OE(){const{workspace:e,workbookPath:t,projectName:n,packageName:r}=ts();return e?t?n?r?f.jsx(pl,{projectName:n,packageName:r,children:f.jsx(lF,{defaultProjectName:n,defaultPackageName:r,workbookPath:{path:t,workspace:e}},`${t}`)}):f.jsx("div",{children:f.jsx("h2",{children:"Missing package name"})}):f.jsx("div",{children:f.jsx("h2",{children:"Missing project name"})}):f.jsx("div",{children:f.jsx("h2",{children:"Missing workbook path"})}):f.jsx("div",{children:f.jsx("h2",{children:"Missing workspace"})})}const Tt={primary:{main:"#14b3cb",light:"#22d3ee",dark:"#0e7490",50:"#ecfeff",100:"#cffafe",500:"#14b3cb",600:"#0891b2",700:"#0e7490"},secondary:{main:"#fbbb04",light:"#fde047",dark:"#eab308",50:"#fefce8",100:"#fef3c7",500:"#fbbb04",600:"#eab308",700:"#ca8a04"},grey:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},success:{main:"#059669",light:"#10b981",dark:"#047857"},warning:{main:"#d97706",light:"#f59e0b",dark:"#b45309"},error:{main:"#dc2626",light:"#ef4444",dark:"#b91c1c"},info:{main:"#0891b2",light:"#06b6d4",dark:"#0e7490"}},ME=Kh({palette:{mode:"light",primary:Tt.primary,secondary:Tt.secondary,grey:Tt.grey,success:Tt.success,warning:Tt.warning,error:Tt.error,info:Tt.info,background:{default:"#ffffff",paper:"#ffffff"},text:{primary:Tt.grey[900],secondary:Tt.grey[600]},divider:Tt.grey[200]},typography:{fontFamily:'"Inter", "Roboto", "Helvetica", "Arial", sans-serif',h1:{fontWeight:700,letterSpacing:"-0.025em"},h2:{fontWeight:700,letterSpacing:"-0.025em"},h3:{fontWeight:600,letterSpacing:"-0.025em"},h4:{fontWeight:600,letterSpacing:"-0.025em"},h5:{fontWeight:600,letterSpacing:"-0.025em"},h6:{fontWeight:600,letterSpacing:"-0.025em"},subtitle1:{fontWeight:500,letterSpacing:"-0.025em"},subtitle2:{fontWeight:500,letterSpacing:"-0.025em"},body1:{letterSpacing:"-0.025em"},body2:{letterSpacing:"-0.025em"},button:{fontWeight:500,letterSpacing:"-0.025em",textTransform:"none"}},shape:{borderRadius:4},components:{MuiCssBaseline:{styleOverrides:{body:{scrollbarWidth:"thin",scrollbarColor:`${Tt.grey[300]} ${Tt.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:Tt.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:Tt.grey[300],borderRadius:"4px","&:hover":{background:Tt.grey[400]}},"&::-webkit-scrollbar-corner":{background:Tt.grey[100]}},"*":{scrollbarWidth:"thin",scrollbarColor:`${Tt.grey[300]} ${Tt.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:Tt.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:Tt.grey[300],borderRadius:"4px","&:hover":{background:Tt.grey[400]}},"&::-webkit-scrollbar-corner":{background:Tt.grey[100]}}}},MuiButton:{styleOverrides:{root:{borderRadius:4,textTransform:"none",fontWeight:500,boxShadow:"none","&:hover":{boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)"}},contained:{"&:hover":{boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}}}},MuiCard:{styleOverrides:{root:{borderRadius:4,boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)",border:"1px solid",borderColor:"rgba(0, 0, 0, 0.05)"}}},MuiChip:{styleOverrides:{root:{borderRadius:4,fontWeight:500}}},MuiTextField:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{borderRadius:4}}}},MuiDialog:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04)"}}},MuiMenu:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05)",border:"1px solid rgba(0, 0, 0, 0.05)"}}},MuiBreadcrumbs:{styleOverrides:{root:{"& .MuiBreadcrumbs-separator":{margin:"0 6px",color:Tt.grey[400]}}}},MuiDivider:{styleOverrides:{root:{margin:"4px 0",borderColor:Tt.grey[200]}},defaultProps:{sx:{my:1}}}}}),FE=(e="/",t,n,r,o)=>YM([{path:e,element:f.jsx(wI,{server:r,getAccessToken:o,children:f.jsx(K$,{workbookStorage:t,children:f.jsxs(W9,{theme:ME,children:[f.jsx(T.CssBaseline,{}),f.jsx(NE,{headerProps:n})]})})}),errorElement:f.jsx($E,{}),children:[{path:"",element:f.jsx(AE,{})},{path:":projectName",element:f.jsx(LE,{})},{path:":projectName/:packageName",element:f.jsx(RE,{})},{path:":projectName/:packageName/*",element:f.jsx(PE,{})},{path:":projectName/:packageName/workbook/:workspace/:workbookPath",element:f.jsx(OE,{})}]}]),K8=({server:e,getAccessToken:t,workbookStorage:n,basePath:r="/",headerProps:o})=>{const a=FE(r,n,o,e,t);return f.jsx(iF,{router:a})};function Q8(e){return Uo("MuiCircularProgress",e)}zo("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Br=44,Td=qe.keyframes`
282
+ `,P8=D.forwardRef(function(t,n){const r=ro({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i,...s}=r,[l,c]=D.useState([]),d=D.useRef(0),u=D.useRef(null);D.useEffect(()=>{u.current&&(u.current(),u.current=null)},[l]);const h=D.useRef(!1),p=S8(),g=D.useRef(null),b=D.useRef(null),x=D.useCallback(I=>{const{pulsate:w,rippleX:S,rippleY:M,rippleSize:q,cb:B}=I;c(y=>[...y,f.jsx(N8,{classes:{ripple:Wt(a.ripple,Ln.ripple),rippleVisible:Wt(a.rippleVisible,Ln.rippleVisible),ripplePulsate:Wt(a.ripplePulsate,Ln.ripplePulsate),child:Wt(a.child,Ln.child),childLeaving:Wt(a.childLeaving,Ln.childLeaving),childPulsate:Wt(a.childPulsate,Ln.childPulsate)},timeout:xd,pulsate:w,rippleX:S,rippleY:M,rippleSize:q},d.current)]),d.current+=1,u.current=B},[a]),E=D.useCallback((I={},w={},S=()=>{})=>{const{pulsate:M=!1,center:q=o||w.pulsate,fakeElement:B=!1}=w;if(I?.type==="mousedown"&&h.current){h.current=!1;return}I?.type==="touchstart"&&(h.current=!0);const y=B?null:b.current,R=y?y.getBoundingClientRect():{width:0,height:0,left:0,top:0};let F,$,U;if(q||I===void 0||I.clientX===0&&I.clientY===0||!I.clientX&&!I.touches)F=Math.round(R.width/2),$=Math.round(R.height/2);else{const{clientX:Y,clientY:re}=I.touches&&I.touches.length>0?I.touches[0]:I;F=Math.round(Y-R.left),$=Math.round(re-R.top)}if(q)U=Math.sqrt((2*R.width**2+R.height**2)/3),U%2===0&&(U+=1);else{const Y=Math.max(Math.abs((y?y.clientWidth:0)-F),F)*2+2,re=Math.max(Math.abs((y?y.clientHeight:0)-$),$)*2+2;U=Math.sqrt(Y**2+re**2)}I?.touches?g.current===null&&(g.current=()=>{x({pulsate:M,rippleX:F,rippleY:$,rippleSize:U,cb:S})},p.start(A8,()=>{g.current&&(g.current(),g.current=null)})):x({pulsate:M,rippleX:F,rippleY:$,rippleSize:U,cb:S})},[o,x,p]),v=D.useCallback(()=>{E({},{pulsate:!0})},[E]),C=D.useCallback((I,w)=>{if(p.clear(),I?.type==="touchend"&&g.current){g.current(),g.current=null,p.start(0,()=>{C(I,w)});return}g.current=null,c(S=>S.length>0?S.slice(1):S),u.current=w},[p]);return D.useImperativeHandle(n,()=>({pulsate:v,start:E,stop:C}),[v,E,C]),f.jsx(w8,{className:Wt(Ln.root,a.root,i),ref:b,...s,children:f.jsx(Jh,{component:null,exit:!0,children:l})})});function R8(e){return Uo("MuiButtonBase",e)}const L8=zo("MuiButtonBase",["root","disabled","focusVisible"]),$8=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Ra({root:["root",t&&"disabled",n&&"focusVisible"]},R8,o);return n&&r&&(i.root+=` ${r}`),i},O8=dn("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${L8.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),DE=D.forwardRef(function(t,n){const r=ro({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:l="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:u=!1,focusRipple:h=!1,focusVisibleClassName:p,LinkComponent:g="a",onBlur:b,onClick:x,onContextMenu:E,onDragLeave:v,onFocus:C,onFocusVisible:I,onKeyDown:w,onKeyUp:S,onMouseDown:M,onMouseLeave:q,onMouseUp:B,onTouchEnd:y,onTouchMove:R,onTouchStart:F,tabIndex:$=0,TouchRippleProps:U,touchRippleRef:Y,type:re,...fe}=r,ue=D.useRef(null),X=h8(),A=gd(X.ref,Y),[de,ee]=D.useState(!1);c&&de&&ee(!1),D.useImperativeHandle(o,()=>({focusVisible:()=>{ee(!0),ue.current.focus()}}),[]);const k=X.shouldMount&&!d&&!c;D.useEffect(()=>{de&&h&&!d&&X.pulsate()},[d,h,de,X]);const J=vr(X,"start",M,u),Ee=vr(X,"stop",E,u),he=vr(X,"stop",v,u),ye=vr(X,"stop",B,u),me=vr(X,"stop",ge=>{de&&ge.preventDefault(),q&&q(ge)},u),Fe=vr(X,"start",F,u),Oe=vr(X,"stop",y,u),Te=vr(X,"stop",R,u),gt=vr(X,"stop",ge=>{xg(ge.target)||ee(!1),b&&b(ge)},!1),Ze=Qs(ge=>{ue.current||(ue.current=ge.currentTarget),xg(ge.target)&&(ee(!0),I&&I(ge)),C&&C(ge)}),be=()=>{const ge=ue.current;return l&&l!=="button"&&!(ge.tagName==="A"&&ge.href)},Xt=Qs(ge=>{h&&!ge.repeat&&de&&ge.key===" "&&X.stop(ge,()=>{X.start(ge)}),ge.target===ge.currentTarget&&be()&&ge.key===" "&&ge.preventDefault(),w&&w(ge),ge.target===ge.currentTarget&&be()&&ge.key==="Enter"&&!c&&(ge.preventDefault(),x&&x(ge))}),vt=Qs(ge=>{h&&ge.key===" "&&de&&!ge.defaultPrevented&&X.stop(ge,()=>{X.pulsate(ge)}),S&&S(ge),x&&ge.target===ge.currentTarget&&be()&&ge.key===" "&&!ge.defaultPrevented&&x(ge)});let De=l;De==="button"&&(fe.href||fe.to)&&(De=g);const wt={};De==="button"?(wt.type=re===void 0?"button":re,wt.disabled=c):(!fe.href&&!fe.to&&(wt.role="button"),c&&(wt["aria-disabled"]=c));const yt=gd(n,ue),bt={...r,centerRipple:a,component:l,disabled:c,disableRipple:d,disableTouchRipple:u,focusRipple:h,tabIndex:$,focusVisible:de},ke=$8(bt);return f.jsxs(O8,{as:De,className:Wt(ke.root,s),ownerState:bt,onBlur:gt,onClick:x,onContextMenu:Ee,onFocus:Ze,onKeyDown:Xt,onKeyUp:vt,onMouseDown:J,onMouseLeave:me,onMouseUp:ye,onDragLeave:he,onTouchEnd:Oe,onTouchMove:Te,onTouchStart:Fe,ref:yt,tabIndex:c?-1:$,type:re,...wt,...fe,children:[i,k?f.jsx(P8,{ref:A,center:a,...U}):null]})});function vr(e,t,n,r=!1){return Qs(o=>(n&&n(o),r||e[t](o),!0))}const M8=dn(DE,{name:"MuiBreadcrumbCollapsed"})(Lo(({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode==="light"?{backgroundColor:pd(e.palette.grey[200],.12)}:{backgroundColor:pd(e.palette.grey[600],.12)}}}))),F8=dn(d8)({width:24,height:16});function B8(e){const{slots:t={},slotProps:n={},...r}=e,o=e;return f.jsx("li",{children:f.jsx(M8,{focusRipple:!0,...r,ownerState:o,children:f.jsx(F8,{as:t.CollapsedIcon,ownerState:o,...n.collapsedIcon})})})}function j8(e){return Uo("MuiBreadcrumbs",e)}const H8=zo("MuiBreadcrumbs",["root","ol","li","separator"]),U8=e=>{const{classes:t}=e;return Ra({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},j8,t)},z8=dn(s8,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${H8.li}`]:t.li},t.root]})({}),G8=dn("ol",{name:"MuiBreadcrumbs",slot:"Ol"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),q8=dn("li",{name:"MuiBreadcrumbs",slot:"Separator"})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function W8(e,t,n,r){return e.reduce((o,a,i)=>(i<e.length-1?o=o.concat(a,f.jsx(q8,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${i}`)):o.push(a),o),[])}const V8=D.forwardRef(function(t,n){const r=ro({props:t,name:"MuiBreadcrumbs"}),{children:o,className:a,component:i="nav",slots:s={},slotProps:l={},expandText:c="Show path",itemsAfterCollapse:d=1,itemsBeforeCollapse:u=1,maxItems:h=8,separator:p="/",...g}=r,[b,x]=D.useState(!1),E={...r,component:i,expanded:b,expandText:c,itemsAfterCollapse:d,itemsBeforeCollapse:u,maxItems:h,separator:p},v=U8(E),C=J9({elementType:s.CollapsedIcon,externalSlotProps:l.collapsedIcon,ownerState:E}),I=D.useRef(null),w=M=>{const q=()=>{x(!0);const B=I.current.querySelector("a[href],button,[tabindex]");B&&B.focus()};return u+d>=M.length?M:[...M.slice(0,u),f.jsx(B8,{"aria-label":c,slots:{CollapsedIcon:s.CollapsedIcon},slotProps:{collapsedIcon:C},onClick:q},"ellipsis"),...M.slice(M.length-d,M.length)]},S=D.Children.toArray(o).filter(M=>D.isValidElement(M)).map((M,q)=>f.jsx("li",{className:v.li,children:M},`child-${q}`));return f.jsx(z8,{ref:n,component:i,color:"textSecondary",className:Wt(v.root,a),ownerState:E,...g,children:f.jsx(G8,{className:v.ol,ref:I,ownerState:E,children:W8(b||h&&S.length<=h?S:w(S),v.separator,p,E)})})});function wE(){const e=ts(),t=e["*"],n=rs();return f.jsx(T.Box,{sx:{display:"flex",alignItems:"center"},children:f.jsxs(V8,{"aria-label":"breadcrumb",separator:f.jsx(Eu.ChevronRight,{sx:{fontSize:14,color:"text.secondary"}}),sx:{"& .MuiBreadcrumbs-separator":{margin:"0 6px"}},children:[e.projectName&&f.jsx(T.Chip,{onClick:r=>n(`/${e.projectName}/`,r),label:e.projectName,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"1rem",cursor:"pointer","&:hover":{backgroundColor:"primary.100"}}}),e.packageName&&f.jsx(T.Chip,{onClick:r=>n(`/${e.projectName}/${e.packageName}/`,r),label:e.packageName,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"1rem",cursor:"pointer","&:hover":{backgroundColor:"secondary.100"}}}),t&&f.jsx(T.Chip,{onClick:r=>n(`/${e.projectName}/${e.packageName}/${t}`,r),label:t,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"1rem",cursor:"pointer","&:hover":{backgroundColor:"grey.200"}}})]})})}function Y8({logoHeader:e,endCap:t}){const n=$h();return f.jsx(T.AppBar,{position:"sticky",elevation:0,sx:{backgroundColor:"background.paper",borderBottom:"1px solid",borderColor:"divider"},children:f.jsxs(T.Toolbar,{sx:{justifyContent:"space-between"},children:[f.jsxs(T.Stack,{direction:"row",spacing:2,alignItems:"center",children:[e||f.jsxs(T.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[f.jsx(T.Box,{component:"img",src:"/logo.svg",alt:"Malloy",sx:{width:28,height:28}}),f.jsx(T.Typography,{variant:"h5",sx:{color:"text.primary",fontWeight:700,letterSpacing:"-0.025em",cursor:"pointer"},onClick:()=>{n("/")},children:"Malloy Publisher"})]}),f.jsx(wE,{})]}),f.jsxs(T.Stack,{direction:"row",spacing:2,alignItems:"center",children:[!e&&f.jsxs(f.Fragment,{children:[f.jsx(T.Button,{href:"https://docs.malloydata.dev/documentation/",children:"Malloy Docs"}),f.jsx(T.Button,{href:"https://github.com/malloydata/publisher/blob/main/README.md",children:"Publisher Docs"}),f.jsx(T.Button,{href:"/api-doc.html",children:"Publisher API"})]}),t]})]})})}function NE({headerProps:e}){return f.jsxs(T.Box,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh"},children:[f.jsx(Y8,{...e}),f.jsx(IE,{maxWidth:"xl",component:"main",sx:{flex:1,display:"flex",flexDirection:"column",py:2,gap:2},children:f.jsx(T.Box,{sx:{flex:1},children:f.jsx(SM,{})})})]})}function PE(){const e=ts(),t=e["*"];return e.projectName?e.packageName?t?.endsWith(".malloy")?f.jsx(pl,{projectName:e.projectName,packageName:e.packageName,children:f.jsx(kF,{modelPath:t})}):t?.endsWith(".malloynb")?f.jsx(pl,{projectName:e.projectName,packageName:e.packageName,children:f.jsx(y1,{notebookPath:t})}):f.jsx("div",{children:f.jsxs("h2",{children:["Unrecognized file type: ",t]})}):f.jsx("div",{children:f.jsx("h2",{children:"Missing package name"})}):f.jsx("div",{children:f.jsx("h2",{children:"Missing project name"})})}function RE(){const{projectName:e,packageName:t}=ts(),n=rs();return e?t?f.jsx(pl,{projectName:e,packageName:t,children:f.jsx(IF,{navigate:n})}):f.jsx("div",{children:f.jsx("h2",{children:"Missing package name"})}):f.jsx("div",{children:f.jsx("h2",{children:"Missing project name"})})}function LE(){const e=rs(),{projectName:t}=ts();return t?f.jsx(z0,{projectName:t,children:f.jsx(Nk,{navigate:e})}):f.jsx("div",{children:f.jsx("h2",{children:"Missing project name"})})}function $E(){const e=tE();return console.error(e),f.jsx(IE,{maxWidth:"lg",component:"main",sx:{display:"flex",flexDirection:"column",my:2,gap:0},children:f.jsxs(T.Stack,{sx:{m:"auto",flexDirection:"column"},children:[f.jsx(T.Box,{sx:{height:"300px"}}),f.jsx("img",{src:"/error.png"}),f.jsx(T.Typography,{variant:"subtitle1",children:"An unexpected error occurred"})]})})}function OE(){const{workspace:e,workbookPath:t,projectName:n,packageName:r}=ts();return e?t?n?r?f.jsx(pl,{projectName:n,packageName:r,children:f.jsx(lF,{defaultProjectName:n,defaultPackageName:r,workbookPath:{path:t,workspace:e}},`${t}`)}):f.jsx("div",{children:f.jsx("h2",{children:"Missing package name"})}):f.jsx("div",{children:f.jsx("h2",{children:"Missing project name"})}):f.jsx("div",{children:f.jsx("h2",{children:"Missing workbook path"})}):f.jsx("div",{children:f.jsx("h2",{children:"Missing workspace"})})}const Tt={primary:{main:"#14b3cb",light:"#22d3ee",dark:"#0e7490",50:"#ecfeff",100:"#cffafe",500:"#14b3cb",600:"#0891b2",700:"#0e7490"},secondary:{main:"#fbbb04",light:"#fde047",dark:"#eab308",50:"#fefce8",100:"#fef3c7",500:"#fbbb04",600:"#eab308",700:"#ca8a04"},grey:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},success:{main:"#059669",light:"#10b981",dark:"#047857"},warning:{main:"#d97706",light:"#f59e0b",dark:"#b45309"},error:{main:"#dc2626",light:"#ef4444",dark:"#b91c1c"},info:{main:"#0891b2",light:"#06b6d4",dark:"#0e7490"}},ME=Kh({palette:{mode:"light",primary:Tt.primary,secondary:Tt.secondary,grey:Tt.grey,success:Tt.success,warning:Tt.warning,error:Tt.error,info:Tt.info,background:{default:"#ffffff",paper:"#ffffff"},text:{primary:Tt.grey[900],secondary:Tt.grey[600]},divider:Tt.grey[200]},typography:{fontFamily:'"Inter", "Roboto", "Helvetica", "Arial", sans-serif',h1:{fontWeight:700,letterSpacing:"-0.025em"},h2:{fontWeight:700,letterSpacing:"-0.025em"},h3:{fontWeight:600,letterSpacing:"-0.025em"},h4:{fontWeight:600,letterSpacing:"-0.025em"},h5:{fontWeight:600,letterSpacing:"-0.025em"},h6:{fontWeight:600,letterSpacing:"-0.025em"},subtitle1:{fontWeight:500,letterSpacing:"-0.025em"},subtitle2:{fontWeight:500,letterSpacing:"-0.025em"},body1:{letterSpacing:"-0.025em"},body2:{letterSpacing:"-0.025em"},button:{fontWeight:500,letterSpacing:"-0.025em",textTransform:"none"}},shape:{borderRadius:4},components:{MuiCssBaseline:{styleOverrides:{body:{scrollbarWidth:"thin",scrollbarColor:`${Tt.grey[300]} ${Tt.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:Tt.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:Tt.grey[300],borderRadius:"4px","&:hover":{background:Tt.grey[400]}},"&::-webkit-scrollbar-corner":{background:Tt.grey[100]}},"*":{scrollbarWidth:"thin",scrollbarColor:`${Tt.grey[300]} ${Tt.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:Tt.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:Tt.grey[300],borderRadius:"4px","&:hover":{background:Tt.grey[400]}},"&::-webkit-scrollbar-corner":{background:Tt.grey[100]}}}},MuiButton:{styleOverrides:{root:{borderRadius:4,textTransform:"none",fontWeight:500,boxShadow:"none","&:hover":{boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)"}},contained:{"&:hover":{boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}}}},MuiCard:{styleOverrides:{root:{borderRadius:4,boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)",border:"1px solid",borderColor:"rgba(0, 0, 0, 0.05)"}}},MuiChip:{styleOverrides:{root:{borderRadius:4,fontWeight:500}}},MuiTextField:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{borderRadius:4}}}},MuiDialog:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04)"}}},MuiMenu:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05)",border:"1px solid rgba(0, 0, 0, 0.05)"}}},MuiBreadcrumbs:{styleOverrides:{root:{"& .MuiBreadcrumbs-separator":{margin:"0 6px",color:Tt.grey[400]}}}},MuiDivider:{styleOverrides:{root:{margin:"4px 0",borderColor:Tt.grey[200]}},defaultProps:{sx:{my:1}}}}}),FE=(e="/",t,n,r,o)=>YM([{path:e,element:f.jsx(wI,{server:r,getAccessToken:o,children:f.jsx(K$,{workbookStorage:t,children:f.jsxs(W9,{theme:ME,children:[f.jsx(T.CssBaseline,{}),f.jsx(NE,{headerProps:n})]})})}),errorElement:f.jsx($E,{}),children:[{path:"",element:f.jsx(AE,{})},{path:":projectName",element:f.jsx(LE,{})},{path:":projectName/:packageName",element:f.jsx(RE,{})},{path:":projectName/:packageName/*",element:f.jsx(PE,{})},{path:":projectName/:packageName/workbook/:workspace/:workbookPath",element:f.jsx(OE,{})}]}]),K8=({server:e,getAccessToken:t,workbookStorage:n,basePath:r="/",headerProps:o})=>{const a=FE(r,n,o,e,t);return f.jsx(iF,{router:a})};function Q8(e){return Uo("MuiCircularProgress",e)}zo("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Br=44,Td=qe.keyframes`
283
283
  0% {
284
284
  transform: rotate(0deg);
285
285
  }