@sheetxl/studio-mui 0.7.21 → 0.7.23-beta.2

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 (493) hide show
  1. package/README.md +2 -2
  2. package/browser/cjs/BQJKf40kttQWOzLw.cjs +20 -0
  3. package/browser/cjs/BTZ5uzK0wHzpiZGC.cjs +1 -0
  4. package/browser/cjs/B_D3JKseVvpRyX-E.cjs +1 -0
  5. package/browser/cjs/BeKpqOx8It0RD0Rf.cjs +2 -0
  6. package/browser/cjs/Bj-EvSYeDfqmU0V6.cjs +2 -0
  7. package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +1 -0
  8. package/browser/cjs/ByIEqNsvj52sihT9.cjs +5 -0
  9. package/browser/cjs/C3moehR3VOd0LnmM.cjs +1 -0
  10. package/browser/cjs/C97KHSuikAbr1qVM.cjs +1 -0
  11. package/browser/cjs/CJLwX_A3y3TQUmzj.cjs +1 -0
  12. package/browser/cjs/CPSc2VSYZeZ1B9mi.cjs +1 -0
  13. package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +1 -0
  14. package/browser/cjs/CZm1jVZaHQ246prW.cjs +1 -0
  15. package/browser/cjs/CdDYyAfccXme8w6m.cjs +1 -0
  16. package/browser/cjs/Cpr3LpTBt3SSArSw.cjs +7 -0
  17. package/browser/cjs/DBJLJGiCGXesx5n6.cjs +1 -0
  18. package/browser/cjs/DEaHGn2Rbgcj_fbR.cjs +11 -0
  19. package/browser/cjs/Djsiad0Qha1Y-YaS.cjs +1 -0
  20. package/browser/cjs/IASAYG6qgv7lJY7y.cjs +1 -0
  21. package/browser/cjs/KZvriGbhEOVkQD0b.cjs +1 -0
  22. package/browser/cjs/UnMhi28mbvLiOXQe.cjs +1 -0
  23. package/browser/cjs/Vbigo0kFP3PFfmeA.cjs +1 -0
  24. package/browser/cjs/iMWEL01eC83oU-YY.cjs +1 -0
  25. package/browser/cjs/index.cjs +2 -7
  26. package/browser/cjs/w2GjebPlOFv3pCbm.cjs +1 -0
  27. package/browser/cjs/zQsyZpeXAvcVXJMs.cjs +1 -0
  28. package/browser/esm/B-2XwThOta_tt8BT.mjs +612 -0
  29. package/browser/esm/B8qmg9lVcO1_FX1t.mjs +508 -0
  30. package/browser/esm/BBwrhUtlLbuFQ67J.mjs +5398 -0
  31. package/browser/esm/BkcTkK4tR4b-px3e.mjs +42 -0
  32. package/browser/esm/BvQKaacvx0Q4evfJ.mjs +99 -0
  33. package/browser/esm/C9GBv4ZkH2P6xOGI.mjs +2207 -0
  34. package/browser/esm/C9MY76RbJdvrNOgK.mjs +411 -0
  35. package/browser/esm/CCiAWSm5lQALhezl.mjs +82 -0
  36. package/browser/esm/CGcdue-1rj_uOLLO.mjs +47 -0
  37. package/browser/esm/CPR9Jpd8zfoZUwWE.mjs +113 -0
  38. package/browser/esm/CkocGozEYIwcmc-x.mjs +105 -0
  39. package/browser/esm/D3E3Pf2O3BHV0mYQ.mjs +52 -0
  40. package/browser/esm/DNv3-zAolc7Scol_.mjs +129 -0
  41. package/browser/esm/DRCKGFtIKBxmTaJW.mjs +191 -0
  42. package/browser/esm/Ddp-16AGwwlZkglN.mjs +219 -0
  43. package/browser/esm/Ft9o24lP0MNgSqIB.mjs +1376 -0
  44. package/browser/esm/IIP2sN_X3kztI92r.mjs +155 -0
  45. package/browser/esm/WSDlFfjApTM0cJ4V.mjs +468 -0
  46. package/browser/esm/dfnya7tN7P1UeVvc.mjs +516 -0
  47. package/browser/esm/dhuC1s94dyRTzxgk.mjs +8869 -0
  48. package/browser/esm/eL50tJKtsxKJk7-6.mjs +217 -0
  49. package/browser/esm/index.mjs +152 -91
  50. package/browser/esm/suPpQTgd0X3baAFS.mjs +20 -0
  51. package/browser/esm/zRDngVAuXekzPZuz.mjs +1150 -0
  52. package/licenses/dependencies.txt +133 -623
  53. package/node/esm/0FcokH6jWYoKKyvJ.mjs +155 -0
  54. package/node/esm/BUqFn97L8YiLtWbW.mjs +129 -0
  55. package/node/esm/CH7ZFM-RHFeeCuff.mjs +82 -0
  56. package/node/esm/CghsKfVdQBikiGJk.mjs +679 -0
  57. package/node/esm/Cv3xawSybVla_gE-.mjs +47 -0
  58. package/node/esm/CwSCTBxawz0-VqW9.mjs +99 -0
  59. package/node/esm/D70ZQyxt_JcDRn7d.mjs +516 -0
  60. package/node/esm/DJnr-2wytqQ57aiM.mjs +4543 -0
  61. package/node/esm/DMDanrARYHWYLx37.mjs +190 -0
  62. package/node/esm/DMtIfyV60BcLQkTD.mjs +470 -0
  63. package/node/esm/DNJmWZomszXCkDx7.mjs +106 -0
  64. package/node/esm/DNkUDrpOmhF_vVDS.mjs +509 -0
  65. package/node/esm/DZG5Pd01dM-dgS3n.mjs +113 -0
  66. package/node/esm/index.mjs +10594 -2831
  67. package/package.json +27 -27
  68. package/resources/contents.json +30 -0
  69. package/resources/locales/contents.json +44 -0
  70. package/resources/locales/de/groups.cmd.json +219 -0
  71. package/resources/locales/de/studio.cmd.json +159 -0
  72. package/resources/locales/de/ui.msg.json +507 -0
  73. package/resources/locales/en/groups.cmd.json +219 -0
  74. package/resources/locales/en/studio.cmd.json +159 -0
  75. package/resources/locales/en/ui.msg.json +508 -0
  76. package/types/index.d.ts +2 -1762
  77. package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +131 -0
  78. package/types/src/anchorItems/AnchorItemsDescriptor.d.ts.map +1 -0
  79. package/types/src/anchorItems/AnchorItemsPanel.d.ts +29 -0
  80. package/types/src/anchorItems/AnchorItemsPanel.d.ts.map +1 -0
  81. package/types/src/anchorItems/index.d.ts +3 -0
  82. package/types/src/anchorItems/index.d.ts.map +1 -0
  83. package/types/src/border/BorderPopupButton.d.ts +30 -0
  84. package/types/src/border/BorderPopupButton.d.ts.map +1 -0
  85. package/types/src/border/BorderStylePopupButton.d.ts +40 -0
  86. package/types/src/border/BorderStylePopupButton.d.ts.map +1 -0
  87. package/types/src/border/index.d.ts +3 -0
  88. package/types/src/border/index.d.ts.map +1 -0
  89. package/types/src/chart/command/InsertChartCommandButton.d.ts +10 -0
  90. package/types/src/chart/command/InsertChartCommandButton.d.ts.map +1 -0
  91. package/types/src/chart/command/index.d.ts +2 -0
  92. package/types/src/chart/command/index.d.ts.map +1 -0
  93. package/types/src/color/Alpha.d.ts +36 -0
  94. package/types/src/color/Alpha.d.ts.map +1 -0
  95. package/types/src/color/Checkboard.d.ts +11 -0
  96. package/types/src/color/Checkboard.d.ts.map +1 -0
  97. package/types/src/color/CheckboardUtils.d.ts +3 -0
  98. package/types/src/color/CheckboardUtils.d.ts.map +1 -0
  99. package/types/src/color/ColorButton.d.ts +21 -0
  100. package/types/src/color/ColorButton.d.ts.map +1 -0
  101. package/types/src/color/ColorButtonList.d.ts +17 -0
  102. package/types/src/color/ColorButtonList.d.ts.map +1 -0
  103. package/types/src/color/ColorPanel.d.ts +71 -0
  104. package/types/src/color/ColorPanel.d.ts.map +1 -0
  105. package/types/src/color/ColorPopupButton.d.ts +29 -0
  106. package/types/src/color/ColorPopupButton.d.ts.map +1 -0
  107. package/types/src/color/CustomColorPanel.d.ts +16 -0
  108. package/types/src/color/CustomColorPanel.d.ts.map +1 -0
  109. package/types/src/color/EditableInput.d.ts +22 -0
  110. package/types/src/color/EditableInput.d.ts.map +1 -0
  111. package/types/src/color/Hue.d.ts +29 -0
  112. package/types/src/color/Hue.d.ts.map +1 -0
  113. package/types/src/color/Saturation.d.ts +45 -0
  114. package/types/src/color/Saturation.d.ts.map +1 -0
  115. package/types/src/color/SketchFields.d.ts +9 -0
  116. package/types/src/color/SketchFields.d.ts.map +1 -0
  117. package/types/src/color/Swatch.d.ts +16 -0
  118. package/types/src/color/Swatch.d.ts.map +1 -0
  119. package/types/src/color/Types.d.ts +11 -0
  120. package/types/src/color/Types.d.ts.map +1 -0
  121. package/types/src/color/_Utils.d.ts +4 -0
  122. package/types/src/color/_Utils.d.ts.map +1 -0
  123. package/types/src/color/index.d.ts +7 -0
  124. package/types/src/color/index.d.ts.map +1 -0
  125. package/types/src/command/AccountingStyleCommandButton.d.ts +18 -0
  126. package/types/src/command/AccountingStyleCommandButton.d.ts.map +1 -0
  127. package/types/src/command/AppearanceCommandButton.d.ts +3 -0
  128. package/types/src/command/AppearanceCommandButton.d.ts.map +1 -0
  129. package/types/src/command/BorderCommandButton.d.ts +20 -0
  130. package/types/src/command/BorderCommandButton.d.ts.map +1 -0
  131. package/types/src/command/ColorCommandButton.d.ts +23 -0
  132. package/types/src/command/ColorCommandButton.d.ts.map +1 -0
  133. package/types/src/command/DocThemeCommandButton.d.ts +19 -0
  134. package/types/src/command/DocThemeCommandButton.d.ts.map +1 -0
  135. package/types/src/command/FileCommandButton.d.ts +8 -0
  136. package/types/src/command/FileCommandButton.d.ts.map +1 -0
  137. package/types/src/command/FontFamilyCommandButton.d.ts +9 -0
  138. package/types/src/command/FontFamilyCommandButton.d.ts.map +1 -0
  139. package/types/src/command/FontSizeCommandButton.d.ts +21 -0
  140. package/types/src/command/FontSizeCommandButton.d.ts.map +1 -0
  141. package/types/src/command/InsertFunctionCommandPopupButton.d.ts +9 -0
  142. package/types/src/command/InsertFunctionCommandPopupButton.d.ts.map +1 -0
  143. package/types/src/command/InsertFunctionSumCommandPopupButton.d.ts +8 -0
  144. package/types/src/command/InsertFunctionSumCommandPopupButton.d.ts.map +1 -0
  145. package/types/src/command/LanguageCommandButton.d.ts +19 -0
  146. package/types/src/command/LanguageCommandButton.d.ts.map +1 -0
  147. package/types/src/command/LocaleCommandButton.d.ts +17 -0
  148. package/types/src/command/LocaleCommandButton.d.ts.map +1 -0
  149. package/types/src/command/NumberFormatCommandButton.d.ts +6 -0
  150. package/types/src/command/NumberFormatCommandButton.d.ts.map +1 -0
  151. package/types/src/command/PasteCommandButton.d.ts +14 -0
  152. package/types/src/command/PasteCommandButton.d.ts.map +1 -0
  153. package/types/src/command/PresetCellStylesCommandButton.d.ts +11 -0
  154. package/types/src/command/PresetCellStylesCommandButton.d.ts.map +1 -0
  155. package/types/src/command/PresetTableStylesCommandButton.d.ts +12 -0
  156. package/types/src/command/PresetTableStylesCommandButton.d.ts.map +1 -0
  157. package/types/src/command/RegisterCatalog.d.ts +3 -0
  158. package/types/src/command/RegisterCatalog.d.ts.map +1 -0
  159. package/types/src/command/SheetCommandGroups.d.ts +10 -0
  160. package/types/src/command/SheetCommandGroups.d.ts.map +1 -0
  161. package/types/src/command/SheetZoomCommandButton.d.ts +9 -0
  162. package/types/src/command/SheetZoomCommandButton.d.ts.map +1 -0
  163. package/types/src/command/StudioCommandGroups.d.ts +11 -0
  164. package/types/src/command/StudioCommandGroups.d.ts.map +1 -0
  165. package/types/src/command/TextEffectsCommandButton.d.ts +6 -0
  166. package/types/src/command/TextEffectsCommandButton.d.ts.map +1 -0
  167. package/types/src/command/TextRotateGroupButton.d.ts +14 -0
  168. package/types/src/command/TextRotateGroupButton.d.ts.map +1 -0
  169. package/types/src/command/UndoRedoCommandButton.d.ts +14 -0
  170. package/types/src/command/UndoRedoCommandButton.d.ts.map +1 -0
  171. package/types/src/command/WalkingCopyCommandButton.d.ts +6 -0
  172. package/types/src/command/WalkingCopyCommandButton.d.ts.map +1 -0
  173. package/types/src/command/WorkbookCommandGroups.d.ts +11 -0
  174. package/types/src/command/WorkbookCommandGroups.d.ts.map +1 -0
  175. package/types/src/command/index.d.ts +23 -0
  176. package/types/src/command/index.d.ts.map +1 -0
  177. package/types/src/conditionalFormat/ColorScaleRulePanel.d.ts +18 -0
  178. package/types/src/conditionalFormat/ColorScaleRulePanel.d.ts.map +1 -0
  179. package/types/src/conditionalFormat/ConditionalFormatDetailsPanel.d.ts +23 -0
  180. package/types/src/conditionalFormat/ConditionalFormatDetailsPanel.d.ts.map +1 -0
  181. package/types/src/conditionalFormat/ConditionalFormatDetailsTaskPane.d.ts +4 -0
  182. package/types/src/conditionalFormat/ConditionalFormatDetailsTaskPane.d.ts.map +1 -0
  183. package/types/src/conditionalFormat/ConditionalFormatEditorPanel.d.ts +20 -0
  184. package/types/src/conditionalFormat/ConditionalFormatEditorPanel.d.ts.map +1 -0
  185. package/types/src/conditionalFormat/ConditionalFormatPlugin.d.ts +2 -0
  186. package/types/src/conditionalFormat/ConditionalFormatPlugin.d.ts.map +1 -0
  187. package/types/src/conditionalFormat/ConditionalFormatRangeField.d.ts +32 -0
  188. package/types/src/conditionalFormat/ConditionalFormatRangeField.d.ts.map +1 -0
  189. package/types/src/conditionalFormat/ConditionalFormatStylePicker.d.ts +34 -0
  190. package/types/src/conditionalFormat/ConditionalFormatStylePicker.d.ts.map +1 -0
  191. package/types/src/conditionalFormat/ConditionalFormatTitle.d.ts +10 -0
  192. package/types/src/conditionalFormat/ConditionalFormatTitle.d.ts.map +1 -0
  193. package/types/src/conditionalFormat/DataBarRulePanel.d.ts +23 -0
  194. package/types/src/conditionalFormat/DataBarRulePanel.d.ts.map +1 -0
  195. package/types/src/conditionalFormat/IconSetRulePanel.d.ts +23 -0
  196. package/types/src/conditionalFormat/IconSetRulePanel.d.ts.map +1 -0
  197. package/types/src/conditionalFormat/PresetChip.d.ts +17 -0
  198. package/types/src/conditionalFormat/PresetChip.d.ts.map +1 -0
  199. package/types/src/conditionalFormat/PresetScalesCommandButton.d.ts +20 -0
  200. package/types/src/conditionalFormat/PresetScalesCommandButton.d.ts.map +1 -0
  201. package/types/src/conditionalFormat/RulePreview.d.ts +23 -0
  202. package/types/src/conditionalFormat/RulePreview.d.ts.map +1 -0
  203. package/types/src/conditionalFormat/RuleSection.d.ts +20 -0
  204. package/types/src/conditionalFormat/RuleSection.d.ts.map +1 -0
  205. package/types/src/conditionalFormat/ScaleMiniGrid.d.ts +59 -0
  206. package/types/src/conditionalFormat/ScaleMiniGrid.d.ts.map +1 -0
  207. package/types/src/conditionalFormat/ScaleStopRow.d.ts +34 -0
  208. package/types/src/conditionalFormat/ScaleStopRow.d.ts.map +1 -0
  209. package/types/src/conditionalFormat/index.d.ts +3 -0
  210. package/types/src/conditionalFormat/index.d.ts.map +1 -0
  211. package/types/src/conditionalFormat/previewColor.d.ts +50 -0
  212. package/types/src/conditionalFormat/previewColor.d.ts.map +1 -0
  213. package/types/src/conditions/AverageOption.d.ts +25 -0
  214. package/types/src/conditions/AverageOption.d.ts.map +1 -0
  215. package/types/src/conditions/BetweenOption.d.ts +25 -0
  216. package/types/src/conditions/BetweenOption.d.ts.map +1 -0
  217. package/types/src/conditions/BooleanOption.d.ts +24 -0
  218. package/types/src/conditions/BooleanOption.d.ts.map +1 -0
  219. package/types/src/conditions/CombinatorOption.d.ts +41 -0
  220. package/types/src/conditions/CombinatorOption.d.ts.map +1 -0
  221. package/types/src/conditions/ConditionEditor.d.ts +57 -0
  222. package/types/src/conditions/ConditionEditor.d.ts.map +1 -0
  223. package/types/src/conditions/ConditionUtils.d.ts +83 -0
  224. package/types/src/conditions/ConditionUtils.d.ts.map +1 -0
  225. package/types/src/conditions/DateTimeOption.d.ts +43 -0
  226. package/types/src/conditions/DateTimeOption.d.ts.map +1 -0
  227. package/types/src/conditions/ExpressionOption.d.ts +26 -0
  228. package/types/src/conditions/ExpressionOption.d.ts.map +1 -0
  229. package/types/src/conditions/InSetOption.d.ts +37 -0
  230. package/types/src/conditions/InSetOption.d.ts.map +1 -0
  231. package/types/src/conditions/NumberOption.d.ts +24 -0
  232. package/types/src/conditions/NumberOption.d.ts.map +1 -0
  233. package/types/src/conditions/OperatorAndParamEditor.d.ts +55 -0
  234. package/types/src/conditions/OperatorAndParamEditor.d.ts.map +1 -0
  235. package/types/src/conditions/OperatorSelect.d.ts +35 -0
  236. package/types/src/conditions/OperatorSelect.d.ts.map +1 -0
  237. package/types/src/conditions/OperatorSelectPopupButton.d.ts +39 -0
  238. package/types/src/conditions/OperatorSelectPopupButton.d.ts.map +1 -0
  239. package/types/src/conditions/ScalarOption.d.ts +29 -0
  240. package/types/src/conditions/ScalarOption.d.ts.map +1 -0
  241. package/types/src/conditions/SelectorSelect.d.ts +43 -0
  242. package/types/src/conditions/SelectorSelect.d.ts.map +1 -0
  243. package/types/src/conditions/StringOption.d.ts +24 -0
  244. package/types/src/conditions/StringOption.d.ts.map +1 -0
  245. package/types/src/conditions/TimePeriodOption.d.ts +25 -0
  246. package/types/src/conditions/TimePeriodOption.d.ts.map +1 -0
  247. package/types/src/conditions/TopNOption.d.ts +25 -0
  248. package/types/src/conditions/TopNOption.d.ts.map +1 -0
  249. package/types/src/conditions/index.d.ts +13 -0
  250. package/types/src/conditions/index.d.ts.map +1 -0
  251. package/types/src/dataValidation/DataValidationDetailsPanel.d.ts +16 -0
  252. package/types/src/dataValidation/DataValidationDetailsPanel.d.ts.map +1 -0
  253. package/types/src/dataValidation/DataValidationDetailsTaskPane.d.ts +3 -0
  254. package/types/src/dataValidation/DataValidationDetailsTaskPane.d.ts.map +1 -0
  255. package/types/src/dataValidation/DataValidationEditorPanel.d.ts +12 -0
  256. package/types/src/dataValidation/DataValidationEditorPanel.d.ts.map +1 -0
  257. package/types/src/dataValidation/DataValidationPlugin.d.ts +2 -0
  258. package/types/src/dataValidation/DataValidationPlugin.d.ts.map +1 -0
  259. package/types/src/dataValidation/index.d.ts +2 -0
  260. package/types/src/dataValidation/index.d.ts.map +1 -0
  261. package/types/src/debug/DebugUtils.d.ts +4 -0
  262. package/types/src/debug/DebugUtils.d.ts.map +1 -0
  263. package/types/src/debug/index.d.ts +2 -0
  264. package/types/src/debug/index.d.ts.map +1 -0
  265. package/types/src/dialog/CommentsDialog.d.ts +11 -0
  266. package/types/src/dialog/CommentsDialog.d.ts.map +1 -0
  267. package/types/src/dialog/FindReplaceWindow.d.ts +13 -0
  268. package/types/src/dialog/FindReplaceWindow.d.ts.map +1 -0
  269. package/types/src/dialog/HyperlinkDialog.d.ts +28 -0
  270. package/types/src/dialog/HyperlinkDialog.d.ts.map +1 -0
  271. package/types/src/dialog/InsertFunctionDialog.d.ts +25 -0
  272. package/types/src/dialog/InsertFunctionDialog.d.ts.map +1 -0
  273. package/types/src/dialog/NamedReferenceDialog.d.ts +17 -0
  274. package/types/src/dialog/NamedReferenceDialog.d.ts.map +1 -0
  275. package/types/src/dialog/NumberFormatDialog.d.ts +12 -0
  276. package/types/src/dialog/NumberFormatDialog.d.ts.map +1 -0
  277. package/types/src/dialog/ResizeHeaderDialog.d.ts +15 -0
  278. package/types/src/dialog/ResizeHeaderDialog.d.ts.map +1 -0
  279. package/types/src/dialog/ShortcutKeysDialog.d.ts +9 -0
  280. package/types/src/dialog/ShortcutKeysDialog.d.ts.map +1 -0
  281. package/types/src/dialog/ShortcutKeysPanel.d.ts +28 -0
  282. package/types/src/dialog/ShortcutKeysPanel.d.ts.map +1 -0
  283. package/types/src/dialog/SortDialog.d.ts +9 -0
  284. package/types/src/dialog/SortDialog.d.ts.map +1 -0
  285. package/types/src/dialog/TableNewDialog.d.ts +14 -0
  286. package/types/src/dialog/TableNewDialog.d.ts.map +1 -0
  287. package/types/src/dialog/WorkbookStatisticsDialog.d.ts +13 -0
  288. package/types/src/dialog/WorkbookStatisticsDialog.d.ts.map +1 -0
  289. package/types/src/dialog/index.d.ts +10 -0
  290. package/types/src/dialog/index.d.ts.map +1 -0
  291. package/types/src/filter/ColumnMenu.d.ts +13 -0
  292. package/types/src/filter/ColumnMenu.d.ts.map +1 -0
  293. package/types/src/filter/FilterList.d.ts +28 -0
  294. package/types/src/filter/FilterList.d.ts.map +1 -0
  295. package/types/src/filter/index.d.ts +3 -0
  296. package/types/src/filter/index.d.ts.map +1 -0
  297. package/types/src/form/FormulaField.d.ts +221 -0
  298. package/types/src/form/FormulaField.d.ts.map +1 -0
  299. package/types/src/form/InputField.d.ts +89 -0
  300. package/types/src/form/InputField.d.ts.map +1 -0
  301. package/types/src/form/index.d.ts +3 -0
  302. package/types/src/form/index.d.ts.map +1 -0
  303. package/types/src/formulaBar/FormulaBar.d.ts +8 -0
  304. package/types/src/formulaBar/FormulaBar.d.ts.map +1 -0
  305. package/types/src/formulaBar/IFormulaBar.d.ts +51 -0
  306. package/types/src/formulaBar/IFormulaBar.d.ts.map +1 -0
  307. package/types/src/formulaBar/index.d.ts +3 -0
  308. package/types/src/formulaBar/index.d.ts.map +1 -0
  309. package/types/src/function/FunctionArgumentsPanel.d.ts +57 -0
  310. package/types/src/function/FunctionArgumentsPanel.d.ts.map +1 -0
  311. package/types/src/function/FunctionSearchPanel.d.ts +35 -0
  312. package/types/src/function/FunctionSearchPanel.d.ts.map +1 -0
  313. package/types/src/function/InsertFunctionWizard.d.ts +79 -0
  314. package/types/src/function/InsertFunctionWizard.d.ts.map +1 -0
  315. package/types/src/function/index.d.ts +4 -0
  316. package/types/src/function/index.d.ts.map +1 -0
  317. package/types/src/function/paneMetrics.d.ts +33 -0
  318. package/types/src/function/paneMetrics.d.ts.map +1 -0
  319. package/types/src/index.d.ts +21 -0
  320. package/types/src/index.d.ts.map +1 -0
  321. package/types/src/itemsPanel/EditorPanel.d.ts +21 -0
  322. package/types/src/itemsPanel/EditorPanel.d.ts.map +1 -0
  323. package/types/src/itemsPanel/ItemCard.d.ts +57 -0
  324. package/types/src/itemsPanel/ItemCard.d.ts.map +1 -0
  325. package/types/src/itemsPanel/ItemsDescriptor.d.ts +215 -0
  326. package/types/src/itemsPanel/ItemsDescriptor.d.ts.map +1 -0
  327. package/types/src/itemsPanel/ItemsPanel.d.ts +45 -0
  328. package/types/src/itemsPanel/ItemsPanel.d.ts.map +1 -0
  329. package/types/src/itemsPanel/SortableCards.d.ts +67 -0
  330. package/types/src/itemsPanel/SortableCards.d.ts.map +1 -0
  331. package/types/src/itemsPanel/index.d.ts +6 -0
  332. package/types/src/itemsPanel/index.d.ts.map +1 -0
  333. package/types/src/movable/MovableContextMenu.d.ts +13 -0
  334. package/types/src/movable/MovableContextMenu.d.ts.map +1 -0
  335. package/types/src/movable/index.d.ts +2 -0
  336. package/types/src/movable/index.d.ts.map +1 -0
  337. package/types/src/named/INamedCollectionEditor.d.ts +37 -0
  338. package/types/src/named/INamedCollectionEditor.d.ts.map +1 -0
  339. package/types/src/named/NamedCollectionEditor.d.ts +7 -0
  340. package/types/src/named/NamedCollectionEditor.d.ts.map +1 -0
  341. package/types/src/named/NamedDetailsPanel.d.ts +11 -0
  342. package/types/src/named/NamedDetailsPanel.d.ts.map +1 -0
  343. package/types/src/named/NamedDetailsTaskPane.d.ts +3 -0
  344. package/types/src/named/NamedDetailsTaskPane.d.ts.map +1 -0
  345. package/types/src/named/NamedDraft.d.ts +68 -0
  346. package/types/src/named/NamedDraft.d.ts.map +1 -0
  347. package/types/src/named/NamedEditorPanel.d.ts +19 -0
  348. package/types/src/named/NamedEditorPanel.d.ts.map +1 -0
  349. package/types/src/named/NamedPlugin.d.ts +2 -0
  350. package/types/src/named/NamedPlugin.d.ts.map +1 -0
  351. package/types/src/named/index.d.ts +8 -0
  352. package/types/src/named/index.d.ts.map +1 -0
  353. package/types/src/numberFormat/NumberFormatPanel.d.ts +29 -0
  354. package/types/src/numberFormat/NumberFormatPanel.d.ts.map +1 -0
  355. package/types/src/numberFormat/NumberFormatTaskPane.d.ts +12 -0
  356. package/types/src/numberFormat/NumberFormatTaskPane.d.ts.map +1 -0
  357. package/types/src/numberFormat/index.d.ts +8 -0
  358. package/types/src/numberFormat/index.d.ts.map +1 -0
  359. package/types/src/protectedRange/ProtectedRangeDetailsPanel.d.ts +20 -0
  360. package/types/src/protectedRange/ProtectedRangeDetailsPanel.d.ts.map +1 -0
  361. package/types/src/protectedRange/ProtectedRangeDetailsTaskPane.d.ts +3 -0
  362. package/types/src/protectedRange/ProtectedRangeDetailsTaskPane.d.ts.map +1 -0
  363. package/types/src/protectedRange/ProtectedRangeEditorPanel.d.ts +27 -0
  364. package/types/src/protectedRange/ProtectedRangeEditorPanel.d.ts.map +1 -0
  365. package/types/src/protectedRange/ProtectedRangePlugin.d.ts +2 -0
  366. package/types/src/protectedRange/ProtectedRangePlugin.d.ts.map +1 -0
  367. package/types/src/protectedRange/index.d.ts +2 -0
  368. package/types/src/protectedRange/index.d.ts.map +1 -0
  369. package/types/src/protection/WorkbookProtectionDialog.d.ts +23 -0
  370. package/types/src/protection/WorkbookProtectionDialog.d.ts.map +1 -0
  371. package/types/src/protection/WorkbookProtectionPanel.d.ts +51 -0
  372. package/types/src/protection/WorkbookProtectionPanel.d.ts.map +1 -0
  373. package/types/src/protection/index.d.ts +3 -0
  374. package/types/src/protection/index.d.ts.map +1 -0
  375. package/types/src/sheet/SheetTabMenu.d.ts +21 -0
  376. package/types/src/sheet/SheetTabMenu.d.ts.map +1 -0
  377. package/types/src/sheet/SheetsAllMenu.d.ts +16 -0
  378. package/types/src/sheet/SheetsAllMenu.d.ts.map +1 -0
  379. package/types/src/sheet/index.d.ts +3 -0
  380. package/types/src/sheet/index.d.ts.map +1 -0
  381. package/types/src/statusBar/NumberStats.d.ts +27 -0
  382. package/types/src/statusBar/NumberStats.d.ts.map +1 -0
  383. package/types/src/statusBar/SheetZoomScale.d.ts +11 -0
  384. package/types/src/statusBar/SheetZoomScale.d.ts.map +1 -0
  385. package/types/src/statusBar/StatusBar.d.ts +35 -0
  386. package/types/src/statusBar/StatusBar.d.ts.map +1 -0
  387. package/types/src/statusBar/index.d.ts +4 -0
  388. package/types/src/statusBar/index.d.ts.map +1 -0
  389. package/types/src/studio/CommandsWrapper.d.ts +36 -0
  390. package/types/src/studio/CommandsWrapper.d.ts.map +1 -0
  391. package/types/src/studio/DefaultLogo.d.ts +3 -0
  392. package/types/src/studio/DefaultLogo.d.ts.map +1 -0
  393. package/types/src/studio/EagerStudio.d.ts +5 -0
  394. package/types/src/studio/EagerStudio.d.ts.map +1 -0
  395. package/types/src/studio/Studio.d.ts +26 -0
  396. package/types/src/studio/Studio.d.ts.map +1 -0
  397. package/types/src/studio/StudioCommandProvider.d.ts +26 -0
  398. package/types/src/studio/StudioCommandProvider.d.ts.map +1 -0
  399. package/types/src/studio/StudioCommands.d.ts +115 -0
  400. package/types/src/studio/StudioCommands.d.ts.map +1 -0
  401. package/types/src/studio/StudioNotifierProvider.d.ts +10 -0
  402. package/types/src/studio/StudioNotifierProvider.d.ts.map +1 -0
  403. package/types/src/studio/StudioProps.d.ts +372 -0
  404. package/types/src/studio/StudioProps.d.ts.map +1 -0
  405. package/types/src/studio/StudioSplitPane.d.ts +60 -0
  406. package/types/src/studio/StudioSplitPane.d.ts.map +1 -0
  407. package/types/src/studio/StudioTaskPaneArea.d.ts +8 -0
  408. package/types/src/studio/StudioTaskPaneArea.d.ts.map +1 -0
  409. package/types/src/studio/StudioToolbar.d.ts +37 -0
  410. package/types/src/studio/StudioToolbar.d.ts.map +1 -0
  411. package/types/src/studio/index.d.ts +4 -0
  412. package/types/src/studio/index.d.ts.map +1 -0
  413. package/types/src/studio/useStudioApp.d.ts +51 -0
  414. package/types/src/studio/useStudioApp.d.ts.map +1 -0
  415. package/types/src/table/TableDetailsPanel.d.ts +17 -0
  416. package/types/src/table/TableDetailsPanel.d.ts.map +1 -0
  417. package/types/src/table/TableDetailsTaskPane.d.ts +3 -0
  418. package/types/src/table/TableDetailsTaskPane.d.ts.map +1 -0
  419. package/types/src/table/TablePlugin.d.ts +2 -0
  420. package/types/src/table/TablePlugin.d.ts.map +1 -0
  421. package/types/src/table/TableStyleCanvasPreview.d.ts +21 -0
  422. package/types/src/table/TableStyleCanvasPreview.d.ts.map +1 -0
  423. package/types/src/table/TableStyleOptionsPanel.d.ts +38 -0
  424. package/types/src/table/TableStyleOptionsPanel.d.ts.map +1 -0
  425. package/types/src/table/TableStylePreview.d.ts +43 -0
  426. package/types/src/table/TableStylePreview.d.ts.map +1 -0
  427. package/types/src/table/index.d.ts +7 -0
  428. package/types/src/table/index.d.ts.map +1 -0
  429. package/types/src/theme/ThemeSelectButton.d.ts +23 -0
  430. package/types/src/theme/ThemeSelectButton.d.ts.map +1 -0
  431. package/types/src/theme/ThemeSelectPanel.d.ts +17 -0
  432. package/types/src/theme/ThemeSelectPanel.d.ts.map +1 -0
  433. package/types/src/theme/ThemeSelectPopupButton.d.ts +24 -0
  434. package/types/src/theme/ThemeSelectPopupButton.d.ts.map +1 -0
  435. package/types/src/theme/ThemeUtils.d.ts +57 -0
  436. package/types/src/theme/ThemeUtils.d.ts.map +1 -0
  437. package/types/src/theme/index.d.ts +5 -0
  438. package/types/src/theme/index.d.ts.map +1 -0
  439. package/types/src/toast/ToastError.d.ts +10 -0
  440. package/types/src/toast/ToastError.d.ts.map +1 -0
  441. package/types/src/toast/index.d.ts +2 -0
  442. package/types/src/toast/index.d.ts.map +1 -0
  443. package/types/src/toolbar/WorkbookToolbars.d.ts +46 -0
  444. package/types/src/toolbar/WorkbookToolbars.d.ts.map +1 -0
  445. package/types/src/toolbar/index.d.ts +2 -0
  446. package/types/src/toolbar/index.d.ts.map +1 -0
  447. package/types/src/workbook/DefaultRenderers.d.ts +23 -0
  448. package/types/src/workbook/DefaultRenderers.d.ts.map +1 -0
  449. package/types/src/workbook/DocumentTitle.d.ts +69 -0
  450. package/types/src/workbook/DocumentTitle.d.ts.map +1 -0
  451. package/types/src/workbook/WorkbookContextMenu.d.ts +13 -0
  452. package/types/src/workbook/WorkbookContextMenu.d.ts.map +1 -0
  453. package/types/src/workbook/WorkbookElement.d.ts +12 -0
  454. package/types/src/workbook/WorkbookElement.d.ts.map +1 -0
  455. package/types/src/workbook/WorkbookStrip.d.ts +37 -0
  456. package/types/src/workbook/WorkbookStrip.d.ts.map +1 -0
  457. package/types/src/workbook/index.d.ts +7 -0
  458. package/types/src/workbook/index.d.ts.map +1 -0
  459. package/browser/cjs/7uRpnSJkNHg_E-KO.cjs +0 -6
  460. package/browser/cjs/B-O26BvbKDImp7pm.cjs +0 -20
  461. package/browser/cjs/B4j_sdzJNzq1ZPbT.cjs +0 -6
  462. package/browser/cjs/BWS4gFWp8lDPvR9C.cjs +0 -6
  463. package/browser/cjs/CmSwD6NZAHhOcRi3.cjs +0 -6
  464. package/browser/cjs/DHwhTAQeNs4slttB.cjs +0 -6
  465. package/browser/cjs/DMOT_ixtKqRvPULq.cjs +0 -6
  466. package/browser/cjs/DX5ji_lT0Qlqznv7.cjs +0 -42
  467. package/browser/cjs/DbqHWelIXc-F2a9N.cjs +0 -6
  468. package/browser/cjs/muTJOFrCXh156rjc.cjs +0 -6
  469. package/browser/cjs/rIy1Cx7HX-8zaQjY.cjs +0 -18
  470. package/browser/cjs/saPH3d5fE-ugXp6m.cjs +0 -7
  471. package/browser/esm/0D8VtNalLeBTB51a.mjs +0 -640
  472. package/browser/esm/BMo7K5LaD7zuDVg9.mjs +0 -2159
  473. package/browser/esm/BNmwaUWz2DJqWumP.mjs +0 -25
  474. package/browser/esm/Btt4G85L5v01eySb.mjs +0 -46
  475. package/browser/esm/C7jHdVMf6Yr4eH_B.mjs +0 -50
  476. package/browser/esm/CROTe62QHFVo8YMt.mjs +0 -155
  477. package/browser/esm/D5XNYGaC4Yw6vCRL.mjs +0 -54
  478. package/browser/esm/DUzVAMWTrS0u37LX.mjs +0 -2411
  479. package/browser/esm/DltuoFr9A-WJccbV.mjs +0 -26
  480. package/browser/esm/DtifaYF85GrfJ9_1.mjs +0 -50
  481. package/browser/esm/aUkJls9HzxnrZSof.mjs +0 -53
  482. package/browser/esm/mqkuG-TcLS4nn4x0.mjs +0 -4531
  483. package/node/assets/style.css +0 -1
  484. package/node/esm/BYjJIMFsheqJcsEI.mjs +0 -57
  485. package/node/esm/CACqTiBtxYlo1mu7.mjs +0 -26
  486. package/node/esm/CJU8jJhxtR3PEj2I.mjs +0 -52
  487. package/node/esm/CS0OWM24rZpAGRKU.mjs +0 -50
  488. package/node/esm/CdUceTAldsMTIFnD.mjs +0 -53
  489. package/node/esm/D6B7z_d11sd-U1fU.mjs +0 -46
  490. package/node/esm/DCngEQG4um0yTeoj.mjs +0 -91
  491. package/node/esm/DQnCFz2zJgMwLou_.mjs +0 -88
  492. package/node/esm/Do7ts-uMkQANfvhq.mjs +0 -156
  493. package/node/esm/oYh6joioOWhFd_R3.mjs +0 -25
