@epic-web/workshop-app 6.69.1 → 6.71.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/build/client/assets/{_-BnmXymJG.js → _-dWSrc4Ox.js} +2 -2
  2. package/build/client/assets/{_-BnmXymJG.js.map → _-dWSrc4Ox.js.map} +1 -1
  3. package/build/client/assets/{_basePickBy-D6pFkWVF.js → _basePickBy-D77BeQbR.js} +2 -2
  4. package/build/client/assets/{_basePickBy-D6pFkWVF.js.map → _basePickBy-D77BeQbR.js.map} +1 -1
  5. package/build/client/assets/{_baseUniq-BbljtzXr.js → _baseUniq-DTO-tFvD.js} +2 -2
  6. package/build/client/assets/{_baseUniq-BbljtzXr.js.map → _baseUniq-DTO-tFvD.js.map} +1 -1
  7. package/build/client/assets/{_exerciseNumber-77g7-L-x.js → _exerciseNumber-DgMb13KP.js} +2 -2
  8. package/build/client/assets/{_exerciseNumber-77g7-L-x.js.map → _exerciseNumber-DgMb13KP.js.map} +1 -1
  9. package/build/client/assets/{_exerciseNumber_._stepNumber.index-DYb7kg06.js → _exerciseNumber_._stepNumber.index-WLW-sVZ0.js} +2 -2
  10. package/build/client/assets/{_exerciseNumber_._stepNumber.index-DYb7kg06.js.map → _exerciseNumber_._stepNumber.index-WLW-sVZ0.js.map} +1 -1
  11. package/build/client/assets/{_exerciseNumber_.finished-CGoPhVVF.js → _exerciseNumber_.finished-DkAs61X_.js} +2 -2
  12. package/build/client/assets/_exerciseNumber_.finished-DkAs61X_.js.map +1 -0
  13. package/build/client/assets/_extra-fwsy2qkP.js +2 -0
  14. package/build/client/assets/_extra-fwsy2qkP.js.map +1 -0
  15. package/build/client/assets/_layout-BQ8VYaze.js +2 -0
  16. package/build/client/assets/_layout-BQ8VYaze.js.map +1 -0
  17. package/build/client/assets/_layout-DR0LQ06M.js +2 -0
  18. package/build/client/assets/_layout-DR0LQ06M.js.map +1 -0
  19. package/build/client/assets/{accordion-CzXT3k43.js → accordion-CQ7oujC6.js} +2 -2
  20. package/build/client/assets/{accordion-CzXT3k43.js.map → accordion-CQ7oujC6.js.map} +1 -1
  21. package/build/client/assets/{account-Cs3Te0is.js → account-C96cpeZR.js} +2 -2
  22. package/build/client/assets/{account-Cs3Te0is.js.map → account-C96cpeZR.js.map} +1 -1
  23. package/build/client/assets/app-CJniokic.js +2 -0
  24. package/build/client/assets/{app-TcFAQB2o.js.map → app-CJniokic.js.map} +1 -1
  25. package/build/client/assets/{arc-BHxP6xxO.js → arc-ChVm3d4e.js} +2 -2
  26. package/build/client/assets/{arc-BHxP6xxO.js.map → arc-ChVm3d4e.js.map} +1 -1
  27. package/build/client/assets/{architectureDiagram-VXUJARFQ-oEJHJt7x.js → architectureDiagram-VXUJARFQ-DkqyKZ50.js} +2 -2
  28. package/build/client/assets/{architectureDiagram-VXUJARFQ-oEJHJt7x.js.map → architectureDiagram-VXUJARFQ-DkqyKZ50.js.map} +1 -1
  29. package/build/client/assets/{blockDiagram-VD42YOAC-7xzSJqoM.js → blockDiagram-VD42YOAC-Cqa8Z0qT.js} +2 -2
  30. package/build/client/assets/{blockDiagram-VD42YOAC-7xzSJqoM.js.map → blockDiagram-VD42YOAC-Cqa8Z0qT.js.map} +1 -1
  31. package/build/client/assets/{button-CIlVtsau.js → button-Cd-ekki5.js} +2 -2
  32. package/build/client/assets/{button-CIlVtsau.js.map → button-Cd-ekki5.js.map} +1 -1
  33. package/build/client/assets/{c4Diagram-YG6GDRKO-BUdT9rCJ.js → c4Diagram-YG6GDRKO-BHQRSJ1P.js} +2 -2
  34. package/build/client/assets/{c4Diagram-YG6GDRKO-BUdT9rCJ.js.map → c4Diagram-YG6GDRKO-BHQRSJ1P.js.map} +1 -1
  35. package/build/client/assets/{cache-MJu_dqFS.js → cache-CAr50MIB.js} +2 -2
  36. package/build/client/assets/{cache-MJu_dqFS.js.map → cache-CAr50MIB.js.map} +1 -1
  37. package/build/client/assets/channel-B7uExpgv.js +2 -0
  38. package/build/client/assets/{channel-BLJkdd1O.js.map → channel-B7uExpgv.js.map} +1 -1
  39. package/build/client/assets/{chunk-4BX2VUAB-qrzenNNi.js → chunk-4BX2VUAB-BOJM4J9w.js} +2 -2
  40. package/build/client/assets/{chunk-4BX2VUAB-qrzenNNi.js.map → chunk-4BX2VUAB-BOJM4J9w.js.map} +1 -1
  41. package/build/client/assets/{chunk-55IACEB6-BOr0rES3.js → chunk-55IACEB6-CO_GT_87.js} +2 -2
  42. package/build/client/assets/{chunk-55IACEB6-BOr0rES3.js.map → chunk-55IACEB6-CO_GT_87.js.map} +1 -1
  43. package/build/client/assets/{chunk-B4BG7PRW-C2qQTBXm.js → chunk-B4BG7PRW-CqfZTumF.js} +2 -2
  44. package/build/client/assets/{chunk-B4BG7PRW-C2qQTBXm.js.map → chunk-B4BG7PRW-CqfZTumF.js.map} +1 -1
  45. package/build/client/assets/{chunk-DI55MBZ5-CSfEUcAq.js → chunk-DI55MBZ5-CxSXOmoK.js} +2 -2
  46. package/build/client/assets/{chunk-DI55MBZ5-CSfEUcAq.js.map → chunk-DI55MBZ5-CxSXOmoK.js.map} +1 -1
  47. package/build/client/assets/{chunk-FMBD7UC4-CyJoWksV.js → chunk-FMBD7UC4-ChHVMdVq.js} +2 -2
  48. package/build/client/assets/{chunk-FMBD7UC4-CyJoWksV.js.map → chunk-FMBD7UC4-ChHVMdVq.js.map} +1 -1
  49. package/build/client/assets/{chunk-QN33PNHL-BpbvTQdp.js → chunk-QN33PNHL-DKEBwj3f.js} +2 -2
  50. package/build/client/assets/{chunk-QN33PNHL-BpbvTQdp.js.map → chunk-QN33PNHL-DKEBwj3f.js.map} +1 -1
  51. package/build/client/assets/{chunk-QZHKN3VN-C2RN0CtQ.js → chunk-QZHKN3VN-Cu5tuE5n.js} +2 -2
  52. package/build/client/assets/{chunk-QZHKN3VN-C2RN0CtQ.js.map → chunk-QZHKN3VN-Cu5tuE5n.js.map} +1 -1
  53. package/build/client/assets/{chunk-TZMSLE5B-0z8lxtDn.js → chunk-TZMSLE5B-BpvH1fVS.js} +2 -2
  54. package/build/client/assets/{chunk-TZMSLE5B-0z8lxtDn.js.map → chunk-TZMSLE5B-BpvH1fVS.js.map} +1 -1
  55. package/build/client/assets/classDiagram-2ON5EDUG-BjjlpwdW.js +2 -0
  56. package/build/client/assets/{classDiagram-2ON5EDUG-_kfNpv_f.js.map → classDiagram-2ON5EDUG-BjjlpwdW.js.map} +1 -1
  57. package/build/client/assets/classDiagram-v2-WZHVMYZB-BjjlpwdW.js +2 -0
  58. package/build/client/assets/{classDiagram-v2-WZHVMYZB-_kfNpv_f.js.map → classDiagram-v2-WZHVMYZB-BjjlpwdW.js.map} +1 -1
  59. package/build/client/assets/clone-DRkw5ylZ.js +2 -0
  60. package/build/client/assets/{clone-CztDUJhf.js.map → clone-DRkw5ylZ.js.map} +1 -1
  61. package/build/client/assets/{cose-bilkent-S5V4N54A-DQM-J4RL.js → cose-bilkent-S5V4N54A-9tAqXXXx.js} +2 -2
  62. package/build/client/assets/{cose-bilkent-S5V4N54A-DQM-J4RL.js.map → cose-bilkent-S5V4N54A-9tAqXXXx.js.map} +1 -1
  63. package/build/client/assets/{dagre-6UL2VRFP-BdfvKPZ9.js → dagre-6UL2VRFP-DdQahM76.js} +2 -2
  64. package/build/client/assets/{dagre-6UL2VRFP-BdfvKPZ9.js.map → dagre-6UL2VRFP-DdQahM76.js.map} +1 -1
  65. package/build/client/assets/{db-x6v-Uxrh.js → db-DAnX-T3_.js} +2 -2
  66. package/build/client/assets/{db-x6v-Uxrh.js.map → db-DAnX-T3_.js.map} +1 -1
  67. package/build/client/assets/{diagram-PSM6KHXK-CgwBEb3G.js → diagram-PSM6KHXK-D2ghOCFR.js} +2 -2
  68. package/build/client/assets/{diagram-PSM6KHXK-CgwBEb3G.js.map → diagram-PSM6KHXK-D2ghOCFR.js.map} +1 -1
  69. package/build/client/assets/{diagram-QEK2KX5R-DEaXdLXz.js → diagram-QEK2KX5R-CVdPnwKa.js} +2 -2
  70. package/build/client/assets/{diagram-QEK2KX5R-DEaXdLXz.js.map → diagram-QEK2KX5R-CVdPnwKa.js.map} +1 -1
  71. package/build/client/assets/{diagram-S2PKOQOG-Dq5QQWqq.js → diagram-S2PKOQOG-ByHcRNai.js} +2 -2
  72. package/build/client/assets/{diagram-S2PKOQOG-Dq5QQWqq.js.map → diagram-S2PKOQOG-ByHcRNai.js.map} +1 -1
  73. package/build/client/assets/{dialog-DnpUg3VT.js → dialog-CzO65Z5w.js} +3 -3
  74. package/build/client/assets/{dialog-DnpUg3VT.js.map → dialog-CzO65Z5w.js.map} +1 -1
  75. package/build/client/assets/{diff-CxEbhF8Q.js → diff-BhWzqoVN.js} +2 -2
  76. package/build/client/assets/{diff-CxEbhF8Q.js.map → diff-BhWzqoVN.js.map} +1 -1
  77. package/build/client/assets/{diff-eAvgXb3f.js → diff-DC-wn6-x.js} +2 -2
  78. package/build/client/assets/{diff-eAvgXb3f.js.map → diff-DC-wn6-x.js.map} +1 -1
  79. package/build/client/assets/{discord-DlU9y5Iz.js → discord-BJkw0IrB.js} +2 -2
  80. package/build/client/assets/{discord-DlU9y5Iz.js.map → discord-BJkw0IrB.js.map} +1 -1
  81. package/build/client/assets/{discord-CuxZiU8E.js → discord-r3m19sUM.js} +2 -2
  82. package/build/client/assets/discord-r3m19sUM.js.map +1 -0
  83. package/build/client/assets/{epic-video-Bx8Ctiez.js → epic-video-8Hv_HMMr.js} +2 -2
  84. package/build/client/assets/{epic-video-Bx8Ctiez.js.map → epic-video-8Hv_HMMr.js.map} +1 -1
  85. package/build/client/assets/{epic-video-BVcJzJzi.js → epic-video-D0drHmgC.js} +2 -2
  86. package/build/client/assets/{epic-video-BVcJzJzi.js.map → epic-video-D0drHmgC.js.map} +1 -1
  87. package/build/client/assets/{erDiagram-Q2GNP2WA-CW73Zw0q.js → erDiagram-Q2GNP2WA-CBRWzQzK.js} +2 -2
  88. package/build/client/assets/{erDiagram-Q2GNP2WA-CW73Zw0q.js.map → erDiagram-Q2GNP2WA-CBRWzQzK.js.map} +1 -1
  89. package/build/client/assets/{error-boundary-DFBd6s0g.js → error-boundary-DVp6wKiz.js} +2 -2
  90. package/build/client/assets/{error-boundary-DFBd6s0g.js.map → error-boundary-DVp6wKiz.js.map} +1 -1
  91. package/build/client/assets/{finished-CmV4aFjA.js → finished-CiVHAeSV.js} +2 -2
  92. package/build/client/assets/{finished-CmV4aFjA.js.map → finished-CiVHAeSV.js.map} +1 -1
  93. package/build/client/assets/{flowDiagram-NV44I4VS-BbxV9VQf.js → flowDiagram-NV44I4VS-L32__tfK.js} +2 -2
  94. package/build/client/assets/{flowDiagram-NV44I4VS-BbxV9VQf.js.map → flowDiagram-NV44I4VS-L32__tfK.js.map} +1 -1
  95. package/build/client/assets/{ganttDiagram-JELNMOA3-CRBJBlE5.js → ganttDiagram-JELNMOA3-Dpp5PKJc.js} +2 -2
  96. package/build/client/assets/{ganttDiagram-JELNMOA3-CRBJBlE5.js.map → ganttDiagram-JELNMOA3-Dpp5PKJc.js.map} +1 -1
  97. package/build/client/assets/{gitGraphDiagram-NY62KEGX-CU0X3hfs.js → gitGraphDiagram-NY62KEGX-zn4IXANG.js} +2 -2
  98. package/build/client/assets/{gitGraphDiagram-NY62KEGX-CU0X3hfs.js.map → gitGraphDiagram-NY62KEGX-zn4IXANG.js.map} +1 -1
  99. package/build/client/assets/{graph-CEUh1UxC.js → graph-Da5nhwRG.js} +2 -2
  100. package/build/client/assets/{graph-CEUh1UxC.js.map → graph-Da5nhwRG.js.map} +1 -1
  101. package/build/client/assets/guide-Cinib8Ji.js +9 -0
  102. package/build/client/assets/guide-Cinib8Ji.js.map +1 -0
  103. package/build/client/assets/{index-D3zOGeBE.js → index-BKAVQvm5.js} +2 -2
  104. package/build/client/assets/{index-D3zOGeBE.js.map → index-BKAVQvm5.js.map} +1 -1
  105. package/build/client/assets/{index-BOhw3wcM.js → index-CJDOQ1bl.js} +2 -2
  106. package/build/client/assets/{index-BOhw3wcM.js.map → index-CJDOQ1bl.js.map} +1 -1
  107. package/build/client/assets/{index-B-9GR1C2.js → index-C_wcF1aP.js} +2 -2
  108. package/build/client/assets/{index-B-9GR1C2.js.map → index-C_wcF1aP.js.map} +1 -1
  109. package/build/client/assets/{index-BW8stNyh.js → index-CdzVFL-Z.js} +3 -3
  110. package/build/client/assets/{index-BW8stNyh.js.map → index-CdzVFL-Z.js.map} +1 -1
  111. package/build/client/assets/index-CmflCPTU.js +2 -0
  112. package/build/client/assets/index-CmflCPTU.js.map +1 -0
  113. package/build/client/assets/index-DuFMeXSm.js +2 -0
  114. package/build/client/assets/index-DuFMeXSm.js.map +1 -0
  115. package/build/client/assets/index-hhQHCvb9.js +2 -0
  116. package/build/client/assets/{index-EdNV8gTk.js.map → index-hhQHCvb9.js.map} +1 -1
  117. package/build/client/assets/{index-C_KjwKVt.js → index-ynYvVAOK.js} +2 -2
  118. package/build/client/assets/{index-C_KjwKVt.js.map → index-ynYvVAOK.js.map} +1 -1
  119. package/build/client/assets/{infoDiagram-WHAUD3N6-BplcSre1.js → infoDiagram-WHAUD3N6-CToPP1ur.js} +2 -2
  120. package/build/client/assets/{infoDiagram-WHAUD3N6-BplcSre1.js.map → infoDiagram-WHAUD3N6-CToPP1ur.js.map} +1 -1
  121. package/build/client/assets/{journeyDiagram-XKPGCS4Q-yxvCkf49.js → journeyDiagram-XKPGCS4Q-BBRpqEuF.js} +2 -2
  122. package/build/client/assets/{journeyDiagram-XKPGCS4Q-yxvCkf49.js.map → journeyDiagram-XKPGCS4Q-BBRpqEuF.js.map} +1 -1
  123. package/build/client/assets/{kanban-definition-3W4ZIXB7-DFEBMrRH.js → kanban-definition-3W4ZIXB7-CyGlZ-MK.js} +2 -2
  124. package/build/client/assets/{kanban-definition-3W4ZIXB7-DFEBMrRH.js.map → kanban-definition-3W4ZIXB7-CyGlZ-MK.js.map} +1 -1
  125. package/build/client/assets/{launch-editor-B2dmpkaO.js → launch-editor-D2exGfVu.js} +2 -2
  126. package/build/client/assets/{launch-editor-B2dmpkaO.js.map → launch-editor-D2exGfVu.js.map} +1 -1
  127. package/build/client/assets/{layout-CiHrgFnf.js → layout-CUEelucj.js} +2 -2
  128. package/build/client/assets/{layout-CiHrgFnf.js.map → layout-CUEelucj.js.map} +1 -1
  129. package/build/client/assets/{linear-C-81cvJP.js → linear-DzZ9bjHs.js} +2 -2
  130. package/build/client/assets/{linear-C-81cvJP.js.map → linear-DzZ9bjHs.js.map} +1 -1
  131. package/build/client/assets/{loading-CUydCGD3.js → loading-CDNzW5oO.js} +2 -2
  132. package/build/client/assets/{loading-CUydCGD3.js.map → loading-CDNzW5oO.js.map} +1 -1
  133. package/build/client/assets/{login-DvBmP_ce.js → login-mWjVXGbJ.js} +2 -2
  134. package/build/client/assets/{login-DvBmP_ce.js.map → login-mWjVXGbJ.js.map} +1 -1
  135. package/build/client/assets/manifest-970c9ad1.js +1 -0
  136. package/build/client/assets/{mdx-vrch0szL.js → mdx-BzyhMqFg.js} +3 -3
  137. package/build/client/assets/{mdx-vrch0szL.js.map → mdx-BzyhMqFg.js.map} +1 -1
  138. package/build/client/assets/{mermaid.core-D3y7PO8B.js → mermaid.core-BdxLLjl2.js} +5 -5
  139. package/build/client/assets/{mermaid.core-D3y7PO8B.js.map → mermaid.core-BdxLLjl2.js.map} +1 -1
  140. package/build/client/assets/{mindmap-definition-VGOIOE7T-VMZ6ZZlW.js → mindmap-definition-VGOIOE7T-DeKD8ncg.js} +2 -2
  141. package/build/client/assets/{mindmap-definition-VGOIOE7T-VMZ6ZZlW.js.map → mindmap-definition-VGOIOE7T-DeKD8ncg.js.map} +1 -1
  142. package/build/client/assets/{misc-DVYuZMjW.js → misc-W4055b-0.js} +2 -2
  143. package/build/client/assets/{misc-DVYuZMjW.js.map → misc-W4055b-0.js.map} +1 -1
  144. package/build/client/assets/{nav-chevrons-DlNUibJV.js → nav-chevrons-Dk4GtZwQ.js} +2 -2
  145. package/build/client/assets/{nav-chevrons-DlNUibJV.js.map → nav-chevrons-Dk4GtZwQ.js.map} +1 -1
  146. package/build/client/assets/{offline-videos-Do9PBh87.js → offline-videos-BP7_xJkO.js} +2 -2
  147. package/build/client/assets/{offline-videos-Do9PBh87.js.map → offline-videos-BP7_xJkO.js.map} +1 -1
  148. package/build/client/assets/{onboarding-indicator-CVwXz3Cn.js → onboarding-indicator-B-XR90_G.js} +2 -2
  149. package/build/client/assets/{onboarding-indicator-CVwXz3Cn.js.map → onboarding-indicator-B-XR90_G.js.map} +1 -1
  150. package/build/client/assets/{pieDiagram-ADFJNKIX-CKbrBdQs.js → pieDiagram-ADFJNKIX-BQ4sFDrB.js} +2 -2
  151. package/build/client/assets/{pieDiagram-ADFJNKIX-CKbrBdQs.js.map → pieDiagram-ADFJNKIX-BQ4sFDrB.js.map} +1 -1
  152. package/build/client/assets/playground-DmEAkxG1.js +2 -0
  153. package/build/client/assets/playground-DmEAkxG1.js.map +1 -0
  154. package/build/client/assets/{playground-window-D9a7P7rH.js → playground-window-x2mQ5o1O.js} +2 -2
  155. package/build/client/assets/{playground-window-D9a7P7rH.js.map → playground-window-x2mQ5o1O.js.map} +1 -1
  156. package/build/client/assets/{preferences-BCvK10k2.js → preferences-D6HQ5bK1.js} +2 -2
  157. package/build/client/assets/{preferences-BCvK10k2.js.map → preferences-D6HQ5bK1.js.map} +1 -1
  158. package/build/client/assets/{preview-CiDtuQCc.js → preview-fhmjENlm.js} +2 -2
  159. package/build/client/assets/{preview-CiDtuQCc.js.map → preview-fhmjENlm.js.map} +1 -1
  160. package/build/client/assets/{product-GLsnY1u3.js → product-CvyMpYD_.js} +2 -2
  161. package/build/client/assets/{product-GLsnY1u3.js.map → product-CvyMpYD_.js.map} +1 -1
  162. package/build/client/assets/{progress-fKsNxmmt.js → progress-ILaVQtOO.js} +2 -2
  163. package/build/client/assets/{progress-fKsNxmmt.js.map → progress-ILaVQtOO.js.map} +1 -1
  164. package/build/client/assets/{progress-bar-B27isaGl.js → progress-bar-DpWhcyhC.js} +2 -2
  165. package/build/client/assets/{progress-bar-B27isaGl.js.map → progress-bar-DpWhcyhC.js.map} +1 -1
  166. package/build/client/assets/{quadrantDiagram-AYHSOK5B-Bb5EtkPw.js → quadrantDiagram-AYHSOK5B-QnjodHfi.js} +2 -2
  167. package/build/client/assets/{quadrantDiagram-AYHSOK5B-Bb5EtkPw.js.map → quadrantDiagram-AYHSOK5B-QnjodHfi.js.map} +1 -1
  168. package/build/client/assets/{requirementDiagram-UZGBJVZJ-BNsXiFG2.js → requirementDiagram-UZGBJVZJ-mL9Oeda0.js} +2 -2
  169. package/build/client/assets/{requirementDiagram-UZGBJVZJ-BNsXiFG2.js.map → requirementDiagram-UZGBJVZJ-mL9Oeda0.js.map} +1 -1
  170. package/build/client/assets/{root-Ch373D3a.js → root-Bktp3RtN.js} +2 -2
  171. package/build/client/assets/{root-Ch373D3a.js.map → root-Bktp3RtN.js.map} +1 -1
  172. package/build/client/assets/{sankeyDiagram-TZEHDZUN-qlPqhk7P.js → sankeyDiagram-TZEHDZUN-B8_zpQVR.js} +2 -2
  173. package/build/client/assets/{sankeyDiagram-TZEHDZUN-qlPqhk7P.js.map → sankeyDiagram-TZEHDZUN-B8_zpQVR.js.map} +1 -1
  174. package/build/client/assets/{sequenceDiagram-WL72ISMW-C3d31B7K.js → sequenceDiagram-WL72ISMW-BDd5tjuk.js} +2 -2
  175. package/build/client/assets/{sequenceDiagram-WL72ISMW-C3d31B7K.js.map → sequenceDiagram-WL72ISMW-BDd5tjuk.js.map} +1 -1
  176. package/build/client/assets/{set-playground-DeMY9i7p.js → set-playground-BSGwH9dH.js} +2 -2
  177. package/build/client/assets/{set-playground-DeMY9i7p.js.map → set-playground-BSGwH9dH.js.map} +1 -1
  178. package/build/client/assets/{stateDiagram-FKZM4ZOC-C1eIQm_7.js → stateDiagram-FKZM4ZOC-DGPNpRbW.js} +2 -2
  179. package/build/client/assets/{stateDiagram-FKZM4ZOC-C1eIQm_7.js.map → stateDiagram-FKZM4ZOC-DGPNpRbW.js.map} +1 -1
  180. package/build/client/assets/stateDiagram-v2-4FDKWEC3-DxaFuKxL.js +2 -0
  181. package/build/client/assets/{stateDiagram-v2-4FDKWEC3-CAmcrDIS.js.map → stateDiagram-v2-4FDKWEC3-DxaFuKxL.js.map} +1 -1
  182. package/build/client/assets/status-indicator-C6DiLYL5.js +2 -0
  183. package/build/client/assets/status-indicator-C6DiLYL5.js.map +1 -0
  184. package/build/client/assets/tailwind-B97VvnKU.css +1 -0
  185. package/build/client/assets/test-DtQCjBBX.js +2 -0
  186. package/build/client/assets/{test-CdEKoDoS.js.map → test-DtQCjBBX.js.map} +1 -1
  187. package/build/client/assets/{tests-xD9PppmM.js → tests-fDISNsE-.js} +2 -2
  188. package/build/client/assets/{tests-xD9PppmM.js.map → tests-fDISNsE-.js.map} +1 -1
  189. package/build/client/assets/{timeline-definition-IT6M3QCI-Di_ZGPjO.js → timeline-definition-IT6M3QCI-BnMOh0dz.js} +2 -2
  190. package/build/client/assets/{timeline-definition-IT6M3QCI-Di_ZGPjO.js.map → timeline-definition-IT6M3QCI-BnMOh0dz.js.map} +1 -1
  191. package/build/client/assets/{tooltip-Chzzs4KB.js → tooltip-Tlsyx2YO.js} +2 -2
  192. package/build/client/assets/{tooltip-Chzzs4KB.js.map → tooltip-Tlsyx2YO.js.map} +1 -1
  193. package/build/client/assets/{treemap-KMMF4GRG-DZrMUxqR.js → treemap-KMMF4GRG-Ds3XkDP-.js} +2 -2
  194. package/build/client/assets/{treemap-KMMF4GRG-DZrMUxqR.js.map → treemap-KMMF4GRG-Ds3XkDP-.js.map} +1 -1
  195. package/build/client/assets/{workspace-structure-i_5Tiikk.js → workspace-structure-B6Rpl-B2.js} +2 -2
  196. package/build/client/assets/{workspace-structure-i_5Tiikk.js.map → workspace-structure-B6Rpl-B2.js.map} +1 -1
  197. package/build/client/assets/{xychartDiagram-PRI3JC2R-BxuKJVc7.js → xychartDiagram-PRI3JC2R-DH_JPNZp.js} +2 -2
  198. package/build/client/assets/{xychartDiagram-PRI3JC2R-BxuKJVc7.js.map → xychartDiagram-PRI3JC2R-DH_JPNZp.js.map} +1 -1
  199. package/build/server/index.js +690 -114
  200. package/build/server/index.js.map +1 -1
  201. package/package.json +3 -3
  202. package/build/client/assets/_exerciseNumber_.finished-CGoPhVVF.js.map +0 -1
  203. package/build/client/assets/_extra-BZPB_nWQ.js +0 -2
  204. package/build/client/assets/_extra-BZPB_nWQ.js.map +0 -1
  205. package/build/client/assets/_layout-BxQPZuW6.js +0 -2
  206. package/build/client/assets/_layout-BxQPZuW6.js.map +0 -1
  207. package/build/client/assets/_layout-yxOoJ6Yg.js +0 -2
  208. package/build/client/assets/_layout-yxOoJ6Yg.js.map +0 -1
  209. package/build/client/assets/app-TcFAQB2o.js +0 -2
  210. package/build/client/assets/channel-BLJkdd1O.js +0 -2
  211. package/build/client/assets/classDiagram-2ON5EDUG-_kfNpv_f.js +0 -2
  212. package/build/client/assets/classDiagram-v2-WZHVMYZB-_kfNpv_f.js +0 -2
  213. package/build/client/assets/clone-CztDUJhf.js +0 -2
  214. package/build/client/assets/discord-CuxZiU8E.js.map +0 -1
  215. package/build/client/assets/guide-B4wAqzq_.js +0 -9
  216. package/build/client/assets/guide-B4wAqzq_.js.map +0 -1
  217. package/build/client/assets/index-C6vQqVxz.js +0 -2
  218. package/build/client/assets/index-C6vQqVxz.js.map +0 -1
  219. package/build/client/assets/index-EdNV8gTk.js +0 -2
  220. package/build/client/assets/manifest-34df6718.js +0 -1
  221. package/build/client/assets/playground-C_aP_pE8.js +0 -2
  222. package/build/client/assets/playground-C_aP_pE8.js.map +0 -1
  223. package/build/client/assets/stateDiagram-v2-4FDKWEC3-CAmcrDIS.js +0 -2
  224. package/build/client/assets/tailwind-D_K12wB7.css +0 -1
  225. package/build/client/assets/test-CdEKoDoS.js +0 -2
