renderer-package 1.2.37 → 1.2.38

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 (3182) hide show
  1. package/dist/chunks/a-arrow-down-OovcL6Qn.js +11 -0
  2. package/dist/chunks/a-arrow-up-BJ_YqU3L.js +11 -0
  3. package/dist/chunks/a-large-small-BICczrGh.js +11 -0
  4. package/dist/chunks/accessibility-BF4XCcEA.js +12 -0
  5. package/dist/chunks/activity-DQPW6Nec.js +14 -0
  6. package/dist/chunks/air-vent-BDX0ou7d.js +17 -0
  7. package/dist/chunks/airplay-B2kL1qVN.js +15 -0
  8. package/dist/chunks/alarm-clock-check-Jk1ax9Le.js +13 -0
  9. package/dist/chunks/alarm-clock-j4Rk7hBR.js +13 -0
  10. package/dist/chunks/alarm-clock-minus-B5kwB1nU.js +13 -0
  11. package/dist/chunks/alarm-clock-off-VqVjDguM.js +13 -0
  12. package/dist/chunks/alarm-clock-plus-CdDG6xKM.js +14 -0
  13. package/dist/chunks/alarm-smoke-LxxZNic_.js +15 -0
  14. package/dist/chunks/album-CZgYiKhO.js +9 -0
  15. package/dist/chunks/align-center-DWjuU4ff.js +10 -0
  16. package/dist/chunks/align-center-horizontal-DXNUZkuz.js +12 -0
  17. package/dist/chunks/align-center-vertical-DutH6Sc-.js +12 -0
  18. package/dist/chunks/align-end-horizontal-CYr60iGJ.js +10 -0
  19. package/dist/chunks/align-end-vertical-DMxy3fLl.js +10 -0
  20. package/dist/chunks/align-horizontal-distribute-center-Sd1HyL66.js +16 -0
  21. package/dist/chunks/align-horizontal-distribute-end-DssAZ5Oz.js +14 -0
  22. package/dist/chunks/align-horizontal-distribute-start-Do9KBbNn.js +14 -0
  23. package/dist/chunks/align-horizontal-justify-center-g_sV6UNf.js +13 -0
  24. package/dist/chunks/align-horizontal-justify-end-CVSCqj7s.js +10 -0
  25. package/dist/chunks/align-horizontal-justify-start-DlvjHWS6.js +10 -0
  26. package/dist/chunks/align-horizontal-space-around-CQmGwHvo.js +10 -0
  27. package/dist/chunks/align-horizontal-space-between-B0goCBjn.js +11 -0
  28. package/dist/chunks/align-justify-DDUwnByS.js +10 -0
  29. package/dist/chunks/align-left-BPee0Z4b.js +10 -0
  30. package/dist/chunks/align-right-Bne4cq-q.js +10 -0
  31. package/dist/chunks/align-start-horizontal-CyW2iAhA.js +10 -0
  32. package/dist/chunks/align-start-vertical-ClSVpMgG.js +10 -0
  33. package/dist/chunks/align-vertical-distribute-center-C1bcyhKk.js +16 -0
  34. package/dist/chunks/align-vertical-distribute-end-CM2F1OXF.js +11 -0
  35. package/dist/chunks/align-vertical-distribute-start-EmgiiWME.js +14 -0
  36. package/dist/chunks/align-vertical-justify-center-DLgnCrzv.js +10 -0
  37. package/dist/chunks/align-vertical-justify-end-BJIJdlHS.js +10 -0
  38. package/dist/chunks/align-vertical-justify-start-BszsHaLt.js +10 -0
  39. package/dist/chunks/align-vertical-space-around-Dc1yszi-.js +10 -0
  40. package/dist/chunks/align-vertical-space-between-BFWY5pOS.js +11 -0
  41. package/dist/chunks/ambulance-DK0-T0Lw.js +20 -0
  42. package/dist/chunks/ampersand-8QVypZLf.js +15 -0
  43. package/dist/chunks/ampersands-2uI0idTB.js +21 -0
  44. package/dist/chunks/amphora-DOyv3wYs.js +16 -0
  45. package/dist/chunks/anchor-Xr_58wJ0.js +10 -0
  46. package/dist/chunks/angry-Bi_8cpEY.js +13 -0
  47. package/dist/chunks/annoyed-R0OZjMSg.js +11 -0
  48. package/dist/chunks/antenna-BhDb9pPD.js +13 -0
  49. package/dist/chunks/anvil-D2CBVOUK.js +18 -0
  50. package/dist/chunks/aperture-CgD7OSKA.js +14 -0
  51. package/dist/chunks/app-window-BbxcwbJx.js +11 -0
  52. package/dist/chunks/app-window-mac-CXaqYXkr.js +11 -0
  53. package/dist/chunks/apple-CF0A5yyp.js +15 -0
  54. package/dist/chunks/archive-98hxBeaz.js +10 -0
  55. package/dist/chunks/archive-restore-DWW7DNMe.js +12 -0
  56. package/dist/chunks/archive-x-C4PUGRXT.js +11 -0
  57. package/dist/chunks/armchair-DeRwyTJI.js +17 -0
  58. package/dist/chunks/arrow-big-down-dash-ClZJsNvD.js +15 -0
  59. package/dist/chunks/arrow-big-down-xselMWkW.js +14 -0
  60. package/dist/chunks/arrow-big-left-BdHcAbR5.js +14 -0
  61. package/dist/chunks/arrow-big-left-dash-Df_TMUZE.js +15 -0
  62. package/dist/chunks/arrow-big-right-DrldnCAi.js +14 -0
  63. package/dist/chunks/arrow-big-right-dash-DN9XdxfJ.js +15 -0
  64. package/dist/chunks/arrow-big-up-Czb_nD67.js +14 -0
  65. package/dist/chunks/arrow-big-up-dash-D2PUWIdK.js +15 -0
  66. package/dist/chunks/arrow-down-0-1-Dr2VpFLZ.js +12 -0
  67. package/dist/chunks/arrow-down-1-0-C1yjXYU9.js +12 -0
  68. package/dist/chunks/arrow-down-a-z-Dpg4hXXl.js +12 -0
  69. package/dist/chunks/arrow-down-from-line-C5w6sINI.js +10 -0
  70. package/dist/chunks/arrow-down-left-DpWP_BHb.js +9 -0
  71. package/dist/chunks/arrow-down-narrow-wide-anUgf0kx.js +12 -0
  72. package/dist/chunks/arrow-down-right-BQQIpS0n.js +9 -0
  73. package/dist/chunks/arrow-down-to-dot-ZhseYOBB.js +10 -0
  74. package/dist/chunks/arrow-down-to-line-DhMd-uk5.js +10 -0
  75. package/dist/chunks/arrow-down-up-VcMbF9_J.js +11 -0
  76. package/dist/chunks/arrow-down-wide-narrow-7eKee7Mm.js +12 -0
  77. package/dist/chunks/arrow-down-z-a-ATFiewtB.js +12 -0
  78. package/dist/chunks/arrow-left-from-line-DnLvm1KK.js +10 -0
  79. package/dist/chunks/arrow-left-jntsxEn2.js +9 -0
  80. package/dist/chunks/arrow-left-to-line-CDyrdbjf.js +10 -0
  81. package/dist/chunks/arrow-right-NV8VtmJL.js +9 -0
  82. package/dist/chunks/arrow-right-from-line-CekZt_-U.js +10 -0
  83. package/dist/chunks/arrow-right-left-CWnz0-2g.js +11 -0
  84. package/dist/chunks/arrow-right-to-line-IYTcFjdo.js +10 -0
  85. package/dist/chunks/arrow-up-0-1-C7a6loxC.js +12 -0
  86. package/dist/chunks/arrow-up-1-0-GBsnGLgM.js +12 -0
  87. package/dist/chunks/arrow-up-a-z-CP4QTe5k.js +12 -0
  88. package/dist/chunks/arrow-up-from-dot-D61MpMPk.js +10 -0
  89. package/dist/chunks/arrow-up-from-line-C43nvIeb.js +10 -0
  90. package/dist/chunks/arrow-up-left-D5XXCLZl.js +9 -0
  91. package/dist/chunks/arrow-up-narrow-wide-BxFZ-Rvf.js +12 -0
  92. package/dist/chunks/arrow-up-right-COtzlIaV.js +9 -0
  93. package/dist/chunks/arrow-up-to-line-CXZgDkZJ.js +10 -0
  94. package/dist/chunks/arrow-up-wide-narrow-95z_glP5.js +12 -0
  95. package/dist/chunks/arrow-up-z-a-CURgvGxH.js +12 -0
  96. package/dist/chunks/arrows-up-from-line-oTLbNXs8.js +12 -0
  97. package/dist/chunks/asterisk-D0uuLf9k.js +10 -0
  98. package/dist/chunks/at-sign-DCjDPdzO.js +9 -0
  99. package/dist/chunks/atom-BYs5CHEe.js +22 -0
  100. package/dist/chunks/audio-lines-8JTmBrc8.js +13 -0
  101. package/dist/chunks/audio-waveform-DW-oWtRp.js +14 -0
  102. package/dist/chunks/award-h6a9RDUj.js +15 -0
  103. package/dist/chunks/axe-HblHdSWA.js +15 -0
  104. package/dist/chunks/axis-3d-DyT6I8Wz.js +11 -0
  105. package/dist/chunks/baby-C-IYujIB.js +17 -0
  106. package/dist/chunks/backpack-37fPQn_H.js +15 -0
  107. package/dist/chunks/badge-DzuCHvyP.js +14 -0
  108. package/dist/chunks/badge-alert-CqpgXK9t.js +16 -0
  109. package/dist/chunks/badge-cent-D9BYRrNs.js +16 -0
  110. package/dist/chunks/badge-check-D7nP_mVf.js +15 -0
  111. package/dist/chunks/badge-dollar-sign-D8SGyABU.js +16 -0
  112. package/dist/chunks/badge-euro-CIInERzB.js +16 -0
  113. package/dist/chunks/badge-indian-rupee-CJNG3I3V.js +17 -0
  114. package/dist/chunks/badge-info-CDwH9sfs.js +16 -0
  115. package/dist/chunks/badge-japanese-yen-B1wZtDJM.js +18 -0
  116. package/dist/chunks/badge-minus-vMuG0fvP.js +15 -0
  117. package/dist/chunks/badge-percent-Voasew18.js +17 -0
  118. package/dist/chunks/badge-plus-CNMYwQ-3.js +16 -0
  119. package/dist/chunks/badge-pound-sterling-BeTvwYLv.js +17 -0
  120. package/dist/chunks/badge-question-mark-C4-VYqj0.js +16 -0
  121. package/dist/chunks/badge-russian-ruble-BDwKbvoD.js +16 -0
  122. package/dist/chunks/badge-swiss-franc-WFng1dm-.js +17 -0
  123. package/dist/chunks/badge-turkish-lira-Bb5FZ26W.js +16 -0
  124. package/dist/chunks/badge-x-Dtn8AAYL.js +16 -0
  125. package/dist/chunks/baggage-claim-CKUWlf6L.js +12 -0
  126. package/dist/chunks/ban-D0p71uAB.js +9 -0
  127. package/dist/chunks/banana-CM9lHCaN.js +15 -0
  128. package/dist/chunks/bandage-G9m0WNkF.js +14 -0
  129. package/dist/chunks/banknote-Cix22auu.js +10 -0
  130. package/dist/chunks/banknote-arrow-down-CcfKidwG.js +13 -0
  131. package/dist/chunks/banknote-arrow-up-CmU1GSjJ.js +13 -0
  132. package/dist/chunks/banknote-x-BZpgucEJ.js +13 -0
  133. package/dist/chunks/barcode-UZ3w_elx.js +12 -0
  134. package/dist/chunks/barrel-BV8P8zGz.js +18 -0
  135. package/dist/chunks/baseline-B1y3dxjf.js +10 -0
  136. package/dist/chunks/bath-DLaFR5PG.js +18 -0
  137. package/dist/chunks/battery-YCrcJEkC.js +9 -0
  138. package/dist/chunks/battery-charging-BOhW4VRm.js +11 -0
  139. package/dist/chunks/battery-full-Dr1O0iw9.js +12 -0
  140. package/dist/chunks/battery-low-CFzmVO97.js +10 -0
  141. package/dist/chunks/battery-medium-CcvR1TW7.js +11 -0
  142. package/dist/chunks/battery-plus-D1aeEGyz.js +12 -0
  143. package/dist/chunks/battery-warning-B9zpHNcT.js +12 -0
  144. package/dist/chunks/beaker-Cub_ki0Q.js +10 -0
  145. package/dist/chunks/bean-D5PGsejI.js +15 -0
  146. package/dist/chunks/bean-off-BI4ezBnD.js +23 -0
  147. package/dist/chunks/bed-CteiBZNu.js +11 -0
  148. package/dist/chunks/bed-double-B-O-i2FJ.js +11 -0
  149. package/dist/chunks/bed-single-BcjLNioE.js +10 -0
  150. package/dist/chunks/beef-BqyzPUnu.js +22 -0
  151. package/dist/chunks/beer-CiNx-Y20.js +18 -0
  152. package/dist/chunks/beer-off-DuEMchZt.js +24 -0
  153. package/dist/chunks/bell-dot-ZSuKpZ_F.js +16 -0
  154. package/dist/chunks/bell-electric-ju03idvU.js +13 -0
  155. package/dist/chunks/bell-minus-C0XENV9P.js +16 -0
  156. package/dist/chunks/bell-off-74DYFuA_.js +17 -0
  157. package/dist/chunks/bell-plus-BkueTAFj.js +17 -0
  158. package/dist/chunks/bell-qgkLwbqs.js +15 -0
  159. package/dist/chunks/bell-ring-DrG_Oyu2.js +17 -0
  160. package/dist/chunks/between-horizontal-end-DWSIIKib.js +10 -0
  161. package/dist/chunks/between-horizontal-start-BVFDWsHQ.js +10 -0
  162. package/dist/chunks/between-vertical-end-BNiKOucG.js +10 -0
  163. package/dist/chunks/between-vertical-start-CpbyWFPc.js +10 -0
  164. package/dist/chunks/biceps-flexed-Dai40q1r.js +16 -0
  165. package/dist/chunks/bike-CKpM-18U.js +11 -0
  166. package/dist/chunks/binary-P-WuXJt5.js +13 -0
  167. package/dist/chunks/binoculars-xg5lcIhz.js +25 -0
  168. package/dist/chunks/biohazard-CIijzNrK.js +17 -0
  169. package/dist/chunks/bird-DHI0ND5u.js +13 -0
  170. package/dist/chunks/bitcoin-Ccy7Vu4g.js +14 -0
  171. package/dist/chunks/blend-DgCrlVYj.js +9 -0
  172. package/dist/chunks/blinds-DS_Kx7C2.js +14 -0
  173. package/dist/chunks/blocks-D7WnBgSb.js +15 -0
  174. package/dist/chunks/bluetooth-MP4NuITr.js +6 -0
  175. package/dist/chunks/bluetooth-connected-Cn7vmDZK.js +10 -0
  176. package/dist/chunks/bluetooth-off-CfNBM0Xp.js +10 -0
  177. package/dist/chunks/bluetooth-searching-BIw-NLWe.js +10 -0
  178. package/dist/chunks/bold-BCEojknl.js +11 -0
  179. package/dist/chunks/bolt-DKZog_3K.js +15 -0
  180. package/dist/chunks/bomb-jKgHT6o3.js +16 -0
  181. package/dist/chunks/bone-ad4Pz77J.js +14 -0
  182. package/dist/chunks/book-BYXBXYpJ.js +14 -0
  183. package/dist/chunks/book-a-B8uztIwD.js +16 -0
  184. package/dist/chunks/book-alert-DI-tk0ij.js +16 -0
  185. package/dist/chunks/book-audio-CSUxPab5.js +17 -0
  186. package/dist/chunks/book-check-C3BDXUVt.js +15 -0
  187. package/dist/chunks/book-copy-DuTbCRli.js +16 -0
  188. package/dist/chunks/book-dashed-DxuPUlqJ.js +18 -0
  189. package/dist/chunks/book-down-CX2fS_Bd.js +16 -0
  190. package/dist/chunks/book-headphones-C_zJutPb.js +17 -0
  191. package/dist/chunks/book-heart-BIjTzaeE.js +21 -0
  192. package/dist/chunks/book-image-GieIO7wr.js +16 -0
  193. package/dist/chunks/book-key-C9E9JYgn.js +12 -0
  194. package/dist/chunks/book-lock-7FS7-bTt.js +11 -0
  195. package/dist/chunks/book-marked-DGHK6Liq.js +15 -0
  196. package/dist/chunks/book-minus-DdCDe5Mx.js +15 -0
  197. package/dist/chunks/book-open-acHvbPDM.js +15 -0
  198. package/dist/chunks/book-open-check-ygmFcCwN.js +16 -0
  199. package/dist/chunks/book-open-text-CXaD-RDp.js +19 -0
  200. package/dist/chunks/book-plus-DrMBWox9.js +16 -0
  201. package/dist/chunks/book-text-g6wpqZhQ.js +16 -0
  202. package/dist/chunks/book-type-QpHMRzEw.js +17 -0
  203. package/dist/chunks/book-up-2-Cc1gQI1i.js +12 -0
  204. package/dist/chunks/book-up-7eg3CFEX.js +16 -0
  205. package/dist/chunks/book-user-BFUjbFfq.js +16 -0
  206. package/dist/chunks/book-x-CfAL2Ekh.js +16 -0
  207. package/dist/chunks/bookmark-CmqOMw17.js +8 -0
  208. package/dist/chunks/bookmark-check-4UGnsids.js +9 -0
  209. package/dist/chunks/bookmark-minus-BMuEmQf5.js +9 -0
  210. package/dist/chunks/bookmark-plus-Dt5NbO_x.js +10 -0
  211. package/dist/chunks/bookmark-x-BCv4HOIE.js +10 -0
  212. package/dist/chunks/boom-box-BDqRX__q.js +14 -0
  213. package/dist/chunks/bot-D-oLzeYG.js +13 -0
  214. package/dist/chunks/bot-message-square-pP1ueCdh.js +19 -0
  215. package/dist/chunks/bot-off-DWknEmYr.js +14 -0
  216. package/dist/chunks/bottle-wine-CoIWr1cS.js +15 -0
  217. package/dist/chunks/bow-arrow-9RHUT3ay.js +21 -0
  218. package/dist/chunks/box-Cs4RQTuV.js +16 -0
  219. package/dist/chunks/boxes-CD7IhxsV.js +37 -0
  220. package/dist/chunks/braces-1lfuLgDR.js +18 -0
  221. package/dist/chunks/brackets-Bb5ii8C-.js +9 -0
  222. package/dist/chunks/brain-1N_WabRe.js +15 -0
  223. package/dist/chunks/brain-circuit-B1L4wV3X.js +26 -0
  224. package/dist/chunks/brain-cog-DCk79F1B.js +34 -0
  225. package/dist/chunks/brick-wall-BLwPSA0q.js +15 -0
  226. package/dist/chunks/brick-wall-fire-Y9NmR5iV.js +23 -0
  227. package/dist/chunks/briefcase-D1YODJPb.js +9 -0
  228. package/dist/chunks/briefcase-business-DTH7YiMF.js +11 -0
  229. package/dist/chunks/briefcase-conveyor-belt-D7oDCj6Z.js +14 -0
  230. package/dist/chunks/briefcase-medical-CnwHlWD5.js +13 -0
  231. package/dist/chunks/bring-to-front-CpRGNw70.js +10 -0
  232. package/dist/chunks/brush-BDIdqsDn.js +13 -0
  233. package/dist/chunks/brush-cleaning-BykJcKaX.js +17 -0
  234. package/dist/chunks/bubbles-fQTdkmE6.js +11 -0
  235. package/dist/chunks/bug-BKxJJERY.js +24 -0
  236. package/dist/chunks/bug-off-CnnhgOEJ.js +16 -0
  237. package/dist/chunks/bug-play-B1nuwRku.js +22 -0
  238. package/dist/chunks/building-2-8qjLMqey.js +14 -0
  239. package/dist/chunks/building-CdUXljFI.js +18 -0
  240. package/dist/chunks/bundle-entry-DsWSHHQ_.js +65466 -0
  241. package/dist/chunks/bus-Cc5z2z0-.js +20 -0
  242. package/dist/chunks/bus-front-CxAKaNQq.js +16 -0
  243. package/dist/chunks/cable-DYt9PN0_.js +20 -0
  244. package/dist/chunks/cable-car-BzDVDv6V.js +15 -0
  245. package/dist/chunks/cake-Dl99JcpH.js +16 -0
  246. package/dist/chunks/cake-slice-B3zb-CJ-.js +17 -0
  247. package/dist/chunks/calculator-Bg3LkJRO.js +17 -0
  248. package/dist/chunks/calendar-1-DwRbPhE5.js +12 -0
  249. package/dist/chunks/calendar-arrow-down-eOLPFZpd.js +16 -0
  250. package/dist/chunks/calendar-arrow-up-DZ3tZpgL.js +13 -0
  251. package/dist/chunks/calendar-check-2-CvltSDHz.js +12 -0
  252. package/dist/chunks/calendar-check-DLsCW-TY.js +12 -0
  253. package/dist/chunks/calendar-clock-C2tttTi2.js +13 -0
  254. package/dist/chunks/calendar-cog-Be5g7Fq-.js +20 -0
  255. package/dist/chunks/calendar-days-W6wws8SA.js +17 -0
  256. package/dist/chunks/calendar-fold-Cgi3UAQa.js +12 -0
  257. package/dist/chunks/calendar-heart-CGOQCN6z.js +21 -0
  258. package/dist/chunks/calendar-minus-2-tkCJbVXt.js +12 -0
  259. package/dist/chunks/calendar-minus-yS4apqvg.js +12 -0
  260. package/dist/chunks/calendar-off-u7Z9X3s_.js +13 -0
  261. package/dist/chunks/calendar-plus-2-NeWRhMGL.js +13 -0
  262. package/dist/chunks/calendar-plus-CuxVZ1Db.js +13 -0
  263. package/dist/chunks/calendar-range-BVkI3w0i.js +15 -0
  264. package/dist/chunks/calendar-search-SNPm7MkA.js +13 -0
  265. package/dist/chunks/calendar-sync-CY5c2ZT9.js +15 -0
  266. package/dist/chunks/calendar-x-2-CwfKtZU_.js +13 -0
  267. package/dist/chunks/calendar-x-CPLqjd6K.js +13 -0
  268. package/dist/chunks/camera-off-VUpBGd-q.js +11 -0
  269. package/dist/chunks/candy-cane-Cw8WB7vg.js +18 -0
  270. package/dist/chunks/candy-off-D7xZ6VnC.js +29 -0
  271. package/dist/chunks/candy-x_zNqeyu.js +30 -0
  272. package/dist/chunks/cannabis-DPJpti_7.js +15 -0
  273. package/dist/chunks/captions-off-C_IlkwES.js +13 -0
  274. package/dist/chunks/captions-vTEkc_ia.js +9 -0
  275. package/dist/chunks/car-RVPPjMAV.js +17 -0
  276. package/dist/chunks/car-front-Br0xiPar.js +16 -0
  277. package/dist/chunks/car-taxi-front-BlbV6tWP.js +17 -0
  278. package/dist/chunks/caravan-CUG7pMQZ.js +11 -0
  279. package/dist/chunks/card-sim-CQIJQQZh.js +17 -0
  280. package/dist/chunks/carrot-CP1S2FmK.js +16 -0
  281. package/dist/chunks/case-lower-CB8a5J7N.js +11 -0
  282. package/dist/chunks/case-sensitive-ClzDntuV.js +11 -0
  283. package/dist/chunks/case-upper-Db8PntWG.js +16 -0
  284. package/dist/chunks/cassette-tape-CuODCb2t.js +12 -0
  285. package/dist/chunks/cast-DQxmBOnI.js +11 -0
  286. package/dist/chunks/castle-DOTechaY.js +15 -0
  287. package/dist/chunks/cat-CPvoDTQS.js +17 -0
  288. package/dist/chunks/cctv-DtDYUKEp.js +24 -0
  289. package/dist/chunks/chart-area-BFWV8619.js +15 -0
  290. package/dist/chunks/chart-bar-CI5ECx64.js +11 -0
  291. package/dist/chunks/chart-bar-big-CkZXpbdk.js +10 -0
  292. package/dist/chunks/chart-bar-decreasing-D9z1aIXo.js +11 -0
  293. package/dist/chunks/chart-bar-increasing-Cj5qKnoR.js +11 -0
  294. package/dist/chunks/chart-bar-stacked-BH5tDtHD.js +12 -0
  295. package/dist/chunks/chart-candlestick-Y5i6Ciq7.js +14 -0
  296. package/dist/chunks/chart-column-CEnO-E5F.js +11 -0
  297. package/dist/chunks/chart-column-big-LZYmn6tz.js +10 -0
  298. package/dist/chunks/chart-column-decreasing-nxTAUaU9.js +11 -0
  299. package/dist/chunks/chart-column-increasing-DMFYYugn.js +11 -0
  300. package/dist/chunks/chart-column-stacked-CPd87Zzw.js +12 -0
  301. package/dist/chunks/chart-gantt-CXJJDx40.js +11 -0
  302. package/dist/chunks/chart-line-D_R2WqZH.js +9 -0
  303. package/dist/chunks/chart-network-Bx0EFRSx.js +14 -0
  304. package/dist/chunks/chart-no-axes-column-Ml-rmHkt.js +10 -0
  305. package/dist/chunks/chart-no-axes-column-decreasing-BusLQEfk.js +10 -0
  306. package/dist/chunks/chart-no-axes-column-increasing-C93PYANF.js +10 -0
  307. package/dist/chunks/chart-no-axes-combined-D1GJ6Fts.js +16 -0
  308. package/dist/chunks/chart-no-axes-gantt-OKePxx5Y.js +10 -0
  309. package/dist/chunks/chart-pie-DSvUenry.js +15 -0
  310. package/dist/chunks/chart-scatter-Ca-CnLYL.js +13 -0
  311. package/dist/chunks/chart-spline-Bj40dvCJ.js +9 -0
  312. package/dist/chunks/check-check-2R3_dr3t.js +9 -0
  313. package/dist/chunks/check-line-Cp19UNXM.js +10 -0
  314. package/dist/chunks/chef-hat-BiRY5q83.js +15 -0
  315. package/dist/chunks/cherry-ChfSX4Zd.js +11 -0
  316. package/dist/chunks/chevron-first-Cnu0oy0h.js +9 -0
  317. package/dist/chunks/chevron-last-CRBbHos2.js +9 -0
  318. package/dist/chunks/chevrons-down-D7M4QRyO.js +9 -0
  319. package/dist/chunks/chevrons-down-up-B6LgZrr5.js +9 -0
  320. package/dist/chunks/chevrons-left-givs7jsM.js +9 -0
  321. package/dist/chunks/chevrons-left-right-ellipsis-B24t6KWw.js +12 -0
  322. package/dist/chunks/chevrons-left-right-joFgJ9Za.js +9 -0
  323. package/dist/chunks/chevrons-right-Dqu5zgf9.js +9 -0
  324. package/dist/chunks/chevrons-right-left-doKHnjZq.js +9 -0
  325. package/dist/chunks/chevrons-up-CY8nJlUf.js +9 -0
  326. package/dist/chunks/chevrons-up-down-BSVgnLCk.js +9 -0
  327. package/dist/chunks/chrome-BgyhY85C.js +12 -0
  328. package/dist/chunks/church-CpRxduoE.js +24 -0
  329. package/dist/chunks/cigarette-DxEMUvdN.js +12 -0
  330. package/dist/chunks/cigarette-off-DfR-EeVa.js +13 -0
  331. package/dist/chunks/circle-arrow-down-9mYylOJ0.js +10 -0
  332. package/dist/chunks/circle-arrow-left-BnOzfAvH.js +10 -0
  333. package/dist/chunks/circle-arrow-out-down-left-DF1SPrx2.js +10 -0
  334. package/dist/chunks/circle-arrow-out-down-right-BuPueBV7.js +10 -0
  335. package/dist/chunks/circle-arrow-out-up-left-DjZeBP68.js +10 -0
  336. package/dist/chunks/circle-arrow-out-up-right-BRWPJ7NY.js +10 -0
  337. package/dist/chunks/circle-arrow-right-B6yuyfAi.js +10 -0
  338. package/dist/chunks/circle-arrow-up-DXWgb3Gq.js +10 -0
  339. package/dist/chunks/circle-check-DMI-hrDX.js +9 -0
  340. package/dist/chunks/circle-check-big-TnJy-0w_.js +9 -0
  341. package/dist/chunks/circle-chevron-down-DTOAvIcs.js +9 -0
  342. package/dist/chunks/circle-chevron-left-Dv3qXg4v.js +9 -0
  343. package/dist/chunks/circle-chevron-right-BcY-Lag7.js +9 -0
  344. package/dist/chunks/circle-chevron-up-DLi9T9kG.js +9 -0
  345. package/dist/chunks/circle-dashed-Eu_2tJ-X.js +15 -0
  346. package/dist/chunks/circle-divide-DPhJxXvX.js +11 -0
  347. package/dist/chunks/circle-dollar-sign-BEx-5_Zf.js +10 -0
  348. package/dist/chunks/circle-dot-dashed-B6f-nC01.js +16 -0
  349. package/dist/chunks/circle-ellipsis-D0A1lgjL.js +11 -0
  350. package/dist/chunks/circle-equal-DzYIEM-z.js +10 -0
  351. package/dist/chunks/circle-fading-arrow-up-DfGXXsgc.js +14 -0
  352. package/dist/chunks/circle-fading-plus-BYDZQvCn.js +14 -0
  353. package/dist/chunks/circle-gauge-Bsup0e_l.js +10 -0
  354. package/dist/chunks/circle-minus-CwdVVUTL.js +9 -0
  355. package/dist/chunks/circle-off-CdmF5klT.js +10 -0
  356. package/dist/chunks/circle-parking-off-Dv4FPzje.js +13 -0
  357. package/dist/chunks/circle-parking-wWSRkIsN.js +9 -0
  358. package/dist/chunks/circle-pause-D-Sx4Lli.js +10 -0
  359. package/dist/chunks/circle-percent-DkBvXuGh.js +11 -0
  360. package/dist/chunks/circle-play-CxHyqOlt.js +15 -0
  361. package/dist/chunks/circle-plus-rfoqnCxg.js +10 -0
  362. package/dist/chunks/circle-pound-sterling-UwPLVH85.js +11 -0
  363. package/dist/chunks/circle-power-noDDyKKZ.js +10 -0
  364. package/dist/chunks/circle-question-mark-j0JPAG_q.js +10 -0
  365. package/dist/chunks/circle-slash-2-DKmOO8jb.js +9 -0
  366. package/dist/chunks/circle-slash-CSx-G2Xe.js +9 -0
  367. package/dist/chunks/circle-small-DzGTi5Ld.js +6 -0
  368. package/dist/chunks/circle-stop-BVd63EWx.js +9 -0
  369. package/dist/chunks/circle-user-gxRd8bz_.js +10 -0
  370. package/dist/chunks/circle-user-round-IQjxIBNF.js +10 -0
  371. package/dist/chunks/circle-x-BMUknb5L.js +10 -0
  372. package/dist/chunks/circuit-board-B2xdODVT.js +12 -0
  373. package/dist/chunks/citrus-DFJEiAYb.js +17 -0
  374. package/dist/chunks/clapperboard-CRBqhiX5.js +14 -0
  375. package/dist/chunks/clipboard-Io1kU6gW.js +15 -0
  376. package/dist/chunks/clipboard-check-C6-cku4T.js +16 -0
  377. package/dist/chunks/clipboard-clock-DmSxrE9Q.js +12 -0
  378. package/dist/chunks/clipboard-copy-CJy9BWVf.js +12 -0
  379. package/dist/chunks/clipboard-list-AQ1VyuvP.js +19 -0
  380. package/dist/chunks/clipboard-minus-BbgoY_Pf.js +16 -0
  381. package/dist/chunks/clipboard-paste-BphX6SmS.js +12 -0
  382. package/dist/chunks/clipboard-pen-Bg0U-93o.js +17 -0
  383. package/dist/chunks/clipboard-pen-line-DttA05Qx.js +18 -0
  384. package/dist/chunks/clipboard-plus-CljT17q0.js +17 -0
  385. package/dist/chunks/clipboard-type-q7OW7H1P.js +18 -0
  386. package/dist/chunks/clipboard-x-CM4-nR1K.js +17 -0
  387. package/dist/chunks/clock-1-tZgwne62.js +9 -0
  388. package/dist/chunks/clock-10-DsJFl7ae.js +9 -0
  389. package/dist/chunks/clock-11-LAOY5RrH.js +9 -0
  390. package/dist/chunks/clock-12-C-oZ9JUX.js +9 -0
  391. package/dist/chunks/clock-2-BhLS6nnd.js +9 -0
  392. package/dist/chunks/clock-3-t0KDc2DY.js +9 -0
  393. package/dist/chunks/clock-4-grnt7DuY.js +9 -0
  394. package/dist/chunks/clock-5-BBksyxov.js +9 -0
  395. package/dist/chunks/clock-6-BmWpRiz-.js +9 -0
  396. package/dist/chunks/clock-7-DO5hiRRB.js +9 -0
  397. package/dist/chunks/clock-8-Bv7F6UpH.js +9 -0
  398. package/dist/chunks/clock-9-BJzvVzzg.js +9 -0
  399. package/dist/chunks/clock-B-WZdcLt.js +9 -0
  400. package/dist/chunks/clock-alert-jux6GptH.js +11 -0
  401. package/dist/chunks/clock-arrow-down-Bnv_sdS6.js +11 -0
  402. package/dist/chunks/clock-arrow-up-Bf0-Sd-B.js +11 -0
  403. package/dist/chunks/clock-fading-Dsj0P1Qf.js +13 -0
  404. package/dist/chunks/clock-plus-Co7XPrHu.js +11 -0
  405. package/dist/chunks/closed-caption-BtvSj1ro.js +10 -0
  406. package/dist/chunks/cloud-alert-DCMvYQ6I.js +10 -0
  407. package/dist/chunks/cloud-check-Bx1a21kj.js +9 -0
  408. package/dist/chunks/cloud-cog-y_TsnXlP.js +22 -0
  409. package/dist/chunks/cloud-download-CER5mPTf.js +10 -0
  410. package/dist/chunks/cloud-drizzle-um1O2zwc.js +14 -0
  411. package/dist/chunks/cloud-fog-DhX_uRvg.js +10 -0
  412. package/dist/chunks/cloud-hail-DkO82thG.js +14 -0
  413. package/dist/chunks/cloud-lightning-VMWoEj_k.js +9 -0
  414. package/dist/chunks/cloud-moon-BbI4NjaL.js +15 -0
  415. package/dist/chunks/cloud-moon-rain-DB1q04GC.js +17 -0
  416. package/dist/chunks/cloud-off-DYj2mpE4.js +13 -0
  417. package/dist/chunks/cloud-rain-wind-Dqrzs5rW.js +11 -0
  418. package/dist/chunks/cloud-rain-zx57XH8Q.js +11 -0
  419. package/dist/chunks/cloud-snow-rwonIAUc.js +14 -0
  420. package/dist/chunks/cloud-sun-DXN06bd0.js +13 -0
  421. package/dist/chunks/cloud-sun-rain-DwD7n8Eg.js +15 -0
  422. package/dist/chunks/cloud-upload-D21BpyOf.js +10 -0
  423. package/dist/chunks/cloudy-U6hugXwo.js +9 -0
  424. package/dist/chunks/clover-BxhgpiRd.js +16 -0
  425. package/dist/chunks/club-COyCjpwR.js +15 -0
  426. package/dist/chunks/code-C6w-OSQk.js +9 -0
  427. package/dist/chunks/code-xml-DuwTtCr0.js +10 -0
  428. package/dist/chunks/codepen-D6qZL1sc.js +12 -0
  429. package/dist/chunks/codesandbox-KzFkD31U.js +19 -0
  430. package/dist/chunks/coffee-CtT5PKAs.js +17 -0
  431. package/dist/chunks/cog-ClPtRcVV.js +21 -0
  432. package/dist/chunks/coins-BOISlXmi.js +11 -0
  433. package/dist/chunks/columns-2-CuG1LWop.js +9 -0
  434. package/dist/chunks/columns-3-Bly2rXpM.js +10 -0
  435. package/dist/chunks/columns-3-cog-BBQ0g38r.js +19 -0
  436. package/dist/chunks/columns-4-Diwmhj67.js +11 -0
  437. package/dist/chunks/combine-Bw8cxwXa.js +13 -0
  438. package/dist/chunks/command-4FVegFLR.js +11 -0
  439. package/dist/chunks/compass-Ea5Ach_a.js +15 -0
  440. package/dist/chunks/component-C3GbsrZc.js +35 -0
  441. package/dist/chunks/computer-DzNG2qTy.js +11 -0
  442. package/dist/chunks/concierge-bell-DSK9voaK.js +14 -0
  443. package/dist/chunks/cone-C7zotUAh.js +9 -0
  444. package/dist/chunks/construction-35e2r0ia.js +15 -0
  445. package/dist/chunks/contact-C7EyWb7f.js +12 -0
  446. package/dist/chunks/contact-round-CR91Ko4W.js +12 -0
  447. package/dist/chunks/container-CfNKBVLm.js +18 -0
  448. package/dist/chunks/contrast-DbM2n4pF.js +9 -0
  449. package/dist/chunks/cookie-DUBQG1qJ.js +13 -0
  450. package/dist/chunks/cooking-pot-C_czAZkf.js +17 -0
  451. package/dist/chunks/copy-KO8frNlg.js +9 -0
  452. package/dist/chunks/copy-check-fGQKnaWe.js +10 -0
  453. package/dist/chunks/copy-minus-BwyBtThI.js +10 -0
  454. package/dist/chunks/copy-plus-ChF4J31W.js +11 -0
  455. package/dist/chunks/copy-slash-Dv2jbXtG.js +10 -0
  456. package/dist/chunks/copy-x-4skUXh0q.js +11 -0
  457. package/dist/chunks/copyleft-DFxoq7Zo.js +9 -0
  458. package/dist/chunks/copyright-BxILY1n7.js +9 -0
  459. package/dist/chunks/corner-down-left-Cbkom3dH.js +9 -0
  460. package/dist/chunks/corner-down-right-CvlmnkgJ.js +9 -0
  461. package/dist/chunks/corner-left-down-59gESyg9.js +9 -0
  462. package/dist/chunks/corner-left-up-BJg25vt3.js +9 -0
  463. package/dist/chunks/corner-right-down-DrwGLEnc.js +9 -0
  464. package/dist/chunks/corner-right-up-Pl5lC-jG.js +9 -0
  465. package/dist/chunks/corner-up-left-CDYO8FsQ.js +9 -0
  466. package/dist/chunks/corner-up-right-BfelzoAm.js +9 -0
  467. package/dist/chunks/cpu-GP7M_Toi.js +21 -0
  468. package/dist/chunks/creative-commons-CGPp-3xn.js +16 -0
  469. package/dist/chunks/credit-card-CUAjYgTc.js +9 -0
  470. package/dist/chunks/croissant-BO2fGWu7.js +18 -0
  471. package/dist/chunks/crop-Bv8TFc-f.js +9 -0
  472. package/dist/chunks/cross-CuWN6bZh.js +14 -0
  473. package/dist/chunks/crosshair-BpgY_Iw9.js +12 -0
  474. package/dist/chunks/crown-C9gsIM88.js +15 -0
  475. package/dist/chunks/cuboid-CYN3gX2g.js +16 -0
  476. package/dist/chunks/cup-soda-DHxfJaOp.js +11 -0
  477. package/dist/chunks/currency-CLVbJCjn.js +12 -0
  478. package/dist/chunks/cylinder-RJHHAiYk.js +9 -0
  479. package/dist/chunks/dam-DfLg-Jqq.js +20 -0
  480. package/dist/chunks/database-DFZru_3Z.js +10 -0
  481. package/dist/chunks/database-backup-1CFy7igy.js +19 -0
  482. package/dist/chunks/database-zap-B_rrDie4.js +12 -0
  483. package/dist/chunks/decimals-arrow-left-ySpPQNMV.js +11 -0
  484. package/dist/chunks/decimals-arrow-right-DZ4IMzXI.js +12 -0
  485. package/dist/chunks/delete-DctmA6dl.js +16 -0
  486. package/dist/chunks/dessert-BjwrwF_9.js +16 -0
  487. package/dist/chunks/diameter-DQMv-qmG.js +12 -0
  488. package/dist/chunks/diamond-DqqCwbtt.js +14 -0
  489. package/dist/chunks/diamond-minus-BakBM5Rw.js +15 -0
  490. package/dist/chunks/diamond-percent-nj2yxqng.js +17 -0
  491. package/dist/chunks/diamond-plus-FSFsd8H5.js +16 -0
  492. package/dist/chunks/dice-1-D214fRyA.js +9 -0
  493. package/dist/chunks/dice-2-DFO1E0Ak.js +10 -0
  494. package/dist/chunks/dice-3-Ce4-XVhk.js +11 -0
  495. package/dist/chunks/dice-4-CHYnQIvR.js +12 -0
  496. package/dist/chunks/dice-5-C7LyamkE.js +13 -0
  497. package/dist/chunks/dice-6-D9wbv4zU.js +14 -0
  498. package/dist/chunks/dices-XU3XmWxQ.js +16 -0
  499. package/dist/chunks/diff-CvBWCWcP.js +10 -0
  500. package/dist/chunks/disc-2-BJbMiWZd.js +10 -0
  501. package/dist/chunks/disc-3-8SiNE1Gq.js +11 -0
  502. package/dist/chunks/disc-BlVYexU7.js +9 -0
  503. package/dist/chunks/disc-album-BZU_rVw5.js +10 -0
  504. package/dist/chunks/divide-BYIat7Ca.js +10 -0
  505. package/dist/chunks/dna-BHqN2oMN.js +18 -0
  506. package/dist/chunks/dna-off-CXbMx3YZ.js +17 -0
  507. package/dist/chunks/dock-BGkY_KZB.js +10 -0
  508. package/dist/chunks/dog-DIlYShnB.js +24 -0
  509. package/dist/chunks/dollar-sign-D4M11fsB.js +9 -0
  510. package/dist/chunks/donut-Ci-8-MJL.js +15 -0
  511. package/dist/chunks/door-closed-DKTKjrLb.js +10 -0
  512. package/dist/chunks/door-closed-locked-Zitp6R1A.js +12 -0
  513. package/dist/chunks/door-open-hmhX962d.js +18 -0
  514. package/dist/chunks/dot-C8RFSjQX.js +6 -0
  515. package/dist/chunks/drafting-compass-D9JBMYZ2.js +12 -0
  516. package/dist/chunks/drama-CmGI0yxi.js +21 -0
  517. package/dist/chunks/dribbble-C6OajM8Y.js +11 -0
  518. package/dist/chunks/drill-DnpabxPv.js +22 -0
  519. package/dist/chunks/drone-Bn4OE7CM.js +16 -0
  520. package/dist/chunks/droplet-W9l7_s-O.js +14 -0
  521. package/dist/chunks/droplet-off-D3ItUAoG.js +19 -0
  522. package/dist/chunks/droplets-CWe2K1-g.js +21 -0
  523. package/dist/chunks/drum-CyDTAnf5.js +14 -0
  524. package/dist/chunks/drumstick-BoqXazWM.js +18 -0
  525. package/dist/chunks/dumbbell-jJaJVQ4y.js +24 -0
  526. package/dist/chunks/ear-DSbXRsfW.js +9 -0
  527. package/dist/chunks/ear-off-KZ_a4Uvn.js +12 -0
  528. package/dist/chunks/earth-ZeAp_vNE.js +17 -0
  529. package/dist/chunks/earth-lock-MUWXnUeW.js +13 -0
  530. package/dist/chunks/eclipse-DNvi_XNx.js +9 -0
  531. package/dist/chunks/egg-BBOEHgF5.js +8 -0
  532. package/dist/chunks/egg-fried-2FZdWO0c.js +15 -0
  533. package/dist/chunks/egg-off-BQ_4dAiq.js +10 -0
  534. package/dist/chunks/ellipsis-4nfH4QYw.js +10 -0
  535. package/dist/chunks/ellipsis-vertical-cC5IbBJn.js +10 -0
  536. package/dist/chunks/equal-BzIYSU-a.js +9 -0
  537. package/dist/chunks/equal-approximately-DTsSj-WU.js +9 -0
  538. package/dist/chunks/equal-not-CCSyxJPr.js +10 -0
  539. package/dist/chunks/eraser-DEwWhsag.js +15 -0
  540. package/dist/chunks/ethernet-port-D4m0dQUN.js +18 -0
  541. package/dist/chunks/euro-D1-PUDQU.js +16 -0
  542. package/dist/chunks/eye-Bj7UG7W_.js +15 -0
  543. package/dist/chunks/eye-closed-cUmja5ab.js +12 -0
  544. package/dist/chunks/eye-off-1esk7iTD.js +23 -0
  545. package/dist/chunks/facebook-CaTxg8w6.js +11 -0
  546. package/dist/chunks/factory-DBcYqGgV.js +17 -0
  547. package/dist/chunks/fan-C26GFAny.js +15 -0
  548. package/dist/chunks/fast-forward-ke4iEdkX.js +15 -0
  549. package/dist/chunks/feather-BJXoJppv.js +16 -0
  550. package/dist/chunks/fence-SpHz_tL0.js +14 -0
  551. package/dist/chunks/ferris-wheel-DWk5j_2Z.js +16 -0
  552. package/dist/chunks/figma-B-f354xk.js +12 -0
  553. package/dist/chunks/file-Co1n0sh5.js +9 -0
  554. package/dist/chunks/file-archive-C9Ezvj5M.js +16 -0
  555. package/dist/chunks/file-audio-1HZsy5Rv.js +16 -0
  556. package/dist/chunks/file-audio-2-DIMJmcgb.js +12 -0
  557. package/dist/chunks/file-axis-3d-BO9rj5hl.js +11 -0
  558. package/dist/chunks/file-badge-2-Vx9Xq0JG.js +16 -0
  559. package/dist/chunks/file-badge-DmlS1rof.js +17 -0
  560. package/dist/chunks/file-box-D1jgQ-1y.js +18 -0
  561. package/dist/chunks/file-chart-column-HKk7eWfU.js +12 -0
  562. package/dist/chunks/file-chart-column-increasing-CzouMeec.js +12 -0
  563. package/dist/chunks/file-chart-line-Ckj8AdVS.js +10 -0
  564. package/dist/chunks/file-chart-pie-R82fdZkA.js +17 -0
  565. package/dist/chunks/file-check-2-CijAsEFh.js +10 -0
  566. package/dist/chunks/file-check-BlD6BIoe.js +10 -0
  567. package/dist/chunks/file-clock-CAE_eQIk.js +11 -0
  568. package/dist/chunks/file-code-2-Cme-lxH5.js +11 -0
  569. package/dist/chunks/file-code-BPKv_dlS.js +11 -0
  570. package/dist/chunks/file-cog-D5wKtAl9.js +24 -0
  571. package/dist/chunks/file-diff-DdIbuUMT.js +11 -0
  572. package/dist/chunks/file-digit-DP0PZR89.js +12 -0
  573. package/dist/chunks/file-down-cN68d4LK.js +11 -0
  574. package/dist/chunks/file-heart-z5tMOpMO.js +19 -0
  575. package/dist/chunks/file-image-BjpIqwZ9.js +11 -0
  576. package/dist/chunks/file-input-BnUkgay4.js +11 -0
  577. package/dist/chunks/file-json-2-Q9I0T-_m.js +17 -0
  578. package/dist/chunks/file-json-Bwdv3Png.js +17 -0
  579. package/dist/chunks/file-key-2-B7ggtQkr.js +12 -0
  580. package/dist/chunks/file-key-Bs3ujA6x.js +11 -0
  581. package/dist/chunks/file-lock-2-CJ-MIFCG.js +11 -0
  582. package/dist/chunks/file-lock-95UVZLqS.js +10 -0
  583. package/dist/chunks/file-minus-2-D59ppDsF.js +10 -0
  584. package/dist/chunks/file-minus-YXibakiR.js +10 -0
  585. package/dist/chunks/file-music-C41ad5zc.js +11 -0
  586. package/dist/chunks/file-output-B2NWcLKi.js +12 -0
  587. package/dist/chunks/file-pen-by3NooBV.js +16 -0
  588. package/dist/chunks/file-pen-line-DPwO6EcN.js +22 -0
  589. package/dist/chunks/file-play-BU0zlAj5.js +16 -0
  590. package/dist/chunks/file-plus-2-KuAK_VAV.js +11 -0
  591. package/dist/chunks/file-plus-BaWpjimZ.js +11 -0
  592. package/dist/chunks/file-question-mark-hoqAon1T.js +10 -0
  593. package/dist/chunks/file-scan-NbN4SAFb.js +13 -0
  594. package/dist/chunks/file-search-2-pj4bCdIG.js +11 -0
  595. package/dist/chunks/file-search-uPmeBHb_.js +14 -0
  596. package/dist/chunks/file-sliders-CR12fmDb.js +13 -0
  597. package/dist/chunks/file-spreadsheet-i20Z4Z5b.js +13 -0
  598. package/dist/chunks/file-stack-C27lBQC2.js +16 -0
  599. package/dist/chunks/file-symlink-Ddk4_1HJ.js +16 -0
  600. package/dist/chunks/file-terminal-D29Ig2r-.js +11 -0
  601. package/dist/chunks/file-type-2-C0F26iRM.js +12 -0
  602. package/dist/chunks/file-type-D1djSAWr.js +12 -0
  603. package/dist/chunks/file-up-CBkPZrGk.js +11 -0
  604. package/dist/chunks/file-user-BiBpHNW6.js +11 -0
  605. package/dist/chunks/file-video-camera-B64pRGua.js +17 -0
  606. package/dist/chunks/file-volume-2-P_WOH-1s.js +12 -0
  607. package/dist/chunks/file-volume-CJ5DGMk5.js +20 -0
  608. package/dist/chunks/file-warning-Cf-ZHfEt.js +10 -0
  609. package/dist/chunks/file-x-2-BKIQ_s7c.js +11 -0
  610. package/dist/chunks/file-x-XAYes3f-.js +11 -0
  611. package/dist/chunks/files-CQQZnm5h.js +16 -0
  612. package/dist/chunks/film-iPf8igP6.js +15 -0
  613. package/dist/chunks/fingerprint-CTQDdCf3.js +16 -0
  614. package/dist/chunks/fire-extinguisher-D510NybF.js +13 -0
  615. package/dist/chunks/fish-CssAauOv.js +31 -0
  616. package/dist/chunks/fish-off-744Fg556.js +28 -0
  617. package/dist/chunks/fish-symbol-BJPWeEC0.js +8 -0
  618. package/dist/chunks/flag-kctyj9DL.js +14 -0
  619. package/dist/chunks/flag-off-NcqaooMJ.js +11 -0
  620. package/dist/chunks/flag-triangle-left-ZFArPbw2.js +11 -0
  621. package/dist/chunks/flag-triangle-right-B_7e3HnZ.js +11 -0
  622. package/dist/chunks/flame-DCt82-lT.js +14 -0
  623. package/dist/chunks/flame-kindling-CauUk5O-.js +16 -0
  624. package/dist/chunks/flashlight-off-G_yipz63.js +11 -0
  625. package/dist/chunks/flashlight-vlHEJ7pX.js +16 -0
  626. package/dist/chunks/flask-conical-D4qIclHb.js +16 -0
  627. package/dist/chunks/flask-conical-off-1h8Zg8IT.js +13 -0
  628. package/dist/chunks/flask-round-DUjZkrJb.js +10 -0
  629. package/dist/chunks/flip-horizontal-2-DifEZRSh.js +13 -0
  630. package/dist/chunks/flip-horizontal-DwDQzx9d.js +13 -0
  631. package/dist/chunks/flip-vertical-2-D8k5qEOm.js +13 -0
  632. package/dist/chunks/flip-vertical-DZAibu0b.js +13 -0
  633. package/dist/chunks/flower-2-CT3aUcAl.js +18 -0
  634. package/dist/chunks/flower-l9fa66WY.js +23 -0
  635. package/dist/chunks/focus-B4maHrEl.js +12 -0
  636. package/dist/chunks/fold-horizontal-XpBRTdww.js +15 -0
  637. package/dist/chunks/fold-vertical-CwuTV2Ig.js +15 -0
  638. package/dist/chunks/folder-CkgCSQhC.js +14 -0
  639. package/dist/chunks/folder-archive-BZ1IHVXo.js +17 -0
  640. package/dist/chunks/folder-check-Bzs8us9b.js +15 -0
  641. package/dist/chunks/folder-clock-CVJgeBuT.js +16 -0
  642. package/dist/chunks/folder-closed-B6MW6hwv.js +15 -0
  643. package/dist/chunks/folder-code-kMBMsAvA.js +16 -0
  644. package/dist/chunks/folder-cog-kxKymNOW.js +23 -0
  645. package/dist/chunks/folder-dot-BFEJG1Gr.js +15 -0
  646. package/dist/chunks/folder-down-DxBSiQLY.js +16 -0
  647. package/dist/chunks/folder-git-2-BVBNDZWO.js +17 -0
  648. package/dist/chunks/folder-git-DtEtjqYM.js +17 -0
  649. package/dist/chunks/folder-heart-BuHctaxz.js +21 -0
  650. package/dist/chunks/folder-input-C8iUlaw_.js +16 -0
  651. package/dist/chunks/folder-kanban-CDmGJudC.js +17 -0
  652. package/dist/chunks/folder-key-Dmwesxlg.js +17 -0
  653. package/dist/chunks/folder-lock-BL_gQ7sh.js +16 -0
  654. package/dist/chunks/folder-minus-CTgLxp7A.js +15 -0
  655. package/dist/chunks/folder-open-dot-MTQqNLLI.js +15 -0
  656. package/dist/chunks/folder-open-jP0L-UdP.js +14 -0
  657. package/dist/chunks/folder-output-Bvhhlbg9.js +16 -0
  658. package/dist/chunks/folder-pen-DOpn-yg2.js +21 -0
  659. package/dist/chunks/folder-plus-B65-cE1s.js +16 -0
  660. package/dist/chunks/folder-root-BPNhwbxz.js +16 -0
  661. package/dist/chunks/folder-search-2-DHlF8nTq.js +16 -0
  662. package/dist/chunks/folder-search-DpBaft-Q.js +16 -0
  663. package/dist/chunks/folder-symlink-HVS12_h2.js +15 -0
  664. package/dist/chunks/folder-sync-BBSm708g.js +18 -0
  665. package/dist/chunks/folder-tree-BBdyNnfs.js +23 -0
  666. package/dist/chunks/folder-up-FIYJear5.js +16 -0
  667. package/dist/chunks/folder-x-B6hvnZ8N.js +16 -0
  668. package/dist/chunks/folders-jQ_UwPrO.js +18 -0
  669. package/dist/chunks/footprints-CxIWMwAo.js +23 -0
  670. package/dist/chunks/forklift-B9CbX0N_.js +11 -0
  671. package/dist/chunks/forward-DuRjOxGr.js +9 -0
  672. package/dist/chunks/frame--eJ0CXYF.js +11 -0
  673. package/dist/chunks/framer-B-4K3rqq.js +8 -0
  674. package/dist/chunks/frown-BuM68EsK.js +11 -0
  675. package/dist/chunks/fuel-Cjauu0M1.js +17 -0
  676. package/dist/chunks/fullscreen-BPTmqmoR.js +12 -0
  677. package/dist/chunks/funnel-JuxxITDX.js +14 -0
  678. package/dist/chunks/funnel-plus-CIKkZmtg.js +16 -0
  679. package/dist/chunks/funnel-x-Co9LsI0r.js +16 -0
  680. package/dist/chunks/gallery-horizontal-dRwXxq_N.js +10 -0
  681. package/dist/chunks/gallery-horizontal-end-CSKt_1BV.js +10 -0
  682. package/dist/chunks/gallery-thumbnails-B-soac3l.js +12 -0
  683. package/dist/chunks/gallery-vertical-QCO73d1V.js +10 -0
  684. package/dist/chunks/gallery-vertical-end-C8X1MG-2.js +10 -0
  685. package/dist/chunks/gamepad-2-_1Ptfwiu.js +18 -0
  686. package/dist/chunks/gamepad-DgYbIsS3.js +12 -0
  687. package/dist/chunks/gauge-CJ_X98bs.js +9 -0
  688. package/dist/chunks/gavel-CF1sxymP.js +12 -0
  689. package/dist/chunks/gem-IY3SvJ8W.js +16 -0
  690. package/dist/chunks/georgian-lari-CcLL54VV.js +11 -0
  691. package/dist/chunks/ghost-BQ4GZ5aC.js +16 -0
  692. package/dist/chunks/gift-BtmtHYAp.js +17 -0
  693. package/dist/chunks/git-branch-ByBy9rJP.js +11 -0
  694. package/dist/chunks/git-branch-plus-Bs2XIMsX.js +13 -0
  695. package/dist/chunks/git-commit-horizontal-c5fEowwI.js +10 -0
  696. package/dist/chunks/git-commit-vertical-CqMsGESC.js +10 -0
  697. package/dist/chunks/git-compare-arrows-DgAH0XsL.js +13 -0
  698. package/dist/chunks/git-compare-nvnKlGAA.js +11 -0
  699. package/dist/chunks/git-fork-BzwFF8bY.js +12 -0
  700. package/dist/chunks/git-graph-93-hux7E.js +13 -0
  701. package/dist/chunks/git-merge-Cp0sZEfE.js +10 -0
  702. package/dist/chunks/git-pull-request-CdSJ6pY6.js +11 -0
  703. package/dist/chunks/git-pull-request-arrow-CJVESIQn.js +12 -0
  704. package/dist/chunks/git-pull-request-closed-L-Iv-3Rf.js +13 -0
  705. package/dist/chunks/git-pull-request-create-B9p6y7WJ.js +12 -0
  706. package/dist/chunks/git-pull-request-create-arrow-Co0-c-w9.js +13 -0
  707. package/dist/chunks/git-pull-request-draft-D8F7jeHz.js +12 -0
  708. package/dist/chunks/github--uIfDdJn.js +15 -0
  709. package/dist/chunks/gitlab-E6YZLBof.js +14 -0
  710. package/dist/chunks/glass-water-D8WVBiPJ.js +15 -0
  711. package/dist/chunks/glasses-DjN6Rnc_.js +12 -0
  712. package/dist/chunks/globe-B-xgnBkw.js +10 -0
  713. package/dist/chunks/globe-lock-DnxnZUPo.js +17 -0
  714. package/dist/chunks/goal-C5mW5XqK.js +10 -0
  715. package/dist/chunks/gpu-CU5cw_EV.js +12 -0
  716. package/dist/chunks/graduation-cap-8Ax1oFN0.js +16 -0
  717. package/dist/chunks/grape-Df0L5ykJ.js +16 -0
  718. package/dist/chunks/grid-2x2-Dj175w64.js +10 -0
  719. package/dist/chunks/grid-2x2-check-DfFnxdxk.js +15 -0
  720. package/dist/chunks/grid-2x2-plus-D0djFyfM.js +16 -0
  721. package/dist/chunks/grid-2x2-x-Bc7Hirpf.js +16 -0
  722. package/dist/chunks/grid-3x2-DBZgandu.js +11 -0
  723. package/dist/chunks/grid-3x3-BCisEEhI.js +12 -0
  724. package/dist/chunks/grip-CeRyIxn1.js +16 -0
  725. package/dist/chunks/grip-horizontal-BLhxZqVo.js +13 -0
  726. package/dist/chunks/group-B6Z0Jx7s.js +13 -0
  727. package/dist/chunks/guitar-DjAzXuWC.js +23 -0
  728. package/dist/chunks/ham-DObWH6TQ.js +23 -0
  729. package/dist/chunks/hamburger-BCwQLXIV.js +17 -0
  730. package/dist/chunks/hammer-BkzQDO_w.js +16 -0
  731. package/dist/chunks/hand-BO1CagoT.js +17 -0
  732. package/dist/chunks/hand-coins-uBFunUxz.js +18 -0
  733. package/dist/chunks/hand-fist-DmxNPx1c.js +17 -0
  734. package/dist/chunks/hand-grab-CU6u2Z1M.js +15 -0
  735. package/dist/chunks/hand-heart-BnBPPhqY.js +23 -0
  736. package/dist/chunks/hand-helping-BCm8s9H0.js +16 -0
  737. package/dist/chunks/hand-metal-D3j0ueZk.js +17 -0
  738. package/dist/chunks/hand-platter-B7Cefd7J.js +19 -0
  739. package/dist/chunks/handbag-CorrjfbU.js +15 -0
  740. package/dist/chunks/handshake-5HAGDlq8.js +18 -0
  741. package/dist/chunks/hard-drive-D2J1MwcN.js +17 -0
  742. package/dist/chunks/hard-drive-download-CVQ2Oq2U.js +12 -0
  743. package/dist/chunks/hard-drive-upload-D_kLD9Xm.js +12 -0
  744. package/dist/chunks/hard-hat-CssgSpfP.js +11 -0
  745. package/dist/chunks/hash-B2f9HC9x.js +11 -0
  746. package/dist/chunks/hat-glasses-B7DA3FXo.js +18 -0
  747. package/dist/chunks/haze-CC4pHD4E.js +15 -0
  748. package/dist/chunks/hdmi-port-BUdOJ1AV.js +15 -0
  749. package/dist/chunks/heading-1-1sPmUsEw.js +11 -0
  750. package/dist/chunks/heading-2-bgTYJ9LY.js +11 -0
  751. package/dist/chunks/heading-3-CDRGDJhd.js +12 -0
  752. package/dist/chunks/heading-4-DACehxWT.js +12 -0
  753. package/dist/chunks/heading-5-DaJpFxSg.js +15 -0
  754. package/dist/chunks/heading-6-2z9dq3VE.js +12 -0
  755. package/dist/chunks/heading-BpZ9v_hI.js +10 -0
  756. package/dist/chunks/headphone-off-BRKKpWxu.js +18 -0
  757. package/dist/chunks/headphones-B_M4J40g.js +14 -0
  758. package/dist/chunks/headset-CCC7FtS_.js +15 -0
  759. package/dist/chunks/heart-LG97hskm.js +14 -0
  760. package/dist/chunks/heart-crack-43KkUzVx.js +21 -0
  761. package/dist/chunks/heart-handshake-Bfws1sBa.js +14 -0
  762. package/dist/chunks/heart-minus-BWiiby-r.js +15 -0
  763. package/dist/chunks/heart-off-D3WarBV_.js +22 -0
  764. package/dist/chunks/heart-plus-MfPQoupZ.js +16 -0
  765. package/dist/chunks/heart-pulse-DtLMtp7v.js +15 -0
  766. package/dist/chunks/heater-Bevey_cw.js +20 -0
  767. package/dist/chunks/hexagon-TnoS3DmL.js +14 -0
  768. package/dist/chunks/highlighter-DSSt6Qem.js +9 -0
  769. package/dist/chunks/history-BF54MZLh.js +10 -0
  770. package/dist/chunks/hop-C2UmcBPw.js +57 -0
  771. package/dist/chunks/hop-off-AL8rXRM-.js +46 -0
  772. package/dist/chunks/hospital-BPi__flN.js +18 -0
  773. package/dist/chunks/hotel-Bm3CuGQA.js +17 -0
  774. package/dist/chunks/hourglass-2NSPIuT9.js +20 -0
  775. package/dist/chunks/house-VDTBhhF_.js +15 -0
  776. package/dist/chunks/house-plug-BvkT3HF_.js +20 -0
  777. package/dist/chunks/house-plus-JKrmzMv8.js +17 -0
  778. package/dist/chunks/house-wifi-DV76LoyO.js +17 -0
  779. package/dist/chunks/ice-cream-bowl-CrwLAu2F.js +16 -0
  780. package/dist/chunks/ice-cream-cone-zXM-PElR.js +10 -0
  781. package/dist/chunks/id-card-D9OCXlDl.js +12 -0
  782. package/dist/chunks/id-card-lanyard-B4Z8GKn1.js +18 -0
  783. package/dist/chunks/image-CumUDsqd.js +10 -0
  784. package/dist/chunks/image-down-DoUBsRF6.js +17 -0
  785. package/dist/chunks/image-minus-kWtQX7b7.js +11 -0
  786. package/dist/chunks/image-off-Cq3r9t7r.js +19 -0
  787. package/dist/chunks/image-play-Cd02zcqs.js +17 -0
  788. package/dist/chunks/image-plus-hamuj7Js.js +12 -0
  789. package/dist/chunks/image-up-DEohL10Y.js +17 -0
  790. package/dist/chunks/image-upscale-CbINsn8_.js +15 -0
  791. package/dist/chunks/images-DbMB3peS.js +11 -0
  792. package/dist/chunks/import-tZ2_HhVO.js +16 -0
  793. package/dist/chunks/inbox-BtQ_UjF7.js +15 -0
  794. package/dist/chunks/indent-decrease-4tSCgX5k.js +11 -0
  795. package/dist/chunks/indent-increase-8nixZIkt.js +11 -0
  796. package/dist/chunks/indian-rupee-BnX-nIV0.js +12 -0
  797. package/dist/chunks/infinity-BLMd7yRt.js +8 -0
  798. package/dist/chunks/info-tj-08308.js +10 -0
  799. package/dist/chunks/inspection-panel-Cs-ihZql.js +12 -0
  800. package/dist/chunks/instagram-BxqiMoY6.js +10 -0
  801. package/dist/chunks/italic-CTxKafue.js +10 -0
  802. package/dist/chunks/iteration-ccw-R_HKs3rm.js +9 -0
  803. package/dist/chunks/iteration-cw-DT_pPIW7.js +9 -0
  804. package/dist/chunks/japanese-yen-5SjLPzXs.js +10 -0
  805. package/dist/chunks/joystick-D10ZlNDO.js +17 -0
  806. package/dist/chunks/kanban-DZdX1XgG.js +10 -0
  807. package/dist/chunks/key-DW_ipFp2.js +10 -0
  808. package/dist/chunks/key-round-DDHf8IWe.js +15 -0
  809. package/dist/chunks/key-square-DVjh7RhP.js +22 -0
  810. package/dist/chunks/keyboard-BRLR8CRw.js +16 -0
  811. package/dist/chunks/keyboard-music-BsuT2bWw.js +16 -0
  812. package/dist/chunks/keyboard-off-G7prKHDn.js +17 -0
  813. package/dist/chunks/lamp-BW8uazMg.js +19 -0
  814. package/dist/chunks/lamp-ceiling-Dx_igd12.js +16 -0
  815. package/dist/chunks/lamp-desk-CZjrWYmy.js +20 -0
  816. package/dist/chunks/lamp-floor-DsWv_vHg.js +16 -0
  817. package/dist/chunks/lamp-wall-down-DYMorfrD.js +19 -0
  818. package/dist/chunks/lamp-wall-up-By9ctS4y.js +19 -0
  819. package/dist/chunks/land-plot-D6mlUmnm.js +17 -0
  820. package/dist/chunks/landmark-sinNF4z0.js +19 -0
  821. package/dist/chunks/languages-yoTa9Nwz.js +13 -0
  822. package/dist/chunks/laptop-Da6L8-uC.js +15 -0
  823. package/dist/chunks/laptop-minimal-CjsAcFmK.js +9 -0
  824. package/dist/chunks/laptop-minimal-check-CQBGVrOI.js +10 -0
  825. package/dist/chunks/lasso-BKw5kTDY.js +16 -0
  826. package/dist/chunks/lasso-select-CFdIvRl_.js +24 -0
  827. package/dist/chunks/laugh-BDLBp5Zx.js +11 -0
  828. package/dist/chunks/layers-2-kY23FWsO.js +21 -0
  829. package/dist/chunks/layers-t8ArL_iG.js +28 -0
  830. package/dist/chunks/layout-dashboard-ByeR0dhm.js +11 -0
  831. package/dist/chunks/layout-grid-f50v74Nd.js +11 -0
  832. package/dist/chunks/layout-list-BlNQpm7t.js +13 -0
  833. package/dist/chunks/layout-panel-left-C7iS9OkY.js +10 -0
  834. package/dist/chunks/layout-panel-top-DUx8A6RN.js +10 -0
  835. package/dist/chunks/layout-template-DXS20AH6.js +10 -0
  836. package/dist/chunks/leaf-Cc7n70Me.js +15 -0
  837. package/dist/chunks/leafy-green-DvG3Jr3G.js +15 -0
  838. package/dist/chunks/lectern-Dm97Bydz.js +16 -0
  839. package/dist/chunks/letter-text-BQhoOXuF.js +12 -0
  840. package/dist/chunks/library-PLBUMwc1.js +11 -0
  841. package/dist/chunks/library-big-BBtkTtQI.js +16 -0
  842. package/dist/chunks/life-buoy-CpADVWIG.js +13 -0
  843. package/dist/chunks/ligature-C_4dIBNa.js +12 -0
  844. package/dist/chunks/lightbulb-DTzkwyhw.js +16 -0
  845. package/dist/chunks/lightbulb-off-CYgRWgYd.js +12 -0
  846. package/dist/chunks/line-squiggle-Dc4EVb0Q.js +14 -0
  847. package/dist/chunks/link-2-BX_aC9y3.js +10 -0
  848. package/dist/chunks/link-2-off-DDJMzsYF.js +11 -0
  849. package/dist/chunks/link-DqMFrI4z.js +9 -0
  850. package/dist/chunks/linkedin-DpV07ik5.js +16 -0
  851. package/dist/chunks/list-check-Brh2N3M5.js +11 -0
  852. package/dist/chunks/list-checks-BqcMEowj.js +12 -0
  853. package/dist/chunks/list-collapse-BuzOAgBE.js +12 -0
  854. package/dist/chunks/list-end-DvtrHbiQ.js +12 -0
  855. package/dist/chunks/list-filter-BsdhIIi5.js +10 -0
  856. package/dist/chunks/list-filter-plus-CrSO7JpL.js +12 -0
  857. package/dist/chunks/list-minus-BhNqOJiG.js +11 -0
  858. package/dist/chunks/list-music-B-9QnJ70.js +12 -0
  859. package/dist/chunks/list-ordered-C6sVh5xa.js +13 -0
  860. package/dist/chunks/list-plus-DFf9xaXo.js +12 -0
  861. package/dist/chunks/list-rH1toBHw.js +13 -0
  862. package/dist/chunks/list-restart-DG0KsVT9.js +18 -0
  863. package/dist/chunks/list-start-C_7kamoI.js +12 -0
  864. package/dist/chunks/list-todo-DE8G7gHy.js +12 -0
  865. package/dist/chunks/list-tree-C1Kjqavt.js +12 -0
  866. package/dist/chunks/list-video-Qbc97WVH.js +17 -0
  867. package/dist/chunks/list-x-QvsFmmOd.js +12 -0
  868. package/dist/chunks/loader-CV8CNe7C.js +15 -0
  869. package/dist/chunks/loader-pinwheel-Y8hrTSuz.js +11 -0
  870. package/dist/chunks/locate-BOOzvdgz.js +12 -0
  871. package/dist/chunks/locate-fixed-C-pwlb1f.js +13 -0
  872. package/dist/chunks/locate-off-23A5kq1Q.js +14 -0
  873. package/dist/chunks/lock-BPf3TQrN.js +9 -0
  874. package/dist/chunks/lock-keyhole-E3OGUcIn.js +10 -0
  875. package/dist/chunks/lock-keyhole-open-BTo5vQhV.js +10 -0
  876. package/dist/chunks/lock-open-BMuAvdm9.js +9 -0
  877. package/dist/chunks/log-in-GQO-M5d7.js +10 -0
  878. package/dist/chunks/log-out-CUUHZ8HN.js +10 -0
  879. package/dist/chunks/logs-BNZb6Urz.js +16 -0
  880. package/dist/chunks/lollipop-CzAkGkGr.js +10 -0
  881. package/dist/chunks/luggage-DVLe8kw9.js +15 -0
  882. package/dist/chunks/magnet-CFH3Bx3z.js +16 -0
  883. package/dist/chunks/mail-B_VQjbaJ.js +9 -0
  884. package/dist/chunks/mail-check-D0gTfl_5.js +10 -0
  885. package/dist/chunks/mail-minus-BfXaFpTU.js +10 -0
  886. package/dist/chunks/mail-open-CiMJnk2a.js +15 -0
  887. package/dist/chunks/mail-plus-CZBbUQvR.js +11 -0
  888. package/dist/chunks/mail-question-mark-DJM5OzYc.js +17 -0
  889. package/dist/chunks/mail-search-D38sUxh0.js +12 -0
  890. package/dist/chunks/mail-warning-BGyVti99.js +11 -0
  891. package/dist/chunks/mail-x-MsF0w8Uc.js +11 -0
  892. package/dist/chunks/mailbox-373TzzQJ.js +17 -0
  893. package/dist/chunks/mails-D368-ZZQ.js +10 -0
  894. package/dist/chunks/map-CLFy4SBX.js +16 -0
  895. package/dist/chunks/map-minus-AjWSPGf9.js +17 -0
  896. package/dist/chunks/map-pin-Buqr2ivB.js +15 -0
  897. package/dist/chunks/map-pin-check-DhbPQ0g8.js +16 -0
  898. package/dist/chunks/map-pin-check-inside-B1aOrGJe.js +15 -0
  899. package/dist/chunks/map-pin-house-CDEyTXUA.js +23 -0
  900. package/dist/chunks/map-pin-minus-BFJtSja2.js +16 -0
  901. package/dist/chunks/map-pin-minus-inside-CkLZ8PC8.js +15 -0
  902. package/dist/chunks/map-pin-off-D8ek5Otp.js +18 -0
  903. package/dist/chunks/map-pin-pen-CYPwAyPE.js +16 -0
  904. package/dist/chunks/map-pin-plus-Br2yzozM.js +17 -0
  905. package/dist/chunks/map-pin-plus-inside-C4G0rJKb.js +16 -0
  906. package/dist/chunks/map-pin-x-BR-0iBCD.js +17 -0
  907. package/dist/chunks/map-pin-x-inside-CGDGOldW.js +16 -0
  908. package/dist/chunks/map-pinned-COiHwH84.js +22 -0
  909. package/dist/chunks/map-plus-CthcZJlp.js +18 -0
  910. package/dist/chunks/mars-feiO2Tmv.js +10 -0
  911. package/dist/chunks/mars-stroke-DzM0hb4y.js +11 -0
  912. package/dist/chunks/martini-WsgqsIpV.js +10 -0
  913. package/dist/chunks/maximize-CZ3pgqSg.js +11 -0
  914. package/dist/chunks/medal-DTnp0a6O.js +19 -0
  915. package/dist/chunks/megaphone-CCTtI8M_.js +16 -0
  916. package/dist/chunks/megaphone-off-CHzSngYP.js +15 -0
  917. package/dist/chunks/meh-NST-XqpC.js +11 -0
  918. package/dist/chunks/memory-stick-Bfzv2W_q.js +22 -0
  919. package/dist/chunks/menu-DiB_tcNf.js +10 -0
  920. package/dist/chunks/merge-BDbNw3EL.js +10 -0
  921. package/dist/chunks/message-circle-B0lbvYEG.js +14 -0
  922. package/dist/chunks/message-circle-code-yCR58mgr.js +16 -0
  923. package/dist/chunks/message-circle-dashed-BRhGmoRl.js +15 -0
  924. package/dist/chunks/message-circle-heart-D7m82zt6.js +21 -0
  925. package/dist/chunks/message-circle-more-CClk3Gu5.js +17 -0
  926. package/dist/chunks/message-circle-off-dWx71vp_.js +16 -0
  927. package/dist/chunks/message-circle-plus-UH07aANY.js +16 -0
  928. package/dist/chunks/message-circle-question-mark-DAGH0Yug.js +16 -0
  929. package/dist/chunks/message-circle-reply-BlpN7w-e.js +16 -0
  930. package/dist/chunks/message-circle-warning-BtDQiKHX.js +16 -0
  931. package/dist/chunks/message-circle-x-DkFmwGXt.js +16 -0
  932. package/dist/chunks/message-square-B4jFRTGU.js +14 -0
  933. package/dist/chunks/message-square-code-8nTcXWXU.js +16 -0
  934. package/dist/chunks/message-square-dashed-DJTegvEB.js +23 -0
  935. package/dist/chunks/message-square-diff-B9jG4qBW.js +17 -0
  936. package/dist/chunks/message-square-dot-B8oIOp7b.js +15 -0
  937. package/dist/chunks/message-square-heart-sWy6p71v.js +21 -0
  938. package/dist/chunks/message-square-lock-BEK-nT9C.js +16 -0
  939. package/dist/chunks/message-square-more-CfVREVoX.js +17 -0
  940. package/dist/chunks/message-square-off-Bypxnb6k.js +16 -0
  941. package/dist/chunks/message-square-plus-BfQDQQAh.js +16 -0
  942. package/dist/chunks/message-square-quote-CaIMQtSj.js +16 -0
  943. package/dist/chunks/message-square-reply-Bz88gsph.js +16 -0
  944. package/dist/chunks/message-square-share-DIqqObdY.js +16 -0
  945. package/dist/chunks/message-square-text-Co0z9Dq5.js +17 -0
  946. package/dist/chunks/message-square-warning-B_b4NzPN.js +16 -0
  947. package/dist/chunks/message-square-x-v0hVfmYk.js +16 -0
  948. package/dist/chunks/messages-square-CrV8EG0E.js +21 -0
  949. package/dist/chunks/mic-UfE0rnvW.js +10 -0
  950. package/dist/chunks/mic-off-COOlqId9.js +13 -0
  951. package/dist/chunks/mic-vocal-CMtY-oTU.js +22 -0
  952. package/dist/chunks/microchip-DUkR4Mxu.js +24 -0
  953. package/dist/chunks/microscope-BwIxPM9v.js +13 -0
  954. package/dist/chunks/microwave-Duai7njW.js +12 -0
  955. package/dist/chunks/milestone-BihExheR.js +16 -0
  956. package/dist/chunks/milk-Zt0EwBak.js +16 -0
  957. package/dist/chunks/milk-off-DPDTNpJC.js +17 -0
  958. package/dist/chunks/minimize-BJ7ho_E0.js +11 -0
  959. package/dist/chunks/monitor-GqqFp-8S.js +10 -0
  960. package/dist/chunks/monitor-check-CyvXh30H.js +11 -0
  961. package/dist/chunks/monitor-cog-CygvGrFs.js +19 -0
  962. package/dist/chunks/monitor-dot-D4u-VMgE.js +14 -0
  963. package/dist/chunks/monitor-down-Cnu7d1HW.js +12 -0
  964. package/dist/chunks/monitor-off-J4q0sCfG.js +12 -0
  965. package/dist/chunks/monitor-pause-B6a3V_p3.js +12 -0
  966. package/dist/chunks/monitor-play-BPVC_r7w.js +17 -0
  967. package/dist/chunks/monitor-smartphone-CiU0_PHf.js +11 -0
  968. package/dist/chunks/monitor-speaker-1AhnBZaQ.js +12 -0
  969. package/dist/chunks/monitor-stop-DKIrNVP7.js +11 -0
  970. package/dist/chunks/monitor-up-MQPNdkez.js +12 -0
  971. package/dist/chunks/monitor-x-DrMmswpL.js +12 -0
  972. package/dist/chunks/moon-DvYamL03.js +14 -0
  973. package/dist/chunks/moon-star-COEgOAAL.js +16 -0
  974. package/dist/chunks/mountain-CGQA8Bcf.js +6 -0
  975. package/dist/chunks/mountain-snow-DLJofcYc.js +12 -0
  976. package/dist/chunks/mouse-DsvVx3D9.js +9 -0
  977. package/dist/chunks/mouse-off-DH6Q13Lz.js +11 -0
  978. package/dist/chunks/mouse-pointer-2-DBWhJmwf.js +14 -0
  979. package/dist/chunks/mouse-pointer-CpUZ1MQQ.js +15 -0
  980. package/dist/chunks/mouse-pointer-ban-DhVZF99E.js +16 -0
  981. package/dist/chunks/mouse-pointer-click-CKpj2qBo.js +18 -0
  982. package/dist/chunks/move-3d-BBxiEjGx.js +11 -0
  983. package/dist/chunks/move-DehW6F03.js +13 -0
  984. package/dist/chunks/move-diagonal-2-BBDpKBlF.js +10 -0
  985. package/dist/chunks/move-diagonal-Ck9hJ1a8.js +10 -0
  986. package/dist/chunks/move-down-CubI8Pq7.js +9 -0
  987. package/dist/chunks/move-down-left-DqqFc0pV.js +9 -0
  988. package/dist/chunks/move-down-right-B0a5UmG3.js +9 -0
  989. package/dist/chunks/move-horizontal-BtH3gNaL.js +10 -0
  990. package/dist/chunks/move-left-8icKdZUE.js +9 -0
  991. package/dist/chunks/move-right-Ca8TaG4F.js +9 -0
  992. package/dist/chunks/move-up-0VD6At0G.js +9 -0
  993. package/dist/chunks/move-up-left-BfzsJm-6.js +9 -0
  994. package/dist/chunks/move-up-right-B3t8SvBb.js +9 -0
  995. package/dist/chunks/move-vertical-QwBXgryk.js +10 -0
  996. package/dist/chunks/music-2-CNLk7wyC.js +9 -0
  997. package/dist/chunks/music-3-BTOUsCqP.js +9 -0
  998. package/dist/chunks/music-4-CU39oSef.js +11 -0
  999. package/dist/chunks/music-CISyaPin.js +10 -0
  1000. package/dist/chunks/navigation-2-BkJSe-Cg.js +8 -0
  1001. package/dist/chunks/navigation-2-off-BRj2CvXc.js +10 -0
  1002. package/dist/chunks/navigation-CVa5FMwa.js +8 -0
  1003. package/dist/chunks/navigation-off-3FY92C1F.js +10 -0
  1004. package/dist/chunks/network-DroHYFAu.js +12 -0
  1005. package/dist/chunks/newspaper-v8_IEbQQ.js +17 -0
  1006. package/dist/chunks/nfc-DaGIP7QV.js +11 -0
  1007. package/dist/chunks/non-binary-Dv71jqDS.js +11 -0
  1008. package/dist/chunks/notebook-CW8QNcPh.js +13 -0
  1009. package/dist/chunks/notebook-pen-DEt9Y_3y.js +19 -0
  1010. package/dist/chunks/notebook-tabs-ajj3IZUD.js +16 -0
  1011. package/dist/chunks/notebook-text-HBipirS6.js +15 -0
  1012. package/dist/chunks/notepad-text-8kguyfBQ.js +14 -0
  1013. package/dist/chunks/notepad-text-dashed-x4QgdZuq.js +20 -0
  1014. package/dist/chunks/nut-BTxd41y_.js +22 -0
  1015. package/dist/chunks/nut-off-DuxQ6GPj.js +24 -0
  1016. package/dist/chunks/octagon-Ck_KjzWh.js +14 -0
  1017. package/dist/chunks/octagon-alert-B0WrEU7W.js +16 -0
  1018. package/dist/chunks/octagon-minus-BvWe-M1y.js +15 -0
  1019. package/dist/chunks/octagon-pause-DGC2epur.js +16 -0
  1020. package/dist/chunks/octagon-x-C2yfDetu.js +16 -0
  1021. package/dist/chunks/omega-X_D6Qqez.js +14 -0
  1022. package/dist/chunks/option-BprEdtSZ.js +9 -0
  1023. package/dist/chunks/orbit-DaNxNY0e.js +12 -0
  1024. package/dist/chunks/origami-B1khR_1v.js +22 -0
  1025. package/dist/chunks/package-2-Ds6jw40L.js +16 -0
  1026. package/dist/chunks/package-BgOVHz0C.js +17 -0
  1027. package/dist/chunks/package-check-DBZW_6tT.js +18 -0
  1028. package/dist/chunks/package-minus-DmMAHr8M.js +18 -0
  1029. package/dist/chunks/package-open-CG9VdhSO.js +29 -0
  1030. package/dist/chunks/package-plus-Bb966inf.js +19 -0
  1031. package/dist/chunks/package-search-DBS8yzuk.js +19 -0
  1032. package/dist/chunks/package-x-B8ev7ZDq.js +18 -0
  1033. package/dist/chunks/paint-bucket-Bbl9AG3R.js +14 -0
  1034. package/dist/chunks/paint-roller-BWHxjLAh.js +10 -0
  1035. package/dist/chunks/paintbrush-C82O7P8c.js +22 -0
  1036. package/dist/chunks/paintbrush-vertical-iJK7tjoB.js +17 -0
  1037. package/dist/chunks/palette-Dwr5iYoT.js +18 -0
  1038. package/dist/chunks/panda-BYaJ07TC.js +19 -0
  1039. package/dist/chunks/panel-bottom-DXugTBRU.js +9 -0
  1040. package/dist/chunks/panel-bottom-close-BQIQGZji.js +10 -0
  1041. package/dist/chunks/panel-bottom-dashed-C3rjce-d.js +12 -0
  1042. package/dist/chunks/panel-bottom-open-ZOSlYny5.js +10 -0
  1043. package/dist/chunks/panel-left-close-eAdcfwFw.js +10 -0
  1044. package/dist/chunks/panel-left-dashed-lDXW5Cz-.js +12 -0
  1045. package/dist/chunks/panel-left-open-BY_yMh9w.js +10 -0
  1046. package/dist/chunks/panel-right-7BsbcN_u.js +9 -0
  1047. package/dist/chunks/panel-right-close-C5s3czZ1.js +10 -0
  1048. package/dist/chunks/panel-right-dashed-IWqr0zN3.js +12 -0
  1049. package/dist/chunks/panel-right-open-CcZAtqVT.js +10 -0
  1050. package/dist/chunks/panel-top-Dm0OEeZe.js +9 -0
  1051. package/dist/chunks/panel-top-close-CLMH2W5i.js +10 -0
  1052. package/dist/chunks/panel-top-dashed-DVHpcTv6.js +12 -0
  1053. package/dist/chunks/panel-top-open-z7Gejdz1.js +10 -0
  1054. package/dist/chunks/panels-left-bottom-BZ9UknY-.js +10 -0
  1055. package/dist/chunks/panels-right-bottom-8TsBqj2-.js +10 -0
  1056. package/dist/chunks/panels-top-left-ByeBJA5v.js +10 -0
  1057. package/dist/chunks/paperclip-DwBUhegn.js +14 -0
  1058. package/dist/chunks/parentheses-CjyzajJz.js +9 -0
  1059. package/dist/chunks/parking-meter-C_kNiDQt.js +18 -0
  1060. package/dist/chunks/party-popper-DrU90z-0.js +31 -0
  1061. package/dist/chunks/pause-CdLbzIdt.js +9 -0
  1062. package/dist/chunks/paw-print-BZNMw_jl.js +17 -0
  1063. package/dist/chunks/pc-case-DmIkp9SS.js +11 -0
  1064. package/dist/chunks/pen-BA9__LnJ.js +14 -0
  1065. package/dist/chunks/pen-line-BqLetA-Q.js +15 -0
  1066. package/dist/chunks/pen-off-B4783Df_.js +16 -0
  1067. package/dist/chunks/pen-tool-Bot9f_aF.js +23 -0
  1068. package/dist/chunks/pencil-line-B6C49dUy.js +16 -0
  1069. package/dist/chunks/pencil-off-1E7u9Nxi.js +17 -0
  1070. package/dist/chunks/pencil-ruler-BzNd7gjD.js +28 -0
  1071. package/dist/chunks/pentagon-BFYktfVt.js +14 -0
  1072. package/dist/chunks/percent-C7vPCHIQ.js +10 -0
  1073. package/dist/chunks/person-standing-DjySUnR-.js +11 -0
  1074. package/dist/chunks/philippine-peso-CqLAorDD.js +10 -0
  1075. package/dist/chunks/phone-BCkURaHR.js +14 -0
  1076. package/dist/chunks/phone-call-DzZ-olfL.js +16 -0
  1077. package/dist/chunks/phone-forwarded-DLcFfgW1.js +16 -0
  1078. package/dist/chunks/phone-incoming-BOT3Wn6H.js +16 -0
  1079. package/dist/chunks/phone-missed-Ckm4spcB.js +16 -0
  1080. package/dist/chunks/phone-off-BejrV63e.js +22 -0
  1081. package/dist/chunks/phone-outgoing-4soNIgka.js +16 -0
  1082. package/dist/chunks/pi-BC6fmx-B.js +10 -0
  1083. package/dist/chunks/piano-CMeLvqms.js +19 -0
  1084. package/dist/chunks/pickaxe-mrhekmNI.js +29 -0
  1085. package/dist/chunks/picture-in-picture-2-DQHrCKmr.js +9 -0
  1086. package/dist/chunks/picture-in-picture-BSaMhdf5.js +12 -0
  1087. package/dist/chunks/piggy-bank-D6M18P17.js +16 -0
  1088. package/dist/chunks/pilcrow-cQehd9Zp.js +10 -0
  1089. package/dist/chunks/pilcrow-left-9LNnc4P5.js +12 -0
  1090. package/dist/chunks/pilcrow-right-BBTaHSXp.js +12 -0
  1091. package/dist/chunks/pill-RTr-xPtK.js +12 -0
  1092. package/dist/chunks/pill-bottle-BeAfp8kR.js +10 -0
  1093. package/dist/chunks/pin-Bmw3Gif7.js +15 -0
  1094. package/dist/chunks/pin-off-DFucogrv.js +17 -0
  1095. package/dist/chunks/pipette-mvSdHcfp.js +22 -0
  1096. package/dist/chunks/pizza-3qad4uny.js +18 -0
  1097. package/dist/chunks/plane-Wb5N3LHs.js +14 -0
  1098. package/dist/chunks/plane-landing-ay9jAYFC.js +15 -0
  1099. package/dist/chunks/plane-takeoff-BOvAmF-L.js +15 -0
  1100. package/dist/chunks/play-Hj0pGqW5.js +14 -0
  1101. package/dist/chunks/plug-2-22AfEbGR.js +12 -0
  1102. package/dist/chunks/plug-DfdGhyd7.js +11 -0
  1103. package/dist/chunks/plug-zap-626q5rrm.js +15 -0
  1104. package/dist/chunks/pocket-93CLkmmA.js +9 -0
  1105. package/dist/chunks/pocket-knife-B-p492eo.js +12 -0
  1106. package/dist/chunks/podcast-BTqCGnvK.js +14 -0
  1107. package/dist/chunks/pointer-off-D6N5CIvH.js +22 -0
  1108. package/dist/chunks/pointer-woO3F3xK.js +18 -0
  1109. package/dist/chunks/popcorn-DbM_o6FN.js +23 -0
  1110. package/dist/chunks/popsicle-HsXbipoo.js +15 -0
  1111. package/dist/chunks/pound-sterling-EdQGU-4Y.js +11 -0
  1112. package/dist/chunks/power-BqLQHdAA.js +9 -0
  1113. package/dist/chunks/power-off-BY2cw-EF.js +11 -0
  1114. package/dist/chunks/presentation-B1i12P5U.js +10 -0
  1115. package/dist/chunks/printer-check-D54KRrbr.js +11 -0
  1116. package/dist/chunks/projector-ClyS98yx.js +19 -0
  1117. package/dist/chunks/proportions-DKujOQaF.js +10 -0
  1118. package/dist/chunks/puzzle-D5izSEDT.js +14 -0
  1119. package/dist/chunks/pyramid-D_MaYUYi.js +15 -0
  1120. package/dist/chunks/qr-code-CTsztRDr.js +19 -0
  1121. package/dist/chunks/quote-Cr71_-AG.js +21 -0
  1122. package/dist/chunks/rabbit-BAVSRtjy.js +18 -0
  1123. package/dist/chunks/radar-Bzb-Pt4m.js +15 -0
  1124. package/dist/chunks/radiation-B7vInwlu.js +29 -0
  1125. package/dist/chunks/radical-Bla8gthG.js +14 -0
  1126. package/dist/chunks/radio-BezzuqtW.js +12 -0
  1127. package/dist/chunks/radio-receiver-C5tqCpmy.js +11 -0
  1128. package/dist/chunks/radio-tower-5oJZMYVb.js +14 -0
  1129. package/dist/chunks/radius-Chebne15.js +11 -0
  1130. package/dist/chunks/rail-symbol-CQrCFuOL.js +10 -0
  1131. package/dist/chunks/rainbow-B64n7NEN.js +10 -0
  1132. package/dist/chunks/rat-DBeEaUck.js +18 -0
  1133. package/dist/chunks/ratio-EnNtROBr.js +9 -0
  1134. package/dist/chunks/receipt-BJpehJa7.js +13 -0
  1135. package/dist/chunks/receipt-cent-BMxmF_Hk.js +13 -0
  1136. package/dist/chunks/receipt-euro-BjVYc0gy.js +13 -0
  1137. package/dist/chunks/receipt-indian-rupee-Cq_eH0ft.js +14 -0
  1138. package/dist/chunks/receipt-japanese-yen-DagBg7KB.js +15 -0
  1139. package/dist/chunks/receipt-pound-sterling-B5JYun_9.js +14 -0
  1140. package/dist/chunks/receipt-russian-ruble-DecO4ydL.js +13 -0
  1141. package/dist/chunks/receipt-swiss-franc-CUpbgqQZ.js +14 -0
  1142. package/dist/chunks/receipt-text-DMAmhj6a.js +14 -0
  1143. package/dist/chunks/receipt-turkish-lira-Bpu_w5Cc.js +13 -0
  1144. package/dist/chunks/rectangle-circle-By8ixDZN.js +9 -0
  1145. package/dist/chunks/rectangle-ellipsis-NfB3zwZY.js +11 -0
  1146. package/dist/chunks/rectangle-goggles-B4gfCJg5.js +14 -0
  1147. package/dist/chunks/rectangle-horizontal-DIB1cOoo.js +8 -0
  1148. package/dist/chunks/rectangle-vertical-D7p20UUr.js +8 -0
  1149. package/dist/chunks/recycle-zefKjw_b.js +31 -0
  1150. package/dist/chunks/redo-2-DfkkJZIC.js +9 -0
  1151. package/dist/chunks/redo-BRdzhgPm.js +9 -0
  1152. package/dist/chunks/redo-dot-DHsvW4me.js +10 -0
  1153. package/dist/chunks/refresh-ccw-blDf6usY.js +11 -0
  1154. package/dist/chunks/refresh-ccw-dot-Bp-CzYaL.js +12 -0
  1155. package/dist/chunks/refresh-cw-DxpcX1XJ.js +11 -0
  1156. package/dist/chunks/refresh-cw-off-BqI-ZG4_.js +14 -0
  1157. package/dist/chunks/refrigerator-Bvq_f8lU.js +13 -0
  1158. package/dist/chunks/regex-CS4au1vH.js +14 -0
  1159. package/dist/chunks/remove-formatting-BNMc91RP.js +12 -0
  1160. package/dist/chunks/repeat-1-BxT3zuOv.js +12 -0
  1161. package/dist/chunks/repeat-2-B3ovKBv1.js +11 -0
  1162. package/dist/chunks/repeat-BIR2UJ7m.js +11 -0
  1163. package/dist/chunks/replace-Cn295F96.js +14 -0
  1164. package/dist/chunks/replace-all-9ltl9r42.js +16 -0
  1165. package/dist/chunks/reply-CLM3eQGz.js +9 -0
  1166. package/dist/chunks/reply-all-Faofw7HY.js +10 -0
  1167. package/dist/chunks/rewind-BKX5ofux.js +15 -0
  1168. package/dist/chunks/ribbon-D1kU7i2V.js +21 -0
  1169. package/dist/chunks/rocket-CyiY6MSl.js +23 -0
  1170. package/dist/chunks/rocking-chair-CeUmqngN.js +11 -0
  1171. package/dist/chunks/roller-coaster-CK28Bl-K.js +14 -0
  1172. package/dist/chunks/rotate-3d-BDQtlwyx.js +22 -0
  1173. package/dist/chunks/rotate-ccw-Bkx89tPN.js +9 -0
  1174. package/dist/chunks/rotate-ccw-key-DSGD7Gfr.js +12 -0
  1175. package/dist/chunks/rotate-ccw-square-DnrU1UG4.js +10 -0
  1176. package/dist/chunks/rotate-cw-square-VE1RAC4Q.js +10 -0
  1177. package/dist/chunks/route-off-twh9mg21.js +14 -0
  1178. package/dist/chunks/route-vwptLaAb.js +10 -0
  1179. package/dist/chunks/router-BAsZnKlg.js +13 -0
  1180. package/dist/chunks/rows-2-DdxFqx2Q.js +9 -0
  1181. package/dist/chunks/rows-3-C7ryZJL-.js +10 -0
  1182. package/dist/chunks/rows-4-pCENsg8y.js +11 -0
  1183. package/dist/chunks/rss-CPkIqF1E.js +10 -0
  1184. package/dist/chunks/ruler-BXCSBm4U.js +18 -0
  1185. package/dist/chunks/ruler-dimension-line-CSvWLg5H.js +14 -0
  1186. package/dist/chunks/russian-ruble-BOZ-qS7v.js +9 -0
  1187. package/dist/chunks/sailboat-BwBd0yIL.js +19 -0
  1188. package/dist/chunks/salad-pTHC3gI8.js +18 -0
  1189. package/dist/chunks/sandwich-BeQtNqyj.js +12 -0
  1190. package/dist/chunks/satellite-BLMUpLox.js +30 -0
  1191. package/dist/chunks/satellite-dish-dh79AOq1.js +11 -0
  1192. package/dist/chunks/saudi-riyal-DK2qvQIE.js +11 -0
  1193. package/dist/chunks/save-D_m2ToAn.js +16 -0
  1194. package/dist/chunks/save-all-Y_nQDiR2.js +17 -0
  1195. package/dist/chunks/save-off-CmLXgH8U.js +17 -0
  1196. package/dist/chunks/scale-3d-BabWLN1Y.js +11 -0
  1197. package/dist/chunks/scale-DYAtaUHm.js +12 -0
  1198. package/dist/chunks/scaling-aoIkh23l.js +11 -0
  1199. package/dist/chunks/scan-barcode-DQIx_vUS.js +14 -0
  1200. package/dist/chunks/scan-eye-BmQD9xsF.js +19 -0
  1201. package/dist/chunks/scan-face-C92tzDef.js +14 -0
  1202. package/dist/chunks/scan-heart-De3iFL4f.js +18 -0
  1203. package/dist/chunks/scan-line-DPDSv1Vv.js +12 -0
  1204. package/dist/chunks/scan-qr-code-D-UeNS8Q.js +15 -0
  1205. package/dist/chunks/scan-search-BcEGs5K8.js +13 -0
  1206. package/dist/chunks/scan-text-CShSweAL.js +14 -0
  1207. package/dist/chunks/school-Bg9wNH79.js +19 -0
  1208. package/dist/chunks/scissors-BbHF-8fS.js +12 -0
  1209. package/dist/chunks/scissors-line-dashed-DD1PORQl.js +14 -0
  1210. package/dist/chunks/screen-share-BmRvx9Lj.js +12 -0
  1211. package/dist/chunks/screen-share-off-D4tUwaO-.js +12 -0
  1212. package/dist/chunks/scroll-BSetWV3c.js +15 -0
  1213. package/dist/chunks/scroll-text-ixKr2fgf.js +17 -0
  1214. package/dist/chunks/search-check-DxmnIKdw.js +10 -0
  1215. package/dist/chunks/search-code-74yKlngz.js +11 -0
  1216. package/dist/chunks/search-slash-WnFZ9f3h.js +10 -0
  1217. package/dist/chunks/search-x-BsAL9eCj.js +11 -0
  1218. package/dist/chunks/section-DDQ_w1u2.js +9 -0
  1219. package/dist/chunks/send-BauceJog.js +15 -0
  1220. package/dist/chunks/send-horizontal-DHiWD2nk.js +15 -0
  1221. package/dist/chunks/send-to-back-DFGdIX_O.js +11 -0
  1222. package/dist/chunks/separator-horizontal-i9vN1j-P.js +10 -0
  1223. package/dist/chunks/separator-vertical-JaI4IBvV.js +10 -0
  1224. package/dist/chunks/server-DOi4Z8eX.js +11 -0
  1225. package/dist/chunks/server-cog-Da40snrf.js +31 -0
  1226. package/dist/chunks/server-crash-C0oybhfT.js +24 -0
  1227. package/dist/chunks/server-off-D2U7cXAN.js +13 -0
  1228. package/dist/chunks/settings-2-Coi8WECo.js +11 -0
  1229. package/dist/chunks/settings-KVT85lI5.js +15 -0
  1230. package/dist/chunks/shapes-ROpA5Lxq.js +16 -0
  1231. package/dist/chunks/share-2-DY0Si9IK.js +12 -0
  1232. package/dist/chunks/share-Bs5ehg33.js +10 -0
  1233. package/dist/chunks/sheet-CSP8BBfh.js +12 -0
  1234. package/dist/chunks/shell-rD49btcb.js +14 -0
  1235. package/dist/chunks/shield-BCeSrfIF.js +14 -0
  1236. package/dist/chunks/shield-alert-D_YcU28J.js +16 -0
  1237. package/dist/chunks/shield-ban-rRbon6xK.js +15 -0
  1238. package/dist/chunks/shield-check-B4iS42Kp.js +15 -0
  1239. package/dist/chunks/shield-ellipsis-MVpsZZ_d.js +17 -0
  1240. package/dist/chunks/shield-half-8-ONhzFu.js +15 -0
  1241. package/dist/chunks/shield-minus-C0xUone7.js +15 -0
  1242. package/dist/chunks/shield-off-BrgyWIwx.js +22 -0
  1243. package/dist/chunks/shield-plus-C7jYWU0O.js +16 -0
  1244. package/dist/chunks/shield-question-mark-BlVbBBCp.js +16 -0
  1245. package/dist/chunks/shield-user-zsa6yg66.js +16 -0
  1246. package/dist/chunks/shield-x-DAmBkoe_.js +16 -0
  1247. package/dist/chunks/ship-B3abBCjU.js +24 -0
  1248. package/dist/chunks/ship-wheel-CRdbMy2i.js +17 -0
  1249. package/dist/chunks/shirt-uRniLBj6.js +14 -0
  1250. package/dist/chunks/shopping-bag-dk_x-D1C.js +16 -0
  1251. package/dist/chunks/shopping-basket-BvSwRREf.js +14 -0
  1252. package/dist/chunks/shopping-cart-DNOK3fMV.js +16 -0
  1253. package/dist/chunks/shovel-BQbPHG-g.js +22 -0
  1254. package/dist/chunks/shower-head-DKj__Gh8.js +17 -0
  1255. package/dist/chunks/shredder-Dg_xW8j7.js +14 -0
  1256. package/dist/chunks/shrimp-Dp3dug2y.js +18 -0
  1257. package/dist/chunks/shrink-CXWLY9MA.js +11 -0
  1258. package/dist/chunks/shrub-Dinv7p_a.js +10 -0
  1259. package/dist/chunks/shuffle-Bniix5UH.js +12 -0
  1260. package/dist/chunks/sigma-jTK3xvbM.js +14 -0
  1261. package/dist/chunks/signal-Bs_QOvL5.js +12 -0
  1262. package/dist/chunks/signal-high-BKLpGtl_.js +11 -0
  1263. package/dist/chunks/signal-low-DdVVL-vW.js +9 -0
  1264. package/dist/chunks/signal-medium-BywEp3uH.js +10 -0
  1265. package/dist/chunks/signal-zero-Dzh7FY_e.js +6 -0
  1266. package/dist/chunks/signature-C15GYJc0.js +15 -0
  1267. package/dist/chunks/signpost-I2IuXoCy.js +16 -0
  1268. package/dist/chunks/signpost-big-2JhLQ4T0.js +11 -0
  1269. package/dist/chunks/siren-D6EpRrBi.js +18 -0
  1270. package/dist/chunks/skip-back-CArZoLOk.js +15 -0
  1271. package/dist/chunks/skip-forward-DeU553bg.js +15 -0
  1272. package/dist/chunks/skull-xoFt_tIv.js +17 -0
  1273. package/dist/chunks/slack-DZhFLPRo.js +15 -0
  1274. package/dist/chunks/slash-C8DalB8t.js +6 -0
  1275. package/dist/chunks/slice-WSfSUGwq.js +14 -0
  1276. package/dist/chunks/sliders-vertical-CxLVFAiL.js +16 -0
  1277. package/dist/chunks/smartphone-D5xM6Tcl.js +9 -0
  1278. package/dist/chunks/smartphone-charging-nV1ztEfe.js +9 -0
  1279. package/dist/chunks/smartphone-nfc-DLmBrtHb.js +11 -0
  1280. package/dist/chunks/smile-3SdZ_Zy-.js +11 -0
  1281. package/dist/chunks/smile-plus-DXz3aO-g.js +13 -0
  1282. package/dist/chunks/snail-BRg6sv_v.js +12 -0
  1283. package/dist/chunks/snowflake-Bvz86SmV.js +19 -0
  1284. package/dist/chunks/soap-dispenser-droplet-B9ccbDq0.js +23 -0
  1285. package/dist/chunks/sofa-B6rYi5lP.js +18 -0
  1286. package/dist/chunks/soup-BR2WZsWv.js +28 -0
  1287. package/dist/chunks/space-Db_MJ0Al.js +8 -0
  1288. package/dist/chunks/spade-CZVSARf1.js +15 -0
  1289. package/dist/chunks/sparkle-CLy7wtFp.js +14 -0
  1290. package/dist/chunks/sparkles-yh22igMG.js +17 -0
  1291. package/dist/chunks/speaker-DId3RThv.js +11 -0
  1292. package/dist/chunks/speech-B7wksubu.js +16 -0
  1293. package/dist/chunks/spell-check-2-Cp26GAL9.js +16 -0
  1294. package/dist/chunks/spell-check-BfAuUNIS.js +10 -0
  1295. package/dist/chunks/spline-DLp-ZHxo.js +10 -0
  1296. package/dist/chunks/spline-pointer-CKRZ4Rh9.js +17 -0
  1297. package/dist/chunks/split-MqIgXV2d.js +11 -0
  1298. package/dist/chunks/spool-DSHbYK0J.js +21 -0
  1299. package/dist/chunks/spotlight-Bw34n8iU.js +18 -0
  1300. package/dist/chunks/spray-can-C3Dr4B4N.js +17 -0
  1301. package/dist/chunks/sprout-DKVWrWML.js +16 -0
  1302. package/dist/chunks/square-C1SkenzW.js +8 -0
  1303. package/dist/chunks/square-activity-Dk_7opB9.js +9 -0
  1304. package/dist/chunks/square-arrow-down-Blz3vhjG.js +10 -0
  1305. package/dist/chunks/square-arrow-down-left-BKDeMkwg.js +10 -0
  1306. package/dist/chunks/square-arrow-down-right-CSMJk89t.js +10 -0
  1307. package/dist/chunks/square-arrow-left-DRu8-KUK.js +10 -0
  1308. package/dist/chunks/square-arrow-out-down-left-DdeB-xrt.js +10 -0
  1309. package/dist/chunks/square-arrow-out-down-right-B70oGbag.js +10 -0
  1310. package/dist/chunks/square-arrow-out-up-left-BWMxNwpc.js +10 -0
  1311. package/dist/chunks/square-arrow-out-up-right-CH0zf7YW.js +10 -0
  1312. package/dist/chunks/square-arrow-right-B33Owu-E.js +10 -0
  1313. package/dist/chunks/square-arrow-up-Bny8YBKo.js +10 -0
  1314. package/dist/chunks/square-arrow-up-left-BGqCCXGr.js +10 -0
  1315. package/dist/chunks/square-arrow-up-right-BxMnGEu_.js +10 -0
  1316. package/dist/chunks/square-asterisk-0RmzUbGY.js +11 -0
  1317. package/dist/chunks/square-bottom-dashed-scissors-87yf1fWU.js +18 -0
  1318. package/dist/chunks/square-chart-gantt-UXq1hJd0.js +11 -0
  1319. package/dist/chunks/square-check-BT662ysq.js +9 -0
  1320. package/dist/chunks/square-check-big-CckHRv7V.js +12 -0
  1321. package/dist/chunks/square-chevron-down-CO_JMMvq.js +9 -0
  1322. package/dist/chunks/square-chevron-left-DX0ZHsZc.js +9 -0
  1323. package/dist/chunks/square-chevron-right-ik5AJDVu.js +9 -0
  1324. package/dist/chunks/square-chevron-up-CqQcW9XU.js +9 -0
  1325. package/dist/chunks/square-code-Dne5sn4q.js +10 -0
  1326. package/dist/chunks/square-dashed-Dwcp0zi-.js +19 -0
  1327. package/dist/chunks/square-dashed-bottom-BMO4l3TS.js +13 -0
  1328. package/dist/chunks/square-dashed-bottom-code-ZzGeB-u0.js +15 -0
  1329. package/dist/chunks/square-dashed-kanban-BazRy4Ym.js +22 -0
  1330. package/dist/chunks/square-dashed-mouse-pointer-BLvR3102.js +23 -0
  1331. package/dist/chunks/square-dashed-top-solid-CqLZAZp8.js +16 -0
  1332. package/dist/chunks/square-divide-Ek3TGS3q.js +11 -0
  1333. package/dist/chunks/square-dot-BzmD5HVP.js +9 -0
  1334. package/dist/chunks/square-equal-DN_WjWus.js +10 -0
  1335. package/dist/chunks/square-function-BU_lS6dN.js +10 -0
  1336. package/dist/chunks/square-kanban-B5PiczZ-.js +11 -0
  1337. package/dist/chunks/square-library-D0NE4Jw5.js +11 -0
  1338. package/dist/chunks/square-m-Fj7hvhRa.js +9 -0
  1339. package/dist/chunks/square-menu-D6IllpyO.js +11 -0
  1340. package/dist/chunks/square-minus-7lO81j0x.js +9 -0
  1341. package/dist/chunks/square-mouse-pointer-C-FwAZYg.js +15 -0
  1342. package/dist/chunks/square-parking-off-C_4lKreI.js +12 -0
  1343. package/dist/chunks/square-parking-s7oCnY3d.js +9 -0
  1344. package/dist/chunks/square-pause-CEupW7d3.js +10 -0
  1345. package/dist/chunks/square-pen-CK6sNcWK.js +15 -0
  1346. package/dist/chunks/square-percent-CI-TxTdq.js +11 -0
  1347. package/dist/chunks/square-pi-CEIbRIR5.js +11 -0
  1348. package/dist/chunks/square-pilcrow-BKDEfsKr.js +11 -0
  1349. package/dist/chunks/square-play-BxQdadSi.js +15 -0
  1350. package/dist/chunks/square-plus-CLLz9syj.js +10 -0
  1351. package/dist/chunks/square-power-LGg-qPbD.js +10 -0
  1352. package/dist/chunks/square-radical-DRwDTB4q.js +9 -0
  1353. package/dist/chunks/square-round-corner-unZS5U_8.js +9 -0
  1354. package/dist/chunks/square-scissors-Ce4Joj3A.js +13 -0
  1355. package/dist/chunks/square-sigma-CY9RLUr_.js +9 -0
  1356. package/dist/chunks/square-slash-C3LT7Rz0.js +9 -0
  1357. package/dist/chunks/square-split-horizontal-CU5E_FmA.js +10 -0
  1358. package/dist/chunks/square-split-vertical-D4r-UACK.js +10 -0
  1359. package/dist/chunks/square-square-B8c9-rXC.js +9 -0
  1360. package/dist/chunks/square-stack-CePoBQs5.js +10 -0
  1361. package/dist/chunks/square-stop-CDI94wZu.js +9 -0
  1362. package/dist/chunks/square-terminal-Bk9FXF6V.js +10 -0
  1363. package/dist/chunks/square-user-fvXstqCf.js +10 -0
  1364. package/dist/chunks/square-user-round-81QDngVh.js +10 -0
  1365. package/dist/chunks/square-x-B79uLaRb.js +10 -0
  1366. package/dist/chunks/squares-exclude-CMAqSoyZ.js +21 -0
  1367. package/dist/chunks/squares-intersect-DhXRYilo.js +21 -0
  1368. package/dist/chunks/squares-subtract-t5u7lvh_.js +19 -0
  1369. package/dist/chunks/squares-unite-DJMkzH54.js +14 -0
  1370. package/dist/chunks/squircle-dashed-BfH90lub.js +15 -0
  1371. package/dist/chunks/squircle-oDubp6E8.js +8 -0
  1372. package/dist/chunks/squirrel-BrDLj7tI.js +17 -0
  1373. package/dist/chunks/stamp-CroC2CG6.js +16 -0
  1374. package/dist/chunks/star-half-lmYwYg4E.js +14 -0
  1375. package/dist/chunks/star-off-BTCMVGrQ.js +10 -0
  1376. package/dist/chunks/step-back-BKdA79h-.js +15 -0
  1377. package/dist/chunks/step-forward-ChddB9JT.js +15 -0
  1378. package/dist/chunks/stethoscope-BMQg-S6Q.js +12 -0
  1379. package/dist/chunks/sticker-bOSQ9qpL.js +15 -0
  1380. package/dist/chunks/sticky-note-CZOkesGv.js +9 -0
  1381. package/dist/chunks/store-Dvw8P12L.js +18 -0
  1382. package/dist/chunks/stretch-horizontal-DTwE_7DW.js +9 -0
  1383. package/dist/chunks/stretch-vertical-D0-gK7U1.js +9 -0
  1384. package/dist/chunks/strikethrough-FyvYXuRH.js +10 -0
  1385. package/dist/chunks/subscript-DsamNNI3.js +16 -0
  1386. package/dist/chunks/sun-Bj15wHTr.js +16 -0
  1387. package/dist/chunks/sun-dim-MEiEJpwg.js +16 -0
  1388. package/dist/chunks/sun-medium-DDxHydpl.js +16 -0
  1389. package/dist/chunks/sun-moon-BYRxbVSL.js +18 -0
  1390. package/dist/chunks/sun-snow-BfGQrRXP.js +18 -0
  1391. package/dist/chunks/sunrise-ygv9qFLq.js +15 -0
  1392. package/dist/chunks/sunset-X0y4KZQJ.js +15 -0
  1393. package/dist/chunks/superscript-BXOVvpyF.js +16 -0
  1394. package/dist/chunks/swatch-book-DBg1SWx3.js +17 -0
  1395. package/dist/chunks/swiss-franc-D62xKg3M.js +10 -0
  1396. package/dist/chunks/switch-camera-ey10vx04.js +12 -0
  1397. package/dist/chunks/sword-B--tQOYd.js +11 -0
  1398. package/dist/chunks/swords-CEqTCrD6.js +15 -0
  1399. package/dist/chunks/syringe-Dk39NMjy.js +13 -0
  1400. package/dist/chunks/table-2-CBiIEndv.js +14 -0
  1401. package/dist/chunks/table-BHU-sFqV.js +11 -0
  1402. package/dist/chunks/table-cells-merge-C9_VDlaq.js +12 -0
  1403. package/dist/chunks/table-cells-split-Bz9bnHUm.js +11 -0
  1404. package/dist/chunks/table-columns-split-BiD7upy_.js +18 -0
  1405. package/dist/chunks/table-of-contents-CDhWIzvy.js +13 -0
  1406. package/dist/chunks/table-properties-KjhKDdV1.js +11 -0
  1407. package/dist/chunks/table-rows-split-D5jDxARa.js +18 -0
  1408. package/dist/chunks/tablet-d_FFe3V3.js +9 -0
  1409. package/dist/chunks/tablet-smartphone-ia8o6zWk.js +10 -0
  1410. package/dist/chunks/tablets--ALqr4CD.js +11 -0
  1411. package/dist/chunks/tag-OAUfa4Tp.js +15 -0
  1412. package/dist/chunks/tags-DGXzryFo.js +19 -0
  1413. package/dist/chunks/tally-1-C7ECJkzE.js +6 -0
  1414. package/dist/chunks/tally-2-fe5a79DB.js +9 -0
  1415. package/dist/chunks/tally-3-BhA9pDIU.js +10 -0
  1416. package/dist/chunks/tally-4-DiK5CLJ3.js +11 -0
  1417. package/dist/chunks/tally-5-DoPbFLW8.js +12 -0
  1418. package/dist/chunks/tangent-CMU6m5Bk.js +11 -0
  1419. package/dist/chunks/target-BjNQevkX.js +10 -0
  1420. package/dist/chunks/telescope-BZ9MZNN7.js +26 -0
  1421. package/dist/chunks/tent-EBWlt_pB.js +11 -0
  1422. package/dist/chunks/tent-tree-B6QdR4QM.js +14 -0
  1423. package/dist/chunks/terminal-DzaojWmc.js +9 -0
  1424. package/dist/chunks/test-tube-BglcL0JI.js +10 -0
  1425. package/dist/chunks/test-tube-diagonal-BGul1j5U.js +13 -0
  1426. package/dist/chunks/test-tubes-D8qgq8yQ.js +13 -0
  1427. package/dist/chunks/text-CwOhD_J0.js +10 -0
  1428. package/dist/chunks/text-cursor-RovCngUB.js +10 -0
  1429. package/dist/chunks/text-cursor-input-ClbCG-S3.js +12 -0
  1430. package/dist/chunks/text-quote-CZ4vSpjq.js +11 -0
  1431. package/dist/chunks/text-search-knJ5tgma.js +12 -0
  1432. package/dist/chunks/text-select-DzBQ6G5D.js +22 -0
  1433. package/dist/chunks/theater-BRhSy8p4.js +16 -0
  1434. package/dist/chunks/thermometer-jgsQ7vnf.js +8 -0
  1435. package/dist/chunks/thermometer-snowflake-D108jTmM.js +15 -0
  1436. package/dist/chunks/thermometer-sun-srl7ZuKp.js +13 -0
  1437. package/dist/chunks/thumbs-down-BpmF3cJp.js +15 -0
  1438. package/dist/chunks/thumbs-up-DbYc1wBP.js +15 -0
  1439. package/dist/chunks/ticket-Bsqz-ezh.js +17 -0
  1440. package/dist/chunks/ticket-check-CZXCW2LJ.js +15 -0
  1441. package/dist/chunks/ticket-minus-6CLPS0OW.js +15 -0
  1442. package/dist/chunks/ticket-percent-BtkkT1TR.js +17 -0
  1443. package/dist/chunks/ticket-plus-C7h2cUo-.js +16 -0
  1444. package/dist/chunks/ticket-slash-B6Au2zGA.js +15 -0
  1445. package/dist/chunks/ticket-x-DET_LxkE.js +16 -0
  1446. package/dist/chunks/tickets-ChlVo3Ol.js +12 -0
  1447. package/dist/chunks/tickets-plane-CZYFl_7f.js +14 -0
  1448. package/dist/chunks/timer-DV4bdhiU.js +10 -0
  1449. package/dist/chunks/timer-off-B1a3_nSq.js +12 -0
  1450. package/dist/chunks/timer-reset-OmsnoV5F.js +11 -0
  1451. package/dist/chunks/toggle-left-5Xraqkby.js +9 -0
  1452. package/dist/chunks/toggle-right-ClywSrg-.js +9 -0
  1453. package/dist/chunks/toilet-CJJOjV-A.js +15 -0
  1454. package/dist/chunks/tool-case-BZyzqf9b.js +29 -0
  1455. package/dist/chunks/tornado-C29-u0je.js +12 -0
  1456. package/dist/chunks/torus-DJe78Vtg.js +9 -0
  1457. package/dist/chunks/touchpad-off-D15fH7_0.js +13 -0
  1458. package/dist/chunks/touchpad-yOvQIqRL.js +10 -0
  1459. package/dist/chunks/tower-control-BHS2jcOu.js +17 -0
  1460. package/dist/chunks/toy-brick-ClpKvkwx.js +10 -0
  1461. package/dist/chunks/tractor-ZmEYuiEU.js +16 -0
  1462. package/dist/chunks/traffic-cone-CsI0sS-1.js +17 -0
  1463. package/dist/chunks/train-front-DbY_YygX.js +13 -0
  1464. package/dist/chunks/train-front-tunnel-DDVlACos.js +14 -0
  1465. package/dist/chunks/train-track-Dd9Qzi_E.js +14 -0
  1466. package/dist/chunks/tram-front-Cb7NV_nz.js +14 -0
  1467. package/dist/chunks/transgender-Bl73ZCWH.js +15 -0
  1468. package/dist/chunks/trash-p2s3ODpV.js +10 -0
  1469. package/dist/chunks/tree-deciduous-DoE-5e6A.js +15 -0
  1470. package/dist/chunks/tree-palm-DxDRdmds.js +20 -0
  1471. package/dist/chunks/tree-pine-DwUEAyvz.js +15 -0
  1472. package/dist/chunks/trees-Bc1LAeo4.js +17 -0
  1473. package/dist/chunks/trello-CO-MmKGC.js +10 -0
  1474. package/dist/chunks/trending-down-DON0SKuq.js +9 -0
  1475. package/dist/chunks/trending-up-BNlLX9OG.js +9 -0
  1476. package/dist/chunks/trending-up-down-CRiRNk-J.js +11 -0
  1477. package/dist/chunks/triangle-DhO96wuV.js +11 -0
  1478. package/dist/chunks/triangle-alert-D5yhAwIa.js +16 -0
  1479. package/dist/chunks/triangle-dashed-Byjw8y4W.js +16 -0
  1480. package/dist/chunks/triangle-right-D-dVYyW5.js +14 -0
  1481. package/dist/chunks/trophy-32VqiZDB.js +13 -0
  1482. package/dist/chunks/truck-electric-i6j32fRC.js +23 -0
  1483. package/dist/chunks/truck-xljbxu7o.js +18 -0
  1484. package/dist/chunks/turkish-lira-KIdcQHBx.js +10 -0
  1485. package/dist/chunks/turntable-BNV0dJHV.js +11 -0
  1486. package/dist/chunks/turtle-Dg6Rx8k2.js +17 -0
  1487. package/dist/chunks/tv-ByKzg3MW.js +9 -0
  1488. package/dist/chunks/tv-minimal-BSi24eIr.js +9 -0
  1489. package/dist/chunks/tv-minimal-play-Cm3JqgBr.js +16 -0
  1490. package/dist/chunks/twitch-D8E686fU.js +8 -0
  1491. package/dist/chunks/twitter-DdFl0Ffm.js +14 -0
  1492. package/dist/chunks/type-_aCyVdWQ.js +10 -0
  1493. package/dist/chunks/type-outline-5hprNTFH.js +14 -0
  1494. package/dist/chunks/umbrella-DfKXSar2.js +10 -0
  1495. package/dist/chunks/umbrella-off-B64DpNxQ.js +11 -0
  1496. package/dist/chunks/underline-BthRjIyY.js +9 -0
  1497. package/dist/chunks/undo-2-m00pGQwi.js +9 -0
  1498. package/dist/chunks/undo-BQ3Pt8aU.js +9 -0
  1499. package/dist/chunks/undo-dot-CcgI7-Jt.js +10 -0
  1500. package/dist/chunks/unfold-horizontal-bkF8jkC4.js +15 -0
  1501. package/dist/chunks/unfold-vertical-DJjp1bDt.js +15 -0
  1502. package/dist/chunks/ungroup-Cuv6G6sI.js +9 -0
  1503. package/dist/chunks/university-CNAFz5CZ.js +20 -0
  1504. package/dist/chunks/unlink-2-D0CoHylh.js +8 -0
  1505. package/dist/chunks/unlink-CdMQT5oL.js +25 -0
  1506. package/dist/chunks/unplug-oKoxJdZ1.js +19 -0
  1507. package/dist/chunks/usb-8RSq_enr.js +14 -0
  1508. package/dist/chunks/user-BgkkIjyq.js +9 -0
  1509. package/dist/chunks/user-check-DHkN7ntJ.js +10 -0
  1510. package/dist/chunks/user-cog-ltGOFxy_.js +18 -0
  1511. package/dist/chunks/user-lock-DDhYx6an.js +11 -0
  1512. package/dist/chunks/user-minus-BXrYmVhV.js +10 -0
  1513. package/dist/chunks/user-pen-KByFvBgu.js +16 -0
  1514. package/dist/chunks/user-plus-PI-wXL-d.js +11 -0
  1515. package/dist/chunks/user-round-BuTdnmGG.js +9 -0
  1516. package/dist/chunks/user-round-check-D8u_upCf.js +10 -0
  1517. package/dist/chunks/user-round-cog-3xonqUoz.js +18 -0
  1518. package/dist/chunks/user-round-minus-BP8eICy9.js +10 -0
  1519. package/dist/chunks/user-round-pen-DF4dWmTX.js +16 -0
  1520. package/dist/chunks/user-round-plus-BSn5NZ6B.js +11 -0
  1521. package/dist/chunks/user-round-search-DdL9BAIm.js +11 -0
  1522. package/dist/chunks/user-round-x-pjXQDuej.js +11 -0
  1523. package/dist/chunks/user-search-DEUI0diF.js +11 -0
  1524. package/dist/chunks/user-star-Dw0iQpgX.js +16 -0
  1525. package/dist/chunks/user-x-CFmwObiR.js +11 -0
  1526. package/dist/chunks/users-Eu8egZ8w.js +11 -0
  1527. package/dist/chunks/users-round-Bp_L2l7v.js +10 -0
  1528. package/dist/chunks/utensils-ByqpjWqC.js +10 -0
  1529. package/dist/chunks/utensils-crossed-BTIta81O.js +14 -0
  1530. package/dist/chunks/utility-pole-ClQN9RUo.js +14 -0
  1531. package/dist/chunks/variable-_TLYw4hx.js +11 -0
  1532. package/dist/chunks/vault-AgOrTetJ.js +17 -0
  1533. package/dist/chunks/vector-square-ZINu5ErC.js +15 -0
  1534. package/dist/chunks/vegan-YqEKuJcw.js +10 -0
  1535. package/dist/chunks/venetian-mask-DGYQEWZ8.js +16 -0
  1536. package/dist/chunks/venus-and-mars-B1NUt4MM.js +12 -0
  1537. package/dist/chunks/venus-nTUnGDM3.js +10 -0
  1538. package/dist/chunks/vibrate-Dfs7qm7f.js +10 -0
  1539. package/dist/chunks/vibrate-off-BscOY8Nz.js +12 -0
  1540. package/dist/chunks/video-BJ8xoRZb.js +15 -0
  1541. package/dist/chunks/video-off-DOHFGoiM.js +13 -0
  1542. package/dist/chunks/videotape-Bu5Mfecj.js +12 -0
  1543. package/dist/chunks/view-DMz3e2IC.js +17 -0
  1544. package/dist/chunks/voicemail-Cfekqh-G.js +10 -0
  1545. package/dist/chunks/volleyball-y9lL4h8O.js +13 -0
  1546. package/dist/chunks/volume-1-Dz0g9twH.js +15 -0
  1547. package/dist/chunks/volume-2-DlNSSz-A.js +16 -0
  1548. package/dist/chunks/volume-DV84TP06.js +14 -0
  1549. package/dist/chunks/volume-off-DRqzSwj1.js +18 -0
  1550. package/dist/chunks/volume-x-BzwwsmYc.js +16 -0
  1551. package/dist/chunks/vote-DSbC7iba.js +10 -0
  1552. package/dist/chunks/wallet-CWB-w8_a.js +15 -0
  1553. package/dist/chunks/wallet-cards-C80JtV7y.js +16 -0
  1554. package/dist/chunks/wallet-minimal-COH_0TNL.js +15 -0
  1555. package/dist/chunks/wallpaper-DdjLa6Z0.js +17 -0
  1556. package/dist/chunks/wand--mEMy1Wu.js +16 -0
  1557. package/dist/chunks/wand-sparkles-BKFpBYiz.js +21 -0
  1558. package/dist/chunks/warehouse-BkKPvvzd.js +17 -0
  1559. package/dist/chunks/washing-machine-Dbutj-Pc.js +12 -0
  1560. package/dist/chunks/watch-Cr-vxJw7.js +14 -0
  1561. package/dist/chunks/waves-DsozA_9s.js +28 -0
  1562. package/dist/chunks/waves-ladder-2bEi3cal.js +18 -0
  1563. package/dist/chunks/waypoints-DhDojv6G.js +14 -0
  1564. package/dist/chunks/webcam-B3QGv3ff.js +11 -0
  1565. package/dist/chunks/webhook-kw6qLiyb.js +16 -0
  1566. package/dist/chunks/webhook-off-BP1u_Zu0.js +14 -0
  1567. package/dist/chunks/weight-DmpX3K_C.js +15 -0
  1568. package/dist/chunks/wheat-DSFVyv6e.js +51 -0
  1569. package/dist/chunks/wheat-off-Ix8thkz0.js +47 -0
  1570. package/dist/chunks/whole-word-B3g1Q0_R.js +12 -0
  1571. package/dist/chunks/wifi-cog-Bifm-xWr.js +19 -0
  1572. package/dist/chunks/wifi-high-eTmYl71h.js +10 -0
  1573. package/dist/chunks/wifi-low-DDT-GL2X.js +9 -0
  1574. package/dist/chunks/wifi-off-BTIYtqya.js +14 -0
  1575. package/dist/chunks/wifi-pen-DWKjqDqy.js +17 -0
  1576. package/dist/chunks/wifi-sync-DtDMmA27.js +14 -0
  1577. package/dist/chunks/wifi-vtSBbnNC.js +11 -0
  1578. package/dist/chunks/wifi-zero-Dzh6EOdc.js +6 -0
  1579. package/dist/chunks/wind-DNCBUvj4.js +10 -0
  1580. package/dist/chunks/wind-arrow-down-BoQTC3kz.js +11 -0
  1581. package/dist/chunks/wine-DG1eNfQ_.js +14 -0
  1582. package/dist/chunks/wine-off-lAaZpeQO.js +18 -0
  1583. package/dist/chunks/workflow-CRfhp6sM.js +10 -0
  1584. package/dist/chunks/worm-D6fa97cb.js +16 -0
  1585. package/dist/chunks/wrap-text-H-WzDZJQ.js +11 -0
  1586. package/dist/chunks/wrench-BmsBBmH-.js +14 -0
  1587. package/dist/chunks/youtube-Coptl3aO.js +15 -0
  1588. package/dist/chunks/zap-BKq0dm3C.js +14 -0
  1589. package/dist/chunks/zap-off-Bf0oO-dc.js +17 -0
  1590. package/dist/form-renderer.es.js +1 -1
  1591. package/dist/form-renderer.umd.js +1 -1
  1592. package/dist/page/widgets/temporalGridPersist.d.ts.map +1 -1
  1593. package/package.json +1 -1
  1594. package/dist/chunks/a-arrow-down-BS0iiID0.js +0 -11
  1595. package/dist/chunks/a-arrow-up-C_5S54wl.js +0 -11
  1596. package/dist/chunks/a-large-small-CG79SZOv.js +0 -11
  1597. package/dist/chunks/accessibility-BZ8R1U1U.js +0 -12
  1598. package/dist/chunks/activity-POz5WpvT.js +0 -14
  1599. package/dist/chunks/air-vent-wiQtKxbr.js +0 -17
  1600. package/dist/chunks/airplay-rYLme4cd.js +0 -15
  1601. package/dist/chunks/alarm-clock-BwpyhTJc.js +0 -13
  1602. package/dist/chunks/alarm-clock-check-BdRGexv5.js +0 -13
  1603. package/dist/chunks/alarm-clock-minus-B6FOo8An.js +0 -13
  1604. package/dist/chunks/alarm-clock-off-B7yDSmGx.js +0 -13
  1605. package/dist/chunks/alarm-clock-plus-CKkbSamC.js +0 -14
  1606. package/dist/chunks/alarm-smoke-BtihFw2a.js +0 -15
  1607. package/dist/chunks/album-B-WRKlC8.js +0 -9
  1608. package/dist/chunks/align-center-Btz_q-uZ.js +0 -10
  1609. package/dist/chunks/align-center-horizontal-C6lhggfH.js +0 -12
  1610. package/dist/chunks/align-center-vertical-C48n-tN9.js +0 -12
  1611. package/dist/chunks/align-end-horizontal-BXj_zz7d.js +0 -10
  1612. package/dist/chunks/align-end-vertical-CXoM9jhc.js +0 -10
  1613. package/dist/chunks/align-horizontal-distribute-center-CxegI2y7.js +0 -16
  1614. package/dist/chunks/align-horizontal-distribute-end-D1B_d9GM.js +0 -14
  1615. package/dist/chunks/align-horizontal-distribute-start-DIznkpGJ.js +0 -14
  1616. package/dist/chunks/align-horizontal-justify-center-BQkvJImG.js +0 -13
  1617. package/dist/chunks/align-horizontal-justify-end-C6SieeHY.js +0 -10
  1618. package/dist/chunks/align-horizontal-justify-start-Bo-1F9Ra.js +0 -10
  1619. package/dist/chunks/align-horizontal-space-around-ChJPDuG9.js +0 -10
  1620. package/dist/chunks/align-horizontal-space-between-DZ-FW-lN.js +0 -11
  1621. package/dist/chunks/align-justify-6eP5hYI4.js +0 -10
  1622. package/dist/chunks/align-left-DOv7EL7E.js +0 -10
  1623. package/dist/chunks/align-right-Cvt1FM_a.js +0 -10
  1624. package/dist/chunks/align-start-horizontal-DJS2F8TO.js +0 -10
  1625. package/dist/chunks/align-start-vertical-B7FYoI5f.js +0 -10
  1626. package/dist/chunks/align-vertical-distribute-center-lM18pzfK.js +0 -16
  1627. package/dist/chunks/align-vertical-distribute-end-D0rtiCwG.js +0 -11
  1628. package/dist/chunks/align-vertical-distribute-start-TcTSp_uV.js +0 -14
  1629. package/dist/chunks/align-vertical-justify-center-wEJeszjB.js +0 -10
  1630. package/dist/chunks/align-vertical-justify-end-BskiwIVp.js +0 -10
  1631. package/dist/chunks/align-vertical-justify-start-Dah7NwzC.js +0 -10
  1632. package/dist/chunks/align-vertical-space-around-C_FN33hH.js +0 -10
  1633. package/dist/chunks/align-vertical-space-between-Cxu3D2UN.js +0 -11
  1634. package/dist/chunks/ambulance-DjkWjzLQ.js +0 -20
  1635. package/dist/chunks/ampersand-DhMGSQcP.js +0 -15
  1636. package/dist/chunks/ampersands-BtgqH3xe.js +0 -21
  1637. package/dist/chunks/amphora-CdHq6MF7.js +0 -16
  1638. package/dist/chunks/anchor-D3h9LRiq.js +0 -10
  1639. package/dist/chunks/angry-DEZ_QVVm.js +0 -13
  1640. package/dist/chunks/annoyed-40_nBLbR.js +0 -11
  1641. package/dist/chunks/antenna-DhN-Rit4.js +0 -13
  1642. package/dist/chunks/anvil-BsY2wnJ9.js +0 -18
  1643. package/dist/chunks/aperture-DBH2OPY5.js +0 -14
  1644. package/dist/chunks/app-window-TzaPDpGt.js +0 -11
  1645. package/dist/chunks/app-window-mac-_FOTE7pD.js +0 -11
  1646. package/dist/chunks/apple-CxvHxXLG.js +0 -15
  1647. package/dist/chunks/archive-BQPqFsAh.js +0 -10
  1648. package/dist/chunks/archive-restore-CnebtcGS.js +0 -12
  1649. package/dist/chunks/archive-x-CvsWUMSZ.js +0 -11
  1650. package/dist/chunks/armchair-_0ePoWLy.js +0 -17
  1651. package/dist/chunks/arrow-big-down-CK6yFiH3.js +0 -14
  1652. package/dist/chunks/arrow-big-down-dash-BoNcjifp.js +0 -15
  1653. package/dist/chunks/arrow-big-left-dash-DILmXlGG.js +0 -15
  1654. package/dist/chunks/arrow-big-left-uUz1DHR-.js +0 -14
  1655. package/dist/chunks/arrow-big-right-DPl8zrer.js +0 -14
  1656. package/dist/chunks/arrow-big-right-dash-DvwxkvT4.js +0 -15
  1657. package/dist/chunks/arrow-big-up-QtXwlmSZ.js +0 -14
  1658. package/dist/chunks/arrow-big-up-dash-uilD7TSi.js +0 -15
  1659. package/dist/chunks/arrow-down-0-1-BP9oAZpS.js +0 -12
  1660. package/dist/chunks/arrow-down-1-0-DqJKNJN0.js +0 -12
  1661. package/dist/chunks/arrow-down-a-z-DuJXVi9w.js +0 -12
  1662. package/dist/chunks/arrow-down-from-line-B-jMTlcq.js +0 -10
  1663. package/dist/chunks/arrow-down-left-C8HPwPMY.js +0 -9
  1664. package/dist/chunks/arrow-down-narrow-wide-xGpaPkqy.js +0 -12
  1665. package/dist/chunks/arrow-down-right-C1kq6xb9.js +0 -9
  1666. package/dist/chunks/arrow-down-to-dot-B3tLg1oS.js +0 -10
  1667. package/dist/chunks/arrow-down-to-line-o-8fdpJ5.js +0 -10
  1668. package/dist/chunks/arrow-down-up-4AD-Y3vY.js +0 -11
  1669. package/dist/chunks/arrow-down-wide-narrow-DgXXYYqb.js +0 -12
  1670. package/dist/chunks/arrow-down-z-a-CrQNJ_HZ.js +0 -12
  1671. package/dist/chunks/arrow-left-DB7bZOIi.js +0 -9
  1672. package/dist/chunks/arrow-left-from-line-o6fpqL3S.js +0 -10
  1673. package/dist/chunks/arrow-left-to-line-B4sWjTHf.js +0 -10
  1674. package/dist/chunks/arrow-right-4Rh5Csap.js +0 -9
  1675. package/dist/chunks/arrow-right-from-line-3pu5oA1F.js +0 -10
  1676. package/dist/chunks/arrow-right-left-D8bmoHio.js +0 -11
  1677. package/dist/chunks/arrow-right-to-line-DvMmKWLl.js +0 -10
  1678. package/dist/chunks/arrow-up-0-1-gjOYR3ns.js +0 -12
  1679. package/dist/chunks/arrow-up-1-0-CJYBnw4B.js +0 -12
  1680. package/dist/chunks/arrow-up-a-z-UwFBt7dY.js +0 -12
  1681. package/dist/chunks/arrow-up-from-dot-SxQD-YKv.js +0 -10
  1682. package/dist/chunks/arrow-up-from-line-BQXlc_Kh.js +0 -10
  1683. package/dist/chunks/arrow-up-left-C3gLft4E.js +0 -9
  1684. package/dist/chunks/arrow-up-narrow-wide-DjThb0zT.js +0 -12
  1685. package/dist/chunks/arrow-up-right-CCFjH5ux.js +0 -9
  1686. package/dist/chunks/arrow-up-to-line-CH5_B0jn.js +0 -10
  1687. package/dist/chunks/arrow-up-wide-narrow-BRZ81GU1.js +0 -12
  1688. package/dist/chunks/arrow-up-z-a-B5f_HTJS.js +0 -12
  1689. package/dist/chunks/arrows-up-from-line-CUffRifv.js +0 -12
  1690. package/dist/chunks/asterisk-BKA6HV7W.js +0 -10
  1691. package/dist/chunks/at-sign-BWletbUP.js +0 -9
  1692. package/dist/chunks/atom-cQxwqx2p.js +0 -22
  1693. package/dist/chunks/audio-lines-BqhFAY-n.js +0 -13
  1694. package/dist/chunks/audio-waveform-4AlxXGOb.js +0 -14
  1695. package/dist/chunks/award-CVJdBMJO.js +0 -15
  1696. package/dist/chunks/axe-_4w4cI0T.js +0 -15
  1697. package/dist/chunks/axis-3d-C_9aKAtD.js +0 -11
  1698. package/dist/chunks/baby-DRXKHu9-.js +0 -17
  1699. package/dist/chunks/backpack-B1j7IX4Z.js +0 -15
  1700. package/dist/chunks/badge-BJadHWKW.js +0 -14
  1701. package/dist/chunks/badge-alert-DIAhd05d.js +0 -16
  1702. package/dist/chunks/badge-cent-DAgij4qX.js +0 -16
  1703. package/dist/chunks/badge-check-CaOKynrY.js +0 -15
  1704. package/dist/chunks/badge-dollar-sign-DchTMkIC.js +0 -16
  1705. package/dist/chunks/badge-euro-DPsibeUz.js +0 -16
  1706. package/dist/chunks/badge-indian-rupee-zLqLFGMS.js +0 -17
  1707. package/dist/chunks/badge-info-_hp306_3.js +0 -16
  1708. package/dist/chunks/badge-japanese-yen-DJ5gsVsk.js +0 -18
  1709. package/dist/chunks/badge-minus-CfpGGt83.js +0 -15
  1710. package/dist/chunks/badge-percent-C8-ZtVQ2.js +0 -17
  1711. package/dist/chunks/badge-plus-C-jhK-NK.js +0 -16
  1712. package/dist/chunks/badge-pound-sterling-CDgZ-gYg.js +0 -17
  1713. package/dist/chunks/badge-question-mark-DPiCraNs.js +0 -16
  1714. package/dist/chunks/badge-russian-ruble-qj9nRFZD.js +0 -16
  1715. package/dist/chunks/badge-swiss-franc-DdOZx72X.js +0 -17
  1716. package/dist/chunks/badge-turkish-lira-ChHp5zub.js +0 -16
  1717. package/dist/chunks/badge-x-GyLLpEV0.js +0 -16
  1718. package/dist/chunks/baggage-claim-CRmvCnhC.js +0 -12
  1719. package/dist/chunks/ban-Cg0eoyi4.js +0 -9
  1720. package/dist/chunks/banana-DGzaWFAS.js +0 -15
  1721. package/dist/chunks/bandage-8CBMRiO9.js +0 -14
  1722. package/dist/chunks/banknote-BFS-tP77.js +0 -10
  1723. package/dist/chunks/banknote-arrow-down-ZGQ9PNw8.js +0 -13
  1724. package/dist/chunks/banknote-arrow-up-B2pE3toA.js +0 -13
  1725. package/dist/chunks/banknote-x-CC8t8WNf.js +0 -13
  1726. package/dist/chunks/barcode-Bpdfgv4s.js +0 -12
  1727. package/dist/chunks/barrel-4XCz2D9V.js +0 -18
  1728. package/dist/chunks/baseline-D2Gjp6eq.js +0 -10
  1729. package/dist/chunks/bath-B_AzvNnL.js +0 -18
  1730. package/dist/chunks/battery-DTXzYJuY.js +0 -9
  1731. package/dist/chunks/battery-charging-BJnHdhTk.js +0 -11
  1732. package/dist/chunks/battery-full-Dna2uT6w.js +0 -12
  1733. package/dist/chunks/battery-low-oeo-6ZiH.js +0 -10
  1734. package/dist/chunks/battery-medium-DKN-Kpym.js +0 -11
  1735. package/dist/chunks/battery-plus-B4T6O9qE.js +0 -12
  1736. package/dist/chunks/battery-warning-D5epjK72.js +0 -12
  1737. package/dist/chunks/beaker-DSHCVpmf.js +0 -10
  1738. package/dist/chunks/bean-Cdef_BA-.js +0 -15
  1739. package/dist/chunks/bean-off-CJKfEQgU.js +0 -23
  1740. package/dist/chunks/bed-DaWyGvCK.js +0 -11
  1741. package/dist/chunks/bed-double-BOoxAoMI.js +0 -11
  1742. package/dist/chunks/bed-single-C3D8XkPf.js +0 -10
  1743. package/dist/chunks/beef-im6ELNEE.js +0 -22
  1744. package/dist/chunks/beer-DMRupVrz.js +0 -18
  1745. package/dist/chunks/beer-off-BXhuC47r.js +0 -24
  1746. package/dist/chunks/bell-DAkj-Np-.js +0 -15
  1747. package/dist/chunks/bell-dot-C37plkSW.js +0 -16
  1748. package/dist/chunks/bell-electric-Cj-WrsP7.js +0 -13
  1749. package/dist/chunks/bell-minus-C-oqz6pj.js +0 -16
  1750. package/dist/chunks/bell-off-DEvoc626.js +0 -17
  1751. package/dist/chunks/bell-plus-CFzapMVV.js +0 -17
  1752. package/dist/chunks/bell-ring-CLH0hFBy.js +0 -17
  1753. package/dist/chunks/between-horizontal-end-CnfjnOKj.js +0 -10
  1754. package/dist/chunks/between-horizontal-start-CE87NRiY.js +0 -10
  1755. package/dist/chunks/between-vertical-end-CEgL9p7H.js +0 -10
  1756. package/dist/chunks/between-vertical-start-DqQmNc8q.js +0 -10
  1757. package/dist/chunks/biceps-flexed-DAXqzUzl.js +0 -16
  1758. package/dist/chunks/bike-TSn8x6HE.js +0 -11
  1759. package/dist/chunks/binary-CaVNEog8.js +0 -13
  1760. package/dist/chunks/binoculars-JhzsMgCa.js +0 -25
  1761. package/dist/chunks/biohazard-CWChzCwl.js +0 -17
  1762. package/dist/chunks/bird-y0pIjLs-.js +0 -13
  1763. package/dist/chunks/bitcoin-N7GaR6gz.js +0 -14
  1764. package/dist/chunks/blend-BhPdNlSz.js +0 -9
  1765. package/dist/chunks/blinds-BKGHHQPV.js +0 -14
  1766. package/dist/chunks/blocks-BH7tiZ6A.js +0 -15
  1767. package/dist/chunks/bluetooth-DwTu8Hdg.js +0 -6
  1768. package/dist/chunks/bluetooth-connected-DO7GHupb.js +0 -10
  1769. package/dist/chunks/bluetooth-off-BTUsBNp1.js +0 -10
  1770. package/dist/chunks/bluetooth-searching-DmnX84U9.js +0 -10
  1771. package/dist/chunks/bold-je2jMZ1e.js +0 -11
  1772. package/dist/chunks/bolt-C-gNRsX5.js +0 -15
  1773. package/dist/chunks/bomb-D2bChH3k.js +0 -16
  1774. package/dist/chunks/bone-DHUMmNZS.js +0 -14
  1775. package/dist/chunks/book-Bc0-lYSj.js +0 -14
  1776. package/dist/chunks/book-a-DMN1BLJn.js +0 -16
  1777. package/dist/chunks/book-alert-D1Fk_B4O.js +0 -16
  1778. package/dist/chunks/book-audio-Bik_NkVd.js +0 -17
  1779. package/dist/chunks/book-check-CN96SA2b.js +0 -15
  1780. package/dist/chunks/book-copy-CgrnGWyC.js +0 -16
  1781. package/dist/chunks/book-dashed-BUI6ujdE.js +0 -18
  1782. package/dist/chunks/book-down-Btz3i2UI.js +0 -16
  1783. package/dist/chunks/book-headphones-BejB4Yhf.js +0 -17
  1784. package/dist/chunks/book-heart-CrqQE_wp.js +0 -21
  1785. package/dist/chunks/book-image-DIBB0A6q.js +0 -16
  1786. package/dist/chunks/book-key-D-8vfGd2.js +0 -12
  1787. package/dist/chunks/book-lock-CwKoPqvO.js +0 -11
  1788. package/dist/chunks/book-marked-BIE7Oumd.js +0 -15
  1789. package/dist/chunks/book-minus-CtqCWQ3x.js +0 -15
  1790. package/dist/chunks/book-open-DsLuN3fE.js +0 -15
  1791. package/dist/chunks/book-open-check-CaqgRGV5.js +0 -16
  1792. package/dist/chunks/book-open-text-Cw1o3AiN.js +0 -19
  1793. package/dist/chunks/book-plus-BLHX-Ewt.js +0 -16
  1794. package/dist/chunks/book-text-CsO6oE7G.js +0 -16
  1795. package/dist/chunks/book-type-CWv5eczP.js +0 -17
  1796. package/dist/chunks/book-up-2-BSo6I7Tv.js +0 -12
  1797. package/dist/chunks/book-up-C3bRyhG-.js +0 -16
  1798. package/dist/chunks/book-user-B53i6t6c.js +0 -16
  1799. package/dist/chunks/book-x-CFZvJjIl.js +0 -16
  1800. package/dist/chunks/bookmark-Dll6EUei.js +0 -8
  1801. package/dist/chunks/bookmark-check-CHjmAhYG.js +0 -9
  1802. package/dist/chunks/bookmark-minus-B4txzgX3.js +0 -9
  1803. package/dist/chunks/bookmark-plus-D-I1sDkB.js +0 -10
  1804. package/dist/chunks/bookmark-x-ByShVC3V.js +0 -10
  1805. package/dist/chunks/boom-box--7Q7I3FR.js +0 -14
  1806. package/dist/chunks/bot-B9rhKyjz.js +0 -13
  1807. package/dist/chunks/bot-message-square-uN7er-TK.js +0 -19
  1808. package/dist/chunks/bot-off-C4pxdBJ6.js +0 -14
  1809. package/dist/chunks/bottle-wine-D6dGBeXG.js +0 -15
  1810. package/dist/chunks/bow-arrow-C0XEwJCJ.js +0 -21
  1811. package/dist/chunks/box-VZP3rjl4.js +0 -16
  1812. package/dist/chunks/boxes-DyIN2WMG.js +0 -37
  1813. package/dist/chunks/braces-DMeEc1S7.js +0 -18
  1814. package/dist/chunks/brackets-DzthVQcW.js +0 -9
  1815. package/dist/chunks/brain-DeVd6-Iq.js +0 -15
  1816. package/dist/chunks/brain-circuit-BRX3rdTh.js +0 -26
  1817. package/dist/chunks/brain-cog-nUdo6Z_d.js +0 -34
  1818. package/dist/chunks/brick-wall-aFwRkBWv.js +0 -15
  1819. package/dist/chunks/brick-wall-fire-BAHgo0CI.js +0 -23
  1820. package/dist/chunks/briefcase-Ba01l1q2.js +0 -9
  1821. package/dist/chunks/briefcase-business-Bd7pmMVp.js +0 -11
  1822. package/dist/chunks/briefcase-conveyor-belt-Ddw4wdP2.js +0 -14
  1823. package/dist/chunks/briefcase-medical-BzQ-mFBo.js +0 -13
  1824. package/dist/chunks/bring-to-front-CxGirvnR.js +0 -10
  1825. package/dist/chunks/brush-BDn_dW4j.js +0 -13
  1826. package/dist/chunks/brush-cleaning-Bx1HwVAi.js +0 -17
  1827. package/dist/chunks/bubbles-r2GyflFU.js +0 -11
  1828. package/dist/chunks/bug-BrSqZ5dz.js +0 -24
  1829. package/dist/chunks/bug-off-Cct0_82i.js +0 -16
  1830. package/dist/chunks/bug-play-CsgBLD8N.js +0 -22
  1831. package/dist/chunks/building-2-sjzN6w8-.js +0 -14
  1832. package/dist/chunks/building-DtEby6HT.js +0 -18
  1833. package/dist/chunks/bundle-entry-C6eUE3Xs.js +0 -65465
  1834. package/dist/chunks/bus-CekSKM2e.js +0 -20
  1835. package/dist/chunks/bus-front-0x0CIN_y.js +0 -16
  1836. package/dist/chunks/cable-DmdB9rzH.js +0 -20
  1837. package/dist/chunks/cable-car-DQK3-Oik.js +0 -15
  1838. package/dist/chunks/cake-oNCtsQMt.js +0 -16
  1839. package/dist/chunks/cake-slice-Be8wL6fS.js +0 -17
  1840. package/dist/chunks/calculator-BznXO07E.js +0 -17
  1841. package/dist/chunks/calendar-1-Cd9dxpoL.js +0 -12
  1842. package/dist/chunks/calendar-arrow-down-BM6QDy-H.js +0 -16
  1843. package/dist/chunks/calendar-arrow-up-JAEOtAIr.js +0 -13
  1844. package/dist/chunks/calendar-check-2-CCj3csJ9.js +0 -12
  1845. package/dist/chunks/calendar-check-DztdV5ph.js +0 -12
  1846. package/dist/chunks/calendar-clock-D0vUBRfs.js +0 -13
  1847. package/dist/chunks/calendar-cog-B1uPwol_.js +0 -20
  1848. package/dist/chunks/calendar-days-t3nkkkUK.js +0 -17
  1849. package/dist/chunks/calendar-fold-D9_6npEA.js +0 -12
  1850. package/dist/chunks/calendar-heart-DzuoWCnB.js +0 -21
  1851. package/dist/chunks/calendar-minus-2-CDvhD8n5.js +0 -12
  1852. package/dist/chunks/calendar-minus-VxtNG8Y4.js +0 -12
  1853. package/dist/chunks/calendar-off-DJLpGzLD.js +0 -13
  1854. package/dist/chunks/calendar-plus-2-VSUjuB51.js +0 -13
  1855. package/dist/chunks/calendar-plus-Oai0ZtEU.js +0 -13
  1856. package/dist/chunks/calendar-range-BTJid8Ix.js +0 -15
  1857. package/dist/chunks/calendar-search-CD62we0e.js +0 -13
  1858. package/dist/chunks/calendar-sync-DvADqZE2.js +0 -15
  1859. package/dist/chunks/calendar-x-2-aO5Y7MpR.js +0 -13
  1860. package/dist/chunks/calendar-x-CKw7ZKiV.js +0 -13
  1861. package/dist/chunks/camera-off-DD-59sgW.js +0 -11
  1862. package/dist/chunks/candy-CyC0XUws.js +0 -30
  1863. package/dist/chunks/candy-cane-6OpP4ApM.js +0 -18
  1864. package/dist/chunks/candy-off-4zzJTftU.js +0 -29
  1865. package/dist/chunks/cannabis-CeRTA1o5.js +0 -15
  1866. package/dist/chunks/captions-BTkAlEUs.js +0 -9
  1867. package/dist/chunks/captions-off-C69kdRal.js +0 -13
  1868. package/dist/chunks/car-CzEnmHfu.js +0 -17
  1869. package/dist/chunks/car-front-D2OBoup0.js +0 -16
  1870. package/dist/chunks/car-taxi-front-CseiT1dX.js +0 -17
  1871. package/dist/chunks/caravan-BGHjljvu.js +0 -11
  1872. package/dist/chunks/card-sim-BrA43d49.js +0 -17
  1873. package/dist/chunks/carrot-llvZloJz.js +0 -16
  1874. package/dist/chunks/case-lower-DoZdYHXx.js +0 -11
  1875. package/dist/chunks/case-sensitive-g2Atv10x.js +0 -11
  1876. package/dist/chunks/case-upper-D787LBtg.js +0 -16
  1877. package/dist/chunks/cassette-tape-C45od1tT.js +0 -12
  1878. package/dist/chunks/cast-BJ2fp4QE.js +0 -11
  1879. package/dist/chunks/castle-k7RQPEwe.js +0 -15
  1880. package/dist/chunks/cat-B7eI8lEX.js +0 -17
  1881. package/dist/chunks/cctv-DxHhXeRk.js +0 -24
  1882. package/dist/chunks/chart-area-DWv1lGG0.js +0 -15
  1883. package/dist/chunks/chart-bar-BGO9UNi7.js +0 -11
  1884. package/dist/chunks/chart-bar-big-Dc2gFbJX.js +0 -10
  1885. package/dist/chunks/chart-bar-decreasing-BaVMXcP1.js +0 -11
  1886. package/dist/chunks/chart-bar-increasing-CK9VsAtg.js +0 -11
  1887. package/dist/chunks/chart-bar-stacked-_PTHshyV.js +0 -12
  1888. package/dist/chunks/chart-candlestick-Dq32LWFW.js +0 -14
  1889. package/dist/chunks/chart-column-Cug34cvW.js +0 -11
  1890. package/dist/chunks/chart-column-big-DBLxbror.js +0 -10
  1891. package/dist/chunks/chart-column-decreasing-BPmbBSgU.js +0 -11
  1892. package/dist/chunks/chart-column-increasing-CR5GwkAX.js +0 -11
  1893. package/dist/chunks/chart-column-stacked-D80FbfdX.js +0 -12
  1894. package/dist/chunks/chart-gantt-Dwz2y15O.js +0 -11
  1895. package/dist/chunks/chart-line-BpMbitmq.js +0 -9
  1896. package/dist/chunks/chart-network-IfAGz6TA.js +0 -14
  1897. package/dist/chunks/chart-no-axes-column-DMQ42dPU.js +0 -10
  1898. package/dist/chunks/chart-no-axes-column-decreasing-CG2f5wsi.js +0 -10
  1899. package/dist/chunks/chart-no-axes-column-increasing-C30KN4kl.js +0 -10
  1900. package/dist/chunks/chart-no-axes-combined-BZv21ylm.js +0 -16
  1901. package/dist/chunks/chart-no-axes-gantt-Ae9SDSnQ.js +0 -10
  1902. package/dist/chunks/chart-pie-D1fCd9TI.js +0 -15
  1903. package/dist/chunks/chart-scatter-D_RDAlV6.js +0 -13
  1904. package/dist/chunks/chart-spline-CtibCOje.js +0 -9
  1905. package/dist/chunks/check-check-_qGHu19Q.js +0 -9
  1906. package/dist/chunks/check-line-CtiKaopx.js +0 -10
  1907. package/dist/chunks/chef-hat-BEQqOU4w.js +0 -15
  1908. package/dist/chunks/cherry-CqBPm2Ib.js +0 -11
  1909. package/dist/chunks/chevron-first-CWN_1Lb2.js +0 -9
  1910. package/dist/chunks/chevron-last-CiPf3QEQ.js +0 -9
  1911. package/dist/chunks/chevrons-down-up-ChzEfzd9.js +0 -9
  1912. package/dist/chunks/chevrons-down-wPEKASZn.js +0 -9
  1913. package/dist/chunks/chevrons-left-BHm7G4gn.js +0 -9
  1914. package/dist/chunks/chevrons-left-right-CjoGzGYB.js +0 -9
  1915. package/dist/chunks/chevrons-left-right-ellipsis-DtKKab9G.js +0 -12
  1916. package/dist/chunks/chevrons-right-CvetLFNt.js +0 -9
  1917. package/dist/chunks/chevrons-right-left-CFXqq6O4.js +0 -9
  1918. package/dist/chunks/chevrons-up-D5Q3VNLs.js +0 -9
  1919. package/dist/chunks/chevrons-up-down-AJ4mpUCK.js +0 -9
  1920. package/dist/chunks/chrome-SqiqBcSZ.js +0 -12
  1921. package/dist/chunks/church-Dw2haj-C.js +0 -24
  1922. package/dist/chunks/cigarette-B8iKNPHw.js +0 -12
  1923. package/dist/chunks/cigarette-off-D_kaN99u.js +0 -13
  1924. package/dist/chunks/circle-arrow-down-6sqTS7xG.js +0 -10
  1925. package/dist/chunks/circle-arrow-left-tGSNP3e7.js +0 -10
  1926. package/dist/chunks/circle-arrow-out-down-left-COb1BCGw.js +0 -10
  1927. package/dist/chunks/circle-arrow-out-down-right-Bl_Ll01S.js +0 -10
  1928. package/dist/chunks/circle-arrow-out-up-left-Ce5JajQO.js +0 -10
  1929. package/dist/chunks/circle-arrow-out-up-right-BQwsa9zd.js +0 -10
  1930. package/dist/chunks/circle-arrow-right-C3GtCh07.js +0 -10
  1931. package/dist/chunks/circle-arrow-up-DCab3_AT.js +0 -10
  1932. package/dist/chunks/circle-check-Tu6g4fl0.js +0 -9
  1933. package/dist/chunks/circle-check-big-C6uaOeoH.js +0 -9
  1934. package/dist/chunks/circle-chevron-down-BCNyiTUy.js +0 -9
  1935. package/dist/chunks/circle-chevron-left-xF998Xbe.js +0 -9
  1936. package/dist/chunks/circle-chevron-right-DvqmBOeu.js +0 -9
  1937. package/dist/chunks/circle-chevron-up-BY5my9d5.js +0 -9
  1938. package/dist/chunks/circle-dashed-DnIiI_A9.js +0 -15
  1939. package/dist/chunks/circle-divide-CtntA5wf.js +0 -11
  1940. package/dist/chunks/circle-dollar-sign-CIAA9I2y.js +0 -10
  1941. package/dist/chunks/circle-dot-dashed-CH9bjLXQ.js +0 -16
  1942. package/dist/chunks/circle-ellipsis-DbhVLvtq.js +0 -11
  1943. package/dist/chunks/circle-equal-DD7mVDPT.js +0 -10
  1944. package/dist/chunks/circle-fading-arrow-up-H8xrPfuk.js +0 -14
  1945. package/dist/chunks/circle-fading-plus-8T2uHBux.js +0 -14
  1946. package/dist/chunks/circle-gauge-DKgN0BTP.js +0 -10
  1947. package/dist/chunks/circle-minus-JW0z8Oga.js +0 -9
  1948. package/dist/chunks/circle-off-DsTetIRd.js +0 -10
  1949. package/dist/chunks/circle-parking-CWp87wfD.js +0 -9
  1950. package/dist/chunks/circle-parking-off-ClM3cPXN.js +0 -13
  1951. package/dist/chunks/circle-pause-CQWiKtN5.js +0 -10
  1952. package/dist/chunks/circle-percent-Dx4fVj5_.js +0 -11
  1953. package/dist/chunks/circle-play-BAZOx6Qd.js +0 -15
  1954. package/dist/chunks/circle-plus-JcRLwPzS.js +0 -10
  1955. package/dist/chunks/circle-pound-sterling-DIp3dRj0.js +0 -11
  1956. package/dist/chunks/circle-power-BQdBetD8.js +0 -10
  1957. package/dist/chunks/circle-question-mark-CWPYZZ0X.js +0 -10
  1958. package/dist/chunks/circle-slash-2-D6juWzs0.js +0 -9
  1959. package/dist/chunks/circle-slash-Brdzl_oi.js +0 -9
  1960. package/dist/chunks/circle-small-ToEXcnqw.js +0 -6
  1961. package/dist/chunks/circle-stop-Dqk2nh_2.js +0 -9
  1962. package/dist/chunks/circle-user-round-DZcZ7i5i.js +0 -10
  1963. package/dist/chunks/circle-user-uccK5AvU.js +0 -10
  1964. package/dist/chunks/circle-x-DQaDBRM3.js +0 -10
  1965. package/dist/chunks/circuit-board-CpWsSWCR.js +0 -12
  1966. package/dist/chunks/citrus-DXkvlVTi.js +0 -17
  1967. package/dist/chunks/clapperboard-BsbYnOBK.js +0 -14
  1968. package/dist/chunks/clipboard-JAPffGik.js +0 -15
  1969. package/dist/chunks/clipboard-check-xDTFMZWO.js +0 -16
  1970. package/dist/chunks/clipboard-clock-Csmq19_l.js +0 -12
  1971. package/dist/chunks/clipboard-copy-DyIZwdVo.js +0 -12
  1972. package/dist/chunks/clipboard-list-DDjxoyu5.js +0 -19
  1973. package/dist/chunks/clipboard-minus-DIJTQr8T.js +0 -16
  1974. package/dist/chunks/clipboard-paste-DOzGpmzY.js +0 -12
  1975. package/dist/chunks/clipboard-pen-CaHBxnOE.js +0 -17
  1976. package/dist/chunks/clipboard-pen-line-BpztVzNB.js +0 -18
  1977. package/dist/chunks/clipboard-plus-Big5BUSi.js +0 -17
  1978. package/dist/chunks/clipboard-type-BAk7QPsi.js +0 -18
  1979. package/dist/chunks/clipboard-x-yp5kjg0g.js +0 -17
  1980. package/dist/chunks/clock-1-CdEIW7DE.js +0 -9
  1981. package/dist/chunks/clock-10-BPXkpjGP.js +0 -9
  1982. package/dist/chunks/clock-11-D7yd04eY.js +0 -9
  1983. package/dist/chunks/clock-12-C4OIID4y.js +0 -9
  1984. package/dist/chunks/clock-2-D9byQeBd.js +0 -9
  1985. package/dist/chunks/clock-3-By407SnV.js +0 -9
  1986. package/dist/chunks/clock-4-DfI8qpss.js +0 -9
  1987. package/dist/chunks/clock-5-F1tG7Duy.js +0 -9
  1988. package/dist/chunks/clock-6-oDuDQ_9Q.js +0 -9
  1989. package/dist/chunks/clock-7-B1UFTzNX.js +0 -9
  1990. package/dist/chunks/clock-8-mDFCOn4n.js +0 -9
  1991. package/dist/chunks/clock-9-3sZl_fBO.js +0 -9
  1992. package/dist/chunks/clock-D3Plr8qP.js +0 -9
  1993. package/dist/chunks/clock-alert-__E589s0.js +0 -11
  1994. package/dist/chunks/clock-arrow-down-aJJUl7Om.js +0 -11
  1995. package/dist/chunks/clock-arrow-up-CLpAKj--.js +0 -11
  1996. package/dist/chunks/clock-fading-CyEAcNzr.js +0 -13
  1997. package/dist/chunks/clock-plus-DehMxRg-.js +0 -11
  1998. package/dist/chunks/closed-caption-CyNMGL9p.js +0 -10
  1999. package/dist/chunks/cloud-alert-PPneddex.js +0 -10
  2000. package/dist/chunks/cloud-check-1s4cbUGG.js +0 -9
  2001. package/dist/chunks/cloud-cog-BHaq7yQv.js +0 -22
  2002. package/dist/chunks/cloud-download-D0KuASSm.js +0 -10
  2003. package/dist/chunks/cloud-drizzle-CNxABP8s.js +0 -14
  2004. package/dist/chunks/cloud-fog-ibEQGi4_.js +0 -10
  2005. package/dist/chunks/cloud-hail-4BdiUJTo.js +0 -14
  2006. package/dist/chunks/cloud-lightning-Cz_FcxmP.js +0 -9
  2007. package/dist/chunks/cloud-moon-BN6yk7-q.js +0 -15
  2008. package/dist/chunks/cloud-moon-rain-NagYOWQ3.js +0 -17
  2009. package/dist/chunks/cloud-off-Du0WB9tr.js +0 -13
  2010. package/dist/chunks/cloud-rain-D4B1_TDy.js +0 -11
  2011. package/dist/chunks/cloud-rain-wind-COFha_R7.js +0 -11
  2012. package/dist/chunks/cloud-snow-ibkh1eCu.js +0 -14
  2013. package/dist/chunks/cloud-sun-D4icupEv.js +0 -13
  2014. package/dist/chunks/cloud-sun-rain-2n_j4r68.js +0 -15
  2015. package/dist/chunks/cloud-upload-DkldL9T1.js +0 -10
  2016. package/dist/chunks/cloudy-Dohy_Iwh.js +0 -9
  2017. package/dist/chunks/clover-B3mrKEpw.js +0 -16
  2018. package/dist/chunks/club-C0HZ-_5k.js +0 -15
  2019. package/dist/chunks/code-Cj4G4BfJ.js +0 -9
  2020. package/dist/chunks/code-xml-Cu2zxcht.js +0 -10
  2021. package/dist/chunks/codepen-BX6PSglN.js +0 -12
  2022. package/dist/chunks/codesandbox-uhVZJoph.js +0 -19
  2023. package/dist/chunks/coffee-DIc2ydwJ.js +0 -17
  2024. package/dist/chunks/cog-DOhHLMGA.js +0 -21
  2025. package/dist/chunks/coins-wd1NsDs5.js +0 -11
  2026. package/dist/chunks/columns-2-p0TXUcK0.js +0 -9
  2027. package/dist/chunks/columns-3-cog-TfOpq2_B.js +0 -19
  2028. package/dist/chunks/columns-3-he70-0Hc.js +0 -10
  2029. package/dist/chunks/columns-4-CSRcfMBu.js +0 -11
  2030. package/dist/chunks/combine-Dah11ZBq.js +0 -13
  2031. package/dist/chunks/command-DO0M0A-g.js +0 -11
  2032. package/dist/chunks/compass-CG5v65e9.js +0 -15
  2033. package/dist/chunks/component-Dp9u92J_.js +0 -35
  2034. package/dist/chunks/computer-XIZfA5Tu.js +0 -11
  2035. package/dist/chunks/concierge-bell-BuTUHVRM.js +0 -14
  2036. package/dist/chunks/cone-DIRdxBII.js +0 -9
  2037. package/dist/chunks/construction-OkYmZfLy.js +0 -15
  2038. package/dist/chunks/contact-Cbx7-CJf.js +0 -12
  2039. package/dist/chunks/contact-round-CCQhCKUj.js +0 -12
  2040. package/dist/chunks/container-BhTpWEvz.js +0 -18
  2041. package/dist/chunks/contrast-DEzgdnqP.js +0 -9
  2042. package/dist/chunks/cookie-C_pec9HT.js +0 -13
  2043. package/dist/chunks/cooking-pot-C2kABJFb.js +0 -17
  2044. package/dist/chunks/copy-BA1ouYKW.js +0 -9
  2045. package/dist/chunks/copy-check-s6bFWSJf.js +0 -10
  2046. package/dist/chunks/copy-minus-siYksHOY.js +0 -10
  2047. package/dist/chunks/copy-plus-DzFtAhw6.js +0 -11
  2048. package/dist/chunks/copy-slash-BcSLsOCr.js +0 -10
  2049. package/dist/chunks/copy-x-UOyKkSte.js +0 -11
  2050. package/dist/chunks/copyleft-BZfJqsV2.js +0 -9
  2051. package/dist/chunks/copyright-DKbkvPA3.js +0 -9
  2052. package/dist/chunks/corner-down-left-UqBkYn9S.js +0 -9
  2053. package/dist/chunks/corner-down-right-IHkHnb1P.js +0 -9
  2054. package/dist/chunks/corner-left-down-CJVNKidn.js +0 -9
  2055. package/dist/chunks/corner-left-up-B2H0IHQH.js +0 -9
  2056. package/dist/chunks/corner-right-down-BeTT_myh.js +0 -9
  2057. package/dist/chunks/corner-right-up-wCUu4UyJ.js +0 -9
  2058. package/dist/chunks/corner-up-left-hnIOnqce.js +0 -9
  2059. package/dist/chunks/corner-up-right-CxQg_3xZ.js +0 -9
  2060. package/dist/chunks/cpu-DX6dkzCG.js +0 -21
  2061. package/dist/chunks/creative-commons-BcH1A56E.js +0 -16
  2062. package/dist/chunks/credit-card-D39K-r6K.js +0 -9
  2063. package/dist/chunks/croissant-7FU2gCbJ.js +0 -18
  2064. package/dist/chunks/crop-DelS4MhA.js +0 -9
  2065. package/dist/chunks/cross-CjD_rYOY.js +0 -14
  2066. package/dist/chunks/crosshair-iOwikhO2.js +0 -12
  2067. package/dist/chunks/crown-C__1MQy6.js +0 -15
  2068. package/dist/chunks/cuboid-BZAQT6iS.js +0 -16
  2069. package/dist/chunks/cup-soda-Bgfx-zRT.js +0 -11
  2070. package/dist/chunks/currency-C-xcrFoQ.js +0 -12
  2071. package/dist/chunks/cylinder-LdNh08rG.js +0 -9
  2072. package/dist/chunks/dam-CU09tuLA.js +0 -20
  2073. package/dist/chunks/database-CXPnERzK.js +0 -10
  2074. package/dist/chunks/database-backup-CYBwixzy.js +0 -19
  2075. package/dist/chunks/database-zap-1T-JTHp8.js +0 -12
  2076. package/dist/chunks/decimals-arrow-left-CtF1ZR0L.js +0 -11
  2077. package/dist/chunks/decimals-arrow-right-CjH-gc1u.js +0 -12
  2078. package/dist/chunks/delete-Vt_xPM_I.js +0 -16
  2079. package/dist/chunks/dessert-CQ-KdDZp.js +0 -16
  2080. package/dist/chunks/diameter-DupC8N_k.js +0 -12
  2081. package/dist/chunks/diamond-C8v2N6Z6.js +0 -14
  2082. package/dist/chunks/diamond-minus-BlbUEQ8U.js +0 -15
  2083. package/dist/chunks/diamond-percent-BB2BJhsa.js +0 -17
  2084. package/dist/chunks/diamond-plus-DmwFZaCf.js +0 -16
  2085. package/dist/chunks/dice-1-aJYad1pr.js +0 -9
  2086. package/dist/chunks/dice-2-cawMc-pW.js +0 -10
  2087. package/dist/chunks/dice-3-Dsxci5ap.js +0 -11
  2088. package/dist/chunks/dice-4-0NYS8s_F.js +0 -12
  2089. package/dist/chunks/dice-5-0vW0ebeY.js +0 -13
  2090. package/dist/chunks/dice-6-XZAU5lnk.js +0 -14
  2091. package/dist/chunks/dices-R_iDFGxD.js +0 -16
  2092. package/dist/chunks/diff-BE3Sv8Xk.js +0 -10
  2093. package/dist/chunks/disc-2-BJs_vD1U.js +0 -10
  2094. package/dist/chunks/disc-3-D9wjF0k7.js +0 -11
  2095. package/dist/chunks/disc-QKDjN0ma.js +0 -9
  2096. package/dist/chunks/disc-album-kxLw_UN4.js +0 -10
  2097. package/dist/chunks/divide-D6w-g4jo.js +0 -10
  2098. package/dist/chunks/dna-DduenVqn.js +0 -18
  2099. package/dist/chunks/dna-off-DX9QaWZL.js +0 -17
  2100. package/dist/chunks/dock-CJzcEff_.js +0 -10
  2101. package/dist/chunks/dog-DUdKRRJu.js +0 -24
  2102. package/dist/chunks/dollar-sign-CoqrjQLI.js +0 -9
  2103. package/dist/chunks/donut-Vsf3MijH.js +0 -15
  2104. package/dist/chunks/door-closed-ChhVaS7o.js +0 -10
  2105. package/dist/chunks/door-closed-locked-BcB-xc4U.js +0 -12
  2106. package/dist/chunks/door-open-B55Rr5bO.js +0 -18
  2107. package/dist/chunks/dot-BNv5BoeV.js +0 -6
  2108. package/dist/chunks/drafting-compass-cAqK6Ljl.js +0 -12
  2109. package/dist/chunks/drama-8QgfB0Y-.js +0 -21
  2110. package/dist/chunks/dribbble-DNBoZxzn.js +0 -11
  2111. package/dist/chunks/drill-VN6F7N21.js +0 -22
  2112. package/dist/chunks/drone-CgHy9BX4.js +0 -16
  2113. package/dist/chunks/droplet-HpKKWOqy.js +0 -14
  2114. package/dist/chunks/droplet-off-DEE2PjYP.js +0 -19
  2115. package/dist/chunks/droplets-BSs_IQbS.js +0 -21
  2116. package/dist/chunks/drum-BD-KcZBn.js +0 -14
  2117. package/dist/chunks/drumstick-C_dkuIQ0.js +0 -18
  2118. package/dist/chunks/dumbbell-ble59dkc.js +0 -24
  2119. package/dist/chunks/ear-Dhbp_AKa.js +0 -9
  2120. package/dist/chunks/ear-off-B1KYA5I0.js +0 -12
  2121. package/dist/chunks/earth-lock-Brch_XSG.js +0 -13
  2122. package/dist/chunks/earth-qzCJUJsW.js +0 -17
  2123. package/dist/chunks/eclipse-B39pHn0b.js +0 -9
  2124. package/dist/chunks/egg-BCzZnt2F.js +0 -8
  2125. package/dist/chunks/egg-fried-C-wC9L-v.js +0 -15
  2126. package/dist/chunks/egg-off-oV6r6KAt.js +0 -10
  2127. package/dist/chunks/ellipsis-DCNACqMQ.js +0 -10
  2128. package/dist/chunks/ellipsis-vertical-B4A4qIAv.js +0 -10
  2129. package/dist/chunks/equal-BlwPGKtc.js +0 -9
  2130. package/dist/chunks/equal-approximately-qVdaPN54.js +0 -9
  2131. package/dist/chunks/equal-not-Dfb2W3He.js +0 -10
  2132. package/dist/chunks/eraser-BcqRoGjs.js +0 -15
  2133. package/dist/chunks/ethernet-port-7XI14gw5.js +0 -18
  2134. package/dist/chunks/euro-u8cBZVSR.js +0 -16
  2135. package/dist/chunks/eye-D1fhmA8h.js +0 -15
  2136. package/dist/chunks/eye-closed-S9YfVlb2.js +0 -12
  2137. package/dist/chunks/eye-off-BXnlnSdh.js +0 -23
  2138. package/dist/chunks/facebook-BLWn8J2j.js +0 -11
  2139. package/dist/chunks/factory-4hhWylOa.js +0 -17
  2140. package/dist/chunks/fan-CYeXkWP4.js +0 -15
  2141. package/dist/chunks/fast-forward-DnfvQu84.js +0 -15
  2142. package/dist/chunks/feather-C73h9JVt.js +0 -16
  2143. package/dist/chunks/fence-4JG74_T_.js +0 -14
  2144. package/dist/chunks/ferris-wheel-C1w11FyG.js +0 -16
  2145. package/dist/chunks/figma-CdgimabS.js +0 -12
  2146. package/dist/chunks/file-Czdxlrq0.js +0 -9
  2147. package/dist/chunks/file-archive-BemtkTTi.js +0 -16
  2148. package/dist/chunks/file-audio-2-DrRrEMG2.js +0 -12
  2149. package/dist/chunks/file-audio-DZWqFGQx.js +0 -16
  2150. package/dist/chunks/file-axis-3d-B_NjhMoE.js +0 -11
  2151. package/dist/chunks/file-badge-2-CPvchAxT.js +0 -16
  2152. package/dist/chunks/file-badge-CwQJm8oB.js +0 -17
  2153. package/dist/chunks/file-box-DNjB0cez.js +0 -18
  2154. package/dist/chunks/file-chart-column-CE3tnup1.js +0 -12
  2155. package/dist/chunks/file-chart-column-increasing-DLbcsk7e.js +0 -12
  2156. package/dist/chunks/file-chart-line-CLnMb5X1.js +0 -10
  2157. package/dist/chunks/file-chart-pie-C_7xtHlK.js +0 -17
  2158. package/dist/chunks/file-check-18Q_75RI.js +0 -10
  2159. package/dist/chunks/file-check-2-T5DtOPGw.js +0 -10
  2160. package/dist/chunks/file-clock-vBzAFcvO.js +0 -11
  2161. package/dist/chunks/file-code-2-CCPZje32.js +0 -11
  2162. package/dist/chunks/file-code-JuVaQBEl.js +0 -11
  2163. package/dist/chunks/file-cog-CnpBJ5B_.js +0 -24
  2164. package/dist/chunks/file-diff-CCn-Y3yH.js +0 -11
  2165. package/dist/chunks/file-digit-DUxv9aYF.js +0 -12
  2166. package/dist/chunks/file-down-BWQBCI2t.js +0 -11
  2167. package/dist/chunks/file-heart-plap5nkP.js +0 -19
  2168. package/dist/chunks/file-image-xKytel2x.js +0 -11
  2169. package/dist/chunks/file-input-ChoKok6y.js +0 -11
  2170. package/dist/chunks/file-json-2-BEaoR97G.js +0 -17
  2171. package/dist/chunks/file-json-CpbKe_Tn.js +0 -17
  2172. package/dist/chunks/file-key-2-BQfHNRyg.js +0 -12
  2173. package/dist/chunks/file-key-UKrZUEob.js +0 -11
  2174. package/dist/chunks/file-lock-2-3-zBvLuk.js +0 -11
  2175. package/dist/chunks/file-lock-BVk6ynqE.js +0 -10
  2176. package/dist/chunks/file-minus-2-BOMbZ56J.js +0 -10
  2177. package/dist/chunks/file-minus-DemrsWz1.js +0 -10
  2178. package/dist/chunks/file-music-BoKAYqOo.js +0 -11
  2179. package/dist/chunks/file-output-Csr54_uX.js +0 -12
  2180. package/dist/chunks/file-pen-BfP_nH0q.js +0 -16
  2181. package/dist/chunks/file-pen-line-Iba9PE6E.js +0 -22
  2182. package/dist/chunks/file-play-DOHIaxb_.js +0 -16
  2183. package/dist/chunks/file-plus-2-bns4oTy2.js +0 -11
  2184. package/dist/chunks/file-plus-DdWg3euq.js +0 -11
  2185. package/dist/chunks/file-question-mark-RtVDQVAI.js +0 -10
  2186. package/dist/chunks/file-scan-WKBKBdhG.js +0 -13
  2187. package/dist/chunks/file-search-2-KNKKm5Mj.js +0 -11
  2188. package/dist/chunks/file-search-BJ7EON71.js +0 -14
  2189. package/dist/chunks/file-sliders-2QiBxRZc.js +0 -13
  2190. package/dist/chunks/file-spreadsheet-BtVuENdL.js +0 -13
  2191. package/dist/chunks/file-stack-CLp_QtLa.js +0 -16
  2192. package/dist/chunks/file-symlink--tBwOQV-.js +0 -16
  2193. package/dist/chunks/file-terminal-DWaJc_VL.js +0 -11
  2194. package/dist/chunks/file-type-2-BdyifGK5.js +0 -12
  2195. package/dist/chunks/file-type-ChntktSV.js +0 -12
  2196. package/dist/chunks/file-up-BN_YhPUC.js +0 -11
  2197. package/dist/chunks/file-user-D3-cdDNm.js +0 -11
  2198. package/dist/chunks/file-video-camera-BHu4JMc7.js +0 -17
  2199. package/dist/chunks/file-volume-2-DniAJ8ry.js +0 -12
  2200. package/dist/chunks/file-volume-lzFfgMTD.js +0 -20
  2201. package/dist/chunks/file-warning-DEAhNWtY.js +0 -10
  2202. package/dist/chunks/file-x-2-D_U-XFsM.js +0 -11
  2203. package/dist/chunks/file-x-B07NTvBl.js +0 -11
  2204. package/dist/chunks/files-DpnfCc7z.js +0 -16
  2205. package/dist/chunks/film-CDR4u6C3.js +0 -15
  2206. package/dist/chunks/fingerprint-BdXexc92.js +0 -16
  2207. package/dist/chunks/fire-extinguisher-0ztfkZqF.js +0 -13
  2208. package/dist/chunks/fish-Bg6J3KNa.js +0 -31
  2209. package/dist/chunks/fish-off-DUUgu_Zg.js +0 -28
  2210. package/dist/chunks/fish-symbol-lqfpAxK-.js +0 -8
  2211. package/dist/chunks/flag-CAhgi0Mh.js +0 -14
  2212. package/dist/chunks/flag-off-BjyMNF7P.js +0 -11
  2213. package/dist/chunks/flag-triangle-left-AoVwTFM7.js +0 -11
  2214. package/dist/chunks/flag-triangle-right-BI1-GH5K.js +0 -11
  2215. package/dist/chunks/flame-DRzTPaJv.js +0 -14
  2216. package/dist/chunks/flame-kindling-DbZHI2Yy.js +0 -16
  2217. package/dist/chunks/flashlight-CX1W-QL0.js +0 -16
  2218. package/dist/chunks/flashlight-off-DEDhSRV6.js +0 -11
  2219. package/dist/chunks/flask-conical-Bfo8TLHM.js +0 -16
  2220. package/dist/chunks/flask-conical-off-Dt-mJt6I.js +0 -13
  2221. package/dist/chunks/flask-round-CrG6JmP5.js +0 -10
  2222. package/dist/chunks/flip-horizontal-2-rq8-kzEN.js +0 -13
  2223. package/dist/chunks/flip-horizontal-BWklu00j.js +0 -13
  2224. package/dist/chunks/flip-vertical-2-D0jCVDcD.js +0 -13
  2225. package/dist/chunks/flip-vertical-C0NLhn-w.js +0 -13
  2226. package/dist/chunks/flower-2-CtKEUIMZ.js +0 -18
  2227. package/dist/chunks/flower-CBLdPuZB.js +0 -23
  2228. package/dist/chunks/focus-BCMCOnN_.js +0 -12
  2229. package/dist/chunks/fold-horizontal-CZNrtBhX.js +0 -15
  2230. package/dist/chunks/fold-vertical-B_hEAnYN.js +0 -15
  2231. package/dist/chunks/folder-D-xosy-h.js +0 -14
  2232. package/dist/chunks/folder-archive-hWM2L1cj.js +0 -17
  2233. package/dist/chunks/folder-check-DAOqHp3-.js +0 -15
  2234. package/dist/chunks/folder-clock-CexkhRzY.js +0 -16
  2235. package/dist/chunks/folder-closed-QbiDzXcm.js +0 -15
  2236. package/dist/chunks/folder-code-DzG0qL51.js +0 -16
  2237. package/dist/chunks/folder-cog-BBDIfUzV.js +0 -23
  2238. package/dist/chunks/folder-dot-DQeJcMQB.js +0 -15
  2239. package/dist/chunks/folder-down-BL-AU0Ms.js +0 -16
  2240. package/dist/chunks/folder-git-2-B0fsrFol.js +0 -17
  2241. package/dist/chunks/folder-git-CUTJu-tt.js +0 -17
  2242. package/dist/chunks/folder-heart-FRPk-Jt0.js +0 -21
  2243. package/dist/chunks/folder-input-twVafy82.js +0 -16
  2244. package/dist/chunks/folder-kanban-CgEzh8y2.js +0 -17
  2245. package/dist/chunks/folder-key-B2A-W5tv.js +0 -17
  2246. package/dist/chunks/folder-lock-BiojoF-o.js +0 -16
  2247. package/dist/chunks/folder-minus-C4B96X7R.js +0 -15
  2248. package/dist/chunks/folder-open-CVb-AMi2.js +0 -14
  2249. package/dist/chunks/folder-open-dot-DVJsECUM.js +0 -15
  2250. package/dist/chunks/folder-output-C6JdMYf7.js +0 -16
  2251. package/dist/chunks/folder-pen-CPzbUoc-.js +0 -21
  2252. package/dist/chunks/folder-plus-DIcVbmWE.js +0 -16
  2253. package/dist/chunks/folder-root-3CctPIRm.js +0 -16
  2254. package/dist/chunks/folder-search-0ImjxDiM.js +0 -16
  2255. package/dist/chunks/folder-search-2-DZ0ehh3_.js +0 -16
  2256. package/dist/chunks/folder-symlink-DwyRA2_0.js +0 -15
  2257. package/dist/chunks/folder-sync-BmFYs79-.js +0 -18
  2258. package/dist/chunks/folder-tree-CRsg3116.js +0 -23
  2259. package/dist/chunks/folder-up-otydcdCu.js +0 -16
  2260. package/dist/chunks/folder-x-DQ3-DEmK.js +0 -16
  2261. package/dist/chunks/folders-oZW9Ka0Q.js +0 -18
  2262. package/dist/chunks/footprints-Bn0qafPc.js +0 -23
  2263. package/dist/chunks/forklift-CWXh8f7H.js +0 -11
  2264. package/dist/chunks/forward-CL7CkHsO.js +0 -9
  2265. package/dist/chunks/frame-Cv72aOor.js +0 -11
  2266. package/dist/chunks/framer-CgV3vyK0.js +0 -8
  2267. package/dist/chunks/frown-Dw6QFACy.js +0 -11
  2268. package/dist/chunks/fuel-DXuqPNwI.js +0 -17
  2269. package/dist/chunks/fullscreen-CGqyEHMb.js +0 -12
  2270. package/dist/chunks/funnel-BYJpwaw5.js +0 -14
  2271. package/dist/chunks/funnel-plus-DetMOK5w.js +0 -16
  2272. package/dist/chunks/funnel-x-r2kXRSYF.js +0 -16
  2273. package/dist/chunks/gallery-horizontal-CoM3NwY_.js +0 -10
  2274. package/dist/chunks/gallery-horizontal-end-C4AUlIlP.js +0 -10
  2275. package/dist/chunks/gallery-thumbnails-C8hU_KaM.js +0 -12
  2276. package/dist/chunks/gallery-vertical-D4xAzl-h.js +0 -10
  2277. package/dist/chunks/gallery-vertical-end-B1UPk5ze.js +0 -10
  2278. package/dist/chunks/gamepad-2-DRydF3b5.js +0 -18
  2279. package/dist/chunks/gamepad-BytSH1B0.js +0 -12
  2280. package/dist/chunks/gauge-C1vRlgor.js +0 -9
  2281. package/dist/chunks/gavel-683w__F9.js +0 -12
  2282. package/dist/chunks/gem-wFuv9lRm.js +0 -16
  2283. package/dist/chunks/georgian-lari-48Cum8xi.js +0 -11
  2284. package/dist/chunks/ghost-BlStqU-1.js +0 -16
  2285. package/dist/chunks/gift-BWWfdDts.js +0 -17
  2286. package/dist/chunks/git-branch-B2KGCiKD.js +0 -11
  2287. package/dist/chunks/git-branch-plus-Bdh0wAXm.js +0 -13
  2288. package/dist/chunks/git-commit-horizontal-CCeK2ir0.js +0 -10
  2289. package/dist/chunks/git-commit-vertical-Cn-nq4Hw.js +0 -10
  2290. package/dist/chunks/git-compare-CRi1GiN9.js +0 -11
  2291. package/dist/chunks/git-compare-arrows-nbsj4Jvn.js +0 -13
  2292. package/dist/chunks/git-fork-fXTSF8Yl.js +0 -12
  2293. package/dist/chunks/git-graph-SiCVdWpE.js +0 -13
  2294. package/dist/chunks/git-merge-ifBR2P2X.js +0 -10
  2295. package/dist/chunks/git-pull-request-DUhldUlh.js +0 -11
  2296. package/dist/chunks/git-pull-request-arrow-BoIcMROA.js +0 -12
  2297. package/dist/chunks/git-pull-request-closed-BgihvegH.js +0 -13
  2298. package/dist/chunks/git-pull-request-create-B-drf3fk.js +0 -12
  2299. package/dist/chunks/git-pull-request-create-arrow-DwrFIBOM.js +0 -13
  2300. package/dist/chunks/git-pull-request-draft-Chij3fgh.js +0 -12
  2301. package/dist/chunks/github-BVg2IFll.js +0 -15
  2302. package/dist/chunks/gitlab-CxERZNe3.js +0 -14
  2303. package/dist/chunks/glass-water-CWrCJE1K.js +0 -15
  2304. package/dist/chunks/glasses-Dg0pEHgi.js +0 -12
  2305. package/dist/chunks/globe-lock-ChaMA8sZ.js +0 -17
  2306. package/dist/chunks/globe-rdSoIlhJ.js +0 -10
  2307. package/dist/chunks/goal-DnZ1FL1K.js +0 -10
  2308. package/dist/chunks/gpu-BhTveuBP.js +0 -12
  2309. package/dist/chunks/graduation-cap-j0YqrKF-.js +0 -16
  2310. package/dist/chunks/grape-BDJrbw6E.js +0 -16
  2311. package/dist/chunks/grid-2x2-CFaa018T.js +0 -10
  2312. package/dist/chunks/grid-2x2-check-Bqhdw89w.js +0 -15
  2313. package/dist/chunks/grid-2x2-plus-Br1wpYPG.js +0 -16
  2314. package/dist/chunks/grid-2x2-x-DCY85m1c.js +0 -16
  2315. package/dist/chunks/grid-3x2-DOZrjB92.js +0 -11
  2316. package/dist/chunks/grid-3x3-DL0MLMVq.js +0 -12
  2317. package/dist/chunks/grip-CxmoJU7N.js +0 -16
  2318. package/dist/chunks/grip-horizontal-DV7oqN8W.js +0 -13
  2319. package/dist/chunks/group-DdaOg_5P.js +0 -13
  2320. package/dist/chunks/guitar-CBg1FWZ3.js +0 -23
  2321. package/dist/chunks/ham-CV1QRUd5.js +0 -23
  2322. package/dist/chunks/hamburger-Bv4amjOa.js +0 -17
  2323. package/dist/chunks/hammer-CeAiy2oz.js +0 -16
  2324. package/dist/chunks/hand-SmVnbkxs.js +0 -17
  2325. package/dist/chunks/hand-coins-0-d5rbB3.js +0 -18
  2326. package/dist/chunks/hand-fist-BESWtxk5.js +0 -17
  2327. package/dist/chunks/hand-grab-DytGM-7a.js +0 -15
  2328. package/dist/chunks/hand-heart-CY4ReJC4.js +0 -23
  2329. package/dist/chunks/hand-helping-CYLbihY1.js +0 -16
  2330. package/dist/chunks/hand-metal-CFT5KLfE.js +0 -17
  2331. package/dist/chunks/hand-platter-PMKXW9li.js +0 -19
  2332. package/dist/chunks/handbag-B5wpZG4x.js +0 -15
  2333. package/dist/chunks/handshake-DRWfM7PM.js +0 -18
  2334. package/dist/chunks/hard-drive-CKV0zItU.js +0 -17
  2335. package/dist/chunks/hard-drive-download-D4TH6WqR.js +0 -12
  2336. package/dist/chunks/hard-drive-upload-DE-M3SKD.js +0 -12
  2337. package/dist/chunks/hard-hat-TjAmiVdt.js +0 -11
  2338. package/dist/chunks/hash-B7ThDib-.js +0 -11
  2339. package/dist/chunks/hat-glasses-C141_ZDe.js +0 -18
  2340. package/dist/chunks/haze-C3y6UB8k.js +0 -15
  2341. package/dist/chunks/hdmi-port-Cfgq96TT.js +0 -15
  2342. package/dist/chunks/heading-1-DQTGDDO6.js +0 -11
  2343. package/dist/chunks/heading-2-BAev2XEi.js +0 -11
  2344. package/dist/chunks/heading-3-xwTKJmFK.js +0 -12
  2345. package/dist/chunks/heading-4-BEw7mMBh.js +0 -12
  2346. package/dist/chunks/heading-5-DiJYf_4L.js +0 -15
  2347. package/dist/chunks/heading-6-CfI8PWMN.js +0 -12
  2348. package/dist/chunks/heading-Dm6YRefC.js +0 -10
  2349. package/dist/chunks/headphone-off-CS0Xlx-_.js +0 -18
  2350. package/dist/chunks/headphones-DfRO44rX.js +0 -14
  2351. package/dist/chunks/headset-4nj86u_w.js +0 -15
  2352. package/dist/chunks/heart-CLQTVU8s.js +0 -14
  2353. package/dist/chunks/heart-crack-BK6EV9C4.js +0 -21
  2354. package/dist/chunks/heart-handshake-DOv0QA3G.js +0 -14
  2355. package/dist/chunks/heart-minus-CBQOMy-s.js +0 -15
  2356. package/dist/chunks/heart-off-_h6udFWn.js +0 -22
  2357. package/dist/chunks/heart-plus-ComfGAIu.js +0 -16
  2358. package/dist/chunks/heart-pulse-DvLmiIY-.js +0 -15
  2359. package/dist/chunks/heater-B8AV33Ff.js +0 -20
  2360. package/dist/chunks/hexagon-BWIZeNw7.js +0 -14
  2361. package/dist/chunks/highlighter-DA7yJ714.js +0 -9
  2362. package/dist/chunks/history-DPjx5h8g.js +0 -10
  2363. package/dist/chunks/hop-CHR2Jdon.js +0 -57
  2364. package/dist/chunks/hop-off-D4qQk2EG.js +0 -46
  2365. package/dist/chunks/hospital-DXQ80Y1F.js +0 -18
  2366. package/dist/chunks/hotel-BFiazcOG.js +0 -17
  2367. package/dist/chunks/hourglass-BczNtV4G.js +0 -20
  2368. package/dist/chunks/house-Dc4nEy1g.js +0 -15
  2369. package/dist/chunks/house-plug-w-jJN9xl.js +0 -20
  2370. package/dist/chunks/house-plus-BjWPtTsA.js +0 -17
  2371. package/dist/chunks/house-wifi-3MR31V5l.js +0 -17
  2372. package/dist/chunks/ice-cream-bowl-Dr6ZxKep.js +0 -16
  2373. package/dist/chunks/ice-cream-cone-mW5QoD0Q.js +0 -10
  2374. package/dist/chunks/id-card-228NfezV.js +0 -12
  2375. package/dist/chunks/id-card-lanyard-BVWofMrB.js +0 -18
  2376. package/dist/chunks/image-CXcQ41kq.js +0 -10
  2377. package/dist/chunks/image-down-BdH3vaCr.js +0 -17
  2378. package/dist/chunks/image-minus-GmLYfE17.js +0 -11
  2379. package/dist/chunks/image-off-Z2ldUZrN.js +0 -19
  2380. package/dist/chunks/image-play-DM4FsKVb.js +0 -17
  2381. package/dist/chunks/image-plus-Cu46g95F.js +0 -12
  2382. package/dist/chunks/image-up-DcSQ_LA9.js +0 -17
  2383. package/dist/chunks/image-upscale-CL8QDH07.js +0 -15
  2384. package/dist/chunks/images-Ck-3fjdO.js +0 -11
  2385. package/dist/chunks/import-qcSabUfG.js +0 -16
  2386. package/dist/chunks/inbox-YWrExHDT.js +0 -15
  2387. package/dist/chunks/indent-decrease-DZV8Nq3_.js +0 -11
  2388. package/dist/chunks/indent-increase-DdXHObZI.js +0 -11
  2389. package/dist/chunks/indian-rupee-CrjLgD3U.js +0 -12
  2390. package/dist/chunks/infinity-xMU1yeuS.js +0 -8
  2391. package/dist/chunks/info-3i432kvU.js +0 -10
  2392. package/dist/chunks/inspection-panel-Da84fUfN.js +0 -12
  2393. package/dist/chunks/instagram-DWzNbgdR.js +0 -10
  2394. package/dist/chunks/italic-BreRFSAG.js +0 -10
  2395. package/dist/chunks/iteration-ccw-BP5yzVbb.js +0 -9
  2396. package/dist/chunks/iteration-cw-DpwHmhNj.js +0 -9
  2397. package/dist/chunks/japanese-yen-DRGUu2sl.js +0 -10
  2398. package/dist/chunks/joystick-DherVQ_p.js +0 -17
  2399. package/dist/chunks/kanban-7g6qK400.js +0 -10
  2400. package/dist/chunks/key-C2KOH8M2.js +0 -10
  2401. package/dist/chunks/key-round-M7Vq8iRG.js +0 -15
  2402. package/dist/chunks/key-square-CGjKtSK_.js +0 -22
  2403. package/dist/chunks/keyboard-C2O6fpqa.js +0 -16
  2404. package/dist/chunks/keyboard-music-CxNkswTo.js +0 -16
  2405. package/dist/chunks/keyboard-off-DXZcEi5n.js +0 -17
  2406. package/dist/chunks/lamp-BLgSJ-eK.js +0 -19
  2407. package/dist/chunks/lamp-ceiling-DA429Rhn.js +0 -16
  2408. package/dist/chunks/lamp-desk-C9EpBkdc.js +0 -20
  2409. package/dist/chunks/lamp-floor-BMTeRT-5.js +0 -16
  2410. package/dist/chunks/lamp-wall-down-B1FV-HJz.js +0 -19
  2411. package/dist/chunks/lamp-wall-up-s_blEQq7.js +0 -19
  2412. package/dist/chunks/land-plot-Bku29FEx.js +0 -17
  2413. package/dist/chunks/landmark-CVcZnVVi.js +0 -19
  2414. package/dist/chunks/languages-DtCCL4k8.js +0 -13
  2415. package/dist/chunks/laptop-Bsa_ziLo.js +0 -15
  2416. package/dist/chunks/laptop-minimal-Cnm6Hdr0.js +0 -9
  2417. package/dist/chunks/laptop-minimal-check-DMKJm2oe.js +0 -10
  2418. package/dist/chunks/lasso-BXm_NXk4.js +0 -16
  2419. package/dist/chunks/lasso-select-DWAQdj7I.js +0 -24
  2420. package/dist/chunks/laugh-CvPabUBo.js +0 -11
  2421. package/dist/chunks/layers-2-B0YpleVD.js +0 -21
  2422. package/dist/chunks/layers-AjhDbhkz.js +0 -28
  2423. package/dist/chunks/layout-dashboard-DrVwQKjL.js +0 -11
  2424. package/dist/chunks/layout-grid-u8Qv_qGY.js +0 -11
  2425. package/dist/chunks/layout-list-Ceo-TzjF.js +0 -13
  2426. package/dist/chunks/layout-panel-left-BSFAuPDU.js +0 -10
  2427. package/dist/chunks/layout-panel-top-B2Sx44G8.js +0 -10
  2428. package/dist/chunks/layout-template-BULdFEqg.js +0 -10
  2429. package/dist/chunks/leaf-CuLPjHav.js +0 -15
  2430. package/dist/chunks/leafy-green-Cc6ZqYdV.js +0 -15
  2431. package/dist/chunks/lectern-xZLNY-xj.js +0 -16
  2432. package/dist/chunks/letter-text-C_Wu9sAK.js +0 -12
  2433. package/dist/chunks/library-DgMY1LEi.js +0 -11
  2434. package/dist/chunks/library-big-DpiFZHmv.js +0 -16
  2435. package/dist/chunks/life-buoy-DPObvFdg.js +0 -13
  2436. package/dist/chunks/ligature-DAAupEfb.js +0 -12
  2437. package/dist/chunks/lightbulb-Ba-qbr3A.js +0 -16
  2438. package/dist/chunks/lightbulb-off-BQJMdaUu.js +0 -12
  2439. package/dist/chunks/line-squiggle-DvCEqe8h.js +0 -14
  2440. package/dist/chunks/link-2-Bq_Mdz5G.js +0 -10
  2441. package/dist/chunks/link-2-off-CpIH4wM6.js +0 -11
  2442. package/dist/chunks/link-CJn26h3s.js +0 -9
  2443. package/dist/chunks/linkedin-DXLaBnRi.js +0 -16
  2444. package/dist/chunks/list-C7lLUhid.js +0 -13
  2445. package/dist/chunks/list-check-DMgRDPPQ.js +0 -11
  2446. package/dist/chunks/list-checks-4nRihCF6.js +0 -12
  2447. package/dist/chunks/list-collapse-UGtZMzUE.js +0 -12
  2448. package/dist/chunks/list-end-CHPam4gX.js +0 -12
  2449. package/dist/chunks/list-filter-GAzQXJQ2.js +0 -10
  2450. package/dist/chunks/list-filter-plus-DGS0mhzp.js +0 -12
  2451. package/dist/chunks/list-minus-CrczOBGh.js +0 -11
  2452. package/dist/chunks/list-music-CgrkEh3O.js +0 -12
  2453. package/dist/chunks/list-ordered-rvRVZ8OY.js +0 -13
  2454. package/dist/chunks/list-plus-DJahdEFR.js +0 -12
  2455. package/dist/chunks/list-restart-B0Z3cSTp.js +0 -18
  2456. package/dist/chunks/list-start-DwuWo1Tr.js +0 -12
  2457. package/dist/chunks/list-todo-Cs2UAUoW.js +0 -12
  2458. package/dist/chunks/list-tree-Bf0Q4av_.js +0 -12
  2459. package/dist/chunks/list-video-C4msfonb.js +0 -17
  2460. package/dist/chunks/list-x-D8EqjNTG.js +0 -12
  2461. package/dist/chunks/loader-DrwQeHVd.js +0 -15
  2462. package/dist/chunks/loader-pinwheel-DAMrdW4L.js +0 -11
  2463. package/dist/chunks/locate-C8GjcEhU.js +0 -12
  2464. package/dist/chunks/locate-fixed-DPwj6rJa.js +0 -13
  2465. package/dist/chunks/locate-off-BjDEqvqF.js +0 -14
  2466. package/dist/chunks/lock-D3VPVDqN.js +0 -9
  2467. package/dist/chunks/lock-keyhole-BtXwVSl6.js +0 -10
  2468. package/dist/chunks/lock-keyhole-open-C4oTog0c.js +0 -10
  2469. package/dist/chunks/lock-open-Y84HcRPl.js +0 -9
  2470. package/dist/chunks/log-in-_lWfWpWP.js +0 -10
  2471. package/dist/chunks/log-out-ATVZRDyg.js +0 -10
  2472. package/dist/chunks/logs-BWO5NQhl.js +0 -16
  2473. package/dist/chunks/lollipop-6on5bbuC.js +0 -10
  2474. package/dist/chunks/luggage-BO62Vk4L.js +0 -15
  2475. package/dist/chunks/magnet-Cu2CRLGv.js +0 -16
  2476. package/dist/chunks/mail-UmYVN9W7.js +0 -9
  2477. package/dist/chunks/mail-check-Bsinv88T.js +0 -10
  2478. package/dist/chunks/mail-minus-CThlyYrL.js +0 -10
  2479. package/dist/chunks/mail-open-B9anGC4D.js +0 -15
  2480. package/dist/chunks/mail-plus-Cam2pirc.js +0 -11
  2481. package/dist/chunks/mail-question-mark-D-bUYvug.js +0 -17
  2482. package/dist/chunks/mail-search-CemyA2DG.js +0 -12
  2483. package/dist/chunks/mail-warning-CSfoFsAo.js +0 -11
  2484. package/dist/chunks/mail-x-CDmcinLE.js +0 -11
  2485. package/dist/chunks/mailbox-CaGREa1a.js +0 -17
  2486. package/dist/chunks/mails-CnuyA7rB.js +0 -10
  2487. package/dist/chunks/map-minus-B24-rPjf.js +0 -17
  2488. package/dist/chunks/map-pin-check-CCS32AnR.js +0 -16
  2489. package/dist/chunks/map-pin-check-inside-C8SO3tX2.js +0 -15
  2490. package/dist/chunks/map-pin-house-CIRDUBu6.js +0 -23
  2491. package/dist/chunks/map-pin-jwiH_8Tu.js +0 -15
  2492. package/dist/chunks/map-pin-minus-BTH1D4ye.js +0 -16
  2493. package/dist/chunks/map-pin-minus-inside-CzH11nv0.js +0 -15
  2494. package/dist/chunks/map-pin-off-C5lpC4St.js +0 -18
  2495. package/dist/chunks/map-pin-pen-Db2CUm9B.js +0 -16
  2496. package/dist/chunks/map-pin-plus-D4kQMGNk.js +0 -17
  2497. package/dist/chunks/map-pin-plus-inside-sX8_QeaE.js +0 -16
  2498. package/dist/chunks/map-pin-x-DtlEMUgn.js +0 -17
  2499. package/dist/chunks/map-pin-x-inside-DtrIxjln.js +0 -16
  2500. package/dist/chunks/map-pinned-B5M8d3GW.js +0 -22
  2501. package/dist/chunks/map-plus-Cpatilrg.js +0 -18
  2502. package/dist/chunks/map-vHrempB3.js +0 -16
  2503. package/dist/chunks/mars-D1dbPxYm.js +0 -10
  2504. package/dist/chunks/mars-stroke-bsq_FeY4.js +0 -11
  2505. package/dist/chunks/martini-P68Kar6-.js +0 -10
  2506. package/dist/chunks/maximize-xhU0YYHz.js +0 -11
  2507. package/dist/chunks/medal-CXIwX-hD.js +0 -19
  2508. package/dist/chunks/megaphone-DIwP-T6z.js +0 -16
  2509. package/dist/chunks/megaphone-off-Dr6e6pxQ.js +0 -15
  2510. package/dist/chunks/meh-C7u8dvNO.js +0 -11
  2511. package/dist/chunks/memory-stick-V2ew7Y-d.js +0 -22
  2512. package/dist/chunks/menu-rVxexKGj.js +0 -10
  2513. package/dist/chunks/merge-HfAw8eIl.js +0 -10
  2514. package/dist/chunks/message-circle-CU7i8yXg.js +0 -14
  2515. package/dist/chunks/message-circle-code-BiCM6z1G.js +0 -16
  2516. package/dist/chunks/message-circle-dashed-DqdhxA9S.js +0 -15
  2517. package/dist/chunks/message-circle-heart-DB9ewp4X.js +0 -21
  2518. package/dist/chunks/message-circle-more-Dsl9gUlx.js +0 -17
  2519. package/dist/chunks/message-circle-off-3-9ZEDbs.js +0 -16
  2520. package/dist/chunks/message-circle-plus-D0H_yrN5.js +0 -16
  2521. package/dist/chunks/message-circle-question-mark-DRnR3XOD.js +0 -16
  2522. package/dist/chunks/message-circle-reply-Cun702To.js +0 -16
  2523. package/dist/chunks/message-circle-warning-DpWE2UOL.js +0 -16
  2524. package/dist/chunks/message-circle-x-CSAPfQGg.js +0 -16
  2525. package/dist/chunks/message-square-BUoR-BxS.js +0 -14
  2526. package/dist/chunks/message-square-code-CS7wS3UT.js +0 -16
  2527. package/dist/chunks/message-square-dashed-DNkZXmHg.js +0 -23
  2528. package/dist/chunks/message-square-diff-DuBv78GD.js +0 -17
  2529. package/dist/chunks/message-square-dot-f2oq0OM4.js +0 -15
  2530. package/dist/chunks/message-square-heart-D0N0WS5H.js +0 -21
  2531. package/dist/chunks/message-square-lock-Cm3GP_F_.js +0 -16
  2532. package/dist/chunks/message-square-more-mxOspYRa.js +0 -17
  2533. package/dist/chunks/message-square-off-BZrDRu3o.js +0 -16
  2534. package/dist/chunks/message-square-plus-Dhkuvpet.js +0 -16
  2535. package/dist/chunks/message-square-quote-DcKamve-.js +0 -16
  2536. package/dist/chunks/message-square-reply-B2E9FlFT.js +0 -16
  2537. package/dist/chunks/message-square-share-D6DGyXsW.js +0 -16
  2538. package/dist/chunks/message-square-text-DfW8RvAH.js +0 -17
  2539. package/dist/chunks/message-square-warning-V09EJ4_Y.js +0 -16
  2540. package/dist/chunks/message-square-x-HLOpr35V.js +0 -16
  2541. package/dist/chunks/messages-square-DxuAKvE2.js +0 -21
  2542. package/dist/chunks/mic-BN9aG3kk.js +0 -10
  2543. package/dist/chunks/mic-off-WTJNJt5G.js +0 -13
  2544. package/dist/chunks/mic-vocal-0ZaYG8a2.js +0 -22
  2545. package/dist/chunks/microchip-BxXJ4AT1.js +0 -24
  2546. package/dist/chunks/microscope-o74s7Hkc.js +0 -13
  2547. package/dist/chunks/microwave-BL38s-5c.js +0 -12
  2548. package/dist/chunks/milestone-B-y72GcQ.js +0 -16
  2549. package/dist/chunks/milk-BKd8bAzK.js +0 -16
  2550. package/dist/chunks/milk-off-DfcLxfMh.js +0 -17
  2551. package/dist/chunks/minimize-DR9P8qat.js +0 -11
  2552. package/dist/chunks/monitor-QkVKC0fI.js +0 -10
  2553. package/dist/chunks/monitor-check-DLmez2XA.js +0 -11
  2554. package/dist/chunks/monitor-cog-D7UE7vmA.js +0 -19
  2555. package/dist/chunks/monitor-dot-DuKmEJnj.js +0 -14
  2556. package/dist/chunks/monitor-down-DZz30-B2.js +0 -12
  2557. package/dist/chunks/monitor-off-cL_y26RE.js +0 -12
  2558. package/dist/chunks/monitor-pause-Xlez8wUt.js +0 -12
  2559. package/dist/chunks/monitor-play-DOoGFksW.js +0 -17
  2560. package/dist/chunks/monitor-smartphone-BBfADCZ9.js +0 -11
  2561. package/dist/chunks/monitor-speaker-v4KYzjsK.js +0 -12
  2562. package/dist/chunks/monitor-stop-CG4UHIhL.js +0 -11
  2563. package/dist/chunks/monitor-up-CBGvbQX6.js +0 -12
  2564. package/dist/chunks/monitor-x-B_hsQfJa.js +0 -12
  2565. package/dist/chunks/moon-B-qFWrk9.js +0 -14
  2566. package/dist/chunks/moon-star-DuRIL4Dn.js +0 -16
  2567. package/dist/chunks/mountain-CzqN3UJ6.js +0 -6
  2568. package/dist/chunks/mountain-snow-D2QQOnOe.js +0 -12
  2569. package/dist/chunks/mouse-CJ6xrusN.js +0 -9
  2570. package/dist/chunks/mouse-off-HT9iFpYc.js +0 -11
  2571. package/dist/chunks/mouse-pointer-2-BQ-9X1dR.js +0 -14
  2572. package/dist/chunks/mouse-pointer-B90PmyZm.js +0 -15
  2573. package/dist/chunks/mouse-pointer-ban-DzWhpT-g.js +0 -16
  2574. package/dist/chunks/mouse-pointer-click-BkLBFWKA.js +0 -18
  2575. package/dist/chunks/move-3d-Dz8IHbfc.js +0 -11
  2576. package/dist/chunks/move-Bj9fjIco.js +0 -13
  2577. package/dist/chunks/move-diagonal-2-CgRmKnvM.js +0 -10
  2578. package/dist/chunks/move-diagonal-DoOJYAYW.js +0 -10
  2579. package/dist/chunks/move-down-B-t2788D.js +0 -9
  2580. package/dist/chunks/move-down-left-B8CMwqA1.js +0 -9
  2581. package/dist/chunks/move-down-right-npwVEtqp.js +0 -9
  2582. package/dist/chunks/move-horizontal-boP37xIN.js +0 -10
  2583. package/dist/chunks/move-left-DAqAoQOo.js +0 -9
  2584. package/dist/chunks/move-right-DKUPx9YC.js +0 -9
  2585. package/dist/chunks/move-up-WO57KRQQ.js +0 -9
  2586. package/dist/chunks/move-up-left-CxZsoeS6.js +0 -9
  2587. package/dist/chunks/move-up-right-DJGr8PN_.js +0 -9
  2588. package/dist/chunks/move-vertical-CN7dFmgc.js +0 -10
  2589. package/dist/chunks/music-2-Dt3iNRve.js +0 -9
  2590. package/dist/chunks/music-3-Ct9fCHFG.js +0 -9
  2591. package/dist/chunks/music-4-QHaW7poM.js +0 -11
  2592. package/dist/chunks/music-Bcbuuu5R.js +0 -10
  2593. package/dist/chunks/navigation-2-BxTBmbic.js +0 -8
  2594. package/dist/chunks/navigation-2-off-fYimK0Z1.js +0 -10
  2595. package/dist/chunks/navigation-Bkq8ERfS.js +0 -8
  2596. package/dist/chunks/navigation-off-DCJO4KHy.js +0 -10
  2597. package/dist/chunks/network-DV0WBiYf.js +0 -12
  2598. package/dist/chunks/newspaper-CM-4Kkgt.js +0 -17
  2599. package/dist/chunks/nfc-DZpV3NPH.js +0 -11
  2600. package/dist/chunks/non-binary-BS2JpuiJ.js +0 -11
  2601. package/dist/chunks/notebook-BT75vvAp.js +0 -13
  2602. package/dist/chunks/notebook-pen-B-xqafJU.js +0 -19
  2603. package/dist/chunks/notebook-tabs-C3Vnlt4O.js +0 -16
  2604. package/dist/chunks/notebook-text-BnyA6Jm-.js +0 -15
  2605. package/dist/chunks/notepad-text-DmuZKXFe.js +0 -14
  2606. package/dist/chunks/notepad-text-dashed-C8K_1BcO.js +0 -20
  2607. package/dist/chunks/nut-DQLgHnLD.js +0 -22
  2608. package/dist/chunks/nut-off-Duj3IaSk.js +0 -24
  2609. package/dist/chunks/octagon-C-HOvIif.js +0 -14
  2610. package/dist/chunks/octagon-alert-XcxNTVMB.js +0 -16
  2611. package/dist/chunks/octagon-minus-c-OnHCmZ.js +0 -15
  2612. package/dist/chunks/octagon-pause-DLXkLs5H.js +0 -16
  2613. package/dist/chunks/octagon-x-BhfYptW1.js +0 -16
  2614. package/dist/chunks/omega-CaHlSuXz.js +0 -14
  2615. package/dist/chunks/option-CYZxaokK.js +0 -9
  2616. package/dist/chunks/orbit-D-uYs4I9.js +0 -12
  2617. package/dist/chunks/origami-BFEbTHk3.js +0 -22
  2618. package/dist/chunks/package-2-DlmYwcjR.js +0 -16
  2619. package/dist/chunks/package-HYsSZWeZ.js +0 -17
  2620. package/dist/chunks/package-check-CF6BFhpL.js +0 -18
  2621. package/dist/chunks/package-minus-D_5l0urr.js +0 -18
  2622. package/dist/chunks/package-open-WVx-zu5d.js +0 -29
  2623. package/dist/chunks/package-plus-DzJM8ZeG.js +0 -19
  2624. package/dist/chunks/package-search-ClbZC_2R.js +0 -19
  2625. package/dist/chunks/package-x-KxE104Sx.js +0 -18
  2626. package/dist/chunks/paint-bucket-CHRHa6OO.js +0 -14
  2627. package/dist/chunks/paint-roller-DCNC8tgF.js +0 -10
  2628. package/dist/chunks/paintbrush-BGcN7x93.js +0 -22
  2629. package/dist/chunks/paintbrush-vertical-vCb4Hke-.js +0 -17
  2630. package/dist/chunks/palette-CPSCokqM.js +0 -18
  2631. package/dist/chunks/panda-DaYgyR2B.js +0 -19
  2632. package/dist/chunks/panel-bottom-D1ur37C4.js +0 -9
  2633. package/dist/chunks/panel-bottom-close-BjIel_XX.js +0 -10
  2634. package/dist/chunks/panel-bottom-dashed-BQdTMzKZ.js +0 -12
  2635. package/dist/chunks/panel-bottom-open-OcVJZFx2.js +0 -10
  2636. package/dist/chunks/panel-left-close-BYbD8VTK.js +0 -10
  2637. package/dist/chunks/panel-left-dashed-DfQV4qKt.js +0 -12
  2638. package/dist/chunks/panel-left-open-CcKIHPa5.js +0 -10
  2639. package/dist/chunks/panel-right-BApNmQiN.js +0 -9
  2640. package/dist/chunks/panel-right-close-BzsgE5Tt.js +0 -10
  2641. package/dist/chunks/panel-right-dashed-BuK4c04Q.js +0 -12
  2642. package/dist/chunks/panel-right-open-5AMHL4uO.js +0 -10
  2643. package/dist/chunks/panel-top-DJuTXYZC.js +0 -9
  2644. package/dist/chunks/panel-top-close-cZ6I6OCd.js +0 -10
  2645. package/dist/chunks/panel-top-dashed-DP2Fd9-v.js +0 -12
  2646. package/dist/chunks/panel-top-open-CSeGrmSa.js +0 -10
  2647. package/dist/chunks/panels-left-bottom-C_yMRvSb.js +0 -10
  2648. package/dist/chunks/panels-right-bottom-wlbXMLF0.js +0 -10
  2649. package/dist/chunks/panels-top-left-CV02SPiD.js +0 -10
  2650. package/dist/chunks/paperclip-DWi9GFRB.js +0 -14
  2651. package/dist/chunks/parentheses-C7Yj1vbh.js +0 -9
  2652. package/dist/chunks/parking-meter-mBBmV-m2.js +0 -18
  2653. package/dist/chunks/party-popper-Bs7i0LLT.js +0 -31
  2654. package/dist/chunks/pause-rtt05QSj.js +0 -9
  2655. package/dist/chunks/paw-print-WnI_l3P0.js +0 -17
  2656. package/dist/chunks/pc-case-CLUNiCnK.js +0 -11
  2657. package/dist/chunks/pen-BxDqj0nx.js +0 -14
  2658. package/dist/chunks/pen-line-BeqK4CVX.js +0 -15
  2659. package/dist/chunks/pen-off-CLDHC4sI.js +0 -16
  2660. package/dist/chunks/pen-tool-CqzLX4TP.js +0 -23
  2661. package/dist/chunks/pencil-line-ChZXdBnf.js +0 -16
  2662. package/dist/chunks/pencil-off-AmCj7b6c.js +0 -17
  2663. package/dist/chunks/pencil-ruler-B-FGSWf_.js +0 -28
  2664. package/dist/chunks/pentagon-UkJYDC28.js +0 -14
  2665. package/dist/chunks/percent-6YFb86K2.js +0 -10
  2666. package/dist/chunks/person-standing-CIsWRxa1.js +0 -11
  2667. package/dist/chunks/philippine-peso-Cv7qnwz6.js +0 -10
  2668. package/dist/chunks/phone-call-CBPgaLio.js +0 -16
  2669. package/dist/chunks/phone-forwarded-BvZ8iN8T.js +0 -16
  2670. package/dist/chunks/phone-incoming-BHOVTWxU.js +0 -16
  2671. package/dist/chunks/phone-missed-BsBZpxyA.js +0 -16
  2672. package/dist/chunks/phone-off-1hiO9AXM.js +0 -22
  2673. package/dist/chunks/phone-outgoing-DNUqfV5-.js +0 -16
  2674. package/dist/chunks/phone-x7NMl-tl.js +0 -14
  2675. package/dist/chunks/pi-CG0q37FO.js +0 -10
  2676. package/dist/chunks/piano-DIwsKBgf.js +0 -19
  2677. package/dist/chunks/pickaxe-UQRVkn0J.js +0 -29
  2678. package/dist/chunks/picture-in-picture-2-DCI9vdEB.js +0 -9
  2679. package/dist/chunks/picture-in-picture-xJCm93gm.js +0 -12
  2680. package/dist/chunks/piggy-bank-82WXYeZ6.js +0 -16
  2681. package/dist/chunks/pilcrow-left-CU0TQ27G.js +0 -12
  2682. package/dist/chunks/pilcrow-right-D1ku2MMK.js +0 -12
  2683. package/dist/chunks/pilcrow-v-X5Qcl2.js +0 -10
  2684. package/dist/chunks/pill-C8T3cFng.js +0 -12
  2685. package/dist/chunks/pill-bottle-DRL_wtdr.js +0 -10
  2686. package/dist/chunks/pin-C_Rk5EDX.js +0 -15
  2687. package/dist/chunks/pin-off-Bf-U-Xce.js +0 -17
  2688. package/dist/chunks/pipette-DmQBHlze.js +0 -22
  2689. package/dist/chunks/pizza-CnTN0UeQ.js +0 -18
  2690. package/dist/chunks/plane-BtmvoxT4.js +0 -14
  2691. package/dist/chunks/plane-landing-BsKueGi5.js +0 -15
  2692. package/dist/chunks/plane-takeoff-7-kOZjBc.js +0 -15
  2693. package/dist/chunks/play-CDKazS2M.js +0 -14
  2694. package/dist/chunks/plug-2-CC2k4gax.js +0 -12
  2695. package/dist/chunks/plug-CuV8-Hc5.js +0 -11
  2696. package/dist/chunks/plug-zap-C_V_GNbx.js +0 -15
  2697. package/dist/chunks/pocket-di6l-xSr.js +0 -9
  2698. package/dist/chunks/pocket-knife-7rWvCi-g.js +0 -12
  2699. package/dist/chunks/podcast-2_zHKozW.js +0 -14
  2700. package/dist/chunks/pointer-CAAzv8_H.js +0 -18
  2701. package/dist/chunks/pointer-off-OYFJheA5.js +0 -22
  2702. package/dist/chunks/popcorn-B7mNxwig.js +0 -23
  2703. package/dist/chunks/popsicle-CZDmfWb5.js +0 -15
  2704. package/dist/chunks/pound-sterling-J--N5tir.js +0 -11
  2705. package/dist/chunks/power-D9OMwyGH.js +0 -9
  2706. package/dist/chunks/power-off-BTi4Eaar.js +0 -11
  2707. package/dist/chunks/presentation-DR-i6tY1.js +0 -10
  2708. package/dist/chunks/printer-check-DPCUx86H.js +0 -11
  2709. package/dist/chunks/projector-DjtVdsQR.js +0 -19
  2710. package/dist/chunks/proportions-CBzmdBwX.js +0 -10
  2711. package/dist/chunks/puzzle-BjjLBpE6.js +0 -14
  2712. package/dist/chunks/pyramid-D_ibGVJL.js +0 -15
  2713. package/dist/chunks/qr-code-BgbbLN6k.js +0 -19
  2714. package/dist/chunks/quote-Dqw_LjPn.js +0 -21
  2715. package/dist/chunks/rabbit-BlE3g0Nh.js +0 -18
  2716. package/dist/chunks/radar-CDiT1eba.js +0 -15
  2717. package/dist/chunks/radiation-df5m8Fri.js +0 -29
  2718. package/dist/chunks/radical-C1bDhrpb.js +0 -14
  2719. package/dist/chunks/radio-BTkPoDUx.js +0 -12
  2720. package/dist/chunks/radio-receiver-lKjFJtfr.js +0 -11
  2721. package/dist/chunks/radio-tower-JGUdAyjD.js +0 -14
  2722. package/dist/chunks/radius-Bi8RVIq5.js +0 -11
  2723. package/dist/chunks/rail-symbol-kMMD-ZyJ.js +0 -10
  2724. package/dist/chunks/rainbow-C0Nsq3Tu.js +0 -10
  2725. package/dist/chunks/rat-DAlLrMT-.js +0 -18
  2726. package/dist/chunks/ratio-CeZ7pai2.js +0 -9
  2727. package/dist/chunks/receipt-BmpWOZyk.js +0 -13
  2728. package/dist/chunks/receipt-cent-BMqcg7TB.js +0 -13
  2729. package/dist/chunks/receipt-euro-X25QXK82.js +0 -13
  2730. package/dist/chunks/receipt-indian-rupee-DBbEPglc.js +0 -14
  2731. package/dist/chunks/receipt-japanese-yen-CmEs4nEN.js +0 -15
  2732. package/dist/chunks/receipt-pound-sterling-B7_OEtd4.js +0 -14
  2733. package/dist/chunks/receipt-russian-ruble-to_FirdS.js +0 -13
  2734. package/dist/chunks/receipt-swiss-franc-cGO_Ir42.js +0 -14
  2735. package/dist/chunks/receipt-text-LcIlxy-j.js +0 -14
  2736. package/dist/chunks/receipt-turkish-lira-6htM-AjT.js +0 -13
  2737. package/dist/chunks/rectangle-circle-Clp7nOtZ.js +0 -9
  2738. package/dist/chunks/rectangle-ellipsis-5pe1nz5Y.js +0 -11
  2739. package/dist/chunks/rectangle-goggles-BmaM03wQ.js +0 -14
  2740. package/dist/chunks/rectangle-horizontal-HgfHOZDE.js +0 -8
  2741. package/dist/chunks/rectangle-vertical-CZhmEBUY.js +0 -8
  2742. package/dist/chunks/recycle-BmEqKD7Q.js +0 -31
  2743. package/dist/chunks/redo-2-jXUHA0ya.js +0 -9
  2744. package/dist/chunks/redo-CWte8O9-.js +0 -9
  2745. package/dist/chunks/redo-dot-CuUmV1pt.js +0 -10
  2746. package/dist/chunks/refresh-ccw-BF9iGSaF.js +0 -11
  2747. package/dist/chunks/refresh-ccw-dot-cGj_bbK0.js +0 -12
  2748. package/dist/chunks/refresh-cw-CDevMtXM.js +0 -11
  2749. package/dist/chunks/refresh-cw-off-BJ8ZBp5n.js +0 -14
  2750. package/dist/chunks/refrigerator-CjXnOOHd.js +0 -13
  2751. package/dist/chunks/regex-BHf7Iw5H.js +0 -14
  2752. package/dist/chunks/remove-formatting-DeSUVgeh.js +0 -12
  2753. package/dist/chunks/repeat-1-D79EwH4x.js +0 -12
  2754. package/dist/chunks/repeat-2-BaSS1nQ2.js +0 -11
  2755. package/dist/chunks/repeat-C_WwBwzJ.js +0 -11
  2756. package/dist/chunks/replace-CKKpkS5W.js +0 -14
  2757. package/dist/chunks/replace-all-Cf6gjL9Y.js +0 -16
  2758. package/dist/chunks/reply-CJhl6HS1.js +0 -9
  2759. package/dist/chunks/reply-all-7Mopm-cN.js +0 -10
  2760. package/dist/chunks/rewind-cZpM_l5K.js +0 -15
  2761. package/dist/chunks/ribbon-mBDOcVvy.js +0 -21
  2762. package/dist/chunks/rocket-CvA50z7K.js +0 -23
  2763. package/dist/chunks/rocking-chair-DbX8_3zZ.js +0 -11
  2764. package/dist/chunks/roller-coaster-B2vUeCFn.js +0 -14
  2765. package/dist/chunks/rotate-3d-CBl1mJHF.js +0 -22
  2766. package/dist/chunks/rotate-ccw-Rl_JUXM9.js +0 -9
  2767. package/dist/chunks/rotate-ccw-key-CTrzZIM1.js +0 -12
  2768. package/dist/chunks/rotate-ccw-square-OrznRfEx.js +0 -10
  2769. package/dist/chunks/rotate-cw-square-CduJ_HZG.js +0 -10
  2770. package/dist/chunks/route-DDnnwR-Q.js +0 -10
  2771. package/dist/chunks/route-off-CzazT-pu.js +0 -14
  2772. package/dist/chunks/router-xhCCxuJW.js +0 -13
  2773. package/dist/chunks/rows-2-Deh2nDL2.js +0 -9
  2774. package/dist/chunks/rows-3-NHWtq1I3.js +0 -10
  2775. package/dist/chunks/rows-4-0i7RM-Aa.js +0 -11
  2776. package/dist/chunks/rss-BGx60Sv3.js +0 -10
  2777. package/dist/chunks/ruler-CdP6wFuD.js +0 -18
  2778. package/dist/chunks/ruler-dimension-line-Ci2FvLJX.js +0 -14
  2779. package/dist/chunks/russian-ruble-BAkm6mzv.js +0 -9
  2780. package/dist/chunks/sailboat-lLA1WvCI.js +0 -19
  2781. package/dist/chunks/salad-BcW0wX9v.js +0 -18
  2782. package/dist/chunks/sandwich-DWwGF8-P.js +0 -12
  2783. package/dist/chunks/satellite-Dld7vWMx.js +0 -30
  2784. package/dist/chunks/satellite-dish-CLheAJCW.js +0 -11
  2785. package/dist/chunks/saudi-riyal-LOg_CZgk.js +0 -11
  2786. package/dist/chunks/save-CpvoeQJI.js +0 -16
  2787. package/dist/chunks/save-all-CvRwJ3fV.js +0 -17
  2788. package/dist/chunks/save-off-zgSkaAKh.js +0 -17
  2789. package/dist/chunks/scale-3d-DwqPtdx8.js +0 -11
  2790. package/dist/chunks/scale-DCl1Xc-S.js +0 -12
  2791. package/dist/chunks/scaling-BujJDRyA.js +0 -11
  2792. package/dist/chunks/scan-barcode-BzUN4j1y.js +0 -14
  2793. package/dist/chunks/scan-eye-DGFs8Qdh.js +0 -19
  2794. package/dist/chunks/scan-face-SW-fj3FS.js +0 -14
  2795. package/dist/chunks/scan-heart-BpfFpEzb.js +0 -18
  2796. package/dist/chunks/scan-line-FQd2b1H6.js +0 -12
  2797. package/dist/chunks/scan-qr-code-CLNcv_DB.js +0 -15
  2798. package/dist/chunks/scan-search-DBYKjqW4.js +0 -13
  2799. package/dist/chunks/scan-text-BPCQp8ma.js +0 -14
  2800. package/dist/chunks/school-Ch3yqExp.js +0 -19
  2801. package/dist/chunks/scissors-C_Og_xUA.js +0 -12
  2802. package/dist/chunks/scissors-line-dashed-B2lc_Dg_.js +0 -14
  2803. package/dist/chunks/screen-share-3coDP1Vk.js +0 -12
  2804. package/dist/chunks/screen-share-off-Cszm62He.js +0 -12
  2805. package/dist/chunks/scroll-LG9AktTR.js +0 -15
  2806. package/dist/chunks/scroll-text-sHKf8aET.js +0 -17
  2807. package/dist/chunks/search-check-DAlB3qzK.js +0 -10
  2808. package/dist/chunks/search-code-DjmmGJ9_.js +0 -11
  2809. package/dist/chunks/search-slash-mUBUukpt.js +0 -10
  2810. package/dist/chunks/search-x-BjyDzNB0.js +0 -11
  2811. package/dist/chunks/section-DnbeSuln.js +0 -9
  2812. package/dist/chunks/send-B-Bnt-g-.js +0 -15
  2813. package/dist/chunks/send-horizontal-CfHHpUE5.js +0 -15
  2814. package/dist/chunks/send-to-back-6TcK0HUO.js +0 -11
  2815. package/dist/chunks/separator-horizontal-Dx53-PkB.js +0 -10
  2816. package/dist/chunks/separator-vertical-Br9ymEtY.js +0 -10
  2817. package/dist/chunks/server-Bi17pXkS.js +0 -11
  2818. package/dist/chunks/server-cog-Cd1Wry5d.js +0 -31
  2819. package/dist/chunks/server-crash-DK2zmjOP.js +0 -24
  2820. package/dist/chunks/server-off-mu2jlXXj.js +0 -13
  2821. package/dist/chunks/settings-2-fPWXqEYm.js +0 -11
  2822. package/dist/chunks/settings-xzPfOJ7d.js +0 -15
  2823. package/dist/chunks/shapes-DoenTdDp.js +0 -16
  2824. package/dist/chunks/share-2-Dd0qsooI.js +0 -12
  2825. package/dist/chunks/share-HIJXrUeO.js +0 -10
  2826. package/dist/chunks/sheet-DtWW-ORR.js +0 -12
  2827. package/dist/chunks/shell-q2yUt5DW.js +0 -14
  2828. package/dist/chunks/shield-CQH9oQGw.js +0 -14
  2829. package/dist/chunks/shield-alert-CnKb1_2o.js +0 -16
  2830. package/dist/chunks/shield-ban-wLNwzj04.js +0 -15
  2831. package/dist/chunks/shield-check-DhMmIzAP.js +0 -15
  2832. package/dist/chunks/shield-ellipsis-DtrJvlXK.js +0 -17
  2833. package/dist/chunks/shield-half-DeQwVu8y.js +0 -15
  2834. package/dist/chunks/shield-minus-ChVPh_nj.js +0 -15
  2835. package/dist/chunks/shield-off-Bm8NHSD7.js +0 -22
  2836. package/dist/chunks/shield-plus-DCoi0aXl.js +0 -16
  2837. package/dist/chunks/shield-question-mark-Dg13Sjpt.js +0 -16
  2838. package/dist/chunks/shield-user-DnxK2t_i.js +0 -16
  2839. package/dist/chunks/shield-x-ejKBSszG.js +0 -16
  2840. package/dist/chunks/ship-CKTMLEDG.js +0 -24
  2841. package/dist/chunks/ship-wheel-yXV9SpKk.js +0 -17
  2842. package/dist/chunks/shirt-YseFxDcm.js +0 -14
  2843. package/dist/chunks/shopping-bag-CYrbPynC.js +0 -16
  2844. package/dist/chunks/shopping-basket-DazQdcPN.js +0 -14
  2845. package/dist/chunks/shopping-cart-LWpDEJ9I.js +0 -16
  2846. package/dist/chunks/shovel-CmCId7Hb.js +0 -22
  2847. package/dist/chunks/shower-head-CdGDquWT.js +0 -17
  2848. package/dist/chunks/shredder-CiS_FGqJ.js +0 -14
  2849. package/dist/chunks/shrimp-CMO7L9kN.js +0 -18
  2850. package/dist/chunks/shrink-C81qJ17H.js +0 -11
  2851. package/dist/chunks/shrub-B4LSfb2I.js +0 -10
  2852. package/dist/chunks/shuffle-BFNUBmQC.js +0 -12
  2853. package/dist/chunks/sigma-CvKd1TiQ.js +0 -14
  2854. package/dist/chunks/signal-BfQYtOtn.js +0 -12
  2855. package/dist/chunks/signal-high-8pfRQbLX.js +0 -11
  2856. package/dist/chunks/signal-low-BcGBHpoD.js +0 -9
  2857. package/dist/chunks/signal-medium-Cc0-OU_q.js +0 -10
  2858. package/dist/chunks/signal-zero-CUzanb9w.js +0 -6
  2859. package/dist/chunks/signature-CZsPkamd.js +0 -15
  2860. package/dist/chunks/signpost-DSWEMHPu.js +0 -16
  2861. package/dist/chunks/signpost-big-B29cBFef.js +0 -11
  2862. package/dist/chunks/siren-D6clCQ3K.js +0 -18
  2863. package/dist/chunks/skip-back-BVierbCg.js +0 -15
  2864. package/dist/chunks/skip-forward-Bmgp69VY.js +0 -15
  2865. package/dist/chunks/skull-x_Q-VHQR.js +0 -17
  2866. package/dist/chunks/slack-C1m4j_qx.js +0 -15
  2867. package/dist/chunks/slash-f1UeDp70.js +0 -6
  2868. package/dist/chunks/slice-C3w9IrVK.js +0 -14
  2869. package/dist/chunks/sliders-vertical-B1Rb7R6p.js +0 -16
  2870. package/dist/chunks/smartphone-CDC8jWWJ.js +0 -9
  2871. package/dist/chunks/smartphone-charging-BmifEkye.js +0 -9
  2872. package/dist/chunks/smartphone-nfc-Cj_03Kdk.js +0 -11
  2873. package/dist/chunks/smile-CaRVU2uc.js +0 -11
  2874. package/dist/chunks/smile-plus-DBceRalW.js +0 -13
  2875. package/dist/chunks/snail-aHNWItnw.js +0 -12
  2876. package/dist/chunks/snowflake-2IKWCbP7.js +0 -19
  2877. package/dist/chunks/soap-dispenser-droplet-D3TaeF2J.js +0 -23
  2878. package/dist/chunks/sofa-BFJ0SMcp.js +0 -18
  2879. package/dist/chunks/soup-C7pnCW-v.js +0 -28
  2880. package/dist/chunks/space-C1P36C2T.js +0 -8
  2881. package/dist/chunks/spade-Dw3vpuFX.js +0 -15
  2882. package/dist/chunks/sparkle-DWx-OHU8.js +0 -14
  2883. package/dist/chunks/sparkles-Do5DOfgY.js +0 -17
  2884. package/dist/chunks/speaker-DC3RjTG4.js +0 -11
  2885. package/dist/chunks/speech-BQlkLT0k.js +0 -16
  2886. package/dist/chunks/spell-check-2-DUutpkuB.js +0 -16
  2887. package/dist/chunks/spell-check-qMAFyNmX.js +0 -10
  2888. package/dist/chunks/spline-CxfWPruo.js +0 -10
  2889. package/dist/chunks/spline-pointer-3yyol7oY.js +0 -17
  2890. package/dist/chunks/split-B4AhcSIU.js +0 -11
  2891. package/dist/chunks/spool-BhAL7_cJ.js +0 -21
  2892. package/dist/chunks/spotlight-CcvIK3im.js +0 -18
  2893. package/dist/chunks/spray-can-CK59TbSb.js +0 -17
  2894. package/dist/chunks/sprout-DT0OzL3c.js +0 -16
  2895. package/dist/chunks/square-CXAT1fka.js +0 -8
  2896. package/dist/chunks/square-activity-DnCL81J0.js +0 -9
  2897. package/dist/chunks/square-arrow-down-C3J986I3.js +0 -10
  2898. package/dist/chunks/square-arrow-down-left-C4pnOVy7.js +0 -10
  2899. package/dist/chunks/square-arrow-down-right-V-1kJ8iH.js +0 -10
  2900. package/dist/chunks/square-arrow-left-CR3lW_Ve.js +0 -10
  2901. package/dist/chunks/square-arrow-out-down-left-eCOVck8J.js +0 -10
  2902. package/dist/chunks/square-arrow-out-down-right-BPpFQoNT.js +0 -10
  2903. package/dist/chunks/square-arrow-out-up-left-B0i1ulrt.js +0 -10
  2904. package/dist/chunks/square-arrow-out-up-right-BU16Z9ul.js +0 -10
  2905. package/dist/chunks/square-arrow-right-eZmjan2y.js +0 -10
  2906. package/dist/chunks/square-arrow-up-C95eZFot.js +0 -10
  2907. package/dist/chunks/square-arrow-up-left-D2qFpDAH.js +0 -10
  2908. package/dist/chunks/square-arrow-up-right-CsIm8G2t.js +0 -10
  2909. package/dist/chunks/square-asterisk-D01z-7EO.js +0 -11
  2910. package/dist/chunks/square-bottom-dashed-scissors-bAvSsfAL.js +0 -18
  2911. package/dist/chunks/square-chart-gantt-Dq1wbK_k.js +0 -11
  2912. package/dist/chunks/square-check-NKZbWg3y.js +0 -9
  2913. package/dist/chunks/square-check-big-BoIYeqO8.js +0 -12
  2914. package/dist/chunks/square-chevron-down-p-cqCgKD.js +0 -9
  2915. package/dist/chunks/square-chevron-left-Cvn59eOM.js +0 -9
  2916. package/dist/chunks/square-chevron-right-BdPVHoDe.js +0 -9
  2917. package/dist/chunks/square-chevron-up-DZmW2TkL.js +0 -9
  2918. package/dist/chunks/square-code-GbRpU0Qh.js +0 -10
  2919. package/dist/chunks/square-dashed-BHn-Smc4.js +0 -19
  2920. package/dist/chunks/square-dashed-bottom-CbWTlHXX.js +0 -13
  2921. package/dist/chunks/square-dashed-bottom-code-kjtBCuTH.js +0 -15
  2922. package/dist/chunks/square-dashed-kanban-wdHMz60j.js +0 -22
  2923. package/dist/chunks/square-dashed-mouse-pointer-CQSYPnX4.js +0 -23
  2924. package/dist/chunks/square-dashed-top-solid-BkpMBba8.js +0 -16
  2925. package/dist/chunks/square-divide-UYJ4JiPS.js +0 -11
  2926. package/dist/chunks/square-dot-vNcUxTMZ.js +0 -9
  2927. package/dist/chunks/square-equal-sMYIcYU5.js +0 -10
  2928. package/dist/chunks/square-function-cNIBAE4K.js +0 -10
  2929. package/dist/chunks/square-kanban-BinnnbFw.js +0 -11
  2930. package/dist/chunks/square-library-CCgSFy19.js +0 -11
  2931. package/dist/chunks/square-m-B9UXiNRA.js +0 -9
  2932. package/dist/chunks/square-menu-B0-nYZsT.js +0 -11
  2933. package/dist/chunks/square-minus-VPfsFbMG.js +0 -9
  2934. package/dist/chunks/square-mouse-pointer-Bi-17-C3.js +0 -15
  2935. package/dist/chunks/square-parking-CdlBKT6F.js +0 -9
  2936. package/dist/chunks/square-parking-off-BJLoviZk.js +0 -12
  2937. package/dist/chunks/square-pause-Dq85D0C4.js +0 -10
  2938. package/dist/chunks/square-pen-3b3lVY-e.js +0 -15
  2939. package/dist/chunks/square-percent-DaiXXL6_.js +0 -11
  2940. package/dist/chunks/square-pi-CVOTNdr9.js +0 -11
  2941. package/dist/chunks/square-pilcrow-T-F_TR7C.js +0 -11
  2942. package/dist/chunks/square-play-B1z2USF9.js +0 -15
  2943. package/dist/chunks/square-plus-7XkXWrU-.js +0 -10
  2944. package/dist/chunks/square-power-C-cL5Po_.js +0 -10
  2945. package/dist/chunks/square-radical-WJ5yXomu.js +0 -9
  2946. package/dist/chunks/square-round-corner-YWm8XfPH.js +0 -9
  2947. package/dist/chunks/square-scissors-ZGE9jVhy.js +0 -13
  2948. package/dist/chunks/square-sigma-D32eUqFf.js +0 -9
  2949. package/dist/chunks/square-slash-CEvnp27A.js +0 -9
  2950. package/dist/chunks/square-split-horizontal-COetHz_W.js +0 -10
  2951. package/dist/chunks/square-split-vertical-CMl50VO9.js +0 -10
  2952. package/dist/chunks/square-square-DZqYEVZ3.js +0 -9
  2953. package/dist/chunks/square-stack-Bw1bYgG0.js +0 -10
  2954. package/dist/chunks/square-stop-DfmGoUqI.js +0 -9
  2955. package/dist/chunks/square-terminal-B-2u0XJ5.js +0 -10
  2956. package/dist/chunks/square-user-DRZnwmEV.js +0 -10
  2957. package/dist/chunks/square-user-round-C_AXfYDE.js +0 -10
  2958. package/dist/chunks/square-x-bh99eAJw.js +0 -10
  2959. package/dist/chunks/squares-exclude-CosXQYYh.js +0 -21
  2960. package/dist/chunks/squares-intersect-B7jVH_V2.js +0 -21
  2961. package/dist/chunks/squares-subtract-BB8o3TPH.js +0 -19
  2962. package/dist/chunks/squares-unite-DjIMaL_W.js +0 -14
  2963. package/dist/chunks/squircle-BORB--yP.js +0 -8
  2964. package/dist/chunks/squircle-dashed-w58aQOnz.js +0 -15
  2965. package/dist/chunks/squirrel-NVSJJulw.js +0 -17
  2966. package/dist/chunks/stamp-x5PQH1bJ.js +0 -16
  2967. package/dist/chunks/star-half-DF2xXyjx.js +0 -14
  2968. package/dist/chunks/star-off-CX1TA2Gk.js +0 -10
  2969. package/dist/chunks/step-back-9IIJ28-a.js +0 -15
  2970. package/dist/chunks/step-forward-BhWkmQnl.js +0 -15
  2971. package/dist/chunks/stethoscope-BwaSiR1v.js +0 -12
  2972. package/dist/chunks/sticker-DzwfL3BY.js +0 -15
  2973. package/dist/chunks/sticky-note-D0-Qrbye.js +0 -9
  2974. package/dist/chunks/store-CybX_kvg.js +0 -18
  2975. package/dist/chunks/stretch-horizontal-Cziytm1d.js +0 -9
  2976. package/dist/chunks/stretch-vertical-7_t7BGtZ.js +0 -9
  2977. package/dist/chunks/strikethrough-CMYd6hNz.js +0 -10
  2978. package/dist/chunks/subscript-Jo9x1TAc.js +0 -16
  2979. package/dist/chunks/sun-BKxtwMWJ.js +0 -16
  2980. package/dist/chunks/sun-dim-rLoPjpSA.js +0 -16
  2981. package/dist/chunks/sun-medium-BUCSH3C3.js +0 -16
  2982. package/dist/chunks/sun-moon-Dp6O8ZZk.js +0 -18
  2983. package/dist/chunks/sun-snow-CD6vcctH.js +0 -18
  2984. package/dist/chunks/sunrise-B_Pattrm.js +0 -15
  2985. package/dist/chunks/sunset-HMbni0TM.js +0 -15
  2986. package/dist/chunks/superscript-B6zZB3Mv.js +0 -16
  2987. package/dist/chunks/swatch-book-BkpCAGTm.js +0 -17
  2988. package/dist/chunks/swiss-franc-CffR6CTZ.js +0 -10
  2989. package/dist/chunks/switch-camera-BZxm6ExX.js +0 -12
  2990. package/dist/chunks/sword-CxQxpEHM.js +0 -11
  2991. package/dist/chunks/swords-H9dWlELB.js +0 -15
  2992. package/dist/chunks/syringe-zjE_64t9.js +0 -13
  2993. package/dist/chunks/table-2-B3fgY72W.js +0 -14
  2994. package/dist/chunks/table-B9t7Uy09.js +0 -11
  2995. package/dist/chunks/table-cells-merge-zfK0Cakk.js +0 -12
  2996. package/dist/chunks/table-cells-split-DZQapA9A.js +0 -11
  2997. package/dist/chunks/table-columns-split-DdDtrGyC.js +0 -18
  2998. package/dist/chunks/table-of-contents-DSRjAgT6.js +0 -13
  2999. package/dist/chunks/table-properties-Bqf6Pqy-.js +0 -11
  3000. package/dist/chunks/table-rows-split-D854SLyk.js +0 -18
  3001. package/dist/chunks/tablet-B1rrEUX6.js +0 -9
  3002. package/dist/chunks/tablet-smartphone-SaxZE52C.js +0 -10
  3003. package/dist/chunks/tablets-BIXu2ZAy.js +0 -11
  3004. package/dist/chunks/tag-DruhdfkZ.js +0 -15
  3005. package/dist/chunks/tags-Fa0_wDmu.js +0 -19
  3006. package/dist/chunks/tally-1-d-6oAzqM.js +0 -6
  3007. package/dist/chunks/tally-2-DfnhFAeF.js +0 -9
  3008. package/dist/chunks/tally-3-fsh2kB6j.js +0 -10
  3009. package/dist/chunks/tally-4-DZDumpJi.js +0 -11
  3010. package/dist/chunks/tally-5-D6If90OW.js +0 -12
  3011. package/dist/chunks/tangent-B8kfq2Pi.js +0 -11
  3012. package/dist/chunks/target-DtaQXUqQ.js +0 -10
  3013. package/dist/chunks/telescope-CSPPSgpp.js +0 -26
  3014. package/dist/chunks/tent-DCaBLGde.js +0 -11
  3015. package/dist/chunks/tent-tree-CrX2YNIJ.js +0 -14
  3016. package/dist/chunks/terminal-DTVOfoo2.js +0 -9
  3017. package/dist/chunks/test-tube-Dfrqbfnp.js +0 -10
  3018. package/dist/chunks/test-tube-diagonal-CxjmowuL.js +0 -13
  3019. package/dist/chunks/test-tubes-YXlNKVsY.js +0 -13
  3020. package/dist/chunks/text-BFrsIBls.js +0 -10
  3021. package/dist/chunks/text-cursor-BtIV3O58.js +0 -10
  3022. package/dist/chunks/text-cursor-input-DeXae0fq.js +0 -12
  3023. package/dist/chunks/text-quote-qPF8h9ec.js +0 -11
  3024. package/dist/chunks/text-search-D9evJc4B.js +0 -12
  3025. package/dist/chunks/text-select-BCRGTN9X.js +0 -22
  3026. package/dist/chunks/theater-BYLknORZ.js +0 -16
  3027. package/dist/chunks/thermometer-BWQLpU7f.js +0 -8
  3028. package/dist/chunks/thermometer-snowflake-0WyvvTuc.js +0 -15
  3029. package/dist/chunks/thermometer-sun-D16WDLC4.js +0 -13
  3030. package/dist/chunks/thumbs-down-9TZOSS85.js +0 -15
  3031. package/dist/chunks/thumbs-up-BdxaVP6i.js +0 -15
  3032. package/dist/chunks/ticket-CrGTBhXI.js +0 -17
  3033. package/dist/chunks/ticket-check-BJ_EJvJ9.js +0 -15
  3034. package/dist/chunks/ticket-minus-Bc7SezZW.js +0 -15
  3035. package/dist/chunks/ticket-percent-Xi_ny1Dh.js +0 -17
  3036. package/dist/chunks/ticket-plus-D4ORrY2o.js +0 -16
  3037. package/dist/chunks/ticket-slash-B6AHZYnl.js +0 -15
  3038. package/dist/chunks/ticket-x-D80Kioqs.js +0 -16
  3039. package/dist/chunks/tickets-C4ZzXkbp.js +0 -12
  3040. package/dist/chunks/tickets-plane-yaQpnXMa.js +0 -14
  3041. package/dist/chunks/timer-Byd9XmP4.js +0 -10
  3042. package/dist/chunks/timer-off-C48b7GXt.js +0 -12
  3043. package/dist/chunks/timer-reset-Biy8Wvph.js +0 -11
  3044. package/dist/chunks/toggle-left-BJoJMKZH.js +0 -9
  3045. package/dist/chunks/toggle-right-CTQyhMW4.js +0 -9
  3046. package/dist/chunks/toilet-Mgx5C-oh.js +0 -15
  3047. package/dist/chunks/tool-case-B540gHGl.js +0 -29
  3048. package/dist/chunks/tornado-D2vGeacD.js +0 -12
  3049. package/dist/chunks/torus-B1pJTLrJ.js +0 -9
  3050. package/dist/chunks/touchpad-_q1W3d6c.js +0 -10
  3051. package/dist/chunks/touchpad-off-BPzdfk0S.js +0 -13
  3052. package/dist/chunks/tower-control-CQtaKBcu.js +0 -17
  3053. package/dist/chunks/toy-brick-B8FRIoQC.js +0 -10
  3054. package/dist/chunks/tractor-XpjGtt8g.js +0 -16
  3055. package/dist/chunks/traffic-cone-7ZjeYh0E.js +0 -17
  3056. package/dist/chunks/train-front-DJPxk_DH.js +0 -13
  3057. package/dist/chunks/train-front-tunnel-C06nFNwM.js +0 -14
  3058. package/dist/chunks/train-track-Bjw0UlS4.js +0 -14
  3059. package/dist/chunks/tram-front-DFUSIthv.js +0 -14
  3060. package/dist/chunks/transgender-YZsKFLHj.js +0 -15
  3061. package/dist/chunks/trash-2jb9gZrR.js +0 -10
  3062. package/dist/chunks/tree-deciduous-KxpKuhan.js +0 -15
  3063. package/dist/chunks/tree-palm-C0nEiUXp.js +0 -20
  3064. package/dist/chunks/tree-pine-O_fkk9iE.js +0 -15
  3065. package/dist/chunks/trees-D1_TUkG5.js +0 -17
  3066. package/dist/chunks/trello-B8MzQJ_l.js +0 -10
  3067. package/dist/chunks/trending-down-3rU8q_bY.js +0 -9
  3068. package/dist/chunks/trending-up-DlQaHub6.js +0 -9
  3069. package/dist/chunks/trending-up-down-DCws5WMA.js +0 -11
  3070. package/dist/chunks/triangle-alert-D_CV2vWL.js +0 -16
  3071. package/dist/chunks/triangle-dashed-B7CMdAdv.js +0 -16
  3072. package/dist/chunks/triangle-right-DF9o9yyy.js +0 -14
  3073. package/dist/chunks/triangle-sXmF-5uc.js +0 -11
  3074. package/dist/chunks/trophy-B-hXQJSa.js +0 -13
  3075. package/dist/chunks/truck-BGTMYehp.js +0 -18
  3076. package/dist/chunks/truck-electric-BRI3pLMj.js +0 -23
  3077. package/dist/chunks/turkish-lira-CtwlJHhH.js +0 -10
  3078. package/dist/chunks/turntable-DSg0e6af.js +0 -11
  3079. package/dist/chunks/turtle-EdkYPPXN.js +0 -17
  3080. package/dist/chunks/tv-FBX1mnXD.js +0 -9
  3081. package/dist/chunks/tv-minimal-LRsv18C0.js +0 -9
  3082. package/dist/chunks/tv-minimal-play-DcesRoku.js +0 -16
  3083. package/dist/chunks/twitch-CVefYnQB.js +0 -8
  3084. package/dist/chunks/twitter-aUKbbnUn.js +0 -14
  3085. package/dist/chunks/type-CujQCnB6.js +0 -10
  3086. package/dist/chunks/type-outline-CBMzXyQU.js +0 -14
  3087. package/dist/chunks/umbrella-off-vbnpqSHI.js +0 -11
  3088. package/dist/chunks/umbrella-p2ygG9mH.js +0 -10
  3089. package/dist/chunks/underline-D9Vlx_dt.js +0 -9
  3090. package/dist/chunks/undo-2-C_iyDXMx.js +0 -9
  3091. package/dist/chunks/undo-C_kggNyh.js +0 -9
  3092. package/dist/chunks/undo-dot-DbWuCiwJ.js +0 -10
  3093. package/dist/chunks/unfold-horizontal-wGKyGSCK.js +0 -15
  3094. package/dist/chunks/unfold-vertical-BU9FT8k1.js +0 -15
  3095. package/dist/chunks/ungroup-Br-wxuG8.js +0 -9
  3096. package/dist/chunks/university-nUf3J_Mv.js +0 -20
  3097. package/dist/chunks/unlink-2-CaYNTa7H.js +0 -8
  3098. package/dist/chunks/unlink-CR4p5VFB.js +0 -25
  3099. package/dist/chunks/unplug-B6mMfWD_.js +0 -19
  3100. package/dist/chunks/usb-DIMXiup0.js +0 -14
  3101. package/dist/chunks/user-Dq9p6-0z.js +0 -9
  3102. package/dist/chunks/user-check-D7Fka6A9.js +0 -10
  3103. package/dist/chunks/user-cog-Dy7Dc8Qn.js +0 -18
  3104. package/dist/chunks/user-lock-a0Dl-SvL.js +0 -11
  3105. package/dist/chunks/user-minus-CC1i5CPt.js +0 -10
  3106. package/dist/chunks/user-pen-DJGk6-qX.js +0 -16
  3107. package/dist/chunks/user-plus-CFFp-hOb.js +0 -11
  3108. package/dist/chunks/user-round-BLxAHpz5.js +0 -9
  3109. package/dist/chunks/user-round-check-B9OUofbp.js +0 -10
  3110. package/dist/chunks/user-round-cog-bMUK6OpY.js +0 -18
  3111. package/dist/chunks/user-round-minus-DOVunWFP.js +0 -10
  3112. package/dist/chunks/user-round-pen-C6G8FSIf.js +0 -16
  3113. package/dist/chunks/user-round-plus-Cqh40Itt.js +0 -11
  3114. package/dist/chunks/user-round-search-DSz4oicX.js +0 -11
  3115. package/dist/chunks/user-round-x-D6tDvd1I.js +0 -11
  3116. package/dist/chunks/user-search-BMOBUzuR.js +0 -11
  3117. package/dist/chunks/user-star-B_Q2G08c.js +0 -16
  3118. package/dist/chunks/user-x-Me2i4A6Z.js +0 -11
  3119. package/dist/chunks/users-BQxoMbBb.js +0 -11
  3120. package/dist/chunks/users-round-C0seR22T.js +0 -10
  3121. package/dist/chunks/utensils-Ct9BLNQ8.js +0 -10
  3122. package/dist/chunks/utensils-crossed-mvZ-aKko.js +0 -14
  3123. package/dist/chunks/utility-pole-BUltYCqJ.js +0 -14
  3124. package/dist/chunks/variable-h_goNwKH.js +0 -11
  3125. package/dist/chunks/vault-Cd2hPgsj.js +0 -17
  3126. package/dist/chunks/vector-square-Ca73Q6Wl.js +0 -15
  3127. package/dist/chunks/vegan-D3X_UEau.js +0 -10
  3128. package/dist/chunks/venetian-mask-BdoJ4Daq.js +0 -16
  3129. package/dist/chunks/venus-Bhs3CUEe.js +0 -10
  3130. package/dist/chunks/venus-and-mars-C9rS1I8C.js +0 -12
  3131. package/dist/chunks/vibrate-C6jPBsCo.js +0 -10
  3132. package/dist/chunks/vibrate-off-CUJPihfe.js +0 -12
  3133. package/dist/chunks/video-CjlDKePs.js +0 -15
  3134. package/dist/chunks/video-off-BknmIm2r.js +0 -13
  3135. package/dist/chunks/videotape-CqYjSWmY.js +0 -12
  3136. package/dist/chunks/view-nYM-WitF.js +0 -17
  3137. package/dist/chunks/voicemail-D-K5rZW_.js +0 -10
  3138. package/dist/chunks/volleyball-DGc6H_EU.js +0 -13
  3139. package/dist/chunks/volume-1-CZZL0d9k.js +0 -15
  3140. package/dist/chunks/volume-2-BBXP--As.js +0 -16
  3141. package/dist/chunks/volume-Q-2RzWqD.js +0 -14
  3142. package/dist/chunks/volume-off-Dz2SPFRx.js +0 -18
  3143. package/dist/chunks/volume-x-BoTC1eoG.js +0 -16
  3144. package/dist/chunks/vote-DpExvqrx.js +0 -10
  3145. package/dist/chunks/wallet-Bb47r_vs.js +0 -15
  3146. package/dist/chunks/wallet-cards-vR-Oaryh.js +0 -16
  3147. package/dist/chunks/wallet-minimal-Cq-MInfM.js +0 -15
  3148. package/dist/chunks/wallpaper-ZVd-JXqY.js +0 -17
  3149. package/dist/chunks/wand-BccN1x4E.js +0 -16
  3150. package/dist/chunks/wand-sparkles-DIsVz_3w.js +0 -21
  3151. package/dist/chunks/warehouse-k5OG2Wbt.js +0 -17
  3152. package/dist/chunks/washing-machine-n9kz-0iu.js +0 -12
  3153. package/dist/chunks/watch-B0JGDDJ7.js +0 -14
  3154. package/dist/chunks/waves-Br5T69oV.js +0 -28
  3155. package/dist/chunks/waves-ladder-DBuba76Z.js +0 -18
  3156. package/dist/chunks/waypoints-DnfSZb-G.js +0 -14
  3157. package/dist/chunks/webcam-Ba3Dr3Aw.js +0 -11
  3158. package/dist/chunks/webhook-CjApCx5D.js +0 -16
  3159. package/dist/chunks/webhook-off-CziXTxxD.js +0 -14
  3160. package/dist/chunks/weight-CclIU7XQ.js +0 -15
  3161. package/dist/chunks/wheat-BN-Qci52.js +0 -51
  3162. package/dist/chunks/wheat-off-DpCzKhlQ.js +0 -47
  3163. package/dist/chunks/whole-word-DB8oXpeP.js +0 -12
  3164. package/dist/chunks/wifi-B7SIPqQp.js +0 -11
  3165. package/dist/chunks/wifi-cog-9s0LU1E5.js +0 -19
  3166. package/dist/chunks/wifi-high-OIlR8FcG.js +0 -10
  3167. package/dist/chunks/wifi-low-CmVqOOYZ.js +0 -9
  3168. package/dist/chunks/wifi-off-CKzDseqV.js +0 -14
  3169. package/dist/chunks/wifi-pen-ewBX7vmR.js +0 -17
  3170. package/dist/chunks/wifi-sync-DvHm0MZJ.js +0 -14
  3171. package/dist/chunks/wifi-zero-NnDQo3gE.js +0 -6
  3172. package/dist/chunks/wind-BTumfqLX.js +0 -10
  3173. package/dist/chunks/wind-arrow-down-DrR9TqJc.js +0 -11
  3174. package/dist/chunks/wine-0m8LF_kO.js +0 -14
  3175. package/dist/chunks/wine-off-CfICYxs1.js +0 -18
  3176. package/dist/chunks/workflow-rtVS6oru.js +0 -10
  3177. package/dist/chunks/worm-Cpo5ZGex.js +0 -16
  3178. package/dist/chunks/wrap-text-Ct0YYi7f.js +0 -11
  3179. package/dist/chunks/wrench-D-fSsBiK.js +0 -14
  3180. package/dist/chunks/youtube-RwxfMl5t.js +0 -15
  3181. package/dist/chunks/zap-CE-h0a0Z.js +0 -14
  3182. package/dist/chunks/zap-off-_yQg279-.js +0 -17
@@ -51,7 +51,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
51
51
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function swt(e,t){return owt(e)||awt(e,t)||lwt(e,t)||iwt()}function lwt(e,t){if(e){if(typeof e=="string")return Zae(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zae(e,t):void 0}}const Jae=Object.entries,Qae=Object.setPrototypeOf,cwt=Object.isFrozen,dwt=Object.getPrototypeOf,uwt=Object.getOwnPropertyDescriptor;let yn=Object.freeze,ao=Object.seal,Tl=Object.create,eie=typeof Reflect<"u"&&Reflect,X2=eie.apply,Z2=eie.construct;yn||(yn=function(t){return t}),ao||(ao=function(t){return t}),X2||(X2=function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];return t.apply(r,o)}),Z2||(Z2=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return new t(...n)});const Cl=Er(Array.prototype.forEach),fwt=Er(Array.prototype.lastIndexOf),tie=Er(Array.prototype.pop),El=Er(Array.prototype.push),pwt=Er(Array.prototype.splice),mn=Array.isArray,Fd=Er(String.prototype.toLowerCase),J2=Er(String.prototype.toString),rie=Er(String.prototype.match),zl=Er(String.prototype.replace),nie=Er(String.prototype.indexOf),hwt=Er(String.prototype.trim),ywt=Er(Number.prototype.toString),mwt=Er(Boolean.prototype.toString),oie=typeof BigInt>"u"?null:Er(BigInt.prototype.toString),aie=typeof Symbol>"u"?null:Er(Symbol.prototype.toString),xr=Er(Object.prototype.hasOwnProperty),Dd=Er(Object.prototype.toString),rn=Er(RegExp.prototype.test),e1=gwt(TypeError);function Er(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return X2(e,t,n)}}function gwt(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Z2(e,r)}}function Pt(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fd;if(Qae&&Qae(e,null),!mn(t))return e;let n=t.length;for(;n--;){let o=t[n];if(typeof o=="string"){const a=r(o);a!==o&&(cwt(t)||(t[n]=a),o=a)}e[o]=!0}return e}function vwt(e){for(let t=0;t<e.length;t++)xr(e,t)||(e[t]=null);return e}function Cn(e){const t=Tl(null);for(const n of Jae(e)){var r=swt(n,2);const o=r[0],a=r[1];xr(e,o)&&(mn(a)?t[o]=vwt(a):a&&typeof a=="object"&&a.constructor===Object?t[o]=Cn(a):t[o]=a)}return t}function bwt(e){switch(typeof e){case"string":return e;case"number":return ywt(e);case"boolean":return mwt(e);case"bigint":return oie?oie(e):"0";case"symbol":return aie?aie(e):"Symbol()";case"undefined":return Dd(e);case"function":case"object":{if(e===null)return Dd(e);const t=e,r=gs(t,"toString");if(typeof r=="function"){const n=r(t);return typeof n=="string"?n:Dd(n)}return Dd(e)}default:return Dd(e)}}function gs(e,t){for(;e!==null;){const n=uwt(e,t);if(n){if(n.get)return Er(n.get);if(typeof n.value=="function")return Er(n.value)}e=dwt(e)}function r(){return null}return r}function _wt(e){try{return rn(e,""),!0}catch{return!1}}const iie=yn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Q2=yn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),eg=yn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),kwt=yn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),tg=yn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Swt=yn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),sie=yn(["#text"]),lie=yn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),rg=yn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),cie=yn(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),t1=yn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),xwt=ao(/{{[\w\W]*|^[\w\W]*}}/g),wwt=ao(/<%[\w\W]*|^[\w\W]*%>/g),Mwt=ao(/\${[\w\W]*/g),Pwt=ao(/^data-[\-\w.\u00B7-\uFFFF]+$/),Owt=ao(/^aria-[\-\w]+$/),die=ao(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Nwt=ao(/^(?:\w+script|data):/i),jwt=ao(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Awt=ao(/^html$/i),Twt=ao(/^[a-z][.\w]*(-[.\w]+)+$/i),$l={element:1,text:3,progressingInstruction:7,comment:8,document:9},Cwt=function(){return typeof window>"u"?null:window},Ewt=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(n=r.getAttribute(o));const a="dompurify"+(n?"#"+n:"");try{return t.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},uie=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function fie(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Cwt();const t=Ve=>fie(Ve);if(t.version="3.4.5",t.removed=[],!e||!e.document||e.document.nodeType!==$l.document||!e.Element)return t.isSupported=!1,t;let r=e.document;const n=r,o=n.currentScript,a=e.DocumentFragment,i=e.HTMLTemplateElement,s=e.Node,l=e.Element,c=e.NodeFilter,u=e.NamedNodeMap,d=u===void 0?e.NamedNodeMap||e.MozNamedAttrMap:u,p=e.HTMLFormElement,y=e.DOMParser,m=e.trustedTypes,g=l.prototype,v=gs(g,"cloneNode"),b=gs(g,"remove"),_=gs(g,"nextSibling"),x=gs(g,"childNodes"),w=gs(g,"parentNode"),S=s&&s.prototype?gs(s.prototype,"nodeType"):null;if(typeof i=="function"){const Ve=r.createElement("template");Ve.content&&Ve.content.ownerDocument&&(r=Ve.content.ownerDocument)}let M,P="";const N=r,A=N.implementation,C=N.createNodeIterator,O=N.createDocumentFragment,j=N.getElementsByTagName,z=n.importNode;let E=uie();t.isSupported=typeof Jae=="function"&&typeof w=="function"&&A&&A.createHTMLDocument!==void 0;const $=xwt,F=wwt,q=Mwt,D=Pwt,H=Owt,I=Nwt,L=jwt,R=Twt;let V=die,G=null;const Z=Pt({},[...iie,...Q2,...eg,...tg,...sie]);let te=null;const K=Pt({},[...lie,...rg,...cie,...t1]);let re=Object.seal(Tl(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Q=null,ee=null;const J=Object.seal(Tl(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let W=!0,ye=!0,oe=!1,ce=!0,de=!1,ve=!0,ie=!1,Ae=!1,Ce=!1,Le=!1,_e=!1,Ee=!1,He=!0,tt=!1;const be="user-content-";let Oe=!0,Xe=!1,Kt={},Y=null;const ge=Pt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Fe=null;const bt=Pt({},["audio","video","img","source","image","track"]);let We=null;const $t=Pt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Gt="http://www.w3.org/1998/Math/MathML",De="http://www.w3.org/2000/svg",gt="http://www.w3.org/1999/xhtml";let ze=gt,kt=!1,St=null;const hr=Pt({},[Gt,De,gt],J2);let Zt=Pt({},["mi","mo","mn","ms","mtext"]),rr=Pt({},["annotation-xml"]);const Wr=Pt({},["title","style","font","a","script"]);let nr=null;const qt=["application/xhtml+xml","text/html"],Jr="text/html";let Rt=null,yr=null;const bo=r.createElement("form"),Zn=function(X){return X instanceof RegExp||X instanceof Function},br=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(yr&&yr===X)return;(!X||typeof X!="object")&&(X={}),X=Cn(X),nr=qt.indexOf(X.PARSER_MEDIA_TYPE)===-1?Jr:X.PARSER_MEDIA_TYPE,Rt=nr==="application/xhtml+xml"?J2:Fd,G=xr(X,"ALLOWED_TAGS")&&mn(X.ALLOWED_TAGS)?Pt({},X.ALLOWED_TAGS,Rt):Z,te=xr(X,"ALLOWED_ATTR")&&mn(X.ALLOWED_ATTR)?Pt({},X.ALLOWED_ATTR,Rt):K,St=xr(X,"ALLOWED_NAMESPACES")&&mn(X.ALLOWED_NAMESPACES)?Pt({},X.ALLOWED_NAMESPACES,J2):hr,We=xr(X,"ADD_URI_SAFE_ATTR")&&mn(X.ADD_URI_SAFE_ATTR)?Pt(Cn($t),X.ADD_URI_SAFE_ATTR,Rt):$t,Fe=xr(X,"ADD_DATA_URI_TAGS")&&mn(X.ADD_DATA_URI_TAGS)?Pt(Cn(bt),X.ADD_DATA_URI_TAGS,Rt):bt,Y=xr(X,"FORBID_CONTENTS")&&mn(X.FORBID_CONTENTS)?Pt({},X.FORBID_CONTENTS,Rt):ge,Q=xr(X,"FORBID_TAGS")&&mn(X.FORBID_TAGS)?Pt({},X.FORBID_TAGS,Rt):Cn({}),ee=xr(X,"FORBID_ATTR")&&mn(X.FORBID_ATTR)?Pt({},X.FORBID_ATTR,Rt):Cn({}),Kt=xr(X,"USE_PROFILES")?X.USE_PROFILES&&typeof X.USE_PROFILES=="object"?Cn(X.USE_PROFILES):X.USE_PROFILES:!1,W=X.ALLOW_ARIA_ATTR!==!1,ye=X.ALLOW_DATA_ATTR!==!1,oe=X.ALLOW_UNKNOWN_PROTOCOLS||!1,ce=X.ALLOW_SELF_CLOSE_IN_ATTR!==!1,de=X.SAFE_FOR_TEMPLATES||!1,ve=X.SAFE_FOR_XML!==!1,ie=X.WHOLE_DOCUMENT||!1,Le=X.RETURN_DOM||!1,_e=X.RETURN_DOM_FRAGMENT||!1,Ee=X.RETURN_TRUSTED_TYPE||!1,Ce=X.FORCE_BODY||!1,He=X.SANITIZE_DOM!==!1,tt=X.SANITIZE_NAMED_PROPS||!1,Oe=X.KEEP_CONTENT!==!1,Xe=X.IN_PLACE||!1,V=_wt(X.ALLOWED_URI_REGEXP)?X.ALLOWED_URI_REGEXP:die,ze=typeof X.NAMESPACE=="string"?X.NAMESPACE:gt,Zt=xr(X,"MATHML_TEXT_INTEGRATION_POINTS")&&X.MATHML_TEXT_INTEGRATION_POINTS&&typeof X.MATHML_TEXT_INTEGRATION_POINTS=="object"?Cn(X.MATHML_TEXT_INTEGRATION_POINTS):Pt({},["mi","mo","mn","ms","mtext"]),rr=xr(X,"HTML_INTEGRATION_POINTS")&&X.HTML_INTEGRATION_POINTS&&typeof X.HTML_INTEGRATION_POINTS=="object"?Cn(X.HTML_INTEGRATION_POINTS):Pt({},["annotation-xml"]);const pe=xr(X,"CUSTOM_ELEMENT_HANDLING")&&X.CUSTOM_ELEMENT_HANDLING&&typeof X.CUSTOM_ELEMENT_HANDLING=="object"?Cn(X.CUSTOM_ELEMENT_HANDLING):Tl(null);if(re=Tl(null),xr(pe,"tagNameCheck")&&Zn(pe.tagNameCheck)&&(re.tagNameCheck=pe.tagNameCheck),xr(pe,"attributeNameCheck")&&Zn(pe.attributeNameCheck)&&(re.attributeNameCheck=pe.attributeNameCheck),xr(pe,"allowCustomizedBuiltInElements")&&typeof pe.allowCustomizedBuiltInElements=="boolean"&&(re.allowCustomizedBuiltInElements=pe.allowCustomizedBuiltInElements),de&&(ye=!1),_e&&(Le=!0),Kt&&(G=Pt({},sie),te=Tl(null),Kt.html===!0&&(Pt(G,iie),Pt(te,lie)),Kt.svg===!0&&(Pt(G,Q2),Pt(te,rg),Pt(te,t1)),Kt.svgFilters===!0&&(Pt(G,eg),Pt(te,rg),Pt(te,t1)),Kt.mathMl===!0&&(Pt(G,tg),Pt(te,cie),Pt(te,t1))),J.tagCheck=null,J.attributeCheck=null,xr(X,"ADD_TAGS")&&(typeof X.ADD_TAGS=="function"?J.tagCheck=X.ADD_TAGS:mn(X.ADD_TAGS)&&(G===Z&&(G=Cn(G)),Pt(G,X.ADD_TAGS,Rt))),xr(X,"ADD_ATTR")&&(typeof X.ADD_ATTR=="function"?J.attributeCheck=X.ADD_ATTR:mn(X.ADD_ATTR)&&(te===K&&(te=Cn(te)),Pt(te,X.ADD_ATTR,Rt))),xr(X,"ADD_URI_SAFE_ATTR")&&mn(X.ADD_URI_SAFE_ATTR)&&Pt(We,X.ADD_URI_SAFE_ATTR,Rt),xr(X,"FORBID_CONTENTS")&&mn(X.FORBID_CONTENTS)&&(Y===ge&&(Y=Cn(Y)),Pt(Y,X.FORBID_CONTENTS,Rt)),xr(X,"ADD_FORBID_CONTENTS")&&mn(X.ADD_FORBID_CONTENTS)&&(Y===ge&&(Y=Cn(Y)),Pt(Y,X.ADD_FORBID_CONTENTS,Rt)),Oe&&(G["#text"]=!0),ie&&Pt(G,["html","head","body"]),G.table&&(Pt(G,["tbody"]),delete Q.tbody),X.TRUSTED_TYPES_POLICY){if(typeof X.TRUSTED_TYPES_POLICY.createHTML!="function")throw e1('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof X.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw e1('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');M=X.TRUSTED_TYPES_POLICY,P=M.createHTML("")}else M===void 0&&(M=Ewt(m,o)),M!==null&&typeof P=="string"&&(P=M.createHTML(""));yn&&yn(X),yr=X},nt=Pt({},[...Q2,...eg,...kwt]),Yt=Pt({},[...tg,...Swt]),Dt=function(X){let pe=w(X);(!pe||!pe.tagName)&&(pe={namespaceURI:ze,tagName:"template"});const Pe=Fd(X.tagName),ht=Fd(pe.tagName);return St[X.namespaceURI]?X.namespaceURI===De?pe.namespaceURI===gt?Pe==="svg":pe.namespaceURI===Gt?Pe==="svg"&&(ht==="annotation-xml"||Zt[ht]):!!nt[Pe]:X.namespaceURI===Gt?pe.namespaceURI===gt?Pe==="math":pe.namespaceURI===De?Pe==="math"&&rr[ht]:!!Yt[Pe]:X.namespaceURI===gt?pe.namespaceURI===De&&!rr[ht]||pe.namespaceURI===Gt&&!Zt[ht]?!1:!Yt[Pe]&&(Wr[Pe]||!nt[Pe]):!!(nr==="application/xhtml+xml"&&St[X.namespaceURI]):!1},ur=function(X){El(t.removed,{element:X});try{w(X).removeChild(X)}catch{b(X)}},Kr=function(X,pe){try{El(t.removed,{attribute:pe.getAttributeNode(X),from:pe})}catch{El(t.removed,{attribute:null,from:pe})}if(pe.removeAttribute(X),X==="is")if(Le||_e)try{ur(pe)}catch{}else try{pe.setAttribute(X,"")}catch{}},_o=function(X){let pe=null,Pe=null;if(Ce)X="<remove></remove>"+X;else{const Or=rie(X,/^[\r\n\t ]+/);Pe=Or&&Or[0]}nr==="application/xhtml+xml"&&ze===gt&&(X='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+X+"</body></html>");const ht=M?M.createHTML(X):X;if(ze===gt)try{pe=new y().parseFromString(ht,nr)}catch{}if(!pe||!pe.documentElement){pe=A.createDocument(ze,"template",null);try{pe.documentElement.innerHTML=kt?P:ht}catch{}}const _r=pe.body||pe.documentElement;return X&&Pe&&_r.insertBefore(r.createTextNode(Pe),_r.childNodes[0]||null),ze===gt?j.call(pe,ie?"html":"body")[0]:ie?pe.documentElement:_r},ka=function(X){return C.call(X.ownerDocument||X,X,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},on=function(X){X.normalize();const pe=C.call(X.ownerDocument||X,X,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let Pe=pe.nextNode();for(;Pe;){let ht=Pe.data;Cl([$,F,q],_r=>{ht=zl(ht,_r," ")}),Pe.data=ht,Pe=pe.nextNode()}},Xc=function(X){return X instanceof p&&(typeof X.nodeName!="string"||typeof X.textContent!="string"||typeof X.removeChild!="function"||!(X.attributes instanceof d)||typeof X.removeAttribute!="function"||typeof X.setAttribute!="function"||typeof X.namespaceURI!="string"||typeof X.insertBefore!="function"||typeof X.hasChildNodes!="function")},Di=function(X){if(!S||typeof X!="object"||X===null)return!1;try{return typeof S(X)=="number"}catch{return!1}};function Pr(Ve,X,pe){Cl(Ve,Pe=>{Pe.call(t,X,pe,yr)})}const Sn=function(X){let pe=null;if(Pr(E.beforeSanitizeElements,X,null),Xc(X))return ur(X),!0;const Pe=Rt(X.nodeName);if(Pr(E.uponSanitizeElement,X,{tagName:Pe,allowedTags:G}),ve&&X.hasChildNodes()&&!Di(X.firstElementChild)&&rn(/<[/\w!]/g,X.innerHTML)&&rn(/<[/\w!]/g,X.textContent)||ve&&X.namespaceURI===gt&&Pe==="style"&&Di(X.firstElementChild)||X.nodeType===$l.progressingInstruction||ve&&X.nodeType===$l.comment&&rn(/<[/\w]/g,X.data))return ur(X),!0;if(Q[Pe]||!(J.tagCheck instanceof Function&&J.tagCheck(Pe))&&!G[Pe]){if(!Q[Pe]&&Qr(Pe)&&(re.tagNameCheck instanceof RegExp&&rn(re.tagNameCheck,Pe)||re.tagNameCheck instanceof Function&&re.tagNameCheck(Pe)))return!1;if(Oe&&!Y[Pe]){const ht=w(X)||X.parentNode,_r=x(X)||X.childNodes;if(_r&&ht){const Or=_r.length;for(let un=Or-1;un>=0;--un){const Fn=v(_r[un],!0);ht.insertBefore(Fn,_(X))}}}return ur(X),!0}return X instanceof l&&!Dt(X)||(Pe==="noscript"||Pe==="noembed"||Pe==="noframes")&&rn(/<\/no(script|embed|frames)/i,X.innerHTML)?(ur(X),!0):(de&&X.nodeType===$l.text&&(pe=X.textContent,Cl([$,F,q],ht=>{pe=zl(pe,ht," ")}),X.textContent!==pe&&(El(t.removed,{element:X.cloneNode()}),X.textContent=pe)),Pr(E.afterSanitizeElements,X,null),!1)},bf=function(X,pe,Pe){if(ee[pe]||He&&(pe==="id"||pe==="name")&&(Pe in r||Pe in bo))return!1;const ht=te[pe]||J.attributeCheck instanceof Function&&J.attributeCheck(pe,X);if(!(ye&&!ee[pe]&&rn(D,pe))){if(!(W&&rn(H,pe))){if(!ht||ee[pe]){if(!(Qr(X)&&(re.tagNameCheck instanceof RegExp&&rn(re.tagNameCheck,X)||re.tagNameCheck instanceof Function&&re.tagNameCheck(X))&&(re.attributeNameCheck instanceof RegExp&&rn(re.attributeNameCheck,pe)||re.attributeNameCheck instanceof Function&&re.attributeNameCheck(pe,X))||pe==="is"&&re.allowCustomizedBuiltInElements&&(re.tagNameCheck instanceof RegExp&&rn(re.tagNameCheck,Pe)||re.tagNameCheck instanceof Function&&re.tagNameCheck(Pe))))return!1}else if(!We[pe]){if(!rn(V,zl(Pe,L,""))){if(!((pe==="src"||pe==="xlink:href"||pe==="href")&&X!=="script"&&nie(Pe,"data:")===0&&Fe[X])){if(!(oe&&!rn(I,zl(Pe,L,"")))){if(Pe)return!1}}}}}}return!0},bbe=Pt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Qr=function(X){return!bbe[Fd(X)]&&rn(R,X)},_f=function(X){Pr(E.beforeSanitizeAttributes,X,null);const pe=X.attributes;if(!pe||Xc(X))return;const Pe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:te,forceKeepAttr:void 0};let ht=pe.length;for(;ht--;){const _r=pe[ht],Or=_r.name,un=_r.namespaceURI,Fn=_r.value,or=Rt(Or),Zc=Fn;let Ir=Or==="value"?Zc:hwt(Zc);if(Pe.attrName=or,Pe.attrValue=Ir,Pe.keepAttr=!0,Pe.forceKeepAttr=void 0,Pr(E.uponSanitizeAttribute,X,Pe),Ir=Pe.attrValue,tt&&(or==="id"||or==="name")&&nie(Ir,be)!==0&&(Kr(Or,X),Ir=be+Ir),ve&&rn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ir)){Kr(Or,X);continue}if(or==="attributename"&&rie(Ir,"href")){Kr(Or,X);continue}if(Pe.forceKeepAttr)continue;if(!Pe.keepAttr){Kr(Or,X);continue}if(!ce&&rn(/\/>/i,Ir)){Kr(Or,X);continue}de&&Cl([$,F,q],Go=>{Ir=zl(Ir,Go," ")});const Ko=Rt(X.nodeName);if(!bf(Ko,or,Ir)){Kr(Or,X);continue}if(M&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!un)switch(m.getAttributeType(Ko,or)){case"TrustedHTML":{Ir=M.createHTML(Ir);break}case"TrustedScriptURL":{Ir=M.createScriptURL(Ir);break}}if(Ir!==Zc)try{un?X.setAttributeNS(un,Or,Ir):X.setAttribute(Or,Ir),Xc(X)?ur(X):tie(t.removed)}catch{Kr(Or,X)}}Pr(E.afterSanitizeAttributes,X,null)},xn=function(X){let pe=null;const Pe=ka(X);for(Pr(E.beforeSanitizeShadowDOM,X,null);pe=Pe.nextNode();)Pr(E.uponSanitizeShadowNode,pe,null),Sn(pe),_f(pe),pe.content instanceof a&&xn(pe.content);Pr(E.afterSanitizeShadowDOM,X,null)},dn=function(X){if(X.nodeType===$l.element&&X.shadowRoot instanceof a){const ht=X.shadowRoot;dn(ht),xn(ht)}const pe=X.childNodes;if(!pe)return;const Pe=[];Cl(pe,ht=>{El(Pe,ht)});for(const ht of Pe)dn(ht)};return t.sanitize=function(Ve){let X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pe=null,Pe=null,ht=null,_r=null;if(kt=!Ve,kt&&(Ve="<!-->"),typeof Ve!="string"&&!Di(Ve)&&(Ve=bwt(Ve),typeof Ve!="string"))throw e1("dirty is not a string, aborting");if(!t.isSupported)return Ve;if(Ae||br(X),t.removed=[],typeof Ve=="string"&&(Xe=!1),Xe){const Fn=Ve.nodeName;if(typeof Fn=="string"){const or=Rt(Fn);if(!G[or]||Q[or])throw e1("root node is forbidden and cannot be sanitized in-place")}dn(Ve)}else if(Di(Ve))pe=_o("<!---->"),Pe=pe.ownerDocument.importNode(Ve,!0),Pe.nodeType===$l.element&&Pe.nodeName==="BODY"||Pe.nodeName==="HTML"?pe=Pe:pe.appendChild(Pe),dn(Pe);else{if(!Le&&!de&&!ie&&Ve.indexOf("<")===-1)return M&&Ee?M.createHTML(Ve):Ve;if(pe=_o(Ve),!pe)return Le?null:Ee?P:""}pe&&Ce&&ur(pe.firstChild);const Or=ka(Xe?Ve:pe);for(;ht=Or.nextNode();)Sn(ht),_f(ht),ht.content instanceof a&&xn(ht.content);if(Xe)return de&&on(Ve),Ve;if(Le){if(de&&on(pe),_e)for(_r=O.call(pe.ownerDocument);pe.firstChild;)_r.appendChild(pe.firstChild);else _r=pe;return(te.shadowroot||te.shadowrootmode)&&(_r=z.call(n,_r,!0)),_r}let un=ie?pe.outerHTML:pe.innerHTML;return ie&&G["!doctype"]&&pe.ownerDocument&&pe.ownerDocument.doctype&&pe.ownerDocument.doctype.name&&rn(Awt,pe.ownerDocument.doctype.name)&&(un="<!DOCTYPE "+pe.ownerDocument.doctype.name+`>
52
52
  `+un),de&&Cl([$,F,q],Fn=>{un=zl(un,Fn," ")}),M&&Ee?M.createHTML(un):un},t.setConfig=function(){let Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};br(Ve),Ae=!0},t.clearConfig=function(){yr=null,Ae=!1},t.isValidAttribute=function(Ve,X,pe){yr||br({});const Pe=Rt(Ve),ht=Rt(X);return bf(Pe,ht,pe)},t.addHook=function(Ve,X){typeof X=="function"&&El(E[Ve],X)},t.removeHook=function(Ve,X){if(X!==void 0){const pe=fwt(E[Ve],X);return pe===-1?void 0:pwt(E[Ve],pe,1)[0]}return tie(E[Ve])},t.removeHooks=function(Ve){E[Ve]=[]},t.removeAllHooks=function(){E=uie()},t}var zwt=fie();const $wt=["a","b","br","div","em","h1","h2","h3","h4","h5","h6","i","img","li","ol","p","span","strong","table","tbody","td","th","thead","tr","u","ul"],Iwt=["href","target","rel","src","alt","title","class","style","colspan","rowspan"];function Fwt(e){return e?zwt.sanitize(e,{ALLOWED_TAGS:[...$wt],ALLOWED_ATTR:[...Iwt],ALLOW_DATA_ATTR:!1}):""}function Dwt(e,t,r=!1){return e.includes("{labelapi:")?e.replace(/\{labelapi:([^}]+)\}/g,(n,o)=>{const a=o.trim();if(a===""||t==null)return r?"":n;const i=fe(t,a);return i==null?r?"":n:String(i)}):e}function Lwt(e){return e&&e.replace(/\{api:[^}]*\}/gi,"").replace(/\{labelapi:[^}]*\}/gi,"").replace(/\{resp:[^}]*\}/gi,"").replace(/\{(?:ctx:|@)\w+\}/gi,"").replace(/\{documentId\}/gi,"").replace(/\{(\w+)\}/g,"")}const pie={sm:"text-sm",md:"text-base",lg:"text-lg"},hie={h1:"text-4xl font-bold tracking-tight",h2:"text-3xl font-semibold tracking-tight",h3:"text-2xl font-semibold",h4:"text-xl font-semibold",h5:"text-lg font-medium",h6:"text-base font-medium"},yie={normal:"font-normal",medium:"font-medium",bold:"font-bold"},r1={left:"text-left",center:"text-center",right:"text-right",justify:"text-justify"};function vs(e){return e.properties??{}}function qwt(e){const t=vs(e);return t.textContent!==void 0?t.textContent:e.label??""}function Bwt(e){return vs(e).textContent===void 0||e.appearance?.hideLabel?!1:!!e.label?.trim()}function Hwt(e){return e?.contentLayout==="paragraph"?"paragraph":"single"}function ng(e,t={}){const{formValues:r={},urlParams:n={},submissionContext:o,buttonResponses:a,prepopulateResponse:i,labelApiResponse:s}=t,l=wo(e,r,n,o,a,i),c=Dwt(l,s,!0);return Lwt(c)}const Vwt=/\{api:[^}]+\}/,Uwt=/\{labelapi:[^}]+\}/;function og(e){return Vwt.test(e)}function ag(e){return Uwt.test(e)}function Wwt(e){const t=e.captionTemplate??"",r=e.descriptionTemplate??"",n=og(e.bodyTemplate)||og(t)||og(r),o=ag(e.bodyTemplate)||ag(t)||ag(r);return!!(n&&e.prepopulateLoading||o&&e.labelApiConfigPresent&&(e.labelApiLoading||e.labelApiResponse===void 0&&e.labelApiError==null))}function mie(e,t){const r=t??vs(e),n=r.variant??"body",o=e.appearance?.size??"md",a=pie[o]??pie.md,i=r.fontWeight??"medium";return n!=="body"?B("m-0 text-foreground",hie[n]??hie.h3,r.fontWeight&&yie[r.fontWeight],r.italic&&"italic",r.underline&&"underline",r.textAlign&&r1[r.textAlign]):B("m-0 text-foreground",a,yie[i],r.italic&&"italic",r.underline&&"underline",r.textAlign&&r1[r.textAlign])}function Kwt(e,t){const r=(t??vs(e)).variant??"body";return r==="body"?"p":r}function ig(e){const t=[];let r=0,n="";const o=()=>{n&&(t.push({type:"text",value:n}),n="")},a=(i,s,l)=>{if(!e.startsWith(i,r))return!1;const c=e.indexOf(s,r+i.length);if(c===-1)return!1;o();const u=e.slice(r+i.length,c);return t.push({type:l,children:ig(u)}),r=c+s.length,!0};for(;r<e.length;){if(e[r]==="\\"&&r+1<e.length){n+=e[r+1],r+=2;continue}a("**","**","bold")||a("__","__","underline")||a("*","*","italic")||a("_","_","italic")||(n+=e[r],r+=1)}return o(),t}function Gwt(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function gie(e){return e.map(t=>{if(t.type==="text")return Gwt(t.value);const r=gie(t.children);return t.type==="bold"?`<strong class="font-bold">${r}</strong>`:t.type==="italic"?`<em class="italic">${r}</em>`:`<u class="underline">${r}</u>`}).join("")}function Rwt(e){return e?gie(ig(e)):""}function Ywt(e,t){return e?t==="markdown-lite"?Rwt(e):e:""}function vie(e,t){return e.map((r,n)=>{const o=`${t}-${n}`;if(r.type==="text")return r.value?k.createElement(k.Fragment,{key:o},r.value):null;const a=vie(r.children,o);return r.type==="bold"?k.createElement("strong",{key:o,className:"font-bold"},a):r.type==="italic"?k.createElement("em",{key:o,className:"italic"},a):k.createElement("u",{key:o,className:"underline"},a)})}function bie(e,t){if(!e)return null;if(t!=="markdown-lite")return e;const r=ig(e);return r.length===1&&r[0]?.type==="text"?r[0].value:vie(r,"tl")}const Xwt="text-label-html prose prose-sm max-w-none [&_p]:m-0 [&_p+p]:mt-2 [&_ul]:my-1 [&_ol]:my-1";function _ie(e,t){if(!e)return null;const{field:r,asDescription:n=!1}=t,o=t.textProps??vs(r),a=t.contentLayout??Hwt(o),i=o.inlineFormat??"none";if(a==="paragraph"){const l=Fwt(Ywt(e,i));if(!l)return null;const c=n?B("m-0 text-sm",o.descriptionMuted!==!1?"text-muted-foreground":"text-foreground",o.textAlign&&r1[o.textAlign]):B(mie(r,o),Xwt);return k.createElement("div",{className:c,dangerouslySetInnerHTML:{__html:l}})}if(n)return k.createElement("p",{className:B("mt-0.5 text-sm",o.descriptionMuted!==!1?"text-muted-foreground":"text-foreground",o.textAlign&&r1[o.textAlign])},bie(e,i));const s=Kwt(r,o);return k.createElement(s,{className:mie(r,o)},bie(e,i))}function Zwt(e){const t=e.labelApiEndpoint?.trim();return!e.labelApiEnabled||!t?null:{labelApiEndpoint:t,labelApiMethod:e.labelApiMethod??"GET",labelApiQueryParams:e.labelApiQueryParams,labelApiHeaders:e.labelApiHeaders,labelApiBodyFields:e.labelApiBodyFields}}async function Jwt(e,t={}){const{formValues:r={},urlParams:n={},submissionContext:o}=t,a=d=>wo(d,r,n,o),i=(e.labelApiMethod??"GET").toUpperCase();let s=no(a(e.labelApiEndpoint));const l=e.labelApiQueryParams??[];if(l.length){const d=new URLSearchParams;l.forEach(({key:y,value:m})=>{y.trim()&&d.append(y,a(m))});const p=d.toString();p&&(s=`${s}${s.includes("?")?"&":"?"}${p}`)}const c={"Content-Type":"application/json"};(e.labelApiHeaders??[]).forEach(({key:d,value:p})=>{d.trim()&&(c[d]=a(p))});let u;i==="POST"&&(e.labelApiBodyFields??[]).length&&(u={},e.labelApiBodyFields.forEach(({key:d,value:p})=>{d.trim()&&(u[d]=a(p))}));try{return i==="POST"?(await Dr.post(s,u??{},{headers:Object.keys(c).length?c:void 0})).data:(await Dr.get(s,{headers:Object.keys(c).length?c:void 0})).data}catch(d){const p=d,y=p.response?.status,m=typeof p.response?.data=="string"?p.response.data:p.message??"Request failed";throw new Error(y?`HTTP ${y}: ${m}`:String(m))}}const Qwt=({field:e,className:t,formValues:r,urlParams:n,submissionContext:o,buttonResponses:a,prepopulateResponse:i,prepopulateLoading:s=!1})=>{const l=vs(e),c=k.useMemo(()=>Zwt(vs(e)),[e.properties]),[u,d]=k.useState(void 0),[p,y]=k.useState(!1),[m,g]=k.useState(null),v=k.useMemo(()=>c?JSON.stringify({endpoint:c.labelApiEndpoint,method:c.labelApiMethod,query:c.labelApiQueryParams,headers:c.labelApiHeaders,body:c.labelApiBodyFields}):"",[c]),b=k.useCallback(async()=>{if(!c){d(void 0),g(null),y(!1);return}y(!0),g(null);try{const j=await Jwt(c,{formValues:r??{},urlParams:n??{},submissionContext:o});d(j)}catch(j){d(void 0),g(j instanceof Error?j.message:"Failed to load label API")}finally{y(!1)}},[c,r,n,o]);k.useEffect(()=>{v&&b()},[v,b]);const _=l.textAlign==="center"?"items-center":l.textAlign==="right"?"items-end":l.textAlign==="justify"?"items-stretch":"items-start",x=qwt(e),w=Bwt(e),S=w&&e.label?e.label:"",M=e.description??"",P=Wwt({bodyTemplate:x,captionTemplate:S,descriptionTemplate:M,prepopulateLoading:s,labelApiConfigPresent:c!=null,labelApiLoading:p,labelApiResponse:u,labelApiError:m}),N={formValues:r??{},urlParams:n??{},submissionContext:o,buttonResponses:a,prepopulateResponse:i,labelApiResponse:u},A=x?ng(x,N):"",C=w&&e.label?ng(e.label,N):"",O=M?ng(M,N):"";return f.jsx("div",{className:B("w-full min-w-0 h-full min-h-[95px] flex flex-col justify-center py-0.5",_,t),children:P?f.jsx("p",{className:"text-sm text-muted-foreground m-0",children:"Loading…"}):f.jsxs(f.Fragment,{children:[m&&c?f.jsx("p",{className:"text-[10px] text-destructive mb-0.5",title:m,children:"Label API failed"}):null,C?f.jsx("div",{className:"text-sm font-medium text-foreground mb-1 w-full",children:C}):null,A?_ie(A,{field:e,textProps:l}):null,O?_ie(O,{field:e,textProps:l,asDescription:!0}):null]})})},sg=({legend:e,children:t,className:r,collapsible:n=!1,defaultCollapsed:o=!1,headerActions:a,onCollapsedChange:i})=>{const[s,l]=k.useState(o),c=k.useId(),u=d=>{d.stopPropagation(),n&&l(p=>{const y=!p;return i?.(y),y})};return f.jsxs("fieldset",{className:B("min-w-0 rounded-lg border bg-card p-4",r),"data-form-renderer":"config-section-border",children:[n?f.jsxs("div",{className:"mb-3 flex items-center justify-between gap-2 border-b border-border pb-2",children:[f.jsxs("button",{type:"button",className:B("flex min-w-0 flex-1 items-center gap-2 text-left text-sm font-medium text-foreground","cursor-pointer rounded-sm hover:bg-muted/70 transition-colors focus:outline-none focus:ring-2 focus:ring-ring"),"aria-expanded":!s,"aria-controls":c,onClick:u,children:[f.jsx("span",{className:"shrink-0 text-muted-foreground","aria-hidden":!0,children:s?f.jsx(Ln,{className:"h-4 w-4"}):f.jsx(Qo,{className:"h-4 w-4"})}),f.jsx("span",{className:"truncate",children:e})]}),a!=null?f.jsx("div",{className:"shrink-0",children:a}):null]}):f.jsx("legend",{className:"px-1 text-sm font-medium text-foreground",children:e}),!s&&f.jsxs("div",{id:c,className:"space-y-3",children:[!n&&a!=null?f.jsx("div",{className:"flex justify-end",children:a}):null,t]})]})};function kie(e){const t=e.properties,r=t?.apiEndpoint?{apiEndpoint:t.apiEndpoint,apiMethod:t.apiMethod,apiKey:t.apiKey,apiRealtime:t.apiRealtime,apiAutoDetect:t.apiAutoDetect,apiLabelField:t.apiLabelField,apiValueField:t.apiValueField,apiQueryParams:t.apiQueryParams,apiClientFilter:t.apiClientFilter,apiHeaders:t.apiHeaders,apiBodyFields:t.apiBodyFields,apiAuth:t.apiAuth,valueSource:t.valueSource,dependentFields:t.dependentFields}:null,n=e.apidata||null;return r||n}function lg(e){const t=kie(e),r=e.properties;return!!(t?.apiEndpoint&&(t?.valueSource==="api"||r?.valueSource==="api"))}function Sie({field:e,formValues:t={},submissionContext:r,value:n,onChange:o,clearWhenBlocked:a=!0}){const i=e.properties,s=kie(e),l=lg(e),[c,u]=k.useState(!1),[d,p]=k.useState(null),y=k.useRef(null),m=k.useRef(n);m.current=n;const g=k.useMemo(()=>{const S=s?.apiEndpoint||i?.apiEndpoint||"",M=s?.apiQueryParams||i?.apiQueryParams;return sl(S,M)},[s?.apiEndpoint,i?.apiEndpoint,s?.apiQueryParams,i?.apiQueryParams]),v=k.useMemo(()=>{const S=new Set;for(const P of i?.dependentFields??s?.dependentFields??[])typeof P=="string"&&P.trim()&&S.add(P.trim());const M=s?.apiClientFilter?.matchField?.trim()||i?.apiClientFilter?.matchField?.trim();return M&&S.add(M),[...S]},[i?.dependentFields,s?.dependentFields,s?.apiClientFilter?.matchField,i?.apiClientFilter?.matchField]),b=k.useMemo(()=>{const S=new Set([...g,...v]);if(S.size===0)return null;const M={};return S.forEach(P=>{M[P]=t[P]}),JSON.stringify(M)},[g,v,t]),_=k.useMemo(()=>JSON.stringify(r||{}),[r]),x=k.useMemo(()=>{const S=new Set;e.name?.trim()&&S.add(e.name.trim());const M=e.key;return typeof M=="string"&&M.trim()&&S.add(M.trim()),[...S]},[e.name,e.key]),w=e.type==="number"?null:"";return k.useEffect(()=>{const S=s?.apiEndpoint;if(!l||!S)return;let M=!1;const P=A=>{if(M)return;const C=m.current;if(A==null||A.trim()===""){a&&C!==w&&C!==void 0&&(y.current=null,o(w));return}if(e.type==="number"){const O=Number(A),j=Number.isFinite(O)?O:null;C!==j&&y.current!==A&&(y.current=A,o(j));return}String(C??"")!==A&&y.current!==A&&(y.current=A,o(A))};return(async()=>{u(!0),p(null);try{const A=s?.apiMethod||i?.apiMethod||"GET",C=s?.apiRealtime||i?.apiRealtime,O=s?.apiQueryParams||i?.apiQueryParams||{},j=Df({apiEndpoint:S,apiMethod:A,apiQueryParams:O,formValues:t,submissionContext:r,apiRealtime:C,additionalRequiredFieldNames:v,excludeFormFieldNames:x});if(j.blocked){M||(u(!1),a&&P(null));return}const z={"Content-Type":"application/json"},E=s?.apiKey||i?.apiKey;E&&(z["X-CSCAPI-KEY"]=E);const $=e.apidata,F=s?.apiAuth??i?.apiAuth??$?.apiAuth??Md(s?.apiHeaders??i?.apiHeaders??$?.apiHeaders)??{type:"none"},q=Pd(F,{formValues:t,submissionContext:r,apiRealtime:C});Object.assign(z,q);const D=s?.apiHeaders??i?.apiHeaders??$?.apiHeaders,H=s?.apiBodyFields??i?.apiBodyFields??$?.apiBodyFields,I=Aa(wd(D),{formValues:t,submissionContext:r,apiRealtime:C});Object.assign(z,I);const L=Aa(H,{formValues:t,submissionContext:r,apiRealtime:C}),R={method:A.toLowerCase(),url:no(j.url),headers:z};(j.postBodyBase!=null||Object.keys(L).length>0)&&(R.data={...j.postBodyBase??{},...L});const V=await Jt(R),G=s?.apiLabelField||i?.apiLabelField,Z=s?.apiValueField||i?.apiValueField,te=s?.apiClientFilter||i?.apiClientFilter;let K=ubt(V.data,Z,G);if(te?.filterField&&te?.matchField&&K!=null){const re=t[te.matchField];if(re==null)K=null;else{const Q=xd(V.data,G,Z),ee=Array.isArray(V.data)?V.data:V.data?.data?.data&&Array.isArray(V.data.data.data)?V.data.data.data:V.data?.data&&Array.isArray(V.data.data)?V.data.data:[],J=Q.filter(W=>{const ye=ee.find(ce=>String(Cr(ce,Z||"code"))===String(W.value));if(!ye)return!1;const oe=Cr(ye,te.filterField);return String(oe)===String(re)});K=J.length>0?J[0].value:null}}M||P(K)}catch(A){if(M)return;let C="Failed to load value";const O=A;if(O.response){const j=O.response.data;if(O.response.status===404)C="API endpoint not found.";else if(O.response.status===401)C="Authentication failed.";else if(typeof j=="string")C=j;else if(j&&typeof j=="object"){const z=j;C=z.error||z.message||z.detail||C}}else O.message&&(C=String(O.message));p(C)}finally{M||u(!1)}})(),()=>{M=!0}},[l,s?.apiEndpoint,s?.apiMethod,s?.apiValueField,s?.apiLabelField,i?.apiEndpoint,i?.apiMethod,i?.apiValueField,i?.apiLabelField,b,v,x,_,e.type,a,w]),{isLoading:c,error:d}}const e4t=({field:e,value:t,onChange:r,formValues:n,submissionContext:o,disabled:a,readOnly:i,...s})=>{const{isLoading:l}=Sie({field:e,formValues:n,submissionContext:o,value:t,onChange:r});return f.jsx(Rf,{field:e,value:t||"",onChange:r,disabled:a||l,readOnly:i||l,...s})},t4t=({field:e,value:t,onChange:r,formValues:n,submissionContext:o,disabled:a,readOnly:i,...s})=>{const{isLoading:l}=Sie({field:e,formValues:n,submissionContext:o,value:t,onChange:r});return f.jsx(tm,{field:e,value:t??null,onChange:r,disabled:a||l,readOnly:i||l,...s})},ca=({field:e,value:t,error:r,onChange:n,onBlur:o,disabled:a,readOnly:i,isRequired:s,className:l,formValues:c={},submissionContext:u,onSubmit:d,onReset:p,onCancel:y,isSubmitting:m,bffSubmitApi:g,onBffSubmitResult:v,extraSubmitPayload:b,buttonResponses:_,onButtonApiResponse:x,onValidateForm:w,getValidationErrors:S,allFields:M,onSubmittingChange:P,onAddMore:N,scopedFormValues:A,scopedFieldNameMap:C,excludedOptionValues:O,prepopulateMappedFieldNames:j,fieldValueKey:z,hideTableRowControls:E=!1,urlParams:$={},prepopulateResponse:F=null,prepopulateLoading:q=!1,formSections:D,submitPayload:H,recordUpsert:I})=>{switch(e.type){case"divider":return f.jsx(Zxt,{field:e,className:l});case"header":return f.jsx(Qxt,{field:e,className:l});case"sectionHeading":return f.jsx(rwt,{field:e,className:l});case"spacer":return f.jsx(nwt,{field:e,className:l});case"textLabel":return f.jsx(Qwt,{field:e,className:l,formValues:c,urlParams:$,submissionContext:u,buttonResponses:_,prepopulateResponse:F??void 0,prepopulateLoading:q});case"status":return f.jsx(Hxt,{field:e,value:t??null,error:r,disabled:a,isRequired:s,className:l,formValues:c,submissionContext:u,extraSubmitPayload:b,prepopulateResponse:F})}switch(e.type){case"color":return f.jsx(Yyt,{field:e,value:t||"",onChange:n,onBlur:o,error:r,disabled:a,readOnly:i,isRequired:s,className:l});case"text":case"password":case"url":return e.type==="text"&&lg(e)?f.jsx(e4t,{field:e,value:t||"",onChange:n,onBlur:o,error:r,disabled:a,readOnly:i,isRequired:s,className:l,formValues:c,submissionContext:u}):f.jsx(Rf,{field:e,value:t||"",onChange:n,onBlur:o,error:r,disabled:a,readOnly:i,isRequired:s,className:l});case"number":return lg(e)?f.jsx(t4t,{field:e,value:t??null,onChange:n,onBlur:o,error:r,disabled:a,readOnly:i,isRequired:s,className:l,formValues:c,submissionContext:u}):f.jsx(tm,{field:e,value:t??null,onChange:n,onBlur:o,error:r,disabled:a,readOnly:i,isRequired:s,className:l});case"email":return f.jsx(fee,{field:e,value:t||"",onChange:n,onBlur:o,error:r,disabled:a,readOnly:i,isRequired:s,className:l});case"phone":case"aadhaar":return f.jsx(pee,{field:e,value:t||"",onChange:n,onBlur:o,error:r,disabled:a,readOnly:i,isRequired:s,className:l});case"otp":return f.jsx(hte,{field:e,value:t||"",onChange:n,onBlur:o,error:r,disabled:a,readOnly:i,isRequired:s,className:l,formValues:c,urlParams:$,submissionContext:{...typeof u=="object"&&u!==null?u:{},...b??{}},prepopulateResponse:F});case"textarea":case"richtext":return f.jsx(mte,{field:e,value:t||"",onChange:n,onBlur:o,error:r,disabled:a,readOnly:i,isRequired:s,className:l});case"select":{const L=z??e.name??e.key??e.id,R=!!(L&&j?.has(L));return f.jsx(fne,{field:e,value:t||"",onChange:n,onBlur:o,error:r,disabled:a,isRequired:s,className:l,formValues:c,submissionContext:u,excludedOptionValues:O,isPrepopulateTarget:R})}case"multiselect":{const L=Array.isArray(t)?t:t!=null&&t!==""?[String(t)]:[];return f.jsx(Qne,{field:e,value:L,onChange:R=>n(R),onBlur:o,error:r,disabled:a,isRequired:s,className:l,formValues:c,submissionContext:u,excludedOptionValues:O})}case"asyncsearch":return f.jsx(Ane,{field:e,value:t,onChange:L=>n(L),onBlur:o,error:r,disabled:a,readOnly:i,isRequired:s,className:l,formValues:c,submissionContext:u});case"checkbox":case"terms":return f.jsx(eoe,{field:e,value:t||!1,onChange:n,onBlur:o,error:r,disabled:a,isRequired:s,className:l});case"toggle":return f.jsx(__t,{field:e,value:t||"",onChange:n,onBlur:o,error:r,disabled:a,isRequired:s,className:l});case"radio":return f.jsx(Poe,{field:e,value:t||"",onChange:n,onBlur:o,error:r,disabled:a,isRequired:s,className:l,excludedOptionValues:O});case"checkboxgroup":return f.jsx(Ooe,{field:e,value:t,onChange:n,onBlur:o,error:r,disabled:a,isRequired:s,className:l,excludedOptionValues:O});case"selectablelist":{const L=Array.isArray(t)?t:[];return console.log("[SelectableList] FieldRenderer: passing to SelectableListField",{fieldName:e.name,value:L,valueLength:L.length,submissionContextKeys:u?Object.keys(u):[]}),f.jsx(Uxt,{field:e,value:L,onChange:n,onBlur:o,error:r,disabled:a,isRequired:s,className:l,submissionContext:u})}case"date":case"time":case"datetime":case"daterange":return f.jsx(Noe,{field:e,value:t||"",onChange:n,onBlur:o,error:r,disabled:a,readOnly:i,isRequired:s,className:l});case"startTime":return f.jsx(X_t,{field:e,value:t||"",onChange:n,onBlur:o,error:r,disabled:a,readOnly:i,isRequired:s,className:l});case"duration":return f.jsx(nkt,{field:e,value:t==null||t===""?null:Number(t),onChange:n,onBlur:o,error:r,disabled:a,readOnly:i,isRequired:s,className:l});case"file":return f.jsx(okt,{field:e,value:t,onChange:n,onBlur:o,error:r,disabled:a,isRequired:s,className:l,buttonResponses:_});case"camera":return f.jsx(Tkt,{field:e,value:t??null,onChange:n,onBlur:o,error:r,disabled:a,isRequired:s,className:l});case"photoChoice":return f.jsx(Ckt,{field:e,value:t??null,onChange:n,onBlur:o,error:r,disabled:a,isRequired:s,className:l,buttonResponses:_});case"signature":return f.jsx(yxt,{field:e,value:t||null,onChange:n,onBlur:o,error:r,disabled:a,readOnly:i,isRequired:s,className:l});case"rating":return f.jsx(GSt,{field:e,value:t||0,onChange:n,onBlur:o,error:r,disabled:a,readOnly:i,isRequired:s,className:l});case"slider":return f.jsx(hxt,{field:e,value:t||0,onChange:n,onBlur:o,error:r,disabled:a,readOnly:i,isRequired:s,className:l});case"table":return f.jsx(mxt,{field:e,value:t||[],onChange:n,onBlur:o,error:r,disabled:a,readOnly:i,isRequired:s,className:l,hideRowControls:E,formValues:c,submissionContext:u});case"billingGrid":return f.jsx(Bxt,{field:e,value:t||{rows:[]},onChange:n,onBlur:o,error:r,disabled:a,readOnly:i,isRequired:s,className:l,formValues:c,submissionContext:u});case"button":return f.jsx(FSt,{field:e,value:t,onChange:n,onBlur:o,error:r,disabled:a,readOnly:i,isRequired:s,className:l,onSubmit:d,onReset:p,onCancel:y,isSubmitting:m,formValues:c,submissionContext:u,buttonResponses:_,onButtonApiResponse:x,bffSubmitApi:g,onBffSubmitResult:v,extraSubmitPayload:b,onValidateForm:w,getValidationErrors:S,allFields:M,onSubmittingChange:P,scopedFormValues:A,scopedFieldNameMap:C,prepopulateResponse:F,formSections:D,submitPayload:H,recordUpsert:I});case"editButton":return f.jsx(DSt,{field:e,disabled:a,readOnly:i,isRequired:s,className:l,buttonResponses:_,onButtonApiResponse:x});case"addmore":return f.jsx(LSt,{field:e,error:r,disabled:a,readOnly:i,isRequired:s,className:l,onAddMore:()=>N?.(e)});case"customizeSections":return f.jsx(KSt,{field:e,error:r,disabled:a,readOnly:i,isRequired:s,className:l});default:return f.jsx("div",{className:"p-3 border rounded-md bg-muted/50",children:f.jsxs("p",{className:"text-sm text-muted-foreground",children:["Unsupported field type: ",e.type]})})}};function xie(e){return e.type==="button"||e.type==="editButton"}function r4t(e,t,r,n){const o=new Map;if(!n)return o;const a=e.filter(s=>!s.parentId&&t(s)),i=new Map;for(const s of a){if(typeof s.position?.order!="number")continue;const l=Vi(s.position.order,s.position.column??1,r),c=i.get(l.row)??[];c.push(s),i.set(l.row,c)}for(const[s,l]of i){const c=l.filter(xie);if(c.length<2||!l.every(xie))continue;const u=c.map(d=>{const p=Vi(d.position.order,d.position.column??1,r);return{field:d,colIndex:p.col-1}});u.sort((d,p)=>d.colIndex-p.colIndex),o.set(s,{rowIndex:s,fields:u.map(d=>d.field),originColIndex:u[0].colIndex,coveredColIndices:new Set(u.map(d=>d.colIndex))})}return o}const n4t="…";function o4t(e){for(const[t,r]of Object.entries(e))for(let n=0;n<r.length;n++){const o=r.charCodeAt(n);if(!(o<=255))throw r[n]===n4t||o===8230?new Error(`Header "${t}" contains a truncated value (ellipsis "…" at position ${n}). Use {token} or {authorization} for the session JWT instead of pasting a Bearer token.`):new Error(`Header "${t}" contains a non-ASCII character (U+${o.toString(16).toUpperCase()}) at position ${n}. HTTP headers must use Latin-1 characters only.`)}}const a4t=new Set(["PENDING_PAYMENT","PAYMENT_PENDING","AWAITING_PAYMENT","PAID","PAYMENT_COMPLETED","PAYMENT_FAILED","REFUNDED","AUTHORIZED","CAPTURED","PARTIALLY_PAID"].map(e=>e.toUpperCase()));function cg(e){return typeof e=="string"&&e.trim()!==""}function dg(e){if(e==null||typeof e!="object"||Array.isArray(e))return!1;const t=e;if(t.payment_type!=null&&t.payment_type!==""||t.payment_mode!=null&&t.payment_mode!==""||t.transaction_id!=null&&String(t.transaction_id).trim()!==""||t.payment_status!=null&&String(t.payment_status).trim()!==""||typeof t.amount=="number"||cg(t.amount)||typeof t.total_amount=="number"||cg(t.total_amount)||cg(t.currency)||t.gateway!=null&&String(t.gateway).trim()!==""||t.razorpay_order_id!=null&&String(t.razorpay_order_id).trim()!==""||t.stripe_payment_intent!=null&&String(t.stripe_payment_intent).trim()!=="")return!0;const r=t.status;return!!(typeof r=="string"&&a4t.has(r.trim().toUpperCase()))}function i4t(e){const t=fe(e,"data.items");if(!Array.isArray(t)||t.length===0)return;const r=t[0];if(r==null||typeof r!="object")return;const n=r;if(!(n.id===void 0||n.id===null||n.id===""))return{item:n,id:n.id}}function s4t(e,t){const r=i4t(e);if(!r)return;const n=fe(e,"data"),o=n!=null&&typeof n=="object"&&!Array.isArray(n)?n:void 0;if(t?.treatFirstItemIdAsPaymentId===!0||dg(r.item)||o!=null&&dg(o))return r.id}function l4t(e){const t=e.properties,r=e.metadata;return[t?.uploadApiEndpoint,t?.apiEndpoint,r?.uploadApiEndpoint,r?.apiEndpoint].filter(o=>typeof o=="string"&&o.length>0)}function c4t(e){return l4t(e).some(t=>t.toLowerCase().includes("payment"))}function d4t(e){const t=e.properties,r=e.metadata;return!!(t?.mergeSuccessDataIdAsPaymentId||r?.mergeSuccessDataIdAsPaymentId)}function u4t(e,t){if(t?.type!=="button"||!id(e))return;const r=fe(e,"data.id");if(r==null||String(r).trim()==="")return;const n=fe(e,"data");if(d4t(t)||n!=null&&typeof n=="object"&&!Array.isArray(n)&&dg(n)||c4t(t))return r}const f4t=new Set(["section","group","columns","divider","header","sectionHeading","spacer","addmore","textLabel","customizeSections"]);function p4t(e,t){if(!e.length||!t?.length)return[];const r=new Map(t.map(o=>[o.id,o])),n=[];for(const o of e){const a=r.get(o);if(a?.fieldNames?.length)for(const i of a.fieldNames)i&&!n.includes(i)&&n.push(i)}return n}function h4t(e,t){const r=e.properties,n=Array.isArray(r?.linkedFieldNames)?r.linkedFieldNames:[],o=p4t(Array.isArray(r?.linkedSectionIds)?r.linkedSectionIds:[],t),a=new Set,i=[];for(const s of[...n,...o])!s||a.has(s)||(a.add(s),i.push(s));return i}function wie(e,t){const r=e.properties,n=Array.isArray(r?.linkedSectionIds)?r.linkedSectionIds:[];if(!n.length||!t?.length)return[];const o=new Map(t.map(a=>[a.id,a]));return n.map(a=>o.get(a)).filter(a=>!!a)}function y4t(e,t){return wie(e,t).find(r=>r.heading?.enabled)}function Mie(e,t){const r=e.template??"";return(e.mode??"increment")==="fixed"?r:r.replace(/\{n\}/g,String(t+1))}function Pie(e,t,r,n){const o=h4t(e,r);if(o.length===0)return[];const a=new Set(o);return t.filter(i=>{const s=n(i);return!s||i.id===e.id||f4t.has(i.type)?!1:a.has(s)})}function m4t(e,t,r){if(e.type!=="sectionHeading"||!t?.length)return;const n=r(e);if(n)for(const o of t){const a=o.heading;if(a?.enabled&&a.headingFieldName===n)return a}}function ug(e){return[...e].sort((t,r)=>{const n=t.position?.order??0,o=r.position?.order??0;if(n!==o)return n-o;const a=t.position?.column??1,i=r.position?.column??1;return a-i})}function g4t(e,t,r){if(!e?.length)return[];const n=e.filter(i=>i.showBorder===!0);if(n.length===0)return[];const o=new Map;for(const i of t){const s=r(i);s&&o.set(s,i)}const a=[];for(const i of n){const s=i.fieldNames.map(c=>o.get(c)).filter(c=>!!c);if(s.length===0)continue;const l=ug(s).map(c=>r(c)).filter(Boolean);a.push({section:i,fieldNames:l})}return a}function Ld(e,t=0){return e.heading?.enabled?Mie(e.heading,t):e.name}function Oie(e,t,r){if(e.type!=="sectionHeading")return!1;const n=t.heading;return!n?.enabled||!n.headingFieldName?!1:r(e)===n.headingFieldName}function v4t(e,t){const r=typeof e.position?.order=="number"?e.position.order:0,n=(e.position?.column??1)-1,o=td(e),a=M4(e,t);return{row:r,col:n,rowEnd:r+o-1,colEnd:n+a-1}}function fg(e,t){let r=1/0,n=-1/0,o=1/0,a=-1/0;for(const i of e){const{row:s,col:l,rowEnd:c,colEnd:u}=v4t(i,t);r=Math.min(r,s),n=Math.max(n,c),o=Math.min(o,l),a=Math.max(a,u)}return Number.isFinite(r)?{minRow:r,maxRow:n,minCol:o,maxCol:a,rowSpan:n-r+1,colSpan:a-o+1}:null}function b4t(e,t,r,n){const o=e.map(u=>t.find(d=>n(d)===u)).filter(u=>!!u&&typeof u.position?.order=="number");if(o.length===0)return null;const a=fg(o,r);if(!a)return null;const i=o.filter(u=>u.type!=="sectionHeading"),s=i.length>0?i:o,l=Math.min(...s.map(u=>u.position?.order??0)),c=Math.max(1,...s.map(u=>(u.position?.order??l)-l+td(u)));return{minRow:a.minRow,maxRow:a.maxRow,minCol:a.minCol,maxCol:a.maxCol,blockHeight:c}}function _4t(e,t){return e.maxRow+1+t*e.blockHeight}function k4t(e,t,r,n){const o=new Map;for(const s of t){const l=r(s);l&&o.set(l,s)}const a=new Map,i=new Set;for(const s of e){const l=s.fieldNames.map(_=>o.get(_)).filter(_=>!!_);if(l.length===0)continue;const c=l.filter(_=>!Oie(_,s.section,r)),u=fg(l,n);if(!u)continue;const{minRow:d,minCol:p,rowSpan:y,colSpan:m}=u,g=`${d}-${p}`;if(a.has(g))continue;const v=new Set;let b=!1;for(let _=d;_<=d+y-1;_++){for(let x=p;x<=p+m-1;x++){const w=`${_}-${x}`;if(i.has(w)){b=!0;break}v.add(w)}if(b)break}if(!b){for(const _ of v)i.add(_);a.set(g,{anchorRow:d,anchorCol:p,rowSpan:y,colSpan:m,run:s,legend:Ld(s.section,0),renderFields:c.length>0?c:l})}}return{anchorsByOrigin:a,coveredCells:i}}function S4t(e,t,r,n,o,a,i){const s=new Set(i),l=new Map;for(const c of e){const u=jie(c.linkedFields.map(p=>a(p)).filter(Boolean),t),d=u?.section;d?.fieldNames?.length?d.fieldNames:c.templateFieldNames,c.blockIds.forEach((p,y)=>{const m=r.filter(P=>P.id.endsWith(`__${p}`));if(m.length===0||!u)return;const g=fg(m,o);if(!g)return;const{minRow:v,minCol:b,rowSpan:_,colSpan:x}=g,w=`${v}-${b}`;for(let P=v;P<=v+_-1;P++)for(let N=b;N<=b+x-1;N++)s.add(`${P}-${N}`);const S=u,M=Ld(d,y+1);l.set(w,{anchorRow:v,anchorCol:b,rowSpan:_,colSpan:x,run:S,legend:M,renderFields:ug(m),addMoreMeta:{addMoreFieldName:c.addMoreFieldName,blockId:p,blockIndex:y}})})}return{anchorsByOrigin:l,coveredCells:s}}function x4t(e,t,r,n){const o=`${e}-${t}`;return r.has(o)?!n.get(o):!1}function w4t(e,t,r){for(const n of r.values())if(e>=n.anchorRow&&e<n.anchorRow+n.rowSpan&&t>=n.anchorCol&&t<n.anchorCol+n.colSpan)return n}function M4t(e,t,r,n){return!(!n||r.run.section.collapsible!==!0||e===r.anchorRow&&t===r.anchorCol)}function P4t(e,t,r){const n=new Set;for(const o of e.values())if(t(o))for(let a=o.anchorRow+1;a<o.anchorRow+o.rowSpan;a++)r(a,o)||n.add(a);return n}function Nie(e){const t=e.trim().toLowerCase();return t==="auto"||t==="min-content"||t==="max-content"?"minmax(0, auto)":`minmax(${e.trim()}, auto)`}function O4t(e,t,r){const n=o=>r.has(o)?"minmax(0, auto)":Nie(t);return Array.from({length:e},(o,a)=>n(a)).join(" ")}function N4t(e,t){return new Map([...e,...t])}function j4t(e,t,r){if(t.length===0)return e.map(i=>({kind:"field",field:i}));const n=new Map;for(const i of t)for(const s of i.fieldNames)n.set(s,i);const o=[];let a=0;for(;a<e.length;){const i=e[a],s=r(i),l=s?n.get(s):void 0;if(!l){o.push({kind:"field",field:i}),a+=1;continue}const c=[],u=new Set(l.fieldNames);for(;a<e.length;){const p=r(e[a]);if(!p||!u.has(p))break;const y=e[a];Oie(y,l.section,r)||c.push(y),a+=1}if(c.length===0)continue;const d=o[o.length-1];d?.kind==="border"&&d.run.section.id===l.section.id?d.fields.push(...c):o.push({kind:"border",run:l,fields:c})}return o}function jie(e,t){if(!t?.length)return;const r=new Set(e);for(const n of t){if(n.showBorder!==!0)continue;const o=n.fieldNames.filter(a=>r.has(a));if(o.length>0)return{section:n,fieldNames:o}}}const A4t=({steps:e,currentStep:t,completedSteps:r,onStepClick:n,className:o})=>f.jsx("div",{className:B("mb-8",o),children:f.jsx("nav",{"aria-label":"Progress",children:f.jsx("ol",{className:"flex items-center",children:e.map((a,i)=>{const s=r.has(i),l=t===i,c=n&&(s||i===t+1||i<=t);return f.jsxs("li",{className:B("relative",i!==e.length-1&&"pr-8 sm:pr-20 flex-1"),children:[i!==e.length-1&&f.jsx("div",{className:B("absolute top-4 left-8 -right-8 sm:left-12 sm:-right-12 h-0.5",s?"bg-primary":"bg-border"),"aria-hidden":"true"}),f.jsx("button",{type:"button",onClick:()=>c&&n?.(i),disabled:!c,className:B("relative flex h-8 w-8 items-center justify-center rounded-full text-sm font-medium","transition-colors focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2",s&&"bg-primary text-primary-foreground",l&&!s&&"border-2 border-primary text-primary",!s&&!l&&"border-2 border-border text-muted-foreground",c&&"cursor-pointer hover:bg-primary/10",!c&&"cursor-default"),"aria-current":l?"step":void 0,children:s?f.jsx(Jo,{className:"h-4 w-4"}):f.jsx("span",{children:i+1})}),f.jsxs("div",{className:"mt-2",children:[f.jsx("span",{className:B("text-sm font-medium",l&&"text-primary",!l&&!s&&"text-muted-foreground"),children:a.name}),a.description&&f.jsx("p",{className:"text-xs text-muted-foreground hidden sm:block",children:a.description})]})]},a.id)})})})}),T4t=2*6e4,Aie=50;class C4t{map=new Map;ttlMs;constructor(t){this.ttlMs=t}get(t){const r=this.map.get(t);if(!r)return null;const o=Date.now()-r.storedAtMs>this.ttlMs;return{value:r.value,isStale:o}}set(t,r){this.map.set(t,{value:r,storedAtMs:Date.now()}),this.enforceMax()}delete(t){this.map.delete(t)}clear(){this.map.clear()}enforceMax(){if(this.map.size<=Aie)return;const t=Array.from(this.map.entries());t.sort((n,o)=>n[1].storedAtMs-o[1].storedAtMs),t.slice(0,Math.max(0,this.map.size-Aie)).forEach(([n])=>this.map.delete(n))}}function E4t(e){return(e??"").trim()||"default"}function Tie(e){const t=E4t(e.scope),r=String(e.formId??"").trim(),n=e.version===void 0||e.version===null?"latest":String(e.version).trim();return`form-render:${t}:${r}:${n}`}const Cie=new C4t(T4t);function Eie(e){const t=Tie(e),r=Cie.get(t);return r?{value:r.value,isStale:r.isStale}:null}function zie(e,t){const r=Tie(e);Cie.set(r,t)}function $ie(e){const t={};for(const[n,o]of Object.entries(e)){if(o==null){t[n]=o;continue}if(Array.isArray(o)){t[n]=o;continue}if(typeof o=="object"&&!(o instanceof Date)){const a=o;typeof a.name=="string"&&typeof a.code=="string"?t[n]=`${a.code} ${a.name}`.trim():typeof a.name=="string"?t[n]=a.name:typeof a.code=="string"?t[n]=a.code:typeof a.short_code=="string"?t[n]=a.short_code:t[n]=a.name??a.code??"";continue}t[n]=o}const r=t.time_slot??e.time_slot;return typeof r=="string"&&r.includes(" - ")&&(t.start=r.split(" - ")[0].trim()),t}const n1=({schema:e,formId:t,initialValues:r,onSubmit:n,onChange:o,onValidationError:a,onClose:i,mode:s="fill",className:l,children:c,gridLayout:u,unstyled:d=!1,submissionContext:p,onWorkflowSubmitResult:y,initialExtraSubmitPayload:m,onExtraSubmitPayloadChange:g,workflowStepId:v,initialStepIndex:b,viewerContext:_,getViewerContext:x,hideTableRowControls:w=!1,themeVars:S,dark:M=!1,omitRootWrapper:P=!1,moduleId:N,workflowModalHandlers:A,getAuthHeaders:C,showModalCloseButton:O})=>{const j=es(U=>U.viewerContext),z=k.useMemo(()=>{if(_!==void 0)return _;const U=x?.();return U!==void 0?U:j},[_,x,j]),[E,$]=k.useState(e||null),[F,q]=k.useState(!!t&&!e),[D,H]=k.useState(null),I=e?.BFF_submit_api??D,[L,R]=k.useState(!1),[V,G]=k.useState({}),[Z,te]=k.useState({}),[K,re]=k.useState({}),[Q,ee]=k.useState({}),[J,W]=k.useState({}),[ye,oe]=k.useState(null),ce=y0.useParams(),de=to(U=>U.setValues),ve=to(U=>U.setSubmitting),ie=to(U=>U.formDisabled),Ae=to(U=>U.visibleFields),Ce=to(U=>U.requiredFields),Le=to(U=>U.updateVisibility),_e=to(U=>U.updateRequired),Ee=to(U=>U.setFieldError),He=Lf(),tt=k.useRef(!1),be=k.useRef(void 0),Oe=k.useMemo(()=>{if(!e)return null;const U=e;if(U.form&&Array.isArray(U.form.fields))try{return ys(U.form,U.form.fields,U.form.layout||null,U.form.rules||[])}catch{return e}if(Array.isArray(U.fields)&&U.fields.some(ne=>typeof ne.metadata=="string"&&ne.metadata.startsWith("{")||ne.fieldType&&!ne.type))try{const ne={id:U.id||U._id||"temp",name:U.name||"Form",version:U.version??1,status:U.status||"draft",createdAt:U.createdAt||new Date().toISOString(),updatedAt:U.updatedAt||new Date().toISOString(),createdBy:U.createdBy||"system",category:U.category||"",moduleId:U.moduleId,tenantId:U.tenantId,featureId:U.featureId,isDefault:U.isDefault||!1};return ys(ne,U.fields,U.layout||null,U.rules||[])}catch{return e}return e},[e]);k.useEffect(()=>{if(e){const U=e;U.BFF_submit_api&&H(U.BFF_submit_api)}},[e]);const Xe=k.useMemo(()=>{const U=Oe||E,ae=U?Yp(U):null;if(!ae)return null;const ne=ae.layout,he=ae.rules,me=ae.clientMapping,we=(Array.isArray(ae.fields)?ae.fields:[]).map(rt=>{let mt={...rt};if(rt.validationRules&&typeof rt.validationRules=="object"&&!rt.validation){const xe=rt.validationRules,$e=[];xe.required===!0&&$e.push({type:"required",message:"This field is required"}),xe.minLength!==void 0&&typeof xe.minLength=="number"&&$e.push({type:"minLength",value:xe.minLength,message:`Minimum length is ${xe.minLength}`}),xe.maxLength!==void 0&&typeof xe.maxLength=="number"&&$e.push({type:"maxLength",value:xe.maxLength,message:`Maximum length is ${xe.maxLength}`}),xe.pattern&&typeof xe.pattern=="string"&&$e.push({type:"pattern",value:xe.pattern,message:"Invalid format"}),xe.allowLetters!==void 0&&$e.push({type:"allowLetters",value:xe.allowLetters}),xe.allowNumbers!==void 0&&$e.push({type:"allowNumbers",value:xe.allowNumbers}),xe.allowSpecialChars!==void 0&&$e.push({type:"allowSpecialChars",value:xe.allowSpecialChars}),$e.length>0&&(mt={...mt,validation:$e})}const Tt=rt.required===!0||rt.isRequired===!0,qe=Array.isArray(mt.validation)&&mt.validation.some(xe=>xe.type==="required");if(Tt&&!qe){const xe={type:"required",message:"This field is required"},$e=Array.isArray(mt.validation)?mt.validation:[];mt={...mt,validation:[...$e,xe]}}if(rt.apidata&&typeof rt.apidata=="object"){const xe=rt.apidata,$e=mt.properties||{},Re=(mt.type||rt.fieldType)==="status",ut={};!$e.apiAuth&&xe.apiAuth&&(ut.apiAuth=xe.apiAuth),(!$e.apiHeaders||$e.apiHeaders.length===0)&&Array.isArray(xe.apiHeaders)&&xe.apiHeaders.length>0&&(ut.apiHeaders=xe.apiHeaders),Object.keys(ut).length>0&&(mt={...mt,properties:{...$e,...ut}});const Xt=mt.properties||{};if(!Xt.apiEndpoint&&xe.apiEndpoint){const Lt={...Xt,apiEndpoint:xe.apiEndpoint,apiMethod:xe.apiMethod,apiKey:xe.apiKey,apiRealtime:xe.apiRealtime,apiAutoDetect:xe.apiAutoDetect,apiLabelField:xe.apiLabelField,apiValueField:xe.apiValueField,apiQueryParams:xe.apiQueryParams,apiClientFilter:xe.apiClientFilter,apiHeaders:xe.apiHeaders??Xt.apiHeaders,apiBodyFields:xe.apiBodyFields,apiAuth:xe.apiAuth??Xt.apiAuth,valueSource:xe.valueSource||(xe.apiEndpoint?"api":void 0),optionsSource:xe.optionsSource||(xe.apiEndpoint?"api":void 0),dependentFields:xe.dependentFields,apiResponsePath:xe.apiResponsePath};Re&&(Lt.source=$e.source??"api",$e.statuses!==void 0&&(Lt.statuses=$e.statuses),$e.dataPath!==void 0&&(Lt.dataPath=$e.dataPath),$e.showStatusText!==void 0&&(Lt.showStatusText=$e.showStatusText),$e.statusTextPath!==void 0&&(Lt.statusTextPath=$e.statusTextPath),$e.showCurrentIndicator!==void 0&&(Lt.showCurrentIndicator=$e.showCurrentIndicator)),mt={...mt,properties:Lt}}}const Ne=["select","multiselect","radio","checkboxgroup"],Ze=mt.type||rt.fieldType;if(Ne.includes(Ze)){const xe=rt.options,$e=mt.properties?.options,Re=Array.isArray($e)&&$e.length>0;if(Array.isArray(xe)&&xe.length>0&&!Re){const ut=mt.properties||{};mt={...mt,properties:{...ut,options:xe}}}}return mt}),Me=ae.config?.rules,Be=he&&Array.isArray(he)?he:Me&&Array.isArray(Me)?Me:[],dt=Be.length>0?we.map(rt=>{if((rt.conditions&&Array.isArray(rt.conditions)?rt.conditions:[]).length>0)return rt;const Tt=rt.id??rt._id,qe=rt.name||rt.key,Ne=Be.filter($e=>{const Re=typeof $e.targetFieldId=="object"?$e.targetFieldId?.id??$e.targetFieldId?._id:$e.targetFieldId;return Re?Re===Tt||Re===qe||Re===rt.fieldKey:!1});if(Ne.length===0)return rt;const Ze=[],xe=new Set;return Ne.forEach($e=>{try{const Re=typeof $e.conditionExpression=="string"?JSON.parse($e.conditionExpression):$e.conditionExpression;if(!Re||typeof Re!="object")return;!Re.id&&$e.id&&(Re.id=$e.id);const ut=typeof $e.targetFieldId=="object"?$e.targetFieldId?.id??$e.targetFieldId?._id:$e.targetFieldId;Re.action&&(!Re.then||!Array.isArray(Re.then)||Re.then.length===0)&&(Re.then=[{action:Re.action,...ut&&{target:ut}}]),(!Re.then||!Array.isArray(Re.then)||Re.then.length===0)&&$e.action&&(Re.then=[{action:$e.action,...ut&&{target:ut}}]),Re.then&&Array.isArray(Re.then)&&ut&&(Re.then=Re.then.map(Lt=>!Lt.target&&ut?{...Lt,target:ut}:Lt));const Xt=$e.conditionExpression??JSON.stringify(Re);if(xe.has(Xt))return;xe.add(Xt),Ze.push(Re)}catch{}}),Ze.length===0?rt:{...rt,conditions:Ze}}):we;let vt=ae.config||{submitAction:"database",layout:"default",autoSave:!0,validateOnChange:!0,showFieldErrors:"inline"};return!vt.layout&&ne?typeof ne=="object"&&ne!==null?vt.layout="default":typeof ne=="string"&&["default","card","compact"].includes(ne)?vt.layout=ne:vt.layout="default":vt.layout||(vt.layout="default"),he&&!vt.rules&&(vt.rules=he),me&&!vt.clientMapping&&(vt.clientMapping=me),{...ae,fields:dt,config:vt}},[Oe,E]);k.useEffect(()=>{Oe&&Oe!==E&&$(Oe)},[Oe]),k.useEffect(()=>{if(t&&!e){const U=(ta()??"").trim()||"default",ae=Eie({scope:U,formId:t,version:"latest"});ae?.value?.schema?($(ae.value.schema),ae.value.bffSubmitApi&&H(ae.value.bffSubmitApi),q(!1),ae.isStale&&Kt({background:!0})):Kt({background:!1})}},[t,e]);const Kt=async({background:U})=>{if(!t)return;const ae=t;U||q(!0);try{const ne=await k2.getForRendering(t),he=ys(ne.form,ne.fields,ne.layout,ne.rules);if(ae!==t)return;$(he),ne.BFF_submit_api&&H(ne.BFF_submit_api);const me=(ta()??"").trim()||"default";zie({scope:me,formId:ae,version:"latest"},{schema:he,bffSubmitApi:ne.BFF_submit_api})}catch{}finally{U||q(!1)}};if(F)return f.jsx("div",{className:"flex items-center justify-center py-12",children:f.jsx(tn,{})});if(!Xe)return f.jsx("div",{className:"text-center py-12 text-muted-foreground",children:"Form not found"});const Y=Xe,ge=k.useMemo(()=>new Set(Object.keys(Y.config?.prepopulateApi?.fieldMapping??{})),[Y.config?.prepopulateApi?.fieldMapping]),Fe=k.useCallback(async U=>{const ae=Y?.fields?.length?T2(U,Y.fields):U,ne=P2(ae,Y.config?.sections,Y.config?.submitPayload);if(n){const he=p?{...ne,...p}:ne;return n(he)}return{success:!0}},[n,p,Y?.fields,Y.config?.sections,Y.config?.submitPayload]),bt=k.useMemo(()=>!r||Object.keys(r).length===0?r:k4({...r},Y.fields),[r,Y.fields]),{values:We,errors:$t,touched:Gt,isSubmitting:De,isValid:gt,submitCount:ze,totalSteps:kt,currentStepFields:St,isLastStep:hr,setFieldValue:Zt,setFieldTouched:rr,handleSubmit:Wr,validateForm:nr,resetForm:qt,nextStep:Jr,goToStep:Rt,currentStep:yr,completedSteps:bo,loadDraft:Zn}=x5({schema:Y,initialValues:bt,onSubmit:Fe,onChange:o,workflowStepId:v,initialStepIndex:b}),{isFieldEnabled:br,isFieldRequired:nt,isFieldVisible:Yt}=$ke({fields:Y.fields,values:We,buttonResponses:Z,prepopulateResponse:ye,prepopulateResponseRules:Y.config?.prepopulateResponseRules}),Dt=Yt,ur=to(U=>U.readOnlyFields),Kr=to(U=>U.editableFields),_o=k.useCallback(U=>ur.has(U),[ur]),ka=k.useCallback(U=>Kr.has(U),[Kr]);k.useEffect(()=>{Y.config?.allowDraft&&s==="fill"&&Zn()},[Y.id]),k.useEffect(()=>{be.current=Y.id,tt.current=!1,G({}),re({}),ee({}),W({}),oe(null)},[Y.id]);const on=Y.config?.recordUpsert,Xc=k.useMemo(()=>{if(!on?.enabled)return;const U=z2(on);return E2(typeof p=="object"&&p!==null?p:void 0,U)},[on,p]);k.useEffect(()=>{on?.enabled&&(tt.current=!1,oe(null))},[Y.id,Xc,on?.enabled]),k.useEffect(()=>{const U=Y.config?.prepopulateApi,ae=!!(U?.fieldMapping&&Object.keys(U?.fieldMapping??{}).length>0),ne=(Y.config?.prepopulateResponseRules?.length??0)>0;if(!U?.enabled||!U.apiEndpoint?.trim()||!ae&&!ne)return;const he=Y.config?.recordUpsert;if(he?.enabled){const Me=z2(he);if(!E2(typeof p=="object"&&p!==null?p:void 0,Me))return}if(tt.current)return;tt.current=!0;const me=Y.id;be.current=Y.id;let we=!1;return R(!0),(async()=>{try{const Me=He.getState().values,Be=typeof p=="object"&&p!==null?{...p,...m||{}}:m||{},dt=ke=>wo(ke,Me,ce,Be);let vt=no(dt(U.apiEndpoint));if(U.apiQueryParams?.length){const ke=new URLSearchParams;U.apiQueryParams.forEach(({key:Je,value:Ie})=>ke.append(Je,dt(Ie))),vt=`${vt}${vt.includes("?")?"&":"?"}${ke.toString()}`}const kr=dne({apiHeaders:U.apiHeaders},{formValues:Me,submissionContext:Be,urlParams:ce});kr["Content-Type"]=kr["Content-Type"]??"application/json",o4t(kr);let rt;if(U.apiMethod==="POST"&&U.apiBodyFields?.length){const ke={};U.apiBodyFields.forEach(({key:Je,value:Ie})=>{Je.trim()&&(ke[Je]=dt(Ie))}),rt=JSON.stringify(ke)}const mt=await fetch(vt,{method:U.apiMethod,headers:kr,body:U.apiMethod==="POST"?rt:void 0});if(!mt.ok){const ke=await mt.text();throw new Error(ke||`HTTP ${mt.status}`)}const Tt=await mt.json(),qe=ke=>{try{return ke.split("?")[0].split("/").filter(Boolean).pop()||ke}catch{return ke}},Ne=(ke,Je)=>{if(ke==null)return null;const Ie=typeof ke=="string"?ke:ke instanceof Date?ke.toISOString():null;if(!Ie)return null;const ft=typeof ke=="object"&&ke instanceof Date?ke:new Date(Ie);if(Number.isNaN(ft.getTime()))return null;const Ct=zt=>String(zt).padStart(2,"0");if(Je==="date")return Ie.length>=10&&Ie[4]==="-"&&Ie[7]==="-"?Ie.slice(0,10):ft.toISOString().slice(0,10);if(Je==="time")return`${Ct(ft.getHours())}:${Ct(ft.getMinutes())}:${Ct(ft.getSeconds())}`;if(Je==="datetime"){const zt=ft.getFullYear(),wt=ft.getMonth()+1,je=ft.getDate(),It=ft.getHours(),ct=ft.getMinutes(),fr=ft.getSeconds();return`${zt}-${Ct(wt)}-${Ct(je)}T${Ct(It)}:${Ct(ct)}:${Ct(fr)}`}return null},Ze=(ke,Je)=>{const Ie=Y.fields.find(je=>je.name===ke||je.key===ke);if(!Ie)return Je;if((Ie.type==="file"||Ie.type==="camera"||Ie.type==="photoChoice")&&typeof Je=="string"&&Je.startsWith("http"))return{url:Je,name:qe(Je)};if(Ie.type==="date"||Ie.type==="datetime"||Ie.type==="time"){const je=Ne(Je,Ie.type);if(je!==null)return je}if(Ie.type==="multiselect")return Array.isArray(Je)?Je.map(je=>typeof je=="string"?je:String(je)):typeof Je=="string"?Je.trim()===""?[]:Je.includes(",")?Je.split(",").map(je=>je.trim()).filter(Boolean):[Je]:Je!=null&&Je!==""?[String(Je)]:[];if(Ie.type!=="radio"&&Ie.type!=="select")return Je;const ft=Ie.properties?.options??Ie.options;if(!Array.isArray(ft)||ft.length===0)return Je;const Ct=ft.map(je=>je.value);if(Ct.includes(Je))return Je;const zt=String(Je);if(Ct.includes(zt))return zt;const wt=ft.find(je=>je.value==Je);return wt?wt.value:Je},xe=new Set(Y.fields.filter(ke=>ke.type==="table").map(ke=>ke.name||ke.key)),$e=new Set(Y.fields.filter(ke=>ke.type==="billingGrid").map(ke=>ke.name||ke.key)),Re=ke=>ke.name||ke.key||ke.id,ut={},Xt=[],Lt=[],fn=eSt(U?.fieldMapping,Y.config?.sections,Y.config?.submitPayload);for(const[ke,Je]of Object.entries(fn)){if(!Je?.trim()||ke.startsWith("__"))continue;const Ie=fe(Tt,Je),ft=ke.indexOf(".");if(ft>0&&$e.has(ke.slice(0,ft))){const zt=ke.slice(0,ft),wt=ke.slice(ft+1),It=Y.fields.find(ct=>(ct.name||ct.key)===zt)?.properties;if(It?.rowSlots?.length){const ct=wt.startsWith("__block__")?wt.slice(9):wt,fr=ut[zt]??He.getState().values[zt];Array.isArray(Ie)?ut[zt]=Ext(It,ct,Ie,fr):Ie!=null&&(ut[zt]=G2(It,Ie,fr))}continue}if(ft>0&&xe.has(ke.slice(0,ft))){const zt=ke.slice(0,ft),wt=ke.slice(ft+1);Xt.push({tableName:zt,columnName:wt,path:Je});continue}if($e.has(ke)&&Ie!==void 0&&Ie!==null&&typeof Ie=="object"){const wt=Y.fields.find(je=>(je.name||je.key)===ke)?.properties;if(wt?.rowSlots?.length){if(Array.isArray(Ie)){const je=wt.rowSlots.find(It=>It.kind==="dynamic");if(je&&je.kind==="dynamic"){const It=je.block.apiArrayPath??"items";ut[ke]=G2(wt,{[It]:Ie})}}else ut[ke]=G2(wt,Ie);continue}}if(xe.has(ke)&&Array.isArray(Ie)&&Ie.length>0&&typeof Ie[0]=="object"&&Ie[0]!==null){const wt=Y.fields.find(ct=>(ct.name||ct.key)===ke)?.properties?.columns||[],je=Ie.map($ie),It=ct=>(ct||"").toLowerCase().replace(/\s+/g,"_").trim();ut[ke]=je.map(ct=>{const fr={};for(const Mn of wt){const Qs=Mn.name??"";fr[Qs]=ct[It(Qs)]??ct[Qs]}return fr});continue}if(Ie!=null&&(ut[ke]=Ze(ke,Ie)),Ie==null)continue;let Ct=Ie;if(Array.isArray(Ie)){const zt=Y.fields.find(wt=>Re(wt)===ke);if(zt?.type==="addmore"){Lt.push({addMoreFieldName:ke,array:Ie});continue}if(zt?.type==="multiselect"){const wt=U.multiselectArrayPropertyMap?.[ke];wt&&Ie.length>0&&Ie.some(je=>je!=null&&typeof je=="object")&&(Ct=Ie.map(je=>je!=null&&typeof je=="object"&&wt in je?je[wt]:void 0).filter(je=>je!=null))}}ut[ke]=Ze(ke,Ct)}const xt={},jr={},pn={};for(const{addMoreFieldName:ke,array:Je}of Lt){const Ie=Y.fields.find(It=>Re(It)===ke);if(!Ie||Ie.type!=="addmore")continue;const ft=Pie(Ie,Y.fields,Y.config?.sections,Re);if(ft.length===0)continue;const Ct=U.addMoreFieldKeyMap?.[ke],zt=Je.length>0&&Je[0]!=null&&typeof Je[0]=="object"?Je[0]:null;if(zt)for(const It of ft){const ct=Re(It),fr=Ct&&Ct[ct]||ct,Mn=zt[fr];Mn!=null&&(ut[ct]=Ze(ct,Mn))}const wt=Je.slice(1),je=wt.map((It,ct)=>`prepop_${ke}_${ct}_${Date.now()}`);je.length>0&&(jr[ke]=je);for(let It=0;It<wt.length;It++){const ct=wt[It];if(ct==null||typeof ct!="object")continue;const fr=ct,Mn=fr.id;Mn!=null&&String(Mn).trim()!==""&&(pn[`${ke}__${je[It]}`]=String(Mn));for(const Qs of ft){const h0=Re(Qs),SGt=Ct&&Ct[h0]||h0,m4=fr[SGt];if(m4==null)continue;const xGt=`${h0}__addmore__${ke}__${je[It]}`;xt[xGt]=Ze(h0,m4)}}}Object.keys(jr).length>0&&re(ke=>({...ke,...jr})),Object.keys(pn).length>0&&W(ke=>({...ke,...pn}));const Jn=ke=>(ke||"").toLowerCase().replace(/\s+/g,"_").trim(),ko=[...new Set(Xt.map(ke=>ke.tableName))];for(const ke of ko){if(Array.isArray(ut[ke]))continue;const Je=Xt.find(je=>je.tableName===ke);if(!Je?.path?.includes("."))continue;const Ie=Je.path.replace(/\.[^.]+$/,""),ft=fe(Tt,Ie);if(!Array.isArray(ft)||ft.length===0||typeof ft[0]!="object"||ft[0]===null)continue;const zt=Y.fields.find(je=>(je.name||je.key)===ke)?.properties?.columns||[],wt=ft.map($ie);ut[ke]=wt.map(je=>{const It={};for(const ct of zt){const fr=ct.name??"",Mn=Jn(fr),Qs=je[Mn]??je[fr];It[fr]=Qs}return It})}const So=(ke,Je)=>{const Ie=fe(Tt,ke);if(Array.isArray(Ie))return Ie;if(Ie!=null)return[Ie];if(!ke.includes("."))return[];const ft=ke.replace(/\.[^.]+$/,""),Ct=fe(Tt,ft);return!Array.isArray(Ct)||Ct.length===0||typeof Ct[0]!="object"||Ct[0]===null?[]:Ct.map(zt=>{const wt=zt[Je];if(wt!==null&&typeof wt=="object"&&!Array.isArray(wt)&&!(wt instanceof Date)){const je=wt;return typeof je.name=="string"&&typeof je.code=="string"?`${je.code} ${je.name}`.trim():typeof je.name=="string"?je.name:typeof je.code=="string"?je.code:typeof je.short_code=="string"?je.short_code:je.name??je.code??""}return wt})};for(const{tableName:ke,columnName:Je,path:Ie}of Xt){const ft=So(Ie,Je),zt=Y.fields.find(ct=>(ct.name||ct.key)===ke)?.properties?.columns||[],wt=zt.find(ct=>(ct.name||"").toLowerCase()===Je.toLowerCase())?.name??Je;let je=Array.isArray(ut[ke])?ut[ke]:[];const It=Math.max(je.length,ft.length);if(It>je.length)for(je=[...je];je.length<It;){const ct={};zt.forEach(fr=>{ct[fr.name||""]=""}),je.push(ct)}else je=je.map(ct=>({...ct}));ft.forEach((ct,fr)=>{je[fr]&&(je[fr][wt]=ct)}),ut[ke]=je}if(be.current===me){if(Object.keys(ut).length>0||Object.keys(xt).length>0){const fr=k4({...He.getState().values,...ut,...xt},Y.fields);de(fr)}const Je=fe(Tt,"data.user_id"),Ie=fe(Tt,"data.items"),ft=fe(Tt,"data");let Ct=Array.isArray(Ie)&&Ie.length>0&&Ie[0]!=null&&typeof Ie[0]=="object"&&Ie[0].id?Ie[0].id:void 0;Ct===void 0&&Array.isArray(ft)&&ft.length>0&&ft[0]!=null&&typeof ft[0]=="object"&&ft[0].id&&(Ct=ft[0].id),Ct===void 0&&(Ct=fe(Tt,"data.0.id"));const zt=s4t(Tt,{treatFirstItemIdAsPaymentId:U?.treatFirstItemIdAsPaymentId===!0}),wt=fe(Tt,"data.id"),je=fe(Tt,"data.batch_id"),It=fe(Tt,"data.program_id"),ct={};Je!=null&&(ct.context_user_id=Je),Ct!=null&&Ct!==""&&(ct.documentId=Ct),wt!=null&&String(wt).trim()!==""&&(p?.id===void 0||p?.id===null)&&(ct.id=wt),je!=null&&String(je).trim()!==""&&((p?.admission_batch_id===void 0||p?.admission_batch_id===null)&&(ct.admission_batch_id=je),(p?.batch_id===void 0||p?.batch_id===null)&&(ct.batch_id=je)),It!=null&&String(It).trim()!==""&&(p?.program_id===void 0||p?.program_id===null)&&(ct.program_id=It),zt!=null&&String(zt).trim()!==""&&(p?.payment_id===void 0||p?.payment_id===null)&&(ct.payment_id=zt),Object.keys(ct).length>0&&G(fr=>{const Mn={...fr,...ct};return g?.(Mn),Mn}),oe(Tt)}}catch(Me){we||Td(Me,"Prepopulate request failed.",qn)}finally{R(!1)}})(),()=>{we=!0}},[Y.id,Y.config?.prepopulateApi?.enabled,Y.config?.prepopulateApi?.apiEndpoint,Y.config?.prepopulateApi?.apiMethod,JSON.stringify(Y.config?.prepopulateApi?.fieldMapping),Y.config?.prepopulateApi?.treatFirstItemIdAsPaymentId,Y.config?.recordUpsert?.enabled,Xc,p,m,ce,de,re]),k.useEffect(()=>{Object.keys($t).length>0&&a?.($t)},[$t,a]);const Di=kt>1,Pr=s==="view",Sn=k.useCallback((U,ae)=>Pr||!!ae&&!ka(U)||_o(U)&&!ka(U),[Pr,ka,_o]),bf=Y.fields.filter(U=>!U.parentId),Qr=[...Di?St:bf.length>0?bf:Y.fields].filter(U=>!(!U||typeof U!="object"||!U.name&&!U.key)).sort((U,ae)=>{const ne=typeof U.position?.order=="number"?U.position.order:typeof U.positionOrder=="number"?U.positionOrder:Number.MAX_SAFE_INTEGER,he=typeof ae.position?.order=="number"?ae.position.order:typeof ae.positionOrder=="number"?ae.positionOrder:Number.MAX_SAFE_INTEGER;if(ne!==he)return ne-he;const me=typeof U.position?.column=="number"?U.position.column:1,we=typeof ae.position?.column=="number"?ae.position.column:1;return me-we}),_f=k.useCallback(U=>{const ae=He.getState().errors,ne=Object.keys(ae).find(he=>U.includes(he));ne&&requestAnimationFrame(()=>{document.querySelector(`[data-field-name="${ne}"]`)?.scrollIntoView({behavior:"smooth",block:"center"})})},[]),xn=async U=>{if(U?.preventDefault(),Di&&!hr){if(!await Jr())try{const he=He.getState().errors;Qe.toast.error(Rp(he,Y.fields)||"Please fix the errors before continuing."),_f(Qr.map(me=>me.name||me.key||me.id).filter(Boolean))}catch{Qe.toast.error("Please fix the errors before continuing.")}return}const ae=await Wr(U);if(ae&&ae.success===!1&&ae.errors?.length)try{const ne=He.getState().errors;Qe.toast.error(Rp(ne,Y.fields)||"Submission failed. Please check the form."),_f(Qr.map(he=>he.name||he.key||he.id).filter(Boolean))}catch{Qe.toast.error("Submission failed. Please check the form.")}return ae},dn=k.useCallback(()=>{qt(),i&&i()},[qt,i]),Ve=k.useCallback((U,ae)=>{const ne=Y.fields.find(we=>we.type==="button"&&(we.name===U||we.key===U)),he=ne?.properties,me=u4t(ae,ne);me!=null&&String(me).trim()!==""&&(p?.payment_id===void 0||p?.payment_id===null)&&G(we=>{const Me={...we,payment_id:me};return g?.(Me),Me}),ne&&he?.apiSuccessConfig&&Ikt(ae,he.apiSuccessConfig,{setFieldValue:(we,Me)=>He.getState().setFieldValue(we,Me),onContextUpdate:we=>{G(Me=>{const Be={...Me,...we};return g?.(Be),Be})}}),te(we=>{const Me={...we,[U]:ae};return!id(ae)||!(ne?.type==="button"&&ne.properties?.action==="submit")||Y.fields.filter(vt=>vt.type==="editButton").map(vt=>vt.name).forEach(vt=>delete Me[vt]),Me})},[Y.fields,p,g,He]),X=k.useCallback(async()=>await nr(),[nr]),pe=k.useCallback(()=>He.getState().errors,[]),Pe=k.useMemo(()=>({...m||{},...V}),[m,V]),ht=k.useMemo(()=>({...typeof p=="object"&&p!==null?p:{},...Pe}),[p,Pe]),_r=Y.config?.layout??Y.layout??"default",Or=["default","card","compact"].includes(_r)?_r:"default",un={default:"",card:"bg-card border rounded-lg shadow-sm p-6",compact:"space-y-2"},Fn=x2(Y.config?.design),or=k.useMemo(()=>Fn?tae(Y.config.design):null,[Fn,Y.config?.design]),Zc=i!=null&&O!==!1&&rae(Y.config?.design),Ir=k.useMemo(()=>{const U=Y.config?.theme?.cssVariables;if(!or)return{...U??{},...S??{}};const ae=nae(or),ne=or.buttons.alignment==="left"?"flex-start":or.buttons.alignment==="center"?"center":or.buttons.alignment==="stretch"?"stretch":"flex-end";return{...ae,...U??{},...S??{},"--iq-form-btn-align-flex":ne}},[or,Y.config?.theme?.cssVariables,S]),Ko=k.useMemo(()=>Mf({config:Y.config,layout:Y.layout},u),[Y.config,Y.layout,u]),Go=k.useMemo(()=>Ko?{...Ko,verticalSpacing:Ko.verticalSpacing??Ko.spacing??"16px",horizontalSpacing:Ko.horizontalSpacing??Ko.spacing??"16px",rowHeight:Ko.rowHeight??tl}:null,[Ko]),kf=Go!==null;Go?.rows;const mr=Go?.columns??3,_be=Go?.verticalSpacing??Go?.spacing??or?.spacing.rowGap??"16px",kbe=Go?.horizontalSpacing??Go?.spacing??or?.spacing.columnGap??"16px",yGt=Go?.rowHeight??tl,Xs=k.useCallback(U=>{if(!z)return!0;const ae=U.visibility;if(!ae)return!0;const ne=ae.visibleToUserType??ae.user_type,he=ae.visibleToUserRole??ae.user_role,me=Array.isArray(ae.visibleToUserIds)?ae.visibleToUserIds:Array.isArray(ae.users)?ae.users:[],we=Array.isArray(ae.hiddenFromUserIds)?ae.hiddenFromUserIds:[];if(Array.isArray(we)&&we.length>0&&z.userId!=null&&we.includes(z.userId))return!1;if(me.length>0&&z.userId!=null&&me.includes(z.userId))return!0;const Me=ne!=null&&ne!==""&&z.userType!=null&&z.userType!==ne,Be=he!=null&&he!==""&&z.role!=null&&z.role!==he,dt=me.length>0&&(z.userId==null||!me.includes(z.userId));return!(Me||Be||dt)},[z]),Jc=k.useMemo(()=>VSt(Y.fields),[Y.fields]),u4=k.useMemo(()=>WSt(Y.fields),[Y.fields]),[Qc,Sbe]=k.useState(u4);k.useEffect(()=>{Sbe(u4)},[Y.id,u4]);const xbe=k.useCallback((U,ae)=>{Sbe(ne=>ne[U]===ae?ne:{...ne,[U]:ae})},[]),mGt=k.useMemo(()=>({visibility:Qc,setSectionVisible:xbe,fieldToHeading:Jc,allFields:Y.fields}),[Qc,xbe,Jc,Y.fields]),Ot=k.useCallback(U=>U.name||U.key||U.id,[]),wn=U=>{if(!Xs(U))return!1;const ae=U.name||U.key||U.id;if(!Sae(ae,U.type,Qc,Jc))return!1;const ne=U.hidden===!0;return Dt(ae)||!ne&&ae},wbe=k.useCallback(U=>{const ae=Y.fields.find(he=>Ot(he)===U);if(ae)return ae.type;const ne=kae(U);return Y.fields.find(he=>Ot(he)===ne)?.type},[Y.fields,Ot]),t0=k.useCallback(U=>Sae(U,wbe(U),Qc,Jc),[Qc,Jc,wbe]),Sa=k.useCallback(U=>t0(U)?nt(U):!1,[t0,nt]);k.useEffect(()=>{const{visibleFields:U,requiredFields:ae,errors:ne}=He.getState(),he=new Set(U),me=new Set(ae),we=[];for(const Me of Y.fields){const Be=Ot(Me);Be&&(t0(Be)||(he.delete(Be),me.delete(Be),ne[Be]&&we.push(Be)))}Le(Array.from(he)),_e(Array.from(me));for(const Me of we)Ee(Me,void 0)},[Qc,Jc,Y.fields,Y.id,Ot,t0,Le,_e,Ee,Ae,Ce]);const Nr=Y.config?.sections,Li=k.useCallback(U=>{const ae=Ot(U);let ne=U;if(U.type==="table"){const me=U.properties?.columns;if(Array.isArray(me)&&me.length>0){const we=me.filter(Me=>Xs(Me));ne={...U,properties:{...U.properties,columns:we}}}}const he=m4t(ne,Nr,Ot);return he&&(ne={...ne,label:Mie(he,0)}),{...ne,disabled:!br(ae),readOnly:Sn(ae,!!ne.readOnly)}},[Xs,Nr,Ot,br,Sn]),ri=k.useCallback(U=>Pie(U,Y.fields,Nr,Ot),[Y.fields,Nr,Ot]),Ro=k.useCallback((U,ae,ne)=>`${U}__addmore__${ae}__${ne}`,[]),r0=k.useCallback((U,ae)=>`${U}__${ae??"base"}`,[]),n0=k.useCallback((U,ae)=>{const ne=r0(U.id,ae);return Q[ne]??U.defaultCollapsed??!1},[Q,r0]),f4=k.useCallback((U,ae,ne)=>{const he=r0(U,ae);ee(me=>me[he]===ne?me:{...me,[he]:ne})},[r0]),o0=k.useMemo(()=>{const U=[],ae=Y.fields.filter(ne=>ne.type==="addmore");for(const ne of ae){const he=Ot(ne),we=ri(ne).find(vt=>{if(vt.type!=="button")return!1;const kr=vt.properties,rt=vt.metadata;let mt=kr?.action;if(!mt&&rt!=null)try{mt=(typeof rt=="string"?JSON.parse(rt):rt)?.action}catch{}return mt==="upload"||mt==="custom"});if(!we)continue;const Me=Ot(we),Be=K[he]||[],dt=fe(Z[Me],"data.id")??fe(Z[Me],"data.documentId")??V.documentId;dt!=null&&String(dt).trim()!==""&&U.push(String(dt));for(const vt of Be){const kr=Ro(Me,he,vt),rt=fe(Z[kr],"data.id")??fe(Z[kr],"data.documentId"),mt=J[`${he}__${vt}`],Tt=rt??mt;Tt!=null&&String(Tt).trim()!==""&&U.push(String(Tt))}}return U},[Y.fields,K,Z,J,V.documentId,Ot,ri,Ro]);k.useEffect(()=>{G(U=>{const ae={...U,document_ids:o0},ne=U.document_ids;return Array.isArray(ne)&&ne.length===o0.length&&o0.every((he,me)=>ne[me]===he)?U:ae})},[o0]);const a0=k.useCallback((U,ae,ne,he)=>{for(const me of ne){const we=Ot(me),Me=Ro(we,U,ae),Be=he[Me];if(Be==null)continue;const dt=me.type;if(dt==="file"||dt==="camera"||dt==="photoChoice"){if(typeof Be=="object"&&Be!==null&&("url"in Be||"name"in Be)||Array.isArray(Be)&&Be.length>0)return!0;continue}if(Array.isArray(Be)){if(Be.length>0)return!0;continue}if(typeof Be=="string"&&Be.trim()!==""||typeof Be=="number"&&!Number.isNaN(Be)||typeof Be=="boolean"||typeof Be=="object"&&Be!==null&&Object.keys(Be).length>0)return!0}return!1},[Ot,Ro]),qi=k.useCallback(U=>{const ae=Ot(U);if(!ae)return;if(ri(U).length===0){Qe.toast.error("No linked fields configured for this Add More button.");return}const he=`${Date.now()}_${Math.random().toString(36).slice(2,8)}`;re(me=>({...me,[ae]:[...me[ae]||[],he]}))},[Ot,ri]),i0=k.useCallback((U,ae)=>{re(ne=>{const he=ne[U]||[],me=he.filter(we=>we!==ae);if(me.length===he.length)return ne;if(me.length===0){const we={...ne};return delete we[U],we}return{...ne,[U]:me}})},[]),s0=k.useMemo(()=>Qr.filter(U=>!U.parentId),[Qr]),Bi=k.useMemo(()=>{const U=[];return Qr.filter(ne=>ne.type==="addmore").sort((ne,he)=>{const me=ne.position?.order??0,we=he.position?.order??0;return me-we}).forEach(ne=>{const he=Ot(ne),me=ne.position?.order??0,we=K[he]||[],Me=ri(ne).sort((qe,Ne)=>{const Ze=qe.position?.order??0,xe=Ne.position?.order??0;return Ze!==xe?Ze-xe:(qe.position?.column??1)-(Ne.position?.column??1)});if(Me.length===0)return;const Be=wie(ne,Nr),dt=Be[0]?.fieldNames?.length?Be[0].fieldNames:Me.map(qe=>Ot(qe)).filter(Boolean),vt=b4t(dt,s0,mr,Ot),kr=Math.min(...Me.map(qe=>qe.position?.order??0)),rt=Math.max(1,...Me.map(qe=>(qe.position?.order??kr)-kr+td(qe))),mt=vt?.blockHeight??rt,Tt=we.length*mt;U.push({addMoreFieldName:he,baseOrder:me,blockHeight:mt,blockIds:we,linkedFields:Me,insertedRows:Tt,templateFieldNames:dt,templateBounds:vt})}),U},[Qr,s0,mr,Ot,K,ri,Nr]),Sf=k.useMemo(()=>({}),[]),l0=k.useMemo(()=>Bi.length===0?Qr:Qr.map(U=>{const ae=U.position?.order??0,ne=Bi.reduce((he,me)=>{const we=me.templateBounds?.maxRow??me.baseOrder;return ae>we?he+me.insertedRows:he},0);return ne===0?U:{...U,position:{...U.position,order:ae+ne}}}),[Qr,Bi]),c0=k.useCallback(U=>{const ae={};return Object.entries(Z).forEach(([ne,he])=>{const me=U[ne];me&&(ae[me]=he)}),ae},[Z]),Zs=k.useMemo(()=>{const U=[],ae={};return Bi.forEach(ne=>{const{addMoreFieldName:he,blockIds:me,linkedFields:we,blockHeight:Me,templateBounds:Be}=ne,dt=Math.min(...we.map(rt=>rt.position?.order??0)),kr=Y.fields.find(rt=>Ot(rt)===he&&rt.type==="addmore")?.properties;me.forEach((rt,mt)=>{const Tt={},qe={},Ne={},Ze=Be?_4t(Be,mt):ne.baseOrder+1+mt*Me,xe=J[`${he}__${rt}`];we.forEach(Re=>{const ut=Ot(Re),Xt=Ro(ut,he,rt),Lt=(Re.position?.order??dt)-dt;if(Tt[Xt]=ut,qe[Xt]=We[Xt],!(kr?.linkedFieldAllowDuplicate?.[ut]??!0)&&(Re.type==="select"||Re.type==="radio"||Re.type==="multiselect")){const xt=[],jr=We[ut];jr!=null&&jr!==""&&(Array.isArray(jr)?xt.push(...jr.map(Jn=>String(Jn))):xt.push(String(jr))),me.filter(Jn=>Jn!==rt).forEach(Jn=>{const ko=Ro(ut,he,Jn),So=We[ko];So!=null&&So!==""&&(Array.isArray(So)?xt.push(...So.map(p0=>String(p0))):xt.push(String(So)))}),xt.length>0&&(Ne[Xt]=[...new Set(xt)])}U.push({...Re,id:`${Re.id}__${rt}`,name:Xt,position:{...Re.position,order:Ze+Lt}})});const $e=c0(Tt);Object.keys(Tt).forEach(Re=>{ae[Re]={scopedFormValues:qe,scopedFieldNameMap:Tt,scopedButtonResponses:$e,...xe!=null&&{blockDocumentId:xe},...Ne[Re]&&{excludedOptionValues:Ne[Re]}}})})}),{clonedFields:U,scopeByFieldName:ae}},[Bi,J,Ot,Ro,We,c0,Y.fields]),Js=k.useMemo(()=>[...l0,...Zs.clonedFields].sort((U,ae)=>{const ne=U.position?.order??0,he=ae.position?.order??0;if(ne!==he)return ne-he;const me=U.position?.column??1,we=ae.position?.column??1;if(me!==we)return me-we;const Me=nl(U.position)??0,Be=nl(ae.position)??0;return Me!==Be?Me-Be:String(U.id).localeCompare(String(ae.id))}),[l0,Zs.clonedFields]),ed=k.useMemo(()=>N4(Js.filter(U=>!U.parentId),wn),[Js,wn]),gGt=k.useMemo(()=>r4t(Js,wn,mr,Fn&&or?.buttons.groupRowButtons!==!1),[Js,wn,mr,Fn,or?.buttons.groupRowButtons]),p4=k.useCallback((U,ae)=>ed.some(ne=>Gbe(U,ae,ne,mr)),[ed,mr]);ed.length===0||Math.max(...ed.map(U=>{const ae=U[0]?.position?.order??0,ne=U[0]?.position?.column??1;return Vi(ae,ne,mr).row+nd(U,mr).rowSpan}));const d0=k.useMemo(()=>g4t(Nr,ug(Qr.filter(U=>!U.parentId)),Ot),[Nr,Qr,Ot]),{anchorsByOrigin:Mbe,coveredCells:Pbe}=k.useMemo(()=>k4t(d0,l0,Ot,mr),[d0,l0,Ot,mr]),{anchorsByOrigin:Obe,coveredCells:Nbe}=k.useMemo(()=>S4t(Bi.map(U=>({addMoreFieldName:U.addMoreFieldName,blockIds:U.blockIds,linkedFields:U.linkedFields,templateFieldNames:U.templateFieldNames})),Nr,Zs.clonedFields,s0,mr,Ot,Pbe),[Bi,Nr,Zs.clonedFields,s0,mr,Ot,Pbe]),ni=k.useMemo(()=>N4t(Mbe,Obe),[Mbe,Obe]),jbe=k.useMemo(()=>Nbe,[Nbe]),h4=yGt??tl,Abe=k.useCallback((U,ae)=>{for(let ne=0;ne<mr;ne++){if(ne>=ae.anchorCol&&ne<ae.anchorCol+ae.colSpan)continue;if(Sf[`${U}-${ne}`]||ni.get(`${U}-${ne}`)||b0(U,ne,Js,wn,mr).length>0||p4(U,ne))return!0}return!1},[mr,Sf,ni,Js,wn,p4]),Tbe=k.useMemo(()=>P4t(ni,U=>{const ae=U.run.section;return ae.collapsible?n0(ae,U.addMoreMeta?.blockId):!1},Abe),[ni,n0,Abe]),Cbe=k.useMemo(()=>{const U=[];for(const ae of Object.keys(Sf)){const ne=Number(ae.split("-")[0]);Number.isNaN(ne)||U.push(ne)}for(const ae of ni.values())if(ae.renderFields.some(ne=>wn(ne)))for(let ne=ae.anchorRow;ne<ae.anchorRow+ae.rowSpan;ne++)U.push(ne);return Rbe(ed,mr,U)},[ed,mr,Sf,ni,wn]),{originalToDisplayRow:u0,displayRowCount:vGt,sortedOccupiedRows:bGt}=k.useMemo(()=>{const U=Ybe(Cbe);return{originalToDisplayRow:U.originalToDisplay,displayRowCount:U.displayRowCount,sortedOccupiedRows:U.sortedOriginalRows}},[Cbe]),Ebe=Math.max(vGt,1),y4=k.useCallback((U,ae=1)=>Xbe(U,ae,u0),[u0]),zbe=k.useMemo(()=>{const U=new Set;for(const ae of Tbe){const ne=u0.get(ae);ne!==void 0&&U.add(ne)}return U},[Tbe,u0]),_Gt=k.useMemo(()=>O4t(Ebe,h4,zbe),[Ebe,h4,zbe]),kGt=k.useMemo(()=>j4t(Qr.filter(U=>!U.parentId&&wn(U)),d0,Ot),[Qr,d0,Ot,wn]),f0=k.useCallback(U=>{if(kf)return null;const ae=Ot(U),ne=K[ae]||[];if(ne.length===0)return null;const he=ri(U);if(he.length===0)return null;const me=y4t(U,Nr),we=he.map(dt=>Ot(dt)).filter(Boolean),Me=jie(we,Nr),Be=(dt,vt,kr,rt,mt,Tt,qe)=>{const Ne=Ot(dt),Ze=Ro(Ne,ae,vt),xe=dt.hidden===!0;if(!(Xs(dt)&&(Dt(Ne)||!xe&&Ne)))return null;const Re={...dt,id:`${dt.id}__${vt}`,name:Ze,disabled:!br(Ne),readOnly:Sn(Ne,!!dt.readOnly)},Xt=U.properties?.linkedFieldAllowDuplicate?.[Ne]??!0;let Lt;if(!Xt&&(dt.type==="select"||dt.type==="radio"||dt.type==="multiselect")){const fn=[],xt=We[Ne];xt!=null&&xt!==""&&(Array.isArray(xt)?fn.push(...xt.map(pn=>String(pn))):fn.push(String(xt))),ne.filter(pn=>pn!==vt).forEach(pn=>{const Jn=Ro(Ne,ae,pn),ko=We[Jn];ko!=null&&ko!==""&&(Array.isArray(ko)?fn.push(...ko.map(So=>String(So))):fn.push(String(ko)))}),fn.length>0&&(Lt=[...new Set(fn)])}return f.jsx("div",{"data-field-name":Ze,"data-form-renderer":"field-wrapper",children:f.jsx(ca,{field:Re,value:We[Ze],error:Gt[Ze]||ze>0?$t[Ze]:void 0,onChange:fn=>Zt(Ze,fn),onBlur:()=>rr(Ze),disabled:ie||!br(Ne)||Pr,readOnly:Sn(Ne,!!dt.readOnly),isRequired:Sa(Ne),formValues:We,submissionContext:ht,prepopulateMappedFieldNames:ge,urlParams:ce,prepopulateResponse:ye,prepopulateLoading:L,formSections:Nr,submitPayload:Y.config?.submitPayload,recordUpsert:on,fieldValueKey:Ze,buttonResponses:Tt,onButtonApiResponse:Ve,onSubmit:xn,onReset:qt,onCancel:dn,isSubmitting:De,bffSubmitApi:I,onBffSubmitResult:y,extraSubmitPayload:qe,onValidateForm:X,getValidationErrors:pe,allFields:Y.fields,onSubmittingChange:ve,scopedFormValues:mt,scopedFieldNameMap:rt,excludedOptionValues:Lt,hideTableRowControls:w})},Re.id)};return f.jsx("div",{className:"space-y-3 mt-3",children:ne.map((dt,vt)=>{const kr={},rt={};he.forEach(Lt=>{const fn=Ot(Lt),xt=Ro(fn,ae,dt);kr[xt]=fn,rt[xt]=We[xt]});const mt=c0(kr),Tt=a0(ae,dt,he,We),qe=me?.heading!=null?Ld(me,vt+1):null,Ne=J[`${ae}__${dt}`],Ze=Ne!=null?{...Pe,documentId:Ne}:Pe,xe=he.map(Lt=>Be(Lt,dt,vt,kr,rt,mt,Ze)).filter(Boolean),Re=Me?.section?.collapsible===!0,ut=f.jsx("button",{type:"button",className:"inline-flex shrink-0 rounded-md p-1.5 text-destructive hover:bg-destructive/10 focus:outline-none focus:ring-2 focus:ring-ring disabled:pointer-events-none disabled:opacity-40",disabled:Tt,title:Tt?"Cannot remove: this entry has data":"Remove entry","aria-label":"Remove entry",onClick:Lt=>{Lt.preventDefault(),Lt.stopPropagation(),i0(ae,dt)},children:f.jsx(wa,{className:"h-5 w-5","aria-hidden":!0})}),Xt=f.jsxs(f.Fragment,{children:[!Re&&f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[qe?f.jsx("p",{className:"text-sm font-medium text-foreground",children:qe}):f.jsxs("p",{className:"text-xs text-muted-foreground",children:["Entry ",vt+1]}),ut]}),xe]});return f.jsx("div",{className:"rounded-md border p-3 space-y-3",children:Me?f.jsx(sg,{legend:Me.section.heading?.enabled?Ld(Me.section,vt+1):Me.section.name,collapsible:Me.section.collapsible,defaultCollapsed:Me.section.defaultCollapsed,headerActions:Re?ut:void 0,onCollapsedChange:Lt=>f4(Me.section.id,dt,Lt),children:Xt}):Xt},`${U.id}-${dt}`)})})},[kf,K,J,Ot,ri,Ro,a0,We,Gt,ze,$t,Zt,rr,br,Pr,Sa,ht,ge,Ve,xn,qt,dn,De,I,y,Pe,X,pe,Y.fields,ve,Dt,Xs,c0,i0,w,Nr,ce,ye,L]),$be=f.jsx("div",{className:P?B("relative",l):B(m0,M&&"dark",l),style:Ir,"data-form-renderer":P?void 0:"root","data-form-design":P||!or?void 0:or.preset,children:f.jsxs("div",{className:B("relative",!d&&or&&"iq-fbr-surface"),children:[Zc?f.jsx(wyt,{onClose:dn}):null,L&&f.jsx("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-background/60 rounded-md",children:f.jsx(tn,{})}),f.jsx("form",{onSubmit:xn,className:d?B("w-full min-w-0"):B("space-y-6 w-full min-w-0",un[Or]),"data-form-renderer":"form","data-form-renderer-layout":kf?"grid":"stack",style:d||!or?void 0:{fontFamily:"var(--iq-form-font-family, inherit)",fontSize:"var(--iq-form-font-size, 14px)",lineHeight:"var(--iq-form-line-height, 1.5)",color:"var(--iq-form-text, var(--foreground))"},children:f.jsxs(qSt,{value:mGt,children:[!d&&or?f.jsx(Uke,{schema:Y,design:or,reserveCloseSpace:Zc}):null,Di&&Y.steps&&f.jsx(A4t,{steps:Y.steps,currentStep:yr,completedSteps:bo,onStepClick:Rt}),f.jsx(A0.Provider,{value:{gridStretch:kf,formDesignActive:Fn},children:kf?f.jsx("div",{className:d?"w-full min-w-0":"grid w-full min-w-0",style:{display:"grid",gridTemplateRows:_Gt,gridTemplateColumns:`repeat(${mr}, 1fr)`,rowGap:_be,columnGap:kbe},"data-form-renderer":"grid",children:bGt.map(U=>Array.from({length:mr},(ae,ne)=>{const he=y4(U);if(!he)return null;if(p4(U,ne))return f.jsx("div",{className:"min-w-0 min-h-0",style:{gridRow:he,gridColumn:ne+1,visibility:"hidden",pointerEvents:"none"},"data-form-renderer":"grid-cell","data-form-renderer-empty":!0},`empty-${U}-${ne}`);if(x4t(U,ne,jbe,ni)){const qe=w4t(U,ne,ni);return qe&&M4t(U,ne,qe,n0(qe.run.section,qe.addMoreMeta?.blockId))?null:f.jsx("div",{className:"min-w-0 min-h-0",style:{gridRow:he,gridColumn:ne+1,visibility:"hidden",pointerEvents:"none"},"data-form-renderer":"grid-cell","data-form-renderer-empty":!0},`section-border-cover-${U}-${ne}`)}const me=gGt.get(U);if(me){if(me.coveredColIndices.has(ne)&&ne!==me.originColIndex)return f.jsx("div",{className:"min-w-0 min-h-0",style:{gridRow:he,gridColumn:ne+1,visibility:"hidden",pointerEvents:"none"},"data-form-renderer":"grid-cell","data-form-renderer-empty":!0},`btn-row-cover-${U}-${ne}`);if(ne===me.originColIndex){const qe=or?.buttons.alignment==="stretch";return f.jsx("div",{className:B("iq-fbr-button-row min-w-0 self-stretch flex w-full flex-row items-center",qe&&"iq-fbr-button-row-stretch"),style:{gridRow:he,gridColumn:`1 / span ${mr}`},"data-form-renderer":"grid-cell","data-form-renderer-button-row":!0,children:me.fields.map(Ne=>{const Ze=Ne.name||Ne.key||Ne.id,xe=Zs.scopeByFieldName[Ze],$e=xe?.scopedFieldNameMap?.[Ze]||Ze,Re=xe?.blockDocumentId!=null?{...Pe,documentId:xe.blockDocumentId}:Pe,ut=Ne.appearance?.hideLabel??Ne.properties?.hideLabel??!1;return f.jsx("div",{"data-field-name":Ze,"data-form-renderer":"field-wrapper","data-field-type":Ne.type,className:B("min-h-0 min-w-0",ol(Ne),ut&&"flex flex-col items-center"),style:Ma(Ne),children:f.jsx(ca,{field:Li(Ne),value:We[Ze],error:Gt[Ze]||ze>0?$t[Ze]:void 0,onChange:Xt=>Zt(Ze,Xt),onBlur:()=>rr(Ze),disabled:ie||!br($e)||Pr,readOnly:Sn($e,!!Ne.readOnly),isRequired:Sa($e),formValues:We,submissionContext:ht,prepopulateMappedFieldNames:ge,urlParams:ce,prepopulateResponse:ye,prepopulateLoading:L,formSections:Nr,submitPayload:Y.config?.submitPayload,recordUpsert:on,fieldValueKey:Ze,buttonResponses:xe?.scopedButtonResponses??Z,onButtonApiResponse:Ve,onSubmit:xn,onReset:qt,onCancel:dn,isSubmitting:De,bffSubmitApi:I,onBffSubmitResult:y,extraSubmitPayload:Re,onValidateForm:X,getValidationErrors:pe,allFields:Y.fields,onSubmittingChange:ve,onAddMore:qi,scopedFormValues:xe?.scopedFormValues,scopedFieldNameMap:xe?.scopedFieldNameMap,excludedOptionValues:xe?.excludedOptionValues,hideTableRowControls:w})},Ne.id)})},`btn-row-${U}`)}}const we=ni.get(`${U}-${ne}`);if(we){const qe=we.renderFields.filter(xt=>wn(xt));if(qe.length===0)return null;const Ne=we.addMoreMeta,Ze=Ne!=null?Bi.find(xt=>xt.addMoreFieldName===Ne.addMoreFieldName)?.linkedFields??[]:[],xe=Ne!=null?a0(Ne.addMoreFieldName,Ne.blockId,Ze,We):!1,$e=we.run.section,Re=Ne?.blockId,ut=n0($e,Re),Xt=$e.collapsible&&ut?1:we.rowSpan,Lt=y4(we.anchorRow,Xt)??he,fn=Ne!=null?f.jsx("button",{type:"button",className:B("inline-flex shrink-0 rounded-md p-1.5 text-destructive hover:bg-destructive/10 focus:outline-none focus:ring-2 focus:ring-ring disabled:pointer-events-none disabled:opacity-40",d&&"text-red-600 hover:bg-red-500/10"),disabled:xe,title:xe?"Cannot remove: this entry has data":"Remove entry","aria-label":"Remove entry",onClick:xt=>{xt.preventDefault(),xt.stopPropagation(),i0(Ne.addMoreFieldName,Ne.blockId)},children:f.jsx(wa,{className:"h-5 w-5","aria-hidden":!0})}):void 0;return f.jsx("div",{className:B("min-h-0 min-w-0",!($e.collapsible&&ut)&&"self-stretch"),style:{gridRow:Lt,gridColumn:`${ne+1} / span ${we.colSpan}`},"data-form-renderer":"grid-cell","data-form-renderer-config-section-border-cell":!0,children:f.jsx(sg,{legend:we.legend,className:$e.collapsible&&ut?void 0:"h-full",collapsible:$e.collapsible,defaultCollapsed:$e.defaultCollapsed,headerActions:fn,onCollapsedChange:xt=>f4($e.id,Re,xt),children:f.jsx("div",{className:"grid w-full min-w-0",style:{gridTemplateColumns:`repeat(${mr}, 1fr)`,gridTemplateRows:`repeat(${we.rowSpan}, ${Nie(h4)})`,rowGap:_be,columnGap:kbe},children:qe.map(xt=>{const jr=Ot(xt),pn=Zs.scopeByFieldName[jr],Jn=pn?.scopedFieldNameMap?.[jr]||jr,ko=(xt.position?.order??we.anchorRow)-we.anchorRow,So=xt.position?.column??1,{rowSpan:p0,columnSpan:ke}=nd([xt],mr),Je=Ne!=null?J[`${Ne.addMoreFieldName}__${Ne.blockId}`]:void 0,Ie=Je!=null?{...Pe,documentId:Je}:Pe;return f.jsx("div",{"data-field-name":jr,"data-form-renderer":"field-wrapper",className:"min-h-0 min-w-0",style:{gridRow:`${ko+1} / span ${p0}`,gridColumn:`${So} / span ${ke}`,...Ma(xt)},children:f.jsx(ca,{field:Li(xt),value:We[jr],error:Gt[jr]||ze>0?$t[jr]:void 0,onChange:ft=>Zt(jr,ft),onBlur:()=>rr(jr),disabled:(xt.type==="table"||xt.type==="billingGrid")&&s==="fill"?!1:ie||!br(Jn)||Pr,readOnly:(xt.type==="table"||xt.type==="billingGrid")&&s==="fill"?!1:Sn(Jn,!!xt.readOnly),isRequired:Sa(Jn),formValues:We,submissionContext:ht,prepopulateMappedFieldNames:ge,urlParams:ce,prepopulateResponse:ye,prepopulateLoading:L,formSections:Nr,submitPayload:Y.config?.submitPayload,recordUpsert:on,fieldValueKey:jr,buttonResponses:pn?.scopedButtonResponses??Z,onButtonApiResponse:Ve,onSubmit:xn,onReset:qt,onCancel:dn,isSubmitting:De,bffSubmitApi:I,onBffSubmitResult:y,extraSubmitPayload:Ie,onValidateForm:X,getValidationErrors:pe,allFields:Y.fields,onSubmittingChange:ve,onAddMore:qi,scopedFormValues:pn?.scopedFormValues,scopedFieldNameMap:pn?.scopedFieldNameMap,excludedOptionValues:pn?.excludedOptionValues,hideTableRowControls:w})},xt.id)})})})},`section-border-${we.run.section.id}-${U}-${ne}-${Ne?.blockId??"base"}`)}const Me=b0(U,ne,Js,wn,mr).filter(qe=>!(Ot(qe)?.includes("__addmore__")&&jbe.has(`${U}-${ne}`)));if(Me.length===0){const qe=Sf[`${U}-${ne}`];if(qe){const Ne=Y.fields.find($e=>$e.type==="addmore"&&Ot($e)===qe.addMoreFieldName),Ze=Ne!=null?ri(Ne):[],xe=a0(qe.addMoreFieldName,qe.blockId,Ze,We);return f.jsx("div",{className:"min-h-0 min-w-0 flex flex-col items-center justify-center",style:{gridRow:he,gridColumn:ne+1},"data-form-renderer":"grid-cell","data-form-renderer-add-more-remove":!0,children:f.jsx("button",{type:"button",className:B("inline-flex shrink-0 rounded-md p-1.5 text-destructive hover:bg-destructive/10 focus:outline-none focus:ring-2 focus:ring-ring disabled:pointer-events-none disabled:opacity-40",d&&"text-red-600 hover:bg-red-500/10"),disabled:xe,title:xe?"Cannot remove: this entry has data":"Remove entry","aria-label":"Remove entry",onClick:$e=>{$e.preventDefault(),$e.stopPropagation(),i0(qe.addMoreFieldName,qe.blockId)},children:f.jsx(wa,{className:"h-5 w-5","aria-hidden":!0})})},`add-more-remove-${U}-${ne}`)}return f.jsx("div",{className:"min-w-0",style:{pointerEvents:"none"},"data-form-renderer":"grid-cell","data-form-renderer-empty":!0},`empty-${U}-${ne}`)}const Be=Me[0],{rowSpan:dt,columnSpan:vt}=nd(Me,mr),kr=y4(U,dt)??he;if(Me.length===1&&Be.type==="section"){const qe=Y.fields.filter(Ne=>Ne.parentId===Be.id&&Ne.position!=null).sort((Ne,Ze)=>{const xe=typeof Ne.position?.order=="number"?Ne.position.order:0,$e=typeof Ze.position?.order=="number"?Ze.position.order:0;return xe-$e});return f.jsx("div",{className:"min-w-0 min-h-0 w-full overflow-hidden flex flex-col h-full",style:{gridRow:kr,gridColumn:`${ne+1} / span ${vt}`,...Ma(Be)},"data-form-renderer":"grid-cell",children:f.jsx(Rae,{field:Be,children:qe.map(Ne=>{const Ze=Ne.name||Ne.key||Ne.id,xe=Ne.hidden===!0;return Xs(Ne)&&(Dt(Ze)||!xe&&Ze)?f.jsx("div",{"data-field-name":Ze,"data-form-renderer":"field-wrapper",children:f.jsx(ca,{field:Li(Ne),value:We[Ze],error:Gt[Ze]||ze>0?$t[Ze]:void 0,onChange:Re=>Zt(Ze,Re),onBlur:()=>rr(Ze),disabled:ie||!br(Ze)||Pr,readOnly:Sn(Ze,!!Ne.readOnly),isRequired:Sa(Ze),formValues:We,submissionContext:ht,prepopulateMappedFieldNames:ge,urlParams:ce,prepopulateResponse:ye,prepopulateLoading:L,formSections:Nr,submitPayload:Y.config?.submitPayload,recordUpsert:on,fieldValueKey:Ze,buttonResponses:Z,onButtonApiResponse:Ve,onSubmit:xn,onReset:qt,onCancel:dn,isSubmitting:De,bffSubmitApi:I,onBffSubmitResult:y,extraSubmitPayload:Pe,onValidateForm:X,getValidationErrors:pe,allFields:Y.fields,onSubmittingChange:ve,onAddMore:qi,hideTableRowControls:w})},Ne.id):null})})},Be.id)}const rt=P4(Me),mt=Me.some(qe=>["file","camera","photoChoice","addmore","table","billingGrid"].includes(qe.type)),Tt=f.jsx("div",{className:B("flex min-h-0 w-full flex-1 gap-3",rt==="row"?"flex-row items-stretch":"flex-col items-stretch"),children:Me.map(qe=>{const Ne=qe.name||qe.key||qe.id,Ze=qe.type==="sectionHeading",xe=Zs.scopeByFieldName[Ne],$e=xe?.scopedFieldNameMap?.[Ne]||Ne,Re=xe?.blockDocumentId!=null?{...Pe,documentId:xe.blockDocumentId}:Pe,ut=qe.appearance?.hideLabel??qe.properties?.hideLabel??!1,Xt=qe.type==="table"||qe.type==="billingGrid"?qe.properties?.minWidth:void 0;return f.jsx("div",{"data-field-name":Ne,"data-form-renderer":"field-wrapper","data-field-type":qe.type,className:B("flex min-h-0 min-w-0 flex-1 flex-col",ol(qe),Ze&&"items-center justify-center",ut&&"items-center"),style:{...Xt?{minWidth:Xt}:{},...Ma(qe)},children:f.jsx(ca,{field:Li(qe),value:We[Ne],error:Gt[Ne]||ze>0?$t[Ne]:void 0,onChange:Lt=>Zt(Ne,Lt),onBlur:()=>rr(Ne),disabled:(qe.type==="table"||qe.type==="billingGrid")&&s==="fill"?!1:ie||!br($e)||Pr,readOnly:(qe.type==="table"||qe.type==="billingGrid")&&s==="fill"?!1:Sn($e,!!qe.readOnly),isRequired:Sa($e),formValues:We,submissionContext:ht,prepopulateMappedFieldNames:ge,urlParams:ce,prepopulateResponse:ye,prepopulateLoading:L,formSections:Nr,submitPayload:Y.config?.submitPayload,recordUpsert:on,fieldValueKey:Ne,buttonResponses:xe?.scopedButtonResponses??Z,onButtonApiResponse:Ve,onSubmit:xn,onReset:qt,onCancel:dn,isSubmitting:De,bffSubmitApi:I,onBffSubmitResult:y,extraSubmitPayload:Re,onValidateForm:X,getValidationErrors:pe,allFields:Y.fields,onSubmittingChange:ve,onAddMore:qi,scopedFormValues:xe?.scopedFormValues,scopedFieldNameMap:xe?.scopedFieldNameMap,excludedOptionValues:xe?.excludedOptionValues,hideTableRowControls:w})},qe.id)})});return f.jsx("div",{className:B(J4(Me),"self-stretch",mt?"overflow-visible":"overflow-hidden"),style:{gridRow:kr,gridColumn:`${ne+1} / span ${vt}`,...Ma(Me[0])},"data-form-renderer":"grid-cell","data-field-name":Me.map(qe=>qe.name||qe.key||qe.id).join(","),children:Tt},Me.map(qe=>qe.id).join("-"))}))}):f.jsx("div",{className:d?"":"space-y-4","data-form-renderer":"stack",children:Qr.map(U=>{if(!wn(U))return null;const ae=kGt.find(he=>he.kind==="border"&&he.fields.some(me=>me.id===U.id));if(ae)return ae.fields[0]?.id!==U.id?null:f.jsx(sg,{legend:Ld(ae.run.section,0),collapsible:ae.run.section.collapsible,defaultCollapsed:ae.run.section.defaultCollapsed,onCollapsedChange:he=>f4(ae.run.section.id,void 0,he),children:ae.fields.map(he=>{const me=Ot(he);return!me||!wn(he)?null:f.jsxs("div",{"data-field-name":me,"data-form-renderer":"field-wrapper",style:Ma(he),children:[f.jsx(ca,{field:Li(he),value:We[me],error:Gt[me]||ze>0?$t[me]:void 0,onChange:we=>Zt(me,we),onBlur:()=>rr(me),disabled:(he.type==="table"||he.type==="billingGrid")&&s==="fill"?!1:ie||!br(me)||Pr,readOnly:(he.type==="table"||he.type==="billingGrid")&&s==="fill"?!1:Sn(me,!!he.readOnly),isRequired:Sa(me),formValues:We,submissionContext:ht,prepopulateMappedFieldNames:ge,urlParams:ce,prepopulateResponse:ye,prepopulateLoading:L,formSections:Nr,submitPayload:Y.config?.submitPayload,recordUpsert:on,fieldValueKey:me,buttonResponses:Z,onButtonApiResponse:Ve,onSubmit:xn,onReset:qt,onCancel:dn,isSubmitting:De,bffSubmitApi:I,onBffSubmitResult:y,extraSubmitPayload:Pe,onValidateForm:X,getValidationErrors:pe,allFields:Y.fields,onSubmittingChange:ve,onAddMore:qi,hideTableRowControls:w}),he.type==="addmore"&&f0(he)]},he.id)})},`stack-border-${ae.run.section.id}-${U.id}`);if(!U.parentId){const he=Qr.filter(we=>!we.parentId&&wn(we)&&v0(we)===v0(U)),me=Of(he).slice(0,2);if(me.length>1&&me[0].id!==U.id)return null;if(me.length>1){const we=P4(me);return f.jsx("div",{"data-form-renderer":"shared-cell-stack",className:B("flex w-full min-w-0 gap-3",we==="row"?"flex-row items-stretch":"flex-col"),children:me.map(Me=>{const Be=Me.name||Me.key||Me.id;return f.jsxs("div",{"data-field-name":Be,"data-form-renderer":"field-wrapper",className:B("min-w-0 flex-1 flex flex-col",ol(Me)),style:Ma(Me),children:[f.jsx(ca,{field:Li(Me),value:We[Be],error:Gt[Be]||ze>0?$t[Be]:void 0,onChange:dt=>Zt(Be,dt),onBlur:()=>rr(Be),disabled:(Me.type==="table"||Me.type==="billingGrid")&&s==="fill"?!1:ie||!br(Be)||Pr,readOnly:(Me.type==="table"||Me.type==="billingGrid")&&s==="fill"?!1:Sn(Be,!!Me.readOnly),isRequired:Sa(Be),formValues:We,submissionContext:ht,prepopulateMappedFieldNames:ge,urlParams:ce,prepopulateResponse:ye,prepopulateLoading:L,formSections:Nr,submitPayload:Y.config?.submitPayload,recordUpsert:on,fieldValueKey:Be,buttonResponses:Z,onButtonApiResponse:Ve,onSubmit:xn,onReset:qt,onCancel:dn,isSubmitting:De,bffSubmitApi:I,onBffSubmitResult:y,extraSubmitPayload:Pe,onValidateForm:X,getValidationErrors:pe,allFields:Y.fields,onSubmittingChange:ve,onAddMore:qi,hideTableRowControls:w}),Me.type==="addmore"&&f0(Me)]},Me.id)})},me.map(Me=>Me.id).join("-"))}}if(U.type==="section"){const he=Y.fields.filter(me=>me.parentId===U.id&&me.position!=null).sort((me,we)=>{const Me=typeof me.position?.order=="number"?me.position.order:0,Be=typeof we.position?.order=="number"?we.position.order:0;return Me-Be});return f.jsx(Rae,{field:U,children:he.map(me=>{const we=me.name||me.key||me.id,Me=me.hidden===!0;return Xs(me)&&(Dt(we)||!Me&&we)?f.jsxs("div",{"data-field-name":we,"data-form-renderer":"field-wrapper",style:Ma(me),children:[f.jsx(ca,{field:Li(me),value:We[we],error:Gt[we]||ze>0?$t[we]:void 0,onChange:dt=>Zt(we,dt),onBlur:()=>rr(we),disabled:ie||!br(we)||Pr,readOnly:Sn(we,!!me.readOnly),isRequired:Sa(we),formValues:We,submissionContext:ht,prepopulateMappedFieldNames:ge,urlParams:ce,prepopulateResponse:ye,prepopulateLoading:L,formSections:Nr,submitPayload:Y.config?.submitPayload,recordUpsert:on,fieldValueKey:we,buttonResponses:Z,onButtonApiResponse:Ve,onSubmit:xn,onReset:qt,onCancel:dn,isSubmitting:De,bffSubmitApi:I,onBffSubmitResult:y,extraSubmitPayload:Pe,onValidateForm:X,getValidationErrors:pe,allFields:Y.fields,onSubmittingChange:ve,onAddMore:qi,hideTableRowControls:w}),me.type==="addmore"&&f0(me)]},me.id):null})},U.id)}const ne=U.name||U.key||U.id;return f.jsxs("div",{"data-field-name":ne,"data-form-renderer":"field-wrapper",style:Ma(U),children:[f.jsx(ca,{field:Li(U),value:We[ne],error:Gt[ne]||ze>0?$t[ne]:void 0,onChange:he=>Zt(ne,he),onBlur:()=>rr(ne),disabled:(U.type==="table"||U.type==="billingGrid")&&s==="fill"?!1:ie||!br(ne)||Pr,readOnly:(U.type==="table"||U.type==="billingGrid")&&s==="fill"?!1:Sn(ne,!!U.readOnly),isRequired:Sa(ne),formValues:We,submissionContext:ht,prepopulateMappedFieldNames:ge,urlParams:ce,prepopulateResponse:ye,prepopulateLoading:L,formSections:Nr,submitPayload:Y.config?.submitPayload,recordUpsert:on,fieldValueKey:ne,buttonResponses:Z,onButtonApiResponse:Ve,onSubmit:xn,onReset:qt,onCancel:dn,isSubmitting:De,bffSubmitApi:I,onBffSubmitResult:y,extraSubmitPayload:Pe,onValidateForm:X,getValidationErrors:pe,allFields:Y.fields,onSubmittingChange:ve,onAddMore:qi,hideTableRowControls:w}),U.type==="addmore"&&f0(U)]},U.id)})})}),c]})})]})});return A?f.jsx(A2,{handlers:A,moduleId:N??"",submissionContext:p,getAuthHeaders:C,onParentWorkflowSubmitResult:y,children:$be}):$be};var o1="Tabs",[z4t]=Bn(o1,[Hp]),Iie=Hp(),[$4t,pg]=z4t(o1),Fie=T.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:s,activationMode:l="automatic",...c}=e,u=fl(s),[d,p]=aa({prop:n,onChange:o,defaultProp:a??"",caller:o1});return f.jsx($4t,{scope:r,baseId:Pa(),value:d,onValueChange:p,orientation:i,dir:u,activationMode:l,children:f.jsx(ot.div,{dir:u,"data-orientation":i,...c,ref:t})})});Fie.displayName=o1;var Die="TabsList",Lie=T.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=pg(Die,r),i=Iie(r);return f.jsx(foe,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:n,children:f.jsx(ot.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});Lie.displayName=Die;var qie="TabsTrigger",Bie=T.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,i=pg(qie,r),s=Iie(r),l=Uie(i.baseId,n),c=Wie(i.baseId,n),u=n===i.value;return f.jsx(poe,{asChild:!0,...s,focusable:!o,active:u,children:f.jsx(ot.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...a,ref:t,onMouseDown:et(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?i.onValueChange(n):d.preventDefault()}),onKeyDown:et(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&i.onValueChange(n)}),onFocus:et(e.onFocus,()=>{const d=i.activationMode!=="manual";!u&&!o&&d&&i.onValueChange(n)})})})});Bie.displayName=qie;var Hie="TabsContent",Vie=T.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...i}=e,s=pg(Hie,r),l=Uie(s.baseId,n),c=Wie(s.baseId,n),u=n===s.value,d=T.useRef(u);return T.useEffect(()=>{const p=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(p)},[]),f.jsx(Un,{present:o||u,children:({present:p})=>f.jsx(ot.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!p,id:c,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:p&&a})})});Vie.displayName=Hie;function Uie(e,t){return`${e}-trigger-${t}`}function Wie(e,t){return`${e}-content-${t}`}var I4t=Fie,F4t=Lie,D4t=Bie,L4t=Vie;function Kie({className:e,...t}){return f.jsx(I4t,{"data-slot":"tabs",className:B("flex w-full flex-col gap-3",e),...t})}function hg({className:e,...t}){return f.jsx(F4t,{"data-slot":"tabs-list",className:B("inline-flex h-9 w-fit items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t})}function yg({className:e,...t}){return f.jsx(D4t,{"data-slot":"tabs-trigger",className:B("inline-flex h-[calc(100%-2px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-3 py-1.5 text-sm font-medium whitespace-nowrap text-foreground transition-all duration-200","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50 focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","data-[state=active]:border-border data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm","dark:text-muted-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Gie({className:e,...t}){return f.jsx(L4t,{"data-slot":"tabs-content",className:B("flex-1 outline-none",e),...t})}const q4t="w-full justify-start border-b rounded-none h-auto p-0 bg-transparent gap-0",B4t="rounded-none border-b-2 border-transparent data-[state=active]:border-primary data-[state=active]:shadow-none",H4t=({steps:e,position:t,sidebarWidth:r,sticky:n=!0,stickyOffset:o="1rem",sidebarMaxHeight:a="calc(100vh - 6rem)"})=>{if(t==="top")return f.jsx(hg,{className:q4t,"data-form-renderer":"workflow-tabs",children:e.map(l=>f.jsx(yg,{value:l.step_id,className:B4t,"data-form-renderer":"workflow-tab",children:l.step_name},l.step_id))});const i=t==="left"||t==="right",s=i?{...r?{width:r,flexShrink:0}:{},...n?{top:o}:{},maxHeight:a}:void 0;return f.jsx(hg,{className:B("bg-transparent p-0 gap-0 rounded-none h-auto",i?B("flex flex-col items-stretch shrink-0 self-start z-10 bg-background overflow-y-auto",n&&"sticky",t==="left"?"border-r pr-2":"border-l pl-2",!r&&"w-56"):B("w-full justify-start",t==="bottom"?"border-t pt-0":"border-b")),style:s,"data-form-renderer":"workflow-tabs","data-form-renderer-nav-position":t,children:e.map(l=>f.jsx(yg,{value:l.step_id,className:B("rounded-none shadow-none data-[state=active]:shadow-none text-sm",i?B("justify-start w-full px-3 py-2.5 border-b-0",t==="left"?"border-l-2 border-transparent data-[state=active]:border-primary":"border-r-2 border-transparent data-[state=active]:border-primary"):B("border-b-2 border-transparent data-[state=active]:border-primary",t==="bottom"&&"border-t-2 border-b-0 data-[state=active]:border-t-primary")),"data-form-renderer":"workflow-tab",children:l.step_name},l.step_id))})},V4t=new Set(["top","bottom","left","right"]),qd={position:"top",sticky:!0,stickyOffset:"1rem",sidebarMaxHeight:"calc(100vh - 6rem)"};function Rie(e){return typeof e=="string"&&V4t.has(e)}function U4t(...e){for(const t of e){const r=t?.ui_config?.stepsNavigation;if(r&&typeof r=="object")return r}}function mg(...e){for(const t of e)if(typeof t=="string"&&t.trim())return t.trim()}function gg(e={},...t){const r=U4t(...t),n=(e.position&&Rie(e.position)?e.position:void 0)??(r?.position&&Rie(r.position)?r.position:qd.position),o=mg(e.sidebarWidth,r?.sidebarWidth),a=typeof e.sticky=="boolean"?e.sticky:typeof r?.sticky=="boolean"?r.sticky:qd.sticky,i=mg(e.stickyOffset,r?.stickyOffset)??qd.stickyOffset,s=mg(e.sidebarMaxHeight,r?.sidebarMaxHeight)??qd.sidebarMaxHeight;return{position:n,sidebarWidth:o,sticky:a,stickyOffset:i,sidebarMaxHeight:s}}function W4t(e,...t){return gg({position:e},...t).position}function K4t(e){return e==="left"||e==="right"}function gr({className:e="",...t}){return f.jsx("div",{"data-slot":"skeleton","data-form-renderer":"skeleton",className:`animate-pulse rounded-md bg-neutral-200 dark:bg-neutral-700 ${e}`.trim(),...t})}function G4t({className:e="",position:t="top"}){if(t==="left"||t==="right")return f.jsxs("div",{className:`flex gap-4 ${t==="right"?"flex-row-reverse":"flex-row"} ${e}`.trim(),"data-form-renderer":"workflow-steps-view-skeleton",children:[f.jsxs("div",{className:`flex w-56 shrink-0 flex-col gap-1 border-neutral-200 dark:border-neutral-700 py-1 ${t==="left"?"border-r pr-2":"border-l pl-2"}`,children:[f.jsx(gr,{className:"h-10 w-full rounded-none"}),f.jsx(gr,{className:"h-10 w-full rounded-none"}),f.jsx(gr,{className:"h-10 w-full rounded-none"})]}),f.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-4 py-4",children:[f.jsx(gr,{className:"h-4 w-32"}),f.jsx(gr,{className:"h-10 w-full"}),f.jsx(gr,{className:"h-4 w-40"}),f.jsx(gr,{className:"h-10 w-full"}),f.jsx(gr,{className:"h-24 w-full"})]})]});const n=f.jsxs("div",{className:`flex w-full gap-0 ${t==="bottom"?"border-t border-neutral-200 pt-0 dark:border-neutral-700":"border-b border-neutral-200 dark:border-neutral-700"}`,children:[f.jsx(gr,{className:"h-10 w-24 rounded-none"}),f.jsx(gr,{className:"h-10 w-28 rounded-none ml-1"}),f.jsx(gr,{className:"h-10 w-20 rounded-none ml-1"})]}),o=f.jsxs("div",{className:"flex flex-col gap-4 py-4",children:[f.jsx(gr,{className:"h-4 w-32"}),f.jsx(gr,{className:"h-10 w-full"}),f.jsx(gr,{className:"h-4 w-40"}),f.jsx(gr,{className:"h-10 w-full"}),f.jsx(gr,{className:"h-4 w-36"}),f.jsx(gr,{className:"h-24 w-full"})]});return f.jsx("div",{className:`flex flex-col gap-4 ${e}`.trim(),"data-form-renderer":"workflow-steps-view-skeleton",children:t==="bottom"?f.jsxs(f.Fragment,{children:[o,n]}):f.jsxs(f.Fragment,{children:[n,f.jsx("div",{className:"mt-4",children:o})]})})}function Yie({className:e=""}){return f.jsxs("div",{className:`flex flex-col gap-4 py-4 ${e}`.trim(),"data-form-renderer":"form-loading-skeleton",children:[f.jsx(gr,{className:"h-4 w-28"}),f.jsx(gr,{className:"h-10 w-full"}),f.jsx(gr,{className:"h-4 w-36"}),f.jsx(gr,{className:"h-10 w-full"}),f.jsx(gr,{className:"h-4 w-24"}),f.jsx(gr,{className:"h-20 w-full"})]})}function R4t(e,t,r){return!r||!t?.trim()||!e?.trim()||t!==e||r.step_blocked_message?.trim()&&!r.form?!1:!!(r.form&&r.BFF_submit_api?.url?.trim())}const Y4t=3e4,X4t=10*6e4,Z4t=9e4,J4t=15*6e4;function Xie(e){let t=e.trim();for(;t.includes("/workflow-backend/workflow-backend");)t=t.replace(/\/workflow-backend\/workflow-backend/g,"/workflow-backend");return t}function Q4t(e){const t=e.trim();if(!t)return t;let r=t;if(r.startsWith("http://")||r.startsWith("https://"))try{const n=new URL(r);r=n.pathname+n.search}catch{return Xie(t)}return Xie(r)}function e5t(e){return e!=null&&"on_success"in e&&e.on_success!=null}function t5t(e,t){if(!t||typeof t!="object")return e;let r=e;return Object.entries(t).forEach(([n,o])=>{o!=null&&o!==""&&(r=r.replace(new RegExp(`\\{${n}\\}`,"g"),String(o)))}),r}const Zie=({getWorkflowState:e,moduleId:t,tenantId:r,submissionContext:n,initialValues:o={},getAuthHeaders:a,onSuccess:i,bootstrapFeatureId:s,subjectUserId:l,viewStepId:c,clientId:u,className:d,onWorkflowSubmitResult:p,viewerContext:y,getViewerContext:m,dark:g=!1,themeVars:v,stepsNavigationPosition:b,stepsNavigationSidebarWidth:_,stepsNavigationSticky:x,stepsNavigationStickyOffset:w,stepsNavigationSidebarMaxHeight:S,workflowModalHandlers:M,onClose:P})=>{const N=Pn.useQueryClient(),A=k.useMemo(()=>[l??"",c??"",u??""],[l,c,u]),C=k.useMemo(()=>({moduleId:t,tenantId:r,subjectUserId:l,viewStepId:c,clientId:u}),[t,r,l,c,u]),[O,j]=k.useState([]),[z,E]=k.useState(null),[$,F]=k.useState(null),[q,D]=k.useState(null),[H,I]=k.useState({}),L=k.useRef(null),R=k.useRef(null),V=k.useRef(null),G=k.useRef(null),Z=k.useMemo(()=>O&&Array.isArray(O)?O.filter(Y=>Y.feature_id):[],[O]),te=Pn.useQuery({queryKey:["workflow-steps",t,s??"",r??"",A[0],A[1],A[2]],queryFn:()=>e({...C,featureId:s}),staleTime:Y4t,gcTime:X4t}),K=te.isPending,re=te.error?te.error instanceof Error?te.error.message:"Failed to load workflow steps":null;k.useEffect(()=>{const Y=te.data;if(!Y||O.length>0)return;const ge=Y.steps&&Array.isArray(Y.steps)?Y.steps:[];j(ge);const Fe=ge.filter(bt=>bt.feature_id);if(Fe.length>0){const bt=Y.current_step_id,We=Y.status==="COMPLETED",$t=bt&&Fe.some(Gt=>Gt.step_id===bt);We&&Fe.length>1?E(Fe[Fe.length-1].step_id):E($t?bt:Fe[0].step_id)}},[te.data,O.length,s]);const Q=k.useMemo(()=>{if(!z)return;const Y=O.find(Fe=>Fe.step_id===z),ge=L.current===z;return Y?.feature_id??(ge?G.current:void 0)??void 0},[z,O]),ee=k.useMemo(()=>R4t(s,Q,te.data),[s,Q,te.data]),J=k.useMemo(()=>ee&&te.data?te.data:$,[ee,te.data,$]),W=Pn.useQuery({queryKey:["workflow-step",t,Q??"",r??"",A[0],A[1],A[2]],queryFn:()=>e({...C,featureId:Q}),enabled:!!Q&&!ee,staleTime:Z4t,gcTime:J4t,refetchOnWindowFocus:!0,refetchOnReconnect:!0}),ye=!ee&&W.isPending&&!W.data,oe=W.error?W.error instanceof Error?W.error.message:"Failed to load form":null,ce=k.useMemo(()=>gg({position:b,sidebarWidth:_,sticky:x,stickyOffset:w,sidebarMaxHeight:S},J,te.data),[b,_,x,w,S,J,te.data]),de=ce.position,ve=K4t(de);k.useEffect(()=>{!W.data||L.current===z||(F(W.data),D(null),L.current=null,G.current=null)},[W.data,z]),k.useEffect(()=>{if(ee){D(null);return}D(oe)},[ee,oe]),k.useEffect(()=>{Q===void 0&&L.current!==z&&(F(null),D(null),L.current=null,G.current=null)},[Q,z]);const ie=k.useMemo(()=>{const Y=J?.form;if(!Y)return null;const ge=(r??ta()??"").trim()||"default",Fe=Eie({scope:ge,formId:Y._id,version:Y.version});return Fe?.value?Fe.value:uae(J,n)},[J,n,r]),Ae=k.useMemo(()=>{const Y=J?.BFF_submit_api;if(!Y?.url)return;const ge=Q4t(Y.url),Fe=a?.()??{},bt={...Y.headers||{},"Content-Type":"application/json",...Fe};return{...Y,url:ge,headers:bt}},[J?.BFF_submit_api,a]),Ce=k.useMemo(()=>ie?{...ie,status:"published",...Ae&&{BFF_submit_api:Ae}}:null,[ie,Ae]);k.useEffect(()=>{if(!ie?.id)return;const Y=(r??ta()??"").trim()||"default";zie({scope:Y,formId:ie.id,version:ie.version},ie)},[ie,r]);const Le=k.useMemo(()=>{if(!ie)return null;const Y=Mf({config:ie.config,layout:ie.layout},null);if(!Y)return null;const ge=Y.rows,Fe=Y.columns,bt={verticalSpacing:Y.verticalSpacing??Y.spacing??"16px",horizontalSpacing:Y.horizontalSpacing??Y.spacing??"16px",rowHeight:Y.rowHeight??tl};let We=1;if(Array.isArray(ie.fields))for(const Gt of ie.fields){const De=Gt?.position,gt=typeof De?.order=="number"?De.order:0,ze=typeof De?.rowSpan=="number"?De.rowSpan:1;We=Math.max(We,gt+ze)}return{rows:Math.min(ge,Math.max(1,We)),columns:Fe,verticalSpacing:bt.verticalSpacing,horizontalSpacing:bt.horizontalSpacing,rowHeight:bt.rowHeight}},[ie]),_e=k.useMemo(()=>{const ge=Ce?.config?.theme?.cssVariables;if(!(!ge&&!v))return{...ge??{},...v??{}}},[Ce?.config,v]),Ee=k.useCallback(()=>{N.invalidateQueries({queryKey:["workflow-steps",t]}),N.invalidateQueries({queryKey:["workflow-step",t]})},[N,t]),He=k.useCallback(Y=>{if(e5t(Y)){const We=Y.on_success,$t=We?.action;if($t==="redirect"&&We?.redirect_url){const Gt=t5t(We.redirect_url.trim(),n);window.location.href=Gt;return}if($t==="move"){const Gt=We?.next_step_id,De=We?.next_step_form;if(Gt&&De){L.current=null,G.current=null;const gt=De.featureId??We?.next_step_form_id??De._id;N.removeQueries({queryKey:["workflow-step",t,gt,r??"",A[0],A[1],A[2]]}),Ee(),j(ze=>ze.some(St=>St.step_id===Gt)?ze:[...ze,{step_id:Gt,step_name:De.name||"Next step",feature_id:gt}]),F(null),E(Gt),i?.();return}return}if($t==="stay"){Ee(),i?.();return}}const ge=Y;ge.steps&&Array.isArray(ge.steps)&&j(ge.steps);const Fe=(ge.steps&&Array.isArray(ge.steps)?ge.steps:O).filter(We=>We.feature_id),bt=ge.current_step_id;bt&&Fe.some(We=>We.step_id===bt)?E(bt):Fe.length>0&&E(Fe[0].step_id),F(null),Ee(),i?.(),p?.(ge)},[N,t,r,i,p,O,n,A,Ee]),tt=k.useCallback(async Y=>J?.BFF_submit_api?(i?.(),{success:!0}):{success:!1,message:"Submit not configured"},[J?.BFF_submit_api,i]),be=k.useCallback((Y,ge)=>{},[]),Oe=k.useCallback(Y=>{},[]);if(K)return s?.trim()?f.jsx(Yie,{className:d}):f.jsx(G4t,{className:d,position:b??ce.position});if(re)return f.jsx("div",{className:B("rounded-lg border border-destructive/50 bg-destructive/10 px-4 py-3 text-sm text-destructive",d),children:re});if(Z.length===0)return f.jsx("div",{className:B("py-12 text-center text-sm text-muted-foreground",d),children:"No workflow steps configured."});const Xe=J?.step_blocked_message,Kt=Z.length>1;return f.jsx("div",{className:B(m0,g&&"dark","flex flex-col gap-4",d),style:_e,"data-form-renderer":"workflow-steps-view",children:f.jsxs(Kie,{value:z??"",onValueChange:Y=>E(Y),className:B(Kt&&de!=="top"&&"gap-4",Kt&&ve&&"flex-row items-start",Kt&&de==="right"&&"flex-row-reverse",Kt&&de==="bottom"&&"flex-col-reverse"),orientation:ve?"vertical":"horizontal",children:[Kt?f.jsx(H4t,{steps:Z,position:de,sidebarWidth:ce.sidebarWidth,sticky:ce.sticky,stickyOffset:ce.stickyOffset,sidebarMaxHeight:ce.sidebarMaxHeight}):null,Z.map(Y=>f.jsx(Gie,{value:Y.step_id,className:B("outline-none",ve?"mt-0 flex-1 min-w-0":Kt?"mt-4":"mt-0"),children:Y.step_id!==z?null:ye?f.jsx(Yie,{}):q?f.jsx("div",{className:"rounded-lg border border-destructive/50 bg-destructive/10 px-4 py-3 text-sm text-destructive",children:q}):Xe&&!J?.form?f.jsx("div",{className:B("rounded-lg border border-amber-500/50 bg-amber-500/10 px-4 py-3 text-sm text-amber-800 dark:text-amber-200",d),"data-form-renderer":"workflow-step-blocked",children:Xe}):Ce?.fields?.length?f.jsxs("div",{className:"w-full min-w-0 [&_*]:box-border",children:[Xe?f.jsx("div",{className:B("mb-4 rounded-lg border border-amber-500/50 bg-amber-500/10 px-4 py-3 text-sm text-amber-800 dark:text-amber-200"),"data-form-renderer":"workflow-step-blocked",children:Xe}):null,(()=>{const ge=R.current!==z||V.current!==(Ce?.id??null);if(z&&Ce&&ge){R.current=z,V.current=Ce.id??null;const Fe=Gi.getState();Fe.setSchema(Ce,{forceReset:!0});const bt=Gi.getState().values;Fe.setValues({...bt,...o})}return null})(),f.jsx(n1,{schema:Ce,gridLayout:Le,moduleId:t,workflowModalHandlers:M,getAuthHeaders:a,submissionContext:n,initialValues:o,workflowStepId:z??void 0,viewerContext:y,getViewerContext:m,onSubmit:tt,onChange:be,onValidationError:Oe,onClose:P,mode:"fill",onWorkflowSubmitResult:He,initialExtraSubmitPayload:Object.keys(H).length>0?H:void 0,onExtraSubmitPayloadChange:ge=>{if(ge&&typeof ge=="object"){const Fe={};ge.context_user_id!=null&&(Fe.context_user_id=ge.context_user_id),ge.id!=null&&(Fe.id=ge.id),ge.batch_id!=null&&(Fe.batch_id=ge.batch_id),ge.admission_batch_id!=null&&(Fe.admission_batch_id=ge.admission_batch_id),ge.program_id!=null&&(Fe.program_id=ge.program_id),Object.keys(Fe).length>0&&I(bt=>({...bt,...Fe}))}}},Ce.id)]}):f.jsx("div",{className:"py-8 text-center text-sm text-muted-foreground",children:"No form schema available for this step."})},Y.step_id))]})})},a1=new Map;function r5t(e){if(e){a1.delete(e);return}a1.clear()}async function i1(e,t,r){const n=a1.get(t);if(n!==void 0)return n;const o=e.replace(/\/$/,""),i=!!(await Dr.get(`${o}/${encodeURIComponent(t)}/meta`,{headers:r})).data?.standalone_workflow;return a1.set(t,i),i}function s1(e){const t={...e.getAuthHeaders?.()??{}};return e.clientId&&(t["x-client-id"]=e.clientId),e.userId&&(t["x-user-id"]=e.userId),t}function vg(e,t){Object.entries(t).forEach(([r,n])=>{n&&e.set(r,n)})}function Jie(e){const t=e.bffWorkflowsBasePath.replace(/\/$/,""),r=()=>s1({getAuthHeaders:e.getAuthHeaders,clientId:e.clientId,userId:e.userId}),n=o=>o?.trim()||e.moduleId?.trim()||"";return{async getWorkflowStateById({workflowId:o,moduleId:a,entryStepId:i}){const s=o.trim(),l=r();if(await i1(t,s,l)){const p=new URLSearchParams;e.clientId&&p.set("client_id",e.clientId),e.userId&&p.set("user_id",e.userId),vg(p,{entry_step_id:i});const y=p.toString();return(await Dr.get(`${t}/${encodeURIComponent(s)}/standalone-state${y?`?${y}`:""}`,{headers:l})).data}const u=new URLSearchParams;return u.set("module_id",n(a)),e.clientId&&u.set("client_id",e.clientId),e.userId&&u.set("user_id",e.userId),vg(u,{entry_step_id:i}),(await Dr.get(`${t}/${encodeURIComponent(s)}/state?${u.toString()}`,{headers:l})).data},async navigateWorkflowStep({workflowId:o,moduleId:a,targetStepId:i}){const s=o.trim(),l=r();if(await i1(t,s,l))return(await Dr.post(`${t}/${encodeURIComponent(s)}/standalone-navigate-step`,{workflow_id:s,target_step_id:i},{headers:l})).data;const u=n(a);return(await Dr.post(`${t}/modules/${encodeURIComponent(u)}/navigate-step`,{workflow_id:s,target_step_id:i},{headers:l})).data},async getFormSchemaById(o){const a=await k2.getForRendering(o.trim());return ys(a.form,a.fields,a.layout,a.rules)}}}async function Qie(e){const t=e.bffWorkflowsBasePath.replace(/\/$/,""),r=s1({getAuthHeaders:e.getAuthHeaders,clientId:e.clientId,userId:e.subjectUserId});if(e.workflowId?.trim()){const i=e.workflowId.trim();if(await i1(t,i,r)){const l=new URLSearchParams;e.clientId&&l.set("client_id",e.clientId),e.subjectUserId&&l.set("user_id",e.subjectUserId),vg(l,{step_id:e.viewStepId});const c=l.toString();return(await Dr.get(`${t}/${encodeURIComponent(i)}/standalone-state${c?`?${c}`:""}`,{headers:r})).data}}const n=new URLSearchParams;n.set("module_id",e.moduleId),e.featureId&&n.set("feature_id",e.featureId),e.tenantId&&n.set("tenant_id",e.tenantId),e.subjectUserId&&n.set("user_id",e.subjectUserId),e.viewStepId&&n.set("step_id",e.viewStepId),e.clientId&&n.set("client_id",e.clientId);const o=e.workflowId?.trim()?`${t}/${encodeURIComponent(e.workflowId.trim())}/state?${n.toString()}`:`${t}/modules/${encodeURIComponent(e.moduleId)}/state?${n.toString()}`;return(await Dr.get(o,{headers:r})).data}const l1=[{label:"Inter",value:"Inter, system-ui, -apple-system, sans-serif"},{label:"System UI",value:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif'},{label:"Segoe UI",value:'"Segoe UI", system-ui, sans-serif'},{label:"Arial",value:"Arial, Helvetica, sans-serif"},{label:"Helvetica",value:"Helvetica, Arial, sans-serif"},{label:"Roboto",value:"Roboto, system-ui, sans-serif"},{label:"Open Sans",value:'"Open Sans", system-ui, sans-serif'},{label:"Lato",value:"Lato, system-ui, sans-serif"},{label:"Poppins",value:"Poppins, system-ui, sans-serif"},{label:"Montserrat",value:"Montserrat, system-ui, sans-serif"},{label:"Nunito",value:"Nunito, system-ui, sans-serif"},{label:"Source Sans 3",value:'"Source Sans 3", system-ui, sans-serif'},{label:"Georgia",value:'Georgia, "Times New Roman", serif'},{label:"Times New Roman",value:'"Times New Roman", Times, serif'},{label:"Courier New",value:'"Courier New", Courier, monospace'}];function n5t(e){if(!e?.trim())return l1[0].value;const t=l1.find(n=>n.value===e);if(t)return t.value;const r=l1.find(n=>n.label.toLowerCase()===e.trim().toLowerCase());return r?r.value:e}function o5t(e){return typeof e=="object"&&e!==null&&"apiEndpoint"in e}function a5t({formSchema:e}){const t=k.useMemo(()=>{if(!e)return[];const a=[];(!e.name||e.name.trim()==="")&&a.push({id:"form-name-required",type:"error",message:"Form name is required"});const i=new Set,s=new Set;e.fields.forEach((u,d)=>{const p=`field-${u.id}`;if(s.has(u.id)&&a.push({id:`${p}-duplicate-id`,type:"error",message:`Field "${u.label||u.name||`Field ${d+1}`}" has a duplicate ID`,fieldId:u.id}),s.add(u.id),u.name&&i.has(u.name)&&a.push({id:`${p}-duplicate-name`,type:"error",message:`Field "${u.label||u.name}" has a duplicate name: "${u.name}"`,fieldId:u.id}),u.name&&i.add(u.name),(!u.label||u.label.trim()==="")&&a.push({id:`${p}-missing-label`,type:"warning",message:`Field "${u.name||u.id}" is missing a label`,fieldId:u.id}),(!u.name||u.name.trim()==="")&&a.push({id:`${p}-missing-name`,type:"error",message:`Field "${u.label||u.id}" is missing a field name`,fieldId:u.id}),u.name&&!/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(u.name)&&a.push({id:`${p}-invalid-name`,type:"error",message:`Field "${u.label||u.name}" has an invalid name. Use only letters, numbers, and underscores.`,fieldId:u.id}),["select","multiselect","radio","checkboxgroup"].includes(u.type)){const g=u.properties;(!g?.options||g.options.length===0)&&a.push({id:`${p}-no-options`,type:"warning",message:`Field "${u.label||u.name}" has no options defined`,fieldId:u.id})}u.parentId&&(e.fields.some(v=>v.id===u.parentId)||a.push({id:`${p}-orphaned`,type:"error",message:`Field "${u.label||u.name}" references a non-existent parent`,fieldId:u.id}));const m=(g,v)=>{if(v.has(g))return!0;v.add(g);const b=e.fields.find(_=>_.id===g);return b?.parentId?m(b.parentId,v):!1};u.parentId&&m(u.id,new Set)&&a.push({id:`${p}-circular-reference`,type:"error",message:`Field "${u.label||u.name}" has a circular parent reference`,fieldId:u.id})}),e.config.workflowTrigger?.workflowId&&(e.fields.some(d=>d.validation?.some(p=>p.type==="required"))||a.push({id:"workflow-no-required-fields",type:"info",message:"Form linked to workflow but has no required fields"}));const l=e.fields.filter(u=>!u.parentId),c=new Map;return l.forEach(u=>{const d=u.position.order;c.has(d)||c.set(d,[]),c.get(d).push(u)}),c.forEach((u,d)=>{u.length>3&&a.push({id:`row-${d}-too-many-fields`,type:"warning",message:`Row ${d+1} has ${u.length} fields (maximum recommended is 3)`})}),a},[e]),r=k.useMemo(()=>t.filter(a=>a.type==="error"),[t]),n=k.useMemo(()=>t.filter(a=>a.type==="warning"),[t]),o=k.useMemo(()=>r.length===0,[r]);return{issues:t,errors:r,warnings:n,isValid:o}}function i5t({field:e,value:t,allValues:r,validateOnChange:n=!1,validateOnBlur:o=!0,debounceMs:a=Ukt}){const[i,s]=k.useState(),[l,c]=k.useState(!1),u=k.useRef(void 0),d=k.useRef(t),p=k.useCallback(async()=>{if(!e.validation||e.validation.length===0){s(void 0);return}c(!0);let b;for(const _ of e.validation){const x=Yo(t,_,r);if(typeof x=="string"){b=x;break}}return s(b),c(!1),b},[e.validation,t,r]),y=k.useCallback(()=>{u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{p()},a)},[p,a]);k.useEffect(()=>(n&&d.current!==t&&y(),d.current=t,()=>{u.current&&clearTimeout(u.current)}),[t,n,y]);const m=k.useCallback(()=>{o&&p()},[o,p]),g=k.useCallback(()=>{s(void 0)},[]),v=k.useCallback(b=>{s(b)},[]);return{error:i,isValidating:l,validate:p,handleBlur:m,clearError:g,setCustomError:v}}const ese="—";function Gr(){return{kind:"static",value:ese}}function s5t(){return j5({currencySymbol:"₹",emptyDisplay:ese,columns:[{id:"col_tariff",key:"tariff_type",label:"Tariff type",format:"text",align:"left"},{id:"col_service",key:"service",label:"Service",format:"text",align:"left"},{id:"col_unit",key:"unit_price",label:"Unit price",format:"currency",align:"right"},{id:"col_disc_pct",key:"discount_pct",label:"Discount (%)",format:"percent",align:"right"},{id:"col_disc_amt",key:"discount_amount",label:"Discount (₹)",format:"currency",align:"right"},{id:"col_net",key:"net_price",label:"Net price",format:"currency",align:"right"},{id:"col_tax",key:"tax_pct",label:"Tax (%)",format:"percent",align:"right"},{id:"col_total",key:"total",label:"Total",format:"currency",align:"right"}],rowSlots:[{kind:"static",row:{id:"registration_fee",label:"Registration fee",cells:{tariff_type:{kind:"label"},service:Gr(),unit_price:{kind:"api",path:"unit_price"},discount_pct:{kind:"input",inputType:"number"},discount_amount:{kind:"formula",expression:"cell('unit_price') * cell('discount_pct') / 100"},net_price:{kind:"formula",expression:"cell('unit_price') - cell('discount_amount')"},tax_pct:{kind:"api",path:"tax_pct"},total:{kind:"formula",expression:"cell('net_price') * (1 + cell('tax_pct') / 100)"}}}},{kind:"dynamic",block:{id:"line_items",apiArrayPath:"items",rowIdField:"id",cells:{tariff_type:Gr(),service:{kind:"api",path:"service"},unit_price:{kind:"api",path:"unit_price"},discount_pct:Gr(),discount_amount:{kind:"formula",expression:"cell('unit_price') * cell('discount_pct') / 100"},net_price:{kind:"formula",expression:"cell('unit_price') - cell('discount_amount')"},tax_pct:{kind:"api",path:"tax_pct"},total:{kind:"formula",expression:"cell('net_price') * (1 + cell('tax_pct') / 100)"}}}},{kind:"static",row:{id:"all_items_summary",label:"All items summary",cells:{tariff_type:{kind:"label"},service:Gr(),unit_price:{kind:"formula",expression:"SUM('unit_price', 'data')"},discount_pct:Gr(),discount_amount:{kind:"formula",expression:"SUM('discount_amount', 'data')"},net_price:{kind:"formula",expression:"SUM('net_price', 'data')"},tax_pct:Gr(),total:{kind:"formula",expression:"SUM('total', 'data')"}}}},{kind:"static",row:{id:"invoice_discount",label:"Invoice discount",cells:{tariff_type:{kind:"label"},service:Gr(),unit_price:Gr(),discount_pct:Gr(),discount_amount:{kind:"input",inputType:"number"},net_price:Gr(),tax_pct:Gr(),total:Gr()}}},{kind:"static",row:{id:"grand_total",label:"Grand total",cells:{tariff_type:{kind:"label"},service:Gr(),unit_price:Gr(),discount_pct:Gr(),discount_amount:Gr(),net_price:Gr(),tax_pct:Gr(),total:{kind:"formula",expression:"SUM('total', 'data') - cellInRow('invoice_discount', 'discount_amount')"}}}}]})}const l5t={text:{type:"text",label:"Text Input",icon:"Type",category:"input",description:"Single line text input",defaultProps:{label:"Text Field",name:"text_field",placeholder:"Enter text..."}},number:{type:"number",label:"Number Input",icon:"Hash",category:"input",description:"Numeric input with optional constraints",defaultProps:{label:"Number Field",name:"number_field",placeholder:"0",properties:{min:0,step:1}}},email:{type:"email",label:"Email",icon:"Mail",category:"input",description:"Email address input with validation",defaultProps:{label:"Email",name:"email_field",placeholder:"example@domain.com",validation:[{type:"email"}]}},phone:{type:"phone",label:"Phone",icon:"Phone",category:"input",description:"Phone number input",defaultProps:{label:"Phone Number",name:"phone_field",placeholder:"+91 12345 67890"}},otp:{type:"otp",label:"OTP",icon:"ShieldCheck",category:"input",description:"One-time password with separate digit boxes",defaultProps:{label:"OTP",name:"otp_field",properties:{otpLength:4,numericOnly:!0},validation:[{type:"required",message:"Please enter the OTP"}]}},password:{type:"password",label:"Password",icon:"Lock",category:"input",description:"Secure password input",defaultProps:{label:"Password",name:"password_field",placeholder:"••••••••"}},url:{type:"url",label:"URL",icon:"Link",category:"input",description:"URL input with validation",defaultProps:{label:"URL",name:"url_field",placeholder:"https://example.com",validation:[{type:"url"}]}},color:{type:"color",label:"Colour code",icon:"Palette",category:"input",description:"Hex colour with palette picker (e.g. course colour)",defaultProps:{label:"Colour code",name:"color_code",defaultValue:"#3498db"}},date:{type:"date",label:"Date",icon:"Calendar",category:"datetime",description:"Date picker",defaultProps:{label:"Date",name:"date_field",placeholder:"Select date"}},time:{type:"time",label:"Time",icon:"Clock",category:"datetime",description:"Time picker",defaultProps:{label:"Time",name:"time_field",placeholder:"Select time"}},startTime:{type:"startTime",label:"Start Time",icon:"Clock",category:"datetime",description:"Hour and minute picker with 12h or 24h display (stores HH:mm)",defaultProps:{label:"Start Time",name:"start_time",properties:{timeFormat:"24",minuteStep:15,hourOnly:!1}}},duration:{type:"duration",label:"Duration",icon:"Timer",category:"datetime",description:"Duration in hours with +/- stepper and quick presets",defaultProps:{label:"Duration (hours)",name:"duration_hours",properties:{min:1/60,max:24,step:.5,unitLabel:"hours",showPresets:!0,presets:[.5,1,1.5,2,3,4]}}},datetime:{type:"datetime",label:"Date & Time",icon:"CalendarClock",category:"datetime",description:"Combined date and time picker",defaultProps:{label:"Date & Time",name:"datetime_field",placeholder:"Select date and time"}},daterange:{type:"daterange",label:"Date Range",icon:"CalendarRange",category:"datetime",description:"Select a range of dates",defaultProps:{label:"Date Range",name:"daterange_field",placeholder:"Select date range"}},select:{type:"select",label:"Dropdown",icon:"ChevronDown",category:"selection",description:"Single selection dropdown",defaultProps:{label:"Select",name:"select_field",placeholder:"Select an option",properties:{options:[{label:"Option 1",value:"option1"},{label:"Option 2",value:"option2"},{label:"Option 3",value:"option3"}],searchable:!0,clearable:!0}}},multiselect:{type:"multiselect",label:"Multi Select",icon:"ListChecks",category:"selection",description:"Multiple selection dropdown",defaultProps:{label:"Multi Select",name:"multiselect_field",placeholder:"Select options",properties:{options:[{label:"Option 1",value:"option1"},{label:"Option 2",value:"option2"},{label:"Option 3",value:"option3"}],searchable:!0}}},radio:{type:"radio",label:"Radio Group",icon:"CircleDot",category:"selection",description:"Single selection radio buttons",defaultProps:{label:"Radio Group",name:"radio_field",properties:{options:[{label:"Option 1",value:"option1"},{label:"Option 2",value:"option2"},{label:"Option 3",value:"option3"}]}}},checkbox:{type:"checkbox",label:"Checkbox",icon:"CheckSquare",category:"selection",description:"Single checkbox for boolean values",defaultProps:{label:"I agree to the terms",name:"checkbox_field"}},toggle:{type:"toggle",label:"Toggle",icon:"ToggleLeft",category:"selection",description:"Toggle switch with configurable text values",defaultProps:{label:"Toggle",name:"toggle_field",description:"Toggle to switch between states",properties:{onValue:"On",offValue:"Off"}}},checkboxgroup:{type:"checkboxgroup",label:"Checkbox Group",icon:"CheckSquare",category:"selection",description:"Multiple checkboxes for selecting multiple values",defaultProps:{label:"Checkbox Group",name:"checkboxgroup_field",properties:{selectionMode:"multipleWithSelectAll",checkboxShape:"square",showSelectAll:!0,selectAllLabel:"Select All",options:[{label:"Option 1",value:"option1"},{label:"Option 2",value:"option2"},{label:"Option 3",value:"option3"}]}}},selectablelist:{type:"selectablelist",label:"Selectable List",icon:"ListChecks",category:"selection",description:"List from response or context; select all or specific items. Value = selected array.",defaultProps:{label:"Recipients",name:"recipients",properties:{dataSourceContextKey:"recipients",labelField:"name",valueField:"email",showSelectAll:!0,selectAllByDefault:!0}}},asyncsearch:{type:"asyncsearch",label:"Async Search",icon:"Search",category:"selection",description:"Typeahead search against an API; submitted value is the selected option value.",defaultProps:{label:"Search",name:"async_search",placeholder:"Type to search…",properties:{apiEndpoint:"/api/form-builder/search",apiMethod:"GET",searchQueryParam:"q",searchSchedule:"debounce",intervalMs:300,minQueryLength:0,clearable:!0}}},terms:{type:"terms",label:"Terms & Conditions",icon:"FileText",category:"special",description:"Terms and conditions confirmation checkbox",defaultProps:{label:"I confirm that the details are true to my knowledge",name:"terms_conditions",validation:[{type:"required"}]}},textarea:{type:"textarea",label:"Text Area",icon:"AlignLeft",category:"rich",description:"Multi-line text input",defaultProps:{label:"Text Area",name:"textarea_field",placeholder:"Enter your text here...",properties:{minLength:0,maxLength:1e3}}},richtext:{type:"richtext",label:"Rich Text",icon:"FileText",category:"rich",description:"Rich text editor with formatting",defaultProps:{label:"Rich Text",name:"richtext_field"}},file:{type:"file",label:"File Upload",icon:"Upload",category:"rich",description:"File upload with drag and drop",defaultProps:{label:"File Upload",name:"file_field",properties:{accept:["image/*","application/pdf"],maxSize:5*1024*1024}}},camera:{type:"camera",label:"Use camera",icon:"Camera",category:"rich",description:"Take a photo with your camera",defaultProps:{label:"Take photo",name:"camera_field",properties:{accept:["image/*"],maxSize:5*1024*1024,multiple:!1}}},photoChoice:{type:"photoChoice",label:"Photo (upload or camera)",icon:"ImagePlus",category:"rich",description:"Upload a file or capture with the camera",defaultProps:{label:"Photo",name:"photo_choice_field",properties:{accept:["image/*"],maxSize:5*1024*1024,maxFiles:1}}},signature:{type:"signature",label:"Signature",icon:"Pencil",category:"rich",description:"Digital signature capture",defaultProps:{label:"Signature",name:"signature_field"}},rating:{type:"rating",label:"Rating",icon:"Star",category:"rich",description:"Star rating input",defaultProps:{label:"Rating",name:"rating_field",properties:{max:5,allowHalf:!1,icon:"star"}}},slider:{type:"slider",label:"Slider",icon:"SlidersHorizontal",category:"rich",description:"Numeric slider input",defaultProps:{label:"Slider",name:"slider_field",properties:{min:0,max:100,step:1,showValue:!0}}},table:{type:"table",label:"Table",icon:"Table",category:"special",description:"Repeatable table rows",defaultProps:{label:"Table",name:"table_field",properties:{columns:[],minRows:1,maxRows:10,allowAddRow:!0,allowDeleteRow:!0}}},billingGrid:{type:"billingGrid",label:"Billing Grid",icon:"Receipt",category:"special",description:"Configurable billing/tariff grid with formulas and API line items",defaultProps:{label:"Billing",name:"billing",properties:s5t()}},aadhaar:{type:"aadhaar",label:"Aadhaar",icon:"CreditCard",category:"special",description:"Indian Aadhaar number input",defaultProps:{label:"Aadhaar Number",name:"aadhaar_field",placeholder:"XXXX XXXX XXXX"}},section:{type:"section",label:"Section",icon:"LayoutPanelTop",category:"container",description:"Group fields in a collapsible section",defaultProps:{label:"Section",name:"section",properties:{collapsible:!0,defaultCollapsed:!1,columns:1}}},group:{type:"group",label:"Group",icon:"Group",category:"container",description:"Group fields without visual separator",defaultProps:{label:"Group",name:"group"}},columns:{type:"columns",label:"Columns",icon:"Columns",category:"container",description:"Multi-column layout",defaultProps:{label:"Columns",name:"columns",properties:{columns:2}}},divider:{type:"divider",label:"Divider",icon:"Minus",category:"visual",description:"Horizontal line separator",defaultProps:{label:"",name:"divider"}},header:{type:"header",label:"Header",icon:"Heading",category:"visual",description:"Section header text (full row, configurable size)",defaultProps:{label:"Header",name:"header",properties:{headingLevel:"h3",showHorizontalLine:!0}}},sectionHeading:{type:"sectionHeading",label:"Section Heading",icon:"Heading",category:"visual",description:"Heading inside a grid box with configurable position and size",defaultProps:{label:"Section Heading",name:"section_heading",properties:{position:"top-left",headingLevel:"h3",showHorizontalLine:!0}}},spacer:{type:"spacer",label:"Spacer",icon:"Space",category:"visual",description:"Empty space for padding",defaultProps:{label:"",name:"spacer"}},textLabel:{type:"textLabel",label:"Text Label",icon:"Tag",category:"visual",description:"Standalone label text (no input)",defaultProps:{label:"Label",name:"text_label"}},status:{type:"status",label:"Status",icon:"ListChecks",category:"visual",description:"Populate status from Status API; label + response key; true = completed",defaultProps:{label:"Admission Status",name:"status_field",properties:{source:"api",statuses:[{label:"Registered",key:"registered"},{label:"Form Submitted",key:"formSubmitted"},{label:"Documents Verification",key:"documentsVerification"},{label:"Photos Clicked",key:"photosClicked"},{label:"Fitness Verification",key:"fitnessVerification"},{label:"Payment Completed",key:"paymentCompleted"},{label:"Hostel Allotted",key:"hostelAllotted"},{label:"Admission Completed",key:"admissionCompleted"}],showStatusText:!1,statusTextPath:"admissionStatus",showCurrentIndicator:!0}}},button:{type:"button",label:"Button",icon:"MousePointerClick",category:"special",description:"Clickable button element",defaultProps:{label:"Button",name:"button_field",properties:{variant:"default",size:"default",action:"download"}}},editButton:{type:"editButton",label:"Edit Button",icon:"Pencil",category:"special",description:"Toggle edit mode: enable/disable or show/hide other fields and buttons (no API call)",defaultProps:{label:"Edit",name:"edit_button",properties:{buttonText:"Edit",variant:"outline",size:"default",hideLabel:!1,rules:[]}}},addmore:{type:"addmore",label:"Add More",icon:"Plus",category:"special",description:"Duplicate linked fields as a new runtime block",defaultProps:{label:"Add More",name:"addmore_field",properties:{linkedFieldNames:[],linkedSectionIds:[],variant:"outline",size:"default"}}},customizeSections:{type:"customizeSections",label:"Customise Sections",icon:"ListFilter",category:"special",description:"Show or hide UI sections defined by Section Heading fields",defaultProps:{label:"Customise Sections",name:"customize_sections",properties:{sectionHeadingNames:[],defaultHiddenSectionNames:[],variant:"outline",size:"default",buttonText:"Customise sections",menuTitle:"VISIBLE SECTIONS"}}}},c5t={sm:"0.5rem",md:"0.75rem",lg:"1rem"};function d5t(e){const t=c5t[e.gap??"md"]??"0.75rem",r=(e.stats??[]).map(o=>({id:o.id,title:o.title,iconUrl:o.icon,dataSource:o.dataSource,valueMapping:o.valueMapping,trendMapping:o.trendMapping,caption:o.caption,display:"metric"})),n=e.direction==="horizontal"||e.layoutMode==="flex-wrap";return{columns:n?Math.min(Math.max(e.stats?.length??1,1),6):e.columns??3,layoutMode:n?"flex-wrap":e.layoutMode??"grid",columnGap:t,rowGap:t,equalHeight:!0,cardLayout:"metric",cards:r}}function u5t(e,t){return{columns:1,equalHeight:!0,cardLayout:"metric",cards:[{id:e,title:t.title??"Stat",iconUrl:t.icon,dataSource:t.dataSource,valueMapping:t.valueMapping,trendMapping:t.trendMapping,caption:t.caption,display:"metric"}]}}function tse(e){return e.map(bg)}function bg(e){let t=e;return e.type==="stat_grid"?t={...e,type:"module_card_grid",config:d5t(e.config)}:e.type==="stat_card"&&(t={...e,type:"module_card_grid",config:u5t(e.id,e.config)}),Array.isArray(t.children)&&t.children.length>0?{...t,children:tse(t.children)}:t}const rse={padding:"md",showBorder:!1};function _g(e,t){const r="full";return e?{padding:e.padding??rse.padding,maxWidth:e.maxWidth??r,showBorder:e.showBorder??rse.showBorder}:{padding:"md",maxWidth:r,showBorder:!1}}function f5t(e){switch(e??"md"){case"none":return{"--iq-page-padding-inline":"0px","--iq-page-padding-block":"0px"};case"sm":return{"--iq-page-padding-inline":"0.75rem","--iq-page-padding-block":"0.75rem"};case"lg":return{"--iq-page-padding-inline":"1.5rem","--iq-page-padding-block":"1.5rem"};default:return{"--iq-page-padding-inline":"1rem","--iq-page-padding-block":"1rem"}}}function p5t(e){switch(e??"md"){case"none":return"";case"sm":return"p-3";case"lg":return"p-6 md:p-8";default:return"p-4 md:p-6"}}function h5t(e,t){if(t==="full-bleed")return"w-full max-w-none";switch(e??"full"){case"full":return"w-full max-w-none";case"sm":return"mx-auto w-full max-w-screen-sm";case"md":return"mx-auto w-full max-w-screen-md";case"lg":return"mx-auto w-full max-w-screen-lg";case"xl":return"mx-auto w-full max-w-screen-xl";case"2xl":return"mx-auto w-full max-w-2xl";case"4xl":return"mx-auto w-full max-w-4xl";case"5xl":return"mx-auto w-full max-w-5xl";case"6xl":return"mx-auto w-full max-w-6xl";case"7xl":return"mx-auto w-full max-w-7xl";default:return"w-full max-w-none"}}function y5t(e){switch(e){case"sidebar-main":return"grid grid-cols-1 gap-6 lg:grid-cols-[240px_1fr]";case"full-bleed":return"w-full";default:return"w-full"}}function m5t(e){const t=_g(e.container,e.layout);return B(y5t(e.layout),h5t(t.maxWidth,e.layout),p5t(t.padding),t.showBorder&&"rounded-lg border border-border")}const c1=1;function nse(){return{version:c1,layout:"stack",container:{padding:"md",maxWidth:"full",showBorder:!1},dataBindings:[],widgets:[],filterGroups:[]}}function ose(e){return{...e,config:e.config??{},children:Array.isArray(e.children)?e.children.map(ose):void 0}}function ase(e){return{version:c1,layout:e.layout??"stack",container:_g(e.container,e.layout),design:e.design,meta:e.meta,dataBindings:Array.isArray(e.dataBindings)?e.dataBindings:[],dataApis:e.dataApis??{},prepopulateApi:e.prepopulateApi,widgets:Array.isArray(e.widgets)?tse(e.widgets.map(ose)):[],filterGroups:Array.isArray(e.filterGroups)?e.filterGroups:[],eventHandlers:e.eventHandlers??[],navigation:e.navigation}}function ise(e){const t=e;return!t||typeof t!="object"?nse():(t.version!==c1&&(t.version=c1),ase(t))}function ki(e){return e&&typeof e=="object"?e:void 0}function sse(e){const t=ki(e);if(!t)throw new Error("Page render failed: empty response");const r=t.schema;if(!r||typeof r!="object")throw new Error("Page render failed: schema missing");const n=typeof t.pageId=="string"&&t.pageId.trim()||typeof t.id=="string"&&t.id.trim()||(typeof ki(t.page)?.id=="string"?String(ki(t.page).id):"");if(!n)throw new Error("Page render failed: page id missing");const o=typeof t.version=="number"?t.version:0;return{id:n,version:o,route:t.route,schema:r,embeddedForms:t.embeddedForms}}function g5t(e){const t=ki(e);if(!t)throw new Error("Page resolve failed: empty response");const r=ki(t.page),n=typeof t.pageId=="string"&&t.pageId.trim()||typeof r?.pageId=="string"&&r.pageId.trim()||(typeof ki(r?.page)?.id=="string"?String(ki(r.page).id):"");if(!n)throw new Error("Page resolve failed: pageId missing from response");const o=(typeof t.version=="number"?t.version:void 0)??(typeof r?.version=="number"?r.version:void 0)??0,a=r&&r.schema&&typeof r.schema=="object"?sse(r):void 0,i=ki(t.routeParams);return{pageId:n,version:o,...a?{renderPayload:a}:{},...i?{routeParams:i}:{}}}const kg={};function v5t(){const e=kg?.VITE_FORM_WORKFLOW_BUILDER_URL?.trim();return e?e.replace(/\/+$/,""):(kg?.VITE_API_BASE_URL?.trim()||kg?.VITE_API_URL?.trim()||"").replace(/\/+$/,"")}function b5t(e){}function _5t(){return v5t()}const Il=Jt.create({baseURL:_5t()});Il.interceptors.request.use(e=>{const t=ta();t&&(e.params={...e.params,clientId:t}),typeof FormData<"u"&&e.data instanceof FormData&&delete e.headers["Content-Type"];const r=ap();if(r){const n=e.headers??{};for(const[o,a]of Object.entries(r))a!==void 0&&a!==""&&(n[o]=a);e.headers=n}return e});async function Bd(e){const t=await Il.get("/api/page-builder/pages/resolve",{params:e}),r=t.data?.data??t.data;return g5t(r)}async function Hd(e,t,r){const n=await Il.get(`/api/page-builder/pages/${e}/render`,{params:{clientId:t,...r!==void 0?{version:r}:{}}}),o=n.data?.data??n.data;return sse(o)}async function Fl(e){const{clientId:t,api:r,context:n,filterState:o}=e,a=await Il.post(`/api/page-builder/clients/${t}/data-sources/execute`,{api:r,context:n,filterState:o});return a.data?.data??a.data}function k5t(e,t){if(!t)return{};const r={};for(const[n,o]of Object.entries(t)){if(!o.trim())continue;const a=fe(e,o);a!==void 0&&(r[n]=a)}return r}const S5t=/\/api\/v1\/masters\/schedules\/[^/?#]+\/slots\/?(?:[?#].*)?$/i;function lse(e){const t=(e.method??"GET").toUpperCase();if(t!=="PATCH"&&t!=="PUT")return!1;const r=(e.path??"").trim();return S5t.test(r)}function Sg(e){const t=[e.server_slot_id,e.id,e._id,e.slot_id];for(const r of t){const n=String(r??"").trim();if(n&&!n.startsWith("local-"))return n}return""}function x5t(e){return String(e.course_activity_id??e.subject_activity_id??"").trim()}function cse(e){if(e==null)return"00:00:00";const t=String(e);if(!t)return"00:00:00";const r=t.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?/);if(!r)return t;const n=r[1].padStart(2,"0"),o=r[2].padStart(2,"0"),a=(r[3]??"00").padStart(2,"0");return`${n}:${o}:${a}`}function dse(e){return Array.isArray(e)?e.filter(t=>t!=null&&typeof t=="object"&&!Array.isArray(t)):[]}function use(e){return{course_activity_id:x5t(e),day_of_week:Number(e.day_of_week),start_time:cse(e.start_time),end_time:cse(e.end_time),sequence:e.sequence!=null?Number(e.sequence):null,is_active:e.is_active!==!1}}function w5t(e,t){return e.course_activity_id===t.course_activity_id&&e.day_of_week===t.day_of_week&&e.start_time===t.start_time&&e.end_time===t.end_time&&e.sequence===t.sequence&&e.is_active===t.is_active}function xg(e){return JSON.parse(JSON.stringify(e??[]))}function M5t(e){const t=new Map;for(const r of dse(e)){const n=Sg(r);n&&t.set(n,use(r))}return t}function P5t(e,t){const r=dse(e),n=M5t(t),o=[];for(const i of r){const s=Sg(i),l=use(i);if(!s){if(!l.course_activity_id||Number.isNaN(l.day_of_week))continue;o.push({course_activity_id:l.course_activity_id,day_of_week:l.day_of_week,start_time:l.start_time,end_time:l.end_time,...i.sequence!==void 0?{sequence:Number(i.sequence)}:{},is_active:!0});continue}const c=n.get(s);(!c||!w5t(l,c))&&o.push({id:s,course_activity_id:l.course_activity_id,day_of_week:l.day_of_week,start_time:l.start_time,end_time:l.end_time,...i.sequence!==void 0?{sequence:Number(i.sequence)}:{},is_active:l.is_active})}const a=new Set(r.map(i=>Sg(i)).filter(i=>!!i));for(const[i,s]of n)a.has(i)||o.push({id:i,course_activity_id:s.course_activity_id,day_of_week:s.day_of_week,start_time:s.start_time,end_time:s.end_time,...s.sequence!=null?{sequence:s.sequence}:{},is_active:!1});return o}function O5t(e){if(e.slotsBaseline!==void 0)return e.slotsBaseline;const t=e.prepopulateResponse;if(t&&typeof t=="object"){const n=t,o=n.data;if(o&&typeof o=="object"){const i=o.slots;if(Array.isArray(i))return i}const a=n.slots;if(Array.isArray(a))return a}const r=e.schedule;return r&&typeof r=="object"&&Array.isArray(r.slots)?r.slots:[]}function fse(e){const t=O5t(e),r=P5t(e.slots,t);return{context:{...e,slots:r},patch:r}}function pse(e){if(!e||typeof e!="object")return;const t=e,r=n=>{if(!n||typeof n!="object")return;const o=n.slots;return Array.isArray(o)?o:void 0};return r(t)??r(t.data)??r(t.data?.data)}function N5t(e){const t=e.trim();if(t.startsWith("[")&&t.endsWith("]")||t.startsWith("{")&&t.endsWith("}")||t==="null"||t==="true"||t==="false"||t.startsWith('"')&&t.endsWith('"')||/^-?\d+(\.\d+)?$/.test(t))try{return JSON.parse(t)}catch{return}}function j5t(e,t){const r=(t??"").trim();if(!r||r===".")return e;const n=N5t(r);return n!==void 0?n:fe(e,r)}function jo(e,t){return!e||typeof e!="string"?e:e.replace(/\{\{([^}]+)\}\}/g,(r,n)=>{const o=n.trim(),a=fe(t,o);return a==null?"":String(a)})}function hse(e,t){return typeof e=="string"?jo(e,t):Array.isArray(e)?e.map(r=>hse(r,t)):e&&typeof e=="object"?Dl(e,t):e}function Dl(e,t){const r={};for(const[n,o]of Object.entries(e))r[n]=hse(o,t);return r}const A5t=1e3,T5t=5e3,C5t=1800*1e3;function E5t(e){return new Promise(t=>setTimeout(t,e))}function z5t(e,t){const r=t.trim(),n=r?[r,`data.${r}`,`response.${r}`]:["data.data.job_id","data.job_id","job_id"];for(const o of n){const a=fe(e,o);if(a!=null&&String(a).trim())return String(a).trim()}}function $5t(e,t){const r=t.trim(),n=[r,`data.${r}`,`response.${r}`];for(const o of n){const a=fe(e,o);if(a!=null&&String(a).trim())return String(a).trim().toLowerCase()}}function I5t(e,t){if(!t?.trim())return;const r=t.trim(),n=[r,`data.${r}`,`response.${r}`];for(const o of n){const a=fe(e,o);if(typeof a=="string"&&a.trim())return a.trim()}}function F5t(e){const t=["data.error_message","error_message","data.data.error_message","message"];for(const r of t){const n=fe(e,r);if(typeof n=="string"&&n.trim())return n.trim()}}function D5t(e,t){return{id:`${e.id}-job-poll`,name:"Job status poll",enabled:!0,baseUrl:e.baseUrl,path:t.pollPath,method:t.pollMethod??"GET",queryParams:t.pollQueryParams,headers:t.pollHeaders,auth:e.auth}}function yse(e){return!!(e?.jobIdPath?.trim()&&e?.pollPath?.trim())}async function mse(e){const{jobPoll:t,startResponse:r,context:n,clientId:o,startApi:a}=e,i=z5t(r,t.jobIdPath);if(!i)throw new Error("Could not read job id from the start API response.");const s=D5t(a,t),l={...n,job_id:i,jobId:i},c=t.statusPath?.trim()||"data.status",u=(t.completedStatus??"completed").trim().toLowerCase(),d=(t.failedStatus??"failed").trim().toLowerCase(),p=t.initialIntervalMs??A5t,y=t.maxIntervalMs??T5t,m=t.maxWaitMs??C5t,g=`page-api-job-poll-${i}`,v=t.loadingMessage?.trim()||"Processing…";e.silent||Qe.toast.loading(v,{id:g});const b=Date.now()+m;let _=p,x;try{for(;Date.now()<b;){x=await Fl({clientId:o,api:s,context:l});const w=$5t(x,c);if(w===u)return e.silent||Qe.toast.success(t.successMessage?.trim()||"Done",{id:g}),x;if(w===d)throw new Error(F5t(x)||"Job failed");const S=I5t(x,t.progressMessagePath);!e.silent&&S&&Qe.toast.loading(S,{id:g}),await E5t(_),_=Math.min(Math.floor(_*1.5),y)}throw new Error("Operation timed out. Try again later or refresh the page.")}catch(w){throw e.silent||Qe.toast.dismiss(g),w}}function L5t(e){return Array.isArray(e)?e.map(t=>{if(!t||typeof t!="object"||Array.isArray(t))return t;const r={...t};return delete r.id,r}):e}function gse(e){return e&&typeof e=="object"&&!Array.isArray(e)?{response:e,...e}:{response:e}}function d1(e,t,r){const n={};for(const o of e.mappings??[]){if(!o.contextKey)continue;const a=j5t(t,o.path);n[o.contextKey]=e.omitListItemIds?L5t(a):a}r(n)}function vse(e,t,r){const o=pse(t)??r;e({slots:o,slotsBaseline:xg(o)})}async function bse(e){const t=e.action.api;if(!t?.path)return;let r=e.context;const n=lse(t);if(n){const{context:l,patch:c}=fse(e.context);if(c.length===0){e.silent||Qe.toast.info("No timetable changes to save.");return}r=l}const o=await Fl({clientId:e.clientId,api:t,context:r});e.assertResponse?.(o);const a=e.action.jobPoll,i=yse(a);i&&await mse({clientId:e.clientId,startApi:t,jobPoll:a,startResponse:o,context:r,silent:e.silent});const s=e.action.onSuccess;if(s?.type==="set_context"){d1(s,gse(o),e.setContextValues),n&&vse(e.setContextValues,o,r.slots),await e.invalidateQueries?.(),!e.silent&&!i&&Qe.toast.success(Ad(o)??"Updated");return}n&&vse(e.setContextValues,o,e.context.slots),await e.invalidateQueries?.(),!e.silent&&!i&&Qe.toast.success(Ad(o)??"Saved"),s&&e.onNavigateSuccess&&await e.onNavigateSuccess({...s,payload:{response:o}})}function q5t(e,t){return e.replace(/\{\{([^}]+)\}\}/g,(n,o)=>{const a=o.trim(),i=a in t?t[a]:fe(t,a);return i!=null?String(i):""}).replace(/\{([a-zA-Z_][a-zA-Z0-9_]*)\}/g,(n,o)=>{const a=o in t?t[o]:fe(t,o);return a!=null?String(a):""})}function _se(e,t){const r=e.api??(e.dataSourceRef?t?.[e.dataSourceRef]:void 0);return r?.path?{...e,api:r}:null}function kse(e,t){const n={...e,...t?.payload??{}}.row;if(n&&typeof n=="object"&&!Array.isArray(n))return{row:n}}function wr(e,t,r,n,o){const a=o?.dispatchPayload,i=s=>a?r(s,n,"click",a):r(s,n,"click");if(e.type==="set_context"){o?.setContextValues&&d1(e,o.payload??t,o.setContextValues),i(e);return}if(e.type==="navigate"){const s=q5t(e.href,{...t,...o?.payload??{}});if(!s.trim())return;i({...e,href:s});return}if(e.type==="api"){const s=_se(e,o?.dataApis);if(!s)return;i({...s,payload:{...t,...o?.payload??{}}});return}if(e.type==="navigate_page"&&e.pageId){i({...e,params:e.params?Dl(e.params,{...t,...o?.payload??{}}):void 0});return}if(e.type==="workflow"&&e.workflowId){const s=kse(t,o);i(s?{...e,payload:s}:e);return}if(e.type==="emit"){const s=t.row,l=e.payload!=null?Dl(e.payload,t):s&&typeof s=="object"?{row:s}:void 0;r({...e,payload:l},n,"click");return}if(e.type==="modal"){const s=kse(t,o),l={...t,...o?.payload??{}};r(s?{...e,payload:s}:e,n,"click",l);return}i(e)}const B5t=/\{(?:ctx:|@)?([a-zA-Z_][a-zA-Z0-9_]*)(?:\.[a-zA-Z0-9_.[\]-]+)?\}/g;function wg(e){if(!e)return[];const t=new Set,r=n=>{if(typeof n=="string"&&n){for(const o of n.matchAll(B5t))t.add(o[1]);return}if(Array.isArray(n)){n.forEach(r);return}n&&typeof n=="object"&&Object.values(n).forEach(r)};r(e.path),r(e.baseUrl),r(e.bodyTemplate);for(const n of[...e.queryParams??[],...e.headers??[],...e.bodyFields??[]])r(n?.key),r(n?.value);if(e.auth)for(const n of Object.values(e.auth))r(n);return[...t]}function u1(e){const t=e.prepopulateApi;return!!(t?.enabled&&t.api?.path?.trim())}function Sse(e){if(!(!e||Object.keys(e).length===0))return e}function Ll(e,t){if(e===t)return!0;const r=Sse(e),n=Sse(t);if(r===n)return!0;if(!r||!n)return!1;e=r,t=n;const o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(const i of o)if(e[i]!==t[i])return!1;return!0}function f1(e){return e===!0||e==="true"||e===1||e==="1"}function H5t(e,t){return t in e?e[t]:fe(e,t)}function V5t(e){const t=e.label?.trim()??"",r=e.when??[];return!t||r.length===0?!1:r.every(n=>(n.field?.trim()??"").length>0)}function xse(e,t){const r=t.field?.trim()??"";if(!r)return!1;const n=H5t(e,r);switch(t.op){case"truthy":return f1(n);case"falsy":return!f1(n);case"eq":return typeof t.value=="boolean"?f1(n)===t.value:typeof t.value=="string"&&typeof n=="string"?n.trim().toUpperCase()===t.value.trim().toUpperCase():n===t.value;case"neq":return typeof t.value=="boolean"?f1(n)!==t.value:typeof t.value=="string"&&typeof n=="string"?n.trim().toUpperCase()!==t.value.trim().toUpperCase():n!==t.value;default:return!1}}function wse(e,t,r=""){for(const n of t)if(n.when.length>0&&n.when.every(o=>xse(e,o)))return n.label;return r}const U5t=[{when:[{field:"isPlanned",op:"falsy"}],label:"Not planned"},{when:[{field:"isPlanned",op:"truthy"},{field:"isDelivered",op:"truthy"}],label:"Delivered"},{when:[{field:"isPlanned",op:"truthy"}],label:"Planned"}];function W5t(e,t="capitalize"){if(!e)return e;switch(t){case"upper":return e.toUpperCase();case"lower":return e.toLowerCase();default:return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}}function ql(e,t){if(e==null)return"";if(!t||t.type==="none")return String(e);switch(t.type){case"number":{const r=Number(e);return Number.isNaN(r)?String(e):r.toFixed(t.decimals??0)}case"currency":{const r=Number(e);return Number.isNaN(r)?String(e):new Intl.NumberFormat(void 0,{style:"currency",currency:t.currency??"USD"}).format(r)}case"percent":{const r=Number(e);return Number.isNaN(r)?String(e):`${r.toFixed(t.decimals??0)}%`}case"date":{const r=new Date(String(e));return Number.isNaN(r.getTime())?String(e):r.toLocaleDateString(void 0,{...t.format?{}:{}})}case"template":return t.template.replace(/\{\{value\}\}/g,String(e));case"boolean_labels":return e===!0||e==="true"||e===1||e==="1"?t.trueLabel??"Yes":t.falseLabel??"No";case"text_case":return W5t(String(e),t.mode??"capitalize");case"row_label_rules":return t.defaultLabel??"";default:return String(e)}}function K5t(e,t,r){const n=t.whenLabels??[];for(const a of n)if(V5t(a)&&a.when.every(i=>xse(r,i)))return a.label.trim();return e===!0||e==="true"||e===1||e==="1"?t.trueLabel??"Yes":t.falseLabel??"No"}function p1(e,t,r){return!t||t.type==="none"?e==null?"":String(e):t.type==="row_label_rules"?wse(r,t.rules,t.defaultLabel??""):t.type==="boolean_labels"&&(t.whenLabels?.length??0)>0?K5t(e,t,r):ql(e,t)}function Ar(e,t){const r=fe(e,t.path);return r==null?t.fallback??r:t.formatter?ql(r,t.formatter):r}function Mse(e,t){if(!t)return{};const r={};for(const[n,o]of Object.entries(t))o in e&&(r[n]=e[o]);return r}const G5t=75;function R5t(e){return e??G5t}function Y5t(e){return e?"rounded-md border border-border p-3":""}function X5t(e){return e?{"data-form-embed-bordered":"true"}:void 0}function Mg({scrollBehavior:e="page",maxHeightPercent:t,children:r,className:n,...o}){if(e!=="contained")return!n&&Object.keys(o).length===0?f.jsx(f.Fragment,{children:r}):f.jsx("div",{className:n,...o,children:r});const a=R5t(t);return f.jsx("div",{className:B("min-w-0 overflow-y-auto overflow-x-hidden",n),style:{maxHeight:`${a}vh`},"data-form-embed-scroll":"contained",...o,children:r})}const Pg="/api/bff/workflows";function Z5t(e){const t=e.moduleId??e.module_id;return t!=null?String(t).trim():""}function Pse(e){const t=ote(),r=e.userId??e.user_id??t?.userId;return r!=null&&String(r).trim()!==""?String(r):void 0}function J5t(e){const t=String(e.clientId??ta()??""),r=Pse(e);return()=>s1({getAuthHeaders:()=>ym()??{},clientId:t||void 0,userId:r})}function Og(e,t){const r=Z5t(e);if(!r)return null;const n=t?.bffWorkflowsBasePath??Pg,o=String(e.clientId??ta()??""),a=Pse(e),i=J5t(e),s=t?.workflowModalHandlers??Jie({bffWorkflowsBasePath:n,moduleId:r,getAuthHeaders:i,clientId:o||void 0,userId:a});return{getWorkflowState:t?.getWorkflowState??(c=>Qie({bffWorkflowsBasePath:n,moduleId:c.moduleId,featureId:c.featureId,tenantId:c.tenantId,subjectUserId:c.subjectUserId,viewStepId:c.viewStepId,clientId:c.clientId??(o||void 0),getAuthHeaders:i})),workflowModalHandlers:s,getAuthHeaders:i,moduleId:r}}function Q5t(e,t,r){return["embedded-form",e,t,r??"latest"]}async function eMt(e,t){try{const r=await Dr.get(`/api/form-builder/form-layouts/form/${e}`,{params:{clientId:t}});let n=r.data?.data??r.data;for(;n&&typeof n=="object"&&!Array.isArray(n)&&n.data!=null&&typeof n.data=="object"&&!("rows"in n)&&!("columns"in n)&&!("formDefinitionId"in n);)n=n.data;return!n||typeof n!="object"||Array.isArray(n)||!("rows"in n)&&!("columns"in n)&&!("formDefinitionId"in n)?null:n}catch{return null}}async function tMt(e,t,r){const n=r!==void 0?`/api/form-builder/forms/${e}/render?version=${r}`:`/api/form-builder/forms/${e}/render`,o=await Dr.get(n,{params:{clientId:t}}),i=o.data?.data??o.data,s=i.form??i,l=i.fields??s.fields??[];let c=i.layout??s.layout??null;(!c||typeof c.columns!="number")&&(c=await eMt(e,t));const u=i.rules??s.rules??[],d=ys(s,l,c,u),p=Mf({config:d.config,layout:d.layout},wf(c))??wf(c);return{schema:d,gridLayout:p}}const rMt=300*1e3;function Ng({formId:e,mode:t="fill",contextFieldMapping:r,pageContext:n,clientId:o,formVersion:a,scrollBehavior:i,maxHeightPercent:s,showBorder:l,onClose:c,showModalCloseButton:u}){const d=hMt(),{data:p,isLoading:y,isError:m,error:g}=Pn.useQuery({queryKey:Q5t(e,o,a),queryFn:()=>tMt(e,o,a),staleTime:rMt}),v=k.useMemo(()=>Mse(n,r),[n,r]),b=Y5t(l),_=X5t(l),x=typeof p?.schema?.moduleId=="string"?p.schema.moduleId.trim():"",w=d?.context.moduleId!=null?String(d.context.moduleId).trim():"",S=x||w||void 0,M=k.useMemo(()=>d?.workflowModalHandlers||!S?null:Og({...n,clientId:o||n.clientId,moduleId:S}),[d?.workflowModalHandlers,S,n,o]),P=d?.workflowModalHandlers??M?.workflowModalHandlers,N=d?.getAuthHeaders??M?.getAuthHeaders;return y?f.jsx(Mg,{scrollBehavior:i,maxHeightPercent:s,className:b,..._,children:f.jsx(tn,{})}):m?f.jsx(Mg,{scrollBehavior:i,maxHeightPercent:s,className:b,..._,children:f.jsx("p",{className:"text-sm text-destructive",children:g instanceof Error?g.message:"Failed to load form"})}):p?.schema?f.jsx(Mg,{scrollBehavior:i,maxHeightPercent:s,className:b,..._,children:f.jsx(n1,{schema:p.schema,mode:t,gridLayout:p.gridLayout,initialValues:v,submissionContext:n,moduleId:S,workflowModalHandlers:P,getAuthHeaders:N,onClose:c,showModalCloseButton:u})}):null}function nMt({modal:e,pageContext:t,clientId:r,onClose:n}){const o=Pn.useQueryClient(),a=i=>{i||(o.invalidateQueries({queryKey:["page-ds"]}),n())};return f.jsx(us,{open:!!e?.formId,onOpenChange:a,children:f.jsxs(fs,{showCloseButton:!0,className:"max-h-[85vh] overflow-y-auto sm:max-w-3xl",children:[f.jsx(ps,{className:"pr-8",children:f.jsx(hs,{children:e?.title||e?.formName||"Form"})}),e?.formId?f.jsx(Ng,{formId:e.formId,mode:"fill",contextFieldMapping:e.contextFieldMapping,pageContext:t,clientId:r,scrollBehavior:"page",showModalCloseButton:!1,onClose:()=>a(!1)}):null]})})}function oMt({open:e,presentation:t,isPending:r=!1,onCancel:n,onConfirm:o}){return t?f.jsx(us,{open:e,onOpenChange:a=>{!a&&!r&&n()},children:f.jsxs(fs,{showCloseButton:!r,className:"sm:max-w-md",children:[f.jsxs(ps,{children:[f.jsx(hs,{children:t.title}),t.description?f.jsx(Goe,{className:"text-left whitespace-pre-wrap",children:t.description}):null]}),f.jsxs(g2,{className:"gap-2 sm:gap-2",children:[f.jsx(st,{type:"button",variant:"outline",disabled:r,onClick:n,children:t.cancelLabel}),f.jsx(st,{type:"button",variant:t.confirmVariant,disabled:r,onClick:o,children:r?"Please wait…":t.confirmLabel})]})]})}):null}function Ose(e,t){const r={},n=o=>{if(!o||typeof o!="object")return;const a=o.row;a&&typeof a=="object"&&!Array.isArray(a)&&Object.assign(r,a);for(const[i,s]of Object.entries(o))i!=="row"&&(r[i]=s)};return n(e.payload),n(t),r}function jg(e,...t){const r={...e};for(const n of t)!n||typeof n!="object"||Object.assign(r,n);return r}function h1(e,t,r){return e==null||e===""?"":jo(e,t).replace(/\s{2,}/g," ").trim()}function aMt(e){return!!e.confirm?.title?.trim()}function iMt(e,t){const r=e.confirm?.title?.trim();if(!r)return null;const n=jg(t,{}),o=h1(r,n)||r,a=e.confirm?.description?.trim(),i=a?h1(a,n)||a:void 0;return{title:o,description:i,cancelLabel:e.confirm?.cancelLabel?.trim()||"Cancel",confirmLabel:e.confirm?.confirmLabel?.trim()||"Confirm",confirmVariant:e.confirm?.confirmVariant??"destructive"}}function sMt(e){if(e==null||typeof e!="object"||Array.isArray(e))return e;const t=e;return t.raw!=null&&typeof t.raw=="object"?{id:t.id,date:t.date,day:t.day,fromTime:t.fromTime,toTime:t.toTime,title:t.title,subtitle:t.subtitle,label:t.label}:e}function lMt(e){const t={...e};for(const r of Object.keys(t))(r==="selectedEvent"||r.endsWith("Event"))&&(t[r]=sMt(t[r]));return t}const Nse=new Set(["selectedEventId","selectedEvent","detailReady"]);function cMt(e){const t={},r={};for(const[n,o]of Object.entries(e))Nse.has(n)?t[n]=o:r[n]=o;return{local:t,bubble:r}}const dMt=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function y1(e){if(e==null||e==="")return;const t=String(e).trim();return dMt.test(t)?t:void 0}function uMt(e,t){const r=y1(e.tenant_id),n=y1(e["ctx:tenantId"]),o=y1(t),a=y1(e.tenantId);return r||n||o||a}function m1(e,t){const r=uMt(e,t);return!r||e.tenantId===r&&e.tenant_id===r&&e["ctx:tenantId"]===r?e:{...e,tenantId:r,tenant_id:r,"ctx:tenantId":r}}const Ag=k.createContext(null);function fMt(e,t){return u1(e)&&String(t.clientIdProp??t.externalContext.clientId??t.parentContext?.clientId??"")?"loading":"idle"}function jse(e,t){const r={};for(const n of e){let o;switch(n.source){case"route.param":o=n.param?t[n.param]:void 0;break;case"route.query":o=n.param?t[n.param]:void 0;break;case"context.user":o=n.param?t.user?.[n.param]:t.user;break;case"context.client":o=n.param?t.client?.[n.param]:t.client??t.clientId;break;case"context.tenant":o=n.param?t.tenant?.[n.param]:t.tenant??t.tenantId;break;case"static":o=n.value;break;case"widget.state":o=n.sample;break;default:o=void 0}o===void 0&&n.sample!==void 0&&(o=n.sample),o!==void 0&&(r[n.key]=o)}return r}function pMt({schema:e,context:t={},clientId:r,nestingDepth:n=0,onAction:o,getWorkflowState:a,workflowModalHandlers:i,getAuthHeaders:s,delegateModalToHost:l,parentContext:c,children:u}){const d=Pn.useQueryClient(),[p,y]=k.useState(()=>c?c.filterGroups:{}),m=k.useRef(p);m.current=p;const[g,v]=k.useState(null),[b,_]=k.useState(null),[x,w]=k.useState(!1),[S,M]=k.useState({}),[P,N]=k.useState({}),[A,C]=k.useState(()=>fMt(e,{parentContext:c,clientIdProp:r,externalContext:t})),O=k.useRef(null),j=u1(e),z=!!c&&!j,E=!c||j,$=c?.context,F=k.useRef($);F.current=$;const q=String(r??t.clientId??c?.clientId??""),D=k.useMemo(()=>{const ie=e.prepopulateApi;if(!ie?.enabled||!ie.api?.path)return"";const Ae=new Set(wg(ie.api));for(const Le of e.dataBindings??[])Le.key?.trim()&&Ae.add(Le.key.trim()),Le.param?.trim()&&Ae.add(Le.param.trim());if(Ae.size===0)return"";const Ce={};for(const Le of Ae)Ce[Le]=S[Le];return JSON.stringify(Ce)},[e.prepopulateApi,e.dataBindings,S]),H=JSON.stringify(t),I=$&&$!==t?JSON.stringify($):"";k.useEffect(()=>{if(z)return;const ie=e.prepopulateApi;if(!ie?.enabled||!ie.api?.path||!q){N({}),C("idle"),O.current=null;return}const Ae=JSON.stringify({path:ie.api.path,method:ie.api.method,queryParams:ie.api.queryParams,headers:ie.api.headers,bodyFields:ie.api.bodyFields,auth:ie.api.auth,mapping:ie.contextMapping,bindings:e.dataBindings,context:H,inheritedContext:I,runtimeContext:D});if(O.current===Ae)return;let Ce=!1;return O.current=Ae,C("loading"),(async()=>{try{const _e={...F.current,...t},Ee=jse(e.dataBindings??[],_e),He={..._e,...Ee,...S},tt=await Fl({clientId:q,api:ie.api,context:He});if(Ce)return;const be=k5t(tt,ie.contextMapping),Oe={...be,prepopulateResponse:tt};be.slots!==void 0&&(Oe.slotsBaseline=xg(be.slots)),N(Oe),C("ready")}catch{Ce||(N({}),C("error"))}})(),()=>{Ce=!0,O.current=null}},[z,e.prepopulateApi,e.dataBindings,H,I,D,q]);const L=k.useMemo(()=>{if(z)return m1({...$,...t,...S});const ie={...$,...t},Ae=jse(e.dataBindings??[],ie);return m1({...ie,...Ae,...P,...S})},[z,$,t,e.dataBindings,P,S]),R=String(r??L.clientId??c?.clientId??""),V=k.useCallback((ie,Ae,Ce)=>{y(Le=>{const _e=Le[ie]??{};return _e[Ae]===Ce?Le:{...Le,[ie]:{..._e,[Ae]:Ce}}})},[]),G=k.useCallback((ie,Ae,Ce)=>{y(Le=>{const _e=Le[ie]??{},Ee={..._e,...Ae};if(Ce?.resetKeys?.length)for(const He of Ce.resetKeys)He in Ae||delete Ee[He];return Ll(_e,Ee)?Le:{...Le,[ie]:Ee}})},[]),Z=k.useCallback(ie=>m.current[ie]??{},[]),te=k.useCallback(ie=>{const Ae=lMt(ie);if(c&&!E){const{local:Ce,bubble:Le}=cMt(Ae);Object.keys(Ce).length>0&&M(_e=>({..._e,...Ce})),Object.keys(Le).length>0&&c.setContextValues(Le);return}M(Ce=>{let Le=!1;for(const[_e,Ee]of Object.entries(Ae))if(Ce[_e]!==Ee){Le=!0;break}return Le?{...Ce,...Ae}:Ce})},[c,E]),K=k.useCallback((ie,Ae)=>{if(c&&!E){if(Nse.has(ie)){M(Ce=>Ce[ie]===Ae?Ce:{...Ce,[ie]:Ae});return}c.setContextValue(ie,Ae);return}M(Ce=>Ce[ie]===Ae?Ce:{...Ce,[ie]:Ae})},[c,E]),re=k.useRef(L);re.current=L;const Q=k.useRef(te);Q.current=te;const ee=k.useRef(o);ee.current=o;const J=k.useRef(R);J.current=R;const W=k.useCallback(async(ie,Ae,Ce,Le)=>{await bse({action:ie,clientId:J.current,context:Ae,setContextValues:Q.current,invalidateQueries:()=>d.invalidateQueries({queryKey:["page-ds"]}),onNavigateSuccess:_e=>{ee.current?.({..._e,sourceWidgetId:Ce,event:Le})}})},[d]),ye=k.useCallback((ie,Ae,Ce,Le)=>{if(ie.type==="modal"&&ie.formId){if(c){c.dispatchAction(ie,Ae,Ce,Le);return}const Ee=o;if(l&&Ee){Ee({...ie,sourceWidgetId:Ae,event:Ce,...Le!==void 0?{payload:Le}:{}});return}const He=Ose(ie,Le),tt=jg(re.current,He),be=ie.title?h1(ie.title,tt):"";v({formId:ie.formId,formName:ie.formName,title:be||ie.title,contextFieldMapping:ie.contextFieldMapping,contextOverlay:He});return}const _e=o??c?.onAction;if(ie.type==="api"){if(c&&!E){c.dispatchAction(ie,Ae,Ce,Le);return}const Ee=_se(ie,e.dataApis);if(!Ee)return;const He={...re.current,...ie.payload??{},...Le??{}};if(aMt(Ee)){const tt=iMt(Ee,He);if(tt){_({resolvedAction:Ee,actionContext:He,presentation:tt,sourceWidgetId:Ae,event:Ce});return}}(async()=>{try{await W(Ee,He,Ae,Ce)}catch(tt){Qe.toast.error(tt instanceof Error?tt.message:"Action failed")}})();return}if(ie.type==="navigate"&&ie.href&&!_e){ie.openIn==="new"?window.open(ie.href,"_blank","noopener,noreferrer"):window.location.assign(ie.href);return}_e?.({...ie,sourceWidgetId:Ae,event:Ce,payload:{...ie.payload??{},...Le??{}},context:L})},[o,c,E,l,d,L,e.dataApis,W]),oe=k.useCallback(()=>{x||_(null)},[x]),ce=k.useCallback(()=>{const ie=b;!ie||x||(async()=>{w(!0);try{await W(ie.resolvedAction,ie.actionContext,ie.sourceWidgetId,ie.event),_(null)}catch(Ae){Qe.toast.error(Ae instanceof Error?Ae.message:"Action failed")}finally{w(!1)}})()},[b,x,W]),de=k.useMemo(()=>({schema:e,context:L,clientId:R,prepopulateStatus:j?A:c?.prepopulateStatus??A,nestingDepth:n,onAction:o??c?.onAction,getWorkflowState:a??c?.getWorkflowState,workflowModalHandlers:i??c?.workflowModalHandlers,getAuthHeaders:s??c?.getAuthHeaders,filterGroups:p,setFilterValue:V,replaceFilterGroup:G,getFilterGroup:Z,setContextValues:te,setContextValue:K,dispatchAction:ye}),[e,L,R,j,A,c?.prepopulateStatus,n,o,c?.onAction,a,c?.getWorkflowState,i,c?.workflowModalHandlers,s,c?.getAuthHeaders,p,V,G,Z,te,K,ye]),ve=k.useMemo(()=>{const ie=g?.contextOverlay;return!ie||Object.keys(ie).length===0?L:{...L,...ie}},[L,g?.contextOverlay]);return f.jsxs(Ag.Provider,{value:de,children:[u,!c&&f.jsxs(f.Fragment,{children:[f.jsx(nMt,{modal:g,pageContext:ve,clientId:R,onClose:()=>v(null)}),f.jsx(oMt,{open:b!=null,presentation:b?.presentation??null,isPending:x,onCancel:oe,onConfirm:ce})]})]})}function jt(){const e=k.useContext(Ag);if(!e)throw new Error("usePageContext must be used within PageContextProvider");return e}function hMt(){return k.useContext(Ag)}function Bl(e,t){if(!e)return!0;const r=(e.rules??[]).map(a=>yMt(a,t)),n=(e.groups??[]).map(a=>Bl(a,t)),o=[...r,...n];return o.length===0?!0:e.logic==="and"?o.every(Boolean):o.some(Boolean)}function yMt(e,t){const r=Tse(e.left,t),n=e.right?Tse(e.right,t):void 0;let o;switch(e.operator){case"eq":o=r===n;break;case"neq":o=r!==n;break;case"gt":o=Number(r)>Number(n);break;case"gte":o=Number(r)>=Number(n);break;case"lt":o=Number(r)<Number(n);break;case"lte":o=Number(r)<=Number(n);break;case"contains":o=String(r??"").includes(String(n??""));break;case"not_contains":o=!String(r??"").includes(String(n??""));break;case"empty":o=Ase(r);break;case"not_empty":o=!Ase(r);break;default:o=!0}return e.negated?!o:o}function Ase(e){return e==null||e===""||e===!1}function Tse(e,t){if(e.type==="static"||e.type==="literal")return e.value;if(e.type==="binding")return t[e.key];if(e.type==="context")return t[e.path]}const mMt=5,Cse=1;function Hl(e){return Number.isFinite(e)?Math.min(mMt,Math.max(Cse,Math.round(e))):Cse}function gMt(e,t){const r=Hl(t),n=Array.from({length:r},()=>[]);return e.forEach((o,a)=>{const i=o.config,s=i.columnIndex!==void 0?Math.min(Math.max(0,i.columnIndex),r-1):a%r;n[s].push(o)}),n}function vMt(e){return Number.isFinite(e)?Math.min(100,Math.max(0,Math.round(e))):0}function bMt(e,t){const r=Math.max(1,t),n=Math.min(100,Math.max(0,Math.round(e))),o=Math.floor(n/r),a=n-o*r;return Array.from({length:r},(i,s)=>o+(s<a?1:0))}function Ese(e){return bMt(100,Hl(e))}function _Mt(e){const t=e.trim(),r=/^(\d+(?:\.\d+)?)\s*%?$/.exec(t);return r?vMt(Number(r[1])):null}function zse(e,t){const r=Hl(t),n=[];for(let a=0;a<r;a++){const i=_Mt(e?.[a]??"");if(i===null)return Ese(r);n.push(i)}return n.reduce((a,i)=>a+i,0)!==100?Ese(r):n}function kMt(e){return e==="sm"?"gap-2":e==="lg"?"gap-6":"gap-4"}function $se(e,t){return zse(t,Hl(e)).map(n=>`minmax(0, ${n}fr)`).join(" ")}function SMt(e){return e.length?e.map(t=>`minmax(0, ${t}fr)`).join(" "):"minmax(0, 1fr)"}function xMt(e,t,r,n){const o=Hl(t),a=gMt(e,o),i=zse(r,o);if(!(n?.collapseEmpty!==!1))return{columns:a,gridTemplate:$se(o,r),sourceIndices:a.map((p,y)=>y)};const l=a.map((p,y)=>({colChildren:p,index:y,percent:i[y]??0})).filter(p=>p.colChildren.length>0);if(l.length===0||l.length===a.length)return{columns:a,gridTemplate:$se(o,r),sourceIndices:a.map((p,y)=>y)};const c=l.reduce((p,y)=>p+y.percent,0),u=l.map(p=>c>0?Math.round(p.percent/c*100):Math.round(100/l.length)),d=100-u.reduce((p,y)=>p+y,0);return d!==0&&u.length>0&&(u[0]+=d),{columns:l.map(p=>p.colChildren),gridTemplate:SMt(u),sourceIndices:l.map(p=>p.index)}}function Ise(e){if(!e)return{className:"",style:{},hasCustomStyle:!1};const t={};e.backgroundColor&&(t.backgroundColor=e.backgroundColor),e.textColor&&(t.color=e.textColor),e.borderColor&&(t.borderColor=e.borderColor),e.borderWidth&&(t.borderWidth=e.borderWidth),e.borderRadius&&(t.borderRadius=e.borderRadius),e.padding&&(t.padding=e.padding),e.margin&&(t.margin=e.margin),e.width&&(t.width=e.width==="full"?"100%":e.width),e.height&&(t.height=e.height),e.minHeight&&(t.minHeight=e.minHeight),e.minWidth&&(t.minWidth=e.minWidth),e.maxWidth&&(t.maxWidth=e.maxWidth),e.fontSize&&(t.fontSize=e.fontSize),e.fontWeight&&(t.fontWeight=e.fontWeight),e.textAlign&&(t.textAlign=e.textAlign);const r=Object.keys(t).length>0;return{className:"",style:t,hasCustomStyle:r}}function wMt(e){if(!e)return"";const t=e.textAlign==="center"||e.textAlign==="right"||e.justifyContent==="center"||e.justifyContent==="end";return B(t&&"flex flex-col",e.textAlign==="center"&&"items-center text-center [&_[data-page-widget=heading]]:text-center [&_[data-page-widget=text]]:text-center [&_[data-page-widget=image]]:mx-auto",e.textAlign==="right"&&"items-end text-right [&_[data-page-widget=heading]]:text-right [&_[data-page-widget=text]]:text-right [&_[data-page-widget=image]]:ml-auto",e.justifyContent==="center"&&"justify-center",e.justifyContent==="end"&&"justify-end")}function MMt(e,t){return e?.enabled!=null?e.enabled:!!t}function PMt(e){const t={marginTop:e.spacing?.trim()||"1rem",marginBottom:0,border:"none",borderTopStyle:e.style??"solid",borderTopWidth:e.width?.trim()||"1px"};return e.color?.trim()&&(t.borderTopColor=e.color.trim()),t}function g1({config:e,legacyShowDivider:t,className:r}){if(!MMt(e,t))return null;const o=PMt({...e});return f.jsx("hr",{className:B("w-full",!e?.color?.trim()&&"border-border",r),style:o,"aria-hidden":!0})}function Tg(e,t="solid"){return e?t==="dashed"?"rounded-md border border-dashed border-border":"rounded-md border border-border":""}function OMt(e){return B(Tg(e.showBorder,e.borderStyle??"solid"),e.showBorder&&"p-3")}function NMt(e){return B(Tg(e.showBorder,e.borderStyle??"solid"),e.showBorder&&"p-2")}function jMt(e,t){return e.columnBorders?.[t]!==void 0?!!e.columnBorders[t]:!!e.showColumnBorders}function AMt(e,t){const r=jMt(e,t);return B(Tg(r,e.borderStyle??"dashed"),r&&"p-2")}function TMt(e){if(e)return{minHeight:`${e}vh`}}function Fse(e){return e.some(t=>t.type==="sidebar_nav")}function CMt({widget:e,renderChildren:t}){const r=e.config,[n,o]=k.useState(r.defaultCollapsed??!1),{style:a,hasCustomStyle:i}=Ise(r.style),s=wMt(r.style);return f.jsxs("section",{className:B("space-y-4",OMt(r)),"data-widget-id":e.id,"data-page-widget":"section",children:[r.heading&&f.jsx("div",{className:"flex items-center gap-2",children:r.collapsible?f.jsx("button",{type:"button",className:"text-left text-lg font-semibold hover:underline",onClick:()=>o(l=>!l),children:r.heading}):f.jsx("h2",{className:"text-lg font-semibold",children:r.heading})}),r.heading?f.jsx(g1,{config:r.headingDivider,legacyShowDivider:r.showDivider}):null,!n&&e.children?.length?f.jsx("div",{className:B("space-y-4",s),style:i?a:void 0,children:t?.(e.children)}):null,f.jsx(g1,{config:r.bottomDivider})]})}function EMt({widget:e,renderChildren:t}){const r=e.config,n=Hl(r.columns??2),o=r.collapseEmptyColumns!==!1,a=xMt(e.children??[],n,r.columnWidths,{collapseEmpty:o}),i=a.columns.some((s,l)=>(a.sourceIndices[l]??l)===0&&Fse(s));return f.jsx("div",{className:B("grid w-full min-w-0 items-stretch",i?"gap-0":kMt(r.gap),NMt(r)),style:{gridTemplateColumns:a.gridTemplate,...TMt(r.minHeightPercent)},"data-widget-id":e.id,"data-page-columns-grid":!0,"data-page-columns-template":a.gridTemplate,children:a.columns.map((s,l)=>{const c=a.sourceIndices[l]??l,u=c===0&&Fse(s);return f.jsx("div",{"data-page-column":!0,"data-page-column-index":c,className:B("flex min-h-[inherit] min-w-0 flex-col space-y-4",u?"overflow-visible self-stretch":"min-h-0 overflow-auto",AMt(r,c)),children:t?.(s)},c)})})}function zMt({widget:e,renderChildren:t}){const r=e.config,{style:n,hasCustomStyle:o}=Ise(r.style),a=r.variant==="outline"?"border bg-background":r.variant==="elevated"?"border bg-background shadow-md":"border bg-card";return f.jsxs("div",{className:B("rounded-lg p-4",!o&&a),style:o?n:void 0,"data-widget-id":e.id,"data-page-widget":"card",children:[(r.title||r.subtitle)&&f.jsxs("div",{className:"mb-4",children:[r.title&&f.jsx("h3",{className:"font-semibold",children:r.title}),r.subtitle&&f.jsx("p",{className:"text-sm text-muted-foreground",children:r.subtitle})]}),e.children?.length?f.jsx("div",{className:"space-y-4",children:t?.(e.children)}):null]})}function $Mt(e){if(e==="center")return"mx-auto";if(e==="right")return"ml-auto"}function IMt({config:e,widgetId:t,className:r,placeholderClassName:n,placeholderLabel:o="No image or icon"}){const a=$Mt(e.align),i=e.iconName?.trim()?Xo(e.iconName.trim()):null;if(i){const s=e.width?.trim()||"48px",l=e.height?.trim()||"48px",c=!!e.iconBackgroundColor?.trim();return f.jsx("div",{className:B("inline-flex shrink-0 items-center justify-center",a,r),style:{width:s,height:l,backgroundColor:e.iconBackgroundColor,borderRadius:e.iconBorderRadius??(c?"9999px":void 0),color:e.iconColor,padding:e.iconPadding??(c?"0.75rem":void 0)},"data-widget-id":t,"data-page-widget":"image","aria-hidden":!e.alt?.trim(),title:e.alt?.trim()||void 0,children:f.jsx("span",{className:"inline-flex items-center justify-center",style:{width:e.iconSize??"1.5rem",height:e.iconSize??"1.5rem"},children:f.jsx(Zo,{name:i,className:"h-full w-full max-h-full max-w-full"})})})}return e.src?.trim()?f.jsx("img",{src:e.src,alt:e.alt??"",className:B("block max-w-full",a,r),style:{width:e.width??"auto",height:e.height??"auto",objectFit:e.objectFit??"contain"},"data-widget-id":t,"data-page-widget":"image"}):f.jsx("div",{className:B("flex h-24 items-center justify-center rounded-md border border-dashed border-muted-foreground/40 bg-muted/20 text-xs text-muted-foreground",a,n),"data-widget-id":t,"data-page-widget":"image",children:o})}function Dse(e,t){if(e.variable){const r=t[e.variable];return r!=null?String(r):e.fallback??e.text??""}return e.text??""}function FMt({widget:e}){const t=e.config,{context:r}=jt(),n=Dse(t,r),o=t.level??2,a=t.align==="center"?"text-center":t.align==="right"?"text-right":"text-left",i=o===1?"text-3xl":o===2?"text-2xl":o===3?"text-xl":"text-lg";return f.jsxs("div",{"data-widget-id":e.id,"data-page-widget":"heading",children:[f.jsx("div",{role:"heading","aria-level":o,className:B("font-semibold tracking-tight",i,a),children:n}),f.jsx(g1,{config:t.bottomDivider})]})}function DMt({widget:e}){const t=e.config;return f.jsx(IMt,{config:t,widgetId:e.id,placeholderLabel:"No image or icon"})}function LMt({widget:e}){const t=e.config,{context:r}=jt(),n=Dse(t,r),o=t.preset==="caption"?"text-sm text-muted-foreground":t.preset==="small"?"text-xs text-muted-foreground":"text-base",a=t.align==="center"?"text-center":t.align==="right"?"text-right":"text-left";return f.jsxs("div",{"data-widget-id":e.id,"data-page-widget":"text",children:[f.jsx("p",{className:B(o,a),children:n}),f.jsx(g1,{config:t.bottomDivider})]})}function v1(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function qMt(e,t){const r={...e};return delete r[t],r}function Lse(e,t){if(!e)return t;const r=e.id,n={...e};delete n.id;const o={...n,...t};return o.id==null&&o.scheduled_class_slot_id!=null&&(o.id=o.scheduled_class_slot_id),r!=null&&(o.course_activity_id==null&&(o.course_activity_id=r),o.subject_activity_id==null&&(o.subject_activity_id=r)),o.course==null&&e.subject!=null&&(o.course=e.subject),o.subject==null&&e.course!=null&&(o.subject=e.course),o}function qse(e,t){return e==null?[]:Array.isArray(e)?e.flatMap(r=>v1(r)?[Lse(t,r)]:[]):!v1(e)||!t?[]:[Lse(t,e)]}function b1(e,t,r){if(t.length===0)return qse(e,r);const[n,...o]=t;return n==="*"?Array.isArray(e)?e.flatMap(a=>{let i=r;if(v1(a)){const s=o[0];i=s&&s!=="*"&&s in a?qMt(a,s):a}return b1(a,o,i)}):[]:Array.isArray(e)?/^\d+$/.test(n)?b1(e[Number(n)],o,r):[]:v1(e)?b1(e[n],o,r):[]}function Vd(e,t){if(e==null)return[];const r=(t??"").trim().replace(/\[(\d+)\]/g,".$1").split(".").filter(Boolean);return r.length===0?Array.isArray(e)?qse(e,null):[]:b1(e,r,null)}function _1(e,t){return t?.length?t.every(r=>{const n=e[r];return n!=null&&String(n).trim()!==""}):!0}const BMt=new Set(["token","authorization","clientId"]);function Cg(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function Eg(e){return e?Array.isArray(e)?e.map(t=>t.trim()).filter(Boolean):e.split(",").map(t=>t.trim()).filter(Boolean):[]}function Ud(e){if(e==null)return"";if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e).trim();if(Cg(e)){const t=e.value??e.id??e._id??e.key??e.code;return t==null?"":String(t).trim()}return""}function Ta(e){if(e==null||e==="")return[];if(Array.isArray(e))return e.map(Ud).filter(Boolean);const t=Ud(e);return t?[t]:[]}function HMt(e){return Ta(e).length>0||typeof e=="number"&&!Number.isNaN(e)}function VMt(e,t){const r=Eg(t.dependsOn);return r.length===0||t.waitForDependsOn===!1?!0:r.every(n=>HMt(fe(e,n)))}function UMt(e,t){return Ta(e)[0]??""}function WMt(e){return e==null?"":Array.isArray(e)?Ta(e).join(","):Cg(e)?Ud(e):e}const Bse=["topics","topic","topic_ids","topicIds"];function Hse(e,t,r){const n=new Set;for(const a of Eg(t.dependsOn))n.add(a);for(const a of wg(r??void 0))n.add(a);if(Bse.some(a=>n.has(a)))for(const a of Bse)n.add(a);const o={};for(const a of n){const i=fe(e,a);i!==void 0&&(o[a]=WMt(i))}return o}function KMt(e,t){return t==="id"?Ta(e)[0]??"":t==="idArray"?Ta(e):e}function GMt(e,t){const r={...e};for(const n of t)!n.valueAs||n.valueAs==="raw"||(r[n.field]=KMt(fe(e,n.field),n.valueAs));return r}function RMt(e,t){const r=GMt(e,t),n={...r};for(const o of t){if(o.valueAs!=="idArray")continue;const a=Ta(r[o.field]);n[o.field]=JSON.stringify(a)}return{...n,row:r}}function YMt(e,t,r){const n={...e};for(const o of r)o.clearOnDependencyChange===!1||!Eg(o.dependsOn).includes(t)||(n[o.field]=o.editor==="multiselect"?[]:"");return n}function zg(e,t,r,n){if(e==null)return null;if(typeof e=="string"||typeof e=="number"||typeof e=="boolean"){const i=String(e);return{label:i,value:i}}if(!Cg(e))return null;const o=Ud(fe(e,n)??e);if(!o){const i=Ud(e);if(!i)return{label:`Option ${t+1}`,value:`idx-${t}`};const s=fe(e,r);return{value:i,label:s==null||s===""?i:String(s)}}const a=fe(e,r);return{value:o,label:a==null||a===""?o:String(a)}}function XMt(e,t){const r=new Map(e.map(n=>[n.value,n]));for(const n of t)!n||r.has(n)||r.set(n,{value:n,label:n});return Array.from(r.values())}function ZMt(e,t){if(!t)return e;const r={...t};for(const n of BMt)delete r[n];return{...e,...r,row:t.row??t}}const JMt=["clientId","tenantId","tenant_id","token","userId","created_by","moduleId","featureId","moduleCode","authorization"];function QMt(e,t,r){const n={...r,...t};for(const o of JMt)e[o]!==void 0&&n[o]===void 0&&(n[o]=e[o]);return n}function e3t(e){return JSON.stringify(e)}function t3t(e,t){return e&&(t==="idle"||t==="loading")}function r3t(e,t){return!e||t==="ready"||t==="error"}function n3t(e,t){if(t?.includes("*"))return Vd(e,t);const r=fe(e,t??"");return r===void 0?null:r}function o3t(e,t,r){if(t.mode==="static")return{};const n=new Set;t.mode==="context"&&t.contextPath&&n.add(t.contextPath.split(".")[0]??t.contextPath);for(const a of t.requireContextKeys??[])n.add(a);for(const a of t.requestBindings??[])(a.source==="binding"||a.source==="widget")&&n.add(a.key);for(const a of wg(r))n.add(a);const o={};for(const a of n)o[a]=e[a];return o}function Vse(e,t){if(e.mode==="pageApi"&&e.dataSourceRef)return t[e.dataSourceRef];if(e.mode==="api")return e.api}function Tr({widgetId:e,dataSource:t,enabled:r=!0,page:n,pageSize:o,search:a,searchField:i,sortField:s,sortOrder:l,extraContext:c,keepPreviousData:u=!1}){const{schema:d,context:p,clientId:y,filterGroups:m,prepopulateStatus:g,setContextValues:v}=jt(),b=k.useMemo(()=>ZMt(p,c),[p,c]),_=k.useMemo(()=>t.filterGroupKey?m[t.filterGroupKey]??{}:{},[t.filterGroupKey,m]),x=t.mode==="context"&&u1(d),w=t3t(x,g),S=_1(p,t.requireContextKeys),M=r&&S&&(t.mode==="static"||(t.mode==="context"?r3t(x,g):!!y)),P=k.useMemo(()=>e3t(t),[t]),N=Vse(t,d.dataApis??{}),A=k.useMemo(()=>o3t(p,t,N),[p,P,N]),C=k.useMemo(()=>["page-ds",e,P,t.mode==="static"?null:y,_,A,c??null,n,o,a,i,s,l,g],[e,P,t.mode,_,A,n,o,a,i,s,l,g,y,c]),O=Pn.useQuery({queryKey:C,enabled:M,staleTime:N?.staleTimeMs??3e4,...u?{placeholderData:E=>E}:{},queryFn:async()=>{if(t.mode==="static")return t.staticData;if(t.mode==="context")return n3t(p,t.contextPath);const E=Vse(t,d.dataApis??{});if(!E)throw new Error(`No API config for data source on widget ${e}`);const $={...b};if(t.requestBindings)for(const H of t.requestBindings){let I;H.source==="binding"?I=b[H.key]:H.source==="filter"&&(I=_[H.key]),I!==void 0&&I!==""&&($[H.param]=I)}const F=Dl($,b),q=Dl({...E},b),D={...QMt(b,A,_),...F,...n!==void 0?{page:n,pageSize:o,limit:o,search:a,searchField:i}:{},...s&&l?{sortField:s,sortOrder:l,sort:s}:{}};return Fl({clientId:y,api:q,context:D,filterState:_})}}),j=t.readyContextKey?.trim()||"",z=j?p[j]:void 0;return k.useEffect(()=>{if(!j)return;const E=$=>{z!==$&&v({[j]:$})};if(!M||O.isError){E(!1);return}if(O.isLoading){E(!1);return}O.isSuccess&&E(!0)},[j,M,O.isError,O.isSuccess,z,v]),k.useEffect(()=>{if(j)return()=>{v({[j]:!1})}},[j,v]),{...O,isLoading:O.isLoading||w,isPending:O.isPending||w,isFetching:O.isFetching||w}}const Lr={preset:"standard",colors:{background:"#FFFFFF",text:"#0F172A",headingText:"#0F172A",mutedText:"#64748B",border:"#E2E8F0",primary:"#2563EB",primaryText:"#FFFFFF",link:"#2563EB",cardBackground:"#FFFFFF"},typography:{fontFamily:"Inter, system-ui, -apple-system, sans-serif",baseFontSize:"14px",headingFontWeight:600,lineHeight:"1.5"},spacing:{pageGap:"24px",sectionGap:"16px",widgetGap:"24px"},container:{padding:"0",maxWidth:"100%",borderRadius:"0"},buttons:{height:"36px",borderRadius:"8px",horizontalPadding:"16px"},tabs:{activeColor:"#2563EB",inactiveColor:"#64748B",activeBorderColor:"#2563EB"},cards:{borderRadius:"8px",padding:"16px",shadow:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},tables:{headerBackground:"#F1F5F9",headerText:"#0F172A",rowHoverBackground:"#F8FAFC",borderColor:"#E2E8F0"},moduleCards:{minHeight:"auto",padding:"8px 16px",iconSize:"4rem",iconPosition:"right",titleIconGap:"0.5rem",titleFontSize:"1.125rem",columnGap:"1rem",rowGap:"1rem",borderRadius:"8px",hoverBackground:"color-mix(in srgb, var(--accent) 100%, transparent)",showBorder:!0}},da={standard:{},dashboard:{colors:{...Lr.colors,background:"#F8FAFC"},spacing:{...Lr.spacing,widgetGap:"20px"},cards:{...Lr.cards,shadow:"0 1px 3px 0 rgb(0 0 0 / 0.08)"},tables:{...Lr.tables,headerBackground:"#E2E8F0"}},compact:{spacing:{...Lr.spacing,pageGap:"16px",sectionGap:"12px",widgetGap:"16px"},container:{...Lr.container},buttons:{...Lr.buttons,height:"32px"}}};function Use(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function Ca(e,t){if(!Use(t))return{...e};const r={...e};for(const n of Object.keys(e)){const o=t[n];o!=null&&o!==""&&(r[n]=o)}return r}function a3t(e){return e==="standard"||e==="dashboard"||e==="compact"||e==="custom"?e:"standard"}function Wse(){return JSON.parse(JSON.stringify(Lr))}const i3t=Wse();function $g(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function Ig(e){if(!$g(e))return null;const t=a3t(e.preset),r=t==="custom"||t==="standard"?Lr:{...Lr,...da[t],colors:{...Lr.colors,...da[t].colors},typography:{...Lr.typography,...da[t].typography},spacing:{...Lr.spacing,...da[t].spacing},container:{...Lr.container,...da[t].container},buttons:{...Lr.buttons,...da[t].buttons},tabs:{...Lr.tabs,...da[t].tabs},cards:{...Lr.cards,...da[t].cards},tables:{...Lr.tables,...da[t].tables},moduleCards:{...Lr.moduleCards,...da[t].moduleCards}},n=Ca(r.colors,e?.colors),o=n.text,a=Use(e?.colors)?e.colors:{},i={...n,headingText:typeof a.headingText=="string"&&a.headingText.trim()?a.headingText.trim():o};return{preset:t,colors:i,typography:Ca(r.typography,e?.typography),spacing:Ca(r.spacing,e?.spacing),container:Ca(r.container,e?.container),buttons:Ca(r.buttons,e?.buttons),tabs:Ca(r.tabs,e?.tabs),cards:Ca(r.cards,e?.cards),tables:Ca(r.tables,e?.tables),moduleCards:Ca(r.moduleCards,e?.moduleCards)}}function Kse(e){const{text:t,headingText:r}=e.colors;return{"--iq-page-bg":e.colors.background,"--iq-page-text":t,"--iq-page-heading-color":r,"--iq-page-muted":e.colors.mutedText,"--iq-page-border":e.colors.border,"--iq-page-primary":e.colors.primary,"--iq-page-primary-text":e.colors.primaryText,"--iq-page-link":e.colors.link,"--iq-page-card-bg":e.colors.cardBackground,"--iq-page-font-family":e.typography.fontFamily,"--iq-page-font-size":e.typography.baseFontSize,"--iq-page-heading-weight":String(e.typography.headingFontWeight),"--iq-page-line-height":e.typography.lineHeight,"--iq-page-gap":e.spacing.pageGap,"--iq-page-section-gap":e.spacing.sectionGap,"--iq-page-widget-gap":e.spacing.widgetGap,"--iq-page-padding":e.container.padding,"--iq-page-max-width":e.container.maxWidth,"--iq-page-radius":e.container.borderRadius,"--iq-page-btn-height":e.buttons.height,"--iq-page-btn-radius":e.buttons.borderRadius,"--iq-page-btn-px":e.buttons.horizontalPadding,"--iq-page-tab-active":e.tabs.activeColor,"--iq-page-tab-inactive":e.tabs.inactiveColor,"--iq-page-tab-border":e.tabs.activeBorderColor,"--iq-page-card-radius":e.cards.borderRadius,"--iq-page-card-padding":e.cards.padding,"--iq-page-card-shadow":e.cards.shadow,"--iq-page-table-header-bg":e.tables.headerBackground,"--iq-page-table-header-text":e.tables.headerText,"--iq-page-table-row-hover":e.tables.rowHoverBackground,"--iq-page-table-border":e.tables.borderColor,"--iq-page-module-card-min-height":e.moduleCards.minHeight,"--iq-page-module-card-padding":e.moduleCards.padding,"--iq-page-module-card-icon-size":e.moduleCards.iconSize,"--iq-page-module-card-title-icon-gap":e.moduleCards.titleIconGap,"--iq-page-module-card-title-font-size":e.moduleCards.titleFontSize,"--iq-page-module-card-column-gap":e.moduleCards.columnGap,"--iq-page-module-card-row-gap":e.moduleCards.rowGap,"--iq-page-module-card-radius":e.moduleCards.borderRadius,"--iq-page-module-card-hover-bg":e.moduleCards.hoverBackground,"--background":e.colors.background,"--foreground":t,"--muted-foreground":e.colors.mutedText,"--border":e.colors.border,"--primary":e.colors.primary,"--primary-foreground":e.colors.primaryText,"--card":e.colors.cardBackground,"--card-foreground":t,"--radius":e.buttons.borderRadius}}const Gse={blue:"text-blue-600 bg-blue-100 dark:bg-blue-950",green:"text-green-600 bg-green-100 dark:bg-green-950",orange:"text-orange-600 bg-orange-100 dark:bg-orange-950",purple:"text-purple-600 bg-purple-100 dark:bg-purple-950",red:"text-red-600 bg-red-100 dark:bg-red-950"};function s3t(e){return Gse[e??"blue"]??Gse.blue}function l3t(e,t){const r=e.startsWith("#")?e.slice(0,7):e;if(/^#[0-9A-Fa-f]{6}$/.test(r))return`${r}${t}`}function Fg(e,t){const r=t?.trim();if(r){const n={color:r},o=r.startsWith("#")?l3t(r,"2E"):void 0;return o&&(n.backgroundColor=o),{className:"shrink-0 rounded-lg p-2",style:n}}return{className:B("shrink-0 rounded-lg p-2",s3t(e))}}function c3t(e,t){return!!(e.valueMapping?.path?.trim()||e.dataSource||t?.dataSource&&e.valueMapping)}function d3t(e,t,r){const n=e.display??t??"auto";return n==="launcher"?"launcher":n==="metric"||c3t(e,r)?"metric":"launcher"}function u3t(e,t){return t?"text-2xl font-bold":B("text-2xl font-bold",e==="green"?"text-green-600":e==="orange"?"text-orange-600":e==="purple"?"text-purple-600":e==="red"?"text-red-600":"text-foreground")}function f3t(e){switch(e){case"top-left":return"justify-start items-start";case"top-center":return"justify-start items-center";case"top-right":return"justify-start items-end";case"bottom-center":return"justify-end items-center";case"bottom-right":return"justify-end items-end";default:return"justify-end items-start"}}function p3t(e,t){return t==="column"?e==="center"?"justify-center":e==="end"?"justify-end":"justify-start":e==="center"?"items-center":e==="end"?"items-end":"items-start"}function Rse({className:e,style:t}){return f.jsx("div",{className:B("shrink-0 rounded-md bg-muted",e),style:t,"aria-hidden":!0})}function k1({iconName:e,iconUrl:t,iconAlt:r,title:n,iconColor:o,iconTintColor:a,iconSize:i,variant:s,imageClassName:l}){const c=r??n??"",u=a?.trim()||void 0,d=e?.trim()?Xo(e.trim()):null;if(d){if(s==="metric"){const p=Fg(o,u);return f.jsx("div",{className:p.className,style:p.style,children:f.jsx(Zo,{name:d,className:B("h-4 w-4",l)})})}return f.jsx("span",{className:"inline-flex shrink-0 items-center justify-center",style:{width:i,height:i,color:u},children:f.jsx(Zo,{name:d,className:B("h-full w-full max-h-full max-w-full",l)})})}if(t?.trim()){if(s==="metric"){const p=Fg(o,u);return f.jsx("div",{className:p.className,style:p.style,children:f.jsx("img",{src:t,alt:c,className:B("h-4 w-4 object-contain",l)})})}return f.jsx("img",{src:t,alt:c,className:B("shrink-0 object-contain",l),style:{width:i,height:i}})}if(s==="metric"){const p=Fg(o,u);return f.jsx(Rse,{className:B(p.className,"h-8 w-8"),style:p.style})}return f.jsx(Rse,{className:"shrink-0 rounded-md bg-muted",style:{width:i,height:i}})}var h3t=Object.defineProperty,Vl=(e,t)=>h3t(e,"name",{value:t,configurable:!0}),Yse=!!(typeof window<"u"&&window.document&&window.document.createElement);function ua(e,t,{checkForDefaultPrevented:r=!0}={}){return Vl(function(o){if(e?.(o),r===!1||!o||!o.defaultPrevented)return t?.(o)},"handleEvent")}Vl(ua,"composeEventHandlers");function y3t(e){if(!Yse)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}Vl(y3t,"getOwnerWindow");function Dg(e){if(!Yse)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}Vl(Dg,"getOwnerDocument");function Xse(e,t=!1){const{activeElement:r}=Dg(e);if(!r?.nodeName)return null;if(Zse(r)&&r.contentDocument)return Xse(r.contentDocument.body,t);if(t){const n=r.getAttribute("aria-activedescendant");if(n){const o=Dg(r).getElementById(n);if(o)return o}}return r}Vl(Xse,"getActiveElement");function Zse(e){return e.tagName==="IFRAME"}Vl(Zse,"isFrame");var m3t=Object.defineProperty,Lg=(e,t)=>m3t(e,"name",{value:t,configurable:!0});function qg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Lg(qg,"setRef");function Jse(...e){return t=>{let r=!1;const n=e.map(o=>{const a=qg(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():qg(e[o],null)}}}}Lg(Jse,"composeRefs");function bs(...e){return T.useCallback(Jse(...e),e)}Lg(bs,"useComposedRefs");var g3t=Object.defineProperty,io=(e,t)=>g3t(e,"name",{value:t,configurable:!0});function v3t(e,t){const r=T.createContext(t);r.displayName=e+"Context";const n=io(a=>{const{children:i,...s}=a,l=T.useMemo(()=>s,Object.values(s));return f.jsx(r.Provider,{value:l,children:i})},"Provider");n.displayName=e+"Provider";function o(a,i={}){const{optional:s=!1}=i,l=T.useContext(r);if(l)return l;if(t!==void 0)return t;if(!s)throw new Error(`\`${a}\` must be used within \`${e}\``)}return io(o,"useContext"),[n,o]}io(v3t,"createContext");function Bg(e,t=[]){let r=[];function n(a,i){const s=T.createContext(i);s.displayName=a+"Context";const l=r.length;r=[...r,i];const c=io(d=>{const{scope:p,children:y,...m}=d,g=p?.[e]?.[l]||s,v=T.useMemo(()=>m,Object.values(m));return f.jsx(g.Provider,{value:v,children:y})},"Provider");c.displayName=a+"Provider";function u(d,p,y={}){const{optional:m=!1}=y,g=p?.[e]?.[l]||s,v=T.useContext(g);if(v)return v;if(i!==void 0)return i;if(!m)throw new Error(`\`${d}\` must be used within \`${a}\``)}return io(u,"useContext"),[c,u]}io(n,"createContext");const o=io(()=>{const a=r.map(i=>T.createContext(i));return io(function(s){const l=s?.[e]||a;return T.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])},"useScope")},"createScope");return o.scopeName=e,[n,Qse(o,...t)]}io(Bg,"createContextScope");function Qse(...e){const t=e[0];if(e.length===1)return t;const r=io(()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return io(function(a){const i=n.reduce((s,{useScope:l,scopeName:c})=>{const d=l(a)[`__scope${c}`];return{...s,...d}},{});return T.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}io(Qse,"composeContextScopes");var b3t=Object.defineProperty,Ao=(e,t)=>b3t(e,"name",{value:t,configurable:!0});function ele(e){const t=T.forwardRef((r,n)=>{let{children:o,...a}=r,i=null,s=!1;const l=[];Hg(o)&&typeof S1=="function"&&(o=S1(o._payload)),T.Children.forEach(o,p=>{if(ale(p)){s=!0;const y=p;let m="child"in y.props?y.props.child:y.props.children;Hg(m)&&typeof S1=="function"&&(m=S1(m._payload)),i=_3t(y,m),l.push(i?.props?.children)}else l.push(p)}),i?i=T.cloneElement(i,void 0,l):!s&&T.Children.count(o)===1&&T.isValidElement(o)&&(i=o);const c=i?ole(i):void 0,u=bs(n,c);if(!i){if(o||o===0)throw new Error(s?x3t(e):S3t(e));return o}const d=nle(a,i.props??{});return i.type!==T.Fragment&&(d.ref=n?u:c),T.cloneElement(i,d)});return t.displayName=`${e}.Slot`,t}Ao(ele,"createSlot");var tle=Symbol.for("radix.slottable");function rle(e){const t=Ao(r=>"child"in r?r.children(r.child):r.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=tle,t}Ao(rle,"createSlottable");var _3t=Ao((e,t)=>{if("child"in e.props){const r=e.props.child;return T.isValidElement(r)?T.cloneElement(r,void 0,e.props.children(r.props.children)):null}return T.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function nle(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{const l=a(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}Ao(nle,"mergeProps");function ole(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}Ao(ole,"getElementRef");function ale(e){return T.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===tle}Ao(ale,"isSlottable");var k3t=Symbol.for("react.lazy");function Hg(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===k3t&&"_payload"in e&&ile(e._payload)}Ao(Hg,"isLazyComponent");function ile(e){return typeof e=="object"&&e!==null&&"then"in e}Ao(ile,"isPromiseLike");var S3t=Ao(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),x3t=Ao(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),S1=T[" use ".trim().toString()],w3t=Object.defineProperty,M3t=(e,t)=>w3t(e,"name",{value:t,configurable:!0}),P3t=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_s=P3t.reduce((e,t)=>{const r=ele(`Primitive.${t}`),n=T.forwardRef((o,a)=>{const{asChild:i,...s}=o,l=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(l,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function sle(e,t){e&&el.flushSync(()=>e.dispatchEvent(t))}M3t(sle,"dispatchDiscreteCustomEvent");var O3t=Object.defineProperty,N3t=(e,t)=>O3t(e,"name",{value:t,configurable:!0});function Wd(e){const t=T.useRef(e);return T.useEffect(()=>{t.current=e}),T.useMemo(()=>((...r)=>t.current?.(...r)),[])}N3t(Wd,"useCallbackRef");var j3t=Object.defineProperty,Rr=(e,t)=>j3t(e,"name",{value:t,configurable:!0}),Vg="dismissableLayer.update",A3t="dismissableLayer.pointerDownOutside",T3t="dismissableLayer.focusOutside",lle,cle=T.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),C3t=T.forwardRef(Rr(function(t,r){const{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...u}=t,d=T.useContext(cle),[p,y]=T.useState(null),m=p?.ownerDocument??globalThis?.document,[,g]=T.useState({}),v=bs(r,y),b=Array.from(d.layers),[_]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=_?b.indexOf(_):-1,w=p?b.indexOf(p):-1,S=d.layersWithOutsidePointerEventsDisabled.size>0,M=w>=x,P=T.useRef(!1),N=dle(j=>{i?.(j),l?.(j),j.defaultPrevented||c?.()},{ownerDocument:m,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:P,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:T.useCallback(j=>{if(!(j instanceof Node))return!1;const z=[...d.branches].some(E=>E.contains(j));return M&&!z},[d.branches,M])}),A=ule(j=>{if(o&&P.current)return;const z=j.target;[...d.branches].some($=>$.contains(z))||(s?.(j),l?.(j),j.defaultPrevented||c?.())},m),C=p?w===b.length-1:!1,O=Wd(j=>{j.key==="Escape"&&(a?.(j),!j.defaultPrevented&&c&&(j.preventDefault(),c()))});return T.useEffect(()=>{if(C)return m.addEventListener("keydown",O,{capture:!0}),()=>m.removeEventListener("keydown",O,{capture:!0})},[m,C,O]),T.useEffect(()=>{if(p)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(lle=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),Ug(),()=>{n&&(d.layersWithOutsidePointerEventsDisabled.delete(p),d.layersWithOutsidePointerEventsDisabled.size===0&&(m.body.style.pointerEvents=lle))}},[p,m,n,d]),T.useEffect(()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),Ug())},[p,d]),T.useEffect(()=>{const j=Rr(()=>g({}),"handleUpdate");return document.addEventListener(Vg,j),()=>document.removeEventListener(Vg,j)},[]),f.jsx(_s.div,{...u,ref:v,style:{pointerEvents:S?M?"auto":"none":void 0,...t.style},onFocusCapture:ua(t.onFocusCapture,A.onFocusCapture),onBlurCapture:ua(t.onBlurCapture,A.onBlurCapture),onPointerDownCapture:ua(t.onPointerDownCapture,N.onPointerDownCapture)})},"DismissableLayer"));function E3t(){const e=T.useContext(cle),[t,r]=T.useState(null);return T.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),r}Rr(E3t,"useDismissableLayerSurface");var z3t=Rr(()=>!0,"IS_TRUE");function dle(e,t){const{ownerDocument:r=globalThis?.document,deferPointerDownOutside:n=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:a,shouldHandlePointerDownOutside:i=z3t}=t,s=Wd(e),l=T.useRef(!1),c=T.useRef(!1),u=T.useRef(new Map),d=T.useRef(()=>{});return T.useEffect(()=>{function p(){c.current=!1,o.current=!1,u.current.clear()}Rr(p,"resetOutsideInteraction");function y(){return Array.from(u.current.values()).some(Boolean)}Rr(y,"isOutsideInteractionIntercepted");function m(x){if(!c.current)return;const w=x.target;w instanceof Node&&[...a].some(M=>M.contains(w))||u.current.set(x.type,!0),x.type==="click"&&window.setTimeout(()=>{c.current&&d.current()},0)}Rr(m,"handleInteractionCapture");function g(x){c.current&&u.current.set(x.type,!1)}Rr(g,"handleInteractionBubble");const v=Rr(x=>{if(x.target&&!l.current){let w=function(){r.removeEventListener("click",d.current);const M=y();p(),M||Wg(A3t,s,S,{discrete:!0})};if(Rr(w,"handleAndDispatchPointerDownOutsideEvent"),!i(x.target)){r.removeEventListener("click",d.current),p(),l.current=!1;return}const S={originalEvent:x};c.current=!0,o.current=n&&x.button===0,u.current.clear(),!n||x.button!==0?w():(r.removeEventListener("click",d.current),d.current=w,r.addEventListener("click",d.current,{once:!0}))}else r.removeEventListener("click",d.current),p();l.current=!1},"handlePointerDown"),b=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const x of b)r.addEventListener(x,m,!0),r.addEventListener(x,g);const _=window.setTimeout(()=>{r.addEventListener("pointerdown",v)},0);return()=>{window.clearTimeout(_),r.removeEventListener("pointerdown",v),r.removeEventListener("click",d.current);for(const x of b)r.removeEventListener(x,m,!0),r.removeEventListener(x,g)}},[r,s,n,o,a,i]),{onPointerDownCapture:Rr(()=>l.current=!0,"onPointerDownCapture")}}Rr(dle,"usePointerDownOutside");function ule(e,t=globalThis?.document){const r=Wd(e),n=T.useRef(!1);return T.useEffect(()=>{const o=Rr(a=>{a.target&&!n.current&&Wg(T3t,r,{originalEvent:a},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:Rr(()=>n.current=!0,"onFocusCapture"),onBlurCapture:Rr(()=>n.current=!1,"onBlurCapture")}}Rr(ule,"useFocusOutside");function Ug(){const e=new CustomEvent(Vg);document.dispatchEvent(e)}Rr(Ug,"dispatchUpdate");function Wg(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?sle(o,a):o.dispatchEvent(a)}Rr(Wg,"handleAndDispatchCustomEvent");var To=globalThis?.document?T.useLayoutEffect:()=>{},$3t=Object.defineProperty,I3t=(e,t)=>$3t(e,"name",{value:t,configurable:!0}),F3t=T[" useId ".trim().toString()]||(()=>{}),D3t=0;function fle(e){const[t,r]=T.useState(F3t());return To(()=>{e||r(n=>n??String(D3t++))},[e]),e||(t?`radix-${t}`:"")}I3t(fle,"useId");var L3t=Object.defineProperty,q3t=(e,t)=>L3t(e,"name",{value:t,configurable:!0}),B3t=T.forwardRef(q3t(function(t,r){const{children:n,width:o=10,height:a=5,...i}=t;return f.jsx(_s.svg,{...i,ref:r,width:o,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:f.jsx("polygon",{points:"0,0 30,0 15,10"})})},"Arrow")),H3t=B3t,V3t=Object.defineProperty,U3t=(e,t)=>V3t(e,"name",{value:t,configurable:!0});function ple(e){const[t,r]=T.useState(void 0);return To(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,s=c.blockSize}else i=e.offsetWidth,s=e.offsetHeight;r({width:i,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}U3t(ple,"useSize");var W3t=Object.defineProperty,Ea=(e,t)=>W3t(e,"name",{value:t,configurable:!0}),hle="Popper",[yle,mle]=Bg(hle),[K3t,gle]=yle(hle),G3t=Ea(e=>{const{__scopePopper:t,children:r}=e,[n,o]=T.useState(null),[a,i]=T.useState(void 0);return f.jsx(K3t,{scope:t,anchor:n,onAnchorChange:o,placementState:a,setPlacementState:i,children:r})},"Popper"),R3t="PopperAnchor",Y3t=T.forwardRef(Ea(function(t,r){const{__scopePopper:n,virtualRef:o,...a}=t,i=gle(R3t,n),s=T.useRef(null),l=i.onAnchorChange,c=T.useCallback(g=>{s.current=g,g&&l(g)},[l]),u=bs(r,c),d=T.useRef(null);T.useEffect(()=>{if(!o)return;const g=d.current;d.current=o.current,g!==d.current&&l(d.current)});const p=i.placementState&&x1(i.placementState),y=p?.[0],m=p?.[1];return o?null:f.jsx(_s.div,{"data-radix-popper-side":y,"data-radix-popper-align":m,...a,ref:u})},"PopperAnchor")),vle="PopperContent",[X3t,Z3t]=yle(vle),J3t=T.forwardRef(Ea(function(t,r){const{__scopePopper:n,side:o="bottom",sideOffset:a=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:y=!1,updatePositionStrategy:m="optimized",onPlaced:g,...v}=t,b=gle(vle,n),[_,x]=T.useState(null),w=bs(r,x),[S,M]=T.useState(null),P=ple(S),N=P?.width??0,A=P?.height??0,C=o+(i!=="center"?"-"+i:""),O=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},j=Array.isArray(u)?u:[u],z=j.length>0,E={padding:O,boundary:j.filter(ble),altBoundary:z},{refs:$,floatingStyles:F,placement:q,isPositioned:D,middlewareData:H}=Zte({strategy:"fixed",placement:C,whileElementsMounted:Ea((...Q)=>Gte(...Q,{animationFrame:m==="always"}),"whileElementsMounted"),elements:{reference:b.anchor},middleware:[Jte({mainAxis:a+A,alignmentAxis:s}),c&&Qte({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?ere():void 0,...E}),c&&tre({...E}),rre({...E,apply:Ea(({elements:Q,rects:ee,availableWidth:J,availableHeight:W})=>{const{width:ye,height:oe}=ee.reference,ce=Q.floating.style;ce.setProperty("--radix-popper-available-width",`${J}px`),ce.setProperty("--radix-popper-available-height",`${W}px`),ce.setProperty("--radix-popper-anchor-width",`${ye}px`),ce.setProperty("--radix-popper-anchor-height",`${oe}px`)},"apply")}),S&&ore({element:S,padding:l}),rPt({arrowWidth:N,arrowHeight:A}),y&&nre({strategy:"referenceHidden",...E,boundary:z?E.boundary:void 0})]}),I=b.setPlacementState;To(()=>(I(q),()=>{I(void 0)}),[q,I]);const[L,R]=x1(q),V=Wd(g);To(()=>{D&&V?.()},[D,V]);const G=H.arrow?.x,Z=H.arrow?.y,te=H.arrow?.centerOffset!==0,[K,re]=T.useState();return To(()=>{_&&re(window.getComputedStyle(_).zIndex)},[_]),f.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:D?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K,"--radix-popper-transform-origin":[H.transformOrigin?.x,H.transformOrigin?.y].join(" "),...H.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:f.jsx(X3t,{scope:n,placedSide:L,placedAlign:R,onArrowChange:M,arrowX:G,arrowY:Z,shouldHideArrow:te,children:f.jsx(_s.div,{"data-side":L,"data-align":R,...v,ref:w,style:{...v.style,animation:D?v.style?.animation:"none"}})})})},"PopperContent")),Q3t="PopperArrow",ePt={top:"bottom",right:"left",bottom:"top",left:"right"},tPt=T.forwardRef(Ea(function(t,r){const{__scopePopper:n,...o}=t,a=Z3t(Q3t,n),i=ePt[a.placedSide];return f.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:f.jsx(H3t,{...o,ref:r,style:{...o.style,display:"block"}})})},"PopperArrow"));function ble(e){return e!==null}Ea(ble,"isNotNull");var rPt=Ea(e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,s=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[c,u]=x1(r),d={start:"0%",center:"50%",end:"100%"}[u],p=(o.arrow?.x??0)+s/2,y=(o.arrow?.y??0)+l/2;let m="",g="";return c==="bottom"?(m=i?d:`${p}px`,g=`${-l}px`):c==="top"?(m=i?d:`${p}px`,g=`${n.floating.height+l}px`):c==="right"?(m=`${-l}px`,g=i?d:`${y}px`):c==="left"&&(m=`${n.floating.width+l}px`,g=i?d:`${y}px`),{data:{x:m,y:g}}}}),"transformOrigin");function x1(e){const[t,r="center"]=e.split("-");return[t,r]}Ea(x1,"getSideAndAlignFromPlacement");var nPt=G3t,oPt=Y3t,aPt=J3t,iPt=tPt,sPt=Object.defineProperty,lPt=(e,t)=>sPt(e,"name",{value:t,configurable:!0}),cPt=T.forwardRef(lPt(function(t,r){const{container:n,...o}=t,[a,i]=T.useState(!1);To(()=>i(!0),[]);const s=n||a&&globalThis?.document?.body;return s?el.createPortal(f.jsx(_s.div,{...o,ref:r}),s):null},"Portal")),dPt=Object.defineProperty,za=(e,t)=>dPt(e,"name",{value:t,configurable:!0});function _le(e,t){return T.useReducer((r,n)=>t[r][n]??r,e)}za(_le,"useStateMachine");var kle=za(e=>{const{present:t,children:r}=e,n=Sle(t),o=typeof r=="function"?r({present:n.isPresent}):T.Children.only(r),a=xle(n.ref,wle(o));return typeof r=="function"||n.isPresent?T.cloneElement(o,{ref:a}):null},"Presence");function Sle(e){const[t,r]=T.useState(),n=T.useRef(null),o=T.useRef(e),a=T.useRef("none"),i=T.useRef(void 0),s=e?"mounted":"unmounted",[l,c]=_le(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return T.useEffect(()=>{l==="mounted"?(a.current=i.current??Ul(n.current),i.current=void 0):a.current="none"},[l]),To(()=>{const u=n.current,d=o.current;if(d!==e){const y=a.current,m=Ul(u);e?(i.current=m,c("MOUNT")):m==="none"||u?.display==="none"?c("UNMOUNT"):c(d&&y!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),To(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,p=za(m=>{const v=Ul(n.current).includes(CSS.escape(m.animationName));if(m.target===t&&v&&(c("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},"handleAnimationEnd"),y=za(m=>{m.target===t&&(a.current=Ul(n.current))},"handleAnimationStart");return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:T.useCallback(u=>{if(u){const d=getComputedStyle(u);n.current=d,i.current=Ul(d)}else n.current=null;r(u)},[])}}za(Sle,"usePresence");function Kg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}za(Kg,"setRef");function xle(...e){const t=T.useRef(e);return t.current=e,T.useCallback(r=>{const n=t.current;let o=!1;const a=n.map(i=>{const s=Kg(i,r);return!o&&typeof s=="function"&&(o=!0),s});if(o)return()=>{for(let i=0;i<a.length;i++){const s=a[i];typeof s=="function"?s():Kg(n[i],null)}}},[])}za(xle,"useStableComposedRefs");function Ul(e){return e?.animationName||"none"}za(Ul,"getAnimationName");function wle(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}za(wle,"getElementRef");var uPt=Object.defineProperty,fPt=(e,t)=>uPt(e,"name",{value:t,configurable:!0}),Mle=T[" useEffectEvent ".trim().toString()],Ple=T[" useInsertionEffect ".trim().toString()];function Ole(e){if(typeof Mle=="function")return Mle(e);const t=T.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Ple=="function"?Ple(()=>{t.current=e}):To(()=>{t.current=e}),T.useMemo(()=>((...r)=>t.current?.(...r)),[])}fPt(Ole,"useEffectEvent");var pPt=Object.defineProperty,Kd=(e,t)=>pPt(e,"name",{value:t,configurable:!0}),hPt=T[" useInsertionEffect ".trim().toString()]||To;function Nle({prop:e,defaultProp:t,onChange:r=Kd(()=>{},"onChange"),caller:n}){const[o,a,i]=jle({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:o,c=T.useCallback(u=>{if(s){const d=Ale(u)?u(e):u;d!==e&&i.current?.(d)}else a(u)},[s,e,a,i]);return[l,c]}Kd(Nle,"useControllableState");function jle({defaultProp:e,onChange:t}){const[r,n]=T.useState(e),o=T.useRef(r),a=T.useRef(t);return hPt(()=>{a.current=t},[t]),T.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}Kd(jle,"useUncontrolledState");function Ale(e){return typeof e=="function"}Kd(Ale,"isFunction");var Tle=Symbol("RADIX:SYNC_STATE");function yPt(e,t,r,n){const{prop:o,defaultProp:a,onChange:i,caller:s}=t,l=o!==void 0,c=Ole(i),u=[{...r,state:a}];n&&u.push(n);const[d,p]=T.useReducer((v,b)=>{if(b.type===Tle)return{...v,state:b.state};const _=e(v,b);return l&&!Object.is(_.state,v.state)&&c(_.state),_},...u),y=d.state,m=T.useRef(y);T.useEffect(()=>{m.current!==y&&(m.current=y,l||c(y))},[y,m,l]);const g=T.useMemo(()=>o!==void 0?{...d,state:o}:d,[d,o]);return T.useEffect(()=>{l&&!Object.is(o,d.state)&&p({type:Tle,state:o})},[o,d.state,l]),[g,p]}Kd(yPt,"useControllableStateReducer");var mPt=Object.defineProperty,gPt=(e,t)=>mPt(e,"name",{value:t,configurable:!0}),vPt=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),bPt=T.forwardRef(gPt(function(t,r){return f.jsx(_s.span,{...t,ref:r,style:{...vPt,...t.style}})},"VisuallyHidden")),_Pt=bPt,kPt=Object.defineProperty,qr=(e,t)=>kPt(e,"name",{value:t,configurable:!0}),[Gg,GGt]=Bg("Tooltip",[mle]),w1=mle(),SPt="TooltipProvider",xPt=700,Rg="tooltip.open",[wPt,Yg]=Gg(SPt),MPt=qr(e=>{const{__scopeTooltip:t,delayDuration:r=xPt,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,i=T.useRef(!0),s=T.useRef(!1),l=T.useRef(0);return T.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),f.jsx(wPt,{scope:t,isOpenDelayedRef:i,delayDuration:r,onOpen:T.useCallback(()=>{n<=0||(window.clearTimeout(l.current),i.current=!1)},[n]),onClose:T.useCallback(()=>{n<=0||(window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,n))},[n]),isPointerInTransitRef:s,onPointerInTransitChange:T.useCallback(c=>{s.current=c},[]),disableHoverableContent:o,children:a})},"TooltipProvider"),Xg="Tooltip",[PPt,Gd]=Gg(Xg),OPt=qr(e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=e,l=Yg(Xg,e.__scopeTooltip),c=w1(t),[u,d]=T.useState(null),[p,y]=T.useState(void 0),m=fle(),g=T.useRef(0),v=i??l.disableHoverableContent,b=s??l.delayDuration,_=T.useRef(!1),[x,w]=Nle({prop:n,defaultProp:o??!1,onChange:qr(C=>{C?(l.onOpen(),document.dispatchEvent(new CustomEvent(Rg))):l.onClose(),a?.(C)},"onChange"),caller:Xg}),S=T.useMemo(()=>x?_.current?"delayed-open":"instant-open":"closed",[x]),M=T.useCallback(()=>{window.clearTimeout(g.current),g.current=0,_.current=!1,w(!0)},[w]),P=T.useCallback(()=>{window.clearTimeout(g.current),g.current=0,w(!1)},[w]),N=T.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{_.current=!0,w(!0),g.current=0},b)},[b,w]);T.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]);const A=p??m;return f.jsx(nPt,{...c,children:f.jsx(PPt,{scope:t,contentId:A,setContentId:y,open:x,stateAttribute:S,trigger:u,onTriggerChange:d,onTriggerEnter:T.useCallback(()=>{l.isOpenDelayedRef.current?N():M()},[l.isOpenDelayedRef,N,M]),onTriggerLeave:T.useCallback(()=>{v?P():(window.clearTimeout(g.current),g.current=0)},[P,v]),onOpen:M,onClose:P,disableHoverableContent:v,children:r})})},"Tooltip"),Cle="TooltipTrigger",NPt=T.forwardRef(qr(function(t,r){const{__scopeTooltip:n,...o}=t,a=Gd(Cle,n),i=Yg(Cle,n),s=w1(n),l=T.useRef(null),c=bs(r,l,a.onTriggerChange),u=T.useRef(!1),d=T.useRef(!1),p=T.useCallback(()=>u.current=!1,[]);return T.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),f.jsx(oPt,{asChild:!0,...s,children:f.jsx(_s.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...o,ref:c,onPointerMove:ua(t.onPointerMove,y=>{y.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(a.onTriggerEnter(),d.current=!0)}),onPointerLeave:ua(t.onPointerLeave,()=>{a.onTriggerLeave(),d.current=!1}),onPointerDown:ua(t.onPointerDown,()=>{a.open&&a.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:ua(t.onFocus,()=>{u.current||a.onOpen()}),onBlur:ua(t.onBlur,a.onClose),onClick:ua(t.onClick,a.onClose)})})},"TooltipTrigger")),Ele="TooltipPortal",[jPt,APt]=Gg(Ele,{forceMount:void 0}),TPt=qr(e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=Gd(Ele,t);return f.jsx(jPt,{scope:t,forceMount:r,children:f.jsx(kle,{present:r||a.open,children:f.jsx(cPt,{asChild:!0,container:o,children:n})})})},"TooltipPortal"),Rd="TooltipContent",CPt=T.forwardRef(qr(function(t,r){const n=APt(Rd,t.__scopeTooltip),{forceMount:o=n.forceMount,side:a="top",...i}=t,s=Gd(Rd,t.__scopeTooltip);return f.jsx(kle,{present:o||s.open,children:s.disableHoverableContent?f.jsx(zle,{side:a,...i,ref:r}):f.jsx(EPt,{side:a,...i,ref:r})})},"TooltipContent")),EPt=T.forwardRef(qr(function(t,r){const n=Gd(Rd,t.__scopeTooltip),o=Yg(Rd,t.__scopeTooltip),a=T.useRef(null),i=bs(r,a),[s,l]=T.useState(null),{trigger:c,onClose:u}=n,d=a.current,{onPointerInTransitChange:p}=o,y=T.useCallback(()=>{l(null),p(!1)},[p]),m=T.useCallback((g,v)=>{const b=g.currentTarget,_={x:g.clientX,y:g.clientY},x=$le(_,b.getBoundingClientRect()),w=Ile(_,x),S=Fle(v.getBoundingClientRect()),M=Lle([...w,...S]);l(M),p(!0)},[p]);return T.useEffect(()=>()=>y(),[y]),T.useEffect(()=>{if(c&&d){const g=qr(b=>m(b,d),"handleTriggerLeave"),v=qr(b=>m(b,c),"handleContentLeave");return c.addEventListener("pointerleave",g),d.addEventListener("pointerleave",v),()=>{c.removeEventListener("pointerleave",g),d.removeEventListener("pointerleave",v)}}},[c,d,m,y]),T.useEffect(()=>{if(s){const g=qr(v=>{const b=v.target,_={x:v.clientX,y:v.clientY},x=c?.contains(b)||d?.contains(b),w=!Dle(_,s);x?y():w&&(y(),u())},"handleTrackPointerGrace");return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[c,d,s,u,y]),f.jsx(zle,{...t,ref:i})},"TooltipContentHoverable")),zPt=rle("TooltipContent"),zle=T.forwardRef(qr(function(t,r){const{__scopeTooltip:n,children:o,"aria-label":a,id:i,onEscapeKeyDown:s,onPointerDownOutside:l,...c}=t,u=Gd(Rd,n),d=w1(n),{onClose:p}=u;T.useEffect(()=>(document.addEventListener(Rg,p),()=>document.removeEventListener(Rg,p)),[p]),T.useEffect(()=>{if(u.trigger){const m=qr(g=>{g.target instanceof Node&&g.target.contains(u.trigger)&&p()},"handleScroll");return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[u.trigger,p]);const{setContentId:y}=u;return To(()=>(y(i),()=>{y(void 0)}),[i,y]),f.jsx(C3t,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:m=>m.preventDefault(),onDismiss:p,children:f.jsxs(aPt,{"data-state":u.stateAttribute,role:a?void 0:"tooltip",id:a?void 0:u.contentId,...d,...c,ref:r,style:{...c.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:[f.jsx(zPt,{children:o}),a?f.jsx(_Pt,{id:u.contentId,role:"tooltip",children:a}):null]})})},"TooltipContentImpl")),$Pt=T.forwardRef(qr(function(t,r){const{__scopeTooltip:n,...o}=t,a=w1(n);return f.jsx(iPt,{...a,...o,ref:r})},"TooltipArrow"));function $le(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}qr($le,"getExitSideFromRect");function Ile(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}qr(Ile,"getPaddedExitPoints");function Fle(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}qr(Fle,"getPointsFromRect");function Dle(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a],l=t[i],c=s.x,u=s.y,d=l.x,p=l.y;u>n!=p>n&&r<(d-c)*(n-u)/(p-u)+c&&(o=!o)}return o}qr(Dle,"isPointInPolygon");function Lle(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),qle(t)}qr(Lle,"getHull");function qle(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],i=r[r.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}qr(qle,"getHullPresorted");var IPt=MPt,FPt=OPt,DPt=NPt,LPt=TPt,qPt=CPt,BPt=$Pt;function HPt({delayDuration:e=0,...t}){return f.jsx(IPt,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function VPt({...e}){return f.jsx(HPt,{children:f.jsx(FPt,{"data-slot":"tooltip",...e})})}function UPt({...e}){return f.jsx(DPt,{"data-slot":"tooltip-trigger",...e})}function WPt({className:e,sideOffset:t=0,children:r,...n}){return f.jsx(LPt,{children:f.jsxs(qPt,{"data-slot":"tooltip-content",sideOffset:t,className:B("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...n,children:[r,f.jsx(BPt,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}function Ble(e){const t=e.platelet;return!t?.color?.trim()||t.enabled===!1?null:t}function Hle(e,t){const r=e.hover?.enabled===!0;return B("group/module-card relative flex h-full min-h-0 w-full flex-col overflow-hidden bg-card text-card-foreground text-left transition-all duration-200",e.showBorder&&"border",r&&!e.hover?.shadow&&"hover:shadow-md",r&&e.hover?.shadow&&"hover:[box-shadow:var(--module-card-hover-shadow)]",r&&e.hover?.borderColor&&"hover:[border-color:var(--module-card-hover-border)]",r&&e.hover?.transform&&"hover:[transform:var(--module-card-hover-transform)]",r&&"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40",t.isClickable&&!t.disabled&&"cursor-pointer",t.disabled&&"cursor-not-allowed opacity-75",t.className)}function Vle(e,t){const r=!t?.disabled&&e.hover?.enabled===!0,n={padding:"0",minHeight:e.minHeight,maxHeight:e.maxHeight,borderRadius:e.borderRadius};return r&&e.hover?.shadow&&(n["--module-card-hover-shadow"]=e.hover.shadow),r&&e.hover?.transform&&(n["--module-card-hover-transform"]=e.hover.transform),r&&e.hover?.borderColor&&(n["--module-card-hover-border"]=e.hover.borderColor),n}function Ule(e){return e.side??"top"}function KPt(e){return e.size?.trim()||e.height?.trim()||"4px"}function GPt(e,t){const r=e??"top";if(!t?.trim())return;const n=t.trim();switch(r){case"bottom":return`0 0 ${n} ${n}`;case"left":return`${n} 0 0 ${n}`;case"right":return`0 ${n} ${n} 0`;default:return`${n} ${n} 0 0`}}function RPt({platelet:e,cardBorderRadius:t}){const r=Ule(e),n=KPt(e),o=e.borderRadius?.trim()||GPt(r,t),a=r==="top"||r==="bottom";return f.jsx("div",{className:B("shrink-0",a?"w-full":"h-full self-stretch"),style:{backgroundColor:e.color,borderRadius:o,...a?{height:n}:{width:n}},"aria-hidden":!0})}function Wle({platelet:e,cardBorderRadius:t,children:r,className:n}){if(!e)return f.jsx("div",{className:B("flex min-h-0 min-w-0 flex-1 flex-col",n),children:r});const o=Ule(e),a=f.jsx(RPt,{platelet:e,cardBorderRadius:t});return o==="left"?f.jsxs("div",{className:B("flex min-h-0 min-w-0 flex-1 flex-row",n),children:[a,f.jsx("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:r})]}):o==="right"?f.jsxs("div",{className:B("flex min-h-0 min-w-0 flex-1 flex-row",n),children:[f.jsx("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:r}),a]}):o==="bottom"?f.jsxs("div",{className:B("flex min-h-0 min-w-0 flex-1 flex-col",n),children:[f.jsx("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:r}),a]}):f.jsxs("div",{className:B("flex min-h-0 min-w-0 flex-1 flex-col",n),children:[a,f.jsx("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:r})]})}function YPt(e){return e==="header-left"||e==="top-left"?"left":"right"}function XPt({config:e}){if(e.enabled!==!0||!e.message?.trim())return null;const t=e.iconName?.trim()?Xo(e.iconName.trim()):"info",r=e.iconSize?.trim()||"1rem";return f.jsxs(VPt,{children:[f.jsx(UPt,{asChild:!0,children:f.jsx("button",{type:"button",className:"inline-flex shrink-0 items-center justify-center rounded-full text-muted-foreground hover:text-foreground",style:{width:r,height:r,color:e.iconColor},"aria-label":"More information",onClick:n=>n.stopPropagation(),children:f.jsx(Zo,{name:t,className:"h-full w-full max-h-full max-w-full"})})}),f.jsx(WPt,{side:YPt(e.position),style:{backgroundColor:e.backgroundColor,color:e.textColor},children:e.message})]})}function ZPt({config:e,widgetId:t,pageContext:r,onBeforeAction:n}){const o=e.label?.trim();if(!o)return null;const a=s=>{s.stopPropagation(),n?.(),e.action&&wr(e.action,r.context,r.dispatchAction,t,{setContextValues:r.setContextValues,dataApis:r.schema.dataApis})},i="mt-auto inline-flex items-center gap-0.5 pt-3 text-sm font-medium text-foreground hover:text-primary";return e.action?f.jsxs("button",{type:"button",className:i,onClick:a,children:[f.jsx("span",{children:o}),f.jsx(Ln,{className:"h-4 w-4 shrink-0","aria-hidden":!0})]}):f.jsxs("div",{className:B(i,"pointer-events-none"),children:[f.jsx("span",{children:o}),f.jsx(Ln,{className:"h-4 w-4 shrink-0","aria-hidden":!0})]})}function JPt({footer:e,resolvedStats:t,widgetId:r,pageContext:n}){if(e.type==="text"){const i=e.text?.trim();return i?f.jsx("div",{className:"mt-3 border-t pt-3",children:f.jsx("p",{className:"text-xs leading-relaxed text-muted-foreground",children:i})}):null}const o=e.items??[];if(o.length===0)return null;const a=e.statsLayout??"row";return f.jsx("div",{className:"mt-3 border-t pt-3",children:f.jsx("div",{className:B(a==="row"&&"flex flex-wrap gap-3",a==="stack"&&"flex flex-col gap-2",a==="lines"&&"space-y-1"),children:o.map((i,s)=>{const c=t?.[s]?.value??i.value??"—",u=i.clickable===!0&&!!i.action,d=a==="lines"?f.jsxs("span",{className:"text-sm text-muted-foreground",children:[i.label?.trim()?`${i.label} `:"",c]}):f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"text-muted-foreground",children:i.label})," ",f.jsx("span",{className:"font-semibold text-foreground",children:c})]});return u&&i.action?f.jsx("button",{type:"button",className:B("text-left hover:text-primary",a==="lines"?"text-sm":"text-xs"),onClick:p=>{p.stopPropagation(),wr(i.action,n.context,n.dispatchAction,r,{setContextValues:n.setContextValues,dataApis:n.schema.dataApis})},children:d},i.id??`${i.label}-${s}`):f.jsx("div",{className:a==="lines"?"text-sm":"text-xs",children:d},i.id??`${i.label}-${s}`)})})})}function QPt({data:e,isLoading:t,dataSource:r,valueMapping:n,trendMapping:o}){const i=(()=>{if(t)return"";if(e==null)return n.fallback??"—";if(r.mode==="context"){const c=e;return n.formatter?ql(c,n.formatter):c}if(r.mode==="static"){const c=n.path?.trim()||"value",u=Ar(e,{...n,path:c});if(u!=null)return n.formatter?ql(u,n.formatter):u;if(typeof e=="object"&&e!==null&&!Array.isArray(e)){const d=e;if(d.value!==void 0&&d.value!==null)return d.value}return n.fallback??"—"}const l=Ar(e,n);return l!=null&&n.formatter?ql(l,n.formatter):l})(),s=o&&e!==void 0&&r.mode!=="context"?Ar(e,o):o&&r.mode==="context"&&o.path?Ar({value:e},o):null;return{value:i,trend:s}}const eOt=/\{\{(\w+)\}\}/g;function Zg(e){if(e==null||e==="")return null;const t=Number(e);return Number.isFinite(t)?t:null}function Jg(e,t){const r=t??0;return r>0?e.toFixed(r):String(Math.round(e))}function tOt(e,t){const r=Zg(fe(e,t.numeratorPath))??0;let n=0;if(t.denominatorSumPaths?.length)for(const l of t.denominatorSumPaths)n+=Zg(fe(e,l))??0;if(n>0)return Jg(r/n*100,t.decimals);const o=t.valuePath?.trim();if(o){const l=fe(e,o);if(l!=null&&l!==""){const c=Zg(l);return c!==null?Jg(c,t.decimals):String(l)}}const a=t.fallbackDenominator??100,i=o?0:r,s=a>0?i/a*100:0;return Jg(s,t.decimals)}function rOt(e,t){if(t.ratioOrValue)return tOt(e,t.ratioOrValue);const r=t.path?.trim();if(!r)return t.fallback!==void 0?String(t.fallback):"—";const n={path:r,fallback:t.fallback,formatter:t.formatter},o=Ar(e,n);return o==null||o===""?t.fallback!==void 0&&t.fallback!==null?String(t.fallback):"—":t.formatter&&t.formatter.type!=="none"?ql(o,t.formatter):String(o)}function Kle(e,t,r){const n=t?.trim();if(!n)return"—";const o=r??{};return Object.keys(o).length===0||e==null?"—":n.replace(eOt,(a,i)=>{const s=o[i];return s?rOt(e,s):"—"})}function Gle(e,t){return!!(e?.trim()&&t&&Object.keys(t).length>0)}function nOt(e,t,r){if(Gle(e.template,e.parts)){const a=Kle(t,e.template,e.parts);return!a||a==="—"?null:a}const n=e.text?.trim();if(n&&e.mapping?.path?.trim()){if(t==null)return n;const a=Ar(t,e.mapping);return a!=null&&a!==""?`${a} ${n}`:e.mapping.fallback!==void 0&&e.mapping.fallback!==null&&e.mapping.fallback!==""?`${e.mapping.fallback} ${n}`:n}if(n)return n;if(!e.mapping||t===void 0||t===null)return null;const o=Ar(t,e.mapping);return o==null||o===""?e.mapping.fallback!==void 0&&e.mapping.fallback!==null&&e.mapping.fallback!==""?String(e.mapping.fallback):null:String(o)}function oOt(e,t,r){if(!e||t===void 0)return null;if(r.mode==="context"&&e.path){const o=Ar({value:t},e);return o!=null&&o!==""?String(o):e.fallback!=null&&e.fallback!==""?String(e.fallback):null}const n=Ar(t,e);return n!=null&&n!==""?String(n):e.fallback!=null&&e.fallback!==""?String(e.fallback):null}function Rle(e,t,r,n){const o=e?.position??"below",a=e?.layout??"stack",i=e?.separator!=null&&e.separator!==""?e.separator:" · ";if(e?.enabled===!0){const c=(e.lines??[]).map(u=>nOt(u,r)).filter(u=>!!u?.trim());return{enabled:c.length>0,position:o,layout:a,separator:i,lines:c}}if(e?.enabled===!1)return{enabled:!1,position:o,layout:a,separator:i,lines:[]};const s=oOt(t,r,n);return s?{enabled:!0,position:"above",layout:"stack",separator:i,lines:[s]}:{enabled:!1,position:o,layout:a,separator:i,lines:[]}}function Yle(e){return!e.enabled||e.lines.length===0?[]:e.layout==="inline"?[e.lines.join(e.separator)]:e.lines}function aOt({data:e,isLoading:t,valueDisplay:r}){return t?"":Kle(e,r.template,r.parts)}function iOt(e){return e?.mode==="template"&&Gle(e.template,e.parts)}function sOt(e,t,r){if(e.valueLabel?.trim())return e.valueLabel.trim();if(!e.valueLabelMapping||t===void 0||t===null)return null;const n=i=>i==null||i===""?null:String(i),o=i=>i==null||i===""?null:String(i);if(r.mode==="context"&&e.valueLabelMapping.path){const i=Ar({value:t},e.valueLabelMapping);return n(i)??o(e.valueLabelMapping.fallback)}const a=Ar(t,e.valueLabelMapping);return n(a)??o(e.valueLabelMapping.fallback)}function lOt(e,t,r){return!e||e.type!=="stats"?[]:(e.items??[]).map(n=>{if(n.value?.trim())return{item:n,value:n.value.trim()};if(n.valueMapping&&t!==void 0&&t!==null){const o=Ar(t,n.valueMapping);if(o!=null&&o!=="")return{item:n,value:String(o)};if(n.valueMapping.fallback)return{item:n,value:String(n.valueMapping.fallback)}}return{item:n,value:"—"}})}const Xle={minHeight:"auto",padding:"8px 16px",iconSize:"4rem",iconPosition:"right",titleIconGap:"0.5rem",titleFontSize:"1.125rem",columnGap:"1rem",rowGap:"1rem",borderRadius:"8px",hoverBackground:"color-mix(in srgb, var(--accent) 100%, transparent)",showBorder:!0};function cOt(...e){return e.reduce((t,r)=>r?{...t,...r.padding?{padding:r.padding}:{},...r.minHeight?{minHeight:r.minHeight}:{},...r.maxHeight?{maxHeight:r.maxHeight}:{},...r.width?{width:r.width}:{},...r.iconSize?{iconSize:r.iconSize}:{},...r.iconPosition?{iconPosition:r.iconPosition}:{},...r.titleIconGap?{titleIconGap:r.titleIconGap}:{},...r.titleFontSize?{titleFontSize:r.titleFontSize}:{},...r.titleColor?{titleColor:r.titleColor}:{},...r.titleFontWeight?{titleFontWeight:r.titleFontWeight}:{},...r.contentAlign?{contentAlign:r.contentAlign}:{},...r.valuePosition?{valuePosition:r.valuePosition}:{},...r.valueFontSize?{valueFontSize:r.valueFontSize}:{},...r.valueFontWeight?{valueFontWeight:r.valueFontWeight}:{},...r.valueColor?{valueColor:r.valueColor}:{},...r.valueLabelFontSize?{valueLabelFontSize:r.valueLabelFontSize}:{},...r.valueLabelColor?{valueLabelColor:r.valueLabelColor}:{},...r.borderRadius?{borderRadius:r.borderRadius}:{},...r.hoverBackground?{hoverBackground:r.hoverBackground}:{},...r.showBorder!==void 0?{showBorder:r.showBorder}:{},...r.showIcon!==void 0?{showIcon:r.showIcon}:{},...r.platelet?{platelet:{...t.platelet,...r.platelet}}:t.platelet?{platelet:t.platelet}:{},...r.hover?{hover:{...t.hover,...r.hover}}:t.hover?{hover:t.hover}:{}}:t,{})}function Zle(e,t,r){const n={...Xle,...e},o=cOt(t,r);return{padding:o.padding??n.padding,minHeight:o.minHeight??n.minHeight,maxHeight:o.maxHeight,width:o.width??"full",iconSize:o.iconSize??n.iconSize,iconPosition:o.iconPosition??n.iconPosition??"right",titleIconGap:o.titleIconGap??n.titleIconGap,titleFontSize:o.titleFontSize??n.titleFontSize,titleColor:o.titleColor,titleFontWeight:o.titleFontWeight,contentAlign:o.contentAlign??"start",valuePosition:o.valuePosition??"bottom-left",valueFontSize:o.valueFontSize,valueFontWeight:o.valueFontWeight,valueColor:o.valueColor,valueLabelFontSize:o.valueLabelFontSize,valueLabelColor:o.valueLabelColor,borderRadius:o.borderRadius??n.borderRadius,hoverBackground:o.hoverBackground??n.hoverBackground,showBorder:o.showBorder??n.showBorder??!0,platelet:o.platelet,hover:o.hover??{enabled:!1}}}function dOt(e,t){return t!==void 0?t.enabled!==!0?{...e,hover:{enabled:!1}}:{...e,hover:{enabled:!0,shadow:t.shadow,borderColor:t.borderColor,transform:t.transform}}:e.hover?.enabled===!0?e:{...e,hover:{enabled:!1}}}function uOt(e,t,r){const n={...Xle,...e};return{columnGap:t??n.columnGap,rowGap:r??n.rowGap}}function Qg(e,t){return e.showIcon!==void 0?e.showIcon:e.style?.showIcon!==void 0?e.style.showIcon:t?.showIcon!==void 0?t.showIcon:!0}const Jle={mode:"static",staticData:null,responseMapping:[]};function Qle(e,t){const{context:r,dispatchAction:n,setContextValues:o,schema:a}=jt(),i=e.disabled===!0,s=e.action,l=e.clickable===!0&&!i&&!!s;return{disabled:i,isClickable:l,handleClick:()=>{!l||!s||wr(s,r,n,t,{setContextValues:o,dataApis:a.dataApis})}}}function ece({item:e,widgetId:t,style:r,className:n,gridCardStyle:o}){const{disabled:a,isClickable:i,handleClick:s}=Qle(e,t),l=Ble(r),c=e.disabledBadge??(a&&!e.disabledTooltip?"Coming Soon":void 0),u=Qg(e,o),d=u&&r.iconPosition==="right",p=f.jsxs("div",{className:"min-w-0 flex-1",style:{display:"flex",flexDirection:"column",gap:"0.25rem"},children:[f.jsx("div",{className:"font-semibold leading-tight",style:{fontSize:r.titleFontSize,color:r.titleColor,fontWeight:r.titleFontWeight},children:e.title}),e.subtitle?f.jsx("p",{className:"text-xs text-muted-foreground",children:e.subtitle}):null,a&&!e.disabledTooltip&&!e.subtitle?f.jsx("p",{className:"text-xs text-muted-foreground",children:"Available soon"}):null]}),y=u?f.jsx(k1,{variant:"launcher",iconName:e.iconName,iconUrl:e.iconUrl,iconAlt:e.iconAlt,title:e.title,iconColor:e.iconColor,iconTintColor:e.iconTintColor,iconSize:r.iconSize}):null,m=B("relative flex h-full w-full text-left transition-colors",p3t(r.contentAlign,u?"row":"column"),i&&!a&&"group-hover/module-card:bg-[var(--module-card-hover-bg)]",a&&"opacity-75"),g=u?{gap:r.titleIconGap,flexDirection:d?"row":"row-reverse","--module-card-hover-bg":r.hoverBackground}:{"--module-card-hover-bg":r.hoverBackground},v=i?f.jsxs("button",{type:"button",className:m,style:g,onClick:s,title:a&&e.disabledTooltip?e.disabledTooltip:void 0,children:[c?f.jsx("span",{className:"absolute right-2 top-2 z-10 rounded-md bg-secondary px-2 py-0.5 text-xs",children:c}):null,p,y]}):f.jsxs("div",{className:m,style:g,title:a&&e.disabledTooltip?e.disabledTooltip:void 0,children:[c?f.jsx("span",{className:"absolute right-2 top-2 z-10 rounded-md bg-secondary px-2 py-0.5 text-xs",children:c}):null,p,y]}),b=Hle(r,{isClickable:i,disabled:a,className:B(r.width==="full"?"w-full":"w-auto",n)});return f.jsx("div",{className:b,style:Vle(r,{disabled:a}),"data-page-widget":"module_card","data-widget-id":t,children:f.jsx(Wle,{platelet:l,cardBorderRadius:r.borderRadius,children:f.jsx("div",{style:{padding:r.padding,minHeight:r.minHeight,maxHeight:r.maxHeight},children:v})})})}function tce({lines:e,className:t}){return e.length===0?null:f.jsx("div",{className:B("mt-1 space-y-0.5",t),children:e.map((r,n)=>f.jsx("p",{className:"text-sm text-muted-foreground",children:r},`${r}-${n}`))})}function fOt({item:e,widgetId:t,style:r,className:n,value:o,trend:a,valueLabel:i,captionAbove:s,captionBelow:l,footerStats:c,isLoading:u,isError:d,gridCardStyle:p}){const y=jt(),{disabled:m,isClickable:g,handleClick:v}=Qle(e,t),b=Ble(r),_=Qg(e,p),x=_&&r.iconPosition!=="right",w={fontSize:r.titleFontSize,color:r.titleColor,fontWeight:r.titleFontWeight},S=_?f.jsx(k1,{variant:"metric",iconName:e.iconName,iconUrl:e.iconUrl,iconAlt:e.iconAlt,title:e.title,iconColor:e.iconColor,iconTintColor:e.iconTintColor}):null,M=f.jsxs("div",{className:"min-w-0",children:[f.jsx("p",{className:"text-sm font-medium leading-tight text-muted-foreground",style:w,children:e.title}),e.subtitle?f.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground",children:e.subtitle}):null]}),P=!u&&(s?.length??0)===0&&(l?.length??0)===0,N=f.jsx(f.Fragment,{children:u?f.jsx("div",{className:"h-6 w-6 animate-spin rounded-full border-b-2 border-primary","aria-label":"Loading"}):f.jsx("div",{className:u3t(e.iconColor,!!r.valueColor),style:{fontSize:r.valueFontSize,fontWeight:r.valueFontWeight,color:r.valueColor},children:d?"Error":o===""?"—":String(o??"—")})}),A=f.jsxs("div",{children:[s?.length?f.jsx(tce,{lines:s}):null,N,l?.length?f.jsx(tce,{lines:l}):null,P&&i?f.jsx("p",{className:"mt-1 text-sm text-muted-foreground",style:{fontSize:r.valueLabelFontSize,color:r.valueLabelColor},children:i}):null,P&&a!=null&&a!==""?f.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:String(a)}):null]}),C=e.metricLayout==="inline",O=Hle(r,{isClickable:g,disabled:m,className:B(r.width==="full"?"w-full":"w-auto",n)}),j=r.padding??"1rem",z=Vle(r,{disabled:m}),E=r.hoverBackground,$=(s?.length??0)>0||(l?.length??0)>0,F=B("flex flex-1 flex-col",$?"min-h-min shrink-0":"min-h-0",f3t(r.valuePosition)),q=f.jsx(Wle,{platelet:b,cardBorderRadius:r.borderRadius,children:f.jsxs("div",{className:B("flex min-h-0 flex-1 flex-col",g&&!m&&"group-hover/module-card:bg-[var(--module-card-hover-bg)]"),style:{padding:j,...g&&!m&&E?{"--module-card-hover-bg":E}:{}},children:[C?f.jsxs("div",{className:"flex items-start justify-between gap-3 pb-3",children:[f.jsxs("div",{className:"flex min-w-0 flex-1 items-start gap-2",children:[x&&S,M]}),f.jsx("div",{className:"shrink-0 text-right",children:A})]}):f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"flex items-start justify-between gap-2 pb-3",children:[f.jsxs("div",{className:"flex min-w-0 flex-1 items-start gap-2",children:[x&&S,M]}),f.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[!x&&S,e.infoTooltip?.enabled===!0?f.jsx(XPt,{config:e.infoTooltip}):null]})]}),f.jsx("div",{className:F,children:A})]}),e.actionLink?f.jsx(ZPt,{config:e.actionLink,widgetId:t,pageContext:y}):null,e.footer?f.jsx(JPt,{footer:e.footer,resolvedStats:c,widgetId:t,pageContext:y}):null]})}),D={"data-page-widget":"module_card","data-widget-id":t};return g?f.jsx("button",{type:"button",className:O,style:z,onClick:v,title:m&&e.disabledTooltip?e.disabledTooltip:void 0,...D,children:q}):f.jsx("div",{className:O,style:z,title:m&&e.disabledTooltip?e.disabledTooltip:void 0,...D,children:q})}function pOt({card:e,gridConfig:t,gridData:r,gridLoading:n,gridError:o,widgetId:a,style:i,className:s}){const l=d3t(e,t.cardLayout,t),c=!!e.dataSource,{data:u,isLoading:d,isError:p}=Tr({widgetId:`${a}-${e.id}`,dataSource:e.dataSource??Jle,enabled:c});if(l==="launcher")return f.jsx(ece,{item:e,widgetId:`${a}-${e.id}`,style:i,className:s,gridCardStyle:t.cardStyle});const y=c?e.dataSource:t.dataSource,m=c?u:r,g=c?d:n,v=c?p:o,b=e.valueMapping??{target:"value",path:"value"},_=iOt(e.valueDisplay),{value:x,trend:w}=_?{value:aOt({data:m,isLoading:g,valueDisplay:e.valueDisplay}),trend:null}:QPt({data:m,isLoading:g,dataSource:y,valueMapping:b,trendMapping:e.trendMapping}),S=sOt(e,m,y),M=lOt(e.footer,m),P=m??null,N=Rle(e.caption,e.trendMapping,P,y),A=N.enabled?Yle(N):[],C=N.position==="above"?A:[],O=N.position==="below"?A:[];return f.jsx(fOt,{item:e,widgetId:`${a}-${e.id}`,style:i,className:s,value:x,trend:w,valueLabel:S,captionAbove:C,captionBelow:O,footerStats:M,isLoading:g,isError:v,gridCardStyle:t.cardStyle})}function rce(){const{schema:e}=jt();return k.useMemo(()=>Ig(e.design)?.moduleCards,[e.design])}function hOt({widget:e}){const t=rce(),r=e.config,n=Zle(t,void 0,r.style);return f.jsx(ece,{item:r,widgetId:e.id,style:n,gridCardStyle:r.style})}function ev({widget:e}){const t=rce(),r=e.config,n=r.cards??[],o=r.columns??3,a=r.layoutMode==="flex-wrap",{columnGap:i,rowGap:s}=uOt(t,r.columnGap,r.rowGap),l=r.equalHeight!==!1,c=!!r.dataSource,{data:u,isLoading:d,isError:p}=Tr({widgetId:e.id,dataSource:r.dataSource??Jle,enabled:c});return f.jsx("div",{"data-widget-id":e.id,"data-page-widget":"module_card_grid",style:a?{display:"flex",flexWrap:"wrap",gap:s,columnGap:i,alignItems:l?"stretch":"flex-start"}:{display:"grid",gridTemplateColumns:`repeat(${o}, minmax(0, 1fr))`,columnGap:i,rowGap:s,alignItems:l?"stretch":"start"},children:n.map(y=>{const m=dOt(Zle(t,r.cardStyle,y.style),r.cardHover);return f.jsx(pOt,{card:y,gridConfig:r,gridData:u,gridLoading:d,gridError:p,widgetId:e.id,style:m,className:l?"h-full":void 0},y.id)})})}const nce={primary:"bg-primary",secondary:"bg-secondary",muted:"bg-muted",accent:"bg-accent",destructive:"bg-destructive",success:"bg-green-100 dark:bg-green-900/30",warning:"bg-amber-100 dark:bg-amber-900/30",card:"bg-card"},oce={primary:"text-primary","primary-foreground":"text-primary-foreground",secondary:"text-secondary-foreground",muted:"text-muted-foreground",foreground:"text-foreground",destructive:"text-destructive",success:"text-green-900 dark:text-green-100",warning:"text-amber-900 dark:text-amber-100",white:"text-white"},ace={border:"border-border",muted:"border-muted",primary:"border-primary",input:"border-input"},ice={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg"};function tv(e){if(!e?.trim())return!1;const t=e.trim();return t.startsWith("#")||t.startsWith("rgb")||t.startsWith("hsl")||t.startsWith("var(")}function M1(e){if(!e?.trim())return{};const t=e.trim();return nce[t]?{className:nce[t]}:tv(t)?{style:{backgroundColor:t}}:{style:{backgroundColor:t}}}function Yd(e){if(!e?.trim())return{};const t=e.trim();return oce[t]?{className:oce[t]}:tv(t)?{style:{color:t}}:{style:{color:t}}}function Co(e){if(!e?.trim())return{className:"border-border"};const t=e.trim();return ace[t]?{className:ace[t]}:tv(t)?{style:{borderColor:t}}:{style:{borderColor:t}}}function rv(e){return e?.horizontal!==!1}function nv(e){return e?.vertical??!1}function sce(e){return e?.headerHorizontal!==void 0?e.headerHorizontal:rv(e)}function lce(e){return e?.headerVertical!==void 0?e.headerVertical:nv(e)}function cce(){return"w-max min-w-full text-sm"}function P1(e){const t=e?.width?.trim(),r=e?.minWidth?.trim();if(!(!t&&!r))return{...t?{width:t}:{},...r?{minWidth:r}:{}}}function dce(e){const t=e?.borders,r=t?.outer!==!1,n=e?.borderRadius??"md",o=Co(t?.color);return B("overflow-x-auto",r&&"border",r&&o.className,ice[n]??ice.md)}function uce(e){const t=e?.borders;return t?.outer!==!1?Co(t?.color).style:void 0}function O1(e){const t=M1(e?.headerBackgroundColor),r=Yd(e?.headerTextColor);return B("whitespace-nowrap px-3 py-2 text-left text-xs font-semibold uppercase tracking-wide",t.className,r.className)}function N1(e){const t=M1(e?.headerBackgroundColor),r=Yd(e?.headerTextColor);return{...t.style,...r.style}}function fce(e){const t=e?.borders,r=rv(t),n=Co(t?.color);return B("hover:bg-muted/30",r&&"border-b",r&&n.className)}function pce(e){const t=e?.borders;if(rv(t))return Co(t?.color).style}function ov(e,t,r){const n=e?.borders,o=nv(n),a=Co(n?.color);return B("px-3 py-2",t?.align==="center"&&"text-center",t?.align==="right"&&"text-right",o&&"border-r",o&&!r?.isLastColumn&&a.className)}function av(e,t){const r=e?.borders;if(!(!nv(r)||t?.isLastColumn))return Co(r?.color).style}function hce(e){const t=e?.borders,r=sce(t),n=Co(t?.color);return B(r&&"border-b",r&&n.className)}function yce(e){const t=e?.borders;if(sce(t))return Co(t?.color).style}function iv(e,t){const r=e?.borders,n=lce(r),o=Co(r?.color);return B(n&&!t?.isLastColumn&&"border-r",n&&!t?.isLastColumn&&o.className)}function sv(e,t){const r=e?.borders;if(!(!lce(r)||t?.isLastColumn))return Co(r?.color).style}function mce(e,t){if(!e||!t)return;if(e[t])return e[t];const r=t.toLowerCase();for(const[n,o]of Object.entries(e))if(n.toLowerCase()===r)return o}function lv(e,t){const r=e.cellAppearance,n=e.cellType??"text",o=t==="—"?"":t,a=(o&&mce(r?.backgroundColorMap,o))??r?.backgroundColor,i=(o&&mce(r?.textColorMap,o))??r?.textColor,s=M1(a),l=Yd(i),c=r?.pill===!0||n==="badge"||!!(a||i||r?.backgroundColorMap||r?.textColorMap);return{className:B(c&&"inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium",s.className,l.className),style:{...s.style,...l.style},asPill:c}}function yOt(e){const t=e?.trim();return t?t==="auto"?{width:"auto",alignSelf:"flex-start",maxWidth:"100%"}:t==="full"?{width:"100%"}:{width:t,maxWidth:"100%",alignSelf:"flex-start"}:{}}function j1(e){if(!e)return{className:"",style:{},hasCustomStyle:!1};const t=M1(e.backgroundColor),r=Yd(e.textColor),n=e.borderColor?Co(e.borderColor):{},o={...t.style,...r.style,...n.style};e.borderWidth?.trim()&&(o.borderWidth=e.borderWidth.trim(),o.borderStyle=o.borderStyle??"solid"),e.borderRadius?.trim()&&(o.borderRadius=e.borderRadius.trim()),e.height?.trim()?(o.height=e.height.trim(),o.minHeight=e.minHeight?.trim()||e.height.trim()):e.minHeight?.trim()&&(o.minHeight=e.minHeight.trim()),e.minWidth?.trim()&&(o.minWidth=e.minWidth.trim()),e.maxWidth?.trim()&&(o.maxWidth=e.maxWidth.trim()),e.fontWeight?.trim()&&(o.fontWeight=e.fontWeight.trim()),e.fontSize?.trim()&&(o.fontSize=e.fontSize.trim()),e.padding?.trim()&&(o.padding=e.padding.trim()),e.margin?.trim()&&(o.margin=e.margin.trim()),Object.assign(o,yOt(e.width));const a=!!(e.backgroundColor||e.textColor||e.borderColor||e.borderWidth||e.borderRadius||e.width||e.height||e.minHeight||e.minWidth||e.maxWidth||e.fontWeight||e.fontSize||e.padding||e.margin);return a&&e.width!=="full"&&o.alignSelf==null&&(o.alignSelf="flex-start"),{className:B(t.className,r.className,n.className,a&&"hover:opacity-90"),style:o,hasCustomStyle:a}}function gce({label:e,variant:t="default",size:r="default",styleOverrides:n,widgetId:o,buttonId:a,className:i,onClick:s}){const{className:l,style:c,hasCustomStyle:u}=j1(n);return f.jsx(st,{variant:t,size:r,type:"button","data-page-widget":"button","data-widget-id":o,"data-button-id":a,"data-button-custom":u?"true":void 0,className:B(l,i),style:u?c:void 0,onClick:s,children:e})}function mOt({widget:e}){const t=e.config,{context:r,dispatchAction:n,setContextValues:o,schema:a}=jt();return f.jsx(gce,{label:t.label,variant:t.variant,size:t.size,styleOverrides:t.style,widgetId:e.id,onClick:()=>wr(t.action,r,n,e.id,{setContextValues:o,dataApis:a.dataApis})})}const gOt={start:"justify-start",center:"justify-center",end:"justify-end","space-between":"justify-between"},vOt={sm:"gap-2",md:"gap-3",lg:"gap-4"};function bOt({widget:e}){const t=e.config,{context:r,dispatchAction:n,setContextValues:o,schema:a}=jt(),i=t.buttons??[];return f.jsx("div",{className:B("flex flex-wrap items-center",gOt[t.align??"start"],vOt[t.gap??"sm"],t.wrap===!1&&"flex-nowrap"),"data-widget-id":e.id,"data-page-widget":"button_group",children:i.map(s=>f.jsx(gce,{label:s.label,variant:s.variant??"outline",size:s.size??"default",styleOverrides:s.style,widgetId:e.id,buttonId:s.id,onClick:()=>wr(s.action,r,n,e.id,{setContextValues:o,dataApis:a.dataApis})},s.id))})}function ks(e,t){const r={...t,...e,row:e};for(const[n,o]of Object.entries(e))r[`row.${n}`]=o;return r}function A1(e,t){if(!e)return[];const r=t?fe(e,t):e;if(Array.isArray(r))return r;if(typeof r=="object"&&r!==null){const n=r;if(Array.isArray(n.items))return n.items;if(Array.isArray(n.data))return n.data}return[]}function vce(e,t){if(!e||typeof e!="object")return;const r=e,n=[t,"pagination.total","total","meta.total"].filter(Boolean);for(const o of n){const a=fe(r,o),i=Number(a);if(!Number.isNaN(i)&&i>=0)return i}}function bce(e,t,r){return e?.length?e:t?.length?t.map(n=>n.field).filter(Boolean):r?Object.keys(r):[]}function _ce(e,t,r,n){const o=t.trim().toLowerCase();if(!o)return e;const a=n?.trim()?[n.trim()]:r;return a.length===0?e:e.filter(i=>a.some(s=>{const l=i[s];return l==null?!1:String(l).toLowerCase().includes(o)}))}function cv(e){return e.search?.enabled!==!0?!1:e.search.showFieldPicker===!0?!0:e.search.showFieldPicker===!1?!1:e.dataSource?.mode==="static"}function _Ot(e){return!e.enabled||!e.paramKey?.trim()?null:{id:`legacy-${e.paramKey.trim()}`,label:e.placeholder,paramKey:e.paramKey.trim(),defaultValue:e.defaultValue,optionsSource:"static",includeAllOption:!0,options:e.options??[]}}function kce(e){if(!e)return[];const t=(e.filters??[]).filter(n=>n.paramKey?.trim());if(t.length>0)return t;const r=e.filter?_Ot(e.filter):null;return r?[r]:[]}function kOt(e){return e.label?.trim()?{id:"legacy-add-button",label:e.label.trim(),icon:e.icon,action:e.action??{type:"emit",eventName:"add_click"},variant:"default"}:null}function Sce(e){if(!e)return[];const t=(e.buttons??[]).filter(n=>n.label?.trim());if(t.length>0)return t;const r=e.addButton?kOt(e.addButton):null;return r?[r]:[]}function SOt(e){return e==null?!1:String(e).trim()!==""}function xce(e,t,r){const n=e,o=n?.contextKey?.trim();if(!o||!n)return{};if(!SOt(t)){if((n.whenAll??"joinOptionValues")==="omit")return{};const l=n.separator?.trim()||",",c=(r??[]).map(u=>u.value.trim()).filter(u=>u!=="").sort();return c.length===0?{}:{[o]:c.join(l)}}return(n.whenSelected??"copyParam")==="omit"?{}:{[o]:t.trim()}}function xOt(e,t,r){const n={};for(const o of e){const a=o.paramKey?.trim();if(!a)continue;const i=t[a]??"";Object.assign(n,xce(o.valueExport,i,r?.[o.id]))}return n}function wOt(e,t){const r={},n=e.paramKey?.trim(),o=t.trim();n&&o!==""&&(r[n]=o);const a=e.options??[],i=a.find(s=>s.value===t)??a.find(s=>s.value===o);for(const s of i?.extraQueryParams??[]){const l=s.param?.trim(),c=s.value?.trim();l&&c!==""&&(r[l]=c)}return r}function wce(e,t,r){const n={};for(const o of e){const a=t[o.id]??o.defaultValue??"";Object.assign(n,wOt(o,a)),Object.assign(n,xce(o.valueExport,a,r?.[o.id]))}return n}function MOt(e){const t=new Set,r=e.paramKey?.trim();r&&t.add(r);for(const n of e.options??[])for(const o of n.extraQueryParams??[]){const a=o.param?.trim();a&&t.add(a)}return[...t]}function POt(e){const t=new Set;for(const r of e)for(const n of MOt(r))t.add(n);return[...t]}function Mce(e){const t=new Set(POt(e));for(const r of e){const n=r.valueExport?.contextKey?.trim();n&&t.add(n)}return[...t]}function OOt(e,t){const r=Array.isArray(t.optionsLabelFields)?t.optionsLabelFields.map(a=>String(a).trim()).filter(Boolean):[],n=Ym(t.optionsLabelSeparator," - ");if(r.length>0){const a=r.map(i=>fe(e,i)).filter(i=>i!=null&&String(i).trim()!=="").map(i=>String(i));if(a.length>=2&&n===" (")return`${a[0]} (${a.slice(1).join(", ")})`;if(a.length>0)return a.join(n)}const o=t.optionsLabelField?.trim();if(o){const a=fe(e,o);if(a!=null&&String(a).trim()!=="")return String(a)}return""}const NOt=["activity_categories","data.activity_categories"];function jOt(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function AOt(e,t){if(e==null)return[];const r=t?.trim()||"data",n=fe(e,r);if(Array.isArray(n))return n;const o=A1(e,t);if(o.length>0)return o;for(const a of NOt){const i=fe(e,a);if(Array.isArray(i)&&(i.length===0||i.every(jOt)))return i}return[]}function T1(e){return{label:e.allOptionLabel?.trim()||"All",value:""}}function C1(e){const t=e.options??[];return e.includeAllOption===!1?t:[T1(e),...t]}function Pce(e,t){const r=e.optionsLabelField?.trim()||"label",n=e.optionsValueField?.trim()||"value",a=(e.optionsLabelFields?.filter(Boolean)??[]).length>0,s=AOt(t,e.optionsItemsPath).map((l,c)=>{if(a&&l!=null&&typeof l=="object"&&!Array.isArray(l)){const u=l,d=OOt(u,e),p=fe(u,n)??u.value??u.id,y=p==null||p===""?"":String(p);return y?{label:d||y,value:y}:zg(l,c,r,n)}return zg(l,c,r,n)}).filter(l=>l!=null);return e.includeAllOption===!1?s:[T1(e),...s]}function Oce(e){return e==null||e===""}function Nce(e){switch(e?.preset??"em_dash"){case"na":return"N/A";case"unknown":return"Unknown";case"hyphen":return"-";case"blank":return"";case"custom":return e?.customText??"—";default:return"—"}}function TOt(e,t){return!e&&!t?{preset:"em_dash"}:{preset:t?.preset??e?.preset??"em_dash",customText:t?.customText!==void 0?t.customText:e?.customText,textColor:t?.textColor!==void 0?t.textColor:e?.textColor}}const jce={on_track:{text:"text-green-600",bar:"bg-green-600"},below:{text:"text-yellow-600",bar:"bg-yellow-500"},at_risk:{text:"text-red-600",bar:"bg-red-600"}};function Ace(e,t){return e>=t.warningBelowPercent?"on_track":e>=t.criticalBelowPercent?"below":"at_risk"}function dv(e,t){return jce[Ace(e,t)].text}function Tce(e,t){return jce[Ace(e,t)].bar}function Cce(e,t=1){const r=Math.max(0,t);return r>0?e.toFixed(r):String(Math.round(e))}function $a(e,t,r){const n=r.find(o=>o.target===t);return n?fe(e,n.path):fe(e,t)}function COt(e){return Array.isArray(e)?e.map(t=>t==null?"":String(t).trim()).filter(Boolean):typeof e=="string"&&e.trim()?e.split(",").map(t=>t.trim()).filter(Boolean):[]}const Ece={outline:"border border-input bg-background text-foreground",muted:"bg-muted text-foreground",filled:"bg-secondary text-secondary-foreground"};function EOt({row:e,column:t,responseMapping:r}){const n=t.stackedText;if(!n?.secondaryField)return f.jsx("span",{className:"text-muted-foreground",children:"—"});const o=n.primaryField?.trim()||t.field,a=$a(e,o,r),i=$a(e,n.secondaryField,r),s=a==null||a===""?"—":String(a),l=i==null||i===""?null:String(i),c=n.secondaryMono!==!1;return f.jsxs("div",{children:[f.jsx("div",{className:"font-medium leading-tight",children:s}),l?f.jsx("div",{className:B("text-xs text-muted-foreground",c&&"font-mono"),children:l}):null]})}function zOt({row:e,column:t,responseMapping:r}){const n=$a(e,t.field,r),o=COt(n);if(o.length===0)return f.jsx("span",{className:"text-muted-foreground",children:"—"});const a=t.badgeList?.tone??"outline",i=Ece[a]??Ece.outline;return f.jsx("div",{className:"flex flex-wrap gap-1",children:o.map(s=>f.jsx("span",{className:B("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium",i),children:s},s))})}function $Ot({row:e,column:t,responseMapping:r}){const n=t.fraction;if(!n?.denominatorField)return f.jsx("span",{className:"text-muted-foreground",children:"—"});const o=n.numeratorField?.trim()||t.field,a=$a(e,o,r),i=$a(e,n.denominatorField,r),s=a==null||a===""?0:Number(a),l=i==null||i===""?0:Number(i),c=Number.isFinite(s)?s:0,u=Number.isFinite(l)?l:0;return f.jsxs("span",{className:"whitespace-nowrap",children:[f.jsx("span",{className:"font-medium",children:c.toLocaleString()}),f.jsxs("span",{className:"text-muted-foreground",children:[" / ",u.toLocaleString()]})]})}function IOt(e){if(!e||typeof e!="object")return null;const t=e,r=Number(t.total),n=Number(t.present);return Number.isFinite(r)?{present:Number.isFinite(n)?n:0,total:r}:null}function zce(e){return e.total<=0?0:e.present/e.total*100}function FOt(e,t){const r=t.theoryPracticalSplit??t.progressPercent??{},n=r.warningThresholdPath?Number(fe(e,r.warningThresholdPath)):NaN,o=r.criticalThresholdPath?Number(fe(e,r.criticalThresholdPath)):NaN;return{warningBelowPercent:Number.isFinite(n)?n:r.warningBelowPercent??75,criticalBelowPercent:Number.isFinite(o)?o:r.criticalBelowPercent??50}}function DOt(e,t){const r=t.progressPercent??{},n=r.warningThresholdPath?Number(fe(e,r.warningThresholdPath)):NaN,o=r.criticalThresholdPath?Number(fe(e,r.criticalThresholdPath)):NaN;return{warningBelowPercent:Number.isFinite(n)?n:r.warningBelowPercent??75,criticalBelowPercent:Number.isFinite(o)?o:r.criticalBelowPercent??50}}function LOt({row:e,column:t,responseMapping:r,attendanceValueDisplay:n}){const o=t.theoryPracticalSplit??{},a=o.theoryPath?.trim()||"theory",i=o.practicalPath?.trim()||"practical",s=n==="number"?"fraction":n==="percentage"?"percent":o.displayMode==="fraction"?"fraction":"percent",l=o.decimals??1,c=FOt(e,t),u=[{label:"T",path:a},{label:"P",path:i}];return f.jsx("div",{className:"flex items-center gap-4 whitespace-nowrap",children:u.map(({label:d,path:p})=>{const y=$a(e,p,r),m=IOt(y);return f.jsxs("span",{children:[f.jsx("span",{className:"mr-1 text-xs text-muted-foreground",children:d}),!m||m.total<=0?f.jsx("span",{className:"text-muted-foreground",children:"—"}):s==="fraction"?f.jsxs("span",{className:"font-medium",children:[m.present.toLocaleString()," / ",m.total.toLocaleString()]}):f.jsxs("span",{className:B("font-medium",dv(zce(m),c)),children:[Cce(zce(m),l),"%"]})]},d)})})}function qOt({row:e,column:t,responseMapping:r,attendanceValueDisplay:n}){const o=t.progressPercent??{},a=DOt(e,t),i=o.decimals??1,s=o.barWidth??"7rem",l=$a(e,t.field,r),c=Number(l),u=l!=null&&l!==""&&Number.isFinite(c);if(n==="number"){const y=o.countNumeratorField?.trim()||"present_count",m=o.countDenominatorField?.trim()||"total_count",g=$a(e,y,r),v=$a(e,m,r),b=Number(g),_=Number(v),x=Number.isFinite(b)?b:0,w=Number.isFinite(_)?_:0,S=u?c:w>0?x/w*100:0,M=Math.min(100,Math.max(0,S));return f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"h-1.5 overflow-hidden rounded-full bg-muted",style:{width:s},children:f.jsx("div",{className:B("h-full rounded-full",Tce(S,a)),style:{width:`${M}%`}})}),f.jsxs("span",{className:B("whitespace-nowrap font-medium",dv(S,a)),children:[x.toLocaleString()," / ",w.toLocaleString()]})]})}if(!u)return f.jsx("span",{className:"text-muted-foreground",children:"—"});const d=Math.min(100,Math.max(0,c)),p=`${Cce(c,i)}%`;return f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"h-1.5 overflow-hidden rounded-full bg-muted",style:{width:s},children:f.jsx("div",{className:B("h-full rounded-full",Tce(c,a)),style:{width:`${d}%`}})}),f.jsx("span",{className:B("whitespace-nowrap font-medium",dv(c,a)),children:p})]})}const BOt=/^#[0-9A-Fa-f]{6}$/,HOt=/^[0-9A-Fa-f]{6}$/;function $ce(e){if(e==null)return"";const t=String(e).trim();return t?BOt.test(t)?t.toLowerCase():HOt.test(t)?`#${t.toLowerCase()}`:"":""}const Ice=" ";function VOt(e,t,r){const n=t.trim();if(!n)return;const o=r.find(a=>a.target===n||a.path===n);return o?Ar(e,o):fe(e,n)}function UOt(e,t,r){return e==null?"":r?p1(e,r,t):String(e)}function WOt(e){if(e.length<2)return e;const t=[];for(let r=0;r<e.length;r++){const n=e[r];t.push(n);const o=e[r+1];n.type==="value"&&o?.type==="value"&&t.push({type:"separator",text:Ice})}return t}function KOt(e,t,r=[]){const n=WOt(t.parts??[]),o=[];let a="",i=!1;for(const s of n){if(s.type==="separator"){const d=s.text??Ice;d&&(o.push({kind:"separator",text:d}),a+=d);continue}const l=VOt(e,s.path,r),c=s.displayAs??"text";if(c==="colorSwatch"){const d=$ce(l);d&&(o.push({kind:"colorSwatch",hex:d,shape:s.colorSwatchShape??"square"}),i=!0);continue}const u=UOt(l,e,s.formatter);Oce(u)||(i=!0,a+=u,c==="badge"?o.push({kind:"badge",text:u,variant:s.badgeVariant}):o.push({kind:"text",text:u}))}return{pieces:o,plainText:a,isEmpty:!i}}const Fce={default:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-green-100 text-green-900 dark:bg-green-900/30 dark:text-green-100",destructive:"bg-destructive text-primary-foreground",outline:"border border-input bg-background text-foreground"};function GOt({pieces:e}){return f.jsx("span",{className:"inline-flex flex-wrap items-center gap-0",children:e.map((t,r)=>{const n=`${t.kind}-${r}`;if(t.kind==="separator")return f.jsx("span",{className:"whitespace-pre",children:t.text},n);if(t.kind==="colorSwatch"){const o=t.shape==="round"?"rounded-full":"rounded-sm";return f.jsx("span",{className:B("mx-0.5 inline-block h-4 w-4 shrink-0 border border-border/60",o),style:{backgroundColor:t.hex},title:t.hex,"aria-label":`Colour ${t.hex}`},n)}if(t.kind==="badge"){const o=Fce[t.variant??"secondary"]??Fce.secondary;return f.jsx("span",{className:B("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium",o),children:t.text},n)}return f.jsx("span",{className:"font-medium",children:t.text},n)})})}const uv={default:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-green-100 text-green-900 dark:bg-green-900/30 dark:text-green-100",destructive:"bg-destructive text-primary-foreground",outline:"border border-input bg-background text-foreground"};function ROt(e,t,r){const n=r.find(o=>o.target===t);return n?Ar(e,n):fe(e,t)}function YOt(e,t,r){return t.formatter?p1(e,t.formatter,r):String(e)}function Xd({emptyCell:e,className:t}){const r=Nce(e),n=Yd(e.textColor);return r?f.jsx("span",{className:B(e.textColor?n.className:"text-muted-foreground",t,n.className),style:n.style,children:r}):f.jsx("span",{className:B("inline-block min-w-[0.5rem]",n.className,t),style:n.style,"aria-hidden":!0})}function XOt({row:e,column:t,responseMapping:r,tableDefaultEmptyCell:n,widgetId:o,dispatchAction:a,setContextValues:i,pageContext:s,attendanceValueDisplay:l}){const c=ROt(e,t.field,r),u=t.cellType??"text",d=TOt(n,t.emptyCell),p=x=>!t.cellAction||!a||!o?x:f.jsx("button",{type:"button",className:"text-left underline-offset-2 hover:underline",onClick:w=>{w.stopPropagation();const S={row:e,value:c,field:t.field};wr(t.cellAction,ks(e,s??{}),a,o,{setContextValues:i,payload:S})},children:x});switch(u){case"stacked_text":return p(f.jsx(EOt,{row:e,column:t,responseMapping:r}));case"badge_list":return p(f.jsx(zOt,{row:e,column:t,responseMapping:r}));case"fraction":return p(f.jsx($Ot,{row:e,column:t,responseMapping:r}));case"progress_percent":return p(f.jsx(qOt,{row:e,column:t,responseMapping:r,attendanceValueDisplay:l}));case"theory_practical_split":return p(f.jsx(LOt,{row:e,column:t,responseMapping:r,attendanceValueDisplay:l}))}if(u==="composite"&&(t.composite?.parts?.length??0)>0){const x=KOt(e,t.composite,r);if(x.isEmpty)return p(f.jsx(Xd,{emptyCell:d}));const w=f.jsx("span",{title:x.plainText||void 0,children:f.jsx(GOt,{pieces:x.pieces})});return t.truncate?p(f.jsx("span",{className:"block truncate",style:{maxWidth:t.maxWidth??"200px"},children:w})):p(w)}const m=!(t.formatter?.type==="row_label_rules"||t.formatter?.type==="boolean_labels"&&(t.formatter.whenLabels?.length??0)>0)&&Oce(c),g=m?Nce(d):YOt(c,t,e),v=lv(t,g),b=!!t.cellAppearance&&(!!t.cellAppearance?.backgroundColor||!!t.cellAppearance?.textColor||!!t.cellAppearance?.backgroundColorMap||!!t.cellAppearance?.textColorMap||t.cellAppearance?.pill===!0);if(m){if(u==="badge"||b){const x=g;return b&&v.asPill?p(f.jsx("span",{className:v.className,style:v.style,children:x?f.jsx(Xd,{emptyCell:d}):null})):p(f.jsx("span",{className:B("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium",uv.outline,v.className),style:v.style,children:x?f.jsx(Xd,{emptyCell:d}):null}))}return p(f.jsx(Xd,{emptyCell:d}))}if(u==="colorSwatch"){const x=$ce(c);if(!x)return p(f.jsx(Xd,{emptyCell:d}));const S=(t.colorSwatchShape??"square")==="round"?"rounded-full":"rounded-sm";return p(f.jsx("div",{className:B("h-4 w-4 shrink-0 border border-border/60",S),style:{backgroundColor:x},title:x,"aria-label":`Colour ${x}`}))}if(u==="badge"||b){const x=g;if(b&&v.asPill)return p(f.jsx("span",{className:v.className,style:v.style,children:x}));const w=(x&&t.badgeVariantMap?.[x])??t.badgeVariant??"secondary",S=uv[w]??uv.secondary;return p(f.jsx("span",{className:B("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium",S,v.className),style:v.style,children:x}))}if(u==="boolean"){if(t.formatter)return p(f.jsx("span",{children:g}));const x=c===!0||c==="true"||c===1||c==="1"||c==="yes"||c==="Yes";return p(f.jsx("span",{children:x?"Yes":"No"}))}if(u==="number"){const x=Number(c);return p(f.jsx("span",{children:Number.isNaN(x)?g:x.toLocaleString()}))}const _=g;return t.truncate?p(f.jsx("span",{className:"block truncate",style:{maxWidth:t.maxWidth??"200px"},title:_,children:_})):p(f.jsx(f.Fragment,{children:_}))}function ZOt(e,t,r=5){if(t<=1)return t===1?[1]:[];if(t<=r+2)return Array.from({length:t},(i,s)=>s+1);let n=Math.max(1,e-Math.floor(r/2)),o=Math.min(t,n+r-1);o-n<r-1&&(n=Math.max(1,o-r+1));const a=[];n>1&&(a.push(1),n>2&&a.push(null));for(let i=n;i<=o;i+=1)a.push(i);return o<t&&(o<t-1&&a.push(null),a.push(t)),a}const JOt=[10,20,50,100];function QOt(e){return["min-w-[2rem] rounded border px-2 py-1 text-center",e?"border-primary bg-primary/10 font-medium":"hover:bg-muted"].join(" ")}function Dce({page:e,pageSize:t,total:r,itemLabel:n="items",showSizeChanger:o,onPageChange:a,onPageSizeChange:i}){const s=Math.max(1,Math.ceil(r/t)),l=r===0?0:(e-1)*t+1,c=Math.min(e*t,r),u=e<s,d=ZOt(e,s);return f.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 text-sm",children:[f.jsx("span",{className:"text-muted-foreground",children:r===0?`No ${n}`:`Showing: ${l} to ${c} of ${r} ${n}`}),f.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[o&&f.jsxs("label",{className:"flex items-center gap-2 text-muted-foreground",children:["Per page",f.jsx("select",{className:"h-8 rounded-md border border-input bg-background px-2 text-sm",value:t,onChange:p=>{i(Number(p.target.value)),a(1)},children:JOt.map(p=>f.jsx("option",{value:p,children:p},p))})]}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("button",{type:"button",className:"rounded border px-2 py-1 disabled:opacity-50",disabled:e<=1,onClick:()=>a(e-1),children:"Previous"}),d.map((p,y)=>p==null?f.jsx("span",{className:"min-w-[2rem] px-1 text-center text-muted-foreground","aria-hidden":!0,children:"…"},`ellipsis-${y}`):f.jsx("button",{type:"button",className:QOt(p===e),"aria-current":p===e?"page":void 0,onClick:()=>a(p),children:p},p)),f.jsx("button",{type:"button",className:"rounded border px-2 py-1 disabled:opacity-50",disabled:!u,onClick:()=>a(e+1),children:"Next"})]})]})]})}const Lce={default:"bg-primary text-primary-foreground hover:bg-primary/90",outline:"border border-input bg-background text-foreground hover:bg-muted",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90"};function e6t(e,t){const r=(t??e).toLowerCase();return r.includes("delete")||r.includes("trash")?f.jsx(wa,{className:"h-3.5 w-3.5 shrink-0",strokeWidth:2}):r.includes("edit")||r.includes("pencil")||r.includes("view")?f.jsx(Hf,{className:"h-3.5 w-3.5 shrink-0",strokeWidth:2}):null}function t6t({rowAction:e,onClick:t}){const r=e.variant??"outline",n=e.iconPosition??"left",o=e.style,{className:a,style:i,hasCustomStyle:s}=j1(o),l=!!(o?.backgroundColor||o?.textColor||o?.borderColor),c=e.iconName?.trim()?Xo(e.iconName.trim()):null,u=c?f.jsx(Zo,{name:c,className:B("shrink-0",o?.fontSize?"":"h-3.5 w-3.5")}):e6t(e.label,e.icon);return f.jsxs("button",{type:"button",className:B("inline-flex cursor-pointer items-center gap-1 rounded-md font-medium transition-colors",!o?.height&&!o?.padding&&"px-2 py-1 text-xs",!o?.fontSize&&!o?.height&&"text-xs",!l&&(Lce[r]??Lce.outline),s&&"hover:opacity-90",a),style:i,onClick:t,children:[n==="left"&&u,f.jsx("span",{children:e.label}),n==="right"&&u]})}function r6t({row:e,rowActions:t,pageContext:r,widgetId:n,dispatchAction:o,setContextValues:a}){if(t.length===0)return null;const i=ks(e,r),s=t.filter(l=>Bl(l.visibleWhen,i));return s.length===0?null:f.jsx("div",{className:"flex items-center justify-end gap-1",children:s.map(l=>f.jsx(t6t,{rowAction:l,onClick:c=>{c.stopPropagation(),wr(l.action,i,o,n,{setContextValues:a,payload:{row:e,...e}})}},l.id))})}function fv(e){const t=e?.trim();return t?t==="auto"?{width:"auto",alignSelf:"flex-start",maxWidth:"100%",flexShrink:0}:t==="full"?{width:"100%",flex:"1 1 auto",maxWidth:"100%"}:{width:t,maxWidth:"100%",flexShrink:0,alignSelf:"flex-start"}:{}}function pv(e,t){const r={},n=!!(e?.width?.trim()||e?.minWidth?.trim()||e?.maxWidth?.trim()),o=!!e?.height?.trim();return e?.height?.trim()&&(r.height=e.height.trim()),e?.minWidth?.trim()&&(r.minWidth=e.minWidth.trim()),e?.maxWidth?.trim()&&(r.maxWidth=e.maxWidth.trim()),Object.assign(r,fv(e?.width)),!n&&!t?.showFieldPicker?(Object.assign(r,fv("full")),e?.maxWidth?.trim()||(r.maxWidth="24rem"),e?.minWidth?.trim()||(r.minWidth="12.5rem")):!n&&t?.showFieldPicker&&Object.assign(r,fv("15rem")),{style:r,hasCustomWidth:n,hasCustomHeight:o}}const n6t={mode:"static",staticData:[],responseMapping:[]};function o6t(e){return e.map(t=>`${t.value}${t.label}`).join("")}function a6t({filter:e,value:t,onChange:r,onOptionsResolved:n}){const o=e.optionsSource??"static",a=k.useMemo(()=>o==="static"?C1(e):[],[e,o]),i=k.useMemo(()=>JSON.stringify(e.optionsDataSource??null),[e.optionsDataSource]),s=k.useMemo(()=>e.optionsDataSource??n6t,[i]),{data:l,isLoading:c,isError:u}=Tr({widgetId:`filter-options-${e.id}`,dataSource:s,enabled:o==="api"&&!!e.optionsDataSource}),d=k.useMemo(()=>{if(e.includeAllOption===!1)return[];const v=C1(e)[0];return v?[v]:[]},[e.id,e.includeAllOption,e.allOptionLabel,e.paramKey]),p=k.useMemo(()=>o==="static"?a:c||u||l==null?d:Pce(e,l),[o,a,c,u,l,e,d]),y=o6t(p),m=k.useRef("");k.useEffect(()=>{m.current!==y&&(m.current=y,n?.(e.id,p))},[e.id,p,y,n]);const g=e.label?.trim()||e.paramKey||"Filter";return f.jsx("select",{className:B("h-9 shrink-0 rounded-md border border-input bg-background px-3 py-1 text-sm shadow-xs","w-[160px]"),value:t,onChange:v=>r(v.target.value),"aria-label":g,disabled:o==="api"&&c&&p.length===0,children:p.length===0?f.jsx("option",{value:"",children:c?"Loading…":u?"Failed to load":"No options"}):p.map((v,b)=>f.jsx("option",{value:v.value,children:v.label},`${e.id}-${v.value||"__all__"}-${b}`))})}const qce={default:"bg-primary text-primary-foreground hover:bg-primary/90",outline:"border border-input bg-background text-foreground hover:bg-muted",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90"};function i6t({button:e,onClick:t}){const r=e.variant??"default",n=e.iconPosition??"left",o=e.style,{className:a,style:i,hasCustomStyle:s}=j1(o),l=!!(o?.backgroundColor||o?.textColor||o?.borderColor),c=e.iconName?.trim()?Xo(e.iconName.trim()):null,u=o?.fontSize?"":"h-4 w-4",d=c?f.jsx(Zo,{name:c,className:B("shrink-0",u)}):null;return f.jsxs("button",{type:"button",className:B("inline-flex cursor-pointer items-center gap-1.5 rounded-md font-medium transition-colors",!o?.height&&!o?.padding&&"h-9 px-3",!o?.fontSize&&"text-sm",!l&&(qce[r]??qce.default),s&&"hover:opacity-90",a),style:i,onClick:t,children:[n==="left"&&d,f.jsx("span",{children:e.label}),n==="right"&&d]})}function s6t({config:e,value:t,onChange:r}){if(e?.enabled!==!0)return null;const n=[{id:"percentage",label:"Percentage"},{id:"number",label:"Number"}];return f.jsx("div",{className:"inline-flex shrink-0 overflow-hidden rounded-md border border-input bg-background shadow-xs",role:"group","aria-label":"Attendance value format",children:n.map((o,a)=>{const i=t===o.id;return f.jsx("button",{type:"button",className:B("h-9 px-3 text-sm transition-colors",a>0&&"border-l border-input",i?"bg-muted font-medium text-foreground":"bg-background text-foreground hover:bg-muted/60"),"aria-pressed":i,onClick:()=>r(o.id),children:o.label},o.id)})})}function Bce(e,t){if(t?.enabled!==!0)return t?.defaultValue==="number"?"number":"percentage";const r=t.contextKey?.trim()||"attendanceValueDisplay",n=e?.[r];return n==="number"||n==="percentage"?n:t.defaultValue==="number"?"number":"percentage"}function l6t({columns:e,visible:t,onToggle:r}){return f.jsxs(yi,{children:[f.jsx(cs,{asChild:!0,children:f.jsxs("button",{type:"button",className:B("inline-flex h-9 shrink-0 items-center gap-2 rounded-md border border-input bg-background px-3 py-1 text-sm shadow-xs","hover:bg-accent hover:text-accent-foreground"),children:["Columns",f.jsx(Qo,{className:"h-4 w-4","aria-hidden":!0})]})}),f.jsx(mi,{align:"end",className:"w-56 p-2",children:f.jsx("ul",{className:"space-y-1",children:e.map(({id:n,label:o})=>{const a=t[n]!==!1;return f.jsx("li",{children:f.jsxs("label",{className:"flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-accent",children:[f.jsx("input",{type:"checkbox",className:"h-4 w-4 shrink-0",checked:a,onChange:i=>r(n,i.target.checked)}),f.jsx("span",{className:"flex-1 truncate",children:o})]})},n)})})})]})}function Hce({widgetId:e,search:t,searchValue:r,searchField:n,onSearchChange:o,onSearchFieldChange:a,toolbar:i,toolbarFilters:s=[],toolbarButtons:l=[],filterValues:c,onFilterChange:u,onFilterOptionsResolved:d,pageContext:p,dataApis:y,setContextValues:m,dispatchAction:g,columnPicker:v}){const b=t?.enabled,_=v?.enabled===!0&&(v.columns?.length??0)>0,x=t?.fieldOptions??[],w=b&&t?.showFieldPicker===!0&&x.length>1,S=pv(t?.style,{showFieldPicker:w}),M=s,P=M.length>0,N=i?.attendanceValueDisplay,A=N?.enabled===!0,C=Bce(p,N),O=N?.contextKey?.trim()||"attendanceValueDisplay",j=$=>{m?.({[O]:$})},z=k.useMemo(()=>l.filter($=>Bl($.visibleWhen,p)),[l,p]);if(!b&&!P&&!A&&z.length===0&&!_)return null;const E=$=>{$.action&&wr($.action,p,g,e,{setContextValues:m,dataApis:y})};return f.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[f.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2 overflow-x-auto",children:[b&&f.jsxs(f.Fragment,{children:[w&&f.jsxs("select",{className:B("h-9 shrink-0 rounded-md border border-input bg-background px-3 py-1 text-sm shadow-xs","w-[140px]"),value:n,onChange:$=>a($.target.value),"aria-label":"Search field",children:[f.jsx("option",{value:"",children:"All fields"}),x.map($=>f.jsx("option",{value:$.field,children:$.label},$.field))]}),f.jsx("input",{type:"search",className:B("shrink-0 rounded-md border border-input bg-background px-3 py-1 text-sm shadow-xs",!S.hasCustomHeight&&"h-9"),style:S.style,placeholder:t?.placeholder??"Search…",value:r,onChange:$=>o($.target.value)})]}),M.map($=>f.jsx(a6t,{filter:$,value:c[$.id]??$.defaultValue??"",onChange:F=>u($.id,F),onOptionsResolved:d},$.id)),A&&f.jsx(s6t,{config:N,value:C,onChange:j})]}),(_||z.length>0)&&f.jsxs("div",{className:"flex shrink-0 flex-wrap items-center justify-end gap-2 self-end sm:self-auto","data-testid":"data-table-toolbar-actions",children:[_&&v&&f.jsx(l6t,{columns:v.columns,visible:v.visible,onToggle:v.onToggle}),z.map($=>f.jsx(i6t,{button:$,onClick:()=>E($)},$.id))]})]})}function c6t({label:e,sortDir:t,sortable:r,onSort:n,className:o,style:a,title:i}){if(!r)return f.jsx("th",{className:o,style:a,title:i,children:e});const s=t==="asc"?X3:t==="desc"?S3:D3;return f.jsx("th",{className:o,style:a,title:i,children:f.jsxs("button",{type:"button",onClick:l=>{l.stopPropagation(),n?.()},className:"inline-flex max-w-full items-center gap-1.5 whitespace-nowrap font-medium",children:[f.jsx("span",{className:"truncate",children:e}),f.jsx(s,{className:B("h-3.5 w-3.5 shrink-0",t?"text-foreground":"text-muted-foreground"),"aria-hidden":!0})]})})}function d6t(e){return Object.fromEntries(e.map(t=>[t.id,!0]))}function u6t(e,t){const r={};for(const n of t)r[n.id]=e[n.id]??!0;return r}function f6t(e,t,r){return r?e.filter(n=>t?.[n.id]!==!1):e}function Vce(e){return e.sorting?.enabled===!0}function p6t(e,t){return Vce(e)?t.sortable!==!1:!1}function h6t(e){return e.sortKey?.trim()||e.field}function y6t(e,t){return!e||e.field!==t?{field:t,dir:"asc"}:e.dir==="asc"?{field:t,dir:"desc"}:null}function m6t(e,t){if(e==null&&t==null)return 0;if(e==null)return 1;if(t==null)return-1;if(typeof e=="number"&&typeof t=="number")return e-t;const r=String(e),n=String(t);return r.localeCompare(n,void 0,{numeric:!0,sensitivity:"base"})}function g6t(e,t,r){const n=r==="asc"?1:-1;return[...e].sort((o,a)=>m6t(fe(o,t),fe(a,t))*n)}function v6t({widget:e}){const t=e.config,{setFilterValue:r}=jt(),[n,o]=k.useState("");return k.useEffect(()=>{const a=t.debounceMs??300,i=setTimeout(()=>{r(t.filterGroupKey,"search",n)},a);return()=>clearTimeout(i)},[n,t.debounceMs,t.filterGroupKey,r]),f.jsx("input",{type:"search",className:"flex h-9 w-full max-w-sm rounded-md border border-input bg-background px-3 py-1 text-sm shadow-xs",placeholder:t.placeholder??"Search…",value:n,onChange:a=>o(a.target.value),"data-widget-id":e.id})}function b6t(e,t){return A1(e,t)}function _6t({widget:e}){const t=e.config,{schema:r,context:n,dispatchAction:o,replaceFilterGroup:a,setFilterValue:i,setContextValues:s,onAction:l}=jt(),[c,u]=k.useState(1),[d,p]=k.useState(t.pagination?.pageSize??10),[y,m]=k.useState(""),[g,v]=k.useState(""),[b,_]=k.useState(""),x=t.filters?.filterGroupKey??e.id,w=t.search?.filterGroupKey?.trim()||x,S=t.search?.enabled===!0&&t.search.publishToFilterGroup===!0,M=t.search?.debounceMs??300,P=k.useMemo(()=>kce(t.toolbar),[t.toolbar]),N=k.useMemo(()=>Sce(t.toolbar),[t.toolbar]),A=t.toolbar?.attendanceValueDisplay,C=k.useMemo(()=>Bce(n,A),[n,A]);k.useEffect(()=>{if(A?.enabled!==!0)return;const Y=A.contextKey?.trim()||"attendanceValueDisplay",ge=n[Y];ge==="percentage"||ge==="number"||s({[Y]:A.defaultValue==="number"?"number":"percentage"})},[A,n,s]);const O=k.useMemo(()=>{const Y={};for(const ge of P)Y[ge.id]=ge.defaultValue??(ge.includeAllOption===!1?ge.options?.[0]?.value??"":T1(ge).value);return Y},[P]),j=Vce(t),z=t.columnPicker?.enabled===!0,[E,$]=k.useState(null),[F,q]=k.useState(()=>d6t(t.columns)),D=k.useMemo(()=>t.columns.map(Y=>Y.id).join(""),[t.columns]);k.useEffect(()=>{q(Y=>{const ge=u6t(Y,t.columns);return Ll(Y,ge)?Y:ge})},[D,t.columns]);const[H,I]=k.useState(O),[L,R]=k.useState({}),V=k.useCallback((Y,ge)=>{R(Fe=>{const bt=Fe[Y];return bt&&bt.length===ge.length&&bt.every((We,$t)=>We.value===ge[$t]?.value&&We.label===ge[$t]?.label)?Fe:{...Fe,[Y]:ge}})},[]),G=k.useMemo(()=>P.map(Y=>`${Y.id}\0${Y.paramKey??""}`).join(`
53
53
  `),[P]),Z=k.useMemo(()=>Mce(P).concat(S&&w===x?["search"]:[]),[G,S,w,x]);k.useEffect(()=>{I(Y=>{const ge={...O};for(const Fe of P)Fe.id in Y&&(ge[Fe.id]=Y[Fe.id]);return Ll(Y,ge)?Y:ge})},[O,P]),k.useEffect(()=>{if(!S)return;const Y=setTimeout(()=>{_(y)},M);return()=>clearTimeout(Y)},[y,S,M]),k.useEffect(()=>{S&&i(w,"search",b)},[b,S,w,i]),k.useEffect(()=>{if(P.length===0)return;const Y=wce(P,H,L),ge=S&&w===x?{...Y,search:b}:Y;a(x,ge,{resetKeys:Z})},[P,x,H,a,S,w,b,L,Z]);const te=k.useMemo(()=>{const Y=t.dataSource?.filterGroupKey?.trim(),ge=P.length>0?x:Y||void 0;return ge?{...t.dataSource,filterGroupKey:ge}:t.dataSource},[t.dataSource,P.length,x]),K=cv(t),{data:re,isLoading:Q,isError:ee}=Tr({widgetId:e.id,dataSource:te,page:c,pageSize:d,search:t.search?.enabled?y:void 0,searchField:t.search?.enabled&&K&&g?g:void 0,sortField:j&&E?E.field:void 0,sortOrder:j&&E?E.dir:void 0}),J=t.dataSource.mode==="pageApi"&&t.dataSource.dataSourceRef?r.dataApis?.[t.dataSource.dataSourceRef]:void 0,W=t.dataSource.mode==="pageApi"&&t.dataSource.dataSourceRef?J:t.dataSource.api,ye=t.dataSource.mode==="pageApi"?J?.itemsPath:W?.itemsPath,oe=t.dataSource.mode==="pageApi"?J?.totalPath:W?.totalPath,ce=k.useMemo(()=>t.dataSource.mode==="static"&&Array.isArray(re)?re:b6t(re,ye??"data"),[t.dataSource.mode,re,ye]),de=k.useMemo(()=>bce(t.search?.searchFields,t.columns,ce[0]),[t.search?.searchFields,t.columns,ce]),ve=k.useMemo(()=>de.map(Y=>{const ge=t.columns.find(Fe=>Fe.field===Y);return{field:Y,label:ge?.header?.trim()||Y}}),[de,t.columns]),ie=k.useMemo(()=>!t.search?.enabled||!y.trim()||t.dataSource.mode!=="static"?ce:_ce(ce,y,de,g||void 0),[t.search?.enabled,t.dataSource.mode,ce,y,de,g]),Ae=k.useMemo(()=>!j||!E||t.dataSource.mode!=="static"?ie:g6t(ie,E.field,E.dir),[t.dataSource.mode,ie,E,j]),Ce=k.useMemo(()=>f6t(t.columns,F,z),[t.columns,F,z]),_e=vce(re,oe??"pagination.totalItems")??Ae.length,Ee=t.rowActions??[],He=Ee.length>0,tt=Ce.length+(He?1:0),be=(Y,ge)=>{q(Fe=>!ge&&t.columns.filter(We=>Fe[We.id]!==!1).length<=1&&Fe[Y]!==!1?Fe:{...Fe,[Y]:ge})},Oe=Y=>{$(ge=>y6t(ge,Y)),u(1)},Xe=t.appearance,Kt=Y=>{if(t.rowAction){if(t.rowAction.type==="navigate"&&l){o(t.rowAction,e.id,"click",{row:Y});return}const ge={row:Y,...Y};wr(t.rowAction,ks(Y,n),o,e.id,{setContextValues:s,payload:ge,dispatchPayload:{row:Y},dataApis:r.dataApis});return}o({type:"emit",eventName:"row_click",payload:{row:Y}},e.id,"row_click",{row:Y})};return f.jsxs("div",{className:"space-y-3","data-widget-id":e.id,"data-widget-type":"data_table",children:[f.jsx(Hce,{widgetId:e.id,search:t.search?.enabled?{enabled:!0,placeholder:t.search.placeholder,fieldOptions:ve,showFieldPicker:K&&ve.length>1,style:t.search.style}:void 0,searchValue:y,searchField:g,onSearchChange:Y=>{m(Y),u(1)},onSearchFieldChange:Y=>{v(Y),u(1)},toolbar:t.toolbar,toolbarFilters:P,toolbarButtons:N,filterValues:H,onFilterChange:(Y,ge)=>{I(Fe=>({...Fe,[Y]:ge})),u(1)},onFilterOptionsResolved:V,pageContext:n,dataApis:r.dataApis,setContextValues:s,dispatchAction:o,columnPicker:z?{enabled:!0,columns:t.columns.map(Y=>({id:Y.id,label:Y.header?.trim()||Y.field})),visible:F,onToggle:be}:void 0}),f.jsx("div",{className:dce(Xe),style:uce(Xe),children:f.jsxs("table",{className:cce(),children:[f.jsx("thead",{children:f.jsxs("tr",{className:hce(Xe),style:yce(Xe),children:[Ce.map((Y,ge)=>{const Fe=ge===Ce.length-1&&!He,bt=p6t(t,Y),We=h6t(Y),$t=E?.field===We?E.dir:null;return f.jsx(c6t,{label:Y.header,sortDir:$t,sortable:bt,onSort:()=>Oe(We),className:B(O1(Xe),iv(Xe,{isLastColumn:Fe}),Y.align==="center"&&"text-center",Y.align==="right"&&"text-right"),style:{...N1(Xe),...sv(Xe,{isLastColumn:Fe}),...P1(Y)},title:Y.header},Y.id)}),He&&f.jsx("th",{className:B(O1(Xe),iv(Xe,{isLastColumn:!0}),"min-w-[96px] text-right"),style:{...N1(Xe),...sv(Xe,{isLastColumn:!0})},children:"Actions"})]})}),f.jsx("tbody",{children:Q?f.jsx("tr",{children:f.jsx("td",{colSpan:tt,className:"px-3 py-8 text-center",children:f.jsx(tn,{})})}):ee?f.jsx("tr",{children:f.jsx("td",{colSpan:tt,className:"px-3 py-8 text-center text-destructive",children:"Failed to load data"})}):Ae.length===0?f.jsx("tr",{children:f.jsx("td",{colSpan:tt,className:"px-3 py-8 text-center text-muted-foreground",children:t.emptyMessage??"No data"})}):Ae.map((Y,ge)=>f.jsxs("tr",{className:B(fce(Xe),(t.rowAction||!He)&&"cursor-pointer"),style:pce(Xe),onClick:()=>Kt(Y),children:[Ce.map((Fe,bt)=>f.jsx("td",{className:ov(Xe,Fe,{isLastColumn:bt===Ce.length-1&&!He}),style:{...av(Xe,{isLastColumn:bt===Ce.length-1&&!He}),...P1(Fe)},children:f.jsx(XOt,{row:Y,column:Fe,responseMapping:t.dataSource.responseMapping??[],tableDefaultEmptyCell:t.defaultEmptyCell,widgetId:e.id,dispatchAction:o,setContextValues:s,pageContext:n,attendanceValueDisplay:A?.enabled===!0?C:void 0})},Fe.id)),He&&f.jsx("td",{className:ov(Xe,void 0,{isLastColumn:!0}),style:av(Xe,{isLastColumn:!0}),children:f.jsx("div",{className:"text-right",children:f.jsx(r6t,{row:Y,rowActions:Ee,pageContext:n,widgetId:e.id,dispatchAction:o,setContextValues:s})})})]},ge))})]})}),t.pagination?.enabled&&f.jsx(Dce,{page:c,pageSize:d,total:_e,itemLabel:t.pagination.itemLabel??"items",showSizeChanger:t.pagination.showSizeChanger,onPageChange:u,onPageSizeChange:p})]})}function E1(e){return e?Array.isArray(e)?e.map(t=>t.trim()).filter(Boolean):e.split(",").map(t=>t.trim()).filter(Boolean):[]}function Wl(e){return e==null?!1:String(e).trim()!==""}function Uce(e,t){const r=E1(t);return r.length===0?!0:r.every(n=>Wl(e[n]))}function k6t(e,t){return{...e,...t}}function S6t(e,t,r){const n=k6t(r,t);return e.visibleWhen&&!Bl(e.visibleWhen,n)?!1:e.showWhenDependsReady?Uce(t,e.dependsOn):!0}function x6t(e,t){return e.waitForDependsOn===!1?!0:Uce(t,e.dependsOn)}function w6t(e){const t={};for(const r of e){const n=r.paramKey?.trim();n&&(t[n]=r.defaultValue??(r.includeAllOption===!1?r.options?.[0]?.value??"":""))}return t}function Wce(e,t,r,n){const o={...e,[t]:r};let a=!0;for(;a;){a=!1;for(const i of n){if(i.clearOnDependencyChange===!1)continue;const s=i.paramKey?.trim();if(!s||s===t)continue;const l=E1(i.dependsOn),c=l.includes(t),u=l.some(d=>!Wl(o[d]));(c||u)&&Wl(o[s])&&(o[s]=i.defaultValue??"",a=!0)}}return o}function M6t(e,t,r){const n={};for(const a of e){const i=a.paramKey?.trim();if(!i)continue;const s=t[i];Wl(s)&&(n[i]=s)}const o=xOt(e,t,r);for(const[a,i]of Object.entries(o))n[a]=i;return n}function P6t(e,t){return e?.length?e.every(r=>Wl(t[r])):!1}function O6t(e){const t=new Set;for(const r of e){const n=r.paramKey?.trim();n&&t.add(n);const o=r.valueExport?.contextKey?.trim();o&&t.add(o)}return[...t]}function N6t(e,t,r){if(!e)return e;const n=e.requestBindings??[],o=new Set(n.filter(i=>i.source==="filter").map(i=>i.key)),a=r.filter(i=>!o.has(i)).map(i=>({param:i,source:"filter",key:i}));return{...e,filterGroupKey:t,requestBindings:[...n,...a]}}function j6t(e){const t={};return e?.labelColor?.trim()&&(t.color=e.labelColor.trim()),e?.labelFontSize?.trim()&&(t.fontSize=e.labelFontSize.trim()),e?.labelFontWeight?.trim()&&(t.fontWeight=e.labelFontWeight.trim()),t}function A6t(e){const t=pv(e),r={...t.style};return e?.backgroundColor?.trim()&&(r.backgroundColor=e.backgroundColor.trim()),e?.textColor?.trim()&&(r.color=e.textColor.trim()),e?.borderColor?.trim()&&(r.borderColor=e.borderColor.trim()),e?.borderWidth?.trim()&&(r.borderWidth=e.borderWidth.trim()),e?.borderRadius?.trim()&&(r.borderRadius=e.borderRadius.trim()),e?.fontSize?.trim()&&(r.fontSize=e.fontSize.trim()),e?.fontWeight?.trim()&&(r.fontWeight=e.fontWeight.trim()),e?.padding?.trim()&&(r.padding=e.padding.trim()),!e?.width?.trim()&&!e?.minWidth?.trim()&&!e?.maxWidth?.trim()&&(r.minWidth=r.minWidth??"10rem"),{style:r,hasCustomHeight:t.hasCustomHeight}}const hv="__filter_bar_all__",T6t={mode:"static",staticData:[],responseMapping:[]};function C6t(e){return E1(e).join("")}function E6t(e){return e.map(t=>`${t.value}${t.label}`).join("")}function Kce(e){return e===""?hv:e}function z6t(e){return e===hv?"":e}function $6t({filter:e,filterGroupKey:t,filterState:r,value:n,labelPosition:o,onChange:a,onOptionsResolved:i}){const s=e.optionsSource??"static",l=C6t(e.dependsOn),c=k.useMemo(()=>E1(e.dependsOn),[l]),u=(e.optionsLabelFields?.filter(Boolean).length??0)>=2?e.optionsLabelSeparator:void 0,d=x6t(e,r),p=j6t(e.style),y=A6t(e.style),m=e.label?.trim()||e.paramKey||"Filter",g=k.useMemo(()=>s==="static"?C1(e):[],[e,s]),v=k.useMemo(()=>JSON.stringify(e.optionsDataSource??null),[e.optionsDataSource]),b=k.useMemo(()=>N6t(e.optionsDataSource,t,c),[v,t,c]),_=d||e.waitForDependsOn===!1,{data:x,isLoading:w,isError:S}=Tr({widgetId:`filter-bar-${e.id}`,dataSource:b??T6t,enabled:s==="api"&&!!b&&_&&(c.length===0||d)}),M=k.useMemo(()=>{if(e.includeAllOption===!1)return[];const $=C1(e)[0];return $?[$]:[]},[e.id,e.includeAllOption,e.allOptionLabel,e.paramKey]),P=k.useMemo(()=>s==="static"?g:w||S||x==null?M:Pce(e,x),[s,g,w,S,x,e,M]),N=E6t(P),A=k.useRef("");k.useEffect(()=>{s==="api"&&w||A.current!==N&&(A.current=N,i?.(e.id,P))},[e.id,P,s,w,N,i]);const C=!d&&e.disabledPlaceholder?.trim()?e.disabledPlaceholder.trim():e.placeholder?.trim()||`Select ${e.label?.trim()||e.paramKey}`,O=d&&P.length===0?w?"Loading…":S?"Failed to load":"No options":C,j=!d||P.length===0,z=!j&&P.some($=>$.value===n)?Kce(n):!j&&n===""&&P.some($=>$.value==="")?hv:void 0,E=f.jsxs(as,{value:z,onValueChange:$=>a(z6t($)),disabled:j,children:[f.jsx(ss,{className:B("w-full min-w-[10rem] border-input bg-background shadow-xs",!y.hasCustomHeight&&"h-9",j&&"cursor-not-allowed opacity-60"),style:y.style,"aria-label":m,children:f.jsx(is,{placeholder:O})}),f.jsx(ls,{position:"popper",className:"max-h-72 border bg-popover shadow-md",children:P.map(($,F)=>f.jsx(sa,{value:Kce($.value),className:"rounded-sm py-2 focus:bg-muted focus:text-foreground data-[highlighted]:bg-muted data-[highlighted]:text-foreground",children:u?f.jsx(Xm,{label:$.label,separator:u}):$.label},`${e.id}-${$.value||"__all__"}-${F}`))})]});return o==="inline"?f.jsxs("div",{className:"flex min-w-0 items-end gap-2","data-filter-param":e.paramKey,children:[e.label?.trim()?f.jsx("span",{className:"shrink-0 pb-2 text-xs font-medium",style:p,children:e.label}):null,E]}):f.jsxs("div",{className:"flex min-w-0 flex-col gap-1","data-filter-param":e.paramKey,children:[e.label?.trim()?f.jsx("label",{className:"text-xs font-medium",style:p,children:e.label}):null,E]})}const I6t=[];function F6t(e){return e?.trim()||"1rem"}function D6t({widget:e}){const t=e.config,r=t.filters??I6t,n=t.filterGroupKey?.trim()||e.id,o=t.syncToContext!==!1,a=t.labelPosition??"top",i=t.layout??"wrap",{context:s,replaceFilterGroup:l,setContextValues:c,dispatchAction:u,schema:d}=jt(),p=k.useMemo(()=>w6t(r),[r]),[y,m]=k.useState(p),[g,v]=k.useState({}),b=k.useRef(!1),_=k.useRef(null),x=k.useCallback((E,$)=>{v(D=>{const H=D[E];return H&&H.length===$.length&&H.every((I,L)=>I.value===$[L]?.value&&I.label===$[L]?.label)?D:{...D,[E]:$}});const F=r.find(D=>D.id===E),q=F?.paramKey?.trim();!F?.autoSelectFirstOption||!q||m(D=>{if(Wl(D[q]))return D;const H=$.find(I=>I.value.trim()!=="");return H?Wce(D,q,H.value,r):D})},[r]),w=k.useMemo(()=>r.map(E=>`${E.id}\0${E.paramKey??""}\0${E.valueExport?.contextKey??""}\0${E.defaultValue??""}`).join(`
54
- `),[r]),S=k.useMemo(()=>O6t(r),[w]);k.useEffect(()=>{m(E=>{const $={...p};for(const F of Object.keys(E))F in $&&($[F]=E[F]);return Ll(E,$)?E:$})},[p]);const M=k.useMemo(()=>M6t(r,y,g),[r,y,g]),P=k.useMemo(()=>JSON.stringify(M),[M]),N=k.useRef(M);N.current=M,k.useEffect(()=>{l(n,N.current,{resetKeys:S})},[S,n,P,l]),k.useEffect(()=>{if(!o)return;const E=N.current;Ll(_.current??void 0,E)||(_.current={...E},c(E))},[P,c,o]);const A=k.useRef(s);A.current=s,k.useEffect(()=>{if(!t.onFiltersComplete)return;const E=P6t(t.requiredFilterKeys,y);if(E&&!b.current){b.current=!0,wr(t.onFiltersComplete,{...A.current,...M,filters:M},u,e.id,{setContextValues:c,payload:M,dataApis:d.dataApis});return}E||(b.current=!1)},[t.onFiltersComplete,t.requiredFilterKeys,u,M,d.dataApis,c,y,e.id]);const C=(E,$)=>{m(F=>Wce(F,E,$,r))},O=r.filter(E=>S6t(E,M,s)),j=t.style,z={};return j?.backgroundColor?.trim()&&(z.backgroundColor=j.backgroundColor.trim()),j?.padding?.trim()&&(z.padding=j.padding.trim()),j?.margin?.trim()&&(z.margin=j.margin.trim()),j?.borderRadius?.trim()&&(z.borderRadius=j.borderRadius.trim()),j?.borderColor?.trim()&&(z.borderColor=j.borderColor.trim()),j?.borderWidth?.trim()&&(z.borderWidth=j.borderWidth.trim()),f.jsx("div",{className:B("w-full",j?.borderWidth?.trim()||j?.borderColor?.trim()?"border":void 0),style:z,"data-widget-id":e.id,"data-page-widget":"filter_bar","data-filter-group":n,children:f.jsx("div",{className:B(i==="row"&&"flex flex-row flex-nowrap items-end overflow-x-auto",i==="wrap"&&"flex flex-row flex-wrap items-end",i==="grid"&&"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5"),style:{gap:F6t(t.gap)},children:O.map(E=>{const $=E.paramKey?.trim();return $?f.jsx($6t,{filter:E,filterGroupKey:n,filterState:M,value:y[$]??"",labelPosition:a,onChange:F=>C($,F),onOptionsResolved:x},E.id):null})})})}function L6t({widget:e}){const t=e.config,{context:r,clientId:n}=jt();return t.formId?f.jsx("div",{"data-widget-id":e.id,"data-page-widget":"form_embed",children:f.jsx(Ng,{formId:t.formId,mode:t.mode??"fill",contextFieldMapping:t.contextFieldMapping,pageContext:r,clientId:n,scrollBehavior:t.scrollBehavior,maxHeightPercent:t.maxHeightPercent,showBorder:t.showBorder})}):f.jsx("p",{className:"text-sm text-muted-foreground",children:"No form configured"})}function q6t(e,t){const r={};for(const[o,a]of Object.entries(e)){if(a==null||typeof a=="object")continue;const i=String(a).trim();i&&(r[o]=i)}r.tenant_id&&r.tenantId&&r.tenant_id!==r.tenantId?r.tenantId=r.tenant_id:r.tenantId&&!r.tenant_id?r.tenant_id=r.tenantId:r.tenant_id&&!r.tenantId&&(r.tenantId=r.tenant_id);const n=r.applicantId??r.applicant_id;if(n&&(r.id||(r.id=n),r.applicantId||(r.applicantId=n),r.applicant_id||(r.applicant_id=n)),r.sessionId&&!r.admission_session_id&&(r.admission_session_id=r.sessionId),r.admission_session_id&&!r.sessionId&&(r.sessionId=r.admission_session_id),r.applicantUserId&&!r.context_user_id&&(r.context_user_id=r.applicantUserId),r.userId&&!r.created_by&&(r.created_by=r.userId),r.created_by&&!r.userId&&(r.userId=r.created_by),t)for(const[o,a]of Object.entries(t)){const i=e[a];if(i==null||typeof i=="object")continue;const s=String(i).trim();s&&(r[o]=s)}return r}const yv="applicantUserId",B6t="featureId";function z1(e,t,r){const n=t?.trim()||r,o=e[n];return o==null?void 0:String(o).trim()||void 0}function H6t({widget:e}){const t=e.config,{schema:r,context:n,getWorkflowState:o,workflowModalHandlers:a,clientId:i,prepopulateStatus:s}=jt(),l=String(n.moduleId??""),c=t.subjectUserContextKey?.trim()||yv,u=z1(n,t.subjectUserContextKey,yv),d=z1(n,t.featureContextKey,B6t),p=z1(n,void 0,"applicantId")??z1(n,void 0,"id"),m=u1(r)&&(c===yv||c==="applicantUserId")&&!!p&&!u&&s==="loading";if(!o)return f.jsxs("div",{className:"rounded-md border border-dashed p-4 text-sm text-muted-foreground","data-widget-id":e.id,children:["Workflow embed requires ",f.jsx("code",{className:"text-xs",children:"getWorkflowState"})," on PageRenderer. Workflow ID: ",t.workflowId]});if(!l)return f.jsx("p",{className:"text-sm text-destructive","data-widget-id":e.id,children:"moduleId required in page context for workflow embed"});if(m)return f.jsx("div",{className:"rounded-md border border-dashed p-4 text-sm text-muted-foreground","data-widget-id":e.id,"data-page-widget":"workflow_embed",children:"Loading applicant context…"});const g=q6t(n,t.contextVariableMapping);return f.jsx("div",{"data-widget-id":e.id,"data-page-widget":"workflow_embed",children:f.jsx(Zie,{getWorkflowState:o,workflowModalHandlers:a,moduleId:l,tenantId:n.tenantId?String(n.tenantId):void 0,clientId:i||void 0,submissionContext:g,subjectUserId:u,bootstrapFeatureId:d})})}function V6t({widget:e}){const t=e.config,{schema:r,dispatchAction:n}=jt(),o=t.previousPage??r.navigation?.previousPage,a=t.nextPage??r.navigation?.nextPage,i=t.showPrevious!==!1&&!!o,s=t.showNext!==!1&&!!a,l=t.showBreadcrumbs&&r.navigation?.breadcrumbs?.length,c=t.align==="center"?"justify-center":t.align==="right"?"justify-end":t.align==="space-between"?"justify-between":"justify-start",u=d=>{n({type:"navigate_page",pageId:d.pageId},e.id,"click")};return f.jsxs("nav",{className:"space-y-3","data-widget-id":e.id,children:[l&&f.jsx("ol",{className:"flex flex-wrap items-center gap-1 text-sm text-muted-foreground",children:r.navigation.breadcrumbs.map((d,p)=>f.jsxs("li",{className:"flex items-center gap-1",children:[p>0&&f.jsx("span",{children:"/"}),d.href?f.jsx("a",{href:d.href,className:"hover:underline",children:d.label}):f.jsx("span",{children:d.label})]},p))}),f.jsxs("div",{className:B("flex items-center gap-2",c),children:[i&&o&&f.jsx(st,{variant:"outline",size:"sm",onClick:()=>u(o),children:o.label??"Previous"}),s&&a&&f.jsx(st,{variant:"default",size:"sm",onClick:()=>u(a),children:a.label??"Next"})]})]})}const Gce=240,U6t=4,W6t=250;function Rce(e){let t=e.parentElement;for(;t&&t!==document.body&&t!==document.documentElement;){const r=window.getComputedStyle(t).overflowY;if(r==="auto"||r==="scroll"||r==="overlay")return t;t=t.parentElement}return document.documentElement}function Yce(e,t,r=[]){const[n,o]=k.useState(null);return k.useEffect(()=>{if(!t||!e||typeof window>"u"){o(null);return}const a=()=>{const d=Rce(e),p=d===document.documentElement,y=p?0:d.getBoundingClientRect().top,m=p?0:parseFloat(window.getComputedStyle(d).paddingBottom)||0,v=(p?window.innerHeight:y+d.clientHeight)-m-e.getBoundingClientRect().top;o(Math.max(Gce,Math.round(v)))};let i=0,s=0;const l=()=>{const d=Rce(e),p=d.scrollHeight-d.clientHeight;p<=1||s>=U6t||(s+=1,o(y=>Math.max(Gce,(y??e.offsetHeight)-p)),i=window.requestAnimationFrame(l))},c=()=>{s=0,a(),window.cancelAnimationFrame(i),i=window.requestAnimationFrame(l)};c();const u=window.setTimeout(c,W6t);return window.addEventListener("resize",c),()=>{window.clearTimeout(u),window.cancelAnimationFrame(i),window.removeEventListener("resize",c)}},[e,t,...r]),n}function mv(e){const t=e.split("?")[0]?.split("#")[0]??"/";return t.length>1&&t.endsWith("/")?t.slice(0,-1):t||"/"}function K6t(e){const t=e.activePathPrefix?.trim();if(t)return mv(t);const r=e.action;if(r?.type==="navigate"&&r.href?.trim())return mv(r.href)}function G6t(e,t){const r=K6t(e);if(!r)return!1;const n=mv(t);return!!(n===r||r!=="/"&&n.startsWith(`${r}/`))}const R6t="#FAFAFA",Y6t="#EBEBEB",X6t="iq-sidebar-nav-collapsed:";function Xce(e){return`${X6t}${e}`}function Z6t(e,t=!1){if(typeof window>"u")return t;try{const r=localStorage.getItem(Xce(e));if(r==="true")return!0;if(r==="false")return!1}catch{}return t}function J6t(e,t){try{localStorage.setItem(Xce(e),String(t))}catch{}}function Q6t(e){return e?.closest("[data-page-columns-grid]")??null}function e8t(e){return e.getAttribute("data-page-columns-template")}function Zce(e,t,r){if(!e)return;const n=e8t(e);if(t&&e.querySelectorAll(":scope > [data-page-column]").length===2){e.style.gridTemplateColumns=`${r} minmax(0, 1fr)`;return}n?e.style.gridTemplateColumns=n:e.style.removeProperty("grid-template-columns")}const t8t="4rem",Jce="2.25rem";function r8t(e){if(typeof window>"u")return()=>{};const t=()=>e();window.addEventListener("popstate",t),window.addEventListener("hashchange",t);const r=history.pushState.bind(history),n=history.replaceState.bind(history);return history.pushState=(...o)=>{r(...o),t()},history.replaceState=(...o)=>{n(...o),t()},()=>{window.removeEventListener("popstate",t),window.removeEventListener("hashchange",t),history.pushState=r,history.replaceState=n}}function n8t(){return typeof window>"u"?"/":window.location.pathname}function o8t(){return k.useSyncExternalStore(r8t,n8t,()=>"/")}function a8t(e,t,r){return r?!0:e==="text_only"?!1:e==="text_with_icon"?!0:!!t.iconUrl?.trim()}function i8t(e,t,r,n){const o=t.find(a=>G6t(a,r));if(o)return o.id;if(n)return e.previewHighlightItemId&&t.some(a=>a.id===e.previewHighlightItemId)?e.previewHighlightItemId:t[0]?.id}function s8t(e){return{...e.backgroundColor?{"--iq-sidebar-nav-bg":e.backgroundColor}:{},...e.borderColor?{"--iq-sidebar-nav-border":e.borderColor}:{},...e.activeBackground?{"--iq-sidebar-nav-active-bg":e.activeBackground}:{},...e.activeTextColor?{"--iq-sidebar-nav-active-fg":e.activeTextColor}:{},...e.inactiveTextColor?{"--iq-sidebar-nav-muted":e.inactiveTextColor}:{},...e.hoverBackground?{"--iq-sidebar-nav-hover-bg":e.hoverBackground}:{}}}function l8t({item:e,hasIconUrl:t}){return t&&e.iconUrl?.trim()?f.jsx("img",{src:e.iconUrl,alt:e.iconAlt??"",className:"h-5 w-5 shrink-0 object-contain"}):f.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center text-[0.65rem] font-semibold uppercase leading-none",children:e.label.trim().charAt(0)||"•"})}function c8t({item:e,config:t,widgetId:r,active:n,collapsed:o}){const{context:a,dispatchAction:i,setContextValues:s,schema:l}=jt(),c=e.disabled===!0,u=a8t(t.displayMode??"auto",e,o),d=!c&&!!e.action,p=!!e.iconUrl?.trim(),y=t.iconSize??"1.25rem",m=()=>{!d||!e.action||wr(e.action,a,i,r,{setContextValues:s,dataApis:l.dataApis})},g=B("flex items-center rounded-md text-sm outline-none transition-colors",o?"mx-auto shrink-0 justify-center":"h-9 w-full min-w-0 gap-2 px-3 text-left",d&&"cursor-pointer",c&&"cursor-not-allowed opacity-50"),v=o?u?f.jsx(l8t,{item:e,hasIconUrl:p}):null:f.jsxs(f.Fragment,{children:[u?p?f.jsx("img",{src:e.iconUrl,alt:e.iconAlt??"",className:"shrink-0 object-contain",style:{width:y,height:y}}):f.jsx("span",{className:"shrink-0 rounded-sm bg-muted/80",style:{width:y,height:y},"aria-hidden":!0}):null,f.jsx("span",{className:"min-w-0 flex-1 truncate",children:e.label})]}),b={className:g,style:o?{width:Jce,height:Jce}:void 0,title:o?e.label:void 0,"aria-label":o?e.label:void 0,"data-sidebar-nav-item":!0,"data-active":n?"true":"false"};return d?f.jsx("button",{type:"button",...b,onClick:m,disabled:c,children:v}):f.jsx("div",{...b,children:v})}function d8t({widget:e}){const t=e.config,r=t.items??[],n=o8t(),{context:o}=jt(),a=o.pagePreviewMode===!0,i=i8t(t,r,n,a),s=t.showBorder!==!1,l=t.fillViewportHeight!==!1,c=t.bleedToPageEdge!==!1,u=t.collapsible!==!1,d=t.collapsedWidth??t8t,p=t.headerTitle?.trim(),y=t.headerSubtitle?.trim(),m=t.logoUrl?.trim(),g=!!(p||y||m),[v,b]=k.useState(null),[_,x]=k.useState(()=>u?Z6t(e.id,t.defaultCollapsed===!0):!1),w=Yce(v,l,[r.length,a,i,_,c]);k.useEffect(()=>{if(!u||!v)return;const M=Q6t(v);if(M)return Zce(M,_,d),()=>{Zce(M,!1,d)}},[u,_,d,v]);const S=()=>{u&&x(M=>{const P=!M;return J6t(e.id,P),P})};return f.jsxs("nav",{ref:b,className:B("iq-sidebar-nav flex min-w-0 flex-1 flex-col self-stretch text-sidebar-foreground transition-[width] duration-200 ease-in-out",_&&"items-center overflow-x-hidden",t.sticky&&"sticky top-0"),style:{width:_?"100%":t.width??"100%",maxWidth:_?d:void 0,backgroundColor:t.backgroundColor??R6t,...l&&w!=null?{height:w,minHeight:w}:{},...c?{marginLeft:"calc(-1 * var(--iq-page-padding-inline, 0px))",marginTop:"calc(-1 * var(--iq-page-padding-block, 0px))"}:{},...s?{borderRightWidth:"1px",borderRightStyle:"solid",borderColor:t.borderColor??Y6t}:{},...s8t(t)},"data-widget-id":e.id,"data-page-widget":"sidebar_nav","data-sidebar-nav-bordered":s||void 0,"data-sidebar-nav-collapsed":_||void 0,"data-sidebar-nav-bleed":c||void 0,"aria-label":"Sidebar navigation",children:[(u||g)&&f.jsxs("div",{"data-sidebar-nav-header":!0,className:B("flex shrink-0 items-center border-b",_?"justify-center px-2 py-2":"gap-2 px-3 py-3",u&&"cursor-pointer transition-colors hover:bg-accent/40"),onClick:u?S:void 0,onKeyDown:u?M=>{(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),S())}:void 0,role:u?"button":void 0,tabIndex:u?0:void 0,"aria-label":u?_?"Expand sidebar":"Collapse sidebar":void 0,children:[m&&!_?f.jsx("img",{src:m,alt:"",className:"h-8 w-8 shrink-0 rounded-md object-contain"}):null,!_&&g?f.jsxs("div",{className:"min-w-0 flex-1",children:[p?f.jsx("div",{className:"truncate text-sm font-semibold leading-tight",children:p}):null,y?f.jsx("div",{className:"truncate text-xs text-muted-foreground leading-tight",children:y}):null]}):null,u?f.jsx(aH,{className:B("h-4 w-4 shrink-0 text-muted-foreground transition-transform",_&&"rotate-180",!_&&!g&&"mr-auto")}):null]}),f.jsxs("div",{className:B("flex flex-1 flex-col gap-1 py-2",_?"px-1":"px-2",!_&&c&&!t.padding?.trim()&&"pl-[calc(var(--iq-page-padding-inline,1rem)+0.25rem)]"),style:t.padding?.trim()?{padding:t.padding}:void 0,children:[r.map(M=>f.jsx(c8t,{item:M,config:t,widgetId:`${e.id}-${M.id}`,active:M.id===i,collapsed:_},M.id)),r.length===0?f.jsx("p",{className:"px-2 text-xs text-muted-foreground",children:"Add navigation items in the inspector."}):null]})]})}const u8t="click";function Qce(e){if(!e)return!1;switch(e.type){case"emit":{const t=e.eventName?.trim()??"";return t.length>0&&t!==u8t}case"navigate":return!!e.href?.trim();case"navigate_page":return!!e.pageId?.trim();case"workflow":return!!e.workflowId?.trim();case"modal":return!!e.formId?.trim();case"api":return!!(e.api?.path?.trim()||e.dataSourceRef);case"set_context":return(e.mappings?.length??0)>0;default:return!1}}function f8t(e){return e.href?.trim()?!0:Qce(e.action)}function p8t(e){const t=e.href?.trim();if(t)return t;const r=e.action;if(r?.type==="navigate"&&r.href?.trim())return r.href.trim()}function h8t(e,t){return e.replace(/\{\{([^}]+)\}\}/g,(r,n)=>{const o=t[n.trim()];return o!=null?String(o):""})}function Zd(e){const t=e.split("?")[0]??e;return t.length>1&&t.endsWith("/")?t.slice(0,-1):t}function y8t(e,t){const r=Zd(e),n=Zd(t);if(!n||n==="/")return!1;if(r===n||r.endsWith(n))return!0;const o=n.split("/").filter(Boolean).pop(),a=r.split("/").filter(Boolean).pop();return!!(o&&a&&o===a)}function ede(e,t,r){let n,o=0;for(const a of e){const i=p8t(a);if(!i)continue;const s=h8t(i,t);if(!y8t(r,s))continue;const l=Zd(s).length;l>o&&(o=l,n=a.id)}return n}function m8t(e){return e.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"")}function tde(e,t){const r=t.trim().toLowerCase();if(r)for(const n of e){const o=n.href?.trim();if(o&&Zd(o).split("/").filter(Boolean).pop()?.toLowerCase()===r)return n.id;const a=n.routeSegment?.trim();if(a&&a.toLowerCase()===r)return n.id;const i=m8t(n.label);if(i===r||i.replace(/-/g,"")===r.replace(/-/g,"")||i&&r.endsWith(`-${i}`))return n.id}}function g8t(e,t,r,n){const o=t.attendanceLcncRouteSegment,a=typeof o=="string"?o:"",i=a?tde(e,a):void 0,s=ede(e,t,r);return i??s??n}function rde(e,t,r=0,n){for(const o of e){if(t(o,r,n)===!0)return;o.children?.length&&rde(o.children,t,r+1,o)}}function v8t(e,t){const r=[];return rde(e,n=>{n.type===t&&r.push(n)}),r}function nde(e,t){return e?.length?e.filter(r=>r.config.tabId===t):[]}function ode(e,t){return e.contentType==="page"&&e.pageId?.trim()||e.contentType==="form"&&e.formId?.trim()?!0:e.contentType==="widgets"?nde(t,e.id).length>0:!1}function b8t(e){return Zd(e).split("/").filter(Boolean)}function _8t(e,t,r){const n=ede(e,t,r);if(n)return e.find(a=>a.id===n);const o=b8t(r);for(let a=o.length-1;a>=0;a--){const i=tde(e,o[a]);if(i)return e.find(s=>s.id===i)}}function k8t(e,t,r){if(!e?.widgets?.length)return!1;const n=v8t(e.widgets,"tab_group");if(n.length===0)return!1;for(const o of n){const i=o.config.tabs??[];if(i.length===0)continue;const s=_8t(i,r,t);if(s&&!ode(s,o.children??[]))return!0}return!1}const S8t=1,ade={start:"justify-start",center:"justify-center",end:"justify-end",stretch:"justify-stretch"},ide={sm:"gap-2",md:"gap-4",lg:"gap-6"};function x8t(e){const t=e.variant??"underline",r=e.align??"start",n=e.gap??(t==="underline"?"lg":"md");return{variant:t,align:r,gap:n}}function w8t(e,t="start",r="md"){const n=ade[t]??ade.start,o=ide[r]??ide.md;switch(e){case"pills":return B("h-auto w-full rounded-none border-0 bg-transparent p-0",n,o);case"underline":return B("h-auto w-full rounded-none border-0 border-b border-border bg-transparent p-0",n,o);default:return B("mb-1 h-9",n,o)}}function M8t(e,t="start"){const r=t==="stretch"?"flex-1":"flex-none";switch(e){case"pills":return B(r,"h-8 rounded-full border-0 px-4 py-1.5 shadow-none","text-muted-foreground transition-colors duration-200","hover:bg-muted/60 hover:text-foreground","data-[state=active]:bg-primary data-[state=active]:text-primary-foreground","data-[state=active]:shadow-none data-[state=active]:hover:bg-primary/90");case"underline":return B(r,"h-auto -mb-px rounded-none border-0 border-b-2 border-transparent bg-transparent px-4 py-2.5 shadow-none","text-sm font-medium text-muted-foreground transition-colors duration-200","hover:bg-transparent hover:text-foreground","data-[state=active]:border-primary data-[state=active]:bg-transparent","data-[state=active]:text-primary data-[state=active]:shadow-none","data-[state=active]:hover:bg-transparent");default:return B(r,"px-3 py-1.5")}}function P8t(e,t,r){return e?new Set(r?[r]:[]):new Set(t.map(n=>n.id))}function O8t({tab:e,shouldRender:t,pageContext:r,clientId:n}){return t?e.formId?f.jsx(Ng,{formId:e.formId,mode:e.formMode??"fill",contextFieldMapping:e.contextFieldMapping,pageContext:r,clientId:n,scrollBehavior:e.scrollBehavior,maxHeightPercent:e.maxHeightPercent,showBorder:e.showBorder}):f.jsx("p",{className:"text-sm text-muted-foreground",children:"No form configured for this tab"}):null}function N8t({tab:e,shouldLoad:t,shouldRender:r,nestingDepth:n,pageContext:o,clientId:a,onAction:i,getWorkflowState:s}){const l=jt(),{data:c,isLoading:u,isError:d,error:p}=Pn.useQuery({queryKey:["tab-page",e.pageId,e.pageVersion,a],enabled:t&&!!e.pageId,queryFn:async()=>Hd(e.pageId,a,e.pageVersion)});return r?n>=S8t?f.jsx("div",{className:"rounded-md border border-destructive/50 bg-destructive/5 p-4 text-sm text-destructive",children:"Nested page tabs not supported"}):e.pageId?u?f.jsx(tn,{}):d?f.jsx("p",{className:"text-sm text-destructive",children:p instanceof Error?p.message:"Failed to load page"}):c?f.jsx(Qy,{page:c,context:o,nestingDepth:n+1,inheritContext:!0,onAction:i,getWorkflowState:s,parentContext:l,getAuthHeaders:l.getAuthHeaders,workflowModalHandlers:l.workflowModalHandlers}):null:f.jsx("p",{className:"text-sm text-muted-foreground",children:"No page configured for this tab"}):null}function j8t(e){return!!e.href?.trim()}function A8t({tab:e,widgetChildren:t,renderChildren:r}){const n=nde(t,e.id);return n.length===0?j8t(e)?null:f.jsx("p",{className:"py-4 text-sm text-muted-foreground",children:"No widgets in this tab"}):f.jsx(f.Fragment,{children:r?.(n)})}function T8t({widget:e,renderChildren:t}){const r=e.config,{context:n,clientId:o,nestingDepth:a,onAction:i,getWorkflowState:s,dispatchAction:l,setContextValues:c}=jt(),u=r.tabs??[],d=r.defaultTabId??u[0]?.id??"",p=typeof window<"u"?window.location.pathname:"",y=k.useMemo(()=>({...n}),[n]),m=k.useMemo(()=>g8t(u,y,p,d),[u,y,p,d]),g=r.lazyLoad!==!1,{variant:v,align:b,gap:_}=x8t(r),[x,w]=k.useState(m),[S,M]=k.useState(()=>P8t(g,u,m));k.useEffect(()=>{w(m),M(O=>O.has(m)?O:new Set(O).add(m))},[m]);const P=O=>{if(i){l({type:"navigate",href:O},e.id,"click");return}wr({type:"navigate",href:O},n,l,e.id)},N=O=>{const j=u.find(E=>E.id===O);if(j&&f8t(j))return;M(E=>new Set(E).add(O)),w(O);const z=j?.routeSegment?.trim();z&&c({attendanceLcncRouteSegment:z})},A=O=>{const j=O.action;if(j&&Qce(j)){wr(j,n,l,e.id);return}const z=O.href?.trim();z&&P(z)},C=k.useMemo(()=>!g,[g]);return u.length===0?f.jsx("p",{className:"text-sm text-muted-foreground","data-widget-id":e.id,children:"No tabs configured"}):f.jsxs(Kie,{value:x,onValueChange:N,className:"w-full","data-widget-id":e.id,"data-widget-type":"tab_group",children:[f.jsx(hg,{className:B("mb-4",w8t(v,b,_)),children:u.map(O=>f.jsx(yg,{value:O.id,disabled:O.disabled,className:M8t(v,b),onClick:()=>A(O),children:O.label},O.id))}),u.map(O=>{if(!ode(O,e.children??[]))return null;const j=S.has(O.id),z=C||j,E=C||j;return f.jsxs(Gie,{value:O.id,forceMount:C||void 0,className:B("mt-0 focus-visible:outline-none",C&&"data-[state=inactive]:hidden"),children:[O.contentType==="widgets"&&E&&f.jsx(A8t,{tab:O,widgetChildren:e.children??[],renderChildren:t}),O.contentType==="form"&&f.jsx(O8t,{tab:O,shouldRender:z,pageContext:n,clientId:o}),O.contentType==="page"&&f.jsx(N8t,{tab:O,shouldLoad:z,shouldRender:E,nestingDepth:a,pageContext:n,clientId:o,onAction:i,getWorkflowState:s})]},O.id)})]})}const Eo=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],C8t={id:"id",date:"date",dayOfWeek:"day_of_week",startTime:"start_time",endTime:"end_time",title:"title",subtitle:"subtitle",label:"label",color:"color"};function sde(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)?e:null}function E8t(e,t){if(e==null)return[];if(Array.isArray(e))return e;const r=[];t&&r.push(fe(e,t));const n=sde(e);if(n){r.push(n.slots,n.events,n.items,n.data);const o=sde(n.data);o&&r.push(o.slots,o.events,o.items)}for(const o of r)if(Array.isArray(o))return o;return[]}function lde(e){const r=String(e??"").trim().match(/^(\d{1,2}):(\d{2})/);return r?`${r[1].padStart(2,"0")}:${r[2]}`:"00:00"}function z8t(e){const t=e.match(/^(\d{4})-(\d{2})-(\d{2})/);if(!t)return null;const r=new Date(Number(t[1]),Number(t[2])-1,Number(t[3]));if(Number.isNaN(r.getTime()))return null;const n=r.getDay();return Eo[n===0?6:n-1]??null}function $8t(e){if(typeof e=="string"&&Eo.includes(e))return e;const t=Number(e);return Number.isInteger(t)&&t>=1&&t<=7?Eo[t-1]??null:Number.isInteger(t)&&t>=0&&t<=6?Eo[t===0?6:t-1]??null:null}function Ia(e,t,r){const n=t?.trim();if(n){const o=fe(e,n);if(o!=null&&o!=="")return o}if(r&&r!==n)return fe(e,r)}function I8t(e,t,r){const n={...C8t,...t},o=E8t(e,r),a=[];for(const i of o){if(!i||typeof i!="object")continue;const s=String(Ia(i,n.id,"id")??"").trim();if(!s)continue;const l=Ia(i,n.date,"date"),c=l!=null?String(l):void 0,u=(c?z8t(c):null)??$8t(Ia(i,n.dayOfWeek,"day_of_week"));if(!u)continue;const d=String(Ia(i,n.title,"title")??fe(i,"semesterSchedule.subjectActivity.course.name")??fe(i,"semesterSchedule.courseActivity.course.name")??"Event");a.push({id:s,day:u,date:c,fromTime:lde(Ia(i,n.startTime,"start_time")),toTime:lde(Ia(i,n.endTime,"end_time")),title:d,subtitle:gv(Ia(i,n.subtitle,"subtitle")??fe(i,"semesterSchedule.schedule.name")),label:gv(Ia(i,n.label,"label")??fe(i,"semesterSchedule.subjectActivity.activityType.name")),color:gv(Ia(i,n.color,"color")),raw:i})}return a}function gv(e){if(!(e==null||e===""))return String(e)}function $1(e=new Date){return Si(e,1)}function Si(e,t=1){const r=typeof e=="string"?so(e):new Date(e.getFullYear(),e.getMonth(),e.getDate()),n=r.getDay(),o=t===1?n===0?-6:1-n:-n;return r.setDate(r.getDate()+o),Ss(r)}function I1(e,t,r){return t&&e<t?t:r&&e>r?r:e}function F8t(e){return(e??"").trim().match(/^\{(?:ctx:)?([A-Za-z_][A-Za-z0-9_]*)\}$/)?.[1]}function Ss(e){const t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return`${t}-${r}-${n}`}function zo(e,t){const[r,n,o]=e.split("-").map(Number),a=new Date(r,(n??1)-1,o??1);return a.setDate(a.getDate()+t),Ss(a)}function D8t(e){const t=so(e),r=so(zo(e,6)),n=o=>o.toLocaleDateString(void 0,{month:"short",day:"numeric"});return`${n(t)} – ${n(r)}`}function L8t(e,t=7){const r=so(e),n=so(zo(e,Math.max(1,t)-1)),o=a=>a.toLocaleDateString(void 0,{month:"short",day:"numeric"});return`${o(r)} — ${o(n)}, ${n.getFullYear()}`}function so(e){const[t,r,n]=e.split("-").map(Number);return new Date(t,(r??1)-1,n??1)}function F1(e,t){const r=Eo.indexOf(t);return so(zo(e,r))}function cde(e,t){if(e.mode==="pageApi"&&e.dataSourceRef)return t?.[e.dataSourceRef]?.itemsPath;if(e.mode==="api")return e.api?.itemsPath}function dde(e,t,r){return e==null?[]:t.mode==="static"&&Array.isArray(e)?e.filter(n=>!!n&&typeof n=="object"):Array.isArray(e)?e.filter(n=>!!n&&typeof n=="object"):A1(e,r??"data")}function ude(e,t=0){const r=Number(e);return Number.isFinite(r)?r:t}function q8t(e,t){return e==null||e===""?t.fallback!==void 0&&t.fallback!==null?typeof t.fallback=="number"?t.fallback:String(t.fallback):"":typeof e=="number"&&Number.isFinite(e)?e:String(e)}function B8t(e,t,r){const o={[t.target?.trim()||"category"]:q8t(Ar(e,t),t)};for(const a of r){const i=a.target?.trim()||"value";o[i]=ude(Ar(e,a),0)}return o}function H8t(e,t,r,n){const o=r.xField??{target:"category",path:"category"},a=r.yFields??[];return a.length===0?[]:dde(e,t,n).map(s=>B8t(s,o,a))}function V8t(e,t,r,n){const o=String(Ar(e,t)??""),a=ude(Ar(e,r),0),i=n?Ar(e,n):void 0,s=i!=null&&String(i).trim()?String(i).trim():void 0;return{name:o,value:a,color:s}}function U8t(e,t){if(!t||t<=0||e.length<=t)return e;const r=[...e].sort((i,s)=>s.value-i.value),n=r.slice(0,t),a=r.slice(t).reduce((i,s)=>i+s.value,0);return a<=0?n:[...n,{name:"Other",value:a}]}function W8t(e,t,r,n){const o=r.labelField??{path:"label"},a=r.valueField??{path:"value"},s=dde(e,t,n).map(l=>V8t(l,o,a,r.colorField));return U8t(s,r.secondarySliceCount)}function K8t(e){return!!e?.includes("percent_stacked")}const G8t=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i,R8t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i,Y8t=/^rgba?\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)/i;function X8t(e){const t=e?.trim();if(!t)return null;const r=G8t.exec(t);if(r)return{r:parseInt(r[1]+r[1],16),g:parseInt(r[2]+r[2],16),b:parseInt(r[3]+r[3],16)};const n=R8t.exec(t);if(n)return{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)};const o=Y8t.exec(t);if(o){const[a,i,s]=[o[1],o[2],o[3]].map(l=>Math.min(255,Number(l)));return{r:a,g:i,b:s}}return null}function fde(e,t){const r=X8t(e);if(!r)return null;const{r:n,g:o,b:a}=r;return{backgroundColor:`rgba(${n}, ${o}, ${a}, ${t?.32:.16})`,borderLeftColor:`rgb(${n}, ${o}, ${a})`,boxShadow:t?`inset 0 0 0 1px rgb(${n}, ${o}, ${a})`:void 0}}const vv=64,pde=88,hde=96,yde=240,Z8t=4;function mde(e){let t=e.parentElement;for(;t&&t!==document.body&&t!==document.documentElement;){const r=window.getComputedStyle(t).overflowY;if(r==="auto"||r==="scroll"||r==="overlay")return t;t=t.parentElement}return document.documentElement}function fa(e){const[t,r]=e.split(":").map(Number);return(t??0)*60+(r??0)}function gde(e){const[t,r]=e.split(":").map(Number),n=((t??0)%24+24)%24,o=Number.isFinite(r)?r:0,a=n>=12?"PM":"AM";return`${n%12===0?12:n%12}:${String(o).padStart(2,"0")} ${a}`}function vde(e){return e===0||e===24?"12:00 AM":e===12?"12:00 PM":e>12?`${e-12}:00 PM`:`${e}:00 AM`}function bde(e){const t=new Map,r=[...e].sort((o,a)=>fa(o.fromTime)-fa(a.fromTime)),n=[];for(const o of r){const a=fa(o.fromTime),i=Math.max(a+15,fa(o.toTime));let s=!1;for(const l of n)if(l.some(u=>{const d=fa(u.fromTime),p=Math.max(d+15,fa(u.toTime));return a<p&&i>d})){l.push(o),s=!0;break}s||n.push([o])}for(const o of n){const a=o.length;o.forEach((i,s)=>{t.set(i.id,{col:s,cols:a})})}return t}function J8t({events:e,weekStartIso:t,orientation:r="time-rows",dayStartHour:n=8,dayEndHour:o=18,showCurrentTimeIndicator:a=!1,defaultEventColor:i,showEventHover:s=!1,maxHeightPercent:l,fitToViewport:c=!1,highlightCurrentDay:u=!0,selectedId:d,onEventClick:p}){const[y,m]=k.useState(()=>new Date),[g,v]=k.useState(null),b=k.useRef(null),[_,x]=k.useState(null);k.useEffect(()=>{if(!c||typeof window>"u"){x(null);return}const j=()=>{const q=b.current;if(!q)return;const D=mde(q),H=D===document.documentElement,I=H?0:D.getBoundingClientRect().top,L=H?0:parseFloat(window.getComputedStyle(D).paddingBottom)||0,V=(H?window.innerHeight:I+D.clientHeight)-L-q.getBoundingClientRect().top;x(Math.max(yde,Math.round(V)))};let z=0,E=0;const $=()=>{const q=b.current;if(!q)return;const D=mde(q),H=D.scrollHeight-D.clientHeight;H<=1||E>=Z8t||(E+=1,x(I=>Math.max(yde,(I??q.offsetHeight)-H)),z=window.requestAnimationFrame($))},F=()=>{E=0,j(),window.cancelAnimationFrame(z),z=window.requestAnimationFrame($)};return F(),window.addEventListener("resize",F),()=>{window.cancelAnimationFrame(z),window.removeEventListener("resize",F)}},[c,n,o,t]),k.useEffect(()=>{if(!a)return;const j=window.setInterval(()=>m(new Date),6e4);return()=>window.clearInterval(j)},[a]);const w=k.useMemo(()=>{const j=Math.max(0,Math.min(23,n)),z=Math.max(j+1,Math.min(24,o));return Array.from({length:z-j},(E,$)=>j+$)},[n,o]),S=(w[0]??8)*60,M=w.length*60,P=y.getHours()*60+y.getMinutes(),N=(P-S)/M*100,A=Eo.some(j=>F1(t,j).toDateString()===y.toDateString()),C=a&&A&&P>=S&&P<=S+M,O=k.useMemo(()=>{const j=new Map;for(const z of Eo)j.set(z,[]);for(const z of e)j.get(z.day)?.push(z);return j},[e]);return r==="days-rows"?f.jsxs("div",{ref:b,className:"overflow-auto rounded-md border bg-background",style:c?_?{maxHeight:_}:void 0:l?{maxHeight:`${l}vh`}:void 0,"data-testid":"week-grid","data-orientation":r,children:[f.jsxs("div",{className:"grid",style:{minWidth:112+w.length*hde,gridTemplateColumns:`112px repeat(${w.length}, minmax(${hde}px, 1fr))`,gridTemplateRows:`40px repeat(${Eo.length}, ${pde}px)`},children:[f.jsx("div",{className:"sticky left-0 top-0 z-40 border-b bg-background"}),w.map(j=>f.jsx("div",{className:"sticky top-0 z-30 border-b border-l bg-background px-1 py-3 text-center text-[10px] text-muted-foreground",children:vde(j)},j)),Eo.map((j,z)=>{const E=O.get(j)??[],$=bde(E),F=F1(t,j),q=u&&F.toDateString()===y.toDateString();return f.jsxs(k.Fragment,{children:[f.jsxs("div",{className:B("sticky left-0 z-30 border-b bg-background px-2 py-5 text-center text-xs",q&&"bg-muted font-semibold"),style:{gridColumn:1,gridRow:z+2},children:[f.jsx("span",{className:"uppercase tracking-wide text-muted-foreground",children:j})," ",f.jsx("span",{children:F.getDate()})]}),f.jsxs("div",{className:B("relative z-0 border-b",q&&"bg-muted/40"),style:{gridColumn:"2 / -1",gridRow:z+2},children:[f.jsx("div",{className:"pointer-events-none absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${w.length}, minmax(0, 1fr))`},"aria-hidden":"true",children:w.map(D=>f.jsx("div",{className:"border-l"},D))}),C&&f.jsx("div",{className:"pointer-events-none absolute bottom-0 top-0 z-20 border-l-2 border-red-500",style:{left:`${N}%`},"aria-hidden":"true"}),E.map(D=>{const H=Math.max(0,fa(D.fromTime)-S),I=Math.max(H+20,fa(D.toTime)-S),L=H/M*100,R=(I-H)/M*100,V=$.get(D.id)??{col:0,cols:1},G=pde/V.cols,Z=d===D.id,te=fde(D.color||i,Z);return f.jsxs("button",{type:"button",className:B("absolute z-0 overflow-hidden rounded-sm border-l-4 px-1 py-0.5 text-left text-[11px] leading-tight shadow-sm",te?"border-transparent transition-[filter] hover:brightness-95":Z?"border-primary bg-primary/20 ring-1 ring-primary":"border-primary/70 bg-primary/10 hover:bg-primary/20"),style:{left:`calc(${L}% + 2px)`,width:`calc(${R}% - 4px)`,top:V.col*G+2,height:Math.max(20,G-4),...te},onClick:()=>p?.(D),onMouseEnter:K=>{s&&v({event:D,rect:K.currentTarget.getBoundingClientRect()})},onMouseLeave:()=>{s&&v(null)},onFocus:K=>{s&&v({event:D,rect:K.currentTarget.getBoundingClientRect()})},onBlur:()=>{s&&v(null)},children:[f.jsx("div",{className:"truncate font-medium",children:D.title}),D.subtitle&&f.jsx("div",{className:"truncate text-muted-foreground",children:D.subtitle}),D.label&&f.jsx("div",{className:"truncate text-muted-foreground",children:D.label})]},D.id)})]})]},j)})]}),s&&g&&typeof document<"u"&&xf.createPortal(f.jsx(_de,{event:g.event,rect:g.rect}),document.body)]}):f.jsxs("div",{ref:b,className:"overflow-auto rounded-md border bg-background",style:c?_?{maxHeight:_}:void 0:l?{maxHeight:`${l}vh`}:void 0,"data-testid":"week-grid","data-orientation":r,children:[f.jsxs("div",{className:"grid min-w-[720px]",style:{gridTemplateColumns:"56px repeat(7, minmax(0, 1fr))"},children:[f.jsx("div",{className:"sticky top-0 z-30 border-b bg-background"}),Eo.map(j=>{const z=F1(t,j),E=u&&z.toDateString()===y.toDateString();return f.jsxs("div",{className:B("sticky top-0 z-30 border-b border-l bg-background px-1 py-2 text-center text-xs",E&&"bg-muted font-semibold"),children:[f.jsx("div",{className:"uppercase tracking-wide text-muted-foreground",children:j}),f.jsx("div",{children:z.getDate()})]},j)}),f.jsxs("div",{className:"relative z-0 bg-background",children:[w.map(j=>f.jsx("div",{className:"border-b bg-background pr-1 text-right text-[10px] text-muted-foreground",style:{height:vv},children:vde(j)},j)),C&&f.jsx("div",{className:"pointer-events-none absolute left-0 right-0 z-20 border-t-2 border-red-500",style:{top:`${N}%`},"aria-hidden":"true",children:f.jsx("span",{className:"absolute -right-1 -top-[5px] h-2 w-2 rounded-full bg-red-500"})})]}),Eo.map(j=>{const z=O.get(j)??[],E=bde(z),$=u&&F1(t,j).toDateString()===y.toDateString();return f.jsxs("div",{className:B("relative z-0 border-l",$&&"bg-muted/40"),style:{height:w.length*vv},children:[w.map(F=>f.jsx("div",{className:"border-b",style:{height:vv}},F)),C&&f.jsx("div",{className:"pointer-events-none absolute left-0 right-0 z-20 border-t-2 border-red-500",style:{top:`${N}%`},"aria-hidden":"true"}),z.map(F=>{const q=Math.max(0,fa(F.fromTime)-S),D=Math.max(q+20,fa(F.toTime)-S),H=q/M*100,I=(D-q)/M*100,L=E.get(F.id)??{col:0,cols:1},R=100/L.cols,V=R*L.col,G=d===F.id,Z=fde(F.color||i,G);return f.jsxs("button",{type:"button",className:B("absolute z-0 overflow-hidden rounded-sm border-l-4 px-1 py-0.5 text-left text-[11px] leading-tight shadow-sm",Z?"border-transparent transition-[filter] hover:brightness-95":G?"border-primary bg-primary/20 ring-1 ring-primary":"border-primary/70 bg-primary/10 hover:bg-primary/20"),style:{top:`${H}%`,height:`${I}%`,left:`calc(${V}% + 2px)`,width:`calc(${R}% - 4px)`,...Z},onClick:()=>p?.(F),onMouseEnter:te=>{s&&v({event:F,rect:te.currentTarget.getBoundingClientRect()})},onMouseLeave:()=>{s&&v(null)},onFocus:te=>{s&&v({event:F,rect:te.currentTarget.getBoundingClientRect()})},onBlur:()=>{s&&v(null)},children:[f.jsx("div",{className:"truncate font-medium",children:F.title}),F.subtitle&&f.jsx("div",{className:"truncate text-muted-foreground",children:F.subtitle}),F.label&&f.jsx("div",{className:"truncate text-muted-foreground",children:F.label})]},F.id)})]},j)})]}),s&&g&&typeof document<"u"&&xf.createPortal(f.jsx(_de,{event:g.event,rect:g.rect}),document.body)]})}function _de({event:e,rect:t}){const o=Math.min(Math.max(8,t.left),window.innerWidth-240-8),a=t.top-96-8,i=a>=8?a:Math.min(t.bottom+8,window.innerHeight-96-8);return f.jsxs("div",{role:"tooltip",className:"pointer-events-none fixed z-[80] max-w-[240px] rounded-md border bg-background px-3 py-2 text-left text-xs shadow-lg",style:{top:i,left:o,width:240},children:[f.jsx("div",{className:"font-semibold text-foreground",children:e.title}),e.subtitle&&f.jsx("div",{className:"mt-0.5 text-foreground",children:e.subtitle}),f.jsxs("div",{className:"mt-1 font-medium text-blue-600",children:[gde(e.fromTime)," – ",gde(e.toTime)]}),e.label&&f.jsx("div",{className:"mt-0.5 text-foreground",children:e.label})]})}function Q8t({widget:e}){const t=e.config,{context:r,dispatchAction:n,setContextValues:o,schema:a}=jt(),i=t.weekStartContextKey??"week_start",s=t.selectedContextKey??"selectedEventId",l=t.selectedPayloadContextKey??"selectedEvent",c=String(r[i]??"");k.useEffect(()=>{c||o({[i]:$1()})},[c,i,o]);const{data:u,isLoading:d,isError:p}=Tr({widgetId:e.id,dataSource:t.dataSource,enabled:!!c||t.dataSource.mode==="static"}),y=k.useMemo(()=>cde(t.dataSource,a.dataApis),[t.dataSource,a.dataApis]),m=I8t(u,t.eventMapping,y),g=r[s]!=null?String(r[s]):void 0,v=t.weekRangePosition??"left",b=t.navigationPosition??"right",_=t.navigationStyle??"text",x=t.defaultOrientation??"time-rows",[w,S]=k.useState(x);k.useEffect(()=>{S(x)},[x]);const M=O=>{const j=c||$1();o({[i]:zo(j,O)})},P=O=>{const j={id:O.id,date:O.date,day:O.day,fromTime:O.fromTime,toTime:O.toTime,title:O.title,subtitle:O.subtitle,label:O.label};o({[s]:O.id,[l]:j});const z=t.onEventClick;z&&wr(z,{...r,[s]:O.id,[l]:j},n,e.id,{setContextValues:o,payload:j,dataApis:a.dataApis})},N=f.jsx("div",{className:"text-sm font-medium",children:c?D8t(c):"This week"}),A=f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(st,{type:"button",variant:"outline",size:"sm","aria-label":"Previous week",onClick:()=>M(-7),children:_==="arrows"?f.jsx(si,{className:"h-4 w-4"}):"Prev"}),f.jsx(st,{type:"button",variant:"outline",size:"sm",onClick:()=>o({[i]:$1()}),children:"Today"}),f.jsx(st,{type:"button",variant:"outline",size:"sm","aria-label":"Next week",onClick:()=>M(7),children:_==="arrows"?f.jsx(Ln,{className:"h-4 w-4"}):"Next"})]}),C=t.showOrientationToggle?f.jsxs(st,{type:"button",variant:"outline",size:"sm","aria-label":`Switch to ${w==="time-rows"?"days":"time"} in rows`,title:`Current orientation: ${w==="time-rows"?"time":"days"} in rows`,onClick:()=>S(O=>O==="time-rows"?"days-rows":"time-rows"),children:[f.jsx(U0,{className:"mr-1 h-4 w-4"}),w==="time-rows"?"Time in rows":"Days in rows"]}):null;return f.jsxs("div",{className:"space-y-3","data-widget-id":e.id,"data-widget-type":"week_calendar",children:[((t.showWeekNav??!0)||t.showOrientationToggle)&&f.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[f.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[(t.showWeekNav??!0)&&v==="left"&&N,(t.showWeekNav??!0)&&b==="left"&&A]}),f.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-2",children:[(t.showWeekNav??!0)&&v==="right"&&N,(t.showWeekNav??!0)&&b==="right"&&A,C]})]}),d&&!u?f.jsx("div",{className:"flex justify-center py-12",children:f.jsx(tn,{})}):p?f.jsx("p",{className:"py-8 text-center text-sm text-destructive",children:"Failed to load calendar"}):f.jsx(J8t,{events:m,weekStartIso:c||$1(),orientation:w,dayStartHour:t.dayStartHour,dayEndHour:t.dayEndHour,showCurrentTimeIndicator:t.showCurrentTimeIndicator,defaultEventColor:t.defaultEventColor,showEventHover:t.showEventHover,maxHeightPercent:(t.scrollBehavior??"page")==="contained"?t.maxHeightPercent??75:void 0,fitToViewport:t.scrollBehavior==="fit",highlightCurrentDay:t.highlightCurrentDay,selectedId:g,onEventClick:P})]})}function eNt(e){let t=e;for(let r=0;r<6&&!(t==null||typeof t!="object"||Array.isArray(t));r+=1){const n=t;if("scheduled_class_slot"in n||"summary"in n||"students"in n)return t;const o=n.data;if(o==null||typeof o!="object"||Array.isArray(o))break;t=o}return e}function xs(e,t,r){if(!t)return r??"";const n=t.startsWith("data.")?[t,t.slice(5)]:[t];for(const o of n){const a=Ar(e,{path:o,fallback:r});if(!(a==null||a===""))return typeof a=="object"?r??"—":String(a)}return r??""}function tNt({widget:e}){const t=e.config,{context:r,dispatchAction:n,setContextValues:o,schema:a}=jt(),i=t.dataSource??{mode:"static",staticData:null,responseMapping:[]},s=_1(r,i.requireContextKeys),{data:l,isLoading:c,isError:u}=Tr({widgetId:e.id,dataSource:i,enabled:s&&i.mode!=="static"});if(!s)return f.jsxs("div",{className:"flex min-h-[240px] flex-col items-center justify-center gap-2 rounded-lg border bg-muted/20 p-6 text-center","data-widget-id":e.id,"data-widget-type":"detail_card",children:[f.jsx(qf,{className:"h-10 w-10 text-muted-foreground/60"}),f.jsx("p",{className:"font-medium",children:t.emptyTitle??"No selection"}),f.jsx("p",{className:"text-sm text-muted-foreground",children:t.emptyMessage??"Click an item to view details"})]});if(c)return f.jsx("div",{className:"flex min-h-[240px] items-center justify-center rounded-lg border","data-widget-id":e.id,children:f.jsx(tn,{})});if(u)return f.jsx("div",{className:"rounded-lg border p-4 text-sm text-destructive","data-widget-id":e.id,children:"Failed to load details"});const d=eNt(l),p=r.selectedEvent,y=p&&typeof p=="object"&&!Array.isArray(p)?p:null,m=xs(d,t.titlePath)||(y?.title!=null?String(y.title):"")||xs(d,"scheduled_class_slot.date")||"Session details",g=xs(d,t.subtitlePath)||(y?.subtitle!=null?String(y.subtitle):"")||xs(d,"scheduled_class_slot.start_time"),v=xs(d,t.statusPath),b=v?v.replace(/_/g," "):"",_=t.fields??[],x=t.badges??[],w=t.actions??[];return f.jsxs("div",{className:"space-y-4 rounded-lg border bg-card p-4","data-widget-id":e.id,"data-widget-type":"detail_card","data-page-widget":"detail_card",children:[f.jsxs("div",{className:"flex items-start justify-between gap-2",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-base font-semibold",children:m}),g?f.jsx("p",{className:"text-sm text-muted-foreground",children:g}):null]}),b?f.jsx("span",{className:"rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium capitalize text-primary",children:b}):null]}),x.length>0?f.jsx("div",{className:"flex flex-wrap gap-1.5",children:x.map(S=>{const M=S.label||xs(d,S.path);return M?f.jsx("span",{className:"rounded-full border bg-muted px-2 py-0.5 text-xs",children:M},S.id):null})}):null,_.length>0?f.jsx("dl",{className:"space-y-2 text-sm",children:_.map(S=>{const M=xs(d,S.path,S.fallback??"—");return f.jsxs("div",{className:"flex items-start justify-between gap-3",children:[f.jsx("dt",{className:"text-muted-foreground",children:S.label}),f.jsx("dd",{className:"text-right font-medium",children:M})]},S.id)})}):null,w.length>0?f.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:w.map(S=>f.jsx(st,{type:"button",variant:S.variant??"default",size:S.size??"default",onClick:()=>wr(S.action,r,n,e.id,{setContextValues:o,payload:typeof l=="object"&&l!=null?l:{data:l},dataApis:a.dataApis}),children:S.label},S.id))}):null]})}function rNt(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function Jd(e,t=""){return e==null||e===""?t:String(e)}function nNt(e,t){const r=t?fe(e,t):e;return Array.isArray(r)?r.map(n=>rNt(n)??{value:n}):[]}function oNt(e,t){const r=Jd(fe(e,t.idPath??"id"),Jd(e.id)),n=Jd(fe(e,t.titlePath??"title"),r),o=t.subtitlePath?fe(e,t.subtitlePath):void 0,a=(t.fields??[]).filter(i=>i.path).map(i=>({label:i.label||i.path,value:Jd(fe(e,i.path),i.fallback??"")}));return{id:r,title:n,subtitle:o==null||o===""?void 0:String(o),extras:a,raw:e}}function aNt(e,t){const r=t.groupField??"",n=t.leftValue??"",o=[],a=[];for(const i of e){const s=r?Jd(fe(i.raw,r)):"";r&&n&&s===n?o.push(i):a.push(i)}return{left:o,right:a}}function iNt(e){return e.map(t=>t.id).join("|")}function sNt(e,t,r){const n={};return r.leftContextKey&&(n[r.leftContextKey]=e.map(o=>o.raw)),r.rightContextKey&&(n[r.rightContextKey]=t.map(o=>o.raw)),r.leftIdsContextKey&&(n[r.leftIdsContextKey]=e.map(o=>o.id)),r.rightIdsContextKey&&(n[r.rightIdsContextKey]=t.map(o=>o.id)),n}const kde="application/x-page-dual-list-id";function Sde(e,t,r){const n=t.find(o=>o.id===e);return n?r.some(o=>o.id===e)?{from:t.filter(o=>o.id!==e),to:r}:{from:t.filter(o=>o.id!==e),to:[...r,n]}:{from:t,to:r}}function lNt({widget:e}){const t=e.config,{context:r,setContextValues:n}=jt(),o=_1(r,t.dataSource?.requireContextKeys),a=t.enableDrag!==!1,i=t.scrollBehavior??"page",[s,l]=k.useState(null),{data:c,isLoading:u,isError:d}=Tr({widgetId:e.id,dataSource:t.dataSource??{mode:"static",staticData:[]},enabled:o}),p=k.useMemo(()=>nNt(c,t.itemsPath).map(z=>oNt(z,t)),[c,t]),y=iNt(p),m=Yce(s,i==="fit",[y]),g=i==="fit"?m?{height:m}:void 0:i==="contained"?{height:`${t.maxHeightPercent??50}vh`}:void 0,[v,b]=k.useState([]),[_,x]=k.useState([]),[w,S]=k.useState(null);k.useEffect(()=>{const j=aNt(p,{groupField:t.groupField,leftValue:t.leftValue,rightValue:t.rightValue});b(j.left),x(j.right)},[y]);const M=k.useRef("");k.useEffect(()=>{const j=sNt(v,_,{leftContextKey:t.leftContextKey,rightContextKey:t.rightContextKey,leftIdsContextKey:t.leftIdsContextKey,rightIdsContextKey:t.rightIdsContextKey});if(Object.keys(j).length===0)return;const z=JSON.stringify(j);M.current!==z&&(M.current=z,n(j))},[v,_,t.leftContextKey,t.rightContextKey,t.leftIdsContextKey,t.rightIdsContextKey,n]);const P=k.useCallback((j,z)=>{if(z==="right"){const $=Sde(j,v,_);b($.from),x($.to);return}const E=Sde(j,_,v);x(E.from),b(E.to)},[v,_]),N=k.useCallback(j=>{if(j==="right"){x(z=>[...z,...v.filter(E=>!z.some($=>$.id===E.id))]),b([]);return}b(z=>[...z,..._.filter(E=>!z.some($=>$.id===E.id))]),x([])},[v,_]),A=(j,z)=>{if(z.preventDefault(),S(null),!a)return;const E=z.dataTransfer.getData(kde)||z.dataTransfer.getData("text/plain");E&&P(E,j)};if(!o)return f.jsx("div",{className:"rounded-lg border bg-muted/20 p-4 text-sm text-muted-foreground","data-widget-id":e.id,"data-widget-type":"dual_list",children:"Waiting for required context"});if(u)return f.jsx("div",{className:"flex min-h-[200px] items-center justify-center rounded-lg border","data-widget-id":e.id,children:f.jsx(tn,{})});if(d)return f.jsx("div",{className:"rounded-lg border p-4 text-sm text-destructive","data-widget-id":e.id,children:"Failed to load list"});const C=(j,z)=>f.jsxs("div",{className:"flex items-start gap-2 rounded-md border bg-background p-2",draggable:a?!0:void 0,onDragStart:E=>{a&&(E.dataTransfer.setData(kde,j.id),E.dataTransfer.setData("text/plain",j.id),E.dataTransfer.effectAllowed="move")},"data-dual-list-item":j.id,"data-dual-list-pane":z,children:[a&&f.jsx(N$,{className:"mt-0.5 h-4 w-4 shrink-0 text-muted-foreground","aria-hidden":!0}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("p",{className:"text-sm font-medium leading-tight",children:j.title}),j.subtitle&&f.jsx("p",{className:"text-xs text-muted-foreground",children:j.subtitle}),j.extras.map(E=>f.jsxs("p",{className:"text-[11px] text-muted-foreground",children:[E.label,": ",E.value]},E.label))]}),f.jsx(st,{type:"button",variant:"ghost",size:"sm",className:"h-7 shrink-0 px-2 text-xs",onClick:()=>P(j.id,z==="left"?"right":"left"),children:z==="left"?t.moveToRightLabel||"Move right":t.moveToLeftLabel||"Move left"})]},j.id),O=(j,z,E,$,F,q)=>f.jsxs("div",{className:`flex flex-col rounded-lg border bg-card p-3 ${g?"h-full min-h-0":"min-h-[220px]"} ${w===j?"ring-2 ring-primary/40":""}`,onDragOver:D=>{a&&(D.preventDefault(),S(j))},onDragLeave:()=>S(D=>D===j?null:D),onDrop:D=>A(j,D),"data-dual-list-pane-drop":j,children:[f.jsxs("div",{className:"mb-2 flex items-center justify-between gap-2",children:[f.jsxs("h3",{className:"text-sm font-semibold",children:[E," ",f.jsxs("span",{className:"text-muted-foreground",children:["(",z.length,")"]})]}),F&&z.length>0&&f.jsx(st,{type:"button",variant:"outline",size:"sm",className:"h-7 text-xs",onClick:()=>N(j==="left"?"right":"left"),children:q||"Move all"})]}),f.jsx("div",{className:"flex flex-1 flex-col gap-2 overflow-auto",children:z.length===0?f.jsx("p",{className:"py-6 text-center text-xs text-muted-foreground",children:$}):z.map(D=>C(D,j))})]});return f.jsxs("div",{className:"space-y-3","data-widget-id":e.id,"data-widget-type":"dual_list","data-enable-drag":a?"true":"false",children:[t.instruction&&f.jsx("p",{className:"text-sm text-muted-foreground",children:t.instruction}),f.jsxs("div",{ref:l,className:`grid gap-3 md:grid-cols-2 ${g?"min-h-0 overflow-hidden":""}`,style:g,"data-dual-list-scroll":i,children:[O("left",v,t.leftTitle||"Selected",t.leftEmptyMessage||"No items",t.showMoveAllRight,t.moveAllRightLabel),O("right",_,t.rightTitle||"Available",t.rightEmptyMessage||"No items",t.showMoveAllLeft,t.moveAllLeftLabel)]})]})}function cNt(e){return!e?.trim()}const dNt="calendarYear",uNt=1900,fNt=2100;function D1(e){if(typeof e=="number"&&Number.isFinite(e))return Math.trunc(e);const t=String(e??"").trim().match(/^(\d{1,4})/);if(!t)return null;const r=Number(t[1]);return Number.isNaN(r)?null:r}function Qd(e,t,r){return Math.min(r,Math.max(t,e))}function pNt({widget:e}){const t=e.config,{context:r,setContextValue:n}=jt(),o=t.contextKey?.trim()||dNt,a=t.minYear??uNt,i=t.maxYear??fNt,s=D1(t.initialYear!==void 0?jo(String(t.initialYear),r):void 0),l=D1(r[o]),c=Qd(l??s??new Date().getFullYear(),a,i),[u,d]=k.useState(!1),[p,y]=k.useState(String(c));k.useEffect(()=>{l===null&&n(o,c)},[o,l,n,c]);const m=g=>{n(o,Qd(g,a,i))};return f.jsxs("div",{className:"flex flex-wrap items-center gap-2","data-widget-id":e.id,children:[t.showLabel!==!1&&f.jsx("span",{className:"text-sm text-muted-foreground whitespace-nowrap",id:`${e.id}-year-label`,children:t.label?.trim()||"Academic year"}),f.jsxs("div",{className:"flex items-center rounded-md border bg-muted/50",role:"group","aria-labelledby":t.showLabel!==!1?`${e.id}-year-label`:void 0,children:[f.jsx("button",{type:"button",className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-l-md hover:bg-muted disabled:opacity-50","aria-label":"Previous year",disabled:c<=a,onClick:()=>m(c-1),children:f.jsx(si,{className:"h-4 w-4"})}),f.jsx("input",{type:"text",inputMode:"numeric",autoComplete:"off",maxLength:4,"aria-label":t.label?.trim()||"Academic year",className:B("h-8 w-[3.5rem] border-x bg-transparent px-1 text-center text-sm font-medium tabular-nums shadow-none","outline-none focus-visible:ring-0"),value:u?p:String(c),onFocus:()=>{d(!0),y(String(c))},onChange:g=>{y(g.target.value.replace(/\D/g,"").slice(0,4))},onBlur:()=>{d(!1);const g=D1(p);g!==null?m(g):y(String(c))},onKeyDown:g=>{g.key==="ArrowUp"||g.key==="ArrowRight"?(g.preventDefault(),m(c+1)):g.key==="ArrowDown"||g.key==="ArrowLeft"?(g.preventDefault(),m(c-1)):g.key==="Enter"&&g.currentTarget.blur()}}),f.jsx("button",{type:"button",className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-r-md hover:bg-muted disabled:opacity-50","aria-label":"Next year",disabled:c>=i,onClick:()=>m(c+1),children:f.jsx(Ln,{className:"h-4 w-4"})})]})]})}function Te(e,t){return t?fe(e,t):void 0}function gn(e){const t=String(e??"").match(/(?:T|\s|^)(\d{1,2}):(\d{2})/);return t?Number(t[1])*60+Number(t[2]):null}function Fa(e){const t=Math.floor(e/60),r=e%60;return`${String(t).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function Kl(e){return`${Fa(e)}:00`}function lo(e){if(e==null||e==="")return null;const t=Number(e);return Number.isFinite(t)?t:null}function L1(e){return Number.isInteger(e)?String(e):e.toFixed(1)}function xde(e,t){const r=gn(Te(e,t.start)),n=gn(Te(e,t.end));return r!=null&&n!=null&&n>r?(n-r)/60:1}function bv(e,t){return String(Te(e,t.match?.paletteField??t.fields.id)??"").trim()}function ws(e,t){const r=t.palette?.match?.itemField;if(r){const n=String(Te(e,r)??"").trim();if(n)return n}return String(Te(e,"course_activity_id")??Te(e,"subject_activity_id")??Te(e,t.fields.id)??"").trim()}function eu(e,t){return t.column?String(Te(e,t.column)??""):t.date?String(Te(e,t.date)??"").slice(0,10):""}function _v(e,t,r){const n=r.palette;if(!n)return 0;const o=bv(e,n);return o?t.reduce((a,i)=>ws(i,r)!==o?a:a+xde(i,r.fields),0):0}function hNt(e,t){return lo(Te(e,t.fields.weeklyHours))??lo(Te(e,"weekly_hours"))}function q1(e,t){return!!e.fields[t]?.trim()}function yNt(e,t){return q1(t,"totalHours")?lo(Te(e,t.fields.totalHours))??lo(Te(e,"total_hours"))??lo(Te(e,"hours")):null}function mNt(e,t,r){const n=r.palette;if(!n)return 0;const o=bv(e,n);return o?t.reduce((a,i)=>ws(i,r)!==o||!String(Te(i,r.fields.id)??i.id??"").startsWith("local-")?a:a+xde(i,r.fields),0):0}function gNt(e,t,r){const n=r.palette;if(!n)return 0;const o=_v(e,t,r),a=(q1(n,"scheduledHours")?lo(Te(e,n.fields.scheduledHours)):null)??(q1(n,"totalHours")?lo(Te(e,"scheduled_hours")):null);return o>0?o:a==null?0:a+mNt(e,t,r)}function vNt(e,t,r){return e.filter(n=>ws(n,t)===r).map(n=>{const o=eu(n,t.fields),a=Te(n,t.fields.start),i=Te(n,t.fields.end),s=lo(n.day_of_week)??(o?Nde(String(o).slice(0,10)):void 0),l={start_time:a,end_time:i};return o&&(l.date=String(o).slice(0,10)),s!=null&&(l.day_of_week=s),l})}function bNt(e,t,r){return e==null||t!==r}function wde(e,t,r){const n=r.palette;if(!n)return null;const o=yNt(e,n);if(o!=null){const s=gNt(e,t,r),l=q1(n,"remainingHours")?lo(Te(e,n.fields.remainingHours))??Math.max(0,o-s):Math.max(0,o-s);return{mode:"term",total:o,scheduled:s,remaining:l}}const a=hNt(e,n);if(a!=null){const s=_v(e,t,r);return{mode:"weekly",weekly:a,scheduled:s,remaining:Math.max(0,a-s)}}const i=lo(Te(e,n.fields.remainingHours))??lo(Te(e,"remaining_hours"));return i==null?null:{mode:"remaining",scheduled:_v(e,t,r),remaining:Math.max(0,i)}}function _Nt(e,t,r){const n=wde(e,t,r);return n?n.mode==="term"&&n.total!=null?[{kind:"total",text:`Total: ${L1(n.total)}h`},{kind:"remaining",text:`Remaining: ${n.remaining.toFixed(1)}h`},{kind:"scheduled",text:`Scheduled: ${n.scheduled.toFixed(1)}h`}]:n.mode==="weekly"&&n.weekly!=null?[{kind:"weekly",text:`Remaining: ${L1(n.remaining)}h / Weekly: ${L1(n.weekly)}h`}]:[{kind:"remaining",text:`Remaining: ${L1(n.remaining)}h`}]:null}function Mde(e){return e.map(t=>[t.id,t.course_activity_id??t.subject_activity_id,t.day_of_week??t.date,t.start_time??t.start,t.end_time??t.end].join(":")).join("|")}function kNt(e,t,r,n){const o=e.trim();if(!o)return;if(!o.includes(".")){n(o,t);return}const a=o.split(".")[0]??o;n(a,Pde({[a]:r[a]},o,t)[a])}function Pde(e,t,r){const n=t.indexOf(".");if(n===-1)return{...e,[t]:r};const o=t.slice(0,n),a=t.slice(n+1),i=e[o],s=i&&typeof i=="object"&&!Array.isArray(i)?i:{};return{...e,[o]:Pde(s,a,r)}}function SNt(e){return e.mode!=="context"?null:e.contextPath?.trim()||null}function Ode(e,t,r){if(t.date)return String(e.value).slice(0,10);const n=r.map(a=>Te(a,t.column)).find(a=>a!=null),o=Number(e.value);return Number.isFinite(o)?typeof n=="string"&&!/^-?\d+(\.\d+)?$/.test(n)||typeof n=="string"?String(e.value):o:e.value}function xNt(e,t,r,n){return e<n&&r<t}function kv(e){const{rows:t,config:r,activityId:n,columnValue:o,startMinutes:a,endMinutes:i,excludeId:s}=e;return!n||i<=a?!0:t.some(l=>{if(s&&String(Te(l,r.fields.id)??"")===s||ws(l,r)!==n||eu(l,r.fields)!==o)return!1;const c=gn(Te(l,r.fields.start)),u=gn(Te(l,r.fields.end));return c==null||u==null||u<=c?!1:xNt(a,i,c,u)})}function wNt(e){const{rows:t,dragged:r,targetColumn:n,targetStartMinutes:o,stepMinutes:a,config:i}=e,s=i.fields,l=String(n.value);if(r.source==="grid"){const M=String(Te(r.row,s.id)??""),P=gn(Te(r.row,s.start)),N=gn(Te(r.row,s.end)),A=P!=null&&N!=null&&N>P?N-P:a;if(eu(r.row,s)===l&&P===o)return{ok:!1,message:"",level:"info"};const C=ws(r.row,i);if(kv({rows:t,config:i,activityId:C,columnValue:l,startMinutes:o,endMinutes:o+A,excludeId:M}))return{ok:!1,message:"This activity already has another slot overlapping this time",level:"error"};const O=Ode(n,s,t),j=t.map(E=>{if(String(Te(E,s.id)??"")!==M)return E;const $={...E,[s.start]:Kl(o),[s.end]:Kl(o+A)};return s.column&&!s.column.includes(".")&&($[s.column]=O),s.date&&!s.date.includes(".")&&($[s.date]=String(n.value).slice(0,10)),$}),z=j.find(E=>String(Te(E,s.id)??"")===M)??j[0];return{ok:!0,rows:j,message:"Slot moved successfully",kind:"move",row:z??r.row}}const c=i.palette;if(!c)return{ok:!1,message:"No available items",level:"error"};const u=bv(r.row,c),d=a,p=d/60;if(t.some(M=>ws(M,i)===u&&eu(M,s)===l&&gn(Te(M,s.start))===o))return{ok:!1,message:"Slot already exists at this time",level:"info"};if(kv({rows:t,config:i,activityId:u,columnValue:l,startMinutes:o,endMinutes:o+d}))return{ok:!1,message:"This activity already has another slot overlapping this time",level:"error"};const m=wde(r.row,t,i);if(m?.mode==="term"){if(m.remaining<=0)return{ok:!1,message:"No remaining hours for this activity",level:"error"};if(m.remaining<p)return{ok:!1,message:`Only ${m.remaining} hour(s) remaining. Cannot add ${p} hour slot.`,level:"error"}}else if(m?.mode==="weekly"){const M=m.remaining;if(M<=0)return{ok:!1,message:"No remaining weekly hours for this activity",level:"error"};if(M<p)return{ok:!1,message:`Only ${M} weekly hour(s) remaining. Cannot add ${p} hour slot.`,level:"error"}}const g=Ode(n,s,t),v=s.id&&!s.id.includes(".")?s.id:"id",b=s.start&&!s.start.includes(".")?s.start:"start_time",_=s.end&&!s.end.includes(".")?s.end:"end_time",x=String(n.value).slice(0,10),w=`local-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,S={...ONt(r.row),id:w,course_activity_id:u,subject_activity_id:u,is_active:!0,sequence:t.length,day_of_week:Nde(x),[v]:w,[b]:Kl(o),[_]:Kl(o+d)};return s.column&&!s.column.includes(".")&&(S[s.column]=g),s.date&&!s.date.includes(".")&&(S[s.date]=x),{ok:!0,rows:[...t,S],message:"Slot added successfully",kind:"create",row:S}}function MNt(e){const{rows:t,row:r,startMinutes:n,endMinutes:o,config:a}=e,i=a.fields;if(o-n<15)return{ok:!1,message:"Class duration must be at least 15 minutes",level:"error"};const s=String(Te(r,i.id)??""),l=ws(r,a),c=eu(r,i);if(kv({rows:t,config:a,activityId:l,columnValue:c,startMinutes:n,endMinutes:o,excludeId:s}))return{ok:!1,message:"This activity already has another slot overlapping this time",level:"error"};const u=t.map(p=>String(Te(p,i.id)??"")!==s?p:{...p,[i.start&&!i.start.includes(".")?i.start:"start_time"]:Kl(n),[i.end&&!i.end.includes(".")?i.end:"end_time"]:Kl(o)}),d=u.find(p=>String(Te(p,i.id)??"")===s);return{ok:!0,rows:u,message:"Slot time updated",kind:"move",row:d??r}}function PNt(e,t,r){const n=String(Te(r,t.fields.id)??"");return e.filter(o=>String(Te(o,t.fields.id)??"")!==n)}function Nde(e){if(!/^\d{4}-\d{2}-\d{2}$/.test(e))return;const t=new Date(`${e}T12:00:00`);return Number.isNaN(t.getTime())?void 0:t.getDay()}function ONt(e){const t=new Set(["id","weekly_hours","hours","total_hours","remaining_hours","scheduled_hours"]),r={};for(const[i,s]of Object.entries(e))t.has(i)||(r[i]=s);const n=Te(e,"course.name")??Te(e,"subject.name"),o=Te(e,"course.code")??Te(e,"subject.code"),a=Te(e,"activityType.name");return r.subject_name==null&&n!=null&&(r.subject_name=n),r.subject_code==null&&o!=null&&(r.subject_code=o),r.activity_type==null&&a!=null&&(r.activity_type=a),r}const NNt=/^(.*\/api\/v1\/masters\/semester-schedules\/)([^/?#]+)(?:[?#].*)?$/;function Sv(e){const t=e.scheduledClassSlot&&typeof e.scheduledClassSlot=="object"?String(e.scheduledClassSlot.id??"").trim():"",r=e.scheduled_class_slot&&typeof e.scheduled_class_slot=="object"?String(e.scheduled_class_slot.id??"").trim():"";return[t,r,String(e.scheduled_class_slot_id??"").trim(),String(e._id??"").trim(),String(e.slot_id??"").trim()].find(o=>o&&!o.startsWith("local-"))??""}function jde(e){if(e.mode!=="api"||!e.api?.path)return null;const t=e.api.path.trim().match(NNt);if(!t)return null;const r=t[1],n=t[2],o=r.replace(/semester-schedules\/$/,""),a=e.api.headers,i=e.api.auth;return{create:{id:"semester-slot-create",name:"Save semester slots",enabled:!0,method:"PATCH",path:`${r}${n}/subject-activities/batch`,headers:a,auth:i,bodyFields:[{key:"tenant_id",value:"{tenantId}"},{key:"items",value:"{items}"}]},move:{id:"semester-slot-move",name:"Move semester slot",enabled:!0,method:"PATCH",path:`${o}semester-schedules/scheduled-class-slots/{slotId}`,headers:a,auth:i,bodyFields:[{key:"tenant_id",value:"{tenantId}"},{key:"date",value:"{date}"},{key:"day_of_week",value:"{day_of_week}"},{key:"start_time",value:"{start_time}"},{key:"end_time",value:"{end_time}"}]},delete:{id:"semester-slot-delete",name:"Delete semester slot",enabled:!0,method:"DELETE",path:`${o}semester-schedules/scheduled-class-slots/{slotId}`,headers:a,auth:i,queryParams:[{key:"tenant_id",value:"{tenantId}"}]}}}function jNt(e,t){if(e.onItemDelete)return e.onItemDelete;const r=jde(e.dataSource);if(!(!r||!Sv(t)))return{type:"api",api:r.delete}}function ANt(e,t,r){if(t==="create"&&e.onItemCreate)return e.onItemCreate;if(t==="move"&&e.onItemMove)return e.onItemMove;const n=jde(e.dataSource);if(n)return t==="move"&&Sv(r)?{type:"api",api:n.move}:{type:"api",api:n.create}}function TNt(e){const t=String(e.row.course_activity_id??e.row.subject_activity_id??"").trim(),r=vNt(e.rows,e.config,t),n=String(e.targetColumn).slice(0,10),o=String(Te(e.row,e.config.fields.start)??e.targetStart),a=String(Te(e.row,e.config.fields.end)??""),i=lo(e.row.day_of_week)??(/^\d{4}-\d{2}-\d{2}$/.test(n)?new Date(`${n}T12:00:00`).getDay():void 0);return{item:e.row,rows:e.rows,targetColumn:e.targetColumn,targetStart:e.targetStart,course_activity_id:t,subject_activity_id:t,timetable_slots:r,items:[{course_activity_id:t,subject_activity_id:t,timetable_slots:r}],slotId:Sv(e.row),date:n,day_of_week:i,start_time:o,end_time:a}}function CNt(e){if(!e||typeof e!="object")return;const t=e,n=(t.data&&typeof t.data=="object"?t.data:t).results;if(!Array.isArray(n))return;const o=n.find(s=>s&&typeof s=="object"&&s.ok===!1);if(!o)return;const a=o.error?.explanation,i=Array.isArray(a)?a.join(". "):a;throw new Error(i||"Failed to save slot")}function ENt(e){return e?.type==="api"}const B1={mode:"static",staticData:[],responseMapping:[]};function Gl(e,t){if(Array.isArray(e))return e;if(!e||typeof e!="object")return[];const r=t.mode==="api"?t.api?.itemsPath:t.mode==="context"?t.contextPath:void 0;if(r?.trim())return Vd(e,r);for(const n of["data.items","data","items"]){const o=Vd(e,n);if(o.length)return o}return[]}function $o(e){const t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return`${t}-${r}-${n}`}function Wn(e){const t=String(e??"").trim();if(!t)return null;const r=new Date(t.length===10?`${t}T00:00:00`:t);return Number.isNaN(r.getTime())?null:r}function zNt(e,t){const r=e.map(n=>Wn(Te(n,t))).filter(n=>!!n).sort((n,o)=>n.getTime()-o.getTime());return r[0]?$o(r[0]):""}function Rl(e,t,r,n,o,a){e&&wr(e,{...a?.context??{},...n},o,t,{setContextValues:a?.setContextValues,payload:n})}const $Nt=Array.from({length:24},(e,t)=>String(t).padStart(2,"0")),INt=Array.from({length:60},(e,t)=>String(t).padStart(2,"0"));function Ade(e){return`${String(Math.floor(e/60)).padStart(2,"0")}:${String(e%60).padStart(2,"0")}`}function Tde(e){const t=e.trim().match(/^(\d{1,2}):(\d{2})$/);return t?Number(t[1])*60+Number(t[2]):null}function Cde({label:e,htmlFor:t,value:r,onChange:n}){const[o="09",a="00"]=r.split(":");return f.jsxs("div",{className:"grid gap-2",children:[f.jsx("label",{className:"text-sm font-semibold",htmlFor:t,children:e}),f.jsxs("div",{className:"flex items-center gap-2",id:t,children:[f.jsx("select",{"aria-label":`${e}, hour`,className:"h-11 min-w-0 flex-1 rounded-lg border border-input bg-background px-2 text-sm",value:o,onChange:i=>n(`${i.target.value}:${a}`),children:$Nt.map(i=>f.jsx("option",{value:i,children:i},i))}),f.jsx("span",{className:"shrink-0 text-sm font-semibold text-muted-foreground",children:":"}),f.jsx("select",{"aria-label":`${e}, minutes`,className:"h-11 min-w-0 flex-1 rounded-lg border border-input bg-background px-2 text-sm",value:a,onChange:i=>n(`${o}:${i.target.value}`),children:INt.map(i=>f.jsx("option",{value:i,children:i},i))})]})]})}function xv(e,t){return e?.trim()?jo(e,t).replace(/\{(?:ctx:)?([A-Za-z_][A-Za-z0-9_]*)\}/g,(o,a)=>{const i=t[a];return i!=null&&String(i).trim()!==""?String(i):""}).trim():""}function Ede(e,t){const{setContextValue:r,context:n}=jt(),[o,a]=k.useState(null),i=k.useMemo(()=>Mde(t),[t]),s=k.useRef(i);return k.useEffect(()=>{bNt(o,s.current,i)&&(a(t),s.current=i)},[o,i,t]),{rows:o??t,commitRows:c=>{a(c);const u=SNt(e);u&&kNt(u,c,n,r)}}}function FNt(e,t){const r=String(Te(e,t.title)??"").trim(),n=String(Te(e,"course.code")??Te(e,"subject.code")??"").trim();return n&&r&&r!==n&&!r.includes("—")&&!r.startsWith(`${n} `)?`${n} — ${r}`:r}function DNt(e,t){return String(Te(e,t.color)??Te(e,"color_code")??Te(e,"course.color_code")??"").trim()}function zde({widgetId:e,config:t,rows:r,columns:n,fields:o,paletteRows:a=[],onRowsChange:i,orientation:s="time-rows"}){const{context:l,dispatchAction:c,setContextValues:u,clientId:d}=jt(),p=Pn.useQueryClient(),y=Math.max(0,Math.min(23,t.startHour??8)),m=Math.max(y+1,Math.min(24,t.endHour??18)),g=t.stepMinutes??60,v=Array.from({length:Math.ceil((m-y)*60/g)},(L,R)=>y*60+R*g),[b,_]=k.useState(null),x=k.useRef(b);x.current=b;const[w,S]=k.useState(null),[M,P]=k.useState("09:00"),[N,A]=k.useState("10:00"),C=L=>o.column?String(Te(L,o.column)??""):o.date?String(Te(L,o.date)??"").slice(0,10):"",O=(L,R,V,G,Z,te,K)=>{i?.(V);const re=L==="delete"?jNt(t,G):ANt(t,L,G),Q=TNt({config:t,row:G,rows:V,targetColumn:te??C(G),targetStart:K??Fa(gn(Te(G,o.start))??0)});if(ENt(re)&&d){(async()=>{try{await bse({action:re,clientId:d,context:{...l,...Q},setContextValues:u,silent:!0,assertResponse:CNt,invalidateQueries:()=>p.invalidateQueries({queryKey:["page-ds"]})}),Qe.toast.success(Z)}catch(ee){i?.(R),Qe.toast.error(ee instanceof Error?ee.message:"Failed to save slot")}})();return}Qe.toast.success(Z),Rl(re,e,"change",Q,c,{context:l,setContextValues:u})},j=(L,R)=>r.filter(V=>{const G=gn(Te(V,o.start));return C(V)===String(L.value)&&G===R}),z=(L,R)=>{const V=j(L,R),G=t.blockedBands?.some(Z=>{const te=gn(Z.start),K=gn(Z.end);return te!=null&&K!=null&&R>=te&&R<K});return f.jsxs("div",{className:B("min-h-16 border-b border-r p-1.5",G&&"bg-muted/40"),onDragOver:t.allowDrag?Z=>{Z.preventDefault(),Z.dataTransfer.dropEffect="move"}:void 0,onDrop:t.allowDrag?Z=>{Z.preventDefault();const te=x.current;if(!te)return;const K=r,re=wNt({rows:r,dragged:te,targetColumn:L,targetStartMinutes:R,stepMinutes:g,config:t});if(!re.ok){re.message&&(re.level==="info"?Qe.toast.info(re.message):Qe.toast.error(re.message),Rl(t.onConflict,e,"change",{item:te.row,targetColumn:L.value,targetStart:Fa(R),message:re.message},c,{context:l,setContextValues:u})),_(null);return}O(re.kind,K,re.rows,re.row,re.message,L.value,Fa(R)),_(null)}:void 0,children:[G&&V.length===0&&f.jsx("span",{className:"text-[10px] text-muted-foreground",children:t.blockedBands?.find(Z=>{const te=gn(Z.start),K=gn(Z.end);return te!=null&&K!=null&&R>=te&&R<K})?.label??"Blocked"}),V.map((Z,te)=>{const K=t.palette?.match,re=K?a.find(oe=>Te(oe,K.paletteField)===Te(Z,K.itemField)):void 0,Q=re?{...re,...Z}:Z,ee=String(Te(Z,o.id)??te),J=String(Te(Q,o.color)??""),W=!!Te(Z,o.locked),ye=!!t.allowDrag&&!W;return f.jsxs("div",{role:"button",tabIndex:0,draggable:!!(t.allowDrag&&!W),onDragStart:oe=>{oe.dataTransfer.setData("text/plain",ee),oe.dataTransfer.effectAllowed="move",oe.dataTransfer.dropEffect="move",_({row:Z,source:"grid"})},onDragEnd:()=>_(null),onClick:()=>Rl(t.onItemClick,e,"click",{item:Z,paletteItem:re},c,{context:l,setContextValues:u}),className:B("relative mb-1 block w-full select-none rounded-md border p-2 pr-12 text-left text-xs shadow-sm",t.allowDrag&&!W?"cursor-move":"cursor-default",J?"text-white":"bg-background hover:bg-muted/30"),style:J?{backgroundColor:J,borderColor:J}:void 0,children:[ye&&f.jsxs("div",{className:"absolute right-1 top-1 z-10 flex gap-1",children:[f.jsx("button",{type:"button","aria-label":"Edit slot time",className:B("flex h-5 w-5 items-center justify-center rounded-full",J?"bg-white/20 text-white hover:bg-white/30":"bg-muted text-foreground hover:bg-muted/80"),onMouseDown:oe=>oe.stopPropagation(),onClick:oe=>{oe.stopPropagation();const ce=gn(Te(Z,o.start))??y*60,de=gn(Te(Z,o.end))??ce+g;P(Ade(ce)),A(Ade(de)),S(Z)},children:f.jsx(Hf,{className:"h-3 w-3"})}),f.jsx("button",{type:"button","aria-label":"Delete slot",className:B("flex h-5 w-5 items-center justify-center rounded-full",J?"bg-white/20 text-white hover:bg-white/30":"bg-muted text-foreground hover:bg-muted/80"),onMouseDown:oe=>oe.stopPropagation(),onClick:oe=>{oe.stopPropagation(),O("delete",r,PNt(r,t,Z),Z,"Slot removed")},children:f.jsx(wa,{className:"h-3 w-3"})})]}),t.itemTemplate?f.jsx("span",{className:"pointer-events-none block whitespace-pre-line",children:jo(t.itemTemplate,Q)}):f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"pointer-events-none block font-medium",children:String(Te(Q,o.title)??"")}),o.subtitle&&f.jsx("span",{className:B("pointer-events-none block",J?"text-white/90":"text-muted-foreground"),children:String(Te(Q,o.subtitle)??"")})]}),f.jsxs("span",{className:B("pointer-events-none block text-[10px]",J?"text-white/80":"text-muted-foreground"),children:[String(Te(Z,o.start)??""),"–",String(Te(Z,o.end)??"")]})]},ee)})]},`${L.id}-${R}`)},E=r.length===0?f.jsx("div",{className:"p-6 text-center text-sm text-muted-foreground",children:t.emptyMessage??"No items"}):null,$=f.jsxs("div",{className:"overflow-x-auto rounded-lg border","data-orientation":"time-rows",children:[f.jsxs("div",{className:"grid min-w-[720px]",style:{gridTemplateColumns:`76px repeat(${Math.max(n.length,1)}, minmax(140px, 1fr))`},children:[f.jsx("div",{className:"border-b border-r bg-muted/50 p-2 text-xs font-medium text-muted-foreground",children:"Time"}),n.map(L=>f.jsx("div",{className:"border-b border-r bg-muted/50 p-2 text-center text-sm font-medium",children:L.label},L.id)),v.flatMap(L=>[f.jsx("div",{className:"border-b border-r p-2 text-xs text-muted-foreground",children:Fa(L)},`time-${L}`),...n.map(R=>z(R,L))])]}),E]}),F=f.jsxs("div",{className:"overflow-x-auto rounded-lg border","data-orientation":"days-rows",children:[f.jsxs("div",{className:"grid min-w-[720px]",style:{gridTemplateColumns:`112px repeat(${Math.max(v.length,1)}, minmax(80px, 1fr))`},children:[f.jsx("div",{className:"border-b border-r bg-muted/50 p-2 text-xs font-medium text-muted-foreground",children:"Day"}),v.map(L=>f.jsx("div",{className:"border-b border-r bg-muted/50 p-2 text-center text-xs font-medium",children:Fa(L)},`hour-${L}`)),n.flatMap(L=>[f.jsx("div",{className:"border-b border-r bg-muted/30 p-2 text-sm font-medium",children:L.label},`day-${L.id}`),...v.map(R=>z(L,R))])]}),E]}),q=s==="days-rows"?F:$,D=()=>{if(!w)return;const L=Tde(M),R=Tde(N);if(L==null||R==null){Qe.toast.error("Please set both start and end time");return}if(R<=L){Qe.toast.error("End time must be after start time");return}if(L<y*60||R>m*60){Qe.toast.error(`Time must be within schedule hours (${Fa(y*60)} – ${Fa(m*60)})`);return}const V=MNt({rows:r,row:w,startMinutes:L,endMinutes:R,config:t});if(!V.ok){Qe.toast.error(V.message);return}O("move",r,V.rows,V.row,V.message,C(V.row),Fa(L)),S(null)},H=f.jsx(us,{open:!!w,onOpenChange:L=>!L&&S(null),children:f.jsxs(fs,{className:"sm:max-w-md",children:[f.jsxs(ps,{children:[f.jsx(hs,{children:"Change class time"}),f.jsx(Goe,{children:"Pick hour and minute for start and end. Dropdowns scroll inside this window so nothing covers the buttons."})]}),f.jsxs("div",{className:"grid gap-5 py-2",children:[f.jsx(Cde,{label:"Start time",htmlFor:"grid-edit-start",value:M,onChange:P}),f.jsx(Cde,{label:"End time",htmlFor:"grid-edit-end",value:N,onChange:A})]}),f.jsxs(g2,{className:"gap-2 sm:gap-0",children:[f.jsx(st,{type:"button",variant:"outline",onClick:()=>S(null),children:"Cancel"}),f.jsx(st,{type:"button",onClick:D,children:"Save"})]})]})});if(!t.palette)return f.jsxs("div",{"data-widget-id":e,children:[q,H]});const I=t.palette.fields;return f.jsxs("div",{className:"flex min-w-0 gap-3","data-widget-id":e,children:[f.jsxs("aside",{className:"w-80 shrink-0 overflow-y-auto rounded-lg border p-3",children:[f.jsx("h3",{className:"mb-1 text-sm font-medium",children:t.palette.title??"Items"}),f.jsx("p",{className:"mb-2 text-[11px] text-muted-foreground",children:I.totalHours?"Total hours for each course-activity mapping. Drag to the grid to add a slot.":"Drag to the grid or load master template."}),f.jsxs("div",{className:"space-y-2",children:[a.map((L,R)=>{const V=DNt(L,I),G=_Nt(L,r,t);return f.jsxs("div",{role:"button",tabIndex:0,draggable:!!t.allowDrag,onDragStart:Z=>{Z.dataTransfer.setData("text/plain",String(Te(L,I.id)??R)),Z.dataTransfer.effectAllowed="move",Z.dataTransfer.dropEffect="move",_({row:L,source:"palette"})},onDragEnd:()=>_(null),className:"block w-full cursor-move select-none rounded-md border bg-background p-3 text-left text-xs shadow-sm",style:V?{borderLeftColor:V,borderLeftWidth:4}:void 0,children:[f.jsx("span",{className:"pointer-events-none block font-medium",children:FNt(L,I)}),I.subtitle&&f.jsx("span",{className:"pointer-events-none mt-1 block text-muted-foreground",children:String(Te(L,I.subtitle)??"")}),G?.map((Z,te)=>f.jsx("span",{className:B("pointer-events-none block",te===0?"mt-1":"mt-0.5",Z.kind==="total"&&"font-semibold",Z.kind==="remaining"&&"font-bold text-muted-foreground",Z.kind==="scheduled"&&"font-bold text-muted-foreground/80",(Z.kind==="weekly"||Z.kind==="remaining"&&G.length===1)&&"text-muted-foreground font-normal"),children:Z.text},Z.kind))]},String(Te(L,I.id)??R))}),a.length===0&&f.jsx("p",{className:"text-xs text-muted-foreground",children:"No available items"})]})]}),f.jsx("div",{className:"min-w-0 flex-1",children:q}),H]})}function LNt({widget:e}){const t=e.config,{data:r,isLoading:n,isError:o}=Tr({widgetId:e.id,dataSource:t.dataSource}),a=Tr({widgetId:`${e.id}-palette`,dataSource:t.palette?.dataSource??B1,enabled:!!t.palette}),i=Gl(r,t.dataSource),{rows:s,commitRows:l}=Ede(t.dataSource,i),c=Gl(a.data,t.palette?.dataSource??B1);return n||t.palette&&a.isLoading?f.jsx("div",{className:"p-6 text-center text-sm text-muted-foreground",children:"Loading…"}):o||a.isError?f.jsx("div",{className:"p-6 text-center text-sm text-destructive",children:"Failed to load data"}):f.jsx(zde,{widgetId:e.id,config:t,rows:s,columns:t.columns??[],fields:t.fields,paletteRows:c,onRowsChange:l})}function qNt(e,t,r){if(t.columns?.length)return t.columns;const n=Math.max(1,Math.min(31,t.visibleDateCount??7)),o=Wn(t.startDate),a=e.map(l=>Wn(Te(l,t.fields.date))).filter(l=>!!l).sort((l,c)=>l.getTime()-c.getTime()),i=o??a[0]??new Date,s=new Date(i);return s.setDate(i.getDate()+r),Array.from({length:n},(l,c)=>{const u=new Date(s);return u.setDate(s.getDate()+c),{id:$o(u),value:$o(u),label:u.toLocaleDateString(void 0,{weekday:"short",month:"short",day:"numeric"})}})}function BNt(e){return e==="time-rows"||e==="days-rows"?e:null}function HNt({widget:e}){const t=e.config,{context:r,setContextValue:n}=jt(),o=t.startDateContextKey?.trim()||F8t(t.startDate),a=t.weekStartsOn===0?0:1,i=xv(t.minDate,r),s=xv(t.maxDate,r),l=o?String(r[o]??"").trim():"",c=xv(t.startDate,r),u=/^\d{4}-\d{2}-\d{2}$/.test(l)?l:/^\d{4}-\d{2}-\d{2}$/.test(c)?c:"",d=u?I1(o?Si(u,a):u,/^\d{4}-\d{2}-\d{2}$/.test(i)?i:void 0,/^\d{4}-\d{2}-\d{2}$/.test(s)?s:void 0):void 0,p={...t,startDate:d,minDate:i||void 0,maxDate:s||void 0},[y,m]=k.useState(0),g=k.useRef(l);k.useEffect(()=>{!o||g.current===l||(g.current=l,m(0))},[o,l]);const{data:v,isLoading:b,isError:_}=Tr({widgetId:e.id,dataSource:t.dataSource}),x=Tr({widgetId:`${e.id}-palette`,dataSource:t.palette?.dataSource??B1,enabled:!!t.palette}),w=Gl(v,t.dataSource),S=Mde(w),M=t.seedWeekStartFromEarliestRow??cNt(t.startDateContextKey),P=t.orientationContextKey?.trim()??"",N=P?BNt(r[P]):null,A=t.defaultOrientation??"time-rows",[C,O]=k.useState(()=>N??A);k.useEffect(()=>{O(A)},[A]),k.useEffect(()=>{N&&O(N)},[N]);const j=()=>{const K=C==="time-rows"?"days-rows":"time-rows";O(K),P&&n(P,K)};k.useEffect(()=>{if(!o||u||b)return;const K=M?zNt(w,t.fields.date):"";n(o,Si(K||Ss(new Date),a))},[o,u,b,S,t.fields.date,n,a,M]);const{rows:z,commitRows:E}=Ede(t.dataSource,w),$=Gl(x.data,t.palette?.dataSource??B1),F=k.useMemo(()=>qNt(z,p,o?0:y),[z,p,o,y]),q=Math.max(1,Math.min(31,t.visibleDateCount??7)),D=F[F.length-1],H=F[0]?.value?Wn(F[0].value):null,I=D?.value?Wn(D.value):null,L=Wn(p.minDate),R=Wn(p.maxDate),V=!L||!H||H.getTime()>L.getTime(),G=!R||!I||I.getTime()<R.getTime(),Z=K=>{if(o&&d){n(o,I1(zo(d,K),/^\d{4}-\d{2}-\d{2}$/.test(i)?i:void 0,/^\d{4}-\d{2}-\d{2}$/.test(s)?s:void 0));return}m(re=>re+K)};if(b||t.palette&&x.isLoading)return f.jsx("div",{className:"p-6 text-center text-sm text-muted-foreground",children:"Loading…"});if(_||x.isError)return f.jsx("div",{className:"p-6 text-center text-sm text-destructive",children:"Failed to load data"});const te=t.showOrientationToggle?f.jsxs(st,{type:"button",variant:"outline",size:"sm","aria-label":`Switch to ${C==="time-rows"?"days":"time"} in rows`,title:`Current orientation: ${C==="time-rows"?"time":"days"} in rows`,onClick:j,children:[f.jsx(U0,{className:"mr-1 h-4 w-4"}),C==="days-rows"?"Time in rows":"Days in rows"]}):null;return f.jsxs("div",{className:"space-y-2","data-widget-id":e.id,"data-widget-type":"date_time_grid",children:[(t.showNavigation!==!1||te)&&f.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[t.showNavigation!==!1?f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("button",{type:"button",className:"rounded border px-2 py-1 text-xs disabled:opacity-50",disabled:!V,onClick:()=>Z(-q),children:"Previous"}),f.jsxs("span",{className:"text-xs text-muted-foreground",children:[F[0]?.label??""," – ",D?.label??""]}),f.jsx("button",{type:"button",className:"rounded border px-2 py-1 text-xs disabled:opacity-50",disabled:!G,onClick:()=>Z(q),children:"Next"})]}):f.jsx("span",{}),te]}),f.jsx(zde,{widgetId:e.id,config:p,rows:z,columns:F,fields:t.fields,paletteRows:$,onRowsChange:E,orientation:C})]})}function $de(e,t,r=7){if(!t)return!1;const n=zo(t,Math.max(1,r)-1);return e>=t&&e<=n}function Ide(e,t){const r=new Date(e.getFullYear(),e.getMonth(),1),n=(r.getDay()-t+7)%7,o=new Date(r);return o.setDate(r.getDate()-n),Array.from({length:42},(a,i)=>{const s=new Date(o);return s.setDate(o.getDate()+i),s})}function VNt({widget:e}){const t=e.config,{context:r,dispatchAction:n,setContextValue:o,setContextValues:a}=jt(),i=t.weekStartContextKey?.trim(),s=i?String(r[i]??"").trim():"",l=t.weekStartsOn??1,c=Wn(t.initialDate?jo(t.initialDate,r):void 0)??new Date,[u,d]=k.useState(new Date(c.getFullYear(),c.getMonth(),1)),{data:p,isLoading:y,isError:m}=Tr({widgetId:e.id,dataSource:t.dataSource}),g=Gl(p,t.dataSource),v=Ide(u,l),b=l===1?["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],_=x=>g.filter(w=>{const S=Wn(Te(w,t.fields.startDate)),M=Wn(Te(w,t.fields.endDate))??S;if(!S||!M)return!1;const P=new Date(x.getFullYear(),x.getMonth(),x.getDate()).getTime(),N=new Date(S.getFullYear(),S.getMonth(),S.getDate()).getTime(),A=new Date(M.getFullYear(),M.getMonth(),M.getDate()).getTime();return P>=N&&P<=A});return f.jsxs("div",{className:"rounded-lg border","data-widget-id":e.id,children:[f.jsxs("div",{className:"flex items-center justify-between border-b p-3",children:[f.jsx("button",{type:"button",className:"rounded p-1 hover:bg-muted","aria-label":"Previous month",onClick:()=>d(new Date(u.getFullYear(),u.getMonth()-1,1)),children:f.jsx(si,{className:"h-4 w-4"})}),f.jsx("strong",{children:u.toLocaleDateString(void 0,{month:"long",year:"numeric"})}),f.jsx("button",{type:"button",className:"rounded p-1 hover:bg-muted","aria-label":"Next month",onClick:()=>d(new Date(u.getFullYear(),u.getMonth()+1,1)),children:f.jsx(Ln,{className:"h-4 w-4"})})]}),f.jsxs("div",{className:"grid grid-cols-7",children:[b.map(x=>f.jsx("div",{className:"border-b border-r p-2 text-center text-xs font-medium text-muted-foreground",children:x},x)),v.map(x=>{const w=_(x),S=w.slice(0,t.maxEventsPerDay??3);return f.jsxs("div",{role:"button",tabIndex:0,className:B("min-h-24 border-b border-r p-1.5 text-xs",x.getMonth()!==u.getMonth()&&"bg-muted/20 text-muted-foreground",$de($o(x),s)&&"bg-primary/10"),onClick:()=>{const M=$o(x),P=Si(M,l);i&&o(i,P),Rl(t.onDateClick,e.id,"click",{date:M,weekStart:P},n,{context:r,setContextValues:a})},onKeyDown:M=>{(M.key==="Enter"||M.key===" ")&&M.currentTarget.click()},children:[f.jsx("span",{className:"font-medium",children:x.getDate()}),f.jsxs("div",{className:"mt-1 space-y-1",children:[S.map((M,P)=>{const N=String(Te(M,t.fields.color)??"");return f.jsx("button",{type:"button",className:"block w-full truncate rounded bg-primary/10 px-1.5 py-1 text-left",style:N?{borderLeft:`3px solid ${N}`}:void 0,onClick:A=>{A.stopPropagation(),Rl(t.onEventClick,e.id,"click",{item:M},n,{context:r,setContextValues:a})},children:String(Te(M,t.fields.title)??"")},String(Te(M,t.fields.id)??P))}),w.length>S.length&&f.jsxs("span",{className:"text-[10px] text-muted-foreground",children:["+",w.length-S.length," more"]})]})]},$o(x))})]}),!y&&!m&&g.length===0&&f.jsx("div",{className:"p-4 text-center text-sm text-muted-foreground",children:t.emptyMessage??"No events"}),y&&f.jsx("div",{className:"p-4 text-center text-sm text-muted-foreground",children:"Loading…"}),m&&f.jsx("div",{className:"p-4 text-center text-sm text-destructive",children:"Failed to load data"})]})}const Fde=[{value:"holiday",label:"Holiday",color:"#dc2626"},{value:"exam",label:"Exam",color:"#2563eb"}];function UNt(e,t){const r=t.legend?.length?t.legend:Fde,n=t.fields.category??"type";for(const a of r)if(e.some(s=>{const l=String(Te(s,n)??"").trim().toLowerCase();if(l&&l===a.value.trim().toLowerCase())return!0;const c=String(Te(s,t.fields.color)??"").trim().toLowerCase();return!!(c&&c===a.value.trim().toLowerCase())}))return a.color;return e.map(a=>String(Te(a,t.fields.color)??"").trim()).find(a=>a.startsWith("#")||a.startsWith("rgb"))}function WNt({widget:e}){const t=e.config,{context:r,dispatchAction:n,setContextValue:o,setContextValues:a}=jt(),i=t.weekStartContextKey?.trim(),s=i?String(r[i]??"").trim():"",l=t.yearContextKey?.trim()||"calendarYear",c=Wn(t.initialDate?jo(t.initialDate,r):void 0)??new Date,u=t.minYear??2e3,d=t.maxYear??2100,p=D1(r[l]),[y,m]=k.useState(()=>Qd(p??c.getFullYear(),u,d)),g=Qd(p??y,u,d),v=t.showYearNavigation??p===null,b=j=>{const z=Qd(j,u,d);m(z),o(l,z)},{data:_,isLoading:x,isError:w}=Tr({widgetId:e.id,dataSource:t.dataSource}),S=Gl(_,t.dataSource),M=t.weekStartsOn??0,P=M===1?["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],N=t.legend?.length?t.legend:Fde,A=$o(new Date),C=Array.from({length:12},(j,z)=>new Date(g,z,1)),O=j=>S.filter(z=>{const E=Wn(Te(z,t.fields.startDate)),$=Wn(Te(z,t.fields.endDate))??E;if(!E||!$)return!1;const F=new Date(j.getFullYear(),j.getMonth(),j.getDate()).getTime(),q=new Date(E.getFullYear(),E.getMonth(),E.getDate()).getTime(),D=new Date($.getFullYear(),$.getMonth(),$.getDate()).getTime();return F>=q&&F<=D});return f.jsxs("div",{className:"rounded-xl border bg-card shadow-sm","data-widget-id":e.id,children:[f.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 border-b bg-muted/40 px-4 py-2.5",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[v&&f.jsx("button",{type:"button",className:"rounded p-1 hover:bg-muted disabled:opacity-50","aria-label":"Previous year",disabled:g<=u,onClick:()=>b(g-1),children:f.jsx(si,{className:"h-4 w-4"})}),f.jsxs("strong",{className:"text-sm tracking-tight",children:["Calendar – ",g]}),v&&f.jsx("button",{type:"button",className:"rounded p-1 hover:bg-muted disabled:opacity-50","aria-label":"Next year",disabled:g>=d,onClick:()=>b(g+1),children:f.jsx(Ln,{className:"h-4 w-4"})})]}),f.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-xs text-muted-foreground",children:[N.map(j=>f.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[f.jsx("span",{className:"size-2.5 shrink-0 rounded-full ring-1 ring-black/10",style:{backgroundColor:j.color},"aria-hidden":!0}),j.label]},j.value)),t.showTodayLegend!==!1&&f.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[f.jsx("span",{className:"size-2.5 shrink-0 rounded-full bg-primary ring-1 ring-primary/40","aria-hidden":!0}),"Today"]})]})]}),f.jsx("div",{className:"grid w-full grid-cols-[repeat(auto-fill,minmax(min(100%,16rem),1fr))] gap-4 p-4",children:C.map(j=>{const z=Ide(j,M);return f.jsxs("div",{className:"flex min-w-0 flex-col rounded-xl border border-border/70 bg-gradient-to-b from-card to-muted/20 p-3 shadow-sm",children:[f.jsx("div",{className:"mb-2.5 text-center text-sm font-semibold tracking-tight",children:j.toLocaleDateString(void 0,{month:"long",year:"numeric"})}),f.jsxs("div",{className:"grid grid-cols-7",children:[P.map(E=>f.jsx("div",{className:"pb-1.5 text-center text-[0.65rem] font-medium uppercase leading-none text-muted-foreground",children:E.slice(0,3)},`${j.getTime()}-${E}`)),z.map(E=>{const $=O(E),F=UNt($,t),q=$o(E)===A,D=E.getMonth()===j.getMonth();return f.jsx("button",{type:"button",className:B("mx-auto flex aspect-square w-full max-w-[2.25rem] items-center justify-center rounded-md text-[0.7rem] font-medium tabular-nums",!D&&"text-muted-foreground/45",q&&!F&&"bg-primary text-primary-foreground",$de($o(E),s)&&!F&&"ring-1 ring-primary/50 bg-primary/15"),style:F?{backgroundColor:F,color:"#fff"}:void 0,onClick:()=>{const H=$o(E),I=Si(H,M);i&&o(i,I),Rl(t.onDateClick,e.id,"click",{date:H,weekStart:I,year:g,events:$},n,{context:r,setContextValues:a})},children:E.getDate()},$o(E))})]})]},j.getTime())})}),x&&f.jsx("div",{className:"p-4 text-center text-sm text-muted-foreground",children:"Loading…"}),w&&f.jsx("div",{className:"p-4 text-center text-sm text-destructive",children:"Failed to load data"})]})}function KNt(e,t,r){return t.length===0?e:e.filter(n=>t.every(o=>{const a=r[o.id]??o.defaultValue??"";if(!String(a).trim())return!0;const i=n[o.paramKey];return String(i??"")===String(a)}))}function GNt(e,t,r){return bce(e,t,r)}function RNt(e,t){let r=e;return t.staticMode&&t.toolbarFilters.length>0&&(r=KNt(r,t.toolbarFilters,t.filterValues)),t.searchEnabled&&t.staticMode&&t.search.trim()&&(r=_ce(r,t.search,t.searchFields,t.searchField||void 0)),r}function YNt(e,t,r){const n=(t-1)*r;return e.slice(n,n+r)}const Dde={mode:"static",staticData:[],responseMapping:[]};function XNt(e,t){const r=e.optionsDataSource;if(r){if(r.mode==="api")return r.api;if(r.mode==="pageApi"&&r.dataSourceRef)return t[r.dataSourceRef]}}function Lde(e,t){if(Array.isArray(e))return e;if(!e||typeof e!="object")return[];const n=[t.mode==="api"?t.api?.itemsPath:void 0,"data.items","data","items"].filter(Boolean);for(const o of n){const a=fe(e,o);if(Array.isArray(a))return a}return[]}function ZNt(){return"h-9 w-full min-w-[11rem] rounded border border-input bg-background px-2 text-sm"}function H1(e){return e.editor==="textarea"}function JNt(e){return H1(e)?"flex w-full items-start py-0.5":B("flex w-full min-h-9 items-center",e.align==="center"&&"justify-center text-center",e.align==="right"&&"justify-end text-right")}function qde(e){return{id:e.id,header:e.header,field:e.field,cellType:e.cellType,cellAppearance:e.cellAppearance,align:e.align}}function Bde(e){if(e==null||e==="")return"—";if(Array.isArray(e)){const t=e.map(r=>String(r??"").trim()).filter(Boolean);return t.length>0?t.join(", "):"—"}return String(e)}function QNt(e){if(e==null||e==="")return"";const t=Bde(e);return t==="—"||t.trim()===""?"":t}function e7t({column:e,value:t,row:r}){const n=Bde(t),o=e.subtitleField?.trim(),a=o&&r?QNt(fe(r,o)):"";if(o&&a){const s=e.primaryBold!==!1,l=lv(qde(e),n),c=n==="—"||n.trim()==="";return f.jsxs("div",{className:"max-w-[240px] whitespace-normal text-sm leading-snug",children:[c?null:f.jsx("div",{className:B(s?"font-bold text-foreground":"text-foreground",!s&&l.asPill&&"inline-flex items-center capitalize",!s&&l.className),style:s?void 0:l.style,children:n}),f.jsx("div",{className:B("font-normal text-muted-foreground",!c&&"mt-0.5 text-[11px] leading-snug"),children:a})]})}const i=lv(qde(e),n);return f.jsx("span",{className:B("text-sm leading-none",i.asPill&&"inline-flex items-center capitalize",i.className),style:i.style,children:n})}function t7t({label:e,options:t,value:r,placeholder:n,isLoading:o,disabled:a,onChange:i}){const[s,l]=k.useState(!1),[c,u]=k.useState(""),d=!r.trim(),p=d?n??"Select…":t.find(m=>m.value===r)?.label??r,y=k.useMemo(()=>{const m=c.trim().toLowerCase();return m?t.filter(g=>g.label.toLowerCase().includes(m)||g.value.toLowerCase().includes(m)):t},[t,c]);return f.jsxs(yi,{open:s,onOpenChange:m=>{a||(l(m),m&&u(""))},children:[f.jsx(cs,{asChild:!0,children:f.jsxs(st,{type:"button",variant:"outline",role:"combobox","aria-expanded":s,"aria-haspopup":"listbox","aria-label":e,disabled:a||o,className:B("h-9 w-full min-w-[11rem] justify-between px-2 font-normal",d&&"text-muted-foreground"),children:[f.jsx("span",{className:"truncate text-left text-sm",children:o?"Loading…":p}),f.jsx(Qo,{className:"ml-1 size-4 shrink-0 opacity-50"})]})}),f.jsxs(mi,{className:"w-[min(100vw-2rem,20rem)] p-0",align:"start",children:[f.jsxs("div",{className:"flex h-9 items-center gap-2 border-b px-2",children:[f.jsx(R0,{className:"size-3.5 shrink-0 opacity-50","aria-hidden":!0}),f.jsx(Nn,{className:"h-8 border-0 bg-transparent p-0 text-sm shadow-none focus-visible:ring-0",placeholder:"Search…",value:c,onChange:m=>u(m.target.value)})]}),f.jsxs("ul",{role:"listbox","aria-label":e,className:"max-h-56 space-y-0 overflow-y-auto p-1",children:[f.jsx("li",{role:"option","aria-selected":d,children:f.jsxs("button",{type:"button",className:"flex w-full cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm hover:bg-muted",onClick:()=>{i(""),l(!1)},children:[f.jsx(Jo,{className:B("size-4 shrink-0",d?"opacity-100":"opacity-0")}),f.jsx("span",{children:n??"Select…"})]})}),y.map(m=>{const g=r===m.value;return f.jsx("li",{role:"option","aria-selected":g,children:f.jsxs("button",{type:"button",className:"flex w-full cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm hover:bg-muted",onClick:()=>{i(m.value),l(!1)},children:[f.jsx(Jo,{className:B("size-4 shrink-0",g?"opacity-100":"opacity-0")}),f.jsx("span",{className:"min-w-0 break-words",children:m.label})]})},m.value)}),t.length===0?f.jsx("li",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No options"}):null,t.length>0&&y.length===0?f.jsx("li",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No match"}):null]})]})]})}function r7t({label:e,options:t,values:r,placeholder:n,isLoading:o,onChange:a}){const[i,s]=k.useState(!1),[l,c]=k.useState(""),u=r.map(y=>t.find(m=>m.value===y)?.label??y),d=u.length>0?u.join(", "):n??"Select…",p=k.useMemo(()=>{const y=l.trim().toLowerCase();return y?t.filter(m=>m.label.toLowerCase().includes(y)||m.value.toLowerCase().includes(y)):t},[t,l]);return f.jsxs(yi,{open:i,onOpenChange:y=>{s(y),y&&c("")},children:[f.jsx(cs,{asChild:!0,children:f.jsxs(st,{type:"button",variant:"outline",role:"combobox","aria-expanded":i,"aria-haspopup":"listbox","aria-label":e,disabled:o,className:B("h-9 w-full min-w-[11rem] justify-between px-2 font-normal",u.length===0&&"text-muted-foreground"),children:[f.jsx("span",{className:"truncate text-left text-xs",children:o?"Loading…":d}),f.jsx(Qo,{className:"ml-1 size-3.5 shrink-0 opacity-50"})]})}),f.jsxs(mi,{className:"w-64 p-0",align:"start",children:[f.jsxs("div",{className:"flex h-9 items-center gap-2 border-b px-2",children:[f.jsx(R0,{className:"size-3.5 shrink-0 opacity-50","aria-hidden":!0}),f.jsx(Nn,{className:"h-8 border-0 bg-transparent p-0 text-sm shadow-none focus-visible:ring-0",placeholder:"Search…",value:l,onChange:y=>c(y.target.value)})]}),f.jsxs("ul",{role:"listbox","aria-multiselectable":"true","aria-label":e,className:"max-h-56 space-y-1 overflow-y-auto p-2",children:[p.map(y=>{const m=r.includes(y.value);return f.jsx("li",{role:"option","aria-selected":m,children:f.jsxs("label",{className:"flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-sm hover:bg-muted",children:[f.jsx(vi,{checked:m,onCheckedChange:g=>{a(g===!0?[...r,y.value]:r.filter(v=>v!==y.value))}}),f.jsx("span",{className:"min-w-0 flex-1 break-words",children:y.label})]})},y.value)}),t.length===0?f.jsx("li",{className:"px-1 py-2 text-xs text-muted-foreground",children:"No options"}):null,t.length>0&&p.length===0?f.jsx("li",{className:"px-1 py-2 text-xs text-muted-foreground",children:"No match"}):null]})]})]})}function n7t({widgetId:e,column:t,row:r,rowId:n,value:o,disabled:a,onChange:i}){const{schema:s}=jt(),l=VMt(r,t),c=k.useMemo(()=>XNt(t,s.dataApis??{}),[t,s.dataApis]),u=k.useMemo(()=>JSON.stringify(Hse(r,t,c)),[r,t,c]),d=k.useMemo(()=>Hse(r,t,c),[u,r,t,c]),p=Tr({widgetId:`${e}-options-${t.id}-${n}`,dataSource:t.optionsDataSource??Dde,enabled:!!t.optionsDataSource&&l,extraContext:d,keepPreviousData:!0}),y=!!t.optionsDataSource&&p.isLoading&&p.data===void 0,m=Lde(p.data,t.optionsDataSource??Dde).map((v,b)=>zg(v,b,t.optionLabelField??"label",t.optionValueField??"value")).filter(v=>v!=null),g=XMt(t.optionsDataSource?m:t.options??[],Ta(o));if(a||!t.editor){const b=Ta(o).map(x=>g.find(w=>w.value===x)?.label??x),_=b.length>0?b.join(", "):Array.isArray(o)?o.join(", "):String(o??"");return f.jsx(e7t,{column:t,value:_.trim()?_:o,row:r})}return!l&&(t.editor==="select"||t.editor==="multiselect")?f.jsx("span",{className:"text-xs text-muted-foreground",children:t.emptyDependsOnLabel??"Select a value first"}):t.editor==="select"?f.jsx(t7t,{label:t.header,options:g,value:String(UMt(o)??""),placeholder:t.placeholder??"Select…",isLoading:y,onChange:i}):t.editor==="multiselect"?f.jsx(r7t,{label:t.header,options:g,values:Ta(o),placeholder:t.placeholder??"Select…",isLoading:y,onChange:i}):t.editor==="textarea"?f.jsx(yte,{className:"min-h-[52px] min-w-[10rem] resize-y text-sm",placeholder:t.placeholder,value:String(o??""),disabled:a,onChange:v=>i(v.target.value)}):f.jsx("input",{className:ZNt(),type:t.editor==="number"?"number":"text",placeholder:t.placeholder,value:String(o??""),onChange:v=>i(t.editor==="number"?Number(v.target.value):v.target.value)})}function o7t(e,t){const r={id:e.id,header:e.header,field:e.field,align:e.align};return B(ov(t,r),H1(e)?"align-top whitespace-normal min-w-[10rem]":"align-middle whitespace-nowrap",!H1(e)&&e.align==="center"&&"text-center",!H1(e)&&e.align==="right"&&"text-right")}function a7t({widget:e}){const t=e.config,{schema:r,context:n,dispatchAction:o,replaceFilterGroup:a,setFilterValue:i,setContextValues:s}=jt(),l=t.pagination?.enabled===!0,c=t.search?.enabled===!0,u=t.dataSource.mode==="static",[d,p]=k.useState(1),[y,m]=k.useState(t.pagination?.pageSize??10),[g,v]=k.useState(""),[b,_]=k.useState(""),[x,w]=k.useState(""),S=t.filters?.filterGroupKey??e.id,M=t.search?.filterGroupKey?.trim()||S,P=c&&t.search?.publishToFilterGroup===!0,N=t.search?.debounceMs??300,A=k.useMemo(()=>kce(t.toolbar),[t.toolbar]),C=k.useMemo(()=>Sce(t.toolbar),[t.toolbar]),O=k.useMemo(()=>{const _e={};for(const Ee of A)_e[Ee.id]=Ee.defaultValue??(Ee.includeAllOption===!1?Ee.options?.[0]?.value??"":T1(Ee).value);return _e},[A]),[j,z]=k.useState(O),[E,$]=k.useState({}),F=k.useCallback((_e,Ee)=>{$(He=>{const tt=He[_e];return tt&&tt.length===Ee.length&&tt.every((be,Oe)=>be.value===Ee[Oe]?.value&&be.label===Ee[Oe]?.label)?He:{...He,[_e]:Ee}})},[]),q=k.useMemo(()=>A.map(_e=>`${_e.id}\0${_e.paramKey??""}`).join(`
54
+ `),[r]),S=k.useMemo(()=>O6t(r),[w]);k.useEffect(()=>{m(E=>{const $={...p};for(const F of Object.keys(E))F in $&&($[F]=E[F]);return Ll(E,$)?E:$})},[p]);const M=k.useMemo(()=>M6t(r,y,g),[r,y,g]),P=k.useMemo(()=>JSON.stringify(M),[M]),N=k.useRef(M);N.current=M,k.useEffect(()=>{l(n,N.current,{resetKeys:S})},[S,n,P,l]),k.useEffect(()=>{if(!o)return;const E=N.current;Ll(_.current??void 0,E)||(_.current={...E},c(E))},[P,c,o]);const A=k.useRef(s);A.current=s,k.useEffect(()=>{if(!t.onFiltersComplete)return;const E=P6t(t.requiredFilterKeys,y);if(E&&!b.current){b.current=!0,wr(t.onFiltersComplete,{...A.current,...M,filters:M},u,e.id,{setContextValues:c,payload:M,dataApis:d.dataApis});return}E||(b.current=!1)},[t.onFiltersComplete,t.requiredFilterKeys,u,M,d.dataApis,c,y,e.id]);const C=(E,$)=>{m(F=>Wce(F,E,$,r))},O=r.filter(E=>S6t(E,M,s)),j=t.style,z={};return j?.backgroundColor?.trim()&&(z.backgroundColor=j.backgroundColor.trim()),j?.padding?.trim()&&(z.padding=j.padding.trim()),j?.margin?.trim()&&(z.margin=j.margin.trim()),j?.borderRadius?.trim()&&(z.borderRadius=j.borderRadius.trim()),j?.borderColor?.trim()&&(z.borderColor=j.borderColor.trim()),j?.borderWidth?.trim()&&(z.borderWidth=j.borderWidth.trim()),f.jsx("div",{className:B("w-full",j?.borderWidth?.trim()||j?.borderColor?.trim()?"border":void 0),style:z,"data-widget-id":e.id,"data-page-widget":"filter_bar","data-filter-group":n,children:f.jsx("div",{className:B(i==="row"&&"flex flex-row flex-nowrap items-end overflow-x-auto",i==="wrap"&&"flex flex-row flex-wrap items-end",i==="grid"&&"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5"),style:{gap:F6t(t.gap)},children:O.map(E=>{const $=E.paramKey?.trim();return $?f.jsx($6t,{filter:E,filterGroupKey:n,filterState:M,value:y[$]??"",labelPosition:a,onChange:F=>C($,F),onOptionsResolved:x},E.id):null})})})}function L6t({widget:e}){const t=e.config,{context:r,clientId:n}=jt();return t.formId?f.jsx("div",{"data-widget-id":e.id,"data-page-widget":"form_embed",children:f.jsx(Ng,{formId:t.formId,mode:t.mode??"fill",contextFieldMapping:t.contextFieldMapping,pageContext:r,clientId:n,scrollBehavior:t.scrollBehavior,maxHeightPercent:t.maxHeightPercent,showBorder:t.showBorder})}):f.jsx("p",{className:"text-sm text-muted-foreground",children:"No form configured"})}function q6t(e,t){const r={};for(const[o,a]of Object.entries(e)){if(a==null||typeof a=="object")continue;const i=String(a).trim();i&&(r[o]=i)}r.tenant_id&&r.tenantId&&r.tenant_id!==r.tenantId?r.tenantId=r.tenant_id:r.tenantId&&!r.tenant_id?r.tenant_id=r.tenantId:r.tenant_id&&!r.tenantId&&(r.tenantId=r.tenant_id);const n=r.applicantId??r.applicant_id;if(n&&(r.id||(r.id=n),r.applicantId||(r.applicantId=n),r.applicant_id||(r.applicant_id=n)),r.sessionId&&!r.admission_session_id&&(r.admission_session_id=r.sessionId),r.admission_session_id&&!r.sessionId&&(r.sessionId=r.admission_session_id),r.applicantUserId&&!r.context_user_id&&(r.context_user_id=r.applicantUserId),r.userId&&!r.created_by&&(r.created_by=r.userId),r.created_by&&!r.userId&&(r.userId=r.created_by),t)for(const[o,a]of Object.entries(t)){const i=e[a];if(i==null||typeof i=="object")continue;const s=String(i).trim();s&&(r[o]=s)}return r}const yv="applicantUserId",B6t="featureId";function z1(e,t,r){const n=t?.trim()||r,o=e[n];return o==null?void 0:String(o).trim()||void 0}function H6t({widget:e}){const t=e.config,{schema:r,context:n,getWorkflowState:o,workflowModalHandlers:a,clientId:i,prepopulateStatus:s}=jt(),l=String(n.moduleId??""),c=t.subjectUserContextKey?.trim()||yv,u=z1(n,t.subjectUserContextKey,yv),d=z1(n,t.featureContextKey,B6t),p=z1(n,void 0,"applicantId")??z1(n,void 0,"id"),m=u1(r)&&(c===yv||c==="applicantUserId")&&!!p&&!u&&s==="loading";if(!o)return f.jsxs("div",{className:"rounded-md border border-dashed p-4 text-sm text-muted-foreground","data-widget-id":e.id,children:["Workflow embed requires ",f.jsx("code",{className:"text-xs",children:"getWorkflowState"})," on PageRenderer. Workflow ID: ",t.workflowId]});if(!l)return f.jsx("p",{className:"text-sm text-destructive","data-widget-id":e.id,children:"moduleId required in page context for workflow embed"});if(m)return f.jsx("div",{className:"rounded-md border border-dashed p-4 text-sm text-muted-foreground","data-widget-id":e.id,"data-page-widget":"workflow_embed",children:"Loading applicant context…"});const g=q6t(n,t.contextVariableMapping);return f.jsx("div",{"data-widget-id":e.id,"data-page-widget":"workflow_embed",children:f.jsx(Zie,{getWorkflowState:o,workflowModalHandlers:a,moduleId:l,tenantId:n.tenantId?String(n.tenantId):void 0,clientId:i||void 0,submissionContext:g,subjectUserId:u,bootstrapFeatureId:d})})}function V6t({widget:e}){const t=e.config,{schema:r,dispatchAction:n}=jt(),o=t.previousPage??r.navigation?.previousPage,a=t.nextPage??r.navigation?.nextPage,i=t.showPrevious!==!1&&!!o,s=t.showNext!==!1&&!!a,l=t.showBreadcrumbs&&r.navigation?.breadcrumbs?.length,c=t.align==="center"?"justify-center":t.align==="right"?"justify-end":t.align==="space-between"?"justify-between":"justify-start",u=d=>{n({type:"navigate_page",pageId:d.pageId},e.id,"click")};return f.jsxs("nav",{className:"space-y-3","data-widget-id":e.id,children:[l&&f.jsx("ol",{className:"flex flex-wrap items-center gap-1 text-sm text-muted-foreground",children:r.navigation.breadcrumbs.map((d,p)=>f.jsxs("li",{className:"flex items-center gap-1",children:[p>0&&f.jsx("span",{children:"/"}),d.href?f.jsx("a",{href:d.href,className:"hover:underline",children:d.label}):f.jsx("span",{children:d.label})]},p))}),f.jsxs("div",{className:B("flex items-center gap-2",c),children:[i&&o&&f.jsx(st,{variant:"outline",size:"sm",onClick:()=>u(o),children:o.label??"Previous"}),s&&a&&f.jsx(st,{variant:"default",size:"sm",onClick:()=>u(a),children:a.label??"Next"})]})]})}const Gce=240,U6t=4,W6t=250;function Rce(e){let t=e.parentElement;for(;t&&t!==document.body&&t!==document.documentElement;){const r=window.getComputedStyle(t).overflowY;if(r==="auto"||r==="scroll"||r==="overlay")return t;t=t.parentElement}return document.documentElement}function Yce(e,t,r=[]){const[n,o]=k.useState(null);return k.useEffect(()=>{if(!t||!e||typeof window>"u"){o(null);return}const a=()=>{const d=Rce(e),p=d===document.documentElement,y=p?0:d.getBoundingClientRect().top,m=p?0:parseFloat(window.getComputedStyle(d).paddingBottom)||0,v=(p?window.innerHeight:y+d.clientHeight)-m-e.getBoundingClientRect().top;o(Math.max(Gce,Math.round(v)))};let i=0,s=0;const l=()=>{const d=Rce(e),p=d.scrollHeight-d.clientHeight;p<=1||s>=U6t||(s+=1,o(y=>Math.max(Gce,(y??e.offsetHeight)-p)),i=window.requestAnimationFrame(l))},c=()=>{s=0,a(),window.cancelAnimationFrame(i),i=window.requestAnimationFrame(l)};c();const u=window.setTimeout(c,W6t);return window.addEventListener("resize",c),()=>{window.clearTimeout(u),window.cancelAnimationFrame(i),window.removeEventListener("resize",c)}},[e,t,...r]),n}function mv(e){const t=e.split("?")[0]?.split("#")[0]??"/";return t.length>1&&t.endsWith("/")?t.slice(0,-1):t||"/"}function K6t(e){const t=e.activePathPrefix?.trim();if(t)return mv(t);const r=e.action;if(r?.type==="navigate"&&r.href?.trim())return mv(r.href)}function G6t(e,t){const r=K6t(e);if(!r)return!1;const n=mv(t);return!!(n===r||r!=="/"&&n.startsWith(`${r}/`))}const R6t="#FAFAFA",Y6t="#EBEBEB",X6t="iq-sidebar-nav-collapsed:";function Xce(e){return`${X6t}${e}`}function Z6t(e,t=!1){if(typeof window>"u")return t;try{const r=localStorage.getItem(Xce(e));if(r==="true")return!0;if(r==="false")return!1}catch{}return t}function J6t(e,t){try{localStorage.setItem(Xce(e),String(t))}catch{}}function Q6t(e){return e?.closest("[data-page-columns-grid]")??null}function e8t(e){return e.getAttribute("data-page-columns-template")}function Zce(e,t,r){if(!e)return;const n=e8t(e);if(t&&e.querySelectorAll(":scope > [data-page-column]").length===2){e.style.gridTemplateColumns=`${r} minmax(0, 1fr)`;return}n?e.style.gridTemplateColumns=n:e.style.removeProperty("grid-template-columns")}const t8t="4rem",Jce="2.25rem";function r8t(e){if(typeof window>"u")return()=>{};const t=()=>e();window.addEventListener("popstate",t),window.addEventListener("hashchange",t);const r=history.pushState.bind(history),n=history.replaceState.bind(history);return history.pushState=(...o)=>{r(...o),t()},history.replaceState=(...o)=>{n(...o),t()},()=>{window.removeEventListener("popstate",t),window.removeEventListener("hashchange",t),history.pushState=r,history.replaceState=n}}function n8t(){return typeof window>"u"?"/":window.location.pathname}function o8t(){return k.useSyncExternalStore(r8t,n8t,()=>"/")}function a8t(e,t,r){return r?!0:e==="text_only"?!1:e==="text_with_icon"?!0:!!t.iconUrl?.trim()}function i8t(e,t,r,n){const o=t.find(a=>G6t(a,r));if(o)return o.id;if(n)return e.previewHighlightItemId&&t.some(a=>a.id===e.previewHighlightItemId)?e.previewHighlightItemId:t[0]?.id}function s8t(e){return{...e.backgroundColor?{"--iq-sidebar-nav-bg":e.backgroundColor}:{},...e.borderColor?{"--iq-sidebar-nav-border":e.borderColor}:{},...e.activeBackground?{"--iq-sidebar-nav-active-bg":e.activeBackground}:{},...e.activeTextColor?{"--iq-sidebar-nav-active-fg":e.activeTextColor}:{},...e.inactiveTextColor?{"--iq-sidebar-nav-muted":e.inactiveTextColor}:{},...e.hoverBackground?{"--iq-sidebar-nav-hover-bg":e.hoverBackground}:{}}}function l8t({item:e,hasIconUrl:t}){return t&&e.iconUrl?.trim()?f.jsx("img",{src:e.iconUrl,alt:e.iconAlt??"",className:"h-5 w-5 shrink-0 object-contain"}):f.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center text-[0.65rem] font-semibold uppercase leading-none",children:e.label.trim().charAt(0)||"•"})}function c8t({item:e,config:t,widgetId:r,active:n,collapsed:o}){const{context:a,dispatchAction:i,setContextValues:s,schema:l}=jt(),c=e.disabled===!0,u=a8t(t.displayMode??"auto",e,o),d=!c&&!!e.action,p=!!e.iconUrl?.trim(),y=t.iconSize??"1.25rem",m=()=>{!d||!e.action||wr(e.action,a,i,r,{setContextValues:s,dataApis:l.dataApis})},g=B("flex items-center rounded-md text-sm outline-none transition-colors",o?"mx-auto shrink-0 justify-center":"h-9 w-full min-w-0 gap-2 px-3 text-left",d&&"cursor-pointer",c&&"cursor-not-allowed opacity-50"),v=o?u?f.jsx(l8t,{item:e,hasIconUrl:p}):null:f.jsxs(f.Fragment,{children:[u?p?f.jsx("img",{src:e.iconUrl,alt:e.iconAlt??"",className:"shrink-0 object-contain",style:{width:y,height:y}}):f.jsx("span",{className:"shrink-0 rounded-sm bg-muted/80",style:{width:y,height:y},"aria-hidden":!0}):null,f.jsx("span",{className:"min-w-0 flex-1 truncate",children:e.label})]}),b={className:g,style:o?{width:Jce,height:Jce}:void 0,title:o?e.label:void 0,"aria-label":o?e.label:void 0,"data-sidebar-nav-item":!0,"data-active":n?"true":"false"};return d?f.jsx("button",{type:"button",...b,onClick:m,disabled:c,children:v}):f.jsx("div",{...b,children:v})}function d8t({widget:e}){const t=e.config,r=t.items??[],n=o8t(),{context:o}=jt(),a=o.pagePreviewMode===!0,i=i8t(t,r,n,a),s=t.showBorder!==!1,l=t.fillViewportHeight!==!1,c=t.bleedToPageEdge!==!1,u=t.collapsible!==!1,d=t.collapsedWidth??t8t,p=t.headerTitle?.trim(),y=t.headerSubtitle?.trim(),m=t.logoUrl?.trim(),g=!!(p||y||m),[v,b]=k.useState(null),[_,x]=k.useState(()=>u?Z6t(e.id,t.defaultCollapsed===!0):!1),w=Yce(v,l,[r.length,a,i,_,c]);k.useEffect(()=>{if(!u||!v)return;const M=Q6t(v);if(M)return Zce(M,_,d),()=>{Zce(M,!1,d)}},[u,_,d,v]);const S=()=>{u&&x(M=>{const P=!M;return J6t(e.id,P),P})};return f.jsxs("nav",{ref:b,className:B("iq-sidebar-nav flex min-w-0 flex-1 flex-col self-stretch text-sidebar-foreground transition-[width] duration-200 ease-in-out",_&&"items-center overflow-x-hidden",t.sticky&&"sticky top-0"),style:{width:_?"100%":t.width??"100%",maxWidth:_?d:void 0,backgroundColor:t.backgroundColor??R6t,...l&&w!=null?{height:w,minHeight:w}:{},...c?{marginLeft:"calc(-1 * var(--iq-page-padding-inline, 0px))",marginTop:"calc(-1 * var(--iq-page-padding-block, 0px))"}:{},...s?{borderRightWidth:"1px",borderRightStyle:"solid",borderColor:t.borderColor??Y6t}:{},...s8t(t)},"data-widget-id":e.id,"data-page-widget":"sidebar_nav","data-sidebar-nav-bordered":s||void 0,"data-sidebar-nav-collapsed":_||void 0,"data-sidebar-nav-bleed":c||void 0,"aria-label":"Sidebar navigation",children:[(u||g)&&f.jsxs("div",{"data-sidebar-nav-header":!0,className:B("flex shrink-0 items-center border-b",_?"justify-center px-2 py-2":"gap-2 px-3 py-3",u&&"cursor-pointer transition-colors hover:bg-accent/40"),onClick:u?S:void 0,onKeyDown:u?M=>{(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),S())}:void 0,role:u?"button":void 0,tabIndex:u?0:void 0,"aria-label":u?_?"Expand sidebar":"Collapse sidebar":void 0,children:[m&&!_?f.jsx("img",{src:m,alt:"",className:"h-8 w-8 shrink-0 rounded-md object-contain"}):null,!_&&g?f.jsxs("div",{className:"min-w-0 flex-1",children:[p?f.jsx("div",{className:"truncate text-sm font-semibold leading-tight",children:p}):null,y?f.jsx("div",{className:"truncate text-xs text-muted-foreground leading-tight",children:y}):null]}):null,u?f.jsx(aH,{className:B("h-4 w-4 shrink-0 text-muted-foreground transition-transform",_&&"rotate-180",!_&&!g&&"mr-auto")}):null]}),f.jsxs("div",{className:B("flex flex-1 flex-col gap-1 py-2",_?"px-1":"px-2",!_&&c&&!t.padding?.trim()&&"pl-[calc(var(--iq-page-padding-inline,1rem)+0.25rem)]"),style:t.padding?.trim()?{padding:t.padding}:void 0,children:[r.map(M=>f.jsx(c8t,{item:M,config:t,widgetId:`${e.id}-${M.id}`,active:M.id===i,collapsed:_},M.id)),r.length===0?f.jsx("p",{className:"px-2 text-xs text-muted-foreground",children:"Add navigation items in the inspector."}):null]})]})}const u8t="click";function Qce(e){if(!e)return!1;switch(e.type){case"emit":{const t=e.eventName?.trim()??"";return t.length>0&&t!==u8t}case"navigate":return!!e.href?.trim();case"navigate_page":return!!e.pageId?.trim();case"workflow":return!!e.workflowId?.trim();case"modal":return!!e.formId?.trim();case"api":return!!(e.api?.path?.trim()||e.dataSourceRef);case"set_context":return(e.mappings?.length??0)>0;default:return!1}}function f8t(e){return e.href?.trim()?!0:Qce(e.action)}function p8t(e){const t=e.href?.trim();if(t)return t;const r=e.action;if(r?.type==="navigate"&&r.href?.trim())return r.href.trim()}function h8t(e,t){return e.replace(/\{\{([^}]+)\}\}/g,(r,n)=>{const o=t[n.trim()];return o!=null?String(o):""})}function Zd(e){const t=e.split("?")[0]??e;return t.length>1&&t.endsWith("/")?t.slice(0,-1):t}function y8t(e,t){const r=Zd(e),n=Zd(t);if(!n||n==="/")return!1;if(r===n||r.endsWith(n))return!0;const o=n.split("/").filter(Boolean).pop(),a=r.split("/").filter(Boolean).pop();return!!(o&&a&&o===a)}function ede(e,t,r){let n,o=0;for(const a of e){const i=p8t(a);if(!i)continue;const s=h8t(i,t);if(!y8t(r,s))continue;const l=Zd(s).length;l>o&&(o=l,n=a.id)}return n}function m8t(e){return e.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"")}function tde(e,t){const r=t.trim().toLowerCase();if(r)for(const n of e){const o=n.href?.trim();if(o&&Zd(o).split("/").filter(Boolean).pop()?.toLowerCase()===r)return n.id;const a=n.routeSegment?.trim();if(a&&a.toLowerCase()===r)return n.id;const i=m8t(n.label);if(i===r||i.replace(/-/g,"")===r.replace(/-/g,"")||i&&r.endsWith(`-${i}`))return n.id}}function g8t(e,t,r,n){const o=t.attendanceLcncRouteSegment,a=typeof o=="string"?o:"",i=a?tde(e,a):void 0,s=ede(e,t,r);return i??s??n}function rde(e,t,r=0,n){for(const o of e){if(t(o,r,n)===!0)return;o.children?.length&&rde(o.children,t,r+1,o)}}function v8t(e,t){const r=[];return rde(e,n=>{n.type===t&&r.push(n)}),r}function nde(e,t){return e?.length?e.filter(r=>r.config.tabId===t):[]}function ode(e,t){return e.contentType==="page"&&e.pageId?.trim()||e.contentType==="form"&&e.formId?.trim()?!0:e.contentType==="widgets"?nde(t,e.id).length>0:!1}function b8t(e){return Zd(e).split("/").filter(Boolean)}function _8t(e,t,r){const n=ede(e,t,r);if(n)return e.find(a=>a.id===n);const o=b8t(r);for(let a=o.length-1;a>=0;a--){const i=tde(e,o[a]);if(i)return e.find(s=>s.id===i)}}function k8t(e,t,r){if(!e?.widgets?.length)return!1;const n=v8t(e.widgets,"tab_group");if(n.length===0)return!1;for(const o of n){const i=o.config.tabs??[];if(i.length===0)continue;const s=_8t(i,r,t);if(s&&!ode(s,o.children??[]))return!0}return!1}const S8t=1,ade={start:"justify-start",center:"justify-center",end:"justify-end",stretch:"justify-stretch"},ide={sm:"gap-2",md:"gap-4",lg:"gap-6"};function x8t(e){const t=e.variant??"underline",r=e.align??"start",n=e.gap??(t==="underline"?"lg":"md");return{variant:t,align:r,gap:n}}function w8t(e,t="start",r="md"){const n=ade[t]??ade.start,o=ide[r]??ide.md;switch(e){case"pills":return B("h-auto w-full rounded-none border-0 bg-transparent p-0",n,o);case"underline":return B("h-auto w-full rounded-none border-0 border-b border-border bg-transparent p-0",n,o);default:return B("mb-1 h-9",n,o)}}function M8t(e,t="start"){const r=t==="stretch"?"flex-1":"flex-none";switch(e){case"pills":return B(r,"h-8 rounded-full border-0 px-4 py-1.5 shadow-none","text-muted-foreground transition-colors duration-200","hover:bg-muted/60 hover:text-foreground","data-[state=active]:bg-primary data-[state=active]:text-primary-foreground","data-[state=active]:shadow-none data-[state=active]:hover:bg-primary/90");case"underline":return B(r,"h-auto -mb-px rounded-none border-0 border-b-2 border-transparent bg-transparent px-4 py-2.5 shadow-none","text-sm font-medium text-muted-foreground transition-colors duration-200","hover:bg-transparent hover:text-foreground","data-[state=active]:border-primary data-[state=active]:bg-transparent","data-[state=active]:text-primary data-[state=active]:shadow-none","data-[state=active]:hover:bg-transparent");default:return B(r,"px-3 py-1.5")}}function P8t(e,t,r){return e?new Set(r?[r]:[]):new Set(t.map(n=>n.id))}function O8t({tab:e,shouldRender:t,pageContext:r,clientId:n}){return t?e.formId?f.jsx(Ng,{formId:e.formId,mode:e.formMode??"fill",contextFieldMapping:e.contextFieldMapping,pageContext:r,clientId:n,scrollBehavior:e.scrollBehavior,maxHeightPercent:e.maxHeightPercent,showBorder:e.showBorder}):f.jsx("p",{className:"text-sm text-muted-foreground",children:"No form configured for this tab"}):null}function N8t({tab:e,shouldLoad:t,shouldRender:r,nestingDepth:n,pageContext:o,clientId:a,onAction:i,getWorkflowState:s}){const l=jt(),{data:c,isLoading:u,isError:d,error:p}=Pn.useQuery({queryKey:["tab-page",e.pageId,e.pageVersion,a],enabled:t&&!!e.pageId,queryFn:async()=>Hd(e.pageId,a,e.pageVersion)});return r?n>=S8t?f.jsx("div",{className:"rounded-md border border-destructive/50 bg-destructive/5 p-4 text-sm text-destructive",children:"Nested page tabs not supported"}):e.pageId?u?f.jsx(tn,{}):d?f.jsx("p",{className:"text-sm text-destructive",children:p instanceof Error?p.message:"Failed to load page"}):c?f.jsx(Qy,{page:c,context:o,nestingDepth:n+1,inheritContext:!0,onAction:i,getWorkflowState:s,parentContext:l,getAuthHeaders:l.getAuthHeaders,workflowModalHandlers:l.workflowModalHandlers}):null:f.jsx("p",{className:"text-sm text-muted-foreground",children:"No page configured for this tab"}):null}function j8t(e){return!!e.href?.trim()}function A8t({tab:e,widgetChildren:t,renderChildren:r}){const n=nde(t,e.id);return n.length===0?j8t(e)?null:f.jsx("p",{className:"py-4 text-sm text-muted-foreground",children:"No widgets in this tab"}):f.jsx(f.Fragment,{children:r?.(n)})}function T8t({widget:e,renderChildren:t}){const r=e.config,{context:n,clientId:o,nestingDepth:a,onAction:i,getWorkflowState:s,dispatchAction:l,setContextValues:c}=jt(),u=r.tabs??[],d=r.defaultTabId??u[0]?.id??"",p=typeof window<"u"?window.location.pathname:"",y=k.useMemo(()=>({...n}),[n]),m=k.useMemo(()=>g8t(u,y,p,d),[u,y,p,d]),g=r.lazyLoad!==!1,{variant:v,align:b,gap:_}=x8t(r),[x,w]=k.useState(m),[S,M]=k.useState(()=>P8t(g,u,m));k.useEffect(()=>{w(m),M(O=>O.has(m)?O:new Set(O).add(m))},[m]);const P=O=>{if(i){l({type:"navigate",href:O},e.id,"click");return}wr({type:"navigate",href:O},n,l,e.id)},N=O=>{const j=u.find(E=>E.id===O);if(j&&f8t(j))return;M(E=>new Set(E).add(O)),w(O);const z=j?.routeSegment?.trim();z&&c({attendanceLcncRouteSegment:z})},A=O=>{const j=O.action;if(j&&Qce(j)){wr(j,n,l,e.id);return}const z=O.href?.trim();z&&P(z)},C=k.useMemo(()=>!g,[g]);return u.length===0?f.jsx("p",{className:"text-sm text-muted-foreground","data-widget-id":e.id,children:"No tabs configured"}):f.jsxs(Kie,{value:x,onValueChange:N,className:"w-full","data-widget-id":e.id,"data-widget-type":"tab_group",children:[f.jsx(hg,{className:B("mb-4",w8t(v,b,_)),children:u.map(O=>f.jsx(yg,{value:O.id,disabled:O.disabled,className:M8t(v,b),onClick:()=>A(O),children:O.label},O.id))}),u.map(O=>{if(!ode(O,e.children??[]))return null;const j=S.has(O.id),z=C||j,E=C||j;return f.jsxs(Gie,{value:O.id,forceMount:C||void 0,className:B("mt-0 focus-visible:outline-none",C&&"data-[state=inactive]:hidden"),children:[O.contentType==="widgets"&&E&&f.jsx(A8t,{tab:O,widgetChildren:e.children??[],renderChildren:t}),O.contentType==="form"&&f.jsx(O8t,{tab:O,shouldRender:z,pageContext:n,clientId:o}),O.contentType==="page"&&f.jsx(N8t,{tab:O,shouldLoad:z,shouldRender:E,nestingDepth:a,pageContext:n,clientId:o,onAction:i,getWorkflowState:s})]},O.id)})]})}const Eo=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],C8t={id:"id",date:"date",dayOfWeek:"day_of_week",startTime:"start_time",endTime:"end_time",title:"title",subtitle:"subtitle",label:"label",color:"color"};function sde(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)?e:null}function E8t(e,t){if(e==null)return[];if(Array.isArray(e))return e;const r=[];t&&r.push(fe(e,t));const n=sde(e);if(n){r.push(n.slots,n.events,n.items,n.data);const o=sde(n.data);o&&r.push(o.slots,o.events,o.items)}for(const o of r)if(Array.isArray(o))return o;return[]}function lde(e){const r=String(e??"").trim().match(/^(\d{1,2}):(\d{2})/);return r?`${r[1].padStart(2,"0")}:${r[2]}`:"00:00"}function z8t(e){const t=e.match(/^(\d{4})-(\d{2})-(\d{2})/);if(!t)return null;const r=new Date(Number(t[1]),Number(t[2])-1,Number(t[3]));if(Number.isNaN(r.getTime()))return null;const n=r.getDay();return Eo[n===0?6:n-1]??null}function $8t(e){if(typeof e=="string"&&Eo.includes(e))return e;const t=Number(e);return Number.isInteger(t)&&t>=1&&t<=7?Eo[t-1]??null:Number.isInteger(t)&&t>=0&&t<=6?Eo[t===0?6:t-1]??null:null}function Ia(e,t,r){const n=t?.trim();if(n){const o=fe(e,n);if(o!=null&&o!=="")return o}if(r&&r!==n)return fe(e,r)}function I8t(e,t,r){const n={...C8t,...t},o=E8t(e,r),a=[];for(const i of o){if(!i||typeof i!="object")continue;const s=String(Ia(i,n.id,"id")??"").trim();if(!s)continue;const l=Ia(i,n.date,"date"),c=l!=null?String(l):void 0,u=(c?z8t(c):null)??$8t(Ia(i,n.dayOfWeek,"day_of_week"));if(!u)continue;const d=String(Ia(i,n.title,"title")??fe(i,"semesterSchedule.subjectActivity.course.name")??fe(i,"semesterSchedule.courseActivity.course.name")??"Event");a.push({id:s,day:u,date:c,fromTime:lde(Ia(i,n.startTime,"start_time")),toTime:lde(Ia(i,n.endTime,"end_time")),title:d,subtitle:gv(Ia(i,n.subtitle,"subtitle")??fe(i,"semesterSchedule.schedule.name")),label:gv(Ia(i,n.label,"label")??fe(i,"semesterSchedule.subjectActivity.activityType.name")),color:gv(Ia(i,n.color,"color")),raw:i})}return a}function gv(e){if(!(e==null||e===""))return String(e)}function $1(e=new Date){return Si(e,1)}function Si(e,t=1){const r=typeof e=="string"?so(e):new Date(e.getFullYear(),e.getMonth(),e.getDate()),n=r.getDay(),o=t===1?n===0?-6:1-n:-n;return r.setDate(r.getDate()+o),Ss(r)}function I1(e,t,r){return t&&e<t?t:r&&e>r?r:e}function F8t(e){return(e??"").trim().match(/^\{(?:ctx:)?([A-Za-z_][A-Za-z0-9_]*)\}$/)?.[1]}function Ss(e){const t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return`${t}-${r}-${n}`}function zo(e,t){const[r,n,o]=e.split("-").map(Number),a=new Date(r,(n??1)-1,o??1);return a.setDate(a.getDate()+t),Ss(a)}function D8t(e){const t=so(e),r=so(zo(e,6)),n=o=>o.toLocaleDateString(void 0,{month:"short",day:"numeric"});return`${n(t)} – ${n(r)}`}function L8t(e,t=7){const r=so(e),n=so(zo(e,Math.max(1,t)-1)),o=a=>a.toLocaleDateString(void 0,{month:"short",day:"numeric"});return`${o(r)} — ${o(n)}, ${n.getFullYear()}`}function so(e){const[t,r,n]=e.split("-").map(Number);return new Date(t,(r??1)-1,n??1)}function F1(e,t){const r=Eo.indexOf(t);return so(zo(e,r))}function cde(e,t){if(e.mode==="pageApi"&&e.dataSourceRef)return t?.[e.dataSourceRef]?.itemsPath;if(e.mode==="api")return e.api?.itemsPath}function dde(e,t,r){return e==null?[]:t.mode==="static"&&Array.isArray(e)?e.filter(n=>!!n&&typeof n=="object"):Array.isArray(e)?e.filter(n=>!!n&&typeof n=="object"):A1(e,r??"data")}function ude(e,t=0){const r=Number(e);return Number.isFinite(r)?r:t}function q8t(e,t){return e==null||e===""?t.fallback!==void 0&&t.fallback!==null?typeof t.fallback=="number"?t.fallback:String(t.fallback):"":typeof e=="number"&&Number.isFinite(e)?e:String(e)}function B8t(e,t,r){const o={[t.target?.trim()||"category"]:q8t(Ar(e,t),t)};for(const a of r){const i=a.target?.trim()||"value";o[i]=ude(Ar(e,a),0)}return o}function H8t(e,t,r,n){const o=r.xField??{target:"category",path:"category"},a=r.yFields??[];return a.length===0?[]:dde(e,t,n).map(s=>B8t(s,o,a))}function V8t(e,t,r,n){const o=String(Ar(e,t)??""),a=ude(Ar(e,r),0),i=n?Ar(e,n):void 0,s=i!=null&&String(i).trim()?String(i).trim():void 0;return{name:o,value:a,color:s}}function U8t(e,t){if(!t||t<=0||e.length<=t)return e;const r=[...e].sort((i,s)=>s.value-i.value),n=r.slice(0,t),a=r.slice(t).reduce((i,s)=>i+s.value,0);return a<=0?n:[...n,{name:"Other",value:a}]}function W8t(e,t,r,n){const o=r.labelField??{path:"label"},a=r.valueField??{path:"value"},s=dde(e,t,n).map(l=>V8t(l,o,a,r.colorField));return U8t(s,r.secondarySliceCount)}function K8t(e){return!!e?.includes("percent_stacked")}const G8t=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i,R8t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i,Y8t=/^rgba?\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)/i;function X8t(e){const t=e?.trim();if(!t)return null;const r=G8t.exec(t);if(r)return{r:parseInt(r[1]+r[1],16),g:parseInt(r[2]+r[2],16),b:parseInt(r[3]+r[3],16)};const n=R8t.exec(t);if(n)return{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)};const o=Y8t.exec(t);if(o){const[a,i,s]=[o[1],o[2],o[3]].map(l=>Math.min(255,Number(l)));return{r:a,g:i,b:s}}return null}function fde(e,t){const r=X8t(e);if(!r)return null;const{r:n,g:o,b:a}=r;return{backgroundColor:`rgba(${n}, ${o}, ${a}, ${t?.32:.16})`,borderLeftColor:`rgb(${n}, ${o}, ${a})`,boxShadow:t?`inset 0 0 0 1px rgb(${n}, ${o}, ${a})`:void 0}}const vv=64,pde=88,hde=96,yde=240,Z8t=4;function mde(e){let t=e.parentElement;for(;t&&t!==document.body&&t!==document.documentElement;){const r=window.getComputedStyle(t).overflowY;if(r==="auto"||r==="scroll"||r==="overlay")return t;t=t.parentElement}return document.documentElement}function fa(e){const[t,r]=e.split(":").map(Number);return(t??0)*60+(r??0)}function gde(e){const[t,r]=e.split(":").map(Number),n=((t??0)%24+24)%24,o=Number.isFinite(r)?r:0,a=n>=12?"PM":"AM";return`${n%12===0?12:n%12}:${String(o).padStart(2,"0")} ${a}`}function vde(e){return e===0||e===24?"12:00 AM":e===12?"12:00 PM":e>12?`${e-12}:00 PM`:`${e}:00 AM`}function bde(e){const t=new Map,r=[...e].sort((o,a)=>fa(o.fromTime)-fa(a.fromTime)),n=[];for(const o of r){const a=fa(o.fromTime),i=Math.max(a+15,fa(o.toTime));let s=!1;for(const l of n)if(l.some(u=>{const d=fa(u.fromTime),p=Math.max(d+15,fa(u.toTime));return a<p&&i>d})){l.push(o),s=!0;break}s||n.push([o])}for(const o of n){const a=o.length;o.forEach((i,s)=>{t.set(i.id,{col:s,cols:a})})}return t}function J8t({events:e,weekStartIso:t,orientation:r="time-rows",dayStartHour:n=8,dayEndHour:o=18,showCurrentTimeIndicator:a=!1,defaultEventColor:i,showEventHover:s=!1,maxHeightPercent:l,fitToViewport:c=!1,highlightCurrentDay:u=!0,selectedId:d,onEventClick:p}){const[y,m]=k.useState(()=>new Date),[g,v]=k.useState(null),b=k.useRef(null),[_,x]=k.useState(null);k.useEffect(()=>{if(!c||typeof window>"u"){x(null);return}const j=()=>{const q=b.current;if(!q)return;const D=mde(q),H=D===document.documentElement,I=H?0:D.getBoundingClientRect().top,L=H?0:parseFloat(window.getComputedStyle(D).paddingBottom)||0,V=(H?window.innerHeight:I+D.clientHeight)-L-q.getBoundingClientRect().top;x(Math.max(yde,Math.round(V)))};let z=0,E=0;const $=()=>{const q=b.current;if(!q)return;const D=mde(q),H=D.scrollHeight-D.clientHeight;H<=1||E>=Z8t||(E+=1,x(I=>Math.max(yde,(I??q.offsetHeight)-H)),z=window.requestAnimationFrame($))},F=()=>{E=0,j(),window.cancelAnimationFrame(z),z=window.requestAnimationFrame($)};return F(),window.addEventListener("resize",F),()=>{window.cancelAnimationFrame(z),window.removeEventListener("resize",F)}},[c,n,o,t]),k.useEffect(()=>{if(!a)return;const j=window.setInterval(()=>m(new Date),6e4);return()=>window.clearInterval(j)},[a]);const w=k.useMemo(()=>{const j=Math.max(0,Math.min(23,n)),z=Math.max(j+1,Math.min(24,o));return Array.from({length:z-j},(E,$)=>j+$)},[n,o]),S=(w[0]??8)*60,M=w.length*60,P=y.getHours()*60+y.getMinutes(),N=(P-S)/M*100,A=Eo.some(j=>F1(t,j).toDateString()===y.toDateString()),C=a&&A&&P>=S&&P<=S+M,O=k.useMemo(()=>{const j=new Map;for(const z of Eo)j.set(z,[]);for(const z of e)j.get(z.day)?.push(z);return j},[e]);return r==="days-rows"?f.jsxs("div",{ref:b,className:"overflow-auto rounded-md border bg-background",style:c?_?{maxHeight:_}:void 0:l?{maxHeight:`${l}vh`}:void 0,"data-testid":"week-grid","data-orientation":r,children:[f.jsxs("div",{className:"grid",style:{minWidth:112+w.length*hde,gridTemplateColumns:`112px repeat(${w.length}, minmax(${hde}px, 1fr))`,gridTemplateRows:`40px repeat(${Eo.length}, ${pde}px)`},children:[f.jsx("div",{className:"sticky left-0 top-0 z-40 border-b bg-background"}),w.map(j=>f.jsx("div",{className:"sticky top-0 z-30 border-b border-l bg-background px-1 py-3 text-center text-[10px] text-muted-foreground",children:vde(j)},j)),Eo.map((j,z)=>{const E=O.get(j)??[],$=bde(E),F=F1(t,j),q=u&&F.toDateString()===y.toDateString();return f.jsxs(k.Fragment,{children:[f.jsxs("div",{className:B("sticky left-0 z-30 border-b bg-background px-2 py-5 text-center text-xs",q&&"bg-muted font-semibold"),style:{gridColumn:1,gridRow:z+2},children:[f.jsx("span",{className:"uppercase tracking-wide text-muted-foreground",children:j})," ",f.jsx("span",{children:F.getDate()})]}),f.jsxs("div",{className:B("relative z-0 border-b",q&&"bg-muted/40"),style:{gridColumn:"2 / -1",gridRow:z+2},children:[f.jsx("div",{className:"pointer-events-none absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${w.length}, minmax(0, 1fr))`},"aria-hidden":"true",children:w.map(D=>f.jsx("div",{className:"border-l"},D))}),C&&f.jsx("div",{className:"pointer-events-none absolute bottom-0 top-0 z-20 border-l-2 border-red-500",style:{left:`${N}%`},"aria-hidden":"true"}),E.map(D=>{const H=Math.max(0,fa(D.fromTime)-S),I=Math.max(H+20,fa(D.toTime)-S),L=H/M*100,R=(I-H)/M*100,V=$.get(D.id)??{col:0,cols:1},G=pde/V.cols,Z=d===D.id,te=fde(D.color||i,Z);return f.jsxs("button",{type:"button",className:B("absolute z-0 overflow-hidden rounded-sm border-l-4 px-1 py-0.5 text-left text-[11px] leading-tight shadow-sm",te?"border-transparent transition-[filter] hover:brightness-95":Z?"border-primary bg-primary/20 ring-1 ring-primary":"border-primary/70 bg-primary/10 hover:bg-primary/20"),style:{left:`calc(${L}% + 2px)`,width:`calc(${R}% - 4px)`,top:V.col*G+2,height:Math.max(20,G-4),...te},onClick:()=>p?.(D),onMouseEnter:K=>{s&&v({event:D,rect:K.currentTarget.getBoundingClientRect()})},onMouseLeave:()=>{s&&v(null)},onFocus:K=>{s&&v({event:D,rect:K.currentTarget.getBoundingClientRect()})},onBlur:()=>{s&&v(null)},children:[f.jsx("div",{className:"truncate font-medium",children:D.title}),D.subtitle&&f.jsx("div",{className:"truncate text-muted-foreground",children:D.subtitle}),D.label&&f.jsx("div",{className:"truncate text-muted-foreground",children:D.label})]},D.id)})]})]},j)})]}),s&&g&&typeof document<"u"&&xf.createPortal(f.jsx(_de,{event:g.event,rect:g.rect}),document.body)]}):f.jsxs("div",{ref:b,className:"overflow-auto rounded-md border bg-background",style:c?_?{maxHeight:_}:void 0:l?{maxHeight:`${l}vh`}:void 0,"data-testid":"week-grid","data-orientation":r,children:[f.jsxs("div",{className:"grid min-w-[720px]",style:{gridTemplateColumns:"56px repeat(7, minmax(0, 1fr))"},children:[f.jsx("div",{className:"sticky top-0 z-30 border-b bg-background"}),Eo.map(j=>{const z=F1(t,j),E=u&&z.toDateString()===y.toDateString();return f.jsxs("div",{className:B("sticky top-0 z-30 border-b border-l bg-background px-1 py-2 text-center text-xs",E&&"bg-muted font-semibold"),children:[f.jsx("div",{className:"uppercase tracking-wide text-muted-foreground",children:j}),f.jsx("div",{children:z.getDate()})]},j)}),f.jsxs("div",{className:"relative z-0 bg-background",children:[w.map(j=>f.jsx("div",{className:"border-b bg-background pr-1 text-right text-[10px] text-muted-foreground",style:{height:vv},children:vde(j)},j)),C&&f.jsx("div",{className:"pointer-events-none absolute left-0 right-0 z-20 border-t-2 border-red-500",style:{top:`${N}%`},"aria-hidden":"true",children:f.jsx("span",{className:"absolute -right-1 -top-[5px] h-2 w-2 rounded-full bg-red-500"})})]}),Eo.map(j=>{const z=O.get(j)??[],E=bde(z),$=u&&F1(t,j).toDateString()===y.toDateString();return f.jsxs("div",{className:B("relative z-0 border-l",$&&"bg-muted/40"),style:{height:w.length*vv},children:[w.map(F=>f.jsx("div",{className:"border-b",style:{height:vv}},F)),C&&f.jsx("div",{className:"pointer-events-none absolute left-0 right-0 z-20 border-t-2 border-red-500",style:{top:`${N}%`},"aria-hidden":"true"}),z.map(F=>{const q=Math.max(0,fa(F.fromTime)-S),D=Math.max(q+20,fa(F.toTime)-S),H=q/M*100,I=(D-q)/M*100,L=E.get(F.id)??{col:0,cols:1},R=100/L.cols,V=R*L.col,G=d===F.id,Z=fde(F.color||i,G);return f.jsxs("button",{type:"button",className:B("absolute z-0 overflow-hidden rounded-sm border-l-4 px-1 py-0.5 text-left text-[11px] leading-tight shadow-sm",Z?"border-transparent transition-[filter] hover:brightness-95":G?"border-primary bg-primary/20 ring-1 ring-primary":"border-primary/70 bg-primary/10 hover:bg-primary/20"),style:{top:`${H}%`,height:`${I}%`,left:`calc(${V}% + 2px)`,width:`calc(${R}% - 4px)`,...Z},onClick:()=>p?.(F),onMouseEnter:te=>{s&&v({event:F,rect:te.currentTarget.getBoundingClientRect()})},onMouseLeave:()=>{s&&v(null)},onFocus:te=>{s&&v({event:F,rect:te.currentTarget.getBoundingClientRect()})},onBlur:()=>{s&&v(null)},children:[f.jsx("div",{className:"truncate font-medium",children:F.title}),F.subtitle&&f.jsx("div",{className:"truncate text-muted-foreground",children:F.subtitle}),F.label&&f.jsx("div",{className:"truncate text-muted-foreground",children:F.label})]},F.id)})]},j)})]}),s&&g&&typeof document<"u"&&xf.createPortal(f.jsx(_de,{event:g.event,rect:g.rect}),document.body)]})}function _de({event:e,rect:t}){const o=Math.min(Math.max(8,t.left),window.innerWidth-240-8),a=t.top-96-8,i=a>=8?a:Math.min(t.bottom+8,window.innerHeight-96-8);return f.jsxs("div",{role:"tooltip",className:"pointer-events-none fixed z-[80] max-w-[240px] rounded-md border bg-background px-3 py-2 text-left text-xs shadow-lg",style:{top:i,left:o,width:240},children:[f.jsx("div",{className:"font-semibold text-foreground",children:e.title}),e.subtitle&&f.jsx("div",{className:"mt-0.5 text-foreground",children:e.subtitle}),f.jsxs("div",{className:"mt-1 font-medium text-blue-600",children:[gde(e.fromTime)," – ",gde(e.toTime)]}),e.label&&f.jsx("div",{className:"mt-0.5 text-foreground",children:e.label})]})}function Q8t({widget:e}){const t=e.config,{context:r,dispatchAction:n,setContextValues:o,schema:a}=jt(),i=t.weekStartContextKey??"week_start",s=t.selectedContextKey??"selectedEventId",l=t.selectedPayloadContextKey??"selectedEvent",c=String(r[i]??"");k.useEffect(()=>{c||o({[i]:$1()})},[c,i,o]);const{data:u,isLoading:d,isError:p}=Tr({widgetId:e.id,dataSource:t.dataSource,enabled:!!c||t.dataSource.mode==="static"}),y=k.useMemo(()=>cde(t.dataSource,a.dataApis),[t.dataSource,a.dataApis]),m=I8t(u,t.eventMapping,y),g=r[s]!=null?String(r[s]):void 0,v=t.weekRangePosition??"left",b=t.navigationPosition??"right",_=t.navigationStyle??"text",x=t.defaultOrientation??"time-rows",[w,S]=k.useState(x);k.useEffect(()=>{S(x)},[x]);const M=O=>{const j=c||$1();o({[i]:zo(j,O)})},P=O=>{const j={id:O.id,date:O.date,day:O.day,fromTime:O.fromTime,toTime:O.toTime,title:O.title,subtitle:O.subtitle,label:O.label};o({[s]:O.id,[l]:j});const z=t.onEventClick;z&&wr(z,{...r,[s]:O.id,[l]:j},n,e.id,{setContextValues:o,payload:j,dataApis:a.dataApis})},N=f.jsx("div",{className:"text-sm font-medium",children:c?D8t(c):"This week"}),A=f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(st,{type:"button",variant:"outline",size:"sm","aria-label":"Previous week",onClick:()=>M(-7),children:_==="arrows"?f.jsx(si,{className:"h-4 w-4"}):"Prev"}),f.jsx(st,{type:"button",variant:"outline",size:"sm",onClick:()=>o({[i]:$1()}),children:"Today"}),f.jsx(st,{type:"button",variant:"outline",size:"sm","aria-label":"Next week",onClick:()=>M(7),children:_==="arrows"?f.jsx(Ln,{className:"h-4 w-4"}):"Next"})]}),C=t.showOrientationToggle?f.jsxs(st,{type:"button",variant:"outline",size:"sm","aria-label":`Switch to ${w==="time-rows"?"days":"time"} in rows`,title:`Current orientation: ${w==="time-rows"?"time":"days"} in rows`,onClick:()=>S(O=>O==="time-rows"?"days-rows":"time-rows"),children:[f.jsx(U0,{className:"mr-1 h-4 w-4"}),w==="time-rows"?"Time in rows":"Days in rows"]}):null;return f.jsxs("div",{className:"space-y-3","data-widget-id":e.id,"data-widget-type":"week_calendar",children:[((t.showWeekNav??!0)||t.showOrientationToggle)&&f.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[f.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[(t.showWeekNav??!0)&&v==="left"&&N,(t.showWeekNav??!0)&&b==="left"&&A]}),f.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-2",children:[(t.showWeekNav??!0)&&v==="right"&&N,(t.showWeekNav??!0)&&b==="right"&&A,C]})]}),d&&!u?f.jsx("div",{className:"flex justify-center py-12",children:f.jsx(tn,{})}):p?f.jsx("p",{className:"py-8 text-center text-sm text-destructive",children:"Failed to load calendar"}):f.jsx(J8t,{events:m,weekStartIso:c||$1(),orientation:w,dayStartHour:t.dayStartHour,dayEndHour:t.dayEndHour,showCurrentTimeIndicator:t.showCurrentTimeIndicator,defaultEventColor:t.defaultEventColor,showEventHover:t.showEventHover,maxHeightPercent:(t.scrollBehavior??"page")==="contained"?t.maxHeightPercent??75:void 0,fitToViewport:t.scrollBehavior==="fit",highlightCurrentDay:t.highlightCurrentDay,selectedId:g,onEventClick:P})]})}function eNt(e){let t=e;for(let r=0;r<6&&!(t==null||typeof t!="object"||Array.isArray(t));r+=1){const n=t;if("scheduled_class_slot"in n||"summary"in n||"students"in n)return t;const o=n.data;if(o==null||typeof o!="object"||Array.isArray(o))break;t=o}return e}function xs(e,t,r){if(!t)return r??"";const n=t.startsWith("data.")?[t,t.slice(5)]:[t];for(const o of n){const a=Ar(e,{path:o,fallback:r});if(!(a==null||a===""))return typeof a=="object"?r??"—":String(a)}return r??""}function tNt({widget:e}){const t=e.config,{context:r,dispatchAction:n,setContextValues:o,schema:a}=jt(),i=t.dataSource??{mode:"static",staticData:null,responseMapping:[]},s=_1(r,i.requireContextKeys),{data:l,isLoading:c,isError:u}=Tr({widgetId:e.id,dataSource:i,enabled:s&&i.mode!=="static"});if(!s)return f.jsxs("div",{className:"flex min-h-[240px] flex-col items-center justify-center gap-2 rounded-lg border bg-muted/20 p-6 text-center","data-widget-id":e.id,"data-widget-type":"detail_card",children:[f.jsx(qf,{className:"h-10 w-10 text-muted-foreground/60"}),f.jsx("p",{className:"font-medium",children:t.emptyTitle??"No selection"}),f.jsx("p",{className:"text-sm text-muted-foreground",children:t.emptyMessage??"Click an item to view details"})]});if(c)return f.jsx("div",{className:"flex min-h-[240px] items-center justify-center rounded-lg border","data-widget-id":e.id,children:f.jsx(tn,{})});if(u)return f.jsx("div",{className:"rounded-lg border p-4 text-sm text-destructive","data-widget-id":e.id,children:"Failed to load details"});const d=eNt(l),p=r.selectedEvent,y=p&&typeof p=="object"&&!Array.isArray(p)?p:null,m=xs(d,t.titlePath)||(y?.title!=null?String(y.title):"")||xs(d,"scheduled_class_slot.date")||"Session details",g=xs(d,t.subtitlePath)||(y?.subtitle!=null?String(y.subtitle):"")||xs(d,"scheduled_class_slot.start_time"),v=xs(d,t.statusPath),b=v?v.replace(/_/g," "):"",_=t.fields??[],x=t.badges??[],w=t.actions??[];return f.jsxs("div",{className:"space-y-4 rounded-lg border bg-card p-4","data-widget-id":e.id,"data-widget-type":"detail_card","data-page-widget":"detail_card",children:[f.jsxs("div",{className:"flex items-start justify-between gap-2",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-base font-semibold",children:m}),g?f.jsx("p",{className:"text-sm text-muted-foreground",children:g}):null]}),b?f.jsx("span",{className:"rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium capitalize text-primary",children:b}):null]}),x.length>0?f.jsx("div",{className:"flex flex-wrap gap-1.5",children:x.map(S=>{const M=S.label||xs(d,S.path);return M?f.jsx("span",{className:"rounded-full border bg-muted px-2 py-0.5 text-xs",children:M},S.id):null})}):null,_.length>0?f.jsx("dl",{className:"space-y-2 text-sm",children:_.map(S=>{const M=xs(d,S.path,S.fallback??"—");return f.jsxs("div",{className:"flex items-start justify-between gap-3",children:[f.jsx("dt",{className:"text-muted-foreground",children:S.label}),f.jsx("dd",{className:"text-right font-medium",children:M})]},S.id)})}):null,w.length>0?f.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:w.map(S=>f.jsx(st,{type:"button",variant:S.variant??"default",size:S.size??"default",onClick:()=>wr(S.action,r,n,e.id,{setContextValues:o,payload:typeof l=="object"&&l!=null?l:{data:l},dataApis:a.dataApis}),children:S.label},S.id))}):null]})}function rNt(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function Jd(e,t=""){return e==null||e===""?t:String(e)}function nNt(e,t){const r=t?fe(e,t):e;return Array.isArray(r)?r.map(n=>rNt(n)??{value:n}):[]}function oNt(e,t){const r=Jd(fe(e,t.idPath??"id"),Jd(e.id)),n=Jd(fe(e,t.titlePath??"title"),r),o=t.subtitlePath?fe(e,t.subtitlePath):void 0,a=(t.fields??[]).filter(i=>i.path).map(i=>({label:i.label||i.path,value:Jd(fe(e,i.path),i.fallback??"")}));return{id:r,title:n,subtitle:o==null||o===""?void 0:String(o),extras:a,raw:e}}function aNt(e,t){const r=t.groupField??"",n=t.leftValue??"",o=[],a=[];for(const i of e){const s=r?Jd(fe(i.raw,r)):"";r&&n&&s===n?o.push(i):a.push(i)}return{left:o,right:a}}function iNt(e){return e.map(t=>t.id).join("|")}function sNt(e,t,r){const n={};return r.leftContextKey&&(n[r.leftContextKey]=e.map(o=>o.raw)),r.rightContextKey&&(n[r.rightContextKey]=t.map(o=>o.raw)),r.leftIdsContextKey&&(n[r.leftIdsContextKey]=e.map(o=>o.id)),r.rightIdsContextKey&&(n[r.rightIdsContextKey]=t.map(o=>o.id)),n}const kde="application/x-page-dual-list-id";function Sde(e,t,r){const n=t.find(o=>o.id===e);return n?r.some(o=>o.id===e)?{from:t.filter(o=>o.id!==e),to:r}:{from:t.filter(o=>o.id!==e),to:[...r,n]}:{from:t,to:r}}function lNt({widget:e}){const t=e.config,{context:r,setContextValues:n}=jt(),o=_1(r,t.dataSource?.requireContextKeys),a=t.enableDrag!==!1,i=t.scrollBehavior??"page",[s,l]=k.useState(null),{data:c,isLoading:u,isError:d}=Tr({widgetId:e.id,dataSource:t.dataSource??{mode:"static",staticData:[]},enabled:o}),p=k.useMemo(()=>nNt(c,t.itemsPath).map(z=>oNt(z,t)),[c,t]),y=iNt(p),m=Yce(s,i==="fit",[y]),g=i==="fit"?m?{height:m}:void 0:i==="contained"?{height:`${t.maxHeightPercent??50}vh`}:void 0,[v,b]=k.useState([]),[_,x]=k.useState([]),[w,S]=k.useState(null);k.useEffect(()=>{const j=aNt(p,{groupField:t.groupField,leftValue:t.leftValue,rightValue:t.rightValue});b(j.left),x(j.right)},[y]);const M=k.useRef("");k.useEffect(()=>{const j=sNt(v,_,{leftContextKey:t.leftContextKey,rightContextKey:t.rightContextKey,leftIdsContextKey:t.leftIdsContextKey,rightIdsContextKey:t.rightIdsContextKey});if(Object.keys(j).length===0)return;const z=JSON.stringify(j);M.current!==z&&(M.current=z,n(j))},[v,_,t.leftContextKey,t.rightContextKey,t.leftIdsContextKey,t.rightIdsContextKey,n]);const P=k.useCallback((j,z)=>{if(z==="right"){const $=Sde(j,v,_);b($.from),x($.to);return}const E=Sde(j,_,v);x(E.from),b(E.to)},[v,_]),N=k.useCallback(j=>{if(j==="right"){x(z=>[...z,...v.filter(E=>!z.some($=>$.id===E.id))]),b([]);return}b(z=>[...z,..._.filter(E=>!z.some($=>$.id===E.id))]),x([])},[v,_]),A=(j,z)=>{if(z.preventDefault(),S(null),!a)return;const E=z.dataTransfer.getData(kde)||z.dataTransfer.getData("text/plain");E&&P(E,j)};if(!o)return f.jsx("div",{className:"rounded-lg border bg-muted/20 p-4 text-sm text-muted-foreground","data-widget-id":e.id,"data-widget-type":"dual_list",children:"Waiting for required context"});if(u)return f.jsx("div",{className:"flex min-h-[200px] items-center justify-center rounded-lg border","data-widget-id":e.id,children:f.jsx(tn,{})});if(d)return f.jsx("div",{className:"rounded-lg border p-4 text-sm text-destructive","data-widget-id":e.id,children:"Failed to load list"});const C=(j,z)=>f.jsxs("div",{className:"flex items-start gap-2 rounded-md border bg-background p-2",draggable:a?!0:void 0,onDragStart:E=>{a&&(E.dataTransfer.setData(kde,j.id),E.dataTransfer.setData("text/plain",j.id),E.dataTransfer.effectAllowed="move")},"data-dual-list-item":j.id,"data-dual-list-pane":z,children:[a&&f.jsx(N$,{className:"mt-0.5 h-4 w-4 shrink-0 text-muted-foreground","aria-hidden":!0}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("p",{className:"text-sm font-medium leading-tight",children:j.title}),j.subtitle&&f.jsx("p",{className:"text-xs text-muted-foreground",children:j.subtitle}),j.extras.map(E=>f.jsxs("p",{className:"text-[11px] text-muted-foreground",children:[E.label,": ",E.value]},E.label))]}),f.jsx(st,{type:"button",variant:"ghost",size:"sm",className:"h-7 shrink-0 px-2 text-xs",onClick:()=>P(j.id,z==="left"?"right":"left"),children:z==="left"?t.moveToRightLabel||"Move right":t.moveToLeftLabel||"Move left"})]},j.id),O=(j,z,E,$,F,q)=>f.jsxs("div",{className:`flex flex-col rounded-lg border bg-card p-3 ${g?"h-full min-h-0":"min-h-[220px]"} ${w===j?"ring-2 ring-primary/40":""}`,onDragOver:D=>{a&&(D.preventDefault(),S(j))},onDragLeave:()=>S(D=>D===j?null:D),onDrop:D=>A(j,D),"data-dual-list-pane-drop":j,children:[f.jsxs("div",{className:"mb-2 flex items-center justify-between gap-2",children:[f.jsxs("h3",{className:"text-sm font-semibold",children:[E," ",f.jsxs("span",{className:"text-muted-foreground",children:["(",z.length,")"]})]}),F&&z.length>0&&f.jsx(st,{type:"button",variant:"outline",size:"sm",className:"h-7 text-xs",onClick:()=>N(j==="left"?"right":"left"),children:q||"Move all"})]}),f.jsx("div",{className:"flex flex-1 flex-col gap-2 overflow-auto",children:z.length===0?f.jsx("p",{className:"py-6 text-center text-xs text-muted-foreground",children:$}):z.map(D=>C(D,j))})]});return f.jsxs("div",{className:"space-y-3","data-widget-id":e.id,"data-widget-type":"dual_list","data-enable-drag":a?"true":"false",children:[t.instruction&&f.jsx("p",{className:"text-sm text-muted-foreground",children:t.instruction}),f.jsxs("div",{ref:l,className:`grid gap-3 md:grid-cols-2 ${g?"min-h-0 overflow-hidden":""}`,style:g,"data-dual-list-scroll":i,children:[O("left",v,t.leftTitle||"Selected",t.leftEmptyMessage||"No items",t.showMoveAllRight,t.moveAllRightLabel),O("right",_,t.rightTitle||"Available",t.rightEmptyMessage||"No items",t.showMoveAllLeft,t.moveAllLeftLabel)]})]})}function cNt(e){return!e?.trim()}const dNt="calendarYear",uNt=1900,fNt=2100;function D1(e){if(typeof e=="number"&&Number.isFinite(e))return Math.trunc(e);const t=String(e??"").trim().match(/^(\d{1,4})/);if(!t)return null;const r=Number(t[1]);return Number.isNaN(r)?null:r}function Qd(e,t,r){return Math.min(r,Math.max(t,e))}function pNt({widget:e}){const t=e.config,{context:r,setContextValue:n}=jt(),o=t.contextKey?.trim()||dNt,a=t.minYear??uNt,i=t.maxYear??fNt,s=D1(t.initialYear!==void 0?jo(String(t.initialYear),r):void 0),l=D1(r[o]),c=Qd(l??s??new Date().getFullYear(),a,i),[u,d]=k.useState(!1),[p,y]=k.useState(String(c));k.useEffect(()=>{l===null&&n(o,c)},[o,l,n,c]);const m=g=>{n(o,Qd(g,a,i))};return f.jsxs("div",{className:"flex flex-wrap items-center gap-2","data-widget-id":e.id,children:[t.showLabel!==!1&&f.jsx("span",{className:"text-sm text-muted-foreground whitespace-nowrap",id:`${e.id}-year-label`,children:t.label?.trim()||"Academic year"}),f.jsxs("div",{className:"flex items-center rounded-md border bg-muted/50",role:"group","aria-labelledby":t.showLabel!==!1?`${e.id}-year-label`:void 0,children:[f.jsx("button",{type:"button",className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-l-md hover:bg-muted disabled:opacity-50","aria-label":"Previous year",disabled:c<=a,onClick:()=>m(c-1),children:f.jsx(si,{className:"h-4 w-4"})}),f.jsx("input",{type:"text",inputMode:"numeric",autoComplete:"off",maxLength:4,"aria-label":t.label?.trim()||"Academic year",className:B("h-8 w-[3.5rem] border-x bg-transparent px-1 text-center text-sm font-medium tabular-nums shadow-none","outline-none focus-visible:ring-0"),value:u?p:String(c),onFocus:()=>{d(!0),y(String(c))},onChange:g=>{y(g.target.value.replace(/\D/g,"").slice(0,4))},onBlur:()=>{d(!1);const g=D1(p);g!==null?m(g):y(String(c))},onKeyDown:g=>{g.key==="ArrowUp"||g.key==="ArrowRight"?(g.preventDefault(),m(c+1)):g.key==="ArrowDown"||g.key==="ArrowLeft"?(g.preventDefault(),m(c-1)):g.key==="Enter"&&g.currentTarget.blur()}}),f.jsx("button",{type:"button",className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-r-md hover:bg-muted disabled:opacity-50","aria-label":"Next year",disabled:c>=i,onClick:()=>m(c+1),children:f.jsx(Ln,{className:"h-4 w-4"})})]})]})}function Te(e,t){return t?fe(e,t):void 0}function gn(e){const t=String(e??"").match(/(?:T|\s|^)(\d{1,2}):(\d{2})/);return t?Number(t[1])*60+Number(t[2]):null}function Fa(e){const t=Math.floor(e/60),r=e%60;return`${String(t).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function Kl(e){return`${Fa(e)}:00`}function lo(e){if(e==null||e==="")return null;const t=Number(e);return Number.isFinite(t)?t:null}function L1(e){return Number.isInteger(e)?String(e):e.toFixed(1)}function xde(e,t){const r=gn(Te(e,t.start)),n=gn(Te(e,t.end));return r!=null&&n!=null&&n>r?(n-r)/60:1}function bv(e,t){return String(Te(e,t.match?.paletteField??t.fields.id)??"").trim()}function ws(e,t){const r=t.palette?.match?.itemField;if(r){const n=String(Te(e,r)??"").trim();if(n)return n}return String(Te(e,"course_activity_id")??Te(e,"subject_activity_id")??Te(e,t.fields.id)??"").trim()}function eu(e,t){return t.column?String(Te(e,t.column)??""):t.date?String(Te(e,t.date)??"").slice(0,10):""}function _v(e,t,r){const n=r.palette;if(!n)return 0;const o=bv(e,n);return o?t.reduce((a,i)=>ws(i,r)!==o?a:a+xde(i,r.fields),0):0}function hNt(e,t){return lo(Te(e,t.fields.weeklyHours))??lo(Te(e,"weekly_hours"))}function q1(e,t){return!!e.fields[t]?.trim()}function yNt(e,t){return q1(t,"totalHours")?lo(Te(e,t.fields.totalHours))??lo(Te(e,"total_hours"))??lo(Te(e,"hours")):null}function mNt(e,t,r){const n=r.palette;if(!n)return 0;const o=bv(e,n);return o?t.reduce((a,i)=>ws(i,r)!==o||!String(Te(i,r.fields.id)??i.id??"").startsWith("local-")?a:a+xde(i,r.fields),0):0}function gNt(e,t,r){const n=r.palette;if(!n)return 0;const o=_v(e,t,r),a=(q1(n,"scheduledHours")?lo(Te(e,n.fields.scheduledHours)):null)??(q1(n,"totalHours")?lo(Te(e,"scheduled_hours")):null);return o>0?o:a==null?0:a+mNt(e,t,r)}function vNt(e,t,r){return e.filter(n=>ws(n,t)===r).map(n=>{const o=eu(n,t.fields),a=Te(n,t.fields.start),i=Te(n,t.fields.end),s=lo(n.day_of_week)??(o?Nde(String(o).slice(0,10)):void 0),l={start_time:a,end_time:i};return o&&(l.date=String(o).slice(0,10)),s!=null&&(l.day_of_week=s),l})}function bNt(e,t,r){return e==null||t!==r}function wde(e,t,r){const n=r.palette;if(!n)return null;const o=yNt(e,n);if(o!=null){const s=gNt(e,t,r),l=q1(n,"remainingHours")?lo(Te(e,n.fields.remainingHours))??Math.max(0,o-s):Math.max(0,o-s);return{mode:"term",total:o,scheduled:s,remaining:l}}const a=hNt(e,n);if(a!=null){const s=_v(e,t,r);return{mode:"weekly",weekly:a,scheduled:s,remaining:Math.max(0,a-s)}}const i=lo(Te(e,n.fields.remainingHours))??lo(Te(e,"remaining_hours"));return i==null?null:{mode:"remaining",scheduled:_v(e,t,r),remaining:Math.max(0,i)}}function _Nt(e,t,r){const n=wde(e,t,r);return n?n.mode==="term"&&n.total!=null?[{kind:"total",text:`Total: ${L1(n.total)}h`},{kind:"remaining",text:`Remaining: ${n.remaining.toFixed(1)}h`},{kind:"scheduled",text:`Scheduled: ${n.scheduled.toFixed(1)}h`}]:n.mode==="weekly"&&n.weekly!=null?[{kind:"weekly",text:`Remaining: ${L1(n.remaining)}h / Weekly: ${L1(n.weekly)}h`}]:[{kind:"remaining",text:`Remaining: ${L1(n.remaining)}h`}]:null}function Mde(e){return e.map(t=>[t.id,t.course_activity_id??t.subject_activity_id,t.day_of_week??t.date,t.start_time??t.start,t.end_time??t.end].join(":")).join("|")}function kNt(e,t,r,n){const o=e.trim();if(!o)return;if(!o.includes(".")){n(o,t);return}const a=o.split(".")[0]??o;n(a,Pde({[a]:r[a]},o,t)[a])}function Pde(e,t,r){const n=t.indexOf(".");if(n===-1)return{...e,[t]:r};const o=t.slice(0,n),a=t.slice(n+1),i=e[o],s=i&&typeof i=="object"&&!Array.isArray(i)?i:{};return{...e,[o]:Pde(s,a,r)}}function SNt(e){return e.mode!=="context"?null:e.contextPath?.trim()||null}function Ode(e,t,r){if(t.date)return String(e.value).slice(0,10);const n=r.map(a=>Te(a,t.column)).find(a=>a!=null),o=Number(e.value);return Number.isFinite(o)?typeof n=="string"&&!/^-?\d+(\.\d+)?$/.test(n)||typeof n=="string"?String(e.value):o:e.value}function xNt(e,t,r,n){return e<n&&r<t}function kv(e){const{rows:t,config:r,activityId:n,columnValue:o,startMinutes:a,endMinutes:i,excludeId:s}=e;return!n||i<=a?!0:t.some(l=>{if(s&&String(Te(l,r.fields.id)??"")===s||ws(l,r)!==n||eu(l,r.fields)!==o)return!1;const c=gn(Te(l,r.fields.start)),u=gn(Te(l,r.fields.end));return c==null||u==null||u<=c?!1:xNt(a,i,c,u)})}function wNt(e){const{rows:t,dragged:r,targetColumn:n,targetStartMinutes:o,stepMinutes:a,config:i}=e,s=i.fields,l=String(n.value);if(r.source==="grid"){const M=String(Te(r.row,s.id)??""),P=gn(Te(r.row,s.start)),N=gn(Te(r.row,s.end)),A=P!=null&&N!=null&&N>P?N-P:a;if(eu(r.row,s)===l&&P===o)return{ok:!1,message:"",level:"info"};const C=ws(r.row,i);if(kv({rows:t,config:i,activityId:C,columnValue:l,startMinutes:o,endMinutes:o+A,excludeId:M}))return{ok:!1,message:"This activity already has another slot overlapping this time",level:"error"};const O=Ode(n,s,t),j=t.map(E=>{if(String(Te(E,s.id)??"")!==M)return E;const $={...E,[s.start]:Kl(o),[s.end]:Kl(o+A)};return s.column&&!s.column.includes(".")&&($[s.column]=O),s.date&&!s.date.includes(".")&&($[s.date]=String(n.value).slice(0,10)),$}),z=j.find(E=>String(Te(E,s.id)??"")===M)??j[0];return{ok:!0,rows:j,message:"Slot moved successfully",kind:"move",row:z??r.row}}const c=i.palette;if(!c)return{ok:!1,message:"No available items",level:"error"};const u=bv(r.row,c),d=a,p=d/60;if(t.some(M=>ws(M,i)===u&&eu(M,s)===l&&gn(Te(M,s.start))===o))return{ok:!1,message:"Slot already exists at this time",level:"info"};if(kv({rows:t,config:i,activityId:u,columnValue:l,startMinutes:o,endMinutes:o+d}))return{ok:!1,message:"This activity already has another slot overlapping this time",level:"error"};const m=wde(r.row,t,i);if(m?.mode==="term"){if(m.remaining<=0)return{ok:!1,message:"No remaining hours for this activity",level:"error"};if(m.remaining<p)return{ok:!1,message:`Only ${m.remaining} hour(s) remaining. Cannot add ${p} hour slot.`,level:"error"}}else if(m?.mode==="weekly"){const M=m.remaining;if(M<=0)return{ok:!1,message:"No remaining weekly hours for this activity",level:"error"};if(M<p)return{ok:!1,message:`Only ${M} weekly hour(s) remaining. Cannot add ${p} hour slot.`,level:"error"}}const g=Ode(n,s,t),v=s.id&&!s.id.includes(".")?s.id:"id",b=s.start&&!s.start.includes(".")?s.start:"start_time",_=s.end&&!s.end.includes(".")?s.end:"end_time",x=String(n.value).slice(0,10),w=`local-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,S={...ONt(r.row),id:w,course_activity_id:u,subject_activity_id:u,is_active:!0,sequence:t.length,day_of_week:Nde(x),[v]:w,[b]:Kl(o),[_]:Kl(o+d)};return s.column&&!s.column.includes(".")&&(S[s.column]=g),s.date&&!s.date.includes(".")&&(S[s.date]=x),{ok:!0,rows:[...t,S],message:"Slot added successfully",kind:"create",row:S}}function MNt(e){const{rows:t,row:r,startMinutes:n,endMinutes:o,config:a}=e,i=a.fields;if(o-n<15)return{ok:!1,message:"Class duration must be at least 15 minutes",level:"error"};const s=String(Te(r,i.id)??""),l=ws(r,a),c=eu(r,i);if(kv({rows:t,config:a,activityId:l,columnValue:c,startMinutes:n,endMinutes:o,excludeId:s}))return{ok:!1,message:"This activity already has another slot overlapping this time",level:"error"};const u=t.map(p=>String(Te(p,i.id)??"")!==s?p:{...p,[i.start&&!i.start.includes(".")?i.start:"start_time"]:Kl(n),[i.end&&!i.end.includes(".")?i.end:"end_time"]:Kl(o)}),d=u.find(p=>String(Te(p,i.id)??"")===s);return{ok:!0,rows:u,message:"Slot time updated",kind:"move",row:d??r}}function PNt(e,t,r){const n=String(Te(r,t.fields.id)??"");return e.filter(o=>String(Te(o,t.fields.id)??"")!==n)}function Nde(e){if(!/^\d{4}-\d{2}-\d{2}$/.test(e))return;const t=new Date(`${e}T12:00:00`);return Number.isNaN(t.getTime())?void 0:t.getDay()}function ONt(e){const t=new Set(["id","weekly_hours","hours","total_hours","remaining_hours","scheduled_hours"]),r={};for(const[i,s]of Object.entries(e))t.has(i)||(r[i]=s);const n=Te(e,"course.name")??Te(e,"subject.name"),o=Te(e,"course.code")??Te(e,"subject.code"),a=Te(e,"activityType.name");return r.subject_name==null&&n!=null&&(r.subject_name=n),r.subject_code==null&&o!=null&&(r.subject_code=o),r.activity_type==null&&a!=null&&(r.activity_type=a),r}const NNt=/^(.*\/api\/v1\/masters\/semester-schedules\/)([^/?#]+)(?:[?#].*)?$/;function Sv(e){const t=e.scheduledClassSlot&&typeof e.scheduledClassSlot=="object"?String(e.scheduledClassSlot.id??"").trim():"",r=e.scheduled_class_slot&&typeof e.scheduled_class_slot=="object"?String(e.scheduled_class_slot.id??"").trim():"";return[t,r,String(e.scheduled_class_slot_id??"").trim(),String(e._id??"").trim(),String(e.slot_id??"").trim()].find(o=>o&&!o.startsWith("local-"))??""}function jde(e){if(e.mode!=="api"||!e.api?.path)return null;const t=e.api.path.trim().match(NNt);if(!t)return null;const r=t[1],n=t[2],o=r.replace(/semester-schedules\/$/,""),a=e.api.headers,i=e.api.auth;return{create:{id:"semester-slot-create",name:"Save semester slots",enabled:!0,method:"PATCH",path:`${r}${n}/subject-activities/batch`,headers:a,auth:i,bodyFields:[{key:"tenant_id",value:"{tenantId}"},{key:"items",value:"{items}"}]},move:{id:"semester-slot-move",name:"Move semester slot",enabled:!0,method:"PATCH",path:`${o}semester-schedules/scheduled-class-slots/{slotId}`,headers:a,auth:i,bodyTemplate:{tenant_id:"{tenantId}",date:"{date}",day_of_week:"{day_of_week}",start_time:"{start_time}",end_time:"{end_time}"}},delete:{id:"semester-slot-delete",name:"Delete semester slot",enabled:!0,method:"DELETE",path:`${o}semester-schedules/scheduled-class-slots/{slotId}`,headers:a,auth:i,queryParams:[{key:"tenant_id",value:"{tenantId}"}]}}}function jNt(e,t){if(e.onItemDelete)return e.onItemDelete;const r=jde(e.dataSource);if(!(!r||!Sv(t)))return{type:"api",api:r.delete}}function ANt(e,t,r){if(t==="create"&&e.onItemCreate)return e.onItemCreate;if(t==="move"&&e.onItemMove)return e.onItemMove;const n=jde(e.dataSource);if(n)return t==="move"&&Sv(r)?{type:"api",api:n.move}:{type:"api",api:n.create}}function TNt(e){const t=String(e.row.course_activity_id??e.row.subject_activity_id??"").trim(),r=vNt(e.rows,e.config,t),n=String(e.targetColumn).slice(0,10),o=String(Te(e.row,e.config.fields.start)??e.targetStart),a=String(Te(e.row,e.config.fields.end)??""),i=lo(e.row.day_of_week)??(/^\d{4}-\d{2}-\d{2}$/.test(n)?new Date(`${n}T12:00:00`).getDay():void 0);return{item:e.row,rows:e.rows,targetColumn:e.targetColumn,targetStart:e.targetStart,course_activity_id:t,subject_activity_id:t,timetable_slots:r,items:[{course_activity_id:t,subject_activity_id:t,timetable_slots:r}],slotId:Sv(e.row),date:n,day_of_week:i,start_time:o,end_time:a}}function CNt(e){if(!e||typeof e!="object")return;const t=e,n=(t.data&&typeof t.data=="object"?t.data:t).results;if(!Array.isArray(n))return;const o=n.find(s=>s&&typeof s=="object"&&s.ok===!1);if(!o)return;const a=o.error?.explanation,i=Array.isArray(a)?a.join(". "):a;throw new Error(i||"Failed to save slot")}function ENt(e){return e?.type==="api"}const B1={mode:"static",staticData:[],responseMapping:[]};function Gl(e,t){if(Array.isArray(e))return e;if(!e||typeof e!="object")return[];const r=t.mode==="api"?t.api?.itemsPath:t.mode==="context"?t.contextPath:void 0;if(r?.trim())return Vd(e,r);for(const n of["data.items","data","items"]){const o=Vd(e,n);if(o.length)return o}return[]}function $o(e){const t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return`${t}-${r}-${n}`}function Wn(e){const t=String(e??"").trim();if(!t)return null;const r=new Date(t.length===10?`${t}T00:00:00`:t);return Number.isNaN(r.getTime())?null:r}function zNt(e,t){const r=e.map(n=>Wn(Te(n,t))).filter(n=>!!n).sort((n,o)=>n.getTime()-o.getTime());return r[0]?$o(r[0]):""}function Rl(e,t,r,n,o,a){e&&wr(e,{...a?.context??{},...n},o,t,{setContextValues:a?.setContextValues,payload:n})}const $Nt=Array.from({length:24},(e,t)=>String(t).padStart(2,"0")),INt=Array.from({length:60},(e,t)=>String(t).padStart(2,"0"));function Ade(e){return`${String(Math.floor(e/60)).padStart(2,"0")}:${String(e%60).padStart(2,"0")}`}function Tde(e){const t=e.trim().match(/^(\d{1,2}):(\d{2})$/);return t?Number(t[1])*60+Number(t[2]):null}function Cde({label:e,htmlFor:t,value:r,onChange:n}){const[o="09",a="00"]=r.split(":");return f.jsxs("div",{className:"grid gap-2",children:[f.jsx("label",{className:"text-sm font-semibold",htmlFor:t,children:e}),f.jsxs("div",{className:"flex items-center gap-2",id:t,children:[f.jsx("select",{"aria-label":`${e}, hour`,className:"h-11 min-w-0 flex-1 rounded-lg border border-input bg-background px-2 text-sm",value:o,onChange:i=>n(`${i.target.value}:${a}`),children:$Nt.map(i=>f.jsx("option",{value:i,children:i},i))}),f.jsx("span",{className:"shrink-0 text-sm font-semibold text-muted-foreground",children:":"}),f.jsx("select",{"aria-label":`${e}, minutes`,className:"h-11 min-w-0 flex-1 rounded-lg border border-input bg-background px-2 text-sm",value:a,onChange:i=>n(`${o}:${i.target.value}`),children:INt.map(i=>f.jsx("option",{value:i,children:i},i))})]})]})}function xv(e,t){return e?.trim()?jo(e,t).replace(/\{(?:ctx:)?([A-Za-z_][A-Za-z0-9_]*)\}/g,(o,a)=>{const i=t[a];return i!=null&&String(i).trim()!==""?String(i):""}).trim():""}function Ede(e,t){const{setContextValue:r,context:n}=jt(),[o,a]=k.useState(null),i=k.useMemo(()=>Mde(t),[t]),s=k.useRef(i);return k.useEffect(()=>{bNt(o,s.current,i)&&(a(t),s.current=i)},[o,i,t]),{rows:o??t,commitRows:c=>{a(c);const u=SNt(e);u&&kNt(u,c,n,r)}}}function FNt(e,t){const r=String(Te(e,t.title)??"").trim(),n=String(Te(e,"course.code")??Te(e,"subject.code")??"").trim();return n&&r&&r!==n&&!r.includes("—")&&!r.startsWith(`${n} `)?`${n} — ${r}`:r}function DNt(e,t){return String(Te(e,t.color)??Te(e,"color_code")??Te(e,"course.color_code")??"").trim()}function zde({widgetId:e,config:t,rows:r,columns:n,fields:o,paletteRows:a=[],onRowsChange:i,orientation:s="time-rows"}){const{context:l,dispatchAction:c,setContextValues:u,clientId:d}=jt(),p=Pn.useQueryClient(),y=Math.max(0,Math.min(23,t.startHour??8)),m=Math.max(y+1,Math.min(24,t.endHour??18)),g=t.stepMinutes??60,v=Array.from({length:Math.ceil((m-y)*60/g)},(L,R)=>y*60+R*g),[b,_]=k.useState(null),x=k.useRef(b);x.current=b;const[w,S]=k.useState(null),[M,P]=k.useState("09:00"),[N,A]=k.useState("10:00"),C=L=>o.column?String(Te(L,o.column)??""):o.date?String(Te(L,o.date)??"").slice(0,10):"",O=(L,R,V,G,Z,te,K)=>{i?.(V);const re=L==="delete"?jNt(t,G):ANt(t,L,G),Q=TNt({config:t,row:G,rows:V,targetColumn:te??C(G),targetStart:K??Fa(gn(Te(G,o.start))??0)});if(ENt(re)&&d){(async()=>{try{await bse({action:re,clientId:d,context:{...l,...Q},setContextValues:u,silent:!0,assertResponse:CNt,invalidateQueries:()=>p.invalidateQueries({queryKey:["page-ds"]})}),Qe.toast.success(Z)}catch(ee){i?.(R),Qe.toast.error(ee instanceof Error?ee.message:"Failed to save slot")}})();return}Qe.toast.success(Z),Rl(re,e,"change",Q,c,{context:l,setContextValues:u})},j=(L,R)=>r.filter(V=>{const G=gn(Te(V,o.start));return C(V)===String(L.value)&&G===R}),z=(L,R)=>{const V=j(L,R),G=t.blockedBands?.some(Z=>{const te=gn(Z.start),K=gn(Z.end);return te!=null&&K!=null&&R>=te&&R<K});return f.jsxs("div",{className:B("min-h-16 border-b border-r p-1.5",G&&"bg-muted/40"),onDragOver:t.allowDrag?Z=>{Z.preventDefault(),Z.dataTransfer.dropEffect="move"}:void 0,onDrop:t.allowDrag?Z=>{Z.preventDefault();const te=x.current;if(!te)return;const K=r,re=wNt({rows:r,dragged:te,targetColumn:L,targetStartMinutes:R,stepMinutes:g,config:t});if(!re.ok){re.message&&(re.level==="info"?Qe.toast.info(re.message):Qe.toast.error(re.message),Rl(t.onConflict,e,"change",{item:te.row,targetColumn:L.value,targetStart:Fa(R),message:re.message},c,{context:l,setContextValues:u})),_(null);return}O(re.kind,K,re.rows,re.row,re.message,L.value,Fa(R)),_(null)}:void 0,children:[G&&V.length===0&&f.jsx("span",{className:"text-[10px] text-muted-foreground",children:t.blockedBands?.find(Z=>{const te=gn(Z.start),K=gn(Z.end);return te!=null&&K!=null&&R>=te&&R<K})?.label??"Blocked"}),V.map((Z,te)=>{const K=t.palette?.match,re=K?a.find(oe=>Te(oe,K.paletteField)===Te(Z,K.itemField)):void 0,Q=re?{...re,...Z}:Z,ee=String(Te(Z,o.id)??te),J=String(Te(Q,o.color)??""),W=!!Te(Z,o.locked),ye=!!t.allowDrag&&!W;return f.jsxs("div",{role:"button",tabIndex:0,draggable:!!(t.allowDrag&&!W),onDragStart:oe=>{oe.dataTransfer.setData("text/plain",ee),oe.dataTransfer.effectAllowed="move",oe.dataTransfer.dropEffect="move",_({row:Z,source:"grid"})},onDragEnd:()=>_(null),onClick:()=>Rl(t.onItemClick,e,"click",{item:Z,paletteItem:re},c,{context:l,setContextValues:u}),className:B("relative mb-1 block w-full select-none rounded-md border p-2 pr-12 text-left text-xs shadow-sm",t.allowDrag&&!W?"cursor-move":"cursor-default",J?"text-white":"bg-background hover:bg-muted/30"),style:J?{backgroundColor:J,borderColor:J}:void 0,children:[ye&&f.jsxs("div",{className:"absolute right-1 top-1 z-10 flex gap-1",children:[f.jsx("button",{type:"button","aria-label":"Edit slot time",className:B("flex h-5 w-5 items-center justify-center rounded-full",J?"bg-white/20 text-white hover:bg-white/30":"bg-muted text-foreground hover:bg-muted/80"),onMouseDown:oe=>oe.stopPropagation(),onClick:oe=>{oe.stopPropagation();const ce=gn(Te(Z,o.start))??y*60,de=gn(Te(Z,o.end))??ce+g;P(Ade(ce)),A(Ade(de)),S(Z)},children:f.jsx(Hf,{className:"h-3 w-3"})}),f.jsx("button",{type:"button","aria-label":"Delete slot",className:B("flex h-5 w-5 items-center justify-center rounded-full",J?"bg-white/20 text-white hover:bg-white/30":"bg-muted text-foreground hover:bg-muted/80"),onMouseDown:oe=>oe.stopPropagation(),onClick:oe=>{oe.stopPropagation(),O("delete",r,PNt(r,t,Z),Z,"Slot removed")},children:f.jsx(wa,{className:"h-3 w-3"})})]}),t.itemTemplate?f.jsx("span",{className:"pointer-events-none block whitespace-pre-line",children:jo(t.itemTemplate,Q)}):f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"pointer-events-none block font-medium",children:String(Te(Q,o.title)??"")}),o.subtitle&&f.jsx("span",{className:B("pointer-events-none block",J?"text-white/90":"text-muted-foreground"),children:String(Te(Q,o.subtitle)??"")})]}),f.jsxs("span",{className:B("pointer-events-none block text-[10px]",J?"text-white/80":"text-muted-foreground"),children:[String(Te(Z,o.start)??""),"–",String(Te(Z,o.end)??"")]})]},ee)})]},`${L.id}-${R}`)},E=r.length===0?f.jsx("div",{className:"p-6 text-center text-sm text-muted-foreground",children:t.emptyMessage??"No items"}):null,$=f.jsxs("div",{className:"overflow-x-auto rounded-lg border","data-orientation":"time-rows",children:[f.jsxs("div",{className:"grid min-w-[720px]",style:{gridTemplateColumns:`76px repeat(${Math.max(n.length,1)}, minmax(140px, 1fr))`},children:[f.jsx("div",{className:"border-b border-r bg-muted/50 p-2 text-xs font-medium text-muted-foreground",children:"Time"}),n.map(L=>f.jsx("div",{className:"border-b border-r bg-muted/50 p-2 text-center text-sm font-medium",children:L.label},L.id)),v.flatMap(L=>[f.jsx("div",{className:"border-b border-r p-2 text-xs text-muted-foreground",children:Fa(L)},`time-${L}`),...n.map(R=>z(R,L))])]}),E]}),F=f.jsxs("div",{className:"overflow-x-auto rounded-lg border","data-orientation":"days-rows",children:[f.jsxs("div",{className:"grid min-w-[720px]",style:{gridTemplateColumns:`112px repeat(${Math.max(v.length,1)}, minmax(80px, 1fr))`},children:[f.jsx("div",{className:"border-b border-r bg-muted/50 p-2 text-xs font-medium text-muted-foreground",children:"Day"}),v.map(L=>f.jsx("div",{className:"border-b border-r bg-muted/50 p-2 text-center text-xs font-medium",children:Fa(L)},`hour-${L}`)),n.flatMap(L=>[f.jsx("div",{className:"border-b border-r bg-muted/30 p-2 text-sm font-medium",children:L.label},`day-${L.id}`),...v.map(R=>z(L,R))])]}),E]}),q=s==="days-rows"?F:$,D=()=>{if(!w)return;const L=Tde(M),R=Tde(N);if(L==null||R==null){Qe.toast.error("Please set both start and end time");return}if(R<=L){Qe.toast.error("End time must be after start time");return}if(L<y*60||R>m*60){Qe.toast.error(`Time must be within schedule hours (${Fa(y*60)} – ${Fa(m*60)})`);return}const V=MNt({rows:r,row:w,startMinutes:L,endMinutes:R,config:t});if(!V.ok){Qe.toast.error(V.message);return}O("move",r,V.rows,V.row,V.message,C(V.row),Fa(L)),S(null)},H=f.jsx(us,{open:!!w,onOpenChange:L=>!L&&S(null),children:f.jsxs(fs,{className:"sm:max-w-md",children:[f.jsxs(ps,{children:[f.jsx(hs,{children:"Change class time"}),f.jsx(Goe,{children:"Pick hour and minute for start and end. Dropdowns scroll inside this window so nothing covers the buttons."})]}),f.jsxs("div",{className:"grid gap-5 py-2",children:[f.jsx(Cde,{label:"Start time",htmlFor:"grid-edit-start",value:M,onChange:P}),f.jsx(Cde,{label:"End time",htmlFor:"grid-edit-end",value:N,onChange:A})]}),f.jsxs(g2,{className:"gap-2 sm:gap-0",children:[f.jsx(st,{type:"button",variant:"outline",onClick:()=>S(null),children:"Cancel"}),f.jsx(st,{type:"button",onClick:D,children:"Save"})]})]})});if(!t.palette)return f.jsxs("div",{"data-widget-id":e,children:[q,H]});const I=t.palette.fields;return f.jsxs("div",{className:"flex min-w-0 gap-3","data-widget-id":e,children:[f.jsxs("aside",{className:"w-80 shrink-0 overflow-y-auto rounded-lg border p-3",children:[f.jsx("h3",{className:"mb-1 text-sm font-medium",children:t.palette.title??"Items"}),f.jsx("p",{className:"mb-2 text-[11px] text-muted-foreground",children:I.totalHours?"Total hours for each course-activity mapping. Drag to the grid to add a slot.":"Drag to the grid or load master template."}),f.jsxs("div",{className:"space-y-2",children:[a.map((L,R)=>{const V=DNt(L,I),G=_Nt(L,r,t);return f.jsxs("div",{role:"button",tabIndex:0,draggable:!!t.allowDrag,onDragStart:Z=>{Z.dataTransfer.setData("text/plain",String(Te(L,I.id)??R)),Z.dataTransfer.effectAllowed="move",Z.dataTransfer.dropEffect="move",_({row:L,source:"palette"})},onDragEnd:()=>_(null),className:"block w-full cursor-move select-none rounded-md border bg-background p-3 text-left text-xs shadow-sm",style:V?{borderLeftColor:V,borderLeftWidth:4}:void 0,children:[f.jsx("span",{className:"pointer-events-none block font-medium",children:FNt(L,I)}),I.subtitle&&f.jsx("span",{className:"pointer-events-none mt-1 block text-muted-foreground",children:String(Te(L,I.subtitle)??"")}),G?.map((Z,te)=>f.jsx("span",{className:B("pointer-events-none block",te===0?"mt-1":"mt-0.5",Z.kind==="total"&&"font-semibold",Z.kind==="remaining"&&"font-bold text-muted-foreground",Z.kind==="scheduled"&&"font-bold text-muted-foreground/80",(Z.kind==="weekly"||Z.kind==="remaining"&&G.length===1)&&"text-muted-foreground font-normal"),children:Z.text},Z.kind))]},String(Te(L,I.id)??R))}),a.length===0&&f.jsx("p",{className:"text-xs text-muted-foreground",children:"No available items"})]})]}),f.jsx("div",{className:"min-w-0 flex-1",children:q}),H]})}function LNt({widget:e}){const t=e.config,{data:r,isLoading:n,isError:o}=Tr({widgetId:e.id,dataSource:t.dataSource}),a=Tr({widgetId:`${e.id}-palette`,dataSource:t.palette?.dataSource??B1,enabled:!!t.palette}),i=Gl(r,t.dataSource),{rows:s,commitRows:l}=Ede(t.dataSource,i),c=Gl(a.data,t.palette?.dataSource??B1);return n||t.palette&&a.isLoading?f.jsx("div",{className:"p-6 text-center text-sm text-muted-foreground",children:"Loading…"}):o||a.isError?f.jsx("div",{className:"p-6 text-center text-sm text-destructive",children:"Failed to load data"}):f.jsx(zde,{widgetId:e.id,config:t,rows:s,columns:t.columns??[],fields:t.fields,paletteRows:c,onRowsChange:l})}function qNt(e,t,r){if(t.columns?.length)return t.columns;const n=Math.max(1,Math.min(31,t.visibleDateCount??7)),o=Wn(t.startDate),a=e.map(l=>Wn(Te(l,t.fields.date))).filter(l=>!!l).sort((l,c)=>l.getTime()-c.getTime()),i=o??a[0]??new Date,s=new Date(i);return s.setDate(i.getDate()+r),Array.from({length:n},(l,c)=>{const u=new Date(s);return u.setDate(s.getDate()+c),{id:$o(u),value:$o(u),label:u.toLocaleDateString(void 0,{weekday:"short",month:"short",day:"numeric"})}})}function BNt(e){return e==="time-rows"||e==="days-rows"?e:null}function HNt({widget:e}){const t=e.config,{context:r,setContextValue:n}=jt(),o=t.startDateContextKey?.trim()||F8t(t.startDate),a=t.weekStartsOn===0?0:1,i=xv(t.minDate,r),s=xv(t.maxDate,r),l=o?String(r[o]??"").trim():"",c=xv(t.startDate,r),u=/^\d{4}-\d{2}-\d{2}$/.test(l)?l:/^\d{4}-\d{2}-\d{2}$/.test(c)?c:"",d=u?I1(o?Si(u,a):u,/^\d{4}-\d{2}-\d{2}$/.test(i)?i:void 0,/^\d{4}-\d{2}-\d{2}$/.test(s)?s:void 0):void 0,p={...t,startDate:d,minDate:i||void 0,maxDate:s||void 0},[y,m]=k.useState(0),g=k.useRef(l);k.useEffect(()=>{!o||g.current===l||(g.current=l,m(0))},[o,l]);const{data:v,isLoading:b,isError:_}=Tr({widgetId:e.id,dataSource:t.dataSource}),x=Tr({widgetId:`${e.id}-palette`,dataSource:t.palette?.dataSource??B1,enabled:!!t.palette}),w=Gl(v,t.dataSource),S=Mde(w),M=t.seedWeekStartFromEarliestRow??cNt(t.startDateContextKey),P=t.orientationContextKey?.trim()??"",N=P?BNt(r[P]):null,A=t.defaultOrientation??"time-rows",[C,O]=k.useState(()=>N??A);k.useEffect(()=>{O(A)},[A]),k.useEffect(()=>{N&&O(N)},[N]);const j=()=>{const K=C==="time-rows"?"days-rows":"time-rows";O(K),P&&n(P,K)};k.useEffect(()=>{if(!o||u||b)return;const K=M?zNt(w,t.fields.date):"";n(o,Si(K||Ss(new Date),a))},[o,u,b,S,t.fields.date,n,a,M]);const{rows:z,commitRows:E}=Ede(t.dataSource,w),$=Gl(x.data,t.palette?.dataSource??B1),F=k.useMemo(()=>qNt(z,p,o?0:y),[z,p,o,y]),q=Math.max(1,Math.min(31,t.visibleDateCount??7)),D=F[F.length-1],H=F[0]?.value?Wn(F[0].value):null,I=D?.value?Wn(D.value):null,L=Wn(p.minDate),R=Wn(p.maxDate),V=!L||!H||H.getTime()>L.getTime(),G=!R||!I||I.getTime()<R.getTime(),Z=K=>{if(o&&d){n(o,I1(zo(d,K),/^\d{4}-\d{2}-\d{2}$/.test(i)?i:void 0,/^\d{4}-\d{2}-\d{2}$/.test(s)?s:void 0));return}m(re=>re+K)};if(b||t.palette&&x.isLoading)return f.jsx("div",{className:"p-6 text-center text-sm text-muted-foreground",children:"Loading…"});if(_||x.isError)return f.jsx("div",{className:"p-6 text-center text-sm text-destructive",children:"Failed to load data"});const te=t.showOrientationToggle?f.jsxs(st,{type:"button",variant:"outline",size:"sm","aria-label":`Switch to ${C==="time-rows"?"days":"time"} in rows`,title:`Current orientation: ${C==="time-rows"?"time":"days"} in rows`,onClick:j,children:[f.jsx(U0,{className:"mr-1 h-4 w-4"}),C==="days-rows"?"Time in rows":"Days in rows"]}):null;return f.jsxs("div",{className:"space-y-2","data-widget-id":e.id,"data-widget-type":"date_time_grid",children:[(t.showNavigation!==!1||te)&&f.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[t.showNavigation!==!1?f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("button",{type:"button",className:"rounded border px-2 py-1 text-xs disabled:opacity-50",disabled:!V,onClick:()=>Z(-q),children:"Previous"}),f.jsxs("span",{className:"text-xs text-muted-foreground",children:[F[0]?.label??""," – ",D?.label??""]}),f.jsx("button",{type:"button",className:"rounded border px-2 py-1 text-xs disabled:opacity-50",disabled:!G,onClick:()=>Z(q),children:"Next"})]}):f.jsx("span",{}),te]}),f.jsx(zde,{widgetId:e.id,config:p,rows:z,columns:F,fields:t.fields,paletteRows:$,onRowsChange:E,orientation:C})]})}function $de(e,t,r=7){if(!t)return!1;const n=zo(t,Math.max(1,r)-1);return e>=t&&e<=n}function Ide(e,t){const r=new Date(e.getFullYear(),e.getMonth(),1),n=(r.getDay()-t+7)%7,o=new Date(r);return o.setDate(r.getDate()-n),Array.from({length:42},(a,i)=>{const s=new Date(o);return s.setDate(o.getDate()+i),s})}function VNt({widget:e}){const t=e.config,{context:r,dispatchAction:n,setContextValue:o,setContextValues:a}=jt(),i=t.weekStartContextKey?.trim(),s=i?String(r[i]??"").trim():"",l=t.weekStartsOn??1,c=Wn(t.initialDate?jo(t.initialDate,r):void 0)??new Date,[u,d]=k.useState(new Date(c.getFullYear(),c.getMonth(),1)),{data:p,isLoading:y,isError:m}=Tr({widgetId:e.id,dataSource:t.dataSource}),g=Gl(p,t.dataSource),v=Ide(u,l),b=l===1?["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],_=x=>g.filter(w=>{const S=Wn(Te(w,t.fields.startDate)),M=Wn(Te(w,t.fields.endDate))??S;if(!S||!M)return!1;const P=new Date(x.getFullYear(),x.getMonth(),x.getDate()).getTime(),N=new Date(S.getFullYear(),S.getMonth(),S.getDate()).getTime(),A=new Date(M.getFullYear(),M.getMonth(),M.getDate()).getTime();return P>=N&&P<=A});return f.jsxs("div",{className:"rounded-lg border","data-widget-id":e.id,children:[f.jsxs("div",{className:"flex items-center justify-between border-b p-3",children:[f.jsx("button",{type:"button",className:"rounded p-1 hover:bg-muted","aria-label":"Previous month",onClick:()=>d(new Date(u.getFullYear(),u.getMonth()-1,1)),children:f.jsx(si,{className:"h-4 w-4"})}),f.jsx("strong",{children:u.toLocaleDateString(void 0,{month:"long",year:"numeric"})}),f.jsx("button",{type:"button",className:"rounded p-1 hover:bg-muted","aria-label":"Next month",onClick:()=>d(new Date(u.getFullYear(),u.getMonth()+1,1)),children:f.jsx(Ln,{className:"h-4 w-4"})})]}),f.jsxs("div",{className:"grid grid-cols-7",children:[b.map(x=>f.jsx("div",{className:"border-b border-r p-2 text-center text-xs font-medium text-muted-foreground",children:x},x)),v.map(x=>{const w=_(x),S=w.slice(0,t.maxEventsPerDay??3);return f.jsxs("div",{role:"button",tabIndex:0,className:B("min-h-24 border-b border-r p-1.5 text-xs",x.getMonth()!==u.getMonth()&&"bg-muted/20 text-muted-foreground",$de($o(x),s)&&"bg-primary/10"),onClick:()=>{const M=$o(x),P=Si(M,l);i&&o(i,P),Rl(t.onDateClick,e.id,"click",{date:M,weekStart:P},n,{context:r,setContextValues:a})},onKeyDown:M=>{(M.key==="Enter"||M.key===" ")&&M.currentTarget.click()},children:[f.jsx("span",{className:"font-medium",children:x.getDate()}),f.jsxs("div",{className:"mt-1 space-y-1",children:[S.map((M,P)=>{const N=String(Te(M,t.fields.color)??"");return f.jsx("button",{type:"button",className:"block w-full truncate rounded bg-primary/10 px-1.5 py-1 text-left",style:N?{borderLeft:`3px solid ${N}`}:void 0,onClick:A=>{A.stopPropagation(),Rl(t.onEventClick,e.id,"click",{item:M},n,{context:r,setContextValues:a})},children:String(Te(M,t.fields.title)??"")},String(Te(M,t.fields.id)??P))}),w.length>S.length&&f.jsxs("span",{className:"text-[10px] text-muted-foreground",children:["+",w.length-S.length," more"]})]})]},$o(x))})]}),!y&&!m&&g.length===0&&f.jsx("div",{className:"p-4 text-center text-sm text-muted-foreground",children:t.emptyMessage??"No events"}),y&&f.jsx("div",{className:"p-4 text-center text-sm text-muted-foreground",children:"Loading…"}),m&&f.jsx("div",{className:"p-4 text-center text-sm text-destructive",children:"Failed to load data"})]})}const Fde=[{value:"holiday",label:"Holiday",color:"#dc2626"},{value:"exam",label:"Exam",color:"#2563eb"}];function UNt(e,t){const r=t.legend?.length?t.legend:Fde,n=t.fields.category??"type";for(const a of r)if(e.some(s=>{const l=String(Te(s,n)??"").trim().toLowerCase();if(l&&l===a.value.trim().toLowerCase())return!0;const c=String(Te(s,t.fields.color)??"").trim().toLowerCase();return!!(c&&c===a.value.trim().toLowerCase())}))return a.color;return e.map(a=>String(Te(a,t.fields.color)??"").trim()).find(a=>a.startsWith("#")||a.startsWith("rgb"))}function WNt({widget:e}){const t=e.config,{context:r,dispatchAction:n,setContextValue:o,setContextValues:a}=jt(),i=t.weekStartContextKey?.trim(),s=i?String(r[i]??"").trim():"",l=t.yearContextKey?.trim()||"calendarYear",c=Wn(t.initialDate?jo(t.initialDate,r):void 0)??new Date,u=t.minYear??2e3,d=t.maxYear??2100,p=D1(r[l]),[y,m]=k.useState(()=>Qd(p??c.getFullYear(),u,d)),g=Qd(p??y,u,d),v=t.showYearNavigation??p===null,b=j=>{const z=Qd(j,u,d);m(z),o(l,z)},{data:_,isLoading:x,isError:w}=Tr({widgetId:e.id,dataSource:t.dataSource}),S=Gl(_,t.dataSource),M=t.weekStartsOn??0,P=M===1?["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],N=t.legend?.length?t.legend:Fde,A=$o(new Date),C=Array.from({length:12},(j,z)=>new Date(g,z,1)),O=j=>S.filter(z=>{const E=Wn(Te(z,t.fields.startDate)),$=Wn(Te(z,t.fields.endDate))??E;if(!E||!$)return!1;const F=new Date(j.getFullYear(),j.getMonth(),j.getDate()).getTime(),q=new Date(E.getFullYear(),E.getMonth(),E.getDate()).getTime(),D=new Date($.getFullYear(),$.getMonth(),$.getDate()).getTime();return F>=q&&F<=D});return f.jsxs("div",{className:"rounded-xl border bg-card shadow-sm","data-widget-id":e.id,children:[f.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 border-b bg-muted/40 px-4 py-2.5",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[v&&f.jsx("button",{type:"button",className:"rounded p-1 hover:bg-muted disabled:opacity-50","aria-label":"Previous year",disabled:g<=u,onClick:()=>b(g-1),children:f.jsx(si,{className:"h-4 w-4"})}),f.jsxs("strong",{className:"text-sm tracking-tight",children:["Calendar – ",g]}),v&&f.jsx("button",{type:"button",className:"rounded p-1 hover:bg-muted disabled:opacity-50","aria-label":"Next year",disabled:g>=d,onClick:()=>b(g+1),children:f.jsx(Ln,{className:"h-4 w-4"})})]}),f.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-xs text-muted-foreground",children:[N.map(j=>f.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[f.jsx("span",{className:"size-2.5 shrink-0 rounded-full ring-1 ring-black/10",style:{backgroundColor:j.color},"aria-hidden":!0}),j.label]},j.value)),t.showTodayLegend!==!1&&f.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[f.jsx("span",{className:"size-2.5 shrink-0 rounded-full bg-primary ring-1 ring-primary/40","aria-hidden":!0}),"Today"]})]})]}),f.jsx("div",{className:"grid w-full grid-cols-[repeat(auto-fill,minmax(min(100%,16rem),1fr))] gap-4 p-4",children:C.map(j=>{const z=Ide(j,M);return f.jsxs("div",{className:"flex min-w-0 flex-col rounded-xl border border-border/70 bg-gradient-to-b from-card to-muted/20 p-3 shadow-sm",children:[f.jsx("div",{className:"mb-2.5 text-center text-sm font-semibold tracking-tight",children:j.toLocaleDateString(void 0,{month:"long",year:"numeric"})}),f.jsxs("div",{className:"grid grid-cols-7",children:[P.map(E=>f.jsx("div",{className:"pb-1.5 text-center text-[0.65rem] font-medium uppercase leading-none text-muted-foreground",children:E.slice(0,3)},`${j.getTime()}-${E}`)),z.map(E=>{const $=O(E),F=UNt($,t),q=$o(E)===A,D=E.getMonth()===j.getMonth();return f.jsx("button",{type:"button",className:B("mx-auto flex aspect-square w-full max-w-[2.25rem] items-center justify-center rounded-md text-[0.7rem] font-medium tabular-nums",!D&&"text-muted-foreground/45",q&&!F&&"bg-primary text-primary-foreground",$de($o(E),s)&&!F&&"ring-1 ring-primary/50 bg-primary/15"),style:F?{backgroundColor:F,color:"#fff"}:void 0,onClick:()=>{const H=$o(E),I=Si(H,M);i&&o(i,I),Rl(t.onDateClick,e.id,"click",{date:H,weekStart:I,year:g,events:$},n,{context:r,setContextValues:a})},children:E.getDate()},$o(E))})]})]},j.getTime())})}),x&&f.jsx("div",{className:"p-4 text-center text-sm text-muted-foreground",children:"Loading…"}),w&&f.jsx("div",{className:"p-4 text-center text-sm text-destructive",children:"Failed to load data"})]})}function KNt(e,t,r){return t.length===0?e:e.filter(n=>t.every(o=>{const a=r[o.id]??o.defaultValue??"";if(!String(a).trim())return!0;const i=n[o.paramKey];return String(i??"")===String(a)}))}function GNt(e,t,r){return bce(e,t,r)}function RNt(e,t){let r=e;return t.staticMode&&t.toolbarFilters.length>0&&(r=KNt(r,t.toolbarFilters,t.filterValues)),t.searchEnabled&&t.staticMode&&t.search.trim()&&(r=_ce(r,t.search,t.searchFields,t.searchField||void 0)),r}function YNt(e,t,r){const n=(t-1)*r;return e.slice(n,n+r)}const Dde={mode:"static",staticData:[],responseMapping:[]};function XNt(e,t){const r=e.optionsDataSource;if(r){if(r.mode==="api")return r.api;if(r.mode==="pageApi"&&r.dataSourceRef)return t[r.dataSourceRef]}}function Lde(e,t){if(Array.isArray(e))return e;if(!e||typeof e!="object")return[];const n=[t.mode==="api"?t.api?.itemsPath:void 0,"data.items","data","items"].filter(Boolean);for(const o of n){const a=fe(e,o);if(Array.isArray(a))return a}return[]}function ZNt(){return"h-9 w-full min-w-[11rem] rounded border border-input bg-background px-2 text-sm"}function H1(e){return e.editor==="textarea"}function JNt(e){return H1(e)?"flex w-full items-start py-0.5":B("flex w-full min-h-9 items-center",e.align==="center"&&"justify-center text-center",e.align==="right"&&"justify-end text-right")}function qde(e){return{id:e.id,header:e.header,field:e.field,cellType:e.cellType,cellAppearance:e.cellAppearance,align:e.align}}function Bde(e){if(e==null||e==="")return"—";if(Array.isArray(e)){const t=e.map(r=>String(r??"").trim()).filter(Boolean);return t.length>0?t.join(", "):"—"}return String(e)}function QNt(e){if(e==null||e==="")return"";const t=Bde(e);return t==="—"||t.trim()===""?"":t}function e7t({column:e,value:t,row:r}){const n=Bde(t),o=e.subtitleField?.trim(),a=o&&r?QNt(fe(r,o)):"";if(o&&a){const s=e.primaryBold!==!1,l=lv(qde(e),n),c=n==="—"||n.trim()==="";return f.jsxs("div",{className:"max-w-[240px] whitespace-normal text-sm leading-snug",children:[c?null:f.jsx("div",{className:B(s?"font-bold text-foreground":"text-foreground",!s&&l.asPill&&"inline-flex items-center capitalize",!s&&l.className),style:s?void 0:l.style,children:n}),f.jsx("div",{className:B("font-normal text-muted-foreground",!c&&"mt-0.5 text-[11px] leading-snug"),children:a})]})}const i=lv(qde(e),n);return f.jsx("span",{className:B("text-sm leading-none",i.asPill&&"inline-flex items-center capitalize",i.className),style:i.style,children:n})}function t7t({label:e,options:t,value:r,placeholder:n,isLoading:o,disabled:a,onChange:i}){const[s,l]=k.useState(!1),[c,u]=k.useState(""),d=!r.trim(),p=d?n??"Select…":t.find(m=>m.value===r)?.label??r,y=k.useMemo(()=>{const m=c.trim().toLowerCase();return m?t.filter(g=>g.label.toLowerCase().includes(m)||g.value.toLowerCase().includes(m)):t},[t,c]);return f.jsxs(yi,{open:s,onOpenChange:m=>{a||(l(m),m&&u(""))},children:[f.jsx(cs,{asChild:!0,children:f.jsxs(st,{type:"button",variant:"outline",role:"combobox","aria-expanded":s,"aria-haspopup":"listbox","aria-label":e,disabled:a||o,className:B("h-9 w-full min-w-[11rem] justify-between px-2 font-normal",d&&"text-muted-foreground"),children:[f.jsx("span",{className:"truncate text-left text-sm",children:o?"Loading…":p}),f.jsx(Qo,{className:"ml-1 size-4 shrink-0 opacity-50"})]})}),f.jsxs(mi,{className:"w-[min(100vw-2rem,20rem)] p-0",align:"start",children:[f.jsxs("div",{className:"flex h-9 items-center gap-2 border-b px-2",children:[f.jsx(R0,{className:"size-3.5 shrink-0 opacity-50","aria-hidden":!0}),f.jsx(Nn,{className:"h-8 border-0 bg-transparent p-0 text-sm shadow-none focus-visible:ring-0",placeholder:"Search…",value:c,onChange:m=>u(m.target.value)})]}),f.jsxs("ul",{role:"listbox","aria-label":e,className:"max-h-56 space-y-0 overflow-y-auto p-1",children:[f.jsx("li",{role:"option","aria-selected":d,children:f.jsxs("button",{type:"button",className:"flex w-full cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm hover:bg-muted",onClick:()=>{i(""),l(!1)},children:[f.jsx(Jo,{className:B("size-4 shrink-0",d?"opacity-100":"opacity-0")}),f.jsx("span",{children:n??"Select…"})]})}),y.map(m=>{const g=r===m.value;return f.jsx("li",{role:"option","aria-selected":g,children:f.jsxs("button",{type:"button",className:"flex w-full cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm hover:bg-muted",onClick:()=>{i(m.value),l(!1)},children:[f.jsx(Jo,{className:B("size-4 shrink-0",g?"opacity-100":"opacity-0")}),f.jsx("span",{className:"min-w-0 break-words",children:m.label})]})},m.value)}),t.length===0?f.jsx("li",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No options"}):null,t.length>0&&y.length===0?f.jsx("li",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No match"}):null]})]})]})}function r7t({label:e,options:t,values:r,placeholder:n,isLoading:o,onChange:a}){const[i,s]=k.useState(!1),[l,c]=k.useState(""),u=r.map(y=>t.find(m=>m.value===y)?.label??y),d=u.length>0?u.join(", "):n??"Select…",p=k.useMemo(()=>{const y=l.trim().toLowerCase();return y?t.filter(m=>m.label.toLowerCase().includes(y)||m.value.toLowerCase().includes(y)):t},[t,l]);return f.jsxs(yi,{open:i,onOpenChange:y=>{s(y),y&&c("")},children:[f.jsx(cs,{asChild:!0,children:f.jsxs(st,{type:"button",variant:"outline",role:"combobox","aria-expanded":i,"aria-haspopup":"listbox","aria-label":e,disabled:o,className:B("h-9 w-full min-w-[11rem] justify-between px-2 font-normal",u.length===0&&"text-muted-foreground"),children:[f.jsx("span",{className:"truncate text-left text-xs",children:o?"Loading…":d}),f.jsx(Qo,{className:"ml-1 size-3.5 shrink-0 opacity-50"})]})}),f.jsxs(mi,{className:"w-64 p-0",align:"start",children:[f.jsxs("div",{className:"flex h-9 items-center gap-2 border-b px-2",children:[f.jsx(R0,{className:"size-3.5 shrink-0 opacity-50","aria-hidden":!0}),f.jsx(Nn,{className:"h-8 border-0 bg-transparent p-0 text-sm shadow-none focus-visible:ring-0",placeholder:"Search…",value:l,onChange:y=>c(y.target.value)})]}),f.jsxs("ul",{role:"listbox","aria-multiselectable":"true","aria-label":e,className:"max-h-56 space-y-1 overflow-y-auto p-2",children:[p.map(y=>{const m=r.includes(y.value);return f.jsx("li",{role:"option","aria-selected":m,children:f.jsxs("label",{className:"flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-sm hover:bg-muted",children:[f.jsx(vi,{checked:m,onCheckedChange:g=>{a(g===!0?[...r,y.value]:r.filter(v=>v!==y.value))}}),f.jsx("span",{className:"min-w-0 flex-1 break-words",children:y.label})]})},y.value)}),t.length===0?f.jsx("li",{className:"px-1 py-2 text-xs text-muted-foreground",children:"No options"}):null,t.length>0&&p.length===0?f.jsx("li",{className:"px-1 py-2 text-xs text-muted-foreground",children:"No match"}):null]})]})]})}function n7t({widgetId:e,column:t,row:r,rowId:n,value:o,disabled:a,onChange:i}){const{schema:s}=jt(),l=VMt(r,t),c=k.useMemo(()=>XNt(t,s.dataApis??{}),[t,s.dataApis]),u=k.useMemo(()=>JSON.stringify(Hse(r,t,c)),[r,t,c]),d=k.useMemo(()=>Hse(r,t,c),[u,r,t,c]),p=Tr({widgetId:`${e}-options-${t.id}-${n}`,dataSource:t.optionsDataSource??Dde,enabled:!!t.optionsDataSource&&l,extraContext:d,keepPreviousData:!0}),y=!!t.optionsDataSource&&p.isLoading&&p.data===void 0,m=Lde(p.data,t.optionsDataSource??Dde).map((v,b)=>zg(v,b,t.optionLabelField??"label",t.optionValueField??"value")).filter(v=>v!=null),g=XMt(t.optionsDataSource?m:t.options??[],Ta(o));if(a||!t.editor){const b=Ta(o).map(x=>g.find(w=>w.value===x)?.label??x),_=b.length>0?b.join(", "):Array.isArray(o)?o.join(", "):String(o??"");return f.jsx(e7t,{column:t,value:_.trim()?_:o,row:r})}return!l&&(t.editor==="select"||t.editor==="multiselect")?f.jsx("span",{className:"text-xs text-muted-foreground",children:t.emptyDependsOnLabel??"Select a value first"}):t.editor==="select"?f.jsx(t7t,{label:t.header,options:g,value:String(UMt(o)??""),placeholder:t.placeholder??"Select…",isLoading:y,onChange:i}):t.editor==="multiselect"?f.jsx(r7t,{label:t.header,options:g,values:Ta(o),placeholder:t.placeholder??"Select…",isLoading:y,onChange:i}):t.editor==="textarea"?f.jsx(yte,{className:"min-h-[52px] min-w-[10rem] resize-y text-sm",placeholder:t.placeholder,value:String(o??""),disabled:a,onChange:v=>i(v.target.value)}):f.jsx("input",{className:ZNt(),type:t.editor==="number"?"number":"text",placeholder:t.placeholder,value:String(o??""),onChange:v=>i(t.editor==="number"?Number(v.target.value):v.target.value)})}function o7t(e,t){const r={id:e.id,header:e.header,field:e.field,align:e.align};return B(ov(t,r),H1(e)?"align-top whitespace-normal min-w-[10rem]":"align-middle whitespace-nowrap",!H1(e)&&e.align==="center"&&"text-center",!H1(e)&&e.align==="right"&&"text-right")}function a7t({widget:e}){const t=e.config,{schema:r,context:n,dispatchAction:o,replaceFilterGroup:a,setFilterValue:i,setContextValues:s}=jt(),l=t.pagination?.enabled===!0,c=t.search?.enabled===!0,u=t.dataSource.mode==="static",[d,p]=k.useState(1),[y,m]=k.useState(t.pagination?.pageSize??10),[g,v]=k.useState(""),[b,_]=k.useState(""),[x,w]=k.useState(""),S=t.filters?.filterGroupKey??e.id,M=t.search?.filterGroupKey?.trim()||S,P=c&&t.search?.publishToFilterGroup===!0,N=t.search?.debounceMs??300,A=k.useMemo(()=>kce(t.toolbar),[t.toolbar]),C=k.useMemo(()=>Sce(t.toolbar),[t.toolbar]),O=k.useMemo(()=>{const _e={};for(const Ee of A)_e[Ee.id]=Ee.defaultValue??(Ee.includeAllOption===!1?Ee.options?.[0]?.value??"":T1(Ee).value);return _e},[A]),[j,z]=k.useState(O),[E,$]=k.useState({}),F=k.useCallback((_e,Ee)=>{$(He=>{const tt=He[_e];return tt&&tt.length===Ee.length&&tt.every((be,Oe)=>be.value===Ee[Oe]?.value&&be.label===Ee[Oe]?.label)?He:{...He,[_e]:Ee}})},[]),q=k.useMemo(()=>A.map(_e=>`${_e.id}\0${_e.paramKey??""}`).join(`
55
55
  `),[A]),D=k.useMemo(()=>Mce(A).concat(P&&M===S?["search"]:[]),[q,P,M,S]);k.useEffect(()=>{z(_e=>{const Ee={...O};for(const He of A)He.id in _e&&(Ee[He.id]=_e[He.id]);return Ll(_e,Ee)?_e:Ee})},[O,A]),k.useEffect(()=>{if(!P)return;const _e=setTimeout(()=>{w(g)},N);return()=>clearTimeout(_e)},[g,P,N]),k.useEffect(()=>{P&&i(M,"search",x)},[x,P,M,i]),k.useEffect(()=>{if(A.length===0)return;const _e=wce(A,j,E),Ee=P&&M===S?{..._e,search:x}:_e;a(S,Ee,{resetKeys:D})},[A,S,j,a,P,M,x,E,D]);const H=k.useMemo(()=>A.length===0?t.dataSource:{...t.dataSource,filterGroupKey:S},[t.dataSource,A.length,S]),I=cv(t),L=t.dataSource.mode==="pageApi"&&t.dataSource.dataSourceRef?r.dataApis?.[t.dataSource.dataSourceRef]:void 0,R=t.dataSource.mode==="pageApi"&&t.dataSource.dataSourceRef?L:t.dataSource.api,V=t.dataSource.mode==="pageApi"?L?.itemsPath:R?.itemsPath,G=t.dataSource.mode==="pageApi"?L?.totalPath:R?.totalPath,{data:Z,isLoading:te,isError:K}=Tr({widgetId:e.id,dataSource:H,page:l&&!u?d:void 0,pageSize:l&&!u?y:void 0,search:c&&!u?g:void 0,searchField:c&&!u&&I&&b?b:void 0}),re=k.useMemo(()=>u&&Array.isArray(Z)?Z:u?Lde(Z,t.dataSource):A1(Z,V??"data"),[u,Z,t.dataSource,V]),[Q,ee]=k.useState(re),[J,W]=k.useState(new Set),ye=k.useRef(J);ye.current=J,k.useEffect(()=>{const _e=ye.current;if(_e.size===0){ee(re);return}ee(Ee=>{const He=new Map;for(let tt=0;tt<Ee.length;tt+=1){const be=Ee[tt],Oe=String(fe(be,t.rowIdField)??tt);He.set(Oe,be)}return re.map((tt,be)=>{const Oe=String(fe(tt,t.rowIdField)??be);return _e.has(Oe)&&He.has(Oe)?He.get(Oe):tt})})},[re,t.rowIdField]);const oe=k.useMemo(()=>GNt(t.search?.searchFields,t.columns,Q[0]),[t.search?.searchFields,t.columns,Q]),ce=k.useMemo(()=>oe.map(_e=>{const Ee=(t.columns??[]).find(He=>He.field===_e);return{field:_e,label:Ee?.header?.trim()||_e}}),[oe,t.columns]),de=k.useMemo(()=>RNt(Q,{searchEnabled:c,search:g,searchField:b,searchFields:oe,staticMode:u,toolbarFilters:A,filterValues:j}),[Q,c,g,b,oe,u,A,j]),ie=(l&&!u?vce(Z,G??"pagination.totalItems"):void 0)??de.length,Ae=k.useMemo(()=>l&&u?YNt(de,d,y):de,[de,l,u,d,y]),Ce=(_e,Ee)=>{const He=String(fe(_e,t.rowIdField)??Ee),tt=Q.findIndex((be,Oe)=>String(fe(be,t.rowIdField)??Oe)===He);return tt>=0?tt:Ee},Le=(_e,Ee,He)=>{const tt=Q[_e]??{},be=YMt({...tt,[Ee.field]:He},Ee.field,t.columns??[]);ee(Xe=>Xe.map((Kt,Y)=>Y===_e?be:Kt));const Oe=String(fe(be,t.rowIdField)??_e);W(Xe=>new Set(Xe).add(Oe)),t.onCellChange&&o(t.onCellChange,e.id,"change",{row:be,rowId:Oe,field:Ee.field,value:He})};return te?f.jsx("div",{className:"p-6 text-center text-sm text-muted-foreground",children:"Loading…"}):K?f.jsx("div",{className:"p-6 text-center text-sm text-destructive",children:"Failed to load data"}):f.jsxs("div",{className:"space-y-3","data-widget-id":e.id,"data-page-widget":"editable_matrix",children:[f.jsx(Hce,{widgetId:e.id,search:c?{enabled:!0,placeholder:t.search?.placeholder,fieldOptions:ce,showFieldPicker:I&&ce.length>1,style:t.search?.style}:void 0,searchValue:g,searchField:b,onSearchChange:_e=>{v(_e),p(1)},onSearchFieldChange:_e=>{_(_e),p(1)},toolbarFilters:A,toolbarButtons:C,filterValues:j,onFilterChange:(_e,Ee)=>{z(He=>({...He,[_e]:Ee})),p(1)},onFilterOptionsResolved:F,pageContext:n,dataApis:r.dataApis,setContextValues:s,dispatchAction:o}),f.jsx("div",{className:dce(t.appearance),style:uce(t.appearance),children:f.jsxs("table",{className:cce(),children:[f.jsx("thead",{children:f.jsxs("tr",{className:hce(t.appearance),style:yce(t.appearance),children:[(t.columns??[]).map((_e,Ee)=>f.jsx("th",{className:B(O1(t.appearance),iv(t.appearance,{isLastColumn:Ee===(t.columns?.length??0)-1})),style:{...N1(t.appearance),...sv(t.appearance,{isLastColumn:Ee===(t.columns?.length??0)-1}),...P1(_e)},children:_e.header},_e.id)),!t.readOnly&&t.onRowSave&&f.jsx("th",{className:B(O1(t.appearance),"w-24 whitespace-nowrap"),style:N1(t.appearance),children:"Action"})]})}),f.jsx("tbody",{children:Ae.length===0?f.jsx("tr",{children:f.jsx("td",{colSpan:(t.columns?.length??0)+(t.readOnly||!t.onRowSave?0:1),className:"px-3 py-8 text-center text-muted-foreground",children:t.emptyMessage??"No rows"})}):Ae.map((_e,Ee)=>{const He=Ce(_e,Ee),tt=String(fe(_e,t.rowIdField)??He);return f.jsxs("tr",{className:fce(t.appearance),style:pce(t.appearance),children:[(t.columns??[]).map((be,Oe)=>f.jsx("td",{className:o7t(be,t.appearance),style:{...av(t.appearance,{isLastColumn:Oe===(t.columns?.length??0)-1}),...P1(be)},children:f.jsx("div",{className:JNt(be),children:f.jsx(n7t,{widgetId:e.id,column:be,row:_e,rowId:tt,value:fe(_e,be.field),disabled:!!(t.readOnly||be.readOnly),onChange:Xe=>Le(He,be,Xe)})})},be.id)),!t.readOnly&&t.onRowSave&&f.jsx("td",{className:"px-3 py-2 align-middle",children:f.jsx("div",{className:"flex min-h-9 items-center",children:f.jsx(st,{type:"button",variant:"default",size:"sm",disabled:!J.has(tt),onClick:()=>{const be=RMt(_e,t.columns??[]);o(t.onRowSave,e.id,"submit",{row:be.row,rowId:tt,...be}),W(Oe=>{const Xe=new Set(Oe);return Xe.delete(tt),Xe})},children:t.saveButtonLabel??"Save"})})})]},tt)})})]})}),l?f.jsx(Dce,{page:d,pageSize:y,total:ie,itemLabel:t.pagination?.itemLabel??"rows",showSizeChanger:t.pagination?.showSizeChanger,onPageChange:p,onPageSizeChange:m}):null]})}var V1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wv,Hde;function En(){if(Hde)return wv;Hde=1;var e=Array.isArray;return wv=e,wv}var Mv,Vde;function Ude(){if(Vde)return Mv;Vde=1;var e=typeof V1=="object"&&V1&&V1.Object===Object&&V1;return Mv=e,Mv}var Pv,Wde;function pa(){if(Wde)return Pv;Wde=1;var e=Ude(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Pv=r,Pv}var Ov,Kde;function tu(){if(Kde)return Ov;Kde=1;var e=pa(),t=e.Symbol;return Ov=t,Ov}var Nv,Gde;function i7t(){if(Gde)return Nv;Gde=1;var e=tu(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;function a(i){var s=r.call(i,o),l=i[o];try{i[o]=void 0;var c=!0}catch{}var u=n.call(i);return c&&(s?i[o]=l:delete i[o]),u}return Nv=a,Nv}var jv,Rde;function s7t(){if(Rde)return jv;Rde=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return jv=r,jv}var Av,Yde;function Da(){if(Yde)return Av;Yde=1;var e=tu(),t=i7t(),r=s7t(),n="[object Null]",o="[object Undefined]",a=e?e.toStringTag:void 0;function i(s){return s==null?s===void 0?o:n:a&&a in Object(s)?t(s):r(s)}return Av=i,Av}var Tv,Xde;function La(){if(Xde)return Tv;Xde=1;function e(t){return t!=null&&typeof t=="object"}return Tv=e,Tv}var Cv,Zde;function Yl(){if(Zde)return Cv;Zde=1;var e=Da(),t=La(),r="[object Symbol]";function n(o){return typeof o=="symbol"||t(o)&&e(o)==r}return Cv=n,Cv}var Ev,Jde;function zv(){if(Jde)return Ev;Jde=1;var e=En(),t=Yl(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function o(a,i){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||i!=null&&a in Object(i)}return Ev=o,Ev}var $v,Qde;function xi(){if(Qde)return $v;Qde=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return $v=e,$v}var Iv,eue;function Fv(){if(eue)return Iv;eue=1;var e=Da(),t=xi(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",a="[object Proxy]";function i(s){if(!t(s))return!1;var l=e(s);return l==n||l==o||l==r||l==a}return Iv=i,Iv}var Dv,tue;function l7t(){if(tue)return Dv;tue=1;var e=pa(),t=e["__core-js_shared__"];return Dv=t,Dv}var Lv,rue;function c7t(){if(rue)return Lv;rue=1;var e=l7t(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return Lv=r,Lv}var qv,nue;function oue(){if(nue)return qv;nue=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return qv=r,qv}var Bv,aue;function d7t(){if(aue)return Bv;aue=1;var e=Fv(),t=c7t(),r=xi(),n=oue(),o=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,i=Function.prototype,s=Object.prototype,l=i.toString,c=s.hasOwnProperty,u=RegExp("^"+l.call(c).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(p){if(!r(p)||t(p))return!1;var y=e(p)?u:a;return y.test(n(p))}return Bv=d,Bv}var Hv,iue;function u7t(){if(iue)return Hv;iue=1;function e(t,r){return t?.[r]}return Hv=e,Hv}var Vv,sue;function Ms(){if(sue)return Vv;sue=1;var e=d7t(),t=u7t();function r(n,o){var a=t(n,o);return e(a)?a:void 0}return Vv=r,Vv}var Uv,lue;function U1(){if(lue)return Uv;lue=1;var e=Ms(),t=e(Object,"create");return Uv=t,Uv}var Wv,cue;function f7t(){if(cue)return Wv;cue=1;var e=U1();function t(){this.__data__=e?e(null):{},this.size=0}return Wv=t,Wv}var Kv,due;function p7t(){if(due)return Kv;due=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Kv=e,Kv}var Gv,uue;function h7t(){if(uue)return Gv;uue=1;var e=U1(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function o(a){var i=this.__data__;if(e){var s=i[a];return s===t?void 0:s}return n.call(i,a)?i[a]:void 0}return Gv=o,Gv}var Rv,fue;function y7t(){if(fue)return Rv;fue=1;var e=U1(),t=Object.prototype,r=t.hasOwnProperty;function n(o){var a=this.__data__;return e?a[o]!==void 0:r.call(a,o)}return Rv=n,Rv}var Yv,pue;function m7t(){if(pue)return Yv;pue=1;var e=U1(),t="__lodash_hash_undefined__";function r(n,o){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&o===void 0?t:o,this}return Yv=r,Yv}var Xv,hue;function g7t(){if(hue)return Xv;hue=1;var e=f7t(),t=p7t(),r=h7t(),n=y7t(),o=m7t();function a(i){var s=-1,l=i==null?0:i.length;for(this.clear();++s<l;){var c=i[s];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=o,Xv=a,Xv}var Zv,yue;function v7t(){if(yue)return Zv;yue=1;function e(){this.__data__=[],this.size=0}return Zv=e,Zv}var Jv,mue;function Qv(){if(mue)return Jv;mue=1;function e(t,r){return t===r||t!==t&&r!==r}return Jv=e,Jv}var eb,gue;function W1(){if(gue)return eb;gue=1;var e=Qv();function t(r,n){for(var o=r.length;o--;)if(e(r[o][0],n))return o;return-1}return eb=t,eb}var tb,vue;function b7t(){if(vue)return tb;vue=1;var e=W1(),t=Array.prototype,r=t.splice;function n(o){var a=this.__data__,i=e(a,o);if(i<0)return!1;var s=a.length-1;return i==s?a.pop():r.call(a,i,1),--this.size,!0}return tb=n,tb}var rb,bue;function _7t(){if(bue)return rb;bue=1;var e=W1();function t(r){var n=this.__data__,o=e(n,r);return o<0?void 0:n[o][1]}return rb=t,rb}var nb,_ue;function k7t(){if(_ue)return nb;_ue=1;var e=W1();function t(r){return e(this.__data__,r)>-1}return nb=t,nb}var ob,kue;function S7t(){if(kue)return ob;kue=1;var e=W1();function t(r,n){var o=this.__data__,a=e(o,r);return a<0?(++this.size,o.push([r,n])):o[a][1]=n,this}return ob=t,ob}var ab,Sue;function K1(){if(Sue)return ab;Sue=1;var e=v7t(),t=b7t(),r=_7t(),n=k7t(),o=S7t();function a(i){var s=-1,l=i==null?0:i.length;for(this.clear();++s<l;){var c=i[s];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=o,ab=a,ab}var ib,xue;function sb(){if(xue)return ib;xue=1;var e=Ms(),t=pa(),r=e(t,"Map");return ib=r,ib}var lb,wue;function x7t(){if(wue)return lb;wue=1;var e=g7t(),t=K1(),r=sb();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return lb=n,lb}var cb,Mue;function w7t(){if(Mue)return cb;Mue=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return cb=e,cb}var db,Pue;function G1(){if(Pue)return db;Pue=1;var e=w7t();function t(r,n){var o=r.__data__;return e(n)?o[typeof n=="string"?"string":"hash"]:o.map}return db=t,db}var ub,Oue;function M7t(){if(Oue)return ub;Oue=1;var e=G1();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return ub=t,ub}var fb,Nue;function P7t(){if(Nue)return fb;Nue=1;var e=G1();function t(r){return e(this,r).get(r)}return fb=t,fb}var pb,jue;function O7t(){if(jue)return pb;jue=1;var e=G1();function t(r){return e(this,r).has(r)}return pb=t,pb}var hb,Aue;function N7t(){if(Aue)return hb;Aue=1;var e=G1();function t(r,n){var o=e(this,r),a=o.size;return o.set(r,n),this.size+=o.size==a?0:1,this}return hb=t,hb}var yb,Tue;function mb(){if(Tue)return yb;Tue=1;var e=x7t(),t=M7t(),r=P7t(),n=O7t(),o=N7t();function a(i){var s=-1,l=i==null?0:i.length;for(this.clear();++s<l;){var c=i[s];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=o,yb=a,yb}var gb,Cue;function Eue(){if(Cue)return gb;Cue=1;var e=mb(),t="Expected a function";function r(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var a=function(){var i=arguments,s=o?o.apply(this,i):i[0],l=a.cache;if(l.has(s))return l.get(s);var c=n.apply(this,i);return a.cache=l.set(s,c)||l,c};return a.cache=new(r.Cache||e),a}return r.Cache=e,gb=r,gb}var vb,zue;function j7t(){if(zue)return vb;zue=1;var e=Eue(),t=500;function r(n){var o=e(n,function(i){return a.size===t&&a.clear(),i}),a=o.cache;return o}return vb=r,vb}var bb,$ue;function A7t(){if($ue)return bb;$ue=1;var e=j7t(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(t,function(i,s,l,c){a.push(l?c.replace(r,"$1"):s||i)}),a});return bb=n,bb}var _b,Iue;function kb(){if(Iue)return _b;Iue=1;function e(t,r){for(var n=-1,o=t==null?0:t.length,a=Array(o);++n<o;)a[n]=r(t[n],n,t);return a}return _b=e,_b}var Sb,Fue;function T7t(){if(Fue)return Sb;Fue=1;var e=tu(),t=kb(),r=En(),n=Yl(),o=e?e.prototype:void 0,a=o?o.toString:void 0;function i(s){if(typeof s=="string")return s;if(r(s))return t(s,i)+"";if(n(s))return a?a.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}return Sb=i,Sb}var xb,Due;function Lue(){if(Due)return xb;Due=1;var e=T7t();function t(r){return r==null?"":e(r)}return xb=t,xb}var wb,que;function Bue(){if(que)return wb;que=1;var e=En(),t=zv(),r=A7t(),n=Lue();function o(a,i){return e(a)?a:t(a,i)?[a]:r(n(a))}return wb=o,wb}var Mb,Hue;function R1(){if(Hue)return Mb;Hue=1;var e=Yl();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Mb=t,Mb}var Pb,Vue;function Ob(){if(Vue)return Pb;Vue=1;var e=Bue(),t=R1();function r(n,o){o=e(o,n);for(var a=0,i=o.length;n!=null&&a<i;)n=n[t(o[a++])];return a&&a==i?n:void 0}return Pb=r,Pb}var Nb,Uue;function Wue(){if(Uue)return Nb;Uue=1;var e=Ob();function t(r,n,o){var a=r==null?void 0:e(r,n);return a===void 0?o:a}return Nb=t,Nb}var C7t=Wue();const Kn=Qt(C7t);var jb,Kue;function E7t(){if(Kue)return jb;Kue=1;function e(t){return t==null}return jb=e,jb}var z7t=E7t();const at=Qt(z7t);var Ab,Gue;function $7t(){if(Gue)return Ab;Gue=1;var e=Da(),t=En(),r=La(),n="[object String]";function o(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Ab=o,Ab}var I7t=$7t();const Ps=Qt(I7t);var F7t=Fv();const it=Qt(F7t);var D7t=xi();const Xl=Qt(D7t);var Y1={exports:{}},Bt={};var Rue;function L7t(){if(Rue)return Bt;Rue=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function g(v){if(typeof v=="object"&&v!==null){var b=v.$$typeof;switch(b){case e:switch(v=v.type,v){case r:case o:case n:case c:case u:return v;default:switch(v=v&&v.$$typeof,v){case s:case i:case l:case p:case d:case a:return v;default:return b}}case t:return b}}}return Bt.ContextConsumer=i,Bt.ContextProvider=a,Bt.Element=e,Bt.ForwardRef=l,Bt.Fragment=r,Bt.Lazy=p,Bt.Memo=d,Bt.Portal=t,Bt.Profiler=o,Bt.StrictMode=n,Bt.Suspense=c,Bt.SuspenseList=u,Bt.isAsyncMode=function(){return!1},Bt.isConcurrentMode=function(){return!1},Bt.isContextConsumer=function(v){return g(v)===i},Bt.isContextProvider=function(v){return g(v)===a},Bt.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},Bt.isForwardRef=function(v){return g(v)===l},Bt.isFragment=function(v){return g(v)===r},Bt.isLazy=function(v){return g(v)===p},Bt.isMemo=function(v){return g(v)===d},Bt.isPortal=function(v){return g(v)===t},Bt.isProfiler=function(v){return g(v)===o},Bt.isStrictMode=function(v){return g(v)===n},Bt.isSuspense=function(v){return g(v)===c},Bt.isSuspenseList=function(v){return g(v)===u},Bt.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===o||v===n||v===c||v===u||v===y||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===d||v.$$typeof===a||v.$$typeof===i||v.$$typeof===l||v.$$typeof===m||v.getModuleId!==void 0)},Bt.typeOf=g,Bt}var Ht={};var Yue;function q7t(){return Yue||(Yue=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),m=!1,g=!1,v=!1,b=!1,_=!1,x;x=Symbol.for("react.module.reference");function w(oe){return!!(typeof oe=="string"||typeof oe=="function"||oe===r||oe===o||_||oe===n||oe===c||oe===u||b||oe===y||m||g||v||typeof oe=="object"&&oe!==null&&(oe.$$typeof===p||oe.$$typeof===d||oe.$$typeof===a||oe.$$typeof===i||oe.$$typeof===l||oe.$$typeof===x||oe.getModuleId!==void 0))}function S(oe){if(typeof oe=="object"&&oe!==null){var ce=oe.$$typeof;switch(ce){case e:var de=oe.type;switch(de){case r:case o:case n:case c:case u:return de;default:var ve=de&&de.$$typeof;switch(ve){case s:case i:case l:case p:case d:case a:return ve;default:return ce}}case t:return ce}}}var M=i,P=a,N=e,A=l,C=r,O=p,j=d,z=t,E=o,$=n,F=c,q=u,D=!1,H=!1;function I(oe){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function L(oe){return H||(H=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function R(oe){return S(oe)===i}function V(oe){return S(oe)===a}function G(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===e}function Z(oe){return S(oe)===l}function te(oe){return S(oe)===r}function K(oe){return S(oe)===p}function re(oe){return S(oe)===d}function Q(oe){return S(oe)===t}function ee(oe){return S(oe)===o}function J(oe){return S(oe)===n}function W(oe){return S(oe)===c}function ye(oe){return S(oe)===u}Ht.ContextConsumer=M,Ht.ContextProvider=P,Ht.Element=N,Ht.ForwardRef=A,Ht.Fragment=C,Ht.Lazy=O,Ht.Memo=j,Ht.Portal=z,Ht.Profiler=E,Ht.StrictMode=$,Ht.Suspense=F,Ht.SuspenseList=q,Ht.isAsyncMode=I,Ht.isConcurrentMode=L,Ht.isContextConsumer=R,Ht.isContextProvider=V,Ht.isElement=G,Ht.isForwardRef=Z,Ht.isFragment=te,Ht.isLazy=K,Ht.isMemo=re,Ht.isPortal=Q,Ht.isProfiler=ee,Ht.isStrictMode=J,Ht.isSuspense=W,Ht.isSuspenseList=ye,Ht.isValidElementType=w,Ht.typeOf=S})()),Ht}var Xue;function B7t(){return Xue||(Xue=1,process.env.NODE_ENV==="production"?Y1.exports=L7t():Y1.exports=q7t()),Y1.exports}var H7t=B7t(),Tb,Zue;function Jue(){if(Zue)return Tb;Zue=1;var e=Da(),t=La(),r="[object Number]";function n(o){return typeof o=="number"||t(o)&&e(o)==r}return Tb=n,Tb}var Cb,Que;function V7t(){if(Que)return Cb;Que=1;var e=Jue();function t(r){return e(r)&&r!=+r}return Cb=t,Cb}var U7t=V7t();const Zl=Qt(U7t);var W7t=Jue();const K7t=Qt(W7t);var vn=function(t){return t===0?0:t>0?1:-1},Os=function(t){return Ps(t)&&t.indexOf("%")===t.length-1},Se=function(t){return K7t(t)&&!Zl(t)},G7t=function(t){return at(t)},Br=function(t){return Se(t)||Ps(t)},R7t=0,wi=function(t){var r=++R7t;return"".concat(t||"").concat(r)},bn=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Se(t)&&!Ps(t))return n;var a;if(Os(t)){var i=t.indexOf("%");a=r*parseFloat(t.slice(0,i))/100}else a=+t;return Zl(a)&&(a=n),o&&a>r&&(a=r),a},Mi=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Y7t=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},o=0;o<r;o++)if(!n[t[o]])n[t[o]]=!0;else return!0;return!1},vr=function(t,r){return Se(t)&&Se(r)?function(n){return t+n*(r-t)}:function(){return r}};function X1(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Kn(n,t))===r})}var X7t=function(t){if(!t||!t.length)return null;for(var r=t.length,n=0,o=0,a=0,i=0,s=1/0,l=-1/0,c=0,u=0,d=0;d<r;d++)c=t[d].cx||0,u=t[d].cy||0,n+=c,o+=u,a+=c*u,i+=c*c,s=Math.min(s,c),l=Math.max(l,c);var p=r*i!==n*n?(r*a-n*o)/(r*i-n*n):0;return{xmin:s,xmax:l,a:p,b:(o-p*n)/r}},Z7t=function(t,r){return Se(t)&&Se(r)?t-r:Ps(t)&&Ps(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Jl(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function Eb(e){"@babel/helpers - typeof";return Eb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eb(e)}var J7t=["viewBox","children"],Q7t=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],efe=["points","pathLength"],zb={svg:J7t,polygon:efe,polyline:efe},$b=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Z1=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(k.isValidElement(t)&&(n=t.props),!Xl(n))return null;var o={};return Object.keys(n).forEach(function(a){$b.includes(a)&&(o[a]=r||function(i){return n[a](n,i)})}),o},ejt=function(t,r,n){return function(o){return t(r,n,o),null}},Pi=function(t,r,n){if(!Xl(t)||Eb(t)!=="object")return null;var o=null;return Object.keys(t).forEach(function(a){var i=t[a];$b.includes(a)&&typeof i=="function"&&(o||(o={}),o[a]=ejt(i,r,n))}),o},tjt=["children"],rjt=["children"];function tfe(e,t){if(e==null)return{};var r=njt(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function njt(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ib(e){"@babel/helpers - typeof";return Ib=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ib(e)}var rfe={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},qa=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},nfe=null,Fb=null,Db=function e(t){if(t===nfe&&Array.isArray(Fb))return Fb;var r=[];return k.Children.forEach(t,function(n){at(n)||(H7t.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Fb=r,nfe=t,r};function _n(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(o){return qa(o)}):n=[qa(t)],Db(e).forEach(function(o){var a=Kn(o,"type.displayName")||Kn(o,"type.name");n.indexOf(a)!==-1&&r.push(o)}),r}function Gn(e,t){var r=_n(e,t);return r&&r[0]}var ofe=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,o=r.height;return!(!Se(n)||n<=0||!Se(o)||o<=0)},ojt=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],ajt=function(t){return t&&t.type&&Ps(t.type)&&ojt.indexOf(t.type)>=0},afe=function(t){return t&&Ib(t)==="object"&&"clipDot"in t},ijt=function(t,r,n,o){var a,i=(a=zb?.[o])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!it(t)&&(o&&i.includes(r)||Q7t.includes(r))||n&&$b.includes(r)},Ye=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var o=t;if(k.isValidElement(t)&&(o=t.props),!Xl(o))return null;var a={};return Object.keys(o).forEach(function(i){var s;ijt((s=o)===null||s===void 0?void 0:s[i],i,r,n)&&(a[i]=o[i])}),a},Lb=function e(t,r){if(t===r)return!0;var n=k.Children.count(t);if(n!==k.Children.count(r))return!1;if(n===0)return!0;if(n===1)return ife(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var o=0;o<n;o++){var a=t[o],i=r[o];if(Array.isArray(a)||Array.isArray(i)){if(!e(a,i))return!1}else if(!ife(a,i))return!1}return!0},ife=function(t,r){if(at(t)&&at(r))return!0;if(!at(t)&&!at(r)){var n=t.props||{},o=n.children,a=tfe(n,tjt),i=r.props||{},s=i.children,l=tfe(i,rjt);return o&&s?Jl(a,l)&&Lb(o,s):!o&&!s?Jl(a,l):!1}return!1},sfe=function(t,r){var n=[],o={};return Db(t).forEach(function(a,i){if(ajt(a))n.push(a);else if(a){var s=qa(a.type),l=r[s]||{},c=l.handler,u=l.once;if(c&&(!u||!o[s])){var d=c(a,s,i);n.push(d),o[s]=!0}}}),n},sjt=function(t){var r=t&&t.type;return r&&rfe[r]?rfe[r]:null},ljt=function(t,r){return Db(r).indexOf(t)},cjt=["children","width","height","viewBox","className","style","title","desc"];function qb(){return qb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qb.apply(this,arguments)}function djt(e,t){if(e==null)return{};var r=ujt(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ujt(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Bb(e){var t=e.children,r=e.width,n=e.height,o=e.viewBox,a=e.className,i=e.style,s=e.title,l=e.desc,c=djt(e,cjt),u=o||{width:r,height:n,x:0,y:0},d=yt("recharts-surface",a);return k.createElement("svg",qb({},Ye(c,!0,"svg"),{className:d,width:r,height:n,style:i,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height)}),k.createElement("title",null,s),k.createElement("desc",null,l),t)}var fjt=["children","className"];function Hb(){return Hb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hb.apply(this,arguments)}function pjt(e,t){if(e==null)return{};var r=hjt(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hjt(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Mt=k.forwardRef(function(e,t){var r=e.children,n=e.className,o=pjt(e,fjt),a=yt("recharts-layer",n);return k.createElement("g",Hb({className:a},Ye(o,!0),{ref:t}),r)}),yjt=process.env.NODE_ENV!=="production",Io=function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];if(yjt&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(r.replace(/%s/g,function(){return o[i++]}))}},Vb,lfe;function mjt(){if(lfe)return Vb;lfe=1;function e(t,r,n){var o=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var i=Array(a);++o<a;)i[o]=t[o+r];return i}return Vb=e,Vb}var Ub,cfe;function gjt(){if(cfe)return Ub;cfe=1;var e=mjt();function t(r,n,o){var a=r.length;return o=o===void 0?a:o,!n&&o>=a?r:e(r,n,o)}return Ub=t,Ub}var Wb,dfe;function ufe(){if(dfe)return Wb;dfe=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",o=t+r+n,a="\\ufe0e\\ufe0f",i="\\u200d",s=RegExp("["+i+e+o+a+"]");function l(c){return s.test(c)}return Wb=l,Wb}var Kb,ffe;function vjt(){if(ffe)return Kb;ffe=1;function e(t){return t.split("")}return Kb=e,Kb}var Gb,pfe;function bjt(){if(pfe)return Gb;pfe=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",o=t+r+n,a="\\ufe0e\\ufe0f",i="["+e+"]",s="["+o+"]",l="\\ud83c[\\udffb-\\udfff]",c="(?:"+s+"|"+l+")",u="[^"+e+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",y="\\u200d",m=c+"?",g="["+a+"]?",v="(?:"+y+"(?:"+[u,d,p].join("|")+")"+g+m+")*",b=g+m+v,_="(?:"+[u+s+"?",s,d,p,i].join("|")+")",x=RegExp(l+"(?="+l+")|"+_+b,"g");function w(S){return S.match(x)||[]}return Gb=w,Gb}var Rb,hfe;function _jt(){if(hfe)return Rb;hfe=1;var e=vjt(),t=ufe(),r=bjt();function n(o){return t(o)?r(o):e(o)}return Rb=n,Rb}var Yb,yfe;function kjt(){if(yfe)return Yb;yfe=1;var e=gjt(),t=ufe(),r=_jt(),n=Lue();function o(a){return function(i){i=n(i);var s=t(i)?r(i):void 0,l=s?s[0]:i.charAt(0),c=s?e(s,1).join(""):i.slice(1);return l[a]()+c}}return Yb=o,Yb}var Xb,mfe;function Sjt(){if(mfe)return Xb;mfe=1;var e=kjt(),t=e("toUpperCase");return Xb=t,Xb}var xjt=Sjt();const J1=Qt(xjt);function ar(e){return function(){return e}}const gfe=Math.cos,Q1=Math.sin,Fo=Math.sqrt,eh=Math.PI,th=2*eh,Zb=Math.PI,Jb=2*Zb,Ns=1e-6,wjt=Jb-Ns;function vfe(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Mjt(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return vfe;const r=10**t;return function(n){this._+=n[0];for(let o=1,a=n.length;o<a;++o)this._+=Math.round(arguments[o]*r)/r+n[o]}}class Pjt{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?vfe:Mjt(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,o){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+o}`}bezierCurveTo(t,r,n,o,a,i){this._append`C${+t},${+r},${+n},${+o},${this._x1=+a},${this._y1=+i}`}arcTo(t,r,n,o,a){if(t=+t,r=+r,n=+n,o=+o,a=+a,a<0)throw new Error(`negative radius: ${a}`);let i=this._x1,s=this._y1,l=n-t,c=o-r,u=i-t,d=s-r,p=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>Ns)if(!(Math.abs(d*l-c*u)>Ns)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let y=n-i,m=o-s,g=l*l+c*c,v=y*y+m*m,b=Math.sqrt(g),_=Math.sqrt(p),x=a*Math.tan((Zb-Math.acos((g+p-v)/(2*b*_)))/2),w=x/_,S=x/b;Math.abs(w-1)>Ns&&this._append`L${t+w*u},${r+w*d}`,this._append`A${a},${a},0,0,${+(d*y>u*m)},${this._x1=t+S*l},${this._y1=r+S*c}`}}arc(t,r,n,o,a,i){if(t=+t,r=+r,n=+n,i=!!i,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(o),l=n*Math.sin(o),c=t+s,u=r+l,d=1^i,p=i?o-a:a-o;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Ns||Math.abs(this._y1-u)>Ns)&&this._append`L${c},${u}`,n&&(p<0&&(p=p%Jb+Jb),p>wjt?this._append`A${n},${n},0,1,${d},${t-s},${r-l}A${n},${n},0,1,${d},${this._x1=c},${this._y1=u}`:p>Ns&&this._append`A${n},${n},0,${+(p>=Zb)},${d},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+o}h${-n}Z`}toString(){return this._}}function Qb(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Pjt(t)}function e_(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function bfe(e){this._context=e}bfe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function rh(e){return new bfe(e)}function _fe(e){return e[0]}function kfe(e){return e[1]}function Sfe(e,t){var r=ar(!0),n=null,o=rh,a=null,i=Qb(s);e=typeof e=="function"?e:e===void 0?_fe:ar(e),t=typeof t=="function"?t:t===void 0?kfe:ar(t);function s(l){var c,u=(l=e_(l)).length,d,p=!1,y;for(n==null&&(a=o(y=i())),c=0;c<=u;++c)!(c<u&&r(d=l[c],c,l))===p&&((p=!p)?a.lineStart():a.lineEnd()),p&&a.point(+e(d,c,l),+t(d,c,l));if(y)return a=null,y+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:ar(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:ar(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:ar(!!l),s):r},s.curve=function(l){return arguments.length?(o=l,n!=null&&(a=o(n)),s):o},s.context=function(l){return arguments.length?(l==null?n=a=null:a=o(n=l),s):n},s}function nh(e,t,r){var n=null,o=ar(!0),a=null,i=rh,s=null,l=Qb(c);e=typeof e=="function"?e:e===void 0?_fe:ar(+e),t=typeof t=="function"?t:ar(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?kfe:ar(+r);function c(d){var p,y,m,g=(d=e_(d)).length,v,b=!1,_,x=new Array(g),w=new Array(g);for(a==null&&(s=i(_=l())),p=0;p<=g;++p){if(!(p<g&&o(v=d[p],p,d))===b)if(b=!b)y=p,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=p-1;m>=y;--m)s.point(x[m],w[m]);s.lineEnd(),s.areaEnd()}b&&(x[p]=+e(v,p,d),w[p]=+t(v,p,d),s.point(n?+n(v,p,d):x[p],r?+r(v,p,d):w[p]))}if(_)return s=null,_+""||null}function u(){return Sfe().defined(o).curve(i).context(a)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:ar(+d),n=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:ar(+d),c):e},c.x1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:ar(+d),c):n},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:ar(+d),r=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:ar(+d),c):t},c.y1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:ar(+d),c):r},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(r)},c.lineX1=function(){return u().x(n).y(t)},c.defined=function(d){return arguments.length?(o=typeof d=="function"?d:ar(!!d),c):o},c.curve=function(d){return arguments.length?(i=d,a!=null&&(s=i(a)),c):i},c.context=function(d){return arguments.length?(d==null?a=s=null:s=i(a=d),c):a},c}class xfe{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Ojt(e){return new xfe(e,!0)}function Njt(e){return new xfe(e,!1)}const t_={draw(e,t){const r=Fo(t/eh);e.moveTo(r,0),e.arc(0,0,r,0,th)}},jjt={draw(e,t){const r=Fo(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},wfe=Fo(1/3),Ajt=wfe*2,Tjt={draw(e,t){const r=Fo(t/Ajt),n=r*wfe;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Cjt={draw(e,t){const r=Fo(t),n=-r/2;e.rect(n,n,r,r)}},Ejt=.8908130915292852,Mfe=Q1(eh/10)/Q1(7*eh/10),zjt=Q1(th/10)*Mfe,$jt=-gfe(th/10)*Mfe,Ijt={draw(e,t){const r=Fo(t*Ejt),n=zjt*r,o=$jt*r;e.moveTo(0,-r),e.lineTo(n,o);for(let a=1;a<5;++a){const i=th*a/5,s=gfe(i),l=Q1(i);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*o,l*n+s*o)}e.closePath()}},r_=Fo(3),Fjt={draw(e,t){const r=-Fo(t/(r_*3));e.moveTo(0,r*2),e.lineTo(-r_*r,-r),e.lineTo(r_*r,-r),e.closePath()}},co=-.5,uo=Fo(3)/2,n_=1/Fo(12),Djt=(n_/2+1)*3,Ljt={draw(e,t){const r=Fo(t/Djt),n=r/2,o=r*n_,a=n,i=r*n_+r,s=-a,l=i;e.moveTo(n,o),e.lineTo(a,i),e.lineTo(s,l),e.lineTo(co*n-uo*o,uo*n+co*o),e.lineTo(co*a-uo*i,uo*a+co*i),e.lineTo(co*s-uo*l,uo*s+co*l),e.lineTo(co*n+uo*o,co*o-uo*n),e.lineTo(co*a+uo*i,co*i-uo*a),e.lineTo(co*s+uo*l,co*l-uo*s),e.closePath()}};function qjt(e,t){let r=null,n=Qb(o);e=typeof e=="function"?e:ar(e||t_),t=typeof t=="function"?t:ar(t===void 0?64:+t);function o(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return o.type=function(a){return arguments.length?(e=typeof a=="function"?a:ar(a),o):e},o.size=function(a){return arguments.length?(t=typeof a=="function"?a:ar(+a),o):t},o.context=function(a){return arguments.length?(r=a??null,o):r},o}function oh(){}function ah(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Pfe(e){this._context=e}Pfe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ah(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ah(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Bjt(e){return new Pfe(e)}function Ofe(e){this._context=e}Ofe.prototype={areaStart:oh,areaEnd:oh,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ah(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Hjt(e){return new Ofe(e)}function Nfe(e){this._context=e}Nfe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ah(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Vjt(e){return new Nfe(e)}function jfe(e){this._context=e}jfe.prototype={areaStart:oh,areaEnd:oh,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Ujt(e){return new jfe(e)}function Afe(e){return e<0?-1:1}function Tfe(e,t,r){var n=e._x1-e._x0,o=t-e._x1,a=(e._y1-e._y0)/(n||o<0&&-0),i=(r-e._y1)/(o||n<0&&-0),s=(a*o+i*n)/(n+o);return(Afe(a)+Afe(i))*Math.min(Math.abs(a),Math.abs(i),.5*Math.abs(s))||0}function Cfe(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function o_(e,t,r){var n=e._x0,o=e._y0,a=e._x1,i=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,o+s*t,a-s,i-s*r,a,i)}function ih(e){this._context=e}ih.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:o_(this,this._t0,Cfe(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,o_(this,Cfe(this,r=Tfe(this,e,t)),r);break;default:o_(this,this._t0,r=Tfe(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Efe(e){this._context=new zfe(e)}(Efe.prototype=Object.create(ih.prototype)).point=function(e,t){ih.prototype.point.call(this,t,e)};function zfe(e){this._context=e}zfe.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,o,a){this._context.bezierCurveTo(t,e,n,r,a,o)}};function Wjt(e){return new ih(e)}function Kjt(e){return new Efe(e)}function $fe(e){this._context=e}$fe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Ife(e),o=Ife(t),a=0,i=1;i<r;++a,++i)this._context.bezierCurveTo(n[0][a],o[0][a],n[1][a],o[1][a],e[i],t[i]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Ife(e){var t,r=e.length-1,n,o=new Array(r),a=new Array(r),i=new Array(r);for(o[0]=0,a[0]=2,i[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,a[t]=4,i[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,a[r-1]=7,i[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/a[t-1],a[t]-=n,i[t]-=n*i[t-1];for(o[r-1]=i[r-1]/a[r-1],t=r-2;t>=0;--t)o[t]=(i[t]-o[t+1])/a[t];for(a[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-o[t+1];return[o,a]}function Gjt(e){return new $fe(e)}function sh(e,t){this._context=e,this._t=t}sh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Rjt(e){return new sh(e,.5)}function Yjt(e){return new sh(e,0)}function Xjt(e){return new sh(e,1)}function Ql(e,t){if((i=e.length)>1)for(var r=1,n,o,a=e[t[0]],i,s=a.length;r<i;++r)for(o=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(o[n][1])?o[n][0]:o[n][1]}function a_(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Zjt(e,t){return e[t]}function Jjt(e){const t=[];return t.key=e,t}function Qjt(){var e=ar([]),t=a_,r=Ql,n=Zjt;function o(a){var i=Array.from(e.apply(this,arguments),Jjt),s,l=i.length,c=-1,u;for(const d of a)for(s=0,++c;s<l;++s)(i[s][c]=[0,+n(d,i[s].key,c,a)]).data=d;for(s=0,u=e_(t(i));s<l;++s)i[u[s]].index=s;return r(i,u),i}return o.keys=function(a){return arguments.length?(e=typeof a=="function"?a:ar(Array.from(a)),o):e},o.value=function(a){return arguments.length?(n=typeof a=="function"?a:ar(+a),o):n},o.order=function(a){return arguments.length?(t=a==null?a_:typeof a=="function"?a:ar(Array.from(a)),o):t},o.offset=function(a){return arguments.length?(r=a??Ql,o):r},o}function eAt(e,t){if((n=e.length)>0){for(var r,n,o=0,a=e[0].length,i;o<a;++o){for(i=r=0;r<n;++r)i+=e[r][o][1]||0;if(i)for(r=0;r<n;++r)e[r][o][1]/=i}Ql(e,t)}}function tAt(e,t){if((o=e.length)>0){for(var r=0,n=e[t[0]],o,a=n.length;r<a;++r){for(var i=0,s=0;i<o;++i)s+=e[i][r][1]||0;n[r][1]+=n[r][0]=-s/2}Ql(e,t)}}function rAt(e,t){if(!(!((i=e.length)>0)||!((a=(o=e[t[0]]).length)>0))){for(var r=0,n=1,o,a,i;n<a;++n){for(var s=0,l=0,c=0;s<i;++s){for(var u=e[t[s]],d=u[n][1]||0,p=u[n-1][1]||0,y=(d-p)/2,m=0;m<s;++m){var g=e[t[m]],v=g[n][1]||0,b=g[n-1][1]||0;y+=v-b}l+=d,c+=y*d}o[n-1][1]+=o[n-1][0]=r,l&&(r-=c/l)}o[n-1][1]+=o[n-1][0]=r,Ql(e,t)}}function ru(e){"@babel/helpers - typeof";return ru=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ru(e)}var nAt=["type","size","sizeType"];function i_(){return i_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i_.apply(this,arguments)}function Ffe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Dfe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ffe(Object(r),!0).forEach(function(n){oAt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ffe(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oAt(e,t,r){return t=aAt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aAt(e){var t=iAt(e,"string");return ru(t)=="symbol"?t:t+""}function iAt(e,t){if(ru(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ru(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sAt(e,t){if(e==null)return{};var r=lAt(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lAt(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Lfe={symbolCircle:t_,symbolCross:jjt,symbolDiamond:Tjt,symbolSquare:Cjt,symbolStar:Ijt,symbolTriangle:Fjt,symbolWye:Ljt},cAt=Math.PI/180,dAt=function(t){var r="symbol".concat(J1(t));return Lfe[r]||t_},uAt=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var o=18*cAt;return 1.25*t*t*(Math.tan(o)-Math.tan(o*2)*Math.pow(Math.tan(o),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},fAt=function(t,r){Lfe["symbol".concat(J1(t))]=r},lh=function(t){var r=t.type,n=r===void 0?"circle":r,o=t.size,a=o===void 0?64:o,i=t.sizeType,s=i===void 0?"area":i,l=sAt(t,nAt),c=Dfe(Dfe({},l),{},{type:n,size:a,sizeType:s}),u=function(){var v=dAt(n),b=qjt().type(v).size(uAt(a,s,n));return b()},d=c.className,p=c.cx,y=c.cy,m=Ye(c,!0);return p===+p&&y===+y&&a===+a?k.createElement("path",i_({},m,{className:yt("recharts-symbols",d),transform:"translate(".concat(p,", ").concat(y,")"),d:u()})):null};lh.registerSymbol=fAt;function ec(e){"@babel/helpers - typeof";return ec=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ec(e)}function s_(){return s_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s_.apply(this,arguments)}function qfe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function pAt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qfe(Object(r),!0).forEach(function(n){nu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qfe(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hAt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yAt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Hfe(n.key),n)}}function mAt(e,t,r){return t&&yAt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gAt(e,t,r){return t=ch(t),vAt(e,Bfe()?Reflect.construct(t,r||[],ch(e).constructor):t.apply(e,r))}function vAt(e,t){if(t&&(ec(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bAt(e)}function bAt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bfe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bfe=function(){return!!e})()}function ch(e){return ch=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ch(e)}function _At(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l_(e,t)}function l_(e,t){return l_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},l_(e,t)}function nu(e,t,r){return t=Hfe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hfe(e){var t=kAt(e,"string");return ec(t)=="symbol"?t:t+""}function kAt(e,t){if(ec(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ec(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var fo=32,c_=(function(e){function t(){return hAt(this,t),gAt(this,t,arguments)}return _At(t,e),mAt(t,[{key:"renderIcon",value:function(n){var o=this.props.inactiveColor,a=fo/2,i=fo/6,s=fo/3,l=n.inactive?o:n.color;if(n.type==="plainline")return k.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:fo,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return k.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(s,`
56
56
  A`).concat(i,",").concat(i,",0,1,1,").concat(2*s,",").concat(a,`
57
57
  H`).concat(fo,"M").concat(2*s,",").concat(a,`