@@ -0,0 +1,2207 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.23-beta.2
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ import { t as e } from "./suPpQTgd0X3baAFS.mjs";
8
+ import t, { createContext as n, memo as r, useCallback as i, useContext as a, useEffect as o, useLayoutEffect as s, useMemo as c, useReducer as l, useRef as u, useState as d } from "react";
9
+ import { jsx as f } from "react/jsx-runtime";
10
+ import { Box as p } from "@mui/material";
11
+ import { createPortal as m, unstable_batchedUpdates as h } from "react-dom";
12
+ var g = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
13
+ function _(e) {
14
+ let t = Object.prototype.toString.call(e);
15
+ return t === "[object Window]" || t === "[object global]";
16
+ }
17
+ function v(e) {
18
+ return "nodeType" in e;
19
+ }
20
+ function y(e) {
21
+ var t;
22
+ return e ? _(e) ? e : v(e) && (t = e.ownerDocument?.defaultView) != null ? t : window : window;
23
+ }
24
+ function b(e) {
25
+ let { Document: t } = y(e);
26
+ return e instanceof t;
27
+ }
28
+ function x(e) {
29
+ return !_(e) && e instanceof y(e).HTMLElement;
30
+ }
31
+ function S(e) {
32
+ return e instanceof y(e).SVGElement;
33
+ }
34
+ function C(e) {
35
+ return e ? _(e) ? e.document : v(e) ? b(e) ? e : x(e) || S(e) ? e.ownerDocument : document : document : document;
36
+ }
37
+ var w = g ? s : o;
38
+ function T(e) {
39
+ let t = u(e);
40
+ return w(() => {
41
+ t.current = e;
42
+ }), i(function() {
43
+ var e = [...arguments];
44
+ return t.current == null ? void 0 : t.current(...e);
45
+ }, []);
46
+ }
47
+ function E(e, t) {
48
+ t === void 0 && (t = [e]);
49
+ let n = u(e);
50
+ return w(() => {
51
+ n.current !== e && (n.current = e);
52
+ }, t), n;
53
+ }
54
+ function D(e, t) {
55
+ let n = u();
56
+ return c(() => {
57
+ let t = e(n.current);
58
+ return n.current = t, t;
59
+ }, [...t]);
60
+ }
61
+ function ee(e) {
62
+ let t = T(e), n = u(null);
63
+ return [n, i((e) => {
64
+ e !== n.current && t?.(e, n.current), n.current = e;
65
+ }, [])];
66
+ }
67
+ function O(e) {
68
+ let t = u();
69
+ return o(() => {
70
+ t.current = e;
71
+ }, [e]), t.current;
72
+ }
73
+ var k = {};
74
+ function te(e, t) {
75
+ return c(() => {
76
+ if (t) return t;
77
+ let n = k[e] == null ? 0 : k[e] + 1;
78
+ return k[e] = n, e + "-" + n;
79
+ }, [e, t]);
80
+ }
81
+ function A(e) {
82
+ return function(t) {
83
+ return [...arguments].slice(1).reduce((t, n) => {
84
+ let r = Object.entries(n);
85
+ for (let [n, i] of r) {
86
+ let r = t[n];
87
+ r != null && (t[n] = r + e * i);
88
+ }
89
+ return t;
90
+ }, { ...t });
91
+ };
92
+ }
93
+ var j = A(1), M = A(-1);
94
+ function N(e) {
95
+ if (!e) return !1;
96
+ let { KeyboardEvent: t } = y(e.target);
97
+ return t && e instanceof t;
98
+ }
99
+ function ne(e) {
100
+ if (function(e) {
101
+ if (!e) return !1;
102
+ let { TouchEvent: t } = y(e.target);
103
+ return t && e instanceof t;
104
+ }(e)) {
105
+ if (e.touches && e.touches.length) {
106
+ let { clientX: t, clientY: n } = e.touches[0];
107
+ return {
108
+ x: t,
109
+ y: n
110
+ };
111
+ }
112
+ if (e.changedTouches && e.changedTouches.length) {
113
+ let { clientX: t, clientY: n } = e.changedTouches[0];
114
+ return {
115
+ x: t,
116
+ y: n
117
+ };
118
+ }
119
+ }
120
+ return function(e) {
121
+ return "clientX" in e && "clientY" in e;
122
+ }(e) ? {
123
+ x: e.clientX,
124
+ y: e.clientY
125
+ } : null;
126
+ }
127
+ var re = Object.freeze({
128
+ Translate: { toString(e) {
129
+ if (!e) return;
130
+ let { x: t, y: n } = e;
131
+ return "translate3d(" + (t ? Math.round(t) : 0) + "px, " + (n ? Math.round(n) : 0) + "px, 0)";
132
+ } },
133
+ Scale: { toString(e) {
134
+ if (!e) return;
135
+ let { scaleX: t, scaleY: n } = e;
136
+ return "scaleX(" + t + ") scaleY(" + n + ")";
137
+ } },
138
+ Transform: { toString(e) {
139
+ if (e) return [re.Translate.toString(e), re.Scale.toString(e)].join(" ");
140
+ } },
141
+ Transition: { toString(e) {
142
+ let { property: t, duration: n, easing: r } = e;
143
+ return t + " " + n + "ms " + r;
144
+ } }
145
+ }), ie = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
146
+ function P(e) {
147
+ return e.matches(ie) ? e : e.querySelector(ie);
148
+ }
149
+ var F = { display: "none" };
150
+ function ae(e) {
151
+ let { id: n, value: r } = e;
152
+ return t.createElement("div", {
153
+ id: n,
154
+ style: F
155
+ }, r);
156
+ }
157
+ function oe(e) {
158
+ let { id: n, announcement: r, ariaLiveType: i = "assertive" } = e;
159
+ return t.createElement("div", {
160
+ id: n,
161
+ style: {
162
+ position: "fixed",
163
+ top: 0,
164
+ left: 0,
165
+ width: 1,
166
+ height: 1,
167
+ margin: -1,
168
+ border: 0,
169
+ padding: 0,
170
+ overflow: "hidden",
171
+ clip: "rect(0 0 0 0)",
172
+ clipPath: "inset(100%)",
173
+ whiteSpace: "nowrap"
174
+ },
175
+ role: "status",
176
+ "aria-live": i,
177
+ "aria-atomic": !0
178
+ }, r);
179
+ }
180
+ var se = n(null), I, L = { draggable: "\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n " }, ce = {
181
+ onDragStart(e) {
182
+ let { active: t } = e;
183
+ return "Picked up draggable item " + t.id + ".";
184
+ },
185
+ onDragOver(e) {
186
+ let { active: t, over: n } = e;
187
+ return n ? "Draggable item " + t.id + " was moved over droppable area " + n.id + "." : "Draggable item " + t.id + " is no longer over a droppable area.";
188
+ },
189
+ onDragEnd(e) {
190
+ let { active: t, over: n } = e;
191
+ return n ? "Draggable item " + t.id + " was dropped over droppable area " + n.id : "Draggable item " + t.id + " was dropped.";
192
+ },
193
+ onDragCancel(e) {
194
+ let { active: t } = e;
195
+ return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
196
+ }
197
+ };
198
+ function le(e) {
199
+ let { announcements: n = ce, container: r, hiddenTextDescribedById: s, screenReaderInstructions: l = L } = e, { announce: u, announcement: f } = function() {
200
+ let [e, t] = d("");
201
+ return {
202
+ announce: i((e) => {
203
+ e != null && t(e);
204
+ }, []),
205
+ announcement: e
206
+ };
207
+ }(), p = te("DndLiveRegion"), [h, g] = d(!1);
208
+ if (o(() => {
209
+ g(!0);
210
+ }, []), function(e) {
211
+ let t = a(se);
212
+ o(() => {
213
+ if (!t) throw Error("useDndMonitor must be used within a children of <DndContext>");
214
+ return t(e);
215
+ }, [e, t]);
216
+ }(c(() => ({
217
+ onDragStart(e) {
218
+ let { active: t } = e;
219
+ u(n.onDragStart({ active: t }));
220
+ },
221
+ onDragMove(e) {
222
+ let { active: t, over: r } = e;
223
+ n.onDragMove && u(n.onDragMove({
224
+ active: t,
225
+ over: r
226
+ }));
227
+ },
228
+ onDragOver(e) {
229
+ let { active: t, over: r } = e;
230
+ u(n.onDragOver({
231
+ active: t,
232
+ over: r
233
+ }));
234
+ },
235
+ onDragEnd(e) {
236
+ let { active: t, over: r } = e;
237
+ u(n.onDragEnd({
238
+ active: t,
239
+ over: r
240
+ }));
241
+ },
242
+ onDragCancel(e) {
243
+ let { active: t, over: r } = e;
244
+ u(n.onDragCancel({
245
+ active: t,
246
+ over: r
247
+ }));
248
+ }
249
+ }), [u, n])), !h) return null;
250
+ let _ = t.createElement(t.Fragment, null, t.createElement(ae, {
251
+ id: s,
252
+ value: l.draggable
253
+ }), t.createElement(oe, {
254
+ id: p,
255
+ announcement: f
256
+ }));
257
+ return r ? m(_, r) : _;
258
+ }
259
+ function R() {}
260
+ function ue(e, t) {
261
+ return c(() => ({
262
+ sensor: e,
263
+ options: t ?? {}
264
+ }), [e, t]);
265
+ }
266
+ function de() {
267
+ var e = [...arguments];
268
+ return c(() => [...e].filter((e) => e != null), [...e]);
269
+ }
270
+ (function(e) {
271
+ e.DragStart = "dragStart", e.DragMove = "dragMove", e.DragEnd = "dragEnd", e.DragCancel = "dragCancel", e.DragOver = "dragOver", e.RegisterDroppable = "registerDroppable", e.SetDroppableDisabled = "setDroppableDisabled", e.UnregisterDroppable = "unregisterDroppable";
272
+ })(I ||= {});
273
+ var z = Object.freeze({
274
+ x: 0,
275
+ y: 0
276
+ });
277
+ function B(e, t) {
278
+ return Math.sqrt((e.x - t.x) ** 2 + (e.y - t.y) ** 2);
279
+ }
280
+ function V(e, t) {
281
+ let { data: { value: n } } = e, { data: { value: r } } = t;
282
+ return n - r;
283
+ }
284
+ function H(e, t) {
285
+ let { data: { value: n } } = e, { data: { value: r } } = t;
286
+ return r - n;
287
+ }
288
+ function U(e, t, n) {
289
+ return t === void 0 && (t = e.left), n === void 0 && (n = e.top), {
290
+ x: t + .5 * e.width,
291
+ y: n + .5 * e.height
292
+ };
293
+ }
294
+ var W = (e) => {
295
+ let { collisionRect: t, droppableRects: n, droppableContainers: r } = e, i = U(t, t.left, t.top), a = [];
296
+ for (let e of r) {
297
+ let { id: t } = e, r = n.get(t);
298
+ if (r) {
299
+ let n = B(U(r), i);
300
+ a.push({
301
+ id: t,
302
+ data: {
303
+ droppableContainer: e,
304
+ value: n
305
+ }
306
+ });
307
+ }
308
+ }
309
+ return a.sort(V);
310
+ };
311
+ function G(e, t) {
312
+ let n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), i = Math.min(t.left + t.width, e.left + e.width), a = Math.min(t.top + t.height, e.top + e.height), o = i - r, s = a - n;
313
+ if (r < i && n < a) {
314
+ let n = t.width * t.height, r = e.width * e.height, i = o * s;
315
+ return Number((i / (n + r - i)).toFixed(4));
316
+ }
317
+ return 0;
318
+ }
319
+ var fe = (e) => {
320
+ let { collisionRect: t, droppableRects: n, droppableContainers: r } = e, i = [];
321
+ for (let e of r) {
322
+ let { id: r } = e, a = n.get(r);
323
+ if (a) {
324
+ let n = G(a, t);
325
+ n > 0 && i.push({
326
+ id: r,
327
+ data: {
328
+ droppableContainer: e,
329
+ value: n
330
+ }
331
+ });
332
+ }
333
+ }
334
+ return i.sort(H);
335
+ };
336
+ function pe(e, t) {
337
+ return e && t ? {
338
+ x: e.left - t.left,
339
+ y: e.top - t.top
340
+ } : z;
341
+ }
342
+ function me(e) {
343
+ return function(t) {
344
+ return [...arguments].slice(1).reduce((t, n) => ({
345
+ ...t,
346
+ top: t.top + e * n.y,
347
+ bottom: t.bottom + e * n.y,
348
+ left: t.left + e * n.x,
349
+ right: t.right + e * n.x
350
+ }), { ...t });
351
+ };
352
+ }
353
+ var he = me(1), K, ge = { ignoreTransform: !1 };
354
+ function _e(e, t) {
355
+ t === void 0 && (t = ge);
356
+ let n = e.getBoundingClientRect();
357
+ if (t.ignoreTransform) {
358
+ let { transform: t, transformOrigin: r } = y(e).getComputedStyle(e);
359
+ t && (n = function(e, t, n) {
360
+ let r = function(e) {
361
+ if (e.startsWith("matrix3d(")) {
362
+ let t = e.slice(9, -1).split(/, /);
363
+ return {
364
+ x: +t[12],
365
+ y: +t[13],
366
+ scaleX: +t[0],
367
+ scaleY: +t[5]
368
+ };
369
+ }
370
+ if (e.startsWith("matrix(")) {
371
+ let t = e.slice(7, -1).split(/, /);
372
+ return {
373
+ x: +t[4],
374
+ y: +t[5],
375
+ scaleX: +t[0],
376
+ scaleY: +t[3]
377
+ };
378
+ }
379
+ return null;
380
+ }(t);
381
+ if (!r) return e;
382
+ let { scaleX: i, scaleY: a, x: o, y: s } = r, c = e.left - o - (1 - i) * parseFloat(n), l = e.top - s - (1 - a) * parseFloat(n.slice(n.indexOf(" ") + 1)), u = i ? e.width / i : e.width, d = a ? e.height / a : e.height;
383
+ return {
384
+ width: u,
385
+ height: d,
386
+ top: l,
387
+ right: c + u,
388
+ bottom: l + d,
389
+ left: c
390
+ };
391
+ }(n, t, r));
392
+ }
393
+ let { top: r, left: i, width: a, height: o, bottom: s, right: c } = n;
394
+ return {
395
+ top: r,
396
+ left: i,
397
+ width: a,
398
+ height: o,
399
+ bottom: s,
400
+ right: c
401
+ };
402
+ }
403
+ function q(e) {
404
+ return _e(e, { ignoreTransform: !0 });
405
+ }
406
+ function ve(e, t) {
407
+ let n = [];
408
+ return e ? function r(i) {
409
+ if (t != null && n.length >= t || !i) return n;
410
+ if (b(i) && i.scrollingElement != null && !n.includes(i.scrollingElement)) return n.push(i.scrollingElement), n;
411
+ if (!x(i) || S(i) || n.includes(i)) return n;
412
+ let a = y(e).getComputedStyle(i);
413
+ return i !== e && function(e, t) {
414
+ t === void 0 && (t = y(e).getComputedStyle(e));
415
+ let n = /(auto|scroll|overlay)/;
416
+ return [
417
+ "overflow",
418
+ "overflowX",
419
+ "overflowY"
420
+ ].some((e) => {
421
+ let r = t[e];
422
+ return typeof r == "string" && n.test(r);
423
+ });
424
+ }(i, a) && n.push(i), function(e, t) {
425
+ return t === void 0 && (t = y(e).getComputedStyle(e)), t.position === "fixed";
426
+ }(i, a) ? n : r(i.parentNode);
427
+ }(e) : n;
428
+ }
429
+ function ye(e) {
430
+ let [t] = ve(e, 1);
431
+ return t ?? null;
432
+ }
433
+ function be(e) {
434
+ return g && e ? _(e) ? e : v(e) ? b(e) || e === C(e).scrollingElement ? window : x(e) ? e : null : null : null;
435
+ }
436
+ function xe(e) {
437
+ return _(e) ? e.scrollX : e.scrollLeft;
438
+ }
439
+ function J(e) {
440
+ return _(e) ? e.scrollY : e.scrollTop;
441
+ }
442
+ function Se(e) {
443
+ return {
444
+ x: xe(e),
445
+ y: J(e)
446
+ };
447
+ }
448
+ function Ce(e) {
449
+ return !(!g || !e) && e === document.scrollingElement;
450
+ }
451
+ function we(e) {
452
+ let t = {
453
+ x: 0,
454
+ y: 0
455
+ }, n = Ce(e) ? {
456
+ height: window.innerHeight,
457
+ width: window.innerWidth
458
+ } : {
459
+ height: e.clientHeight,
460
+ width: e.clientWidth
461
+ }, r = {
462
+ x: e.scrollWidth - n.width,
463
+ y: e.scrollHeight - n.height
464
+ };
465
+ return {
466
+ isTop: e.scrollTop <= t.y,
467
+ isLeft: e.scrollLeft <= t.x,
468
+ isBottom: e.scrollTop >= r.y,
469
+ isRight: e.scrollLeft >= r.x,
470
+ maxScroll: r,
471
+ minScroll: t
472
+ };
473
+ }
474
+ (function(e) {
475
+ e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
476
+ })(K ||= {});
477
+ var Te = {
478
+ x: .2,
479
+ y: .2
480
+ };
481
+ function Ee(e, t, n, r, i) {
482
+ let { top: a, left: o, right: s, bottom: c } = n;
483
+ r === void 0 && (r = 10), i === void 0 && (i = Te);
484
+ let { isTop: l, isBottom: u, isLeft: d, isRight: f } = we(e), p = {
485
+ x: 0,
486
+ y: 0
487
+ }, m = {
488
+ x: 0,
489
+ y: 0
490
+ }, h = t.height * i.y, g = t.width * i.x;
491
+ return !l && a <= t.top + h ? (p.y = K.Backward, m.y = r * Math.abs((t.top + h - a) / h)) : !u && c >= t.bottom - h && (p.y = K.Forward, m.y = r * Math.abs((t.bottom - h - c) / h)), !f && s >= t.right - g ? (p.x = K.Forward, m.x = r * Math.abs((t.right - g - s) / g)) : !d && o <= t.left + g && (p.x = K.Backward, m.x = r * Math.abs((t.left + g - o) / g)), {
492
+ direction: p,
493
+ speed: m
494
+ };
495
+ }
496
+ function De(e) {
497
+ if (e === document.scrollingElement) {
498
+ let { innerWidth: e, innerHeight: t } = window;
499
+ return {
500
+ top: 0,
501
+ left: 0,
502
+ right: e,
503
+ bottom: t,
504
+ width: e,
505
+ height: t
506
+ };
507
+ }
508
+ let { top: t, left: n, right: r, bottom: i } = e.getBoundingClientRect();
509
+ return {
510
+ top: t,
511
+ left: n,
512
+ right: r,
513
+ bottom: i,
514
+ width: e.clientWidth,
515
+ height: e.clientHeight
516
+ };
517
+ }
518
+ function Oe(e) {
519
+ return e.reduce((e, t) => j(e, Se(t)), z);
520
+ }
521
+ var Y, X, ke = [[
522
+ "x",
523
+ ["left", "right"],
524
+ function(e) {
525
+ return e.reduce((e, t) => e + xe(t), 0);
526
+ }
527
+ ], [
528
+ "y",
529
+ ["top", "bottom"],
530
+ function(e) {
531
+ return e.reduce((e, t) => e + J(t), 0);
532
+ }
533
+ ]], Ae = class {
534
+ constructor(e, t) {
535
+ this.rect = void 0, this.width = void 0, this.height = void 0, this.top = void 0, this.bottom = void 0, this.right = void 0, this.left = void 0;
536
+ let n = ve(t), r = Oe(n);
537
+ this.rect = { ...e }, this.width = e.width, this.height = e.height;
538
+ for (let [e, t, i] of ke) for (let a of t) Object.defineProperty(this, a, {
539
+ get: () => {
540
+ let t = i(n), o = r[e] - t;
541
+ return this.rect[a] + o;
542
+ },
543
+ enumerable: !0
544
+ });
545
+ Object.defineProperty(this, "rect", { enumerable: !1 });
546
+ }
547
+ }, je = class {
548
+ constructor(e) {
549
+ this.target = void 0, this.listeners = [], this.removeAll = () => {
550
+ this.listeners.forEach((e) => this.target?.removeEventListener(...e));
551
+ }, this.target = e;
552
+ }
553
+ add(e, t, n) {
554
+ var r;
555
+ (r = this.target) == null || r.addEventListener(e, t, n), this.listeners.push([
556
+ e,
557
+ t,
558
+ n
559
+ ]);
560
+ }
561
+ };
562
+ function Z(e, t) {
563
+ let n = Math.abs(e.x), r = Math.abs(e.y);
564
+ return typeof t == "number" ? Math.sqrt(n ** 2 + r ** 2) > t : "x" in t && "y" in t ? n > t.x && r > t.y : "x" in t ? n > t.x : "y" in t && r > t.y;
565
+ }
566
+ function Me(e) {
567
+ e.preventDefault();
568
+ }
569
+ function Ne(e) {
570
+ e.stopPropagation();
571
+ }
572
+ (function(e) {
573
+ e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
574
+ })(Y ||= {}), function(e) {
575
+ e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter", e.Tab = "Tab";
576
+ }(X ||= {});
577
+ var Pe = {
578
+ start: [X.Space, X.Enter],
579
+ cancel: [X.Esc],
580
+ end: [
581
+ X.Space,
582
+ X.Enter,
583
+ X.Tab
584
+ ]
585
+ }, Fe = (e, t) => {
586
+ let { currentCoordinates: n } = t;
587
+ switch (e.code) {
588
+ case X.Right: return {
589
+ ...n,
590
+ x: n.x + 25
591
+ };
592
+ case X.Left: return {
593
+ ...n,
594
+ x: n.x - 25
595
+ };
596
+ case X.Down: return {
597
+ ...n,
598
+ y: n.y + 25
599
+ };
600
+ case X.Up: return {
601
+ ...n,
602
+ y: n.y - 25
603
+ };
604
+ }
605
+ }, Ie = class {
606
+ constructor(e) {
607
+ this.props = void 0, this.autoScrollEnabled = !1, this.referenceCoordinates = void 0, this.listeners = void 0, this.windowListeners = void 0, this.props = e;
608
+ let { event: { target: t } } = e;
609
+ this.props = e, this.listeners = new je(C(t)), this.windowListeners = new je(y(t)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
610
+ }
611
+ attach() {
612
+ this.handleStart(), this.windowListeners.add(Y.Resize, this.handleCancel), this.windowListeners.add(Y.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(Y.Keydown, this.handleKeyDown));
613
+ }
614
+ handleStart() {
615
+ let { activeNode: e, onStart: t } = this.props, n = e.node.current;
616
+ n && function(e, t) {
617
+ if (t === void 0 && (t = _e), !e) return;
618
+ let { top: n, left: r, bottom: i, right: a } = t(e);
619
+ ye(e) && (i <= 0 || a <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
620
+ block: "center",
621
+ inline: "center"
622
+ });
623
+ }(n), t(z);
624
+ }
625
+ handleKeyDown(e) {
626
+ if (N(e)) {
627
+ let { active: t, context: n, options: r } = this.props, { keyboardCodes: i = Pe, coordinateGetter: a = Fe, scrollBehavior: o = "smooth" } = r, { code: s } = e;
628
+ if (i.end.includes(s)) return void this.handleEnd(e);
629
+ if (i.cancel.includes(s)) return void this.handleCancel(e);
630
+ let { collisionRect: c } = n.current, l = c ? {
631
+ x: c.left,
632
+ y: c.top
633
+ } : z;
634
+ this.referenceCoordinates ||= l;
635
+ let u = a(e, {
636
+ active: t,
637
+ context: n.current,
638
+ currentCoordinates: l
639
+ });
640
+ if (u) {
641
+ let t = M(u, l), r = {
642
+ x: 0,
643
+ y: 0
644
+ }, { scrollableAncestors: i } = n.current;
645
+ for (let n of i) {
646
+ let i = e.code, { isTop: a, isRight: s, isLeft: c, isBottom: l, maxScroll: d, minScroll: f } = we(n), p = De(n), m = {
647
+ x: Math.min(i === X.Right ? p.right - p.width / 2 : p.right, Math.max(i === X.Right ? p.left : p.left + p.width / 2, u.x)),
648
+ y: Math.min(i === X.Down ? p.bottom - p.height / 2 : p.bottom, Math.max(i === X.Down ? p.top : p.top + p.height / 2, u.y))
649
+ }, h = i === X.Right && !s || i === X.Left && !c, g = i === X.Down && !l || i === X.Up && !a;
650
+ if (h && m.x !== u.x) {
651
+ let e = n.scrollLeft + t.x, a = i === X.Right && e <= d.x || i === X.Left && e >= f.x;
652
+ if (a && !t.y) return void n.scrollTo({
653
+ left: e,
654
+ behavior: o
655
+ });
656
+ r.x = a ? n.scrollLeft - e : i === X.Right ? n.scrollLeft - d.x : n.scrollLeft - f.x, r.x && n.scrollBy({
657
+ left: -r.x,
658
+ behavior: o
659
+ });
660
+ break;
661
+ }
662
+ if (g && m.y !== u.y) {
663
+ let e = n.scrollTop + t.y, a = i === X.Down && e <= d.y || i === X.Up && e >= f.y;
664
+ if (a && !t.x) return void n.scrollTo({
665
+ top: e,
666
+ behavior: o
667
+ });
668
+ r.y = a ? n.scrollTop - e : i === X.Down ? n.scrollTop - d.y : n.scrollTop - f.y, r.y && n.scrollBy({
669
+ top: -r.y,
670
+ behavior: o
671
+ });
672
+ break;
673
+ }
674
+ }
675
+ this.handleMove(e, j(M(u, this.referenceCoordinates), r));
676
+ }
677
+ }
678
+ }
679
+ handleMove(e, t) {
680
+ let { onMove: n } = this.props;
681
+ e.preventDefault(), n(t);
682
+ }
683
+ handleEnd(e) {
684
+ let { onEnd: t } = this.props;
685
+ e.preventDefault(), this.detach(), t();
686
+ }
687
+ handleCancel(e) {
688
+ let { onCancel: t } = this.props;
689
+ e.preventDefault(), this.detach(), t();
690
+ }
691
+ detach() {
692
+ this.listeners.removeAll(), this.windowListeners.removeAll();
693
+ }
694
+ };
695
+ function Le(e) {
696
+ return !!(e && "distance" in e);
697
+ }
698
+ function Re(e) {
699
+ return !!(e && "delay" in e);
700
+ }
701
+ Ie.activators = [{
702
+ eventName: "onKeyDown",
703
+ handler: (e, t, n) => {
704
+ let { keyboardCodes: r = Pe, onActivation: i } = t, { active: a } = n, { code: o } = e.nativeEvent;
705
+ if (r.start.includes(o)) {
706
+ let t = a.activatorNode.current;
707
+ return (!t || e.target === t) && (e.preventDefault(), i?.({ event: e.nativeEvent }), !0);
708
+ }
709
+ return !1;
710
+ }
711
+ }];
712
+ var Q = class {
713
+ constructor(e, t, n) {
714
+ n === void 0 && (n = function(e) {
715
+ let { EventTarget: t } = y(e);
716
+ return e instanceof t ? e : C(e);
717
+ }(e.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = e, this.events = t;
718
+ let { event: r } = e, { target: i } = r;
719
+ this.props = e, this.events = t, this.document = C(i), this.documentListeners = new je(this.document), this.listeners = new je(n), this.windowListeners = new je(y(i)), this.initialCoordinates = ne(r) ?? z, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
720
+ }
721
+ attach() {
722
+ let { events: e, props: { options: { activationConstraint: t, bypassActivationConstraint: n } } } = this;
723
+ if (this.listeners.add(e.move.name, this.handleMove, { passive: !1 }), this.listeners.add(e.end.name, this.handleEnd), e.cancel && this.listeners.add(e.cancel.name, this.handleCancel), this.windowListeners.add(Y.Resize, this.handleCancel), this.windowListeners.add(Y.DragStart, Me), this.windowListeners.add(Y.VisibilityChange, this.handleCancel), this.windowListeners.add(Y.ContextMenu, Me), this.documentListeners.add(Y.Keydown, this.handleKeydown), t) {
724
+ if (n != null && n({
725
+ event: this.props.event,
726
+ activeNode: this.props.activeNode,
727
+ options: this.props.options
728
+ })) return this.handleStart();
729
+ if (Re(t)) return this.timeoutId = setTimeout(this.handleStart, t.delay), void this.handlePending(t);
730
+ if (Le(t)) return void this.handlePending(t);
731
+ }
732
+ this.handleStart();
733
+ }
734
+ detach() {
735
+ this.listeners.removeAll(), this.windowListeners.removeAll(), setTimeout(this.documentListeners.removeAll, 50), this.timeoutId !== null && (clearTimeout(this.timeoutId), this.timeoutId = null);
736
+ }
737
+ handlePending(e, t) {
738
+ let { active: n, onPending: r } = this.props;
739
+ r(n, e, this.initialCoordinates, t);
740
+ }
741
+ handleStart() {
742
+ let { initialCoordinates: e } = this, { onStart: t } = this.props;
743
+ e && (this.activated = !0, this.documentListeners.add(Y.Click, Ne, { capture: !0 }), this.removeTextSelection(), this.documentListeners.add(Y.SelectionChange, this.removeTextSelection), t(e));
744
+ }
745
+ handleMove(e) {
746
+ let { activated: t, initialCoordinates: n, props: r } = this, { onMove: i, options: { activationConstraint: a } } = r;
747
+ if (!n) return;
748
+ let o = ne(e) ?? z, s = M(n, o);
749
+ if (!t && a) {
750
+ if (Le(a)) {
751
+ if (a.tolerance != null && Z(s, a.tolerance)) return this.handleCancel();
752
+ if (Z(s, a.distance)) return this.handleStart();
753
+ }
754
+ return Re(a) && Z(s, a.tolerance) ? this.handleCancel() : void this.handlePending(a, s);
755
+ }
756
+ e.cancelable && e.preventDefault(), i(o);
757
+ }
758
+ handleEnd() {
759
+ let { onAbort: e, onEnd: t } = this.props;
760
+ this.detach(), this.activated || e(this.props.active), t();
761
+ }
762
+ handleCancel() {
763
+ let { onAbort: e, onCancel: t } = this.props;
764
+ this.detach(), this.activated || e(this.props.active), t();
765
+ }
766
+ handleKeydown(e) {
767
+ e.code === X.Esc && this.handleCancel();
768
+ }
769
+ removeTextSelection() {
770
+ var e;
771
+ (e = this.document.getSelection()) == null || e.removeAllRanges();
772
+ }
773
+ }, ze = {
774
+ cancel: { name: "pointercancel" },
775
+ move: { name: "pointermove" },
776
+ end: { name: "pointerup" }
777
+ }, Be = class extends Q {
778
+ constructor(e) {
779
+ let { event: t } = e, n = C(t.target);
780
+ super(e, ze, n);
781
+ }
782
+ };
783
+ Be.activators = [{
784
+ eventName: "onPointerDown",
785
+ handler: (e, t) => {
786
+ let { nativeEvent: n } = e, { onActivation: r } = t;
787
+ return !(!n.isPrimary || n.button !== 0) && (r?.({ event: n }), !0);
788
+ }
789
+ }];
790
+ var $, Ve = {
791
+ move: { name: "mousemove" },
792
+ end: { name: "mouseup" }
793
+ };
794
+ (function(e) {
795
+ e[e.RightClick = 2] = "RightClick";
796
+ })($ ||= {});
797
+ var He = class extends Q {
798
+ constructor(e) {
799
+ super(e, Ve, C(e.event.target));
800
+ }
801
+ };
802
+ He.activators = [{
803
+ eventName: "onMouseDown",
804
+ handler: (e, t) => {
805
+ let { nativeEvent: n } = e, { onActivation: r } = t;
806
+ return n.button !== $.RightClick && (r?.({ event: n }), !0);
807
+ }
808
+ }];
809
+ var Ue, We, Ge = {
810
+ cancel: { name: "touchcancel" },
811
+ move: { name: "touchmove" },
812
+ end: { name: "touchend" }
813
+ }, Ke = class extends Q {
814
+ constructor(e) {
815
+ super(e, Ge);
816
+ }
817
+ static setup() {
818
+ return window.addEventListener(Ge.move.name, e, {
819
+ capture: !1,
820
+ passive: !1
821
+ }), function() {
822
+ window.removeEventListener(Ge.move.name, e);
823
+ };
824
+ function e() {}
825
+ }
826
+ };
827
+ function qe(e) {
828
+ let { acceleration: t, activator: n = Ue.Pointer, canScroll: r, draggingRect: a, enabled: s, interval: l = 5, order: d = We.TreeOrder, pointerCoordinates: f, scrollableAncestors: p, scrollableAncestorRects: m, delta: h, threshold: g } = e, _ = function(e) {
829
+ let { delta: t, disabled: n } = e, r = O(t);
830
+ return D((e) => {
831
+ if (n || !r || !e) return Xe;
832
+ let i = {
833
+ x: Math.sign(t.x - r.x),
834
+ y: Math.sign(t.y - r.y)
835
+ };
836
+ return {
837
+ x: {
838
+ [K.Backward]: e.x[K.Backward] || i.x === -1,
839
+ [K.Forward]: e.x[K.Forward] || i.x === 1
840
+ },
841
+ y: {
842
+ [K.Backward]: e.y[K.Backward] || i.y === -1,
843
+ [K.Forward]: e.y[K.Forward] || i.y === 1
844
+ }
845
+ };
846
+ }, [
847
+ n,
848
+ t,
849
+ r
850
+ ]);
851
+ }({
852
+ delta: h,
853
+ disabled: !s
854
+ }), [v, y] = function() {
855
+ let e = u(null);
856
+ return [i((t, n) => {
857
+ e.current = setInterval(t, n);
858
+ }, []), i(() => {
859
+ e.current !== null && (clearInterval(e.current), e.current = null);
860
+ }, [])];
861
+ }(), b = u({
862
+ x: 0,
863
+ y: 0
864
+ }), x = u({
865
+ x: 0,
866
+ y: 0
867
+ }), S = c(() => {
868
+ switch (n) {
869
+ case Ue.Pointer: return f ? {
870
+ top: f.y,
871
+ bottom: f.y,
872
+ left: f.x,
873
+ right: f.x
874
+ } : null;
875
+ case Ue.DraggableRect: return a;
876
+ }
877
+ }, [
878
+ n,
879
+ a,
880
+ f
881
+ ]), C = u(null), w = i(() => {
882
+ let e = C.current;
883
+ if (!e) return;
884
+ let t = b.current.x * x.current.x, n = b.current.y * x.current.y;
885
+ e.scrollBy(t, n);
886
+ }, []), T = c(() => d === We.TreeOrder ? [...p].reverse() : p, [d, p]);
887
+ o(() => {
888
+ if (s && p.length && S) {
889
+ for (let e of T) {
890
+ if (!1 === r?.(e)) continue;
891
+ let n = p.indexOf(e), i = m[n];
892
+ if (!i) continue;
893
+ let { direction: a, speed: o } = Ee(e, i, S, t, g);
894
+ for (let e of ["x", "y"]) _[e][a[e]] || (o[e] = 0, a[e] = 0);
895
+ if (o.x > 0 || o.y > 0) return y(), C.current = e, v(w, l), b.current = o, void (x.current = a);
896
+ }
897
+ b.current = {
898
+ x: 0,
899
+ y: 0
900
+ }, x.current = {
901
+ x: 0,
902
+ y: 0
903
+ }, y();
904
+ } else y();
905
+ }, [
906
+ t,
907
+ w,
908
+ r,
909
+ y,
910
+ s,
911
+ l,
912
+ JSON.stringify(S),
913
+ JSON.stringify(_),
914
+ v,
915
+ p,
916
+ T,
917
+ m,
918
+ JSON.stringify(g)
919
+ ]);
920
+ }
921
+ Ke.activators = [{
922
+ eventName: "onTouchStart",
923
+ handler: (e, t) => {
924
+ let { nativeEvent: n } = e, { onActivation: r } = t, { touches: i } = n;
925
+ return !(i.length > 1) && (r?.({ event: n }), !0);
926
+ }
927
+ }], function(e) {
928
+ e[e.Pointer = 0] = "Pointer", e[e.DraggableRect = 1] = "DraggableRect";
929
+ }(Ue ||= {}), function(e) {
930
+ e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
931
+ }(We ||= {});
932
+ var Je, Ye, Xe = {
933
+ x: {
934
+ [K.Backward]: !1,
935
+ [K.Forward]: !1
936
+ },
937
+ y: {
938
+ [K.Backward]: !1,
939
+ [K.Forward]: !1
940
+ }
941
+ };
942
+ (function(e) {
943
+ e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
944
+ })(Je ||= {}), function(e) {
945
+ e.Optimized = "optimized";
946
+ }(Ye ||= {});
947
+ var Ze = /* @__PURE__ */ new Map();
948
+ function Qe(e, t) {
949
+ return D((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
950
+ }
951
+ function $e(e) {
952
+ let { callback: t, disabled: n } = e, r = T(t), i = c(() => {
953
+ if (n || typeof window > "u" || window.ResizeObserver === void 0) return;
954
+ let { ResizeObserver: e } = window;
955
+ return new e(r);
956
+ }, [n]);
957
+ return o(() => () => i?.disconnect(), [i]), i;
958
+ }
959
+ function et(e) {
960
+ return new Ae(_e(e), e);
961
+ }
962
+ function tt(e, t, n) {
963
+ t === void 0 && (t = et);
964
+ let [r, i] = d(null);
965
+ function a() {
966
+ i((r) => {
967
+ if (!e) return null;
968
+ if (!1 === e.isConnected) return r ?? n ?? null;
969
+ let i = t(e);
970
+ return JSON.stringify(r) === JSON.stringify(i) ? r : i;
971
+ });
972
+ }
973
+ let s = function(e) {
974
+ let { callback: t, disabled: n } = e, r = T(t), i = c(() => {
975
+ if (n || typeof window > "u" || window.MutationObserver === void 0) return;
976
+ let { MutationObserver: e } = window;
977
+ return new e(r);
978
+ }, [r, n]);
979
+ return o(() => () => i?.disconnect(), [i]), i;
980
+ }({ callback(t) {
981
+ if (e) for (let n of t) {
982
+ let { type: t, target: r } = n;
983
+ if (t === "childList" && r instanceof HTMLElement && r.contains(e)) {
984
+ a();
985
+ break;
986
+ }
987
+ }
988
+ } }), l = $e({ callback: a });
989
+ return w(() => {
990
+ a(), e ? (l?.observe(e), s?.observe(document.body, {
991
+ childList: !0,
992
+ subtree: !0
993
+ })) : (l?.disconnect(), s?.disconnect());
994
+ }, [e]), r;
995
+ }
996
+ var nt = [];
997
+ function rt(e, t) {
998
+ t === void 0 && (t = []);
999
+ let n = u(null);
1000
+ return o(() => {
1001
+ n.current = null;
1002
+ }, t), o(() => {
1003
+ let t = e !== z;
1004
+ t && !n.current && (n.current = e), !t && n.current && (n.current = null);
1005
+ }, [e]), n.current ? M(e, n.current) : z;
1006
+ }
1007
+ function it(e) {
1008
+ return c(() => e ? function(e) {
1009
+ let t = e.innerWidth, n = e.innerHeight;
1010
+ return {
1011
+ top: 0,
1012
+ left: 0,
1013
+ right: t,
1014
+ bottom: n,
1015
+ width: t,
1016
+ height: n
1017
+ };
1018
+ }(e) : null, [e]);
1019
+ }
1020
+ var at = [];
1021
+ function ot(e) {
1022
+ let { measure: t } = e, [n, r] = d(null), a = $e({ callback: i((e) => {
1023
+ for (let { target: n } of e) if (x(n)) {
1024
+ r((e) => {
1025
+ let r = t(n);
1026
+ return e ? {
1027
+ ...e,
1028
+ width: r.width,
1029
+ height: r.height
1030
+ } : r;
1031
+ });
1032
+ break;
1033
+ }
1034
+ }, [t]) }), [o, s] = ee(i((e) => {
1035
+ let n = function(e) {
1036
+ if (!e) return null;
1037
+ if (e.children.length > 1) return e;
1038
+ let t = e.children[0];
1039
+ return x(t) ? t : e;
1040
+ }(e);
1041
+ a?.disconnect(), n && a?.observe(n), r(n ? t(n) : null);
1042
+ }, [t, a]));
1043
+ return c(() => ({
1044
+ nodeRef: o,
1045
+ rect: n,
1046
+ setRef: s
1047
+ }), [
1048
+ n,
1049
+ o,
1050
+ s
1051
+ ]);
1052
+ }
1053
+ var st = [{
1054
+ sensor: Be,
1055
+ options: {}
1056
+ }, {
1057
+ sensor: Ie,
1058
+ options: {}
1059
+ }], ct = { current: {} }, lt = {
1060
+ draggable: { measure: q },
1061
+ droppable: {
1062
+ measure: q,
1063
+ strategy: Je.WhileDragging,
1064
+ frequency: Ye.Optimized
1065
+ },
1066
+ dragOverlay: { measure: _e }
1067
+ }, ut = class extends Map {
1068
+ get(e) {
1069
+ var t;
1070
+ return e != null && (t = super.get(e)) != null ? t : void 0;
1071
+ }
1072
+ toArray() {
1073
+ return Array.from(this.values());
1074
+ }
1075
+ getEnabled() {
1076
+ return this.toArray().filter((e) => {
1077
+ let { disabled: t } = e;
1078
+ return !t;
1079
+ });
1080
+ }
1081
+ getNodeFor(e) {
1082
+ return this.get(e)?.node.current ?? void 0;
1083
+ }
1084
+ }, dt = {
1085
+ activatorEvent: null,
1086
+ active: null,
1087
+ activeNode: null,
1088
+ activeNodeRect: null,
1089
+ collisions: null,
1090
+ containerNodeRect: null,
1091
+ draggableNodes: /* @__PURE__ */ new Map(),
1092
+ droppableRects: /* @__PURE__ */ new Map(),
1093
+ droppableContainers: new ut(),
1094
+ over: null,
1095
+ dragOverlay: {
1096
+ nodeRef: { current: null },
1097
+ rect: null,
1098
+ setRef: R
1099
+ },
1100
+ scrollableAncestors: [],
1101
+ scrollableAncestorRects: [],
1102
+ measuringConfiguration: lt,
1103
+ measureDroppableContainers: R,
1104
+ windowRect: null,
1105
+ measuringScheduled: !1
1106
+ }, ft = n({
1107
+ activatorEvent: null,
1108
+ activators: [],
1109
+ active: null,
1110
+ activeNodeRect: null,
1111
+ ariaDescribedById: { draggable: "" },
1112
+ dispatch: R,
1113
+ draggableNodes: /* @__PURE__ */ new Map(),
1114
+ over: null,
1115
+ measureDroppableContainers: R
1116
+ }), pt = n(dt);
1117
+ function mt() {
1118
+ return {
1119
+ draggable: {
1120
+ active: null,
1121
+ initialCoordinates: {
1122
+ x: 0,
1123
+ y: 0
1124
+ },
1125
+ nodes: /* @__PURE__ */ new Map(),
1126
+ translate: {
1127
+ x: 0,
1128
+ y: 0
1129
+ }
1130
+ },
1131
+ droppable: { containers: new ut() }
1132
+ };
1133
+ }
1134
+ function ht(e, t) {
1135
+ switch (t.type) {
1136
+ case I.DragStart: return {
1137
+ ...e,
1138
+ draggable: {
1139
+ ...e.draggable,
1140
+ initialCoordinates: t.initialCoordinates,
1141
+ active: t.active
1142
+ }
1143
+ };
1144
+ case I.DragMove: return e.draggable.active == null ? e : {
1145
+ ...e,
1146
+ draggable: {
1147
+ ...e.draggable,
1148
+ translate: {
1149
+ x: t.coordinates.x - e.draggable.initialCoordinates.x,
1150
+ y: t.coordinates.y - e.draggable.initialCoordinates.y
1151
+ }
1152
+ }
1153
+ };
1154
+ case I.DragEnd:
1155
+ case I.DragCancel: return {
1156
+ ...e,
1157
+ draggable: {
1158
+ ...e.draggable,
1159
+ active: null,
1160
+ initialCoordinates: {
1161
+ x: 0,
1162
+ y: 0
1163
+ },
1164
+ translate: {
1165
+ x: 0,
1166
+ y: 0
1167
+ }
1168
+ }
1169
+ };
1170
+ case I.RegisterDroppable: {
1171
+ let { element: n } = t, { id: r } = n, i = new ut(e.droppable.containers);
1172
+ return i.set(r, n), {
1173
+ ...e,
1174
+ droppable: {
1175
+ ...e.droppable,
1176
+ containers: i
1177
+ }
1178
+ };
1179
+ }
1180
+ case I.SetDroppableDisabled: {
1181
+ let { id: n, key: r, disabled: i } = t, a = e.droppable.containers.get(n);
1182
+ if (!a || r !== a.key) return e;
1183
+ let o = new ut(e.droppable.containers);
1184
+ return o.set(n, {
1185
+ ...a,
1186
+ disabled: i
1187
+ }), {
1188
+ ...e,
1189
+ droppable: {
1190
+ ...e.droppable,
1191
+ containers: o
1192
+ }
1193
+ };
1194
+ }
1195
+ case I.UnregisterDroppable: {
1196
+ let { id: n, key: r } = t, i = e.droppable.containers.get(n);
1197
+ if (!i || r !== i.key) return e;
1198
+ let a = new ut(e.droppable.containers);
1199
+ return a.delete(n), {
1200
+ ...e,
1201
+ droppable: {
1202
+ ...e.droppable,
1203
+ containers: a
1204
+ }
1205
+ };
1206
+ }
1207
+ default: return e;
1208
+ }
1209
+ }
1210
+ function gt(e) {
1211
+ let { disabled: t } = e, { active: n, activatorEvent: r, draggableNodes: i } = a(ft), s = O(r), c = O(n?.id);
1212
+ return o(() => {
1213
+ if (!t && !r && s && c != null) {
1214
+ if (!N(s) || document.activeElement === s.target) return;
1215
+ let e = i.get(c);
1216
+ if (!e) return;
1217
+ let { activatorNode: t, node: n } = e;
1218
+ if (!t.current && !n.current) return;
1219
+ requestAnimationFrame(() => {
1220
+ for (let e of [t.current, n.current]) {
1221
+ if (!e) continue;
1222
+ let t = P(e);
1223
+ if (t) {
1224
+ t.focus();
1225
+ break;
1226
+ }
1227
+ }
1228
+ });
1229
+ }
1230
+ }, [
1231
+ r,
1232
+ t,
1233
+ i,
1234
+ c,
1235
+ s
1236
+ ]), null;
1237
+ }
1238
+ var _t, vt = n({
1239
+ ...z,
1240
+ scaleX: 1,
1241
+ scaleY: 1
1242
+ });
1243
+ (function(e) {
1244
+ e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
1245
+ })(_t ||= {});
1246
+ var yt = r(function(e) {
1247
+ let { id: n, accessibility: r, autoScroll: a = !0, children: s, sensors: f = st, collisionDetection: p = fe, measuring: m, modifiers: _, ...v } = e, [b, x] = l(ht, void 0, mt), [S, C] = function() {
1248
+ let [e] = d(() => /* @__PURE__ */ new Set()), t = i((t) => (e.add(t), () => e.delete(t)), [e]);
1249
+ return [i((t) => {
1250
+ let { type: n, event: r } = t;
1251
+ e.forEach((e) => e[n]?.call(e, r));
1252
+ }, [e]), t];
1253
+ }(), [T, ee] = d(_t.Uninitialized), O = T === _t.Initialized, { draggable: { active: k, nodes: A, translate: M }, droppable: { containers: N } } = b, re = k == null ? null : A.get(k), ie = u({
1254
+ initial: null,
1255
+ translated: null
1256
+ }), P = c(() => k == null ? null : {
1257
+ id: k,
1258
+ data: re?.data ?? ct,
1259
+ rect: ie
1260
+ }, [k, re]), F = u(null), [ae, oe] = d(null), [L, ce] = d(null), R = E(v, Object.values(v)), ue = te("DndDescribedBy", n), de = c(() => N.getEnabled(), [N]), B = c(() => ({
1261
+ draggable: {
1262
+ ...lt.draggable,
1263
+ ...V?.draggable
1264
+ },
1265
+ droppable: {
1266
+ ...lt.droppable,
1267
+ ...V?.droppable
1268
+ },
1269
+ dragOverlay: {
1270
+ ...lt.dragOverlay,
1271
+ ...V?.dragOverlay
1272
+ }
1273
+ }), [
1274
+ (V = m)?.draggable,
1275
+ V?.droppable,
1276
+ V?.dragOverlay
1277
+ ]);
1278
+ var V;
1279
+ let { droppableRects: H, measureDroppableContainers: U, measuringScheduled: W } = function(e, t) {
1280
+ let { dragging: n, dependencies: r, config: a } = t, [s, c] = d(null), { frequency: l, measure: f, strategy: p } = a, m = u(e), h = function() {
1281
+ switch (p) {
1282
+ case Je.Always: return !1;
1283
+ case Je.BeforeDragging: return n;
1284
+ default: return !n;
1285
+ }
1286
+ }(), g = E(h), _ = i(function(e) {
1287
+ e === void 0 && (e = []), g.current || c((t) => t === null ? e : t.concat(e.filter((e) => !t.includes(e))));
1288
+ }, [g]), v = u(null), y = D((t) => {
1289
+ if (h && !n) return Ze;
1290
+ if (!t || t === Ze || m.current !== e || s != null) {
1291
+ let t = /* @__PURE__ */ new Map();
1292
+ for (let n of e) {
1293
+ if (!n) continue;
1294
+ if (s && s.length > 0 && !s.includes(n.id) && n.rect.current) {
1295
+ t.set(n.id, n.rect.current);
1296
+ continue;
1297
+ }
1298
+ let e = n.node.current, r = e ? new Ae(f(e), e) : null;
1299
+ n.rect.current = r, r && t.set(n.id, r);
1300
+ }
1301
+ return t;
1302
+ }
1303
+ return t;
1304
+ }, [
1305
+ e,
1306
+ s,
1307
+ n,
1308
+ h,
1309
+ f
1310
+ ]);
1311
+ return o(() => {
1312
+ m.current = e;
1313
+ }, [e]), o(() => {
1314
+ h || _();
1315
+ }, [n, h]), o(() => {
1316
+ s && s.length > 0 && c(null);
1317
+ }, [JSON.stringify(s)]), o(() => {
1318
+ h || typeof l != "number" || v.current !== null || (v.current = setTimeout(() => {
1319
+ _(), v.current = null;
1320
+ }, l));
1321
+ }, [
1322
+ l,
1323
+ h,
1324
+ _,
1325
+ ...r
1326
+ ]), {
1327
+ droppableRects: y,
1328
+ measureDroppableContainers: _,
1329
+ measuringScheduled: s != null
1330
+ };
1331
+ }(de, {
1332
+ dragging: O,
1333
+ dependencies: [M.x, M.y],
1334
+ config: B.droppable
1335
+ }), G = function(e, t) {
1336
+ let n = t == null ? void 0 : e.get(t), r = n ? n.node.current : null;
1337
+ return D((e) => t == null ? null : r ?? e ?? null, [r, t]);
1338
+ }(A, k), me = c(() => L ? ne(L) : null, [L]), K = function() {
1339
+ let e = !1 === ae?.autoScrollEnabled, t = typeof a == "object" ? !1 === a.enabled : !1 === a, n = O && !e && !t;
1340
+ return typeof a == "object" ? {
1341
+ ...a,
1342
+ enabled: n
1343
+ } : { enabled: n };
1344
+ }(), ge = function(e, t) {
1345
+ return Qe(e, t);
1346
+ }(G, B.draggable.measure);
1347
+ (function(e) {
1348
+ let { activeNode: t, measure: n, initialRect: r, config: i = !0 } = e, a = u(!1), { x: o, y: s } = typeof i == "boolean" ? {
1349
+ x: i,
1350
+ y: i
1351
+ } : i;
1352
+ w(() => {
1353
+ if (!o && !s || !t) return void (a.current = !1);
1354
+ if (a.current || !r) return;
1355
+ let e = t?.node.current;
1356
+ if (!e || !1 === e.isConnected) return;
1357
+ let i = pe(n(e), r);
1358
+ if (o || (i.x = 0), s || (i.y = 0), a.current = !0, Math.abs(i.x) > 0 || Math.abs(i.y) > 0) {
1359
+ let t = ye(e);
1360
+ t && t.scrollBy({
1361
+ top: i.y,
1362
+ left: i.x
1363
+ });
1364
+ }
1365
+ }, [
1366
+ t,
1367
+ o,
1368
+ s,
1369
+ r,
1370
+ n
1371
+ ]);
1372
+ })({
1373
+ activeNode: k == null ? null : A.get(k),
1374
+ config: K.layoutShiftCompensation,
1375
+ initialRect: ge,
1376
+ measure: B.draggable.measure
1377
+ });
1378
+ let q = tt(G, B.draggable.measure, ge), xe = tt(G ? G.parentElement : null), J = u({
1379
+ activatorEvent: null,
1380
+ active: null,
1381
+ activeNode: G,
1382
+ collisionRect: null,
1383
+ collisions: null,
1384
+ droppableRects: H,
1385
+ draggableNodes: A,
1386
+ draggingNode: null,
1387
+ draggingNodeRect: null,
1388
+ droppableContainers: N,
1389
+ over: null,
1390
+ scrollableAncestors: [],
1391
+ scrollAdjustedTranslate: null
1392
+ }), we = N.getNodeFor(J.current.over?.id), Te = ot({ measure: B.dragOverlay.measure }), Ee = Te.nodeRef.current ?? G, De = O ? Te.rect ?? q : null, Y = !!(Te.nodeRef.current && Te.rect), X = pe(ke = Y ? null : q, Qe(ke));
1393
+ var ke;
1394
+ let je = it(Ee ? y(Ee) : null), Z = function(e) {
1395
+ let t = u(e), n = D((n) => e ? n && n !== nt && e && t.current && e.parentNode === t.current.parentNode ? n : ve(e) : nt, [e]);
1396
+ return o(() => {
1397
+ t.current = e;
1398
+ }, [e]), n;
1399
+ }(O ? we ?? G : null), Me = function(e, t) {
1400
+ t === void 0 && (t = _e);
1401
+ let [n] = e, r = it(n ? y(n) : null), [i, a] = d(at);
1402
+ function o() {
1403
+ a(() => e.length ? e.map((e) => Ce(e) ? r : new Ae(t(e), e)) : at);
1404
+ }
1405
+ let s = $e({ callback: o });
1406
+ return w(() => {
1407
+ s?.disconnect(), o(), e.forEach((e) => s?.observe(e));
1408
+ }, [e]), i;
1409
+ }(Z), Ne = function(e, t) {
1410
+ let { transform: n, ...r } = t;
1411
+ return e != null && e.length ? e.reduce((e, t) => t({
1412
+ transform: e,
1413
+ ...r
1414
+ }), n) : n;
1415
+ }(_, {
1416
+ transform: {
1417
+ x: M.x - X.x,
1418
+ y: M.y - X.y,
1419
+ scaleX: 1,
1420
+ scaleY: 1
1421
+ },
1422
+ activatorEvent: L,
1423
+ active: P,
1424
+ activeNodeRect: q,
1425
+ containerNodeRect: xe,
1426
+ draggingNodeRect: De,
1427
+ over: J.current.over,
1428
+ overlayNodeRect: Te.rect,
1429
+ scrollableAncestors: Z,
1430
+ scrollableAncestorRects: Me,
1431
+ windowRect: je
1432
+ }), Pe = me ? j(me, M) : null, Fe = function(e) {
1433
+ let [t, n] = d(null), r = u(e), a = i((e) => {
1434
+ let t = be(e.target);
1435
+ t && n((e) => e ? (e.set(t, Se(t)), new Map(e)) : null);
1436
+ }, []);
1437
+ return o(() => {
1438
+ let t = r.current;
1439
+ if (e !== t) {
1440
+ i(t);
1441
+ let o = e.map((e) => {
1442
+ let t = be(e);
1443
+ return t ? (t.addEventListener("scroll", a, { passive: !0 }), [t, Se(t)]) : null;
1444
+ }).filter((e) => e != null);
1445
+ n(o.length ? new Map(o) : null), r.current = e;
1446
+ }
1447
+ return () => {
1448
+ i(e), i(t);
1449
+ };
1450
+ function i(e) {
1451
+ e.forEach((e) => {
1452
+ be(e)?.removeEventListener("scroll", a);
1453
+ });
1454
+ }
1455
+ }, [a, e]), c(() => e.length ? t ? Array.from(t.values()).reduce((e, t) => j(e, t), z) : Oe(e) : z, [e, t]);
1456
+ }(Z), Ie = rt(Fe), Le = rt(Fe, [q]), Re = j(Ne, Ie), Q = De ? he(De, Ne) : null, ze = P && Q ? p({
1457
+ active: P,
1458
+ collisionRect: Q,
1459
+ droppableRects: H,
1460
+ droppableContainers: de,
1461
+ pointerCoordinates: Pe
1462
+ }) : null, Be = function(e, t) {
1463
+ if (!e || e.length === 0) return null;
1464
+ let [n] = e;
1465
+ return t ? n[t] : n;
1466
+ }(ze, "id"), [$, Ve] = d(null), He = function(e, t, n) {
1467
+ return {
1468
+ ...e,
1469
+ scaleX: t && n ? t.width / n.width : 1,
1470
+ scaleY: t && n ? t.height / n.height : 1
1471
+ };
1472
+ }(Y ? Ne : j(Ne, Le), $?.rect ?? null, q), Ue = u(null), We = i((e, t) => {
1473
+ let { sensor: n, options: r } = t;
1474
+ if (F.current == null) return;
1475
+ let i = A.get(F.current);
1476
+ if (!i) return;
1477
+ let a = e.nativeEvent, o = new n({
1478
+ active: F.current,
1479
+ activeNode: i,
1480
+ event: a,
1481
+ options: r,
1482
+ context: J,
1483
+ onAbort(e) {
1484
+ if (!A.get(e)) return;
1485
+ let { onDragAbort: t } = R.current, n = { id: e };
1486
+ t?.(n), S({
1487
+ type: "onDragAbort",
1488
+ event: n
1489
+ });
1490
+ },
1491
+ onPending(e, t, n, r) {
1492
+ if (!A.get(e)) return;
1493
+ let { onDragPending: i } = R.current, a = {
1494
+ id: e,
1495
+ constraint: t,
1496
+ initialCoordinates: n,
1497
+ offset: r
1498
+ };
1499
+ i?.(a), S({
1500
+ type: "onDragPending",
1501
+ event: a
1502
+ });
1503
+ },
1504
+ onStart(e) {
1505
+ let t = F.current;
1506
+ if (t == null) return;
1507
+ let n = A.get(t);
1508
+ if (!n) return;
1509
+ let { onDragStart: r } = R.current, i = {
1510
+ activatorEvent: a,
1511
+ active: {
1512
+ id: t,
1513
+ data: n.data,
1514
+ rect: ie
1515
+ }
1516
+ };
1517
+ h(() => {
1518
+ r?.(i), ee(_t.Initializing), x({
1519
+ type: I.DragStart,
1520
+ initialCoordinates: e,
1521
+ active: t
1522
+ }), S({
1523
+ type: "onDragStart",
1524
+ event: i
1525
+ }), oe(Ue.current), ce(a);
1526
+ });
1527
+ },
1528
+ onMove(e) {
1529
+ x({
1530
+ type: I.DragMove,
1531
+ coordinates: e
1532
+ });
1533
+ },
1534
+ onEnd: s(I.DragEnd),
1535
+ onCancel: s(I.DragCancel)
1536
+ });
1537
+ function s(e) {
1538
+ return async function() {
1539
+ let { active: t, collisions: n, over: r, scrollAdjustedTranslate: i } = J.current, o = null;
1540
+ if (t && i) {
1541
+ let { cancelDrop: s } = R.current;
1542
+ o = {
1543
+ activatorEvent: a,
1544
+ active: t,
1545
+ collisions: n,
1546
+ delta: i,
1547
+ over: r
1548
+ }, e === I.DragEnd && typeof s == "function" && await Promise.resolve(s(o)) && (e = I.DragCancel);
1549
+ }
1550
+ F.current = null, h(() => {
1551
+ x({ type: e }), ee(_t.Uninitialized), Ve(null), oe(null), ce(null), Ue.current = null;
1552
+ let t = e === I.DragEnd ? "onDragEnd" : "onDragCancel";
1553
+ if (o) {
1554
+ let e = R.current[t];
1555
+ e?.(o), S({
1556
+ type: t,
1557
+ event: o
1558
+ });
1559
+ }
1560
+ });
1561
+ };
1562
+ }
1563
+ Ue.current = o;
1564
+ }, [A]), Ge = function(e, t) {
1565
+ return c(() => e.reduce((e, n) => {
1566
+ let { sensor: r } = n;
1567
+ return [...e, ...r.activators.map((e) => ({
1568
+ eventName: e.eventName,
1569
+ handler: t(e.handler, n)
1570
+ }))];
1571
+ }, []), [e, t]);
1572
+ }(f, i((e, t) => (n, r) => {
1573
+ let i = n.nativeEvent, a = A.get(r);
1574
+ if (F.current !== null || !a || i.dndKit || i.defaultPrevented) return;
1575
+ let o = { active: a };
1576
+ !0 === e(n, t.options, o) && (i.dndKit = { capturedBy: t.sensor }, F.current = r, We(n, t));
1577
+ }, [A, We]));
1578
+ (function(e) {
1579
+ o(() => {
1580
+ if (!g) return;
1581
+ let t = e.map((e) => {
1582
+ let { sensor: t } = e;
1583
+ return t.setup == null ? void 0 : t.setup();
1584
+ });
1585
+ return () => {
1586
+ for (let e of t) e?.();
1587
+ };
1588
+ }, e.map((e) => {
1589
+ let { sensor: t } = e;
1590
+ return t;
1591
+ }));
1592
+ })(f), w(() => {
1593
+ q && T === _t.Initializing && ee(_t.Initialized);
1594
+ }, [q, T]), o(() => {
1595
+ let { onDragMove: e } = R.current, { active: t, activatorEvent: n, collisions: r, over: i } = J.current;
1596
+ if (!t || !n) return;
1597
+ let a = {
1598
+ active: t,
1599
+ activatorEvent: n,
1600
+ collisions: r,
1601
+ delta: {
1602
+ x: Re.x,
1603
+ y: Re.y
1604
+ },
1605
+ over: i
1606
+ };
1607
+ h(() => {
1608
+ e?.(a), S({
1609
+ type: "onDragMove",
1610
+ event: a
1611
+ });
1612
+ });
1613
+ }, [Re.x, Re.y]), o(() => {
1614
+ let { active: e, activatorEvent: t, collisions: n, droppableContainers: r, scrollAdjustedTranslate: i } = J.current;
1615
+ if (!e || F.current == null || !t || !i) return;
1616
+ let { onDragOver: a } = R.current, o = r.get(Be), s = o && o.rect.current ? {
1617
+ id: o.id,
1618
+ rect: o.rect.current,
1619
+ data: o.data,
1620
+ disabled: o.disabled
1621
+ } : null, c = {
1622
+ active: e,
1623
+ activatorEvent: t,
1624
+ collisions: n,
1625
+ delta: {
1626
+ x: i.x,
1627
+ y: i.y
1628
+ },
1629
+ over: s
1630
+ };
1631
+ h(() => {
1632
+ Ve(s), a?.(c), S({
1633
+ type: "onDragOver",
1634
+ event: c
1635
+ });
1636
+ });
1637
+ }, [Be]), w(() => {
1638
+ J.current = {
1639
+ activatorEvent: L,
1640
+ active: P,
1641
+ activeNode: G,
1642
+ collisionRect: Q,
1643
+ collisions: ze,
1644
+ droppableRects: H,
1645
+ draggableNodes: A,
1646
+ draggingNode: Ee,
1647
+ draggingNodeRect: De,
1648
+ droppableContainers: N,
1649
+ over: $,
1650
+ scrollableAncestors: Z,
1651
+ scrollAdjustedTranslate: Re
1652
+ }, ie.current = {
1653
+ initial: De,
1654
+ translated: Q
1655
+ };
1656
+ }, [
1657
+ P,
1658
+ G,
1659
+ ze,
1660
+ Q,
1661
+ A,
1662
+ Ee,
1663
+ De,
1664
+ H,
1665
+ N,
1666
+ $,
1667
+ Z,
1668
+ Re
1669
+ ]), qe({
1670
+ ...K,
1671
+ delta: M,
1672
+ draggingRect: Q,
1673
+ pointerCoordinates: Pe,
1674
+ scrollableAncestors: Z,
1675
+ scrollableAncestorRects: Me
1676
+ });
1677
+ let Ke = c(() => ({
1678
+ active: P,
1679
+ activeNode: G,
1680
+ activeNodeRect: q,
1681
+ activatorEvent: L,
1682
+ collisions: ze,
1683
+ containerNodeRect: xe,
1684
+ dragOverlay: Te,
1685
+ draggableNodes: A,
1686
+ droppableContainers: N,
1687
+ droppableRects: H,
1688
+ over: $,
1689
+ measureDroppableContainers: U,
1690
+ scrollableAncestors: Z,
1691
+ scrollableAncestorRects: Me,
1692
+ measuringConfiguration: B,
1693
+ measuringScheduled: W,
1694
+ windowRect: je
1695
+ }), [
1696
+ P,
1697
+ G,
1698
+ q,
1699
+ L,
1700
+ ze,
1701
+ xe,
1702
+ Te,
1703
+ A,
1704
+ N,
1705
+ H,
1706
+ $,
1707
+ U,
1708
+ Z,
1709
+ Me,
1710
+ B,
1711
+ W,
1712
+ je
1713
+ ]), Ye = c(() => ({
1714
+ activatorEvent: L,
1715
+ activators: Ge,
1716
+ active: P,
1717
+ activeNodeRect: q,
1718
+ ariaDescribedById: { draggable: ue },
1719
+ dispatch: x,
1720
+ draggableNodes: A,
1721
+ over: $,
1722
+ measureDroppableContainers: U
1723
+ }), [
1724
+ L,
1725
+ Ge,
1726
+ P,
1727
+ q,
1728
+ x,
1729
+ ue,
1730
+ A,
1731
+ $,
1732
+ U
1733
+ ]);
1734
+ return t.createElement(se.Provider, { value: C }, t.createElement(ft.Provider, { value: Ye }, t.createElement(pt.Provider, { value: Ke }, t.createElement(vt.Provider, { value: He }, s)), t.createElement(gt, { disabled: !1 === r?.restoreFocus })), t.createElement(le, {
1735
+ ...r,
1736
+ hiddenTextDescribedById: ue
1737
+ }));
1738
+ }), bt = n(null), xt = "button";
1739
+ function St(e) {
1740
+ let { id: t, data: n, disabled: r = !1, attributes: i } = e, o = te("Draggable"), { activators: s, activatorEvent: l, active: u, activeNodeRect: d, ariaDescribedById: f, draggableNodes: p, over: m } = a(ft), { role: h = xt, roleDescription: g = "draggable", tabIndex: _ = 0 } = i ?? {}, v = u?.id === t, y = a(v ? vt : bt), [b, x] = ee(), [S, C] = ee(), T = function(e, t) {
1741
+ return c(() => e.reduce((e, n) => {
1742
+ let { eventName: r, handler: i } = n;
1743
+ return e[r] = (e) => {
1744
+ i(e, t);
1745
+ }, e;
1746
+ }, {}), [e, t]);
1747
+ }(s, t), D = E(n);
1748
+ return w(() => (p.set(t, {
1749
+ id: t,
1750
+ key: o,
1751
+ node: b,
1752
+ activatorNode: S,
1753
+ data: D
1754
+ }), () => {
1755
+ let e = p.get(t);
1756
+ e && e.key === o && p.delete(t);
1757
+ }), [p, t]), {
1758
+ active: u,
1759
+ activatorEvent: l,
1760
+ activeNodeRect: d,
1761
+ attributes: c(() => ({
1762
+ role: h,
1763
+ tabIndex: _,
1764
+ "aria-disabled": r,
1765
+ "aria-pressed": !(!v || h !== xt) || void 0,
1766
+ "aria-roledescription": g,
1767
+ "aria-describedby": f.draggable
1768
+ }), [
1769
+ r,
1770
+ h,
1771
+ _,
1772
+ v,
1773
+ g,
1774
+ f.draggable
1775
+ ]),
1776
+ isDragging: v,
1777
+ listeners: r ? void 0 : T,
1778
+ node: b,
1779
+ over: m,
1780
+ setNodeRef: x,
1781
+ setActivatorNodeRef: C,
1782
+ transform: y
1783
+ };
1784
+ }
1785
+ var Ct = { timeout: 25 }, wt = (e) => {
1786
+ let { transform: t } = e;
1787
+ return {
1788
+ ...t,
1789
+ x: 0
1790
+ };
1791
+ };
1792
+ function Tt(e, t, n) {
1793
+ let r = e.slice();
1794
+ return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
1795
+ }
1796
+ function Et(e, t) {
1797
+ return e.reduce((e, n, r) => {
1798
+ let i = t.get(n);
1799
+ return i && (e[r] = i), e;
1800
+ }, Array(e.length));
1801
+ }
1802
+ function Dt(e) {
1803
+ return e !== null && e >= 0;
1804
+ }
1805
+ var Ot = (e) => {
1806
+ let { rects: t, activeIndex: n, overIndex: r, index: i } = e, a = Tt(t, r, n), o = t[i], s = a[i];
1807
+ return s && o ? {
1808
+ x: s.left - o.left,
1809
+ y: s.top - o.top,
1810
+ scaleX: s.width / o.width,
1811
+ scaleY: s.height / o.height
1812
+ } : null;
1813
+ }, kt = {
1814
+ scaleX: 1,
1815
+ scaleY: 1
1816
+ }, At = (e) => {
1817
+ let { activeIndex: t, activeNodeRect: n, index: r, rects: i, overIndex: a } = e, o = i[t] ?? n;
1818
+ if (!o) return null;
1819
+ if (r === t) {
1820
+ let e = i[a];
1821
+ return e ? {
1822
+ x: 0,
1823
+ y: t < a ? e.top + e.height - (o.top + o.height) : e.top - o.top,
1824
+ ...kt
1825
+ } : null;
1826
+ }
1827
+ let s = function(e, t, n) {
1828
+ let r = e[t], i = e[t - 1], a = e[t + 1];
1829
+ return r ? n < t ? i ? r.top - (i.top + i.height) : a ? a.top - (r.top + r.height) : 0 : a ? a.top - (r.top + r.height) : i ? r.top - (i.top + i.height) : 0 : 0;
1830
+ }(i, r, t);
1831
+ return r > t && r <= a ? {
1832
+ x: 0,
1833
+ y: -o.height - s,
1834
+ ...kt
1835
+ } : r < t && r >= a ? {
1836
+ x: 0,
1837
+ y: o.height + s,
1838
+ ...kt
1839
+ } : {
1840
+ x: 0,
1841
+ y: 0,
1842
+ ...kt
1843
+ };
1844
+ }, jt = "Sortable", Mt = t.createContext({
1845
+ activeIndex: -1,
1846
+ containerId: jt,
1847
+ disableTransforms: !1,
1848
+ items: [],
1849
+ overIndex: -1,
1850
+ useDragOverlay: !1,
1851
+ sortedRects: [],
1852
+ strategy: Ot,
1853
+ disabled: {
1854
+ draggable: !1,
1855
+ droppable: !1
1856
+ }
1857
+ });
1858
+ function Nt(e) {
1859
+ let { children: n, id: r, items: i, strategy: s = Ot, disabled: l = !1 } = e, { active: d, dragOverlay: f, droppableRects: p, over: m, measureDroppableContainers: h } = a(pt), g = te(jt, r), _ = f.rect !== null, v = c(() => i.map((e) => typeof e == "object" && "id" in e ? e.id : e), [i]), y = d != null, b = d ? v.indexOf(d.id) : -1, x = m ? v.indexOf(m.id) : -1, S = u(v), C = !function(e, t) {
1860
+ if (e === t) return !0;
1861
+ if (e.length !== t.length) return !1;
1862
+ for (let n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
1863
+ return !0;
1864
+ }(v, S.current), T = x !== -1 && b === -1 || C, E = function(e) {
1865
+ return typeof e == "boolean" ? {
1866
+ draggable: e,
1867
+ droppable: e
1868
+ } : e;
1869
+ }(l);
1870
+ w(() => {
1871
+ C && y && h(v);
1872
+ }, [
1873
+ C,
1874
+ v,
1875
+ y,
1876
+ h
1877
+ ]), o(() => {
1878
+ S.current = v;
1879
+ }, [v]);
1880
+ let D = c(() => ({
1881
+ activeIndex: b,
1882
+ containerId: g,
1883
+ disabled: E,
1884
+ disableTransforms: T,
1885
+ items: v,
1886
+ overIndex: x,
1887
+ useDragOverlay: _,
1888
+ sortedRects: Et(v, p),
1889
+ strategy: s
1890
+ }), [
1891
+ b,
1892
+ g,
1893
+ E.draggable,
1894
+ E.droppable,
1895
+ T,
1896
+ v,
1897
+ x,
1898
+ p,
1899
+ _,
1900
+ s
1901
+ ]);
1902
+ return t.createElement(Mt.Provider, { value: D }, n);
1903
+ }
1904
+ var Pt = (e) => {
1905
+ let { id: t, items: n, activeIndex: r, overIndex: i } = e;
1906
+ return Tt(n, r, i).indexOf(t);
1907
+ }, Ft = (e) => {
1908
+ let { containerId: t, isSorting: n, wasDragging: r, index: i, items: a, newIndex: o, previousItems: s, previousContainerId: c, transition: l } = e;
1909
+ return !(!l || !r) && (s === a || i !== o) && (!!n || o !== i && t === c);
1910
+ }, It = {
1911
+ duration: 200,
1912
+ easing: "ease"
1913
+ }, Lt = "transform", Rt = re.Transition.toString({
1914
+ property: Lt,
1915
+ duration: 0,
1916
+ easing: "linear"
1917
+ }), zt = { roleDescription: "sortable" };
1918
+ function Bt(e) {
1919
+ let { animateLayoutChanges: t = Ft, attributes: n, disabled: r, data: s, getNewIndex: l = Pt, id: f, strategy: p, resizeObserverConfig: m, transition: h = It } = e, { items: g, containerId: _, activeIndex: v, disabled: y, disableTransforms: b, sortedRects: x, overIndex: S, useDragOverlay: C, strategy: T } = a(Mt), D = function(e, t) {
1920
+ return typeof e == "boolean" ? {
1921
+ draggable: e,
1922
+ droppable: !1
1923
+ } : {
1924
+ draggable: e?.draggable ?? t.draggable,
1925
+ droppable: e?.droppable ?? t.droppable
1926
+ };
1927
+ }(r, y), O = g.indexOf(f), k = c(() => ({
1928
+ sortable: {
1929
+ containerId: _,
1930
+ index: O,
1931
+ items: g
1932
+ },
1933
+ ...s
1934
+ }), [
1935
+ _,
1936
+ s,
1937
+ O,
1938
+ g
1939
+ ]), A = c(() => g.slice(g.indexOf(f)), [g, f]), { rect: j, node: M, isOver: ne, setNodeRef: ie } = function(e) {
1940
+ let { data: t, disabled: n = !1, id: r, resizeObserverConfig: s } = e, c = te("Droppable"), { active: l, dispatch: d, over: f, measureDroppableContainers: p } = a(ft), m = u({ disabled: n }), h = u(!1), g = u(null), _ = u(null), { disabled: v, updateMeasurementsFor: y, timeout: b } = {
1941
+ ...Ct,
1942
+ ...s
1943
+ }, x = E(y ?? r), S = $e({
1944
+ callback: i(() => {
1945
+ h.current ? (_.current != null && clearTimeout(_.current), _.current = setTimeout(() => {
1946
+ p(Array.isArray(x.current) ? x.current : [x.current]), _.current = null;
1947
+ }, b)) : h.current = !0;
1948
+ }, [b]),
1949
+ disabled: v || !l
1950
+ }), [C, w] = ee(i((e, t) => {
1951
+ S && (t && (S.unobserve(t), h.current = !1), e && S.observe(e));
1952
+ }, [S])), T = E(t);
1953
+ return o(() => {
1954
+ S && C.current && (S.disconnect(), h.current = !1, S.observe(C.current));
1955
+ }, [C, S]), o(() => (d({
1956
+ type: I.RegisterDroppable,
1957
+ element: {
1958
+ id: r,
1959
+ key: c,
1960
+ disabled: n,
1961
+ node: C,
1962
+ rect: g,
1963
+ data: T
1964
+ }
1965
+ }), () => d({
1966
+ type: I.UnregisterDroppable,
1967
+ key: c,
1968
+ id: r
1969
+ })), [r]), o(() => {
1970
+ n !== m.current.disabled && (d({
1971
+ type: I.SetDroppableDisabled,
1972
+ id: r,
1973
+ key: c,
1974
+ disabled: n
1975
+ }), m.current.disabled = n);
1976
+ }, [
1977
+ r,
1978
+ c,
1979
+ n,
1980
+ d
1981
+ ]), {
1982
+ active: l,
1983
+ rect: g,
1984
+ isOver: f?.id === r,
1985
+ node: C,
1986
+ over: f,
1987
+ setNodeRef: w
1988
+ };
1989
+ }({
1990
+ id: f,
1991
+ data: k,
1992
+ disabled: D.droppable,
1993
+ resizeObserverConfig: {
1994
+ updateMeasurementsFor: A,
1995
+ ...m
1996
+ }
1997
+ }), { active: P, activatorEvent: F, activeNodeRect: ae, attributes: oe, setNodeRef: se, listeners: L, isDragging: ce, over: le, setActivatorNodeRef: R, transform: ue } = St({
1998
+ id: f,
1999
+ data: k,
2000
+ attributes: {
2001
+ ...zt,
2002
+ ...n
2003
+ },
2004
+ disabled: D.draggable
2005
+ }), de = function() {
2006
+ var e = [...arguments];
2007
+ return c(() => (t) => {
2008
+ e.forEach((e) => e(t));
2009
+ }, e);
2010
+ }(ie, se), z = !!P, B = z && !b && Dt(v) && Dt(S), V = !C && ce, H = B ? (V && B ? ue : null) ?? (p ?? T)({
2011
+ rects: x,
2012
+ activeNodeRect: ae,
2013
+ activeIndex: v,
2014
+ overIndex: S,
2015
+ index: O
2016
+ }) : null, U = Dt(v) && Dt(S) ? l({
2017
+ id: f,
2018
+ items: g,
2019
+ activeIndex: v,
2020
+ overIndex: S
2021
+ }) : O, W = P?.id, G = u({
2022
+ activeId: W,
2023
+ items: g,
2024
+ newIndex: U,
2025
+ containerId: _
2026
+ }), fe = g !== G.current.items, pe = t({
2027
+ active: P,
2028
+ containerId: _,
2029
+ isDragging: ce,
2030
+ isSorting: z,
2031
+ id: f,
2032
+ index: O,
2033
+ items: g,
2034
+ newIndex: G.current.newIndex,
2035
+ previousItems: G.current.items,
2036
+ previousContainerId: G.current.containerId,
2037
+ transition: h,
2038
+ wasDragging: G.current.activeId != null
2039
+ }), me = function(e) {
2040
+ let { disabled: t, index: n, node: r, rect: i } = e, [a, s] = d(null), c = u(n);
2041
+ return w(() => {
2042
+ if (!t && n !== c.current && r.current) {
2043
+ let e = i.current;
2044
+ if (e) {
2045
+ let t = _e(r.current, { ignoreTransform: !0 }), n = {
2046
+ x: e.left - t.left,
2047
+ y: e.top - t.top,
2048
+ scaleX: e.width / t.width,
2049
+ scaleY: e.height / t.height
2050
+ };
2051
+ (n.x || n.y) && s(n);
2052
+ }
2053
+ }
2054
+ n !== c.current && (c.current = n);
2055
+ }, [
2056
+ t,
2057
+ n,
2058
+ r,
2059
+ i
2060
+ ]), o(() => {
2061
+ a && s(null);
2062
+ }, [a]), a;
2063
+ }({
2064
+ disabled: !pe,
2065
+ index: O,
2066
+ node: M,
2067
+ rect: j
2068
+ });
2069
+ return o(() => {
2070
+ z && G.current.newIndex !== U && (G.current.newIndex = U), _ !== G.current.containerId && (G.current.containerId = _), g !== G.current.items && (G.current.items = g);
2071
+ }, [
2072
+ z,
2073
+ U,
2074
+ _,
2075
+ g
2076
+ ]), o(() => {
2077
+ if (W === G.current.activeId) return;
2078
+ if (W != null && G.current.activeId == null) return void (G.current.activeId = W);
2079
+ let e = setTimeout(() => {
2080
+ G.current.activeId = W;
2081
+ }, 50);
2082
+ return () => clearTimeout(e);
2083
+ }, [W]), {
2084
+ active: P,
2085
+ activeIndex: v,
2086
+ attributes: oe,
2087
+ data: k,
2088
+ rect: j,
2089
+ index: O,
2090
+ newIndex: U,
2091
+ items: g,
2092
+ isOver: ne,
2093
+ isSorting: z,
2094
+ isDragging: ce,
2095
+ listeners: L,
2096
+ node: M,
2097
+ overIndex: S,
2098
+ over: le,
2099
+ setNodeRef: de,
2100
+ setActivatorNodeRef: R,
2101
+ setDroppableNodeRef: ie,
2102
+ setDraggableNodeRef: se,
2103
+ transform: me ?? H,
2104
+ transition: function() {
2105
+ if (me || fe && G.current.newIndex === O) return Rt;
2106
+ if (!(V && !N(F) || !h) && (z || pe)) return re.Transition.toString({
2107
+ ...h,
2108
+ property: Lt
2109
+ });
2110
+ }()
2111
+ };
2112
+ }
2113
+ X.Down, X.Right, X.Up, X.Left;
2114
+ var Vt = ({ containerNodeRect: e, draggingNodeRect: t, transform: n }) => {
2115
+ if (!t || !e) return n;
2116
+ let r = { ...n }, i = e.top + 4, a = e.top + e.height - 4;
2117
+ return t.top + n.y <= i ? r.y = i - t.top : t.bottom + n.y >= a && (r.y = a - t.bottom), r;
2118
+ }, Ht = r((e) => {
2119
+ let { ids: t, onMove: n, scrollRef: r, children: i } = e;
2120
+ return f(yt, {
2121
+ sensors: de(ue(He, { activationConstraint: { distance: 6 } }), ue(Ke, { activationConstraint: {
2122
+ delay: 200,
2123
+ tolerance: 6
2124
+ } })),
2125
+ collisionDetection: W,
2126
+ modifiers: [wt, Vt],
2127
+ autoScroll: { canScroll: (e) => {
2128
+ if (e === document.scrollingElement || e === document.documentElement || e === document.body) return !1;
2129
+ let t = r.current;
2130
+ return !!t && (e === t || e.contains(t));
2131
+ } },
2132
+ onDragEnd: (e) => {
2133
+ let { active: r, over: i } = e;
2134
+ if (!i || r.id === i.id) return;
2135
+ let a = t.indexOf(String(r.id)), o = t.indexOf(String(i.id));
2136
+ a !== -1 && o !== -1 && a !== o && n(a, o);
2137
+ },
2138
+ children: f(Nt, {
2139
+ items: t,
2140
+ strategy: At,
2141
+ children: i
2142
+ })
2143
+ });
2144
+ });
2145
+ Ht.displayName = "SortableCards";
2146
+ var Ut = "data-sxl-flip";
2147
+ function Wt(e, t, n) {
2148
+ let r = u(/* @__PURE__ */ new Map());
2149
+ w(() => {
2150
+ if (!t || !e.current) return void (r.current = /* @__PURE__ */ new Map());
2151
+ let i = r.current, a = /* @__PURE__ */ new Map(), o = [], s = e.current.querySelectorAll(`[${Ut}]`);
2152
+ for (let e = 0; e < s.length; e++) {
2153
+ let t = s[e], n = t.getAttribute(Ut), r = t.offsetTop;
2154
+ a.set(n, r);
2155
+ let c = i.get(n);
2156
+ c !== void 0 && c !== r && o.push({
2157
+ element: t,
2158
+ delta: c - r
2159
+ });
2160
+ }
2161
+ if (r.current = a, o.length !== 0) if (n.current) n.current = !1;
2162
+ else {
2163
+ for (let { element: e, delta: t } of o) e.style.transition = "none", e.style.transform = `translateY(${t}px)`;
2164
+ e.current.offsetHeight;
2165
+ for (let { element: e } of o) e.style.transition = "transform 200ms ease", e.style.transform = "", e.addEventListener("transitionend", function t() {
2166
+ e.style.transition = "", e.removeEventListener("transitionend", t);
2167
+ });
2168
+ }
2169
+ });
2170
+ }
2171
+ var Gt = r((t) => {
2172
+ let { id: n, disabled: r, children: i } = t, { setNodeRef: a, transform: o, transition: s, isDragging: l, listeners: u } = Bt({
2173
+ id: n,
2174
+ disabled: r
2175
+ });
2176
+ return f(p, {
2177
+ ref: a,
2178
+ ...c(() => {
2179
+ if (!u) return u;
2180
+ let e = {};
2181
+ for (let [t, n] of Object.entries(u)) e[t] = (e, ...t) => {
2182
+ (e?.target)?.closest?.("button, input, textarea, select, a[href], [contenteditable=\"true\"], [role=\"combobox\"]") || n(e, ...t);
2183
+ };
2184
+ return e;
2185
+ }, [u]),
2186
+ [Ut]: n,
2187
+ className: e("sxl-sortable-card", { "sxl-dragging": l }),
2188
+ sx: {
2189
+ flex: "0 0 auto",
2190
+ borderRadius: (e) => e.spacing(1.25),
2191
+ boxShadow: l ? 6 : void 0
2192
+ },
2193
+ style: {
2194
+ transform: re.Translate.toString(o),
2195
+ transition: s,
2196
+ touchAction: "manipulation",
2197
+ ...l ? {
2198
+ position: "relative",
2199
+ zIndex: 1,
2200
+ cursor: "grabbing"
2201
+ } : null
2202
+ },
2203
+ children: i
2204
+ });
2205
+ });
2206
+ Gt.displayName = "SortableCard";
2207
+ export { Ht as n, Wt as r, Gt as t };