@@ -1,2 +1,2 @@
1
- import{j as P}from"./jsx-runtime-C5WNSv3b.js";import{r as f,a as lt}from"./index-CqIc3cxq.js";import{r as ut,R as cn}from"./index-vDCSPjrM.js";import{c as an}from"./misc-DVYuZMjW.js";function X(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function qe(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ft(...e){return t=>{let n=!1;const o=e.map(r=>{const i=qe(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<o.length;r++){const i=o[r];typeof i=="function"?i():qe(e[r],null)}}}}function te(...e){return f.useCallback(ft(...e),e)}function jr(e,t){const n=f.createContext(t),o=i=>{const{children:s,...a}=i,c=f.useMemo(()=>a,Object.values(a));return P.jsx(n.Provider,{value:c,children:s})};o.displayName=e+"Provider";function r(i){const s=f.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[o,r]}function dt(e,t=[]){let n=[];function o(i,s){const a=f.createContext(s),c=n.length;n=[...n,s];const l=d=>{const{scope:m,children:p,...h}=d,g=m?.[e]?.[c]||a,y=f.useMemo(()=>h,Object.values(h));return P.jsx(g.Provider,{value:y,children:p})};l.displayName=i+"Provider";function u(d,m){const p=m?.[e]?.[c]||a,h=f.useContext(p);if(h)return h;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,u]}const r=()=>{const i=n.map(s=>f.createContext(s));return function(a){const c=a?.[e]||i;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return r.scopeName=e,[o,ln(r,...t)]}function ln(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const s=o.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var K=globalThis?.document?f.useLayoutEffect:()=>{},un=lt[" useId ".trim().toString()]||(()=>{}),fn=0;function dn(e){const[t,n]=f.useState(un());return K(()=>{n(o=>o??String(fn++))},[e]),e||(t?`radix-${t}`:"")}var pn=lt[" useInsertionEffect ".trim().toString()]||K;function mn({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,i,s]=hn({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:r;{const u=f.useRef(e!==void 0);f.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${o} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,o])}const l=f.useCallback(u=>{if(a){const d=gn(u)?u(e):u;d!==e&&s.current?.(d)}else i(u)},[a,e,i,s]);return[c,l]}function hn({defaultProp:e,onChange:t}){const[n,o]=f.useState(e),r=f.useRef(n),i=f.useRef(t);return pn(()=>{i.current=t},[t]),f.useEffect(()=>{r.current!==n&&(i.current?.(n),r.current=n)},[n,r]),[n,o,i]}function gn(e){return typeof e=="function"}function yn(e){const t=vn(e),n=f.forwardRef((o,r)=>{const{children:i,...s}=o,a=f.Children.toArray(i),c=a.find(xn);if(c){const l=c.props.children,u=a.map(d=>d===c?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:d);return P.jsx(t,{...s,ref:r,children:f.isValidElement(l)?f.cloneElement(l,void 0,u):null})}return P.jsx(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function vn(e){const t=f.forwardRef((n,o)=>{const{children:r,...i}=n;if(f.isValidElement(r)){const s=Cn(r),a=bn(i,r.props);return r.type!==f.Fragment&&(a.ref=o?ft(o,s):s),f.cloneElement(r,a)}return f.Children.count(r)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pt=Symbol("radix.slottable");function wn(e){const t=({children:n})=>P.jsx(P.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=pt,t}function xn(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pt}function bn(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function Cn(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var En=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Q=En.reduce((e,t)=>{const n=yn(`Primitive.${t}`),o=f.forwardRef((r,i)=>{const{asChild:s,...a}=r,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),P.jsx(c,{...a,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Pn(e,t){e&&ut.flushSync(()=>e.dispatchEvent(t))}function be(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>t.current?.(...n),[])}function Rn(e,t=globalThis?.document){const n=be(e);f.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var An="DismissableLayer",De="dismissableLayer.update",On="dismissableLayer.pointerDownOutside",Sn="dismissableLayer.focusOutside",Ke,mt=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ht=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=f.useContext(mt),[u,d]=f.useState(null),m=u?.ownerDocument??globalThis?.document,[,p]=f.useState({}),h=te(t,b=>d(b)),g=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(y),w=u?g.indexOf(u):-1,E=l.layersWithOutsidePointerEventsDisabled.size>0,x=w>=v,C=Ln(b=>{const O=b.target,M=[...l.branches].some(S=>S.contains(O));!x||M||(r?.(b),s?.(b),b.defaultPrevented||a?.())},m),A=Nn(b=>{const O=b.target;[...l.branches].some(S=>S.contains(O))||(i?.(b),s?.(b),b.defaultPrevented||a?.())},m);return Rn(b=>{w===l.layers.size-1&&(o?.(b),!b.defaultPrevented&&a&&(b.preventDefault(),a()))},m),f.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Ke=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Ze(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Ke)}},[u,m,n,l]),f.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Ze())},[u,l]),f.useEffect(()=>{const b=()=>p({});return document.addEventListener(De,b),()=>document.removeEventListener(De,b)},[]),P.jsx(Q.div,{...c,ref:h,style:{pointerEvents:E?x?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,A.onFocusCapture),onBlurCapture:X(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,C.onPointerDownCapture)})});ht.displayName=An;var Tn="DismissableLayerBranch",Dn=f.forwardRef((e,t)=>{const n=f.useContext(mt),o=f.useRef(null),r=te(t,o);return f.useEffect(()=>{const i=o.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),P.jsx(Q.div,{...e,ref:r})});Dn.displayName=Tn;function Ln(e,t=globalThis?.document){const n=be(e),o=f.useRef(!1),r=f.useRef(()=>{});return f.useEffect(()=>{const i=a=>{if(a.target&&!o.current){let c=function(){gt(On,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=c,t.addEventListener("click",r.current,{once:!0})):c()}else t.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function Nn(e,t=globalThis?.document){const n=be(e),o=f.useRef(!1);return f.useEffect(()=>{const r=i=>{i.target&&!o.current&&gt(Sn,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Ze(){const e=new CustomEvent(De);document.dispatchEvent(e)}function gt(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Pn(r,i):r.dispatchEvent(i)}var Mn="Portal",yt=f.forwardRef((e,t)=>{const{container:n,...o}=e,[r,i]=f.useState(!1);K(()=>i(!0),[]);const s=n||r&&globalThis?.document?.body;return s?cn.createPortal(P.jsx(Q.div,{...o,ref:t}),s):null});yt.displayName=Mn;function _n(e,t){return f.useReducer((n,o)=>t[n][o]??n,e)}var je=e=>{const{present:t,children:n}=e,o=kn(t),r=typeof n=="function"?n({present:o.isPresent}):f.Children.only(n),i=te(o.ref,jn(r));return typeof n=="function"||o.isPresent?f.cloneElement(r,{ref:i}):null};je.displayName="Presence";function kn(e){const[t,n]=f.useState(),o=f.useRef(null),r=f.useRef(e),i=f.useRef("none"),s=e?"mounted":"unmounted",[a,c]=_n(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=me(o.current);i.current=a==="mounted"?l:"none"},[a]),K(()=>{const l=o.current,u=r.current;if(u!==e){const m=i.current,p=me(l);e?c("MOUNT"):p==="none"||l?.display==="none"?c("UNMOUNT"):c(u&&m!==p?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),K(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=p=>{const g=me(o.current).includes(CSS.escape(p.animationName));if(p.target===t&&g&&(c("ANIMATION_END"),!r.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},m=p=>{p.target===t&&(i.current=me(o.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(l=>{o.current=l?getComputedStyle(l):null,n(l)},[])}}function me(e){return e?.animationName||"none"}function jn(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const In=["top","right","bottom","left"],Z=Math.min,$=Math.max,ye=Math.round,he=Math.floor,V=e=>({x:e,y:e}),$n={left:"right",right:"left",bottom:"top",top:"bottom"},Fn={start:"end",end:"start"};function Le(e,t,n){return $(e,Z(t,n))}function G(e,t){return typeof e=="function"?e(t):e}function q(e){return e.split("-")[0]}function ie(e){return e.split("-")[1]}function Ie(e){return e==="x"?"y":"x"}function $e(e){return e==="y"?"height":"width"}const Hn=new Set(["top","bottom"]);function z(e){return Hn.has(q(e))?"y":"x"}function Fe(e){return Ie(z(e))}function Wn(e,t,n){n===void 0&&(n=!1);const o=ie(e),r=Fe(e),i=$e(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ve(s)),[s,ve(s)]}function Bn(e){const t=ve(e);return[Ne(e),t,Ne(t)]}function Ne(e){return e.replace(/start|end/g,t=>Fn[t])}const Je=["left","right"],Qe=["right","left"],zn=["top","bottom"],Vn=["bottom","top"];function Un(e,t,n){switch(e){case"top":case"bottom":return n?t?Qe:Je:t?Je:Qe;case"left":case"right":return t?zn:Vn;default:return[]}}function Yn(e,t,n,o){const r=ie(e);let i=Un(q(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(Ne)))),i}function ve(e){return e.replace(/left|right|bottom|top/g,t=>$n[t])}function Xn(e){return{top:0,right:0,bottom:0,left:0,...e}}function vt(e){return typeof e!="number"?Xn(e):{top:e,right:e,bottom:e,left:e}}function we(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function et(e,t,n){let{reference:o,floating:r}=e;const i=z(t),s=Fe(t),a=$e(s),c=q(t),l=i==="y",u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,m=o[a]/2-r[a]/2;let p;switch(c){case"top":p={x:u,y:o.y-r.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(ie(t)){case"start":p[s]-=m*(n&&l?-1:1);break;case"end":p[s]+=m*(n&&l?-1:1);break}return p}const Gn=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=et(l,o,c),m=o,p={},h=0;for(let g=0;g<a.length;g++){const{name:y,fn:v}=a[g],{x:w,y:E,data:x,reset:C}=await v({x:u,y:d,initialPlacement:o,placement:m,strategy:r,middlewareData:p,rects:l,platform:s,elements:{reference:e,floating:t}});u=w??u,d=E??d,p={...p,[y]:{...p[y],...x}},C&&h<=50&&(h++,typeof C=="object"&&(C.placement&&(m=C.placement),C.rects&&(l=C.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):C.rects),{x:u,y:d}=et(l,m,c)),g=-1)}return{x:u,y:d,placement:m,strategy:r,middlewareData:p}};async function ae(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=G(t,e),h=vt(p),y=a[m?d==="floating"?"reference":"floating":d],v=we(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),w=d==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement(E))?await(i.getScale==null?void 0:i.getScale(E))||{x:1,y:1}:{x:1,y:1},C=we(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:E,strategy:c}):w);return{top:(v.top-C.top+h.top)/x.y,bottom:(C.bottom-v.bottom+h.bottom)/x.y,left:(v.left-C.left+h.left)/x.x,right:(C.right-v.right+h.right)/x.x}}const qn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=G(e,t)||{};if(l==null)return{};const d=vt(u),m={x:n,y:o},p=Fe(r),h=$e(p),g=await s.getDimensions(l),y=p==="y",v=y?"top":"left",w=y?"bottom":"right",E=y?"clientHeight":"clientWidth",x=i.reference[h]+i.reference[p]-m[p]-i.floating[h],C=m[p]-i.reference[p],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let b=A?A[E]:0;(!b||!await(s.isElement==null?void 0:s.isElement(A)))&&(b=a.floating[E]||i.floating[h]);const O=x/2-C/2,M=b/2-g[h]/2-1,S=Z(d[v],M),k=Z(d[w],M),j=S,D=b-g[h]-k,T=b/2-g[h]/2+O,I=Le(j,T,D),L=!c.arrow&&ie(r)!=null&&T!==I&&i.reference[h]/2-(T<j?S:k)-g[h]/2<0,N=L?T<j?T-j:T-D:0;return{[p]:m[p]+N,data:{[p]:I,centerOffset:T-I-N,...L&&{alignmentOffset:N}},reset:L}}}),Kn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...y}=G(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=q(r),w=z(a),E=q(a)===a,x=await(c.isRTL==null?void 0:c.isRTL(l.floating)),C=m||(E||!g?[ve(a)]:Bn(a)),A=h!=="none";!m&&A&&C.push(...Yn(a,g,h,x));const b=[a,...C],O=await ae(t,y),M=[];let S=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&M.push(O[v]),d){const T=Wn(r,s,x);M.push(O[T[0]],O[T[1]])}if(S=[...S,{placement:r,overflows:M}],!M.every(T=>T<=0)){var k,j;const T=(((k=i.flip)==null?void 0:k.index)||0)+1,I=b[T];if(I&&(!(d==="alignment"?w!==z(I):!1)||S.every(R=>z(R.placement)===w?R.overflows[0]>0:!0)))return{data:{index:T,overflows:S},reset:{placement:I}};let L=(j=S.filter(N=>N.overflows[0]<=0).sort((N,R)=>N.overflows[1]-R.overflows[1])[0])==null?void 0:j.placement;if(!L)switch(p){case"bestFit":{var D;const N=(D=S.filter(R=>{if(A){const _=z(R.placement);return _===w||_==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(_=>_>0).reduce((_,B)=>_+B,0)]).sort((R,_)=>R[1]-_[1])[0])==null?void 0:D[0];N&&(L=N);break}case"initialPlacement":L=a;break}if(r!==L)return{reset:{placement:L}}}return{}}}};function tt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function nt(e){return In.some(t=>e[t]>=0)}const Zn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=G(e,t);switch(o){case"referenceHidden":{const i=await ae(t,{...r,elementContext:"reference"}),s=tt(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:nt(s)}}}case"escaped":{const i=await ae(t,{...r,altBoundary:!0}),s=tt(i,n.floating);return{data:{escapedOffsets:s,escaped:nt(s)}}}default:return{}}}}},wt=new Set(["left","top"]);async function Jn(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=q(n),a=ie(n),c=z(n)==="y",l=wt.has(s)?-1:1,u=i&&c?-1:1,d=G(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof h=="number"&&(p=a==="end"?h*-1:h),c?{x:p*u,y:m*l}:{x:m*l,y:p*u}}const Qn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,c=await Jn(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:s}}}}},eo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:v,y:w}=y;return{x:v,y:w}}},...c}=G(e,t),l={x:n,y:o},u=await ae(t,c),d=z(q(r)),m=Ie(d);let p=l[m],h=l[d];if(i){const y=m==="y"?"top":"left",v=m==="y"?"bottom":"right",w=p+u[y],E=p-u[v];p=Le(w,p,E)}if(s){const y=d==="y"?"top":"left",v=d==="y"?"bottom":"right",w=h+u[y],E=h-u[v];h=Le(w,h,E)}const g=a.fn({...t,[m]:p,[d]:h});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[m]:i,[d]:s}}}}}},to=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=G(e,t),u={x:n,y:o},d=z(r),m=Ie(d);let p=u[m],h=u[d];const g=G(a,t),y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const E=m==="y"?"height":"width",x=i.reference[m]-i.floating[E]+y.mainAxis,C=i.reference[m]+i.reference[E]-y.mainAxis;p<x?p=x:p>C&&(p=C)}if(l){var v,w;const E=m==="y"?"width":"height",x=wt.has(q(r)),C=i.reference[d]-i.floating[E]+(x&&((v=s.offset)==null?void 0:v[d])||0)+(x?0:y.crossAxis),A=i.reference[d]+i.reference[E]+(x?0:((w=s.offset)==null?void 0:w[d])||0)-(x?y.crossAxis:0);h<C?h=C:h>A&&(h=A)}return{[m]:p,[d]:h}}}},no=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...l}=G(e,t),u=await ae(t,l),d=q(r),m=ie(r),p=z(r)==="y",{width:h,height:g}=i.floating;let y,v;d==="top"||d==="bottom"?(y=d,v=m===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,y=m==="end"?"top":"bottom");const w=g-u.top-u.bottom,E=h-u.left-u.right,x=Z(g-u[y],w),C=Z(h-u[v],E),A=!t.middlewareData.shift;let b=x,O=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=E),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(b=w),A&&!m){const S=$(u.left,0),k=$(u.right,0),j=$(u.top,0),D=$(u.bottom,0);p?O=h-2*(S!==0||k!==0?S+k:$(u.left,u.right)):b=g-2*(j!==0||D!==0?j+D:$(u.top,u.bottom))}await c({...t,availableWidth:O,availableHeight:b});const M=await s.getDimensions(a.floating);return h!==M.width||g!==M.height?{reset:{rects:!0}}:{}}}};function Ce(){return typeof window<"u"}function se(e){return xt(e)?(e.nodeName||"").toLowerCase():"#document"}function F(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Y(e){var t;return(t=(xt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xt(e){return Ce()?e instanceof Node||e instanceof F(e).Node:!1}function H(e){return Ce()?e instanceof Element||e instanceof F(e).Element:!1}function U(e){return Ce()?e instanceof HTMLElement||e instanceof F(e).HTMLElement:!1}function ot(e){return!Ce()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof F(e).ShadowRoot}const oo=new Set(["inline","contents"]);function fe(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=W(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!oo.has(r)}const ro=new Set(["table","td","th"]);function io(e){return ro.has(se(e))}const so=[":popover-open",":modal"];function Ee(e){return so.some(t=>{try{return e.matches(t)}catch{return!1}})}const co=["transform","translate","scale","rotate","perspective"],ao=["transform","translate","scale","rotate","perspective","filter"],lo=["paint","layout","strict","content"];function He(e){const t=We(),n=H(e)?W(e):e;return co.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||ao.some(o=>(n.willChange||"").includes(o))||lo.some(o=>(n.contain||"").includes(o))}function uo(e){let t=J(e);for(;U(t)&&!oe(t);){if(He(t))return t;if(Ee(t))return null;t=J(t)}return null}function We(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const fo=new Set(["html","body","#document"]);function oe(e){return fo.has(se(e))}function W(e){return F(e).getComputedStyle(e)}function Pe(e){return H(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function J(e){if(se(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ot(e)&&e.host||Y(e);return ot(t)?t.host:t}function bt(e){const t=J(e);return oe(t)?e.ownerDocument?e.ownerDocument.body:e.body:U(t)&&fe(t)?t:bt(t)}function le(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=bt(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=F(r);if(i){const a=Me(s);return t.concat(s,s.visualViewport||[],fe(r)?r:[],a&&n?le(a):[])}return t.concat(r,le(r,[],n))}function Me(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ct(e){const t=W(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=U(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=ye(n)!==i||ye(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function Be(e){return H(e)?e:e.contextElement}function ne(e){const t=Be(e);if(!U(t))return V(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=Ct(t);let s=(i?ye(n.width):n.width)/o,a=(i?ye(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const po=V(0);function Et(e){const t=F(e);return!We()||!t.visualViewport?po:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function mo(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==F(e)?!1:t}function ee(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Be(e);let s=V(1);t&&(o?H(o)&&(s=ne(o)):s=ne(e));const a=mo(i,n,o)?Et(i):V(0);let c=(r.left+a.x)/s.x,l=(r.top+a.y)/s.y,u=r.width/s.x,d=r.height/s.y;if(i){const m=F(i),p=o&&H(o)?F(o):o;let h=m,g=Me(h);for(;g&&o&&p!==h;){const y=ne(g),v=g.getBoundingClientRect(),w=W(g),E=v.left+(g.clientLeft+parseFloat(w.paddingLeft))*y.x,x=v.top+(g.clientTop+parseFloat(w.paddingTop))*y.y;c*=y.x,l*=y.y,u*=y.x,d*=y.y,c+=E,l+=x,h=F(g),g=Me(h)}}return we({width:u,height:d,x:c,y:l})}function Re(e,t){const n=Pe(e).scrollLeft;return t?t.left+n:ee(Y(e)).left+n}function Pt(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Re(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function ho(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=Y(o),a=t?Ee(t.floating):!1;if(o===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=V(1);const u=V(0),d=U(o);if((d||!d&&!i)&&((se(o)!=="body"||fe(s))&&(c=Pe(o)),U(o))){const p=ee(o);l=ne(o),u.x=p.x+o.clientLeft,u.y=p.y+o.clientTop}const m=s&&!d&&!i?Pt(s,c):V(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+m.x,y:n.y*l.y-c.scrollTop*l.y+u.y+m.y}}function go(e){return Array.from(e.getClientRects())}function yo(e){const t=Y(e),n=Pe(e),o=e.ownerDocument.body,r=$(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=$(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Re(e);const a=-n.scrollTop;return W(o).direction==="rtl"&&(s+=$(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:a}}const rt=25;function vo(e,t){const n=F(e),o=Y(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,c=0;if(r){i=r.width,s=r.height;const u=We();(!u||u&&t==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}const l=Re(o);if(l<=0){const u=o.ownerDocument,d=u.body,m=getComputedStyle(d),p=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,h=Math.abs(o.clientWidth-d.clientWidth-p);h<=rt&&(i-=h)}else l<=rt&&(i+=l);return{width:i,height:s,x:a,y:c}}const wo=new Set(["absolute","fixed"]);function xo(e,t){const n=ee(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=U(e)?ne(e):V(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=r*i.x,l=o*i.y;return{width:s,height:a,x:c,y:l}}function it(e,t,n){let o;if(t==="viewport")o=vo(e,n);else if(t==="document")o=yo(Y(e));else if(H(t))o=xo(t,n);else{const r=Et(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return we(o)}function Rt(e,t){const n=J(e);return n===t||!H(n)||oe(n)?!1:W(n).position==="fixed"||Rt(n,t)}function bo(e,t){const n=t.get(e);if(n)return n;let o=le(e,[],!1).filter(a=>H(a)&&se(a)!=="body"),r=null;const i=W(e).position==="fixed";let s=i?J(e):e;for(;H(s)&&!oe(s);){const a=W(s),c=He(s);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&wo.has(r.position)||fe(s)&&!c&&Rt(e,s))?o=o.filter(u=>u!==s):r=a,s=J(s)}return t.set(e,o),o}function Co(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?Ee(t)?[]:bo(t,this._c):[].concat(n),o],a=s[0],c=s.reduce((l,u)=>{const d=it(t,u,r);return l.top=$(d.top,l.top),l.right=Z(d.right,l.right),l.bottom=Z(d.bottom,l.bottom),l.left=$(d.left,l.left),l},it(t,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Eo(e){const{width:t,height:n}=Ct(e);return{width:t,height:n}}function Po(e,t,n){const o=U(t),r=Y(t),i=n==="fixed",s=ee(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=V(0);function l(){c.x=Re(r)}if(o||!o&&!i)if((se(t)!=="body"||fe(r))&&(a=Pe(t)),o){const p=ee(t,!0,i,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else r&&l();i&&!o&&r&&l();const u=r&&!o&&!i?Pt(r,a):V(0),d=s.left+a.scrollLeft-c.x-u.x,m=s.top+a.scrollTop-c.y-u.y;return{x:d,y:m,width:s.width,height:s.height}}function Se(e){return W(e).position==="static"}function st(e,t){if(!U(e)||W(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Y(e)===n&&(n=n.ownerDocument.body),n}function At(e,t){const n=F(e);if(Ee(e))return n;if(!U(e)){let r=J(e);for(;r&&!oe(r);){if(H(r)&&!Se(r))return r;r=J(r)}return n}let o=st(e,t);for(;o&&io(o)&&Se(o);)o=st(o,t);return o&&oe(o)&&Se(o)&&!He(o)?n:o||uo(e)||n}const Ro=async function(e){const t=this.getOffsetParent||At,n=this.getDimensions,o=await n(e.floating);return{reference:Po(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Ao(e){return W(e).direction==="rtl"}const Oo={convertOffsetParentRelativeRectToViewportRelativeRect:ho,getDocumentElement:Y,getClippingRect:Co,getOffsetParent:At,getElementRects:Ro,getClientRects:go,getDimensions:Eo,getScale:ne,isElement:H,isRTL:Ao};function Ot(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function So(e,t){let n=null,o;const r=Y(e);function i(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:d,width:m,height:p}=l;if(a||t(),!m||!p)return;const h=he(d),g=he(r.clientWidth-(u+m)),y=he(r.clientHeight-(d+p)),v=he(u),E={rootMargin:-h+"px "+-g+"px "+-y+"px "+-v+"px",threshold:$(0,Z(1,c))||1};let x=!0;function C(A){const b=A[0].intersectionRatio;if(b!==c){if(!x)return s();b?s(!1,b):o=setTimeout(()=>{s(!1,1e-7)},1e3)}b===1&&!Ot(l,e.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(C,{...E,root:r.ownerDocument})}catch{n=new IntersectionObserver(C,E)}n.observe(e)}return s(!0),i}function To(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,l=Be(e),u=r||i?[...l?le(l):[],...le(t)]:[];u.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const d=l&&a?So(l,n):null;let m=-1,p=null;s&&(p=new ResizeObserver(v=>{let[w]=v;w&&w.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=p)==null||E.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let h,g=c?ee(e):null;c&&y();function y(){const v=ee(e);g&&!Ot(g,v)&&n(),g=v,h=requestAnimationFrame(y)}return n(),()=>{var v;u.forEach(w=>{r&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),d?.(),(v=p)==null||v.disconnect(),p=null,c&&cancelAnimationFrame(h)}}const Do=Qn,Lo=eo,No=Kn,Mo=no,_o=Zn,ct=qn,ko=to,jo=(e,t,n)=>{const o=new Map,r={platform:Oo,...n},i={...r.platform,_c:o};return Gn(e,t,{...r,platform:i})};var Io=typeof document<"u",$o=function(){},ge=Io?f.useLayoutEffect:$o;function xe(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!xe(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!xe(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function St(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function at(e,t){const n=St(e);return Math.round(t*n)/n}function Te(e){const t=f.useRef(e);return ge(()=>{t.current=e}),t}function Fo(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=f.useState(o);xe(m,o)||p(o);const[h,g]=f.useState(null),[y,v]=f.useState(null),w=f.useCallback(R=>{R!==A.current&&(A.current=R,g(R))},[]),E=f.useCallback(R=>{R!==b.current&&(b.current=R,v(R))},[]),x=i||h,C=s||y,A=f.useRef(null),b=f.useRef(null),O=f.useRef(u),M=c!=null,S=Te(c),k=Te(r),j=Te(l),D=f.useCallback(()=>{if(!A.current||!b.current)return;const R={placement:t,strategy:n,middleware:m};k.current&&(R.platform=k.current),jo(A.current,b.current,R).then(_=>{const B={..._,isPositioned:j.current!==!1};T.current&&!xe(O.current,B)&&(O.current=B,ut.flushSync(()=>{d(B)}))})},[m,t,n,k,j]);ge(()=>{l===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,d(R=>({...R,isPositioned:!1})))},[l]);const T=f.useRef(!1);ge(()=>(T.current=!0,()=>{T.current=!1}),[]),ge(()=>{if(x&&(A.current=x),C&&(b.current=C),x&&C){if(S.current)return S.current(x,C,D);D()}},[x,C,D,S,M]);const I=f.useMemo(()=>({reference:A,floating:b,setReference:w,setFloating:E}),[w,E]),L=f.useMemo(()=>({reference:x,floating:C}),[x,C]),N=f.useMemo(()=>{const R={position:n,left:0,top:0};if(!L.floating)return R;const _=at(L.floating,u.x),B=at(L.floating,u.y);return a?{...R,transform:"translate("+_+"px, "+B+"px)",...St(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:B}},[n,a,L.floating,u.x,u.y]);return f.useMemo(()=>({...u,update:D,refs:I,elements:L,floatingStyles:N}),[u,D,I,L,N])}const Ho=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?ct({element:o.current,padding:r}).fn(n):{}:o?ct({element:o,padding:r}).fn(n):{}}}},Wo=(e,t)=>({...Do(e),options:[e,t]}),Bo=(e,t)=>({...Lo(e),options:[e,t]}),zo=(e,t)=>({...ko(e),options:[e,t]}),Vo=(e,t)=>({...No(e),options:[e,t]}),Uo=(e,t)=>({...Mo(e),options:[e,t]}),Yo=(e,t)=>({..._o(e),options:[e,t]}),Xo=(e,t)=>({...Ho(e),options:[e,t]});var Go="Arrow",Tt=f.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...i}=e;return P.jsx(Q.svg,{...i,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:P.jsx("polygon",{points:"0,0 30,0 15,10"})})});Tt.displayName=Go;var qo=Tt;function Ko(e){const[t,n]=f.useState(void 0);return K(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var ze="Popper",[Dt,Lt]=dt(ze),[Zo,Nt]=Dt(ze),Mt=e=>{const{__scopePopper:t,children:n}=e,[o,r]=f.useState(null);return P.jsx(Zo,{scope:t,anchor:o,onAnchorChange:r,children:n})};Mt.displayName=ze;var _t="PopperAnchor",kt=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,i=Nt(_t,n),s=f.useRef(null),a=te(t,s),c=f.useRef(null);return f.useEffect(()=>{const l=c.current;c.current=o?.current||s.current,l!==c.current&&i.onAnchorChange(c.current)}),o?null:P.jsx(Q.div,{...r,ref:a})});kt.displayName=_t;var Ve="PopperContent",[Jo,Qo]=Dt(Ve),jt=f.forwardRef((e,t)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:m=!1,updatePositionStrategy:p="optimized",onPlaced:h,...g}=e,y=Nt(Ve,n),[v,w]=f.useState(null),E=te(t,ce=>w(ce)),[x,C]=f.useState(null),A=Ko(x),b=A?.width??0,O=A?.height??0,M=o+(i!=="center"?"-"+i:""),S=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},k=Array.isArray(l)?l:[l],j=k.length>0,D={padding:S,boundary:k.filter(tr),altBoundary:j},{refs:T,floatingStyles:I,placement:L,isPositioned:N,middlewareData:R}=Fo({strategy:"fixed",placement:M,whileElementsMounted:(...ce)=>To(...ce,{animationFrame:p==="always"}),elements:{reference:y.anchor},middleware:[Wo({mainAxis:r+O,alignmentAxis:s}),c&&Bo({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?zo():void 0,...D}),c&&Vo({...D}),Uo({...D,apply:({elements:ce,rects:Ge,availableWidth:nn,availableHeight:on})=>{const{width:rn,height:sn}=Ge.reference,pe=ce.floating.style;pe.setProperty("--radix-popper-available-width",`${nn}px`),pe.setProperty("--radix-popper-available-height",`${on}px`),pe.setProperty("--radix-popper-anchor-width",`${rn}px`),pe.setProperty("--radix-popper-anchor-height",`${sn}px`)}}),x&&Xo({element:x,padding:a}),nr({arrowWidth:b,arrowHeight:O}),m&&Yo({strategy:"referenceHidden",...D})]}),[_,B]=Ft(L),Xe=be(h);K(()=>{N&&Xe?.()},[N,Xe]);const Zt=R.arrow?.x,Jt=R.arrow?.y,Qt=R.arrow?.centerOffset!==0,[en,tn]=f.useState();return K(()=>{v&&tn(window.getComputedStyle(v).zIndex)},[v]),P.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...I,transform:N?I.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:en,"--radix-popper-transform-origin":[R.transformOrigin?.x,R.transformOrigin?.y].join(" "),...R.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:P.jsx(Jo,{scope:n,placedSide:_,onArrowChange:C,arrowX:Zt,arrowY:Jt,shouldHideArrow:Qt,children:P.jsx(Q.div,{"data-side":_,"data-align":B,...g,ref:E,style:{...g.style,animation:N?void 0:"none"}})})})});jt.displayName=Ve;var It="PopperArrow",er={top:"bottom",right:"left",bottom:"top",left:"right"},$t=f.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,i=Qo(It,o),s=er[i.placedSide];return P.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:P.jsx(qo,{...r,ref:n,style:{...r.style,display:"block"}})})});$t.displayName=It;function tr(e){return e!==null}var nr=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,s=r.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[l,u]=Ft(n),d={start:"0%",center:"50%",end:"100%"}[u],m=(r.arrow?.x??0)+a/2,p=(r.arrow?.y??0)+c/2;let h="",g="";return l==="bottom"?(h=s?d:`${m}px`,g=`${-c}px`):l==="top"?(h=s?d:`${m}px`,g=`${o.floating.height+c}px`):l==="right"?(h=`${-c}px`,g=s?d:`${p}px`):l==="left"&&(h=`${o.floating.width+c}px`,g=s?d:`${p}px`),{data:{x:h,y:g}}}});function Ft(e){const[t,n="center"]=e.split("-");return[t,n]}var or=Mt,rr=kt,ir=jt,sr=$t,cr=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"}),ar="VisuallyHidden",Ht=f.forwardRef((e,t)=>P.jsx(Q.span,{...e,ref:t,style:{...cr,...e.style}}));Ht.displayName=ar;var lr=Ht,[Ae]=dt("Tooltip",[Lt]),Oe=Lt(),Wt="TooltipProvider",ur=700,_e="tooltip.open",[fr,Ue]=Ae(Wt),Bt=e=>{const{__scopeTooltip:t,delayDuration:n=ur,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:i}=e,s=f.useRef(!0),a=f.useRef(!1),c=f.useRef(0);return f.useEffect(()=>{const l=c.current;return()=>window.clearTimeout(l)},[]),P.jsx(fr,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,o)},[o]),isPointerInTransitRef:a,onPointerInTransitChange:f.useCallback(l=>{a.current=l},[]),disableHoverableContent:r,children:i})};Bt.displayName=Wt;var ue="Tooltip",[dr,de]=Ae(ue),zt=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,c=Ue(ue,e.__scopeTooltip),l=Oe(t),[u,d]=f.useState(null),m=dn(),p=f.useRef(0),h=s??c.disableHoverableContent,g=a??c.delayDuration,y=f.useRef(!1),[v,w]=mn({prop:o,defaultProp:r??!1,onChange:b=>{b?(c.onOpen(),document.dispatchEvent(new CustomEvent(_e))):c.onClose(),i?.(b)},caller:ue}),E=f.useMemo(()=>v?y.current?"delayed-open":"instant-open":"closed",[v]),x=f.useCallback(()=>{window.clearTimeout(p.current),p.current=0,y.current=!1,w(!0)},[w]),C=f.useCallback(()=>{window.clearTimeout(p.current),p.current=0,w(!1)},[w]),A=f.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{y.current=!0,w(!0),p.current=0},g)},[g,w]);return f.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),P.jsx(or,{...l,children:P.jsx(dr,{scope:t,contentId:m,open:v,stateAttribute:E,trigger:u,onTriggerChange:d,onTriggerEnter:f.useCallback(()=>{c.isOpenDelayedRef.current?A():x()},[c.isOpenDelayedRef,A,x]),onTriggerLeave:f.useCallback(()=>{h?C():(window.clearTimeout(p.current),p.current=0)},[C,h]),onOpen:x,onClose:C,disableHoverableContent:h,children:n})})};zt.displayName=ue;var ke="TooltipTrigger",Vt=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=de(ke,n),i=Ue(ke,n),s=Oe(n),a=f.useRef(null),c=te(t,a,r.onTriggerChange),l=f.useRef(!1),u=f.useRef(!1),d=f.useCallback(()=>l.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),P.jsx(rr,{asChild:!0,...s,children:P.jsx(Q.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:c,onPointerMove:X(e.onPointerMove,m=>{m.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),u.current=!0)}),onPointerLeave:X(e.onPointerLeave,()=>{r.onTriggerLeave(),u.current=!1}),onPointerDown:X(e.onPointerDown,()=>{r.open&&r.onClose(),l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:X(e.onFocus,()=>{l.current||r.onOpen()}),onBlur:X(e.onBlur,r.onClose),onClick:X(e.onClick,r.onClose)})})});Vt.displayName=ke;var Ye="TooltipPortal",[pr,mr]=Ae(Ye,{forceMount:void 0}),Ut=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:r}=e,i=de(Ye,t);return P.jsx(pr,{scope:t,forceMount:n,children:P.jsx(je,{present:n||i.open,children:P.jsx(yt,{asChild:!0,container:r,children:o})})})};Ut.displayName=Ye;var re="TooltipContent",Yt=f.forwardRef((e,t)=>{const n=mr(re,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...i}=e,s=de(re,e.__scopeTooltip);return P.jsx(je,{present:o||s.open,children:s.disableHoverableContent?P.jsx(Xt,{side:r,...i,ref:t}):P.jsx(hr,{side:r,...i,ref:t})})}),hr=f.forwardRef((e,t)=>{const n=de(re,e.__scopeTooltip),o=Ue(re,e.__scopeTooltip),r=f.useRef(null),i=te(t,r),[s,a]=f.useState(null),{trigger:c,onClose:l}=n,u=r.current,{onPointerInTransitChange:d}=o,m=f.useCallback(()=>{a(null),d(!1)},[d]),p=f.useCallback((h,g)=>{const y=h.currentTarget,v={x:h.clientX,y:h.clientY},w=xr(v,y.getBoundingClientRect()),E=br(v,w),x=Cr(g.getBoundingClientRect()),C=Pr([...E,...x]);a(C),d(!0)},[d]);return f.useEffect(()=>()=>m(),[m]),f.useEffect(()=>{if(c&&u){const h=y=>p(y,u),g=y=>p(y,c);return c.addEventListener("pointerleave",h),u.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",g)}}},[c,u,p,m]),f.useEffect(()=>{if(s){const h=g=>{const y=g.target,v={x:g.clientX,y:g.clientY},w=c?.contains(y)||u?.contains(y),E=!Er(v,s);w?m():E&&(m(),l())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[c,u,s,l,m]),P.jsx(Xt,{...e,ref:i})}),[gr,yr]=Ae(ue,{isInside:!1}),vr=wn("TooltipContent"),Xt=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,c=de(re,n),l=Oe(n),{onClose:u}=c;return f.useEffect(()=>(document.addEventListener(_e,u),()=>document.removeEventListener(_e,u)),[u]),f.useEffect(()=>{if(c.trigger){const d=m=>{m.target?.contains(c.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,u]),P.jsx(ht,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:P.jsxs(ir,{"data-state":c.stateAttribute,...l,...a,ref:t,style:{...a.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:[P.jsx(vr,{children:o}),P.jsx(gr,{scope:n,isInside:!0,children:P.jsx(lr,{id:c.contentId,role:"tooltip",children:r||o})})]})})});Yt.displayName=re;var Gt="TooltipArrow",wr=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Oe(n);return yr(Gt,n).isInside?null:P.jsx(sr,{...r,...o,ref:t})});wr.displayName=Gt;function xr(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,o,r,i)){case i:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function br(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function Cr(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function Er(e,t){const{x:n,y:o}=e;let r=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],c=t[s],l=a.x,u=a.y,d=c.x,m=c.y;u>o!=m>o&&n<(d-l)*(o-u)/(m-u)+l&&(r=!r)}return r}function Pr(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),Rr(t)}function Rr(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Ar=Bt,Or=zt,Sr=Vt,Tr=Ut,qt=Yt;const Ir=Ar,Dr=Or,Lr=Sr;function Kt({className:e,sideOffset:t=4,side:n="top",ref:o,...r}){return P.jsx(Tr,{children:P.jsx(qt,{ref:o,side:n,sideOffset:t,className:an("bg-popover text-popover-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 overflow-hidden rounded-md border px-3 py-1.5 text-sm shadow-md",e),...r})})}Kt.displayName=qt.displayName;function $r({content:e,children:t,side:n="top"}){return e?P.jsxs(Dr,{children:[P.jsx(Lr,{asChild:!0,children:t}),P.jsx(Kt,{side:n,children:e})]}):t}export{rr as A,ir as C,ht as D,Q as P,or as R,$r as S,Dr as T,cr as V,Lr as a,Kt as b,dt as c,dn as d,te as e,X as f,je as g,yt as h,yn as i,jr as j,Ir as k,Lt as l,sr as m,K as n,be as o,mn as u};
2
- //# sourceMappingURL=tooltip-Chzzs4KB.js.map
1
+ import{j as P}from"./jsx-runtime-C5WNSv3b.js";import{r as f,a as lt}from"./index-CqIc3cxq.js";import{r as ut,R as cn}from"./index-vDCSPjrM.js";import{c as an}from"./misc-W4055b-0.js";function X(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function qe(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ft(...e){return t=>{let n=!1;const o=e.map(r=>{const i=qe(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<o.length;r++){const i=o[r];typeof i=="function"?i():qe(e[r],null)}}}}function te(...e){return f.useCallback(ft(...e),e)}function jr(e,t){const n=f.createContext(t),o=i=>{const{children:s,...a}=i,c=f.useMemo(()=>a,Object.values(a));return P.jsx(n.Provider,{value:c,children:s})};o.displayName=e+"Provider";function r(i){const s=f.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[o,r]}function dt(e,t=[]){let n=[];function o(i,s){const a=f.createContext(s),c=n.length;n=[...n,s];const l=d=>{const{scope:m,children:p,...h}=d,g=m?.[e]?.[c]||a,y=f.useMemo(()=>h,Object.values(h));return P.jsx(g.Provider,{value:y,children:p})};l.displayName=i+"Provider";function u(d,m){const p=m?.[e]?.[c]||a,h=f.useContext(p);if(h)return h;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,u]}const r=()=>{const i=n.map(s=>f.createContext(s));return function(a){const c=a?.[e]||i;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return r.scopeName=e,[o,ln(r,...t)]}function ln(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const s=o.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var K=globalThis?.document?f.useLayoutEffect:()=>{},un=lt[" useId ".trim().toString()]||(()=>{}),fn=0;function dn(e){const[t,n]=f.useState(un());return K(()=>{n(o=>o??String(fn++))},[e]),e||(t?`radix-${t}`:"")}var pn=lt[" useInsertionEffect ".trim().toString()]||K;function mn({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,i,s]=hn({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:r;{const u=f.useRef(e!==void 0);f.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${o} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,o])}const l=f.useCallback(u=>{if(a){const d=gn(u)?u(e):u;d!==e&&s.current?.(d)}else i(u)},[a,e,i,s]);return[c,l]}function hn({defaultProp:e,onChange:t}){const[n,o]=f.useState(e),r=f.useRef(n),i=f.useRef(t);return pn(()=>{i.current=t},[t]),f.useEffect(()=>{r.current!==n&&(i.current?.(n),r.current=n)},[n,r]),[n,o,i]}function gn(e){return typeof e=="function"}function yn(e){const t=vn(e),n=f.forwardRef((o,r)=>{const{children:i,...s}=o,a=f.Children.toArray(i),c=a.find(xn);if(c){const l=c.props.children,u=a.map(d=>d===c?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:d);return P.jsx(t,{...s,ref:r,children:f.isValidElement(l)?f.cloneElement(l,void 0,u):null})}return P.jsx(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function vn(e){const t=f.forwardRef((n,o)=>{const{children:r,...i}=n;if(f.isValidElement(r)){const s=Cn(r),a=bn(i,r.props);return r.type!==f.Fragment&&(a.ref=o?ft(o,s):s),f.cloneElement(r,a)}return f.Children.count(r)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pt=Symbol("radix.slottable");function wn(e){const t=({children:n})=>P.jsx(P.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=pt,t}function xn(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pt}function bn(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function Cn(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var En=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Q=En.reduce((e,t)=>{const n=yn(`Primitive.${t}`),o=f.forwardRef((r,i)=>{const{asChild:s,...a}=r,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),P.jsx(c,{...a,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Pn(e,t){e&&ut.flushSync(()=>e.dispatchEvent(t))}function be(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>t.current?.(...n),[])}function Rn(e,t=globalThis?.document){const n=be(e);f.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var An="DismissableLayer",De="dismissableLayer.update",On="dismissableLayer.pointerDownOutside",Sn="dismissableLayer.focusOutside",Ke,mt=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ht=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=f.useContext(mt),[u,d]=f.useState(null),m=u?.ownerDocument??globalThis?.document,[,p]=f.useState({}),h=te(t,b=>d(b)),g=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(y),w=u?g.indexOf(u):-1,E=l.layersWithOutsidePointerEventsDisabled.size>0,x=w>=v,C=Ln(b=>{const O=b.target,M=[...l.branches].some(S=>S.contains(O));!x||M||(r?.(b),s?.(b),b.defaultPrevented||a?.())},m),A=Nn(b=>{const O=b.target;[...l.branches].some(S=>S.contains(O))||(i?.(b),s?.(b),b.defaultPrevented||a?.())},m);return Rn(b=>{w===l.layers.size-1&&(o?.(b),!b.defaultPrevented&&a&&(b.preventDefault(),a()))},m),f.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Ke=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Ze(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Ke)}},[u,m,n,l]),f.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Ze())},[u,l]),f.useEffect(()=>{const b=()=>p({});return document.addEventListener(De,b),()=>document.removeEventListener(De,b)},[]),P.jsx(Q.div,{...c,ref:h,style:{pointerEvents:E?x?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,A.onFocusCapture),onBlurCapture:X(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,C.onPointerDownCapture)})});ht.displayName=An;var Tn="DismissableLayerBranch",Dn=f.forwardRef((e,t)=>{const n=f.useContext(mt),o=f.useRef(null),r=te(t,o);return f.useEffect(()=>{const i=o.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),P.jsx(Q.div,{...e,ref:r})});Dn.displayName=Tn;function Ln(e,t=globalThis?.document){const n=be(e),o=f.useRef(!1),r=f.useRef(()=>{});return f.useEffect(()=>{const i=a=>{if(a.target&&!o.current){let c=function(){gt(On,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=c,t.addEventListener("click",r.current,{once:!0})):c()}else t.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function Nn(e,t=globalThis?.document){const n=be(e),o=f.useRef(!1);return f.useEffect(()=>{const r=i=>{i.target&&!o.current&&gt(Sn,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Ze(){const e=new CustomEvent(De);document.dispatchEvent(e)}function gt(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Pn(r,i):r.dispatchEvent(i)}var Mn="Portal",yt=f.forwardRef((e,t)=>{const{container:n,...o}=e,[r,i]=f.useState(!1);K(()=>i(!0),[]);const s=n||r&&globalThis?.document?.body;return s?cn.createPortal(P.jsx(Q.div,{...o,ref:t}),s):null});yt.displayName=Mn;function _n(e,t){return f.useReducer((n,o)=>t[n][o]??n,e)}var je=e=>{const{present:t,children:n}=e,o=kn(t),r=typeof n=="function"?n({present:o.isPresent}):f.Children.only(n),i=te(o.ref,jn(r));return typeof n=="function"||o.isPresent?f.cloneElement(r,{ref:i}):null};je.displayName="Presence";function kn(e){const[t,n]=f.useState(),o=f.useRef(null),r=f.useRef(e),i=f.useRef("none"),s=e?"mounted":"unmounted",[a,c]=_n(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=me(o.current);i.current=a==="mounted"?l:"none"},[a]),K(()=>{const l=o.current,u=r.current;if(u!==e){const m=i.current,p=me(l);e?c("MOUNT"):p==="none"||l?.display==="none"?c("UNMOUNT"):c(u&&m!==p?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),K(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=p=>{const g=me(o.current).includes(CSS.escape(p.animationName));if(p.target===t&&g&&(c("ANIMATION_END"),!r.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},m=p=>{p.target===t&&(i.current=me(o.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(l=>{o.current=l?getComputedStyle(l):null,n(l)},[])}}function me(e){return e?.animationName||"none"}function jn(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const In=["top","right","bottom","left"],Z=Math.min,$=Math.max,ye=Math.round,he=Math.floor,V=e=>({x:e,y:e}),$n={left:"right",right:"left",bottom:"top",top:"bottom"},Fn={start:"end",end:"start"};function Le(e,t,n){return $(e,Z(t,n))}function G(e,t){return typeof e=="function"?e(t):e}function q(e){return e.split("-")[0]}function ie(e){return e.split("-")[1]}function Ie(e){return e==="x"?"y":"x"}function $e(e){return e==="y"?"height":"width"}const Hn=new Set(["top","bottom"]);function z(e){return Hn.has(q(e))?"y":"x"}function Fe(e){return Ie(z(e))}function Wn(e,t,n){n===void 0&&(n=!1);const o=ie(e),r=Fe(e),i=$e(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ve(s)),[s,ve(s)]}function Bn(e){const t=ve(e);return[Ne(e),t,Ne(t)]}function Ne(e){return e.replace(/start|end/g,t=>Fn[t])}const Je=["left","right"],Qe=["right","left"],zn=["top","bottom"],Vn=["bottom","top"];function Un(e,t,n){switch(e){case"top":case"bottom":return n?t?Qe:Je:t?Je:Qe;case"left":case"right":return t?zn:Vn;default:return[]}}function Yn(e,t,n,o){const r=ie(e);let i=Un(q(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(Ne)))),i}function ve(e){return e.replace(/left|right|bottom|top/g,t=>$n[t])}function Xn(e){return{top:0,right:0,bottom:0,left:0,...e}}function vt(e){return typeof e!="number"?Xn(e):{top:e,right:e,bottom:e,left:e}}function we(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function et(e,t,n){let{reference:o,floating:r}=e;const i=z(t),s=Fe(t),a=$e(s),c=q(t),l=i==="y",u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,m=o[a]/2-r[a]/2;let p;switch(c){case"top":p={x:u,y:o.y-r.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(ie(t)){case"start":p[s]-=m*(n&&l?-1:1);break;case"end":p[s]+=m*(n&&l?-1:1);break}return p}const Gn=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=et(l,o,c),m=o,p={},h=0;for(let g=0;g<a.length;g++){const{name:y,fn:v}=a[g],{x:w,y:E,data:x,reset:C}=await v({x:u,y:d,initialPlacement:o,placement:m,strategy:r,middlewareData:p,rects:l,platform:s,elements:{reference:e,floating:t}});u=w??u,d=E??d,p={...p,[y]:{...p[y],...x}},C&&h<=50&&(h++,typeof C=="object"&&(C.placement&&(m=C.placement),C.rects&&(l=C.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):C.rects),{x:u,y:d}=et(l,m,c)),g=-1)}return{x:u,y:d,placement:m,strategy:r,middlewareData:p}};async function ae(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=G(t,e),h=vt(p),y=a[m?d==="floating"?"reference":"floating":d],v=we(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),w=d==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement(E))?await(i.getScale==null?void 0:i.getScale(E))||{x:1,y:1}:{x:1,y:1},C=we(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:E,strategy:c}):w);return{top:(v.top-C.top+h.top)/x.y,bottom:(C.bottom-v.bottom+h.bottom)/x.y,left:(v.left-C.left+h.left)/x.x,right:(C.right-v.right+h.right)/x.x}}const qn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=G(e,t)||{};if(l==null)return{};const d=vt(u),m={x:n,y:o},p=Fe(r),h=$e(p),g=await s.getDimensions(l),y=p==="y",v=y?"top":"left",w=y?"bottom":"right",E=y?"clientHeight":"clientWidth",x=i.reference[h]+i.reference[p]-m[p]-i.floating[h],C=m[p]-i.reference[p],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let b=A?A[E]:0;(!b||!await(s.isElement==null?void 0:s.isElement(A)))&&(b=a.floating[E]||i.floating[h]);const O=x/2-C/2,M=b/2-g[h]/2-1,S=Z(d[v],M),k=Z(d[w],M),j=S,D=b-g[h]-k,T=b/2-g[h]/2+O,I=Le(j,T,D),L=!c.arrow&&ie(r)!=null&&T!==I&&i.reference[h]/2-(T<j?S:k)-g[h]/2<0,N=L?T<j?T-j:T-D:0;return{[p]:m[p]+N,data:{[p]:I,centerOffset:T-I-N,...L&&{alignmentOffset:N}},reset:L}}}),Kn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...y}=G(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=q(r),w=z(a),E=q(a)===a,x=await(c.isRTL==null?void 0:c.isRTL(l.floating)),C=m||(E||!g?[ve(a)]:Bn(a)),A=h!=="none";!m&&A&&C.push(...Yn(a,g,h,x));const b=[a,...C],O=await ae(t,y),M=[];let S=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&M.push(O[v]),d){const T=Wn(r,s,x);M.push(O[T[0]],O[T[1]])}if(S=[...S,{placement:r,overflows:M}],!M.every(T=>T<=0)){var k,j;const T=(((k=i.flip)==null?void 0:k.index)||0)+1,I=b[T];if(I&&(!(d==="alignment"?w!==z(I):!1)||S.every(R=>z(R.placement)===w?R.overflows[0]>0:!0)))return{data:{index:T,overflows:S},reset:{placement:I}};let L=(j=S.filter(N=>N.overflows[0]<=0).sort((N,R)=>N.overflows[1]-R.overflows[1])[0])==null?void 0:j.placement;if(!L)switch(p){case"bestFit":{var D;const N=(D=S.filter(R=>{if(A){const _=z(R.placement);return _===w||_==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(_=>_>0).reduce((_,B)=>_+B,0)]).sort((R,_)=>R[1]-_[1])[0])==null?void 0:D[0];N&&(L=N);break}case"initialPlacement":L=a;break}if(r!==L)return{reset:{placement:L}}}return{}}}};function tt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function nt(e){return In.some(t=>e[t]>=0)}const Zn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=G(e,t);switch(o){case"referenceHidden":{const i=await ae(t,{...r,elementContext:"reference"}),s=tt(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:nt(s)}}}case"escaped":{const i=await ae(t,{...r,altBoundary:!0}),s=tt(i,n.floating);return{data:{escapedOffsets:s,escaped:nt(s)}}}default:return{}}}}},wt=new Set(["left","top"]);async function Jn(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=q(n),a=ie(n),c=z(n)==="y",l=wt.has(s)?-1:1,u=i&&c?-1:1,d=G(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof h=="number"&&(p=a==="end"?h*-1:h),c?{x:p*u,y:m*l}:{x:m*l,y:p*u}}const Qn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,c=await Jn(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:s}}}}},eo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:v,y:w}=y;return{x:v,y:w}}},...c}=G(e,t),l={x:n,y:o},u=await ae(t,c),d=z(q(r)),m=Ie(d);let p=l[m],h=l[d];if(i){const y=m==="y"?"top":"left",v=m==="y"?"bottom":"right",w=p+u[y],E=p-u[v];p=Le(w,p,E)}if(s){const y=d==="y"?"top":"left",v=d==="y"?"bottom":"right",w=h+u[y],E=h-u[v];h=Le(w,h,E)}const g=a.fn({...t,[m]:p,[d]:h});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[m]:i,[d]:s}}}}}},to=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=G(e,t),u={x:n,y:o},d=z(r),m=Ie(d);let p=u[m],h=u[d];const g=G(a,t),y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const E=m==="y"?"height":"width",x=i.reference[m]-i.floating[E]+y.mainAxis,C=i.reference[m]+i.reference[E]-y.mainAxis;p<x?p=x:p>C&&(p=C)}if(l){var v,w;const E=m==="y"?"width":"height",x=wt.has(q(r)),C=i.reference[d]-i.floating[E]+(x&&((v=s.offset)==null?void 0:v[d])||0)+(x?0:y.crossAxis),A=i.reference[d]+i.reference[E]+(x?0:((w=s.offset)==null?void 0:w[d])||0)-(x?y.crossAxis:0);h<C?h=C:h>A&&(h=A)}return{[m]:p,[d]:h}}}},no=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...l}=G(e,t),u=await ae(t,l),d=q(r),m=ie(r),p=z(r)==="y",{width:h,height:g}=i.floating;let y,v;d==="top"||d==="bottom"?(y=d,v=m===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,y=m==="end"?"top":"bottom");const w=g-u.top-u.bottom,E=h-u.left-u.right,x=Z(g-u[y],w),C=Z(h-u[v],E),A=!t.middlewareData.shift;let b=x,O=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=E),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(b=w),A&&!m){const S=$(u.left,0),k=$(u.right,0),j=$(u.top,0),D=$(u.bottom,0);p?O=h-2*(S!==0||k!==0?S+k:$(u.left,u.right)):b=g-2*(j!==0||D!==0?j+D:$(u.top,u.bottom))}await c({...t,availableWidth:O,availableHeight:b});const M=await s.getDimensions(a.floating);return h!==M.width||g!==M.height?{reset:{rects:!0}}:{}}}};function Ce(){return typeof window<"u"}function se(e){return xt(e)?(e.nodeName||"").toLowerCase():"#document"}function F(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Y(e){var t;return(t=(xt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xt(e){return Ce()?e instanceof Node||e instanceof F(e).Node:!1}function H(e){return Ce()?e instanceof Element||e instanceof F(e).Element:!1}function U(e){return Ce()?e instanceof HTMLElement||e instanceof F(e).HTMLElement:!1}function ot(e){return!Ce()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof F(e).ShadowRoot}const oo=new Set(["inline","contents"]);function fe(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=W(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!oo.has(r)}const ro=new Set(["table","td","th"]);function io(e){return ro.has(se(e))}const so=[":popover-open",":modal"];function Ee(e){return so.some(t=>{try{return e.matches(t)}catch{return!1}})}const co=["transform","translate","scale","rotate","perspective"],ao=["transform","translate","scale","rotate","perspective","filter"],lo=["paint","layout","strict","content"];function He(e){const t=We(),n=H(e)?W(e):e;return co.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||ao.some(o=>(n.willChange||"").includes(o))||lo.some(o=>(n.contain||"").includes(o))}function uo(e){let t=J(e);for(;U(t)&&!oe(t);){if(He(t))return t;if(Ee(t))return null;t=J(t)}return null}function We(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const fo=new Set(["html","body","#document"]);function oe(e){return fo.has(se(e))}function W(e){return F(e).getComputedStyle(e)}function Pe(e){return H(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function J(e){if(se(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ot(e)&&e.host||Y(e);return ot(t)?t.host:t}function bt(e){const t=J(e);return oe(t)?e.ownerDocument?e.ownerDocument.body:e.body:U(t)&&fe(t)?t:bt(t)}function le(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=bt(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=F(r);if(i){const a=Me(s);return t.concat(s,s.visualViewport||[],fe(r)?r:[],a&&n?le(a):[])}return t.concat(r,le(r,[],n))}function Me(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ct(e){const t=W(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=U(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=ye(n)!==i||ye(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function Be(e){return H(e)?e:e.contextElement}function ne(e){const t=Be(e);if(!U(t))return V(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=Ct(t);let s=(i?ye(n.width):n.width)/o,a=(i?ye(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const po=V(0);function Et(e){const t=F(e);return!We()||!t.visualViewport?po:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function mo(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==F(e)?!1:t}function ee(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Be(e);let s=V(1);t&&(o?H(o)&&(s=ne(o)):s=ne(e));const a=mo(i,n,o)?Et(i):V(0);let c=(r.left+a.x)/s.x,l=(r.top+a.y)/s.y,u=r.width/s.x,d=r.height/s.y;if(i){const m=F(i),p=o&&H(o)?F(o):o;let h=m,g=Me(h);for(;g&&o&&p!==h;){const y=ne(g),v=g.getBoundingClientRect(),w=W(g),E=v.left+(g.clientLeft+parseFloat(w.paddingLeft))*y.x,x=v.top+(g.clientTop+parseFloat(w.paddingTop))*y.y;c*=y.x,l*=y.y,u*=y.x,d*=y.y,c+=E,l+=x,h=F(g),g=Me(h)}}return we({width:u,height:d,x:c,y:l})}function Re(e,t){const n=Pe(e).scrollLeft;return t?t.left+n:ee(Y(e)).left+n}function Pt(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Re(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function ho(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=Y(o),a=t?Ee(t.floating):!1;if(o===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=V(1);const u=V(0),d=U(o);if((d||!d&&!i)&&((se(o)!=="body"||fe(s))&&(c=Pe(o)),U(o))){const p=ee(o);l=ne(o),u.x=p.x+o.clientLeft,u.y=p.y+o.clientTop}const m=s&&!d&&!i?Pt(s,c):V(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+m.x,y:n.y*l.y-c.scrollTop*l.y+u.y+m.y}}function go(e){return Array.from(e.getClientRects())}function yo(e){const t=Y(e),n=Pe(e),o=e.ownerDocument.body,r=$(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=$(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Re(e);const a=-n.scrollTop;return W(o).direction==="rtl"&&(s+=$(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:a}}const rt=25;function vo(e,t){const n=F(e),o=Y(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,c=0;if(r){i=r.width,s=r.height;const u=We();(!u||u&&t==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}const l=Re(o);if(l<=0){const u=o.ownerDocument,d=u.body,m=getComputedStyle(d),p=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,h=Math.abs(o.clientWidth-d.clientWidth-p);h<=rt&&(i-=h)}else l<=rt&&(i+=l);return{width:i,height:s,x:a,y:c}}const wo=new Set(["absolute","fixed"]);function xo(e,t){const n=ee(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=U(e)?ne(e):V(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=r*i.x,l=o*i.y;return{width:s,height:a,x:c,y:l}}function it(e,t,n){let o;if(t==="viewport")o=vo(e,n);else if(t==="document")o=yo(Y(e));else if(H(t))o=xo(t,n);else{const r=Et(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return we(o)}function Rt(e,t){const n=J(e);return n===t||!H(n)||oe(n)?!1:W(n).position==="fixed"||Rt(n,t)}function bo(e,t){const n=t.get(e);if(n)return n;let o=le(e,[],!1).filter(a=>H(a)&&se(a)!=="body"),r=null;const i=W(e).position==="fixed";let s=i?J(e):e;for(;H(s)&&!oe(s);){const a=W(s),c=He(s);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&wo.has(r.position)||fe(s)&&!c&&Rt(e,s))?o=o.filter(u=>u!==s):r=a,s=J(s)}return t.set(e,o),o}function Co(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?Ee(t)?[]:bo(t,this._c):[].concat(n),o],a=s[0],c=s.reduce((l,u)=>{const d=it(t,u,r);return l.top=$(d.top,l.top),l.right=Z(d.right,l.right),l.bottom=Z(d.bottom,l.bottom),l.left=$(d.left,l.left),l},it(t,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Eo(e){const{width:t,height:n}=Ct(e);return{width:t,height:n}}function Po(e,t,n){const o=U(t),r=Y(t),i=n==="fixed",s=ee(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=V(0);function l(){c.x=Re(r)}if(o||!o&&!i)if((se(t)!=="body"||fe(r))&&(a=Pe(t)),o){const p=ee(t,!0,i,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else r&&l();i&&!o&&r&&l();const u=r&&!o&&!i?Pt(r,a):V(0),d=s.left+a.scrollLeft-c.x-u.x,m=s.top+a.scrollTop-c.y-u.y;return{x:d,y:m,width:s.width,height:s.height}}function Se(e){return W(e).position==="static"}function st(e,t){if(!U(e)||W(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Y(e)===n&&(n=n.ownerDocument.body),n}function At(e,t){const n=F(e);if(Ee(e))return n;if(!U(e)){let r=J(e);for(;r&&!oe(r);){if(H(r)&&!Se(r))return r;r=J(r)}return n}let o=st(e,t);for(;o&&io(o)&&Se(o);)o=st(o,t);return o&&oe(o)&&Se(o)&&!He(o)?n:o||uo(e)||n}const Ro=async function(e){const t=this.getOffsetParent||At,n=this.getDimensions,o=await n(e.floating);return{reference:Po(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Ao(e){return W(e).direction==="rtl"}const Oo={convertOffsetParentRelativeRectToViewportRelativeRect:ho,getDocumentElement:Y,getClippingRect:Co,getOffsetParent:At,getElementRects:Ro,getClientRects:go,getDimensions:Eo,getScale:ne,isElement:H,isRTL:Ao};function Ot(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function So(e,t){let n=null,o;const r=Y(e);function i(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:d,width:m,height:p}=l;if(a||t(),!m||!p)return;const h=he(d),g=he(r.clientWidth-(u+m)),y=he(r.clientHeight-(d+p)),v=he(u),E={rootMargin:-h+"px "+-g+"px "+-y+"px "+-v+"px",threshold:$(0,Z(1,c))||1};let x=!0;function C(A){const b=A[0].intersectionRatio;if(b!==c){if(!x)return s();b?s(!1,b):o=setTimeout(()=>{s(!1,1e-7)},1e3)}b===1&&!Ot(l,e.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(C,{...E,root:r.ownerDocument})}catch{n=new IntersectionObserver(C,E)}n.observe(e)}return s(!0),i}function To(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,l=Be(e),u=r||i?[...l?le(l):[],...le(t)]:[];u.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const d=l&&a?So(l,n):null;let m=-1,p=null;s&&(p=new ResizeObserver(v=>{let[w]=v;w&&w.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=p)==null||E.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let h,g=c?ee(e):null;c&&y();function y(){const v=ee(e);g&&!Ot(g,v)&&n(),g=v,h=requestAnimationFrame(y)}return n(),()=>{var v;u.forEach(w=>{r&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),d?.(),(v=p)==null||v.disconnect(),p=null,c&&cancelAnimationFrame(h)}}const Do=Qn,Lo=eo,No=Kn,Mo=no,_o=Zn,ct=qn,ko=to,jo=(e,t,n)=>{const o=new Map,r={platform:Oo,...n},i={...r.platform,_c:o};return Gn(e,t,{...r,platform:i})};var Io=typeof document<"u",$o=function(){},ge=Io?f.useLayoutEffect:$o;function xe(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!xe(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!xe(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function St(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function at(e,t){const n=St(e);return Math.round(t*n)/n}function Te(e){const t=f.useRef(e);return ge(()=>{t.current=e}),t}function Fo(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=f.useState(o);xe(m,o)||p(o);const[h,g]=f.useState(null),[y,v]=f.useState(null),w=f.useCallback(R=>{R!==A.current&&(A.current=R,g(R))},[]),E=f.useCallback(R=>{R!==b.current&&(b.current=R,v(R))},[]),x=i||h,C=s||y,A=f.useRef(null),b=f.useRef(null),O=f.useRef(u),M=c!=null,S=Te(c),k=Te(r),j=Te(l),D=f.useCallback(()=>{if(!A.current||!b.current)return;const R={placement:t,strategy:n,middleware:m};k.current&&(R.platform=k.current),jo(A.current,b.current,R).then(_=>{const B={..._,isPositioned:j.current!==!1};T.current&&!xe(O.current,B)&&(O.current=B,ut.flushSync(()=>{d(B)}))})},[m,t,n,k,j]);ge(()=>{l===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,d(R=>({...R,isPositioned:!1})))},[l]);const T=f.useRef(!1);ge(()=>(T.current=!0,()=>{T.current=!1}),[]),ge(()=>{if(x&&(A.current=x),C&&(b.current=C),x&&C){if(S.current)return S.current(x,C,D);D()}},[x,C,D,S,M]);const I=f.useMemo(()=>({reference:A,floating:b,setReference:w,setFloating:E}),[w,E]),L=f.useMemo(()=>({reference:x,floating:C}),[x,C]),N=f.useMemo(()=>{const R={position:n,left:0,top:0};if(!L.floating)return R;const _=at(L.floating,u.x),B=at(L.floating,u.y);return a?{...R,transform:"translate("+_+"px, "+B+"px)",...St(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:B}},[n,a,L.floating,u.x,u.y]);return f.useMemo(()=>({...u,update:D,refs:I,elements:L,floatingStyles:N}),[u,D,I,L,N])}const Ho=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?ct({element:o.current,padding:r}).fn(n):{}:o?ct({element:o,padding:r}).fn(n):{}}}},Wo=(e,t)=>({...Do(e),options:[e,t]}),Bo=(e,t)=>({...Lo(e),options:[e,t]}),zo=(e,t)=>({...ko(e),options:[e,t]}),Vo=(e,t)=>({...No(e),options:[e,t]}),Uo=(e,t)=>({...Mo(e),options:[e,t]}),Yo=(e,t)=>({..._o(e),options:[e,t]}),Xo=(e,t)=>({...Ho(e),options:[e,t]});var Go="Arrow",Tt=f.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...i}=e;return P.jsx(Q.svg,{...i,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:P.jsx("polygon",{points:"0,0 30,0 15,10"})})});Tt.displayName=Go;var qo=Tt;function Ko(e){const[t,n]=f.useState(void 0);return K(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var ze="Popper",[Dt,Lt]=dt(ze),[Zo,Nt]=Dt(ze),Mt=e=>{const{__scopePopper:t,children:n}=e,[o,r]=f.useState(null);return P.jsx(Zo,{scope:t,anchor:o,onAnchorChange:r,children:n})};Mt.displayName=ze;var _t="PopperAnchor",kt=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,i=Nt(_t,n),s=f.useRef(null),a=te(t,s),c=f.useRef(null);return f.useEffect(()=>{const l=c.current;c.current=o?.current||s.current,l!==c.current&&i.onAnchorChange(c.current)}),o?null:P.jsx(Q.div,{...r,ref:a})});kt.displayName=_t;var Ve="PopperContent",[Jo,Qo]=Dt(Ve),jt=f.forwardRef((e,t)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:m=!1,updatePositionStrategy:p="optimized",onPlaced:h,...g}=e,y=Nt(Ve,n),[v,w]=f.useState(null),E=te(t,ce=>w(ce)),[x,C]=f.useState(null),A=Ko(x),b=A?.width??0,O=A?.height??0,M=o+(i!=="center"?"-"+i:""),S=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},k=Array.isArray(l)?l:[l],j=k.length>0,D={padding:S,boundary:k.filter(tr),altBoundary:j},{refs:T,floatingStyles:I,placement:L,isPositioned:N,middlewareData:R}=Fo({strategy:"fixed",placement:M,whileElementsMounted:(...ce)=>To(...ce,{animationFrame:p==="always"}),elements:{reference:y.anchor},middleware:[Wo({mainAxis:r+O,alignmentAxis:s}),c&&Bo({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?zo():void 0,...D}),c&&Vo({...D}),Uo({...D,apply:({elements:ce,rects:Ge,availableWidth:nn,availableHeight:on})=>{const{width:rn,height:sn}=Ge.reference,pe=ce.floating.style;pe.setProperty("--radix-popper-available-width",`${nn}px`),pe.setProperty("--radix-popper-available-height",`${on}px`),pe.setProperty("--radix-popper-anchor-width",`${rn}px`),pe.setProperty("--radix-popper-anchor-height",`${sn}px`)}}),x&&Xo({element:x,padding:a}),nr({arrowWidth:b,arrowHeight:O}),m&&Yo({strategy:"referenceHidden",...D})]}),[_,B]=Ft(L),Xe=be(h);K(()=>{N&&Xe?.()},[N,Xe]);const Zt=R.arrow?.x,Jt=R.arrow?.y,Qt=R.arrow?.centerOffset!==0,[en,tn]=f.useState();return K(()=>{v&&tn(window.getComputedStyle(v).zIndex)},[v]),P.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...I,transform:N?I.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:en,"--radix-popper-transform-origin":[R.transformOrigin?.x,R.transformOrigin?.y].join(" "),...R.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:P.jsx(Jo,{scope:n,placedSide:_,onArrowChange:C,arrowX:Zt,arrowY:Jt,shouldHideArrow:Qt,children:P.jsx(Q.div,{"data-side":_,"data-align":B,...g,ref:E,style:{...g.style,animation:N?void 0:"none"}})})})});jt.displayName=Ve;var It="PopperArrow",er={top:"bottom",right:"left",bottom:"top",left:"right"},$t=f.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,i=Qo(It,o),s=er[i.placedSide];return P.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:P.jsx(qo,{...r,ref:n,style:{...r.style,display:"block"}})})});$t.displayName=It;function tr(e){return e!==null}var nr=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,s=r.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[l,u]=Ft(n),d={start:"0%",center:"50%",end:"100%"}[u],m=(r.arrow?.x??0)+a/2,p=(r.arrow?.y??0)+c/2;let h="",g="";return l==="bottom"?(h=s?d:`${m}px`,g=`${-c}px`):l==="top"?(h=s?d:`${m}px`,g=`${o.floating.height+c}px`):l==="right"?(h=`${-c}px`,g=s?d:`${p}px`):l==="left"&&(h=`${o.floating.width+c}px`,g=s?d:`${p}px`),{data:{x:h,y:g}}}});function Ft(e){const[t,n="center"]=e.split("-");return[t,n]}var or=Mt,rr=kt,ir=jt,sr=$t,cr=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"}),ar="VisuallyHidden",Ht=f.forwardRef((e,t)=>P.jsx(Q.span,{...e,ref:t,style:{...cr,...e.style}}));Ht.displayName=ar;var lr=Ht,[Ae]=dt("Tooltip",[Lt]),Oe=Lt(),Wt="TooltipProvider",ur=700,_e="tooltip.open",[fr,Ue]=Ae(Wt),Bt=e=>{const{__scopeTooltip:t,delayDuration:n=ur,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:i}=e,s=f.useRef(!0),a=f.useRef(!1),c=f.useRef(0);return f.useEffect(()=>{const l=c.current;return()=>window.clearTimeout(l)},[]),P.jsx(fr,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,o)},[o]),isPointerInTransitRef:a,onPointerInTransitChange:f.useCallback(l=>{a.current=l},[]),disableHoverableContent:r,children:i})};Bt.displayName=Wt;var ue="Tooltip",[dr,de]=Ae(ue),zt=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,c=Ue(ue,e.__scopeTooltip),l=Oe(t),[u,d]=f.useState(null),m=dn(),p=f.useRef(0),h=s??c.disableHoverableContent,g=a??c.delayDuration,y=f.useRef(!1),[v,w]=mn({prop:o,defaultProp:r??!1,onChange:b=>{b?(c.onOpen(),document.dispatchEvent(new CustomEvent(_e))):c.onClose(),i?.(b)},caller:ue}),E=f.useMemo(()=>v?y.current?"delayed-open":"instant-open":"closed",[v]),x=f.useCallback(()=>{window.clearTimeout(p.current),p.current=0,y.current=!1,w(!0)},[w]),C=f.useCallback(()=>{window.clearTimeout(p.current),p.current=0,w(!1)},[w]),A=f.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{y.current=!0,w(!0),p.current=0},g)},[g,w]);return f.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),P.jsx(or,{...l,children:P.jsx(dr,{scope:t,contentId:m,open:v,stateAttribute:E,trigger:u,onTriggerChange:d,onTriggerEnter:f.useCallback(()=>{c.isOpenDelayedRef.current?A():x()},[c.isOpenDelayedRef,A,x]),onTriggerLeave:f.useCallback(()=>{h?C():(window.clearTimeout(p.current),p.current=0)},[C,h]),onOpen:x,onClose:C,disableHoverableContent:h,children:n})})};zt.displayName=ue;var ke="TooltipTrigger",Vt=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=de(ke,n),i=Ue(ke,n),s=Oe(n),a=f.useRef(null),c=te(t,a,r.onTriggerChange),l=f.useRef(!1),u=f.useRef(!1),d=f.useCallback(()=>l.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),P.jsx(rr,{asChild:!0,...s,children:P.jsx(Q.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:c,onPointerMove:X(e.onPointerMove,m=>{m.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),u.current=!0)}),onPointerLeave:X(e.onPointerLeave,()=>{r.onTriggerLeave(),u.current=!1}),onPointerDown:X(e.onPointerDown,()=>{r.open&&r.onClose(),l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:X(e.onFocus,()=>{l.current||r.onOpen()}),onBlur:X(e.onBlur,r.onClose),onClick:X(e.onClick,r.onClose)})})});Vt.displayName=ke;var Ye="TooltipPortal",[pr,mr]=Ae(Ye,{forceMount:void 0}),Ut=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:r}=e,i=de(Ye,t);return P.jsx(pr,{scope:t,forceMount:n,children:P.jsx(je,{present:n||i.open,children:P.jsx(yt,{asChild:!0,container:r,children:o})})})};Ut.displayName=Ye;var re="TooltipContent",Yt=f.forwardRef((e,t)=>{const n=mr(re,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...i}=e,s=de(re,e.__scopeTooltip);return P.jsx(je,{present:o||s.open,children:s.disableHoverableContent?P.jsx(Xt,{side:r,...i,ref:t}):P.jsx(hr,{side:r,...i,ref:t})})}),hr=f.forwardRef((e,t)=>{const n=de(re,e.__scopeTooltip),o=Ue(re,e.__scopeTooltip),r=f.useRef(null),i=te(t,r),[s,a]=f.useState(null),{trigger:c,onClose:l}=n,u=r.current,{onPointerInTransitChange:d}=o,m=f.useCallback(()=>{a(null),d(!1)},[d]),p=f.useCallback((h,g)=>{const y=h.currentTarget,v={x:h.clientX,y:h.clientY},w=xr(v,y.getBoundingClientRect()),E=br(v,w),x=Cr(g.getBoundingClientRect()),C=Pr([...E,...x]);a(C),d(!0)},[d]);return f.useEffect(()=>()=>m(),[m]),f.useEffect(()=>{if(c&&u){const h=y=>p(y,u),g=y=>p(y,c);return c.addEventListener("pointerleave",h),u.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",g)}}},[c,u,p,m]),f.useEffect(()=>{if(s){const h=g=>{const y=g.target,v={x:g.clientX,y:g.clientY},w=c?.contains(y)||u?.contains(y),E=!Er(v,s);w?m():E&&(m(),l())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[c,u,s,l,m]),P.jsx(Xt,{...e,ref:i})}),[gr,yr]=Ae(ue,{isInside:!1}),vr=wn("TooltipContent"),Xt=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,c=de(re,n),l=Oe(n),{onClose:u}=c;return f.useEffect(()=>(document.addEventListener(_e,u),()=>document.removeEventListener(_e,u)),[u]),f.useEffect(()=>{if(c.trigger){const d=m=>{m.target?.contains(c.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,u]),P.jsx(ht,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:P.jsxs(ir,{"data-state":c.stateAttribute,...l,...a,ref:t,style:{...a.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:[P.jsx(vr,{children:o}),P.jsx(gr,{scope:n,isInside:!0,children:P.jsx(lr,{id:c.contentId,role:"tooltip",children:r||o})})]})})});Yt.displayName=re;var Gt="TooltipArrow",wr=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Oe(n);return yr(Gt,n).isInside?null:P.jsx(sr,{...r,...o,ref:t})});wr.displayName=Gt;function xr(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,o,r,i)){case i:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function br(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function Cr(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function Er(e,t){const{x:n,y:o}=e;let r=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],c=t[s],l=a.x,u=a.y,d=c.x,m=c.y;u>o!=m>o&&n<(d-l)*(o-u)/(m-u)+l&&(r=!r)}return r}function Pr(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),Rr(t)}function Rr(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Ar=Bt,Or=zt,Sr=Vt,Tr=Ut,qt=Yt;const Ir=Ar,Dr=Or,Lr=Sr;function Kt({className:e,sideOffset:t=4,side:n="top",ref:o,...r}){return P.jsx(Tr,{children:P.jsx(qt,{ref:o,side:n,sideOffset:t,className:an("bg-popover text-popover-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 overflow-hidden rounded-md border px-3 py-1.5 text-sm shadow-md",e),...r})})}Kt.displayName=qt.displayName;function $r({content:e,children:t,side:n="top"}){return e?P.jsxs(Dr,{children:[P.jsx(Lr,{asChild:!0,children:t}),P.jsx(Kt,{side:n,children:e})]}):t}export{rr as A,ir as C,ht as D,Q as P,or as R,$r as S,Dr as T,cr as V,dt as a,dn as b,Lt as c,te as d,X as e,je as f,yt as g,yn as h,sr as i,Lr as j,Kt as k,jr as l,Ir as m,K as n,be as o,mn as u};
2
+ //# sourceMappingURL=tooltip-Tlsyx2YO.js.map