@malloy-publisher/server 0.0.94 → 0.0.97

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 (290) hide show
  1. package/dist/app/assets/{index-TVOAGCOZ.js → index-BIibKHZO.js} +6 -6
  2. package/dist/app/assets/index-D4eYZfPc.js +287 -0
  3. package/dist/app/assets/{index-Bq29VQqL.js → index-SM0qJxoC.js} +241 -241
  4. package/dist/app/assets/{index.es162-DjehWeVi.js → index.es126-CKC26ttZ.js} +1 -1
  5. package/dist/app/assets/{index.es163-Cn6ymEKN.js → index.es127-CBKpWhIe.js} +1 -1
  6. package/dist/app/assets/{index.es166-Dz17gOib.js → index.es130-5z_n6lm6.js} +1 -1
  7. package/dist/app/assets/{index.es171-D0jXlw9l.js → index.es135-aJw1Xr-9.js} +1 -1
  8. package/dist/app/assets/{index.es179-CgGW5qRb.js → index.es143-CAt8G2AV.js} +1 -1
  9. package/dist/app/assets/{index.es180-DDBKIFdG.js → index.es144-CaWYrbVR.js} +1 -1
  10. package/dist/app/assets/{index.es183-CBW1fnbb.js → index.es147-B_4j3qbz.js} +1 -1
  11. package/dist/app/assets/{index.es187-DF7wmOI7.js → index.es151-Byg3j7QH.js} +1 -1
  12. package/dist/app/assets/{index.es190-DWgf4H-t.js → index.es154-D8PMiD5x.js} +1 -1
  13. package/dist/app/assets/{index.es193-xm_HeVIy.js → index.es157-qx6EMeW2.js} +1 -1
  14. package/dist/app/assets/{index.es194-DbZjE_Oe.js → index.es158-CJWvYXRx.js} +1 -1
  15. package/dist/app/assets/{index.es208-D1EDhCBL.js → index.es172-BamsV9CN.js} +1 -1
  16. package/dist/app/assets/{index.es209-358riOK7.js → index.es173-CXyGU58j.js} +1 -1
  17. package/dist/app/assets/{index.es210-BgthglSG.js → index.es174-C2o3B3o8.js} +1 -1
  18. package/dist/app/assets/{index.es212-CD-lrWnJ.js → index.es176-BB-1P5bb.js} +1 -1
  19. package/dist/app/assets/{index.es217-CJM4XQU4.js → index.es181-2PlTGcYG.js} +1 -1
  20. package/dist/app/assets/{index.es219-BAcq47kQ.js → index.es183-DgoVwe-N.js} +1 -1
  21. package/dist/app/assets/{index.es220-FIR0uO3Z.js → index.es184-Cmc38osU.js} +1 -1
  22. package/dist/app/assets/{index.es225-BW0QuDEU.js → index.es189-DuMu0KfI.js} +1 -1
  23. package/dist/app/assets/{index.es226-OZjmh8DW.js → index.es190-C117wYiK.js} +1 -1
  24. package/dist/app/assets/{index.es228-yL7UTgkg.js → index.es192-Bm2ZoxNH.js} +1 -1
  25. package/dist/app/assets/{index.es229-BxdgOaeI.js → index.es193-BBtnt1bZ.js} +1 -1
  26. package/dist/app/assets/{index.es230-D7qaa3vU.js → index.es194-CB2Nn3wg.js} +1 -1
  27. package/dist/app/assets/{index.es233-ChrWTqJS.js → index.es197-D91osx4R.js} +1 -1
  28. package/dist/app/assets/{index.es235-C_llaqlU.js → index.es199-BtpESJSS.js} +1 -1
  29. package/dist/app/assets/{index.es236-Bpao3w_n.js → index.es200-BeG9RRw_.js} +1 -1
  30. package/dist/app/assets/{index.es237-BspTzGnw.js → index.es201-k2nuCC3B.js} +1 -1
  31. package/dist/app/assets/{index.es243-Du-LtkxO.js → index.es207-C2uQegug.js} +1 -1
  32. package/dist/app/assets/{index.es244-Dmu8QZ0L.js → index.es208-BTucFWqR.js} +1 -1
  33. package/dist/app/assets/{index.es245-Cz7t32Qg.js → index.es209-4dK47W8o.js} +1 -1
  34. package/dist/app/assets/{index.es246-BOGVWhXq.js → index.es210-DO6X3-kz.js} +1 -1
  35. package/dist/app/assets/{index.es248-C8RgZFH6.js → index.es212-CFG-vrrr.js} +1 -1
  36. package/dist/app/assets/{index.es252-K5z2dppi.js → index.es216-TWO3Mhor.js} +1 -1
  37. package/dist/app/assets/{index.es253-CFVa6H-r.js → index.es217-0tHVUThG.js} +1 -1
  38. package/dist/app/assets/{index.es261-DKGfXt6W.js → index.es225-DHGKCs7a.js} +1 -1
  39. package/dist/app/assets/{index.es264-D-M46xK6.js → index.es228-Bz0ZvI5L.js} +1 -1
  40. package/dist/app/assets/{index.es50-RRV_pHUk.js → index.es23-Cifiq2N-.js} +2 -2
  41. package/dist/app/assets/{index.es267-bsSGk7Qt.js → index.es231-D1HdFvsl.js} +1 -1
  42. package/dist/app/assets/{index.es270-CAhgPSnC.js → index.es234-1j9jt1V9.js} +1 -1
  43. package/dist/app/assets/{index.es274-ByAjwomg.js → index.es238-DBm7c9HR.js} +1 -1
  44. package/dist/app/assets/{index.es276-CKlMO2Lw.js → index.es240-DCqDESzD.js} +1 -1
  45. package/dist/app/assets/{index.es284-CzLPtLDD.js → index.es248-BEYN2dFo.js} +1 -1
  46. package/dist/app/assets/{index.es285-DJKOnmR4.js → index.es249-DKdYiZA_.js} +1 -1
  47. package/dist/app/assets/{index.es292-C_XpFc3I.js → index.es256-CgBAGaDx.js} +1 -1
  48. package/dist/app/assets/{index.es293-CAMCK3pl.js → index.es257-DMI3dJGJ.js} +1 -1
  49. package/dist/app/assets/{index.es303-Kzndt26b.js → index.es267-B5ei8o6D.js} +1 -1
  50. package/dist/app/assets/{index.es307-uMHHp7AA.js → index.es271-DDBsSlrj.js} +1 -1
  51. package/dist/app/assets/{index.es313-gUL1Q7h-.js → index.es277-aI_iYBJv.js} +1 -1
  52. package/dist/app/assets/{index.es318-Dv9v9QNN.js → index.es282-DZQyCurk.js} +1 -1
  53. package/dist/app/assets/{index.es319-BxOEtECK.js → index.es283-DRQxI154.js} +1 -1
  54. package/dist/app/assets/{index.es321-CAohi0dV.js → index.es285-DrT3oe3D.js} +1 -1
  55. package/dist/app/assets/{index.es325-CDs1Kyg7.js → index.es289-CKYiktdr.js} +1 -1
  56. package/dist/app/assets/{index.es327-YD3xAAtq.js → index.es291-BRH8qn2R.js} +1 -1
  57. package/dist/app/assets/{index.es329-Dx_IcV_r.js → index.es293-B_x7Y2b5.js} +1 -1
  58. package/dist/app/assets/{index.es332-DoVSa19H.js → index.es296-CMhur-CK.js} +1 -1
  59. package/dist/app/assets/{index.es333-tJOdbEM5.js → index.es297-BY9kHC-p.js} +1 -1
  60. package/dist/app/assets/{index.es337-Ds206neg.js → index.es301-CmwjGLCv.js} +1 -1
  61. package/dist/app/assets/{index.es339-Cf3Qs-00.js → index.es303-BOa5F89I.js} +1 -1
  62. package/dist/app/assets/{index.es346-B6wL7HWb.js → index.es310-BF6kc0UE.js} +1 -1
  63. package/dist/app/assets/{index.es348-BrzYmfQN.js → index.es312-CoCT5fTV.js} +1 -1
  64. package/dist/app/assets/{index.es350-DaKzpwWB.js → index.es314-CMYE9lCS.js} +1 -1
  65. package/dist/app/assets/{index.es354-BNHh55LB.js → index.es318-C2_Stmju.js} +1 -1
  66. package/dist/app/assets/{index.es364-CeZwlyUV.js → index.es328-DxiHjjdV.js} +1 -1
  67. package/dist/app/assets/{index.es365-CtY1jSQJ.js → index.es329-D4H4qJV5.js} +1 -1
  68. package/dist/app/assets/{index.es372-Cjsc1C-R.js → index.es336-DMBcHb9l.js} +1 -1
  69. package/dist/app/assets/{index.es373-CfvIMr2S.js → index.es337-BOcmfyvS.js} +1 -1
  70. package/dist/app/assets/index.umd-DknWdzGi.js +2134 -0
  71. package/dist/app/index.html +1 -1
  72. package/dist/server.js +45 -31
  73. package/package.json +10 -10
  74. package/src/config.ts +6 -0
  75. package/src/constants.ts +7 -10
  76. package/src/controller/package.controller.ts +7 -5
  77. package/src/data_styles.ts +0 -1
  78. package/src/service/connection.ts +18 -28
  79. package/src/service/model.ts +0 -1
  80. package/src/service/project_store.ts +24 -7
  81. package/dist/app/assets/index-Dg-zTLb3.js +0 -211
  82. package/dist/app/assets/index.umd-BN4_E5KD.js +0 -2105
  83. /package/dist/app/assets/{index.es151-CG6Dc4jp.js → index.es115-CG6Dc4jp.js} +0 -0
  84. /package/dist/app/assets/{index.es159-DsBKuouk.js → index.es123-DsBKuouk.js} +0 -0
  85. /package/dist/app/assets/{index.es160-D_z4Izcz.js → index.es124-D_z4Izcz.js} +0 -0
  86. /package/dist/app/assets/{index.es161-727ZlQH0.js → index.es125-727ZlQH0.js} +0 -0
  87. /package/dist/app/assets/{index.es164-Dn00JSTd.js → index.es128-Dn00JSTd.js} +0 -0
  88. /package/dist/app/assets/{index.es165-COJ4H7py.js → index.es129-COJ4H7py.js} +0 -0
  89. /package/dist/app/assets/{index.es167-Bu5BbsvL.js → index.es131-Bu5BbsvL.js} +0 -0
  90. /package/dist/app/assets/{index.es168-7O62HKoU.js → index.es132-7O62HKoU.js} +0 -0
  91. /package/dist/app/assets/{index.es169-BPT9niGB.js → index.es133-BPT9niGB.js} +0 -0
  92. /package/dist/app/assets/{index.es170-Dhn9LcZ4.js → index.es134-Dhn9LcZ4.js} +0 -0
  93. /package/dist/app/assets/{index.es172-eg146-Ew.js → index.es136-eg146-Ew.js} +0 -0
  94. /package/dist/app/assets/{index.es173-Du268qiB.js → index.es137-Du268qiB.js} +0 -0
  95. /package/dist/app/assets/{index.es174-fje9CFhw.js → index.es138-fje9CFhw.js} +0 -0
  96. /package/dist/app/assets/{index.es175-BwXTMy5W.js → index.es139-BwXTMy5W.js} +0 -0
  97. /package/dist/app/assets/{index.es176-3xVqZejG.js → index.es140-3xVqZejG.js} +0 -0
  98. /package/dist/app/assets/{index.es177-xW4inM5L.js → index.es141-xW4inM5L.js} +0 -0
  99. /package/dist/app/assets/{index.es178-DHo0CJ0O.js → index.es142-DHo0CJ0O.js} +0 -0
  100. /package/dist/app/assets/{index.es181-C3t2pwGQ.js → index.es145-C3t2pwGQ.js} +0 -0
  101. /package/dist/app/assets/{index.es182-DNquZEk8.js → index.es146-DNquZEk8.js} +0 -0
  102. /package/dist/app/assets/{index.es184-BHOwM8T6.js → index.es148-BHOwM8T6.js} +0 -0
  103. /package/dist/app/assets/{index.es185-DxSadP1t.js → index.es149-DxSadP1t.js} +0 -0
  104. /package/dist/app/assets/{index.es186-DbXoA79R.js → index.es150-DbXoA79R.js} +0 -0
  105. /package/dist/app/assets/{index.es188-Bp6g37R7.js → index.es152-Bp6g37R7.js} +0 -0
  106. /package/dist/app/assets/{index.es189-sacFqUAJ.js → index.es153-sacFqUAJ.js} +0 -0
  107. /package/dist/app/assets/{index.es191-C7gG9l05.js → index.es155-C7gG9l05.js} +0 -0
  108. /package/dist/app/assets/{index.es192-Dsg_Bt_b.js → index.es156-Dsg_Bt_b.js} +0 -0
  109. /package/dist/app/assets/{index.es195-D9R-vmeu.js → index.es159-D9R-vmeu.js} +0 -0
  110. /package/dist/app/assets/{index.es196-BPhBrDlE.js → index.es160-BPhBrDlE.js} +0 -0
  111. /package/dist/app/assets/{index.es197-C-TU5hQ_.js → index.es161-C-TU5hQ_.js} +0 -0
  112. /package/dist/app/assets/{index.es198-DtFQj3wx.js → index.es162-DtFQj3wx.js} +0 -0
  113. /package/dist/app/assets/{index.es199-m2LEI-9-.js → index.es163-m2LEI-9-.js} +0 -0
  114. /package/dist/app/assets/{index.es200-BoXegm-a.js → index.es164-BoXegm-a.js} +0 -0
  115. /package/dist/app/assets/{index.es201-B9wLZaAG.js → index.es165-B9wLZaAG.js} +0 -0
  116. /package/dist/app/assets/{index.es202-ClGRhx96.js → index.es166-ClGRhx96.js} +0 -0
  117. /package/dist/app/assets/{index.es203-DEIpsLCJ.js → index.es167-DEIpsLCJ.js} +0 -0
  118. /package/dist/app/assets/{index.es204-BgYniUM_.js → index.es168-BgYniUM_.js} +0 -0
  119. /package/dist/app/assets/{index.es205-COcR7UxN.js → index.es169-COcR7UxN.js} +0 -0
  120. /package/dist/app/assets/{index.es206-BjQB5zDj.js → index.es170-BjQB5zDj.js} +0 -0
  121. /package/dist/app/assets/{index.es207-C-nORZOA.js → index.es171-C-nORZOA.js} +0 -0
  122. /package/dist/app/assets/{index.es211-BX77sIaO.js → index.es175-BX77sIaO.js} +0 -0
  123. /package/dist/app/assets/{index.es213-B-DoSBHF.js → index.es177-B-DoSBHF.js} +0 -0
  124. /package/dist/app/assets/{index.es214-bCA53EVm.js → index.es178-bCA53EVm.js} +0 -0
  125. /package/dist/app/assets/{index.es215-w-ucz2PV.js → index.es179-w-ucz2PV.js} +0 -0
  126. /package/dist/app/assets/{index.es216-Dayu4EKP.js → index.es180-Dayu4EKP.js} +0 -0
  127. /package/dist/app/assets/{index.es218-DKXYxT9g.js → index.es182-DKXYxT9g.js} +0 -0
  128. /package/dist/app/assets/{index.es221-DfxzS6Rs.js → index.es185-DfxzS6Rs.js} +0 -0
  129. /package/dist/app/assets/{index.es222-SKMF96pI.js → index.es186-SKMF96pI.js} +0 -0
  130. /package/dist/app/assets/{index.es223-ajMbGru0.js → index.es187-ajMbGru0.js} +0 -0
  131. /package/dist/app/assets/{index.es224--30QC5Em.js → index.es188--30QC5Em.js} +0 -0
  132. /package/dist/app/assets/{index.es227-B430Bg39.js → index.es191-B430Bg39.js} +0 -0
  133. /package/dist/app/assets/{index.es231-CM8KxXT1.js → index.es195-CM8KxXT1.js} +0 -0
  134. /package/dist/app/assets/{index.es232-B1SYOhNW.js → index.es196-B1SYOhNW.js} +0 -0
  135. /package/dist/app/assets/{index.es234-DkBy-JyN.js → index.es198-DkBy-JyN.js} +0 -0
  136. /package/dist/app/assets/{index.es238-BILxekzW.js → index.es202-BILxekzW.js} +0 -0
  137. /package/dist/app/assets/{index.es239-C5wWYbrZ.js → index.es203-C5wWYbrZ.js} +0 -0
  138. /package/dist/app/assets/{index.es240-HzYwdGDm.js → index.es204-HzYwdGDm.js} +0 -0
  139. /package/dist/app/assets/{index.es241-T-Tgc4AT.js → index.es205-T-Tgc4AT.js} +0 -0
  140. /package/dist/app/assets/{index.es242-ifBTmRxC.js → index.es206-ifBTmRxC.js} +0 -0
  141. /package/dist/app/assets/{index.es247-BMj5Y0dO.js → index.es211-BMj5Y0dO.js} +0 -0
  142. /package/dist/app/assets/{index.es249-BjABl1g7.js → index.es213-BjABl1g7.js} +0 -0
  143. /package/dist/app/assets/{index.es250-xI-RfyKK.js → index.es214-xI-RfyKK.js} +0 -0
  144. /package/dist/app/assets/{index.es251-ySlJ1b_l.js → index.es215-ySlJ1b_l.js} +0 -0
  145. /package/dist/app/assets/{index.es254-BQoSv7ci.js → index.es218-BQoSv7ci.js} +0 -0
  146. /package/dist/app/assets/{index.es255-w8dY5SsB.js → index.es219-w8dY5SsB.js} +0 -0
  147. /package/dist/app/assets/{index.es256-TU54ms6u.js → index.es220-TU54ms6u.js} +0 -0
  148. /package/dist/app/assets/{index.es257-DREVFZK8.js → index.es221-DREVFZK8.js} +0 -0
  149. /package/dist/app/assets/{index.es258-BfivnA6A.js → index.es222-BfivnA6A.js} +0 -0
  150. /package/dist/app/assets/{index.es259-P4WzXJd0.js → index.es223-P4WzXJd0.js} +0 -0
  151. /package/dist/app/assets/{index.es260-BAng5TT0.js → index.es224-BAng5TT0.js} +0 -0
  152. /package/dist/app/assets/{index.es262-B5lbUyaz.js → index.es226-B5lbUyaz.js} +0 -0
  153. /package/dist/app/assets/{index.es263-mebxcVVE.js → index.es227-mebxcVVE.js} +0 -0
  154. /package/dist/app/assets/{index.es265-XBlWyCtg.js → index.es229-XBlWyCtg.js} +0 -0
  155. /package/dist/app/assets/{index.es266-BfCpw3nA.js → index.es230-BfCpw3nA.js} +0 -0
  156. /package/dist/app/assets/{index.es268-Cc5clBb7.js → index.es232-Cc5clBb7.js} +0 -0
  157. /package/dist/app/assets/{index.es269-IuBKFhSY.js → index.es233-IuBKFhSY.js} +0 -0
  158. /package/dist/app/assets/{index.es271-Du5NY7AG.js → index.es235-Du5NY7AG.js} +0 -0
  159. /package/dist/app/assets/{index.es272-Bvotw-X0.js → index.es236-Bvotw-X0.js} +0 -0
  160. /package/dist/app/assets/{index.es273-UIAJJxZW.js → index.es237-UIAJJxZW.js} +0 -0
  161. /package/dist/app/assets/{index.es275-D9-PGadD.js → index.es239-D9-PGadD.js} +0 -0
  162. /package/dist/app/assets/{index.es277-sdHcTMYB.js → index.es241-sdHcTMYB.js} +0 -0
  163. /package/dist/app/assets/{index.es278-Ci6OQyBP.js → index.es242-Ci6OQyBP.js} +0 -0
  164. /package/dist/app/assets/{index.es279-BC5c_5Pe.js → index.es243-BC5c_5Pe.js} +0 -0
  165. /package/dist/app/assets/{index.es280-Tz6hzZYG.js → index.es244-Tz6hzZYG.js} +0 -0
  166. /package/dist/app/assets/{index.es281-DB_GagMm.js → index.es245-DB_GagMm.js} +0 -0
  167. /package/dist/app/assets/{index.es282-DLbgOhZU.js → index.es246-DLbgOhZU.js} +0 -0
  168. /package/dist/app/assets/{index.es283-B0XVJmRM.js → index.es247-B0XVJmRM.js} +0 -0
  169. /package/dist/app/assets/{index.es286-shcSOmrb.js → index.es250-shcSOmrb.js} +0 -0
  170. /package/dist/app/assets/{index.es287-D4Tzg5kh.js → index.es251-D4Tzg5kh.js} +0 -0
  171. /package/dist/app/assets/{index.es288-Deuh7S70.js → index.es252-Deuh7S70.js} +0 -0
  172. /package/dist/app/assets/{index.es289-BUEGK8hf.js → index.es253-BUEGK8hf.js} +0 -0
  173. /package/dist/app/assets/{index.es290-BNioltXt.js → index.es254-BNioltXt.js} +0 -0
  174. /package/dist/app/assets/{index.es291-JqZropPD.js → index.es255-JqZropPD.js} +0 -0
  175. /package/dist/app/assets/{index.es294-LKU2TuZ1.js → index.es258-LKU2TuZ1.js} +0 -0
  176. /package/dist/app/assets/{index.es295-BFLt1xDp.js → index.es259-BFLt1xDp.js} +0 -0
  177. /package/dist/app/assets/{index.es296-DKykz6zU.js → index.es260-DKykz6zU.js} +0 -0
  178. /package/dist/app/assets/{index.es297-B3ZDOciz.js → index.es261-B3ZDOciz.js} +0 -0
  179. /package/dist/app/assets/{index.es298-CSHBycmS.js → index.es262-CSHBycmS.js} +0 -0
  180. /package/dist/app/assets/{index.es299-BIEUsx6d.js → index.es263-BIEUsx6d.js} +0 -0
  181. /package/dist/app/assets/{index.es300-B48N-Iqd.js → index.es264-B48N-Iqd.js} +0 -0
  182. /package/dist/app/assets/{index.es301-BY-TUvya.js → index.es265-BY-TUvya.js} +0 -0
  183. /package/dist/app/assets/{index.es302-zocC4JxJ.js → index.es266-zocC4JxJ.js} +0 -0
  184. /package/dist/app/assets/{index.es304-Cza_XSSt.js → index.es268-Cza_XSSt.js} +0 -0
  185. /package/dist/app/assets/{index.es305-Bg-kzb6g.js → index.es269-Bg-kzb6g.js} +0 -0
  186. /package/dist/app/assets/{index.es306-DhUJRlN_.js → index.es270-DhUJRlN_.js} +0 -0
  187. /package/dist/app/assets/{index.es308-C8lEn-DE.js → index.es272-C8lEn-DE.js} +0 -0
  188. /package/dist/app/assets/{index.es309-DhMKtDLN.js → index.es273-DhMKtDLN.js} +0 -0
  189. /package/dist/app/assets/{index.es310-CwjWoCRV.js → index.es274-CwjWoCRV.js} +0 -0
  190. /package/dist/app/assets/{index.es311-CzouJOBO.js → index.es275-CzouJOBO.js} +0 -0
  191. /package/dist/app/assets/{index.es312-B1bQXN8T.js → index.es276-B1bQXN8T.js} +0 -0
  192. /package/dist/app/assets/{index.es314-5LuOXUq_.js → index.es278-5LuOXUq_.js} +0 -0
  193. /package/dist/app/assets/{index.es315-DWJ3fJO_.js → index.es279-DWJ3fJO_.js} +0 -0
  194. /package/dist/app/assets/{index.es316-DJlmqQ1C.js → index.es280-DJlmqQ1C.js} +0 -0
  195. /package/dist/app/assets/{index.es317-QhoSD0DR.js → index.es281-QhoSD0DR.js} +0 -0
  196. /package/dist/app/assets/{index.es320-Be6lgOlo.js → index.es284-Be6lgOlo.js} +0 -0
  197. /package/dist/app/assets/{index.es322-BJ4Li9vH.js → index.es286-BJ4Li9vH.js} +0 -0
  198. /package/dist/app/assets/{index.es323-DQVVAn-B.js → index.es287-DQVVAn-B.js} +0 -0
  199. /package/dist/app/assets/{index.es324-BJGe-b2p.js → index.es288-BJGe-b2p.js} +0 -0
  200. /package/dist/app/assets/{index.es326-BLhTXw86.js → index.es290-BLhTXw86.js} +0 -0
  201. /package/dist/app/assets/{index.es328-atvbtKCR.js → index.es292-atvbtKCR.js} +0 -0
  202. /package/dist/app/assets/{index.es330-DkLiglaE.js → index.es294-DkLiglaE.js} +0 -0
  203. /package/dist/app/assets/{index.es331-C1w2a3ep.js → index.es295-C1w2a3ep.js} +0 -0
  204. /package/dist/app/assets/{index.es334-Cf8iN4DR.js → index.es298-Cf8iN4DR.js} +0 -0
  205. /package/dist/app/assets/{index.es335-COK4E0Yg.js → index.es299-COK4E0Yg.js} +0 -0
  206. /package/dist/app/assets/{index.es336-BknIz3MU.js → index.es300-BknIz3MU.js} +0 -0
  207. /package/dist/app/assets/{index.es338-BeQkCIfX.js → index.es302-BeQkCIfX.js} +0 -0
  208. /package/dist/app/assets/{index.es340-BSxZ-RaX.js → index.es304-BSxZ-RaX.js} +0 -0
  209. /package/dist/app/assets/{index.es341-C7L56vO4.js → index.es305-C7L56vO4.js} +0 -0
  210. /package/dist/app/assets/{index.es342-CUnW07Te.js → index.es306-CUnW07Te.js} +0 -0
  211. /package/dist/app/assets/{index.es343-C1XDQQGZ.js → index.es307-C1XDQQGZ.js} +0 -0
  212. /package/dist/app/assets/{index.es344-CQjiPCtT.js → index.es308-CQjiPCtT.js} +0 -0
  213. /package/dist/app/assets/{index.es345-DQ1-QYvQ.js → index.es309-DQ1-QYvQ.js} +0 -0
  214. /package/dist/app/assets/{index.es347-BbSNqyBO.js → index.es311-BbSNqyBO.js} +0 -0
  215. /package/dist/app/assets/{index.es349-CB2ApiWb.js → index.es313-CB2ApiWb.js} +0 -0
  216. /package/dist/app/assets/{index.es351-B_m7g4N7.js → index.es315-B_m7g4N7.js} +0 -0
  217. /package/dist/app/assets/{index.es352-B6W0miNI.js → index.es316-B6W0miNI.js} +0 -0
  218. /package/dist/app/assets/{index.es353-BMR_PYu6.js → index.es317-BMR_PYu6.js} +0 -0
  219. /package/dist/app/assets/{index.es355-Dj6nwHGl.js → index.es319-Dj6nwHGl.js} +0 -0
  220. /package/dist/app/assets/{index.es356-BpWG_bgh.js → index.es320-BpWG_bgh.js} +0 -0
  221. /package/dist/app/assets/{index.es357-BVUVsWT6.js → index.es321-BVUVsWT6.js} +0 -0
  222. /package/dist/app/assets/{index.es358-CAQ2eGtk.js → index.es322-CAQ2eGtk.js} +0 -0
  223. /package/dist/app/assets/{index.es359-BFOHcciG.js → index.es323-BFOHcciG.js} +0 -0
  224. /package/dist/app/assets/{index.es360-CdO5JTpU.js → index.es324-CdO5JTpU.js} +0 -0
  225. /package/dist/app/assets/{index.es361-CJaU5se_.js → index.es325-CJaU5se_.js} +0 -0
  226. /package/dist/app/assets/{index.es362-DYoNaHQp.js → index.es326-DYoNaHQp.js} +0 -0
  227. /package/dist/app/assets/{index.es363-m4uW47V2.js → index.es327-m4uW47V2.js} +0 -0
  228. /package/dist/app/assets/{index.es366-nyqBNV6O.js → index.es330-nyqBNV6O.js} +0 -0
  229. /package/dist/app/assets/{index.es367-C6j12Q_x.js → index.es331-C6j12Q_x.js} +0 -0
  230. /package/dist/app/assets/{index.es368-7A4Fjokl.js → index.es332-7A4Fjokl.js} +0 -0
  231. /package/dist/app/assets/{index.es369-CB0Krxn9.js → index.es333-CB0Krxn9.js} +0 -0
  232. /package/dist/app/assets/{index.es370-DCE3LsBG.js → index.es334-DCE3LsBG.js} +0 -0
  233. /package/dist/app/assets/{index.es371-C3FkfJm5.js → index.es335-C3FkfJm5.js} +0 -0
  234. /package/dist/app/assets/{index.es374-CVw76BM1.js → index.es338-CVw76BM1.js} +0 -0
  235. /package/dist/app/assets/{index.es375-HnGAYVZD.js → index.es339-HnGAYVZD.js} +0 -0
  236. /package/dist/app/assets/{index.es376-BVz_zdnA.js → index.es340-BVz_zdnA.js} +0 -0
  237. /package/dist/app/assets/{index.es377-C3khCPGq.js → index.es341-C3khCPGq.js} +0 -0
  238. /package/dist/app/assets/{index.es378-D-2ljcwZ.js → index.es342-D-2ljcwZ.js} +0 -0
  239. /package/dist/app/assets/{index.es379-Cv9koXgw.js → index.es343-Cv9koXgw.js} +0 -0
  240. /package/dist/app/assets/{index.es380-CD_QflpE.js → index.es344-CD_QflpE.js} +0 -0
  241. /package/dist/app/assets/{index.es381-DRW-0cLl.js → index.es345-DRW-0cLl.js} +0 -0
  242. /package/dist/app/assets/{index.es382-C-_shW-Y.js → index.es346-C-_shW-Y.js} +0 -0
  243. /package/dist/app/assets/{index.es383-LGGdnPYs.js → index.es347-LGGdnPYs.js} +0 -0
  244. /package/dist/app/assets/{index.es384-C3mMm8J8.js → index.es348-C3mMm8J8.js} +0 -0
  245. /package/dist/app/assets/{index.es385-BzJJZx-M.js → index.es349-BzJJZx-M.js} +0 -0
  246. /package/dist/app/assets/{index.es386-BXkSAIEj.js → index.es350-BXkSAIEj.js} +0 -0
  247. /package/dist/app/assets/{index.es387-BgDCqdQA.js → index.es351-BgDCqdQA.js} +0 -0
  248. /package/dist/app/assets/{index.es388-C8M2exoo.js → index.es352-C8M2exoo.js} +0 -0
  249. /package/dist/app/assets/{index.es389-DHJKELXO.js → index.es353-DHJKELXO.js} +0 -0
  250. /package/dist/app/assets/{index.es390-Cuk6v7N8.js → index.es354-Cuk6v7N8.js} +0 -0
  251. /package/dist/app/assets/{index.es391-DH5Ifo-i.js → index.es355-DH5Ifo-i.js} +0 -0
  252. /package/dist/app/assets/{index.es392-E3gJ1_iC.js → index.es356-E3gJ1_iC.js} +0 -0
  253. /package/dist/app/assets/{index.es393-DAi9KRSo.js → index.es357-DAi9KRSo.js} +0 -0
  254. /package/dist/app/assets/{index.es394-D7oLnXFd.js → index.es358-D7oLnXFd.js} +0 -0
  255. /package/dist/app/assets/{index.es395-BfjtVDDH.js → index.es359-BfjtVDDH.js} +0 -0
  256. /package/dist/app/assets/{index.es396-DnULxvSX.js → index.es360-DnULxvSX.js} +0 -0
  257. /package/dist/app/assets/{index.es397-CkXjmgJE.js → index.es361-CkXjmgJE.js} +0 -0
  258. /package/dist/app/assets/{index.es398-CfQXZHmo.js → index.es362-CfQXZHmo.js} +0 -0
  259. /package/dist/app/assets/{index.es399-DWedfzmr.js → index.es363-DWedfzmr.js} +0 -0
  260. /package/dist/app/assets/{index.es400-DUszq2jm.js → index.es364-DUszq2jm.js} +0 -0
  261. /package/dist/app/assets/{index.es401-B7mTdjB0.js → index.es365-B7mTdjB0.js} +0 -0
  262. /package/dist/app/assets/{index.es402-D5KoaKCx.js → index.es366-D5KoaKCx.js} +0 -0
  263. /package/dist/app/assets/{index.es403-BfHTSMKl.js → index.es367-BfHTSMKl.js} +0 -0
  264. /package/dist/app/assets/{index.es404-B0m2ddpp.js → index.es368-B0m2ddpp.js} +0 -0
  265. /package/dist/app/assets/{index.es405-CyktbL80.js → index.es369-CyktbL80.js} +0 -0
  266. /package/dist/app/assets/{index.es406-Csfq5Kiy.js → index.es370-Csfq5Kiy.js} +0 -0
  267. /package/dist/app/assets/{index.es407-CafNBF8u.js → index.es371-CafNBF8u.js} +0 -0
  268. /package/dist/app/assets/{index.es408-CTRr51gU.js → index.es372-CTRr51gU.js} +0 -0
  269. /package/dist/app/assets/{index.es409-D4h5O-jR.js → index.es373-D4h5O-jR.js} +0 -0
  270. /package/dist/app/assets/{index.es410-C39BiMTA.js → index.es374-C39BiMTA.js} +0 -0
  271. /package/dist/app/assets/{index.es411-Ddv68eIx.js → index.es375-Ddv68eIx.js} +0 -0
  272. /package/dist/app/assets/{index.es412-GBQ2dnAY.js → index.es376-GBQ2dnAY.js} +0 -0
  273. /package/dist/app/assets/{index.es413-PoHY5YXO.js → index.es377-PoHY5YXO.js} +0 -0
  274. /package/dist/app/assets/{index.es414-3e1v2bzS.js → index.es378-3e1v2bzS.js} +0 -0
  275. /package/dist/app/assets/{index.es415-CS3Unz2-.js → index.es379-CS3Unz2-.js} +0 -0
  276. /package/dist/app/assets/{index.es416-bN70gL4F.js → index.es380-bN70gL4F.js} +0 -0
  277. /package/dist/app/assets/{index.es417-CmCqftbK.js → index.es381-CmCqftbK.js} +0 -0
  278. /package/dist/app/assets/{index.es418-Ds-gbosJ.js → index.es382-Ds-gbosJ.js} +0 -0
  279. /package/dist/app/assets/{index.es419-CjDtw9vr.js → index.es383-CjDtw9vr.js} +0 -0
  280. /package/dist/app/assets/{index.es420-BthQWCQV.js → index.es384-BthQWCQV.js} +0 -0
  281. /package/dist/app/assets/{index.es421-DqwNpetd.js → index.es385-DqwNpetd.js} +0 -0
  282. /package/dist/app/assets/{index.es422-Bw305WKR.js → index.es386-Bw305WKR.js} +0 -0
  283. /package/dist/app/assets/{index.es423-DXbdFlpD.js → index.es387-DXbdFlpD.js} +0 -0
  284. /package/dist/app/assets/{index.es424-L9t79GZl.js → index.es388-L9t79GZl.js} +0 -0
  285. /package/dist/app/assets/{index.es425-CbfX1IO0.js → index.es389-CbfX1IO0.js} +0 -0
  286. /package/dist/app/assets/{index.es426-DBQeEorK.js → index.es390-DBQeEorK.js} +0 -0
  287. /package/dist/app/assets/{index.es427-BEBZ7ncR.js → index.es391-BEBZ7ncR.js} +0 -0
  288. /package/dist/app/assets/{index.es428-Bkuqu6BP.js → index.es392-Bkuqu6BP.js} +0 -0
  289. /package/dist/app/assets/{index.es429-D0r3Knsf.js → index.es393-D0r3Knsf.js} +0 -0
  290. /package/dist/app/assets/{index.es430-CVO1_9PV.js → index.es394-CVO1_9PV.js} +0 -0
@@ -1,211 +0,0 @@
1
- import{j as a,r as u,ac as By,K as qy,R as Me,a as hn}from"./mui-UpaxdnvH.js";import{r as Wy,a as Gy,d as Z}from"./index-Bq29VQqL.js";import{a as ec}from"./index.umd-BN4_E5KD.js";import"./vendor-c5ypKtDW.js";var Yy=Wy(),an=Gy(),Uy=Object.defineProperty,Vy=Object.getPrototypeOf,Hy=Reflect.get,Vm=e=>{throw TypeError(e)},Zy=(e,t,n)=>t in e?Uy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,j=(e,t,n)=>Zy(e,typeof t!="symbol"?t+"":t,n),Kc=(e,t,n)=>t.has(e)||Vm("Cannot "+n),ot=(e,t,n)=>(Kc(e,t,"read from private field"),n?n.call(e):t.get(e)),Er=(e,t,n)=>t.has(e)?Vm("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Gt=(e,t,n,r)=>(Kc(e,t,"write to private field"),t.set(e,n),n),Ud=(e,t,n)=>(Kc(e,t,"access private method"),n),Xy=(e,t,n)=>Hy(Vy(e),n,t),jr,cn,sr,On,Tr,lr,Lr,el,pa,Po;function O(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function Vd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function gi(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Vd(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Vd(e[o],null)}}}}function oe(...e){return u.useCallback(gi(...e),e)}function Ky(e,t){const n=u.createContext(t),r=s=>{const{children:l,...i}=s,c=u.useMemo(()=>i,Object.values(i));return a.jsx(n.Provider,{value:c,children:l})};r.displayName=e+"Provider";function o(s){const l=u.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function zt(e,t=[]){let n=[];function r(s,l){const i=u.createContext(l),c=n.length;n=[...n,l];const d=m=>{var p;const{scope:h,children:g,...y}=m,v=((p=h?.[e])==null?void 0:p[c])||i,w=u.useMemo(()=>y,Object.values(y));return a.jsx(v.Provider,{value:w,children:g})};d.displayName=s+"Provider";function f(m,p){var h;const g=((h=p?.[e])==null?void 0:h[c])||i,y=u.useContext(g);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(l=>u.createContext(l));return function(i){const c=i?.[e]||s;return u.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[r,Qy(o,...t)]}function Qy(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const l=r.reduce((i,{useScope:c,scopeName:d})=>{const m=c(s)[`__scope${d}`];return{...i,...m}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var Hn=u.forwardRef((e,t)=>{const{children:n,...r}=e,o=u.Children.toArray(n),s=o.find(Jy);if(s){const l=s.props.children,i=o.map(c=>c===s?u.Children.count(l)>1?u.Children.only(null):u.isValidElement(l)?l.props.children:null:c);return a.jsx(tc,{...r,ref:t,children:u.isValidElement(l)?u.cloneElement(l,void 0,i):null})}return a.jsx(tc,{...r,ref:t,children:n})});Hn.displayName="Slot";var tc=u.forwardRef((e,t)=>{const{children:n,...r}=e;if(u.isValidElement(n)){const o=t5(n),s=e5(r,n.props);return n.type!==u.Fragment&&(s.ref=t?gi(t,o):o),u.cloneElement(n,s)}return u.Children.count(n)>1?u.Children.only(null):null});tc.displayName="SlotClone";var Hm=({children:e})=>a.jsx(a.Fragment,{children:e});function Jy(e){return u.isValidElement(e)&&e.type===Hm}function e5(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{s(...i),o(...i)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function t5(e){var t,n;let r=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var n5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],X=n5.reduce((e,t)=>{const n=u.forwardRef((r,o)=>{const{asChild:s,...l}=r,i=s?Hn:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(i,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Zm(e,t){e&&hn.flushSync(()=>e.dispatchEvent(t))}function qe(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function r5(e,t=globalThis?.document){const n=qe(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var o5="DismissableLayer",nc="dismissableLayer.update",s5="dismissableLayer.pointerDownOutside",l5="dismissableLayer.focusOutside",Hd,Xm=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),io=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:l,onDismiss:i,...c}=e,d=u.useContext(Xm),[f,m]=u.useState(null),p=f?.ownerDocument??globalThis?.document,[,h]=u.useState({}),g=oe(t,S=>m(S)),y=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=y.indexOf(v),b=f?y.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,C=b>=w,_=c5(S=>{const E=S.target,T=[...d.branches].some(M=>M.contains(E));!C||T||(o?.(S),l?.(S),S.defaultPrevented||i?.())},p),R=u5(S=>{const E=S.target;[...d.branches].some(M=>M.contains(E))||(s?.(S),l?.(S),S.defaultPrevented||i?.())},p);return r5(S=>{b===d.layers.size-1&&(r?.(S),!S.defaultPrevented&&i&&(S.preventDefault(),i()))},p),u.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Hd=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Zd(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Hd)}},[f,p,n,d]),u.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Zd())},[f,d]),u.useEffect(()=>{const S=()=>h({});return document.addEventListener(nc,S),()=>document.removeEventListener(nc,S)},[]),a.jsx(X.div,{...c,ref:g,style:{pointerEvents:x?C?"auto":"none":void 0,...e.style},onFocusCapture:O(e.onFocusCapture,R.onFocusCapture),onBlurCapture:O(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:O(e.onPointerDownCapture,_.onPointerDownCapture)})});io.displayName=o5;var i5="DismissableLayerBranch",a5=u.forwardRef((e,t)=>{const n=u.useContext(Xm),r=u.useRef(null),o=oe(t,r);return u.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),a.jsx(X.div,{...e,ref:o})});a5.displayName=i5;function c5(e,t=globalThis?.document){const n=qe(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let c=function(){Km(s5,n,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function u5(e,t=globalThis?.document){const n=qe(e),r=u.useRef(!1);return u.useEffect(()=>{const o=s=>{s.target&&!r.current&&Km(l5,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Zd(){const e=new CustomEvent(nc);document.dispatchEvent(e)}function Km(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Zm(o,s):o.dispatchEvent(s)}var nt=globalThis?.document?u.useLayoutEffect:()=>{},d5=By.useId||(()=>{}),f5=0;function St(e){const[t,n]=u.useState(d5());return nt(()=>{n(r=>r??String(f5++))},[e]),t?`radix-${t}`:""}const m5=["top","right","bottom","left"],Zn=Math.min,pt=Math.max,$l=Math.round,tl=Math.floor,Kt=e=>({x:e,y:e}),p5={left:"right",right:"left",bottom:"top",top:"bottom"},h5={start:"end",end:"start"};function rc(e,t,n){return pt(e,Zn(t,n))}function _n(e,t){return typeof e=="function"?e(t):e}function kn(e){return e.split("-")[0]}function ao(e){return e.split("-")[1]}function Qc(e){return e==="x"?"y":"x"}function Jc(e){return e==="y"?"height":"width"}function Xn(e){return["top","bottom"].includes(kn(e))?"y":"x"}function eu(e){return Qc(Xn(e))}function g5(e,t,n){n===void 0&&(n=!1);const r=ao(e),o=eu(e),s=Jc(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=zl(l)),[l,zl(l)]}function y5(e){const t=zl(e);return[oc(e),t,oc(t)]}function oc(e){return e.replace(/start|end/g,t=>h5[t])}function v5(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:l;default:return[]}}function b5(e,t,n,r){const o=ao(e);let s=v5(kn(e),n==="start",r);return o&&(s=s.map(l=>l+"-"+o),t&&(s=s.concat(s.map(oc)))),s}function zl(e){return e.replace(/left|right|bottom|top/g,t=>p5[t])}function w5(e){return{top:0,right:0,bottom:0,left:0,...e}}function Qm(e){return typeof e!="number"?w5(e):{top:e,right:e,bottom:e,left:e}}function Fl(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Xd(e,t,n){let{reference:r,floating:o}=e;const s=Xn(t),l=eu(t),i=Jc(l),c=kn(t),d=s==="y",f=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,p=r[i]/2-o[i]/2;let h;switch(c){case"top":h={x:f,y:r.y-o.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:m};break;case"left":h={x:r.x-o.width,y:m};break;default:h={x:r.x,y:r.y}}switch(ao(t)){case"start":h[l]-=p*(n&&d?-1:1);break;case"end":h[l]+=p*(n&&d?-1:1);break}return h}const x5=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:l}=n,i=s.filter(Boolean),c=await(l.isRTL==null?void 0:l.isRTL(t));let d=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:m}=Xd(d,r,c),p=r,h={},g=0;for(let y=0;y<i.length;y++){const{name:v,fn:w}=i[y],{x:b,y:x,data:C,reset:_}=await w({x:f,y:m,initialPlacement:r,placement:p,strategy:o,middlewareData:h,rects:d,platform:l,elements:{reference:e,floating:t}});f=b??f,m=x??m,h={...h,[v]:{...h[v],...C}},_&&g<=50&&(g++,typeof _=="object"&&(_.placement&&(p=_.placement),_.rects&&(d=_.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:f,y:m}=Xd(d,p,c)),y=-1)}return{x:f,y:m,placement:p,strategy:o,middlewareData:h}};async function ls(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:l,elements:i,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:p=!1,padding:h=0}=_n(t,e),g=Qm(h),v=i[p?m==="floating"?"reference":"floating":m],w=Fl(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:d,rootBoundary:f,strategy:c})),b=m==="floating"?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),C=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},_=Fl(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:b,offsetParent:x,strategy:c}):b);return{top:(w.top-_.top+g.top)/C.y,bottom:(_.bottom-w.bottom+g.bottom)/C.y,left:(w.left-_.left+g.left)/C.x,right:(_.right-w.right+g.right)/C.x}}const C5=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:l,elements:i,middlewareData:c}=t,{element:d,padding:f=0}=_n(e,t)||{};if(d==null)return{};const m=Qm(f),p={x:n,y:r},h=eu(o),g=Jc(h),y=await l.getDimensions(d),v=h==="y",w=v?"top":"left",b=v?"bottom":"right",x=v?"clientHeight":"clientWidth",C=s.reference[g]+s.reference[h]-p[h]-s.floating[g],_=p[h]-s.reference[h],R=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d));let S=R?R[x]:0;(!S||!await(l.isElement==null?void 0:l.isElement(R)))&&(S=i.floating[x]||s.floating[g]);const E=C/2-_/2,T=S/2-y[g]/2-1,M=Zn(m[w],T),D=Zn(m[b],T),F=M,V=S-y[g]-D,q=S/2-y[g]/2+E,ne=rc(F,q,V),U=!c.arrow&&ao(o)!=null&&q!==ne&&s.reference[g]/2-(q<F?M:D)-y[g]/2<0,K=U?q<F?q-F:q-V:0;return{[h]:p[h]+K,data:{[h]:ne,centerOffset:q-ne-K,...U&&{alignmentOffset:K}},reset:U}}}),_5=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:l,initialPlacement:i,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...v}=_n(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=kn(o),b=Xn(i),x=kn(i)===i,C=await(c.isRTL==null?void 0:c.isRTL(d.floating)),_=p||(x||!y?[zl(i)]:y5(i)),R=g!=="none";!p&&R&&_.push(...b5(i,y,g,C));const S=[i,..._],E=await ls(t,v),T=[];let M=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&T.push(E[w]),m){const q=g5(o,l,C);T.push(E[q[0]],E[q[1]])}if(M=[...M,{placement:o,overflows:T}],!T.every(q=>q<=0)){var D,F;const q=(((D=s.flip)==null?void 0:D.index)||0)+1,ne=S[q];if(ne)return{data:{index:q,overflows:M},reset:{placement:ne}};let U=(F=M.filter(K=>K.overflows[0]<=0).sort((K,H)=>K.overflows[1]-H.overflows[1])[0])==null?void 0:F.placement;if(!U)switch(h){case"bestFit":{var V;const K=(V=M.filter(H=>{if(R){const N=Xn(H.placement);return N===b||N==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(N=>N>0).reduce((N,ae)=>N+ae,0)]).sort((H,N)=>H[1]-N[1])[0])==null?void 0:V[0];K&&(U=K);break}case"initialPlacement":U=i;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function Kd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qd(e){return m5.some(t=>e[t]>=0)}const k5=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=_n(e,t);switch(r){case"referenceHidden":{const s=await ls(t,{...o,elementContext:"reference"}),l=Kd(s,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Qd(l)}}}case"escaped":{const s=await ls(t,{...o,altBoundary:!0}),l=Kd(s,n.floating);return{data:{escapedOffsets:l,escaped:Qd(l)}}}default:return{}}}}};async function S5(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=kn(n),i=ao(n),c=Xn(n)==="y",d=["left","top"].includes(l)?-1:1,f=s&&c?-1:1,m=_n(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:g}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return i&&typeof g=="number"&&(h=i==="end"?g*-1:g),c?{x:h*f,y:p*d}:{x:p*d,y:h*f}}const R5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:l,middlewareData:i}=t,c=await S5(t,e);return l===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:l}}}}},E5=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:i={fn:v=>{let{x:w,y:b}=v;return{x:w,y:b}}},...c}=_n(e,t),d={x:n,y:r},f=await ls(t,c),m=Xn(kn(o)),p=Qc(m);let h=d[p],g=d[m];if(s){const v=p==="y"?"top":"left",w=p==="y"?"bottom":"right",b=h+f[v],x=h-f[w];h=rc(b,h,x)}if(l){const v=m==="y"?"top":"left",w=m==="y"?"bottom":"right",b=g+f[v],x=g-f[w];g=rc(b,g,x)}const y=i.fn({...t,[p]:h,[m]:g});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[p]:s,[m]:l}}}}}},j5=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:l}=t,{offset:i=0,mainAxis:c=!0,crossAxis:d=!0}=_n(e,t),f={x:n,y:r},m=Xn(o),p=Qc(m);let h=f[p],g=f[m];const y=_n(i,t),v=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const x=p==="y"?"height":"width",C=s.reference[p]-s.floating[x]+v.mainAxis,_=s.reference[p]+s.reference[x]-v.mainAxis;h<C?h=C:h>_&&(h=_)}if(d){var w,b;const x=p==="y"?"width":"height",C=["top","left"].includes(kn(o)),_=s.reference[m]-s.floating[x]+(C&&((w=l.offset)==null?void 0:w[m])||0)+(C?0:v.crossAxis),R=s.reference[m]+s.reference[x]+(C?0:((b=l.offset)==null?void 0:b[m])||0)-(C?v.crossAxis:0);g<_?g=_:g>R&&(g=R)}return{[p]:h,[m]:g}}}},T5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:l,elements:i}=t,{apply:c=()=>{},...d}=_n(e,t),f=await ls(t,d),m=kn(o),p=ao(o),h=Xn(o)==="y",{width:g,height:y}=s.floating;let v,w;m==="top"||m==="bottom"?(v=m,w=p===(await(l.isRTL==null?void 0:l.isRTL(i.floating))?"start":"end")?"left":"right"):(w=m,v=p==="end"?"top":"bottom");const b=y-f.top-f.bottom,x=g-f.left-f.right,C=Zn(y-f[v],b),_=Zn(g-f[w],x),R=!t.middlewareData.shift;let S=C,E=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(S=b),R&&!p){const M=pt(f.left,0),D=pt(f.right,0),F=pt(f.top,0),V=pt(f.bottom,0);h?E=g-2*(M!==0||D!==0?M+D:pt(f.left,f.right)):S=y-2*(F!==0||V!==0?F+V:pt(f.top,f.bottom))}await c({...t,availableWidth:E,availableHeight:S});const T=await l.getDimensions(i.floating);return g!==T.width||y!==T.height?{reset:{rects:!0}}:{}}}};function yi(){return typeof window<"u"}function co(e){return Jm(e)?(e.nodeName||"").toLowerCase():"#document"}function ht(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function tn(e){var t;return(t=(Jm(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Jm(e){return yi()?e instanceof Node||e instanceof ht(e).Node:!1}function It(e){return yi()?e instanceof Element||e instanceof ht(e).Element:!1}function Qt(e){return yi()?e instanceof HTMLElement||e instanceof ht(e).HTMLElement:!1}function Jd(e){return!yi()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ht(e).ShadowRoot}function Ss(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Pt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function L5(e){return["table","td","th"].includes(co(e))}function vi(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function tu(e){const t=nu(),n=It(e)?Pt(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function M5(e){let t=Kn(e);for(;Qt(t)&&!Qr(t);){if(tu(t))return t;if(vi(t))return null;t=Kn(t)}return null}function nu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Qr(e){return["html","body","#document"].includes(co(e))}function Pt(e){return ht(e).getComputedStyle(e)}function bi(e){return It(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Kn(e){if(co(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jd(e)&&e.host||tn(e);return Jd(t)?t.host:t}function ep(e){const t=Kn(e);return Qr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qt(t)&&Ss(t)?t:ep(t)}function is(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ep(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),l=ht(o);if(s){const i=sc(l);return t.concat(l,l.visualViewport||[],Ss(o)?o:[],i&&n?is(i):[])}return t.concat(o,is(o,[],n))}function sc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tp(e){const t=Pt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Qt(e),s=o?e.offsetWidth:n,l=o?e.offsetHeight:r,i=$l(n)!==s||$l(r)!==l;return i&&(n=s,r=l),{width:n,height:r,$:i}}function ru(e){return It(e)?e:e.contextElement}function Wr(e){const t=ru(e);if(!Qt(t))return Kt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=tp(t);let l=(s?$l(n.width):n.width)/r,i=(s?$l(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!i||!Number.isFinite(i))&&(i=1),{x:l,y:i}}const A5=Kt(0);function np(e){const t=ht(e);return!nu()||!t.visualViewport?A5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function I5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ht(e)?!1:t}function pr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=ru(e);let l=Kt(1);t&&(r?It(r)&&(l=Wr(r)):l=Wr(e));const i=I5(s,n,r)?np(s):Kt(0);let c=(o.left+i.x)/l.x,d=(o.top+i.y)/l.y,f=o.width/l.x,m=o.height/l.y;if(s){const p=ht(s),h=r&&It(r)?ht(r):r;let g=p,y=sc(g);for(;y&&r&&h!==g;){const v=Wr(y),w=y.getBoundingClientRect(),b=Pt(y),x=w.left+(y.clientLeft+parseFloat(b.paddingLeft))*v.x,C=w.top+(y.clientTop+parseFloat(b.paddingTop))*v.y;c*=v.x,d*=v.y,f*=v.x,m*=v.y,c+=x,d+=C,g=ht(y),y=sc(g)}}return Fl({width:f,height:m,x:c,y:d})}function ou(e,t){const n=bi(e).scrollLeft;return t?t.left+n:pr(tn(e)).left+n}function rp(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ou(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function P5(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",l=tn(r),i=t?vi(t.floating):!1;if(r===l||i&&s)return n;let c={scrollLeft:0,scrollTop:0},d=Kt(1);const f=Kt(0),m=Qt(r);if((m||!m&&!s)&&((co(r)!=="body"||Ss(l))&&(c=bi(r)),Qt(r))){const h=pr(r);d=Wr(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const p=l&&!m&&!s?rp(l,c,!0):Kt(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x+p.x,y:n.y*d.y-c.scrollTop*d.y+f.y+p.y}}function D5(e){return Array.from(e.getClientRects())}function N5(e){const t=tn(e),n=bi(e),r=e.ownerDocument.body,o=pt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=pt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+ou(e);const i=-n.scrollTop;return Pt(r).direction==="rtl"&&(l+=pt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:l,y:i}}function O5(e,t){const n=ht(e),r=tn(e),o=n.visualViewport;let s=r.clientWidth,l=r.clientHeight,i=0,c=0;if(o){s=o.width,l=o.height;const d=nu();(!d||d&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}return{width:s,height:l,x:i,y:c}}function $5(e,t){const n=pr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Qt(e)?Wr(e):Kt(1),l=e.clientWidth*s.x,i=e.clientHeight*s.y,c=o*s.x,d=r*s.y;return{width:l,height:i,x:c,y:d}}function ef(e,t,n){let r;if(t==="viewport")r=O5(e,n);else if(t==="document")r=N5(tn(e));else if(It(t))r=$5(t,n);else{const o=np(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Fl(r)}function op(e,t){const n=Kn(e);return n===t||!It(n)||Qr(n)?!1:Pt(n).position==="fixed"||op(n,t)}function z5(e,t){const n=t.get(e);if(n)return n;let r=is(e,[],!1).filter(i=>It(i)&&co(i)!=="body"),o=null;const s=Pt(e).position==="fixed";let l=s?Kn(e):e;for(;It(l)&&!Qr(l);){const i=Pt(l),c=tu(l);!c&&i.position==="fixed"&&(o=null),(s?!c&&!o:!c&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ss(l)&&!c&&op(e,l))?r=r.filter(f=>f!==l):o=i,l=Kn(l)}return t.set(e,r),r}function F5(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?vi(t)?[]:z5(t,this._c):[].concat(n),r],i=l[0],c=l.reduce((d,f)=>{const m=ef(t,f,o);return d.top=pt(m.top,d.top),d.right=Zn(m.right,d.right),d.bottom=Zn(m.bottom,d.bottom),d.left=pt(m.left,d.left),d},ef(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function B5(e){const{width:t,height:n}=tp(e);return{width:t,height:n}}function q5(e,t,n){const r=Qt(t),o=tn(t),s=n==="fixed",l=pr(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const c=Kt(0);if(r||!r&&!s)if((co(t)!=="body"||Ss(o))&&(i=bi(t)),r){const p=pr(t,!0,s,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else o&&(c.x=ou(o));const d=o&&!r&&!s?rp(o,i):Kt(0),f=l.left+i.scrollLeft-c.x-d.x,m=l.top+i.scrollTop-c.y-d.y;return{x:f,y:m,width:l.width,height:l.height}}function ha(e){return Pt(e).position==="static"}function tf(e,t){if(!Qt(e)||Pt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return tn(e)===n&&(n=n.ownerDocument.body),n}function sp(e,t){const n=ht(e);if(vi(e))return n;if(!Qt(e)){let o=Kn(e);for(;o&&!Qr(o);){if(It(o)&&!ha(o))return o;o=Kn(o)}return n}let r=tf(e,t);for(;r&&L5(r)&&ha(r);)r=tf(r,t);return r&&Qr(r)&&ha(r)&&!tu(r)?n:r||M5(e)||n}const W5=async function(e){const t=this.getOffsetParent||sp,n=this.getDimensions,r=await n(e.floating);return{reference:q5(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function G5(e){return Pt(e).direction==="rtl"}const Y5={convertOffsetParentRelativeRectToViewportRelativeRect:P5,getDocumentElement:tn,getClippingRect:F5,getOffsetParent:sp,getElementRects:W5,getClientRects:D5,getDimensions:B5,getScale:Wr,isElement:It,isRTL:G5};function lp(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function U5(e,t){let n=null,r;const o=tn(e);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function l(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),s();const d=e.getBoundingClientRect(),{left:f,top:m,width:p,height:h}=d;if(i||t(),!p||!h)return;const g=tl(m),y=tl(o.clientWidth-(f+p)),v=tl(o.clientHeight-(m+h)),w=tl(f),x={rootMargin:-g+"px "+-y+"px "+-v+"px "+-w+"px",threshold:pt(0,Zn(1,c))||1};let C=!0;function _(R){const S=R[0].intersectionRatio;if(S!==c){if(!C)return l();S?l(!1,S):r=setTimeout(()=>{l(!1,1e-7)},1e3)}S===1&&!lp(d,e.getBoundingClientRect())&&l(),C=!1}try{n=new IntersectionObserver(_,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,x)}n.observe(e)}return l(!0),s}function V5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=ru(e),f=o||s?[...d?is(d):[],...is(t)]:[];f.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const m=d&&i?U5(d,n):null;let p=-1,h=null;l&&(h=new ResizeObserver(w=>{let[b]=w;b&&b.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),d&&!c&&h.observe(d),h.observe(t));let g,y=c?pr(e):null;c&&v();function v(){const w=pr(e);y&&!lp(y,w)&&n(),y=w,g=requestAnimationFrame(v)}return n(),()=>{var w;f.forEach(b=>{o&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),m?.(),(w=h)==null||w.disconnect(),h=null,c&&cancelAnimationFrame(g)}}const H5=R5,Z5=E5,X5=_5,K5=T5,Q5=k5,nf=C5,J5=j5,e3=(e,t,n)=>{const r=new Map,o={platform:Y5,...n},s={...o.platform,_c:r};return x5(e,t,{...o,platform:s})};var kl=typeof document<"u"?u.useLayoutEffect:u.useEffect;function Bl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Bl(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Bl(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ip(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rf(e,t){const n=ip(e);return Math.round(t*n)/n}function ga(e){const t=u.useRef(e);return kl(()=>{t.current=e}),t}function t3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:l}={},transform:i=!0,whileElementsMounted:c,open:d}=e,[f,m]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=u.useState(r);Bl(p,r)||h(r);const[g,y]=u.useState(null),[v,w]=u.useState(null),b=u.useCallback(H=>{H!==R.current&&(R.current=H,y(H))},[]),x=u.useCallback(H=>{H!==S.current&&(S.current=H,w(H))},[]),C=s||g,_=l||v,R=u.useRef(null),S=u.useRef(null),E=u.useRef(f),T=c!=null,M=ga(c),D=ga(o),F=ga(d),V=u.useCallback(()=>{if(!R.current||!S.current)return;const H={placement:t,strategy:n,middleware:p};D.current&&(H.platform=D.current),e3(R.current,S.current,H).then(N=>{const ae={...N,isPositioned:F.current!==!1};q.current&&!Bl(E.current,ae)&&(E.current=ae,hn.flushSync(()=>{m(ae)}))})},[p,t,n,D,F]);kl(()=>{d===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,m(H=>({...H,isPositioned:!1})))},[d]);const q=u.useRef(!1);kl(()=>(q.current=!0,()=>{q.current=!1}),[]),kl(()=>{if(C&&(R.current=C),_&&(S.current=_),C&&_){if(M.current)return M.current(C,_,V);V()}},[C,_,V,M,T]);const ne=u.useMemo(()=>({reference:R,floating:S,setReference:b,setFloating:x}),[b,x]),U=u.useMemo(()=>({reference:C,floating:_}),[C,_]),K=u.useMemo(()=>{const H={position:n,left:0,top:0};if(!U.floating)return H;const N=rf(U.floating,f.x),ae=rf(U.floating,f.y);return i?{...H,transform:"translate("+N+"px, "+ae+"px)",...ip(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:ae}},[n,i,U.floating,f.x,f.y]);return u.useMemo(()=>({...f,update:V,refs:ne,elements:U,floatingStyles:K}),[f,V,ne,U,K])}const n3=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?nf({element:r.current,padding:o}).fn(n):{}:r?nf({element:r,padding:o}).fn(n):{}}}},r3=(e,t)=>({...H5(e),options:[e,t]}),o3=(e,t)=>({...Z5(e),options:[e,t]}),s3=(e,t)=>({...J5(e),options:[e,t]}),l3=(e,t)=>({...X5(e),options:[e,t]}),i3=(e,t)=>({...K5(e),options:[e,t]}),a3=(e,t)=>({...Q5(e),options:[e,t]}),c3=(e,t)=>({...n3(e),options:[e,t]});var u3="Arrow",ap=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return a.jsx(X.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:a.jsx("polygon",{points:"0,0 30,0 15,10"})})});ap.displayName=u3;var d3=ap;function f3(e){const[t,n]=u.useState(void 0);return nt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let l,i;if("borderBoxSize"in s){const c=s.borderBoxSize,d=Array.isArray(c)?c[0]:c;l=d.inlineSize,i=d.blockSize}else l=e.offsetWidth,i=e.offsetHeight;n({width:l,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var su="Popper",[cp,tr]=zt(su),[m3,up]=cp(su),dp=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return a.jsx(m3,{scope:t,anchor:r,onAnchorChange:o,children:n})};dp.displayName=su;var fp="PopperAnchor",mp=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=up(fp,n),l=u.useRef(null),i=oe(t,l);return u.useEffect(()=>{s.onAnchorChange(r?.current||l.current)}),r?null:a.jsx(X.div,{...o,ref:i})});mp.displayName=fp;var lu="PopperContent",[p3,h3]=cp(lu),pp=u.forwardRef((e,t)=>{var n,r,o,s,l,i;const{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:m="center",alignOffset:p=0,arrowPadding:h=0,avoidCollisions:g=!0,collisionBoundary:y=[],collisionPadding:v=0,sticky:w="partial",hideWhenDetached:b=!1,updatePositionStrategy:x="optimized",onPlaced:C,..._}=e,R=up(lu,c),[S,E]=u.useState(null),T=oe(t,Oe=>E(Oe)),[M,D]=u.useState(null),F=f3(M),V=F?.width??0,q=F?.height??0,ne=d+(m!=="center"?"-"+m:""),U=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},K=Array.isArray(y)?y:[y],H=K.length>0,N={padding:U,boundary:K.filter(y3),altBoundary:H},{refs:ae,floatingStyles:Ae,placement:ye,isPositioned:je,middlewareData:ke}=t3({strategy:"fixed",placement:ne,whileElementsMounted:(...Oe)=>V5(...Oe,{animationFrame:x==="always"}),elements:{reference:R.anchor},middleware:[r3({mainAxis:f+q,alignmentAxis:p}),g&&o3({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?s3():void 0,...N}),g&&l3({...N}),i3({...N,apply:({elements:Oe,rects:$e,availableWidth:yt,availableHeight:vt})=>{const{width:Ln,height:Ks}=$e.reference,Mn=Oe.floating.style;Mn.setProperty("--radix-popper-available-width",`${yt}px`),Mn.setProperty("--radix-popper-available-height",`${vt}px`),Mn.setProperty("--radix-popper-anchor-width",`${Ln}px`),Mn.setProperty("--radix-popper-anchor-height",`${Ks}px`)}}),M&&c3({element:M,padding:h}),v3({arrowWidth:V,arrowHeight:q}),b&&a3({strategy:"referenceHidden",...N})]}),[Ze,Se]=yp(ye),G=qe(C);nt(()=>{je&&G?.()},[je,G]);const se=(n=ke.arrow)==null?void 0:n.x,ce=(r=ke.arrow)==null?void 0:r.y,W=((o=ke.arrow)==null?void 0:o.centerOffset)!==0,[de,le]=u.useState();return nt(()=>{S&&le(window.getComputedStyle(S).zIndex)},[S]),a.jsx("div",{ref:ae.setFloating,"data-radix-popper-content-wrapper":"",style:{...Ae,transform:je?Ae.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[(s=ke.transformOrigin)==null?void 0:s.x,(l=ke.transformOrigin)==null?void 0:l.y].join(" "),...((i=ke.hide)==null?void 0:i.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:a.jsx(p3,{scope:c,placedSide:Ze,onArrowChange:D,arrowX:se,arrowY:ce,shouldHideArrow:W,children:a.jsx(X.div,{"data-side":Ze,"data-align":Se,..._,ref:T,style:{..._.style,animation:je?void 0:"none"}})})})});pp.displayName=lu;var hp="PopperArrow",g3={top:"bottom",right:"left",bottom:"top",left:"right"},gp=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=h3(hp,r),l=g3[s.placedSide];return a.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:a.jsx(d3,{...o,ref:n,style:{...o.style,display:"block"}})})});gp.displayName=hp;function y3(e){return e!==null}var v3=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o;const{placement:s,rects:l,middlewareData:i}=t,d=((n=i.arrow)==null?void 0:n.centerOffset)!==0,f=d?0:e.arrowWidth,m=d?0:e.arrowHeight,[p,h]=yp(s),g={start:"0%",center:"50%",end:"100%"}[h],y=(((r=i.arrow)==null?void 0:r.x)??0)+f/2,v=(((o=i.arrow)==null?void 0:o.y)??0)+m/2;let w="",b="";return p==="bottom"?(w=d?g:`${y}px`,b=`${-m}px`):p==="top"?(w=d?g:`${y}px`,b=`${l.floating.height+m}px`):p==="right"?(w=`${-m}px`,b=d?g:`${v}px`):p==="left"&&(w=`${l.floating.width+m}px`,b=d?g:`${v}px`),{data:{x:w,y:b}}}});function yp(e){const[t,n="center"]=e.split("-");return[t,n]}var wi=dp,Rs=mp,xi=pp,Ci=gp,b3="Portal",uo=u.forwardRef((e,t)=>{var n;const{container:r,...o}=e,[s,l]=u.useState(!1);nt(()=>l(!0),[]);const i=r||s&&((n=globalThis?.document)==null?void 0:n.body);return i?qy.createPortal(a.jsx(X.div,{...o,ref:t}),i):null});uo.displayName=b3;function w3(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var He=e=>{const{present:t,children:n}=e,r=x3(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),s=oe(r.ref,C3(o));return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:s}):null};He.displayName="Presence";function x3(e){const[t,n]=u.useState(),r=u.useRef({}),o=u.useRef(e),s=u.useRef("none"),l=e?"mounted":"unmounted",[i,c]=w3(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const d=nl(r.current);s.current=i==="mounted"?d:"none"},[i]),nt(()=>{const d=r.current,f=o.current;if(f!==e){const p=s.current,h=nl(d);e?c("MOUNT"):h==="none"||d?.display==="none"?c("UNMOUNT"):c(f&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),nt(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,m=h=>{const y=nl(r.current).includes(h.animationName);if(h.target===t&&y&&(c("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},p=h=>{h.target===t&&(s.current=nl(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:u.useCallback(d=>{d&&(r.current=getComputedStyle(d)),n(d)},[])}}function nl(e){return e?.animationName||"none"}function C3(e){var t,n;let r=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}function Qn({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=_3({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:r,i=qe(n),c=u.useCallback(d=>{if(s){const m=typeof d=="function"?d(e):d;m!==e&&i(m)}else o(d)},[s,e,o,i]);return[l,c]}function _3({defaultProp:e,onChange:t}){const n=u.useState(e),[r]=n,o=u.useRef(r),s=qe(t);return u.useEffect(()=>{o.current!==r&&(s(r),o.current=r)},[r,o,s]),n}var k3="VisuallyHidden",iu=u.forwardRef((e,t)=>a.jsx(X.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));iu.displayName=k3;var S3=iu,[_i,NL]=zt("Tooltip",[tr]),ki=tr(),vp="TooltipProvider",R3=700,lc="tooltip.open",[E3,au]=_i(vp),bp=e=>{const{__scopeTooltip:t,delayDuration:n=R3,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,[l,i]=u.useState(!0),c=u.useRef(!1),d=u.useRef(0);return u.useEffect(()=>{const f=d.current;return()=>window.clearTimeout(f)},[]),a.jsx(E3,{scope:t,isOpenDelayed:l,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(d.current),i(!1)},[]),onClose:u.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>i(!0),r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:u.useCallback(f=>{c.current=f},[]),disableHoverableContent:o,children:s})};bp.displayName=vp;var Si="Tooltip",[j3,Es]=_i(Si),fo=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:s,disableHoverableContent:l,delayDuration:i}=e,c=au(Si,e.__scopeTooltip),d=ki(t),[f,m]=u.useState(null),p=St(),h=u.useRef(0),g=l??c.disableHoverableContent,y=i??c.delayDuration,v=u.useRef(!1),[w=!1,b]=Qn({prop:r,defaultProp:o,onChange:S=>{S?(c.onOpen(),document.dispatchEvent(new CustomEvent(lc))):c.onClose(),s?.(S)}}),x=u.useMemo(()=>w?v.current?"delayed-open":"instant-open":"closed",[w]),C=u.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,b(!0)},[b]),_=u.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b(!1)},[b]),R=u.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,b(!0),h.current=0},y)},[y,b]);return u.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),a.jsx(wi,{...d,children:a.jsx(j3,{scope:t,contentId:p,open:w,stateAttribute:x,trigger:f,onTriggerChange:m,onTriggerEnter:u.useCallback(()=>{c.isOpenDelayed?R():C()},[c.isOpenDelayed,R,C]),onTriggerLeave:u.useCallback(()=>{g?_():(window.clearTimeout(h.current),h.current=0)},[_,g]),onOpen:C,onClose:_,disableHoverableContent:g,children:n})})};fo.displayName=Si;var ic="TooltipTrigger",mo=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Es(ic,n),s=au(ic,n),l=ki(n),i=u.useRef(null),c=oe(t,i,o.onTriggerChange),d=u.useRef(!1),f=u.useRef(!1),m=u.useCallback(()=>d.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),a.jsx(Rs,{asChild:!0,...l,children:a.jsx(X.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:O(e.onPointerMove,p=>{p.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:O(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:O(e.onPointerDown,()=>{d.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:O(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:O(e.onBlur,o.onClose),onClick:O(e.onClick,o.onClose)})})});mo.displayName=ic;var cu="TooltipPortal",[T3,L3]=_i(cu,{forceMount:void 0}),po=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=Es(cu,t);return a.jsx(T3,{scope:t,forceMount:n,children:a.jsx(He,{present:n||s.open,children:a.jsx(uo,{asChild:!0,container:o,children:r})})})};po.displayName=cu;var Jr="TooltipContent",ho=u.forwardRef((e,t)=>{const n=L3(Jr,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,l=Es(Jr,e.__scopeTooltip);return a.jsx(He,{present:r||l.open,children:l.disableHoverableContent?a.jsx(wp,{side:o,...s,ref:t}):a.jsx(M3,{side:o,...s,ref:t})})}),M3=u.forwardRef((e,t)=>{const n=Es(Jr,e.__scopeTooltip),r=au(Jr,e.__scopeTooltip),o=u.useRef(null),s=oe(t,o),[l,i]=u.useState(null),{trigger:c,onClose:d}=n,f=o.current,{onPointerInTransitChange:m}=r,p=u.useCallback(()=>{i(null),m(!1)},[m]),h=u.useCallback((g,y)=>{const v=g.currentTarget,w={x:g.clientX,y:g.clientY},b=D3(w,v.getBoundingClientRect()),x=N3(w,b),C=O3(y.getBoundingClientRect()),_=z3([...x,...C]);i(_),m(!0)},[m]);return u.useEffect(()=>()=>p(),[p]),u.useEffect(()=>{if(c&&f){const g=v=>h(v,f),y=v=>h(v,c);return c.addEventListener("pointerleave",g),f.addEventListener("pointerleave",y),()=>{c.removeEventListener("pointerleave",g),f.removeEventListener("pointerleave",y)}}},[c,f,h,p]),u.useEffect(()=>{if(l){const g=y=>{const v=y.target,w={x:y.clientX,y:y.clientY},b=c?.contains(v)||f?.contains(v),x=!$3(w,l);b?p():x&&(p(),d())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[c,f,l,d,p]),a.jsx(wp,{...e,ref:s})}),[A3,I3]=_i(Si,{isInside:!1}),wp=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:l,...i}=e,c=Es(Jr,n),d=ki(n),{onClose:f}=c;return u.useEffect(()=>(document.addEventListener(lc,f),()=>document.removeEventListener(lc,f)),[f]),u.useEffect(()=>{if(c.trigger){const m=p=>{const h=p.target;h?.contains(c.trigger)&&f()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[c.trigger,f]),a.jsx(io,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:m=>m.preventDefault(),onDismiss:f,children:a.jsxs(xi,{"data-state":c.stateAttribute,...d,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[a.jsx(Hm,{children:r}),a.jsx(A3,{scope:n,isInside:!0,children:a.jsx(S3,{id:c.contentId,role:"tooltip",children:o||r})})]})})});ho.displayName=Jr;var xp="TooltipArrow",P3=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ki(n);return I3(xp,n).isInside?null:a.jsx(Ci,{...o,...r,ref:t})});P3.displayName=xp;function D3(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function N3(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function O3(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function $3(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,l=t.length-1;s<t.length;l=s++){const i=t[s].x,c=t[s].y,d=t[l].x,f=t[l].y;c>r!=f>r&&n<(d-i)*(r-c)/(f-c)+i&&(o=!o)}return o}function z3(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),F3(t)}function F3(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(o.y-l.y)>=(s.y-l.y)*(o.x-l.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],l=n[n.length-2];if((s.x-l.x)*(o.y-l.y)>=(s.y-l.y)*(o.x-l.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var go=fo,yo=mo,vo=po,bo=ho;const ge=u.createContext({});function Cp(e,t){return u.useMemo(()=>{if(e)return new Z.ASTQuery({query:t,source:e})},[e,t])}const _p=u.createContext({focusMainView:()=>{},isMainViewFocused:!0,focusNestView:()=>{},isNestViewFocused:()=>!1,focusedNestView:null});function B3({rootQuery:e,focusedNestViewPath:t,onFocusedNestViewPathChange:n,children:r}){const o=u.useMemo(()=>{if(t.length===0)return null;if(e){const d=e.definition;if(d instanceof Z.ASTArrowQueryDefinition)return Sl(d.view,[...t].reverse())}return null},[e,t]),s=u.useCallback(()=>{n([])},[n]),l=u.useCallback(d=>{n([...d])},[n]),i=u.useCallback(d=>JSON.stringify(d)===JSON.stringify(t),[t]),c=t.length===0;return a.jsx(_p.Provider,{value:{focusMainView:s,isMainViewFocused:c,focusNestView:l,isNestViewFocused:i,focusedNestView:o},children:r})}function js(){return u.useContext(_p)}const Sl=(e,t)=>{if(t.length===0)return null;if(e instanceof Z.ASTArrowViewDefinition)return Sl(e.view,t);if(e instanceof Z.ASTSegmentViewDefinition){const n=t.pop(),r=e.operations.items.find(o=>o instanceof Z.ASTNestViewOperation&&o.name===n);return r===void 0?(t.push(n),null):t.length===0?r.view:Sl(r.view.definition,t)}return e instanceof Z.ASTRefinementViewDefinition?Sl(e.refinement,t):null};function OL({source:e,query:t,onQueryChange:n,focusedNestViewPath:r,onFocusedNestViewPathChange:o,children:s,topValues:l,onDrill:i}){const c=Cp(e,t);return a.jsx(bp,{children:a.jsx(B3,{rootQuery:c,focusedNestViewPath:r,onFocusedNestViewPathChange:o,children:a.jsx(ge.Provider,{value:{source:e,rootQuery:c,setQuery:n,topValues:l,onDrill:i},children:s})})})}var Do={},of;function q3(){if(of)return Do;of=1,Object.defineProperty(Do,"__esModule",{value:!0}),Do.styleq=void 0;var e=new WeakMap,t="$$css";function n(o){var s,l,i;return o!=null&&(s=o.disableCache===!0,l=o.disableMix===!0,i=o.transform),function(){for(var d=[],f="",m=null,p=s?null:e,h=new Array(arguments.length),g=0;g<arguments.length;g++)h[g]=arguments[g];for(;h.length>0;){var y=h.pop();if(!(y==null||y===!1)){if(Array.isArray(y)){for(var v=0;v<y.length;v++)h.push(y[v]);continue}var w=i!=null?i(y):y;if(w.$$css){var b="";if(p!=null&&p.has(w)){var x=p.get(w);x!=null&&(b=x[0],d.push.apply(d,x[1]),p=x[2])}else{var C=[];for(var _ in w){var R=w[_];_!==t&&(typeof R=="string"||R===null?d.includes(_)||(d.push(_),p!=null&&C.push(_),typeof R=="string"&&(b+=b?" "+R:R)):console.error("styleq: ".concat(_," typeof ").concat(String(R),' is not "string" or "null".')))}if(p!=null){var S=new WeakMap;p.set(w,[b,C,S]),p=S}}b&&(f=f?b+" "+f:b)}else if(l)m==null&&(m={}),m=Object.assign({},w,m);else{var E=null;for(var T in w){var M=w[T];M!==void 0&&(d.includes(T)||(M!=null&&(m==null&&(m={}),E==null&&(E={}),E[T]=M),d.push(T),p=null))}E!=null&&(m=Object.assign(E,m))}}}var D=[f,m];return D}}var r=n();return Do.styleq=r,r.factory=n,Do}var kp=q3();const vr=e=>new Error(`'stylex.${e}' should never be called at runtime. It should be compiled away by '@stylexjs/babel-plugin'`),ft=e=>vr(`types.${e}`);function Sp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[r,o]=kp.styleq(t),s={};return r!=null&&r!==""&&(s.className=r),o!=null&&Object.keys(o).length>0&&(s.style=o),s}function W3(){const{className:e,style:t}=Sp(...arguments),n={};return e!=null&&e!==""&&(n.class=e),t!=null&&Object.keys(t).length>0&&(n.style=Object.keys(t).map(r=>`${r}:${t[r]};`).join("")),n}function G3(e){throw vr("create")}function Y3(e){throw vr("defineVars")}const U3=(e,t)=>{throw vr("createTheme")},V3=e=>{throw vr("include")},H3=G3,Z3=Y3,X3=U3,K3=V3,Q3={angle:e=>{throw ft("angle")},color:e=>{throw ft("color")},url:e=>{throw ft("url")},image:e=>{throw ft("image")},integer:e=>{throw ft("integer")},lengthPercentage:e=>{throw ft("lengthPercentage")},length:e=>{throw ft("length")},percentage:e=>{throw ft("percentage")},number:e=>{throw ft("number")},resolution:e=>{throw ft("resolution")},time:e=>{throw ft("time")},transformFunction:e=>{throw ft("transformFunction")},transformList:e=>{throw ft("transformList")}},J3=e=>{throw vr("keyframes")},e2=function(){throw vr("firstThatWorks")};function k(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[r]=kp.styleq(t);return r}k.props=Sp;k.attrs=W3;k.create=H3;k.defineVars=Z3;k.createTheme=X3;k.include=K3;k.keyframes=J3;k.firstThatWorks=e2;k.types=Q3;const Sn={default:{padding:"mlydqdrvq",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,borderRadius:"mly4pepcl",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,color:"mly1rs82da",backgroundColor:"mly1jmk7v",maxWidth:"mlyxc7z9f",boxShadow:"mly17fq3gk",zIndex:"mlyhtitgo",$$css:!0},card:{width:"mly1g65f5b",maxHeight:"mly1kbvuzt",zIndex:"mlyhtitgo",$$css:!0}},z={largeBody:{fontFamily:"mly1rj5sg5",color:"mly1dhlylr",fontWeight:"mlyo1l8bm",fontSize:"mly1j61zf2",lineHeight:"mly1fc57z9",letterSpacing:"mly12oo3zp",$$css:!0},emphasized:{fontFamily:"mly1rj5sg5",color:"mly1dhlylr",fontWeight:"mly1xlr1w8",fontSize:"mlyif65rj",lineHeight:"mly1fc57z9",letterSpacing:"mly1gu5id8",$$css:!0},body:{fontFamily:"mly1rj5sg5",color:"mly1dhlylr",fontWeight:"mlyo1l8bm",fontSize:"mlyif65rj",lineHeight:"mly1fc57z9",letterSpacing:"mly12oo3zp",$$css:!0},link:{fontFamily:"mly1rj5sg5",color:"mlykfrnou",fontWeight:"mlyo1l8bm",fontSize:"mlyif65rj",lineHeight:"mly1fc57z9",letterSpacing:"mly12oo3zp",$$css:!0},supporting:{fontFamily:"mly1rj5sg5",color:"mly1dhlylr",fontWeight:"mlyo1l8bm",fontSize:"mlyfifm61",lineHeight:"mly1d3mw78",letterSpacing:"mly12oo3zp",$$css:!0},badge:{fontFamily:"mly1rj5sg5",color:"mly183j0n7",fontWeight:"mly1s688f",fontSize:"mlyfifm61",lineHeight:"mly1d3mw78",letterSpacing:"mly1gu5id8",$$css:!0},tooltipText:{fontFamily:"mly1rj5sg5",color:"mly1rs82da",fontSize:"mlyif65rj",fontStyle:"mly1j61x8r",fontWeight:"mlyo1l8bm",lineHeight:"mly1fc57z9",$$css:!0}},t2=e=>u.createElement("svg",{width:110,height:110,viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"cahevron_down",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M52.9466923,41.3127809 C54.0529774,40.2742275 55.7502198,40.2309545 56.9057514,41.1829617 L57.0533077,41.3127809 L81.5533077,64.3127809 C82.7612755,65.4467914 82.8212296,67.34534 81.6872191,68.5533077 C80.5968243,69.7148152 78.7995712,69.8149195 77.5890551,68.8127704 L77.4466923,68.6872191 L54.9999906,47.615 L32.5533077,68.6872191 C31.3918003,69.7776139 29.5918121,69.7641211 28.4469384,68.6875913 L28.3127809,68.5533077 C27.2223861,67.3918003 27.2358789,65.5918121 28.3124087,64.4469384 L28.4466923,64.3127809 L52.9466923,41.3127809 Z",id:"Path",fill:"currentColor",fillRule:"nonzero",transform:"translate(55.000000, 55.000005) rotate(-180.000000) translate(-55.000000, -55.000005) "}))),n2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"chevron_left",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M52.9466923,41.3127809 C54.0529774,40.2742275 55.7502198,40.2309545 56.9057514,41.1829617 L57.0533077,41.3127809 L81.5533077,64.3127809 C82.7612755,65.4467914 82.8212296,67.34534 81.6872191,68.5533077 C80.5968243,69.7148152 78.7995712,69.8149195 77.5890551,68.8127704 L77.4466923,68.6872191 L54.9999906,47.615 L32.5533077,68.6872191 C31.3918003,69.7776139 29.5918121,69.7641211 28.4469384,68.6875913 L28.3127809,68.5533077 C27.2223861,67.3918003 27.2358789,65.5918121 28.3124087,64.4469384 L28.4466923,64.3127809 L52.9466923,41.3127809 Z",id:"Path",fill:"currentColor",fillRule:"nonzero",transform:"translate(55.000000, 55.000005) rotate(-90.000000) translate(-55.000000, -55.000005) "}))),r2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"chevron_right",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M52.9466923,41.3127809 C54.0529774,40.2742275 55.7502198,40.2309545 56.9057514,41.1829617 L57.0533077,41.3127809 L81.5533077,64.3127809 C82.7612755,65.4467914 82.8212296,67.34534 81.6872191,68.5533077 C80.5968243,69.7148152 78.7995712,69.8149195 77.5890551,68.8127704 L77.4466923,68.6872191 L54.9999906,47.615 L32.5533077,68.6872191 C31.3918003,69.7776139 29.5918121,69.7641211 28.4469384,68.6875913 L28.3127809,68.5533077 C27.2223861,67.3918003 27.2358789,65.5918121 28.3124087,64.4469384 L28.4466923,64.3127809 L52.9466923,41.3127809 Z",id:"Path",fill:"currentColor",fillRule:"nonzero",transform:"translate(55.000000, 55.000005) rotate(-270.000000) translate(-55.000000, -55.000005) "}))),o2=e=>u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,viewBox:"0 0 24 24",width:24,...e},u.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),u.createElement("path",{fill:"currentColor",d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),Rp=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"query_clear_hover",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("circle",{className:"circle hoverfill",fill:"transparent",cx:55,cy:55,r:55}),u.createElement("path",{d:"M78.1428571,25 L85,31.8571429 L61.857,55 L85,78.1428571 L78.1428571,85 L55,61.857 L31.8571429,85 L25,78.1428571 L48.142,55 L25,31.8571429 L31.8571429,25 L55,48.143 L78.1428571,25 Z",className:"cross primaryfill",fill:"currentColor"}))),s2=e=>u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},u.createElement("path",{d:"M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z"})),l2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"query_add",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M75.8285714,28 L82,34.1714286 L61.171,55 L82,75.8285714 L75.8285714,82 L54.999,61.171 L34.1714286,82 L28,75.8285714 L48.828,55 L28,34.1714286 L34.1714286,28 L55,48.829 L75.8285714,28 Z",id:"Combined-Shape-Copy",fill:"currentColor",transform:"translate(55.000000, 55.000000) rotate(-315.000000) translate(-55.000000, -55.000000) ",className:"primaryfill"}))),i2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"5 5 100 100",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"insert_measure",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M64.4079772,43.4952662 C64.4079772,65.775216 64.4079772,77.6781315 64.4079772,79.2040126 C64.4079772,81.4928343 72.4309475,81.4935567 72.4309475,79.2040126 C72.4309475,77.6776499 72.4309475,65.7747344 72.4309475,43.4952662 L82.1242499,53.5032288 C82.9082803,54.3127101 83.9390395,54.7167092 84.9596343,54.7167092 C85.980229,54.7167092 87.0118722,54.3119686 87.7950187,53.5032288 C89.3623612,51.8850077 89.3623612,49.2552488 87.7950187,47.6371608 L71.2655269,30.5703346 C70.8943747,30.1871342 70.4404886,29.8781937 69.9456129,29.6650532 C69.9247535,29.6546561 69.9046123,29.6546561 69.883753,29.6435167 C69.4298852,29.4519166 68.9350096,29.3457171 68.4192709,29.3457171 C67.9035322,29.3457171 67.4086565,29.4519147 66.9547887,29.6435167 C66.9339294,29.6539139 66.9137882,29.6539139 66.8929288,29.6650532 C66.3980532,29.8781937 65.9441854,30.1863928 65.5730149,30.5703346 L49.0328429,47.6474271 C47.4655004,49.2656482 47.4655004,51.8954071 49.0328429,53.5134951 C50.6001855,55.1205753 53.1472623,55.1205753 54.714476,53.5023554 L64.4079772,43.4952662 Z",id:"Path-Copy-3",fill:"currentColor",className:"primaryfill",fillRule:"nonzero",transform:"translate(68.413931, 55.133308) rotate(-270.000000) translate(-68.413931, -55.133308) "}),u.createElement("rect",{id:"Rectangle-Copy-50",className:"primaryfill",fill:"currentColor",fillRule:"nonzero",transform:"translate(32.019040, 39.025784) rotate(-90.000000) translate(-32.019040, -39.025784) ",x:24.0122609,y:34.8667243,width:16.0135574,height:8.31811859}),u.createElement("rect",{id:"Rectangle-Copy-51",className:"primaryfill",fill:"currentColor",fillRule:"nonzero",transform:"translate(32.019040, 72.330197) rotate(-90.000000) translate(-32.019040, -72.330197) ",x:24.0122609,y:68.1711376,width:16.0135574,height:8.31811859}),u.createElement("circle",{id:"Oval-Copy-16",className:"primarystroke",stroke:"currentColor",strokeWidth:7,fillRule:"nonzero",transform:"translate(32.019040, 88.946306) rotate(-180.000000) translate(-32.019040, -88.946306) ",cx:32.0190396,cy:88.9463056,r:9.09652528}),u.createElement("circle",{id:"Oval-Copy-20",className:"primarystroke",stroke:"currentColor",strokeWidth:7,fillRule:"nonzero",transform:"translate(32.019040, 55.133308) rotate(-90.000000) translate(-32.019040, -55.133308) ",cx:32.0190396,cy:55.1333084,r:9.09652528}),u.createElement("circle",{id:"Oval-Copy-21",className:"primarystroke",stroke:"currentColor",strokeWidth:7,fillRule:"nonzero",cx:32.0190396,cy:23.2007668,r:9.09652528}))),a2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"insert_filter",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M87.3843313,20.5 C88.0702245,20.5 88.6794354,20.684137 89.1839151,20.9924545 C89.72968,21.3260038 90.1536978,21.8060023 90.4194477,22.364077 C90.6824778,22.9164401 90.7905536,23.5453405 90.7077209,24.1843828 C90.641307,24.6967561 90.4522801,25.21669 90.1181537,25.7073778 L89.9660074,25.9157747 L65.9667297,54.9330833 L65.9667297,86.0952768 C65.9667297,87.3578277 65.3421199,88.3687734 64.46847,88.9512067 C64.0000984,89.2634544 63.4591929,89.4523731 62.9014864,89.49211 C62.4335638,89.5254497 61.9536386,89.4542406 61.4987219,89.2647425 L61.3053966,89.1762469 L45.2981054,81.501442 C44.7448345,81.2248066 44.1940182,80.794047 43.8075879,80.2144017 C43.516589,79.7779032 43.3168206,79.2579753 43.2760203,78.6543848 L43.268304,78.4241163 L43.268304,54.9330833 L19.2778986,25.9265022 C18.8405281,25.4244753 18.5999563,24.8470099 18.5253334,24.2601464 C18.4451968,23.6299215 18.5577673,22.9877736 18.8297244,22.4166636 C19.0989541,21.8512813 19.5239716,21.3563425 20.06756,21.0111708 C20.5069962,20.7321343 21.0239609,20.5500465 21.6001779,20.5088845 L21.8507024,20.5 L87.3843313,20.5 Z M80.4108174,26.9794004 L28.8312662,26.9794004 L49.2106529,51.6044926 L49.3557497,51.8317181 C49.767411,52.5135117 49.9668805,53.1962297 49.9668805,53.8764024 L49.9668805,53.8764024 L49.9668805,76.3587304 L59.2681532,80.9104171 L59.2681532,53.6572264 L59.2765596,53.4785743 C59.3429907,52.7639199 59.7932531,52.0547544 60.2732157,51.568472 L60.2732157,51.568472 L80.4108174,26.9794004 Z",id:"Shape-Copy-2",stroke:"currentColor",fill:"currentColor",className:"primaryfill primarystroke",fillRule:"nonzero"}))),c2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"insert_group_by",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M31.7463881,49.3114698 C32.6824928,49.3083801 33.6154932,49.1963884 34.5261904,48.9793527 L45.0010173,67.8024842 L45.0010173,67.8032565 C43.2956473,70.2493007 42.5480527,73.2367133 42.8986175,76.1988173 C43.2492613,79.1601303 44.6742783,81.890304 46.9033203,83.870708 C49.1330544,85.851903 52.0117188,86.9463056 54.9937928,86.9463056 C57.9758669,86.9463056 60.8545313,85.8518634 63.0834745,83.870708 C65.3132086,81.890304 66.7382058,79.1601303 67.0889682,76.1988173 C67.4396121,73.2369111 66.6919779,70.2493007 64.9865684,67.8032565 L75.4613953,48.980125 L75.4613953,48.9793527 C78.5099046,49.699958 81.7183727,49.2180056 84.4200741,47.6338999 C87.1225664,46.0505653 89.1106817,43.4862425 89.9717699,40.4749053 C90.8328581,37.4635681 90.5008399,34.235723 89.0449384,31.4630387 C87.5882658,28.6903544 85.1197206,26.584791 82.151685,25.5847028 C79.1834516,24.5837248 75.9441385,24.7652355 73.1066007,26.0913707 C70.2688652,27.4167347 68.0507969,29.7848559 66.9138836,32.7028673 L43.0841815,32.7028673 C42.0044302,29.9371034 39.9514417,27.6601133 37.310837,26.3015513 C34.6702324,24.9429696 31.623898,24.5961814 28.7454313,25.32606 C25.8669647,26.0559385 23.3534966,27.8122421 21.6791694,30.2652067 C20.0046839,32.7173803 19.284138,35.6972794 19.6532888,38.644554 C20.021708,41.5910378 21.4544362,44.3012413 23.6819162,46.2662229 C25.9086844,48.2303345 28.776474,49.3139413 31.7460915,49.3115686 L31.7463881,49.3114698 Z M54.9987359,80.3146003 C53.5304767,80.3146003 52.1224442,79.7314725 51.0836021,78.6934213 C50.0455509,77.6545989 49.4624231,76.2465862 49.4624231,74.7782874 C49.4624231,73.3099887 50.0455509,71.9019957 51.0836021,70.8639445 C52.1224245,69.8251221 53.5304372,69.2419944 54.9987359,69.2419944 C56.4670347,69.2419944 57.8750277,69.8251221 58.9138698,70.8639445 C59.951921,71.9019957 60.5350488,73.3099887 60.5350488,74.7782874 C60.5350488,76.2465862 59.951921,77.6545792 58.9138698,78.6934213 C57.8750474,79.7314725 56.4670347,80.3146003 54.9987359,80.3146003 Z M78.2510838,31.5953952 C79.7193431,31.5953952 81.1273755,32.1785229 82.1654268,33.2165742 C83.203478,34.2553966 83.7873769,35.6634093 83.7873769,37.131708 C83.7873769,38.6000068 83.203478,40.0079998 82.1654268,41.046051 C81.1273755,42.0848734 79.7193826,42.6680011 78.2510838,42.6680011 C76.7828246,42.6680011 75.3740012,42.0848734 74.33595,41.046051 C73.2978987,40.0079998 72.714771,38.6000068 72.714771,37.131708 C72.714771,35.6634093 73.2978987,34.2554163 74.33595,33.2165742 C75.3740012,32.1785229 76.7827851,31.5953952 78.2510838,31.5953952 Z M43.7166018,39.3459801 L66.2808701,39.3459801 C66.7149337,41.7696815 67.8734779,44.0047541 69.6028318,45.75738 L59.7591401,63.5727121 C56.7137943,62.2774614 53.2720118,62.2774614 50.2258752,63.5727121 L40.3380911,45.75738 C42.0882652,44.0118524 43.2661865,41.7758109 43.7156132,39.3459801 L43.7166018,39.3459801 Z M31.7465858,31.5953952 C33.214845,31.5953952 34.6236684,32.1785229 35.6617196,33.2165742 C36.6997709,34.2553966 37.2828986,35.6634093 37.2828986,37.131708 C37.2828986,38.6000068 36.6997709,40.0079998 35.6617196,41.046051 C34.6236684,42.0848734 33.2148846,42.6680011 31.7465858,42.6680011 C30.2783266,42.6680011 28.8702941,42.0848734 27.8322428,41.046051 C26.7941916,40.0079998 26.2102927,38.6000068 26.2102927,37.131708 C26.2102927,35.6634093 26.7941916,34.2554163 27.8322428,33.2165742 C28.8702941,32.1785229 30.278287,31.5953952 31.7465858,31.5953952 L31.7465858,31.5953952 Z",id:"Shape-Copy-3",fill:"currentColor",fillRule:"nonzero",className:"primaryfill"}))),u2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"insert_limit",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("rect",{id:"Rectangle-Copy-46",className:"primaryfill",fill:"currentColor",x:24,y:23,width:61.9377906,height:8,rx:4}),u.createElement("rect",{id:"Rectangle-Copy-47",className:"primaryfill",fill:"currentColor",x:24,y:39,width:61.9377906,height:8,rx:4}),u.createElement("rect",{id:"Rectangle-Copy-48",className:"primaryfill",fill:"currentColor",x:24,y:55,width:53.5,height:8,rx:4}),u.createElement("rect",{id:"Rectangle-Copy-49",className:"primaryfill",fill:"currentColor",x:24,y:71.1904762,width:40,height:7.61904762,rx:3.80952381}),u.createElement("path",{d:"M77.1113683,65.3807638 L87.6203313,83.396129 C87.8986116,83.8731809 87.7374754,84.4854986 87.2604234,84.7637789 C87.1074874,84.8529916 86.933607,84.9 86.7565524,84.9 L65.7386264,84.9 C65.1863417,84.9 64.7386264,84.4522847 64.7386264,83.9 C64.7386264,83.7229454 64.7856348,83.549065 64.8748475,83.396129 L75.3838105,65.3807638 C75.6620908,64.9037119 76.2744085,64.7425757 76.7514604,65.020856 C76.9004641,65.1077747 77.0244495,65.2317602 77.1113683,65.3807638 Z",id:"Triangle-Copy-2",fill:"currentColor",className:"primaryfill",transform:"translate(76.247589, 74.400000) rotate(-90.000000) translate(-76.247589, -74.400000) "}))),d2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"insert_nest",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M27.3181186,27 C29.5272576,27 31.3181186,28.790861 31.3181186,31 L31.318,59.317 L72.9431634,59.317258 L62.9360743,49.6237568 C61.3178543,48.0565431 61.3178543,45.5094664 62.9249345,43.9421238 C64.5430225,42.3747812 67.1727815,42.3747812 68.7910025,43.9421238 L68.7910025,43.9421238 L85.8680951,60.4822957 C86.2520369,60.8534663 86.560236,61.307334 86.7733764,61.8022097 C86.7845158,61.823069 86.7845158,61.8432103 86.7949129,61.8640696 C86.986515,62.3179374 87.0927126,62.812813 87.0927126,63.3285517 C87.0927126,63.8442904 86.9865131,64.3391661 86.7949129,64.7930338 C86.7837736,64.8138932 86.7837736,64.8340344 86.7733764,64.8548938 C86.560236,65.3497694 86.2512954,65.8036556 85.8680951,66.1748077 L85.8680951,66.1748077 L68.8012688,82.7042995 C67.1831809,84.2716421 64.5534219,84.2716421 62.9352009,82.7042995 C62.1264611,81.921153 61.7217204,80.8895099 61.7217204,79.8689151 C61.7217204,78.8483204 62.1257196,77.8175611 62.9352009,77.0335308 L62.9352009,77.0335308 L72.9431634,67.3402284 L27.234417,67.3402284 C25.2840646,67.3402284 23.6511005,66.037955 23.2100653,64.2817501 C23.0737364,63.8793045 23,63.4482633 23,63 L23,31 C23,28.790861 24.790861,27 27,27 L27.3181186,27 Z",id:"Combined-Shape-Copy",fill:"currentColor",className:"primaryfill",fillRule:"nonzero"}))),f2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"10 10 90 90",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"insert_order_by",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M30.5506412,37.7046734 L30.5506412,81.9762916 C30.5506412,84.1931505 32.3445678,85.9877768 34.5621264,85.9877768 C36.7789852,85.9877768 38.5736115,84.1938502 38.5736115,81.9762916 L38.5736115,37.7046734 L48.2669139,47.3979757 C49.0509443,48.1820061 50.0817035,48.5733031 51.1022983,48.5733031 C52.122893,48.5733031 53.1545362,48.1812879 53.9376827,47.3979757 C55.5050252,45.8306331 55.5050252,43.2835564 53.9376827,41.7163427 L37.4081909,25.1861143 C37.0370387,24.8149622 36.5831526,24.515735 36.0882769,24.3092959 C36.0674175,24.2992257 36.0472763,24.2992257 36.026417,24.2884366 C35.5725492,24.1028605 35.0776736,24 34.5619349,24 C34.0461961,24 33.5513205,24.1028586 33.0974527,24.2884366 C33.0765934,24.2985068 33.0564522,24.2985068 33.0355928,24.3092959 C32.5407172,24.515735 32.0868494,24.814244 31.7156789,25.1861143 L15.1755069,41.7262862 C13.6081644,43.2936288 13.6081644,45.8407055 15.1755069,47.4079192 C16.7428495,48.9644712 19.2899263,48.9644712 20.85714,47.3971298 L30.5506412,37.7046734 Z",id:"Path-Copy",fill:"currentColor",fillRule:"nonzero",className:"primaryfill"}),u.createElement("path",{d:"M79.9439284,72.2964315 L79.9439284,28.0137648 C79.9439284,25.796906 78.1500018,24.0022797 75.9324432,24.0022797 C73.7155844,24.0022797 71.920958,25.7962062 71.920958,28.0137648 L71.920958,72.2853831 L62.2276557,62.5920808 C60.6603131,61.0247382 58.1233641,61.0247382 56.5460227,62.5920808 C54.9786801,64.1594234 54.9786801,66.7065001 56.5460227,68.2737138 L73.0861946,84.8138857 C73.4573467,85.1850378 73.9112329,85.484265 74.4061086,85.6907041 C74.4269679,85.7007743 74.4471091,85.7007743 74.4679685,85.7115634 C74.9218362,85.8971395 75.4167119,86 75.9324506,86 C76.4481893,86 76.943065,85.8971414 77.3969327,85.7115634 C77.4177921,85.7014932 77.4379333,85.7014932 77.4587926,85.6907041 C77.9536683,85.484265 78.407536,85.185756 78.7787066,84.8138857 L95.3188785,68.2737138 C96.8862211,66.7063712 96.8862211,64.1592945 95.3188785,62.5920808 C93.7515359,61.0355288 91.2044592,61.0355288 89.6372455,62.6028702 L79.9439284,72.2964315 Z",id:"Path-Copy-2",className:"primaryfill",fill:"currentColor",fillRule:"nonzero"}))),m2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("title",null,"join_icon_one_to_many"),u.createElement("g",{id:"join_icon_one_to_many",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"Group",transform:"translate(12.759300, 12.500000) rotate(-180.000000) translate(-12.759300, -12.500000) translate(4.000000, 3.712487)",fill:"currentColor"},u.createElement("polygon",{id:"Path-Copy-15",fillRule:"nonzero",transform:"translate(6.382256, 8.736227) scale(-1, 1) rotate(180.000000) translate(-6.382256, -8.736227) ",points:"2.80570594 3.41828749 3.48860316 2.68777302 9.95880577 8.73622728 3.48860316 14.7846815 2.80570594 14.0541671 8.494 8.736"}),u.createElement("rect",{id:"Rectangle-Copy-91",transform:"translate(2.000000, 2.000000) scale(-1, 1) translate(-2.000000, -2.000000) ",x:0,y:0,width:4,height:4}),u.createElement("rect",{id:"Rectangle-Copy-92",transform:"translate(2.000000, 8.736227) scale(-1, 1) translate(-2.000000, -8.736227) ",x:0,y:6.73622728,width:4,height:4}),u.createElement("rect",{id:"Rectangle-Copy-86",transform:"translate(15.518600, 8.736227) scale(-1, 1) translate(-15.518600, -8.736227) ",x:13.5186005,y:6.73622728,width:4,height:4}),u.createElement("rect",{id:"Rectangle-Copy-87",transform:"translate(2.000000, 15.575026) scale(-1, 1) translate(-2.000000, -15.575026) ",x:0,y:13.5750258,width:4,height:4}),u.createElement("polygon",{id:"Line-3-Copy-68",fillRule:"nonzero",transform:"translate(8.495445, 8.736227) scale(-1, 1) translate(-8.495445, -8.736227) ",points:"14.9954453 8.23622728 14.9954453 9.23622728 1.99544525 9.23622728 1.99544525 8.23622728"})))),p2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("title",null,"join_icon_many_to_one"),u.createElement("g",{id:"join_icon_many_to_one",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("polygon",{id:"Path-Copy-14",fill:"currentColor",fillRule:"nonzero",transform:"translate(10.382256, 12.736227) scale(-1, 1) rotate(180.000000) translate(-10.382256, -12.736227) ",points:"6.80570594 7.41828749 7.48860316 6.68777302 13.9588058 12.7362273 7.48860316 18.7846815 6.80570594 18.0541671 12.494 12.736"}),u.createElement("rect",{id:"Rectangle-Copy-90",fill:"currentColor",x:4,y:4,width:4,height:4}),u.createElement("rect",{id:"Rectangle-Copy-89",fill:"currentColor",x:4,y:10.7362273,width:4,height:4}),u.createElement("rect",{id:"Rectangle-Copy-85",fill:"currentColor",x:17.5186005,y:10.7362273,width:4,height:4}),u.createElement("rect",{id:"Rectangle-Copy-84",fill:"currentColor",x:4,y:17.5750258,width:4,height:4}),u.createElement("polygon",{id:"Line-3-Copy-67",fill:"currentColor",fillRule:"nonzero",points:"18.9954453 12.2362273 18.9954453 13.2362273 5.99544525 13.2362273 5.99544525 12.2362273"}))),h2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("title",null,"join_icon_one_to_one"),u.createElement("g",{id:"join_icon_one_to_one",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("rect",{id:"Rectangle-Copy-89",fill:"currentColor",x:4,y:10.7362273,width:4,height:4}),u.createElement("rect",{id:"Rectangle-Copy-85",fill:"currentColor",x:17.5186005,y:10.7362273,width:4,height:4}),u.createElement("polygon",{id:"Line-3-Copy-67",fill:"currentColor",fillRule:"nonzero",points:"18.9954453 12.2362273 18.9954453 13.2362273 5.99544525 13.2362273 5.99544525 12.2362273"}))),g2=e=>u.createElement("svg",{width:"78px",height:"73px",viewBox:"-5 -10 90 90",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("title",null,"database_b"),u.createElement("g",{id:"icons",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"database_b",transform:"translate(-0.000189, 0.800000)",fill:"currentColor",fillRule:"nonzero"},u.createElement("g",{id:"Shape-2"},u.createElement("path",{d:"M38.9978747,0 C49.4323909,0 58.8817175,1.35601948 65.8935492,3.63769481 C69.399635,4.77856169 72.3064537,6.14483766 74.4415973,7.78792208 C76.5767408,9.43100649 78,11.4644805 78,13.7176948 L78,59.1428571 C77.5289095,61.1095617 75.9098694,63.0619481 74.4415973,64.2103247 C72.3064537,65.8534091 69.3994651,67.2213799 65.8935492,68.3623052 C58.8808682,70.6440097 49.4317114,72 38.9978747,72 C28.564038,72 19.1123333,70.6439805 12.0988029,68.3623052 C8.59271719,67.2214383 5.68589845,65.8534091 3.55075491,64.2103247 C1.77316722,62.6163312 0.466092472,61.0553571 0.000162359918,59.1428571 L0.000162359918,12.826461 C-0.00497251122,12.4857468 0.111806422,12.1513003 0.334077073,11.8687938 C0.867540225,10.3512127 2.01808874,8.96790097 3.55089079,7.78869643 C5.68603434,6.14561201 8.59302294,4.77924838 12.0989388,3.63846916 C19.1116199,1.35676461 28.562815,0.000774350649 38.9980106,0.000774350649 L38.9978747,0 Z M38.9980026,4.39968547 C29.1795807,4.39968547 20.2971169,5.97898133 14.0341392,8.43960024 C10.9023181,9.66989245 8.43317659,11.1339692 6.85248078,12.602151 C3.94393403,15.3862114 4.29446142,18.3655235 6.85248078,20.7802963 C8.43327627,22.2484263 10.9024843,23.7104505 14.0341392,24.9407772 C20.2982797,27.4014306 29.1795807,28.9827618 38.9980026,28.9827618 C48.8164245,28.9827618 57.7038721,27.4014306 63.968511,24.9407772 C67.1003321,23.710485 69.5714672,22.2484781 71.152163,20.7802963 C74.08729,18.0024452 73.4953805,14.8214996 71.152163,12.602151 C69.5713675,11.1340209 67.100166,9.66992695 63.968511,8.43960024 C57.705035,5.97894683 48.8172551,4.39968547 38.9980026,4.39968547 Z M73.3181233,24.4886668 C71.264963,26.4046321 68.5511168,28.0180283 65.3038377,29.3722628 C58.4452957,32.2325658 49.203832,33.9324103 38.9993316,33.9324103 C28.7948312,33.9324103 19.5508756,32.2325291 12.691503,29.3722628 C9.44422385,28.0179367 6.73170664,26.4046321 4.67921092,24.4886668 L4.67921092,34.5578783 C4.85118531,35.7254798 5.51373193,36.9581006 6.85314528,38.278818 C8.43394077,39.8377628 10.9031488,41.3838137 14.0348037,42.6902452 C20.2989442,45.3031082 29.1802452,46.9886668 38.9986671,46.9886668 C48.817089,46.9886668 57.7045366,45.3030899 63.9691755,42.6902452 C67.1009966,41.3838503 69.5721317,39.8378178 71.1528275,38.278818 C72.4811934,36.9688517 73.1398693,35.7461761 73.3189539,34.5871829 L73.3181233,24.4886668 Z M73.3181233,43.1016944 C71.264963,44.782251 68.5517813,46.1967717 65.3038377,47.3852582 C58.4452957,49.8941247 49.203832,51.3851147 38.9993316,51.3851147 C28.7948312,51.3851147 19.5508756,49.8940926 12.691503,47.3852582 C9.44422385,46.197334 6.73170664,44.7841788 4.67921092,43.1036222 L4.67921092,55.7057886 C4.85118531,56.7299305 5.51373193,57.811103 6.85314528,58.9695481 C8.43394077,60.3369502 10.9031488,61.6911148 14.0348037,62.8370291 C20.2989442,65.1288579 29.1802452,66.6016944 38.9986671,66.6016944 C48.817089,66.6016944 57.7045366,65.1288579 63.9691755,62.8370291 C67.1009966,61.6911469 69.5721317,60.3369984 71.1528275,58.9695481 C72.4811934,57.8205331 73.1398693,56.7480839 73.3189539,55.7314925 L73.3181233,43.1016944 Z",id:"Shape"}))))),sf=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"2.5 2.5 11 11",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"type-icon-number",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M12,7 L12,6 L10,6 L10,4 L9,4 L9,6 L7,6 L7,4 L6,4 L6,6 L4,6 L4,7 L6,7 L6,9 L4,9 L4,10 L6,10 L6,12 L7,12 L7,10 L9,10 L9,12 L10,12 L10,10 L12,10 L12,9 L10,9 L10,7 L12,7 Z M9,9 L7,9 L7,7 L9,7 L9,9 Z",id:"Shape-Copy-21",fill:"currentColor",fillRule:"nonzero"}))),y2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"3.5 3.5 9 9",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"type-icon-projection",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M11.3362588,4 L11.3362588,12 L8,9.90676786 L4.6637412,12 L4.6637412,4 L11.3362588,4 Z M10.336,5 L5.663,5 L5.663,10.191 L8,8.72623637 L10.336,10.191 L10.336,5 Z",id:"Rectangle",fill:"currentColor",className:"primaryfill",fillRule:"nonzero"}))),lf=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"3.5 3.5 9 9",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"type-icon-string",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M4.8045,10.45 L5.2245,9.253 L7.1425,9.253 L7.5625,10.45 L8.6055,10.45 L6.7225,5.438 L5.6375,5.438 L3.7615,10.45 L4.8045,10.45 Z M6.8345,8.385 L5.5255,8.385 L5.9735,7.125 L6.1555,6.523 L6.2115,6.523 L6.3935,7.125 L6.8345,8.385 Z M10.2505,10.562 C10.4791667,10.562 10.681,10.5176667 10.856,10.429 C11.031,10.3403333 11.1721667,10.226 11.2795,10.086 L11.2795,10.086 L11.3355,10.086 L11.3355,10.45 L12.2385,10.45 L12.2385,8.252 C12.2385,7.76666667 12.0961667,7.398 11.8115,7.146 C11.5268333,6.894 11.1115,6.768 10.5655,6.768 C10.2575,6.768 9.97283333,6.82866667 9.7115,6.95 C9.45016667,7.07133333 9.23316667,7.244 9.0605,7.468 L9.0605,7.468 L9.6485,7.93 C9.75116667,7.804 9.88066667,7.7025 10.037,7.6255 C10.1933333,7.5485 10.3555,7.51 10.5235,7.51 C10.7708333,7.51 10.968,7.57066667 11.115,7.692 C11.262,7.81333333 11.3355,7.972 11.3355,8.168 L11.3355,8.168 L11.3355,8.322 C11.0741667,8.21466667 10.7591667,8.161 10.3905,8.161 C10.1245,8.161 9.88183333,8.21 9.6625,8.308 C9.44316667,8.406 9.2705,8.546 9.1445,8.728 C9.0185,8.91 8.9555,9.12 8.9555,9.358 C8.9555,9.71733333 9.07683333,10.0078333 9.3195,10.2295 C9.56216667,10.4511667 9.8725,10.562 10.2505,10.562 Z M10.4675,9.848 C10.2761667,9.848 10.1291667,9.8025 10.0265,9.7115 C9.92383333,9.6205 9.8725,9.50266667 9.8725,9.358 C9.8725,9.00333333 10.1105,8.826 10.5865,8.826 C10.8478333,8.826 11.0975,8.882 11.3355,8.994 C11.3355,9.22266667 11.2573333,9.42216667 11.101,9.5925 C10.9446667,9.76283333 10.7335,9.848 10.4675,9.848 Z",id:"Aa-Copy",fill:"currentColor",fillRule:"nonzero"}))),v2=e=>u.createElement("svg",{fill:"none",height:15,viewBox:"0 0 15 15",width:15,xmlns:"http://www.w3.org/2000/svg",...e},u.createElement("path",{clipRule:"evenodd",d:"m2.5 2c-.27614 0-.5.22386-.5.5v10c0 .2761.22386.5.5.5h2c.27614 0 .5-.2239.5-.5s-.22386-.5-.5-.5h-1.5v-9h1.5c.27614 0 .5-.22386.5-.5s-.22386-.5-.5-.5zm8 0c-.2761 0-.5.22386-.5.5s.2239.5.5.5h1.5v9h-1.5c-.2761 0-.5.2239-.5.5s.2239.5.5.5h2c.2761 0 .5-.2239.5-.5v-10c0-.27614-.2239-.5-.5-.5zm-4.5 5h-1v1h1zm1 0h1v1h-1zm3 0h-1v1h1z",fill:"currentColor",fillRule:"evenodd"})),b2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"2.5 2.5 11 11",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"type-icon-on-off",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"Group-Copy",transform:"translate(4.295444, 4.604157)",fill:"currentColor",fillRule:"nonzero"},u.createElement("path",{d:"M1.61912392,3.08712961 L5.78998715,3.08712961 C6.6842046,3.08712961 7.40911107,2.39605211 7.40911107,1.54356481 C7.40911107,0.691077503 6.6842046,0 5.78998715,0 L1.61912392,0 C0.724906472,0 0,0.691077503 0,1.54356481 C0,2.39605211 0.724906472,3.08712961 1.61912392,3.08712961 Z M1.61912392,0.617425922 L5.78998715,0.617425922 C6.32651762,0.617425922 6.7614615,1.03207242 6.7614615,1.54356481 C6.7614615,2.05505719 6.32651762,2.46970369 5.78998715,2.46970369 L1.61912392,2.46970369 C1.08259345,2.46970369 0.647649569,2.05505719 0.647649569,1.54356481 C0.647649569,1.03207242 1.08259345,0.617425922 1.61912392,0.617425922 Z",id:"Shape-Copy-20"}),u.createElement("path",{d:"M1.83745135,2.13685198 C2.08762004,2.13888594 2.31428875,1.98975367 2.4114368,1.75920941 C2.50858486,1.52866515 2.45700749,1.2622842 2.28082919,1.08466199 C2.10465088,0.907039785 1.83869956,0.853289683 1.60736972,0.948552441 C1.37603988,1.0438152 1.22505383,1.26925874 1.22505383,1.51943543 C1.22505383,1.85847446 1.49842318,2.13409557 1.83745135,2.13685198 L1.83745135,2.13685198 Z",id:"Path-Copy-14"}),u.createElement("path",{d:"M5.78998714,3.70455553 L1.6191239,3.70455553 C0.724906454,3.70455553 0,4.39563305 0,5.24812034 C0,6.10060763 0.724906454,6.79168514 1.6191239,6.79168514 L5.78998714,6.79168514 C6.68420459,6.79168514 7.40911107,6.10060764 7.40911107,5.24812034 C7.40911107,4.39563304 6.68420459,3.70455553 5.78998714,3.70455553 L5.78998714,3.70455553 Z M5.78998714,6.17425922 L1.6191239,6.17425922 C1.08259342,6.17425922 0.647649538,5.75961272 0.647649538,5.24812034 C0.647649538,4.73662796 1.08259342,4.32198146 1.6191239,4.32198146 L5.78998714,4.32198146 C6.32651761,4.32198146 6.7614615,4.73662796 6.7614615,5.24812034 C6.7614615,5.75961272 6.32651761,6.17425922 5.78998714,6.17425922 L5.78998714,6.17425922 Z",id:"Shape-Copy-21"}),u.createElement("path",{d:"M5.54392378,4.67774545 C5.2937551,4.6757115 5.06708639,4.82484377 4.96993833,5.05538803 C4.87279028,5.28593228 4.92436765,5.55231324 5.10054595,5.72993544 C5.27672426,5.90755765 5.54267558,5.96130775 5.77400542,5.86604499 C6.00533526,5.77078224 6.15632131,5.5453387 6.15632131,5.295162 C6.15632131,4.95612297 5.88295196,4.68050187 5.54392378,4.67774545 Z",id:"Path-Copy-15"})))),w2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"3.5 3.5 9 9",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"type-icon-date",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"Group-Copy-22",transform:"translate(4.753763, 4.094719)",fill:"currentColor",fillRule:"nonzero"},u.createElement("path",{d:"M5.84322609,0.649247344 L5.51860242,0.649247344 L5.51860242,0 L4.86935508,0 L4.86935508,0.649247344 L1.62311836,0.649247344 L1.62311836,0 L0.973871015,0 L0.973871015,0.649247344 L0.649247344,0.649247344 C0.292161305,0.649247344 0,0.941408648 0,1.29849469 L0,6.49247344 C0,6.84955947 0.292161305,7.14172078 0.649247344,7.14172078 L5.84322609,7.14172078 C6.20031213,7.14172078 6.49247344,6.84955947 6.49247344,6.49247344 L6.49247344,1.29849469 C6.49247344,0.941408648 6.20031213,0.649247344 5.84322609,0.649247344 Z M5.84322609,6.49247344 L0.649247344,6.49247344 L0.649247344,2.2723657 L5.84322609,2.2723657 L5.84322609,6.49247344 Z",id:"Shape"})))),x2=e=>u.createElement("svg",{fill:"none",height:15,viewBox:"0 0 15 15",width:15,xmlns:"http://www.w3.org/2000/svg",...e},u.createElement("g",{clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"},u.createElement("path",{d:"m3 3.5c0-.82843.67157-1.5 1.5-1.5h1c.27614 0 .5.22386.5.5s-.22386.5-.5.5h-1c-.27614 0-.5.22386-.5.5v2.88197c0 .43292-.18638.83753-.49993 1.11803.31355.2805.49993.68511.49993 1.11803v2.88197c0 .2761.22386.5.5.5h1c.27614 0 .5.2239.5.5s-.22386.5-.5.5h-1c-.82843 0-1.5-.6716-1.5-1.5v-2.88197c0-.18938-.107-.36251-.27639-.44721l-.44722-.22361c-.16939-.08469-.27639-.25782-.27639-.44721s.107-.36252.27639-.44721l.44722-.22361c.16939-.0847.27639-.25783.27639-.44721z"}),u.createElement("path",{d:"m12 3.5c0-.82843-.6716-1.5-1.5-1.5h-1c-.27614 0-.5.22386-.5.5s.22386.5.5.5h1c.2761 0 .5.22386.5.5v2.88197c0 .43292.1864.83753.4999 1.11803-.3135.2805-.4999.68511-.4999 1.11803v2.88197c0 .2761-.2239.5-.5.5h-1c-.27614 0-.5.2239-.5.5s.22386.5.5.5h1c.8284 0 1.5-.6716 1.5-1.5v-2.88197c0-.18938.107-.36251.2764-.44721l.4472-.22361c.1694-.08469.2764-.25782.2764-.44721s-.107-.36252-.2764-.44721l-.4472-.22361c-.1694-.0847-.2764-.25783-.2764-.44721z"}))),C2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"2.5 2.5 11 11",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"type-icon-number",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M12,7 L12,6 L10,6 L10,4 L9,4 L9,6 L7,6 L7,4 L6,4 L6,6 L4,6 L4,7 L6,7 L6,9 L4,9 L4,10 L6,10 L6,12 L7,12 L7,10 L9,10 L9,12 L10,12 L10,10 L12,10 L12,9 L10,9 L10,7 L12,7 Z M9,9 L7,9 L7,7 L9,7 L9,9 Z",id:"Shape-Copy-21",fill:"currentColor",fillRule:"nonzero"}))),_2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"3.5 3.5 9 9",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"type-icon-projection",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M11.3362588,4 L11.3362588,12 L8,9.90676786 L4.6637412,12 L4.6637412,4 L11.3362588,4 Z M10.336,5 L5.663,5 L5.663,10.191 L8,8.72623637 L10.336,10.191 L10.336,5 Z",id:"Rectangle",fill:"currentColor",className:"primaryfill",fillRule:"nonzero"}))),k2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"3.5 3.5 9 9",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"type-icon-projection",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M11.3362588,4 L11.3362588,12 L8,9.90676786 L4.6637412,12 L4.6637412,4 L11.3362588,4 Z",id:"Rectangle",fill:"currentColor",className:"primaryfill",fillRule:"nonzero"}))),S2=e=>u.createElement("svg",{fill:"none",height:110,viewBox:"1 1 12.5 12.5",width:15,xmlns:"http://www.w3.org/2000/svg",...e},u.createElement("path",{clipRule:"evenodd",d:"m2 5.5c0-.27614.22386-.5.5-.5h2c.27614 0 .5.22386.5.5s-.22386.5-.5.5h-1.5v1h1.5c.27614 0 .5.22386.5.5v2c0 .27614-.22386.5-.5.5h-2c-.27614 0-.5-.22386-.5-.5s.22386-.5.5-.5h1.5v-1h-1.5c-.27614 0-.5-.22386-.5-.5zm4 0c0-.27614.22386-.5.5-.5h2c.27614 0 .5.22386.5.5v4.5h.5c.27614 0 .5.2239.5.5s-.22386.5-.5.5h-1c-.27614 0-.5-.2239-.5-.5v-.5h-1.5c-.27614 0-.5-.22386-.5-.5zm2 3.5h-1v-3h1zm2.5-4c.2761 0 .5.22386.5.5v3.5h1.5c.2761 0 .5.22386.5.5s-.2239.5-.5.5h-2c-.2761 0-.5-.22386-.5-.5v-4c0-.27614.2239-.5.5-.5z",fill:"currentColor",fillRule:"evenodd"})),R2=e=>u.createElement("svg",{fill:"none",height:15,viewBox:"0 0 15 15",width:15,xmlns:"http://www.w3.org/2000/svg",...e},u.createElement("g",{fill:"currentColor"},u.createElement("path",{d:"m4.5 7.5c0 .55228-.44772 1-1 1s-1-.44772-1-1 .44772-1 1-1 1 .44772 1 1z"}),u.createElement("path",{d:"m8.5 7.5c0 .55228-.44772 1-1 1s-1-.44772-1-1 .44772-1 1-1 1 .44772 1 1z"}),u.createElement("path",{d:"m11.5 8.5c.5523 0 1-.44772 1-1s-.4477-1-1-1-1 .44772-1 1 .4477 1 1 1z"}))),E2=e=>u.createElement("svg",{fill:"none",height:110,viewBox:"3 3 9 9",width:15,xmlns:"http://www.w3.org/2000/svg",...e},u.createElement("path",{clipRule:"evenodd",d:"m4.74513 11.5809 6.48017-3.64512c.3398-.19115.3398-.68043 0-.87158l-6.48017-3.64507c-.3333-.18749-.74513.05337-.74513.43578v7.29019c0 .3824.41183.6232.74513.4358zm.25487-6.87106v5.58026l4.96027-2.79011z",fill:"currentColor",fillRule:"evenodd"})),j2=e=>u.createElement("svg",{height:16,viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...e},u.createElement("circle",{cx:8,cy:8,r:8,fill:"currentColor"}),u.createElement("circle",{cx:8,cy:8,r:4,fill:"#FFFFFF"})),T2=e=>u.createElement("svg",{height:16,viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...e},u.createElement("circle",{cx:8,cy:8,r:8,fill:"currentColor"}),u.createElement("circle",{cx:8,cy:8,r:7,fill:"#FFFFFF"})),L2=e=>u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},u.createElement("path",{d:"m40-120 440-760 440 760H40Zm138-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm-40-120h80v-200h-80v200Zm40-100Z"})),M2=e=>u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},u.createElement("path",{d:"m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})),A2=e=>u.createElement("svg",{fill:"none",height:15,viewBox:"0 0 15 15",width:15,xmlns:"http://www.w3.org/2000/svg",...e},u.createElement("g",{clipRule:"evenodd",fill:"#151515",fillRule:"evenodd"},u.createElement("path",{d:"m10 7.50001c0 1.38072-1.11928 2.49999-2.49999 2.49999s-2.5-1.11927-2.5-2.49999c0-1.38071 1.11929-2.5 2.5-2.5s2.49999 1.11929 2.49999 2.5zm-.99999 0c0 .82843-.67157 1.5-1.5 1.5-.82842 0-1.5-.67157-1.5-1.5 0-.82842.67158-1.5 1.5-1.5.82843 0 1.5.67158 1.5 1.5z"}),u.createElement("path",{d:"m8.92908 3.05724c-.34403-1.52302-2.5141-1.52302-2.85813 0-.07078.31333-.43034.46227-.70195.29076-1.3202-.83367-2.85467.7008-2.021 2.021.17151.27161.02257.63117-.29076.70195-1.52302.34403-1.52302 2.5141 0 2.85813.31333.07077.46227.43034.29076.70195-.83367 1.32017.7008 2.85467 2.021 2.02097.27161-.1715.63117-.0225.70195.2908.34403 1.523 2.5141 1.523 2.85813 0 .07077-.3133.43034-.4623.70195-.2908 1.32017.8337 2.85467-.7008 2.02097-2.02097-.1715-.27161-.0225-.63118.2908-.70195 1.523-.34403 1.523-2.5141 0-2.85813-.3133-.07078-.4623-.43034-.2908-.70195.8337-1.3202-.7008-2.85467-2.02097-2.021-.27161.17151-.63118.02257-.70195-.29076zm-1.8827.22034c.1092-.48347.79806-.48347.90727 0 .22296.98707 1.35568 1.45625 2.21135.91595.419-.26464.9061.22246.6415.64154-.5403.85562-.0711 1.98834.916 2.21131.4834.1092.4834.79806 0 .90727-.9871.22296-1.4563 1.35568-.916 2.21135.2646.419-.2225.9061-.6415.6415-.85567-.5403-1.98839-.0711-2.21135.916-.10921.4834-.79807.4834-.90727 0-.22297-.9871-1.35569-1.4563-2.21131-.916-.41908.2646-.90618-.2225-.64154-.6415.5403-.85567.07112-1.98839-.91595-2.21135-.48347-.10921-.48347-.79807 0-.90727.98707-.22297 1.45625-1.35569.91595-2.21131-.26464-.41908.22246-.90618.64154-.64154.85562.5403 1.98834.07112 2.21131-.91595z"}))),I2=e=>u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},u.createElement("path",{d:"M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})),P2=e=>u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},u.createElement("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm-40-160h80v-240h-80v240ZM330-120 120-330v-300l210-210h300l210 210v300L630-120H330Zm34-80h232l164-164v-232L596-760H364L200-596v232l164 164Zm116-280Z"})),D2=e=>u.createElement("svg",{height:20,viewBox:"0 0 20 20",width:20,xmlns:"http://www.w3.org/2000/svg",...e},u.createElement("g",{fill:"none",stroke:"currentColor"},u.createElement("path",{d:"m17.08 11.15c.01.16.02.32.02.49 0 3.89-3.16 7.05-7.05 7.05-3.89-.01-7.05-3.16-7.05-7.06 0-3.89 3.16-7.05 7.05-7.05.85 0 1.66.15 2.41.42",strokeWidth:1.1}),u.createElement("path",{d:"m9.9 2 2.89 2.89-3 3.01"}))),N2=e=>u.createElement("svg",{height:24,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",stroke:"none",...e},u.createElement("path",{fill:"currentColor",stroke:"none",d:"m20 24h-16c-2.2 0-4-1.8-4-4v-16c0-2.2 1.8-4 4-4h16c2.2 0 4 1.8 4 4v16c0 2.2-1.8 4-4 4zm-16-22c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-16c0-1.1-.9-2-2-2z"}),u.createElement("path",{fill:"currentColor",d:"m8 24c-.6 0-1-.4-1-1v-22c0-.6.4-1 1-1s1 .4 1 1v22c0 .6-.4 1-1 1z"}),u.createElement("path",{fill:"currentColor",d:"m14 13c-.3 0-.5-.1-.7-.3-.4-.4-.4-1 0-1.4l3-3c.4-.4 1-.4 1.4 0s.4 1 0 1.4l-3 3c-.2.2-.4.3-.7.3z"}),u.createElement("path",{fill:"currentColor",d:"m17 16c-.3 0-.5-.1-.7-.3l-3-3c-.4-.4-.4-1 0-1.4s1-.4 1.4 0l3 3c.4.4.4 1 0 1.4-.2.2-.4.3-.7.3z"})),O2=e=>u.createElement("svg",{fill:"none",height:24,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",...e},u.createElement("path",{d:"m11 8h10m-10 0c0 1.65685-1.34315 3-3 3s-3-1.34315-3-3m6 0c0-1.65685-1.34315-3-3-3s-3 1.34315-3 3m0 0h-2m10 8h-10m10 0c0-1.6569 1.3431-3 3-3s3 1.3431 3 3m-6 0c0 1.6569 1.3431 3 3 3s3-1.3431 3-3m0 0h2",stroke:"currentColor",strokeWidth:1.5})),af=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_bar_chart",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"Group-3",transform:"translate(20.000000, 24.000000)",fill:"currentColor"},u.createElement("g",{id:"Group-2",transform:"translate(34.500000, 31.000000) rotate(-270.000000) translate(-34.500000, -31.000000) translate(3.500000, -3.500000)"},u.createElement("path",{d:"M-26.056314,30.056314 L34.943686,30.056314 C37.152825,30.056314 38.943686,31.847175 38.943686,34.056314 L38.943686,34.943686 C38.943686,37.152825 37.152825,38.943686 34.943686,38.943686 L-26.056314,38.943686 C-28.265453,38.943686 -30.056314,37.152825 -30.056314,34.943686 L-30.056314,34.056314 C-30.056314,31.847175 -28.265453,30.056314 -26.056314,30.056314 Z",id:"Rectangle-Copy-59",transform:"translate(4.443686, 34.500000) rotate(-90.000000) translate(-4.443686, -34.500000) "}),u.createElement("path",{d:"M-0.491247385,37.8466366 L44.9281075,37.8466366 C47.1372465,37.8466366 48.9281075,39.6374976 48.9281075,41.8466366 L48.9281075,42.7340086 C48.9281075,44.9431476 47.1372465,46.7340086 44.9281075,46.7340086 L-0.491247385,46.7340086 C-2.70038638,46.7340086 -4.49124739,44.9431476 -4.49124739,42.7340086 L-4.49124739,41.8466366 C-4.49124739,39.6374976 -2.70038638,37.8466366 -0.491247385,37.8466366 Z",id:"Rectangle-Copy-62",transform:"translate(22.218430, 42.290323) rotate(-90.000000) translate(-22.218430, -42.290323) "}),u.createElement("path",{d:"M23.3837854,43.9469253 L56.6025627,43.9469253 C58.8117017,43.9469253 60.6025627,45.7377863 60.6025627,47.9469253 L60.6025627,48.8342973 C60.6025627,51.0434363 58.8117017,52.8342973 56.6025627,52.8342973 L23.3837854,52.8342973 C21.1746464,52.8342973 19.3837854,51.0434363 19.3837854,48.8342973 L19.3837854,47.9469253 C19.3837854,45.7377863 21.1746464,43.9469253 23.3837854,43.9469253 Z",id:"Rectangle-Copy-66",transform:"translate(39.993174, 48.390611) rotate(-90.000000) translate(-39.993174, -48.390611) "}),u.createElement("path",{d:"M46.7286345,49.7286345 L68.8072017,49.7286345 C71.0163407,49.7286345 72.8072017,51.5194955 72.8072017,53.7286345 L72.8072017,54.1927983 C72.8072017,56.4019373 71.0163407,58.1927983 68.8072017,58.1927983 L46.7286345,58.1927983 C44.5194955,58.1927983 42.7286345,56.4019373 42.7286345,54.1927983 L42.7286345,53.7286345 C42.7286345,51.5194955 44.5194955,49.7286345 46.7286345,49.7286345 Z",id:"Rectangle-Copy-67",transform:"translate(57.767918, 53.960716) rotate(-90.000000) translate(-57.767918, -53.960716) "}))))),$2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_boolean",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"noun_switch_3350414-2",transform:"translate(20.000000, 22.000000)",fill:"currentColor",fillRule:"nonzero"},u.createElement("g",{id:"noun_switch_3350414"},u.createElement("path",{d:"M15.2972028,30.8 L54.7027972,30.8 C63.151209,30.8 70,23.9051851 70,15.4 C70,6.89481485 63.151209,0 54.7027972,0 L15.2972028,0 C6.84879098,0 0,6.89481485 0,15.4 C0,23.9051851 6.84879098,30.8 15.2972028,30.8 Z M15.2972028,6.16 L54.7027972,6.16 C59.7718443,6.16 63.8811189,10.2968889 63.8811189,15.4 C63.8811189,20.5031111 59.7718443,24.64 54.7027972,24.64 L15.2972028,24.64 C10.2281557,24.64 6.11888112,20.5031111 6.11888112,15.4 C6.11888112,10.2968889 10.2281557,6.16 15.2972028,6.16 Z",id:"Shape"}),u.createElement("path",{d:"M19.6340542,21.9997804 C22.2930484,22.0215224 24.7022661,20.4273668 25.7348338,17.9629544 C26.7674016,15.4985421 26.2191958,12.6510518 24.3466309,10.7523518 C22.474066,8.85365189 19.6473211,8.27908795 17.1885612,9.29740315 C14.7298014,10.3157183 13.125,12.7256064 13.125,15.3998806 C13.125,19.0240523 16.0305897,21.9703156 19.6340542,21.9997804 L19.6340542,21.9997804 Z",id:"Path"}),u.createElement("path",{d:"M54.7027971,35.2 L15.2972025,35.2 C6.84879081,35.2 0,42.094815 0,50.6 C0,59.105185 6.84879081,66 15.2972025,66 L54.7027971,66 C63.151209,66 70,59.1051851 70,50.6 C70,42.0948149 63.151209,35.2 54.7027971,35.2 L54.7027971,35.2 Z M54.7027971,59.84 L15.2972025,59.84 C10.2281554,59.84 6.11888082,55.7031111 6.11888082,50.6 C6.11888082,45.4968889 10.2281554,41.36 15.2972025,41.36 L54.7027971,41.36 C59.7718442,41.36 63.8811189,45.4968889 63.8811189,50.6 C63.8811189,55.7031111 59.7718442,59.84 54.7027971,59.84 L54.7027971,59.84 Z",id:"Shape"}),u.createElement("path",{d:"M50.3659458,44.0002196 C47.7069516,43.9784776 45.2977339,45.5726332 44.2651662,48.0370456 C43.2325984,50.5014579 43.7808042,53.3489482 45.6533691,55.2476482 C47.525934,57.1463481 50.3526789,57.720912 52.8114388,56.7025969 C55.2701986,55.6842817 56.875,53.2743936 56.875,50.6001194 C56.875,46.9759477 53.9694103,44.0296844 50.3659458,44.0002196 Z",id:"Path"}))))),z2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_column_chart",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"Group",transform:"translate(23.500000, 19.500000)",fill:"currentColor"},u.createElement("path",{d:"M-26.5,30.5 L35.5,30.5 C37.709139,30.5 39.5,32.290861 39.5,34.5 L39.5,35.5 C39.5,37.709139 37.709139,39.5 35.5,39.5 L-26.5,39.5 C-28.709139,39.5 -30.5,37.709139 -30.5,35.5 L-30.5,34.5 C-30.5,32.290861 -28.709139,30.5 -26.5,30.5 Z",id:"Rectangle-Copy-59",transform:"translate(4.500000, 35.000000) rotate(-90.000000) translate(-4.500000, -35.000000) "}),u.createElement("path",{d:"M-0.5,38.5 L45.5,38.5 C47.709139,38.5 49.5,40.290861 49.5,42.5 L49.5,43.5 C49.5,45.709139 47.709139,47.5 45.5,47.5 L-0.5,47.5 C-2.709139,47.5 -4.5,45.709139 -4.5,43.5 L-4.5,42.5 C-4.5,40.290861 -2.709139,38.5 -0.5,38.5 Z",id:"Rectangle-Copy-62",transform:"translate(22.500000, 43.000000) rotate(-90.000000) translate(-22.500000, -43.000000) "}),u.createElement("path",{d:"M23.5,45.5 L57.5,45.5 C59.709139,45.5 61.5,47.290861 61.5,49.5 L61.5,50.5 C61.5,52.709139 59.709139,54.5 57.5,54.5 L23.5,54.5 C21.290861,54.5 19.5,52.709139 19.5,50.5 L19.5,49.5 C19.5,47.290861 21.290861,45.5 23.5,45.5 Z",id:"Rectangle-Copy-66",transform:"translate(40.500000, 50.000000) rotate(-90.000000) translate(-40.500000, -50.000000) "}),u.createElement("path",{d:"M47.5,50.5 L70.5,50.5 C72.709139,50.5 74.5,52.290861 74.5,54.5 L74.5,55.5 C74.5,57.709139 72.709139,59.5 70.5,59.5 L47.5,59.5 C45.290861,59.5 43.5,57.709139 43.5,55.5 L43.5,54.5 C43.5,52.290861 45.290861,50.5 47.5,50.5 Z",id:"Rectangle-Copy-67",transform:"translate(59.000000, 55.000000) rotate(-90.000000) translate(-59.000000, -55.000000) "})))),F2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_currency",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"Group",transform:"translate(19.000000, 19.000000)"},u.createElement("circle",{id:"Oval",stroke:"currentColor",strokeWidth:7,cx:36,cy:36,r:32.5}),u.createElement("path",{d:"M35.7525,20.06 C38.5425,20.06 40.7775,20.7425 42.4575,22.1075 C44.1375,23.4725 45.2775,25.01 45.8775,26.72 L41.4225,28.61 C41.1225,27.53 40.4925,26.6 39.5325,25.82 C38.5725,25.04 37.3275,24.65 35.7975,24.65 C34.3275,24.65 33.0825,25.04 32.0625,25.82 C31.0425,26.6 30.5325,27.59 30.5325,28.79 C30.5325,29.9 30.99,30.8225 31.905,31.5575 C32.759,32.2435 34.0507333,32.8968333 35.7802,33.5175 L38.2275,34.37 C40.9875,35.33 43.1175,36.575 44.6175,38.105 C46.1175,39.635 46.8675,41.675 46.8675,44.225 C46.8675,46.325 46.335,48.0875 45.27,49.5125 C44.205,50.9375 42.84,51.995 41.175,52.685 C39.51,53.375 37.8075,53.72 36.0675,53.72 C33.3975,53.72 30.9975,52.94 28.8675,51.38 C26.7375,49.82 25.2525,47.63 24.4125,44.81 L29.0925,42.92 C29.5725,44.72 30.4275,46.19 31.6575,47.33 C32.8875,48.47 34.3725,49.04 36.1125,49.04 C37.7325,49.04 39.105,48.62 40.23,47.78 C41.355,46.94 41.9175,45.785 41.9175,44.315 C41.9175,42.965 41.4225,41.8475 40.4325,40.9625 C39.4975,40.1266667 37.9202778,39.3109028 35.7008333,38.5152083 L33.2775,37.655 C31.0875,36.875 29.265,35.7875 27.81,34.3925 C26.355,32.9975 25.6275,31.145 25.6275,28.835 C25.6275,27.245 26.055,25.775 26.91,24.425 C27.765,23.075 28.965,22.01 30.51,21.23 C32.055,20.45 33.8025,20.06 35.7525,20.06 Z",id:"Path",fill:"currentColor",fillRule:"nonzero"}),u.createElement("line",{x1:36,y1:14,x2:36,y2:21,id:"Line-Copy-4",stroke:"currentColor",strokeWidth:5}),u.createElement("line",{x1:36,y1:52,x2:36,y2:59,id:"Line-Copy-5",stroke:"currentColor",strokeWidth:5})),u.createElement("g",{id:"S",transform:"translate(43.412500, 37.060000)"}))),B2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_dashboard",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"dashboard_black_24dp",transform:"translate(13.000000, 13.000000)"},u.createElement("path",{d:"M5,0 L80,0 C82.7614237,-5.07265313e-16 85,2.23857625 85,5 L85,80 C85,82.7614237 82.7614237,85 80,85 L5,85 C2.23857625,85 3.38176876e-16,82.7614237 0,80 L0,5 C-3.38176876e-16,2.23857625 2.23857625,5.07265313e-16 5,0 Z",id:"Path"}),u.createElement("path",{d:"M67,18 L67,25 L53,25 L53,18 L67,18 M32,18 L32,39 L18,39 L18,18 L32,18 M67,46 L67,67 L53,67 L53,46 L67,46 M32,60 L32,67 L18,67 L18,60 L32,60 M69,11 L51,11 C48.2385763,11 46,13.2385763 46,16 L46,27 C46,29.7614237 48.2385763,32 51,32 L69,32 C71.7614237,32 74,29.7614237 74,27 L74,16 C74,13.2385763 71.7614237,11 69,11 Z M34,11 L16,11 C13.2385763,11 11,13.2385763 11,16 L11,41 C11,43.7614237 13.2385763,46 16,46 L34,46 C36.7614237,46 39,43.7614237 39,41 L39,16 C39,13.2385763 36.7614237,11 34,11 Z M69,39 L51,39 C48.2385763,39 46,41.2385763 46,44 L46,69 C46,71.7614237 48.2385763,74 51,74 L69,74 C71.7614237,74 74,71.7614237 74,69 L74,44 C74,41.2385763 71.7614237,39 69,39 Z M34,53 L16,53 C13.2385763,53 11,55.2385763 11,58 L11,69 C11,71.7614237 13.2385763,74 16,74 L34,74 C36.7614237,74 39,71.7614237 39,69 L39,58 C39,55.2385763 36.7614237,53 34,53 Z",id:"Shape",fill:"currentColor",fillRule:"nonzero"})))),q2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_image",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M81.4444444,28.5555556 L81.4444444,81.4444444 L28.5555556,81.4444444 L28.5555556,28.5555556 L81.4444444,28.5555556 M81.4444444,21 L28.5555556,21 C24.4,21 21,24.4 21,28.5555556 L21,81.4444444 C21,85.6 24.4,89 28.5555556,89 L81.4444444,89 C85.6,89 89,85.6 89,81.4444444 L89,28.5555556 C89,24.4 85.6,21 81.4444444,21 Z M63.0844444,54.4711111 L51.7511111,69.0911111 L43.6666667,59.3066667 L32.3333333,73.8888889 L77.6666667,73.8888889 L63.0844444,54.4711111 Z",id:"Shape",fill:"currentColor",fillRule:"nonzero"}))),W2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_json",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"{;}",transform:"translate(24.000000, 22.000000)",fill:"currentColor",fillRule:"nonzero"},u.createElement("path",{d:"M17.0296296,66 C13.2765432,66 10.3209877,64.871179 8.16296296,62.6135371 C6.00493827,60.3558952 4.92592593,57.3296943 4.92592593,53.5349345 L4.92592593,41.6462882 C4.92592593,39.9170306 4.45679012,38.5840611 3.51851852,37.6473799 C2.58024691,36.7106987 1.40740741,36.2423581 0,36.2423581 L0,29.7576419 C1.40740741,29.7576419 2.58024691,29.2893013 3.51851852,28.3526201 C4.45679012,27.4159389 4.92592593,26.0829694 4.92592593,24.3537118 L4.92592593,12.4650655 C4.92592593,8.67030568 6.00493827,5.6441048 8.16296296,3.38646288 C10.3209877,1.12882096 13.2765432,0 17.0296296,0 L19,0 L19,6.41266376 L17.7333333,6.41266376 C16.091358,6.41266376 14.7425926,6.98908297 13.687037,8.1419214 C12.6314815,9.29475983 12.1037037,10.8318777 12.1037037,12.7532751 L12.1037037,24.3537118 C12.1037037,26.7074236 11.7166667,28.5687773 10.9425926,29.9377729 C10.1685185,31.3067686 8.93703704,32.2554585 7.24814815,32.7838428 L7.24814815,33.2161572 C8.93703704,33.7445415 10.1685185,34.6812227 10.9425926,36.0262009 C11.7166667,37.371179 12.1037037,39.2445415 12.1037037,41.6462882 L12.1037037,53.2467249 C12.1037037,55.1681223 12.6314815,56.7052402 13.687037,57.8580786 C14.7425926,59.010917 16.091358,59.5873362 17.7333333,59.5873362 L19,59.5873362 L19,66 L17.0296296,66 Z",id:"Path"}),u.createElement("path",{d:"M44,59.5873362 L45.4074074,59.5873362 C47.0493827,59.5873362 48.3864198,59.010917 49.4185185,57.8580786 C50.4506173,56.7052402 50.9666667,55.1681223 50.9666667,53.2467249 L50.9666667,41.6462882 C50.9666667,39.2445415 51.3537037,37.371179 52.1277778,36.0262009 C52.9018519,34.6812227 54.1333333,33.7445415 55.8222222,33.2161572 L55.8222222,32.7838428 C54.1333333,32.2554585 52.9018519,31.3067686 52.1277778,29.9377729 C51.3537037,28.5687773 50.9666667,26.7074236 50.9666667,24.3537118 L50.9666667,12.7532751 C50.9666667,10.8318777 50.4506173,9.29475983 49.4185185,8.1419214 C48.3864198,6.98908297 47.0493827,6.41266376 45.4074074,6.41266376 L44,6.41266376 L44,0 L46.0407407,0 C49.7938272,0 52.7493827,1.12882096 54.9074074,3.38646288 C57.0654321,5.6441048 58.1444444,8.67030568 58.1444444,12.4650655 L58.1444444,24.3537118 C58.1444444,26.0829694 58.6018519,27.4159389 59.5166667,28.3526201 C60.4314815,29.2893013 61.5925926,29.7576419 63,29.7576419 L63,36.2423581 C61.5925926,36.2423581 60.4314815,36.7106987 59.5166667,37.6473799 C58.6018519,38.5840611 58.1444444,39.9170306 58.1444444,41.6462882 L58.1444444,53.5349345 C58.1444444,57.3296943 57.0654321,60.3558952 54.9074074,62.6135371 C52.7493827,64.871179 49.7938272,66 46.0407407,66 L44,66 L44,59.5873362 Z",id:"Path"})))),rl=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"10 10 90 90",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_line",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M88.1848681,33.1583406 C89.7542734,31.6035859 92.2869054,31.6154626 93.8416601,33.1848679 C95.3445896,34.7019597 95.3835892,37.1191334 93.9668812,38.6829968 L93.8151328,38.84166 L66.2578818,66.14166 C64.8378618,67.5484238 62.6084032,67.6843587 61.0319068,66.4919462 L60.8595019,66.3539866 L45.2420004,53.1430003 L21.844917,76.8176775 C20.3437446,78.336508 17.927116,78.4009733 16.3484126,77.0008213 L16.1881594,76.850753 C14.6693289,75.3495806 14.6048635,72.932952 16.0050156,71.3542486 L16.1550839,71.1939954 L42.1550839,44.8881592 C43.5729843,43.4535802 45.8262314,43.3057778 47.4155704,44.5116324 L47.583248,44.646014 L63.2290004,57.8810003 L88.1848681,33.1583406 Z",id:"Path-10",fill:"currentColor",fillRule:"nonzero"}))),cf=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"10 10 90 90",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_link",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"link_black_24dp",transform:"translate(5.000000, 5.000000)"},u.createElement("path",{d:"M5,0 L96,0 C98.7614237,-5.07265313e-16 101,2.23857625 101,5 L101,96 C101,98.7614237 98.7614237,101 96,101 L5,101 C2.23857625,101 3.38176876e-16,98.7614237 0,96 L0,5 C-3.38176876e-16,2.23857625 2.23857625,5.07265313e-16 5,0 Z",id:"Path"}),u.createElement("path",{d:"M71,30 L58.4,30 C56.0804041,30 54.2,31.8804041 54.2,34.2 C54.2,36.5195959 56.0804041,38.4 58.4,38.4 L71,38.4 L71,38.4 C77.93,38.4 83.6,44.07 83.6,51 C83.6,57.93 77.93,63.6 71,63.6 L58.4,63.6 C56.0804041,63.6 54.2,65.4804041 54.2,67.8 C54.2,70.1195959 56.0804041,72 58.4,72 L71,72 L71,72 C82.592,72 92,62.592 92,51 C92,39.408 82.592,30 71,30 Z M41.6,63.6 L29,63.6 L29,63.6 C22.07,63.6 16.4,57.93 16.4,51 C16.4,44.07 22.07,38.4 29,38.4 L41.6,38.4 C43.9195959,38.4 45.8,36.5195959 45.8,34.2 C45.8,31.8804041 43.9195959,30 41.6,30 L29,30 L29,30 C17.408,30 8,39.408 8,51 C8,62.592 17.408,72 29,72 L41.6,72 C43.9195959,72 45.8,70.1195959 45.8,67.8 C45.8,65.4804041 43.9195959,63.6 41.6,63.6 Z M37.4,46.8 L62.6,46.8 C64.9195959,46.8 66.8,48.6804041 66.8,51 C66.8,53.3195959 64.9195959,55.2 62.6,55.2 L37.4,55.2 C35.0804041,55.2 33.2,53.3195959 33.2,51 C33.2,48.6804041 35.0804041,46.8 37.4,46.8 Z",id:"Shape",fill:"currentColor",fillRule:"nonzero"})))),G2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_list",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("rect",{id:"Rectangle-Copy-58",fill:"currentColor",x:24.1587742,y:27,width:61.9377906,height:8,rx:4}),u.createElement("rect",{id:"Rectangle-Copy-61",fill:"currentColor",x:24.1587742,y:43,width:61.9377906,height:8,rx:4}),u.createElement("rect",{id:"Rectangle-Copy-64",fill:"currentColor",x:24.1587742,y:59,width:62,height:8,rx:4}),u.createElement("rect",{id:"Rectangle-Copy-65",fill:"currentColor",x:24.1587742,y:75.1904762,width:62,height:7.61904762,rx:3.80952381}))),Y2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_list_detail",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("rect",{id:"Rectangle-Copy-58",fill:"currentColor",x:22.1587742,y:27,width:15.983946,height:8,rx:4}),u.createElement("rect",{id:"Rectangle-Copy-59",fill:"currentColor",x:44.1587742,y:27,width:43.9558514,height:8,rx:4}),u.createElement("rect",{id:"Rectangle-Copy-61",fill:"currentColor",x:22.1587742,y:43,width:15.983946,height:8,rx:4}),u.createElement("rect",{id:"Rectangle-Copy-62",fill:"currentColor",x:44.1587742,y:43,width:43.9558514,height:8,rx:4}),u.createElement("rect",{id:"Rectangle-Copy-64",fill:"currentColor",x:22.1587742,y:59,width:16,height:8,rx:4}),u.createElement("rect",{id:"Rectangle-Copy-66",fill:"currentColor",x:44.1587742,y:59,width:44,height:8,rx:4}),u.createElement("rect",{id:"Rectangle-Copy-65",fill:"currentColor",x:22.1587742,y:75.1904762,width:16,height:7.61904762,rx:3.80952381}),u.createElement("rect",{id:"Rectangle-Copy-67",fill:"currentColor",x:44.1587742,y:75.1904762,width:44,height:7.61904762,rx:3.80952381}))),U2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_map_points",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"Group-Copy-36",transform:"translate(30.000000, 19.000000)",fill:"currentColor",fillRule:"nonzero"},u.createElement("path",{d:"M25,0 C11.1785714,0 0,11.268 0,25.2 C0,44.1 25,72 25,72 C25,72 50,44.1 50,25.2 C50,11.268 38.8214286,0 25,0 Z M7.14285714,25.2 C7.14285714,15.264 15.1428571,7.2 25,7.2 C34.8571429,7.2 42.8571429,15.264 42.8571429,25.2 C42.8571429,35.568 32.5714286,51.084 25,60.768 C17.5714286,51.156 7.14285714,35.46 7.14285714,25.2 Z",id:"Shape"}),u.createElement("path",{d:"M25,34 C29.97052,34 34,29.97052 34,25 C34,20.029444 29.97052,16 25,16 C20.02948,16 16,20.029444 16,25 C16,29.97052 20.02948,34 25,34 Z",id:"Path"})))),V2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"10 10 90 90",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_map_segment",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"Group-Copy-36",transform:"translate(11.000000, 27.000000)",fillRule:"nonzero"},u.createElement("path",{d:"M17,0 C7.60142857,0 0,7.6685 0,17.15 C0,30.0125 17,49 17,49 C17,49 34,30.0125 34,17.15 C34,7.6685 26.3985714,0 17,0 Z M4.85714286,17.15 C4.85714286,10.388 10.2971429,4.9 17,4.9 C23.7028571,4.9 29.1428571,10.388 29.1428571,17.15 C29.1428571,24.206 22.1485714,34.7655 17,41.356 C11.9485714,34.8145 4.85714286,24.1325 4.85714286,17.15 Z",id:"Shape",fill:"currentColor"}),u.createElement("path",{d:"M17,24 C20.31368,24 23,21.31368 23,18 C23,14.686296 20.31368,12 17,12 C13.68632,12 11,14.686296 11,18 C11,21.31368 13.68632,24 17,24 Z",id:"Path",fill:"currentColor"})),u.createElement("g",{id:"Group-Copy-37",transform:"translate(62.000000, 27.000000)",fillRule:"nonzero"},u.createElement("path",{d:"M17,0 C7.60142857,0 0,7.6685 0,17.15 C0,30.0125 17,49 17,49 C17,49 34,30.0125 34,17.15 C34,7.6685 26.3985714,0 17,0 Z M4.85714286,17.15 C4.85714286,10.388 10.2971429,4.9 17,4.9 C23.7028571,4.9 29.1428571,10.388 29.1428571,17.15 C29.1428571,24.206 22.1485714,34.7655 17,41.356 C11.9485714,34.8145 4.85714286,24.1325 4.85714286,17.15 Z",id:"Shape",fill:"currentColor"}),u.createElement("path",{d:"M17,24 C20.31368,24 23,21.31368 23,18 C23,14.686296 20.31368,12 17,12 C13.68632,12 11,14.686296 11,18 C11,21.31368 13.68632,24 17,24 Z",id:"Path",fill:"currentColor"})),u.createElement("line",{x1:28.5,y1:81.5,x2:79.5,y2:81.5,id:"Line-3",stroke:"currentColor",strokeWidth:5,strokeLinecap:"round",strokeDasharray:"5,10"}))),H2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_map_shape",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"noun-world-4667432-2",transform:"translate(19.000000, 19.000000)",fill:"currentColor",fillRule:"nonzero"},u.createElement("g",{id:"noun-world-4667432"},u.createElement("path",{d:"M36,5 C18.8798665,5 5,18.8793071 5,36 C5,53.1206929 18.8793071,67 36,67 C53.1206929,67 67,53.1206929 67,36 C67,18.8793071 53.1206929,5 36,5 Z M0,36 C0,16.1177143 16.1177143,0 36,0 C55.8822857,0 72,16.1177143 72,36 C72,55.8822857 55.8822857,72 36,72 C16.1177143,72 0,55.8822857 0,36 Z",id:"Shape"}),u.createElement("path",{d:"M37.2848685,1.50131372 C37.8999474,1.48477633 38.4631152,1.71654937 38.8767996,2.10376364 C39.2928262,2.49317029 39.5578301,3.03960333 39.57434,3.65023916 L39.57434,3.65023916 L40.0344656,20.7428771 C40.0487121,21.2893502 39.8586306,21.8212062 39.4992535,22.2375953 L39.4992535,22.2375953 L32.1172188,30.7832284 C31.7924232,31.1592888 31.3490374,31.4169308 30.8586892,31.5134813 L30.8586892,31.5134813 L24.6865498,32.7324332 L28.0628423,42.7359018 C28.4533111,43.8925701 28.4513039,45.0197005 28.1633304,46.0321806 C27.8503264,47.132665 27.1975708,48.0987342 26.3338575,48.8190181 C25.4716664,49.5380326 24.3999821,50.0114808 23.2508211,50.1317463 C22.1949716,50.2422462 21.0728206,50.0558305 19.9867908,49.4837618 L19.9867908,49.4837618 L1.68382097,39.8433672 C1.13885361,39.5565384 0.764084629,39.078393 0.597525292,38.5380041 C0.430427538,37.9958684 0.472619244,37.3906551 0.763987861,36.8508084 C1.05393693,36.3139129 1.53648052,35.9433066 2.08313472,35.7791188 C2.62798313,35.6154734 3.2361363,35.657153 3.77860632,35.9426925 L3.77860632,35.9426925 L22.0816454,45.5831236 C22.3171919,45.7071442 22.5603781,45.7498863 22.7897862,45.7258621 C23.0398735,45.6996723 23.2725259,45.5956093 23.4599703,45.4392842 C23.6458558,45.2842591 23.7880139,45.0772117 23.8554593,44.8399997 C23.9169381,44.6237728 23.9147045,44.383346 23.8314444,44.1367864 L23.8314444,44.1367864 L19.6527943,31.7569079 C19.4493668,31.1542234 19.517516,30.4944328 19.8403231,29.9450638 C20.1614725,29.3985413 20.7046793,29.014044 21.3323155,28.8900909 L21.3323155,28.8900909 L29.2286003,27.3302661 L35.5513871,20.0108413 L35.1144494,3.7686887 C35.0979491,3.15801867 35.3331708,2.59836837 35.7276711,2.18746751 C36.1199426,1.77888802 36.6699139,1.51752889 37.2848685,1.50131372 Z",id:"Path",stroke:"currentColor"}),u.createElement("path",{d:"M42.2538467,56.3169014 C42.834665,56.3169014 43.3919278,56.5473051 43.8025756,56.957964 L43.8025756,56.957964 L50.5634819,63.7190531 C50.990585,64.1465338 51.2042254,64.7070592 51.2042254,65.267637 C51.2042254,65.8282064 50.9905908,66.3887389 50.5631792,66.8165562 C50.1353619,67.244019 49.5748515,67.4577465 49.0143336,67.4577465 C48.453827,67.4577465 47.893307,67.2440267 47.4652769,66.8163886 L47.4652769,66.8163886 L41.3467145,60.697095 L29.639469,60.697095 L23.5207389,66.8165562 C23.0929158,67.2440249 22.5323953,67.4577465 21.9719658,67.4577465 C21.4114352,67.4577465 20.8509999,67.2439558 20.4235838,66.8165562 C19.995665,66.388992 19.7816901,65.8283383 19.7816901,65.2676696 C19.7816901,64.7070094 19.9956592,64.1463486 20.4234173,63.7189168 L20.4234173,63.7189168 L27.1839229,56.9576493 C27.5952192,56.5470739 28.1516855,56.3169014 28.7323368,56.3169014 L28.7323368,56.3169014 Z",id:"Path",stroke:"currentColor"}),u.createElement("path",{d:"M63.9378166,21.2379048 C64.4225216,20.8714311 65.0086399,20.7379975 65.5642349,20.8181856 C66.1191803,20.8982799 66.6440521,21.191578 67.006552,21.6798365 C67.3682973,22.1662502 67.5006358,22.75458 67.4216695,23.3126471 C67.3426278,23.8712474 67.0519787,24.3991735 66.5692317,24.7645164 L66.5692317,24.7645164 L53.5947929,34.5837331 L50.8571888,42.8725775 L63.4236834,55.5534973 C63.8498746,55.9835692 64.0634024,56.5474048 64.0634024,57.111468 C64.0634024,57.6755228 63.8498803,58.2393656 63.4235328,58.6696236 C62.9952729,59.1014133 62.434079,59.3169014 61.8731786,59.3169014 C61.3121772,59.3169014 60.7510686,59.1013441 60.3230649,58.6694716 L60.3230649,58.6694716 L46.8022881,45.0255804 C46.5094233,44.730049 46.31189,44.3642735 46.2203738,43.9732706 C46.1289585,43.5826987 46.1433461,43.1669732 46.2741073,42.7711741 L46.2741073,42.7711741 L49.6544877,32.5388634 C49.7943202,32.1133276 50.0607882,31.7409505 50.416846,31.4711161 L50.416846,31.4711161 Z",id:"Path",stroke:"currentColor"}))))),uf=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_number",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"Group",transform:"translate(20.000000, 20.000000)",fill:"currentColor"},u.createElement("path",{d:"M-10.5,30.5 L51.5,30.5 C53.709139,30.5 55.5,32.290861 55.5,34.5 L55.5,35.5 C55.5,37.709139 53.709139,39.5 51.5,39.5 L-10.5,39.5 C-12.709139,39.5 -14.5,37.709139 -14.5,35.5 L-14.5,34.5 C-14.5,32.290861 -12.709139,30.5 -10.5,30.5 Z",id:"Rectangle-Copy-60",transform:"translate(20.500000, 35.000000) rotate(-90.000000) translate(-20.500000, -35.000000) "}),u.createElement("path",{d:"M19.5,30.5 L81.5,30.5 C83.709139,30.5 85.5,32.290861 85.5,34.5 L85.5,35.5 C85.5,37.709139 83.709139,39.5 81.5,39.5 L19.5,39.5 C17.290861,39.5 15.5,37.709139 15.5,35.5 L15.5,34.5 C15.5,32.290861 17.290861,30.5 19.5,30.5 Z",id:"Rectangle-Copy-61",transform:"translate(50.500000, 35.000000) rotate(-90.000000) translate(-50.500000, -35.000000) "}),u.createElement("path",{d:"M4,14 L66,14 C68.209139,14 70,15.790861 70,18 L70,19 C70,21.209139 68.209139,23 66,23 L4,23 C1.790861,23 2.705415e-16,21.209139 0,19 L0,18 C-2.705415e-16,15.790861 1.790861,14 4,14 Z",id:"Rectangle-Copy-63",transform:"translate(35.000000, 18.500000) rotate(-360.000000) translate(-35.000000, -18.500000) "}),u.createElement("path",{d:"M4,44 L66,44 C68.209139,44 70,45.790861 70,48 L70,49 C70,51.209139 68.209139,53 66,53 L4,53 C1.790861,53 2.705415e-16,51.209139 0,49 L0,48 C-2.705415e-16,45.790861 1.790861,44 4,44 Z",id:"Rectangle-Copy-62",transform:"translate(35.000000, 48.500000) rotate(-360.000000) translate(-35.000000, -48.500000) "})))),Z2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_percent",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"%-copy-5",transform:"translate(19.000000, 22.000000)",fill:"currentColor",fillRule:"nonzero"},u.createElement("path",{d:"M16.1194226,31.5251397 C19.1010499,31.5251397 21.8186789,30.8184358 24.2723097,29.4050279 C26.7259405,27.9916201 28.6671041,26.0712291 30.0958005,23.6438547 C31.5244969,21.2164804 32.2388451,18.5893855 32.2388451,15.7625698 C32.2388451,12.9357542 31.5244969,10.3086592 30.0958005,7.88128492 C28.6671041,5.45391061 26.7259405,3.53351955 24.2723097,2.12011173 C21.8186789,0.706703911 19.1010499,0 16.1194226,0 C13.1377953,0 10.4201662,0.706703911 7.96653543,2.12011173 C5.51290464,3.53351955 3.57174103,5.45391061 2.14304462,7.88128492 C0.714348206,10.3086592 0,12.9357542 0,15.7625698 C0,18.5893855 0.714348206,21.2164804 2.14304462,23.6438547 C3.57174103,26.0712291 5.51290464,27.9916201 7.96653543,29.4050279 C10.4201662,30.8184358 13.1377953,31.5251397 16.1194226,31.5251397 Z M19.9645575,62.4787112 L57.1929452,7.56550735 C58.3200259,5.90302296 57.8859954,3.64163362 56.223511,2.5145529 C56.2107419,2.50589603 56.1979177,2.49732049 56.1850394,2.48882682 C54.4804105,1.3645685 52.1887314,1.81914062 51.0422905,3.50893047 L13.7228276,58.5157377 C12.6107181,60.1549252 13.0379992,62.3852921 14.6771866,63.4974016 C14.7072768,63.5178164 14.7376757,63.5377723 14.7683727,63.5572626 C16.507245,64.6613129 18.8087263,64.1836036 19.9645575,62.4787112 Z M16.1194226,24.150838 C13.8832021,24.150838 12.0041557,23.3519553 10.4822835,21.7541899 C8.9604112,20.1564246 8.19947507,18.1592179 8.19947507,15.7625698 C8.19947507,13.3044693 8.9604112,11.2918994 10.4822835,9.72486034 C12.0041557,8.15782123 13.8832021,7.37430168 16.1194226,7.37430168 C18.4177603,7.37430168 20.3278653,8.15782123 21.8497375,9.72486034 C23.3716098,11.2918994 24.1325459,13.3044693 24.1325459,15.7625698 C24.1325459,18.2206704 23.3716098,20.2332402 21.8497375,21.8002793 C20.3278653,23.3673184 18.4177603,24.150838 16.1194226,24.150838 Z M54.8805774,66 C57.8622047,66 60.5798338,65.2932961 63.0334646,63.8798883 C65.4870954,62.4664804 67.428259,60.5460894 68.8569554,58.1187151 C70.2856518,55.6913408 71,53.0642458 71,50.2374302 C71,47.4106145 70.2856518,44.7835196 68.8569554,42.3561453 C67.428259,39.9287709 65.4870954,38.0083799 63.0334646,36.5949721 C60.5798338,35.1815642 57.8622047,34.4748603 54.8805774,34.4748603 C51.8989501,34.4748603 49.1813211,35.1815642 46.7276903,36.5949721 C44.2740595,38.0083799 42.3328959,39.9287709 40.9041995,42.3561453 C39.4755031,44.7835196 38.7611549,47.4106145 38.7611549,50.2374302 C38.7611549,53.0642458 39.4755031,55.6913408 40.9041995,58.1187151 C42.3328959,60.5460894 44.2740595,62.4664804 46.7276903,63.8798883 C49.1813211,65.2932961 51.8989501,66 54.8805774,66 Z M54.8805774,58.6256983 C52.644357,58.6256983 50.7653106,57.8268156 49.2434383,56.2290503 C47.7215661,54.6312849 46.9606299,52.6340782 46.9606299,50.2374302 C46.9606299,47.7793296 47.7215661,45.7667598 49.2434383,44.1997207 C50.7653106,42.6326816 52.644357,41.849162 54.8805774,41.849162 C57.1789151,41.849162 59.0890201,42.6326816 60.6108924,44.1997207 C62.1327647,45.7667598 62.8937008,47.7793296 62.8937008,50.2374302 C62.8937008,52.6340782 62.1172353,54.6312849 60.5643045,56.2290503 C59.0113736,57.8268156 57.1167979,58.6256983 54.8805774,58.6256983 Z",id:"%-copy-2"})))),X2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"5 5 100 100",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_scatter",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M29.1340462,83.93 C36.5885775,83.93 42.6340462,77.8857969 42.6340462,70.43 C42.6340462,62.9742031 36.5885775,56.93 29.1340462,56.93 C21.679515,56.93 15.6340462,62.9742031 15.6340462,70.43 C15.6340462,77.8857969 21.679515,83.93 29.1340462,83.93 Z",id:"Path-Copy-3",stroke:"#9aa0a6",className:"primarystroke",strokeWidth:7,fillRule:"nonzero"}),u.createElement("path",{d:"M68.2840462,92.63 C73.6709212,92.63 78.0340462,88.264925 78.0340462,82.88 C78.0340462,77.495075 73.6709212,73.13 68.2840462,73.13 C62.8971712,73.13 58.5340462,77.495075 58.5340462,82.88 C58.5340462,88.264925 62.8971712,92.63 68.2840462,92.63 Z",id:"Path-Copy-2",stroke:"#9aa0a6",className:"primarystroke",strokeWidth:7,fillRule:"nonzero",transform:"translate(68.284046, 82.880000) rotate(-360.000000) translate(-68.284046, -82.880000) "}),u.createElement("path",{d:"M67.8242963,57.43 C78.8701296,57.43 87.8242963,48.4758333 87.8242963,37.43 C87.8242963,26.3842917 78.8701296,17.43 67.8242963,17.43 C56.7784629,17.43 47.8242963,26.3842917 47.8242963,37.43 C47.8242963,48.4758333 56.7784629,57.43 67.8242963,57.43 Z",id:"Path-Copy",stroke:"#9aa0a6",className:"primarystroke",strokeWidth:7,fillRule:"nonzero"}))),K2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"0 0 110 110",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_sparkline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},u.createElement("polyline",{id:"Path-11",stroke:"#9aa0a6",strokeWidth:6,points:"10 54.8274509 25.9215088 61.0844803 40.1501567 54.8274509 53.3907166 68.7215958 69.5925598 42 83.3327332 64.4487228 100.431152 57.8274509"}))),Q2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_table",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M81.0526316,23 L28.9473684,23 C25.1263158,23 22,26.1662162 22,30.036036 L22,79.2882883 C22,83.1581081 25.1263158,86.3243243 28.9473684,86.3243243 L81.0526316,86.3243243 C84.8736842,86.3243243 88,83.1581081 88,79.2882883 L88,30.036036 C88,26.1662162 84.8736842,23 81.0526316,23 Z M80.8648649,30.1351351 L80.8648649,40.8378378 L28.2432432,40.8378378 L28.2432432,30.1351351 L80.8648649,30.1351351 Z M63.9189189,79.1891892 L46.0810811,79.1891892 L46.0810811,47.972973 L63.9189189,47.972973 L63.9189189,79.1891892 Z M28.2432432,47.972973 L38.9459459,47.972973 L38.9459459,79.1891892 L28.2432432,79.1891892 L28.2432432,47.972973 Z M71.0540541,79.1891892 L71.0540541,47.972973 L81.7567568,47.972973 L81.7567568,79.1891892 L71.0540541,79.1891892 Z",id:"Shape",fill:"currentColor",fillRule:"nonzero"}))),J2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"10 10 90 90",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_text",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("rect",{id:"Rectangle-Copy",stroke:"currentColor",strokeWidth:6,x:15.5,y:35,width:79,height:40,rx:5}),u.createElement("g",{id:"abc",transform:"translate(33.090000, 44.134000)",fill:"currentColor",fillRule:"nonzero"},u.createElement("path",{d:"M4.81,19.032 C3.406,19.032 2.25333333,18.6203333 1.352,17.797 C0.450666667,16.9736667 0,15.8946667 0,14.56 C0,13.676 0.234,12.896 0.702,12.22 C1.17,11.544 1.81133333,11.024 2.626,10.66 C3.44066667,10.296 4.342,10.114 5.33,10.114 C6.69933333,10.114 7.86933333,10.3133333 8.84,10.712 L8.84,10.14 C8.84,9.412 8.567,8.82266667 8.021,8.372 C7.475,7.92133333 6.74266667,7.696 5.824,7.696 C5.2,7.696 4.59766667,7.839 4.017,8.125 C3.43633333,8.411 2.95533333,8.788 2.574,9.256 L0.39,7.54 C1.03133333,6.708 1.83733333,6.06666667 2.808,5.616 C3.77866667,5.16533333 4.836,4.94 5.98,4.94 C8.008,4.94 9.55066667,5.408 10.608,6.344 C11.6653333,7.28 12.194,8.64933333 12.194,10.452 L12.194,18.616 L8.84,18.616 L8.84,17.264 L8.632,17.264 C8.23333333,17.784 7.709,18.2086667 7.059,18.538 C6.409,18.8673333 5.65933333,19.032 4.81,19.032 Z M5.616,16.38 C6.604,16.38 7.38833333,16.0636667 7.969,15.431 C8.54966667,14.7983333 8.84,14.0573333 8.84,13.208 C7.956,12.792 7.02866667,12.584 6.058,12.584 C4.29,12.584 3.406,13.2426667 3.406,14.56 C3.406,15.0973333 3.59666667,15.535 3.978,15.873 C4.35933333,16.211 4.90533333,16.38 5.616,16.38 Z",id:"Shape"}),u.createElement("path",{d:"M22.724,19.032 C21.8226667,19.032 21.021,18.8413333 20.319,18.46 C19.617,18.0786667 19.0926667,17.602 18.746,17.03 L18.538,17.03 L18.538,18.616 L15.34,18.616 L15.34,0 L18.746,0 L18.746,5.096 L18.538,6.968 L18.746,6.968 C19.11,6.396 19.6386667,5.915 20.332,5.525 C21.0253333,5.135 21.8226667,4.94 22.724,4.94 C23.92,4.94 25.0076667,5.239 25.987,5.837 C26.9663333,6.435 27.7333333,7.27133333 28.288,8.346 C28.8426667,9.42066667 29.12,10.634 29.12,11.986 C29.12,13.3553333 28.8426667,14.573 28.288,15.639 C27.7333333,16.705 26.9663333,17.537 25.987,18.135 C25.0076667,18.733 23.92,19.032 22.724,19.032 Z M22.126,15.886 C22.7673333,15.886 23.3653333,15.7213333 23.92,15.392 C24.4746667,15.0626667 24.9166667,14.6033333 25.246,14.014 C25.5753333,13.4246667 25.74,12.7486667 25.74,11.986 C25.74,11.2233333 25.5753333,10.5473333 25.246,9.958 C24.9166667,9.36866667 24.4746667,8.91366667 23.92,8.593 C23.3653333,8.27233333 22.7673333,8.112 22.126,8.112 C21.502,8.112 20.9126667,8.27233333 20.358,8.593 C19.8033333,8.91366667 19.3613333,9.36866667 19.032,9.958 C18.7026667,10.5473333 18.538,11.2233333 18.538,11.986 C18.538,12.7486667 18.7026667,13.4246667 19.032,14.014 C19.3613333,14.6033333 19.8033333,15.0626667 20.358,15.392 C20.9126667,15.7213333 21.502,15.886 22.126,15.886 Z",id:"Shape"}),u.createElement("path",{d:"M37.986,19.032 C36.6513333,19.032 35.4553333,18.733 34.398,18.135 C33.3406667,17.537 32.513,16.7006667 31.915,15.626 C31.317,14.5513333 31.018,13.338 31.018,11.986 C31.018,10.634 31.317,9.425 31.915,8.359 C32.513,7.293 33.3406667,6.45666667 34.398,5.85 C35.4553333,5.24333333 36.6513333,4.94 37.986,4.94 C39.4593333,4.94 40.7246667,5.25633333 41.782,5.889 C42.8393333,6.52166667 43.602,7.41866667 44.07,8.58 L40.95,9.88 C40.3953333,8.70133333 39.4073333,8.112 37.986,8.112 C36.946,8.112 36.0923333,8.46733333 35.425,9.178 C34.7576667,9.88866667 34.424,10.8246667 34.424,11.986 C34.424,13.1646667 34.7576667,14.1093333 35.425,14.82 C36.0923333,15.5306667 36.946,15.886 37.986,15.886 C39.4246667,15.886 40.4646667,15.262 41.106,14.014 L44.2,15.366 C43.628,16.5273333 42.8133333,17.4286667 41.756,18.07 C40.6986667,18.7113333 39.442,19.032 37.986,19.032 Z",id:"Path"})))),ev=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_time",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"Group-Copy-19",transform:"translate(51.307692, 36.538462)",fill:"currentColor",fillRule:"nonzero"},u.createElement("polygon",{id:"Path",points:"5.30769231 0 0 0 0 21.7906683 18.5769231 33.2307692 21.2307692 28.7636822 5.30769231 19.0668348"})),u.createElement("circle",{id:"Oval",stroke:"currentColor",strokeWidth:7,cx:55,cy:55,r:32.5}))),tv=e=>u.createElement("svg",{height:56,viewBox:"0 0 56 56",width:56,xmlns:"http://www.w3.org/2000/svg",...e},u.createElement("path",{fill:"currentColor",d:"m23.957 41.7695c3.8906 0 7.5234-1.2656 10.4766-3.375l11.1093 11.1094c.5156.5156 1.1953.7735 1.8985.7735 1.5234 0 2.625-1.1719 2.625-2.6719 0-.7032-.2342-1.3594-.7502-1.875l-11.0389-11.0626c2.3203-3.0468 3.7031-6.8203 3.7031-10.9218 0-9.9141-8.1094-18.0235-18.0234-18.0235-9.9375 0-18.0234 8.1094-18.0234 18.0235 0 9.914 8.0859 18.0234 18.0234 18.0234zm0-3.8906c-7.7578 0-14.1328-6.3984-14.1328-14.1328s6.375-14.1328 14.1328-14.1328c7.7344 0 14.1328 6.3984 14.1328 14.1328s-6.3984 14.1328-14.1328 14.1328z"})),nv={chevronDown:t2,chevronLeft:n2,chevronRight:r2,clear:Rp,meatballs:R2,play:E2,copy:s2,checkmark:o2,radioChecked:j2,radioUnchecked:T2,warning:L2,check_circle:M2,gear:A2,info:I2,error:P2,refresh:D2,sidebarCollapse:N2,filterSliders:O2,aggregate:i2,dimension:lf,filter:a2,groupBy:c2,insert:l2,limit:u2,orderBy:f2,measure:sf,nest:d2,array:v2,boolean:b2,database:g2,date:w2,json:x2,number:C2,query:_2,search:tv,sql_native:S2,string:lf,view:y2,view_filled:k2,many_to_one:m2,one_to_many:p2,one_to_one:h2,viz_bar_chart:af,viz_bar:af,viz_boolean:$2,viz_bytes:uf,viz_cartesian_chart:rl,viz_column_chart:z2,viz_currency:F2,viz_dashboard:B2,viz_image:q2,viz_json:W2,viz_line_chart:rl,viz_line:rl,viz_link:cf,viz_list:G2,viz_list_detail:Y2,viz_point_map:U2,viz_segment_map:V2,viz_shape_map:H2,viz_number:uf,viz_percent:Z2,viz_scatter_chart:X2,viz_single_value:sf,viz_sparkline:K2,viz_table:Q2,viz_text:J2,viz_time:ev,viz_url:cf,viz_vega:rl};function te({name:e,color:t="primary",customStyle:n}){const r=nv[e];return r?a.jsx(r,{...k.props(rv.main,ov[t],n),"data-testid":`icon-${t}-${e}`}):null}const rv={main:{display:"mly1rg5ohu",width:"mly1kky2od",height:"mlylup9mm",overflow:"mly1rea2x4",overflowX:null,overflowY:null,$$css:!0}},ov={primary:{color:"mly1p68tcb",$$css:!0},secondary:{color:"mly1r0d382",$$css:!0},disabled:{color:"mly16un6j3",$$css:!0},primaryOnMedia:{color:"mly1kiansi",$$css:!0},gray:{color:"mlyann5r3",$$css:!0},purple:{color:"mly1ywypuw",$$css:!0},green:{color:"mly1evcnq1",$$css:!0},cyan:{color:"mly1h091fy",$$css:!0},info:{color:"mly1tw9ct1",$$css:!0},warning:{color:"mly7neac5",$$css:!0},positive:{color:"mly1l99qkd",$$css:!0},negative:{color:"mly109d434",$$css:!0}},sv="gray";function qn({label:e,color:t=sv,icon:n,customStyle:r}){return a.jsxs("div",{...k.props(df.main,lv[t],r),children:[n&&a.jsx(te,{color:t,name:n}),a.jsx("div",{"data-testid":"badge-label",...k.props(z.badge,df.label),children:e})]})}const df={main:{display:"mly3nfvp2",height:"mly1qx5ct2",minWidth:"mlyt4ypqs",padding:"mlyxzb6uj",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,justifyContent:"mlyl56j7k",alignItems:"mly6s0dn4",gap:"mly1jnr06f",rowGap:null,columnGap:null,flexShrink:"mly2lah0s",borderRadius:"mly10hpsqq",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,background:"mlysu8s4a",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,$$css:!0},label:{overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textAlign:"mly2b8uid",leadingTrim:"mly11e9jwx",textEdge:"mly1vqy1sf",textOverflow:"mlylyipyv",color:"mly1ard1hs",$$css:!0}},lv={gray:{"--mly10mhzaa":"mly1rve117","--mly1ojyoay":"mlybcavtu",$$css:!0},purple:{"--mly10mhzaa":"mlyihc5ie","--mly1ojyoay":"mlywis56f",$$css:!0},green:{"--mly10mhzaa":"mly10cf5cp","--mly1ojyoay":"mlyy280wj",$$css:!0},cyan:{"--mly10mhzaa":"mlykvi9ht","--mly1ojyoay":"mly1eg6ybj",$$css:!0}},iv="horizontal";function Gr({orientation:e=iv,customStyle:t}){return a.jsx("div",{...k.props(av.main,cv[e],t)})}const av={main:{background:"mly1xnbgy5",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,$$css:!0}},cv={horizontal:{height:"mlyjm9jq1",width:"mlyh8yej3",$$css:!0},vertical:{height:"mlypyat2d",width:"mly1i1rx1s",$$css:!0}};function uv({children:e}){return a.jsx("div",{className:"mly78zum5 mlydt5ytf mly167g77z",children:u.Children.map(e,t=>t)})}var dv=u.createContext(void 0);function Ts(e){const t=u.useContext(dv);return e||t||"ltr"}function ac(e,[t,n]){return Math.min(n,Math.max(t,e))}function fv(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var uu="ScrollArea",[Ep,$L]=zt(uu),[mv,Et]=Ep(uu),jp=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:s=600,...l}=e,[i,c]=u.useState(null),[d,f]=u.useState(null),[m,p]=u.useState(null),[h,g]=u.useState(null),[y,v]=u.useState(null),[w,b]=u.useState(0),[x,C]=u.useState(0),[_,R]=u.useState(!1),[S,E]=u.useState(!1),T=oe(t,D=>c(D)),M=Ts(o);return a.jsx(mv,{scope:n,type:r,dir:M,scrollHideDelay:s,scrollArea:i,viewport:d,onViewportChange:f,content:m,onContentChange:p,scrollbarX:h,onScrollbarXChange:g,scrollbarXEnabled:_,onScrollbarXEnabledChange:R,scrollbarY:y,onScrollbarYChange:v,scrollbarYEnabled:S,onScrollbarYEnabledChange:E,onCornerWidthChange:b,onCornerHeightChange:C,children:a.jsx(X.div,{dir:M,...l,ref:T,style:{position:"relative","--radix-scroll-area-corner-width":w+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});jp.displayName=uu;var Tp="ScrollAreaViewport",Lp=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...s}=e,l=Et(Tp,n),i=u.useRef(null),c=oe(t,i,l.onViewportChange);return a.jsxs(a.Fragment,{children:[a.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),a.jsx(X.div,{"data-radix-scroll-area-viewport":"",...s,ref:c,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:a.jsx("div",{ref:l.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});Lp.displayName=Tp;var nn="ScrollAreaScrollbar",Mp=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Et(nn,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:l}=o,i=e.orientation==="horizontal";return u.useEffect(()=>(i?s(!0):l(!0),()=>{i?s(!1):l(!1)}),[i,s,l]),o.type==="hover"?a.jsx(pv,{...r,ref:t,forceMount:n}):o.type==="scroll"?a.jsx(hv,{...r,ref:t,forceMount:n}):o.type==="auto"?a.jsx(Ap,{...r,ref:t,forceMount:n}):o.type==="always"?a.jsx(du,{...r,ref:t}):null});Mp.displayName=nn;var pv=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Et(nn,e.__scopeScrollArea),[s,l]=u.useState(!1);return u.useEffect(()=>{const i=o.scrollArea;let c=0;if(i){const d=()=>{window.clearTimeout(c),l(!0)},f=()=>{c=window.setTimeout(()=>l(!1),o.scrollHideDelay)};return i.addEventListener("pointerenter",d),i.addEventListener("pointerleave",f),()=>{window.clearTimeout(c),i.removeEventListener("pointerenter",d),i.removeEventListener("pointerleave",f)}}},[o.scrollArea,o.scrollHideDelay]),a.jsx(He,{present:n||s,children:a.jsx(Ap,{"data-state":s?"visible":"hidden",...r,ref:t})})}),hv=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Et(nn,e.__scopeScrollArea),s=e.orientation==="horizontal",l=Ei(()=>c("SCROLL_END"),100),[i,c]=fv("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return u.useEffect(()=>{if(i==="idle"){const d=window.setTimeout(()=>c("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(d)}},[i,o.scrollHideDelay,c]),u.useEffect(()=>{const d=o.viewport,f=s?"scrollLeft":"scrollTop";if(d){let m=d[f];const p=()=>{const h=d[f];m!==h&&(c("SCROLL"),l()),m=h};return d.addEventListener("scroll",p),()=>d.removeEventListener("scroll",p)}},[o.viewport,s,c,l]),a.jsx(He,{present:n||i!=="hidden",children:a.jsx(du,{"data-state":i==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:O(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:O(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),Ap=u.forwardRef((e,t)=>{const n=Et(nn,e.__scopeScrollArea),{forceMount:r,...o}=e,[s,l]=u.useState(!1),i=e.orientation==="horizontal",c=Ei(()=>{if(n.viewport){const d=n.viewport.offsetWidth<n.viewport.scrollWidth,f=n.viewport.offsetHeight<n.viewport.scrollHeight;l(i?d:f)}},10);return eo(n.viewport,c),eo(n.content,c),a.jsx(He,{present:r||s,children:a.jsx(du,{"data-state":s?"visible":"hidden",...o,ref:t})})}),du=u.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=Et(nn,e.__scopeScrollArea),s=u.useRef(null),l=u.useRef(0),[i,c]=u.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=Op(i.viewport,i.content),f={...r,sizes:i,onSizesChange:c,hasThumb:d>0&&d<1,onThumbChange:p=>s.current=p,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:p=>l.current=p};function m(p,h){return xv(p,l.current,i,h)}return n==="horizontal"?a.jsx(gv,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){const p=o.viewport.scrollLeft,h=ff(p,i,o.dir);s.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:p=>{o.viewport&&(o.viewport.scrollLeft=p)},onDragScroll:p=>{o.viewport&&(o.viewport.scrollLeft=m(p,o.dir))}}):n==="vertical"?a.jsx(yv,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){const p=o.viewport.scrollTop,h=ff(p,i);s.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:p=>{o.viewport&&(o.viewport.scrollTop=p)},onDragScroll:p=>{o.viewport&&(o.viewport.scrollTop=m(p))}}):null}),gv=u.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,s=Et(nn,e.__scopeScrollArea),[l,i]=u.useState(),c=u.useRef(null),d=oe(t,c,s.onScrollbarXChange);return u.useEffect(()=>{c.current&&i(getComputedStyle(c.current))},[c]),a.jsx(Pp,{"data-orientation":"horizontal",...o,ref:d,sizes:n,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Ri(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,m)=>{if(s.viewport){const p=s.viewport.scrollLeft+f.deltaX;e.onWheelScroll(p),zp(p,m)&&f.preventDefault()}},onResize:()=>{c.current&&s.viewport&&l&&r({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:Wl(l.paddingLeft),paddingEnd:Wl(l.paddingRight)}})}})}),yv=u.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,s=Et(nn,e.__scopeScrollArea),[l,i]=u.useState(),c=u.useRef(null),d=oe(t,c,s.onScrollbarYChange);return u.useEffect(()=>{c.current&&i(getComputedStyle(c.current))},[c]),a.jsx(Pp,{"data-orientation":"vertical",...o,ref:d,sizes:n,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Ri(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,m)=>{if(s.viewport){const p=s.viewport.scrollTop+f.deltaY;e.onWheelScroll(p),zp(p,m)&&f.preventDefault()}},onResize:()=>{c.current&&s.viewport&&l&&r({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:Wl(l.paddingTop),paddingEnd:Wl(l.paddingBottom)}})}})}),[vv,Ip]=Ep(nn),Pp=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:s,onThumbPointerUp:l,onThumbPointerDown:i,onThumbPositionChange:c,onDragScroll:d,onWheelScroll:f,onResize:m,...p}=e,h=Et(nn,n),[g,y]=u.useState(null),v=oe(t,T=>y(T)),w=u.useRef(null),b=u.useRef(""),x=h.viewport,C=r.content-r.viewport,_=qe(f),R=qe(c),S=Ei(m,10);function E(T){if(w.current){const M=T.clientX-w.current.left,D=T.clientY-w.current.top;d({x:M,y:D})}}return u.useEffect(()=>{const T=M=>{const D=M.target;g?.contains(D)&&_(M,C)};return document.addEventListener("wheel",T,{passive:!1}),()=>document.removeEventListener("wheel",T,{passive:!1})},[x,g,C,_]),u.useEffect(R,[r,R]),eo(g,S),eo(h.content,S),a.jsx(vv,{scope:n,scrollbar:g,hasThumb:o,onThumbChange:qe(s),onThumbPointerUp:qe(l),onThumbPositionChange:R,onThumbPointerDown:qe(i),children:a.jsx(X.div,{...p,ref:v,style:{position:"absolute",...p.style},onPointerDown:O(e.onPointerDown,T=>{T.button===0&&(T.target.setPointerCapture(T.pointerId),w.current=g.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),E(T))}),onPointerMove:O(e.onPointerMove,E),onPointerUp:O(e.onPointerUp,T=>{const M=T.target;M.hasPointerCapture(T.pointerId)&&M.releasePointerCapture(T.pointerId),document.body.style.webkitUserSelect=b.current,h.viewport&&(h.viewport.style.scrollBehavior=""),w.current=null})})})}),ql="ScrollAreaThumb",Dp=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ip(ql,e.__scopeScrollArea);return a.jsx(He,{present:n||o.hasThumb,children:a.jsx(bv,{ref:t,...r})})}),bv=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,s=Et(ql,n),l=Ip(ql,n),{onThumbPositionChange:i}=l,c=oe(t,m=>l.onThumbChange(m)),d=u.useRef(void 0),f=Ei(()=>{d.current&&(d.current(),d.current=void 0)},100);return u.useEffect(()=>{const m=s.viewport;if(m){const p=()=>{if(f(),!d.current){const h=Cv(m,i);d.current=h,i()}};return i(),m.addEventListener("scroll",p),()=>m.removeEventListener("scroll",p)}},[s.viewport,f,i]),a.jsx(X.div,{"data-state":l.hasThumb?"visible":"hidden",...o,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:O(e.onPointerDownCapture,m=>{const h=m.target.getBoundingClientRect(),g=m.clientX-h.left,y=m.clientY-h.top;l.onThumbPointerDown({x:g,y})}),onPointerUp:O(e.onPointerUp,l.onThumbPointerUp)})});Dp.displayName=ql;var fu="ScrollAreaCorner",Np=u.forwardRef((e,t)=>{const n=Et(fu,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?a.jsx(wv,{...e,ref:t}):null});Np.displayName=fu;var wv=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=Et(fu,n),[s,l]=u.useState(0),[i,c]=u.useState(0),d=!!(s&&i);return eo(o.scrollbarX,()=>{var f;const m=((f=o.scrollbarX)==null?void 0:f.offsetHeight)||0;o.onCornerHeightChange(m),c(m)}),eo(o.scrollbarY,()=>{var f;const m=((f=o.scrollbarY)==null?void 0:f.offsetWidth)||0;o.onCornerWidthChange(m),l(m)}),d?a.jsx(X.div,{...r,ref:t,style:{width:s,height:i,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Wl(e){return e?parseInt(e,10):0}function Op(e,t){const n=e/t;return isNaN(n)?0:n}function Ri(e){const t=Op(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function xv(e,t,n,r="ltr"){const o=Ri(n),s=o/2,l=t||s,i=o-l,c=n.scrollbar.paddingStart+l,d=n.scrollbar.size-n.scrollbar.paddingEnd-i,f=n.content-n.viewport,m=r==="ltr"?[0,f]:[f*-1,0];return $p([c,d],m)(e)}function ff(e,t,n="ltr"){const r=Ri(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-o,l=t.content-t.viewport,i=s-r,c=n==="ltr"?[0,l]:[l*-1,0],d=ac(e,c);return $p([0,l],[0,i])(d)}function $p(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function zp(e,t){return e>0&&e<t}var Cv=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const s={left:e.scrollLeft,top:e.scrollTop},l=n.left!==s.left,i=n.top!==s.top;(l||i)&&t(),n=s,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function Ei(e,t){const n=qe(e),r=u.useRef(0);return u.useEffect(()=>()=>window.clearTimeout(r.current),[]),u.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function eo(e,t){const n=qe(t);nt(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}var _v=jp,kv=Lp,mf=Mp,pf=Dp,Sv=Np;function mu({children:e}){return a.jsxs(_v,{className:"mlyh8yej3 mly5yr21d mlyb3r6kr mly1bo1i26 mly1fzkygm mlynu5hmx mly1u5txqc",children:[a.jsx(kv,{className:"mlyh8yej3 mly5yr21d mly1pjcqnp",children:u.Children.map(e,t=>t)}),a.jsx(mf,{className:"mly78zum5 mly3j5mvw mly15sj6ns mly14znju7 mlyehqz9p mly1xc55vz",orientation:"vertical",children:a.jsx(pf,{className:"mly98rzlu mly1o4sr5b mly12oqio5"})}),a.jsx(mf,{className:"mly78zum5 mly3j5mvw mly15sj6ns mly14znju7 mlydt5ytf mlyztvwtv mlydk7pt",orientation:"horizontal",children:a.jsx(pf,{className:"mly98rzlu mly1o4sr5b mly12oqio5"})}),a.jsx(Sv,{className:"mly3j5mvw mly1d3ksz1 mly14znju7"})]})}const Rv="default",Ev="default";function xe({variant:e=Rv,size:t=Ev,icon:n,label:r,tooltip:o,isDisabled:s=!1,customStyle:l,...i}){const c=a.jsxs("button",{...k.props(ya.main,jv[e],Tv[t],l),type:"button",disabled:s,...i,children:[a.jsxs("div",{className:"mly78zum5 mlyl56j7k mly6s0dn4 mly167g77z",children:[n&&a.jsx(te,{name:n,customStyle:ya.icon}),r&&a.jsx("div",{...k.props(e==="primary"?z.emphasized:z.body,ya.label),children:r})]}),s&&a.jsx("div",{className:"mly10l6tqk mlyu96u03 mly3m8u43 mlyzy8d55 mly47corl mlyur7f20 mlyh8yej3 mly5yr21d"})]});return o?a.jsxs(fo,{delayDuration:300,children:[a.jsx(mo,{asChild:!0,children:c}),a.jsx(po,{children:a.jsx(ho,{sideOffset:8,...k.props(z.body,Sn.default),children:o})})]}):c}const ya={main:{display:"mly3nfvp2",flexDirection:"mlydt5ytf",justifyContent:"mlyl56j7k",alignItems:"mly6s0dn4",position:"mly1n2onr6",gap:"mly167g77z",rowGap:null,columnGap:null,borderRadius:"mlyur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,borderWidth:"mlyc342km",borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,cursor:"mly1ypdohk mly1s07b3s",flexShrink:"mly2lah0s",userSelect:"mly87ps6o",$$css:!0},icon:{color:"mlyuk6yi3",$$css:!0},label:{color:"mlyaerthn",whiteSpace:"mlyuxw1ft",$$css:!0}},jv={default:{background:"mlygqa5hp mly1uceoyp mly1cncicd",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,"--mlyxo3nik":"mlypfd894 mlyiv1q3g","--mly1hpdckv":"mly5xbp4t mly1iu3zmn",$$css:!0},flat:{background:"mly1md70p1 mly14hn1a8 mlywghvya",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,"--mlyxo3nik":"mlypfd894 mlyiv1q3g","--mly1hpdckv":"mly5xbp4t mly1iu3zmn",$$css:!0},primary:{background:"mlyhcrij8 mly1vdl2d1 mly1u4cpcs",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,"--mlyxo3nik":"mly1n5rdk7 mly1dsjhx","--mly1hpdckv":"mly3mt86g mly13vk70h",$$css:!0}},Tv={default:{height:"mlyc9qbxq",padding:"mly153ncpu",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0},compact:{height:"mly1fgtraw",padding:"mlydqdrvq",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0}},Un={main:{display:"mlywz0xwf",gridAutoFlow:"mly1mt1orb",alignItems:"mly6s0dn4",justifyContent:"mlyl56j7k",gap:"mly167g77z",rowGap:null,columnGap:null,borderRadius:"mly12oqio5",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,borderWidth:"mlyc342km",borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,outline:"mly1a2a7pz",outlineColor:null,outlineOffset:null,outlineStyle:null,outlineWidth:null,cursor:"mly1ypdohk",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,background:"mly1np9qvj mly1uceoyp",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,position:"mly1n2onr6",$$css:!0},icon:{color:"mlywn9h7t",$$css:!0},label:{color:"mly1xre2ib",textOverflow:"mlylyipyv",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,whiteSpace:"mlyuxw1ft",$$css:!0}},pu={default:{"--mlyvygx4q":"mly1izbou4","--mly13n7235":"mly8bgh0r",$$css:!0},purple:{"--mlyvygx4q":"mly1f8soc4","--mly13n7235":"mly1r5zvhd",$$css:!0},green:{"--mlyvygx4q":"mlyf8wvcd","--mly13n7235":"mly1u6t2w6",$$css:!0},cyan:{"--mlyvygx4q":"mlyrtwgpv","--mly13n7235":"mlys5r2en",$$css:!0}},hu={default:{padding:"mlydqdrvq",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0},compact:{padding:"mlyxzb6uj",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0}},wo="default",gu="default";function De({label:e,icon:t,color:n=wo,size:r=gu,onClick:o,onHover:s,asButtonTrigger:l=!1,tooltip:i,tooltipProps:c,customStyle:d,dragProps:f,...m}){const p=o!==void 0||l,h=a.jsxs("div",{...k.props(Un.main,pu[n],hu[r],!p&&Lv.nonInteractive,d),...f?.attributes,...f?.listeners,children:[t&&a.jsx(te,{name:t,customStyle:Un.icon}),p&&a.jsx("button",{className:"mlyh8yej3 mly5yr21d mly10l6tqk mly13vifvy mlyu96u03 mly1md70p1 mlyng3xce mly1ypdohk",...o&&{onClick:o},...s&&{onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1)},...m}),e&&a.jsx("div",{...k.props(z.body,Un.label),children:e})]});return i?a.jsxs(go,{delayDuration:300,children:[a.jsx(yo,{asChild:!0,children:h}),a.jsx(vo,{children:a.jsx(bo,{...c,...k.props(z.tooltipText,typeof i=="string"?Sn.default:Sn.card),children:i})})]}):h}const Lv={nonInteractive:{cursor:"mlyt0e3qv",background:"mly1np9qvj",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,$$css:!0}};function Ls({children:e,color:t=wo,customStyle:n}){const r=u.Children.count(e);return a.jsx("div",{...k.props(Go.main,n),children:u.Children.map(e,(o,s)=>u.cloneElement(o,{customStyle:{...o.props.customStyle,...Mv(s,r)},color:Av(o,t)}))})}const Mv=(e,t)=>t===1?Go.onlyChild:e===0?Go.firstChild:e===t-1?Go.lastChild:Go.innerChild,Av=(e,t)=>{const n=e.props.color;return n===void 0?t:n},Go={main:{display:"mlyrvj5dj",gridAutoFlow:"mly1mt1orb",alignItems:"mly6s0dn4",gap:"mly12mrbbr",rowGap:null,columnGap:null,$$css:!0},firstChild:{borderRadius:"mlytah5vv",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0},innerChild:{borderRadius:null,borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0},lastChild:{borderRadius:"mly19ctu66",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0},onlyChild:{borderRadius:"mly12oqio5",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0}};function ji({errorMessage:e}){return a.jsxs(fo,{delayDuration:0,children:[a.jsx(mo,{asChild:!0,children:a.jsx("div",{className:"mlygd8bvy mly1fgtraw mly78zum5 mly6s0dn4 mlyl56j7k",children:a.jsx(te,{name:"warning",customStyle:Iv.errorIcon})})}),a.jsx(po,{children:a.jsx(ho,{children:a.jsx("div",{...k.props(z.body,Sn.default),children:e})})})]})}const Iv={errorIcon:{color:"mly1e2nbdu",$$css:!0}};function cc({value:e,onChange:t,onRemove:n,icon:r,color:o=wo,size:s=gu,customStyle:l,type:i,errorMessage:c}){const[d,f]=u.useState(!1),m=u.useRef(null),p=u.useRef(null),h=({target:v})=>{t(i==="number"?parseFloat(v.value||"0"):v.value)},g=()=>{f(!0)},y=v=>{var w;p.current==null||v.relatedTarget!==p.current?f(!1):(w=m.current)==null||w.focus()};return a.jsxs("div",{className:"mly78zum5 mly6s0dn4",children:[a.jsxs("div",{...k.props(Un.main,pu[o],hu[s],d&&No.focused,!!c&&No.hasError,l),children:[r&&a.jsx(te,{name:r,customStyle:No.icon}),a.jsxs("span",{className:"mlywz0xwf",children:[a.jsx("span",{...k.props(z.body,No.placeholder),style:{whiteSpaceCollapse:"preserve"},children:e}),a.jsx("input",{...k.props(No.input,z.body),ref:m,pattern:i==="number"?"^-?[0-9.]*$":void 0,value:e,onChange:h,onFocus:g,onBlur:y,size:1})]}),n&&d&&a.jsx("button",{className:"mly3nfvp2 mlyc342km mly1md70p1 mly1717udv mly1ypdohk",ref:p,onClick:n,tabIndex:0,children:a.jsx(te,{name:"clear"})})]}),c&&a.jsx(ji,{errorMessage:c})]})}const No={focused:{background:"mlyotlr4g",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,boxShadow:"mlyn8fsvk",$$css:!0},hasError:{border:"mly1dc9p4k",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:!0},icon:{color:"mlywn9h7t",$$css:!0},placeholder:{background:"mly1md70p1",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,color:"mly19co3pv",gridArea:"mly15r89dc",gridRow:null,gridRowStart:null,gridRowEnd:null,gridColumn:null,gridColumnStart:null,gridColumnEnd:null,whiteSpace:"mlyuxw1ft",minWidth:"mlygc0pbm",$$css:!0},input:{color:"mly1xre2ib",gridArea:"mly15r89dc",gridRow:null,gridRowStart:null,gridRowEnd:null,gridColumn:null,gridColumnStart:null,gridColumnEnd:null,padding:"mly1717udv",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,background:"mly1md70p1",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,borderStyle:"mlyng3xce",borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,outline:"mly1a2a7pz",outlineColor:null,outlineOffset:null,outlineStyle:null,outlineWidth:null,whiteSpace:"mlyuxw1ft",minWidth:"mlygc0pbm",$$css:!0}};function yu(e){const t=e+"CollectionProvider",[n,r]=zt(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=h=>{const{scope:g,children:y}=h,v=Me.useRef(null),w=Me.useRef(new Map).current;return a.jsx(o,{scope:g,itemMap:w,collectionRef:v,children:y})};l.displayName=t;const i=e+"CollectionSlot",c=Me.forwardRef((h,g)=>{const{scope:y,children:v}=h,w=s(i,y),b=oe(g,w.collectionRef);return a.jsx(Hn,{ref:b,children:v})});c.displayName=i;const d=e+"CollectionItemSlot",f="data-radix-collection-item",m=Me.forwardRef((h,g)=>{const{scope:y,children:v,...w}=h,b=Me.useRef(null),x=oe(g,b),C=s(d,y);return Me.useEffect(()=>(C.itemMap.set(b,{ref:b,...w}),()=>void C.itemMap.delete(b))),a.jsx(Hn,{[f]:"",ref:x,children:v})});m.displayName=d;function p(h){const g=s(e+"CollectionConsumer",h);return Me.useCallback(()=>{const v=g.collectionRef.current;if(!v)return[];const w=Array.from(v.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((C,_)=>w.indexOf(C.ref.current)-w.indexOf(_.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:l,Slot:c,ItemSlot:m},p,r]}var va=0;function Ti(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??hf()),document.body.insertAdjacentElement("beforeend",e[1]??hf()),va++,()=>{va===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),va--}},[])}function hf(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ba="focusScope.autoFocusOnMount",wa="focusScope.autoFocusOnUnmount",gf={bubbles:!1,cancelable:!0},Pv="FocusScope",Ms=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...l}=e,[i,c]=u.useState(null),d=qe(o),f=qe(s),m=u.useRef(null),p=oe(t,y=>c(y)),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let y=function(x){if(h.paused||!i)return;const C=x.target;i.contains(C)?m.current=C:zn(m.current,{select:!0})},v=function(x){if(h.paused||!i)return;const C=x.relatedTarget;C!==null&&(i.contains(C)||zn(m.current,{select:!0}))},w=function(x){if(document.activeElement===document.body)for(const _ of x)_.removedNodes.length>0&&zn(i)};document.addEventListener("focusin",y),document.addEventListener("focusout",v);const b=new MutationObserver(w);return i&&b.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",v),b.disconnect()}}},[r,i,h.paused]),u.useEffect(()=>{if(i){vf.add(h);const y=document.activeElement;if(!i.contains(y)){const w=new CustomEvent(ba,gf);i.addEventListener(ba,d),i.dispatchEvent(w),w.defaultPrevented||(Dv(Fv(Fp(i)),{select:!0}),document.activeElement===y&&zn(i))}return()=>{i.removeEventListener(ba,d),setTimeout(()=>{const w=new CustomEvent(wa,gf);i.addEventListener(wa,f),i.dispatchEvent(w),w.defaultPrevented||zn(y??document.body,{select:!0}),i.removeEventListener(wa,f),vf.remove(h)},0)}}},[i,d,f,h]);const g=u.useCallback(y=>{if(!n&&!r||h.paused)return;const v=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,w=document.activeElement;if(v&&w){const b=y.currentTarget,[x,C]=Nv(b);x&&C?!y.shiftKey&&w===C?(y.preventDefault(),n&&zn(x,{select:!0})):y.shiftKey&&w===x&&(y.preventDefault(),n&&zn(C,{select:!0})):w===b&&y.preventDefault()}},[n,r,h.paused]);return a.jsx(X.div,{tabIndex:-1,...l,ref:p,onKeyDown:g})});Ms.displayName=Pv;function Dv(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(zn(r,{select:t}),document.activeElement!==n)return}function Nv(e){const t=Fp(e),n=yf(t,e),r=yf(t.reverse(),e);return[n,r]}function Fp(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function yf(e,t){for(const n of e)if(!Ov(n,{upTo:t}))return n}function Ov(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function $v(e){return e instanceof HTMLInputElement&&"select"in e}function zn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&$v(e)&&t&&e.select()}}var vf=zv();function zv(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=bf(e,t),e.unshift(t)},remove(t){var n;e=bf(e,t),(n=e[0])==null||n.resume()}}}function bf(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Fv(e){return e.filter(t=>t.tagName!=="A")}function Bv(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var qv=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Mr=new WeakMap,ol=new WeakMap,sl={},xa=0,Bp=function(e){return e&&(e.host||Bp(e.parentNode))},Wv=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Bp(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Gv=function(e,t,n,r){var o=Wv(t,Array.isArray(e)?e:[e]);sl[n]||(sl[n]=new WeakMap);var s=sl[n],l=[],i=new Set,c=new Set(o),d=function(m){!m||i.has(m)||(i.add(m),d(m.parentNode))};o.forEach(d);var f=function(m){!m||c.has(m)||Array.prototype.forEach.call(m.children,function(p){if(i.has(p))f(p);else try{var h=p.getAttribute(r),g=h!==null&&h!=="false",y=(Mr.get(p)||0)+1,v=(s.get(p)||0)+1;Mr.set(p,y),s.set(p,v),l.push(p),y===1&&g&&ol.set(p,!0),v===1&&p.setAttribute(n,"true"),g||p.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",p,w)}})};return f(t),i.clear(),xa++,function(){l.forEach(function(m){var p=Mr.get(m)-1,h=s.get(m)-1;Mr.set(m,p),s.set(m,h),p||(ol.has(m)||m.removeAttribute(r),ol.delete(m)),h||m.removeAttribute(n)}),xa--,xa||(Mr=new WeakMap,Mr=new WeakMap,ol=new WeakMap,sl={})}},Li=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=qv(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Gv(r,o,n,"aria-hidden")):function(){return null}},Ht=function(){return Ht=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Ht.apply(this,arguments)};function qp(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Yv(e,t,n){for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Rl="right-scroll-bar-position",El="width-before-scroll-bar",Uv="with-scroll-bars-hidden",Vv="--removed-body-scroll-bar-size";function Ca(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Hv(e,t){var n=u.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Zv=typeof window<"u"?u.useLayoutEffect:u.useEffect,wf=new WeakMap;function Xv(e,t){var n=Hv(null,function(r){return e.forEach(function(o){return Ca(o,r)})});return Zv(function(){var r=wf.get(n);if(r){var o=new Set(r),s=new Set(e),l=n.current;o.forEach(function(i){s.has(i)||Ca(i,null)}),s.forEach(function(i){o.has(i)||Ca(i,l)})}wf.set(n,e)},[e]),n}function Kv(e){return e}function Qv(e,t){t===void 0&&(t=Kv);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var l=t(s,r);return n.push(l),function(){n=n.filter(function(i){return i!==l})}},assignSyncMedium:function(s){for(r=!0;n.length;){var l=n;n=[],l.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){r=!0;var l=[];if(n.length){var i=n;n=[],i.forEach(s),l=n}var c=function(){var f=l;l=[],f.forEach(s)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(f){l.push(f),d()},filter:function(f){return l=l.filter(f),n}}}};return o}function Jv(e){e===void 0&&(e={});var t=Qv(null);return t.options=Ht({async:!0,ssr:!1},e),t}var Wp=function(e){var t=e.sideCar,n=qp(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return u.createElement(r,Ht({},n))};Wp.isSideCarExport=!0;function e4(e,t){return e.useMedium(t),Wp}var Gp=Jv(),_a=function(){},Mi=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:_a,onWheelCapture:_a,onTouchMoveCapture:_a}),o=r[0],s=r[1],l=e.forwardProps,i=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,m=e.shards,p=e.sideCar,h=e.noIsolation,g=e.inert,y=e.allowPinchZoom,v=e.as,w=v===void 0?"div":v,b=e.gapMode,x=qp(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=p,_=Xv([n,t]),R=Ht(Ht({},x),o);return u.createElement(u.Fragment,null,f&&u.createElement(C,{sideCar:Gp,removeScrollBar:d,shards:m,noIsolation:h,inert:g,setCallbacks:s,allowPinchZoom:!!y,lockRef:n,gapMode:b}),l?u.cloneElement(u.Children.only(i),Ht(Ht({},R),{ref:_})):u.createElement(w,Ht({},R,{className:c,ref:_}),i))});Mi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Mi.classNames={fullWidth:El,zeroRight:Rl};var t4=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function n4(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=t4();return t&&e.setAttribute("nonce",t),e}function r4(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function o4(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var s4=function(){var e=0,t=null;return{add:function(n){e==0&&(t=n4())&&(r4(t,n),o4(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},l4=function(){var e=s4();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Yp=function(){var e=l4(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},i4={left:0,top:0,right:0,gap:0},ka=function(e){return parseInt(e||"",10)||0},a4=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ka(n),ka(r),ka(o)]},c4=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return i4;var t=a4(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},u4=Yp(),Yr="data-scroll-locked",d4=function(e,t,n,r){var o=e.left,s=e.top,l=e.right,i=e.gap;return n===void 0&&(n="margin"),`
2
- .`.concat(Uv,` {
3
- overflow: hidden `).concat(r,`;
4
- padding-right: `).concat(i,"px ").concat(r,`;
5
- }
6
- body[`).concat(Yr,`] {
7
- overflow: hidden `).concat(r,`;
8
- overscroll-behavior: contain;
9
- `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
10
- padding-left: `.concat(o,`px;
11
- padding-top: `).concat(s,`px;
12
- padding-right: `).concat(l,`px;
13
- margin-left:0;
14
- margin-top:0;
15
- margin-right: `).concat(i,"px ").concat(r,`;
16
- `),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
17
- }
18
-
19
- .`).concat(Rl,` {
20
- right: `).concat(i,"px ").concat(r,`;
21
- }
22
-
23
- .`).concat(El,` {
24
- margin-right: `).concat(i,"px ").concat(r,`;
25
- }
26
-
27
- .`).concat(Rl," .").concat(Rl,` {
28
- right: 0 `).concat(r,`;
29
- }
30
-
31
- .`).concat(El," .").concat(El,` {
32
- margin-right: 0 `).concat(r,`;
33
- }
34
-
35
- body[`).concat(Yr,`] {
36
- `).concat(Vv,": ").concat(i,`px;
37
- }
38
- `)},xf=function(){var e=parseInt(document.body.getAttribute(Yr)||"0",10);return isFinite(e)?e:0},f4=function(){u.useEffect(function(){return document.body.setAttribute(Yr,(xf()+1).toString()),function(){var e=xf()-1;e<=0?document.body.removeAttribute(Yr):document.body.setAttribute(Yr,e.toString())}},[])},m4=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;f4();var s=u.useMemo(function(){return c4(o)},[o]);return u.createElement(u4,{styles:d4(s,!t,o,n?"":"!important")})},uc=!1;if(typeof window<"u")try{var ll=Object.defineProperty({},"passive",{get:function(){return uc=!0,!0}});window.addEventListener("test",ll,ll),window.removeEventListener("test",ll,ll)}catch{uc=!1}var Ar=uc?{passive:!1}:!1,p4=function(e){return e.tagName==="TEXTAREA"},Up=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!p4(e)&&n[t]==="visible")},h4=function(e){return Up(e,"overflowY")},g4=function(e){return Up(e,"overflowX")},Cf=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Vp(e,r);if(o){var s=Hp(e,r),l=s[1],i=s[2];if(l>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},y4=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},v4=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Vp=function(e,t){return e==="v"?h4(t):g4(t)},Hp=function(e,t){return e==="v"?y4(t):v4(t)},b4=function(e,t){return e==="h"&&t==="rtl"?-1:1},w4=function(e,t,n,r,o){var s=b4(e,window.getComputedStyle(t).direction),l=s*r,i=n.target,c=t.contains(i),d=!1,f=l>0,m=0,p=0;do{var h=Hp(e,i),g=h[0],y=h[1],v=h[2],w=y-v-s*g;(g||w)&&Vp(e,i)&&(m+=w,p+=g),i instanceof ShadowRoot?i=i.host:i=i.parentNode}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(f&&Math.abs(m)<1||!f&&Math.abs(p)<1)&&(d=!0),d},il=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_f=function(e){return[e.deltaX,e.deltaY]},kf=function(e){return e&&"current"in e?e.current:e},x4=function(e,t){return e[0]===t[0]&&e[1]===t[1]},C4=function(e){return`
39
- .block-interactivity-`.concat(e,` {pointer-events: none;}
40
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
- `)},_4=0,Ir=[];function k4(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(_4++)[0],s=u.useState(Yp)[0],l=u.useRef(e);u.useEffect(function(){l.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=Yv([e.lockRef.current],(e.shards||[]).map(kf)).filter(Boolean);return y.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=u.useCallback(function(y,v){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!l.current.allowPinchZoom;var w=il(y),b=n.current,x="deltaX"in y?y.deltaX:b[0]-w[0],C="deltaY"in y?y.deltaY:b[1]-w[1],_,R=y.target,S=Math.abs(x)>Math.abs(C)?"h":"v";if("touches"in y&&S==="h"&&R.type==="range")return!1;var E=Cf(S,R);if(!E)return!0;if(E?_=S:(_=S==="v"?"h":"v",E=Cf(S,R)),!E)return!1;if(!r.current&&"changedTouches"in y&&(x||C)&&(r.current=_),!_)return!0;var T=r.current||_;return w4(T,v,y,T==="h"?x:C)},[]),c=u.useCallback(function(y){var v=y;if(!(!Ir.length||Ir[Ir.length-1]!==s)){var w="deltaY"in v?_f(v):il(v),b=t.current.filter(function(_){return _.name===v.type&&(_.target===v.target||v.target===_.shadowParent)&&x4(_.delta,w)})[0];if(b&&b.should){v.cancelable&&v.preventDefault();return}if(!b){var x=(l.current.shards||[]).map(kf).filter(Boolean).filter(function(_){return _.contains(v.target)}),C=x.length>0?i(v,x[0]):!l.current.noIsolation;C&&v.cancelable&&v.preventDefault()}}},[]),d=u.useCallback(function(y,v,w,b){var x={name:y,delta:v,target:w,should:b,shadowParent:S4(w)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(C){return C!==x})},1)},[]),f=u.useCallback(function(y){n.current=il(y),r.current=void 0},[]),m=u.useCallback(function(y){d(y.type,_f(y),y.target,i(y,e.lockRef.current))},[]),p=u.useCallback(function(y){d(y.type,il(y),y.target,i(y,e.lockRef.current))},[]);u.useEffect(function(){return Ir.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Ar),document.addEventListener("touchmove",c,Ar),document.addEventListener("touchstart",f,Ar),function(){Ir=Ir.filter(function(y){return y!==s}),document.removeEventListener("wheel",c,Ar),document.removeEventListener("touchmove",c,Ar),document.removeEventListener("touchstart",f,Ar)}},[]);var h=e.removeScrollBar,g=e.inert;return u.createElement(u.Fragment,null,g?u.createElement(s,{styles:C4(o)}):null,h?u.createElement(m4,{gapMode:e.gapMode}):null)}function S4(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const R4=e4(Gp,k4);var As=u.forwardRef(function(e,t){return u.createElement(Mi,Ht({},e,{ref:t,sideCar:R4}))});As.classNames=Mi.classNames;var E4=[" ","Enter","ArrowUp","ArrowDown"],j4=[" ","Enter"],Is="Select",[Ai,Ii,T4]=yu(Is),[xo,zL]=zt(Is,[T4,tr]),Pi=tr(),[L4,nr]=xo(Is),[M4,A4]=xo(Is),Zp=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:l,defaultValue:i,onValueChange:c,dir:d,name:f,autoComplete:m,disabled:p,required:h,form:g}=e,y=Pi(t),[v,w]=u.useState(null),[b,x]=u.useState(null),[C,_]=u.useState(!1),R=Ts(d),[S=!1,E]=Qn({prop:r,defaultProp:o,onChange:s}),[T,M]=Qn({prop:l,defaultProp:i,onChange:c}),D=u.useRef(null),F=v?g||!!v.closest("form"):!0,[V,q]=u.useState(new Set),ne=Array.from(V).map(U=>U.props.value).join(";");return a.jsx(wi,{...y,children:a.jsxs(L4,{required:h,scope:t,trigger:v,onTriggerChange:w,valueNode:b,onValueNodeChange:x,valueNodeHasChildren:C,onValueNodeHasChildrenChange:_,contentId:St(),value:T,onValueChange:M,open:S,onOpenChange:E,dir:R,triggerPointerDownPosRef:D,disabled:p,children:[a.jsx(Ai.Provider,{scope:t,children:a.jsx(M4,{scope:e.__scopeSelect,onNativeOptionAdd:u.useCallback(U=>{q(K=>new Set(K).add(U))},[]),onNativeOptionRemove:u.useCallback(U=>{q(K=>{const H=new Set(K);return H.delete(U),H})},[]),children:n})}),F?a.jsxs(hh,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:m,value:T,onChange:U=>M(U.target.value),disabled:p,form:g,children:[T===void 0?a.jsx("option",{value:""}):null,Array.from(V)]},ne):null]})})};Zp.displayName=Is;var Xp="SelectTrigger",Kp=u.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=Pi(n),l=nr(Xp,n),i=l.disabled||r,c=oe(t,l.onTriggerChange),d=Ii(n),f=u.useRef("touch"),[m,p,h]=gh(y=>{const v=d().filter(x=>!x.disabled),w=v.find(x=>x.value===l.value),b=yh(v,y,w);b!==void 0&&l.onValueChange(b.value)}),g=y=>{i||(l.onOpenChange(!0),h()),y&&(l.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return a.jsx(Rs,{asChild:!0,...s,children:a.jsx(X.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":ph(l.value)?"":void 0,...o,ref:c,onClick:O(o.onClick,y=>{y.currentTarget.focus(),f.current!=="mouse"&&g(y)}),onPointerDown:O(o.onPointerDown,y=>{f.current=y.pointerType;const v=y.target;v.hasPointerCapture(y.pointerId)&&v.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&y.pointerType==="mouse"&&(g(y),y.preventDefault())}),onKeyDown:O(o.onKeyDown,y=>{const v=m.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&p(y.key),!(v&&y.key===" ")&&E4.includes(y.key)&&(g(),y.preventDefault())})})})});Kp.displayName=Xp;var Qp="SelectValue",Jp=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:l="",...i}=e,c=nr(Qp,n),{onValueNodeHasChildrenChange:d}=c,f=s!==void 0,m=oe(t,c.onValueNodeChange);return nt(()=>{d(f)},[d,f]),a.jsx(X.span,{...i,ref:m,style:{pointerEvents:"none"},children:ph(c.value)?a.jsx(a.Fragment,{children:l}):s})});Jp.displayName=Qp;var I4="SelectIcon",P4=u.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return a.jsx(X.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});P4.displayName=I4;var D4="SelectPortal",eh=e=>a.jsx(uo,{asChild:!0,...e});eh.displayName=D4;var hr="SelectContent",th=u.forwardRef((e,t)=>{const n=nr(hr,e.__scopeSelect),[r,o]=u.useState();if(nt(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?hn.createPortal(a.jsx(nh,{scope:e.__scopeSelect,children:a.jsx(Ai.Slot,{scope:e.__scopeSelect,children:a.jsx("div",{children:e.children})})}),s):null}return a.jsx(rh,{...e,ref:t})});th.displayName=hr;var Lt=10,[nh,rr]=xo(hr),N4="SelectContentImpl",rh=u.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:l,side:i,sideOffset:c,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:p,collisionPadding:h,sticky:g,hideWhenDetached:y,avoidCollisions:v,...w}=e,b=nr(hr,n),[x,C]=u.useState(null),[_,R]=u.useState(null),S=oe(t,G=>C(G)),[E,T]=u.useState(null),[M,D]=u.useState(null),F=Ii(n),[V,q]=u.useState(!1),ne=u.useRef(!1);u.useEffect(()=>{if(x)return Li(x)},[x]),Ti();const U=u.useCallback(G=>{const[se,...ce]=F().map(le=>le.ref.current),[W]=ce.slice(-1),de=document.activeElement;for(const le of G)if(le===de||(le?.scrollIntoView({block:"nearest"}),le===se&&_&&(_.scrollTop=0),le===W&&_&&(_.scrollTop=_.scrollHeight),le?.focus(),document.activeElement!==de))return},[F,_]),K=u.useCallback(()=>U([E,x]),[U,E,x]);u.useEffect(()=>{V&&K()},[V,K]);const{onOpenChange:H,triggerPointerDownPosRef:N}=b;u.useEffect(()=>{if(x){let G={x:0,y:0};const se=W=>{var de,le;G={x:Math.abs(Math.round(W.pageX)-(((de=N.current)==null?void 0:de.x)??0)),y:Math.abs(Math.round(W.pageY)-(((le=N.current)==null?void 0:le.y)??0))}},ce=W=>{G.x<=10&&G.y<=10?W.preventDefault():x.contains(W.target)||H(!1),document.removeEventListener("pointermove",se),N.current=null};return N.current!==null&&(document.addEventListener("pointermove",se),document.addEventListener("pointerup",ce,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",se),document.removeEventListener("pointerup",ce,{capture:!0})}}},[x,H,N]),u.useEffect(()=>{const G=()=>H(!1);return window.addEventListener("blur",G),window.addEventListener("resize",G),()=>{window.removeEventListener("blur",G),window.removeEventListener("resize",G)}},[H]);const[ae,Ae]=gh(G=>{const se=F().filter(de=>!de.disabled),ce=se.find(de=>de.ref.current===document.activeElement),W=yh(se,G,ce);W&&setTimeout(()=>W.ref.current.focus())}),ye=u.useCallback((G,se,ce)=>{const W=!ne.current&&!ce;(b.value!==void 0&&b.value===se||W)&&(T(G),W&&(ne.current=!0))},[b.value]),je=u.useCallback(()=>x?.focus(),[x]),ke=u.useCallback((G,se,ce)=>{const W=!ne.current&&!ce;(b.value!==void 0&&b.value===se||W)&&D(G)},[b.value]),Ze=r==="popper"?dc:oh,Se=Ze===dc?{side:i,sideOffset:c,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:p,collisionPadding:h,sticky:g,hideWhenDetached:y,avoidCollisions:v}:{};return a.jsx(nh,{scope:n,content:x,viewport:_,onViewportChange:R,itemRefCallback:ye,selectedItem:E,onItemLeave:je,itemTextRefCallback:ke,focusSelectedItem:K,selectedItemText:M,position:r,isPositioned:V,searchRef:ae,children:a.jsx(As,{as:Hn,allowPinchZoom:!0,children:a.jsx(Ms,{asChild:!0,trapped:b.open,onMountAutoFocus:G=>{G.preventDefault()},onUnmountAutoFocus:O(o,G=>{var se;(se=b.trigger)==null||se.focus({preventScroll:!0}),G.preventDefault()}),children:a.jsx(io,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:G=>G.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:a.jsx(Ze,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:G=>G.preventDefault(),...w,...Se,onPlaced:()=>q(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:O(w.onKeyDown,G=>{const se=G.ctrlKey||G.altKey||G.metaKey;if(G.key==="Tab"&&G.preventDefault(),!se&&G.key.length===1&&Ae(G.key),["ArrowUp","ArrowDown","Home","End"].includes(G.key)){let W=F().filter(de=>!de.disabled).map(de=>de.ref.current);if(["ArrowUp","End"].includes(G.key)&&(W=W.slice().reverse()),["ArrowUp","ArrowDown"].includes(G.key)){const de=G.target,le=W.indexOf(de);W=W.slice(le+1)}setTimeout(()=>U(W)),G.preventDefault()}})})})})})})});rh.displayName=N4;var O4="SelectItemAlignedPosition",oh=u.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=nr(hr,n),l=rr(hr,n),[i,c]=u.useState(null),[d,f]=u.useState(null),m=oe(t,S=>f(S)),p=Ii(n),h=u.useRef(!1),g=u.useRef(!0),{viewport:y,selectedItem:v,selectedItemText:w,focusSelectedItem:b}=l,x=u.useCallback(()=>{if(s.trigger&&s.valueNode&&i&&d&&y&&v&&w){const S=s.trigger.getBoundingClientRect(),E=d.getBoundingClientRect(),T=s.valueNode.getBoundingClientRect(),M=w.getBoundingClientRect();if(s.dir!=="rtl"){const de=M.left-E.left,le=T.left-de,Oe=S.left-le,$e=S.width+Oe,yt=Math.max($e,E.width),vt=window.innerWidth-Lt,Ln=ac(le,[Lt,Math.max(Lt,vt-yt)]);i.style.minWidth=$e+"px",i.style.left=Ln+"px"}else{const de=E.right-M.right,le=window.innerWidth-T.right-de,Oe=window.innerWidth-S.right-le,$e=S.width+Oe,yt=Math.max($e,E.width),vt=window.innerWidth-Lt,Ln=ac(le,[Lt,Math.max(Lt,vt-yt)]);i.style.minWidth=$e+"px",i.style.right=Ln+"px"}const D=p(),F=window.innerHeight-Lt*2,V=y.scrollHeight,q=window.getComputedStyle(d),ne=parseInt(q.borderTopWidth,10),U=parseInt(q.paddingTop,10),K=parseInt(q.borderBottomWidth,10),H=parseInt(q.paddingBottom,10),N=ne+U+V+H+K,ae=Math.min(v.offsetHeight*5,N),Ae=window.getComputedStyle(y),ye=parseInt(Ae.paddingTop,10),je=parseInt(Ae.paddingBottom,10),ke=S.top+S.height/2-Lt,Ze=F-ke,Se=v.offsetHeight/2,G=v.offsetTop+Se,se=ne+U+G,ce=N-se;if(se<=ke){const de=D.length>0&&v===D[D.length-1].ref.current;i.style.bottom="0px";const le=d.clientHeight-y.offsetTop-y.offsetHeight,Oe=Math.max(Ze,Se+(de?je:0)+le+K),$e=se+Oe;i.style.height=$e+"px"}else{const de=D.length>0&&v===D[0].ref.current;i.style.top="0px";const Oe=Math.max(ke,ne+y.offsetTop+(de?ye:0)+Se)+ce;i.style.height=Oe+"px",y.scrollTop=se-ke+y.offsetTop}i.style.margin=`${Lt}px 0`,i.style.minHeight=ae+"px",i.style.maxHeight=F+"px",r?.(),requestAnimationFrame(()=>h.current=!0)}},[p,s.trigger,s.valueNode,i,d,y,v,w,s.dir,r]);nt(()=>x(),[x]);const[C,_]=u.useState();nt(()=>{d&&_(window.getComputedStyle(d).zIndex)},[d]);const R=u.useCallback(S=>{S&&g.current===!0&&(x(),b?.(),g.current=!1)},[x,b]);return a.jsx(z4,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:h,onScrollButtonChange:R,children:a.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:a.jsx(X.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});oh.displayName=O4;var $4="SelectPopperPosition",dc=u.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Lt,...s}=e,l=Pi(n);return a.jsx(xi,{...l,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});dc.displayName=$4;var[z4,vu]=xo(hr,{}),fc="SelectViewport",sh=u.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=rr(fc,n),l=vu(fc,n),i=oe(t,s.onViewportChange),c=u.useRef(0);return a.jsxs(a.Fragment,{children:[a.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),a.jsx(Ai.Slot,{scope:n,children:a.jsx(X.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:O(o.onScroll,d=>{const f=d.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:p}=l;if(p?.current&&m){const h=Math.abs(c.current-f.scrollTop);if(h>0){const g=window.innerHeight-Lt*2,y=parseFloat(m.style.minHeight),v=parseFloat(m.style.height),w=Math.max(y,v);if(w<g){const b=w+h,x=Math.min(g,b),C=b-x;m.style.height=x+"px",m.style.bottom==="0px"&&(f.scrollTop=C>0?C:0,m.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});sh.displayName=fc;var lh="SelectGroup",[F4,B4]=xo(lh),ih=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=St();return a.jsx(F4,{scope:n,id:o,children:a.jsx(X.div,{role:"group","aria-labelledby":o,...r,ref:t})})});ih.displayName=lh;var ah="SelectLabel",q4=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=B4(ah,n);return a.jsx(X.div,{id:o.id,...r,ref:t})});q4.displayName=ah;var Gl="SelectItem",[W4,ch]=xo(Gl),uh=u.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...l}=e,i=nr(Gl,n),c=rr(Gl,n),d=i.value===r,[f,m]=u.useState(s??""),[p,h]=u.useState(!1),g=oe(t,b=>{var x;return(x=c.itemRefCallback)==null?void 0:x.call(c,b,r,o)}),y=St(),v=u.useRef("touch"),w=()=>{o||(i.onValueChange(r),i.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return a.jsx(W4,{scope:n,value:r,disabled:o,textId:y,isSelected:d,onItemTextChange:u.useCallback(b=>{m(x=>x||(b?.textContent??"").trim())},[]),children:a.jsx(Ai.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:a.jsx(X.div,{role:"option","aria-labelledby":y,"data-highlighted":p?"":void 0,"aria-selected":d&&p,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...l,ref:g,onFocus:O(l.onFocus,()=>h(!0)),onBlur:O(l.onBlur,()=>h(!1)),onClick:O(l.onClick,()=>{v.current!=="mouse"&&w()}),onPointerUp:O(l.onPointerUp,()=>{v.current==="mouse"&&w()}),onPointerDown:O(l.onPointerDown,b=>{v.current=b.pointerType}),onPointerMove:O(l.onPointerMove,b=>{var x;v.current=b.pointerType,o?(x=c.onItemLeave)==null||x.call(c):v.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:O(l.onPointerLeave,b=>{var x;b.currentTarget===document.activeElement&&((x=c.onItemLeave)==null||x.call(c))}),onKeyDown:O(l.onKeyDown,b=>{var x;((x=c.searchRef)==null?void 0:x.current)!==""&&b.key===" "||(j4.includes(b.key)&&w(),b.key===" "&&b.preventDefault())})})})})});uh.displayName=Gl;var Yo="SelectItemText",dh=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,l=nr(Yo,n),i=rr(Yo,n),c=ch(Yo,n),d=A4(Yo,n),[f,m]=u.useState(null),p=oe(t,w=>m(w),c.onItemTextChange,w=>{var b;return(b=i.itemTextRefCallback)==null?void 0:b.call(i,w,c.value,c.disabled)}),h=f?.textContent,g=u.useMemo(()=>a.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:y,onNativeOptionRemove:v}=d;return nt(()=>(y(g),()=>v(g)),[y,v,g]),a.jsxs(a.Fragment,{children:[a.jsx(X.span,{id:c.textId,...s,ref:p}),c.isSelected&&l.valueNode&&!l.valueNodeHasChildren?hn.createPortal(s.children,l.valueNode):null]})});dh.displayName=Yo;var fh="SelectItemIndicator",G4=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return ch(fh,n).isSelected?a.jsx(X.span,{"aria-hidden":!0,...r,ref:t}):null});G4.displayName=fh;var mc="SelectScrollUpButton",Y4=u.forwardRef((e,t)=>{const n=rr(mc,e.__scopeSelect),r=vu(mc,e.__scopeSelect),[o,s]=u.useState(!1),l=oe(t,r.onScrollButtonChange);return nt(()=>{if(n.viewport&&n.isPositioned){let i=function(){const d=c.scrollTop>0;s(d)};const c=n.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?a.jsx(mh,{...e,ref:l,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=n;i&&c&&(i.scrollTop=i.scrollTop-c.offsetHeight)}}):null});Y4.displayName=mc;var pc="SelectScrollDownButton",U4=u.forwardRef((e,t)=>{const n=rr(pc,e.__scopeSelect),r=vu(pc,e.__scopeSelect),[o,s]=u.useState(!1),l=oe(t,r.onScrollButtonChange);return nt(()=>{if(n.viewport&&n.isPositioned){let i=function(){const d=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<d;s(f)};const c=n.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?a.jsx(mh,{...e,ref:l,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=n;i&&c&&(i.scrollTop=i.scrollTop+c.offsetHeight)}}):null});U4.displayName=pc;var mh=u.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=rr("SelectScrollButton",n),l=u.useRef(null),i=Ii(n),c=u.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return u.useEffect(()=>()=>c(),[c]),nt(()=>{var d;const f=i().find(m=>m.ref.current===document.activeElement);(d=f?.ref.current)==null||d.scrollIntoView({block:"nearest"})},[i]),a.jsx(X.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:O(o.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:O(o.onPointerMove,()=>{var d;(d=s.onItemLeave)==null||d.call(s),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:O(o.onPointerLeave,()=>{c()})})}),V4="SelectSeparator",H4=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return a.jsx(X.div,{"aria-hidden":!0,...r,ref:t})});H4.displayName=V4;var hc="SelectArrow",Z4=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Pi(n),s=nr(hc,n),l=rr(hc,n);return s.open&&l.position==="popper"?a.jsx(Ci,{...o,...r,ref:t}):null});Z4.displayName=hc;function ph(e){return e===""||e===void 0}var hh=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=u.useRef(null),s=oe(t,o),l=Bv(n);return u.useEffect(()=>{const i=o.current,c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(l!==n&&f){const m=new Event("change",{bubbles:!0});f.call(i,n),i.dispatchEvent(m)}},[l,n]),a.jsx(iu,{asChild:!0,children:a.jsx("select",{...r,ref:s,defaultValue:n})})});hh.displayName="BubbleSelect";function gh(e){const t=qe(e),n=u.useRef(""),r=u.useRef(0),o=u.useCallback(l=>{const i=n.current+l;t(i),function c(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(i)},[t]),s=u.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return u.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function yh(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let l=X4(e,Math.max(s,0));o.length===1&&(l=l.filter(d=>d!==n));const c=l.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function X4(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var K4=Zp,Q4=Kp,J4=Jp,e6=eh,t6=th,n6=sh,r6=ih,o6=uh,s6=dh;const l6="default";function Di({value:e,placeholder:t,size:n=l6,icon:r,onChange:o,onKeyDown:s,hasClear:l=!1,customStyle:i}){const[c,d]=u.useState(!1),f=u.useRef(null),m=g=>{o(g.target.value)},p=()=>{d(!0)},h=g=>{f.current==null||g.relatedTarget!==f.current?d(!1):g.target.focus()};return a.jsxs("div",{...k.props(Oo.main,c&&Oo.focused,i6[n],i),children:[r&&a.jsx(te,{name:r,color:"secondary"}),a.jsx("input",{...k.props(z.body,Oo.input),value:e,placeholder:t,onChange:m,onFocus:p,onBlur:h,onKeyDown:s}),l&&a.jsx("button",{...k.props(z.supporting,Oo.actionButton,e===""&&Oo.hidden),ref:f,onClick:()=>o(""),tabIndex:0,children:"Clear"})]})}const Oo={main:{display:"mly78zum5",alignItems:"mly6s0dn4",justifyContent:"mly1nhvcw1",background:"mlyotlr4g",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,borderRadius:"mlyur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,border:"mly520xni",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,boxShadow:"mlyk1e6ed",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},focused:{borderColor:"mly1y5yj0f",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,boxShadow:"mlyg48p7p",$$css:!0},input:{flexGrow:"mly1iyjqo2",height:"mly1qx5ct2",minWidth:"mlygc0pbm",padding:"mly1717udv",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,background:"mly1md70p1",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,borderStyle:"mlyng3xce",borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,outline:"mly1a2a7pz",outlineColor:null,outlineOffset:null,outlineStyle:null,outlineWidth:null,"::placeholder_color":"mly1njml60",$$css:!0},actionButton:{display:"mly3nfvp2",borderWidth:"mlyc342km",borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,background:"mly1md70p1",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,padding:"mly1717udv",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,marginLeft:"mly1iog12x",marginInlineStart:null,marginInlineEnd:null,cursor:"mly1ypdohk",color:"mlykfrnou",$$css:!0},hidden:{visibility:"mlylshs6z",$$css:!0}},i6={default:{padding:"mly153ncpu",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0},compact:{padding:"mlydqdrvq",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0}};function Ni({value:e,onChange:t,icon:n,color:r=wo,size:o=gu,items:s,isSearchable:l=!1,customStyle:i}){var c;const[d,f]=u.useState(""),m=u.useMemo(()=>d?s.filter(g=>g.label.toLowerCase().includes(d.toLowerCase())):s,[s,d]),p=g=>{t(g)},h=(c=s.find(g=>g.value===e))==null?void 0:c.label;return a.jsxs(K4,{value:e,onValueChange:p,required:!0,children:[a.jsxs(Q4,{...k.props(Un.main,Ho.selectTrigger,pu[r],hu[o],i),children:[n&&a.jsx(te,{name:n,customStyle:Un.icon}),a.jsx(J4,{asChild:!0,children:a.jsx("div",{...k.props(z.body,Un.label),children:h})})]}),a.jsx(e6,{children:a.jsx(t6,{side:"bottom",position:"popper",sideOffset:4,children:a.jsxs(n6,{className:"mly4pepcl mlyotlr4g mly17fq3gk",children:[l&&a.jsx(Di,{value:d,onChange:g=>f(g),placeholder:"Search",size:"compact",icon:"search",hasClear:!0,customStyle:Ho.searchInput,onKeyDown:g=>{["ArrowUp","ArrowDown"].includes(g.key)||setTimeout(()=>{g.target.focus()},10)}}),a.jsx(r6,{className:"mly78zum5 mlydt5ytf mlyuyqlj2 mlyfawy5m mly195vfkc mlyysyzu8",children:m.map(g=>a.jsx(a6,{value:g.value,selectedValue:e,children:g.label},g.value))})]})})})]})}function a6({children:e,value:t,selectedValue:n,...r}){return a.jsxs(o6,{...k.props(z.body,Ho.selectItem),value:t,...r,children:[t===n?a.jsx(te,{name:"radioChecked",customStyle:Ho.radioChecked}):a.jsx(te,{name:"radioUnchecked",customStyle:Ho.radioUnchecked}),a.jsx(s6,{children:e})]})}const Ho={selectTrigger:{whiteSpace:"mlyuxw1ft",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",$$css:!0},selectItem:{display:"mly78zum5",alignItems:"mly6s0dn4",padding:"mlydqdrvq",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,gap:"mly167g77z",rowGap:null,columnGap:null,borderRadius:"mlyur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,cursor:"mly1ypdohk",outline:"mly1a2a7pz",outlineColor:null,outlineOffset:null,outlineStyle:null,outlineWidth:null,":is([data-highlighted])_background":"mly1bw6wve",":is([data-highlighted])_backgroundAttachment":null,":is([data-highlighted])_backgroundClip":null,":is([data-highlighted])_backgroundColor":null,":is([data-highlighted])_backgroundImage":null,":is([data-highlighted])_backgroundOrigin":null,":is([data-highlighted])_backgroundPosition":null,":is([data-highlighted])_backgroundPositionX":null,":is([data-highlighted])_backgroundPositionY":null,":is([data-highlighted])_backgroundRepeat":null,":is([data-highlighted])_backgroundSize":null,':is([data-state="checked"])_background':"mlyamyxth mlyejs3c0",':is([data-state="checked"])_backgroundAttachment':null,':is([data-state="checked"])_backgroundClip':null,':is([data-state="checked"])_backgroundColor':null,':is([data-state="checked"])_backgroundImage':null,':is([data-state="checked"])_backgroundOrigin':null,':is([data-state="checked"])_backgroundPosition':null,':is([data-state="checked"])_backgroundPositionX':null,':is([data-state="checked"])_backgroundPositionY':null,':is([data-state="checked"])_backgroundRepeat':null,':is([data-state="checked"])_backgroundSize':null,$$css:!0},radioChecked:{color:"mlykfrnou",$$css:!0},radioUnchecked:{color:"mlyj5j7qc",$$css:!0},searchInput:{borderRadius:"mly4pepcl",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0}};function c6({header:e,children:t,customStyle:n}){return a.jsxs("div",{...k.props(u6.container,n),children:[a.jsx("div",{className:"mly1717udv",children:e}),a.jsx("div",{className:"mly1y1aw1k mly1iyjqo2 mly78zum5",children:t})]})}const u6={container:{display:"mly78zum5",flexDirection:"mlydt5ytf",background:"mly17eh757",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,borderRadius:"mly4pepcl",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,borderStyle:"mly1y0btm7",borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderWidth:"mlymkeg23",borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderColor:"mly17v018m",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,padding:"mlyc7ga6q",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,flexShrink:"mly2lah0s",$$css:!0}};function bu({title:e,children:t,icon:n,defaultOpen:r=!0,controls:o,collapsedControls:s,isFocused:l=!1}){const[i,c]=u.useState(r);return a.jsxs("div",{...{0:{className:"mlygbc89k mly1sxf85j mly1717udv"},1:{className:"mly1sxf85j mly1717udv mlybwr872"}}[!!l<<0],children:[a.jsxs("div",{className:"mlyrvj5dj mly1mt1orb mly52fmzj mlylqzeqv mlyfawy5m mly167g77z mly6s0dn4",children:[a.jsxs("div",{className:"mlyrvj5dj mly1mt1orb mlylqzeqv mly6s0dn4 mly167g77z",children:[n&&a.jsx(te,{name:n,customStyle:d6.icon}),a.jsx("div",{className:"mlyuxw1ft mlyb3r6kr mlylyipyv mlyehqz9p mly1ghz6dp mly117nqv4",children:e})]}),a.jsxs("div",{className:"mly78zum5",children:[i?a.jsx("div",{className:"mly78zum5 mly6s0dn4 mly1jnr06f",children:o}):a.jsx("div",{className:"mly78zum5 mly6s0dn4 mly1jnr06f",children:s}),a.jsx(xe,{variant:"flat",size:"compact",onClick:()=>c(!i),icon:i?"chevronDown":"chevronRight",tooltip:i?"Collapse":"Expand"})]})]}),a.jsx("div",{...{0:{className:"mly1l4tkcb"},1:{className:"mly1l4tkcb mly1s85apg"}}[!i<<0],children:t})]})}const d6={icon:{$$css:!0}};function f6({label:e,sublabel:t,children:n,isInitiallyExpanded:r=!1}){const[o,s]=u.useState(r),l=()=>{s(i=>!i)};return a.jsxs("div",{children:[a.jsxs("div",{className:"mlyrvj5dj mly1mt1orb mly6s0dn4 mlylqzeqv mlye8ttls mly167g77z mlyur7f20 mly1ypdohk mly1haqvef",onClick:l,children:[o?a.jsx(te,{name:"chevronDown",color:"secondary"}):a.jsx(te,{name:"chevronRight",color:"secondary"}),a.jsxs("div",{className:"mly78zum5 mlydt5ytf mly1iyjqo2 mlyb3r6kr",children:[a.jsx("span",{...k.props(z.body,Sf.label),children:e}),t&&a.jsx("span",{...k.props(z.supporting,Sf.sublabel),children:t})]})]}),o&&a.jsx("div",{className:"mly78zum5 mlydt5ytf mly92jh8x mly1jnr06f",children:u.Children.map(n,i=>i)})]})}const Sf={label:{flexGrow:"mly1iyjqo2",fontWeight:"mly1xlr1w8",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",$$css:!0},sublabel:{flexGrow:"mly1iyjqo2",color:"mly9dwj6z",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",$$css:!0}},m6={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"}]}}},p6={single:"1em",double:"2em"},h6=({lineSpacing:e})=>({line(t){const n=[...Array.isArray(t.properties.style)?t.properties.style:typeof t.properties.style=="string"?[t.properties.style]:[]];n.push(`line-height: ${p6[e]};`),t.properties.style=n}}),g6=({showLineNumbers:e})=>{if(e)return{line(t,n){const r={type:"element",tagName:"span",children:[{type:"text",value:`${n}`}],properties:{style:["color: rgba(115, 138, 148, 0.4);","margin-right: 35px;","width: 1px;","display: inline-block;","user-select: none"]}};t.children.unshift(r)}}},y6=[h6,g6];function v6(e){return y6.map(t=>t(e)).filter(t=>t!==void 0)}let et=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function b6(e){return wu(e)}function wu(e){return Array.isArray(e)?w6(e):e instanceof RegExp?e:typeof e=="object"?x6(e):e}function w6(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=wu(e[n]);return t}function x6(e){let t={};for(let n in e)t[n]=wu(e[n]);return t}function vh(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function bh(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?bh(e.substring(0,e.length-1)):e.substr(~t+1)}var Sa=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,al=class{static hasCaptures(e){return e===null?!1:(Sa.lastIndex=0,Sa.test(e))}static replaceCaptures(e,t,n){return e.replace(Sa,(r,o,s,l)=>{let i=n[parseInt(o||s,10)];if(i){let c=t.substring(i.start,i.end);for(;c[0]===".";)c=c.substring(1);switch(l){case"downcase":return c.toLowerCase();case"upcase":return c.toUpperCase();default:return c}}else return r})}};function wh(e,t){return e<t?-1:e>t?1:0}function xh(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 s=wh(e[o],t[o]);if(s!==0)return s}return 0}return n-r}function Rf(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 Ch(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var _h=class{constructor(e){j(this,"cache",new Map),this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},Yl=class{constructor(e,t,n){j(this,"_cachedMatchRoot",new _h(r=>this._root.match(r))),this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(k6(e),t)}static createFromParsedTheme(e,t){return R6(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(o=>C6(e.parent,o.parentScopes));return r?new kh(r.fontStyle,r.foreground,r.background):null}},Ra=class jl{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new jl(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new jl(n,t[r]);return n}push(t){return new jl(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 C6(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&&!_6(e.scopeName,r);){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function _6(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var kh=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function k6(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let o=0,s=t.length;o<s;o++){let l=t[o];if(!l.settings)continue;let i;if(typeof l.scope=="string"){let m=l.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),i=m.split(",")}else Array.isArray(l.scope)?i=l.scope:i=[""];let c=-1;if(typeof l.settings.fontStyle=="string"){c=0;let m=l.settings.fontStyle.split(" ");for(let p=0,h=m.length;p<h;p++)switch(m[p]){case"italic":c=c|1;break;case"bold":c=c|2;break;case"underline":c=c|4;break;case"strikethrough":c=c|8;break}}let d=null;typeof l.settings.foreground=="string"&&Rf(l.settings.foreground)&&(d=l.settings.foreground);let f=null;typeof l.settings.background=="string"&&Rf(l.settings.background)&&(f=l.settings.background);for(let m=0,p=i.length;m<p;m++){let g=i[m].trim().split(" "),y=g[g.length-1],v=null;g.length>1&&(v=g.slice(0,g.length-1),v.reverse()),n[r++]=new S6(y,v,o,c,d,f)}}return n}var S6=class{constructor(e,t,n,r,o,s){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=o,this.background=s}},gn=(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))(gn||{});function R6(e,t){e.sort((c,d)=>{let f=wh(c.scope,d.scope);return f!==0||(f=xh(c.parentScopes,d.parentScopes),f!==0)?f:c.index-d.index});let n=0,r="#000000",o="#ffffff";for(;e.length>=1&&e[0].scope==="";){let c=e.shift();c.fontStyle!==-1&&(n=c.fontStyle),c.foreground!==null&&(r=c.foreground),c.background!==null&&(o=c.background)}let s=new E6(t),l=new kh(n,s.getId(r),s.getId(o)),i=new T6(new gc(0,null,-1,0,0),[]);for(let c=0,d=e.length;c<d;c++){let f=e[c];i.insert(0,f.scope,f.parentScopes,f.fontStyle,s.getId(f.foreground),s.getId(f.background))}return new Yl(s,l,i)}var E6=class{constructor(e){if(j(this,"_isFrozen"),j(this,"_lastColorId"),j(this,"_id2color"),j(this,"_color2id"),this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},j6=Object.freeze([]),gc=class Sh{constructor(t,n,r,o,s){j(this,"scopeDepth"),j(this,"parentScopes"),j(this,"fontStyle"),j(this,"foreground"),j(this,"background"),this.scopeDepth=t,this.parentScopes=n||j6,this.fontStyle=r,this.foreground=o,this.background=s}clone(){return new Sh(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)}},T6=class yc{constructor(t,n=[],r={}){j(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 s=n.parentScopes[o].length-t.parentScopes[r].length;if(s!==0)return s;r++,o++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),o,s;if(r===-1?(o=t,s=""):(o=t.substring(0,r),s=t.substring(r+1)),this._children.hasOwnProperty(o))return this._children[o].match(s)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(yc._cmpBySpecificity),n}insert(t,n,r,o,s,l){if(n===""){this._doInsertHere(t,r,o,s,l);return}let i=n.indexOf("."),c,d;i===-1?(c=n,d=""):(c=n.substring(0,i),d=n.substring(i+1));let f;this._children.hasOwnProperty(c)?f=this._children[c]:(f=new yc(this._mainRule.clone(),gc.cloneArr(this._rulesWithParentScopes)),this._children[c]=f),f.insert(t+1,d,r,o,s,l)}_doInsertHere(t,n,r,o,s){if(n===null){this._mainRule.acceptOverwrite(t,r,o,s);return}for(let l=0,i=this._rulesWithParentScopes.length;l<i;l++){let c=this._rulesWithParentScopes[l];if(xh(c.parentScopes,n)===0){c.acceptOverwrite(t,r,o,s);return}}r===-1&&(r=this._mainRule.fontStyle),o===0&&(o=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new gc(t,n,r,o,s))}},to=class wt{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=wt.getLanguageId(t),r=wt.getTokenType(t),o=wt.getFontStyle(t),s=wt.getForeground(t),l=wt.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:o,foreground:s,background:l})}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,s,l,i){let c=wt.getLanguageId(t),d=wt.getTokenType(t),f=wt.containsBalancedBrackets(t)?1:0,m=wt.getFontStyle(t),p=wt.getForeground(t),h=wt.getBackground(t);return n!==0&&(c=n),r!==8&&(d=r),o!==null&&(f=o?1:0),s!==-1&&(m=s),l!==0&&(p=l),i!==0&&(h=i),(c<<0|d<<8|f<<10|m<<11|p<<15|h<<24)>>>0}};function Ul(e,t){const n=[],r=L6(e);let o=r.next();for(;o!==null;){let c=0;if(o.length===2&&o.charAt(1)===":"){switch(o.charAt(0)){case"R":c=1;break;case"L":c=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=r.next()}let d=l();if(n.push({matcher:d,priority:c}),o!==",")break;o=r.next()}return n;function s(){if(o==="-"){o=r.next();const c=s();return d=>!!c&&!c(d)}if(o==="("){o=r.next();const c=i();return o===")"&&(o=r.next()),c}if(Ef(o)){const c=[];do c.push(o),o=r.next();while(Ef(o));return d=>t(c,d)}return null}function l(){const c=[];let d=s();for(;d;)c.push(d),d=s();return f=>c.every(m=>m(f))}function i(){const c=[];let d=l();for(;d&&(c.push(d),o==="|"||o===",");){do o=r.next();while(o==="|"||o===",");d=l()}return f=>c.some(m=>m(f))}}function Ef(e){return!!e&&!!e.match(/[\w\.:]+/)}function L6(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 Rh(e){typeof e.dispose=="function"&&e.dispose()}var as=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},M6=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},A6=class{constructor(){j(this,"_references",[]),j(this,"_seenReferenceKeys",new Set),j(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},I6=class{constructor(e,t){j(this,"seenFullScopeRequests",new Set),j(this,"seenPartialScopeRequests",new Set),j(this,"Q"),this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new as(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new A6;for(const n of e)P6(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof as){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function P6(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 s=n.lookup(t);e instanceof as?Tl({baseGrammar:s,selfGrammar:o},r):vc(e.ruleName,{baseGrammar:s,selfGrammar:o,repository:o.repository},r);const l=n.injections(e.scopeName);if(l)for(const i of l)r.add(new as(i))}function vc(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];Vl([r],t,n)}}function Tl(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Vl(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Vl(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Vl(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const o=r.repository?vh({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Vl(r.patterns,{...t,repository:o},n);const s=r.include;if(!s)continue;const l=Eh(s);switch(l.kind){case 0:Tl({...t,selfGrammar:t.baseGrammar},n);break;case 1:Tl(t,n);break;case 2:vc(l.ruleName,{...t,repository:o},n);break;case 3:case 4:const i=l.scopeName===t.selfGrammar.scopeName?t.selfGrammar:l.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(i){const c={baseGrammar:t.baseGrammar,selfGrammar:i,repository:o};l.kind===4?vc(l.ruleName,c,n):Tl(c,n)}else l.kind===4?n.add(new M6(l.scopeName,l.ruleName)):n.add(new as(l.scopeName));break}}}var D6=class{constructor(){j(this,"kind",0)}},N6=class{constructor(){j(this,"kind",1)}},O6=class{constructor(e){j(this,"kind",2),this.ruleName=e}},$6=class{constructor(e){j(this,"kind",3),this.scopeName=e}},z6=class{constructor(e,t){j(this,"kind",4),this.scopeName=e,this.ruleName=t}};function Eh(e){if(e==="$base")return new D6;if(e==="$self")return new N6;const t=e.indexOf("#");if(t===-1)return new $6(e);if(t===0)return new O6(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new z6(n,r)}}var F6=/\\(\d+)/,jf=/\\(\d+)/g,B6=-1,jh=-2;var Ps=class{constructor(e,t,n,r){j(this,"$location"),j(this,"id"),j(this,"_nameIsCapturing"),j(this,"_name"),j(this,"_contentNameIsCapturing"),j(this,"_contentName"),this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=al.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=al.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${bh(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:al.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:al.replaceCaptures(this._contentName,e,t)}},q6=class extends Ps{constructor(e,t,n,r,o){super(e,t,n,r),j(this,"retokenizeCapturedWithRuleId"),this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}},W6=class extends Ps{constructor(e,t,n,r,o){super(e,t,n,null),j(this,"_match"),j(this,"captures"),j(this,"_cachedCompiledPatterns"),this._match=new cs(r,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new us,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Tf=class extends Ps{constructor(e,t,n,r,o){super(e,t,n,r),j(this,"hasMissingPatterns"),j(this,"patterns"),j(this,"_cachedCompiledPatterns"),this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new us,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},bc=class extends Ps{constructor(e,t,n,r,o,s,l,i,c,d){super(e,t,n,r),j(this,"_begin"),j(this,"beginCaptures"),j(this,"_end"),j(this,"endHasBackReferences"),j(this,"endCaptures"),j(this,"applyEndPatternLast"),j(this,"hasMissingPatterns"),j(this,"patterns"),j(this,"_cachedCompiledPatterns"),this._begin=new cs(o,this.id),this.beginCaptures=s,this._end=new cs(l||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=c||!1,this.patterns=d.patterns,this.hasMissingPatterns=d.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(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new us;for(const n of this.patterns)e.getRule(n).collectPatterns(e,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,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},Hl=class extends Ps{constructor(e,t,n,r,o,s,l,i,c){super(e,t,n,r),j(this,"_begin"),j(this,"beginCaptures"),j(this,"whileCaptures"),j(this,"_while"),j(this,"whileHasBackReferences"),j(this,"hasMissingPatterns"),j(this,"patterns"),j(this,"_cachedCompiledPatterns"),j(this,"_cachedCompiledWhilePatterns"),this._begin=new cs(o,this.id),this.beginCaptures=s,this.whileCaptures=i,this._while=new cs(l,jh),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.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(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new us;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new us,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},Th=class Ke{static createCaptureRule(t,n,r,o,s){return t.registerRule(l=>new q6(n,l,r,o,s))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(o=>{if(t.id=o,t.match)return new W6(t.$vscodeTextmateLocation,t.id,t.name,t.match,Ke._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=vh({},r,t.repository));let s=t.patterns;return typeof s>"u"&&t.include&&(s=[{include:t.include}]),new Tf(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Ke._compilePatterns(s,n,r))}return t.while?new Hl(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Ke._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Ke._compileCaptures(t.whileCaptures||t.captures,n,r),Ke._compilePatterns(t.patterns,n,r)):new bc(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Ke._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Ke._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Ke._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let o=[];if(t){let s=0;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const i=parseInt(l,10);i>s&&(s=i)}for(let l=0;l<=s;l++)o[l]=null;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const i=parseInt(l,10);let c=0;t[l].patterns&&(c=Ke.getCompiledRuleId(t[l],n,r)),o[i]=Ke.createCaptureRule(n,t[l].$vscodeTextmateLocation,t[l].name,t[l].contentName,c)}}return o}static _compilePatterns(t,n,r){let o=[];if(t)for(let s=0,l=t.length;s<l;s++){const i=t[s];let c=-1;if(i.include){const d=Eh(i.include);switch(d.kind){case 0:case 1:c=Ke.getCompiledRuleId(r[i.include],n,r);break;case 2:let f=r[d.ruleName];f&&(c=Ke.getCompiledRuleId(f,n,r));break;case 3:case 4:const m=d.scopeName,p=d.kind===4?d.ruleName:null,h=n.getExternalGrammar(m,r);if(h)if(p){let g=h.repository[p];g&&(c=Ke.getCompiledRuleId(g,n,h.repository))}else c=Ke.getCompiledRuleId(h.repository.$self,n,h.repository);break}}else c=Ke.getCompiledRuleId(i,n,r);if(c!==-1){const d=n.getRule(c);let f=!1;if((d instanceof Tf||d instanceof bc||d instanceof Hl)&&d.hasMissingPatterns&&d.patterns.length===0&&(f=!0),f)continue;o.push(c)}}return{patterns:o,hasMissingPatterns:(t?t.length:0)!==o.length}}},cs=class Lh{constructor(t,n){if(j(this,"source"),j(this,"ruleId"),j(this,"hasAnchor"),j(this,"hasBackReferences"),j(this,"_anchorCache"),t&&typeof t=="string"){const r=t.length;let o=0,s=[],l=!1;for(let i=0;i<r;i++)if(t.charAt(i)==="\\"&&i+1<r){const d=t.charAt(i+1);d==="z"?(s.push(t.substring(o,i)),s.push("$(?!\\n)(?<!\\n)"),o=i+2):(d==="A"||d==="G")&&(l=!0),i++}this.hasAnchor=l,o===0?this.source=t:(s.push(t.substring(o,r)),this.source=s.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=F6.test(this.source):this.hasBackReferences=!1}clone(){return new Lh(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 jf.lastIndex=0,this.source.replace(jf,(o,s)=>Ch(r[parseInt(s,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=[],s,l,i,c;for(s=0,l=this.source.length;s<l;s++)i=this.source.charAt(s),t[s]=i,n[s]=i,r[s]=i,o[s]=i,i==="\\"&&s+1<l&&(c=this.source.charAt(s+1),c==="A"?(t[s+1]="￿",n[s+1]="￿",r[s+1]="A",o[s+1]="A"):c==="G"?(t[s+1]="￿",n[s+1]="G",r[s+1]="￿",o[s+1]="G"):(t[s+1]=c,n[s+1]=c,r[s+1]=c,o[s+1]=c),s++);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}},us=class{constructor(){j(this,"_items"),j(this,"_hasAnchors"),j(this,"_cached"),j(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(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new Lf(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(o=>o.resolveAnchors(t,n));return new Lf(e,r,this._items.map(o=>o.ruleId))}},Lf=class{constructor(e,t,n){j(this,"scanner"),this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
42
- `)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Ea=class{constructor(e,t){this.languageId=e,this.tokenType=t}},G6=(jr=class{constructor(e,t){j(this,"_defaultAttributes"),j(this,"_embeddedLanguagesMatcher"),j(this,"_getBasicScopeAttributes",new _h(n=>{const r=this._scopeToLanguage(n),o=this._toStandardTokenType(n);return new Ea(r,o)})),this._defaultAttributes=new Ea(e,8),this._embeddedLanguagesMatcher=new Y6(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?jr._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(jr.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[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!")}},j(jr,"_NULL_SCOPE_METADATA",new Ea(0,0)),j(jr,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),jr),Y6=class{constructor(e){if(j(this,"values"),j(this,"scopesRegExp"),e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>Ch(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},Mf=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Mh(e,t,n,r,o,s,l,i){const c=t.content.length;let d=!1,f=-1;if(l){const h=U6(e,t,n,r,o,s);o=h.stack,r=h.linePos,n=h.isFirstLine,f=h.anchorPosition}const m=Date.now();for(;!d;){if(i!==0&&Date.now()-m>i)return new Mf(o,!0);p()}return new Mf(o,!1);function p(){const h=V6(e,t,n,r,o,f);if(!h){s.produce(o,c),d=!0;return}const g=h.captureIndices,y=h.matchedRuleId,v=g&&g.length>0?g[0].end>r:!1;if(y===B6){const w=o.getRule(e);s.produce(o,g[0].start),o=o.withContentNameScopesList(o.nameScopesList),Uo(e,t,n,o,s,w.endCaptures,g),s.produce(o,g[0].end);const b=o;if(o=o.parent,f=b.getAnchorPos(),!v&&b.getEnterPos()===r){o=b,s.produce(o,c),d=!0;return}}else{const w=e.getRule(y);s.produce(o,g[0].start);const b=o,x=w.getName(t.content,g),C=o.contentNameScopesList.pushAttributed(x,e);if(o=o.push(y,r,f,g[0].end===c,null,C,C),w instanceof bc){const _=w;Uo(e,t,n,o,s,_.beginCaptures,g),s.produce(o,g[0].end),f=g[0].end;const R=_.getContentName(t.content,g),S=C.pushAttributed(R,e);if(o=o.withContentNameScopesList(S),_.endHasBackReferences&&(o=o.withEndRule(_.getEndWithResolvedBackReferences(t.content,g))),!v&&b.hasSameRuleAs(o)){o=o.pop(),s.produce(o,c),d=!0;return}}else if(w instanceof Hl){const _=w;Uo(e,t,n,o,s,_.beginCaptures,g),s.produce(o,g[0].end),f=g[0].end;const R=_.getContentName(t.content,g),S=C.pushAttributed(R,e);if(o=o.withContentNameScopesList(S),_.whileHasBackReferences&&(o=o.withEndRule(_.getWhileWithResolvedBackReferences(t.content,g))),!v&&b.hasSameRuleAs(o)){o=o.pop(),s.produce(o,c),d=!0;return}}else if(Uo(e,t,n,o,s,w.captures,g),s.produce(o,g[0].end),o=o.pop(),!v){o=o.safePop(),s.produce(o,c),d=!0;return}}g[0].end>r&&(r=g[0].end,n=!1)}}function U6(e,t,n,r,o,s){let l=o.beginRuleCapturedEOL?0:-1;const i=[];for(let c=o;c;c=c.pop()){const d=c.getRule(e);d instanceof Hl&&i.push({rule:d,stack:c})}for(let c=i.pop();c;c=i.pop()){const{ruleScanner:d,findOptions:f}=X6(c.rule,e,c.stack.endRule,n,r===l),m=d.findNextMatchSync(t,r,f);if(m){if(m.ruleId!==jh){o=c.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(s.produce(c.stack,m.captureIndices[0].start),Uo(e,t,n,c.stack,s,c.rule.whileCaptures,m.captureIndices),s.produce(c.stack,m.captureIndices[0].end),l=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,n=!1))}else{o=c.stack.pop();break}}return{stack:o,linePos:r,anchorPosition:l,isFirstLine:n}}function V6(e,t,n,r,o,s){const l=H6(e,t,n,r,o,s),i=e.getInjections();if(i.length===0)return l;const c=Z6(i,e,t,n,r,o,s);if(!c)return l;if(!l)return c;const d=l.captureIndices[0].start,f=c.captureIndices[0].start;return f<d||c.priorityMatch&&f===d?c:l}function H6(e,t,n,r,o,s){const l=o.getRule(e),{ruleScanner:i,findOptions:c}=Ah(l,e,o.endRule,n,r===s),d=i.findNextMatchSync(t,r,c);return d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}function Z6(e,t,n,r,o,s,l){let i=Number.MAX_VALUE,c=null,d,f=0;const m=s.contentNameScopesList.getScopeNames();for(let p=0,h=e.length;p<h;p++){const g=e[p];if(!g.matcher(m))continue;const y=t.getRule(g.ruleId),{ruleScanner:v,findOptions:w}=Ah(y,t,null,r,o===l),b=v.findNextMatchSync(n,o,w);if(!b)continue;const x=b.captureIndices[0].start;if(!(x>=i)&&(i=x,c=b.captureIndices,d=b.ruleId,f=g.priority,i===o))break}return c?{priorityMatch:f===-1,captureIndices:c,matchedRuleId:d}:null}function Ah(e,t,n,r,o){return{ruleScanner:e.compileAG(t,n,r,o),findOptions:0}}function X6(e,t,n,r,o){return{ruleScanner:e.compileWhileAG(t,n,r,o),findOptions:0}}function Uo(e,t,n,r,o,s,l){if(s.length===0)return;const i=t.content,c=Math.min(s.length,l.length),d=[],f=l[0].end;for(let m=0;m<c;m++){const p=s[m];if(p===null)continue;const h=l[m];if(h.length===0)continue;if(h.start>f)break;for(;d.length>0&&d[d.length-1].endPos<=h.start;)o.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?o.produceFromScopes(d[d.length-1].scopes,h.start):o.produce(r,h.start),p.retokenizeCapturedWithRuleId){const y=p.getName(i,l),v=r.contentNameScopesList.pushAttributed(y,e),w=p.getContentName(i,l),b=v.pushAttributed(w,e),x=r.push(p.retokenizeCapturedWithRuleId,h.start,-1,!1,null,v,b),C=e.createOnigString(i.substring(0,h.end));Mh(e,C,n&&h.start===0,h.start,x,o,!1,0),Rh(C);continue}const g=p.getName(i,l);if(g!==null){const v=(d.length>0?d[d.length-1].scopes:r.contentNameScopesList).pushAttributed(g,e);d.push(new K6(v,h.end))}}for(;d.length>0;)o.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}var K6=class{constructor(e,t){j(this,"scopes"),j(this,"endPos"),this.scopes=e,this.endPos=t}};function Q6(e,t,n,r,o,s,l,i){return new eb(e,t,n,r,o,s,l,i)}function Af(e,t,n,r,o){const s=Ul(t,Zl),l=Th.getCompiledRuleId(n,r,o.repository);for(const i of s)e.push({debugSelector:t,matcher:i.matcher,ruleId:l,grammar:o,priority:i.priority})}function Zl(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(J6(t[o],r))return n=o+1,!0;return!1})}function J6(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 eb=class{constructor(e,t,n,r,o,s,l,i){if(j(this,"_rootId"),j(this,"_lastRuleId"),j(this,"_ruleId2desc"),j(this,"_includedGrammars"),j(this,"_grammarRepository"),j(this,"_grammar"),j(this,"_injections"),j(this,"_basicScopeAttributesProvider"),j(this,"_tokenTypeMatchers"),this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=i,this._basicScopeAttributesProvider=new G6(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=If(t,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const c of Object.keys(o)){const d=Ul(c,Zl);for(const f of d)this._tokenTypeMatchers.push({matcher:f.matcher,type:o[c]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:o=>o===this._rootScopeName?this._grammar:this.getExternalGrammar(o),injections:o=>this._grammarRepository.injections(o)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const o=r.injections;if(o)for(let l in o)Af(t,l,o[l],this,r);const s=this._grammarRepository.injections(n);s&&s.forEach(l=>{const i=this.getExternalGrammar(l);if(i){const c=i.injectionSelector;c&&Af(t,c,i,this,i)}})}return t.sort((o,s)=>o.priority-s.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=If(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=Th.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let o;if(!t||t===wc.NULL){o=!0;const d=this._basicScopeAttributesProvider.getDefaultAttributes(),f=this.themeProvider.getDefaults(),m=to.set(0,d.languageId,d.tokenType,null,f.fontStyle,f.foregroundId,f.backgroundId),p=this.getRule(this._rootId).getName(null,null);let h;p?h=Zo.createRootAndLookUpScopeName(p,m,this):h=Zo.createRoot("unknown",m),t=new wc(null,this._rootId,-1,-1,!1,null,h,h)}else o=!1,t.reset();e=e+`
43
- `;const s=this.createOnigString(e),l=s.content.length,i=new nb(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=Mh(this,s,o,0,t,i,!0,r);return Rh(s),{lineLength:l,lineTokens:i,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function If(e,t){return e=b6(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 Zo=class Vt{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 s of n)o=Ra.push(o,s.scopeNames),r=new Vt(r,o,s.encodedTokenAttributes);return r}static createRoot(t,n){return new Vt(null,new Ra(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const o=r.getMetadataForScope(t),s=new Ra(null,t),l=r.themeProvider.themeMatch(s),i=Vt.mergeAttributes(n,o,l);return new Vt(null,s,i)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Vt.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,s=0,l=0;return r!==null&&(o=r.fontStyle,s=r.foregroundId,l=r.backgroundId),to.set(t,n.languageId,n.tokenType,null,o,s,l)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Vt._pushAttributed(this,t,n);const r=t.split(/ /g);let o=this;for(const s of r)o=Vt._pushAttributed(o,s,n);return o}static _pushAttributed(t,n,r){const o=r.getMetadataForScope(n),s=t.scopePath.push(n),l=r.themeProvider.themeMatch(s),i=Vt.mergeAttributes(t.tokenAttributes,o,l);return new Vt(t,s,i)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var n;const r=[];let o=this;for(;o&&o!==t;)r.push({encodedTokenAttributes:o.tokenAttributes,scopeNames:o.scopePath.getExtensionIfDefined(((n=o.parent)==null?void 0:n.scopePath)??null)}),o=o.parent;return o===t?r.reverse():void 0}},wc=(cn=class{constructor(e,t,n,r,o,s,l,i){j(this,"_stackElementBrand"),j(this,"_enterPos"),j(this,"_anchorPos"),j(this,"depth"),this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=o,this.endRule=s,this.nameScopesList=l,this.contentNameScopesList=i,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}equals(e){return e===null?!1:cn._equals(this,e)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?Zo.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){cn._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,r,o,s,l){return new cn(this,e,t,n,r,o,s,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){var n,r;return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${(n=this.nameScopesList)==null?void 0:n.toString()}, ${(r=this.contentNameScopesList)==null?void 0:r.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new cn(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){var e,t,n;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((t=this.nameScopesList)==null?void 0:t.getExtensionIfDefined(((e=this.parent)==null?void 0:e.nameScopesList)??null))??[],contentNameScopesList:((n=this.contentNameScopesList)==null?void 0:n.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,t){const n=Zo.fromExtension(e?.nameScopesList??null,t.nameScopesList);return new cn(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,n,Zo.fromExtension(n,t.contentNameScopesList))}},j(cn,"NULL",new cn(null,0,0,0,!1,null,null,null)),cn),tb=class{constructor(e,t){j(this,"balancedBracketScopes"),j(this,"unbalancedBracketScopes"),j(this,"allowAny",!1),this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Ul(n,Zl).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>Ul(n,Zl).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},nb=class{constructor(e,t,n,r){j(this,"_emitBinaryTokens"),j(this,"_lineText"),j(this,"_tokens"),j(this,"_binaryTokens"),j(this,"_lastTokenEndIndex"),j(this,"_tokenTypeOverrides"),this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var n;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let o=e?.tokenAttributes??0,s=!1;if((n=this.balancedBracketSelectors)!=null&&n.matchesAlways&&(s=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const l=e?.getScopeNames()??[];for(const i of this._tokenTypeOverrides)i.matcher(l)&&(o=to.set(o,0,i.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(l))}if(s&&(o=to.set(o,0,8,s,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===o){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(o),this._lastTokenEndIndex=t;return}const r=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,o=this._binaryTokens.length;r<o;r++)n[r]=this._binaryTokens[r];return n}},rb=class{constructor(e,t){j(this,"_grammars",new Map),j(this,"_rawGrammars",new Map),j(this,"_injectionGrammars",new Map),j(this,"_theme"),this._onigLib=t,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,o){if(!this._grammars.has(e)){let s=this._rawGrammars.get(e);if(!s)return null;this._grammars.set(e,Q6(e,s,t,n,r,o,this,this._onigLib))}return this._grammars.get(e)}},ob=class{constructor(t){j(this,"_options"),j(this,"_syncRegistry"),j(this,"_ensureGrammarCache"),this._options=t,this._syncRegistry=new rb(Yl.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Yl.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 tb(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,o,s){const l=new I6(this._syncRegistry,t);for(;l.Q.length>0;)l.Q.map(i=>this._loadSingleGrammar(i.scopeName)),l.processQueue();return this._grammarForScopeName(t,n,r,o,s)}_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,s=null){return this._syncRegistry.grammarForScopeName(t,n,r,o,s)}},xc=wc.NULL;const sb=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Ds{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Ds.prototype.normal={};Ds.prototype.property={};Ds.prototype.space=void 0;function Ih(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new Ds(n,r,t)}function Cc(e){return e.toLowerCase()}class it{constructor(t,n){this.attribute=n,this.property=t}}it.prototype.attribute="";it.prototype.booleanish=!1;it.prototype.boolean=!1;it.prototype.commaOrSpaceSeparated=!1;it.prototype.commaSeparated=!1;it.prototype.defined=!1;it.prototype.mustUseProperty=!1;it.prototype.number=!1;it.prototype.overloadedBoolean=!1;it.prototype.property="";it.prototype.spaceSeparated=!1;it.prototype.space=void 0;let lb=0;const J=br(),ze=br(),Ph=br(),P=br(),Ce=br(),Ur=br(),mt=br();function br(){return 2**++lb}const _c=Object.freeze(Object.defineProperty({__proto__:null,boolean:J,booleanish:ze,commaOrSpaceSeparated:mt,commaSeparated:Ur,number:P,overloadedBoolean:Ph,spaceSeparated:Ce},Symbol.toStringTag,{value:"Module"})),ja=Object.keys(_c);class xu extends it{constructor(t,n,r,o){let s=-1;if(super(t,n),Pf(this,"space",o),typeof r=="number")for(;++s<ja.length;){const l=ja[s];Pf(this,ja[s],(r&_c[l])===_c[l])}}}xu.prototype.defined=!0;function Pf(e,t,n){n&&(e[t]=n)}function Co(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const s=new xu(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[Cc(r)]=r,n[Cc(s.attribute)]=r}return new Ds(t,n,e.space)}const Dh=Co({properties:{ariaActiveDescendant:null,ariaAtomic:ze,ariaAutoComplete:null,ariaBusy:ze,ariaChecked:ze,ariaColCount:P,ariaColIndex:P,ariaColSpan:P,ariaControls:Ce,ariaCurrent:null,ariaDescribedBy:Ce,ariaDetails:null,ariaDisabled:ze,ariaDropEffect:Ce,ariaErrorMessage:null,ariaExpanded:ze,ariaFlowTo:Ce,ariaGrabbed:ze,ariaHasPopup:null,ariaHidden:ze,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ce,ariaLevel:P,ariaLive:null,ariaModal:ze,ariaMultiLine:ze,ariaMultiSelectable:ze,ariaOrientation:null,ariaOwns:Ce,ariaPlaceholder:null,ariaPosInSet:P,ariaPressed:ze,ariaReadOnly:ze,ariaRelevant:null,ariaRequired:ze,ariaRoleDescription:Ce,ariaRowCount:P,ariaRowIndex:P,ariaRowSpan:P,ariaSelected:ze,ariaSetSize:P,ariaSort:null,ariaValueMax:P,ariaValueMin:P,ariaValueNow:P,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Nh(e,t){return t in e?e[t]:t}function Oh(e,t){return Nh(e,t.toLowerCase())}const ib=Co({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ur,acceptCharset:Ce,accessKey:Ce,action:null,allow:null,allowFullScreen:J,allowPaymentRequest:J,allowUserMedia:J,alt:null,as:null,async:J,autoCapitalize:null,autoComplete:Ce,autoFocus:J,autoPlay:J,blocking:Ce,capture:null,charSet:null,checked:J,cite:null,className:Ce,cols:P,colSpan:null,content:null,contentEditable:ze,controls:J,controlsList:Ce,coords:P|Ur,crossOrigin:null,data:null,dateTime:null,decoding:null,default:J,defer:J,dir:null,dirName:null,disabled:J,download:Ph,draggable:ze,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:J,formTarget:null,headers:Ce,height:P,hidden:J,high:P,href:null,hrefLang:null,htmlFor:Ce,httpEquiv:Ce,id:null,imageSizes:null,imageSrcSet:null,inert:J,inputMode:null,integrity:null,is:null,isMap:J,itemId:null,itemProp:Ce,itemRef:Ce,itemScope:J,itemType:Ce,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:J,low:P,manifest:null,max:null,maxLength:P,media:null,method:null,min:null,minLength:P,multiple:J,muted:J,name:null,nonce:null,noModule:J,noValidate:J,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:J,optimum:P,pattern:null,ping:Ce,placeholder:null,playsInline:J,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:J,referrerPolicy:null,rel:Ce,required:J,reversed:J,rows:P,rowSpan:P,sandbox:Ce,scope:null,scoped:J,seamless:J,selected:J,shadowRootClonable:J,shadowRootDelegatesFocus:J,shadowRootMode:null,shape:null,size:P,sizes:null,slot:null,span:P,spellCheck:ze,src:null,srcDoc:null,srcLang:null,srcSet:null,start:P,step:null,style:null,tabIndex:P,target:null,title:null,translate:null,type:null,typeMustMatch:J,useMap:null,value:ze,width:P,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ce,axis:null,background:null,bgColor:null,border:P,borderColor:null,bottomMargin:P,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:J,declare:J,event:null,face:null,frame:null,frameBorder:null,hSpace:P,leftMargin:P,link:null,longDesc:null,lowSrc:null,marginHeight:P,marginWidth:P,noResize:J,noHref:J,noShade:J,noWrap:J,object:null,profile:null,prompt:null,rev:null,rightMargin:P,rules:null,scheme:null,scrolling:ze,standby:null,summary:null,text:null,topMargin:P,valueType:null,version:null,vAlign:null,vLink:null,vSpace:P,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:J,disableRemotePlayback:J,prefix:null,property:null,results:P,security:null,unselectable:null},space:"html",transform:Oh}),ab=Co({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:mt,accentHeight:P,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:P,amplitude:P,arabicForm:null,ascent:P,attributeName:null,attributeType:null,azimuth:P,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:P,by:null,calcMode:null,capHeight:P,className:Ce,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:P,diffuseConstant:P,direction:null,display:null,dur:null,divisor:P,dominantBaseline:null,download:J,dx:null,dy:null,edgeMode:null,editable:null,elevation:P,enableBackground:null,end:null,event:null,exponent:P,externalResourcesRequired:null,fill:null,fillOpacity:P,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:Ur,g2:Ur,glyphName:Ur,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:P,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:P,horizOriginX:P,horizOriginY:P,id:null,ideographic:P,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:P,k:P,k1:P,k2:P,k3:P,k4:P,kernelMatrix:mt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:P,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:P,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:P,overlineThickness:P,paintOrder:null,panose1:null,path:null,pathLength:P,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ce,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:P,pointsAtY:P,pointsAtZ:P,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:mt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:mt,rev:mt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:mt,requiredFeatures:mt,requiredFonts:mt,requiredFormats:mt,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:P,specularExponent:P,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:P,strikethroughThickness:P,string:null,stroke:null,strokeDashArray:mt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:P,strokeOpacity:P,strokeWidth:null,style:null,surfaceScale:P,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:mt,tabIndex:P,tableValues:null,target:null,targetX:P,targetY:P,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:mt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:P,underlineThickness:P,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:P,values:null,vAlphabetic:P,vMathematical:P,vectorEffect:null,vHanging:P,vIdeographic:P,version:null,vertAdvY:P,vertOriginX:P,vertOriginY:P,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:P,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Nh}),$h=Co({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()}}),zh=Co({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Oh}),Fh=Co({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),cb=/[A-Z]/g,Df=/-[a-z]/g,ub=/^data[-\w.:]+$/i;function db(e,t){const n=Cc(t);let r=t,o=it;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&ub.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(Df,mb);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!Df.test(s)){let l=s.replace(cb,fb);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}o=xu}return new o(r,t)}function fb(e){return"-"+e.toLowerCase()}function mb(e){return e.charAt(1).toUpperCase()}const pb=Ih([Dh,ib,$h,zh,Fh],"html"),Bh=Ih([Dh,ab,$h,zh,Fh],"svg"),Nf={}.hasOwnProperty;function hb(e,t){const n=t||{};function r(o,...s){let l=r.invalid;const i=r.handlers;if(o&&Nf.call(o,e)){const c=String(o[e]);l=Nf.call(i,c)?i[c]:r.unknown}if(l)return l.call(this,o,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const gb=/["&'<>`]/g,yb=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,vb=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,bb=/[|\\{}()[\]^$+*?.]/g,Of=new WeakMap;function wb(e,t){if(e=e.replace(t.subset?xb(t.subset):gb,r),t.subset||t.escapeOnly)return e;return e.replace(yb,n).replace(vb,r);function n(o,s,l){return t.format((o.charCodeAt(0)-55296)*1024+o.charCodeAt(1)-56320+65536,l.charCodeAt(s+2),t)}function r(o,s,l){return t.format(o.charCodeAt(0),l.charCodeAt(s+1),t)}}function xb(e){let t=Of.get(e);return t||(t=Cb(e),Of.set(e,t)),t}function Cb(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(bb,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const _b=/[\dA-Fa-f]/;function kb(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!_b.test(String.fromCharCode(t))?r:r+";"}const Sb=/\d/;function Rb(e,t,n){const r="&#"+String(e);return n&&t&&!Sb.test(String.fromCharCode(t))?r:r+";"}const Eb=["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"],Ta={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:"€"},jb=["cent","copy","divide","gt","lt","not","para","times"],qh={}.hasOwnProperty,kc={};let cl;for(cl in Ta)qh.call(Ta,cl)&&(kc[Ta[cl]]=cl);const Tb=/[^\dA-Za-z]/;function Lb(e,t,n,r){const o=String.fromCharCode(e);if(qh.call(kc,o)){const s=kc[o],l="&"+s;return n&&Eb.includes(s)&&!jb.includes(s)&&(!r||t&&t!==61&&Tb.test(String.fromCharCode(t)))?l:l+";"}return""}function Mb(e,t,n){let r=kb(e,t,n.omitOptionalSemicolons),o;if((n.useNamedReferences||n.useShortestReferences)&&(o=Lb(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!o)&&n.useShortestReferences){const s=Rb(e,t,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return o&&(!n.useShortestReferences||o.length<r.length)?o:r}function Vr(e,t){return wb(e,Object.assign({format:Mb},t))}const Ab=/^>|^->|<!--|-->|--!>|<!-$/g,Ib=[">"],Pb=["<",">"];function Db(e,t,n,r){return r.settings.bogusComments?"<?"+Vr(e.value,Object.assign({},r.settings.characterReferences,{subset:Ib}))+">":"<!--"+e.value.replace(Ab,o)+"-->";function o(s){return Vr(s,Object.assign({},r.settings.characterReferences,{subset:Pb}))}}function Nb(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function $f(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 Ob(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function $b(e){return e.join(" ").trim()}const zb=/[ \t\n\f\r]/g;function Cu(e){return typeof e=="object"?e.type==="text"?zf(e.value):!1:zf(e)}function zf(e){return e.replace(zb,"")===""}const Ge=Gh(1),Wh=Gh(-1),Fb=[];function Gh(e){return t;function t(n,r,o){const s=n?n.children:Fb;let l=(r||0)+e,i=s[l];if(!o)for(;i&&Cu(i);)l+=e,i=s[l];return i}}const Bb={}.hasOwnProperty;function Yh(e){return t;function t(n,r,o){return Bb.call(e,n.tagName)&&e[n.tagName](n,r,o)}}const _u=Yh({body:Wb,caption:La,colgroup:La,dd:Vb,dt:Ub,head:La,html:qb,li:Yb,optgroup:Hb,option:Zb,p:Gb,rp:Ff,rt:Ff,tbody:Kb,td:Bf,tfoot:Qb,th:Bf,thead:Xb,tr:Jb});function La(e,t,n){const r=Ge(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Cu(r.value.charAt(0)))}function qb(e,t,n){const r=Ge(n,t);return!r||r.type!=="comment"}function Wb(e,t,n){const r=Ge(n,t);return!r||r.type!=="comment"}function Gb(e,t,n){const r=Ge(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 Yb(e,t,n){const r=Ge(n,t);return!r||r.type==="element"&&r.tagName==="li"}function Ub(e,t,n){const r=Ge(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Vb(e,t,n){const r=Ge(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Ff(e,t,n){const r=Ge(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Hb(e,t,n){const r=Ge(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function Zb(e,t,n){const r=Ge(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Xb(e,t,n){const r=Ge(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Kb(e,t,n){const r=Ge(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Qb(e,t,n){return!Ge(n,t)}function Jb(e,t,n){const r=Ge(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function Bf(e,t,n){const r=Ge(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const e7=Yh({body:r7,colgroup:o7,head:n7,html:t7,tbody:s7});function t7(e){const t=Ge(e,-1);return!t||t.type!=="comment"}function n7(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 r7(e){const t=Ge(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Cu(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function o7(e,t,n){const r=Wh(n,t),o=Ge(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&_u(r,n.children.indexOf(r),n)?!1:!!(o&&o.type==="element"&&o.tagName==="col")}function s7(e,t,n){const r=Wh(n,t),o=Ge(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&_u(r,n.children.indexOf(r),n)?!1:!!(o&&o.type==="element"&&o.tagName==="tr")}const ul={name:[[`
44
- \f\r &/=>`.split(""),`
45
- \f\r "&'/=>\``.split("")],[`\0
46
- \f\r "&'/<=>`.split(""),`\0
47
- \f\r "&'/<=>\``.split("")]],unquoted:[[`
48
- \f\r &>`.split(""),`\0
49
- \f\r "&'<=>\``.split("")],[`\0
50
- \f\r "&'<=>\``.split(""),`\0
51
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function l7(e,t,n,r){const o=r.schema,s=o.space==="svg"?!1:r.settings.omitOptionalTags;let l=o.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const i=[];let c;o.space==="html"&&e.tagName==="svg"&&(r.schema=Bh);const d=i7(r,e.properties),f=r.all(o.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=o,f&&(l=!1),(d||!s||!e7(e,t,n))&&(i.push("<",e.tagName,d?" "+d:""),l&&(o.space==="svg"||r.settings.closeSelfClosing)&&(c=d.charAt(d.length-1),(!r.settings.tightSelfClosing||c==="/"||c&&c!=='"'&&c!=="'")&&i.push(" "),i.push("/")),i.push(">")),i.push(f),!l&&(!s||!_u(e,t,n))&&i.push("</"+e.tagName+">"),i.join("")}function i7(e,t){const n=[];let r=-1,o;if(t){for(o in t)if(t[o]!==null&&t[o]!==void 0){const s=a7(e,o,t[o]);s&&n.push(s)}}for(;++r<n.length;){const s=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&s!=='"'&&s!=="'"&&(n[r]+=" ")}return n.join("")}function a7(e,t,n){const r=db(e.schema,t),o=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,s=e.settings.allowDangerousCharacters?0:1;let l=e.quote,i;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 c=Vr(r.attribute,Object.assign({},e.settings.characterReferences,{subset:ul.name[o][s]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Ob:$b)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(i=Vr(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:ul.unquoted[o][s]}))),i!==n&&(e.settings.quoteSmart&&$f(n,l)>$f(n,e.alternative)&&(l=e.alternative),i=l+Vr(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?ul.single:ul.double)[o][s],attribute:!0}))+l),c+(i&&"="+i))}const c7=["<","&"];function Uh(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Vr(e.value,Object.assign({},r.settings.characterReferences,{subset:c7}))}function u7(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Uh(e,t,n,r)}function d7(e,t,n,r){return r.all(e)}const f7=hb("type",{invalid:m7,unknown:p7,handlers:{comment:Db,doctype:Nb,element:l7,raw:u7,root:d7,text:Uh}});function m7(e){throw new Error("Expected node, not `"+e+"`")}function p7(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const h7={},g7={},y7=[];function v7(e,t){const n=t||h7,r=n.quote||'"',o=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:b7,all:w7,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||sb,characterReferences:n.characterReferences||g7,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Bh:pb,quote:r,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function b7(e,t,n){return f7(e,t,n,this)}function w7(e){const t=[],n=e&&e.children||y7;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function Xl(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[o,s]of Object.entries(t?.colorReplacements||{}))typeof s=="string"?n[o]=s:o===r&&Object.assign(n,s);return n}function ur(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function x7(e){return Array.isArray(e)?e:[e]}async function Vh(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function ku(e){return!e||["plaintext","txt","text","plain"].includes(e)}function C7(e){return e==="ansi"||ku(e)}function Su(e){return e==="none"}function _7(e){return Su(e)}function Hh(e,t){var n;if(!t)return e;e.properties||(e.properties={}),(n=e.properties).class||(n.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const r=Array.isArray(t)?t:t.split(/\s+/g);for(const o of r)o&&!e.properties.class.includes(o)&&e.properties.class.push(o);return e}function Oi(e,t=!1){var n;const r=e.split(/(\r?\n)/g);let o=0;const s=[];for(let l=0;l<r.length;l+=2){const i=t?r[l]+(r[l+1]||""):r[l];s.push([i,o]),o+=r[l].length,o+=((n=r[l+1])==null?void 0:n.length)||0}return s}function k7(e){const t=Oi(e,!0).map(([o])=>o);function n(o){if(o===e.length)return{line:t.length-1,character:t[t.length-1].length};let s=o,l=0;for(const i of t){if(s<i.length)break;s-=i.length,l++}return{line:l,character:s}}function r(o,s){let l=0;for(let i=0;i<o;i++)l+=t[i].length;return l+=s,l}return{lines:t,indexToPos:n,posToIndex:r}}function S7(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 R7(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 s=n.filter(l=>o.offset<l&&l<o.offset+o.content.length).map(l=>l-o.offset).sort((l,i)=>l-i);return s.length?S7(o,s):o})):e}function E7(e,t,n,r){const o={content:e.content,explanation:e.explanation,offset:e.offset},s=t.map(c=>Zh(e.variants[c])),l=new Set(s.flatMap(c=>Object.keys(c))),i={};return s.forEach((c,d)=>{for(const f of l){const m=c[f]||"inherit";if(d===0&&r)i[f]=m;else{const p=f==="color"?"":f==="background-color"?"-bg":`-${f}`,h=n+t[d]+(f==="color"?"":p);i[h]=m}}}),o.htmlStyle=i,o}function Zh(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&gn.Italic&&(t["font-style"]="italic"),e.fontStyle&gn.Bold&&(t["font-weight"]="bold"),e.fontStyle&gn.Underline&&(t["text-decoration"]="underline")),t}function j7(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const Xh=new WeakMap;function $i(e,t){Xh.set(e,t)}function ds(e){return Xh.get(e)}class _o{constructor(...t){if(j(this,"_stacks",{}),j(this,"lang"),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 _o(Object.fromEntries(x7(n).map(r=>[r,xc])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return T7(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function T7(e){const t=[],n=new Set;function r(o){var s;if(n.has(o))return;n.add(o);const l=(s=o?.nameScopesList)==null?void 0:s.scopeName;l&&t.push(l),o.parent&&r(o.parent)}return r(e),t}function L7(e,t){if(!(e instanceof _o))throw new et("Invalid grammar state");return e.getInternalStack(t)}function M7(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(l){if(typeof l=="number"){if(l<0||l>n.source.length)throw new et(`Invalid decoration offset: ${l}. Code length: ${n.source.length}`);return{...o.indexToPos(l),offset:l}}else{const i=o.lines[l.line];if(i===void 0)throw new et(`Invalid decoration position ${JSON.stringify(l)}. Lines length: ${o.lines.length}`);if(l.character<0||l.character>i.length)throw new et(`Invalid decoration position ${JSON.stringify(l)}. Line ${l.line} length: ${i.length}`);return{...l,offset:o.posToIndex(l.line,l.character)}}};const o=k7(n.source),s=(n.options.decorations||[]).map(l=>({...l,start:r(l.start),end:r(l.end)}));A7(s),e.set(n.meta,{decorations:s,converter:o,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){var r;if(!((r=this.options.decorations)!=null&&r.length))return;const s=t(this).decorations.flatMap(i=>[i.start.offset,i.end.offset]);return R7(n,s)},code(n){var r;if(!((r=this.options.decorations)!=null&&r.length))return;const o=t(this),s=Array.from(n.children).filter(m=>m.type==="element"&&m.tagName==="span");if(s.length!==o.converter.lines.length)throw new et(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${o.converter.lines.length}). Failed to apply decorations.`);function l(m,p,h,g){const y=s[m];let v="",w=-1,b=-1;if(p===0&&(w=0),h===0&&(b=0),h===Number.POSITIVE_INFINITY&&(b=y.children.length),w===-1||b===-1)for(let C=0;C<y.children.length;C++)v+=Kh(y.children[C]),w===-1&&v.length===p&&(w=C+1),b===-1&&v.length===h&&(b=C+1);if(w===-1)throw new et(`Failed to find start index for decoration ${JSON.stringify(g.start)}`);if(b===-1)throw new et(`Failed to find end index for decoration ${JSON.stringify(g.end)}`);const x=y.children.slice(w,b);if(!g.alwaysWrap&&x.length===y.children.length)c(y,g,"line");else if(!g.alwaysWrap&&x.length===1&&x[0].type==="element")c(x[0],g,"token");else{const C={type:"element",tagName:"span",properties:{},children:x};c(C,g,"wrapper"),y.children.splice(w,x.length,C)}}function i(m,p){s[m]=c(s[m],p,"line")}function c(m,p,h){var g;const y=p.properties||{},v=p.transform||(w=>w);return m.tagName=p.tagName||"span",m.properties={...m.properties,...y,class:m.properties.class},(g=p.properties)!=null&&g.class&&Hh(m,p.properties.class),m=v(m,h)||m,m}const d=[],f=o.decorations.sort((m,p)=>p.start.offset-m.start.offset||m.end.offset-p.end.offset);for(const m of f){const{start:p,end:h}=m;if(p.line===h.line)l(p.line,p.character,h.character,m);else if(p.line<h.line){l(p.line,p.character,Number.POSITIVE_INFINITY,m);for(let g=p.line+1;g<h.line;g++)d.unshift(()=>i(g,m));l(h.line,0,h.character,m)}}d.forEach(m=>m())}}}function A7(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new et(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const o=e[r],s=n.start.offset<=o.start.offset&&o.start.offset<n.end.offset,l=n.start.offset<o.end.offset&&o.end.offset<=n.end.offset,i=o.start.offset<=n.start.offset&&n.start.offset<o.end.offset,c=o.start.offset<n.end.offset&&n.end.offset<=o.end.offset;if(s||l||i||c){if(s&&l||i&&c)continue;throw new et(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(o.start)} intersect.`)}}}}function Kh(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(Kh).join(""):""}const I7=[M7()];function Kl(e){return[...e.transformers||[],...I7]}var dr=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Ma={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function P7(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const r=e.indexOf("m",n);if(r!==-1)return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function qf(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function D7(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)Ma[r]&&t.push({type:"setDecoration",value:Ma[r]});else if(r<=29){const o=Ma[r-20];o&&(t.push({type:"resetDecoration",value:o}),o==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:dr[r-30]}});else if(r===38){const o=qf(e);o&&t.push({type:"setForegroundColor",value:o})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:dr[r-40]}});else if(r===48){const o=qf(e);o&&t.push({type:"setBackgroundColor",value:o})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:dr[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:dr[r-100+8]}})}return t}function N7(){let e=null,t=null,n=new Set;return{parse(r){const o=[];let s=0;do{const l=P7(r,s),i=l.sequence?r.substring(s,l.startPosition):r.substring(s);if(i.length>0&&o.push({value:i,foreground:e,background:t,decorations:new Set(n)}),l.sequence){const c=D7(l.sequence);for(const d of c)d.type==="resetAll"?(e=null,t=null,n.clear()):d.type==="resetForegroundColor"?e=null:d.type==="resetBackgroundColor"?t=null:d.type==="resetDecoration"&&n.delete(d.value);for(const d of c)d.type==="setForegroundColor"?e=d.value:d.type==="setBackgroundColor"?t=d.value:d.type==="setDecoration"&&n.add(d.value)}s=l.position}while(s<r.length);return o}}}var O7={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 $7(e=O7){function t(i){return e[i]}function n(i){return`#${i.map(c=>Math.max(0,Math.min(c,255)).toString(16).padStart(2,"0")).join("")}`}let r;function o(){if(r)return r;r=[];for(let d=0;d<dr.length;d++)r.push(t(dr[d]));let i=[0,95,135,175,215,255];for(let d=0;d<6;d++)for(let f=0;f<6;f++)for(let m=0;m<6;m++)r.push(n([i[d],i[f],i[m]]));let c=8;for(let d=0;d<24;d++,c+=10)r.push(n([c,c,c]));return r}function s(i){return o()[i]}function l(i){switch(i.type){case"named":return t(i.name);case"rgb":return n(i.rgb);case"table":return s(i.index)}}return{value:l}}function z7(e,t,n){const r=Xl(e,n),o=Oi(t),s=$7(Object.fromEntries(dr.map(i=>{var c;return[i,(c=e.colors)==null?void 0:c[`terminal.ansi${i[0].toUpperCase()}${i.substring(1)}`]]}))),l=N7();return o.map(i=>l.parse(i[0]).map(c=>{let d,f;c.decorations.has("reverse")?(d=c.background?s.value(c.background):e.bg,f=c.foreground?s.value(c.foreground):e.fg):(d=c.foreground?s.value(c.foreground):e.fg,f=c.background?s.value(c.background):void 0),d=ur(d,r),f=ur(f,r),c.decorations.has("dim")&&(d=F7(d));let m=gn.None;return c.decorations.has("bold")&&(m|=gn.Bold),c.decorations.has("italic")&&(m|=gn.Italic),c.decorations.has("underline")&&(m|=gn.Underline),{content:c.value,offset:i[1],color:d,bgColor:f,fontStyle:m}}))}function F7(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 Ru(e,t,n={}){const{lang:r="text",theme:o=e.getLoadedThemes()[0]}=n;if(ku(r)||Su(o))return Oi(t).map(c=>[{content:c[0],offset:c[1]}]);const{theme:s,colorMap:l}=e.setTheme(o);if(r==="ansi")return z7(s,t,n);const i=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==i.name)throw new et(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${i.name}"`);if(!n.grammarState.themes.includes(s.name))throw new et(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return q7(t,i,s,l,n)}function B7(...e){if(e.length===2)return ds(e[1]);const[t,n,r={}]=e,{lang:o="text",theme:s=t.getLoadedThemes()[0]}=r;if(ku(o)||Su(s))throw new et("Plain language does not have grammar state");if(o==="ansi")throw new et("ANSI language does not have grammar state");const{theme:l,colorMap:i}=t.setTheme(s),c=t.getLanguage(o);return new _o(Ql(n,c,l,i,r).stateStack,c.name,l.name)}function q7(e,t,n,r,o){const s=Ql(e,t,n,r,o),l=new _o(Ql(e,t,n,r,o).stateStack,t.name,n.name);return $i(s.tokens,l),s.tokens}function Ql(e,t,n,r,o){const s=Xl(n,o),{tokenizeMaxLineLength:l=0,tokenizeTimeLimit:i=500}=o,c=Oi(e);let d=o.grammarState?L7(o.grammarState,n.name)??xc:o.grammarContextCode!=null?Ql(o.grammarContextCode,t,n,r,{...o,grammarState:void 0,grammarContextCode:void 0}).stateStack:xc,f=[];const m=[];for(let p=0,h=c.length;p<h;p++){const[g,y]=c[p];if(g===""){f=[],m.push([]);continue}if(l>0&&g.length>=l){f=[],m.push([{content:g,offset:y,color:"",fontStyle:0}]);continue}let v,w,b;o.includeExplanation&&(v=t.tokenizeLine(g,d,i),w=v.tokens,b=0);const x=t.tokenizeLine2(g,d,i),C=x.tokens.length/2;for(let _=0;_<C;_++){const R=x.tokens[2*_],S=_+1<C?x.tokens[2*_+2]:g.length;if(R===S)continue;const E=x.tokens[2*_+1],T=ur(r[to.getForeground(E)],s),M=to.getFontStyle(E),D={content:g.substring(R,S),offset:y+R,color:T,fontStyle:M};if(o.includeExplanation){const F=[];if(o.includeExplanation!=="scopeName")for(const q of n.settings){let ne;switch(typeof q.scope){case"string":ne=q.scope.split(/,/).map(U=>U.trim());break;case"object":ne=q.scope;break;default:continue}F.push({settings:q,selectors:ne.map(U=>U.split(/ /))})}D.explanation=[];let V=0;for(;R+V<S;){const q=w[b],ne=g.substring(q.startIndex,q.endIndex);V+=ne.length,D.explanation.push({content:ne,scopes:o.includeExplanation==="scopeName"?W7(q.scopes):G7(F,q.scopes)}),b+=1}}f.push(D)}m.push(f),f=[],d=x.ruleStack}return{tokens:m,stateStack:d}}function W7(e){return e.map(t=>({scopeName:t}))}function G7(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const s=t[r];n[r]={scopeName:s,themeMatches:U7(e,s,t.slice(0,r))}}return n}function Wf(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function Y7(e,t,n){if(!Wf(e[e.length-1],t))return!1;let r=e.length-2,o=n.length-1;for(;r>=0&&o>=0;)Wf(e[r],n[o])&&(r-=1),o-=1;return r===-1}function U7(e,t,n){const r=[];for(const{selectors:o,settings:s}of e)for(const l of o)if(Y7(l,t,n)){r.push(s);break}return r}function Qh(e,t,n){const r=Object.entries(n.themes).filter(c=>c[1]).map(c=>({color:c[0],theme:c[1]})),o=r.map(c=>{const d=Ru(e,t,{...n,theme:c.theme}),f=ds(d),m=typeof c.theme=="string"?c.theme:c.theme.name;return{tokens:d,state:f,theme:m}}),s=V7(...o.map(c=>c.tokens)),l=s[0].map((c,d)=>c.map((f,m)=>{const p={content:f.content,variants:{},offset:f.offset};return"includeExplanation"in n&&n.includeExplanation&&(p.explanation=f.explanation),s.forEach((h,g)=>{const{content:y,explanation:v,offset:w,...b}=h[d][m];p.variants[r[g].color]=b}),p})),i=o[0].state?new _o(Object.fromEntries(o.map(c=>{var d;return[c.theme,(d=c.state)==null?void 0:d.getInternalStack(c.theme)]})),o[0].state.lang):void 0;return i&&$i(l,i),l}function V7(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const o=e.map(c=>c[r]),s=t.map(()=>[]);t.forEach((c,d)=>c.push(s[d]));const l=o.map(()=>0),i=o.map(c=>c[0]);for(;i.every(c=>c);){const c=Math.min(...i.map(d=>d.content.length));for(let d=0;d<n;d++){const f=i[d];f.content.length===c?(s[d].push(f),l[d]+=1,i[d]=o[d][l[d]]):(s[d].push({...f,content:f.content.slice(0,c)}),i[d]={...f,content:f.content.slice(c),offset:f.offset+c})}}}return t}function Jl(e,t,n){let r,o,s,l,i,c;if("themes"in n){const{defaultColor:d="light",cssVariablePrefix:f="--shiki-"}=n,m=Object.entries(n.themes).filter(v=>v[1]).map(v=>({color:v[0],theme:v[1]})).sort((v,w)=>v.color===d?-1:w.color===d?1:0);if(m.length===0)throw new et("`themes` option must not be empty");const p=Qh(e,t,n);if(c=ds(p),d&&!m.find(v=>v.color===d))throw new et(`\`themes\` option must contain the defaultColor key \`${d}\``);const h=m.map(v=>e.getTheme(v.theme)),g=m.map(v=>v.color);s=p.map(v=>v.map(w=>E7(w,g,f,d))),c&&$i(s,c);const y=m.map(v=>Xl(v.theme,n));o=m.map((v,w)=>(w===0&&d?"":`${f+v.color}:`)+(ur(h[w].fg,y[w])||"inherit")).join(";"),r=m.map((v,w)=>(w===0&&d?"":`${f+v.color}-bg:`)+(ur(h[w].bg,y[w])||"inherit")).join(";"),l=`shiki-themes ${h.map(v=>v.name).join(" ")}`,i=d?void 0:[o,r].join(";")}else if("theme"in n){const d=Xl(n.theme,n);s=Ru(e,t,n);const f=e.getTheme(n.theme);r=ur(f.bg,d),o=ur(f.fg,d),l=f.name,c=ds(s)}else throw new et("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:o,bg:r,themeName:l,rootStyle:i,grammarState:c}}function ei(e,t,n,r={meta:{},options:n,codeToHast:(o,s)=>ei(e,o,s),codeToTokens:(o,s)=>Jl(e,o,s)}){var o,s;let l=t;for(const y of Kl(n))l=((o=y.preprocess)==null?void 0:o.call(r,l,n))||l;let{tokens:i,fg:c,bg:d,themeName:f,rootStyle:m,grammarState:p}=Jl(e,l,n);const{mergeWhitespaces:h=!0}=n;h===!0?i=Z7(i):h==="never"&&(i=X7(i));const g={...r,get source(){return l}};for(const y of Kl(n))i=((s=y.tokens)==null?void 0:s.call(g,i))||i;return H7(i,{...n,fg:c,bg:d,themeName:f,rootStyle:m},g,p)}function H7(e,t,n,r=ds(e)){var o,s,l;const i=Kl(t),c=[],d={type:"root",children:[]},{structure:f="classic",tabindex:m="0"}=t;let p={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...m!==!1&&m!=null?{tabindex:m.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([w])=>!w.startsWith("_")))},children:[]},h={type:"element",tagName:"code",properties:{},children:c};const g=[],y={...n,structure:f,addClassToHast:Hh,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return d},get pre(){return p},get code(){return h},get lines(){return g}};if(e.forEach((w,b)=>{var x,C;b&&(f==="inline"?d.children.push({type:"element",tagName:"br",properties:{},children:[]}):f==="classic"&&c.push({type:"text",value:`
52
- `}));let _={type:"element",tagName:"span",properties:{class:"line"},children:[]},R=0;for(const S of w){let E={type:"element",tagName:"span",properties:{...S.htmlAttrs},children:[{type:"text",value:S.content}]};const T=j7(S.htmlStyle||Zh(S));T&&(E.properties.style=T);for(const M of i)E=((x=M?.span)==null?void 0:x.call(y,E,b+1,R,_,S))||E;f==="inline"?d.children.push(E):f==="classic"&&_.children.push(E),R+=S.content.length}if(f==="classic"){for(const S of i)_=((C=S?.line)==null?void 0:C.call(y,_,b+1))||_;g.push(_),c.push(_)}}),f==="classic"){for(const w of i)h=((o=w?.code)==null?void 0:o.call(y,h))||h;p.children.push(h);for(const w of i)p=((s=w?.pre)==null?void 0:s.call(y,p))||p;d.children.push(p)}let v=d;for(const w of i)v=((l=w?.root)==null?void 0:l.call(y,v))||v;return r&&$i(v,r),v}function Z7(e){return e.map(t=>{const n=[];let r="",o=0;return t.forEach((s,l)=>{const c=!(s.fontStyle&&s.fontStyle&gn.Underline);c&&s.content.match(/^\s+$/)&&t[l+1]?(o||(o=s.offset),r+=s.content):r?(c?n.push({...s,offset:o,content:r+s.content}):n.push({content:r,offset:o},s),o=0,r=""):n.push(s)}),n})}function X7(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,s,l]=r;if(!o&&!l)return n;const i=[{...n,offset:n.offset+o.length,content:s}];return o&&i.unshift({content:o,offset:n.offset}),l&&i.push({content:l,offset:n.offset+o.length+s.length}),i}))}const K7=v7;function Q7(e,t,n){var r;const o={meta:{},options:n,codeToHast:(l,i)=>ei(e,l,i),codeToTokens:(l,i)=>Jl(e,l,i)};let s=K7(ei(e,t,n,o));for(const l of Kl(n))s=((r=l.postprocess)==null?void 0:r.call(o,s,n))||s;return s}const Gf={light:"#333333",dark:"#bbbbbb"},Yf={light:"#fffffe",dark:"#1e1e1e"},Uf="__shiki_resolved";function Eu(e){var t,n,r,o,s;if(e?.[Uf])return e;const l={...e};l.tokenColors&&!l.settings&&(l.settings=l.tokenColors,delete l.tokenColors),l.type||(l.type="dark"),l.colorReplacements={...l.colorReplacements},l.settings||(l.settings=[]);let{bg:i,fg:c}=l;if(!i||!c){const p=l.settings?l.settings.find(h=>!h.name&&!h.scope):void 0;(t=p?.settings)!=null&&t.foreground&&(c=p.settings.foreground),(n=p?.settings)!=null&&n.background&&(i=p.settings.background),!c&&((r=l?.colors)!=null&&r["editor.foreground"])&&(c=l.colors["editor.foreground"]),!i&&((o=l?.colors)!=null&&o["editor.background"])&&(i=l.colors["editor.background"]),c||(c=l.type==="light"?Gf.light:Gf.dark),i||(i=l.type==="light"?Yf.light:Yf.dark),l.fg=c,l.bg=i}l.settings[0]&&l.settings[0].settings&&!l.settings[0].scope||l.settings.unshift({settings:{foreground:l.fg,background:l.bg}});let d=0;const f=new Map;function m(p){var h;if(f.has(p))return f.get(p);d+=1;const g=`#${d.toString(16).padStart(8,"0").toLowerCase()}`;return(h=l.colorReplacements)!=null&&h[`#${g}`]?m(p):(f.set(p,g),g)}l.settings=l.settings.map(p=>{var h,g;const y=((h=p.settings)==null?void 0:h.foreground)&&!p.settings.foreground.startsWith("#"),v=((g=p.settings)==null?void 0:g.background)&&!p.settings.background.startsWith("#");if(!y&&!v)return p;const w={...p,settings:{...p.settings}};if(y){const b=m(p.settings.foreground);l.colorReplacements[b]=p.settings.foreground,w.settings.foreground=b}if(v){const b=m(p.settings.background);l.colorReplacements[b]=p.settings.background,w.settings.background=b}return w});for(const p of Object.keys(l.colors||{}))if((p==="editor.foreground"||p==="editor.background"||p.startsWith("terminal.ansi"))&&!((s=l.colors[p])!=null&&s.startsWith("#"))){const h=m(l.colors[p]);l.colorReplacements[h]=l.colors[p],l.colors[p]=h}return Object.defineProperty(l,Uf,{enumerable:!1,writable:!1,value:!0}),l}async function Jh(e){return Array.from(new Set((await Promise.all(e.filter(t=>!C7(t)).map(async t=>await Vh(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function eg(e){return(await Promise.all(e.map(async n=>_7(n)?null:Eu(await Vh(n))))).filter(n=>!!n)}let J7=3;function e8(e,t=3){t>J7||console.trace(`[SHIKI DEPRECATE]: ${e}`)}class zr extends Error{constructor(t){super(t),this.name="ShikiError"}}class t8 extends ob{constructor(t,n,r,o={}){super(t),j(this,"_resolvedThemes",new Map),j(this,"_resolvedGrammars",new Map),j(this,"_langMap",new Map),j(this,"_langGraph",new Map),j(this,"_textmateThemeCache",new WeakMap),j(this,"_loadedThemesCache",null),j(this,"_loadedLanguagesCache",null),this._resolver=t,this._themes=n,this._langs=r,this._alias=o,this._themes.map(s=>this.loadTheme(s)),this.loadLanguages(this._langs)}getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=Eu(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=Yl.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){if(this._alias[t]){const n=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],n.has(t))throw new zr(`Circular alias \`${Array.from(n).join(" -> ")} -> ${t}\``);n.add(t)}}return this._resolvedGrammars.get(t)}loadLanguage(t){var n,r,o,s;if(this.getGrammar(t.name))return;const l=new Set([...this._langMap.values()].filter(d=>{var f;return(f=d.embeddedLangsLazy)==null?void 0:f.includes(t.name)}));this._resolver.addLanguage(t);const i={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const c=this.loadGrammarWithConfiguration(t.scopeName,1,i);if(c.name=t.name,this._resolvedGrammars.set(t.name,c),t.aliases&&t.aliases.forEach(d=>{this._alias[d]=t.name}),this._loadedLanguagesCache=null,l.size)for(const d of l)this._resolvedGrammars.delete(d.name),this._loadedLanguagesCache=null,(r=(n=this._syncRegistry)==null?void 0:n._injectionGrammars)==null||r.delete(d.scopeName),(s=(o=this._syncRegistry)==null?void 0:o._grammars)==null||s.delete(d.scopeName),this.loadLanguage(this._langMap.get(d.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const o of t)this.resolveEmbeddedLanguages(o);const n=Array.from(this._langGraph.entries()),r=n.filter(([o,s])=>!s);if(r.length){const o=n.filter(([s,l])=>{var i;return l&&((i=l.embeddedLangs)==null?void 0:i.some(c=>r.map(([d])=>d).includes(c)))}).filter(s=>!r.includes(s));throw new zr(`Missing languages ${r.map(([s])=>`\`${s}\``).join(", ")}, required by ${o.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[o,s]of n)this._resolver.addLanguage(s);for(const[o,s]of n)this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs)for(const n of t.embeddedLangs)this._langGraph.set(n,this._langMap.get(n))}}class n8{constructor(t,n){j(this,"_langs",new Map),j(this,"_scopeToLang",new Map),j(this,"_injections",new Map),j(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 s=n.slice(0,o).join(".");r=[...r,...this._injections.get(s)||[]]}return r}}let $o=0;function r8(e){$o+=1,e.warnings!==!1&&$o>=10&&$o%10===0&&console.warn(`[Shiki] ${$o} 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 zr("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(Eu),o=new n8(e.engine,n),s=new t8(o,r,n,e.langAlias);let l;function i(b){v();const x=s.getGrammar(typeof b=="string"?b:b.name);if(!x)throw new zr(`Language \`${b}\` not found, you may need to load it first`);return x}function c(b){if(b==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};v();const x=s.getTheme(b);if(!x)throw new zr(`Theme \`${b}\` not found, you may need to load it first`);return x}function d(b){v();const x=c(b);l!==b&&(s.setTheme(x),l=b);const C=s.getColorMap();return{theme:x,colorMap:C}}function f(){return v(),s.getLoadedThemes()}function m(){return v(),s.getLoadedLanguages()}function p(...b){v(),s.loadLanguages(b.flat(1))}async function h(...b){return p(await Jh(b))}function g(...b){v();for(const x of b.flat(1))s.loadTheme(x)}async function y(...b){return v(),g(await eg(b))}function v(){if(t)throw new zr("Shiki instance has been disposed")}function w(){t||(t=!0,s.dispose(),$o-=1)}return{setTheme:d,getTheme:c,getLanguage:i,getLoadedThemes:f,getLoadedLanguages:m,loadLanguage:h,loadLanguageSync:p,loadTheme:y,loadThemeSync:g,dispose:w,[Symbol.dispose]:w}}async function o8(e){e.engine||e8("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([eg(e.themes||[]),Jh(e.langs||[]),e.engine]);return r8({...e,themes:t,langs:n,engine:r})}async function s8(e){const t=await o8(e);return{getLastGrammarState:(...n)=>B7(t,...n),codeToTokensBase:(n,r)=>Ru(t,n,r),codeToTokensWithThemes:(n,r)=>Qh(t,n,r),codeToTokens:(n,r)=>Jl(t,n,r),codeToHast:(n,r)=>ei(t,n,r),codeToHtml:(n,r)=>Q7(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}const l8=Object.freeze(JSON.parse('{"colors":{"actionBar.toggledBackground":"#dddddd","activityBarBadge.background":"#007ACC","checkbox.border":"#919191","diffEditor.unchangedRegionBackground":"#f8f8f8","editor.background":"#FFFFFF","editor.foreground":"#000000","editor.inactiveSelectionBackground":"#E5EBF1","editor.selectionHighlightBackground":"#ADD6FF80","editorIndentGuide.activeBackground1":"#939393","editorIndentGuide.background1":"#D3D3D3","editorSuggestWidget.background":"#F3F3F3","input.placeholderForeground":"#767676","list.activeSelectionIconForeground":"#FFF","list.focusAndSelectionOutline":"#90C2F9","list.hoverBackground":"#E8E8E8","menu.border":"#D4D4D4","notebook.cellBorderColor":"#E8E8E8","notebook.selectedCellBackground":"#c8ddf150","ports.iconRunningProcessForeground":"#369432","searchEditor.textInputBorder":"#CECECE","settings.numberInputBorder":"#CECECE","settings.textInputBorder":"#CECECE","sideBarSectionHeader.background":"#0000","sideBarSectionHeader.border":"#61616130","sideBarTitle.foreground":"#6F6F6F","statusBarItem.errorBackground":"#c72e0f","statusBarItem.remoteBackground":"#16825D","statusBarItem.remoteForeground":"#FFF","tab.lastPinnedBorder":"#61616130","tab.selectedBackground":"#ffffffa5","tab.selectedForeground":"#333333b3","terminal.inactiveSelectionBackground":"#E5EBF1","widget.border":"#d4d4d4"},"displayName":"Light Plus","name":"light-plus","semanticHighlighting":true,"semanticTokenColors":{"customLiteral":"#795E26","newOperator":"#AF00DB","numberLiteral":"#098658","stringLiteral":"#a31515"},"tokenColors":[{"scope":["meta.embedded","source.groovy.embedded","string meta.image.inline.markdown","variable.legacy.builtin.python"],"settings":{"foreground":"#000000ff"}},{"scope":"emphasis","settings":{"fontStyle":"italic"}},{"scope":"strong","settings":{"fontStyle":"bold"}},{"scope":"meta.diff.header","settings":{"foreground":"#000080"}},{"scope":"comment","settings":{"foreground":"#008000"}},{"scope":"constant.language","settings":{"foreground":"#0000ff"}},{"scope":["constant.numeric","variable.other.enummember","keyword.operator.plus.exponent","keyword.operator.minus.exponent"],"settings":{"foreground":"#098658"}},{"scope":"constant.regexp","settings":{"foreground":"#811f3f"}},{"scope":"entity.name.tag","settings":{"foreground":"#800000"}},{"scope":"entity.name.selector","settings":{"foreground":"#800000"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#e50000"}},{"scope":["entity.other.attribute-name.class.css","source.css entity.other.attribute-name.class","entity.other.attribute-name.id.css","entity.other.attribute-name.parent-selector.css","entity.other.attribute-name.parent.less","source.css entity.other.attribute-name.pseudo-class","entity.other.attribute-name.pseudo-element.css","source.css.less entity.other.attribute-name.id","entity.other.attribute-name.scss"],"settings":{"foreground":"#800000"}},{"scope":"invalid","settings":{"foreground":"#cd3131"}},{"scope":"markup.underline","settings":{"fontStyle":"underline"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#000080"}},{"scope":"markup.heading","settings":{"fontStyle":"bold","foreground":"#800000"}},{"scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inserted","settings":{"foreground":"#098658"}},{"scope":"markup.deleted","settings":{"foreground":"#a31515"}},{"scope":"markup.changed","settings":{"foreground":"#0451a5"}},{"scope":["punctuation.definition.quote.begin.markdown","punctuation.definition.list.begin.markdown"],"settings":{"foreground":"#0451a5"}},{"scope":"markup.inline.raw","settings":{"foreground":"#800000"}},{"scope":"punctuation.definition.tag","settings":{"foreground":"#800000"}},{"scope":["meta.preprocessor","entity.name.function.preprocessor"],"settings":{"foreground":"#0000ff"}},{"scope":"meta.preprocessor.string","settings":{"foreground":"#a31515"}},{"scope":"meta.preprocessor.numeric","settings":{"foreground":"#098658"}},{"scope":"meta.structure.dictionary.key.python","settings":{"foreground":"#0451a5"}},{"scope":"storage","settings":{"foreground":"#0000ff"}},{"scope":"storage.type","settings":{"foreground":"#0000ff"}},{"scope":["storage.modifier","keyword.operator.noexcept"],"settings":{"foreground":"#0000ff"}},{"scope":["string","meta.embedded.assembly"],"settings":{"foreground":"#a31515"}},{"scope":["string.comment.buffered.block.pug","string.quoted.pug","string.interpolated.pug","string.unquoted.plain.in.yaml","string.unquoted.plain.out.yaml","string.unquoted.block.yaml","string.quoted.single.yaml","string.quoted.double.xml","string.quoted.single.xml","string.unquoted.cdata.xml","string.quoted.double.html","string.quoted.single.html","string.unquoted.html","string.quoted.single.handlebars","string.quoted.double.handlebars"],"settings":{"foreground":"#0000ff"}},{"scope":"string.regexp","settings":{"foreground":"#811f3f"}},{"scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],"settings":{"foreground":"#0000ff"}},{"scope":["meta.template.expression"],"settings":{"foreground":"#000000"}},{"scope":["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],"settings":{"foreground":"#0451a5"}},{"scope":["support.type.vendored.property-name","support.type.property-name","source.css variable","source.coffee.embedded"],"settings":{"foreground":"#e50000"}},{"scope":["support.type.property-name.json"],"settings":{"foreground":"#0451a5"}},{"scope":"keyword","settings":{"foreground":"#0000ff"}},{"scope":"keyword.control","settings":{"foreground":"#0000ff"}},{"scope":"keyword.operator","settings":{"foreground":"#000000"}},{"scope":["keyword.operator.new","keyword.operator.expression","keyword.operator.cast","keyword.operator.sizeof","keyword.operator.alignof","keyword.operator.typeid","keyword.operator.alignas","keyword.operator.instanceof","keyword.operator.logical.python","keyword.operator.wordlike"],"settings":{"foreground":"#0000ff"}},{"scope":"keyword.other.unit","settings":{"foreground":"#098658"}},{"scope":["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],"settings":{"foreground":"#800000"}},{"scope":"support.function.git-rebase","settings":{"foreground":"#0451a5"}},{"scope":"constant.sha.git-rebase","settings":{"foreground":"#098658"}},{"scope":["storage.modifier.import.java","variable.language.wildcard.java","storage.modifier.package.java"],"settings":{"foreground":"#000000"}},{"scope":"variable.language","settings":{"foreground":"#0000ff"}},{"scope":["entity.name.function","support.function","support.constant.handlebars","source.powershell variable.other.member","entity.name.operator.custom-literal"],"settings":{"foreground":"#795E26"}},{"scope":["support.class","support.type","entity.name.type","entity.name.namespace","entity.other.attribute","entity.name.scope-resolution","entity.name.class","storage.type.numeric.go","storage.type.byte.go","storage.type.boolean.go","storage.type.string.go","storage.type.uintptr.go","storage.type.error.go","storage.type.rune.go","storage.type.cs","storage.type.generic.cs","storage.type.modifier.cs","storage.type.variable.cs","storage.type.annotation.java","storage.type.generic.java","storage.type.java","storage.type.object.array.java","storage.type.primitive.array.java","storage.type.primitive.java","storage.type.token.java","storage.type.groovy","storage.type.annotation.groovy","storage.type.parameters.groovy","storage.type.generic.groovy","storage.type.object.array.groovy","storage.type.primitive.array.groovy","storage.type.primitive.groovy"],"settings":{"foreground":"#267f99"}},{"scope":["meta.type.cast.expr","meta.type.new.expr","support.constant.math","support.constant.dom","support.constant.json","entity.other.inherited-class","punctuation.separator.namespace.ruby"],"settings":{"foreground":"#267f99"}},{"scope":["keyword.control","source.cpp keyword.operator.new","source.cpp keyword.operator.delete","keyword.other.using","keyword.other.directive.using","keyword.other.operator","entity.name.operator"],"settings":{"foreground":"#AF00DB"}},{"scope":["variable","meta.definition.variable.name","support.variable","entity.name.variable","constant.other.placeholder"],"settings":{"foreground":"#001080"}},{"scope":["variable.other.constant","variable.other.enummember"],"settings":{"foreground":"#0070C1"}},{"scope":["meta.object-literal.key"],"settings":{"foreground":"#001080"}},{"scope":["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],"settings":{"foreground":"#0451a5"}},{"scope":["punctuation.definition.group.regexp","punctuation.definition.group.assertion.regexp","punctuation.definition.character-class.regexp","punctuation.character.set.begin.regexp","punctuation.character.set.end.regexp","keyword.operator.negation.regexp","support.other.parenthesis.regexp"],"settings":{"foreground":"#d16969"}},{"scope":["constant.character.character-class.regexp","constant.other.character-class.set.regexp","constant.other.character-class.regexp","constant.character.set.regexp"],"settings":{"foreground":"#811f3f"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#000000"}},{"scope":["keyword.operator.or.regexp","keyword.control.anchor.regexp"],"settings":{"foreground":"#EE0000"}},{"scope":["constant.character","constant.other.option"],"settings":{"foreground":"#0000ff"}},{"scope":"constant.character.escape","settings":{"foreground":"#EE0000"}},{"scope":"entity.name.label","settings":{"foreground":"#000000"}}],"type":"light"}')),i8=Object.freeze(JSON.parse('{"colors":{"actionBar.toggledBackground":"#383a49","activityBarBadge.background":"#007ACC","checkbox.border":"#6B6B6B","editor.background":"#1E1E1E","editor.foreground":"#D4D4D4","editor.inactiveSelectionBackground":"#3A3D41","editor.selectionHighlightBackground":"#ADD6FF26","editorIndentGuide.activeBackground1":"#707070","editorIndentGuide.background1":"#404040","input.placeholderForeground":"#A6A6A6","list.activeSelectionIconForeground":"#FFF","list.dropBackground":"#383B3D","menu.background":"#252526","menu.border":"#454545","menu.foreground":"#CCCCCC","menu.selectionBackground":"#0078d4","menu.separatorBackground":"#454545","ports.iconRunningProcessForeground":"#369432","sideBarSectionHeader.background":"#0000","sideBarSectionHeader.border":"#ccc3","sideBarTitle.foreground":"#BBBBBB","statusBarItem.remoteBackground":"#16825D","statusBarItem.remoteForeground":"#FFF","tab.lastPinnedBorder":"#ccc3","tab.selectedBackground":"#222222","tab.selectedForeground":"#ffffffa0","terminal.inactiveSelectionBackground":"#3A3D41","widget.border":"#303031"},"displayName":"Dark Plus","name":"dark-plus","semanticHighlighting":true,"semanticTokenColors":{"customLiteral":"#DCDCAA","newOperator":"#C586C0","numberLiteral":"#b5cea8","stringLiteral":"#ce9178"},"tokenColors":[{"scope":["meta.embedded","source.groovy.embedded","string meta.image.inline.markdown","variable.legacy.builtin.python"],"settings":{"foreground":"#D4D4D4"}},{"scope":"emphasis","settings":{"fontStyle":"italic"}},{"scope":"strong","settings":{"fontStyle":"bold"}},{"scope":"header","settings":{"foreground":"#000080"}},{"scope":"comment","settings":{"foreground":"#6A9955"}},{"scope":"constant.language","settings":{"foreground":"#569cd6"}},{"scope":["constant.numeric","variable.other.enummember","keyword.operator.plus.exponent","keyword.operator.minus.exponent"],"settings":{"foreground":"#b5cea8"}},{"scope":"constant.regexp","settings":{"foreground":"#646695"}},{"scope":"entity.name.tag","settings":{"foreground":"#569cd6"}},{"scope":["entity.name.tag.css","entity.name.tag.less"],"settings":{"foreground":"#d7ba7d"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#9cdcfe"}},{"scope":["entity.other.attribute-name.class.css","source.css entity.other.attribute-name.class","entity.other.attribute-name.id.css","entity.other.attribute-name.parent-selector.css","entity.other.attribute-name.parent.less","source.css entity.other.attribute-name.pseudo-class","entity.other.attribute-name.pseudo-element.css","source.css.less entity.other.attribute-name.id","entity.other.attribute-name.scss"],"settings":{"foreground":"#d7ba7d"}},{"scope":"invalid","settings":{"foreground":"#f44747"}},{"scope":"markup.underline","settings":{"fontStyle":"underline"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#569cd6"}},{"scope":"markup.heading","settings":{"fontStyle":"bold","foreground":"#569cd6"}},{"scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inserted","settings":{"foreground":"#b5cea8"}},{"scope":"markup.deleted","settings":{"foreground":"#ce9178"}},{"scope":"markup.changed","settings":{"foreground":"#569cd6"}},{"scope":"punctuation.definition.quote.begin.markdown","settings":{"foreground":"#6A9955"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#6796e6"}},{"scope":"markup.inline.raw","settings":{"foreground":"#ce9178"}},{"scope":"punctuation.definition.tag","settings":{"foreground":"#808080"}},{"scope":["meta.preprocessor","entity.name.function.preprocessor"],"settings":{"foreground":"#569cd6"}},{"scope":"meta.preprocessor.string","settings":{"foreground":"#ce9178"}},{"scope":"meta.preprocessor.numeric","settings":{"foreground":"#b5cea8"}},{"scope":"meta.structure.dictionary.key.python","settings":{"foreground":"#9cdcfe"}},{"scope":"meta.diff.header","settings":{"foreground":"#569cd6"}},{"scope":"storage","settings":{"foreground":"#569cd6"}},{"scope":"storage.type","settings":{"foreground":"#569cd6"}},{"scope":["storage.modifier","keyword.operator.noexcept"],"settings":{"foreground":"#569cd6"}},{"scope":["string","meta.embedded.assembly"],"settings":{"foreground":"#ce9178"}},{"scope":"string.tag","settings":{"foreground":"#ce9178"}},{"scope":"string.value","settings":{"foreground":"#ce9178"}},{"scope":"string.regexp","settings":{"foreground":"#d16969"}},{"scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],"settings":{"foreground":"#569cd6"}},{"scope":["meta.template.expression"],"settings":{"foreground":"#d4d4d4"}},{"scope":["support.type.vendored.property-name","support.type.property-name","source.css variable","source.coffee.embedded"],"settings":{"foreground":"#9cdcfe"}},{"scope":"keyword","settings":{"foreground":"#569cd6"}},{"scope":"keyword.control","settings":{"foreground":"#569cd6"}},{"scope":"keyword.operator","settings":{"foreground":"#d4d4d4"}},{"scope":["keyword.operator.new","keyword.operator.expression","keyword.operator.cast","keyword.operator.sizeof","keyword.operator.alignof","keyword.operator.typeid","keyword.operator.alignas","keyword.operator.instanceof","keyword.operator.logical.python","keyword.operator.wordlike"],"settings":{"foreground":"#569cd6"}},{"scope":"keyword.other.unit","settings":{"foreground":"#b5cea8"}},{"scope":["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],"settings":{"foreground":"#569cd6"}},{"scope":"support.function.git-rebase","settings":{"foreground":"#9cdcfe"}},{"scope":"constant.sha.git-rebase","settings":{"foreground":"#b5cea8"}},{"scope":["storage.modifier.import.java","variable.language.wildcard.java","storage.modifier.package.java"],"settings":{"foreground":"#d4d4d4"}},{"scope":"variable.language","settings":{"foreground":"#569cd6"}},{"scope":["entity.name.function","support.function","support.constant.handlebars","source.powershell variable.other.member","entity.name.operator.custom-literal"],"settings":{"foreground":"#DCDCAA"}},{"scope":["support.class","support.type","entity.name.type","entity.name.namespace","entity.other.attribute","entity.name.scope-resolution","entity.name.class","storage.type.numeric.go","storage.type.byte.go","storage.type.boolean.go","storage.type.string.go","storage.type.uintptr.go","storage.type.error.go","storage.type.rune.go","storage.type.cs","storage.type.generic.cs","storage.type.modifier.cs","storage.type.variable.cs","storage.type.annotation.java","storage.type.generic.java","storage.type.java","storage.type.object.array.java","storage.type.primitive.array.java","storage.type.primitive.java","storage.type.token.java","storage.type.groovy","storage.type.annotation.groovy","storage.type.parameters.groovy","storage.type.generic.groovy","storage.type.object.array.groovy","storage.type.primitive.array.groovy","storage.type.primitive.groovy"],"settings":{"foreground":"#4EC9B0"}},{"scope":["meta.type.cast.expr","meta.type.new.expr","support.constant.math","support.constant.dom","support.constant.json","entity.other.inherited-class","punctuation.separator.namespace.ruby"],"settings":{"foreground":"#4EC9B0"}},{"scope":["keyword.control","source.cpp keyword.operator.new","keyword.operator.delete","keyword.other.using","keyword.other.directive.using","keyword.other.operator","entity.name.operator"],"settings":{"foreground":"#C586C0"}},{"scope":["variable","meta.definition.variable.name","support.variable","entity.name.variable","constant.other.placeholder"],"settings":{"foreground":"#9CDCFE"}},{"scope":["variable.other.constant","variable.other.enummember"],"settings":{"foreground":"#4FC1FF"}},{"scope":["meta.object-literal.key"],"settings":{"foreground":"#9CDCFE"}},{"scope":["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],"settings":{"foreground":"#CE9178"}},{"scope":["punctuation.definition.group.regexp","punctuation.definition.group.assertion.regexp","punctuation.definition.character-class.regexp","punctuation.character.set.begin.regexp","punctuation.character.set.end.regexp","keyword.operator.negation.regexp","support.other.parenthesis.regexp"],"settings":{"foreground":"#CE9178"}},{"scope":["constant.character.character-class.regexp","constant.other.character-class.set.regexp","constant.other.character-class.regexp","constant.character.set.regexp"],"settings":{"foreground":"#d16969"}},{"scope":["keyword.operator.or.regexp","keyword.control.anchor.regexp"],"settings":{"foreground":"#DCDCAA"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#d7ba7d"}},{"scope":["constant.character","constant.other.option"],"settings":{"foreground":"#569cd6"}},{"scope":"constant.character.escape","settings":{"foreground":"#d7ba7d"}},{"scope":"entity.name.label","settings":{"foreground":"#C8C8C8"}}],"type":"dark"}')),a8=Object.freeze(JSON.parse('{"displayName":"SQL","name":"sql","patterns":[{"match":"((?<!@)@)\\\\b(\\\\w+)\\\\b","name":"text.variable"},{"match":"(\\\\[)[^\\\\]]*(])","name":"text.bracketed"},{"include":"#comments"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.sql"},"5":{"name":"entity.name.function.sql"}},"match":"(?i:^\\\\s*(create(?:\\\\s+or\\\\s+replace)?)\\\\s+(aggregate|conversion|database|domain|function|group|(unique\\\\s+)?index|language|operator class|operator|rule|schema|sequence|table|tablespace|trigger|type|user|view)\\\\s+)([\'\\"`]?)(\\\\w+)\\\\4","name":"meta.create.sql"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.sql"}},"match":"(?i:^\\\\s*(drop)\\\\s+(aggregate|conversion|database|domain|function|group|index|language|operator class|operator|rule|schema|sequence|table|tablespace|trigger|type|user|view))","name":"meta.drop.sql"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.table.sql"},"3":{"name":"entity.name.function.sql"},"4":{"name":"keyword.other.cascade.sql"}},"match":"(?i:\\\\s*(drop)\\\\s+(table)\\\\s+(\\\\w+)(\\\\s+cascade)?\\\\b)","name":"meta.drop.sql"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.table.sql"}},"match":"(?i:^\\\\s*(alter)\\\\s+(aggregate|conversion|database|domain|function|group|index|language|operator class|operator|proc(edure)?|rule|schema|sequence|table|tablespace|trigger|type|user|view)\\\\s+)","name":"meta.alter.sql"},{"captures":{"1":{"name":"storage.type.sql"},"2":{"name":"storage.type.sql"},"3":{"name":"constant.numeric.sql"},"4":{"name":"storage.type.sql"},"5":{"name":"constant.numeric.sql"},"6":{"name":"storage.type.sql"},"7":{"name":"constant.numeric.sql"},"8":{"name":"constant.numeric.sql"},"9":{"name":"storage.type.sql"},"10":{"name":"constant.numeric.sql"},"11":{"name":"storage.type.sql"},"12":{"name":"storage.type.sql"},"13":{"name":"storage.type.sql"},"14":{"name":"constant.numeric.sql"},"15":{"name":"storage.type.sql"}},"match":"(?i)\\\\b(bigint|bigserial|bit|boolean|box|bytea|cidr|circle|date|double\\\\sprecision|inet|int|integer|line|lseg|macaddr|money|oid|path|point|polygon|real|serial|smallint|sysdate|text)\\\\b|\\\\b(bit\\\\svarying|character\\\\s(?:varying)?|tinyint|var\\\\schar|float|interval)\\\\((\\\\d+)\\\\)|\\\\b(char|number|varchar\\\\d?)\\\\b(?:\\\\((\\\\d+)\\\\))?|\\\\b(numeric|decimal)\\\\b(?:\\\\((\\\\d+),(\\\\d+)\\\\))?|\\\\b(times?)\\\\b(?:\\\\((\\\\d+)\\\\))?(\\\\swith(?:out)?\\\\stime\\\\szone\\\\b)?|\\\\b(timestamp)(s|tz)?\\\\b(?:\\\\((\\\\d+)\\\\))?(\\\\s(with(?:|out))\\\\stime\\\\szone\\\\b)?"},{"match":"(?i:\\\\b((?:primary|foreign)\\\\s+key|references|on\\\\sdelete(\\\\s+cascade)?|nocheck|check|constraint|collate|default)\\\\b)","name":"storage.modifier.sql"},{"match":"\\\\b\\\\d+\\\\b","name":"constant.numeric.sql"},{"match":"(?i:\\\\b(select(\\\\s+(all|distinct))?|insert\\\\s+(ignore\\\\s+)?into|update|delete|from|set|where|group\\\\s+by|or|like|and|union(\\\\s+all)?|having|order\\\\s+by|limit|cross\\\\s+join|join|straight_join|(inner|(left|right|full)(\\\\s+outer)?)\\\\s+join|natural(\\\\s+(inner|(left|right|full)(\\\\s+outer)?))?\\\\s+join)\\\\b)","name":"keyword.other.DML.sql"},{"match":"(?i:\\\\b(on|off|((is\\\\s+)?not\\\\s+)?null)\\\\b)","name":"keyword.other.DDL.create.II.sql"},{"match":"(?i:\\\\bvalues\\\\b)","name":"keyword.other.DML.II.sql"},{"match":"(?i:\\\\b(begin(\\\\s+work)?|start\\\\s+transaction|commit(\\\\s+work)?|rollback(\\\\s+work)?)\\\\b)","name":"keyword.other.LUW.sql"},{"match":"(?i:\\\\b(grant(\\\\swith\\\\sgrant\\\\soption)?|revoke)\\\\b)","name":"keyword.other.authorization.sql"},{"match":"(?i:\\\\bin\\\\b)","name":"keyword.other.data-integrity.sql"},{"match":"(?i:^\\\\s*(comment\\\\s+on\\\\s+(table|column|aggregate|constraint|database|domain|function|index|operator|rule|schema|sequence|trigger|type|view))\\\\s+.*?\\\\s+(is)\\\\s+)","name":"keyword.other.object-comments.sql"},{"match":"(?i)\\\\bAS\\\\b","name":"keyword.other.alias.sql"},{"match":"(?i)\\\\b(DESC|ASC)\\\\b","name":"keyword.other.order.sql"},{"match":"\\\\*","name":"keyword.operator.star.sql"},{"match":"[!<>]?=|<>|[<>]","name":"keyword.operator.comparison.sql"},{"match":"[\\\\-+/]","name":"keyword.operator.math.sql"},{"match":"\\\\|\\\\|","name":"keyword.operator.concatenator.sql"},{"captures":{"1":{"name":"support.function.aggregate.sql"}},"match":"(?i)\\\\b(approx_count_distinct|approx_percentile_cont|approx_percentile_disc|avg|checksum_agg|count|count_big|group|grouping|grouping_id|max|min|sum|stdev|stdevp|var|varp)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.analytic.sql"}},"match":"(?i)\\\\b(cume_dist|first_value|lag|last_value|lead|percent_rank|percentile_cont|percentile_disc)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.bitmanipulation.sql"}},"match":"(?i)\\\\b(bit_count|get_bit|left_shift|right_shift|set_bit)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.conversion.sql"}},"match":"(?i)\\\\b(cast|convert|parse|try_cast|try_convert|try_parse)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.collation.sql"}},"match":"(?i)\\\\b(collationproperty|tertiary_weights)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.cryptographic.sql"}},"match":"(?i)\\\\b(asymkey_id|asymkeyproperty|certproperty|cert_id|crypt_gen_random|decryptbyasymkey|decryptbycert|decryptbykey|decryptbykeyautoasymkey|decryptbykeyautocert|decryptbypassphrase|encryptbyasymkey|encryptbycert|encryptbykey|encryptbypassphrase|hashbytes|is_objectsigned|key_guid|key_id|key_name|signbyasymkey|signbycert|symkeyproperty|verifysignedbycert|verifysignedbyasymkey)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.cursor.sql"}},"match":"(?i)\\\\b(cursor_status)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.datetime.sql"}},"match":"(?i)\\\\b(sysdatetime|sysdatetimeoffset|sysutcdatetime|current_time(stamp)?|getdate|getutcdate|datename|datepart|day|month|year|datefromparts|datetime2fromparts|datetimefromparts|datetimeoffsetfromparts|smalldatetimefromparts|timefromparts|datediff|dateadd|datetrunc|eomonth|switchoffset|todatetimeoffset|isdate|date_bucket)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.datatype.sql"}},"match":"(?i)\\\\b(datalength|ident_current|ident_incr|ident_seed|identity|sql_variant_property)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.expression.sql"}},"match":"(?i)\\\\b(coalesce|nullif)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.globalvar.sql"}},"match":"(?<!@)@@(?i)\\\\b(cursor_rows|connections|cpu_busy|datefirst|dbts|error|fetch_status|identity|idle|io_busy|langid|language|lock_timeout|max_connections|max_precision|nestlevel|options|packet_errors|pack_received|pack_sent|procid|remserver|rowcount|servername|servicename|spid|textsize|timeticks|total_errors|total_read|total_write|trancount|version)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.json.sql"}},"match":"(?i)\\\\b(json|isjson|json_object|json_array|json_value|json_query|json_modify|json_path_exists)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.logical.sql"}},"match":"(?i)\\\\b(choose|iif|greatest|least)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.mathematical.sql"}},"match":"(?i)\\\\b(abs|acos|asin|atan|atn2|ceiling|cos|cot|degrees|exp|floor|log|log10|pi|power|radians|rand|round|sign|sin|sqrt|square|tan)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.metadata.sql"}},"match":"(?i)\\\\b(app_name|applock_mode|applock_test|assemblyproperty|col_length|col_name|columnproperty|database_principal_id|databasepropertyex|db_id|db_name|file_id|file_idex|file_name|filegroup_id|filegroup_name|filegroupproperty|fileproperty|fulltextcatalogproperty|fulltextserviceproperty|index_col|indexkey_property|indexproperty|object_definition|object_id|object_name|object_schema_name|objectproperty|objectpropertyex|original_db_name|parsename|schema_id|schema_name|scope_identity|serverproperty|stats_date|type_id|type_name|typeproperty)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.ranking.sql"}},"match":"(?i)\\\\b(rank|dense_rank|ntile|row_number)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.rowset.sql"}},"match":"(?i)\\\\b(generate_series|opendatasource|openjson|openrowset|openquery|openxml|predict|string_split)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.security.sql"}},"match":"(?i)\\\\b(certencoded|certprivatekey|current_user|database_principal_id|has_perms_by_name|is_member|is_rolemember|is_srvrolemember|original_login|permissions|pwdcompare|pwdencrypt|schema_id|schema_name|session_user|suser_id|suser_sid|suser_sname|system_user|suser_name|user_id|user_name)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.string.sql"}},"match":"(?i)\\\\b(ascii|char|charindex|concat|difference|format|left|len|lower|ltrim|nchar|nodes|patindex|quotename|replace|replicate|reverse|right|rtrim|soundex|space|str|string_agg|string_escape|string_split|stuff|substring|translate|trim|unicode|upper)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.system.sql"}},"match":"(?i)\\\\b(binary_checksum|checksum|compress|connectionproperty|context_info|current_request_id|current_transaction_id|decompress|error_line|error_message|error_number|error_procedure|error_severity|error_state|formatmessage|get_filestream_transaction_context|getansinull|host_id|host_name|isnull|isnumeric|min_active_rowversion|newid|newsequentialid|rowcount_big|session_context|session_id|xact_state)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.textimage.sql"}},"match":"(?i)\\\\b(patindex|textptr|textvalid)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"constant.other.database-name.sql"},"2":{"name":"constant.other.table-name.sql"}},"match":"(\\\\w+?)\\\\.(\\\\w+)"},{"include":"#strings"},{"include":"#regexps"},{"match":"\\\\b(?i)(abort|abort_after_wait|absent|absolute|accent_sensitivity|acceptable_cursopt|acp|action|activation|add|address|admin|aes_128|aes_192|aes_256|affinity|after|aggregate|algorithm|all_constraints|all_errormsgs|all_indexes|all_levels|all_results|allow_connections|allow_dup_row|allow_encrypted_value_modifications|allow_page_locks|allow_row_locks|allow_snapshot_isolation|alter|altercolumn|always|anonymous|ansi_defaults|ansi_null_default|ansi_null_dflt_off|ansi_null_dflt_on|ansi_nulls|ansi_padding|ansi_warnings|appdomain|append|application|apply|arithabort|arithignore|array|assembly|asymmetric|asynchronous_commit|at|atan2|atomic|attach|attach_force_rebuild_log|attach_rebuild_log|audit|auth_realm|authentication|auto|auto_cleanup|auto_close|auto_create_statistics|auto_drop|auto_shrink|auto_update_statistics|auto_update_statistics_async|automated_backup_preference|automatic|autopilot|availability|availability_mode|backup|backup_priority|base64|basic|batches|batchsize|before|between|bigint|binary|binding|bit|block|blockers|blocksize|bmk|both|break|broker|broker_instance|bucket_count|buffer|buffercount|bulk_logged|by|call|caller|card|case|catalog|catch|cert|certificate|change_retention|change_tracking|change_tracking_context|changes|char|character|character_set|check_expiration|check_policy|checkconstraints|checkindex|checkpoint|checksum|cleanup_policy|clear|clear_port|close|clustered|codepage|collection|column_encryption_key|column_master_key|columnstore|columnstore_archive|colv_80_to_100|colv_100_to_80|commit_differential_base|committed|compatibility_level|compress_all_row_groups|compression|compression_delay|concat_null_yields_null|concatenate|configuration|connect|connection|containment|continue|continue_after_error|contract|contract_name|control|conversation|conversation_group_id|conversation_handle|copy|copy_only|count_rows|counter|create(\\\\\\\\s+or\\\\\\\\s+alter)?|credential|cross|cryptographic|cryptographic_provider|cube|cursor|cursor_close_on_commit|cursor_default|data|data_compression|data_flush_interval_seconds|data_mirroring|data_purity|data_source|database|database_name|database_snapshot|datafiletype|date_correlation_optimization|date|datefirst|dateformat|date_format|datetime|datetime2|datetimeoffset|day(s)?|db_chaining|dbid|dbidexec|dbo_only|deadlock_priority|deallocate|dec|decimal|declare|decrypt|decrypt_a|decryption|default_database|default_fulltext_language|default_language|default_logon_domain|default_schema|definition|delay|delayed_durability|delimitedtext|density_vector|dependent|des|description|desired_state|desx|differential|digest|disable|disable_broker|disable_def_cnst_chk|disabled|disk|distinct|distributed|distribution|drop|drop_existing|dts_buffers|dump|durability|dynamic|edition|elements|else|emergency|empty|enable|enable_broker|enabled|encoding|encrypted|encrypted_value|encryption|encryption_type|end|endpoint|endpoint_url|enhancedintegrity|entry|error_broker_conversations|errorfile|estimateonly|event|except|exec|executable|execute|exists|expand|expiredate|expiry_date|explicit|external|external_access|failover|failover_mode|failure_condition_level|fast|fast_forward|fastfirstrow|federated_service_account|fetch|field_terminator|fieldterminator|file|filelistonly|filegroup|filegrowth|filename|filestream|filestream_log|filestream_on|filetable|file_format|filter|first_row|fips_flagger|fire_triggers|first|firstrow|float|flush_interval_seconds|fmtonly|following|for|force|force_failover_allow_data_loss|force_service_allow_data_loss|forced|forceplan|formatfile|format_options|format_type|formsof|forward_only|free_cursors|free_exec_context|fullscan|fulltext|fulltextall|fulltextkey|function|generated|get|geography|geometry|global|go|goto|governor|guid|hadoop|hardening|hash|hashed|header_limit|headeronly|health_check_timeout|hidden|hierarchyid|histogram|histogram_steps|hits_cursors|hits_exec_context|hour(s)?|http|identity|identity_value|if|ifnull|ignore|ignore_constraints|ignore_dup_key|ignore_dup_row|ignore_triggers|image|immediate|implicit_transactions|include|include_null_values|incremental|index|inflectional|init|initiator|insensitive|insert|instead|int|integer|integrated|intersect|intermediate|interval_length_minutes|into|inuse_cursors|inuse_exec_context|io|is|isabout|iso_week|isolation|job_tracker_location|json|keep|keep_nulls|keep_replication|keepdefaults|keepfixed|keepidentity|keepnulls|kerberos|key|key_path|key_source|key_store_provider_name|keyset|kill|kilobytes_per_batch|labelonly|langid|language|last|lastrow|leading|legacy_cardinality_estimation|length|level|lifetime|lineage_80_to_100|lineage_100_to_80|listener_ip|listener_port|load|loadhistory|lob_compaction|local|local_service_name|locate|location|lock_escalation|lock_timeout|lockres|log|login|login_type|loop|manual|mark_in_use_for_removal|masked|master|match|matched|max_queue_readers|max_duration|max_outstanding_io_per_volume|maxdop|maxerrors|maxlength|maxtransfersize|max_plans_per_query|max_storage_size_mb|mediadescription|medianame|mediapassword|memogroup|memory_optimized|merge|message|message_forward_size|message_forwarding|microsecond|millisecond|minute(s)?|mirror_address|misses_cursors|misses_exec_context|mixed|modify|money|month|move|multi_user|must_change|name|namespace|nanosecond|native|native_compilation|nchar|ncharacter|nested_triggers|never|new_account|new_broker|newname|next|no|no_browsetable|no_checksum|no_compression|no_infomsgs|no_triggers|no_truncate|nocount|noexec|noexpand|noformat|noinit|nolock|nonatomic|nonclustered|nondurable|none|norecompute|norecovery|noreset|norewind|noskip|not|notification|nounload|now|nowait|ntext|ntlm|nulls|numeric|numeric_roundabort|nvarchar|object|objid|oem|offline|old_account|online|operation_mode|open|openjson|optimistic|option|orc|out|outer|output|over|override|owner|ownership|pad_index|page|page_checksum|page_verify|pagecount|paglock|param|parameter_sniffing|parameter_type_expansion|parameterization|parquet|parseonly|partial|partition|partner|password|path|pause|percentage|permission_set|persisted|period|physical_only|plan_forcing_mode|policy|pool|population|ports|preceding|precision|predicate|presume_abort|primary|primary_role|print|prior|priority |priority_level|private|proc(edure)?|procedure_name|profile|provider|quarter|query_capture_mode|query_governor_cost_limit|query_optimizer_hotfixes|query_store|queue|quoted_identifier|raiserror|range|raw|rcfile|rc2|rc4|rc4_128|rdbms|read_committed_snapshot|read|read_only|read_write|readcommitted|readcommittedlock|readonly|readpast|readuncommitted|readwrite|real|rebuild|receive|recmodel_70backcomp|recompile|reconfigure|recovery|recursive|recursive_triggers|redo_queue|reject_sample_value|reject_type|reject_value|relative|remote|remote_data_archive|remote_proc_transactions|remote_service_name|remove|removed_cursors|removed_exec_context|reorganize|repeat|repeatable|repeatableread|replace|replica|replicated|replnick_100_to_80|replnickarray_80_to_100|replnickarray_100_to_80|required|required_cursopt|resample|reset|resource|resource_manager_location|respect|restart|restore|restricted_user|resume|retaindays|retention|return|revert|rewind|rewindonly|returns|robust|role|rollup|root|round_robin|route|row|rowdump|rowguidcol|rowlock|row_terminator|rows|rows_per_batch|rowsets_only|rowterminator|rowversion|rsa_1024|rsa_2048|rsa_3072|rsa_4096|rsa_512|safe|safety|sample|save|scalar|schema|schemabinding|scoped|scroll|scroll_locks|sddl|second|secexpr|seconds|secondary|secondary_only|secondary_role|secret|security|securityaudit|selective|self|send|sent|sequence|serde_method|serializable|server|service|service_broker|service_name|service_objective|session_timeout|session|sessions|seterror|setopts|sets|shard_map_manager|shard_map_name|sharded|shared_memory|shortest_path|show_statistics|showplan_all|showplan_text|showplan_xml|showplan_xml_with_recompile|shrinkdb|shutdown|sid|signature|simple|single_blob|single_clob|single_nclob|single_user|singleton|site|size|size_based_cleanup_mode|skip|smalldatetime|smallint|smallmoney|snapshot|snapshot_import|snapshotrestorephase|soap|softnuma|sort_in_tempdb|sorted_data|sorted_data_reorg|spatial|sql|sql_bigint|sql_binary|sql_bit|sql_char|sql_date|sql_decimal|sql_double|sql_float|sql_guid|sql_handle|sql_longvarbinary|sql_longvarchar|sql_numeric|sql_real|sql_smallint|sql_time|sql_timestamp|sql_tinyint|sql_tsi_day|sql_tsi_frac_second|sql_tsi_hour|sql_tsi_minute|sql_tsi_month|sql_tsi_quarter|sql_tsi_second|sql_tsi_week|sql_tsi_year|sql_type_date|sql_type_time|sql_type_timestamp|sql_varbinary|sql_varchar|sql_variant|sql_wchar|sql_wlongvarchar|ssl|ssl_port|standard|standby|start|start_date|started|stat_header|state|statement|static|statistics|statistics_incremental|statistics_norecompute|statistics_only|statman|stats|stats_stream|status|stop|stop_on_error|stopat|stopatmark|stopbeforemark|stoplist|stopped|string_delimiter|subject|supplemental_logging|supported|suspend|symmetric|synchronous_commit|synonym|sysname|system|system_time|system_versioning|table|tableresults|tablock|tablockx|take|tape|target|target_index|target_partition|target_recovery_time|tcp|temporal_history_retention|text|textimage_on|then|thesaurus|throw|time|timeout|timestamp|tinyint|to|top|torn_page_detection|track_columns_updated|trailing|tran|transaction|transfer|transform_noise_words|triple_des|triple_des_3key|truncate|trustworthy|try|tsql|two_digit_year_cutoff|type|type_desc|type_warning|tzoffset|uid|unbounded|uncommitted|unique|uniqueidentifier|unlimited|unload|unlock|unsafe|updlock|url|use|useplan|useroptions|use_type_default|using|utcdatetime|valid_xml|validation|value|values|varbinary|varchar|vector|verbose|verifyonly|version|view_metadata|virtual_device|visiblity|wait_at_low_priority|waitfor|webmethod|week|weekday|weight|well_formed_xml|when|while|widechar|widechar_ansi|widenative|window|windows|with|within|within group|witness|without|without_array_wrapper|workload|wsdl|xact_abort|xlock|xml|xmlschema|xquery|xsinil|year|zone)\\\\b","name":"keyword.other.sql"},{"captures":{"1":{"name":"punctuation.section.scope.begin.sql"},"2":{"name":"punctuation.section.scope.end.sql"}},"match":"(\\\\()(\\\\))","name":"meta.block.sql"}],"repository":{"comment-block":{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.sql"}},"end":"\\\\*/","name":"comment.block","patterns":[{"include":"#comment-block"}]},"comments":{"patterns":[{"begin":"(^[ \\\\t]+)?(?=--)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.sql"}},"end":"(?!\\\\G)","patterns":[{"begin":"--","beginCaptures":{"0":{"name":"punctuation.definition.comment.sql"}},"end":"\\\\n","name":"comment.line.double-dash.sql"}]},{"begin":"(^[ \\\\t]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.sql"}},"end":"(?!\\\\G)","patterns":[]},{"include":"#comment-block"}]},"regexps":{"patterns":[{"begin":"/(?=\\\\S.*/)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"/","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.regexp.sql","patterns":[{"include":"#string_interpolation"},{"match":"\\\\\\\\/","name":"constant.character.escape.slash.sql"}]},{"begin":"%r\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.regexp.modr.sql","patterns":[{"include":"#string_interpolation"}]}]},"string_escape":{"match":"\\\\\\\\.","name":"constant.character.escape.sql"},"string_interpolation":{"captures":{"1":{"name":"punctuation.definition.string.begin.sql"},"3":{"name":"punctuation.definition.string.end.sql"}},"match":"(#\\\\{)([^}]*)(})","name":"string.interpolated.sql"},"strings":{"patterns":[{"captures":{"2":{"name":"punctuation.definition.string.begin.sql"},"3":{"name":"punctuation.definition.string.end.sql"}},"match":"(N)?(\')[^\']*(\')","name":"string.quoted.single.sql"},{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.quoted.single.sql","patterns":[{"include":"#string_escape"}]},{"captures":{"1":{"name":"punctuation.definition.string.begin.sql"},"2":{"name":"punctuation.definition.string.end.sql"}},"match":"(`)[^`\\\\\\\\]*(`)","name":"string.quoted.other.backtick.sql"},{"begin":"`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"`","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.quoted.other.backtick.sql","patterns":[{"include":"#string_escape"}]},{"captures":{"1":{"name":"punctuation.definition.string.begin.sql"},"2":{"name":"punctuation.definition.string.end.sql"}},"match":"(\\")[^\\"#]*(\\")","name":"string.quoted.double.sql"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.quoted.double.sql","patterns":[{"include":"#string_interpolation"}]},{"begin":"%\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.other.quoted.brackets.sql","patterns":[{"include":"#string_interpolation"}]}]}},"scopeName":"source.sql"}')),c8=[a8],u8=Object.freeze(JSON.parse('{"displayName":"JSON","name":"json","patterns":[{"include":"#value"}],"repository":{"array":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.array.begin.json"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.array.end.json"}},"name":"meta.structure.array.json","patterns":[{"include":"#value"},{"match":",","name":"punctuation.separator.array.json"},{"match":"[^\\\\s\\\\]]","name":"invalid.illegal.expected-array-separator.json"}]},"comments":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.documentation.json"},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.json"},{"captures":{"1":{"name":"punctuation.definition.comment.json"}},"match":"(//).*$\\\\n?","name":"comment.line.double-slash.js"}]},"constant":{"match":"\\\\b(?:true|false|null)\\\\b","name":"constant.language.json"},"number":{"match":"-?(?:0|[1-9]\\\\d*)(?:(?:\\\\.\\\\d+)?(?:[eE][+\\\\-]?\\\\d+)?)?","name":"constant.numeric.json"},"object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.json"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.json"}},"name":"meta.structure.dictionary.json","patterns":[{"include":"#objectkey"},{"include":"#comments"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.dictionary.key-value.json"}},"end":"(,)|(?=})","endCaptures":{"1":{"name":"punctuation.separator.dictionary.pair.json"}},"name":"meta.structure.dictionary.value.json","patterns":[{"include":"#value"},{"match":"[^\\\\s,]","name":"invalid.illegal.expected-dictionary-separator.json"}]},{"match":"[^\\\\s}]","name":"invalid.illegal.expected-dictionary-separator.json"}]},"objectkey":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.support.type.property-name.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.support.type.property-name.end.json"}},"name":"string.json support.type.property-name.json","patterns":[{"include":"#stringcontent"}]},"string":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.json"}},"name":"string.quoted.double.json","patterns":[{"include":"#stringcontent"}]},"stringcontent":{"patterns":[{"match":"\\\\\\\\(?:[\\"\\\\\\\\/bfnrt]|u\\\\h{4})","name":"constant.character.escape.json"},{"match":"\\\\\\\\.","name":"invalid.illegal.unrecognized-string-escape.json"}]},"value":{"patterns":[{"include":"#constant"},{"include":"#number"},{"include":"#string"},{"include":"#array"},{"include":"#object"},{"include":"#comments"}]}},"scopeName":"source.json"}')),d8=[u8],Ue=String.raw,ju=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]);function f8(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function Xt(e,t){if(!e)throw new Error(t??"Value expected");return e}const B={Alternator:"Alternator",Assertion:"Assertion",Backreference:"Backreference",Character:"Character",CharacterClassClose:"CharacterClassClose",CharacterClassHyphen:"CharacterClassHyphen",CharacterClassIntersector:"CharacterClassIntersector",CharacterClassOpen:"CharacterClassOpen",CharacterSet:"CharacterSet",Directive:"Directive",GroupClose:"GroupClose",GroupOpen:"GroupOpen",Subroutine:"Subroutine",Quantifier:"Quantifier",EscapedNumber:"EscapedNumber"},Ne={any:"any",digit:"digit",dot:"dot",grapheme:"grapheme",hex:"hex",newline:"newline",posix:"posix",property:"property",space:"space",word:"word"},Tu={flags:"flags",keep:"keep"},Je={absent_repeater:"absent_repeater",atomic:"atomic",capturing:"capturing",group:"group",lookahead:"lookahead",lookbehind:"lookbehind"},Dr={greedy:"greedy",lazy:"lazy",possessive:"possessive"},Vf=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]),tg=Ue`\[\^?`,ng=`c.? | C(?:-.?)?|${Ue`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Ue`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Ue`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Ue`o\{[^\}]*\}?`}|${Ue`\d{1,3}`}`,rg=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,dl=new RegExp(Ue`
53
- \\ (?:
54
- ${ng}
55
- | [gk]<[^>]*>?
56
- | [gk]'[^']*'?
57
- | .
58
- )
59
- | \( (?:
60
- \? (?:
61
- [:=!>({]
62
- | <[=!]
63
- | <[^>]*>
64
- | '[^']*'
65
- | ~\|?
66
- | #(?:[^)\\]|\\.?)*
67
- | [^:)]*[:)]
68
- )?
69
- | \*
70
- )?
71
- | ${rg.source}
72
- | ${tg}
73
- | .
74
- `.replace(/\s+/g,""),"gsu"),Aa=new RegExp(Ue`
75
- \\ (?:
76
- ${ng}
77
- | .
78
- )
79
- | \[:(?:\^?\p{Alpha}+|\^):\]
80
- | ${tg}
81
- | &&
82
- | .
83
- `.replace(/\s+/g,""),"gsu");function m8(e,t={}){const n={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const r=C8(n.flags),o=[r.extended],s={captureGroup:n.rules.captureGroup,getCurrentModX:()=>o.at(-1),numOpenGroups:0,popModX(){o.pop()},pushModX(m){o.push(m)},replaceCurrentModX(m){o[o.length-1]=m},singleline:n.rules.singleline};let l=[],i;for(dl.lastIndex=0;i=dl.exec(e);){const m=p8(s,e,i[0],dl.lastIndex);m.tokens?l.push(...m.tokens):m.token&&l.push(m.token),m.lastIndex!==void 0&&(dl.lastIndex=m.lastIndex)}const c=[];let d=0;l.forEach(m=>{m.type===B.GroupOpen&&(m.kind===Je.capturing?m.number=++d:m.raw==="("&&c.push(m))}),d||c.forEach((m,p)=>{m.kind=Je.capturing,m.number=p+1});const f=d||c.length;return l=l.map(m=>m.type===B.EscapedNumber?k8(m,f):m).flat(),{tokens:l,flags:r}}function p8(e,t,n,r){const[o,s]=n;if(o==="["){const l=h8(t,n,r);return{tokens:l.tokens,lastIndex:l.lastIndex}}if(o==="\\"){if("AbBGyYzZ".includes(s))return{token:re(B.Assertion,n,{kind:n})};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:re(B.Subroutine,n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:re(B.Backreference,n)}}if(s==="K")return{token:re(B.Directive,n,{kind:Tu.keep})};if(s==="N"||s==="R")return{token:re(B.CharacterSet,n,{kind:Ne.newline,negate:s==="N"})};if(s==="O")return{token:re(B.CharacterSet,n,{kind:Ne.any})};if(s==="X")return{token:re(B.CharacterSet,n,{kind:Ne.grapheme})};const l=og(n,{inCharClass:!1});return Array.isArray(l)?{tokens:l}:{token:l}}if(o==="("){if(n==="(*")throw new Error(`Unsupported named callout "${n}"`);if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(t[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:v8(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:re(B.GroupOpen,n,{kind:Je.group})};if(n==="(?>")return{token:re(B.GroupOpen,n,{kind:Je.atomic})};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:re(B.GroupOpen,n,{kind:n[2]==="<"?Je.lookbehind:Je.lookahead,negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'")){const l=re(B.GroupOpen,n,{kind:Je.capturing});return n!=="("&&(l.name=n.slice(3,-1)),{token:l}}if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absent function kind "${n}"`);return{token:re(B.GroupOpen,n,{kind:Je.absent_repeater})}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:re(B.GroupClose,n)}}if(n==="#"&&e.getCurrentModX()){const l=t.indexOf(`
84
- `,r);return{lastIndex:l===-1?t.length:l}}if(/^\s$/.test(n)&&e.getCurrentModX()){const l=/\s+/y;return l.lastIndex=r,{lastIndex:l.exec(t)?l.lastIndex:r}}if(n===".")return{token:re(B.CharacterSet,n,{kind:Ne.dot})};if(n==="^"||n==="$"){const l=e.singleline?{"^":Ue`\A`,$:Ue`\Z`}[n]:n;return{token:re(B.Assertion,n,{kind:l})}}return n==="|"?{token:re(B.Alternator,n)}:rg.test(n)?{token:b8(n)}:(sg(n),{token:re(B.Character,n,{value:n.codePointAt(0)})})}function h8(e,t,n){const r=[re(B.CharacterClassOpen,t,{negate:t[1]==="^"})];let o=1,s;for(Aa.lastIndex=n;s=Aa.exec(e);){const l=s[0];if(l[0]==="["&&l[1]!==":")o++,r.push(re(B.CharacterClassOpen,l,{negate:l[1]==="^"}));else if(l==="]"){if(r.at(-1).type===B.CharacterClassOpen)r.push(re(B.Character,l,{value:93}));else if(o--,r.push(re(B.CharacterClassClose,l)),!o)break}else{const i=g8(l);Array.isArray(i)?r.push(...i):r.push(i)}}return{tokens:r,lastIndex:Aa.lastIndex||e.length}}function g8(e){if(e[0]==="\\")return og(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!ju.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return re(B.CharacterSet,e,{kind:Ne.posix,value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?re(B.CharacterClassHyphen,e):e==="&&"?re(B.CharacterClassIntersector,e):(sg(e),re(B.Character,e,{value:e.codePointAt(0)}))}function og(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return y8(e);if("dDhHsSwW".includes(n))return w8(e);if(e.startsWith(Ue`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return x8(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const r=e.split(/\\x/).slice(1).map(l=>parseInt(l,16)),o=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),s=new TextEncoder;return[...o].map(l=>{const i=[...s.encode(l)].map(c=>`\\x${c.toString(16)}`).join("");return re(B.Character,i,{value:l.codePointAt(0)})})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return re(B.Character,e,{value:_8(e)});if(Vf.has(n))return re(B.Character,e,{value:Vf.get(n)});if(/\d/.test(n))return re(B.EscapedNumber,e,{inCharClass:t});if(e==="\\")throw new Error(Ue`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return re(B.Character,e,{value:e.codePointAt(1)});throw new Error(`Unexpected escape "${e}"`)}function re(e,t,n){return{type:e,raw:t,...n}}function y8(e){const t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return re(B.Character,e,{value:t.toUpperCase().codePointAt(0)-64})}function v8(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??(r="");const o=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),s=Hf(n),l=Hf(r),i={};if(s&&(i.enable=s),l&&(i.disable=l),e.endsWith(")"))return t.replaceCurrentModX(o),re(B.Directive,e,{kind:Tu.flags,flags:i});if(e.endsWith(":")){t.pushModX(o),t.numOpenGroups++;const c=re(B.GroupOpen,e,{kind:Je.group});return(s||l)&&(c.flags=i),c}throw new Error(`Unexpected flag modifier "${e}"`)}function b8(e){const t={};if(e[0]==="{"){const{min:n,max:r}=/^\{(?<min>\d*)(?:,(?<max>\d*))?/.exec(e).groups,o=1e5;if(+n>o||+r>o)throw new Error("Quantifier value unsupported in Oniguruma");t.min=+n,t.max=r===void 0?+n:r===""?1/0:+r,t.kind=e.endsWith("?")?Dr.lazy:Dr.greedy}else t.min=e[0]==="+"?1:0,t.max=e[0]==="?"?1:1/0,t.kind=e[1]==="+"?Dr.possessive:e[1]==="?"?Dr.lazy:Dr.greedy;return re(B.Quantifier,e,t)}function w8(e){const t=e[1].toLowerCase();return re(B.CharacterSet,e,{kind:{d:Ne.digit,h:Ne.hex,s:Ne.space,w:Ne.word}[t],negate:e[1]!==t})}function x8(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups,o=t==="P"&&!n||t==="p"&&!!n;return re(B.CharacterSet,e,{kind:Ne.property,value:r,negate:o})}function Hf(e){const t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function C8(e){if(!/^[imxDPSW]*$/.test(e))throw new Error(`Flags "${e}" includes unsupported value`);const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1};for(const n of e)t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[n]]=!0;return t}function _8(e){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(e))throw new Error(`Incomplete or invalid escape "${e}"`);const t=e[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function k8(e,t){const{raw:n,inCharClass:r}=e,o=n.slice(1);if(!r&&(o!=="0"&&o.length===1||o[0]!=="0"&&+o<=t))return[re(B.Backreference,n)];const s=[],l=o.match(/^[0-7]+|\d/g);for(let i=0;i<l.length;i++){const c=l[i];let d;if(i===0&&c!=="8"&&c!=="9"){if(d=parseInt(c,8),d>127)throw new Error(Ue`Octal encoded byte above 177 unsupported "${n}"`)}else d=c.codePointAt(0);s.push(re(B.Character,(i===0?"\\":"")+c,{value:d}))}return s}function sg(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`)}const A={AbsentFunction:"AbsentFunction",Alternative:"Alternative",Assertion:"Assertion",Backreference:"Backreference",CapturingGroup:"CapturingGroup",Character:"Character",CharacterClass:"CharacterClass",CharacterClassRange:"CharacterClassRange",CharacterSet:"CharacterSet",Directive:"Directive",Flags:"Flags",Group:"Group",LookaroundAssertion:"LookaroundAssertion",Pattern:"Pattern",Quantifier:"Quantifier",Regex:"Regex",Subroutine:"Subroutine",Recursion:"Recursion"},lg={repeater:"repeater"},be={grapheme_boundary:"grapheme_boundary",line_end:"line_end",line_start:"line_start",search_start:"search_start",string_end:"string_end",string_end_newline:"string_end_newline",string_start:"string_start",word_boundary:"word_boundary"},pn={union:"union",intersection:"intersection"},Le=Ne,Xo=Tu,Sc=Dr,Wn={lookahead:"lookahead",lookbehind:"lookbehind"};function ig(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=m8(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),o={capturingGroups:[],current:0,hasNumberedRef:!1,namedGroupsByName:new Map,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],token:null,tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:s};function s(p,h){const g=r.tokens[o.current];switch(o.parent=p,o.token=g,o.current++,g.type){case B.Alternator:return En();case B.Assertion:return I8(g);case B.Backreference:return S8(o);case B.Character:return Lu(g.value,{useLastValid:!!h.isCheckingRangeEnd});case B.CharacterClassHyphen:return R8(o,h);case B.CharacterClassOpen:return E8(o,h);case B.CharacterSet:return j8(o);case B.Directive:return N8(Xt(Xo[g.kind],`Unexpected directive kind "${g.kind}"`),{flags:g.flags});case B.GroupOpen:return T8(o,h);case B.Quantifier:return L8(o);case B.Subroutine:return M8(o);default:throw new Error(`Unexpected token type "${g.type}"`)}}const l=F8($8(),O8(r.flags));let i=l.pattern.alternatives[0];for(;o.current<r.tokens.length;){const p=s(i,{});p.type===A.Alternative?(l.pattern.alternatives.push(p),i=p):i.elements.push(p)}const{capturingGroups:c,hasNumberedRef:d,namedGroupsByName:f,subroutines:m}=o;if(d&&f.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:p}of m)if(typeof p=="number"){if(p>c.length)throw new Error("Subroutine uses a group number that's not defined")}else if(f.has(p)){if(f.get(p).length>1)throw new Error(Ue`Subroutine uses a duplicate group name "\g<${p}>"`)}else throw new Error(Ue`Subroutine uses a group name that's not defined "\g<${p}>"`);return l}function S8(e){const{raw:t}=e.token,n=/^\\k[<']/.test(t),r=n?t.slice(3,-1):t.slice(1),o=(s,l=!1)=>{const i=e.capturingGroups.length;let c=!1;if(s>i)if(e.skipBackrefValidation)c=!0;else throw new Error(`Not enough capturing groups defined to the left "${t}"`);return e.hasNumberedRef=!0,Rc(l?i+1-s:s,{orphan:c})};if(n){const s=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(s)return o(+s.groups.num,!!s.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${t}"`);if(!e.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${t}"`);return Rc(r)}return o(+r)}function R8(e,t){const{parent:n,tokens:r,walk:o}=e,s=n.elements.at(-1),l=r[e.current];if(!t.isCheckingRangeEnd&&s&&s.type!==A.CharacterClass&&s.type!==A.CharacterClassRange&&l&&l.type!==B.CharacterClassOpen&&l.type!==B.CharacterClassClose&&l.type!==B.CharacterClassIntersector){const i=o(n,{...t,isCheckingRangeEnd:!0});if(s.type===A.Character&&i.type===A.Character)return n.elements.pop(),D8(s,i);throw new Error("Invalid character class range")}return Lu(45)}function E8(e,t){const{token:n,tokens:r,walk:o}=e,s=r[e.current],l=[Ll()];let i=Zf(s);for(;i.type!==B.CharacterClassClose;){if(i.type===B.CharacterClassIntersector)l.push(Ll()),e.current++;else{const d=l.at(-1);d.elements.push(o(d,t))}i=Zf(r[e.current],s)}const c=Ll({negate:n.negate});return l.length===1?c.elements=l[0].elements:(c.kind=pn.intersection,c.elements=l.map(d=>d.elements.length===1?d.elements[0]:d)),e.current++,c}function j8({token:e,normalizeUnknownPropertyNames:t,skipPropertyNameValidation:n,unicodePropertyMap:r}){let{kind:o,negate:s,value:l}=e;if(o===Ne.property){const i=zi(l);if(ju.has(i)&&!r?.has(i))o=Ne.posix,l=i;else return Nr(l,{negate:s,normalizeUnknownPropertyNames:t,skipPropertyNameValidation:n,unicodePropertyMap:r})}return o===Ne.posix?z8(l,{negate:s}):Ec(o,{negate:s})}function T8(e,t){const{token:n,tokens:r,capturingGroups:o,namedGroupsByName:s,skipLookbehindValidation:l,walk:i}=e;let c=P8(n);const d=c.type===A.AbsentFunction,f=c.kind===Wn.lookbehind,m=f&&c.negate;if(c.type===A.CapturingGroup&&(o.push(c),c.name&&f8(s,c.name,[]).push(c)),d&&t.isInAbsentFunction)throw new Error("Nested absent function not supported by Oniguruma");let p=Xf(r[e.current]);for(;p.type!==B.GroupClose;){if(p.type===B.Alternator)c.alternatives.push(En()),e.current++;else{const h=c.alternatives.at(-1),g=i(h,{...t,isInAbsentFunction:t.isInAbsentFunction||d,isInLookbehind:t.isInLookbehind||f,isInNegLookbehind:t.isInNegLookbehind||m});if(h.elements.push(g),(f||t.isInLookbehind)&&!l){const y="Lookbehind includes a pattern not allowed by Oniguruma";if(m||t.isInNegLookbehind){if(g.kind===Wn.lookahead||g.type===A.CapturingGroup)throw new Error(y)}else if(g.kind===Wn.lookahead||g.kind===Wn.lookbehind&&g.negate)throw new Error(y)}}p=Xf(r[e.current])}return e.current++,c}function L8({token:e,parent:t}){const{min:n,max:r,kind:o}=e,s=t.elements.at(-1);if(!s||s.type===A.Assertion||s.type===A.Directive||s.type===A.LookaroundAssertion)throw new Error("Quantifier requires a repeatable token");const l=ug(s,n,r,Xt(Sc[o],`Unexpected quantifier kind "${o}"`));return t.elements.pop(),l}function M8(e){const{token:t,capturingGroups:n,subroutines:r}=e;let o=t.raw.slice(3,-1);const s=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(o);if(s){const i=+s.groups.num,c=n.length;if(e.hasNumberedRef=!0,o={"":i,"+":c+i,"-":c+1-i}[s.groups.sign],o<1)throw new Error("Invalid subroutine number")}else o==="0"&&(o=0);const l=B8(o);return r.push(l),l}function A8(e){return{type:A.AbsentFunction,kind:e,alternatives:[En()]}}function En(){return{type:A.Alternative,elements:[]}}function ag(e,t){const n={type:A.Assertion,kind:e};return(e===be.word_boundary||e===be.grapheme_boundary)&&(n.negate=!!t?.negate),n}function I8({kind:e}){return ag(Xt({"^":be.line_start,$:be.line_end,"\\A":be.string_start,"\\b":be.word_boundary,"\\B":be.word_boundary,"\\G":be.search_start,"\\y":be.grapheme_boundary,"\\Y":be.grapheme_boundary,"\\z":be.string_end,"\\Z":be.string_end_newline}[e],`Unexpected assertion kind "${e}"`),{negate:e===Ue`\B`||e===Ue`\Y`})}function Rc(e,t){const n=!!t?.orphan;return{type:A.Backreference,ref:e,...n&&{orphan:n}}}function P8({flags:e,kind:t,name:n,negate:r,number:o}){switch(t){case Je.absent_repeater:return A8(lg.repeater);case Je.atomic:return Mt({atomic:!0});case Je.capturing:return cg(o,n);case Je.group:return Mt({flags:e});case Je.lookahead:case Je.lookbehind:return Ko({behind:t===Je.lookbehind,negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function cg(e,t){const n=t!==void 0;if(n&&!q8(t))throw new Error(`Group name "${t}" invalid in Oniguruma`);return{type:A.CapturingGroup,number:e,...n&&{name:t},alternatives:[En()]}}function Lu(e,t){const n={useLastValid:!1,...t};if(e>1114111){const r=e.toString(16);if(n.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${r}}"`):new Error(`Invalid code point out of range in JS "\\x{${r}}"`)}return{type:A.Character,value:e}}function Ll(e){const t={kind:pn.union,negate:!1,...e};return{type:A.CharacterClass,kind:t.kind,negate:t.negate,elements:[]}}function D8(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:A.CharacterClassRange,min:e,max:t}}function Ec(e,t){const n=!!t?.negate,r={type:A.CharacterSet,kind:Xt(Le[e],`Unexpected character set kind "${e}"`)};return(e===Ne.digit||e===Ne.hex||e===Ne.newline||e===Ne.space||e===Ne.word)&&(r.negate=n),(e===Ne.grapheme||e===Ne.newline&&!n)&&(r.variableLength=!0),r}function N8(e,t){const n={type:A.Directive,kind:e};return e===Xo.flags&&(n.flags=t.flags),n}function O8(e){return{type:A.Flags,...e}}function Mt(e){const t=e?.atomic,n=e?.flags;return{type:A.Group,...t&&{atomic:t},...n&&{flags:n},alternatives:[En()]}}function Ko(e){const t={behind:!1,negate:!1,...e};return{type:A.LookaroundAssertion,kind:t.behind?Wn.lookbehind:Wn.lookahead,negate:t.negate,alternatives:[En()]}}function $8(){return{type:A.Pattern,alternatives:[En()]}}function z8(e,t){const n=!!t?.negate;if(!ju.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:A.CharacterSet,kind:Le.posix,value:e,negate:n}}function ug(e,t,n,r=Sc.greedy){const o={type:A.Quantifier,min:t,max:n,kind:r,element:e};return n<t?{...o,min:n,max:t,kind:Sc.possessive}:o}function F8(e,t){return{type:A.Regex,pattern:e,flags:t}}function B8(e){return{type:A.Subroutine,ref:e}}function Nr(e,t){var n;const r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let o=(n=r.unicodePropertyMap)==null?void 0:n.get(zi(e));if(!o){if(r.normalizeUnknownPropertyNames)o=W8(e);else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw new Error(Ue`Invalid Unicode property "\p{${e}}"`)}return{type:A.CharacterSet,kind:Le.property,value:o??e,negate:r.negate}}function q8(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function W8(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function zi(e){return e.replace(/[- _]+/g,"").toLowerCase()}function Zf(e,t){return Xt(e,`${t?.value===93?"Empty":"Unclosed"} character class`)}function Xf(e){return Xt(e,"Unclosed group")}const Mu=String.raw,Kf=Mu`(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})`,Qf=Mu`\u{E0061}-\u{E007A}`,G8=()=>new RegExp(Mu`[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[${Qf}]{2}[\u{E0030}-\u{E0039}${Qf}]{1,3}\u{E007F}|${Kf}(?:\u200D${Kf})*`,"gu");function Qo(e,t,n=null){function r(s,l){for(let i=0;i<s.length;i++){const c=o(s[i],l,i,s);i=Math.max(-1,i+c)}}function o(s,l=null,i=null,c=null){var d,f;const m="Container expected";let p=0,h=!1;const g={node:s,parent:l,key:i,container:c,root:e,remove(){Xt(c,m).splice(Math.max(0,i+p),1),p--,h=!0},removeAllNextSiblings(){return Xt(c,m).splice(i+1)},removeAllPrevSiblings(){const x=i+p;return p-=x,Xt(c,m).splice(0,Math.max(0,x))},replaceWith(x,C={}){const _=!!C.traverse;c?c[Math.max(0,i+p)]=x:l[i]=x,_&&o(x,l,i,c),h=!0},replaceWithMultiple(x,C={}){const _=!!C.traverse;if(Xt(c,m).splice(Math.max(0,i+p),1,...x),p+=x.length-1,_){let R=0;for(let S=0;S<x.length;S++)R+=o(x[S],l,i+S+R,c)}h=!0},skip(){h=!0}},y=t["*"],v=t[s.type],w=typeof y=="function"?y:y?.enter,b=typeof v=="function"?v:v?.enter;if(w?.(g,n),b?.(g,n),!h)switch(s.type){case A.Regex:o(s.pattern,s,"pattern"),o(s.flags,s,"flags");break;case A.Alternative:case A.CharacterClass:r(s.elements,s);break;case A.Assertion:case A.Backreference:case A.Character:case A.CharacterSet:case A.Directive:case A.Flags:case A.Recursion:case A.Subroutine:break;case A.AbsentFunction:case A.CapturingGroup:case A.Group:case A.Pattern:r(s.alternatives,s);break;case A.CharacterClassRange:o(s.min,s,"min"),o(s.max,s,"max");break;case A.LookaroundAssertion:r(s.alternatives,s);break;case A.Quantifier:o(s.element,s,"element");break;default:throw new Error(`Unexpected node type "${s.type}"`)}return(d=y?.exit)==null||d.call(y,g,n),(f=v?.exit)==null||f.call(v,g,n),p}o(e)}const Y8=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function U8(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function V8(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const kt=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function Au(e,t,n,r){const o=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),s=[!1];let l=0,i="";for(const c of e.matchAll(o)){const{0:d,groups:{$skip:f}}=c;if(!f&&(!r||r===kt.DEFAULT==!l)){n instanceof Function?i+=n(c,{context:l?kt.CHAR_CLASS:kt.DEFAULT,negated:s[s.length-1]}):i+=n;continue}d[0]==="["?(l++,s.push(d[1]==="^")):d==="]"&&l&&(l--,s.pop()),i+=d}return i}function dg(e,t,n,r){Au(e,t,n,r)}function H8(e,t,n=0,r){if(!new RegExp(t,"su").test(e))return null;const o=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");o.lastIndex=n;let s=0,l;for(;l=o.exec(e);){const{0:i,groups:{$skip:c}}=l;if(!c&&(!r||r===kt.DEFAULT==!s))return l;i==="["?s++:i==="]"&&s&&s--,o.lastIndex==l.index&&o.lastIndex++}return null}function fl(e,t,n){return!!H8(e,t,0,n)}function Z8(e,t){const n=/\\?./gsu;n.lastIndex=t;let r=e.length,o=0,s=1,l;for(;l=n.exec(e);){const[i]=l;if(i==="[")o++;else if(o)i==="]"&&o--;else if(i==="(")s++;else if(i===")"&&(s--,!s)){r=l.index;break}}return e.slice(t,r)}const Jf=new RegExp(String.raw`(?<noncapturingStart>${Y8})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function X8(e,t){const n=t?.hiddenCaptures??[];let r=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};const o="(?>",s="(?:(?=(",l=[0],i=[];let c=0,d=0,f=NaN,m;do{m=!1;let p=0,h=0,g=!1,y;for(Jf.lastIndex=Number.isNaN(f)?0:f+s.length;y=Jf.exec(e);){const{0:v,index:w,groups:{capturingStart:b,noncapturingStart:x}}=y;if(v==="[")p++;else if(p)v==="]"&&p--;else if(v===o&&!g)f=w,g=!0;else if(g&&x)h++;else if(b)g?h++:(c++,l.push(c+d));else if(v===")"&&g){if(!h){d++;const C=c+d;if(e=`${e.slice(0,f)}${s}${e.slice(f+o.length,w)}))<$$${C}>)${e.slice(w+1)}`,m=!0,i.push(C),U8(n,C),r.size){const _=new Map;r.forEach((R,S)=>{_.set(S>=C?S+1:S,R.map(E=>E>=C?E+1:E))}),r=_}break}h--}}}while(m);return n.push(...i),e=Au(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:p,groups:{backrefNum:h,wrappedBackrefNum:g}})=>{if(h){const y=+h;if(y>l.length-1)throw new Error(`Backref "${p}" greater than number of captures`);return`\\${l[y]}`}return`\\${g}`},kt.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const fg=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Ia=new RegExp(String.raw`
85
- \\(?: \d+
86
- | c[A-Za-z]
87
- | [gk]<[^>]+>
88
- | [pPu]\{[^\}]+\}
89
- | u[A-Fa-f\d]{4}
90
- | x[A-Fa-f\d]{2}
91
- )
92
- | \((?: \? (?: [:=!>]
93
- | <(?:[=!]|[^>]+>)
94
- | [A-Za-z\-]+:
95
- | \(DEFINE\)
96
- ))?
97
- | (?<qBase>${fg})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
98
- | \\?.
99
- `.replace(/\s+/g,""),"gsu");function K8(e){if(!new RegExp(`${fg}\\+`).test(e))return{pattern:e};const t=[];let n=null,r=null,o="",s=0,l;for(Ia.lastIndex=0;l=Ia.exec(e);){const{0:i,index:c,groups:{qBase:d,qMod:f,invalidQ:m}}=l;if(i==="[")s||(r=c),s++;else if(i==="]")s?s--:r=null;else if(!s)if(f==="+"&&o&&!o.startsWith("(")){if(m)throw new Error(`Invalid quantifier "${i}"`);let p=-1;if(/^\{\d+\}$/.test(d))e=V8(e,c+d.length,f,"");else{if(o===")"||o==="]"){const h=o===")"?n:r;if(h===null)throw new Error(`Invalid unmatched "${o}"`);e=`${e.slice(0,h)}(?>${e.slice(h,c)}${d})${e.slice(c+i.length)}`}else e=`${e.slice(0,c-o.length)}(?>${o}${d})${e.slice(c+i.length)}`;p+=4}Ia.lastIndex+=p}else i[0]==="("?t.push(c):i===")"&&(n=t.length?t.pop():null);o=i}return{pattern:e}}const _t=String.raw,Q8=_t`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,jc=_t`\(\?R=(?<rDepth>[^\)]+)\)|${Q8}`,Fi=_t`\(\?<(?![=!])(?<captureName>[^>]+)>`,mg=_t`${Fi}|(?<unnamed>\()(?!\?)`,ir=new RegExp(_t`${Fi}|${jc}|\(\?|\\?.`,"gsu"),Pa="Cannot use multiple overlapping recursions";function J8(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let o=t?.captureTransfers??new Map;if(!new RegExp(jc,"su").test(e))return{pattern:e,captureTransfers:o,hiddenCaptures:n};if(r==="plugin"&&fl(e,_t`\(\?\(DEFINE\)`,kt.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const s=[],l=fl(e,_t`\\[1-9]`,kt.DEFAULT),i=new Map,c=[];let d=!1,f=0,m=0,p;for(ir.lastIndex=0;p=ir.exec(e);){const{0:h,groups:{captureName:g,rDepth:y,gRNameOrNum:v,gRDepth:w}}=p;if(h==="[")f++;else if(f)h==="]"&&f--;else if(y){if(em(y),d)throw new Error(Pa);if(l)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const b=e.slice(0,p.index),x=e.slice(ir.lastIndex);if(fl(x,jc,kt.DEFAULT))throw new Error(Pa);const C=+y-1;e=tm(b,x,C,!1,n,s,m),o=rm(o,b,C,s.length,0,m);break}else if(v){em(w);let b=!1;for(const F of c)if(F.name===v||F.num===+v){if(b=!0,F.hasRecursedWithin)throw new Error(Pa);break}if(!b)throw new Error(_t`Recursive \g cannot be used outside the referenced group "${r==="external"?v:_t`\g<${v}&R=${w}>`}"`);const x=i.get(v),C=Z8(e,x);if(l&&fl(C,_t`${Fi}|\((?!\?)`,kt.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const _=e.slice(x,p.index),R=C.slice(_.length+h.length),S=s.length,E=+w-1,T=tm(_,R,E,!0,n,s,m);o=rm(o,_,E,s.length-S,S,m);const M=e.slice(0,x),D=e.slice(x+C.length);e=`${M}${T}${D}`,ir.lastIndex+=T.length-h.length-_.length-R.length,c.forEach(F=>F.hasRecursedWithin=!0),d=!0}else if(g)m++,i.set(String(m),ir.lastIndex),i.set(g,ir.lastIndex),c.push({num:m,name:g});else if(h[0]==="("){const b=h==="(";b&&(m++,i.set(String(m),ir.lastIndex)),c.push(b?{num:m}:{})}else h===")"&&c.pop()}return n.push(...s),{pattern:e,captureTransfers:o,hiddenCaptures:n}}function em(e){const t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function tm(e,t,n,r,o,s,l){const i=new Set;r&&dg(e+t,Fi,({groups:{captureName:d}})=>{i.add(d)},kt.DEFAULT);const c=[n,r?i:null,o,s,l];return`${e}${nm(`(?:${e}`,"forward",...c)}(?:)${nm(`${t})`,"backward",...c)}${t}`}function nm(e,t,n,r,o,s,l){const c=f=>t==="forward"?f+2:n-f+2-1;let d="";for(let f=0;f<n;f++){const m=c(f);d+=Au(e,_t`${mg}|\\k<(?<backref>[^>]+)>`,({0:p,groups:{captureName:h,unnamed:g,backref:y}})=>{if(y&&r&&!r.has(y))return p;const v=`_$${m}`;if(g||h){const w=l+s.length+1;return s.push(w),ew(o,w),g?p:`(?<${h}${v}>`}return _t`\k<${y}${v}>`},kt.DEFAULT)}return d}function ew(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function rm(e,t,n,r,o,s){if(e.size&&r){let l=0;dg(t,mg,()=>l++,kt.DEFAULT);const i=s-l+o,c=new Map;return e.forEach((d,f)=>{const m=(r-l*n)/n,p=l*n,h=f>i+l?f+r:f,g=[];for(const y of d)if(y<=i)g.push(y);else if(y>i+l+m)g.push(y+r);else if(y<=i+l)for(let v=0;v<=n;v++)g.push(y+l*v);else for(let v=0;v<=n;v++)g.push(y+p+m*v);c.set(h,g)}),c}return e}var Fe=String.fromCodePoint,Q=String.raw,no={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("","v")}catch{return!1}return!0})()};no.literalHyphenIncorrectlyCreatesRange=(()=>{if(!no.unicodeSets)return!1;try{new RegExp(Q`[\d\-a]`,"v")}catch{return!0}return!1})();function ti(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function fs(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function Tc(e,t){return om[e]>=om[t]}function tw(e,t){if(!e)throw new Error("Value expected");return e}var om={ES2025:2025,ES2024:2024,ES2018:2018},nw={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function pg(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!nw[e.target])throw new Error(`Unexpected target "${e.target}"`);const t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=no.flagGroups?"ES2025":no.unicodeSets?"ES2024":"ES2018"),t}var rw="[ -\r ]",un=Q`[\p{L}\p{M}\p{N}\p{Pc}]`,ow=new Set([Fe(304),Fe(305)]);function hg(e){if(ow.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),o=iw.get(n),s=sw.get(n),l=lw.get(n);return[...r].length===1&&t.add(r),l&&t.add(l),o&&t.add(o),t.add(n),s&&t.add(s),[...t]}var Iu=new Map(`C Other
100
- Cc Control cntrl
101
- Cf Format
102
- Cn Unassigned
103
- Co Private_Use
104
- Cs Surrogate
105
- L Letter
106
- LC Cased_Letter
107
- Ll Lowercase_Letter
108
- Lm Modifier_Letter
109
- Lo Other_Letter
110
- Lt Titlecase_Letter
111
- Lu Uppercase_Letter
112
- M Mark Combining_Mark
113
- Mc Spacing_Mark
114
- Me Enclosing_Mark
115
- Mn Nonspacing_Mark
116
- N Number
117
- Nd Decimal_Number digit
118
- Nl Letter_Number
119
- No Other_Number
120
- P Punctuation punct
121
- Pc Connector_Punctuation
122
- Pd Dash_Punctuation
123
- Pe Close_Punctuation
124
- Pf Final_Punctuation
125
- Pi Initial_Punctuation
126
- Po Other_Punctuation
127
- Ps Open_Punctuation
128
- S Symbol
129
- Sc Currency_Symbol
130
- Sk Modifier_Symbol
131
- Sm Math_Symbol
132
- So Other_Symbol
133
- Z Separator
134
- Zl Line_Separator
135
- Zp Paragraph_Separator
136
- Zs Space_Separator
137
- ASCII
138
- ASCII_Hex_Digit AHex
139
- Alphabetic Alpha
140
- Any
141
- Assigned
142
- Bidi_Control Bidi_C
143
- Bidi_Mirrored Bidi_M
144
- Case_Ignorable CI
145
- Cased
146
- Changes_When_Casefolded CWCF
147
- Changes_When_Casemapped CWCM
148
- Changes_When_Lowercased CWL
149
- Changes_When_NFKC_Casefolded CWKCF
150
- Changes_When_Titlecased CWT
151
- Changes_When_Uppercased CWU
152
- Dash
153
- Default_Ignorable_Code_Point DI
154
- Deprecated Dep
155
- Diacritic Dia
156
- Emoji
157
- Emoji_Component EComp
158
- Emoji_Modifier EMod
159
- Emoji_Modifier_Base EBase
160
- Emoji_Presentation EPres
161
- Extended_Pictographic ExtPict
162
- Extender Ext
163
- Grapheme_Base Gr_Base
164
- Grapheme_Extend Gr_Ext
165
- Hex_Digit Hex
166
- IDS_Binary_Operator IDSB
167
- IDS_Trinary_Operator IDST
168
- ID_Continue IDC
169
- ID_Start IDS
170
- Ideographic Ideo
171
- Join_Control Join_C
172
- Logical_Order_Exception LOE
173
- Lowercase Lower
174
- Math
175
- Noncharacter_Code_Point NChar
176
- Pattern_Syntax Pat_Syn
177
- Pattern_White_Space Pat_WS
178
- Quotation_Mark QMark
179
- Radical
180
- Regional_Indicator RI
181
- Sentence_Terminal STerm
182
- Soft_Dotted SD
183
- Terminal_Punctuation Term
184
- Unified_Ideograph UIdeo
185
- Uppercase Upper
186
- Variation_Selector VS
187
- White_Space space
188
- XID_Continue XIDC
189
- XID_Start XIDS`.split(/\s/).map(e=>[zi(e),e])),sw=new Map([["s",Fe(383)],[Fe(383),"s"]]),lw=new Map([[Fe(223),Fe(7838)],[Fe(107),Fe(8490)],[Fe(229),Fe(8491)],[Fe(969),Fe(8486)]]),iw=new Map([Fn(453),Fn(456),Fn(459),Fn(498),...Da(8072,8079),...Da(8088,8095),...Da(8104,8111),Fn(8124),Fn(8140),Fn(8188)]),aw=new Map([["alnum",Q`[\p{Alpha}\p{Nd}]`],["alpha",Q`\p{Alpha}`],["ascii",Q`\p{ASCII}`],["blank",Q`[\p{Zs}\t]`],["cntrl",Q`\p{Cc}`],["digit",Q`\p{Nd}`],["graph",Q`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",Q`\p{Lower}`],["print",Q`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",Q`[\p{P}\p{S}]`],["space",Q`\p{space}`],["upper",Q`\p{Upper}`],["word",Q`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",Q`\p{AHex}`]]);function cw(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function Fn(e){const t=Fe(e);return[t.toLowerCase(),t]}function Da(e,t){return cw(e,t).map(n=>Fn(n))}var gg=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function uw(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};yg(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:Tc(n.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};Qo(e,dw,r);const o={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},s={currentFlags:o,prevFlags:null,globalFlags:o,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};Qo(e,fw,s);const l={groupsByName:s.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:s.reffedNodesByReferencer};return Qo(e,mw,l),e._originMap=s.groupOriginByCopy,e._strategy=r.strategy,e}var dw={AbsentFunction({node:e,parent:t,replaceWith:n}){const{kind:r,alternatives:o}=e;if(r===lg.repeater){const s=fn(Mt(),[ro(Ko({negate:!0}),o),Nr("Any")]),l=ug(s,0,1/0);s.parent=l,n(ve(fn(Mt(),[l]),t),{traverse:!0})}else throw new Error(`Unexpected absent function kind "${r}"`)},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){const o=e.elements.filter(s=>s.kind===Xo.flags);for(let s=n+1;s<t.alternatives.length;s++){const l=t.alternatives[s];fs(r,l,[]).push(...o)}},exit({node:e},{flagDirectivesByAlt:t}){var n;if((n=t.get(e))!=null&&n.length){const r=bg(t.get(e));if(r){const o=ve(fn(Mt({flags:r}),e.elements),e);e.elements=[o]}}}},Assertion({node:e,parent:t,key:n,container:r,root:o,remove:s,replaceWith:l},i){const{kind:c,negate:d}=e,{asciiWordBoundaries:f,avoidSubclass:m,supportedGNodes:p,wordIsAscii:h}=i;if(c===be.grapheme_boundary)throw new Error(`Unsupported grapheme boundary "\\${d?"Y":"y"}"`);if(c===be.line_end)l(ve(Yt(Q`(?=\z|\n)`),t));else if(c===be.line_start)l(ve(Yt(Q`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(c===be.search_start)if(p.has(e))o.flags.sticky=!0,s();else{const g=r[n-1];if(g&&bw(g))l(ve(fn(Ko({negate:!0})),t));else{if(m)throw new Error(Q`Uses "\G" in a way that requires a subclass`);l(ve(ag(be.string_start),t)),i.strategy="clip_search"}}else if(!(c===be.string_end||c===be.string_start))if(c===be.string_end_newline)l(ve(Yt(Q`(?=\n?\z)`),t));else if(c===be.word_boundary){if(!h&&!f){const g=`(?:(?<=${un})(?!${un})|(?<!${un})(?=${un}))`,y=`(?:(?<=${un})(?=${un})|(?<!${un})(?!${un}))`;l(ve(Yt(d?y:g),t))}}else throw new Error(`Unexpected assertion kind "${c}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Oa(n)&&(n=Na(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!Oa(r)&&(r=Na(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){t.kind===pn.intersection&&n(ve(ro(Ll(),[e]),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:o,digitIsAscii:s,spaceIsAscii:l,wordIsAscii:i}){const{kind:c,negate:d,value:f}=e;if(s&&(c===Le.digit||f==="digit")){n(ve(Ec(Le.digit,{negate:d}),t));return}if(l&&(c===Le.space||f==="space")){n(ve($a(Yt(rw),d),t));return}if(i&&(c===Le.word||f==="word")){n(ve(Ec(Le.word,{negate:d}),t));return}if(c===Le.any)n(ve(Nr("Any"),t));else if(c===Le.digit)n(ve(Nr("Nd",{negate:d}),t));else if(c!==Le.dot)if(c===Le.grapheme){if(r==="strict")throw new Error(Q`Use of "\X" requires non-strict accuracy`);const m=o?Q`\p{RGI_Emoji}`:G8().source.replace(/\\u\{/g,"\\x{");n(ve(Yt(Q`(?>\r\n|${m}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(c===Le.hex)n(ve(Nr("AHex",{negate:d}),t));else if(c===Le.newline)n(ve(Yt(d?`[^
190
- ]`:`(?>\r
191
- ?|[
192
- \v\f…\u2028\u2029])`),t));else if(c===Le.posix)if(!o&&(f==="graph"||f==="print")){if(r==="strict")throw new Error(`POSIX class "${f}" requires min target ES2024 or non-strict accuracy`);let m={graph:"!-~",print:" -~"}[f];d&&(m=`\0-${Fe(m.codePointAt(0)-1)}${Fe(m.codePointAt(2)+1)}-􏿿`),n(ve(Yt(`[${m}]`),t))}else n(ve($a(Yt(aw.get(f)),d),t));else if(c===Le.property)Iu.has(zi(f))||(e.key="sc");else if(c===Le.space)n(ve(Nr("space",{negate:d}),t));else if(c===Le.word)n(ve($a(Yt(un),d),t));else throw new Error(`Unexpected character set kind "${c}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:o,removeAllPrevSiblings:s,removeAllNextSiblings:l}){const{kind:i,flags:c}=e;if(i===Xo.flags)!c.enable&&!c.disable?r():o(ve(fn(Mt({flags:c}),l()),t),{traverse:!0});else if(i===Xo.keep){const d=n.pattern.alternatives[0].elements[0],m=_g(n.pattern,p=>p.type===A.Group)&&d.alternatives.length===1?d:n.pattern;if(t.parent!==m||m.alternatives.length>1)throw new Error(Q`Uses "\K" in a way that's unsupported`);o(ve(fn(Ko({behind:!0}),s()),t))}else throw new Error(`Unexpected directive kind "${i}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii"].forEach(n=>delete e[n]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:n}=e;n===Wn.lookbehind&&(t.passedLookbehind=!0)},Pattern:{enter({node:e},{supportedGNodes:t}){const n=[];let r=!1,o=!1;for(const s of e.alternatives)if(s.elements.length===1&&s.elements[0].kind===be.search_start)s.elements.pop();else{const l=xg(s.elements);l?(r=!0,Array.isArray(l)?n.push(...l):n.push(l)):o=!0}r&&!o&&n.forEach(s=>t.add(s))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t==="strict"&&n&&r)throw new Error(Q`Uses "\G" in a way that requires non-strict accuracy`)}},Quantifier({node:e}){if(e.element.type===A.Quantifier){const t=ve(fn(Mt(),[e.element]),e);e.element=t}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Oa(n)&&(n=Na(n,t),e.ref=n)}},fw={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){const{orphan:r,ref:o}=e;r||n.set(e,[...t.get(o).map(({node:s})=>s)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:o,groupsByName:s,multiplexCapturesToLeftByRef:l,openRefs:i,reffedNodesByReferencer:c}){const d=o.get(e);if(d&&i.has(e.number)){const m=ve(sm(e.number),t);c.set(m,i.get(e.number)),n(m);return}i.set(e.number,e),l.set(e.number,[]),e.name&&fs(l,e.name,[]);const f=l.get(e.name??e.number);for(let m=0;m<f.length;m++){const p=f[m];if(d===p.node||d&&d===p.origin||e===p.origin){f.splice(m,1);break}}if(l.get(e.number).push({node:e,origin:d}),e.name&&l.get(e.name).push({node:e,origin:d}),e.name){const m=fs(s,e.name,new Map);let p=!1;if(d)p=!0;else for(const h of m.values())if(!h.hasDuplicateNameToRemove){p=!0;break}s.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:p})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=ti(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Recursion({node:e,parent:t},{reffedNodesByReferencer:n}){const{ref:r}=e;let o=t;for(;(o=o.parent)&&!(o.type===A.CapturingGroup&&(o.name===r||o.number===r)););n.set(e,o)},Subroutine({node:e,parent:t,replaceWith:n},r){const{ref:o}=e,s=r.subroutineRefMap.get(o),l=o===0,i=l?sm(0):vg(s,r.groupOriginByCopy,null);let c=i;if(!l){const d=bg(gw(s,m=>m.type===A.Group&&!!m.flags)),f=d?ti(r.globalFlags,d):r.globalFlags;pw(f,r.currentFlags)||(c=fn(Mt({flags:yw(f)}),[i]))}n(ve(c,t),{traverse:!l})}},mw={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}const s=r.reffedNodesByReferencer.get(e).filter(l=>hw(l,e));if(!s.length)n(ve(fn(Ko({negate:!0})),t));else if(s.length>1){const l=s.map(i=>ro(En(),[Rc(i.number)]));n(ve(ro(Mt(),l),t))}else e.ref=s[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Recursion({node:e},t){e.ref!==0&&(e.ref=t.reffedNodesByReferencer.get(e).number)},Regex:{exit({node:e},t){const n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let r=0;r<n;r++){const o=cg();e.pattern.alternatives.at(-1).elements.push(o)}}}};function yg(e){Qo(e,{"*"({node:t,parent:n}){t.parent=n}})}function ro(e,t){return t.forEach(n=>n.parent=e),e[Pu(e)]=t,e}function pw(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function hw(e,t){let n=t;do{if(n.type===A.Pattern)return!1;if(n.type===A.Alternative)continue;if(n===e)return!1;const r=wg(n.parent);for(const o of r){if(o===n)break;if(o===e||Cg(o,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function vg(e,t,n,r){const o=Array.isArray(e)?[]:{};for(const[s,l]of Object.entries(e))s==="parent"?o.parent=Array.isArray(n)?r:n:l&&typeof l=="object"?o[s]=vg(l,t,o,n):(s==="type"&&l===A.CapturingGroup&&t.set(o,t.get(e)??e),o[s]=l);return o}function sm(e){return{type:A.Recursion,ref:e}}function gw(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function Na(e,t){if(t.has(e))return t.get(e);const n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,n),n}function Pu(e){for(const t of["alternatives","elements"])if(e[t])return t;return null}function bg(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:r})=>{t.forEach(o=>{var s,l;(s=r.enable)!=null&&s[o]&&(delete n.disable[o],n.enable[o]=!0),(l=r.disable)!=null&&l[o]&&(n.disable[o]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function yw({dotAll:e,ignoreCase:t}){const n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function wg(e){if(!e)throw new Error("Node expected");if(e.type===A.Quantifier)return[e.element];const t=Pu(e);return t&&e[t]}function xg(e){const t=e.find(n=>n.kind===be.search_start||ww(n,{negate:!1})||!vw(n));if(!t)return null;if(t.kind===be.search_start)return t;if(t.type===A.LookaroundAssertion)return t.alternatives[0].elements[0];if(t.type===A.CapturingGroup||t.type===A.Group){const n=[];for(const r of t.alternatives){const o=xg(r.elements);if(!o)return null;Array.isArray(o)?n.push(...o):n.push(o)}return n}return null}function Cg(e,t){const n=wg(e)??[];for(const r of n)if(r===t||Cg(r,t))return!0;return!1}function _g({alternatives:e},t){return e.length===1&&e[0].elements.length===1&&(!t||t(e[0].elements[0]))}function vw({type:e}){return e===A.Assertion||e===A.Directive||e===A.LookaroundAssertion}function bw(e){const t=[A.Character,A.CharacterClass,A.CharacterSet];return t.includes(e.type)||e.type===A.Quantifier&&e.min&&t.includes(e.element.type)}function ww(e,t){const n={negate:null,...t};return e.type===A.LookaroundAssertion&&(n.negate===null||e.negate===n.negate)&&_g(e,r=>r.kind===be.search_start)}function Oa(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Yt(e,t){const n=ig(e,{...t,unicodePropertyMap:Iu});yg(n);const r=n.pattern.alternatives;return r.length>1||r[0].elements.length>1?ro(Mt(),r):r[0].elements[0]}function fn(e,t){const n=Pu(e);return e[n][0].parent=e,t&&ro(e[n][0],t),e}function $a(e,t){return e.negate=t,e}function ve(e,t){return e.parent=t,e}function xw(e,t){const n=pg(t),r=Tc(n.target,"ES2024"),o=Tc(n.target,"ES2025"),s=n.rules.recursionLimit;if(!Number.isInteger(s)||s<2||s>20)throw new Error("Invalid recursionLimit; use 2-20");let l=null,i=null;if(!o){const h=[e.flags.ignoreCase];Qo(e,Cw,{getCurrentModI:()=>h.at(-1),popModI(){h.pop()},pushModI(g){h.push(g)},setHasCasedChar(){h.at(-1)?l=!0:i=!0}})}const c={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||l)&&!i)};let d=null;const f={accuracy:n.accuracy,appliedGlobalFlags:c,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:d,originMap:e._originMap,recursionLimit:s,useAppliedIgnoreCase:!!(!o&&l&&i),useFlagMods:o,useFlagV:r,verbose:n.verbose};function m(h){switch(f.lastNode=d,d=h,h.type){case A.Regex:return{pattern:m(h.pattern),flags:m(h.flags),options:{...h.options}};case A.Alternative:return h.elements.map(m).join("");case A.Assertion:return Ew(h);case A.Backreference:return jw(h,f);case A.CapturingGroup:return Tw(h,f,m);case A.Character:return Lw(h,f);case A.CharacterClass:return Mw(h,f,m);case A.CharacterClassRange:return Aw(h,f);case A.CharacterSet:return Iw(h,f);case A.Flags:return Pw(h,f);case A.Group:return Dw(h,f,m);case A.LookaroundAssertion:return Nw(h,f,m);case A.Pattern:return h.alternatives.map(m).join("|");case A.Quantifier:return m(h.element)+Fw(h);case A.Recursion:return Ow(h,f);default:throw new Error(`Unexpected node type "${h.type}"`)}}const p=m(e);return r||(delete p.options.force.v,p.options.disable.v=!0,p.options.unicodeSetsPlugin=null),p._captureTransfers=new Map,p._hiddenCaptures=[],f.captureMap.forEach((h,g)=>{h.hidden&&p._hiddenCaptures.push(g),h.transferTo&&fs(p._captureTransfers,h.transferTo,[]).push(g)}),p}var Cw={"*":{enter({node:e},t){if(im(e)){const n=t.getCurrentModI();t.pushModI(e.flags?ti({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){im(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){Du(Fe(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),kg(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind===Le.property&&gg.has(e.value)&&t.setHasCasedChar()}},_w=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),kw=new Set(["-","\\","]","^","["]),Sw=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),lm=new Map([[9,Q`\t`],[10,Q`\n`],[11,Q`\v`],[12,Q`\f`],[13,Q`\r`],[8232,Q`\u2028`],[8233,Q`\u2029`],[65279,Q`\uFEFF`]]),Rw=new RegExp("^\\p{Cased}$","u");function Du(e){return Rw.test(e)}function Ew({kind:e,negate:t}){if(e===be.string_end)return"$";if(e===be.string_start)return"^";if(e===be.word_boundary)return t?Q`\B`:Q`\b`;throw new Error(`Unexpected assertion kind "${e}"`)}function jw({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e}function Tw(e,t,n){const{name:r,number:o,alternatives:s}=e,l={ignoreCase:t.currentFlags.ignoreCase},i=t.originMap.get(e);return i&&(l.hidden=!0,o>i.number&&(l.transferTo=i.number)),t.captureMap.set(o,l),`(${r?`?<${r}>`:""}${s.map(n).join("|")})`}function Lw({value:e},t){const n=Fe(e),r=Or(e,{escDigit:t.lastNode.type===A.Backreference,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Du(n)){const o=hg(n);return t.inCharClass?o.join(""):o.length>1?`[${o.join("")}]`:o[0]}return n}function Mw(e,t,n){const{kind:r,negate:o,parent:s}=e;let{elements:l}=e;if(r===pn.intersection&&!t.useFlagV)throw new Error("Use of class intersection requires min target ES2024");no.literalHyphenIncorrectlyCreatesRange&&t.useFlagV&&l.some(am)&&(l=l.filter(d=>!am(d)),l.push(Lu(45)));const i=()=>`[${o?"^":""}${l.map(n).join(r===pn.intersection?"&&":"")}]`;if(!t.inCharClass){if(!t.useFlagV&&!o){const f=l.filter(m=>m.type===A.CharacterClass&&m.kind===pn.union&&m.negate);if(f.length){const m=Mt(),p=m.alternatives[0];return m.parent=s,p.parent=m,l=l.filter(h=>!f.includes(h)),e.elements=l,l.length?(e.parent=p,p.elements.push(e)):m.alternatives.pop(),f.forEach(h=>{const g=En();g.parent=m,h.parent=g,g.elements.push(h),m.alternatives.push(g)}),n(m)}}t.inCharClass=!0;const d=i();return t.inCharClass=!1,d}const c=l[0];if(r===pn.union&&!o&&c&&((!t.useFlagV||!t.verbose)&&s.kind===pn.union&&!(no.literalHyphenIncorrectlyCreatesRange&&t.useFlagV)||!t.verbose&&s.kind===pn.intersection&&l.length===1&&c.type!==A.CharacterClassRange))return l.map(n).join("");if(!t.useFlagV&&s.type===A.CharacterClass)throw new Error("Use of nested character class requires min target ES2024");return i()}function Aw(e,t){const n=e.min.value,r=e.max.value,o={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},s=Or(n,o),l=Or(r,o),i=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const c=kg(e);$w(c).forEach(f=>{i.add(Array.isArray(f)?`${Or(f[0],o)}-${Or(f[1],o)}`:Or(f,o))})}return`${s}-${l}${[...i].join("")}`}function Iw({kind:e,negate:t,value:n,key:r},o){if(e===Le.dot)return o.currentFlags.dotAll?o.appliedGlobalFlags.dotAll||o.useFlagMods?".":"[^]":Q`[^\n]`;if(e===Le.digit)return t?Q`\D`:Q`\d`;if(e===Le.property){if(o.useAppliedIgnoreCase&&o.currentFlags.ignoreCase&&gg.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?Q`\P`:Q`\p`}{${r?`${r}=`:""}${n}}`}if(e===Le.word)return t?Q`\W`:Q`\w`;throw new Error(`Unexpected character set kind "${e}"`)}function Pw(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")}function Dw({atomic:e,flags:t,parent:n,alternatives:r},o,s){const l=o.currentFlags;t&&(o.currentFlags=ti(l,t));const i=r.map(s).join("|"),c=!o.verbose&&r.length===1&&n.type!==A.Quantifier&&!e&&(!o.useFlagMods||!t)?i:`(?${zw(e,t,o.useFlagMods)}${i})`;return o.currentFlags=l,c}function Nw({kind:e,negate:t,alternatives:n},r,o){return`(?${`${e===Wn.lookahead?"":"<"}${t?"!":"="}`}${n.map(o).join("|")})`}function Ow({ref:e},t){const n=t.recursionLimit;return e===0?`(?R=${n})`:Q`\g<${e}&R=${n}>`}function kg(e,t){const n=!!t?.firstOnly,r=e.min.value,o=e.max.value,s=[];if(r<65&&(o===65535||o>=131071)||r===65536&&o>=131071)return s;for(let l=r;l<=o;l++){const i=Fe(l);if(!Du(i))continue;const c=hg(i).filter(d=>{const f=d.codePointAt(0);return f<r||f>o});if(c.length&&(s.push(...c),n))break}return s}function Or(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(lm.has(e))return lm.get(e);if(e<32||e>126&&e<160||e>262143||t&&Bw(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const o=n?r?Sw:kw:_w,s=Fe(e);return(o.has(s)?"\\":"")+s}function $w(e){const t=e.map(o=>o.codePointAt(0)).sort((o,s)=>o-s),n=[];let r=null;for(let o=0;o<t.length;o++)t[o+1]===t[o]+1?r??(r=t[o]):r===null?n.push(t[o]):(n.push([r,t[o]]),r=null);return n}function zw(e,t,n){if(e)return">";let r="";if(t&&n){const{enable:o,disable:s}=t;r=(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")+(s?"-":"")+(s?.ignoreCase?"i":"")+(s?.dotAll?"s":"")}return`${r}:`}function Fw({min:e,max:t,kind:n}){let r;return!e&&t===1?r="?":!e&&t===1/0?r="*":e===1&&t===1/0?r="+":e===t?r=`{${e}}`:r=`{${e},${t===1/0?"":t}}`,r+{greedy:"",lazy:"?",possessive:"+"}[n]}function im({type:e}){return e===A.Group||e===A.CapturingGroup||e===A.LookaroundAssertion}function Bw(e){return e>47&&e<58}function am({type:e,value:t}){return e===A.Character&&t===45}var qw=(Po=class extends RegExp{constructor(e,t,n){var r=(...s)=>(super(...s),Er(this,el),Er(this,sr,new Map),Er(this,On,null),Er(this,Tr),Er(this,lr,null),Er(this,Lr,null),j(this,"rawOptions",{}),this);const o=!!n?.lazyCompile;if(e instanceof RegExp){if(n)throw new Error("Cannot provide options when copying a regexp");const s=e;r(s,t),Gt(this,Tr,s.source),s instanceof Po&&(Gt(this,sr,ot(s,sr)),Gt(this,lr,ot(s,lr)),Gt(this,Lr,ot(s,Lr)),this.rawOptions=s.rawOptions)}else{const s={hiddenCaptures:[],strategy:null,transfers:[],...n};r(o?"":e,t),Gt(this,Tr,e),Gt(this,sr,Gw(s.hiddenCaptures,s.transfers)),Gt(this,Lr,s.strategy),this.rawOptions=n??{}}o||Gt(this,On,this)}get source(){return ot(this,Tr)||"(?:)"}exec(e){if(!ot(this,On)){const{lazyCompile:r,...o}=this.rawOptions;Gt(this,On,new Po(ot(this,Tr),this.flags,o))}const t=this.global||this.sticky,n=this.lastIndex;if(ot(this,Lr)==="clip_search"&&t&&n){this.lastIndex=0;const r=Ud(this,el,pa).call(this,e.slice(n));return r&&(Ww(r,n,e,this.hasIndices),this.lastIndex+=n),r}return Ud(this,el,pa).call(this,e)}},sr=new WeakMap,On=new WeakMap,Tr=new WeakMap,lr=new WeakMap,Lr=new WeakMap,el=new WeakSet,pa=function(e){ot(this,On).lastIndex=this.lastIndex;const t=Xy(Po.prototype,this,"exec").call(ot(this,On),e);if(this.lastIndex=ot(this,On).lastIndex,!t||!ot(this,sr).size)return t;const n=[...t];t.length=1;let r;this.hasIndices&&(r=[...t.indices],t.indices.length=1);const o=[0];for(let s=1;s<n.length;s++){const{hidden:l,transferTo:i}=ot(this,sr).get(s)??{};if(l?o.push(null):(o.push(t.length),t.push(n[s]),this.hasIndices&&t.indices.push(r[s])),i&&n[s]!==void 0){const c=tw(o[i]);if(t[c]=n[s],this.hasIndices&&(t.indices[c]=r[s]),t.groups){ot(this,lr)||Gt(this,lr,Yw(this.source));const d=ot(this,lr).get(i);d&&(t.groups[d]=n[s],this.hasIndices&&(t.indices.groups[d]=r[s]))}}}return t},Po);function Ww(e,t,n,r){if(e.index+=t,e.input=n,r){const o=e.indices;for(let l=0;l<o.length;l++){const i=o[l];i&&(o[l]=[i[0]+t,i[1]+t])}const s=o.groups;s&&Object.keys(s).forEach(l=>{const i=s[l];i&&(s[l]=[i[0]+t,i[1]+t])})}}function Gw(e,t){const n=new Map;for(const r of e)n.set(r,{hidden:!0});for(const[r,o]of t)for(const s of o)fs(n,s,{}).transferTo=r;return n}function Yw(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let r=0,o=0,s;for(;s=t.exec(e);){const{0:l,groups:{capture:i,name:c}}=s;l==="["?r++:r?l==="]"&&r--:i&&(o++,c&&n.set(o,c))}return n}function Uw(e,t){const n=Vw(e,t);return n.options?new qw(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function Vw(e,t){const n=pg(t),r=ig(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:Iu}),o=uw(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),s=xw(o,n),l=J8(s.pattern,{captureTransfers:s._captureTransfers,hiddenCaptures:s._hiddenCaptures,mode:"external"}),i=K8(l.pattern),c=X8(i.pattern,{captureTransfers:l.captureTransfers,hiddenCaptures:l.hiddenCaptures}),d={pattern:c.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${s.flags}${s.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const f=c.hiddenCaptures.sort((g,y)=>g-y),m=Array.from(c.captureTransfers),p=o._strategy,h=d.pattern.length>=n.lazyCompileLength;(f.length||m.length||p||h)&&(d.options={...f.length&&{hiddenCaptures:f},...m.length&&{transfers:m},...p&&{strategy:p},...h&&{lazyCompile:h}})}return d}const cm=4294967295;class Hw{constructor(t,n={}){j(this,"regexps"),this.patterns=t,this.options=n;const{forgiving:r=!1,cache:o,regexConstructor:s}=n;if(!s)throw new Error("Option `regexConstructor` is not provided");this.regexps=t.map(l=>{if(typeof l!="string")return l;const i=o?.get(l);if(i){if(i instanceof RegExp)return i;if(r)return null;throw i}try{const c=s(l);return o?.set(l,c),c}catch(c){if(o?.set(l,c),r)return null;throw c}})}findNextMatchSync(t,n,r){const o=typeof t=="string"?t:t.content,s=[];function l(i,c,d=0){return{index:i,captureIndices:c.indices.map(f=>f==null?{start:cm,end:cm,length:0}:{start:f[0]+d,end:f[1]+d,length:f[1]-f[0]})}}for(let i=0;i<this.regexps.length;i++){const c=this.regexps[i];if(c)try{c.lastIndex=n;const d=c.exec(o);if(!d)continue;if(d.index===n)return l(i,d,0);s.push([i,d,0])}catch(d){if(this.options.forgiving)continue;throw d}}if(s.length){const i=Math.min(...s.map(c=>c[1].index));for(const[c,d,f]of s)if(d.index===i)return l(c,d,f)}return null}}function Zw(e,t){return Uw(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function Xw(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||(t.regexConstructor=n=>Zw(n,{target:t.target})),{createScanner(n){return new Hw(n,t)},createString(n){return{content:n}}}}let ml;function Sg(){return ml||(ml=s8({themes:[l8,i8],langs:[c8,d8,{name:"malloy",embeddedLangs:["sql"],...m6}],engine:Xw()}),ml)}Sg();async function Kw(e,t,n,{showLineNumbers:r,lineSpacing:o}){const l=(await Sg()).codeToHtml(e,{lang:t,theme:n,transformers:v6({showLineNumbers:r,lineSpacing:o})}),i=document.createElement("div");return i.innerHTML=l,i}function Qw({element:e,className:t,style:n}){const r=u.useRef(null);return u.useEffect(()=>{const o=r.current;o&&o.replaceChildren(e)},[e]),a.jsx("div",{ref:r,className:t,style:n})}function Lc({code:e,language:t,theme:n,lineNumbers:r,spacing:o}){const[s,l]=u.useState();return u.useEffect(()=>{let i=!1;return(async()=>{const d=await Kw(e,t,n??"light-plus",{showLineNumbers:r??!0,lineSpacing:o??"double"});i||l(d)})(),()=>{i=!0}},[e,t,r,o,n]),a.jsx(mu,{children:s&&a.jsx(Qw,{element:s})})}const um={large:{border:3,diameter:18},medium:{border:3,diameter:14},small:{border:3,diameter:10}},Jw=.75,dm=1.5,e9="rgba(0, 0, 0, 0.1)",t9="rgba(0, 100, 224, 1)";function Rg({size:e,customStyle:t}){const n=u.useRef(null);u.useEffect(()=>{const l=n.current;if(l!=null){const i=l.getContext("2d");if(!i)return;const{border:c,diameter:d}=um[e],f=window.devicePixelRatio||1,m=d/2*f,p=c*f,h=(m+p)*2;l.height=l.width=h,l.style.width=l.style.height=h/f+"px",i.lineCap="round",i.lineWidth=p;const g=h/2;i.beginPath(),i.arc(g,g,m,0,2*Math.PI),i.strokeStyle=e9,i.stroke(),i.beginPath(),i.arc(g,g,m,dm*Math.PI,(dm+Jw)%2*Math.PI),i.strokeStyle=t9,i.stroke()}},[e]);const{border:r,diameter:o}=um[e],s=o+r*2;return a.jsx("div",{...k.props(n9.root,t),children:a.jsx("span",{"aria-valuetext":"Loading",className:"mly1rg5ohu mlyb3r6kr mlyxymvpz",role:"progressbar",style:{height:s,width:s},children:a.jsx("canvas",{className:"mlylp1x4z mly1lliihq mly7v9bd0 mlya4qsjk mly8jsasv mly1esw782 mly1so62im",ref:n})})})}const n9={root:{alignItems:"mly6s0dn4",display:"mly3nfvp2",flexDirection:"mlydt5ytf",justifyContent:"mlyl56j7k",$$css:!0}};function za({value:e,setValue:t,placeholder:n,label:r,autoFocus:o,width:s}){const[l,i]=u.useState(e.toString());return u.useEffect(()=>{i(e.toString())},[e]),a.jsxs("div",{children:[r&&a.jsx("label",{children:r}),a.jsx("input",{type:"number",placeholder:n,value:l,style:{width:s||"auto"},onChange:c=>{const d=c.target.value;i(d);const f=parseFloat(d);Number.isNaN(f)||t(f)},autoFocus:o,className:"mly27xtdb mly12oqio5 mlyizdh9v mly34lxi1"})]})}//! moment.js
193
- //! version : 2.30.1
194
- //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
195
- //! license : MIT
196
- //! momentjs.com
197
- var Eg;function L(){return Eg.apply(null,arguments)}function r9(e){Eg=e}function Dt(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function mr(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function fe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Nu(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(fe(e,t))return!1;return!0}function st(e){return e===void 0}function Rn(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Ns(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function jg(e,t){var n=[],r,o=e.length;for(r=0;r<o;++r)n.push(t(e[r],r));return n}function Gn(e,t){for(var n in t)fe(t,n)&&(e[n]=t[n]);return fe(t,"toString")&&(e.toString=t.toString),fe(t,"valueOf")&&(e.valueOf=t.valueOf),e}function rn(e,t,n,r){return Kg(e,t,n,r,!0).utc()}function o9(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function ee(e){return e._pf==null&&(e._pf=o9()),e._pf}var Mc;Array.prototype.some?Mc=Array.prototype.some:Mc=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function Ou(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=ee(e),n=Mc.call(t.parsedDateParts,function(o){return o!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function Bi(e){var t=rn(NaN);return e!=null?Gn(ee(t),e):ee(t).userInvalidated=!0,t}var fm=L.momentProperties=[],Fa=!1;function $u(e,t){var n,r,o,s=fm.length;if(st(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),st(t._i)||(e._i=t._i),st(t._f)||(e._f=t._f),st(t._l)||(e._l=t._l),st(t._strict)||(e._strict=t._strict),st(t._tzm)||(e._tzm=t._tzm),st(t._isUTC)||(e._isUTC=t._isUTC),st(t._offset)||(e._offset=t._offset),st(t._pf)||(e._pf=ee(t)),st(t._locale)||(e._locale=t._locale),s>0)for(n=0;n<s;n++)r=fm[n],o=t[r],st(o)||(e[r]=o);return e}function Os(e){$u(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Fa===!1&&(Fa=!0,L.updateOffset(this),Fa=!1)}function Nt(e){return e instanceof Os||e!=null&&e._isAMomentObject!=null}function Tg(e){L.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function jt(e,t){var n=!0;return Gn(function(){if(L.deprecationHandler!=null&&L.deprecationHandler(null,e),n){var r=[],o,s,l,i=arguments.length;for(s=0;s<i;s++){if(o="",typeof arguments[s]=="object"){o+=`
198
- [`+s+"] ";for(l in arguments[0])fe(arguments[0],l)&&(o+=l+": "+arguments[0][l]+", ");o=o.slice(0,-2)}else o=arguments[s];r.push(o)}Tg(e+`
199
- Arguments: `+Array.prototype.slice.call(r).join("")+`
200
- `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var mm={};function Lg(e,t){L.deprecationHandler!=null&&L.deprecationHandler(e,t),mm[e]||(Tg(t),mm[e]=!0)}L.suppressDeprecationWarnings=!1;L.deprecationHandler=null;function on(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function s9(e){var t,n;for(n in e)fe(e,n)&&(t=e[n],on(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Ac(e,t){var n=Gn({},e),r;for(r in t)fe(t,r)&&(mr(e[r])&&mr(t[r])?(n[r]={},Gn(n[r],e[r]),Gn(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)fe(e,r)&&!fe(t,r)&&mr(e[r])&&(n[r]=Gn({},n[r]));return n}function zu(e){e!=null&&this.set(e)}var Ic;Object.keys?Ic=Object.keys:Ic=function(e){var t,n=[];for(t in e)fe(e,t)&&n.push(t);return n};var l9={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function i9(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return on(r)?r.call(t,n):r}function Jt(e,t,n){var r=""+Math.abs(e),o=t-r.length,s=e>=0;return(s?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var Fu=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,pl=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ba={},Hr={};function Y(e,t,n,r){var o=r;typeof r=="string"&&(o=function(){return this[r]()}),e&&(Hr[e]=o),t&&(Hr[t[0]]=function(){return Jt(o.apply(this,arguments),t[1],t[2])}),n&&(Hr[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function a9(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function c9(e){var t=e.match(Fu),n,r;for(n=0,r=t.length;n<r;n++)Hr[t[n]]?t[n]=Hr[t[n]]:t[n]=a9(t[n]);return function(o){var s="",l;for(l=0;l<r;l++)s+=on(t[l])?t[l].call(o,e):t[l];return s}}function Ml(e,t){return e.isValid()?(t=Mg(t,e.localeData()),Ba[t]=Ba[t]||c9(t),Ba[t](e)):e.localeData().invalidDate()}function Mg(e,t){var n=5;function r(o){return t.longDateFormat(o)||o}for(pl.lastIndex=0;n>=0&&pl.test(e);)e=e.replace(pl,r),pl.lastIndex=0,n-=1;return e}var u9={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function d9(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Fu).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var f9="Invalid date";function m9(){return this._invalidDate}var p9="%d",h9=/\d{1,2}/;function g9(e){return this._ordinal.replace("%d",e)}var y9={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function v9(e,t,n,r){var o=this._relativeTime[n];return on(o)?o(e,t,n,r):o.replace(/%d/i,e)}function b9(e,t){var n=this._relativeTime[e>0?"future":"past"];return on(n)?n(t):n.replace(/%s/i,t)}var pm={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Tt(e){return typeof e=="string"?pm[e]||pm[e.toLowerCase()]:void 0}function Bu(e){var t={},n,r;for(r in e)fe(e,r)&&(n=Tt(r),n&&(t[n]=e[r]));return t}var w9={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function x9(e){var t=[],n;for(n in e)fe(e,n)&&t.push({unit:n,priority:w9[n]});return t.sort(function(r,o){return r.priority-o.priority}),t}var Ag=/\d/,gt=/\d\d/,Ig=/\d{3}/,qu=/\d{4}/,qi=/[+-]?\d{6}/,Ee=/\d\d?/,Pg=/\d\d\d\d?/,Dg=/\d\d\d\d\d\d?/,Wi=/\d{1,3}/,Wu=/\d{1,4}/,Gi=/[+-]?\d{1,6}/,ko=/\d+/,Yi=/[+-]?\d+/,C9=/Z|[+-]\d\d:?\d\d/gi,Ui=/Z|[+-]\d\d(?::?\d\d)?/gi,_9=/[+-]?\d+(\.\d{1,3})?/,$s=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,So=/^[1-9]\d?/,Gu=/^([1-9]\d|\d)/,ni;ni={};function $(e,t,n){ni[e]=on(t)?t:function(r,o){return r&&n?n:t}}function k9(e,t){return fe(ni,e)?ni[e](t._strict,t._locale):new RegExp(S9(e))}function S9(e){return bn(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,o,s){return n||r||o||s}))}function bn(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ct(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ie(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Ct(t)),n}var Pc={};function we(e,t){var n,r=t,o;for(typeof e=="string"&&(e=[e]),Rn(t)&&(r=function(s,l){l[t]=ie(s)}),o=e.length,n=0;n<o;n++)Pc[e[n]]=r}function zs(e,t){we(e,function(n,r,o,s){o._w=o._w||{},t(n,o._w,o,s)})}function R9(e,t,n){t!=null&&fe(Pc,e)&&Pc[e](t,n._a,n,e)}function Vi(e){return e%4===0&&e%100!==0||e%400===0}var tt=0,yn=1,Zt=2,We=3,At=4,vn=5,fr=6,E9=7,j9=8;Y("Y",0,0,function(){var e=this.year();return e<=9999?Jt(e,4):"+"+e});Y(0,["YY",2],0,function(){return this.year()%100});Y(0,["YYYY",4],0,"year");Y(0,["YYYYY",5],0,"year");Y(0,["YYYYYY",6,!0],0,"year");$("Y",Yi);$("YY",Ee,gt);$("YYYY",Wu,qu);$("YYYYY",Gi,qi);$("YYYYYY",Gi,qi);we(["YYYYY","YYYYYY"],tt);we("YYYY",function(e,t){t[tt]=e.length===2?L.parseTwoDigitYear(e):ie(e)});we("YY",function(e,t){t[tt]=L.parseTwoDigitYear(e)});we("Y",function(e,t){t[tt]=parseInt(e,10)});function Jo(e){return Vi(e)?366:365}L.parseTwoDigitYear=function(e){return ie(e)+(ie(e)>68?1900:2e3)};var Ng=Ro("FullYear",!0);function T9(){return Vi(this.year())}function Ro(e,t){return function(n){return n!=null?(Og(this,e,n),L.updateOffset(this,t),this):ms(this,e)}}function ms(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Og(e,t,n){var r,o,s,l,i;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}s=n,l=e.month(),i=e.date(),i=i===29&&l===1&&!Vi(s)?28:i,o?r.setUTCFullYear(s,l,i):r.setFullYear(s,l,i)}}function L9(e){return e=Tt(e),on(this[e])?this[e]():this}function M9(e,t){if(typeof e=="object"){e=Bu(e);var n=x9(e),r,o=n.length;for(r=0;r<o;r++)this[n[r].unit](e[n[r].unit])}else if(e=Tt(e),on(this[e]))return this[e](t);return this}function A9(e,t){return(e%t+t)%t}var Pe;Array.prototype.indexOf?Pe=Array.prototype.indexOf:Pe=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Yu(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=A9(t,12);return e+=(t-n)/12,n===1?Vi(e)?29:28:31-n%7%2}Y("M",["MM",2],"Mo",function(){return this.month()+1});Y("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});Y("MMMM",0,0,function(e){return this.localeData().months(this,e)});$("M",Ee,So);$("MM",Ee,gt);$("MMM",function(e,t){return t.monthsShortRegex(e)});$("MMMM",function(e,t){return t.monthsRegex(e)});we(["M","MM"],function(e,t){t[yn]=ie(e)-1});we(["MMM","MMMM"],function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);o!=null?t[yn]=o:ee(n).invalidMonth=e});var I9="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),$g="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),zg=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,P9=$s,D9=$s;function N9(e,t){return e?Dt(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||zg).test(t)?"format":"standalone"][e.month()]:Dt(this._months)?this._months:this._months.standalone}function O9(e,t){return e?Dt(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[zg.test(t)?"format":"standalone"][e.month()]:Dt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function $9(e,t,n){var r,o,s,l=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)s=rn([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase();return n?t==="MMM"?(o=Pe.call(this._shortMonthsParse,l),o!==-1?o:null):(o=Pe.call(this._longMonthsParse,l),o!==-1?o:null):t==="MMM"?(o=Pe.call(this._shortMonthsParse,l),o!==-1?o:(o=Pe.call(this._longMonthsParse,l),o!==-1?o:null)):(o=Pe.call(this._longMonthsParse,l),o!==-1?o:(o=Pe.call(this._shortMonthsParse,l),o!==-1?o:null))}function z9(e,t,n){var r,o,s;if(this._monthsParseExact)return $9.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=rn([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(s="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(s.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function Fg(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=ie(t);else if(t=e.localeData().monthsParse(t),!Rn(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,Yu(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function Bg(e){return e!=null?(Fg(this,e),L.updateOffset(this,!0),this):ms(this,"Month")}function F9(){return Yu(this.year(),this.month())}function B9(e){return this._monthsParseExact?(fe(this,"_monthsRegex")||qg.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(fe(this,"_monthsShortRegex")||(this._monthsShortRegex=P9),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function q9(e){return this._monthsParseExact?(fe(this,"_monthsRegex")||qg.call(this),e?this._monthsStrictRegex:this._monthsRegex):(fe(this,"_monthsRegex")||(this._monthsRegex=D9),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function qg(){function e(c,d){return d.length-c.length}var t=[],n=[],r=[],o,s,l,i;for(o=0;o<12;o++)s=rn([2e3,o]),l=bn(this.monthsShort(s,"")),i=bn(this.months(s,"")),t.push(l),n.push(i),r.push(i),r.push(l);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function W9(e,t,n,r,o,s,l){var i;return e<100&&e>=0?(i=new Date(e+400,t,n,r,o,s,l),isFinite(i.getFullYear())&&i.setFullYear(e)):i=new Date(e,t,n,r,o,s,l),i}function ps(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function ri(e,t,n){var r=7+t-n,o=(7+ps(e,0,r).getUTCDay()-t)%7;return-o+r-1}function Wg(e,t,n,r,o){var s=(7+n-r)%7,l=ri(e,r,o),i=1+7*(t-1)+s+l,c,d;return i<=0?(c=e-1,d=Jo(c)+i):i>Jo(e)?(c=e+1,d=i-Jo(e)):(c=e,d=i),{year:c,dayOfYear:d}}function hs(e,t,n){var r=ri(e.year(),t,n),o=Math.floor((e.dayOfYear()-r-1)/7)+1,s,l;return o<1?(l=e.year()-1,s=o+wn(l,t,n)):o>wn(e.year(),t,n)?(s=o-wn(e.year(),t,n),l=e.year()+1):(l=e.year(),s=o),{week:s,year:l}}function wn(e,t,n){var r=ri(e,t,n),o=ri(e+1,t,n);return(Jo(e)-r+o)/7}Y("w",["ww",2],"wo","week");Y("W",["WW",2],"Wo","isoWeek");$("w",Ee,So);$("ww",Ee,gt);$("W",Ee,So);$("WW",Ee,gt);zs(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=ie(e)});function G9(e){return hs(e,this._week.dow,this._week.doy).week}var Y9={dow:0,doy:6};function U9(){return this._week.dow}function V9(){return this._week.doy}function H9(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Z9(e){var t=hs(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Y("d",0,"do","day");Y("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Y("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Y("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Y("e",0,0,"weekday");Y("E",0,0,"isoWeekday");$("d",Ee);$("e",Ee);$("E",Ee);$("dd",function(e,t){return t.weekdaysMinRegex(e)});$("ddd",function(e,t){return t.weekdaysShortRegex(e)});$("dddd",function(e,t){return t.weekdaysRegex(e)});zs(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);o!=null?t.d=o:ee(n).invalidWeekday=e});zs(["d","e","E"],function(e,t,n,r){t[r]=ie(e)});function X9(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function K9(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Uu(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Q9="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Gg="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),J9="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ex=$s,tx=$s,nx=$s;function rx(e,t){var n=Dt(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Uu(n,this._week.dow):e?n[e.day()]:n}function ox(e){return e===!0?Uu(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function sx(e){return e===!0?Uu(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function lx(e,t,n){var r,o,s,l=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)s=rn([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(s,"").toLocaleLowerCase();return n?t==="dddd"?(o=Pe.call(this._weekdaysParse,l),o!==-1?o:null):t==="ddd"?(o=Pe.call(this._shortWeekdaysParse,l),o!==-1?o:null):(o=Pe.call(this._minWeekdaysParse,l),o!==-1?o:null):t==="dddd"?(o=Pe.call(this._weekdaysParse,l),o!==-1||(o=Pe.call(this._shortWeekdaysParse,l),o!==-1)?o:(o=Pe.call(this._minWeekdaysParse,l),o!==-1?o:null)):t==="ddd"?(o=Pe.call(this._shortWeekdaysParse,l),o!==-1||(o=Pe.call(this._weekdaysParse,l),o!==-1)?o:(o=Pe.call(this._minWeekdaysParse,l),o!==-1?o:null)):(o=Pe.call(this._minWeekdaysParse,l),o!==-1||(o=Pe.call(this._weekdaysParse,l),o!==-1)?o:(o=Pe.call(this._shortWeekdaysParse,l),o!==-1?o:null))}function ix(e,t,n){var r,o,s;if(this._weekdaysParseExact)return lx.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=rn([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(s="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(s.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function ax(e){if(!this.isValid())return e!=null?this:NaN;var t=ms(this,"Day");return e!=null?(e=X9(e,this.localeData()),this.add(e-t,"d")):t}function cx(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function ux(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=K9(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function dx(e){return this._weekdaysParseExact?(fe(this,"_weekdaysRegex")||Vu.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(fe(this,"_weekdaysRegex")||(this._weekdaysRegex=ex),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function fx(e){return this._weekdaysParseExact?(fe(this,"_weekdaysRegex")||Vu.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(fe(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tx),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function mx(e){return this._weekdaysParseExact?(fe(this,"_weekdaysRegex")||Vu.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(fe(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nx),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Vu(){function e(f,m){return m.length-f.length}var t=[],n=[],r=[],o=[],s,l,i,c,d;for(s=0;s<7;s++)l=rn([2e3,1]).day(s),i=bn(this.weekdaysMin(l,"")),c=bn(this.weekdaysShort(l,"")),d=bn(this.weekdays(l,"")),t.push(i),n.push(c),r.push(d),o.push(i),o.push(c),o.push(d);t.sort(e),n.sort(e),r.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Hu(){return this.hours()%12||12}function px(){return this.hours()||24}Y("H",["HH",2],0,"hour");Y("h",["hh",2],0,Hu);Y("k",["kk",2],0,px);Y("hmm",0,0,function(){return""+Hu.apply(this)+Jt(this.minutes(),2)});Y("hmmss",0,0,function(){return""+Hu.apply(this)+Jt(this.minutes(),2)+Jt(this.seconds(),2)});Y("Hmm",0,0,function(){return""+this.hours()+Jt(this.minutes(),2)});Y("Hmmss",0,0,function(){return""+this.hours()+Jt(this.minutes(),2)+Jt(this.seconds(),2)});function Yg(e,t){Y(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Yg("a",!0);Yg("A",!1);function Ug(e,t){return t._meridiemParse}$("a",Ug);$("A",Ug);$("H",Ee,Gu);$("h",Ee,So);$("k",Ee,So);$("HH",Ee,gt);$("hh",Ee,gt);$("kk",Ee,gt);$("hmm",Pg);$("hmmss",Dg);$("Hmm",Pg);$("Hmmss",Dg);we(["H","HH"],We);we(["k","kk"],function(e,t,n){var r=ie(e);t[We]=r===24?0:r});we(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});we(["h","hh"],function(e,t,n){t[We]=ie(e),ee(n).bigHour=!0});we("hmm",function(e,t,n){var r=e.length-2;t[We]=ie(e.substr(0,r)),t[At]=ie(e.substr(r)),ee(n).bigHour=!0});we("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[We]=ie(e.substr(0,r)),t[At]=ie(e.substr(r,2)),t[vn]=ie(e.substr(o)),ee(n).bigHour=!0});we("Hmm",function(e,t,n){var r=e.length-2;t[We]=ie(e.substr(0,r)),t[At]=ie(e.substr(r))});we("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[We]=ie(e.substr(0,r)),t[At]=ie(e.substr(r,2)),t[vn]=ie(e.substr(o))});function hx(e){return(e+"").toLowerCase().charAt(0)==="p"}var gx=/[ap]\.?m?\.?/i,yx=Ro("Hours",!0);function vx(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Vg={calendar:l9,longDateFormat:u9,invalidDate:f9,ordinal:p9,dayOfMonthOrdinalParse:h9,relativeTime:y9,months:I9,monthsShort:$g,week:Y9,weekdays:Q9,weekdaysMin:J9,weekdaysShort:Gg,meridiemParse:gx},Te={},zo={},gs;function bx(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function hm(e){return e&&e.toLowerCase().replace("_","-")}function wx(e){for(var t=0,n,r,o,s;t<e.length;){for(s=hm(e[t]).split("-"),n=s.length,r=hm(e[t+1]),r=r?r.split("-"):null;n>0;){if(o=Hi(s.slice(0,n).join("-")),o)return o;if(r&&r.length>=n&&bx(s,r)>=n-1)break;n--}t++}return gs}function xx(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Hi(e){var t=null,n;if(Te[e]===void 0&&typeof module<"u"&&module&&module.exports&&xx(e))try{t=gs._abbr,n=require,n("./locale/"+e),Vn(t)}catch{Te[e]=null}return Te[e]}function Vn(e,t){var n;return e&&(st(t)?n=jn(e):n=Zu(e,t),n?gs=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),gs._abbr}function Zu(e,t){if(t!==null){var n,r=Vg;if(t.abbr=e,Te[e]!=null)Lg("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Te[e]._config;else if(t.parentLocale!=null)if(Te[t.parentLocale]!=null)r=Te[t.parentLocale]._config;else if(n=Hi(t.parentLocale),n!=null)r=n._config;else return zo[t.parentLocale]||(zo[t.parentLocale]=[]),zo[t.parentLocale].push({name:e,config:t}),null;return Te[e]=new zu(Ac(r,t)),zo[e]&&zo[e].forEach(function(o){Zu(o.name,o.config)}),Vn(e),Te[e]}else return delete Te[e],null}function Cx(e,t){if(t!=null){var n,r,o=Vg;Te[e]!=null&&Te[e].parentLocale!=null?Te[e].set(Ac(Te[e]._config,t)):(r=Hi(e),r!=null&&(o=r._config),t=Ac(o,t),r==null&&(t.abbr=e),n=new zu(t),n.parentLocale=Te[e],Te[e]=n),Vn(e)}else Te[e]!=null&&(Te[e].parentLocale!=null?(Te[e]=Te[e].parentLocale,e===Vn()&&Vn(e)):Te[e]!=null&&delete Te[e]);return Te[e]}function jn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return gs;if(!Dt(e)){if(t=Hi(e),t)return t;e=[e]}return wx(e)}function _x(){return Ic(Te)}function Xu(e){var t,n=e._a;return n&&ee(e).overflow===-2&&(t=n[yn]<0||n[yn]>11?yn:n[Zt]<1||n[Zt]>Yu(n[tt],n[yn])?Zt:n[We]<0||n[We]>24||n[We]===24&&(n[At]!==0||n[vn]!==0||n[fr]!==0)?We:n[At]<0||n[At]>59?At:n[vn]<0||n[vn]>59?vn:n[fr]<0||n[fr]>999?fr:-1,ee(e)._overflowDayOfYear&&(t<tt||t>Zt)&&(t=Zt),ee(e)._overflowWeeks&&t===-1&&(t=E9),ee(e)._overflowWeekday&&t===-1&&(t=j9),ee(e).overflow=t),e}var kx=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sx=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Rx=/Z|[+-]\d\d(?::?\d\d)?/,hl=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],qa=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ex=/^\/?Date\((-?\d+)/i,jx=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Tx={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Hg(e){var t,n,r=e._i,o=kx.exec(r)||Sx.exec(r),s,l,i,c,d=hl.length,f=qa.length;if(o){for(ee(e).iso=!0,t=0,n=d;t<n;t++)if(hl[t][1].exec(o[1])){l=hl[t][0],s=hl[t][2]!==!1;break}if(l==null){e._isValid=!1;return}if(o[3]){for(t=0,n=f;t<n;t++)if(qa[t][1].exec(o[3])){i=(o[2]||" ")+qa[t][0];break}if(i==null){e._isValid=!1;return}}if(!s&&i!=null){e._isValid=!1;return}if(o[4])if(Rx.exec(o[4]))c="Z";else{e._isValid=!1;return}e._f=l+(i||"")+(c||""),Qu(e)}else e._isValid=!1}function Lx(e,t,n,r,o,s){var l=[Mx(e),$g.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return s&&l.push(parseInt(s,10)),l}function Mx(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Ax(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ix(e,t,n){if(e){var r=Gg.indexOf(e),o=new Date(t[0],t[1],t[2]).getDay();if(r!==o)return ee(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function Px(e,t,n){if(e)return Tx[e];if(t)return 0;var r=parseInt(n,10),o=r%100,s=(r-o)/100;return s*60+o}function Zg(e){var t=jx.exec(Ax(e._i)),n;if(t){if(n=Lx(t[4],t[3],t[2],t[5],t[6],t[7]),!Ix(t[1],n,e))return;e._a=n,e._tzm=Px(t[8],t[9],t[10]),e._d=ps.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),ee(e).rfc2822=!0}else e._isValid=!1}function Dx(e){var t=Ex.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Hg(e),e._isValid===!1)delete e._isValid;else return;if(Zg(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:L.createFromInputFallback(e)}L.createFromInputFallback=jt("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function $r(e,t,n){return e??t??n}function Nx(e){var t=new Date(L.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Ku(e){var t,n,r=[],o,s,l;if(!e._d){for(o=Nx(e),e._w&&e._a[Zt]==null&&e._a[yn]==null&&Ox(e),e._dayOfYear!=null&&(l=$r(e._a[tt],o[tt]),(e._dayOfYear>Jo(l)||e._dayOfYear===0)&&(ee(e)._overflowDayOfYear=!0),n=ps(l,0,e._dayOfYear),e._a[yn]=n.getUTCMonth(),e._a[Zt]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=o[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[We]===24&&e._a[At]===0&&e._a[vn]===0&&e._a[fr]===0&&(e._nextDay=!0,e._a[We]=0),e._d=(e._useUTC?ps:W9).apply(null,r),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[We]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==s&&(ee(e).weekdayMismatch=!0)}}function Ox(e){var t,n,r,o,s,l,i,c,d;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(s=1,l=4,n=$r(t.GG,e._a[tt],hs(Re(),1,4).year),r=$r(t.W,1),o=$r(t.E,1),(o<1||o>7)&&(c=!0)):(s=e._locale._week.dow,l=e._locale._week.doy,d=hs(Re(),s,l),n=$r(t.gg,e._a[tt],d.year),r=$r(t.w,d.week),t.d!=null?(o=t.d,(o<0||o>6)&&(c=!0)):t.e!=null?(o=t.e+s,(t.e<0||t.e>6)&&(c=!0)):o=s),r<1||r>wn(n,s,l)?ee(e)._overflowWeeks=!0:c!=null?ee(e)._overflowWeekday=!0:(i=Wg(n,r,o,s,l),e._a[tt]=i.year,e._dayOfYear=i.dayOfYear)}L.ISO_8601=function(){};L.RFC_2822=function(){};function Qu(e){if(e._f===L.ISO_8601){Hg(e);return}if(e._f===L.RFC_2822){Zg(e);return}e._a=[],ee(e).empty=!0;var t=""+e._i,n,r,o,s,l,i=t.length,c=0,d,f;for(o=Mg(e._f,e._locale).match(Fu)||[],f=o.length,n=0;n<f;n++)s=o[n],r=(t.match(k9(s,e))||[])[0],r&&(l=t.substr(0,t.indexOf(r)),l.length>0&&ee(e).unusedInput.push(l),t=t.slice(t.indexOf(r)+r.length),c+=r.length),Hr[s]?(r?ee(e).empty=!1:ee(e).unusedTokens.push(s),R9(s,r,e)):e._strict&&!r&&ee(e).unusedTokens.push(s);ee(e).charsLeftOver=i-c,t.length>0&&ee(e).unusedInput.push(t),e._a[We]<=12&&ee(e).bigHour===!0&&e._a[We]>0&&(ee(e).bigHour=void 0),ee(e).parsedDateParts=e._a.slice(0),ee(e).meridiem=e._meridiem,e._a[We]=$x(e._locale,e._a[We],e._meridiem),d=ee(e).era,d!==null&&(e._a[tt]=e._locale.erasConvertYear(d,e._a[tt])),Ku(e),Xu(e)}function $x(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function zx(e){var t,n,r,o,s,l,i=!1,c=e._f.length;if(c===0){ee(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;o<c;o++)s=0,l=!1,t=$u({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[o],Qu(t),Ou(t)&&(l=!0),s+=ee(t).charsLeftOver,s+=ee(t).unusedTokens.length*10,ee(t).score=s,i?s<r&&(r=s,n=t):(r==null||s<r||l)&&(r=s,n=t,l&&(i=!0));Gn(e,n||t)}function Fx(e){if(!e._d){var t=Bu(e._i),n=t.day===void 0?t.date:t.day;e._a=jg([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),Ku(e)}}function Bx(e){var t=new Os(Xu(Xg(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Xg(e){var t=e._i,n=e._f;return e._locale=e._locale||jn(e._l),t===null||n===void 0&&t===""?Bi({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Nt(t)?new Os(Xu(t)):(Ns(t)?e._d=t:Dt(n)?zx(e):n?Qu(e):qx(e),Ou(e)||(e._d=null),e))}function qx(e){var t=e._i;st(t)?e._d=new Date(L.now()):Ns(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Dx(e):Dt(t)?(e._a=jg(t.slice(0),function(n){return parseInt(n,10)}),Ku(e)):mr(t)?Fx(e):Rn(t)?e._d=new Date(t):L.createFromInputFallback(e)}function Kg(e,t,n,r,o){var s={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(mr(e)&&Nu(e)||Dt(e)&&e.length===0)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=o,s._l=n,s._i=e,s._f=t,s._strict=r,Bx(s)}function Re(e,t,n,r){return Kg(e,t,n,r,!1)}var Wx=jt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Re.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Bi()}),Gx=jt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Re.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Bi()});function Qg(e,t){var n,r;if(t.length===1&&Dt(t[0])&&(t=t[0]),!t.length)return Re();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function Yx(){var e=[].slice.call(arguments,0);return Qg("isBefore",e)}function Ux(){var e=[].slice.call(arguments,0);return Qg("isAfter",e)}var Vx=function(){return Date.now?Date.now():+new Date},Fo=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Hx(e){var t,n=!1,r,o=Fo.length;for(t in e)if(fe(e,t)&&!(Pe.call(Fo,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<o;++r)if(e[Fo[r]]){if(n)return!1;parseFloat(e[Fo[r]])!==ie(e[Fo[r]])&&(n=!0)}return!0}function Zx(){return this._isValid}function Xx(){return Ft(NaN)}function Zi(e){var t=Bu(e),n=t.year||0,r=t.quarter||0,o=t.month||0,s=t.week||t.isoWeek||0,l=t.day||0,i=t.hour||0,c=t.minute||0,d=t.second||0,f=t.millisecond||0;this._isValid=Hx(t),this._milliseconds=+f+d*1e3+c*6e4+i*1e3*60*60,this._days=+l+s*7,this._months=+o+r*3+n*12,this._data={},this._locale=jn(),this._bubble()}function Al(e){return e instanceof Zi}function Dc(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Kx(e,t,n){var r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),s=0,l;for(l=0;l<r;l++)ie(e[l])!==ie(t[l])&&s++;return s+o}function Jg(e,t){Y(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Jt(~~(n/60),2)+t+Jt(~~n%60,2)})}Jg("Z",":");Jg("ZZ","");$("Z",Ui);$("ZZ",Ui);we(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ju(Ui,e)});var Qx=/([\+\-]|\d\d)/gi;function Ju(e,t){var n=(t||"").match(e),r,o,s;return n===null?null:(r=n[n.length-1]||[],o=(r+"").match(Qx)||["-",0,0],s=+(o[1]*60)+ie(o[2]),s===0?0:o[0]==="+"?s:-s)}function ed(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(Nt(e)||Ns(e)?e.valueOf():Re(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),L.updateOffset(n,!1),n):Re(e).local()}function Nc(e){return-Math.round(e._d.getTimezoneOffset())}L.updateOffset=function(){};function Jx(e,t,n){var r=this._offset||0,o;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Ju(Ui,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(o=Nc(this)),this._offset=e,this._isUTC=!0,o!=null&&this.add(o,"m"),r!==e&&(!t||this._changeInProgress?n1(this,Ft(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,L.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Nc(this)}function eC(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function tC(e){return this.utcOffset(0,e)}function nC(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Nc(this),"m")),this}function rC(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Ju(C9,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function oC(e){return this.isValid()?(e=e?Re(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function sC(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function lC(){if(!st(this._isDSTShifted))return this._isDSTShifted;var e={},t;return $u(e,this),e=Xg(e),e._a?(t=e._isUTC?rn(e._a):Re(e._a),this._isDSTShifted=this.isValid()&&Kx(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function iC(){return this.isValid()?!this._isUTC:!1}function aC(){return this.isValid()?this._isUTC:!1}function e1(){return this.isValid()?this._isUTC&&this._offset===0:!1}var cC=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,uC=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ft(e,t){var n=e,r=null,o,s,l;return Al(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Rn(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=cC.exec(e))?(o=r[1]==="-"?-1:1,n={y:0,d:ie(r[Zt])*o,h:ie(r[We])*o,m:ie(r[At])*o,s:ie(r[vn])*o,ms:ie(Dc(r[fr]*1e3))*o}):(r=uC.exec(e))?(o=r[1]==="-"?-1:1,n={y:ar(r[2],o),M:ar(r[3],o),w:ar(r[4],o),d:ar(r[5],o),h:ar(r[6],o),m:ar(r[7],o),s:ar(r[8],o)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(l=dC(Re(n.from),Re(n.to)),n={},n.ms=l.milliseconds,n.M=l.months),s=new Zi(n),Al(e)&&fe(e,"_locale")&&(s._locale=e._locale),Al(e)&&fe(e,"_isValid")&&(s._isValid=e._isValid),s}Ft.fn=Zi.prototype;Ft.invalid=Xx;function ar(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function gm(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function dC(e,t){var n;return e.isValid()&&t.isValid()?(t=ed(t,e),e.isBefore(t)?n=gm(e,t):(n=gm(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function t1(e,t){return function(n,r){var o,s;return r!==null&&!isNaN(+r)&&(Lg(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=n,n=r,r=s),o=Ft(n,r),n1(this,o,e),this}}function n1(e,t,n,r){var o=t._milliseconds,s=Dc(t._days),l=Dc(t._months);e.isValid()&&(r=r??!0,l&&Fg(e,ms(e,"Month")+l*n),s&&Og(e,"Date",ms(e,"Date")+s*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&L.updateOffset(e,s||l))}var fC=t1(1,"add"),mC=t1(-1,"subtract");function r1(e){return typeof e=="string"||e instanceof String}function pC(e){return Nt(e)||Ns(e)||r1(e)||Rn(e)||gC(e)||hC(e)||e===null||e===void 0}function hC(e){var t=mr(e)&&!Nu(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,s,l=r.length;for(o=0;o<l;o+=1)s=r[o],n=n||fe(e,s);return t&&n}function gC(e){var t=Dt(e),n=!1;return t&&(n=e.filter(function(r){return!Rn(r)&&r1(e)}).length===0),t&&n}function yC(e){var t=mr(e)&&!Nu(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],o,s;for(o=0;o<r.length;o+=1)s=r[o],n=n||fe(e,s);return t&&n}function vC(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function bC(e,t){arguments.length===1&&(arguments[0]?pC(arguments[0])?(e=arguments[0],t=void 0):yC(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Re(),r=ed(n,this).startOf("day"),o=L.calendarFormat(this,r)||"sameElse",s=t&&(on(t[o])?t[o].call(this,n):t[o]);return this.format(s||this.localeData().calendar(o,this,Re(n)))}function wC(){return new Os(this)}function xC(e,t){var n=Nt(e)?e:Re(e);return this.isValid()&&n.isValid()?(t=Tt(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function CC(e,t){var n=Nt(e)?e:Re(e);return this.isValid()&&n.isValid()?(t=Tt(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function _C(e,t,n,r){var o=Nt(e)?e:Re(e),s=Nt(t)?t:Re(t);return this.isValid()&&o.isValid()&&s.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(o,n):!this.isBefore(o,n))&&(r[1]===")"?this.isBefore(s,n):!this.isAfter(s,n))):!1}function kC(e,t){var n=Nt(e)?e:Re(e),r;return this.isValid()&&n.isValid()?(t=Tt(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function SC(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function RC(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function EC(e,t,n){var r,o,s;if(!this.isValid())return NaN;if(r=ed(e,this),!r.isValid())return NaN;switch(o=(r.utcOffset()-this.utcOffset())*6e4,t=Tt(t),t){case"year":s=Il(this,r)/12;break;case"month":s=Il(this,r);break;case"quarter":s=Il(this,r)/3;break;case"second":s=(this-r)/1e3;break;case"minute":s=(this-r)/6e4;break;case"hour":s=(this-r)/36e5;break;case"day":s=(this-r-o)/864e5;break;case"week":s=(this-r-o)/6048e5;break;default:s=this-r}return n?s:Ct(s)}function Il(e,t){if(e.date()<t.date())return-Il(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),o,s;return t-r<0?(o=e.clone().add(n-1,"months"),s=(t-r)/(r-o)):(o=e.clone().add(n+1,"months"),s=(t-r)/(o-r)),-(n+s)||0}L.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";L.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function jC(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function TC(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Ml(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):on(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ml(n,"Z")):Ml(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function LC(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,o,s;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",s=t+'[")]',this.format(n+r+o+s)}function MC(e){e||(e=this.isUtc()?L.defaultFormatUtc:L.defaultFormat);var t=Ml(this,e);return this.localeData().postformat(t)}function AC(e,t){return this.isValid()&&(Nt(e)&&e.isValid()||Re(e).isValid())?Ft({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function IC(e){return this.from(Re(),e)}function PC(e,t){return this.isValid()&&(Nt(e)&&e.isValid()||Re(e).isValid())?Ft({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function DC(e){return this.to(Re(),e)}function o1(e){var t;return e===void 0?this._locale._abbr:(t=jn(e),t!=null&&(this._locale=t),this)}var s1=jt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function l1(){return this._locale}var oi=1e3,Zr=60*oi,si=60*Zr,i1=(365*400+97)*24*si;function Xr(e,t){return(e%t+t)%t}function a1(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-i1:new Date(e,t,n).valueOf()}function c1(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-i1:Date.UTC(e,t,n)}function NC(e){var t,n;if(e=Tt(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?c1:a1,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Xr(t+(this._isUTC?0:this.utcOffset()*Zr),si);break;case"minute":t=this._d.valueOf(),t-=Xr(t,Zr);break;case"second":t=this._d.valueOf(),t-=Xr(t,oi);break}return this._d.setTime(t),L.updateOffset(this,!0),this}function OC(e){var t,n;if(e=Tt(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?c1:a1,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=si-Xr(t+(this._isUTC?0:this.utcOffset()*Zr),si)-1;break;case"minute":t=this._d.valueOf(),t+=Zr-Xr(t,Zr)-1;break;case"second":t=this._d.valueOf(),t+=oi-Xr(t,oi)-1;break}return this._d.setTime(t),L.updateOffset(this,!0),this}function $C(){return this._d.valueOf()-(this._offset||0)*6e4}function zC(){return Math.floor(this.valueOf()/1e3)}function FC(){return new Date(this.valueOf())}function BC(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function qC(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function WC(){return this.isValid()?this.toISOString():null}function GC(){return Ou(this)}function YC(){return Gn({},ee(this))}function UC(){return ee(this).overflow}function VC(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Y("N",0,0,"eraAbbr");Y("NN",0,0,"eraAbbr");Y("NNN",0,0,"eraAbbr");Y("NNNN",0,0,"eraName");Y("NNNNN",0,0,"eraNarrow");Y("y",["y",1],"yo","eraYear");Y("y",["yy",2],0,"eraYear");Y("y",["yyy",3],0,"eraYear");Y("y",["yyyy",4],0,"eraYear");$("N",td);$("NN",td);$("NNN",td);$("NNNN",o_);$("NNNNN",s_);we(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?ee(n).era=o:ee(n).invalidEra=e});$("y",ko);$("yy",ko);$("yyy",ko);$("yyyy",ko);$("yo",l_);we(["y","yy","yyy","yyyy"],tt);we(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[tt]=n._locale.eraYearOrdinalParse(e,o):t[tt]=parseInt(e,10)});function HC(e,t){var n,r,o,s=this._eras||jn("en")._eras;for(n=0,r=s.length;n<r;++n){switch(typeof s[n].since){case"string":o=L(s[n].since).startOf("day"),s[n].since=o.valueOf();break}switch(typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":o=L(s[n].until).startOf("day").valueOf(),s[n].until=o.valueOf();break}}return s}function ZC(e,t,n){var r,o,s=this.eras(),l,i,c;for(e=e.toUpperCase(),r=0,o=s.length;r<o;++r)if(l=s[r].name.toUpperCase(),i=s[r].abbr.toUpperCase(),c=s[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(i===e)return s[r];break;case"NNNN":if(l===e)return s[r];break;case"NNNNN":if(c===e)return s[r];break}else if([l,i,c].indexOf(e)>=0)return s[r]}function XC(e,t){var n=e.since<=e.until?1:-1;return t===void 0?L(e.since).year():L(e.since).year()+(t-e.offset)*n}function KC(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function QC(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function JC(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function e_(){var e,t,n,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return(this.year()-L(o[e].since).year())*n+o[e].offset;return this.year()}function t_(e){return fe(this,"_erasNameRegex")||nd.call(this),e?this._erasNameRegex:this._erasRegex}function n_(e){return fe(this,"_erasAbbrRegex")||nd.call(this),e?this._erasAbbrRegex:this._erasRegex}function r_(e){return fe(this,"_erasNarrowRegex")||nd.call(this),e?this._erasNarrowRegex:this._erasRegex}function td(e,t){return t.erasAbbrRegex(e)}function o_(e,t){return t.erasNameRegex(e)}function s_(e,t){return t.erasNarrowRegex(e)}function l_(e,t){return t._eraYearOrdinalRegex||ko}function nd(){var e=[],t=[],n=[],r=[],o,s,l,i,c,d=this.eras();for(o=0,s=d.length;o<s;++o)l=bn(d[o].name),i=bn(d[o].abbr),c=bn(d[o].narrow),t.push(l),e.push(i),n.push(c),r.push(l),r.push(i),r.push(c);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}Y(0,["gg",2],0,function(){return this.weekYear()%100});Y(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Xi(e,t){Y(0,[e,e.length],0,t)}Xi("gggg","weekYear");Xi("ggggg","weekYear");Xi("GGGG","isoWeekYear");Xi("GGGGG","isoWeekYear");$("G",Yi);$("g",Yi);$("GG",Ee,gt);$("gg",Ee,gt);$("GGGG",Wu,qu);$("gggg",Wu,qu);$("GGGGG",Gi,qi);$("ggggg",Gi,qi);zs(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=ie(e)});zs(["gg","GG"],function(e,t,n,r){t[r]=L.parseTwoDigitYear(e)});function i_(e){return u1.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function a_(e){return u1.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function c_(){return wn(this.year(),1,4)}function u_(){return wn(this.isoWeekYear(),1,4)}function d_(){var e=this.localeData()._week;return wn(this.year(),e.dow,e.doy)}function f_(){var e=this.localeData()._week;return wn(this.weekYear(),e.dow,e.doy)}function u1(e,t,n,r,o){var s;return e==null?hs(this,r,o).year:(s=wn(e,r,o),t>s&&(t=s),m_.call(this,e,t,n,r,o))}function m_(e,t,n,r,o){var s=Wg(e,t,n,r,o),l=ps(s.year,0,s.dayOfYear);return this.year(l.getUTCFullYear()),this.month(l.getUTCMonth()),this.date(l.getUTCDate()),this}Y("Q",0,"Qo","quarter");$("Q",Ag);we("Q",function(e,t){t[yn]=(ie(e)-1)*3});function p_(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Y("D",["DD",2],"Do","date");$("D",Ee,So);$("DD",Ee,gt);$("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});we(["D","DD"],Zt);we("Do",function(e,t){t[Zt]=ie(e.match(Ee)[0])});var d1=Ro("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear");$("DDD",Wi);$("DDDD",Ig);we(["DDD","DDDD"],function(e,t,n){n._dayOfYear=ie(e)});function h_(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Y("m",["mm",2],0,"minute");$("m",Ee,Gu);$("mm",Ee,gt);we(["m","mm"],At);var g_=Ro("Minutes",!1);Y("s",["ss",2],0,"second");$("s",Ee,Gu);$("ss",Ee,gt);we(["s","ss"],vn);var y_=Ro("Seconds",!1);Y("S",0,0,function(){return~~(this.millisecond()/100)});Y(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Y(0,["SSS",3],0,"millisecond");Y(0,["SSSS",4],0,function(){return this.millisecond()*10});Y(0,["SSSSS",5],0,function(){return this.millisecond()*100});Y(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Y(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Y(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Y(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});$("S",Wi,Ag);$("SS",Wi,gt);$("SSS",Wi,Ig);var Yn,f1;for(Yn="SSSS";Yn.length<=9;Yn+="S")$(Yn,ko);function v_(e,t){t[fr]=ie(("0."+e)*1e3)}for(Yn="S";Yn.length<=9;Yn+="S")we(Yn,v_);f1=Ro("Milliseconds",!1);Y("z",0,0,"zoneAbbr");Y("zz",0,0,"zoneName");function b_(){return this._isUTC?"UTC":""}function w_(){return this._isUTC?"Coordinated Universal Time":""}var I=Os.prototype;I.add=fC;I.calendar=bC;I.clone=wC;I.diff=EC;I.endOf=OC;I.format=MC;I.from=AC;I.fromNow=IC;I.to=PC;I.toNow=DC;I.get=L9;I.invalidAt=UC;I.isAfter=xC;I.isBefore=CC;I.isBetween=_C;I.isSame=kC;I.isSameOrAfter=SC;I.isSameOrBefore=RC;I.isValid=GC;I.lang=s1;I.locale=o1;I.localeData=l1;I.max=Gx;I.min=Wx;I.parsingFlags=YC;I.set=M9;I.startOf=NC;I.subtract=mC;I.toArray=BC;I.toObject=qC;I.toDate=FC;I.toISOString=TC;I.inspect=LC;typeof Symbol<"u"&&Symbol.for!=null&&(I[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});I.toJSON=WC;I.toString=jC;I.unix=zC;I.valueOf=$C;I.creationData=VC;I.eraName=KC;I.eraNarrow=QC;I.eraAbbr=JC;I.eraYear=e_;I.year=Ng;I.isLeapYear=T9;I.weekYear=i_;I.isoWeekYear=a_;I.quarter=I.quarters=p_;I.month=Bg;I.daysInMonth=F9;I.week=I.weeks=H9;I.isoWeek=I.isoWeeks=Z9;I.weeksInYear=d_;I.weeksInWeekYear=f_;I.isoWeeksInYear=c_;I.isoWeeksInISOWeekYear=u_;I.date=d1;I.day=I.days=ax;I.weekday=cx;I.isoWeekday=ux;I.dayOfYear=h_;I.hour=I.hours=yx;I.minute=I.minutes=g_;I.second=I.seconds=y_;I.millisecond=I.milliseconds=f1;I.utcOffset=Jx;I.utc=tC;I.local=nC;I.parseZone=rC;I.hasAlignedHourOffset=oC;I.isDST=sC;I.isLocal=iC;I.isUtcOffset=aC;I.isUtc=e1;I.isUTC=e1;I.zoneAbbr=b_;I.zoneName=w_;I.dates=jt("dates accessor is deprecated. Use date instead.",d1);I.months=jt("months accessor is deprecated. Use month instead",Bg);I.years=jt("years accessor is deprecated. Use year instead",Ng);I.zone=jt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",eC);I.isDSTShifted=jt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",lC);function x_(e){return Re(e*1e3)}function C_(){return Re.apply(null,arguments).parseZone()}function m1(e){return e}var me=zu.prototype;me.calendar=i9;me.longDateFormat=d9;me.invalidDate=m9;me.ordinal=g9;me.preparse=m1;me.postformat=m1;me.relativeTime=v9;me.pastFuture=b9;me.set=s9;me.eras=HC;me.erasParse=ZC;me.erasConvertYear=XC;me.erasAbbrRegex=n_;me.erasNameRegex=t_;me.erasNarrowRegex=r_;me.months=N9;me.monthsShort=O9;me.monthsParse=z9;me.monthsRegex=q9;me.monthsShortRegex=B9;me.week=G9;me.firstDayOfYear=V9;me.firstDayOfWeek=U9;me.weekdays=rx;me.weekdaysMin=sx;me.weekdaysShort=ox;me.weekdaysParse=ix;me.weekdaysRegex=dx;me.weekdaysShortRegex=fx;me.weekdaysMinRegex=mx;me.isPM=hx;me.meridiem=vx;function li(e,t,n,r){var o=jn(),s=rn().set(r,t);return o[n](s,e)}function p1(e,t,n){if(Rn(e)&&(t=e,e=void 0),e=e||"",t!=null)return li(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=li(e,r,n,"month");return o}function rd(e,t,n,r){typeof e=="boolean"?(Rn(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Rn(t)&&(n=t,t=void 0),t=t||"");var o=jn(),s=e?o._week.dow:0,l,i=[];if(n!=null)return li(t,(n+s)%7,r,"day");for(l=0;l<7;l++)i[l]=li(t,(l+s)%7,r,"day");return i}function __(e,t){return p1(e,t,"months")}function k_(e,t){return p1(e,t,"monthsShort")}function S_(e,t,n){return rd(e,t,n,"weekdays")}function R_(e,t,n){return rd(e,t,n,"weekdaysShort")}function E_(e,t,n){return rd(e,t,n,"weekdaysMin")}Vn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=ie(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});L.lang=jt("moment.lang is deprecated. Use moment.locale instead.",Vn);L.langData=jt("moment.langData is deprecated. Use moment.localeData instead.",jn);var dn=Math.abs;function j_(){var e=this._data;return this._milliseconds=dn(this._milliseconds),this._days=dn(this._days),this._months=dn(this._months),e.milliseconds=dn(e.milliseconds),e.seconds=dn(e.seconds),e.minutes=dn(e.minutes),e.hours=dn(e.hours),e.months=dn(e.months),e.years=dn(e.years),this}function h1(e,t,n,r){var o=Ft(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function T_(e,t){return h1(this,e,t,1)}function L_(e,t){return h1(this,e,t,-1)}function ym(e){return e<0?Math.floor(e):Math.ceil(e)}function M_(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,o,s,l,i,c;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=ym(Oc(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,o=Ct(e/1e3),r.seconds=o%60,s=Ct(o/60),r.minutes=s%60,l=Ct(s/60),r.hours=l%24,t+=Ct(l/24),c=Ct(g1(t)),n+=c,t-=ym(Oc(c)),i=Ct(n/12),n%=12,r.days=t,r.months=n,r.years=i,this}function g1(e){return e*4800/146097}function Oc(e){return e*146097/4800}function A_(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Tt(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+g1(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Oc(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Tn(e){return function(){return this.as(e)}}var y1=Tn("ms"),I_=Tn("s"),P_=Tn("m"),D_=Tn("h"),N_=Tn("d"),O_=Tn("w"),$_=Tn("M"),z_=Tn("Q"),F_=Tn("y"),B_=y1;function q_(){return Ft(this)}function W_(e){return e=Tt(e),this.isValid()?this[e+"s"]():NaN}function wr(e){return function(){return this.isValid()?this._data[e]:NaN}}var G_=wr("milliseconds"),Y_=wr("seconds"),U_=wr("minutes"),V_=wr("hours"),H_=wr("days"),Z_=wr("months"),X_=wr("years");function K_(){return Ct(this.days()/7)}var mn=Math.round,Fr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Q_(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function J_(e,t,n,r){var o=Ft(e).abs(),s=mn(o.as("s")),l=mn(o.as("m")),i=mn(o.as("h")),c=mn(o.as("d")),d=mn(o.as("M")),f=mn(o.as("w")),m=mn(o.as("y")),p=s<=n.ss&&["s",s]||s<n.s&&["ss",s]||l<=1&&["m"]||l<n.m&&["mm",l]||i<=1&&["h"]||i<n.h&&["hh",i]||c<=1&&["d"]||c<n.d&&["dd",c];return n.w!=null&&(p=p||f<=1&&["w"]||f<n.w&&["ww",f]),p=p||d<=1&&["M"]||d<n.M&&["MM",d]||m<=1&&["y"]||["yy",m],p[2]=t,p[3]=+e>0,p[4]=r,Q_.apply(null,p)}function ek(e){return e===void 0?mn:typeof e=="function"?(mn=e,!0):!1}function tk(e,t){return Fr[e]===void 0?!1:t===void 0?Fr[e]:(Fr[e]=t,e==="s"&&(Fr.ss=t-1),!0)}function nk(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Fr,o,s;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Fr,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),o=this.localeData(),s=J_(this,!n,r,o),n&&(s=o.pastFuture(+this,s)),o.postformat(s)}var Wa=Math.abs;function Pr(e){return(e>0)-(e<0)||+e}function Ki(){if(!this.isValid())return this.localeData().invalidDate();var e=Wa(this._milliseconds)/1e3,t=Wa(this._days),n=Wa(this._months),r,o,s,l,i=this.asSeconds(),c,d,f,m;return i?(r=Ct(e/60),o=Ct(r/60),e%=60,r%=60,s=Ct(n/12),n%=12,l=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=i<0?"-":"",d=Pr(this._months)!==Pr(i)?"-":"",f=Pr(this._days)!==Pr(i)?"-":"",m=Pr(this._milliseconds)!==Pr(i)?"-":"",c+"P"+(s?d+s+"Y":"")+(n?d+n+"M":"")+(t?f+t+"D":"")+(o||r||e?"T":"")+(o?m+o+"H":"")+(r?m+r+"M":"")+(e?m+l+"S":"")):"P0D"}var ue=Zi.prototype;ue.isValid=Zx;ue.abs=j_;ue.add=T_;ue.subtract=L_;ue.as=A_;ue.asMilliseconds=y1;ue.asSeconds=I_;ue.asMinutes=P_;ue.asHours=D_;ue.asDays=N_;ue.asWeeks=O_;ue.asMonths=$_;ue.asQuarters=z_;ue.asYears=F_;ue.valueOf=B_;ue._bubble=M_;ue.clone=q_;ue.get=W_;ue.milliseconds=G_;ue.seconds=Y_;ue.minutes=U_;ue.hours=V_;ue.days=H_;ue.weeks=K_;ue.months=Z_;ue.years=X_;ue.humanize=nk;ue.toISOString=Ki;ue.toString=Ki;ue.toJSON=Ki;ue.locale=o1;ue.localeData=l1;ue.toIsoString=jt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ki);ue.lang=s1;Y("X",0,0,"unix");Y("x",0,0,"valueOf");$("x",Yi);$("X",_9);we("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});we("x",function(e,t,n){n._d=new Date(ie(e))});//! moment.js
201
- L.version="2.30.1";r9(Re);L.fn=I;L.min=Yx;L.max=Ux;L.now=Vx;L.utc=rn;L.unix=x_;L.months=__;L.isDate=Ns;L.locale=Vn;L.invalid=Bi;L.duration=Ft;L.isMoment=Nt;L.weekdays=S_;L.parseZone=C_;L.localeData=jn;L.isDuration=Al;L.monthsShort=k_;L.weekdaysMin=E_;L.defineLocale=Zu;L.updateLocale=Cx;L.locales=_x;L.weekdaysShort=R_;L.normalizeUnits=Tt;L.relativeTimeRounding=ek;L.relativeTimeThreshold=tk;L.calendarFormat=vC;L.prototype=I;L.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var od="Popover",[v1,qL]=zt(od,[tr]),Fs=tr(),[rk,or]=v1(od),b1=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:l=!1}=e,i=Fs(t),c=u.useRef(null),[d,f]=u.useState(!1),[m=!1,p]=Qn({prop:r,defaultProp:o,onChange:s});return a.jsx(wi,{...i,children:a.jsx(rk,{scope:t,contentId:St(),triggerRef:c,open:m,onOpenChange:p,onOpenToggle:u.useCallback(()=>p(h=>!h),[p]),hasCustomAnchor:d,onCustomAnchorAdd:u.useCallback(()=>f(!0),[]),onCustomAnchorRemove:u.useCallback(()=>f(!1),[]),modal:l,children:n})})};b1.displayName=od;var w1="PopoverAnchor",x1=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=or(w1,n),s=Fs(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:i}=o;return u.useEffect(()=>(l(),()=>i()),[l,i]),a.jsx(Rs,{...s,...r,ref:t})});x1.displayName=w1;var C1="PopoverTrigger",sd=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=or(C1,n),s=Fs(n),l=oe(t,o.triggerRef),i=a.jsx(X.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":R1(o.open),...r,ref:l,onClick:O(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:a.jsx(Rs,{asChild:!0,...s,children:i})});sd.displayName=C1;var ld="PopoverPortal",[ok,sk]=v1(ld,{forceMount:void 0}),_1=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=or(ld,t);return a.jsx(ok,{scope:t,forceMount:n,children:a.jsx(He,{present:n||s.open,children:a.jsx(uo,{asChild:!0,container:o,children:r})})})};_1.displayName=ld;var oo="PopoverContent",id=u.forwardRef((e,t)=>{const n=sk(oo,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=or(oo,e.__scopePopover);return a.jsx(He,{present:r||s.open,children:s.modal?a.jsx(lk,{...o,ref:t}):a.jsx(ik,{...o,ref:t})})});id.displayName=oo;var lk=u.forwardRef((e,t)=>{const n=or(oo,e.__scopePopover),r=u.useRef(null),o=oe(t,r),s=u.useRef(!1);return u.useEffect(()=>{const l=r.current;if(l)return Li(l)},[]),a.jsx(As,{as:Hn,allowPinchZoom:!0,children:a.jsx(k1,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:O(e.onCloseAutoFocus,l=>{var i;l.preventDefault(),s.current||(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:O(e.onPointerDownOutside,l=>{const i=l.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0,d=i.button===2||c;s.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:O(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1})})})}),ik=u.forwardRef((e,t)=>{const n=or(oo,e.__scopePopover),r=u.useRef(!1),o=u.useRef(!1);return a.jsx(k1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var l,i;(l=e.onCloseAutoFocus)==null||l.call(e,s),s.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var l,i;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=s.target;((i=n.triggerRef.current)==null?void 0:i.contains(c))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),k1=u.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,...m}=e,p=or(oo,n),h=Fs(n);return Ti(),a.jsx(Ms,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:a.jsx(io,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>p.onOpenChange(!1),children:a.jsx(xi,{"data-state":R1(p.open),role:"dialog",id:p.contentId,...h,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),S1="PopoverClose",ak=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=or(S1,n);return a.jsx(X.button,{type:"button",...r,ref:t,onClick:O(e.onClick,()=>o.onOpenChange(!1))})});ak.displayName=S1;var ck="PopoverArrow",uk=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Fs(n);return a.jsx(Ci,{...o,...r,ref:t})});uk.displayName=ck;function R1(e){return e?"open":"closed"}var Bs=b1,E1=x1,Qi=sd,qs=_1,Ji=id;const dk={wrapper:{position:"mly1n2onr6",$$css:!0}},fk=e=>{const[t,n]=e.split("-");return{side:t,align:n||"center"}},mk=({open:e,setOpen:t,children:n,width:r=350,maxHeight:o,placement:s="right-start",referenceDiv:l,zIndex:i=10,xOffset:c=0,yOffset:d=10,disabled:f=!1,customStyle:m})=>{const p=u.useRef(null),{side:h,align:g}=fk(s),y=()=>h==="top"||h==="bottom"?d:c,v=()=>h==="top"||h==="bottom"?c:d;return a.jsx("div",{...k.props(dk.wrapper,m),ref:p,children:a.jsxs(Bs,{open:e&&!f,onOpenChange:t,children:[a.jsx(E1,{asChild:!0,children:a.jsx("div",{ref:l||p})}),e&&!f&&a.jsx(qs,{children:a.jsx(Ji,{className:"mly15q0wj1 mly12oqio5 mly1a3rnpv mly12azwz9 mly64z8l9",side:h,align:g,sideOffset:y(),alignOffset:v(),style:{width:typeof r=="string"?r:`${r}px`,zIndex:i,...o?{maxHeight:`${o}px`}:{}},avoidCollisions:!0,children:n})})]})})},Pl={wrapper:{position:"mly1n2onr6",$$css:!0},checkIcon:{verticalAlign:"mly1n8ftqi",width:"mlyw4jnvo",minWidth:"mlyt4ypqs",opacity:"mly1vqud6w",visibility:"mlylshs6z",color:"mly1pc1dlx",$$css:!0},checkIconSelected:{visibility:"mlynpuxes",$$css:!0},selectListDiv:{fontSize:"mlymhiqyu",fontFamily:"mly12xrqmb",textTransform:"mly6mezaz",fontWeight:"mly1fcty0u",width:"mlyh8yej3",padding:"mly1b4vry6",maxHeight:"mly1phlbz0",display:"mly78zum5",flexDirection:"mlydt5ytf",$$css:!0}},sn=({autoFocus:e,value:t,onChange:n,options:r,placeholder:o="Select",disabled:s=!1,valueEqual:l=(d,f)=>d===f,width:i=200,customStyle:c})=>{var d;const[f,m]=u.useState(!1),[p,h]=u.useState(!1),[g,y]=u.useState(!1),v=t!==void 0&&((d=r.find(b=>l(b.value,t)))==null?void 0:d.label)||o,w=b=>{n?.(b),m(!1)};return a.jsxs("div",{...k.props(Pl.wrapper,c),children:[a.jsxs("button",{type:"button",autoFocus:e,...{0:{className:"mlyjbqb8w mlymhiqyu mly1vspu6z mly12oqio5 mly1gqu590 mly1ypdohk mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3"},4:{className:"mlyjbqb8w mlymhiqyu mly12oqio5 mly1gqu590 mly1ypdohk mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mlyss3vti"},2:{className:"mlyjbqb8w mlymhiqyu mly12oqio5 mly1gqu590 mly1ypdohk mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mly1gnnqk1 mlyv3vvaf mly1a2a7pz"},6:{className:"mlyjbqb8w mlymhiqyu mly12oqio5 mly1gqu590 mly1ypdohk mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mly1gnnqk1 mlyv3vvaf mly1a2a7pz"},1:{className:"mlymhiqyu mly1vspu6z mly12oqio5 mly1gqu590 mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mlyt0e3qv mly1jjku57"},5:{className:"mlymhiqyu mly12oqio5 mly1gqu590 mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mlyss3vti mlyt0e3qv mly1jjku57"},3:{className:"mlymhiqyu mly12oqio5 mly1gqu590 mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mly1gnnqk1 mlyv3vvaf mly1a2a7pz mlyt0e3qv mly1jjku57"},7:{className:"mlymhiqyu mly12oqio5 mly1gqu590 mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mly1gnnqk1 mlyv3vvaf mly1a2a7pz mlyt0e3qv mly1jjku57"}}[!!p<<2|!!g<<1|!!s<<0],onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onFocus:()=>y(!0),onBlur:()=>y(!1),onClick:b=>{b.preventDefault(),b.stopPropagation(),s||m(!0)},disabled:s,children:[v,a.jsx(te,{name:"chevronDown"})]}),a.jsx(mk,{open:f,setOpen:m,placement:"bottom-start",width:i,maxHeight:500,children:a.jsx(pk,{options:r,value:t,valueEqual:l,onChange:w})})]})};function pk({options:e,value:t,onChange:n,valueEqual:r=(s,l)=>s===l,customStyle:o}){const[s,l]=u.useState(null);return a.jsx(mu,{children:a.jsx("div",{...k.props(Pl.selectListDiv,o),children:e.reduce((i,c,d)=>{const f=t!==void 0&&r(t,c.value);return c.divider&&i.push(u.createElement("div",{className:"mly77krkw mlyh8yej3 mlynfbntj",key:"divider"+d})),i.push(a.jsxs("label",{...{0:{className:"mlydqdrvq mly1ypdohk mlyuxw1ft mlylyipyv mly1pc1dlx mlyrvj5dj mly1mt1orb mlylqzeqv mly6s0dn4"},1:{className:"mlydqdrvq mly1ypdohk mlyuxw1ft mlylyipyv mly1pc1dlx mlyrvj5dj mly1mt1orb mlylqzeqv mly6s0dn4 mly6wxqrg"}}[(s===d)<<0],onMouseEnter:()=>l(d),onMouseLeave:()=>l(null),onClick:()=>n(c.value),children:[a.jsx("input",{className:"mlynalus7 mlyqtp20y",type:"radio",defaultChecked:f}),a.jsx(te,{name:"checkmark",customStyle:{...Pl.checkIcon,...f?Pl.checkIconSelected:void 0}}),a.jsx("span",{className:"mlyet2fuk mlyb3r6kr mlylyipyv mly1fc57z9",children:c.label})]},d)),i},[])})})}const so={second:"YYYY-MM-DD HH:mm:ss",minute:"YYYY-MM-DD HH:mm",hour:"YYYY-MM-DD HH:00",day:"YYYY-MM-DD",week:"YYYY-MM-DD-[WK]",month:"YYYY-MM",quarter:"YYYY-[Q]Q",year:"YYYY"},$c={second:/\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d/,minute:/\d\d\d\d-\d\d-\d\d \d\d:\d\d/,hour:/\d\d\d\d-\d\d-\d\d \d\d:00/,day:/\d\d\d\d-\d\d-\d\d/,week:/\d\d\d\d-\d\d-\d\d-WK/,month:/\d\d\d\d-\d\d/,quarter:/\d\d\d\d-Q\d/,year:/\d\d\d\d/},ii=({value:e,setValue:t,placeholder:n,autoFocus:r,units:o,onFocus:s,onBlur:l,isActive:i,customStyle:c,forwardRef:d})=>{const f=so[o],[m,p]=u.useState(L.utc(e).format(f));return u.useEffect(()=>{p(L.utc(e).format(f))},[e,f]),a.jsx("input",{...k.props(c,i?hk.active:null),type:"text",placeholder:n||f,value:m,onFocus:s,onBlur:l,onChange:h=>{const g=h.target.value;p(g);const y=$c[o];if(g.match(y)){const v=L.utc(g,f);v.isValid()&&t(v.toDate())}},autoFocus:r,ref:d})};function gl(e,t){if(e.moment==="literal"){const{literal:n}=e;for(const r in $c){const o=r;if(n.match($c[o]))return o}}return t?"second":"day"}const hk={active:{backgroundColor:"mly1vzefiq",$$css:!0}};function gk(e){return["January","February","March","April","May","June","July","August","September","October","November","December"][e]}const vm=Object.keys(so);function ad({value:e,setValue:t,units:n,maxLevel:r,customStyle:o,forwardRef:s}){const[l,i]=u.useState(e),c=vk(l),[d,f]=u.useState(n),m=Math.floor(L.utc(l).year()/10)*10;u.useEffect(()=>{const C=vm.findIndex(R=>R===n);vm.findIndex(R=>R===d)<C&&f(n)},[n,d]),u.useEffect(()=>{i(e)},[e]);const p=C=>{const _=L.utc(l).year(C).toDate();i(_),t(_)},h=C=>{const _=()=>p(m+C);return C===-1||C===10?a.jsx("div",{onClick:_,className:"mly1247r65 mlyfvyar9 mlymcgfsh mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1fcty0u mly1ypdohk mly6mezaz mly1sxf85j mlyt89l8w mly1fxp9ov mly358b0h",children:m+C}):a.jsx("div",{onClick:_,...{0:{className:"mly1247r65 mlyfvyar9 mlymcgfsh mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1v5ugh9 mly1fcty0u mly1ypdohk mly6mezaz mly1sxf85j mlyt89l8w mly1fxp9ov"},1:{className:"mly1247r65 mlyfvyar9 mlymcgfsh mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1v5ugh9 mly1fcty0u mly1ypdohk mly6mezaz mly1sxf85j mlyt89l8w mly1fxp9ov mly6wxqrg mly10bk7bj"}}[(L.utc(l).year()===m+C)<<0],children:m+C})},g=C=>{const _=L.utc(l).month(C).toDate();i(_),t(_)},y=C=>{i(C),t(C)},v=C=>{i(C),t(C)},w=C=>{const _=L.utc(l).quarter(C+1).toDate();i(_),t(_)},b=C=>{const _=()=>g(C),R=L.utc(l).month()===C&&L.utc(l).year()===L.utc(e).year();return a.jsx("div",{onClick:_,...{0:{className:"mly1247r65 mlyfvyar9 mlymcgfsh mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1v5ugh9 mly1ypdohk mly6mezaz mly1sxf85j mly1fcty0u mlyt89l8w mly1fxp9ov"},1:{className:"mly1247r65 mlyfvyar9 mlymcgfsh mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1v5ugh9 mly1ypdohk mly6mezaz mly1sxf85j mly1fcty0u mlyt89l8w mly1fxp9ov mly6wxqrg mly10bk7bj"}}[!!R<<0],children:gk(C)})},x=C=>{const _=()=>w(C),R=L.utc(l).quarter()-1===C&&L.utc(l).year()===L.utc(e).year();return a.jsxs("div",{onClick:_,...{0:{className:"mly1rxuhir mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1v5ugh9 mly1ypdohk mly6mezaz mly1sxf85j mly1fcty0u mlyt89l8w mly1fxp9ov"},1:{className:"mly1rxuhir mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1v5ugh9 mly1ypdohk mly6mezaz mly1sxf85j mly1fcty0u mlyt89l8w mly1fxp9ov mly6wxqrg mly10bk7bj"}}[!!R<<0],children:["Q",C+1]})};return a.jsxs("div",{...k.props(yk.outer,o),ref:s,children:[a.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib mly1nejdyq mlyu06os2",children:[a.jsx("div",{className:"mly1sxf85j mly1nn3v0j mly6wrskw mlymzs88n mly1ypdohk mlyjg9ulk",children:a.jsx(xe,{variant:"default",size:"compact",icon:"chevronLeft",onClick:()=>{d==="day"||d==="week"?i(L.utc(l).subtract(1,"month").toDate()):d==="month"||d==="quarter"?i(L.utc(l).subtract(1,"year").toDate()):d==="year"?i(L.utc(l).subtract(10,"years").toDate()):y(L.utc(l).subtract(1,"days").toDate())}})}),a.jsxs("div",{className:"mly1sxf85j mlyfawy5m mly123j3cw mly1iyjqo2 mly2b8uid mly1ypdohk mly6mezaz mly1fcty0u mlyjg9ulk",onClick:()=>{f(d==="day"||d==="week"?"month":d==="month"||d==="quarter"?"year":d==="hour"||d==="minute"||d==="second"?"day":r)},children:[(d==="day"||d==="week")&&L.utc(l).format("MMMM YYYY"),(d==="month"||d==="quarter")&&L.utc(l).format("YYYY"),d==="year"&&a.jsxs(a.Fragment,{children:[m,"-",m+9]}),(d==="hour"||d==="minute"||d==="second")&&a.jsx(a.Fragment,{children:L.utc(l).format("MMMM D, YYYY")})]}),a.jsx("div",{className:"mly1sxf85j mly1nn3v0j mly6wrskw mlymzs88n mly1ypdohk mlyjg9ulk",children:a.jsx(xe,{variant:"default",size:"compact",icon:"chevronRight",onClick:()=>{d==="day"||d==="week"?i(L.utc(l).add(1,"month").toDate()):d==="month"||d==="quarter"?i(L.utc(l).add(1,"year").toDate()):d==="year"?i(L.utc(l).add(10,"years").toDate()):y(L.utc(l).add(1,"days").toDate())}})})]}),d==="day"&&a.jsxs("div",{className:"mly78zum5 mlydt5ytf mly195vfkc mly87ps6o",children:[a.jsxs("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:[a.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"S"}),a.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"M"}),a.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"T"}),a.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"W"}),a.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"T"}),a.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"F"}),a.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"S"})]}),c.map((C,_)=>a.jsx("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:C.map(R=>a.jsx("div",{onClick:()=>{y(R.date)},...{0:{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly1ypdohk mly1f96onm mlyfifm61 mlyfj9a5l mlyt89l8w mly358b0h"},2:{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly1ypdohk mly1f96onm mlyfifm61 mlyfj9a5l mlyt89l8w mly1v5ugh9"},1:{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly1ypdohk mly1f96onm mlyfifm61 mlyfj9a5l mlyt89l8w mly6wxqrg mly1nwq7qm mly10bk7bj"},3:{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly1ypdohk mly1f96onm mlyfifm61 mlyfj9a5l mlyt89l8w mly6wxqrg mly1nwq7qm mly10bk7bj"}}[!!R.isCurrentMonth<<1|(e.getTime()===R.date.valueOf())<<0],children:R.number},R.number))},_))]}),d==="month"&&a.jsxs("div",{className:"mly78zum5 mlydt5ytf mly87ps6o mly1l1ennw mlyk2yuxw",children:[a.jsxs("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:[b(0),b(1),b(2)]}),a.jsxs("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:[b(3),b(4),b(5)]}),a.jsxs("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:[b(6),b(7),b(8)]}),a.jsxs("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:[b(9),b(10),b(11)]})]}),d==="year"&&a.jsxs("div",{className:"mly78zum5 mlydt5ytf mly87ps6o mly1l1ennw mlyk2yuxw",children:[a.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib mly195vfkc",children:[h(-1),h(0),h(1)]}),a.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib mly195vfkc",children:[h(2),h(3),h(4)]}),a.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib mly195vfkc",children:[h(5),h(6),h(7)]}),a.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib mly195vfkc",children:[h(8),h(9),h(10)]})]}),d==="quarter"&&a.jsxs("div",{className:"mly78zum5 mlydt5ytf mly87ps6o mly1l1ennw mlyk2yuxw",children:[x(0),x(1),x(2),x(3)]}),d==="week"&&a.jsxs("div",{className:"mly78zum5 mlydt5ytf mly195vfkc mly87ps6o",children:[a.jsxs("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:[a.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"S"}),a.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"M"}),a.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"T"}),a.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"W"}),a.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"T"}),a.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"F"}),a.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"S"})]}),c.map((C,_)=>a.jsx("div",{onClick:()=>{v(C[0].date)},...{0:{className:"mly78zum5 mly1ypdohk mly1q0g3np mly195vfkc mly1f96onm mly1qughib mlyfj9a5l mlyt89l8w"},1:{className:"mly78zum5 mly1ypdohk mly1q0g3np mly195vfkc mly1f96onm mly1qughib mlyfj9a5l mlyt89l8w mly6wxqrg mly1nwq7qm mly10bk7bj"}}[(e.getTime()===C[0].date.valueOf())<<0],children:C.map(R=>a.jsx("div",{...{0:{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly1ypdohk mly1f96onm mlyfifm61 mly358b0h"},1:{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly1ypdohk mly1f96onm mlyfifm61 mly1v5ugh9"}}[!!R.isCurrentMonth<<0],children:R.number},R.number))},_))]}),(d==="hour"||d==="minute"||d==="second")&&a.jsx("div",{className:"mly78zum5 mlydt5ytf mly87ps6o mly1l1ennw mlylo07zb",children:a.jsxs("div",{className:"mly78zum5 mly1q0g3np mly87ps6o mly1l1ennw mly883omv",children:[a.jsx(za,{label:"Hours",value:parseInt(L.utc(l).format("hh")),setValue:C=>{const _=L.utc(l).hour()>=12?"PM":"AM",R=parseInt(L.utc(`${C} ${_}`,["hh A"]).format("H"));t(L.utc(l).hour(R).toDate())},width:"40px"}),(n==="minute"||n==="second")&&a.jsx(za,{label:"Minutes",value:L.utc(l).minutes(),setValue:C=>{t(L.utc(l).minute(C).toDate())},width:"40px"}),n==="second"&&a.jsx(za,{label:"Seconds",value:L.utc(l).seconds(),setValue:C=>{t(L.utc(l).second(C).toDate())},width:"40px"}),a.jsx("div",{style:{display:"flex",justifyContent:"flex-end",flexDirection:"column"},children:a.jsx(sn,{value:L.utc(l).hour()>=12?"PM":"AM",onChange:C=>{const _=parseInt(L.utc(l).format("h")),R=parseInt(L.utc(`${_} ${C}`,["hh A"]).format("H"));t(L.utc(l).hour(R).toDate())},options:[{value:"AM",label:"AM"},{value:"PM",label:"PM"}]})})]})})]})}const yk={outer:{userSelect:"mly87ps6o",fontSize:"mlymhiqyu",fontFamily:"mly12xrqmb",$$css:!0}};function vk(e){const t=L.utc(e).date(1),n=t.day(),r=t.daysInMonth(),o=t.clone().subtract(1,"day").daysInMonth(),s=[];for(let l=0;l<6;l++){const i=[];for(let c=0;c<7;c++)if(l===0&&c<n){const d=n-c;i.push({number:o-d+1,date:t.clone().subtract(d,"days").toDate(),isCurrentMonth:!1})}else{const d=l*7+c-n;d<r?i.push({number:d+1,date:t.clone().add(d,"days").toDate(),isCurrentMonth:!0}):i.push({number:d-r+1,date:t.clone().add(d,"days").toDate(),isCurrentMonth:!1})}s.push(i)}return s}function bk({width:e,minWidth:t,onWidthChange:n}){const r=o=>{const s=e,l=o.clientX,i=()=>{document.body.removeEventListener("mousemove",c),document.body.removeEventListener("mouseup",i),document.body.style.cursor="initial",document.body.style.userSelect="initial"},c=d=>{const f=s+(d.clientX-l);n(Math.max(f,t))};document.body.addEventListener("mousemove",c),document.body.addEventListener("mouseup",i),document.body.style.cursor="ew-resize",document.body.style.userSelect="none"};return a.jsx("div",{className:"mly7eptgl mly1ftt334 mly5yr21d mly1vjfegm mly10l6tqk mly13vifvy mly1bkpikb",onMouseDown:o=>r(o)})}function zc({title:e,description:t,variant:n="info",children:r}){return a.jsxs("div",{className:"mly1q4ynmn mlyh8yej3 mly5yr21d mly78zum5 mlydt5ytf mly1kmqopl mly16zck5j",children:[a.jsxs("div",{...k.props(Bo.header,xk[n],r?Bo.headerWithContent:null),children:[a.jsx("div",{className:"mly1qx5ct2 mly78zum5 mlyl56j7k mly6s0dn4",children:a.jsx(te,{...wk[n]})}),a.jsxs("div",{className:"mly78zum5 mlydt5ytf mlyb3r6kr",children:[a.jsx("div",{...k.props(Bo.title,z.emphasized),children:e}),a.jsx("div",{...k.props(Bo.description,z.supporting),children:t})]})]}),r&&a.jsx("div",{...k.props(Bo.content,z.body),children:a.jsx(mu,{children:r})})]})}const Bo={header:{borderRadius:"mly1q4ynmn",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,width:"mlyh8yej3",padding:"mlyc7ga6q",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,boxSizing:"mly9f619",display:"mly78zum5",flexDirection:"mly1q0g3np",alignItems:"mly7a106z",justifyContent:"mlylqzeqv",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},headerWithContent:{borderRadius:"mlyq516e8",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0},title:{textOverflow:"mlylyipyv",whiteSpace:"mlyuxw1ft",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,$$css:!0},description:{textOverflow:"mlylyipyv",whiteSpace:"mlyuxw1ft",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,$$css:!0},content:{padding:"mly1tamke2",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,backgroundColor:"mly12peec7",borderRadius:"mly11zuszs",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,overflow:"mlyb3r6kr",overflowX:null,overflowY:null,$$css:!0}},wk={info:{name:"info",color:"info"},success:{name:"check_circle",color:"positive"},warn:{name:"warning",color:"warning"},critical:{name:"error",color:"negative"}},xk={info:{backgroundColor:"mly1pnbjq1",$$css:!0},success:{backgroundColor:"mly1x3oq6j",$$css:!0},warn:{backgroundColor:"mly1x7w6om",$$css:!0},critical:{backgroundColor:"mlyrkwa2d",$$css:!0}},j1=u.createContext({});function Ck({defaultExpandedItemId:e,children:t,customStyle:n}){const[r,o]=u.useState(e),s=l=>{o(i=>{if(i!==l)return l})};return a.jsx(j1.Provider,{value:{expandedItemId:r,onExpandedItemChange:s},children:a.jsx("div",{...k.props(_k.main,n),children:u.Children.map(t,l=>a.jsxs(a.Fragment,{children:[l,a.jsx(Gr,{})]}))})})}const _k={main:{display:"mly78zum5",flexDirection:"mlydt5ytf",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,flexGrow:"mly1iyjqo2",$$css:!0}};function Ga({id:e,label:t,sublabel:n,startIcon:r,badge:o,endIcon:s,children:l}){const{expandedItemId:i,onExpandedItemChange:c}=u.useContext(j1);return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"mly78zum5 mly6s0dn4 mlylqzeqv mlye8ttls mly167g77z mly1ypdohk",onClick:()=>c?.(e),children:[r&&a.jsx(a.Fragment,{children:r}),a.jsxs("div",{className:"mly78zum5 mlydt5ytf mlyb3r6kr mly1iyjqo2",children:[a.jsx("span",{...k.props(z.body,bm.label),children:t}),n&&a.jsx("span",{...k.props(z.supporting,bm.sublabel),children:n})]}),o&&o,s&&s]}),e===i&&a.jsx("div",{className:"mly78zum5 mlydt5ytf mly1iyjqo2 mlytdwleo mly1jnr06f mly10cdfl8 mlyysyzu8",children:u.Children.map(l,d=>d)})]})}const bm={label:{flexGrow:"mly1iyjqo2",fontWeight:"mly1xlr1w8",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",$$css:!0},sublabel:{flexGrow:"mly1iyjqo2",color:"mly9dwj6z",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",$$css:!0}};var Ya="rovingFocusGroup.onEntryFocus",kk={bubbles:!1,cancelable:!0},ea="RovingFocusGroup",[Fc,T1,Sk]=yu(ea),[Rk,ta]=zt(ea,[Sk]),[Ek,jk]=Rk(ea),L1=u.forwardRef((e,t)=>a.jsx(Fc.Provider,{scope:e.__scopeRovingFocusGroup,children:a.jsx(Fc.Slot,{scope:e.__scopeRovingFocusGroup,children:a.jsx(Tk,{...e,ref:t})})}));L1.displayName=ea;var Tk=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...m}=e,p=u.useRef(null),h=oe(t,p),g=Ts(s),[y=null,v]=Qn({prop:l,defaultProp:i,onChange:c}),[w,b]=u.useState(!1),x=qe(d),C=T1(n),_=u.useRef(!1),[R,S]=u.useState(0);return u.useEffect(()=>{const E=p.current;if(E)return E.addEventListener(Ya,x),()=>E.removeEventListener(Ya,x)},[x]),a.jsx(Ek,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:y,onItemFocus:u.useCallback(E=>v(E),[v]),onItemShiftTab:u.useCallback(()=>b(!0),[]),onFocusableItemAdd:u.useCallback(()=>S(E=>E+1),[]),onFocusableItemRemove:u.useCallback(()=>S(E=>E-1),[]),children:a.jsx(X.div,{tabIndex:w||R===0?-1:0,"data-orientation":r,...m,ref:h,style:{outline:"none",...e.style},onMouseDown:O(e.onMouseDown,()=>{_.current=!0}),onFocus:O(e.onFocus,E=>{const T=!_.current;if(E.target===E.currentTarget&&T&&!w){const M=new CustomEvent(Ya,kk);if(E.currentTarget.dispatchEvent(M),!M.defaultPrevented){const D=C().filter(U=>U.focusable),F=D.find(U=>U.active),V=D.find(U=>U.id===y),ne=[F,V,...D].filter(Boolean).map(U=>U.ref.current);I1(ne,f)}}_.current=!1}),onBlur:O(e.onBlur,()=>b(!1))})})}),M1="RovingFocusGroupItem",A1=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,...l}=e,i=St(),c=s||i,d=jk(M1,n),f=d.currentTabStopId===c,m=T1(n),{onFocusableItemAdd:p,onFocusableItemRemove:h}=d;return u.useEffect(()=>{if(r)return p(),()=>h()},[r,p,h]),a.jsx(Fc.ItemSlot,{scope:n,id:c,focusable:r,active:o,children:a.jsx(X.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...l,ref:t,onMouseDown:O(e.onMouseDown,g=>{r?d.onItemFocus(c):g.preventDefault()}),onFocus:O(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:O(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){d.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=Ak(g,d.orientation,d.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let w=m().filter(b=>b.focusable).map(b=>b.ref.current);if(y==="last")w.reverse();else if(y==="prev"||y==="next"){y==="prev"&&w.reverse();const b=w.indexOf(g.currentTarget);w=d.loop?Ik(w,b+1):w.slice(b+1)}setTimeout(()=>I1(w))}})})})});A1.displayName=M1;var Lk={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Mk(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Ak(e,t,n){const r=Mk(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Lk[r]}function I1(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Ik(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var P1=L1,D1=A1,Bc=["Enter"," "],Pk=["ArrowDown","PageUp","Home"],N1=["ArrowUp","PageDown","End"],Dk=[...Pk,...N1],Nk={ltr:[...Bc,"ArrowRight"],rtl:[...Bc,"ArrowLeft"]},Ok={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ws="Menu",[ys,$k,zk]=yu(Ws),[xr,O1]=zt(Ws,[zk,tr,ta]),na=tr(),$1=ta(),[Fk,Cr]=xr(Ws),[Bk,Gs]=xr(Ws),z1=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:l=!0}=e,i=na(t),[c,d]=u.useState(null),f=u.useRef(!1),m=qe(s),p=Ts(o);return u.useEffect(()=>{const h=()=>{f.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>f.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),a.jsx(wi,{...i,children:a.jsx(Fk,{scope:t,open:n,onOpenChange:m,content:c,onContentChange:d,children:a.jsx(Bk,{scope:t,onClose:u.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:f,dir:p,modal:l,children:r})})})};z1.displayName=Ws;var qk="MenuAnchor",cd=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=na(n);return a.jsx(Rs,{...o,...r,ref:t})});cd.displayName=qk;var ud="MenuPortal",[Wk,F1]=xr(ud,{forceMount:void 0}),B1=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=Cr(ud,t);return a.jsx(Wk,{scope:t,forceMount:n,children:a.jsx(He,{present:n||s.open,children:a.jsx(uo,{asChild:!0,container:o,children:r})})})};B1.displayName=ud;var Rt="MenuContent",[Gk,dd]=xr(Rt),q1=u.forwardRef((e,t)=>{const n=F1(Rt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Cr(Rt,e.__scopeMenu),l=Gs(Rt,e.__scopeMenu);return a.jsx(ys.Provider,{scope:e.__scopeMenu,children:a.jsx(He,{present:r||s.open,children:a.jsx(ys.Slot,{scope:e.__scopeMenu,children:l.modal?a.jsx(Yk,{...o,ref:t}):a.jsx(Uk,{...o,ref:t})})})})}),Yk=u.forwardRef((e,t)=>{const n=Cr(Rt,e.__scopeMenu),r=u.useRef(null),o=oe(t,r);return u.useEffect(()=>{const s=r.current;if(s)return Li(s)},[]),a.jsx(fd,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:O(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Uk=u.forwardRef((e,t)=>{const n=Cr(Rt,e.__scopeMenu);return a.jsx(fd,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),fd=u.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:i,onEntryFocus:c,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:p,onDismiss:h,disableOutsideScroll:g,...y}=e,v=Cr(Rt,n),w=Gs(Rt,n),b=na(n),x=$1(n),C=$k(n),[_,R]=u.useState(null),S=u.useRef(null),E=oe(t,S,v.onContentChange),T=u.useRef(0),M=u.useRef(""),D=u.useRef(0),F=u.useRef(null),V=u.useRef("right"),q=u.useRef(0),ne=g?As:u.Fragment,U=g?{as:Hn,allowPinchZoom:!0}:void 0,K=N=>{var ae,Ae;const ye=M.current+N,je=C().filter(ce=>!ce.disabled),ke=document.activeElement,Ze=(ae=je.find(ce=>ce.ref.current===ke))==null?void 0:ae.textValue,Se=je.map(ce=>ce.textValue),G=oS(Se,ye,Ze),se=(Ae=je.find(ce=>ce.textValue===G))==null?void 0:Ae.ref.current;(function ce(W){M.current=W,window.clearTimeout(T.current),W!==""&&(T.current=window.setTimeout(()=>ce(""),1e3))})(ye),se&&setTimeout(()=>se.focus())};u.useEffect(()=>()=>window.clearTimeout(T.current),[]),Ti();const H=u.useCallback(N=>{var ae,Ae;return V.current===((ae=F.current)==null?void 0:ae.side)&&lS(N,(Ae=F.current)==null?void 0:Ae.area)},[]);return a.jsx(Gk,{scope:n,searchRef:M,onItemEnter:u.useCallback(N=>{H(N)&&N.preventDefault()},[H]),onItemLeave:u.useCallback(N=>{var ae;H(N)||((ae=S.current)==null||ae.focus(),R(null))},[H]),onTriggerLeave:u.useCallback(N=>{H(N)&&N.preventDefault()},[H]),pointerGraceTimerRef:D,onPointerGraceIntentChange:u.useCallback(N=>{F.current=N},[]),children:a.jsx(ne,{...U,children:a.jsx(Ms,{asChild:!0,trapped:o,onMountAutoFocus:O(s,N=>{var ae;N.preventDefault(),(ae=S.current)==null||ae.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:a.jsx(io,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:p,onDismiss:h,children:a.jsx(P1,{asChild:!0,...x,dir:w.dir,orientation:"vertical",loop:r,currentTabStopId:_,onCurrentTabStopIdChange:R,onEntryFocus:O(c,N=>{w.isUsingKeyboardRef.current||N.preventDefault()}),preventScrollOnEntryFocus:!0,children:a.jsx(xi,{role:"menu","aria-orientation":"vertical","data-state":o0(v.open),"data-radix-menu-content":"",dir:w.dir,...b,...y,ref:E,style:{outline:"none",...y.style},onKeyDown:O(y.onKeyDown,N=>{const Ae=N.target.closest("[data-radix-menu-content]")===N.currentTarget,ye=N.ctrlKey||N.altKey||N.metaKey,je=N.key.length===1;Ae&&(N.key==="Tab"&&N.preventDefault(),!ye&&je&&K(N.key));const ke=S.current;if(N.target!==ke||!Dk.includes(N.key))return;N.preventDefault();const Se=C().filter(G=>!G.disabled).map(G=>G.ref.current);N1.includes(N.key)&&Se.reverse(),nS(Se)}),onBlur:O(e.onBlur,N=>{N.currentTarget.contains(N.target)||(window.clearTimeout(T.current),M.current="")}),onPointerMove:O(e.onPointerMove,vs(N=>{const ae=N.target,Ae=q.current!==N.clientX;if(N.currentTarget.contains(ae)&&Ae){const ye=N.clientX>q.current?"right":"left";V.current=ye,q.current=N.clientX}}))})})})})})})});q1.displayName=Rt;var Vk="MenuGroup",md=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return a.jsx(X.div,{role:"group",...r,ref:t})});md.displayName=Vk;var Hk="MenuLabel",W1=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return a.jsx(X.div,{...r,ref:t})});W1.displayName=Hk;var ai="MenuItem",wm="menu.itemSelect",ra=u.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=u.useRef(null),l=Gs(ai,e.__scopeMenu),i=dd(ai,e.__scopeMenu),c=oe(t,s),d=u.useRef(!1),f=()=>{const m=s.current;if(!n&&m){const p=new CustomEvent(wm,{bubbles:!0,cancelable:!0});m.addEventListener(wm,h=>r?.(h),{once:!0}),Zm(m,p),p.defaultPrevented?d.current=!1:l.onClose()}};return a.jsx(G1,{...o,ref:c,disabled:n,onClick:O(e.onClick,f),onPointerDown:m=>{var p;(p=e.onPointerDown)==null||p.call(e,m),d.current=!0},onPointerUp:O(e.onPointerUp,m=>{var p;d.current||(p=m.currentTarget)==null||p.click()}),onKeyDown:O(e.onKeyDown,m=>{const p=i.searchRef.current!=="";n||p&&m.key===" "||Bc.includes(m.key)&&(m.currentTarget.click(),m.preventDefault())})})});ra.displayName=ai;var G1=u.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,l=dd(ai,n),i=$1(n),c=u.useRef(null),d=oe(t,c),[f,m]=u.useState(!1),[p,h]=u.useState("");return u.useEffect(()=>{const g=c.current;g&&h((g.textContent??"").trim())},[s.children]),a.jsx(ys.ItemSlot,{scope:n,disabled:r,textValue:o??p,children:a.jsx(D1,{asChild:!0,...i,focusable:!r,children:a.jsx(X.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:d,onPointerMove:O(e.onPointerMove,vs(g=>{r?l.onItemLeave(g):(l.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:O(e.onPointerLeave,vs(g=>l.onItemLeave(g))),onFocus:O(e.onFocus,()=>m(!0)),onBlur:O(e.onBlur,()=>m(!1))})})})}),Zk="MenuCheckboxItem",Y1=u.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return a.jsx(X1,{scope:e.__scopeMenu,checked:n,children:a.jsx(ra,{role:"menuitemcheckbox","aria-checked":ci(n)?"mixed":n,...o,ref:t,"data-state":hd(n),onSelect:O(o.onSelect,()=>r?.(ci(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Y1.displayName=Zk;var U1="MenuRadioGroup",[Xk,Kk]=xr(U1,{value:void 0,onValueChange:()=>{}}),V1=u.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=qe(r);return a.jsx(Xk,{scope:e.__scopeMenu,value:n,onValueChange:s,children:a.jsx(md,{...o,ref:t})})});V1.displayName=U1;var H1="MenuRadioItem",Z1=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=Kk(H1,e.__scopeMenu),s=n===o.value;return a.jsx(X1,{scope:e.__scopeMenu,checked:s,children:a.jsx(ra,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":hd(s),onSelect:O(r.onSelect,()=>{var l;return(l=o.onValueChange)==null?void 0:l.call(o,n)},{checkForDefaultPrevented:!1})})})});Z1.displayName=H1;var pd="MenuItemIndicator",[X1,Qk]=xr(pd,{checked:!1}),K1=u.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=Qk(pd,n);return a.jsx(He,{present:r||ci(s.checked)||s.checked===!0,children:a.jsx(X.span,{...o,ref:t,"data-state":hd(s.checked)})})});K1.displayName=pd;var Jk="MenuSeparator",Q1=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return a.jsx(X.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Q1.displayName=Jk;var eS="MenuArrow",J1=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=na(n);return a.jsx(Ci,{...o,...r,ref:t})});J1.displayName=eS;var tS="MenuSub",[WL,e0]=xr(tS),Vo="MenuSubTrigger",t0=u.forwardRef((e,t)=>{const n=Cr(Vo,e.__scopeMenu),r=Gs(Vo,e.__scopeMenu),o=e0(Vo,e.__scopeMenu),s=dd(Vo,e.__scopeMenu),l=u.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:c}=s,d={__scopeMenu:e.__scopeMenu},f=u.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return u.useEffect(()=>f,[f]),u.useEffect(()=>{const m=i.current;return()=>{window.clearTimeout(m),c(null)}},[i,c]),a.jsx(cd,{asChild:!0,...d,children:a.jsx(G1,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":o0(n.open),...e,ref:gi(t,o.onTriggerChange),onClick:m=>{var p;(p=e.onClick)==null||p.call(e,m),!(e.disabled||m.defaultPrevented)&&(m.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:O(e.onPointerMove,vs(m=>{s.onItemEnter(m),!m.defaultPrevented&&!e.disabled&&!n.open&&!l.current&&(s.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:O(e.onPointerLeave,vs(m=>{var p,h;f();const g=(p=n.content)==null?void 0:p.getBoundingClientRect();if(g){const y=(h=n.content)==null?void 0:h.dataset.side,v=y==="right",w=v?-5:5,b=g[v?"left":"right"],x=g[v?"right":"left"];s.onPointerGraceIntentChange({area:[{x:m.clientX+w,y:m.clientY},{x:b,y:g.top},{x,y:g.top},{x,y:g.bottom},{x:b,y:g.bottom}],side:y}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(m),m.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:O(e.onKeyDown,m=>{var p;const h=s.searchRef.current!=="";e.disabled||h&&m.key===" "||Nk[r.dir].includes(m.key)&&(n.onOpenChange(!0),(p=n.content)==null||p.focus(),m.preventDefault())})})})});t0.displayName=Vo;var n0="MenuSubContent",r0=u.forwardRef((e,t)=>{const n=F1(Rt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Cr(Rt,e.__scopeMenu),l=Gs(Rt,e.__scopeMenu),i=e0(n0,e.__scopeMenu),c=u.useRef(null),d=oe(t,c);return a.jsx(ys.Provider,{scope:e.__scopeMenu,children:a.jsx(He,{present:r||s.open,children:a.jsx(ys.Slot,{scope:e.__scopeMenu,children:a.jsx(fd,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:d,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var m;l.isUsingKeyboardRef.current&&((m=c.current)==null||m.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:O(e.onFocusOutside,f=>{f.target!==i.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:O(e.onEscapeKeyDown,f=>{l.onClose(),f.preventDefault()}),onKeyDown:O(e.onKeyDown,f=>{var m;const p=f.currentTarget.contains(f.target),h=Ok[l.dir].includes(f.key);p&&h&&(s.onOpenChange(!1),(m=i.trigger)==null||m.focus(),f.preventDefault())})})})})})});r0.displayName=n0;function o0(e){return e?"open":"closed"}function ci(e){return e==="indeterminate"}function hd(e){return ci(e)?"indeterminate":e?"checked":"unchecked"}function nS(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function rS(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function oS(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let l=rS(e,Math.max(s,0));o.length===1&&(l=l.filter(d=>d!==n));const c=l.find(d=>d.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function sS(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,l=t.length-1;s<t.length;l=s++){const i=t[s].x,c=t[s].y,d=t[l].x,f=t[l].y;c>r!=f>r&&n<(d-i)*(r-c)/(f-c)+i&&(o=!o)}return o}function lS(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return sS(n,t)}function vs(e){return t=>t.pointerType==="mouse"?e(t):void 0}var iS=z1,aS=cd,cS=B1,uS=q1,dS=md,fS=W1,mS=ra,pS=Y1,hS=V1,gS=Z1,yS=K1,vS=Q1,bS=J1,wS=t0,xS=r0,gd="DropdownMenu",[CS,GL]=zt(gd,[O1]),rt=O1(),[_S,s0]=CS(gd),l0=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:l,modal:i=!0}=e,c=rt(t),d=u.useRef(null),[f=!1,m]=Qn({prop:o,defaultProp:s,onChange:l});return a.jsx(_S,{scope:t,triggerId:St(),triggerRef:d,contentId:St(),open:f,onOpenChange:m,onOpenToggle:u.useCallback(()=>m(p=>!p),[m]),modal:i,children:a.jsx(iS,{...c,open:f,onOpenChange:m,dir:r,modal:i,children:n})})};l0.displayName=gd;var i0="DropdownMenuTrigger",a0=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=s0(i0,n),l=rt(n);return a.jsx(aS,{asChild:!0,...l,children:a.jsx(X.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:gi(t,s.triggerRef),onPointerDown:O(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(s.onOpenToggle(),s.open||i.preventDefault())}),onKeyDown:O(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&s.onOpenToggle(),i.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});a0.displayName=i0;var kS="DropdownMenuPortal",c0=e=>{const{__scopeDropdownMenu:t,...n}=e,r=rt(t);return a.jsx(cS,{...r,...n})};c0.displayName=kS;var u0="DropdownMenuContent",d0=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=s0(u0,n),s=rt(n),l=u.useRef(!1);return a.jsx(uS,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:O(e.onCloseAutoFocus,i=>{var c;l.current||(c=o.triggerRef.current)==null||c.focus(),l.current=!1,i.preventDefault()}),onInteractOutside:O(e.onInteractOutside,i=>{const c=i.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0,f=c.button===2||d;(!o.modal||f)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});d0.displayName=u0;var SS="DropdownMenuGroup",RS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return a.jsx(dS,{...o,...r,ref:t})});RS.displayName=SS;var ES="DropdownMenuLabel",jS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return a.jsx(fS,{...o,...r,ref:t})});jS.displayName=ES;var TS="DropdownMenuItem",f0=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return a.jsx(mS,{...o,...r,ref:t})});f0.displayName=TS;var LS="DropdownMenuCheckboxItem",MS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return a.jsx(pS,{...o,...r,ref:t})});MS.displayName=LS;var AS="DropdownMenuRadioGroup",IS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return a.jsx(hS,{...o,...r,ref:t})});IS.displayName=AS;var PS="DropdownMenuRadioItem",DS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return a.jsx(gS,{...o,...r,ref:t})});DS.displayName=PS;var NS="DropdownMenuItemIndicator",OS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return a.jsx(yS,{...o,...r,ref:t})});OS.displayName=NS;var $S="DropdownMenuSeparator",zS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return a.jsx(vS,{...o,...r,ref:t})});zS.displayName=$S;var FS="DropdownMenuArrow",BS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return a.jsx(bS,{...o,...r,ref:t})});BS.displayName=FS;var qS="DropdownMenuSubTrigger",WS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return a.jsx(wS,{...o,...r,ref:t})});WS.displayName=qS;var GS="DropdownMenuSubContent",YS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=rt(n);return a.jsx(xS,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});YS.displayName=GS;var US=l0,xm=a0,VS=c0,HS=d0,ZS=f0;function yd({trigger:e,tooltip:t,onOpenChange:n,children:r,tooltipProps:o}){const[s,l]=u.useState(),i=c=>{c&&l(!1),n?.(c)};return a.jsxs(US,{onOpenChange:i,children:[t?a.jsxs(go,{open:s,onOpenChange:l,delayDuration:300,children:[a.jsx(yo,{asChild:!0,children:a.jsx(xm,{asChild:!0,children:e})}),a.jsx(vo,{children:a.jsx(bo,{...o,...k.props(typeof t=="string"?Sn.default:Sn.card),children:t})})]}):a.jsx(xm,{asChild:!0,children:e}),a.jsx(VS,{children:a.jsx(HS,{...k.props(z.body,Dl.content),side:"bottom",align:"start",sideOffset:4,onCloseAutoFocus:c=>c.preventDefault(),children:u.Children.map(r,c=>c)})})]})}function bs({icon:e,label:t,sublabel:n,onClick:r,disabled:o}){return a.jsxs(ZS,{className:"mly78zum5 mly6s0dn4 mlye8ttls mly167g77z mly1kogg8i mly1ypdohk mly1a2a7pz mly1bw6wve mly5ezrf1 mly15rdse5 mly1z060rf mly5deeek mly1jacekv mly7ouyw2 mly7h4d18",onClick:s=>{r?.(s)},disabled:o,children:[e&&a.jsx(te,{name:e,customStyle:Dl.icon}),a.jsxs("div",{className:"mly78zum5 mlydt5ytf mly1iyjqo2",children:[a.jsx("span",{...k.props(z.body,Dl.label),children:t}),n&&a.jsx("span",{...k.props(z.supporting,Dl.sublabel),children:n})]})]})}const Dl={content:{display:"mly78zum5",flexDirection:"mlydt5ytf",borderRadius:"mly1q4ynmn",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,background:"mlyotlr4g",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,boxShadow:"mly17fq3gk",padding:"mlyfawy5m",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0},icon:{color:"mly1mguc6l",$$css:!0},label:{flexGrow:"mly1iyjqo2",color:"mly12lmysb",$$css:!0},sublabel:{flexGrow:"mly1iyjqo2",color:"mly15jt5ur",$$css:!0}},oa=u.createContext({});function XS({runQuery:e}){const{rootQuery:t,setQuery:n,source:r}=u.useContext(ge),{onCollapse:o}=u.useContext(oa),{focusMainView:s}=js(),l=!t||t.isEmpty(),i=t?.isRunnable(),c=()=>{r&&t&&e(r,t.build())};return a.jsxs("div",{className:"mly78zum5 mly1qughib mly6s0dn4 mlye8ttls",children:[a.jsxs("div",{className:"mly78zum5 mly167g77z mly6s0dn4 mlydqdrvq",children:[a.jsx(te,{name:"filterSliders"}),a.jsx("div",{...k.props(z.largeBody,KS.title),children:"Query"})]}),a.jsxs("div",{className:"mly78zum5 mly167g77z",children:[a.jsx(xe,{onClick:()=>{s(),n?.(void 0)},isDisabled:!t||t?.isEmpty(),label:"Clear",variant:"flat",size:"compact"}),a.jsxs(fo,{children:[a.jsx(mo,{asChild:!0,children:a.jsx(xe,{icon:"play",onClick:c,isDisabled:!i,label:"Run",variant:"primary",size:"compact"})}),a.jsx(po,{children:a.jsx(ho,{children:a.jsx("div",{...k.props(z.body,Sn.default),children:i?"Execute the query.":l?"The current query is empty.":"The current query cannot be executed."})})})]}),o&&a.jsx(xe,{icon:"sidebarCollapse",tooltip:"Close the source panel",onClick:o,size:"compact",variant:"flat"})]})]})}const KS={title:{fontWeight:"mly1xlr1w8",$$css:!0}},Ot={labelWithIcon:{display:"mly78zum5",alignItems:"mly6s0dn4",whiteSpace:"mlyuxw1ft",gap:"mly167g77z",rowGap:null,columnGap:null,overflow:"mlyb3r6kr",overflowX:null,overflowY:null,$$css:!0},queryCard:{border:"mlyzkdzjc",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,borderRadius:"mly1sxf85j",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,padding:"mlye8ttls",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0},title:{whiteSpace:"mlyuxw1ft",padding:"mly17qkr04",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0},tokenContainer:{display:"mly78zum5",flexDirection:"mlydt5ytf",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0}};function QS({value:e,customStyle:t}){if(!e)return a.jsx(De,{label:"∅"});switch(e.kind){case"boolean_literal":return a.jsx(De,{label:e.boolean_value?"true":"false",customStyle:t});case"date_literal":return a.jsx(De,{label:e.date_value,customStyle:t});case"timestamp_literal":return a.jsx(De,{label:e.timestamp_value,customStyle:t});case"null_literal":return a.jsx(De,{label:"∅"});case"number_literal":return a.jsx(De,{label:e.number_value.toLocaleString(),customStyle:t});case"string_literal":return a.jsx(De,{label:e.string_value,customStyle:t});case"filter_expression_literal":return a.jsx(De,{label:e.filter_expression_value,customStyle:t})}}const qc="# ",JS=["table","bar","dashboard","json","line","list","list_detail","point_map","scatter_chart","segment_map","shape_map"],eR=["table","bar_chart","dashboard","json","line_chart","list","list_detail","point_map","scatter_chart","segment_map","shape_map"],tR=["number","boolean","currency","image","url","percent","text","time"],nR=[...eR,...tR];function vd(e){if(e){const t=e.getProperties(),n=Object.keys(t);for(const r of n)if(nR.includes(r)&&!t[r].deleted)return r}return null}function rR(e){switch(e){case"bar_chart":return"bar";case"line_chart":return"line";default:return e}}function sa(e){return sR[e]}function m0(e){return lR[e]}function Nl(e){let t;switch(e.kind){case"view":t="query";break;case"dimension":case"measure":t=sa(e.type.kind);break;case"join":t=oR(e.relationship);break}return t}function oR(e){return iR[e]}function p0(e){const t=e.getTag();return`viz_${vd(t)??"table"}`}const sR={array_type:"array",string_type:"string",date_type:"date",boolean_type:"boolean",number_type:"number",json_type:"json",record_type:"json",sql_native_type:"sql_native",timestamp_type:"date",filter_expression_type:"filter"},lR={view:"purple",dimension:"cyan",measure:"green",join:void 0},iR={many:"many_to_one",cross:"one_to_many",one:"one_to_one"};function gr({field:e,hoverActions:t,hoverActionsVisible:n,...r}){let o=e.name;return e.kind==="dimension"&&(e.type.kind==="timestamp_type"||e.type.kind==="date_type")&&e.type.timeframe&&(o+=`.${e.type.timeframe}`),a.jsxs("div",{...{0:{className:"mly78zum5 mly6s0dn4 mly1nhvcw1 mly1jnr06f mly28fmrt mly1x0xcia"},1:{className:"mly78zum5 mly6s0dn4 mly1nhvcw1 mly1jnr06f mlym9y5t7"}}[!!n<<0],children:[a.jsx(De,{label:o,color:m0(e.kind),icon:Nl(e),...r}),t&&a.jsx("div",{className:"mly1vsucm1 mly2lah0s",children:t})]})}function aR({drills:e}){return e.length?a.jsxs("div",{children:[a.jsx("div",{...k.props(Ot.title),children:"drills"}),a.jsx("div",{className:"mly78zum5 mlydt5ytf mly1jnr06f",children:e.map((t,n)=>{const r=t.filter.expression.getFieldInfo();return r?a.jsxs(Ls,{color:"cyan",customStyle:cR.tokenGroup,children:[a.jsx(gr,{field:r}),a.jsx(De,{label:"="}),t.filter instanceof Z.ASTFilterWithLiteralEquality?a.jsx(QS,{value:t.filter.value.node}):a.jsx(De,{label:t.filter.filterString})]},n):null})})]}):null}const cR={tokenGroup:{display:"mly78zum5",$$css:!0}};function uR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return u.useMemo(()=>r=>{t.forEach(o=>o(r))},t)}const la=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Eo(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function bd(e){return"nodeType"in e}function at(e){var t,n;return e?Eo(e)?e:bd(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function wd(e){const{Document:t}=at(e);return e instanceof t}function Ys(e){return Eo(e)?!1:e instanceof at(e).HTMLElement}function h0(e){return e instanceof at(e).SVGElement}function jo(e){return e?Eo(e)?e.document:bd(e)?wd(e)?e:Ys(e)||h0(e)?e.ownerDocument:document:document:document}const en=la?u.useLayoutEffect:u.useEffect;function xd(e){const t=u.useRef(e);return en(()=>{t.current=e}),u.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function dR(){const e=u.useRef(null),t=u.useCallback((r,o)=>{e.current=setInterval(r,o)},[]),n=u.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function ws(e,t){t===void 0&&(t=[e]);const n=u.useRef(e);return en(()=>{n.current!==e&&(n.current=e)},t),n}function Us(e,t){const n=u.useRef();return u.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function ui(e){const t=xd(e),n=u.useRef(null),r=u.useCallback(o=>{o!==n.current&&t?.(o,n.current),n.current=o},[]);return[n,r]}function Wc(e){const t=u.useRef();return u.useEffect(()=>{t.current=e},[e]),t.current}let Ua={};function Vs(e,t){return u.useMemo(()=>{if(t)return t;const n=Ua[e]==null?0:Ua[e]+1;return Ua[e]=n,e+"-"+n},[e,t])}function g0(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((s,l)=>{const i=Object.entries(l);for(const[c,d]of i){const f=s[c];f!=null&&(s[c]=f+e*d)}return s},{...t})}}const Kr=g0(1),di=g0(-1);function fR(e){return"clientX"in e&&"clientY"in e}function Cd(e){if(!e)return!1;const{KeyboardEvent:t}=at(e.target);return t&&e instanceof t}function mR(e){if(!e)return!1;const{TouchEvent:t}=at(e.target);return t&&e instanceof t}function Gc(e){if(mR(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return fR(e)?{x:e.clientX,y:e.clientY}:null}const xs=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[xs.Translate.toString(e),xs.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Cm="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function pR(e){return e.matches(Cm)?e:e.querySelector(Cm)}const hR={display:"none"};function gR(e){let{id:t,value:n}=e;return Me.createElement("div",{id:t,style:hR},n)}function yR(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Me.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function vR(){const[e,t]=u.useState("");return{announce:u.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const y0=u.createContext(null);function bR(e){const t=u.useContext(y0);u.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function wR(){const[e]=u.useState(()=>new Set),t=u.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[u.useCallback(r=>{let{type:o,event:s}=r;e.forEach(l=>{var i;return(i=l[o])==null?void 0:i.call(l,s)})},[e]),t]}const xR={draggable:`
202
- To pick up a draggable item, press the space bar.
203
- While dragging, use the arrow keys to move the item.
204
- Press space again to drop the item in its new position, or press escape to cancel.
205
- `},CR={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function _R(e){let{announcements:t=CR,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=xR}=e;const{announce:s,announcement:l}=vR(),i=Vs("DndLiveRegion"),[c,d]=u.useState(!1);if(u.useEffect(()=>{d(!0)},[]),bR(u.useMemo(()=>({onDragStart(m){let{active:p}=m;s(t.onDragStart({active:p}))},onDragMove(m){let{active:p,over:h}=m;t.onDragMove&&s(t.onDragMove({active:p,over:h}))},onDragOver(m){let{active:p,over:h}=m;s(t.onDragOver({active:p,over:h}))},onDragEnd(m){let{active:p,over:h}=m;s(t.onDragEnd({active:p,over:h}))},onDragCancel(m){let{active:p,over:h}=m;s(t.onDragCancel({active:p,over:h}))}}),[s,t])),!c)return null;const f=Me.createElement(Me.Fragment,null,Me.createElement(gR,{id:r,value:o.draggable}),Me.createElement(yR,{id:i,announcement:l}));return n?hn.createPortal(f,n):f}var Be;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Be||(Be={}));function fi(){}function kR(e,t){return u.useMemo(()=>({sensor:e,options:{}}),[e,t])}function SR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return u.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const $t=Object.freeze({x:0,y:0});function RR(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ER(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function jR(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function TR(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function _m(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const LR=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=_m(t,t.left,t.top),s=[];for(const l of r){const{id:i}=l,c=n.get(i);if(c){const d=RR(_m(c),o);s.push({id:i,data:{droppableContainer:l,value:d}})}}return s.sort(ER)};function MR(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),l=o-r,i=s-n;if(r<o&&n<s){const c=t.width*t.height,d=e.width*e.height,f=l*i,m=f/(c+d-f);return Number(m.toFixed(4))}return 0}const AR=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const s of r){const{id:l}=s,i=n.get(l);if(i){const c=MR(i,t);c>0&&o.push({id:l,data:{droppableContainer:s,value:c}})}}return o.sort(jR)};function IR(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function v0(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:$t}function PR(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return o.reduce((l,i)=>({...l,top:l.top+e*i.y,bottom:l.bottom+e*i.y,left:l.left+e*i.x,right:l.right+e*i.x}),{...n})}}const DR=PR(1);function NR(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function OR(e,t,n){const r=NR(t);if(!r)return e;const{scaleX:o,scaleY:s,x:l,y:i}=r,c=e.left-l-(1-o)*parseFloat(n),d=e.top-i-(1-s)*parseFloat(n.slice(n.indexOf(" ")+1)),f=o?e.width/o:e.width,m=s?e.height/s:e.height;return{width:f,height:m,top:d,right:c+f,bottom:d+m,left:c}}const $R={ignoreTransform:!1};function To(e,t){t===void 0&&(t=$R);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:d,transformOrigin:f}=at(e).getComputedStyle(e);d&&(n=OR(n,d,f))}const{top:r,left:o,width:s,height:l,bottom:i,right:c}=n;return{top:r,left:o,width:s,height:l,bottom:i,right:c}}function km(e){return To(e,{ignoreTransform:!0})}function zR(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function FR(e,t){return t===void 0&&(t=at(e).getComputedStyle(e)),t.position==="fixed"}function BR(e,t){t===void 0&&(t=at(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const s=t[o];return typeof s=="string"?n.test(s):!1})}function _d(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(wd(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Ys(o)||h0(o)||n.includes(o))return n;const s=at(e).getComputedStyle(o);return o!==e&&BR(o,s)&&n.push(o),FR(o,s)?n:r(o.parentNode)}return e?r(e):n}function b0(e){const[t]=_d(e,1);return t??null}function Va(e){return!la||!e?null:Eo(e)?e:bd(e)?wd(e)||e===jo(e).scrollingElement?window:Ys(e)?e:null:null}function w0(e){return Eo(e)?e.scrollX:e.scrollLeft}function x0(e){return Eo(e)?e.scrollY:e.scrollTop}function Yc(e){return{x:w0(e),y:x0(e)}}var Ye;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Ye||(Ye={}));function C0(e){return!la||!e?!1:e===document.scrollingElement}function _0(e){const t={x:0,y:0},n=C0(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,s=e.scrollLeft<=t.x,l=e.scrollTop>=r.y,i=e.scrollLeft>=r.x;return{isTop:o,isLeft:s,isBottom:l,isRight:i,maxScroll:r,minScroll:t}}const qR={x:.2,y:.2};function WR(e,t,n,r,o){let{top:s,left:l,right:i,bottom:c}=n;r===void 0&&(r=10),o===void 0&&(o=qR);const{isTop:d,isBottom:f,isLeft:m,isRight:p}=_0(e),h={x:0,y:0},g={x:0,y:0},y={height:t.height*o.y,width:t.width*o.x};return!d&&s<=t.top+y.height?(h.y=Ye.Backward,g.y=r*Math.abs((t.top+y.height-s)/y.height)):!f&&c>=t.bottom-y.height&&(h.y=Ye.Forward,g.y=r*Math.abs((t.bottom-y.height-c)/y.height)),!p&&i>=t.right-y.width?(h.x=Ye.Forward,g.x=r*Math.abs((t.right-y.width-i)/y.width)):!m&&l<=t.left+y.width&&(h.x=Ye.Backward,g.x=r*Math.abs((t.left+y.width-l)/y.width)),{direction:h,speed:g}}function GR(e){if(e===document.scrollingElement){const{innerWidth:s,innerHeight:l}=window;return{top:0,left:0,right:s,bottom:l,width:s,height:l}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function k0(e){return e.reduce((t,n)=>Kr(t,Yc(n)),$t)}function YR(e){return e.reduce((t,n)=>t+w0(n),0)}function UR(e){return e.reduce((t,n)=>t+x0(n),0)}function VR(e,t){if(t===void 0&&(t=To),!e)return;const{top:n,left:r,bottom:o,right:s}=t(e);b0(e)&&(o<=0||s<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const HR=[["x",["left","right"],YR],["y",["top","bottom"],UR]];class kd{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=_d(n),o=k0(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[s,l,i]of HR)for(const c of l)Object.defineProperty(this,c,{get:()=>{const d=i(r),f=o[s]-d;return this.rect[c]+f},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class es{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function ZR(e){const{EventTarget:t}=at(e);return e instanceof t?e:jo(e)}function Ha(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var xt;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(xt||(xt={}));function Sm(e){e.preventDefault()}function XR(e){e.stopPropagation()}var pe;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(pe||(pe={}));const S0={start:[pe.Space,pe.Enter],cancel:[pe.Esc],end:[pe.Space,pe.Enter,pe.Tab]},KR=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case pe.Right:return{...n,x:n.x+25};case pe.Left:return{...n,x:n.x-25};case pe.Down:return{...n,y:n.y+25};case pe.Up:return{...n,y:n.y-25}}};class R0{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new es(jo(n)),this.windowListeners=new es(at(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(xt.Resize,this.handleCancel),this.windowListeners.add(xt.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(xt.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&VR(r),n($t)}handleKeyDown(t){if(Cd(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:s=S0,coordinateGetter:l=KR,scrollBehavior:i="smooth"}=o,{code:c}=t;if(s.end.includes(c)){this.handleEnd(t);return}if(s.cancel.includes(c)){this.handleCancel(t);return}const{collisionRect:d}=r.current,f=d?{x:d.left,y:d.top}:$t;this.referenceCoordinates||(this.referenceCoordinates=f);const m=l(t,{active:n,context:r.current,currentCoordinates:f});if(m){const p=di(m,f),h={x:0,y:0},{scrollableAncestors:g}=r.current;for(const y of g){const v=t.code,{isTop:w,isRight:b,isLeft:x,isBottom:C,maxScroll:_,minScroll:R}=_0(y),S=GR(y),E={x:Math.min(v===pe.Right?S.right-S.width/2:S.right,Math.max(v===pe.Right?S.left:S.left+S.width/2,m.x)),y:Math.min(v===pe.Down?S.bottom-S.height/2:S.bottom,Math.max(v===pe.Down?S.top:S.top+S.height/2,m.y))},T=v===pe.Right&&!b||v===pe.Left&&!x,M=v===pe.Down&&!C||v===pe.Up&&!w;if(T&&E.x!==m.x){const D=y.scrollLeft+p.x,F=v===pe.Right&&D<=_.x||v===pe.Left&&D>=R.x;if(F&&!p.y){y.scrollTo({left:D,behavior:i});return}F?h.x=y.scrollLeft-D:h.x=v===pe.Right?y.scrollLeft-_.x:y.scrollLeft-R.x,h.x&&y.scrollBy({left:-h.x,behavior:i});break}else if(M&&E.y!==m.y){const D=y.scrollTop+p.y,F=v===pe.Down&&D<=_.y||v===pe.Up&&D>=R.y;if(F&&!p.x){y.scrollTo({top:D,behavior:i});return}F?h.y=y.scrollTop-D:h.y=v===pe.Down?y.scrollTop-_.y:y.scrollTop-R.y,h.y&&y.scrollBy({top:-h.y,behavior:i});break}}this.handleMove(t,Kr(di(m,this.referenceCoordinates),h))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}R0.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=S0,onActivation:o}=t,{active:s}=n;const{code:l}=e.nativeEvent;if(r.start.includes(l)){const i=s.activatorNode.current;return i&&e.target!==i?!1:(e.preventDefault(),o?.({event:e.nativeEvent}),!0)}return!1}}];function Rm(e){return!!(e&&"distance"in e)}function Em(e){return!!(e&&"delay"in e)}class Sd{constructor(t,n,r){var o;r===void 0&&(r=ZR(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:s}=t,{target:l}=s;this.props=t,this.events=n,this.document=jo(l),this.documentListeners=new es(this.document),this.listeners=new es(r),this.windowListeners=new es(at(l)),this.initialCoordinates=(o=Gc(s))!=null?o:$t,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(xt.Resize,this.handleCancel),this.windowListeners.add(xt.DragStart,Sm),this.windowListeners.add(xt.VisibilityChange,this.handleCancel),this.windowListeners.add(xt.ContextMenu,Sm),this.documentListeners.add(xt.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Em(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Rm(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:o}=this.props;o(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(xt.Click,XR,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(xt.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:s}=this,{onMove:l,options:{activationConstraint:i}}=s;if(!o)return;const c=(n=Gc(t))!=null?n:$t,d=di(o,c);if(!r&&i){if(Rm(i)){if(i.tolerance!=null&&Ha(d,i.tolerance))return this.handleCancel();if(Ha(d,i.distance))return this.handleStart()}if(Em(i)&&Ha(d,i.tolerance))return this.handleCancel();this.handlePending(i,d);return}t.cancelable&&t.preventDefault(),l(c)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===pe.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const QR={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Rd extends Sd{constructor(t){const{event:n}=t,r=jo(n.target);super(t,QR,r)}}Rd.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];const JR={move:{name:"mousemove"},end:{name:"mouseup"}};var Uc;(function(e){e[e.RightClick=2]="RightClick"})(Uc||(Uc={}));class eE extends Sd{constructor(t){super(t,JR,jo(t.event.target))}}eE.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Uc.RightClick?!1:(r?.({event:n}),!0)}}];const Za={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class tE extends Sd{constructor(t){super(t,Za)}static setup(){return window.addEventListener(Za.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Za.move.name,t)};function t(){}}}tE.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?!1:(r?.({event:n}),!0)}}];var ts;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(ts||(ts={}));var mi;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(mi||(mi={}));function nE(e){let{acceleration:t,activator:n=ts.Pointer,canScroll:r,draggingRect:o,enabled:s,interval:l=5,order:i=mi.TreeOrder,pointerCoordinates:c,scrollableAncestors:d,scrollableAncestorRects:f,delta:m,threshold:p}=e;const h=oE({delta:m,disabled:!s}),[g,y]=dR(),v=u.useRef({x:0,y:0}),w=u.useRef({x:0,y:0}),b=u.useMemo(()=>{switch(n){case ts.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case ts.DraggableRect:return o}},[n,o,c]),x=u.useRef(null),C=u.useCallback(()=>{const R=x.current;if(!R)return;const S=v.current.x*w.current.x,E=v.current.y*w.current.y;R.scrollBy(S,E)},[]),_=u.useMemo(()=>i===mi.TreeOrder?[...d].reverse():d,[i,d]);u.useEffect(()=>{if(!s||!d.length||!b){y();return}for(const R of _){if(r?.(R)===!1)continue;const S=d.indexOf(R),E=f[S];if(!E)continue;const{direction:T,speed:M}=WR(R,E,b,t,p);for(const D of["x","y"])h[D][T[D]]||(M[D]=0,T[D]=0);if(M.x>0||M.y>0){y(),x.current=R,g(C,l),v.current=M,w.current=T;return}}v.current={x:0,y:0},w.current={x:0,y:0},y()},[t,C,r,y,s,l,JSON.stringify(b),JSON.stringify(h),g,d,_,f,JSON.stringify(p)])}const rE={x:{[Ye.Backward]:!1,[Ye.Forward]:!1},y:{[Ye.Backward]:!1,[Ye.Forward]:!1}};function oE(e){let{delta:t,disabled:n}=e;const r=Wc(t);return Us(o=>{if(n||!r||!o)return rE;const s={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Ye.Backward]:o.x[Ye.Backward]||s.x===-1,[Ye.Forward]:o.x[Ye.Forward]||s.x===1},y:{[Ye.Backward]:o.y[Ye.Backward]||s.y===-1,[Ye.Forward]:o.y[Ye.Forward]||s.y===1}}},[n,t,r])}function sE(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Us(o=>{var s;return t==null?null:(s=r??o)!=null?s:null},[r,t])}function lE(e,t){return u.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,s=o.activators.map(l=>({eventName:l.eventName,handler:t(l.handler,r)}));return[...n,...s]},[]),[e,t])}var Cs;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Cs||(Cs={}));var Vc;(function(e){e.Optimized="optimized"})(Vc||(Vc={}));const jm=new Map;function iE(e,t){let{dragging:n,dependencies:r,config:o}=t;const[s,l]=u.useState(null),{frequency:i,measure:c,strategy:d}=o,f=u.useRef(e),m=v(),p=ws(m),h=u.useCallback(function(w){w===void 0&&(w=[]),!p.current&&l(b=>b===null?w:b.concat(w.filter(x=>!b.includes(x))))},[p]),g=u.useRef(null),y=Us(w=>{if(m&&!n)return jm;if(!w||w===jm||f.current!==e||s!=null){const b=new Map;for(let x of e){if(!x)continue;if(s&&s.length>0&&!s.includes(x.id)&&x.rect.current){b.set(x.id,x.rect.current);continue}const C=x.node.current,_=C?new kd(c(C),C):null;x.rect.current=_,_&&b.set(x.id,_)}return b}return w},[e,s,n,m,c]);return u.useEffect(()=>{f.current=e},[e]),u.useEffect(()=>{m||h()},[n,m]),u.useEffect(()=>{s&&s.length>0&&l(null)},[JSON.stringify(s)]),u.useEffect(()=>{m||typeof i!="number"||g.current!==null||(g.current=setTimeout(()=>{h(),g.current=null},i))},[i,m,h,...r]),{droppableRects:y,measureDroppableContainers:h,measuringScheduled:s!=null};function v(){switch(d){case Cs.Always:return!1;case Cs.BeforeDragging:return n;default:return!n}}}function E0(e,t){return Us(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function aE(e,t){return E0(e,t)}function cE(e){let{callback:t,disabled:n}=e;const r=xd(t),o=u.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:s}=window;return new s(r)},[r,n]);return u.useEffect(()=>()=>o?.disconnect(),[o]),o}function ia(e){let{callback:t,disabled:n}=e;const r=xd(t),o=u.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:s}=window;return new s(r)},[n]);return u.useEffect(()=>()=>o?.disconnect(),[o]),o}function uE(e){return new kd(To(e),e)}function Tm(e,t,n){t===void 0&&(t=uE);const[r,o]=u.useState(null);function s(){o(c=>{if(!e)return null;if(e.isConnected===!1){var d;return(d=c??n)!=null?d:null}const f=t(e);return JSON.stringify(c)===JSON.stringify(f)?c:f})}const l=cE({callback(c){if(e)for(const d of c){const{type:f,target:m}=d;if(f==="childList"&&m instanceof HTMLElement&&m.contains(e)){s();break}}}}),i=ia({callback:s});return en(()=>{s(),e?(i?.observe(e),l?.observe(document.body,{childList:!0,subtree:!0})):(i?.disconnect(),l?.disconnect())},[e]),r}function dE(e){const t=E0(e);return v0(e,t)}const Lm=[];function fE(e){const t=u.useRef(e),n=Us(r=>e?r&&r!==Lm&&e&&t.current&&e.parentNode===t.current.parentNode?r:_d(e):Lm,[e]);return u.useEffect(()=>{t.current=e},[e]),n}function mE(e){const[t,n]=u.useState(null),r=u.useRef(e),o=u.useCallback(s=>{const l=Va(s.target);l&&n(i=>i?(i.set(l,Yc(l)),new Map(i)):null)},[]);return u.useEffect(()=>{const s=r.current;if(e!==s){l(s);const i=e.map(c=>{const d=Va(c);return d?(d.addEventListener("scroll",o,{passive:!0}),[d,Yc(d)]):null}).filter(c=>c!=null);n(i.length?new Map(i):null),r.current=e}return()=>{l(e),l(s)};function l(i){i.forEach(c=>{const d=Va(c);d?.removeEventListener("scroll",o)})}},[o,e]),u.useMemo(()=>e.length?t?Array.from(t.values()).reduce((s,l)=>Kr(s,l),$t):k0(e):$t,[e,t])}function Mm(e,t){t===void 0&&(t=[]);const n=u.useRef(null);return u.useEffect(()=>{n.current=null},t),u.useEffect(()=>{const r=e!==$t;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?di(e,n.current):$t}function pE(e){u.useEffect(()=>{if(!la)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function hE(e,t){return u.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:s}=r;return n[o]=l=>{s(l,t)},n},{}),[e,t])}function j0(e){return u.useMemo(()=>e?zR(e):null,[e])}const Am=[];function gE(e,t){t===void 0&&(t=To);const[n]=e,r=j0(n?at(n):null),[o,s]=u.useState(Am);function l(){s(()=>e.length?e.map(c=>C0(c)?r:new kd(t(c),c)):Am)}const i=ia({callback:l});return en(()=>{i?.disconnect(),l(),e.forEach(c=>i?.observe(c))},[e]),o}function yE(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Ys(t)?t:e}function vE(e){let{measure:t}=e;const[n,r]=u.useState(null),o=u.useCallback(d=>{for(const{target:f}of d)if(Ys(f)){r(m=>{const p=t(f);return m?{...m,width:p.width,height:p.height}:p});break}},[t]),s=ia({callback:o}),l=u.useCallback(d=>{const f=yE(d);s?.disconnect(),f&&s?.observe(f),r(f?t(f):null)},[t,s]),[i,c]=ui(l);return u.useMemo(()=>({nodeRef:i,rect:n,setRef:c}),[n,i,c])}const bE=[{sensor:Rd,options:{}},{sensor:R0,options:{}}],wE={current:{}},Ol={draggable:{measure:km},droppable:{measure:km,strategy:Cs.WhileDragging,frequency:Vc.Optimized},dragOverlay:{measure:To}};class ns extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const xE={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ns,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:fi},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ol,measureDroppableContainers:fi,windowRect:null,measuringScheduled:!1},CE={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:fi,draggableNodes:new Map,over:null,measureDroppableContainers:fi},aa=u.createContext(CE),T0=u.createContext(xE);function _E(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ns}}}function kE(e,t){switch(t.type){case Be.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Be.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Be.DragEnd:case Be.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Be.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new ns(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case Be.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,s=e.droppable.containers.get(n);if(!s||r!==s.key)return e;const l=new ns(e.droppable.containers);return l.set(n,{...s,disabled:o}),{...e,droppable:{...e.droppable,containers:l}}}case Be.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const s=new ns(e.droppable.containers);return s.delete(n),{...e,droppable:{...e.droppable,containers:s}}}default:return e}}function SE(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=u.useContext(aa),s=Wc(r),l=Wc(n?.id);return u.useEffect(()=>{if(!t&&!r&&s&&l!=null){if(!Cd(s)||document.activeElement===s.target)return;const i=o.get(l);if(!i)return;const{activatorNode:c,node:d}=i;if(!c.current&&!d.current)return;requestAnimationFrame(()=>{for(const f of[c.current,d.current]){if(!f)continue;const m=pR(f);if(m){m.focus();break}}})}},[r,t,o,l,s]),null}function RE(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,s)=>s({transform:o,...r}),n):n}function EE(e){return u.useMemo(()=>({draggable:{...Ol.draggable,...e?.draggable},droppable:{...Ol.droppable,...e?.droppable},dragOverlay:{...Ol.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function jE(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const s=u.useRef(!1),{x:l,y:i}=typeof o=="boolean"?{x:o,y:o}:o;en(()=>{if(!l&&!i||!t){s.current=!1;return}if(s.current||!r)return;const d=t?.node.current;if(!d||d.isConnected===!1)return;const f=n(d),m=v0(f,r);if(l||(m.x=0),i||(m.y=0),s.current=!0,Math.abs(m.x)>0||Math.abs(m.y)>0){const p=b0(d);p&&p.scrollBy({top:m.y,left:m.x})}},[t,l,i,r,n])}const L0=u.createContext({...$t,scaleX:1,scaleY:1});var Bn;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Bn||(Bn={}));const TE=u.memo(function(t){var n,r,o,s;let{id:l,accessibility:i,autoScroll:c=!0,children:d,sensors:f=bE,collisionDetection:m=AR,measuring:p,modifiers:h,...g}=t;const y=u.useReducer(kE,void 0,_E),[v,w]=y,[b,x]=wR(),[C,_]=u.useState(Bn.Uninitialized),R=C===Bn.Initialized,{draggable:{active:S,nodes:E,translate:T},droppable:{containers:M}}=v,D=S!=null?E.get(S):null,F=u.useRef({initial:null,translated:null}),V=u.useMemo(()=>{var Xe;return S!=null?{id:S,data:(Xe=D?.data)!=null?Xe:wE,rect:F}:null},[S,D]),q=u.useRef(null),[ne,U]=u.useState(null),[K,H]=u.useState(null),N=ws(g,Object.values(g)),ae=Vs("DndDescribedBy",l),Ae=u.useMemo(()=>M.getEnabled(),[M]),ye=EE(p),{droppableRects:je,measureDroppableContainers:ke,measuringScheduled:Ze}=iE(Ae,{dragging:R,dependencies:[T.x,T.y],config:ye.droppable}),Se=sE(E,S),G=u.useMemo(()=>K?Gc(K):null,[K]),se=Fy(),ce=aE(Se,ye.draggable.measure);jE({activeNode:S!=null?E.get(S):null,config:se.layoutShiftCompensation,initialRect:ce,measure:ye.draggable.measure});const W=Tm(Se,ye.draggable.measure,ce),de=Tm(Se?Se.parentElement:null),le=u.useRef({activatorEvent:null,active:null,activeNode:Se,collisionRect:null,collisions:null,droppableRects:je,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:M,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Oe=M.getNodeFor((n=le.current.over)==null?void 0:n.id),$e=vE({measure:ye.dragOverlay.measure}),yt=(r=$e.nodeRef.current)!=null?r:Se,vt=R?(o=$e.rect)!=null?o:W:null,Ln=!!($e.nodeRef.current&&$e.rect),Ks=dE(Ln?null:W),Mn=j0(yt?at(yt):null),An=fE(R?Oe??Se:null),Qs=gE(An),Js=RE(h,{transform:{x:T.x-Ks.x,y:T.y-Ks.y,scaleX:1,scaleY:1},activatorEvent:K,active:V,activeNodeRect:W,containerNodeRect:de,draggingNodeRect:vt,over:le.current.over,overlayNodeRect:$e.rect,scrollableAncestors:An,scrollableAncestorRects:Qs,windowRect:Mn}),Fd=G?Kr(G,T):null,Bd=mE(An),Iy=Mm(Bd),Py=Mm(Bd,[W]),kr=Kr(Js,Iy),Sr=vt?DR(vt,Js):null,Lo=V&&Sr?m({active:V,collisionRect:Sr,droppableRects:je,droppableContainers:Ae,pointerCoordinates:Fd}):null,qd=TR(Lo,"id"),[In,Wd]=u.useState(null),Dy=Ln?Js:Kr(Js,Py),Ny=IR(Dy,(s=In?.rect)!=null?s:null,W),fa=u.useRef(null),Gd=u.useCallback((Xe,ct)=>{let{sensor:ut,options:Pn}=ct;if(q.current==null)return;const bt=E.get(q.current);if(!bt)return;const dt=Xe.nativeEvent,qt=new ut({active:q.current,activeNode:bt,event:dt,options:Pn,context:le,onAbort(Ve){if(!E.get(Ve))return;const{onDragAbort:Wt}=N.current,ln={id:Ve};Wt?.(ln),b({type:"onDragAbort",event:ln})},onPending(Ve,Dn,Wt,ln){if(!E.get(Ve))return;const{onDragPending:Ao}=N.current,Nn={id:Ve,constraint:Dn,initialCoordinates:Wt,offset:ln};Ao?.(Nn),b({type:"onDragPending",event:Nn})},onStart(Ve){const Dn=q.current;if(Dn==null)return;const Wt=E.get(Dn);if(!Wt)return;const{onDragStart:ln}=N.current,Mo={activatorEvent:dt,active:{id:Dn,data:Wt.data,rect:F}};hn.unstable_batchedUpdates(()=>{ln?.(Mo),_(Bn.Initializing),w({type:Be.DragStart,initialCoordinates:Ve,active:Dn}),b({type:"onDragStart",event:Mo}),U(fa.current),H(dt)})},onMove(Ve){w({type:Be.DragMove,coordinates:Ve})},onEnd:Rr(Be.DragEnd),onCancel:Rr(Be.DragCancel)});fa.current=qt;function Rr(Ve){return async function(){const{active:Wt,collisions:ln,over:Mo,scrollAdjustedTranslate:Ao}=le.current;let Nn=null;if(Wt&&Ao){const{cancelDrop:Io}=N.current;Nn={activatorEvent:dt,active:Wt,collisions:ln,delta:Ao,over:Mo},Ve===Be.DragEnd&&typeof Io=="function"&&await Promise.resolve(Io(Nn))&&(Ve=Be.DragCancel)}q.current=null,hn.unstable_batchedUpdates(()=>{w({type:Ve}),_(Bn.Uninitialized),Wd(null),U(null),H(null),fa.current=null;const Io=Ve===Be.DragEnd?"onDragEnd":"onDragCancel";if(Nn){const ma=N.current[Io];ma?.(Nn),b({type:Io,event:Nn})}})}}},[E]),Oy=u.useCallback((Xe,ct)=>(ut,Pn)=>{const bt=ut.nativeEvent,dt=E.get(Pn);if(q.current!==null||!dt||bt.dndKit||bt.defaultPrevented)return;const qt={active:dt};Xe(ut,ct.options,qt)===!0&&(bt.dndKit={capturedBy:ct.sensor},q.current=Pn,Gd(ut,ct))},[E,Gd]),Yd=lE(f,Oy);pE(f),en(()=>{W&&C===Bn.Initializing&&_(Bn.Initialized)},[W,C]),u.useEffect(()=>{const{onDragMove:Xe}=N.current,{active:ct,activatorEvent:ut,collisions:Pn,over:bt}=le.current;if(!ct||!ut)return;const dt={active:ct,activatorEvent:ut,collisions:Pn,delta:{x:kr.x,y:kr.y},over:bt};hn.unstable_batchedUpdates(()=>{Xe?.(dt),b({type:"onDragMove",event:dt})})},[kr.x,kr.y]),u.useEffect(()=>{const{active:Xe,activatorEvent:ct,collisions:ut,droppableContainers:Pn,scrollAdjustedTranslate:bt}=le.current;if(!Xe||q.current==null||!ct||!bt)return;const{onDragOver:dt}=N.current,qt=Pn.get(qd),Rr=qt&&qt.rect.current?{id:qt.id,rect:qt.rect.current,data:qt.data,disabled:qt.disabled}:null,Ve={active:Xe,activatorEvent:ct,collisions:ut,delta:{x:bt.x,y:bt.y},over:Rr};hn.unstable_batchedUpdates(()=>{Wd(Rr),dt?.(Ve),b({type:"onDragOver",event:Ve})})},[qd]),en(()=>{le.current={activatorEvent:K,active:V,activeNode:Se,collisionRect:Sr,collisions:Lo,droppableRects:je,draggableNodes:E,draggingNode:yt,draggingNodeRect:vt,droppableContainers:M,over:In,scrollableAncestors:An,scrollAdjustedTranslate:kr},F.current={initial:vt,translated:Sr}},[V,Se,Lo,Sr,E,yt,vt,je,M,In,An,kr]),nE({...se,delta:T,draggingRect:Sr,pointerCoordinates:Fd,scrollableAncestors:An,scrollableAncestorRects:Qs});const $y=u.useMemo(()=>({active:V,activeNode:Se,activeNodeRect:W,activatorEvent:K,collisions:Lo,containerNodeRect:de,dragOverlay:$e,draggableNodes:E,droppableContainers:M,droppableRects:je,over:In,measureDroppableContainers:ke,scrollableAncestors:An,scrollableAncestorRects:Qs,measuringConfiguration:ye,measuringScheduled:Ze,windowRect:Mn}),[V,Se,W,K,Lo,de,$e,E,M,je,In,ke,An,Qs,ye,Ze,Mn]),zy=u.useMemo(()=>({activatorEvent:K,activators:Yd,active:V,activeNodeRect:W,ariaDescribedById:{draggable:ae},dispatch:w,draggableNodes:E,over:In,measureDroppableContainers:ke}),[K,Yd,V,W,w,ae,E,In,ke]);return Me.createElement(y0.Provider,{value:x},Me.createElement(aa.Provider,{value:zy},Me.createElement(T0.Provider,{value:$y},Me.createElement(L0.Provider,{value:Ny},d)),Me.createElement(SE,{disabled:i?.restoreFocus===!1})),Me.createElement(_R,{...i,hiddenTextDescribedById:ae}));function Fy(){const Xe=ne?.autoScrollEnabled===!1,ct=typeof c=="object"?c.enabled===!1:c===!1,ut=R&&!Xe&&!ct;return typeof c=="object"?{...c,enabled:ut}:{enabled:ut}}}),LE=u.createContext(null),Im="button",ME="Draggable";function AE(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const s=Vs(ME),{activators:l,activatorEvent:i,active:c,activeNodeRect:d,ariaDescribedById:f,draggableNodes:m,over:p}=u.useContext(aa),{role:h=Im,roleDescription:g="draggable",tabIndex:y=0}=o??{},v=c?.id===t,w=u.useContext(v?L0:LE),[b,x]=ui(),[C,_]=ui(),R=hE(l,t),S=ws(n);en(()=>(m.set(t,{id:t,key:s,node:b,activatorNode:C,data:S}),()=>{const T=m.get(t);T&&T.key===s&&m.delete(t)}),[m,t]);const E=u.useMemo(()=>({role:h,tabIndex:y,"aria-disabled":r,"aria-pressed":v&&h===Im?!0:void 0,"aria-roledescription":g,"aria-describedby":f.draggable}),[r,h,y,v,g,f.draggable]);return{active:c,activatorEvent:i,activeNodeRect:d,attributes:E,isDragging:v,listeners:r?void 0:R,node:b,over:p,setNodeRef:x,setActivatorNodeRef:_,transform:w}}function IE(){return u.useContext(T0)}const PE="Droppable",DE={timeout:25};function NE(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const s=Vs(PE),{active:l,dispatch:i,over:c,measureDroppableContainers:d}=u.useContext(aa),f=u.useRef({disabled:n}),m=u.useRef(!1),p=u.useRef(null),h=u.useRef(null),{disabled:g,updateMeasurementsFor:y,timeout:v}={...DE,...o},w=ws(y??r),b=u.useCallback(()=>{if(!m.current){m.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{d(Array.isArray(w.current)?w.current:[w.current]),h.current=null},v)},[v]),x=ia({callback:b,disabled:g||!l}),C=u.useCallback((E,T)=>{x&&(T&&(x.unobserve(T),m.current=!1),E&&x.observe(E))},[x]),[_,R]=ui(C),S=ws(t);return u.useEffect(()=>{!x||!_.current||(x.disconnect(),m.current=!1,x.observe(_.current))},[_,x]),u.useEffect(()=>(i({type:Be.RegisterDroppable,element:{id:r,key:s,disabled:n,node:_,rect:p,data:S}}),()=>i({type:Be.UnregisterDroppable,key:s,id:r})),[r]),u.useEffect(()=>{n!==f.current.disabled&&(i({type:Be.SetDroppableDisabled,id:r,key:s,disabled:n}),f.current.disabled=n)},[r,s,n,i]),{active:l,rect:p,isOver:c?.id===r,node:_,over:c,setNodeRef:R}}function Ed(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function OE(e,t){return e.reduce((n,r,o)=>{const s=t.get(r);return s&&(n[o]=s),n},Array(e.length))}function yl(e){return e!==null&&e>=0}function $E(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function zE(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const M0=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const s=Ed(t,r,n),l=t[o],i=s[o];return!i||!l?null:{x:i.left-l.left,y:i.top-l.top,scaleX:i.width/l.width,scaleY:i.height/l.height}},A0="Sortable",I0=Me.createContext({activeIndex:-1,containerId:A0,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:M0,disabled:{draggable:!1,droppable:!1}});function FE(e){let{children:t,id:n,items:r,strategy:o=M0,disabled:s=!1}=e;const{active:l,dragOverlay:i,droppableRects:c,over:d,measureDroppableContainers:f}=IE(),m=Vs(A0,n),p=i.rect!==null,h=u.useMemo(()=>r.map(R=>typeof R=="object"&&"id"in R?R.id:R),[r]),g=l!=null,y=l?h.indexOf(l.id):-1,v=d?h.indexOf(d.id):-1,w=u.useRef(h),b=!$E(h,w.current),x=v!==-1&&y===-1||b,C=zE(s);en(()=>{b&&g&&f(h)},[b,h,g,f]),u.useEffect(()=>{w.current=h},[h]);const _=u.useMemo(()=>({activeIndex:y,containerId:m,disabled:C,disableTransforms:x,items:h,overIndex:v,useDragOverlay:p,sortedRects:OE(h,c),strategy:o}),[y,m,C.draggable,C.droppable,x,h,v,c,p,o]);return Me.createElement(I0.Provider,{value:_},t)}const BE=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return Ed(n,r,o).indexOf(t)},qE=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:s,newIndex:l,previousItems:i,previousContainerId:c,transition:d}=e;return!d||!r||i!==s&&o===l?!1:n?!0:l!==o&&t===c},WE={duration:200,easing:"ease"},P0="transform",GE=xs.Transition.toString({property:P0,duration:0,easing:"linear"}),YE={roleDescription:"sortable"};function UE(e){let{disabled:t,index:n,node:r,rect:o}=e;const[s,l]=u.useState(null),i=u.useRef(n);return en(()=>{if(!t&&n!==i.current&&r.current){const c=o.current;if(c){const d=To(r.current,{ignoreTransform:!0}),f={x:c.left-d.left,y:c.top-d.top,scaleX:c.width/d.width,scaleY:c.height/d.height};(f.x||f.y)&&l(f)}}n!==i.current&&(i.current=n)},[t,n,r,o]),u.useEffect(()=>{s&&l(null)},[s]),s}function VE(e){let{animateLayoutChanges:t=qE,attributes:n,disabled:r,data:o,getNewIndex:s=BE,id:l,strategy:i,resizeObserverConfig:c,transition:d=WE}=e;const{items:f,containerId:m,activeIndex:p,disabled:h,disableTransforms:g,sortedRects:y,overIndex:v,useDragOverlay:w,strategy:b}=u.useContext(I0),x=HE(r,h),C=f.indexOf(l),_=u.useMemo(()=>({sortable:{containerId:m,index:C,items:f},...o}),[m,o,C,f]),R=u.useMemo(()=>f.slice(f.indexOf(l)),[f,l]),{rect:S,node:E,isOver:T,setNodeRef:M}=NE({id:l,data:_,disabled:x.droppable,resizeObserverConfig:{updateMeasurementsFor:R,...c}}),{active:D,activatorEvent:F,activeNodeRect:V,attributes:q,setNodeRef:ne,listeners:U,isDragging:K,over:H,setActivatorNodeRef:N,transform:ae}=AE({id:l,data:_,attributes:{...YE,...n},disabled:x.draggable}),Ae=uR(M,ne),ye=!!D,je=ye&&!g&&yl(p)&&yl(v),ke=!w&&K,Ze=ke&&je?ae:null,G=je?Ze??(i??b)({rects:y,activeNodeRect:V,activeIndex:p,overIndex:v,index:C}):null,se=yl(p)&&yl(v)?s({id:l,items:f,activeIndex:p,overIndex:v}):C,ce=D?.id,W=u.useRef({activeId:ce,items:f,newIndex:se,containerId:m}),de=f!==W.current.items,le=t({active:D,containerId:m,isDragging:K,isSorting:ye,id:l,index:C,items:f,newIndex:W.current.newIndex,previousItems:W.current.items,previousContainerId:W.current.containerId,transition:d,wasDragging:W.current.activeId!=null}),Oe=UE({disabled:!le,index:C,node:E,rect:S});return u.useEffect(()=>{ye&&W.current.newIndex!==se&&(W.current.newIndex=se),m!==W.current.containerId&&(W.current.containerId=m),f!==W.current.items&&(W.current.items=f)},[ye,se,m,f]),u.useEffect(()=>{if(ce===W.current.activeId)return;if(ce!=null&&W.current.activeId==null){W.current.activeId=ce;return}const yt=setTimeout(()=>{W.current.activeId=ce},50);return()=>clearTimeout(yt)},[ce]),{active:D,activeIndex:p,attributes:q,data:_,rect:S,index:C,newIndex:se,items:f,isOver:T,isSorting:ye,isDragging:K,listeners:U,node:E,overIndex:v,over:H,setNodeRef:Ae,setActivatorNodeRef:N,setDroppableNodeRef:M,setDraggableNodeRef:ne,transform:Oe??G,transition:$e()};function $e(){if(Oe||de&&W.current.newIndex===C)return GE;if(!(ke&&!Cd(F)||!d)&&(ye||le))return xs.Transition.toString({...d,property:P0})}}function HE(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e?.draggable)!=null?n:t.draggable,droppable:(r=e?.droppable)!=null?r:t.droppable}}pe.Down,pe.Right,pe.Up,pe.Left;function Hs({onClick:e}){return a.jsx(xe,{icon:"clear",variant:"flat",size:"compact",tooltip:"Remove",onClick:e})}const xn={main:{display:"mly78zum5",alignItems:"mly6s0dn4",justifyContent:"mly1nhvcw1",gap:"mly1jnr06f",rowGap:null,columnGap:null,cursor:"mly1ypdohk","--mlyvpnzvp":"mly11ogjb6 mly157rht3",$$css:!0},hoverActions:{display:"mly2b4tyj",flexShrink:"mly2lah0s",$$css:!0},hoverOpen:{display:"mly3nfvp2",$$css:!0}},lt={content:{background:"mly1b4wx6v",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,borderRadius:"mly12oqio5",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,borderWidth:"mlymkeg23",borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,boxShadow:"mlyx2l43u",fontFamily:"mly6icuqf",margin:"mlykib98w",marginInline:null,marginInlineStart:null,marginLeft:null,marginInlineEnd:null,marginRight:null,marginBlock:null,marginTop:null,marginBottom:null,maxHeight:"mly3d5gib",display:"mly78zum5",flexDirection:"mlydt5ytf",$$css:!0},item:{alignItems:"mly6s0dn4",color:"mly1q8pm5h mlyqweix6",padding:"mlye8ttls",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,cursor:"mlyt0e3qv",userSelect:"mly87ps6o",display:"mly78zum5",justifyContent:"mly1qughib",borderRadius:"mly18zih8k",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0},clickable:{backgroundColor:"mlyk1j4u7",$$css:!0},label:{display:"mly78zum5",alignItems:"mly6s0dn4",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},tooltip:{$$css:!0}},Pm='#" ',D0=e=>{const t=e.filter(n=>n.value.startsWith(Pm)).map(n=>n.value.slice(Pm.length).trim());if(t.length)return t.join(`
206
- `)},ZE="#NO_UI",jd=e=>!!e.find(n=>n.value.startsWith(ZE));function Dm(e){return e.kind==="join"?3:e.kind==="view"?2:e.kind==="dimension"?1:0}function XE(e){return e.sort((t,n)=>{const r=Dm(t),o=Dm(n);return r===o?t.name.localeCompare(n.name):o-r})}const Nm=["fieldName","fieldPath","fieldValue","fieldType","fieldRange","weight"];function N0(e){return new Set([...Nm,...e.schema.fields.map(n=>n.name)]).size===Nm.length}function O0(e){return e instanceof Z.ASTArrowQueryDefinition?e.view:e.definition}function _r(e){return e?O0(e).getInputSchema():{fields:[]}}function Jn(e){return!jd(e.annotations??[])}function Td(e,t,n=[]){if(!e.find(o=>o.name===t))return t;if(n.length){const o=[...n];for(;o.length;)if(t=`${o.pop()} ${t}`,!e.find(l=>l.name===t))return t}let r=2;for(;e.find(o=>o.name===`${t} ${r}`);)r++;return`${t} ${r}`}function KE({field:e}){if(e.kind==="view")return a.jsx(qn,{label:"view",icon:"view_filled",color:"purple",customStyle:vl.noBackground});if(e.kind==="dimension")return a.jsx(qn,{label:"dimension",icon:Nl(e),color:"cyan",customStyle:vl.noBackground});if(e.kind==="measure")return a.jsx(qn,{label:"measure",icon:Nl(e),color:"green",customStyle:vl.noBackground});if(e.kind==="join")return a.jsx(qn,{label:"join",icon:Nl(e),color:"gray",customStyle:vl.noBackground})}const vl={noBackground:{backgroundColor:"mlyjbqb8w",$$css:!0}};var Ld="Dialog",[$0,YL]=zt(Ld),[QE,Bt]=$0(Ld),z0=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:l=!0}=e,i=u.useRef(null),c=u.useRef(null),[d=!1,f]=Qn({prop:r,defaultProp:o,onChange:s});return a.jsx(QE,{scope:t,triggerRef:i,contentRef:c,contentId:St(),titleId:St(),descriptionId:St(),open:d,onOpenChange:f,onOpenToggle:u.useCallback(()=>f(m=>!m),[f]),modal:l,children:n})};z0.displayName=Ld;var F0="DialogTrigger",JE=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Bt(F0,n),s=oe(t,o.triggerRef);return a.jsx(X.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Id(o.open),...r,ref:s,onClick:O(e.onClick,o.onOpenToggle)})});JE.displayName=F0;var Md="DialogPortal",[ej,B0]=$0(Md,{forceMount:void 0}),q0=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Bt(Md,t);return a.jsx(ej,{scope:t,forceMount:n,children:u.Children.map(r,l=>a.jsx(He,{present:n||s.open,children:a.jsx(uo,{asChild:!0,container:o,children:l})}))})};q0.displayName=Md;var pi="DialogOverlay",W0=u.forwardRef((e,t)=>{const n=B0(pi,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Bt(pi,e.__scopeDialog);return s.modal?a.jsx(He,{present:r||s.open,children:a.jsx(tj,{...o,ref:t})}):null});W0.displayName=pi;var tj=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Bt(pi,n);return a.jsx(As,{as:Hn,allowPinchZoom:!0,shards:[o.contentRef],children:a.jsx(X.div,{"data-state":Id(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),yr="DialogContent",G0=u.forwardRef((e,t)=>{const n=B0(yr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Bt(yr,e.__scopeDialog);return a.jsx(He,{present:r||s.open,children:s.modal?a.jsx(nj,{...o,ref:t}):a.jsx(rj,{...o,ref:t})})});G0.displayName=yr;var nj=u.forwardRef((e,t)=>{const n=Bt(yr,e.__scopeDialog),r=u.useRef(null),o=oe(t,n.contentRef,r);return u.useEffect(()=>{const s=r.current;if(s)return Li(s)},[]),a.jsx(Y0,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:O(e.onCloseAutoFocus,s=>{var l;s.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:O(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,i=l.button===0&&l.ctrlKey===!0;(l.button===2||i)&&s.preventDefault()}),onFocusOutside:O(e.onFocusOutside,s=>s.preventDefault())})}),rj=u.forwardRef((e,t)=>{const n=Bt(yr,e.__scopeDialog),r=u.useRef(!1),o=u.useRef(!1);return a.jsx(Y0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var l,i;(l=e.onCloseAutoFocus)==null||l.call(e,s),s.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var l,i;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=s.target;((i=n.triggerRef.current)==null?void 0:i.contains(c))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Y0=u.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...l}=e,i=Bt(yr,n),c=u.useRef(null),d=oe(t,c);return Ti(),a.jsxs(a.Fragment,{children:[a.jsx(Ms,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:a.jsx(io,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Id(i.open),...l,ref:d,onDismiss:()=>i.onOpenChange(!1)})}),a.jsxs(a.Fragment,{children:[a.jsx(oj,{titleId:i.titleId}),a.jsx(lj,{contentRef:c,descriptionId:i.descriptionId})]})]})}),Ad="DialogTitle",U0=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Bt(Ad,n);return a.jsx(X.h2,{id:o.titleId,...r,ref:t})});U0.displayName=Ad;var V0="DialogDescription",H0=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Bt(V0,n);return a.jsx(X.p,{id:o.descriptionId,...r,ref:t})});H0.displayName=V0;var Z0="DialogClose",X0=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Bt(Z0,n);return a.jsx(X.button,{type:"button",...r,ref:t,onClick:O(e.onClick,()=>o.onOpenChange(!1))})});X0.displayName=Z0;function Id(e){return e?"open":"closed"}var K0="DialogTitleWarning",[UL,Q0]=Ky(K0,{contentName:yr,titleName:Ad,docsSlug:"dialog"}),oj=({titleId:e})=>{const t=Q0(K0),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
207
-
208
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
209
-
210
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},sj="DialogDescriptionWarning",lj=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Q0(sj).contentName}}.`;return u.useEffect(()=>{var o;const s=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},J0=z0,ey=q0,ty=W0,ny=G0,ry=U0,oy=H0,ij=X0;const he={left:{display:"mly78zum5",justifyContent:"mly1lvf691",$$css:!0},right:{display:"mly78zum5",justifyContent:"mly1rfj78v",$$css:!0},heading:{gridColumn:"mly623te4",gridColumnStart:null,gridColumnEnd:null,fontWeight:"mly117nqv4",$$css:!0},label:{whiteSpace:"mlyuxw1ft",$$css:!0},divider:{gridColumn:"mly1a80n4u",gridColumnStart:null,gridColumnEnd:null,borderTop:"mlye536se",borderTopWidth:null,borderTopStyle:null,borderTopColor:null,$$css:!0},editor:{display:"mly78zum5",flexDirection:"mlydt5ytf",gap:"mly167g77z",rowGap:null,columnGap:null,overflow:"mlyb3r6kr",overflowX:null,overflowY:null,$$css:!0},editorGrid:{display:"mlyrvj5dj",gridTemplateColumns:"mly16kridx",gridAutoRows:"mlysd5ean",gap:"mly167g77z",rowGap:null,columnGap:null,overflowY:"mly1odjw0f",$$css:!0},editorRow:{display:"mly78zum5",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},editorCell:{flexGrow:"mly1iyjqo2",$$css:!0},input:{border:"mly27xtdb",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,borderRadius:"mly12oqio5",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,color:"mlyizdh9v",padding:"mly34lxi1",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0},card:{maxWidth:"mly1dc814f",$$css:!0},infoTrigger:{display:"mly3nfvp2",alignItems:"mly1071x5a",justifyContent:"mlyl56j7k",paddingRight:"mlyy13l1i",paddingInlineStart:null,paddingInlineEnd:null,paddingTop:"mly1iorvi4",$$css:!0}};function Pd({children:e,customStyle:t}){return a.jsx("div",{...k.props(aj.container,z.body,t),children:e})}const aj={container:{boxShadow:"mly5n1uv4",backgroundColor:"mly12peec7",borderRadius:"mly4pepcl",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,padding:"mlyc7ga6q",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,display:"mly78zum5",flexDirection:"mlydt5ytf",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0}};function er({info:e}){return a.jsxs(go,{children:[a.jsx(yo,{asChild:!0,children:a.jsx("div",{...k.props(he.infoTrigger,z.body),children:a.jsx(te,{name:"info",color:"disabled"})})}),a.jsx(vo,{children:a.jsx(bo,{side:"right",align:"start",children:a.jsx(Pd,{customStyle:he.card,children:e})})})]})}function sy(e,t){u.useEffect(()=>{const n=Array.isArray(e)?e:[e];let r=!1;const o=(c,d)=>!c.current||d.target instanceof Element&&c.current.contains(d.target),s=c=>n.some(d=>o(d,c)),l=c=>{!r||s(c)||(t(c),r=!1)},i=c=>{s(c)||(r=!0)};return document.addEventListener("mouseup",l),document.addEventListener("mousedown",i),()=>{document.removeEventListener("mouseup",l),document.removeEventListener("mousedown",i)}},[e,t])}const Zs=({values:e,setValues:t,autoFocus:n,placeholder:r,type:o="text",value:s,setValue:l,focusElement:i,color:c=wo,customStyle:d})=>{const[f,m]=u.useState(""),[p,h]=u.useState(!1),g=u.useRef(null),y=u.useRef(null),[v,w]=u.useState(void 0),b=u.useRef([]),x=s||f,C=l||m,_=u.useCallback(T=>{var M;const D=[...e];D.splice(T,1),t(D),v===0?e.length===1?(w(void 0),(M=g.current)==null||M.focus()):w(0):w(T-1)},[v,t,e]),R=u.useMemo(()=>(b.current=new Array(e.length),e.map((T,M)=>a.jsx(cj,{color:c,onClick:()=>{w(M)},onDelete:()=>_(M),forwardRef:D=>{b.current[M]=D},children:T},T))),[c,_,e]);u.useEffect(()=>{var T;v!==void 0&&((T=b.current[v])==null||T.focus())},[R,v]);const S=T=>{var M,D;T.key==="Backspace"?v!==void 0&&_(v):T.key==="ArrowRight"?v===e.length-1?(w(void 0),(M=g.current)==null||M.focus()):v!==void 0&&w(v+1):T.key==="ArrowLeft"?v!==void 0&&v>0&&w(v-1):(D=g.current)==null||D.focus()},E=()=>{x.length>0&&!e.includes(x)&&(t([...e,x]),C(""))};return sy(i?[y,i]:y,()=>{h(!1),E()}),a.jsx("div",{...k.props(z.body,Hc.main),children:a.jsxs("div",{...k.props(Hc.content,d),onKeyUp:S,onClick:()=>{var T;return(T=g.current)==null?void 0:T.focus()},ref:y,children:[R,a.jsx("input",{className:"mly1gs6z28 mly1a2a7pz mly6icuqf mlyif65rj mlyayvuls mly83z2og mly1onzeue mly195ery5 mly1iyjqo2",ref:g,type:o,placeholder:e.length===0?r:"",value:x,size:1,onChange:T=>{C(T.target.value)},onKeyDown:T=>{T.key==="Enter"&&x!==""&&(E(),T.stopPropagation(),T.preventDefault())},onKeyUp:T=>{var M,D,F,V;T.key==="Backspace"?x===""&&e.length>0&&(E(),(M=g.current)==null||M.blur(),w(e.length-1)):T.key==="ArrowLeft"&&(((D=g.current)==null?void 0:D.selectionStart)===0||((F=g.current)==null?void 0:F.selectionStart)===null)&&(E(),(V=g.current)==null||V.blur(),w(e.length-1),T.preventDefault(),T.stopPropagation())},onFocus:()=>{h(!0),w(void 0)},autoFocus:n})]})})},cj=({children:e,color:t=wo,forwardRef:n,onClick:r,onDelete:o})=>a.jsxs("div",{onClick:r,tabIndex:0,ref:n,...k.props(Hc.pill,uj[t]),children:[e,a.jsx("div",{title:"Remove",className:"mly3nfvp2",children:a.jsx(Rp,{onClick:()=>o(),className:"mly6jxa94 mly1v9usgg"})})]}),Hc={main:{borderRadius:"mly12oqio5",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,border:"mlyvckdp7",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,padding:"mlybsehbd",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,display:"mlyrvj5dj",minHeight:"mly2lwn1j",overflow:"mlyysyzu8",overflowX:null,overflowY:null,$$css:!0},content:{outline:"mly1a2a7pz",outlineColor:null,outlineOffset:null,outlineStyle:null,outlineWidth:null,display:"mly78zum5",flexWrap:"mly1a02dak",gap:"mly1ed6fcf",rowGap:null,columnGap:null,borderColor:"mly1akygb0 mlyetl2wx",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:!0},pill:{backgroundColor:"mlyy9rfsq",borderRadius:"mly1sxf85j",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,color:"mly1xre2ib",display:"mly78zum5",alignItems:"mly6s0dn4",gap:"mly1nejdyq",rowGap:null,columnGap:null,padding:"mly1e41zw8",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,textTransform:"mly6mezaz",cursor:"mly1ypdohk",height:"mly1qx5ct2",whiteSpace:"mlyuxw1ft",$$css:!0}},uj={default:{"--mlyvygx4q":"mly1izbou4","--mly13n7235":"mly8bgh0r",$$css:!0},purple:{"--mlyvygx4q":"mly1f8soc4","--mly13n7235":"mly1r5zvhd",$$css:!0},green:{"--mlyvygx4q":"mlyf8wvcd","--mly13n7235":"mly1u6t2w6",$$css:!0},cyan:{"--mlyvygx4q":"mlyrtwgpv","--mly13n7235":"mlys5r2en",$$css:!0}};function dj({view:e,name:t,path:n,current:r,option:o,updateCurrent:s}){return a.jsxs(a.Fragment,{children:[a.jsx("div",{...k.props(he.label,he.left),children:a.jsxs("label",{children:[o.title??t,":"]})}),a.jsx("div",{}),o.description?a.jsx(er,{info:o.description}):a.jsx("div",{}),o.oneOf.map((l,i)=>{switch(l.type){case"string":return a.jsx(fj,{view:e,name:t,path:n,updateCurrent:s,current:r,option:l},i);case"number":return a.jsx(mj,{view:e,name:t,path:n,updateCurrent:s,current:r,option:l},i);case"array":return a.jsx(pj,{view:e,name:t,path:n,updateCurrent:s,current:r,option:l},i)}return null})]})}function fj({path:e,current:t,updateCurrent:n,option:r}){const o=typeof t=="string",[s,l]=u.useState(o?t:"");return r.enum?a.jsxs(a.Fragment,{children:[a.jsx("div",{...k.props(he.left),children:a.jsx("input",{type:"radio",checked:o&&r.enum.includes(t),onChange:({target:{checked:i}})=>{i&&n(e,s)}})}),r.enum.length>1?a.jsx(sn,{value:s,options:r.enum.map(i=>({label:i,value:i})),onChange:i=>{l(i),n(e,i)}}):a.jsx("div",{children:r.enum[0]}),a.jsx("div",{})]}):a.jsxs(a.Fragment,{children:[a.jsx("div",{...k.props(he.left),children:a.jsx("input",{type:"radio",checked:o,onChange:({target:{checked:i}})=>{i&&n(e,s)}})}),a.jsx("input",{value:s,onChange:({target:{value:i}})=>{l(i),n(e,i)}}),a.jsx("div",{})]})}function mj({path:e,current:t,updateCurrent:n,option:r}){const o=typeof t=="number",[s,l]=u.useState(o?t:r.minimum??0);return a.jsxs(a.Fragment,{children:[a.jsx("div",{...k.props(he.left),children:a.jsx("input",{type:"radio",checked:o,onChange:({target:{checked:i}})=>{i&&n(e,s)}})}),a.jsx("input",{type:"number",min:r.minimum,max:r.maximum,value:s,onChange:({target:{valueAsNumber:i}})=>{l(s),n(e,i)},...k.props(he.input)}),a.jsx("div",{})]})}function pj({path:e,current:t,updateCurrent:n}){const r=Array.isArray(t),[o,s]=u.useState(r?t:[]);return a.jsxs(a.Fragment,{children:[a.jsx("div",{...k.props(he.left),children:a.jsx("input",{type:"radio",checked:r,onChange:({target:{checked:l}})=>{l&&n(e,o)}})}),a.jsx(Zs,{values:o,setValues:l=>{s(l),n(e,l)}}),a.jsx("div",{})]})}function hj({name:e,path:t,current:n,option:r,updateCurrent:o}){return a.jsxs(a.Fragment,{children:[a.jsx("div",{...k.props(he.left,he.label),children:a.jsxs("label",{children:[r.title??e,":"]})}),a.jsx(Zs,{values:n,setValues:s=>{o(t,s)}}),r.description?a.jsx(er,{info:r.description}):a.jsx("div",{})]})}function gj({name:e,path:t,current:n,option:r,updateCurrent:o}){return a.jsxs(a.Fragment,{children:[a.jsx("div",{...k.props(he.left,he.label),children:a.jsxs("label",{children:[r.title??e,":"]})}),a.jsx("input",{value:n,type:"number",min:r.minimum,max:r.maximum,onChange:({target:{valueAsNumber:s}})=>{o(t,s)},...k.props(he.input)},e),r.description?a.jsx(er,{info:r.description}):a.jsx("div",{})]})}function yj({name:e,path:t,current:n,option:r,updateCurrent:o}){return r.enum?a.jsxs(a.Fragment,{children:[u.createElement("div",{...k.props(he.left,he.label),key:`${e}-label`},a.jsxs("label",{children:[r.title??e,":"]})),a.jsx(sn,{value:n,options:r.enum.map(s=>({label:s,value:s})),onChange:s=>{o(t,s)}},e),r.description?a.jsx(er,{info:r.description}):a.jsx("div",{})]}):a.jsxs(a.Fragment,{children:[u.createElement("div",{...k.props(he.left,he.label),key:`${e}-label`},a.jsxs("label",{children:[r.title??e,":"]})),a.jsx("input",{value:n,onChange:({target:{value:s}})=>{o(t,s)}},e),r.description?a.jsx(er,{info:r.description}):a.jsx("div",{})]})}function vj({name:e,path:t,current:n,option:r,updateCurrent:o}){return a.jsxs(a.Fragment,{children:[a.jsx("div",{...k.props(he.left),children:a.jsxs("label",{...k.props(he.label),htmlFor:`${e}-checkbox`,children:[r.title??e,":"]},`${e}-label`)}),a.jsx("div",{...k.props(he.right),children:a.jsx("input",{type:"checkbox",checked:n,onChange:({target:{checked:s}})=>{o(t,s)},id:`${e}-checkbox`})}),r.description?a.jsx(er,{info:r.description}):a.jsx("div",{})]})}function bj({view:e,name:t,path:n,current:r,option:o,updateCurrent:s}){const[l,i]=u.useState(""),c=u.useRef(null),f=(r??[]).map(y=>{try{return JSON.parse(y)[0]}catch(v){return console.warn("Failed to parse field",y,v),""}}),m=(y,v)=>{const w=v.map(b=>JSON.stringify([b]));s(y,w)},p=l.toLocaleLowerCase(),g=e.definition.getOutputSchema().fields.filter(y=>y.name.toLocaleLowerCase().includes(p)).filter(y=>!f.includes(y.name)).filter(y=>{var v;return!("fieldTypes"in o.items)||((v=o.items.fieldTypes)==null?void 0:v.includes(y.type.kind))});return a.jsxs(a.Fragment,{children:[a.jsx("div",{...k.props(he.left,he.label),children:a.jsxs("label",{children:[o.title??t,":"]})}),a.jsxs("div",{style:{minHeight:0,display:"grid",gap:4},children:[a.jsx(Zs,{values:f,setValues:y=>{m(n,y)},value:l,setValue:i,focusElement:c}),a.jsx(wj,{ref:c,fields:g,search:l,onClick:y=>{m(n,[...f,y])}})]}),o.description?a.jsx(er,{info:o.description}):a.jsx("div",{})]})}function wj({ref:e,fields:t,search:n,onClick:r}){if(t.length)return a.jsx("div",{ref:e,className:"mly78zum5 mly1a02dak mly1jnr06f",children:t.map(o=>a.jsx(gr,{field:o,onClick:()=>r(o.name),tooltip:a.jsx(_s,{field:o,path:[]}),tooltipProps:{side:"right",align:"start",sideOffset:4,alignOffset:24}},o.name))});if(n)return a.jsx("div",{"data-disabled":"true",children:"No matching fields"})}function ly({view:e,name:t,path:n,current:r,option:o,updateCurrent:s}){const[l,i]=u.useState(n.length===0);return a.jsxs(a.Fragment,{children:[t?a.jsxs(a.Fragment,{children:[a.jsxs("div",{...k.props(he.label,he.heading),children:[a.jsx("label",{children:o.title??t}),o.description?a.jsx(er,{info:o.description}):null]}),a.jsx(xe,{variant:"flat",size:"compact",onClick:()=>i(!l),icon:l?"chevronDown":"chevronRight",tooltip:l?"Collapse":"Expand"})]}):null,l?Object.entries(o.properties).map(([c,d])=>{const f=[...n,t,c].join(".");if(d.type==="boolean")return a.jsx(vj,{view:e,name:c,path:[...n,c],option:d,current:r[c],updateCurrent:s},f);if(d.type==="string")return a.jsx(yj,{view:e,name:c,path:[...n,c],option:d,current:r[c],updateCurrent:s},f);if(d.type==="number")return a.jsx(gj,{view:e,name:c,path:[...n,c],option:d,current:r[c],updateCurrent:s},f);if(d.type==="object")return a.jsx(ly,{view:e,name:c,path:[...n,c],option:d,current:r[c]??{},updateCurrent:s},f);if(d.type==="array"){if(d.items.type==="string")return"subtype"in d.items&&d.items.subtype==="field"?a.jsx(bj,{view:e,name:c,path:[...n,c],option:d,current:r[c]??[],updateCurrent:s},f):a.jsx(hj,{view:e,name:c,path:[...n,c],option:d,current:r[c]??[],updateCurrent:s},f);console.warn("Unsupported array type",d.items.type)}else if(d.type==="oneOf")return a.jsx(dj,{view:e,name:c,path:[...n,c],option:d,current:r[c],updateCurrent:s},f);return null}):null,a.jsx("div",{...k.props(he.divider)})]})}function xj({rootQuery:e,view:t,plugin:n,setOpen:r}){const{setQuery:o}=u.useContext(ge),[s,l]=u.useState(n.getSettings());console.info("RendererEditor current settings:",s);const i=n.getSchema(),c=(d,f)=>{const m={...s};let p=m;for(let h=0;h<d.length-1;h++)d[h]in p||(p[d[h]]={}),p=p[d[h]];p[d[d.length-1]]=f,l(m)};return a.jsxs("div",{...k.props(he.editor),children:[a.jsx("div",{...k.props(he.editorGrid),children:a.jsx(ly,{view:t,name:"",path:[],option:i,current:s,updateCurrent:c})}),a.jsxs("div",{...k.props(he.editorRow),children:[a.jsx(xe,{label:"Cancel",onClick:()=>{r(!1)},customStyle:he.editorCell}),a.jsx(xe,{variant:"primary",label:"Apply",onClick:()=>{const f=n.settingsToTag(s).toString(),m=t.getOrAddAnnotations(),p=m.items.find(h=>h.value.startsWith(qc+"viz"));p&&m.remove(p),t.getOrAddAnnotations().add(new Z.ASTAnnotation({value:f})),o?.(e.build()),r(!1)},customStyle:he.editorCell})]})]})}const Qe={displayNone:{display:"mly1s85apg",$$css:!0},overlay:{background:"mly5uxqc1",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,position:"mlyixxii4",top:"mly13vifvy",left:"mlyu96u03",right:"mly3m8u43",insetInlineStart:null,insetInlineEnd:null,bottom:"mly1ey2m1c",display:"mlyrvj5dj",placeItems:"mly1ku5rj1",alignItems:null,justifyItems:null,zIndex:"mly11uqc5h",$$css:!0},title:{fontSize:"mly1j61zf2",margin:"mly1ghz6dp",marginInline:null,marginInlineStart:null,marginLeft:null,marginInlineEnd:null,marginRight:null,marginBlock:null,marginTop:null,marginBottom:null,display:"mly78zum5",justifyContent:"mly1qughib",alignItems:"mly6s0dn4",borderBottom:"mlyllpv0l",borderBottomWidth:null,borderBottomStyle:null,borderBottomColor:null,lineHeight:"mly1rl49lg",$$css:!0},close:{border:"mly1gs6z28",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,background:"mly1md70p1 mly14hn1a8 mlywghvya",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,borderRadius:"mly12oqio5",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0},content:{display:"mly78zum5",flexDirection:"mlydt5ytf",boxShadow:"mly5n1uv4",backgroundColor:"mly12peec7",borderRadius:"mlyur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,padding:"mlye8ttls",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,minWidth:"mlylm99nl",maxWidth:"mly1jkqq1h",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},editor:{width:"mlyqyf9gi",display:"mly78zum5",flexDirection:"mlydt5ytf",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},editorRow:{display:"mly78zum5",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},editorCell:{flexGrow:"mly1iyjqo2",$$css:!0},input:{border:"mly2yh2zd",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,color:"mlyizdh9v",padding:"mly9cpjcd",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,borderRadius:"mly1sxf85j",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0}};function Cj({rootQuery:e,plugin:t,view:n,customStyle:r,open:o,setOpen:s}){return!t||!o?null:a.jsx(J0,{onOpenChange:l=>s(l),open:o,children:a.jsx(ey,{children:a.jsx(ty,{...k.props(Qe.overlay),children:a.jsxs(ny,{...k.props(z.body,Qe.content,_j.content,r),children:[a.jsxs(ry,{...k.props(Qe.title),children:["Visualization Settings",a.jsx(ij,{...k.props(Qe.close),children:a.jsx(te,{name:"clear"})})]}),a.jsx(oy,{...k.props(Qe.displayNone),children:"Edit visualization parameters"}),a.jsx(xj,{rootQuery:e,view:n,plugin:t,setOpen:s})]})})})})}const _j={content:{maxWidth:"mly14zcgw3",width:"mly14rvwrp",maxHeight:"mly1l4ul0t",$$css:!0}};function iy({rootQuery:e,view:t}){const{setQuery:n}=u.useContext(ge),r=u.useMemo(()=>new ec.MalloyRenderer,[]),[o,s]=u.useState("table"),[l,i]=u.useState(),[c,d]=u.useState(""),[f,m]=u.useState(!1),p=t.getTag().toString();u.useEffect(()=>{var v;d("");const w=r.createViz({onError:R=>{console.error("Malloy render error",R),d(R.message)}});w.setResult({schema:t.definition.getOutputSchema(),annotations:p.split(`
211
- `).map(R=>({value:R})),connection_name:""});const b=w.getMetadata();if(b){const R=w.getActivePlugin(b.getRootField().key);if(R){if(ec.isCoreVizPluginInstance(R)){s(R.name),i(R);return}R.name==="error"&&d(R.getMetadata().message)}}const x=t.getTag(),_=((v=t.getTag(qc).tag("viz"))==null?void 0:v.text())??rR(vd(x)??"table");s(_),i(void 0)},[r,t,p]);const h=v=>{t.setTagProperty(["viz"],v,qc),n?.(e.build())},g=JS.map(v=>({icon:a.jsx(te,{name:`viz_${v}`}),label:ay(v),value:v,onClick:()=>h(v)})),y=[a.jsx(Ni,{customStyle:bl.first,icon:`viz_${o}`,value:o,items:g,onChange:v=>h(v)},"first")];return l&&y.push(a.jsx(De,{icon:"gear",onClick:()=>m(!0),customStyle:bl.trigger,tooltip:"Edit Settings..."},"gear")),c&&y.push(a.jsx(De,{icon:"warning",tooltip:c,customStyle:bl.trigger})),a.jsxs(a.Fragment,{children:[a.jsx(Ls,{customStyle:bl.group,children:y}),a.jsx(Cj,{open:f,setOpen:m,rootQuery:e,plugin:l,view:t})]})}const bl={trigger:{height:"mly1ktj5wk",$$css:!0},group:{width:"mlyh8yej3",gridTemplateColumns:"mly52fmzj",$$css:!0},first:{justifyContent:"mlylqzeqv",$$css:!0}};function ay(e){return e.split("_").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")}function kj({annotations:e}){const{tag:t}=Yy.Tag.fromTagLines(e.map(r=>r.value)),n=vd(t)??"table";return a.jsx(De,{label:ay(n),icon:`viz_${n}`})}function Dd({viewInfo:e,isCompact:t,style:n}){const r=e.schema.fields.filter(o=>o.kind==="dimension");return a.jsx("div",{...k.props(Zc.attributeTableContainer,n),children:a.jsx("table",{className:"mly1mwwwfo mly9f619 mlyh8yej3 mly5yr21d",children:a.jsxs("tbody",{children:[a.jsx(Om,{attribute:"chart type",children:a.jsx("div",{className:"mly1rg5ohu",children:a.jsx(kj,{annotations:e.annotations||[]})})}),a.jsx(Om,{attribute:"output",children:r.map(o=>a.jsx("span",{children:a.jsx(gr,{field:o,size:t?"compact":"default"})},`${o.kind}::${o.name}`))})]})})})}function Om({attribute:e,children:t}){return a.jsxs("tr",{className:"mlydpxx8g",children:[a.jsx("td",{...k.props(Zc.attributeTableKeyCell,z.supporting),children:a.jsx("div",{...k.props(Zc.attributeTableKeyCellContent,z.supporting),children:e})}),a.jsx("td",{className:"mly78zum5 mly1a02dak mly195vfkc",children:t})]})}const Zc={attributeTableContainer:{padding:"mlye8ttls",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,gap:"mly167g77z",rowGap:null,columnGap:null,borderRadius:"mly1q4ynmn",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,backgroundColor:"mly12nb83b",boxSizing:"mly9f619",width:"mlyh8yej3",height:"mly1m3v4wt",overflow:"mlyysyzu8",overflowX:null,overflowY:null,$$css:!0},attributeTableKeyCell:{whiteSpace:"mlyuxw1ft",width:"mly1f1nlb9",verticalAlign:"mly16dsc37",$$css:!0},attributeTableKeyCellContent:{height:"mly1fgtraw",display:"mly78zum5",alignItems:"mly6s0dn4",$$css:!0}};function Sj({field:e,path:t}){const{topValues:n}=u.useContext(ge),r=[...t,e.name].join("."),o=n?.find(s=>s.fieldName===r);return o?a.jsxs("div",{className:"mly12nb83b mly1iorvi4 mlyjkvuk6 mly163pfp mlyy13l1i mly12oqio5",children:[a.jsx("div",{className:"mly117nqv4",children:"Top Values"}),o.values.slice(0,6).map(s=>a.jsxs("div",{className:"mly78zum5 mly1qughib mly883omv mly6s0dn4",children:[a.jsx("div",{children:a.jsx("div",{className:"mlylyipyv mly6mezaz mlyb3r6kr mlyuxw1ft",children:s.fieldValue===null?a.jsx("span",{children:"∅"}):s.fieldValue})}),a.jsx("div",{className:"mly78zum5 mly883omv mly13a6bvl mly6s0dn4 mlyb3r6kr mly2lah0s mly9dwj6z",children:Rj(s.weight)})]},s.fieldValue))]}):null}function Rj(e){return e===null?"∅":e<1e3?e.toLocaleString():e<1e4?(e/1e3).toFixed(1)+"K":e<1e6?Math.floor(e/1e3).toLocaleString()+"K":e<1e7?(e/1e6).toFixed(1)+"M":Math.floor(e/1e3).toLocaleString()+"M"}function $m({children:e,ref:t,customStyle:n,isTooltipContent:r=!1,...o}){const s=e.split(/((?:http|https):\/\/\S*)\b/),l=s.length>1,i=s.map((c,d)=>c.match(/^(http|https):/)?a.jsx("a",{href:c,...{0:{},1:{className:"mly198oq2i"}}[!!r<<0],children:c},d):c);return a.jsx("div",{ref:t,...k.props(l&&zm.preWrap,l&&zm.breakWord,n),...o,children:i})}const zm={preWrap:{whiteSpace:"mly126k92a",$$css:!0},breakWord:{wordWrap:"mly1vvkbs",$$css:!0}};function cy({text:e,containerRef:t,align:n="center",side:r="top"}){const o=u.useRef(null),[s,l]=u.useState(!1),[i,c]=u.useState(!1),d=()=>(o.current&&o.current.scrollHeight>o.current.clientHeight)??!1;return a.jsxs(go,{open:(s||i)&&d(),children:[a.jsx(yo,{asChild:!0,children:a.jsx($m,{ref:o,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),onPointerMove:f=>f.preventDefault(),customStyle:[z.supporting,Ej.text],children:e})}),a.jsx(vo,{container:t?.current,children:a.jsx(bo,{side:r,align:n,children:a.jsx($m,{onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),isTooltipContent:!0,customStyle:[z.body,Sn.default],children:e})})})]})}const Ej={text:{overflow:"mlyb3r6kr",overflowX:null,overflowY:null,display:"mly104kibb","-webkit-line-clamp":"mly1gzmk7r","-webkit-box-orient":"mly1ua5tub",$$css:!0}};function _s({field:e,path:t}){const{source:n}=u.useContext(ge),r=u.useRef(null),o=[n?.name??"",...t].join(" > "),l=D0(e.annotations??[])??"";let i=null;return e.kind==="view"?i=a.jsx(Dd,{viewInfo:e,isCompact:!0,style:wl.viewAttributeTable}):e.kind==="dimension"&&(i=a.jsx(Sj,{field:e,path:t})),a.jsxs(Pd,{customStyle:wl.container,children:[a.jsxs("div",{ref:r,children:[a.jsx("div",{className:"mly12nagc",children:a.jsx(KE,{field:e})}),a.jsx("div",{...k.props(z.supporting,wl.path),children:o}),a.jsx("div",{...k.props(z.emphasized,wl.title),children:e.name}),l&&a.jsx(cy,{text:l,containerRef:r})]}),i&&a.jsx("div",{children:i})]})}const wl={container:{width:"mlybl57os",maxHeight:"mlyq3t0pi",$$css:!0},path:{color:"mly9dwj6z",$$css:!0},viewAttributeTable:{height:"mlyn866dk",$$css:!0},title:{overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",$$css:!0}},_e={filterDialog:{display:"mly78zum5",flexDirection:"mlydt5ytf",padding:"mlye8ttls",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,minWidth:"mlyytlacd",maxWidth:"mly1pdpmub",gap:"mly167g77z",rowGap:null,columnGap:null,minHeight:"mly2lwn1j",maxHeight:"mly3d5gib",$$css:!0},filterDialogHeader:{fontWeight:"mly117nqv4",$$css:!0},filterTypeDropdown:{width:"mlyh8yej3",$$css:!0},buttonGroup:{display:"mly78zum5",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},editor:{display:"mly78zum5",flexDirection:"mlydt5ytf",gap:"mly167g77z",rowGap:null,columnGap:null,minHeight:"mly2lwn1j",$$css:!0},editorRow:{display:"mlyrvj5dj",gridAutoFlow:"mly1mt1orb",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},editorCell:{flexGrow:"mly1iyjqo2",$$css:!0},input:{border:"mly2yh2zd",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,color:"mlyizdh9v",padding:"mly9cpjcd",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,borderRadius:"mly1sxf85j",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,minWidth:"mlygc0pbm",$$css:!0}};function jj(e){return e.operator==="null"&&e.not?"-null":e.operator}function Tj({filter:e,setFilter:t}){const n=jj(e),r=o=>{t(o==="-null"?{operator:"null",not:!0}:{operator:o})};return a.jsx("div",{...k.props(_e.editor),children:a.jsx(sn,{value:n,onChange:r,options:[{value:"true",label:"is true"},{value:"false",label:"is false"},{value:"null",label:"is null"},{value:"-null",label:"is not null"},{value:"false_or_null",label:"is false or null"}],customStyle:_e.filterTypeDropdown})})}function Lj(e,t){const{topValues:n}=u.useContext(ge);if(n&&e){let r=n;if(t){const o=n.find(s=>s.fieldName===t);o?r=[o]:r=[]}return e=e.toLowerCase(),{searchResults:r.reduce((o,s)=>(s.values.filter(l=>{var i;return((i=l.fieldValue)==null?void 0:i.toLowerCase().includes(e))??!1}).forEach(l=>{o.push({fieldValue:l.fieldValue,fieldName:s.fieldName,fieldType:"string",weight:l.weight})}),o),[]),isLoading:!1}}return{searchResults:void 0,isLoading:!1}}function uy({onClick:e,search:t,filter:n,fieldPath:r,ref:o,customStyle:s,showPath:l=!0,hideNoMatchMessage:i=!1}){const{searchResults:c}=Lj(t,r),d=u.useMemo(()=>c&&c.filter(f=>f.fieldType==="string"&&f.fieldValue!==null).filter(f=>n?n(f.fieldValue??""):!0).sort((f,m)=>m.weight-f.weight).slice(0,100),[c,n]);return a.jsx("div",{ref:o,...k.props(s),children:d?.length?d.map(f=>a.jsxs("div",{role:"menuitem",tabIndex:-1,...k.props(lt.item,dy.valueItem),onClick:()=>e(f),children:[a.jsx(Mj,{value:f}),l?a.jsx("div",{className:"mly1jwwhvr",children:f.fieldName}):null]},f.fieldName+":"+f.fieldValue)):t&&!i?a.jsx("div",{...k.props(lt.item),"data-disabled":"true",children:"No matching values"}):null})}function Mj({value:e}){return a.jsx(De,{label:e.fieldValue??"∅",icon:"filter",color:"purple",customStyle:dy.token})}const dy={valueItem:{height:"mly1qx5ct2",paddingTop:"mly1y1aw1k",paddingBottom:"mlywib8y2",display:"mly78zum5",justifyContent:"mly1qughib",cursor:"mly1ypdohk",$$css:!0},token:{cursor:"mly1ypdohk",$$css:!0}},rs={is_equal_to:{operator:"="},starts_with:{operator:"starts"},ends_with:{operator:"ends"},contains:{operator:"contains"},matches:{operator:"~"},is_blank:{operator:"empty"},is_null:{operator:"null"},is_not_equal_to:{operator:"=",not:!0},does_not_start_with:{operator:"starts",not:!0},does_not_end_with:{operator:"ends",not:!0},does_not_contain:{operator:"contains",not:!0},does_not_match:{operator:"~",not:!0},is_not_blank:{operator:"empty",not:!0},is_not_null:{operator:"null",not:!0}};function Aj(e){for(const t in rs){const n=t,r=rs[n],o="not"in e?e.not:!1,s="not"in r?r.not:!1;if(r.operator===e.operator&&s===o)return n}throw new Error(`Unhandled string filter type ${e.operator}`)}const Ij=({filter:e,setFilter:t,field:n,path:r})=>{e??(e={operator:"=",values:[]});const[o,s]=u.useState(""),l=u.useRef(null),i=Aj(e),[c,d]=u.useState(e),f=p=>{m(Nj(c,p))},m=p=>{d(p),t(p)};return a.jsxs("div",{...k.props(_e.editor),children:[a.jsx(sn,{value:i,onChange:f,options:[{value:"is_equal_to",label:"is"},{value:"starts_with",label:"starts with"},{value:"ends_with",label:"ends with"},{value:"contains",label:"contains"},{value:"is_blank",label:"is blank"},{value:"is_null",label:"is null"},{value:"matches",label:"matches"},{value:"is_not_equal_to",label:"is not"},{value:"does_not_start_with",label:"does not start with"},{value:"does_not_end_with",label:"does not end with"},{value:"does_not_contain",label:"does not contain"},{value:"is_not_blank",label:"is not blank"},{value:"is_not_null",label:"is not null"},{value:"does_not_match",label:"does not match"}],customStyle:_e.filterTypeDropdown},"type"),c.operator==="="||c.operator==="starts"||c.operator==="ends"||c.operator==="contains"?a.jsxs(a.Fragment,{children:[a.jsx(Fm,{values:c.values,setValues:p=>m({...c,values:p}),searchValue:o,setSearchValue:s,focusElement:l},"editor"),a.jsx("div",{style:{minHeight:0,display:"grid"},children:a.jsx(uy,{ref:l,search:o,fieldPath:[...r,n.name].join("."),onClick:p=>{p.fieldValue&&(m({...c,values:[...c.values,p.fieldValue]}),s(""))},customStyle:Oj.valueList,showPath:!1,filter:p=>!c.values.includes(p),hideNoMatchMessage:!0})})]}):c.operator==="~"?a.jsx(Fm,{values:c.escaped_values,setValues:p=>m({...c,escaped_values:p}),escape:!0,searchValue:o,setSearchValue:s},"editor"):null]})};function Fm({color:e,values:t,setValues:n,searchValue:r,setSearchValue:o,focusElement:s}){return a.jsx(Zs,{color:e,values:t,setValues:n,value:r,setValue:o,focusElement:s})}function Pj(e){return e.replace(/(["%_^])/g,"^$1")}function Dj(e){return e.replace(/\^(["%_^])/g,"$1")}function Nj(e,t){const n="values"in e?e.values:"escaped_values"in e?e.escaped_values.map(Dj):[];switch(t){case"is_equal_to":case"is_not_equal_to":case"starts_with":case"does_not_start_with":case"contains":case"does_not_contain":case"ends_with":case"does_not_end_with":return{...rs[t],values:n};case"is_blank":case"is_not_blank":case"is_null":case"is_not_null":return{...rs[t]};case"matches":case"does_not_match":return{...rs[t],escaped_values:n.map(Pj)}}}const Oj={valueList:{maxHeight:"mly3d5gib",width:"mly1hfn5x7",overflow:"mlyysyzu8",overflowX:null,overflowY:null,$$css:!0}},Bm=e=>e==="range",Br={is_equal_to:{operator:"="},is_not_equal_to:{operator:"=",not:!0},is_greater_than:{operator:">"},is_less_than:{operator:"<"},is_greater_than_or_equal_to:{operator:">="},is_less_than_or_equal_to:{operator:"<="},is_between:{operator:"range",startOperator:">=",endOperator:"<="},is_null:{operator:"null"},is_not_null:{operator:"null",not:!0}};function $j(e){for(const t in Br){const n=t,r=Br[n],o="not"in e?e.not:!1,s="not"in r?r.not:!1;if(r.operator===e.operator&&s===o)return n}throw new Error(`Unhandled number filter type ${e.operator}`)}const zj=({filter:e,setFilter:t})=>{e??(e={operator:"=",values:[]});const[n,r]=u.useState(Bm(e.operator)?["0","0"]:["0"]),[o,s]=u.useState(""),l=d=>{const f=e,m=qj(e,d);m.operator!=="null"&&(!f.values||f.values.length===0)&&(m.values=["0"]),t(m)},i=$j(e);u.useEffect(()=>{if(s(""),Bm(e.operator)){const d=e;r([d.startValue,d.endValue])}else{const d=e;if(d.values){let f=d.values;(!f||f.length===0)&&(f=["0"]),r(f)}else r(["0"])}},[e]);const c=d=>{r(d),d.some(m=>isNaN(parseFloat(m)))?s("Every value must be numeric."):d.length===0?s("Requires at least one numeric value."):(s(""),e.operator==="range"?t({...e,startOperator:">=",startValue:d[0],endOperator:"<=",endValue:d[1]}):t({...e,values:d}))};return a.jsxs(a.Fragment,{children:[a.jsx(sn,{value:i,onChange:l,options:[{value:"is_equal_to",label:"is"},{value:"is_not_equal_to",label:"is not"},{value:"is_greater_than",label:"is greater than"},{value:"is_less_than",label:"is less than"},{value:"is_greater_than_or_equal_to",label:"is greater than or equal to"},{value:"is_less_than_or_equal_to",label:"is less than or equal to"},{value:"is_between",label:"between"},{value:"is_null",label:"is null"},{value:"is_not_null",label:"is not null"}]}),o?a.jsx(ji,{errorMessage:o}):null,Fj(e,n,c)]})};function Fj(e,t,n){switch(e.operator){case"!=":case"=":return a.jsx(Bj,{values:t.map(String),setValues:r=>n(r),type:"number"});case">":case"<":case">=":case"<=":return a.jsx(Xa,{value:t[0],setValue:r=>n([r]),type:"number"});case"range":return a.jsxs("div",{className:"mlyrvj5dj mly15396mt mly167g77z mlypqajaz",children:[a.jsx(Xa,{value:t[0],setValue:r=>n([r,t[1]]),type:"number"}),a.jsx("span",{children:"to"}),a.jsx(Xa,{value:t[1],setValue:r=>n([t[0],r]),type:"number"})]})}return null}function Xa({value:e,setValue:t}){return a.jsx("input",{type:"number",value:e,onChange:n=>{t(n.target.value)},className:"mly27xtdb mly12oqio5 mlyizdh9v mly34lxi1"})}function Bj({values:e,setValues:t}){return a.jsx(Zs,{values:e,setValues:t,type:"number"})}function qj(e,t){const n="values"in e?e.values:[];switch(t){case"is_equal_to":case"is_not_equal_to":return{...Br[t],values:n};case"is_greater_than":case"is_less_than":case"is_greater_than_or_equal_to":case"is_less_than_or_equal_to":return{...Br[t],values:n.length>0?[n[0]]:n};case"is_null":case"is_not_null":return{...Br[t]};case"is_between":return{...Br[t],startValue:n.length>0?n[0]:"0",endValue:n.length>1?n[1]:"0"}}}function Wj(e){return(e.operator==="null"||e.operator==="after"||e.operator==="before")&&e.not?`-${e.operator}`:e.operator}function Gj(e,t){return e.operator==="last"||e.operator==="next"||e.operator==="in_last"?e.units:e.operator==="to"?gl(e.fromMoment,t):e.operator==="before"?gl(e.before,t):e.operator==="after"?gl(e.after,t):e.operator==="in"?gl(e.in,t):t?"second":"day"}const qm=({filter:e,setFilter:t,isDateTime:n})=>{e??(e={operator:"last",n:"7",units:"day"});const[r,o]=u.useState(Gj(e,n)),[s,l]=u.useState(e),i=m=>{c(Kj(s,m,r))},c=m=>{l(m),t(m)},d=n?"second":"day",f=Wj(s);return a.jsxs("div",{...k.props(_e.editor),children:[a.jsxs("div",{...k.props(_e.editorRow),children:[a.jsx(sn,{value:f,onChange:i,options:[{value:"in_last",label:"last"},{value:"last",label:"last complete"},{value:"next",label:"next complete"},{value:"-before",label:"starting"},{value:"after",label:"after"},{value:"before",label:"before"},{value:"-after",label:"through"},{value:"in",label:"is"},{value:"to",label:"between"},{value:"null",label:"null"},{value:"-null",label:"not null"}],customStyle:_e.editorCell}),Yj(s,c,r,o,d)]}),Uj(s,c,r,o,d)]})};function Yj(e,t,n,r,o){switch(e.operator){case"in_last":case"last":case"next":return a.jsx(Vj,{currentFilter:e,maxLevel:o,updateFilter:t,units:n,setUnits:r});case"after":case"before":case"to":case"in":return a.jsx(Hj,{currentFilter:e,maxLevel:o,updateFilter:t,units:n,setUnits:r})}return null}function Uj(e,t,n,r,o){switch(e.operator){case"after":case"before":case"in":return a.jsx(Zj,{currentFilter:e,maxLevel:o,updateFilter:t,units:n,setUnits:r});case"to":return a.jsx(Xj,{currentFilter:e,maxLevel:o,updateFilter:t,units:n,setUnits:r})}return null}const hi=[{value:"year",label:"years"},{value:"quarter",label:"quarters"},{value:"month",label:"months"},{value:"week",label:"weeks"},{value:"day",label:"days"}],fy=[{value:"hour",label:"hours"},{value:"minute",label:"minutes"},{value:"second",label:"seconds"}];function Vj({currentFilter:e,updateFilter:t,setUnits:n,maxLevel:r}){const{n:o,units:s}=e,l=r==="day"?hi:[...hi,...fy],i=d=>{const f=d.target.value;t({...e,n:f})},c=d=>{n(d),t({...e,units:d})};return a.jsxs(a.Fragment,{children:[a.jsx("input",{type:"number",value:o,...k.props(_e.input,_e.editorCell),onChange:i}),a.jsx(sn,{options:l,value:s,onChange:c,customStyle:_e.editorCell})]})}function Hj({currentFilter:e,updateFilter:t,units:n,setUnits:r,maxLevel:o}){const s=o==="day"?hi:[...hi,...fy],l=i=>{switch(r(i),e.operator){case"after":t({...e,after:qo(e.after,i)});return;case"before":t({...e,before:qo(e.before,i)});return;case"to":t({...e,fromMoment:qo(e.fromMoment,i),toMoment:qo(e.toMoment,i)});return;case"in":{t({...e,in:qo(e.in,i)});return}}};return a.jsx(sn,{options:s,value:n,onChange:l,customStyle:_e.editorCell})}function Zj({currentFilter:e,updateFilter:t,units:n,maxLevel:r}){const o=e.operator==="after"?e.after:e.operator==="before"?e.before:e.in,s=qr(o),l=i=>{t({...e,[e.operator]:lo(i,n)})};return a.jsxs(a.Fragment,{children:[a.jsx("div",{...k.props(_e.editorRow),children:a.jsx(ii,{value:s,setValue:l,units:n,customStyle:{..._e.input,..._e.editorCell}})}),a.jsx("div",{...k.props(_e.editorRow),children:a.jsx(ad,{value:s,setValue:l,units:n,maxLevel:r,customStyle:_e.editorCell})})]})}function Xj({currentFilter:e,updateFilter:t,units:n,maxLevel:r}){const{fromMoment:o,toMoment:s}=e,l=qr(o),i=qr(s),[c,d]=u.useState(l),[f,m]=u.useState("from"),p=v=>{t({...e,fromMoment:lo(v,n)})},h=v=>{t({...e,toMoment:lo(v,n)})},g=v=>{f==="from"?p(v):h(v),d(v)},y=v=>{if(m(v),v==="from"){const w=qr(o);d(w)}else{const w=qr(s);d(w)}};return a.jsxs(a.Fragment,{children:[a.jsxs("div",{...k.props(_e.editorRow),children:[a.jsx(ii,{value:l,setValue:p,units:n,customStyle:{..._e.input,..._e.editorCell},onFocus:()=>y("from"),isActive:f==="from"}),a.jsx(ii,{value:i,setValue:h,units:n,customStyle:{..._e.input,..._e.editorCell},onFocus:()=>y("to"),isActive:f==="to"})]}),a.jsx("div",{...k.props(_e.editorRow),children:a.jsx(ad,{value:c,setValue:g,units:n,maxLevel:r,customStyle:_e.editorCell})})]})}function lo(e,t){return{moment:"literal",literal:L.utc(e).format(so[t]),units:t}}function qr(e){return e&&e.moment==="literal"?L.utc(e.literal,so[e.units??"second"]).toDate():new Date}function qo(e,t){return lo(qr(e),t)}function Kj(e,t,n){let r="7",o=lo(new Date,n),s=lo(new Date,n),l=!1;switch(t.startsWith("-")&&(t=t.slice(1),l=!0),e.operator){case"in_last":case"last":case"next":r=e.n,n=e.units;break;case"after":o=e.after,s=e.after;break;case"before":o=e.before,s=e.before;break;case"to":o=e.fromMoment,s=e.toMoment;break}switch(t){case"in_last":case"last":case"next":return{operator:t,n:r,units:n};case"after":return{operator:t,after:o,not:l};case"before":return{operator:t,before:o,not:l};case"in":return{operator:t,in:o};case"to":return{operator:t,fromMoment:o,toMoment:s};case"null":return{operator:t,not:l}}return e}function Qj({fieldInfo:e,path:t,filter:n,onFilterApply:r,onOpenChange:o}){const[s,l]=u.useState(n??Jj(e)),i=()=>{o(!1)},c=()=>{r(s),o(!1)},d=g=>{l({kind:"boolean",parsed:g})},f=g=>{l({kind:"string",parsed:g})},m=g=>{l({kind:"number",parsed:g})},p=g=>{l({kind:"timestamp",parsed:g})},h=g=>{l({kind:"date",parsed:g})};return a.jsxs("div",{...k.props(z.body,_e.filterDialog),onKeyDown:g=>{g.key==="Enter"?c():g.key==="Esc"&&i()},children:[a.jsx("div",{...k.props(_e.filterDialogHeader),children:e.name}),s.kind==="boolean"&&a.jsx(Tj,{setFilter:d,filter:s.parsed??{operator:"null"}}),s.kind==="string"&&a.jsx(Ij,{setFilter:f,filter:s.parsed??{operator:"null"},field:e,path:t}),s.kind==="number"&&a.jsx(zj,{setFilter:m,filter:s.parsed??{operator:"null"}}),s.kind==="date"&&a.jsx(qm,{setFilter:h,filter:s.parsed??{operator:"null"},isDateTime:!1}),s.kind==="timestamp"&&a.jsx(qm,{setFilter:p,filter:s.parsed??{operator:"null"},isDateTime:!0}),a.jsxs("div",{...k.props(_e.buttonGroup),children:[a.jsx(xe,{variant:"default",label:"Cancel",onClick:i,style:{flexGrow:1}}),a.jsx(xe,{variant:"primary",label:"Apply",onClick:c,style:{flexGrow:1}})]})]})}function Jj(e){return e.type.kind==="string_type"?{kind:"string",parsed:{operator:"=",values:[]}}:e.type.kind==="boolean_type"?{kind:"boolean",parsed:{operator:"true"}}:e.type.kind==="number_type"?{kind:"number",parsed:{operator:">",values:["0"]}}:e.type.kind==="date_type"?{kind:"date",parsed:{operator:"last",n:"7",units:"day"}}:{kind:"timestamp",parsed:{operator:"last",n:"7",units:"day"}}}function ks({fieldInfo:e,path:t,filter:n,setFilter:r,trigger:o,anchor:s,layoutProps:l,onOpenChange:i}){const[c,d]=u.useState(!1),f=m=>{d(m),i?.(m)};return a.jsxs(Bs,{open:c,onOpenChange:f,modal:!0,children:[s?a.jsx(E1,{asChild:!0,children:s}):a.jsx(Qi,{asChild:!0,children:o}),a.jsx(qs,{children:a.jsx(Ji,{...l,className:"mly78zum5 mlydt5ytf mly5n1uv4 mly12peec7 mlyur7f20",children:a.jsx(Qj,{fieldInfo:e,filter:n,path:t,onFilterApply:r,onOpenChange:f})})})]})}const eT=e=>(e.kind==="dimension"||e.kind==="measure")&&(e.type.kind==="array_type"&&e.type.element_type.kind==="record_type"||e.type.kind==="record_type");function Nd({view:e,fields:t,onAddOperation:n,search:r="",types:o,filter:s,isFilterOperation:l,customStyle:i}){const c=u.useMemo(()=>{const d=[],f=r.toLocaleLowerCase(),m=(p,h,g,y)=>{const v=XE(y).filter(x=>x.kind!=="join").filter(x=>x.name.toLocaleLowerCase().includes(f)&&p.includes(x.kind)).filter(x=>s?s(e,x,h):!0),w=y.filter(x=>x.kind==="join"),b=y.filter(eT);v.length&&d.push({path:h,name:h.length?h.join(" > "):g,fields:v});for(const x of b)x.type.kind==="array_type"&&x.type.element_type.kind==="record_type"?m(p,[...h,x.name],x.name,x.type.element_type.fields.map(C=>({kind:x.kind,...C}))):x.type.kind==="record_type"&&m(p,[...h,x.name],x.name,x.type.fields.map(C=>({kind:x.kind,...C})));for(const x of w)m(p.filter(C=>C!=="view"),[...h,x.name],x.name,x.schema.fields)};return m(o,[],"Source",t),d},[t,s,r,e,o]);return a.jsx("div",{...k.props(i),children:c.length?c.map(d=>a.jsxs("div",{children:[a.jsx("div",{...k.props(lt.item,xl.fieldItem,xl.sticky),"data-disabled":"true",children:d.name}),d.fields.map(f=>l&&(f.kind==="dimension"||f.kind==="measure")?a.jsx(ks,{fieldInfo:f,path:d.path,setFilter:m=>n(f,d.path,m),anchor:a.jsx("div",{role:"menuitem",tabIndex:-1,...k.props(lt.item,xl.fieldItem),children:a.jsx(sd,{asChild:!0,children:a.jsx(gr,{field:f,tooltip:a.jsx(_s,{field:f,path:d.path}),tooltipProps:{side:"right",align:"start",sideOffset:4,alignOffset:24}})})}),layoutProps:{align:"start",side:"right",sideOffset:2,alignOffset:4}},d.name+":"+f.name):a.jsx("div",{role:"menuitem",tabIndex:-1,...k.props(lt.item,xl.fieldItem),children:a.jsx(gr,{field:f,onClick:()=>n(f,d.path),tooltip:a.jsx(_s,{field:f,path:d.path}),tooltipProps:{side:"right",align:"start",sideOffset:4,alignOffset:24}})},d.name+":"+f.name))]},d.name)):a.jsx("div",{...k.props(lt.item),"data-disabled":"true",children:"No matching fields"})})}const xl={fieldItem:{height:"mly1qx5ct2",paddingTop:"mly1y1aw1k",paddingBottom:"mlywib8y2",$$css:!0},sticky:{position:"mly7wzq59",top:"mly13vifvy",zIndex:"mly1vjfegm",backgroundColor:"mly9nb4jr",borderBottom:"mlyv3yj8d",borderBottomWidth:null,borderBottomStyle:null,borderBottomColor:null,$$css:!0}};function tT({view:e,fields:t,types:n,filter:r,onAddOperation:o,isFilterOperation:s}){const[l,i]=u.useState("");return a.jsxs("div",{...k.props(lt.content,nT.content),role:"menu",children:[a.jsx("div",{...k.props(lt.item),children:a.jsx(Di,{icon:"search",value:l,onChange:i,placeholder:"Search..."})}),a.jsx(Gr,{}),a.jsx("div",{className:"mly1odjw0f",children:a.jsx(Nd,{view:e,fields:t,search:l,types:n,filter:r,onAddOperation:o,isFilterOperation:s})})]})}const nT={content:{maxHeight:"mly3d5gib",$$css:!0}};function ca(e,t){return[...e||[],t].join(".")}function rT(e){return e.operations.items.find(t=>t instanceof Z.ASTLimitViewOperation)!==void 0}function oT(e,t){return e.operations.items.find(n=>n instanceof Z.ASTOrderByViewOperation&&n.name===t)!==void 0}function my(e){const t=new Map;for(const n of e.operations.items)if(n instanceof Z.ASTGroupByViewOperation||n instanceof Z.ASTAggregateViewOperation){const r=n.field.getReference();r&&t.set(n.name,ca(r.path,r.name))}return t}function sT(e,t,n){const r=my(e),o=ca(t,n);return!!e.operations.items.find(s=>s instanceof Z.ASTOrderByViewOperation&&r.has(s.name)?o===r.get(s.name):!1)}function lT(e,t,n,r){return t===r&&(e||[]).join(".")===(n||[]).join(".")}function iT(e,t,n){return!!e.operations.items.find(o=>{if(o instanceof Z.ASTGroupByViewOperation||o instanceof Z.ASTAggregateViewOperation){const s=o.field.getReference();return s?lT(t,n,s.path,s.name):!1}return!1})}function aT(e,t){return e.operations.items.reduce((n,r)=>{if(r instanceof Z.ASTNestViewOperation&&r.name===t)do n+=1;while(e.hasFieldNamed(`${t} ${n}`));return n},1)}function ua(e,t,n){const r=t.kind==="dimension"?t.type.kind:"string",o=e.getOrAddDefaultSegment(),{fields:s}=e.getOutputSchema();let l;s.find(i=>i.name===t.name)&&(l=Td(s,t.name,n)),r==="date_type"?o.addDateGroupBy(t.name,n,"day"):r==="timestamp_type"?o.addTimestampGroupBy(t.name,n,"second"):o.addGroupBy(t.name,n,l)}function da(e,t,n){const r=e.getOrAddDefaultSegment(),{fields:o}=e.getOutputSchema();let s;o.find(l=>l.name===t.name)&&(s=Td(o,t.name,n)),r.addAggregate(t.name,n,s)}function Od(e,t){const n=e.getOrAddDefaultSegment(),{fields:r}=e.getOutputSchema();let o;r.find(s=>s.name===t.name)&&(o=Td(r,t.name)),n.addNest(t.name,o)}function cT(e,t,n,r="desc"){const o=ca(t,n);let s=n;const l=e.getOrAddDefaultSegment(),i=my(l);for(const c of i.entries())if(c[1]===o){s=c[0];break}l.addOrderBy(s,r)}function uT(e,t,n="desc"){e.getOrAddDefaultSegment().addOrderBy(t.name,n)}function py(e,t,n,r){const o=e.getOrAddDefaultSegment();t.kind==="dimension"?o.addWhere(t.name,n,r):o.addHaving(t.name,n,r)}function Cn(e){if(!e)return;const t=O0(e);if(t instanceof Z.ASTSegmentViewDefinition)return t;if(t instanceof Z.ASTRefinementViewDefinition&&t.refinement instanceof Z.ASTSegmentViewDefinition)return t.refinement}function dT({actionTitle:e,view:t,fields:n,title:r,types:o,onClick:s}){const[l,i]=u.useState(!1),c=Cn(t),d=(f,m,p)=>!c?.hasField(m.name,p)&&Jn(m);return a.jsxs("div",{...k.props(Ot.title,xn.main),children:[a.jsx("div",{children:r}),a.jsx("div",{...k.props(xn.hoverActions,l?xn.hoverOpen:void 0),children:a.jsxs(Bs,{onOpenChange:i,children:[a.jsx(Qi,{asChild:!0,children:a.jsx("div",{className:"mly1md70p1 mly1aejobo mlyq1n1xh mly1ypdohk",children:e})}),a.jsx(qs,{children:a.jsx(id,{side:"right",align:"start",alignOffset:-16,children:a.jsx(tT,{view:t,fields:n,types:o,filter:d,onAddOperation:s})})})]})})]})}function hy({rootQuery:e,view:t,target:n,open:r,setOpen:o}){const[s,l]=u.useState(""),{setQuery:i}=u.useContext(ge);if(u.useEffect(()=>{n&&l(n.name)},[n,r]),!n)return null;const c=()=>{n.name=s,i?.(e?.build()),o(!1)},{fields:d}=t.getOutputSchema(),f=s!==n.name&&d.some(m=>m.name===s);return a.jsx(J0,{open:r,onOpenChange:o,children:a.jsx(ey,{children:a.jsx(ty,{...k.props(Qe.overlay),children:a.jsxs(ny,{...k.props(Qe.content,z.body),children:[a.jsxs(oy,{...k.props(Qe.displayNone),children:["Rename ",n.name]}),a.jsxs(ry,{...k.props(Qe.title),children:["Rename ",n.name]}),a.jsxs("div",{...k.props(Qe.editor),children:[a.jsxs("div",{...k.props(Qe.editorRow),children:[a.jsx("input",{value:s,onChange:m=>l(m.target.value),...k.props({...Qe.editorCell,...Qe.input}),onKeyDown:m=>{m.key==="Enter"?c():m.key==="Esc"&&o(!1)}}),f&&a.jsx(ji,{errorMessage:"Name already in use"})]}),a.jsxs("div",{...k.props(Qe.editorRow),children:[a.jsx(xe,{label:"Cancel",onClick:()=>o(!1),customStyle:Qe.editorCell}),a.jsx(xe,{variant:"primary",label:"Rename",onClick:c,customStyle:Qe.editorCell,disabled:f})]})]})]})})})})}function gy({rootQuery:e,segment:t,view:n,operations:r,kind:o}){const{setQuery:s}=u.useContext(ge),l=SR(kR(Rd)),i=u.useMemo(()=>r.map(m=>({id:m.name,operation:m})),[r]);if(r.length===0)return null;function c(m){const h=t.operations.items.filter(v=>v instanceof Z.ASTAggregateViewOperation||v instanceof Z.ASTGroupByViewOperation||v instanceof Z.ASTNestViewOperation).map(v=>v.name),{active:g,over:y}=m;if(y&&g.id!==y.id){const v=h.indexOf(g.id),w=h.indexOf(y.id);t.reorderFields(Ed(h,v,w)),s?.(e.build())}}const{fields:d}=_r(n),f=o==="group_by"?{title:"group by",actionTitle:"Add group by",types:["dimension"],onClick:(m,p)=>{ua(n,m,p),s?.(e.build())}}:{title:"aggregate",actionTitle:"Add aggregate",types:["measure"],onClick:(m,p)=>{da(n,m,p),s?.(e.build())}};return a.jsxs("div",{children:[a.jsx(dT,{rootQuery:e,view:n,fields:d,...f}),a.jsx("div",{...k.props(Ot.tokenContainer),children:a.jsx(TE,{sensors:l,collisionDetection:LR,onDragEnd:c,children:a.jsx(FE,{items:i,children:i.map(m=>a.jsx(mT,{rootQuery:e,id:m.id,color:o==="group_by"?"cyan":"green",view:n,operation:m.operation},m.id))})})})]})}const fT=[];function mT({rootQuery:e,id:t,view:n,operation:r,color:o}){var s;const{setQuery:l}=u.useContext(ge),i=r.getFieldInfo(),c=((s=r.field.getReference())==null?void 0:s.path)??fT,{attributes:d,listeners:f,setNodeRef:m,transform:p,transition:h}=VE({id:t,data:{name:i.name}}),[g,y]=u.useState(!1),[v,w]=u.useState(),[b,x]=u.useState(!1),C={transform:xs.Transform.toString(p),transition:h},_=u.useMemo(()=>a.jsxs(a.Fragment,{children:[a.jsx(yd,{trigger:a.jsx(xe,{variant:"flat",icon:"meatballs",size:"compact",tooltip:"More Actions"}),onOpenChange:x,children:[a.jsx(bs,{label:"Rename",onClick:()=>{w(r),y(!0)}},"rename")]},[...c,i.name].join(".")),a.jsx(Hs,{onClick:()=>{r.delete(),l?.(e?.build())}})]}),[i,r,c,e,l]),R=gT(i,r.field);let S="orderBy";return(i.kind==="dimension"||i.kind==="measure")&&(S=sa(i.type.kind)),a.jsxs("div",{id:t,ref:m,style:C,children:[R?a.jsxs("div",{...{0:{className:"mly78zum5 mly6s0dn4 mly1nhvcw1 mly1jnr06f mly11ogjb6 mly1g9of4s"},1:{className:"mly78zum5 mly6s0dn4 mly1nhvcw1 mly1jnr06f mly1ae5hkt"}}[!!b<<0],children:[a.jsxs(Ls,{customStyle:yT.tokenGroup,children:[a.jsx(De,{color:o,icon:S,label:i.name,dragProps:{attributes:d,listeners:f}}),a.jsx(Ni,{color:o,value:R.value,onChange:E=>{r.field.expression instanceof Z.ASTTimeTruncationExpression&&(r.field.expression.truncation=E),l?.(e.build())},items:R.options})]}),_&&a.jsx("div",{className:"mly2b4tyj mly2lah0s",children:_})]}):a.jsx(gr,{field:i,color:o,hoverActionsVisible:b,hoverActions:_,tooltip:a.jsx(_s,{field:i,path:c}),tooltipProps:{side:"right",align:"start",alignOffset:28},dragProps:{attributes:d,listeners:f}}),a.jsx(hy,{rootQuery:e,view:n,target:v,open:g,setOpen:y})]})}const pT=["day","week","month","quarter","year"],hT=["second","minute","hour","day","week","month","quarter","year"];function gT(e,t){return e.kind!=="dimension"||!(t.expression instanceof Z.ASTTimeTruncationExpression)?null:e.type.kind==="timestamp_type"?{value:e.type.timeframe??"second",options:hT.map(n=>({label:n,value:n}))}:e.type.kind==="date_type"?{value:e.type.timeframe??"day",options:pT.map(n=>({label:n,value:n}))}:null}const yT={tokenGroup:{display:"mly78zum5",$$css:!0}};function vT({rootQuery:e,segment:t,view:n,groupBys:r}){return a.jsx(gy,{rootQuery:e,segment:t,view:n,operations:r,kind:"group_by"})}class bT extends u.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){console.error(t,n)}render(){return this.state.hasError?this.props.fallback:this.props.children}}const yy=(e,t)=>{if(e.parsed===null)return{op:"",value:t};let n="",r=t;switch(e.kind){case"boolean":{const o=e.parsed,{operator:s,not:l}=o;n=l?"is not":"is",r=s}break;case"string":{const o=e.parsed,{operator:s}=o;switch(s){case"~":n="is like",r=o.escaped_values.join(", ");break;case"=":{const{not:l,values:i}=o;n=l?"is not":"is",r=i.join(", ")}break;case"contains":{const{not:l,values:i}=o;n=l?"does not contain":"contains",r=i.join(", ")}break;case"starts":{const{not:l,values:i}=o;n=l?"does not start with":"starts with",r=i.join(", ")}break;case"ends":{const{not:l,values:i}=o;n=l?"does not end with":"ends with",r=i.join(", ")}break;case"empty":{const{not:l}=o;n=l?"is not empty":"is empty",r=""}break;case"null":{const{not:l}=o;n=l?"is not":"is",r="null"}break}}break;case"number":{const o=e.parsed,{operator:s}=o;switch(s){case"=":case"!=":case"<=":case">=":case"<":case">":n=s,r=o.values.join(", ");break;case"range":n="in between",r=o.startValue+" and "+o.endValue;break;case"null":n=o.not?"is not":"is",r="null";break}}break;case"date":case"timestamp":{const o=e.parsed,{operator:s}=o;switch(s){case"after":{const{not:l}=o;n=l?"through":"is after",r=Ka(o.after)}break;case"before":{const{not:l}=o;n=l?"starting":"is before",r=Ka(o.before)}break;case"in":{const{not:l}=o;n=`is${l?" not":""} in`,r=Ka(o.in)}break;case"in_last":{const{not:l}=o;n=`is${l?" not":""} in last`,r=o.n+" "+o.units}break;case"last":{const{not:l}=o;n=`is${l?" not":""} last complete`,r=o.n+" "+o.units}break;case"next":{const{not:l}=o;n=`is${l?" not":""} next complete`,r=o.n+" "+o.units}break;case"for":{const{not:l}=o;n=`is${l?" not":""} for`,r=o.n+" "+o.units}break;case"null":n=o.not?"is not":"is",r="null";break}}}return{op:n,value:r}};function Ka(e){return e?e.moment==="literal"?e.literal:e.moment==="now"?"now":e.moment:""}function wT({rootQuery:e,filters:t}){const{setQuery:n}=u.useContext(ge);return t.length===0?null:a.jsxs("div",{children:[a.jsx("div",{...k.props(Ot.title),children:"filter by"}),a.jsx("div",{...k.props(Ot.tokenContainer),children:t.map((r,o)=>a.jsx(bT,{fallback:a.jsxs("div",{children:["Invalid filter",a.jsx(Hs,{onClick:()=>{r.delete(),n?.(e.build())}})]}),children:a.jsx(xT,{filterOperation:r,rootQuery:e})},o))})]})}function xT({rootQuery:e,filterOperation:t}){const{setQuery:n}=u.useContext(ge),r=u.useCallback(h=>{t.filter instanceof Z.ASTFilterWithFilterString&&t.filter.setFilter(h),n?.(e.build())},[t.filter,e,n]),{filter:o}=t;if(!(o instanceof Z.ASTFilterWithFilterString))return null;const{expression:s,filterString:l}=o;if(!(s instanceof Z.ASTReferenceExpression))return null;const i=o.getFieldInfo(),c=o.getFilter(),d=s.path??[],{op:f,value:m}=yy(c,l),p=`${i.name} ${f} ${m}`;return a.jsxs("div",{...k.props(xn.main),children:[a.jsx(ks,{fieldInfo:i,path:d,filter:c,setFilter:r,trigger:a.jsx(De,{icon:"filter",color:"cyan",label:p}),layoutProps:{align:"start",side:"bottom",sideOffset:1}}),a.jsx("div",{...k.props(xn.hoverActions),children:a.jsx(Hs,{onClick:()=>{t.delete(),n?.(e.build())}})})]})}function CT({rootQuery:e,limit:t}){const{setQuery:n}=u.useContext(ge);return t?a.jsxs("div",{children:[a.jsx("div",{...k.props(Ot.title),children:"limit"}),a.jsxs("div",{...k.props(xn.main),children:[a.jsx(cc,{type:"number",value:t.limit,onChange:r=>{t.limit=r,n?.(e.build())},errorMessage:t.limit<0?"Limit must be positive":void 0}),a.jsx("div",{...k.props(xn.hoverActions),children:a.jsx(Hs,{onClick:()=>{t.delete(),n?.(e.build())}})})]})]}):null}function _T({rootQuery:e,segment:t,view:n,aggregates:r}){return a.jsx(gy,{rootQuery:e,segment:t,view:n,operations:r,kind:"aggregate"})}function kT({rootQuery:e,orderBys:t}){const{setQuery:n}=u.useContext(ge);return t.length===0?null:a.jsxs("div",{children:[a.jsx("div",{...k.props(Ot.title),children:"order by"}),a.jsx("div",{...k.props(Ot.tokenContainer),children:t.map(r=>{const{fieldReference:o}=r,s=o.getFieldInfo(),l=o.path??[];let i="orderBy";(s.kind==="dimension"||s.kind==="measure")&&(i=sa(s.type.kind));const c=m0(s.kind);return a.jsxs("div",{...k.props(xn.main),children:[a.jsxs(Ls,{children:[a.jsx(De,{color:c,icon:i,label:s.name}),a.jsx(Ni,{color:c,items:[{label:"ascending",value:"asc"},{label:"descending",value:"desc"}],value:r.direction??"asc",onChange:d=>{r.direction=d,n?.(e.build())}})]}),a.jsx("div",{...k.props(xn.hoverActions),children:a.jsx(Hs,{onClick:()=>{r.delete(),n?.(e.build())}})})]},[...l,s.name].join("."))})})]})}function ST({rootQuery:e,view:t}){return a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[a.jsx(iy,{rootQuery:e,view:t}),a.jsx(os,{rootQuery:e,view:t,viewDef:t.definition})]})}function cr({icon:e,label:t,detail:n,disable:r,onClick:o,open:s}){const l=r?.(),i=()=>{r?.()||o?.()};return a.jsxs(go,{children:[a.jsx(yo,{asChild:!0,children:a.jsxs("div",{role:"menuitem",tabIndex:-1,...k.props(lt.item,lt.clickable,s?RT.open:null),onClick:i,"data-disabled":l?"true":void 0,children:[a.jsxs("div",{...k.props(lt.label),children:[e,a.jsx("div",{children:t})]}),s!==void 0&&a.jsx(te,{name:"chevronRight",color:"gray"})]})}),n?a.jsx(vo,{children:a.jsx(bo,{...k.props(lt.tooltip),side:"right",align:"start",alignOffset:-16,children:n})}):null]})}const RT={open:{background:"mly16o7sp0",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,$$css:!0}};function ET({rootQuery:e,view:t}){const{setQuery:n}=u.useContext(ge),r=Cn(t),o=r?rT(r):!1;return a.jsx(cr,{icon:a.jsx(te,{name:"limit"}),label:"Limit",disable:()=>o,onClick:()=>{t.getOrAddDefaultSegment().setLimit(10),n?.(e.build())}})}function jT({rootQuery:e,view:t}){const{setQuery:n}=u.useContext(ge);return a.jsx(cr,{icon:a.jsx(te,{name:"nest"}),label:"Add blank nested query",onClick:()=>{const r=t.getOrAddDefaultSegment(),o=aT(r,"Nest");r.addEmptyNest(o>1?`Nest ${o}`:"Nest"),n?.(e.build())}})}function Xs({view:e,fields:t,onAddOperation:n,types:r,filter:o,isFilterOperation:s,search:l}){return a.jsx(Nd,{types:r,filter:o,view:e,fields:t,onAddOperation:n,isFilterOperation:s,search:l,customStyle:TT.list})}const TT={list:{minWidth:"mly2ixbly",maxWidth:"mly1j9u4d2",$$css:!0}};function LT({rootQuery:e,view:t,search:n}){const{setQuery:r}=u.useContext(ge),o=t.getOutputSchema().fields,s=Cn(t),l=u.useMemo(()=>o.filter(i=>i.kind==="dimension").filter(i=>MT.includes(i.type.kind)).filter(i=>s?!oT(s,i.name):!0),[o,s]);return a.jsx(Xs,{label:"Add order by",icon:"orderBy",view:t,fields:l,types:["dimension"],onAddOperation:i=>{uT(t,i),r?.(e.build())},disabledMessage:"There must be at least one field in the output to order by.",search:n})}const MT=["string_type","number_type","boolean_type","date_type","timestamp_type"];function AT({rootQuery:e,view:t,search:n}){const{setQuery:r}=u.useContext(ge),{fields:o}=_r(t),s=Cn(t),l=(i,c,d)=>!s?.hasField(c.name,d)&&Jn(c);return a.jsx(Xs,{label:"Add group by",icon:"groupBy",view:t,fields:o,types:["dimension"],filter:l,onAddOperation:(i,c)=>{ua(t,i,c),r?.(e.build())},search:n})}function IT({rootQuery:e,view:t,search:n}){const{setQuery:r}=u.useContext(ge),{fields:o}=_r(t),s=Cn(t),l=(i,c,d)=>!s?.hasField(c.name,d)&&Jn(c);return a.jsx(Xs,{label:"Add aggregate",icon:"aggregate",view:t,fields:o,types:["measure"],filter:l,onAddOperation:(i,c)=>{da(t,i,c),r?.(e.build())},search:n})}function PT({view:e,search:t}){const{rootQuery:n,setQuery:r}=u.useContext(ge),{fields:o}=_r(e);return a.jsx(Xs,{label:"Add filter",icon:"filter",view:e,fields:o,types:["measure","dimension"],filter:(s,l)=>(l.kind==="dimension"||l.kind==="measure")&&DT.has(l.type.kind)&&Jn(l),onAddOperation:(s,l,i)=>{i&&(s.kind==="dimension"||s.kind==="measure")&&(py(e,s,l,i),r?.(n?.build()))},isFilterOperation:!0,search:t})}const DT=new Set(["string_type","boolean_type","number_type","date_type","timestamp_type"]);function NT({rootQuery:e,view:t,search:n}){const{setQuery:r}=u.useContext(ge),o=_r(t).fields,s=u.useMemo(()=>o.filter(l=>l.kind==="view"&&!N0(l)),[o]);return a.jsx(Xs,{label:"Add view",icon:"view",view:t,fields:s,types:["view"],filter:(l,i)=>Jn(i),onAddOperation:l=>{e.isEmpty()?e.setView(l.name):Od(t,l),r?.(e.build())},search:n})}function vy({rootQuery:e,view:t}){const[n,r]=u.useState(!1),[o,s]=u.useState(""),{setQuery:l}=u.useContext(ge),[i,c]=u.useState(""),d=Cn(t),f=m=>{s(m===o?"":m)};return a.jsxs(Bs,{open:n,onOpenChange:m=>{r(m),m||c("")},children:[a.jsx(Qi,{asChild:!0,children:a.jsx(xe,{icon:"insert",variant:"flat",size:"compact",onClick:()=>r(!n),tooltip:"Add query elements"})}),a.jsx(qs,{children:a.jsxs(Ji,{onPointerDownOutside:()=>r(!1),...k.props(lt.content),side:"bottom",align:"start",role:"menu",children:[a.jsx("div",{...k.props(lt.item),children:a.jsx(Di,{icon:"search",value:i,onChange:c,placeholder:"Search...",customStyle:OT.search})}),a.jsx(Gr,{}),a.jsxs("div",{className:"mly78zum5 mly1odjw0f mlywib8y2 mly1xyq3li",children:[i&&!o?a.jsxs("div",{className:"mly1odjw0f",children:[a.jsx(Nd,{view:t,fields:_r(t).fields,filter:(m,p,h)=>!d?.hasField(p.name,h)&&Jn(p),types:["dimension","measure","view"],onAddOperation:function(m,p){m.kind==="dimension"?ua(t,m,p):m.kind==="measure"?da(t,m,p):Od(t,m),l?.(e.build())},search:i}),a.jsx(Gr,{}),a.jsx(uy,{search:i,onClick:m=>{const p=m.fieldName.split("."),h=p.pop();t.getOrAddDefaultSegment().addWhere(h,p,{kind:"string",parsed:{operator:"=",values:[m.fieldValue??"∅"]}}),l?.(e.build())}})]}):a.jsxs("div",{"data-testid":"add-menu-operations",className:"mly18kybhu",children:[a.jsx(cr,{icon:a.jsx(te,{name:"groupBy"}),label:"Add group by",onClick:()=>f("group_by"),open:o==="group_by"}),a.jsx(cr,{icon:a.jsx(te,{name:"aggregate"}),label:"Add aggregate",onClick:()=>f("aggregate"),open:o==="aggregate"}),a.jsx(cr,{icon:a.jsx(te,{name:"filter"}),label:"Add filter",onClick:()=>f("where"),open:o==="where"}),a.jsx(cr,{icon:a.jsx(te,{name:"view"}),label:"Add view",onClick:()=>f("view"),open:o==="view"}),a.jsx(Gr,{}),a.jsx(ET,{rootQuery:e,view:t}),a.jsx(cr,{icon:a.jsx(te,{name:"orderBy"}),label:"Order by",onClick:()=>f("order_by"),open:o==="order_by"}),a.jsx(jT,{rootQuery:e,view:t})]}),a.jsxs("div",{"data-testid":"add-menu-right-column",style:{overflowY:"auto"},children:[o==="group_by"&&a.jsx(AT,{rootQuery:e,view:t,search:i}),o==="aggregate"&&a.jsx(IT,{rootQuery:e,view:t,search:i}),o==="where"&&a.jsx(PT,{rootQuery:e,view:t,search:i}),o==="view"&&a.jsx(NT,{rootQuery:e,view:t,search:i}),o==="order_by"&&a.jsx(LT,{rootQuery:e,view:t,search:i})]})]})]})})]})}const OT={search:{width:"mlyh8yej3",$$css:!0}},Xc=Me.createContext([]);function by({children:e,nest:t}){const{focusNestView:n,focusMainView:r}=js(),o=u.useContext(Xc);return a.jsx("div",{onPointerDown:s=>{s.stopPropagation(),t?n([...o,t.name]):r()},children:t?a.jsx(Xc.Provider,{value:[...o,t.name],children:a.jsx("div",{children:e})}):a.jsx("div",{children:e})})}function $T({rootQuery:e,view:t,nests:n}){return n.length===0?null:a.jsx("div",{...k.props(Ot.tokenContainer),children:n.map(r=>a.jsx(zT,{rootQuery:e,view:t,nest:r},r.name))})}function zT({rootQuery:e,view:t,nest:n}){const{setQuery:r}=u.useContext(ge),[o,s]=u.useState(!1),l=u.useContext(Xc),{focusNestView:i,isNestViewFocused:c}=js(),d=f=>a.jsxs(a.Fragment,{children:[a.jsxs(yd,{trigger:a.jsx(xe,{variant:"flat",icon:"meatballs",size:"compact",tooltip:"More Actions"}),children:[a.jsx(bs,{icon:"clear",label:"Delete Query",onClick:()=>{i([...l]),f.delete(),r?.(e.build())}}),a.jsx(bs,{label:"Rename",onClick:()=>{s(!0)}})]}),a.jsx(vy,{rootQuery:e,view:f.view})]});return a.jsx(by,{nest:n,children:a.jsxs("div",{className:"mlyj3b58b mly1yf7rl7 mly1xmf6yo mlyh8yej3",children:[a.jsx(bu,{title:n.name,icon:p0(n.view),defaultOpen:!0,controls:d(n),collapsedControls:d(n),isFocused:c([...l,n.name]),children:a.jsx(ST,{rootQuery:e,view:n.view})}),a.jsx(hy,{rootQuery:e,view:t,target:n,open:o,setOpen:s})]},n.name)})}function FT({rootQuery:e,view:t,viewDef:n}){const r=[],o=[],s=[],l=[],i=[],c=[];let d;if(!(n instanceof Z.ASTSegmentViewDefinition))return null;const f=n;return f.operations.items.forEach(m=>{m instanceof Z.ASTGroupByViewOperation?r.push(m):m instanceof Z.ASTAggregateViewOperation?o.push(m):m instanceof Z.ASTWhereViewOperation||m instanceof Z.ASTHavingViewOperation?l.push(m):m instanceof Z.ASTOrderByViewOperation?i.push(m):m instanceof Z.ASTNestViewOperation?c.push(m):m instanceof Z.ASTDrillViewOperation?s.push(m):d=m}),a.jsxs("div",{className:"mly1tpqehw mly10lvyaf",children:[a.jsx(vT,{rootQuery:e,segment:f,view:t,groupBys:r}),a.jsx(_T,{rootQuery:e,segment:f,view:t,aggregates:o}),a.jsx(aR,{rootQuery:e,drills:s}),a.jsx(wT,{rootQuery:e,filters:l}),a.jsx(kT,{rootQuery:e,orderBys:i}),a.jsx($T,{rootQuery:e,view:t,nests:c}),a.jsx(CT,{rootQuery:e,limit:d})]})}function os({rootQuery:e,view:t,viewDef:n}){return n instanceof Z.ASTArrowViewDefinition?a.jsx(os,{rootQuery:e,view:t,viewDef:n.view}):n instanceof Z.ASTRefinementViewDefinition?a.jsxs("div",{children:[a.jsx(os,{rootQuery:e,view:t,viewDef:n.base}),a.jsx(os,{rootQuery:e,view:t,viewDef:n.refinement})]}):n instanceof Z.ASTSegmentViewDefinition?a.jsx(FT,{rootQuery:e,view:t,viewDef:n}):a.jsx(BT,{rootQuery:e,viewDef:n})}function BT({viewDef:e}){const[t,n]=u.useState(!1);return a.jsxs("div",{...{0:{className:"mly78zum5 mlydt5ytf mly1cy8zhl mly1nhvcw1 mly12oqio5 mlygqa5hp mlyt7dq6l mlywib8y2 mly163pfp mlyy13l1i"},1:{className:"mly78zum5 mlydt5ytf mly1cy8zhl mly1nhvcw1 mly12oqio5 mlygqa5hp mlyt7dq6l mly163pfp mlyy13l1i mly18d9i69"}}[!!t<<0],children:[a.jsxs("div",{className:"mlyrvj5dj mly1mt1orb mly1g3yg12 mlyydnxy5 mly6s0dn4 mlylqzeqv mly167g77z mly12oqio5 mlyc342km mly1n2onr6 mlyb3r6kr mlygqa5hp mlyh8yej3",children:[a.jsx(te,{name:"query",color:"purple"}),a.jsx("div",{className:"mlyuxw1ft mlyb3r6kr mlylyipyv",children:e.name}),a.jsx(xe,{icon:t?"chevronRight":"chevronDown",onClick:()=>n(!t),size:"compact"})]}),!t&&a.jsx(Dd,{viewInfo:e.getViewInfo(),style:qT.preview})]})}const qT={preview:{height:"mlyt7dq6l",maxHeight:"mly1hkcv85",background:"mlyo6guvx",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,borderRadius:"mly12oqio5",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0}};function WT({rootQuery:e,query:t,setQuery:n}){const{focusMainView:r,isMainViewFocused:o}=js();return a.jsx(by,{children:a.jsxs(bu,{title:"Main query",isFocused:o,controls:a.jsxs(a.Fragment,{children:[a.jsx(yd,{trigger:a.jsx(xe,{variant:"flat",icon:"meatballs",size:"compact",tooltip:"More Actions"}),children:n?a.jsxs(a.Fragment,{children:[a.jsx(bs,{icon:"clear",label:"Clear query",onClick:()=>{r(),n?.(void 0)},disabled:e.isEmpty()}),a.jsx(bs,{icon:"nest",label:"Nest query",onClick:()=>{e.definition instanceof Z.ASTArrowQueryDefinition&&e.definition.view.convertToNest("Nest"),n?.(e.build())},disabled:e.isEmpty()||!(e.definition instanceof Z.ASTArrowQueryDefinition)})]}):a.jsx(a.Fragment,{})}),t.definition instanceof Z.ASTArrowQueryDefinition?a.jsx(vy,{rootQuery:e,view:t.definition}):null]}),collapsedControls:a.jsx(te,{name:p0(t)}),children:[t.definition instanceof Z.ASTArrowQueryDefinition?a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[!t.isEmpty()&&a.jsx(iy,{rootQuery:e,view:t}),a.jsx(os,{rootQuery:e,view:t.definition,viewDef:t.definition.view})]}):null,t.isEmpty()?a.jsx("div",{className:"mly78zum5 mlyl56j7k mly6s0dn4 mlyng8ra",children:a.jsxs("div",{className:"mly78zum5 mly6s0dn4 mlywzxoxx",children:[a.jsx("div",{children:"Click"}),a.jsx(te,{name:"insert",color:"disabled"}),a.jsx("div",{children:"to get started"})]})}):null]})})}function GT({rootQuery:e}){return e.definition instanceof Z.ASTArrowQueryDefinition?a.jsx("div",{...k.props(Ot.queryCard,YT.content),children:a.jsxs("div",{...k.props(Ot.labelWithIcon),children:[a.jsx(te,{name:"database"}),a.jsx("div",{className:"mlyb3r6kr mlylyipyv mly117nqv4",children:e.definition.as.ArrowQueryDefinition().source.as.ReferenceQueryArrowSource().name})]})}):null}const YT={content:{display:"mlyrvj5dj",gridAutoFlow:"mly1mt1orb",gridTemplateColumns:"mlybyjr8",gap:"mly1jnr06f",rowGap:null,columnGap:null,$$css:!0}};function UT({value:e,setValue:t,customStyle:n}){const[r,o]=u.useState(""),[s,l]=u.useState(!1),i=u.useRef(null),c=u.useRef(null),d=e.kind==="date_literal",f=d?e.date_value:e.timestamp_value,m=d?"day":"second",p=h=>{h?(o(""),t(d?{kind:"date_literal",date_value:L.utc(h).format(so.day)}:{kind:"timestamp_literal",timestamp_value:L.utc(h).format(so.second)})):o("Invalid date")};return sy([i,c],()=>{l(!1)}),a.jsxs(Bs,{open:s,onOpenChange:()=>{},children:[a.jsx(Qi,{asChild:!0,children:a.jsx("div",{...k.props(Un.main,Wo.wrapper,n),children:a.jsx(ii,{value:L.utc(f).toDate(),setValue:p,units:m,onFocus:()=>l(!0),customStyle:{...Wo.input,...d?Wo.dateInput:Wo.timestampInput},forwardRef:i})})}),r&&a.jsx(ji,{errorMessage:r}),a.jsx(qs,{children:a.jsx(Ji,{align:"center",asChild:!0,children:a.jsx(ad,{value:L.utc(f).toDate(),setValue:p,units:m,maxLevel:m,customStyle:Wo.datePicker,forwardRef:c})})})]})}const Wo={input:{border:"mly1gs6z28",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,height:"mlyd7y6wv",backgroundColor:"mlyjbqb8w mlytw1abo",$$css:!0},dateInput:{width:"mly869kya",$$css:!0},timestampInput:{width:"mlynrytzq",$$css:!0},wrapper:{$$css:!0},datePicker:{display:"mly78zum5",flexDirection:"mlydt5ytf",boxShadow:"mly5n1uv4",backgroundColor:"mly12peec7",borderRadius:"mlyur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,width:"mly1hfn5x7",$$css:!0}};function VT({filterType:e,value:t,setValue:n}){let r=null;switch(e){case"string_type":{const{parsed:d}=an.StringFilterExpression.parse(t.filter_expression_value);r={kind:"string",parsed:d}}break;case"number_type":{const{parsed:d}=an.NumberFilterExpression.parse(t.filter_expression_value);r={kind:"number",parsed:d}}break;case"boolean_type":{const{parsed:d}=an.BooleanFilterExpression.parse(t.filter_expression_value);r={kind:"boolean",parsed:d}}break;case"date_type":{const{parsed:d}=an.TemporalFilterExpression.parse(t.filter_expression_value);r={kind:"date",parsed:d}}break;case"timestamp_type":{const{parsed:d}=an.TemporalFilterExpression.parse(t.filter_expression_value);r={kind:"timestamp",parsed:d}}break}const{op:o,value:s}=yy(r,t.filter_expression_value),l=`${o} ${s}`,i={kind:"dimension",name:"parameter",type:{kind:e}},c=d=>{switch(d.kind){case"string":n({kind:"filter_expression_literal",filter_expression_value:an.StringFilterExpression.unparse(d.parsed)});break;case"boolean":n({kind:"filter_expression_literal",filter_expression_value:an.BooleanFilterExpression.unparse(d.parsed)});break;case"number":n({kind:"filter_expression_literal",filter_expression_value:an.NumberFilterExpression.unparse(d.parsed)});break;case"date":case"timestamp":n({kind:"filter_expression_literal",filter_expression_value:an.TemporalFilterExpression.unparse(d.parsed)});break}};return a.jsx(ks,{fieldInfo:i,path:[],filter:r,setFilter:c,trigger:a.jsx(De,{label:l}),layoutProps:{align:"start",side:"bottom",sideOffset:1}})}function HT({value:e,filterType:t,setValue:n,customStyle:r}){if(!e)return null;switch(e.kind){case"boolean_literal":return a.jsx(Ni,{value:e.boolean_value?"true":"false",items:[{label:"true",value:"true"},{label:"false",value:"false"}],onChange:o=>n({kind:"boolean_literal",boolean_value:o==="true"}),customStyle:r});case"date_literal":case"timestamp_literal":return a.jsx(UT,{value:e,setValue:n,customStyle:r});case"null_literal":return a.jsx(De,{label:"∅"});case"number_literal":return a.jsx(cc,{value:e.number_value,type:"number",onChange:o=>n({kind:"number_literal",number_value:o}),customStyle:r});case"string_literal":return a.jsx(cc,{value:e.string_value,onChange:o=>n({kind:"string_literal",string_value:o}),customStyle:r});case"filter_expression_literal":return a.jsx(VT,{value:e,filterType:t,setValue:n,customStyle:r})}}function ZT({rootQuery:e}){const{setQuery:t}=u.useContext(ge);if(e.definition instanceof Z.ASTArrowQueryDefinition){const n=e.definition.as.ArrowQueryDefinition().source.as.ReferenceQueryArrowSource(),r=n.getSourceParameters();return!r||r.length===0?null:a.jsx(bu,{title:"Source parameters",children:a.jsx("div",{className:"mly78zum5 mlydt5ytf mly1jnr06f mlynm25rq",children:r.map(o=>{var s;return a.jsxs(Ls,{customStyle:XT.tokenGroup,children:[a.jsx(De,{icon:sa(o.type.kind),label:o.name}),a.jsx(HT,{filterType:o.type.kind==="filter_expression_type"?o.type.filter_type.kind:"string_type",value:((s=n.tryGetParameter(o.name))==null?void 0:s.parameter.value)??o.default_value,setValue:l=>{n.setParameter(o.name,l),t?.(e.build())}})]},o.name)})})})}return null}const XT={tokenGroup:{display:"mly78zum5",$$css:!0}};function KT(){const{rootQuery:e,setQuery:t}=u.useContext(ge);return e?a.jsxs("div",{...k.props(z.body,QT.main),children:[a.jsx(GT,{rootQuery:e}),a.jsx(ZT,{rootQuery:e}),a.jsx(WT,{rootQuery:e,query:e,setQuery:t})]}):(console.error("Missing <MalloyExplorerProvider>"),null)}const QT={main:{display:"mly78zum5",flexDirection:"mlydt5ytf",overflow:"mlyysyzu8",overflowX:null,overflowY:null,gap:"mly167g77z",rowGap:null,columnGap:null,padding:"mly1fut7tt",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0}};function VL({runQuery:e}){return a.jsxs("div",{className:"mly78zum5 mlydt5ytf mly5yr21d mlyotlr4g mly1roky18",children:[a.jsx(XS,{runQuery:e}),a.jsx(KT,{})]})}function JT({viewInfo:e,onClick:t}){const n=D0(e.annotations??[]);return a.jsx("div",{children:a.jsx(c6,{header:a.jsxs("div",{children:[a.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib",children:[a.jsx(qn,{label:"view",icon:"view_filled",color:"purple",customStyle:Wm.viewBadge}),a.jsx(xe,{variant:"default",size:"compact",label:"Add",onClick:t})]}),a.jsxs("div",{children:[a.jsx("div",{...k.props(z.emphasized),children:e.name}),n&&a.jsx(cy,{text:n})]})]}),customStyle:Wm.card,children:a.jsx(Dd,{viewInfo:e})})})}const Wm={viewBadge:{backgroundColor:"mlyjbqb8w",$$css:!0},card:{width:"mlyxsgkw5",$$css:!0}};function eL({views:e,onSelectView:t}){return a.jsx("div",{className:"mly78zum5 mlydt5ytf mlyh8yej3 mly5yr21d mlyysyzu8",children:a.jsxs("div",{className:"mly1bpp3o7 mly78zum5 mlydt5ytf mlyl56j7k mly6s0dn4",children:[a.jsx("div",{...k.props(tL.header,z.emphasized),children:"Start with a Bookmarked View"}),a.jsx("div",{className:"mly78zum5 mlyl56j7k mly6s0dn4 mly1a02dak mly883omv mlym6i5cn",children:e.filter(n=>!jd(n.annotations??[])).slice(0,3).map(n=>a.jsx(JT,{viewInfo:n,onClick:()=>{t(n)}},n.name))})]})})}const tL={header:{paddingBottom:"mly1l90r2v",$$css:!0}};var $d="Tabs",[nL,HL]=zt($d,[ta]),wy=ta(),[rL,zd]=nL($d),xy=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:s,orientation:l="horizontal",dir:i,activationMode:c="automatic",...d}=e,f=Ts(i),[m,p]=Qn({prop:r,onChange:o,defaultProp:s});return a.jsx(rL,{scope:n,baseId:St(),value:m,onValueChange:p,orientation:l,dir:f,activationMode:c,children:a.jsx(X.div,{dir:f,"data-orientation":l,...d,ref:t})})});xy.displayName=$d;var Cy="TabsList",_y=u.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,s=zd(Cy,n),l=wy(n);return a.jsx(P1,{asChild:!0,...l,orientation:s.orientation,dir:s.dir,loop:r,children:a.jsx(X.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});_y.displayName=Cy;var ky="TabsTrigger",Sy=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...s}=e,l=zd(ky,n),i=wy(n),c=jy(l.baseId,r),d=Ty(l.baseId,r),f=r===l.value;return a.jsx(D1,{asChild:!0,...i,focusable:!o,active:f,children:a.jsx(X.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...s,ref:t,onMouseDown:O(e.onMouseDown,m=>{!o&&m.button===0&&m.ctrlKey===!1?l.onValueChange(r):m.preventDefault()}),onKeyDown:O(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&l.onValueChange(r)}),onFocus:O(e.onFocus,()=>{const m=l.activationMode!=="manual";!f&&!o&&m&&l.onValueChange(r)})})})});Sy.displayName=ky;var Ry="TabsContent",Ey=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:s,...l}=e,i=zd(Ry,n),c=jy(i.baseId,r),d=Ty(i.baseId,r),f=r===i.value,m=u.useRef(f);return u.useEffect(()=>{const p=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(p)},[]),a.jsx(He,{present:o||f,children:({present:p})=>a.jsx(X.div,{"data-state":f?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":c,hidden:!p,id:d,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:p&&s})})});Ey.displayName=Ry;function jy(e,t){return`${e}-trigger-${t}`}function Ty(e,t){return`${e}-content-${t}`}var oL=xy,sL=_y,Cl=Sy,_l=Ey;const lL={compiling:"Compiling",running:"Running",finished:"Finished",canceled:"Canceled"},iL="start",aL="bottom";function cL({runInfo:e}){return a.jsxs(go,{children:[a.jsx(yo,{asChild:!0,children:a.jsxs("div",{...k.props(Qa.triggerContentContainer,z.body),children:[a.jsx(te,{name:"info",color:"disabled"})," Query run details"]})}),a.jsx(vo,{children:a.jsx(bo,{side:aL,align:iL,children:a.jsx(Pd,{customStyle:Qa.card,children:a.jsxs(a.Fragment,{children:[e.customContent,e?.performanceAspects&&Object.entries(e.performanceAspects).map(([t,n])=>a.jsx("div",{children:Object.entries(n).map(([r,o])=>a.jsxs("div",{children:[a.jsxs("span",{...k.props(z.emphasized),children:[r,":"]})," ",a.jsx("span",{...k.props(z.body),children:o})]},r))},t)),e.queryLink&&a.jsx("a",{href:e.queryLink.href,target:"_blank",rel:"noreferrer",...k.props(Qa.link,z.link),children:e.queryLink.linkText})]})})})})]})}const Qa={card:{maxWidth:"mly1dc814f",$$css:!0},triggerContentContainer:{display:"mly3nfvp2",alignItems:"mly6s0dn4",justifyContent:"mlylqzeqv",$$css:!0},link:{backgroundColor:"mlyjbqb8w",border:"mly1gs6z28",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,padding:"mly1717udv",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,cursor:"mly1ypdohk",textDecoration:"mly1hl2dhg",textDecorationColor:null,textDecorationLine:null,textDecorationStyle:null,textDecorationThickness:null,$$css:!0}};function uL({source:e,query:t}){let n;switch(t.executionState){case"compiling":case"running":n=a.jsx(pL,{onCancel:t.onCancel,executionState:t.executionState,queryResolutionStartMillis:t.queryResolutionStartMillis});break;case"canceled":n=a.jsx("div",{className:"mly78zum5 mlydt5ytf mlyh8yej3 mly5yr21d mlyl56j7k mly6s0dn4 mly1665zp3",children:a.jsxs("div",{className:"mly78zum5 mlydt5ytf mly6s0dn4 mlyl56j7k mly167g77z",children:[a.jsx("div",{...k.props(z.emphasized),children:"Query Canceled"}),a.jsx("div",{...k.props(z.body),children:"Your query was canceled; nothing to display."})]})});break;case"finished":n=a.jsx(dL,{source:e,response:t.response});break}return n}function dL({source:e,response:t}){let n=null;return t?t.error||t.messages?n=a.jsx(fL,{messages:[...t.error?[t.error]:[],...t.messages?t.messages:[]]}):t.result||(n=a.jsx(zc,{title:"Empty Result",variant:"critical"})):n=a.jsx(zc,{title:"Empty Response",variant:"critical"}),a.jsxs("div",{className:"mly78zum5 mlydt5ytf mly167g77z mly5yr21d",children:[t?.runInfo&&a.jsx(cL,{runInfo:t.runInfo}),n,t?.result&&a.jsx(mL,{result:t.result,source:e})]})}function fL({messages:e}){return a.jsx("div",{children:e.map(t=>{let n=null;if(t.customRenderer)n=t.customRenderer;else{let r;switch(t.severity){case"DEBUG":case"INFO":r="info";break;case"WARN":r="warn";break;case"ERROR":case"FATAL":r="critical";break;default:r="critical"}n=a.jsx(zc,{title:t.title,description:t.description,variant:r,children:t.content})}return a.jsx("div",{children:n},t.title)})})}function mL({result:e,source:t}){const{onDrill:n,setQuery:r}=u.useContext(ge),o=u.useRef(null),s=u.useMemo(()=>new ec.MalloyRenderer().createViz({onDrill:c=>{if(n){n(c);return}const{stableQuery:d}=c,f=new Z.ASTQuery({query:d,source:t});r?.(f.build())},tableConfig:{enableDrill:!0}}),[n,t,r]);return u.useEffect(()=>{o.current&&s&&(s.setResult(e),s.render(o.current))},[s,e]),s?a.jsx("div",{ref:o,className:"mly5yr21d mly1n2onr6 mly1ja2u2z mlyb3r6kr mlyh8yej3"}):a.jsx("div",{className:"mly78zum5 mlyl56j7k mly6s0dn4",children:a.jsxs("div",{className:"mly78zum5 mlydt5ytf mlyl56j7k mly6s0dn4 mly167g77z",children:[a.jsx(Rg,{size:"large"}),a.jsx("div",{...k.props(z.emphasized),children:"Rendering..."})]})})}function pL({onCancel:e,executionState:t,queryResolutionStartMillis:n}){const r=hL(n);return a.jsxs("div",{className:"mly78zum5 mlydt5ytf mlyh8yej3 mly5yr21d mlyl56j7k mly6s0dn4 mly1665zp3",children:[a.jsxs("div",{className:"mly78zum5 mlydt5ytf mly6s0dn4 mlyl56j7k mly167g77z",children:[a.jsx(Rg,{size:"large",customStyle:gL.spinner}),a.jsx("div",{...k.props(z.emphasized),children:`${lL[t]} query...`}),a.jsx("div",{...k.props(z.body),children:`Total time elapsed: ${(r/1e3).toFixed(0)}s`})]}),a.jsx(xe,{onClick:e,label:"Cancel Query"})]})}function hL(e){const[t,n]=u.useState(Date.now()-e);return u.useEffect(()=>{const r=setInterval(()=>{n(Date.now()-e)},1e3);return()=>clearInterval(r)},[e]),t}const gL={spinner:{marginBottom:"mly1e56ztr",$$css:!0}};function yL({query:e,debug:t}){var n;const[r,o]=u.useState((n=t?.debuggers)==null?void 0:n.at(0));return a.jsxs("div",{children:[!!t?.debuggers.length&&a.jsxs("div",{className:"mly78zum5 mly167g77z mly6s0dn4",children:[a.jsx("div",{...k.props(z.largeBody),children:"Debug with:"}),a.jsx(sn,{options:t.debuggers.map(s=>({label:s,value:s})),value:r,onChange:s=>o(s)}),a.jsx(xe,{variant:"default",label:"Run",isDisabled:!r,onClick:()=>r&&t.onDebugQuery(e,r)})]}),a.jsx(Lc,{code:JSON.stringify(e,null,2),language:"json"})]})}const vL=800;function bL({text:e,label:t}){const[n,r]=u.useState(!1);return u.useEffect(()=>{if(!n)return()=>{};const o=setTimeout(()=>{r(!1)},vL);return()=>{clearTimeout(o),r(!1)}},[n]),a.jsx(xe,{variant:"flat",size:"compact",label:n?"Copied!":t,icon:"copy",isDisabled:n,onClick:()=>{navigator.clipboard.writeText(e).then(()=>r(!0))}})}var Ie=function(e){return e.RESULTS="Results",e.MALLOY="Malloy",e.SQL="SQL",e.RAW_QUERY="Raw Query",e}(Ie||{});function ZL({source:e,draftQuery:t,setDraftQuery:n,submittedQuery:r,options:o}){var s,l,i;const[c,d]=u.useState(Ie.MALLOY),f=(s=Cp(e,t))==null?void 0:s.toMalloy(),m=e.schema.fields.filter(g=>g.kind==="view"),p=r!==void 0;!p&&(c===Ie.RESULTS||c===Ie.SQL)&&d(Ie.MALLOY),u.useEffect(()=>{d(Ie.RESULTS)},[r]);const h=(()=>{var g,y;return c===Ie.MALLOY&&f?f:c===Ie.SQL&&((y=(g=r?.response)==null?void 0:g.result)!=null&&y.sql)?r.response.result.sql:c===Ie.RAW_QUERY?JSON.stringify(t):null})();return t||r?a.jsxs(oL,{...k.props(Ut.tabRoot,z.body),value:c,onValueChange:g=>d(g),children:[a.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib mly6s0dn4 mly153ncpu",children:[a.jsxs(sL,{className:"mly78zum5 mly6s0dn4 mly167g77z",children:[a.jsx(Cl,{value:Ie.RESULTS,disabled:!p,...k.props(z.body,Ut.tab,!p&&Ut.disabledTab),title:p?void 0:"Run a query to see the results.",children:Ie.RESULTS}),a.jsx(Cl,{value:Ie.MALLOY,...k.props(z.body,Ut.tab),children:Ie.MALLOY}),a.jsx(Cl,{value:Ie.SQL,disabled:!p,...k.props(z.body,Ut.tab,!p&&Ut.disabledTab),title:p?void 0:"Run a query to see generated SQL.",children:Ie.SQL}),o?.showRawQuery&&a.jsx(Cl,{value:Ie.RAW_QUERY,...k.props(z.body,Ut.tab),children:Ie.RAW_QUERY})]}),c!==Ie.RESULTS&&h&&a.jsx(bL,{text:h,label:"Copy Code"})]}),a.jsxs("div",{className:"mly1iyjqo2 mlyb3r6kr",children:[a.jsx(_l,{value:Ie.RESULTS,className:"mlyc7ga6q mlyh8yej3 mly5yr21d mly9f619",children:r&&a.jsxs(a.Fragment,{children:[t&&r&&!wL(t,r.query)&&a.jsxs("div",{...k.props(Ut.warning,z.body),children:[a.jsx(te,{name:"warning",color:"warning",customStyle:Ut.warningIcon}),a.jsxs("div",{children:[a.jsx("span",{children:"Query was updated. Run query to see new result or"}),a.jsx("button",{...k.props(Ut.warningAction,z.link),onClick:()=>{n(r.query)},children:" revert "}),a.jsx("span",{children:"to the last run query."})]})]}),a.jsx(uL,{source:e,query:r})]})}),a.jsx(_l,{value:Ie.MALLOY,className:"mlywp4ipm mlyh8yej3 mly5yr21d mly9f619",children:a.jsx(Lc,{code:f??"",language:"malloy"})}),a.jsx(_l,{value:Ie.SQL,className:"mlywp4ipm mlyh8yej3 mly5yr21d mly9f619",children:((i=(l=r?.response)==null?void 0:l.result)==null?void 0:i.sql)&&a.jsx(Lc,{code:r.response.result.sql,language:"sql"})}),o?.showRawQuery&&a.jsx(_l,{value:Ie.RAW_QUERY,className:"mlywp4ipm mlyh8yej3 mly5yr21d mly9f619",children:a.jsx(yL,{query:t,debug:o.debugOptions?{debuggers:o.debugOptions.debuggers,onDebugQuery:o.debugOptions.onDebugQuery}:void 0})})]})]}):a.jsx(eL,{views:m,onSelectView:g=>n(xL(g.name,e.name))})}function wL(e,t){return JSON.stringify(e)===JSON.stringify(t)}function xL(e,t){return{definition:{kind:"arrow",source:{kind:"source_reference",name:t},view:{kind:"view_reference",name:e}}}}const Ut={tabRoot:{height:"mly5yr21d",width:"mlyh8yej3",display:"mly78zum5",flexDirection:"mlydt5ytf",$$css:!0},tab:{border:"mly1gs6z28",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,padding:"mlydqdrvq",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,borderRadius:"mlyur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,backgroundColor:"mlyjbqb8w",cursor:"mly1ypdohk",":is([data-state='active'])_color":"mlyb0tsu4",":is([data-state='active'])_fontWeight":"mly1uifvsu",":is([data-state='active'])_backgroundColor":"mly14vaotu",$$css:!0},disabledTab:{color:"mly1jwwhvr",cursor:"mly1ipiool",$$css:!0},warning:{display:"mly78zum5",alignItems:"mly6s0dn4",marginBottom:"mly1e56ztr",$$css:!0},warningAction:{backgroundColor:"mlyjbqb8w",border:"mly1gs6z28",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,padding:"mly1717udv",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,cursor:"mly1ypdohk",$$css:!0},warningIcon:{paddingRight:"mlyy13l1i",paddingInlineStart:null,paddingInlineEnd:null,$$css:!0}};function ss(e,t=[]){return e.flatMap(n=>{switch(n.kind){case"view":return N0(n)?[]:t.length>0?[]:[{path:t,field:n}];case"measure":case"dimension":return n.type.kind==="array_type"&&n.type.element_type.kind==="record_type"?[{path:t,field:n},...ss(n.type.element_type.fields.map(r=>({kind:n.kind,...r})),[...t,n.name])]:n.type.kind==="record_type"?[{path:t,field:n},...ss(n.type.fields.map(r=>({kind:n.kind,...r})),[...t,n.name])]:[{path:t,field:n}];case"join":return ss(n.schema.fields,[...t,n.name]);default:return[]}})}function CL(e){return ss(e.schema.fields)}function Ly(e,t){return Object.values(t.reduce((n,r)=>{const o=[e.name,...r.path].join(".");return n[o]||(n[o]={groupPath:r.path,items:[]}),n[o].items.push(r),n},{}))}function My(e){return Object.values(e.reduce((t,n)=>{const r=n.field.kind;return t[r]||(t[r]={group:r,items:[]}),t[r].items.push(n),t},{}))}const _L={view:"Views",measure:"Measures",dimension:"Dimensions"};function kL(e,t,n){const r=ca(n,t.name),s=u.useMemo(()=>{const{fields:f}=_r(e),m=n.join(".");return ss(f).filter(p=>p.path.join(".")===m)},[n,e]).find(f=>t.name===f.field.name),l=u.useMemo(()=>{const f=Cn(e);return s?.field.kind!=="dimension"?"Grouping is only available on a dimenion.":f?.hasField(t.name,n)?"Cannot group by a field already in the view.":Jn(t)?"":"This field is annotated with #NO_UI."},[e,s?.field.kind,t,n]),i=u.useMemo(()=>{if(s?.field.kind!=="measure")return"Aggregation only supports measure fields.";const f=Cn(e);return f?.hasField(t.name,n)?"This field is already used in the query.":Jn(t)?"":"This field is annotated with #NO_UI."},[s?.field.kind,e,t,n]),c=u.useMemo(()=>s?["dimension","measure"].includes(s.field.kind)?SL.includes(s.field.type.kind)?"":"Filtering only supports string, boolean, number, date and time fields.":"Filtering is only available for a dimension or measure.":`Unexpected Error: Could not find a field ${r}.`,[r,s]),d=u.useMemo(()=>{if(!s)return`Unexpected Error: Could not find a field ${r}.`;const f=Cn(e);return f&&sT(f,n,t.name)?"Query is already ordered by this field.":!f||!iT(f,n,t.name)?"Order by is only available for fields in the output.":["dimension","measure"].includes(s.field.kind)?RL.includes(s.field.type.kind)?"":"Order By only supports string, boolean, number, date and time fields.":"Order By is only available for dimension or measure fields."},[s,e,n,t.name,r]);return{isGroupByAllowed:!l,groupByDisabledReason:l,isAggregateAllowed:!i,aggregateDisabledReason:i,isFilterAllowed:!c,filterDisabledReason:c,isOrderByAllowed:!d,orderByDisabledReason:d}}const SL=["string_type","boolean_type","number_type","date_type","timestamp_type"],RL=["string_type","number_type","boolean_type","date_type","timestamp_type"];function Ay({field:e,path:t,viewDef:n}){const{rootQuery:r,setQuery:o}=Me.useContext(ge),{focusedNestView:s}=js(),l=s??n,{groupByDisabledReason:i,aggregateDisabledReason:c,filterDisabledReason:d,orderByDisabledReason:f}=kL(l,e,t),[m,p]=u.useState(),[h,g]=u.useState(!1),y=(b,x)=>{(e.kind==="dimension"||e.kind==="measure")&&(b==="groupBy"&&!i?ua(l,e,t):b==="aggregate"&&!c?da(l,e,t):b==="orderBy"&&!f?cT(l,t,e.name):b==="filter"&&!d&&x&&py(l,e,t,x),o?.(r?.build()))},v=()=>{e.kind==="view"&&r?.isEmpty()&&(r?.setView(e.name),o?.(r?.build()))},w=()=>{e.kind==="view"&&(Od(l,e),o?.(r?.build()))};return a.jsx(gr,{field:e,hoverActions:e.kind==="view"?a.jsxs(a.Fragment,{children:[a.jsx($n,{icon:"insert",disabled:!r?.isEmpty(),onClick:v,tooltip:r?.isEmpty()?"Add view":"Can only add a view to an empty query.",onTooltipOpenChange:g}),a.jsx($n,{icon:"nest",onClick:w,tooltip:"Add as new nested query",onTooltipOpenChange:g})]}):e.kind==="measure"?a.jsxs(a.Fragment,{children:[a.jsx($n,{icon:"aggregate",tooltip:c||"Add as aggregate",disabled:!!c,onClick:()=>y("aggregate"),onTooltipOpenChange:g}),a.jsx(ks,{fieldInfo:e,path:t,setFilter:b=>y("filter",b),trigger:a.jsx($n,{icon:"filter",tooltip:d||"Add as filter",disabled:!!d,onTooltipOpenChange:g}),onOpenChange:p,layoutProps:{align:"start"}}),a.jsx($n,{icon:"orderBy",tooltip:f||"Add as order by",disabled:!!f,onClick:()=>y("orderBy"),onTooltipOpenChange:g})]}):e.kind==="dimension"?a.jsxs(a.Fragment,{children:[a.jsx($n,{icon:"groupBy",tooltip:i||"Add as group by",disabled:!!i,onClick:()=>y("groupBy"),onTooltipOpenChange:g}),a.jsx(ks,{fieldInfo:e,path:t,setFilter:b=>y("filter",b),trigger:a.jsx($n,{icon:"filter",tooltip:d||"Add as filter",disabled:!!d,onTooltipOpenChange:g}),onOpenChange:p,layoutProps:{align:"start"}}),a.jsx($n,{icon:"orderBy",tooltip:f||"Add as order by",disabled:!!f,onClick:()=>y("orderBy"),onTooltipOpenChange:g})]}):null,onClick:e.kind==="dimension"&&!i?()=>y("groupBy"):e.kind==="measure"&&!c?()=>y("aggregate"):e.kind==="view"?()=>{r?.isEmpty()?v():w()}:void 0,hoverActionsVisible:m||h,tooltip:a.jsx(_s,{field:e,path:t}),tooltipProps:{side:"right",align:"start",alignOffset:28}})}function $n({tooltip:e,onTooltipOpenChange:t,...n}){return a.jsxs(fo,{delayDuration:300,onOpenChange:t,children:[a.jsx(mo,{asChild:!0,children:a.jsx(xe,{variant:"flat",size:"compact",...n})}),a.jsx(po,{children:a.jsx(ho,{sideOffset:8,...k.props(z.body,Sn.default),children:e})})]})}const Gm=["dimension","measure","view"];function EL({source:e,items:t}){const n=u.useMemo(()=>My(t).sort((s,l)=>Gm.indexOf(s.group)-Gm.indexOf(l.group)).map(s=>({...s,items:Ly(e,s.items)})),[e,t]),{rootQuery:r}=u.useContext(ge),o=r?.definition;return o instanceof Z.ASTArrowQueryDefinition?a.jsxs("div",{className:"mly78zum5 mlydt5ytf mly1cy8zhl mlyou54vl mlye8ttls mly10cdfl8",children:[a.jsx("div",{...k.props(z.body,Ym.heading),children:`${t.length} result${t.length>1?"s":""}`}),n.map(({group:s,items:l})=>a.jsxs("div",{children:[a.jsx("div",{...k.props(z.body,Ym.groupTitle),children:_L[s]}),a.jsx("div",{className:"mly78zum5 mlydt5ytf mlyou54vl",children:l.map(({groupPath:i,items:c})=>u.createElement("div",{className:"mly78zum5 mlydt5ytf mly1jnr06f",key:i.join(".")},a.jsx("div",{...k.props(z.supporting),children:i.join(" > ")}),c.map(({field:d,path:f})=>a.jsx(Ay,{field:d,path:f,viewDef:o},[...f,d.name].join(".")))))})]},s))]}):null}const Ym={heading:{fontWeight:"mly1xlr1w8",$$css:!0},groupTitle:{fontWeight:"mly1xlr1w8",fontSize:"mlyfifm61",$$css:!0}},jL=(e,t)=>t.at(-1)??e.name,TL=(e,t)=>t.length>0?`joined to ${[...t.slice(0,-1),e.name].join(" > ")}`:void 0;function Ja({source:e,fieldItems:t,fieldGroupType:n}){const r=u.useMemo(()=>e?My(t).map(i=>({...i,items:Ly(e,i.items)})):[],[e,t]),o=u.useMemo(()=>{var i;return((i=r.find(({group:c})=>c===n))==null?void 0:i.items)??[]},[r,n]),{rootQuery:s}=u.useContext(ge),l=s?.definition;return l instanceof Z.ASTArrowQueryDefinition?a.jsx("div",{className:"mly78zum5 mlydt5ytf mly167g77z",children:a.jsx(uv,{children:o.map((i,c)=>a.jsx(f6,{label:jL(e,i.groupPath),sublabel:TL(e,i.groupPath),isInitiallyExpanded:c===0,children:i.items.map(({field:d,path:f})=>a.jsx(Ay,{field:d,path:f,viewDef:l},[...f,d.name].join(".")))},i.groupPath.join(".")))})}):null}function XL({onRefresh:e}){const{source:t}=u.useContext(ge),[n,r]=u.useState(""),{onCollapse:o}=u.useContext(oa),s=u.useMemo(()=>t?CL(t).filter(m=>!jd(m.field.annotations??[])):[],[t]),l=s.filter(m=>m.field.kind==="view"),i=s.filter(m=>m.field.kind==="measure"),c=s.filter(m=>m.field.kind==="dimension"),d=u.useMemo(()=>{if(n){const m=n.toLocaleLowerCase();return s.filter(p=>p.field.name.toLocaleLowerCase().includes(m))}return[]},[s,n]),f=!!n;return t?a.jsxs("div",{className:"mly78zum5 mlydt5ytf mly5yr21d mly1gzqxud mlyfuqftd",children:[a.jsxs("div",{...k.props(z.body,Um.header),children:[a.jsxs("div",{className:"mly78zum5 mly1qughib",children:[a.jsxs("div",{className:"mly78zum5 mly6s0dn4 mly167g77z mlydqdrvq mlyb3r6kr",children:[a.jsx(te,{name:"database",color:"gray"}),a.jsx("div",{...k.props(z.largeBody,Um.title),children:t.name})]}),a.jsxs("div",{className:"mly78zum5",children:[a.jsx(xe,{icon:"refresh",tooltip:"Refresh the source",onClick:e,size:"compact",variant:"flat"}),o&&a.jsx(xe,{icon:"sidebarCollapse",tooltip:"Close the source panel",onClick:o,size:"compact",variant:"flat"})]})]}),a.jsx(Di,{value:n,onChange:m=>r(m),placeholder:"Search",size:"compact",icon:"search",hasClear:!0})]}),a.jsx(Gr,{}),a.jsx("div",{className:"mly78zum5 mlydt5ytf mlyysyzu8 mly1iyjqo2",children:f?a.jsx(EL,{source:t,items:d}):a.jsxs(Ck,{defaultExpandedItemId:"views",children:[a.jsx(Ga,{id:"dimensions",label:"Dimensions",startIcon:a.jsx(te,{name:"dimension",color:"cyan"}),badge:a.jsx(qn,{label:c.length.toString(),color:"cyan"}),children:a.jsx(Ja,{source:t,fieldItems:s,fieldGroupType:"dimension"})},"dimensions"),a.jsx(Ga,{id:"measures",label:"Measures",startIcon:a.jsx(te,{name:"measure",color:"green"}),badge:a.jsx(qn,{label:i.length.toString(),color:"green"}),children:a.jsx(Ja,{source:t,fieldItems:s,fieldGroupType:"measure"})},"measures"),a.jsx(Ga,{id:"views",label:"Views",startIcon:a.jsx(te,{name:"view",color:"purple"}),badge:a.jsx(qn,{label:l.length.toString(),color:"purple"}),children:a.jsx(Ja,{source:t,fieldItems:s,fieldGroupType:"view"})},"views")]})})]}):null}const Um={header:{display:"mly78zum5",flexDirection:"mlydt5ytf",padding:"mlye8ttls",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},title:{overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",fontWeight:"mly1xlr1w8",color:"mly1ue28sr",$$css:!0}};function LL({icon:e,title:t,tooltip:n}){const{onExpand:r}=u.useContext(oa);return a.jsx("div",{className:"mly78zum5 mlydt5ytf mly7a106z mlylqzeqv mly5yr21d mly1gzqxud mlyfuqftd",children:a.jsxs("div",{className:"mly78zum5 mlydt5ytf mly6s0dn4 mlyl56j7k mly167g77z mlye8ttls",children:[a.jsx(xe,{icon:e,variant:"flat",size:"compact",tooltip:n,onClick:r}),t&&a.jsx("div",{...k.props(z.body,ML.title),children:t})]})})}const ML={title:{fontWeight:"mly1xlr1w8",cursor:"mlyt0e3qv","writing-mode":"mly35i7",$$css:!0}};function KL({isInitiallyExpanded:e=!0,initialWidth:t,minWidth:n,icon:r,title:o,children:s}){const[l,i]=u.useState(e),[c,d]=u.useState(t),f=!l;return a.jsxs(oa.Provider,{value:{onExpand:()=>i(!0),onCollapse:()=>i(!1)},children:[a.jsxs("div",{...{0:{className:"mly1n2onr6 mly5yr21d mly3psx0u"},1:{className:"mly1n2onr6 mly5yr21d mly3psx0u mly1s85apg"}}[!!f<<0],style:{width:`${c}px`},children:[s,a.jsx(bk,{width:c,minWidth:n,onWidthChange:d})]}),f&&a.jsx(LL,{icon:r,title:o})]})}export{OL as MalloyExplorerProvider,XS as QueryActionBar,KT as QueryEditor,VL as QueryPanel,KL as ResizableCollapsiblePanel,bk as ResizeBar,ZL as ResultPanel,XL as SourcePanel};