@sheetxl/studio-mui 0.7.22 → 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 +136 -626
  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 -1761
  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/BCSkf7oG5MtK-XGZ.cjs +0 -6
  460. package/browser/cjs/BOj9VP_ZCebWTfxc.cjs +0 -6
  461. package/browser/cjs/Biy5SuviR3Cz0S4F.cjs +0 -6
  462. package/browser/cjs/C1PlAY37pY831-YP.cjs +0 -18
  463. package/browser/cjs/Cc3dH2YOCi1SjPK4.cjs +0 -6
  464. package/browser/cjs/Ccx9l-If3BC4K6LY.cjs +0 -42
  465. package/browser/cjs/DR8b8OAx9_mnaJoN.cjs +0 -6
  466. package/browser/cjs/D_R6KuQiPoJdxVa_.cjs +0 -6
  467. package/browser/cjs/DkGstRdRpze8sHAr.cjs +0 -7
  468. package/browser/cjs/StW-maKM8OSYcle5.cjs +0 -6
  469. package/browser/cjs/kjlgjQkY0fb-Rc-P.cjs +0 -6
  470. package/browser/cjs/qoo14c2KOLE_IfIO.cjs +0 -20
  471. package/browser/esm/0OyyoHlgiaso9tYr.mjs +0 -50
  472. package/browser/esm/BE92YslAajVEiBuX.mjs +0 -25
  473. package/browser/esm/BJO2iGA4QZN4Tzfv.mjs +0 -2159
  474. package/browser/esm/BQGW_5yvCb0eTpib.mjs +0 -54
  475. package/browser/esm/BYAdBaegvg_SoS6K.mjs +0 -155
  476. package/browser/esm/BsxSk3HxwjxRtPtZ.mjs +0 -2411
  477. package/browser/esm/D-9Ar2kzfZAziktn.mjs +0 -26
  478. package/browser/esm/D4Z_3xY0vO_3FL6K.mjs +0 -640
  479. package/browser/esm/DB1mGkEgnMnMQ8CH.mjs +0 -4533
  480. package/browser/esm/HmzSBdi0ej5oeXZ1.mjs +0 -53
  481. package/browser/esm/ePSxe_g7wEvzmkJ7.mjs +0 -50
  482. package/browser/esm/pshi0IoaQJ-EyVt3.mjs +0 -46
  483. package/node/assets/style.css +0 -1
  484. package/node/esm/B67HtQl_OohbFhFm.mjs +0 -25
  485. package/node/esm/BD8iIgRl14sLSdN1.mjs +0 -88
  486. package/node/esm/BKeEywP27oPbnpFS.mjs +0 -156
  487. package/node/esm/BkQRle53yjTwYnC4.mjs +0 -91
  488. package/node/esm/Bl77xZWpq8Ix5EEF.mjs +0 -57
  489. package/node/esm/C1HBS_UNswHQvckQ.mjs +0 -52
  490. package/node/esm/C4wnaXAtg_BfPjQR.mjs +0 -50
  491. package/node/esm/Dhp7eefBNVIcSWf6.mjs +0 -26
  492. package/node/esm/bp_PxnEExWX_-i_8.mjs +0 -46
  493. package/node/esm/j5ssn9j67ROjzwGT.mjs +0 -53
@@ -1,26 +0,0 @@
1
- import { jsx as n, jsxs as O } from "react/jsx-runtime";
2
- import { memo as f, useState as g } from "react";
3
- import { Box as S, FormControlLabel as a, Checkbox as l } from "@mui/material";
4
- import { Sort as s, IRange as r } from "@sheetxl/sdk";
5
- import { useCallbackRef as H } from "@sheetxl/utils-react";
6
- import { OptionsDialog as x } from "@sheetxl/utils-mui";
7
- /**
8
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.22
9
- *
10
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
- * License: The license can be found at https://www.sheetxl.com/license.
12
- */
13
- const w = f((u) => {
14
- const { initialValue: c, context: d, onInput: m, onDone: p, ...h } = u, C = d?.().range, v = d?.().cell.toString(), [o, i] = g(c ?? s.DefaultRangeOptions), b = H((e) => {
15
- let t = null;
16
- e === "Sort" && (t = { ...c, ...o }), m?.(t), p?.(t);
17
- }, [o, p, m, c]);
18
- return n(x, { title: "Sort", options: ["Sort", "Cancel"], onDone: b, ...h, children: O(S, { sx: { display: "flex", flexDirection: "column" }, children: [n(a, { control: n(l, { checked: !o.reverse, onChange: () => i((e) => ({ ...e, reverse: !e.reverse })) }), label: "Is Ascending", labelPlacement: "end" }), n(a, { control: n(l, { checked: o.hasHeader, onChange: () => i((e) => ({ ...e, hasHeader: !e.hasHeader })) }), label: "Has Header", labelPlacement: "end" }), n(a, { control: n(l, { checked: o.collatorOptions?.sensitivity === s.CaseSensitiveOptions.sensitivity, onChange: () => i((e) => ({ ...e, collatorOptions: o.collatorOptions?.sensitivity === s.CaseSensitiveOptions.sensitivity ? s.CaseInsensitiveOptions : s.CaseSensitiveOptions })) }), label: "Case Sensitive", labelPlacement: "end" }), n(a, { control: n(l, { checked: o.orientation === r.Orientation.Row, onChange: () => i((e) => {
19
- const t = e.orientation === r.Orientation.Row ? r.Orientation.Column : r.Orientation.Row;
20
- return { ...C.getDefaultSortCriteria(t, v).options, includeHidden: e.includeHidden, reverse: e.reverse, orientation: t };
21
- }) }), label: "Row Sort", labelPlacement: "end" }), n(a, { control: n(l, { checked: o.includeHidden, onChange: () => i((e) => ({ ...e, includeHidden: !e.includeHidden })) }), label: "Include Hidden", labelPlacement: "end" })] }) });
22
- });
23
- export {
24
- w as SortDialog,
25
- w as default
26
- };
@@ -1,640 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.22
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- function I(t) {
8
- return Array.isArray ? Array.isArray(t) : se(t) === "[object Array]";
9
- }
10
- function v(t) {
11
- return typeof t == "string";
12
- }
13
- function te(t) {
14
- return typeof t == "number";
15
- }
16
- function ae(t) {
17
- return t === !0 || t === !1 || (function(e) {
18
- return ne(e) && e !== null;
19
- })(t) && se(t) == "[object Boolean]";
20
- }
21
- function ne(t) {
22
- return typeof t == "object";
23
- }
24
- function M(t) {
25
- return t != null;
26
- }
27
- function K(t) {
28
- return !t.trim().length;
29
- }
30
- function se(t) {
31
- return t == null ? t === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(t);
32
- }
33
- const H = Object.prototype.hasOwnProperty;
34
- class le {
35
- constructor(e) {
36
- this._keys = [], this._keyMap = {};
37
- let n = 0;
38
- e.forEach((s) => {
39
- let i = ie(s);
40
- this._keys.push(i), this._keyMap[i.id] = i, n += i.weight;
41
- }), this._keys.forEach((s) => {
42
- s.weight /= n;
43
- });
44
- }
45
- get(e) {
46
- return this._keyMap[e];
47
- }
48
- keys() {
49
- return this._keys;
50
- }
51
- toJSON() {
52
- return JSON.stringify(this._keys);
53
- }
54
- }
55
- function ie(t) {
56
- let e = null, n = null, s = null, i = 1, c = null;
57
- if (v(t) || I(t)) s = t, e = T(t), n = q(t);
58
- else {
59
- if (!H.call(t, "name")) throw new Error(((o) => `Missing ${o} property in key`)("name"));
60
- const u = t.name;
61
- if (s = u, H.call(t, "weight") && (i = t.weight, i <= 0)) throw new Error(((o) => `Property 'weight' in key '${o}' must be a positive integer`)(u));
62
- e = T(u), n = q(u), c = t.getFn;
63
- }
64
- return { path: e, id: n, weight: i, src: s, getFn: c };
65
- }
66
- function T(t) {
67
- return I(t) ? t : t.split(".");
68
- }
69
- function q(t) {
70
- return I(t) ? t.join(".") : t;
71
- }
72
- var l = { isCaseSensitive: !1, ignoreDiacritics: !1, includeScore: !1, keys: [], shouldSort: !0, sortFn: (t, e) => t.score === e.score ? t.idx < e.idx ? -1 : 1 : t.score < e.score ? -1 : 1, includeMatches: !1, findAllMatches: !1, minMatchCharLength: 1, location: 0, threshold: 0.6, distance: 100, useExtendedSearch: !1, getFn: function(t, e) {
73
- let n = [], s = !1;
74
- const i = (c, u, o) => {
75
- if (M(c)) if (u[o]) {
76
- const r = c[u[o]];
77
- if (!M(r)) return;
78
- if (o === u.length - 1 && (v(r) || te(r) || ae(r))) n.push((function(a) {
79
- return a == null ? "" : (function(h) {
80
- if (typeof h == "string") return h;
81
- let g = h + "";
82
- return g == "0" && 1 / h == -1 / 0 ? "-0" : g;
83
- })(a);
84
- })(r));
85
- else if (I(r)) {
86
- s = !0;
87
- for (let a = 0, h = r.length; a < h; a += 1) i(r[a], u, o + 1);
88
- } else u.length && i(r, u, o + 1);
89
- } else n.push(c);
90
- };
91
- return i(t, v(e) ? e.split(".") : e, 0), s ? n : n[0];
92
- }, ignoreLocation: !1, ignoreFieldNorm: !1, fieldNormWeight: 1 };
93
- const de = /[^ ]+/g;
94
- class U {
95
- constructor({ getFn: e = l.getFn, fieldNormWeight: n = l.fieldNormWeight } = {}) {
96
- this.norm = (function(s = 1, i = 3) {
97
- const c = /* @__PURE__ */ new Map(), u = Math.pow(10, i);
98
- return { get(o) {
99
- const r = o.match(de).length;
100
- if (c.has(r)) return c.get(r);
101
- const a = 1 / Math.pow(r, 0.5 * s), h = parseFloat(Math.round(a * u) / u);
102
- return c.set(r, h), h;
103
- }, clear() {
104
- c.clear();
105
- } };
106
- })(n, 3), this.getFn = e, this.isCreated = !1, this.setIndexRecords();
107
- }
108
- setSources(e = []) {
109
- this.docs = e;
110
- }
111
- setIndexRecords(e = []) {
112
- this.records = e;
113
- }
114
- setKeys(e = []) {
115
- this.keys = e, this._keysMap = {}, e.forEach((n, s) => {
116
- this._keysMap[n.id] = s;
117
- });
118
- }
119
- create() {
120
- !this.isCreated && this.docs.length && (this.isCreated = !0, v(this.docs[0]) ? this.docs.forEach((e, n) => {
121
- this._addString(e, n);
122
- }) : this.docs.forEach((e, n) => {
123
- this._addObject(e, n);
124
- }), this.norm.clear());
125
- }
126
- add(e) {
127
- const n = this.size();
128
- v(e) ? this._addString(e, n) : this._addObject(e, n);
129
- }
130
- removeAt(e) {
131
- this.records.splice(e, 1);
132
- for (let n = e, s = this.size(); n < s; n += 1) this.records[n].i -= 1;
133
- }
134
- getValueForItemAtKeyId(e, n) {
135
- return e[this._keysMap[n]];
136
- }
137
- size() {
138
- return this.records.length;
139
- }
140
- _addString(e, n) {
141
- if (!M(e) || K(e)) return;
142
- let s = { v: e, i: n, n: this.norm.get(e) };
143
- this.records.push(s);
144
- }
145
- _addObject(e, n) {
146
- let s = { i: n, $: {} };
147
- this.keys.forEach((i, c) => {
148
- let u = i.getFn ? i.getFn(e) : this.getFn(e, i.path);
149
- if (M(u)) {
150
- if (I(u)) {
151
- let o = [];
152
- const r = [{ nestedArrIndex: -1, value: u }];
153
- for (; r.length; ) {
154
- const { nestedArrIndex: a, value: h } = r.pop();
155
- if (M(h)) if (v(h) && !K(h)) {
156
- let g = { v: h, i: a, n: this.norm.get(h) };
157
- o.push(g);
158
- } else I(h) && h.forEach((g, d) => {
159
- r.push({ nestedArrIndex: d, value: g });
160
- });
161
- }
162
- s.$[c] = o;
163
- } else if (v(u) && !K(u)) {
164
- let o = { v: u, n: this.norm.get(u) };
165
- s.$[c] = o;
166
- }
167
- }
168
- }), this.records.push(s);
169
- }
170
- toJSON() {
171
- return { keys: this.keys, records: this.records };
172
- }
173
- }
174
- function re(t, e, { getFn: n = l.getFn, fieldNormWeight: s = l.fieldNormWeight } = {}) {
175
- const i = new U({ getFn: n, fieldNormWeight: s });
176
- return i.setKeys(t.map(ie)), i.setSources(e), i.create(), i;
177
- }
178
- function W(t, { errors: e = 0, currentLocation: n = 0, expectedLocation: s = 0, distance: i = l.distance, ignoreLocation: c = l.ignoreLocation } = {}) {
179
- const u = e / t.length;
180
- if (c) return u;
181
- const o = Math.abs(s - n);
182
- return i ? u + o / i : o ? 1 : u;
183
- }
184
- const b = 32;
185
- function ge(t, e, n, { location: s = l.location, distance: i = l.distance, threshold: c = l.threshold, findAllMatches: u = l.findAllMatches, minMatchCharLength: o = l.minMatchCharLength, includeMatches: r = l.includeMatches, ignoreLocation: a = l.ignoreLocation } = {}) {
186
- if (e.length > b) throw new Error(`Pattern length exceeds max of ${b}.`);
187
- const h = e.length, g = t.length, d = Math.max(0, Math.min(s, g));
188
- let f = c, A = d;
189
- const C = o > 1 || r, p = C ? Array(g) : [];
190
- let E;
191
- for (; (E = t.indexOf(e, A)) > -1; ) {
192
- let y = W(e, { currentLocation: E, expectedLocation: d, distance: i, ignoreLocation: a });
193
- if (f = Math.min(y, f), A = E + h, C) {
194
- let B = 0;
195
- for (; B < h; ) p[E + B] = 1, B += 1;
196
- }
197
- }
198
- A = -1;
199
- let D = [], k = 1, F = h + g;
200
- const $ = 1 << h - 1;
201
- for (let y = 0; y < h; y += 1) {
202
- let B = 0, L = F;
203
- for (; B < L; )
204
- W(e, { errors: y, currentLocation: d + L, expectedLocation: d, distance: i, ignoreLocation: a }) <= f ? B = L : F = L, L = Math.floor((F - B) / 2 + B);
205
- F = L;
206
- let N = Math.max(1, d - L + 1), x = u ? g : Math.min(d + L, g) + h, _ = Array(x + 2);
207
- _[x + 1] = (1 << y) - 1;
208
- for (let m = x; m >= N; m -= 1) {
209
- let R = m - 1, O = n[t.charAt(R)];
210
- if (C && (p[R] = +!!O), _[m] = (_[m + 1] << 1 | 1) & O, y && (_[m] |= (D[m + 1] | D[m]) << 1 | 1 | D[m + 1]), _[m] & $ && (k = W(e, { errors: y, currentLocation: R, expectedLocation: d, distance: i, ignoreLocation: a }), k <= f)) {
211
- if (f = k, A = R, A <= d) break;
212
- N = Math.max(1, 2 * d - A);
213
- }
214
- }
215
- if (W(e, { errors: y + 1, currentLocation: d, expectedLocation: d, distance: i, ignoreLocation: a }) > f) break;
216
- D = _;
217
- }
218
- const S = { isMatch: A >= 0, score: Math.max(1e-3, k) };
219
- if (C) {
220
- const y = (function(B = [], L = l.minMatchCharLength) {
221
- let N = [], x = -1, _ = -1, m = 0;
222
- for (let R = B.length; m < R; m += 1) {
223
- let O = B[m];
224
- O && x === -1 ? x = m : O || x === -1 || (_ = m - 1, _ - x + 1 >= L && N.push([x, _]), x = -1);
225
- }
226
- return B[m - 1] && m - x >= L && N.push([x, m - 1]), N;
227
- })(p, o);
228
- y.length ? r && (S.indices = y) : S.isMatch = !1;
229
- }
230
- return S;
231
- }
232
- function fe(t) {
233
- let e = {};
234
- for (let n = 0, s = t.length; n < s; n += 1) {
235
- const i = t.charAt(n);
236
- e[i] = (e[i] || 0) | 1 << s - n - 1;
237
- }
238
- return e;
239
- }
240
- const z = String.prototype.normalize ? (t) => t.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g, "") : (t) => t;
241
- class ue {
242
- constructor(e, { location: n = l.location, threshold: s = l.threshold, distance: i = l.distance, includeMatches: c = l.includeMatches, findAllMatches: u = l.findAllMatches, minMatchCharLength: o = l.minMatchCharLength, isCaseSensitive: r = l.isCaseSensitive, ignoreDiacritics: a = l.ignoreDiacritics, ignoreLocation: h = l.ignoreLocation } = {}) {
243
- if (this.options = { location: n, threshold: s, distance: i, includeMatches: c, findAllMatches: u, minMatchCharLength: o, isCaseSensitive: r, ignoreDiacritics: a, ignoreLocation: h }, e = r ? e : e.toLowerCase(), e = a ? z(e) : e, this.pattern = e, this.chunks = [], !this.pattern.length) return;
244
- const g = (f, A) => {
245
- this.chunks.push({ pattern: f, alphabet: fe(f), startIndex: A });
246
- }, d = this.pattern.length;
247
- if (d > b) {
248
- let f = 0;
249
- const A = d % b, C = d - A;
250
- for (; f < C; ) g(this.pattern.substr(f, b), f), f += b;
251
- if (A) {
252
- const p = d - b;
253
- g(this.pattern.substr(p), p);
254
- }
255
- } else g(this.pattern, 0);
256
- }
257
- searchIn(e) {
258
- const { isCaseSensitive: n, ignoreDiacritics: s, includeMatches: i } = this.options;
259
- if (e = n ? e : e.toLowerCase(), e = s ? z(e) : e, this.pattern === e) {
260
- let C = { isMatch: !0, score: 0 };
261
- return i && (C.indices = [[0, e.length - 1]]), C;
262
- }
263
- const { location: c, distance: u, threshold: o, findAllMatches: r, minMatchCharLength: a, ignoreLocation: h } = this.options;
264
- let g = [], d = 0, f = !1;
265
- this.chunks.forEach(({ pattern: C, alphabet: p, startIndex: E }) => {
266
- const { isMatch: D, score: k, indices: F } = ge(e, C, p, { location: c + E, distance: u, threshold: o, findAllMatches: r, minMatchCharLength: a, includeMatches: i, ignoreLocation: h });
267
- D && (f = !0), d += k, D && F && (g = [...g, ...F]);
268
- });
269
- let A = { isMatch: f, score: f ? d / this.chunks.length : 1 };
270
- return f && i && (A.indices = g), A;
271
- }
272
- }
273
- class w {
274
- constructor(e) {
275
- this.pattern = e;
276
- }
277
- static isMultiMatch(e) {
278
- return X(e, this.multiRegex);
279
- }
280
- static isSingleMatch(e) {
281
- return X(e, this.singleRegex);
282
- }
283
- search() {
284
- }
285
- }
286
- function X(t, e) {
287
- const n = t.match(e);
288
- return n ? n[1] : null;
289
- }
290
- class ce extends w {
291
- constructor(e, { location: n = l.location, threshold: s = l.threshold, distance: i = l.distance, includeMatches: c = l.includeMatches, findAllMatches: u = l.findAllMatches, minMatchCharLength: o = l.minMatchCharLength, isCaseSensitive: r = l.isCaseSensitive, ignoreDiacritics: a = l.ignoreDiacritics, ignoreLocation: h = l.ignoreLocation } = {}) {
292
- super(e), this._bitapSearch = new ue(e, { location: n, threshold: s, distance: i, includeMatches: c, findAllMatches: u, minMatchCharLength: o, isCaseSensitive: r, ignoreDiacritics: a, ignoreLocation: h });
293
- }
294
- static get type() {
295
- return "fuzzy";
296
- }
297
- static get multiRegex() {
298
- return /^"(.*)"$/;
299
- }
300
- static get singleRegex() {
301
- return /^(.*)$/;
302
- }
303
- search(e) {
304
- return this._bitapSearch.searchIn(e);
305
- }
306
- }
307
- class oe extends w {
308
- constructor(e) {
309
- super(e);
310
- }
311
- static get type() {
312
- return "include";
313
- }
314
- static get multiRegex() {
315
- return /^'"(.*)"$/;
316
- }
317
- static get singleRegex() {
318
- return /^'(.*)$/;
319
- }
320
- search(e) {
321
- let n, s = 0;
322
- const i = [], c = this.pattern.length;
323
- for (; (n = e.indexOf(this.pattern, s)) > -1; ) s = n + c, i.push([n, s - 1]);
324
- const u = !!i.length;
325
- return { isMatch: u, score: u ? 0 : 1, indices: i };
326
- }
327
- }
328
- const J = [class extends w {
329
- constructor(t) {
330
- super(t);
331
- }
332
- static get type() {
333
- return "exact";
334
- }
335
- static get multiRegex() {
336
- return /^="(.*)"$/;
337
- }
338
- static get singleRegex() {
339
- return /^=(.*)$/;
340
- }
341
- search(t) {
342
- const e = t === this.pattern;
343
- return { isMatch: e, score: e ? 0 : 1, indices: [0, this.pattern.length - 1] };
344
- }
345
- }, oe, class extends w {
346
- constructor(t) {
347
- super(t);
348
- }
349
- static get type() {
350
- return "prefix-exact";
351
- }
352
- static get multiRegex() {
353
- return /^\^"(.*)"$/;
354
- }
355
- static get singleRegex() {
356
- return /^\^(.*)$/;
357
- }
358
- search(t) {
359
- const e = t.startsWith(this.pattern);
360
- return { isMatch: e, score: e ? 0 : 1, indices: [0, this.pattern.length - 1] };
361
- }
362
- }, class extends w {
363
- constructor(t) {
364
- super(t);
365
- }
366
- static get type() {
367
- return "inverse-prefix-exact";
368
- }
369
- static get multiRegex() {
370
- return /^!\^"(.*)"$/;
371
- }
372
- static get singleRegex() {
373
- return /^!\^(.*)$/;
374
- }
375
- search(t) {
376
- const e = !t.startsWith(this.pattern);
377
- return { isMatch: e, score: e ? 0 : 1, indices: [0, t.length - 1] };
378
- }
379
- }, class extends w {
380
- constructor(t) {
381
- super(t);
382
- }
383
- static get type() {
384
- return "inverse-suffix-exact";
385
- }
386
- static get multiRegex() {
387
- return /^!"(.*)"\$$/;
388
- }
389
- static get singleRegex() {
390
- return /^!(.*)\$$/;
391
- }
392
- search(t) {
393
- const e = !t.endsWith(this.pattern);
394
- return { isMatch: e, score: e ? 0 : 1, indices: [0, t.length - 1] };
395
- }
396
- }, class extends w {
397
- constructor(t) {
398
- super(t);
399
- }
400
- static get type() {
401
- return "suffix-exact";
402
- }
403
- static get multiRegex() {
404
- return /^"(.*)"\$$/;
405
- }
406
- static get singleRegex() {
407
- return /^(.*)\$$/;
408
- }
409
- search(t) {
410
- const e = t.endsWith(this.pattern);
411
- return { isMatch: e, score: e ? 0 : 1, indices: [t.length - this.pattern.length, t.length - 1] };
412
- }
413
- }, class extends w {
414
- constructor(t) {
415
- super(t);
416
- }
417
- static get type() {
418
- return "inverse-exact";
419
- }
420
- static get multiRegex() {
421
- return /^!"(.*)"$/;
422
- }
423
- static get singleRegex() {
424
- return /^!(.*)$/;
425
- }
426
- search(t) {
427
- const e = t.indexOf(this.pattern) === -1;
428
- return { isMatch: e, score: e ? 0 : 1, indices: [0, t.length - 1] };
429
- }
430
- }, ce], Y = J.length, Ae = / +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/, pe = /* @__PURE__ */ new Set([ce.type, oe.type]);
431
- class Ce {
432
- constructor(e, { isCaseSensitive: n = l.isCaseSensitive, ignoreDiacritics: s = l.ignoreDiacritics, includeMatches: i = l.includeMatches, minMatchCharLength: c = l.minMatchCharLength, ignoreLocation: u = l.ignoreLocation, findAllMatches: o = l.findAllMatches, location: r = l.location, threshold: a = l.threshold, distance: h = l.distance } = {}) {
433
- this.query = null, this.options = { isCaseSensitive: n, ignoreDiacritics: s, includeMatches: i, minMatchCharLength: c, findAllMatches: o, ignoreLocation: u, location: r, threshold: a, distance: h }, e = n ? e : e.toLowerCase(), e = s ? z(e) : e, this.pattern = e, this.query = (function(g, d = {}) {
434
- return g.split("|").map((f) => {
435
- let A = f.trim().split(Ae).filter((p) => p && !!p.trim()), C = [];
436
- for (let p = 0, E = A.length; p < E; p += 1) {
437
- const D = A[p];
438
- let k = !1, F = -1;
439
- for (; !k && ++F < Y; ) {
440
- const $ = J[F];
441
- let S = $.isMultiMatch(D);
442
- S && (C.push(new $(S, d)), k = !0);
443
- }
444
- if (!k) for (F = -1; ++F < Y; ) {
445
- const $ = J[F];
446
- let S = $.isSingleMatch(D);
447
- if (S) {
448
- C.push(new $(S, d));
449
- break;
450
- }
451
- }
452
- }
453
- return C;
454
- });
455
- })(this.pattern, this.options);
456
- }
457
- static condition(e, n) {
458
- return n.useExtendedSearch;
459
- }
460
- searchIn(e) {
461
- const n = this.query;
462
- if (!n) return { isMatch: !1, score: 1 };
463
- const { includeMatches: s, isCaseSensitive: i, ignoreDiacritics: c } = this.options;
464
- e = i ? e : e.toLowerCase(), e = c ? z(e) : e;
465
- let u = 0, o = [], r = 0;
466
- for (let a = 0, h = n.length; a < h; a += 1) {
467
- const g = n[a];
468
- o.length = 0, u = 0;
469
- for (let d = 0, f = g.length; d < f; d += 1) {
470
- const A = g[d], { isMatch: C, indices: p, score: E } = A.search(e);
471
- if (!C) {
472
- r = 0, u = 0, o.length = 0;
473
- break;
474
- }
475
- if (u += 1, r += E, s) {
476
- const D = A.constructor.type;
477
- pe.has(D) ? o = [...o, ...p] : o.push(p);
478
- }
479
- }
480
- if (u) {
481
- let d = { isMatch: !0, score: r / u };
482
- return s && (d.indices = o), d;
483
- }
484
- }
485
- return { isMatch: !1, score: 1 };
486
- }
487
- }
488
- const V = [];
489
- function Q(t, e) {
490
- for (let n = 0, s = V.length; n < s; n += 1) {
491
- let i = V[n];
492
- if (i.condition(t, e)) return new i(t, e);
493
- }
494
- return new ue(t, e);
495
- }
496
- const G = "$and", me = "$or", Z = "$path", Fe = "$val", P = (t) => !(!t[G] && !t[me]), ee = (t) => ({ [G]: Object.keys(t).map((e) => ({ [e]: t[e] })) });
497
- function he(t, e, { auto: n = !0 } = {}) {
498
- const s = (i) => {
499
- let c = Object.keys(i);
500
- const u = ((r) => !!r[Z])(i);
501
- if (!u && c.length > 1 && !P(i)) return s(ee(i));
502
- if (((r) => !I(r) && ne(r) && !P(r))(i)) {
503
- const r = u ? i[Z] : c[0], a = u ? i[Fe] : i[r];
504
- if (!v(a)) throw new Error(((g) => `Invalid value for key ${g}`)(r));
505
- const h = { keyId: q(r), pattern: a };
506
- return n && (h.searcher = Q(a, e)), h;
507
- }
508
- let o = { children: [], operator: c[0] };
509
- return c.forEach((r) => {
510
- const a = i[r];
511
- I(a) && a.forEach((h) => {
512
- o.children.push(s(h));
513
- });
514
- }), o;
515
- };
516
- return P(t) || (t = ee(t)), s(t);
517
- }
518
- function Me(t, e) {
519
- const n = t.matches;
520
- e.matches = [], M(n) && n.forEach((s) => {
521
- if (!M(s.indices) || !s.indices.length) return;
522
- const { indices: i, value: c } = s;
523
- let u = { indices: i, value: c };
524
- s.key && (u.key = s.key.src), s.idx > -1 && (u.refIndex = s.idx), e.matches.push(u);
525
- });
526
- }
527
- function Ee(t, e) {
528
- e.score = t.score;
529
- }
530
- class j {
531
- constructor(e, n = {}, s) {
532
- this.options = { ...l, ...n }, this.options.useExtendedSearch, this._keyStore = new le(this.options.keys), this.setCollection(e, s);
533
- }
534
- setCollection(e, n) {
535
- if (this._docs = e, n && !(n instanceof U)) throw new Error("Incorrect 'index' type");
536
- this._myIndex = n || re(this.options.keys, this._docs, { getFn: this.options.getFn, fieldNormWeight: this.options.fieldNormWeight });
537
- }
538
- add(e) {
539
- M(e) && (this._docs.push(e), this._myIndex.add(e));
540
- }
541
- remove(e = () => !1) {
542
- const n = [];
543
- for (let s = 0, i = this._docs.length; s < i; s += 1) {
544
- const c = this._docs[s];
545
- e(c, s) && (this.removeAt(s), s -= 1, i -= 1, n.push(c));
546
- }
547
- return n;
548
- }
549
- removeAt(e) {
550
- this._docs.splice(e, 1), this._myIndex.removeAt(e);
551
- }
552
- getIndex() {
553
- return this._myIndex;
554
- }
555
- search(e, { limit: n = -1 } = {}) {
556
- const { includeMatches: s, includeScore: i, shouldSort: c, sortFn: u, ignoreFieldNorm: o } = this.options;
557
- let r = v(e) ? v(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e);
558
- return (function(a, { ignoreFieldNorm: h = l.ignoreFieldNorm }) {
559
- a.forEach((g) => {
560
- let d = 1;
561
- g.matches.forEach(({ key: f, norm: A, score: C }) => {
562
- const p = f ? f.weight : null;
563
- d *= Math.pow(C === 0 && p ? Number.EPSILON : C, (p || 1) * (h ? 1 : A));
564
- }), g.score = d;
565
- });
566
- })(r, { ignoreFieldNorm: o }), c && r.sort(u), te(n) && n > -1 && (r = r.slice(0, n)), (function(a, h, { includeMatches: g = l.includeMatches, includeScore: d = l.includeScore } = {}) {
567
- const f = [];
568
- return g && f.push(Me), d && f.push(Ee), a.map((A) => {
569
- const { idx: C } = A, p = { item: h[C], refIndex: C };
570
- return f.length && f.forEach((E) => {
571
- E(A, p);
572
- }), p;
573
- });
574
- })(r, this._docs, { includeMatches: s, includeScore: i });
575
- }
576
- _searchStringList(e) {
577
- const n = Q(e, this.options), { records: s } = this._myIndex, i = [];
578
- return s.forEach(({ v: c, i: u, n: o }) => {
579
- if (!M(c)) return;
580
- const { isMatch: r, score: a, indices: h } = n.searchIn(c);
581
- r && i.push({ item: c, idx: u, matches: [{ score: a, value: c, norm: o, indices: h }] });
582
- }), i;
583
- }
584
- _searchLogical(e) {
585
- const n = he(e, this.options), s = (o, r, a) => {
586
- if (!o.children) {
587
- const { keyId: g, searcher: d } = o, f = this._findMatches({ key: this._keyStore.get(g), value: this._myIndex.getValueForItemAtKeyId(r, g), searcher: d });
588
- return f && f.length ? [{ idx: a, item: r, matches: f }] : [];
589
- }
590
- const h = [];
591
- for (let g = 0, d = o.children.length; g < d; g += 1) {
592
- const f = o.children[g], A = s(f, r, a);
593
- if (A.length) h.push(...A);
594
- else if (o.operator === G) return [];
595
- }
596
- return h;
597
- }, i = this._myIndex.records, c = {}, u = [];
598
- return i.forEach(({ $: o, i: r }) => {
599
- if (M(o)) {
600
- let a = s(n, o, r);
601
- a.length && (c[r] || (c[r] = { idx: r, item: o, matches: [] }, u.push(c[r])), a.forEach(({ matches: h }) => {
602
- c[r].matches.push(...h);
603
- }));
604
- }
605
- }), u;
606
- }
607
- _searchObjectList(e) {
608
- const n = Q(e, this.options), { keys: s, records: i } = this._myIndex, c = [];
609
- return i.forEach(({ $: u, i: o }) => {
610
- if (!M(u)) return;
611
- let r = [];
612
- s.forEach((a, h) => {
613
- r.push(...this._findMatches({ key: a, value: u[h], searcher: n }));
614
- }), r.length && c.push({ idx: o, item: u, matches: r });
615
- }), c;
616
- }
617
- _findMatches({ key: e, value: n, searcher: s }) {
618
- if (!M(n)) return [];
619
- let i = [];
620
- if (I(n)) n.forEach(({ v: c, i: u, n: o }) => {
621
- if (!M(c)) return;
622
- const { isMatch: r, score: a, indices: h } = s.searchIn(c);
623
- r && i.push({ score: a, key: e, value: c, idx: u, norm: o, indices: h });
624
- });
625
- else {
626
- const { v: c, n: u } = n, { isMatch: o, score: r, indices: a } = s.searchIn(c);
627
- o && i.push({ score: r, key: e, value: c, norm: u, indices: a });
628
- }
629
- return i;
630
- }
631
- }
632
- j.version = "7.1.0", j.createIndex = re, j.parseIndex = function(t, { getFn: e = l.getFn, fieldNormWeight: n = l.fieldNormWeight } = {}) {
633
- const { keys: s, records: i } = t, c = new U({ getFn: e, fieldNormWeight: n });
634
- return c.setKeys(s), c.setIndexRecords(i), c;
635
- }, j.config = l, j.parseQuery = he, (function(...t) {
636
- V.push(...t);
637
- })(Ce);
638
- export {
639
- j as default
640
- };