@sheetxl/react 0.7.21 → 0.7.23-beta.1

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 (456) hide show
  1. package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +1 -0
  2. package/browser/cjs/Pl04-kDEQSO8_qFU.cjs +156 -0
  3. package/browser/cjs/index.cjs +24 -24
  4. package/browser/esm/E9rKWgbrtweBguqR.mjs +6286 -0
  5. package/browser/esm/index.mjs +19252 -4914
  6. package/licenses/dependencies.txt +42 -214
  7. package/node/esm/CmChqiPvaotX5mCV.mjs +9 -0
  8. package/node/esm/index.mjs +17028 -3694
  9. package/package.json +10 -11
  10. package/resources/contents.json +60 -0
  11. package/resources/locales/contents.json +114 -0
  12. package/resources/locales/de/clipboard.cmd.json +36 -0
  13. package/resources/locales/de/editor.cmd.json +128 -0
  14. package/resources/locales/de/movable.cmd.json +123 -0
  15. package/resources/locales/de/selection.cmd.json +373 -0
  16. package/resources/locales/de/sheet.cmd.json +1563 -0
  17. package/resources/locales/de/table.cmd.json +83 -0
  18. package/resources/locales/de/ui.msg.json +166 -0
  19. package/resources/locales/de/workbook.cmd.json +282 -0
  20. package/resources/locales/en/clipboard.cmd.json +36 -0
  21. package/resources/locales/en/editor.cmd.json +128 -0
  22. package/resources/locales/en/movable.cmd.json +123 -0
  23. package/resources/locales/en/selection.cmd.json +373 -0
  24. package/resources/locales/en/sheet.cmd.json +1563 -0
  25. package/resources/locales/en/table.cmd.json +83 -0
  26. package/resources/locales/en/ui.msg.json +166 -0
  27. package/resources/locales/en/workbook.cmd.json +282 -0
  28. package/types/index.d.ts +2 -1815
  29. package/types/src/border/StaticBorderRenderer.d.ts +32 -0
  30. package/types/src/border/StaticBorderRenderer.d.ts.map +1 -0
  31. package/types/src/border/StyledStrokePath.d.ts +14 -0
  32. package/types/src/border/StyledStrokePath.d.ts.map +1 -0
  33. package/types/src/border/index.d.ts +4 -0
  34. package/types/src/border/index.d.ts.map +1 -0
  35. package/types/src/border/useBorders.d.ts +87 -0
  36. package/types/src/border/useBorders.d.ts.map +1 -0
  37. package/types/src/cell/ColumnButton.d.ts +45 -0
  38. package/types/src/cell/ColumnButton.d.ts.map +1 -0
  39. package/types/src/cell/CornerTriangle.d.ts +27 -0
  40. package/types/src/cell/CornerTriangle.d.ts.map +1 -0
  41. package/types/src/cell/FormulaCellRenderer.d.ts +34 -0
  42. package/types/src/cell/FormulaCellRenderer.d.ts.map +1 -0
  43. package/types/src/cell/SheetCellRenderer.d.ts +52 -0
  44. package/types/src/cell/SheetCellRenderer.d.ts.map +1 -0
  45. package/types/src/cell/SheetHeaderRenderer.d.ts +37 -0
  46. package/types/src/cell/SheetHeaderRenderer.d.ts.map +1 -0
  47. package/types/src/cell/index.d.ts +7 -0
  48. package/types/src/cell/index.d.ts.map +1 -0
  49. package/types/src/cell/useFormulaViewAnchor.d.ts +42 -0
  50. package/types/src/cell/useFormulaViewAnchor.d.ts.map +1 -0
  51. package/types/src/chart/ChartEditor.d.ts +17 -0
  52. package/types/src/chart/ChartEditor.d.ts.map +1 -0
  53. package/types/src/chart/PresetChartTypeDescriptors.d.ts +35 -0
  54. package/types/src/chart/PresetChartTypeDescriptors.d.ts.map +1 -0
  55. package/types/src/chart/index.d.ts +3 -0
  56. package/types/src/chart/index.d.ts.map +1 -0
  57. package/types/src/chart/templates/area-stacked-percent-template.json.d.ts +10 -0
  58. package/types/src/chart/templates/area-stacked-template.json.d.ts +10 -0
  59. package/types/src/chart/templates/area-template.json.d.ts +9 -0
  60. package/types/src/chart/templates/bar-stacked-percent-template.json.d.ts +10 -0
  61. package/types/src/chart/templates/bar-stacked-template.json.d.ts +10 -0
  62. package/types/src/chart/templates/bar-template.json.d.ts +9 -0
  63. package/types/src/chart/templates/column-stacked-percent-template.json.d.ts +10 -0
  64. package/types/src/chart/templates/column-stacked-template.json.d.ts +10 -0
  65. package/types/src/chart/templates/column-template.json.d.ts +9 -0
  66. package/types/src/chart/templates/line-markers-template.json.d.ts +10 -0
  67. package/types/src/chart/templates/line-stacked-markers-template.json.d.ts +11 -0
  68. package/types/src/chart/templates/line-stacked-percent-markers-template.json.d.ts +11 -0
  69. package/types/src/chart/templates/line-stacked-percent-template.json.d.ts +10 -0
  70. package/types/src/chart/templates/line-stacked-template.json.d.ts +10 -0
  71. package/types/src/chart/templates/line-template.json.d.ts +9 -0
  72. package/types/src/chart/templates/pie-doughnut-template.json.d.ts +10 -0
  73. package/types/src/chart/templates/pie-template.json.d.ts +9 -0
  74. package/types/src/chart/templates/scatter-lines-markers-smooth-template.json.d.ts +10 -0
  75. package/types/src/chart/templates/scatter-lines-markers-template.json.d.ts +10 -0
  76. package/types/src/chart/templates/scatter-lines-smooth-template.json.d.ts +10 -0
  77. package/types/src/chart/templates/scatter-lines-template.json.d.ts +10 -0
  78. package/types/src/chart/templates/scatter-markers-template.json.d.ts +10 -0
  79. package/types/src/clipboard/ClipboardCommands.d.ts +68 -0
  80. package/types/src/clipboard/ClipboardCommands.d.ts.map +1 -0
  81. package/types/src/clipboard/SheetClipboardLayer.d.ts +22 -0
  82. package/types/src/clipboard/SheetClipboardLayer.d.ts.map +1 -0
  83. package/types/src/clipboard/index.d.ts +3 -0
  84. package/types/src/clipboard/index.d.ts.map +1 -0
  85. package/types/src/commands/Catalog.d.ts +8 -0
  86. package/types/src/commands/Catalog.d.ts.map +1 -0
  87. package/types/src/commands/CommandRootProvider.d.ts +36 -0
  88. package/types/src/commands/CommandRootProvider.d.ts.map +1 -0
  89. package/types/src/commands/InputClipboardCommands.d.ts +41 -0
  90. package/types/src/commands/InputClipboardCommands.d.ts.map +1 -0
  91. package/types/src/commands/InputClipboardInjector.d.ts +16 -0
  92. package/types/src/commands/InputClipboardInjector.d.ts.map +1 -0
  93. package/types/src/commands/MainFocusContext.d.ts +13 -0
  94. package/types/src/commands/MainFocusContext.d.ts.map +1 -0
  95. package/types/src/commands/PaneScopeProvider.d.ts +40 -0
  96. package/types/src/commands/PaneScopeProvider.d.ts.map +1 -0
  97. package/types/src/commands/createTransactionalMiddleware.d.ts +49 -0
  98. package/types/src/commands/createTransactionalMiddleware.d.ts.map +1 -0
  99. package/types/src/commands/index.d.ts +7 -0
  100. package/types/src/commands/index.d.ts.map +1 -0
  101. package/types/src/context/SheetContext.d.ts +18 -0
  102. package/types/src/context/SheetContext.d.ts.map +1 -0
  103. package/types/src/context/WorkbookContext.d.ts +20 -0
  104. package/types/src/context/WorkbookContext.d.ts.map +1 -0
  105. package/types/src/context/index.d.ts +3 -0
  106. package/types/src/context/index.d.ts.map +1 -0
  107. package/types/src/editableLabel/EditableLabel.d.ts +28 -0
  108. package/types/src/editableLabel/EditableLabel.d.ts.map +1 -0
  109. package/types/src/editableLabel/index.d.ts +2 -0
  110. package/types/src/editableLabel/index.d.ts.map +1 -0
  111. package/types/src/editor/EditorCommands.d.ts +98 -0
  112. package/types/src/editor/EditorCommands.d.ts.map +1 -0
  113. package/types/src/editor/FunctionPreviewPanel.d.ts +166 -0
  114. package/types/src/editor/FunctionPreviewPanel.d.ts.map +1 -0
  115. package/types/src/editor/NamedHintPanel.d.ts +38 -0
  116. package/types/src/editor/NamedHintPanel.d.ts.map +1 -0
  117. package/types/src/editor/NamedItemsPanel.d.ts +59 -0
  118. package/types/src/editor/NamedItemsPanel.d.ts.map +1 -0
  119. package/types/src/editor/SheetCellEditorLayer.d.ts +40 -0
  120. package/types/src/editor/SheetCellEditorLayer.d.ts.map +1 -0
  121. package/types/src/editor/SheetCellInput.d.ts +99 -0
  122. package/types/src/editor/SheetCellInput.d.ts.map +1 -0
  123. package/types/src/editor/SheetEditable.d.ts +53 -0
  124. package/types/src/editor/SheetEditable.d.ts.map +1 -0
  125. package/types/src/editor/SheetReferenceHeaderLayer.d.ts +46 -0
  126. package/types/src/editor/SheetReferenceHeaderLayer.d.ts.map +1 -0
  127. package/types/src/editor/SheetReferenceLayer.d.ts +55 -0
  128. package/types/src/editor/SheetReferenceLayer.d.ts.map +1 -0
  129. package/types/src/editor/formulaCaret.d.ts +84 -0
  130. package/types/src/editor/formulaCaret.d.ts.map +1 -0
  131. package/types/src/editor/formulaEval.d.ts +202 -0
  132. package/types/src/editor/formulaEval.d.ts.map +1 -0
  133. package/types/src/editor/formulaPresentation.d.ts +136 -0
  134. package/types/src/editor/formulaPresentation.d.ts.map +1 -0
  135. package/types/src/editor/formulaText.d.ts +80 -0
  136. package/types/src/editor/formulaText.d.ts.map +1 -0
  137. package/types/src/editor/functionArgs.d.ts +111 -0
  138. package/types/src/editor/functionArgs.d.ts.map +1 -0
  139. package/types/src/editor/functionHint.d.ts +37 -0
  140. package/types/src/editor/functionHint.d.ts.map +1 -0
  141. package/types/src/editor/index.d.ts +18 -0
  142. package/types/src/editor/index.d.ts.map +1 -0
  143. package/types/src/editor/referencePointNav.d.ts +39 -0
  144. package/types/src/editor/referencePointNav.d.ts.map +1 -0
  145. package/types/src/editor/useFormulaHints.d.ts +126 -0
  146. package/types/src/editor/useFormulaHints.d.ts.map +1 -0
  147. package/types/src/editor/useFormulaInput.d.ts +326 -0
  148. package/types/src/editor/useFormulaInput.d.ts.map +1 -0
  149. package/types/src/editor/useProtectedEditNotice.d.ts +14 -0
  150. package/types/src/editor/useProtectedEditNotice.d.ts.map +1 -0
  151. package/types/src/editor/useReferenceMode.d.ts +177 -0
  152. package/types/src/editor/useReferenceMode.d.ts.map +1 -0
  153. package/types/src/form/FormulaInput.d.ts +86 -0
  154. package/types/src/form/FormulaInput.d.ts.map +1 -0
  155. package/types/src/form/FormulaInputParts.d.ts +94 -0
  156. package/types/src/form/FormulaInputParts.d.ts.map +1 -0
  157. package/types/src/form/index.d.ts +5 -0
  158. package/types/src/form/index.d.ts.map +1 -0
  159. package/types/src/form/useEditCommit.d.ts +174 -0
  160. package/types/src/form/useEditCommit.d.ts.map +1 -0
  161. package/types/src/form/useInputField.d.ts +86 -0
  162. package/types/src/form/useInputField.d.ts.map +1 -0
  163. package/types/src/frame/CommandContext.d.ts +179 -0
  164. package/types/src/frame/CommandContext.d.ts.map +1 -0
  165. package/types/src/frame/IFrame.d.ts +17 -0
  166. package/types/src/frame/IFrame.d.ts.map +1 -0
  167. package/types/src/frame/index.d.ts +3 -0
  168. package/types/src/frame/index.d.ts.map +1 -0
  169. package/types/src/icons/LogoNoPaddingIcon.d.ts +3 -0
  170. package/types/src/icons/LogoNoPaddingIcon.d.ts.map +1 -0
  171. package/types/src/icons/LogoTextNoPaddingIcon.d.ts +4 -0
  172. package/types/src/icons/LogoTextNoPaddingIcon.d.ts.map +1 -0
  173. package/types/src/icons/WaterMark.d.ts +12 -0
  174. package/types/src/icons/WaterMark.d.ts.map +1 -0
  175. package/types/src/icons/chart/ChartAreaIcon.d.ts +5 -0
  176. package/types/src/icons/chart/ChartAreaIcon.d.ts.map +1 -0
  177. package/types/src/icons/chart/ChartAreaStackedIcon.d.ts +5 -0
  178. package/types/src/icons/chart/ChartAreaStackedIcon.d.ts.map +1 -0
  179. package/types/src/icons/chart/ChartAreaStackedPercentIcon.d.ts +5 -0
  180. package/types/src/icons/chart/ChartAreaStackedPercentIcon.d.ts.map +1 -0
  181. package/types/src/icons/chart/ChartBarIcon.d.ts +5 -0
  182. package/types/src/icons/chart/ChartBarIcon.d.ts.map +1 -0
  183. package/types/src/icons/chart/ChartBarStackedIcon.d.ts +5 -0
  184. package/types/src/icons/chart/ChartBarStackedIcon.d.ts.map +1 -0
  185. package/types/src/icons/chart/ChartBarStackedPercentIcon.d.ts +5 -0
  186. package/types/src/icons/chart/ChartBarStackedPercentIcon.d.ts.map +1 -0
  187. package/types/src/icons/chart/ChartBubble3DIcon.d.ts +5 -0
  188. package/types/src/icons/chart/ChartBubble3DIcon.d.ts.map +1 -0
  189. package/types/src/icons/chart/ChartBubbleIcon.d.ts +5 -0
  190. package/types/src/icons/chart/ChartBubbleIcon.d.ts.map +1 -0
  191. package/types/src/icons/chart/ChartColumnIcon.d.ts +5 -0
  192. package/types/src/icons/chart/ChartColumnIcon.d.ts.map +1 -0
  193. package/types/src/icons/chart/ChartColumnStackedIcon.d.ts +5 -0
  194. package/types/src/icons/chart/ChartColumnStackedIcon.d.ts.map +1 -0
  195. package/types/src/icons/chart/ChartColumnStackedPercentIcon.d.ts +5 -0
  196. package/types/src/icons/chart/ChartColumnStackedPercentIcon.d.ts.map +1 -0
  197. package/types/src/icons/chart/ChartLineIcon.d.ts +5 -0
  198. package/types/src/icons/chart/ChartLineIcon.d.ts.map +1 -0
  199. package/types/src/icons/chart/ChartLineMarkersIcon.d.ts +5 -0
  200. package/types/src/icons/chart/ChartLineMarkersIcon.d.ts.map +1 -0
  201. package/types/src/icons/chart/ChartLineStackedIcon.d.ts +5 -0
  202. package/types/src/icons/chart/ChartLineStackedIcon.d.ts.map +1 -0
  203. package/types/src/icons/chart/ChartLineStackedMarkersIcon.d.ts +5 -0
  204. package/types/src/icons/chart/ChartLineStackedMarkersIcon.d.ts.map +1 -0
  205. package/types/src/icons/chart/ChartLineStackedPercentIcon.d.ts +5 -0
  206. package/types/src/icons/chart/ChartLineStackedPercentIcon.d.ts.map +1 -0
  207. package/types/src/icons/chart/ChartLineStackedPercentMarkersIcon.d.ts +5 -0
  208. package/types/src/icons/chart/ChartLineStackedPercentMarkersIcon.d.ts.map +1 -0
  209. package/types/src/icons/chart/ChartPieDoughnutIcon.d.ts +5 -0
  210. package/types/src/icons/chart/ChartPieDoughnutIcon.d.ts.map +1 -0
  211. package/types/src/icons/chart/ChartPieIcon.d.ts +5 -0
  212. package/types/src/icons/chart/ChartPieIcon.d.ts.map +1 -0
  213. package/types/src/icons/chart/ChartScatterLinesIcon.d.ts +5 -0
  214. package/types/src/icons/chart/ChartScatterLinesIcon.d.ts.map +1 -0
  215. package/types/src/icons/chart/ChartScatterLinesMarkersIcon.d.ts +5 -0
  216. package/types/src/icons/chart/ChartScatterLinesMarkersIcon.d.ts.map +1 -0
  217. package/types/src/icons/chart/ChartScatterLinesMarkersSmoothIcon.d.ts +5 -0
  218. package/types/src/icons/chart/ChartScatterLinesMarkersSmoothIcon.d.ts.map +1 -0
  219. package/types/src/icons/chart/ChartScatterLinesSmoothIcon.d.ts +5 -0
  220. package/types/src/icons/chart/ChartScatterLinesSmoothIcon.d.ts.map +1 -0
  221. package/types/src/icons/chart/ChartScatterMarkersIcon.d.ts +5 -0
  222. package/types/src/icons/chart/ChartScatterMarkersIcon.d.ts.map +1 -0
  223. package/types/src/icons/chart/ChartWaterfallIcon.d.ts +5 -0
  224. package/types/src/icons/chart/ChartWaterfallIcon.d.ts.map +1 -0
  225. package/types/src/icons/chart/ThemedChartIcon.d.ts +20 -0
  226. package/types/src/icons/chart/ThemedChartIcon.d.ts.map +1 -0
  227. package/types/src/icons/chart/index.d.ts +50 -0
  228. package/types/src/icons/chart/index.d.ts.map +1 -0
  229. package/types/src/icons/index.d.ts +4 -0
  230. package/types/src/icons/index.d.ts.map +1 -0
  231. package/types/src/index.d.ts +27 -0
  232. package/types/src/index.d.ts.map +1 -0
  233. package/types/src/io/WorkbookIO.d.ts +50 -0
  234. package/types/src/io/WorkbookIO.d.ts.map +1 -0
  235. package/types/src/io/index.d.ts +2 -0
  236. package/types/src/io/index.d.ts.map +1 -0
  237. package/types/src/layer/BorderLayer.d.ts +14 -0
  238. package/types/src/layer/BorderLayer.d.ts.map +1 -0
  239. package/types/src/layer/CellErrorLayer.d.ts +49 -0
  240. package/types/src/layer/CellErrorLayer.d.ts.map +1 -0
  241. package/types/src/layer/CellFillLayer.d.ts +15 -0
  242. package/types/src/layer/CellFillLayer.d.ts.map +1 -0
  243. package/types/src/layer/ConditionalBarLayer.d.ts +41 -0
  244. package/types/src/layer/ConditionalBarLayer.d.ts.map +1 -0
  245. package/types/src/layer/ConditionalIcons.d.ts +34 -0
  246. package/types/src/layer/ConditionalIcons.d.ts.map +1 -0
  247. package/types/src/layer/ConditionalIconsLayer.d.ts +31 -0
  248. package/types/src/layer/ConditionalIconsLayer.d.ts.map +1 -0
  249. package/types/src/layer/ContextMenuLayer.d.ts +27 -0
  250. package/types/src/layer/ContextMenuLayer.d.ts.map +1 -0
  251. package/types/src/layer/HeaderResizerLayer.d.ts +28 -0
  252. package/types/src/layer/HeaderResizerLayer.d.ts.map +1 -0
  253. package/types/src/layer/HeaderSelectionLayer.d.ts +89 -0
  254. package/types/src/layer/HeaderSelectionLayer.d.ts.map +1 -0
  255. package/types/src/layer/ResizeIndicator.d.ts +19 -0
  256. package/types/src/layer/ResizeIndicator.d.ts.map +1 -0
  257. package/types/src/layer/SheetBackgroundLayer.d.ts +22 -0
  258. package/types/src/layer/SheetBackgroundLayer.d.ts.map +1 -0
  259. package/types/src/layer/SheetCellLayer.d.ts +49 -0
  260. package/types/src/layer/SheetCellLayer.d.ts.map +1 -0
  261. package/types/src/layer/SheetColumnButtonLayer.d.ts +23 -0
  262. package/types/src/layer/SheetColumnButtonLayer.d.ts.map +1 -0
  263. package/types/src/layer/SheetGridLineLayer.d.ts +22 -0
  264. package/types/src/layer/SheetGridLineLayer.d.ts.map +1 -0
  265. package/types/src/layer/SheetHeaderCellLayer.d.ts +30 -0
  266. package/types/src/layer/SheetHeaderCellLayer.d.ts.map +1 -0
  267. package/types/src/layer/SheetMovableLayer.d.ts +26 -0
  268. package/types/src/layer/SheetMovableLayer.d.ts.map +1 -0
  269. package/types/src/layer/SheetTableCommandLayer.d.ts +16 -0
  270. package/types/src/layer/SheetTableCommandLayer.d.ts.map +1 -0
  271. package/types/src/layer/SpillLayer.d.ts +22 -0
  272. package/types/src/layer/SpillLayer.d.ts.map +1 -0
  273. package/types/src/layer/TableLayer.d.ts +22 -0
  274. package/types/src/layer/TableLayer.d.ts.map +1 -0
  275. package/types/src/layer/ValidationIndicatorLayer.d.ts +41 -0
  276. package/types/src/layer/ValidationIndicatorLayer.d.ts.map +1 -0
  277. package/types/src/layer/index.d.ts +25 -0
  278. package/types/src/layer/index.d.ts.map +1 -0
  279. package/types/src/layer/resizeIndicatorState.d.ts +26 -0
  280. package/types/src/layer/resizeIndicatorState.d.ts.map +1 -0
  281. package/types/src/layer/useSheetFeatureRegions.d.ts +21 -0
  282. package/types/src/layer/useSheetFeatureRegions.d.ts.map +1 -0
  283. package/types/src/layer/useSheetVisibleCells.d.ts +60 -0
  284. package/types/src/layer/useSheetVisibleCells.d.ts.map +1 -0
  285. package/types/src/layer/useSheetVisibleDecorations.d.ts +42 -0
  286. package/types/src/layer/useSheetVisibleDecorations.d.ts.map +1 -0
  287. package/types/src/layer/useTableHeaderCells.d.ts +22 -0
  288. package/types/src/layer/useTableHeaderCells.d.ts.map +1 -0
  289. package/types/src/layer/useVisibleTables.d.ts +27 -0
  290. package/types/src/layer/useVisibleTables.d.ts.map +1 -0
  291. package/types/src/listener/index.d.ts +3 -0
  292. package/types/src/listener/index.d.ts.map +1 -0
  293. package/types/src/listener/useModelListener.d.ts +67 -0
  294. package/types/src/listener/useModelListener.d.ts.map +1 -0
  295. package/types/src/listener/useRangeListener.d.ts +15 -0
  296. package/types/src/listener/useRangeListener.d.ts.map +1 -0
  297. package/types/src/movable/EmptyFrame.d.ts +16 -0
  298. package/types/src/movable/EmptyFrame.d.ts.map +1 -0
  299. package/types/src/movable/IMovableArea.d.ts +34 -0
  300. package/types/src/movable/IMovableArea.d.ts.map +1 -0
  301. package/types/src/movable/MovableCommands.d.ts +22 -0
  302. package/types/src/movable/MovableCommands.d.ts.map +1 -0
  303. package/types/src/movable/MovableFrame.d.ts +48 -0
  304. package/types/src/movable/MovableFrame.d.ts.map +1 -0
  305. package/types/src/movable/MovableLayer.d.ts +77 -0
  306. package/types/src/movable/MovableLayer.d.ts.map +1 -0
  307. package/types/src/movable/MoveableBundle.d.ts +4 -0
  308. package/types/src/movable/MoveableBundle.d.ts.map +1 -0
  309. package/types/src/movable/index.d.ts +4 -0
  310. package/types/src/movable/index.d.ts.map +1 -0
  311. package/types/src/picture/IPictureEditor.d.ts +39 -0
  312. package/types/src/picture/IPictureEditor.d.ts.map +1 -0
  313. package/types/src/picture/PictureEditor.d.ts +4 -0
  314. package/types/src/picture/PictureEditor.d.ts.map +1 -0
  315. package/types/src/picture/index.d.ts +3 -0
  316. package/types/src/picture/index.d.ts.map +1 -0
  317. package/types/src/selection/SelectionCommands.d.ts +23 -0
  318. package/types/src/selection/SelectionCommands.d.ts.map +1 -0
  319. package/types/src/selection/SheetSelection.d.ts +53 -0
  320. package/types/src/selection/SheetSelection.d.ts.map +1 -0
  321. package/types/src/selection/SheetSelectionLayer.d.ts +30 -0
  322. package/types/src/selection/SheetSelectionLayer.d.ts.map +1 -0
  323. package/types/src/selection/index.d.ts +4 -0
  324. package/types/src/selection/index.d.ts.map +1 -0
  325. package/types/src/shape/ShapeEditor.d.ts +16 -0
  326. package/types/src/shape/ShapeEditor.d.ts.map +1 -0
  327. package/types/src/shape/index.d.ts +2 -0
  328. package/types/src/shape/index.d.ts.map +1 -0
  329. package/types/src/sheet/ConditionalFormatPresets.d.ts +56 -0
  330. package/types/src/sheet/ConditionalFormatPresets.d.ts.map +1 -0
  331. package/types/src/sheet/ISheetElement.d.ts +233 -0
  332. package/types/src/sheet/ISheetElement.d.ts.map +1 -0
  333. package/types/src/sheet/ISheetHeaderElement.d.ts +138 -0
  334. package/types/src/sheet/ISheetHeaderElement.d.ts.map +1 -0
  335. package/types/src/sheet/NotImplemented.d.ts +3 -0
  336. package/types/src/sheet/NotImplemented.d.ts.map +1 -0
  337. package/types/src/sheet/SheetCommandProvider.d.ts +57 -0
  338. package/types/src/sheet/SheetCommandProvider.d.ts.map +1 -0
  339. package/types/src/sheet/SheetCommands.d.ts +75 -0
  340. package/types/src/sheet/SheetCommands.d.ts.map +1 -0
  341. package/types/src/sheet/SheetElement.d.ts +15 -0
  342. package/types/src/sheet/SheetElement.d.ts.map +1 -0
  343. package/types/src/sheet/SheetHeaderElement.d.ts +4 -0
  344. package/types/src/sheet/SheetHeaderElement.d.ts.map +1 -0
  345. package/types/src/sheet/SheetScrollbar.d.ts +28 -0
  346. package/types/src/sheet/SheetScrollbar.d.ts.map +1 -0
  347. package/types/src/sheet/TopLeftCorner.d.ts +17 -0
  348. package/types/src/sheet/TopLeftCorner.d.ts.map +1 -0
  349. package/types/src/sheet/index.d.ts +7 -0
  350. package/types/src/sheet/index.d.ts.map +1 -0
  351. package/types/src/slicer/SlicerEditor.d.ts +16 -0
  352. package/types/src/slicer/SlicerEditor.d.ts.map +1 -0
  353. package/types/src/slicer/index.d.ts +2 -0
  354. package/types/src/slicer/index.d.ts.map +1 -0
  355. package/types/src/tabStrip/SheetTab.d.ts +41 -0
  356. package/types/src/tabStrip/SheetTab.d.ts.map +1 -0
  357. package/types/src/tabStrip/Sortable.d.ts +66 -0
  358. package/types/src/tabStrip/Sortable.d.ts.map +1 -0
  359. package/types/src/tabStrip/Tab.d.ts +19 -0
  360. package/types/src/tabStrip/Tab.d.ts.map +1 -0
  361. package/types/src/tabStrip/TabStrip.d.ts +41 -0
  362. package/types/src/tabStrip/TabStrip.d.ts.map +1 -0
  363. package/types/src/tabStrip/TabStripItem.d.ts +36 -0
  364. package/types/src/tabStrip/TabStripItem.d.ts.map +1 -0
  365. package/types/src/tabStrip/TabStripRow.d.ts +9 -0
  366. package/types/src/tabStrip/TabStripRow.d.ts.map +1 -0
  367. package/types/src/tabStrip/index.d.ts +7 -0
  368. package/types/src/tabStrip/index.d.ts.map +1 -0
  369. package/types/src/table/TableCommands.d.ts +16 -0
  370. package/types/src/table/TableCommands.d.ts.map +1 -0
  371. package/types/src/taskPane/ITaskPane.d.ts +72 -0
  372. package/types/src/taskPane/ITaskPane.d.ts.map +1 -0
  373. package/types/src/taskPane/TaskPaneArea.d.ts +144 -0
  374. package/types/src/taskPane/TaskPaneArea.d.ts.map +1 -0
  375. package/types/src/taskPane/TaskPaneFrame.d.ts +48 -0
  376. package/types/src/taskPane/TaskPaneFrame.d.ts.map +1 -0
  377. package/types/src/taskPane/TaskPaneRegistry.d.ts +108 -0
  378. package/types/src/taskPane/TaskPaneRegistry.d.ts.map +1 -0
  379. package/types/src/taskPane/TaskPaneStrip.d.ts +33 -0
  380. package/types/src/taskPane/TaskPaneStrip.d.ts.map +1 -0
  381. package/types/src/taskPane/TaskPaneTitle.d.ts +24 -0
  382. package/types/src/taskPane/TaskPaneTitle.d.ts.map +1 -0
  383. package/types/src/taskPane/index.d.ts +7 -0
  384. package/types/src/taskPane/index.d.ts.map +1 -0
  385. package/types/src/taskPane/useTaskPane.d.ts +29 -0
  386. package/types/src/taskPane/useTaskPane.d.ts.map +1 -0
  387. package/types/src/theme/DocThemesContext.d.ts +3 -0
  388. package/types/src/theme/DocThemesContext.d.ts.map +1 -0
  389. package/types/src/theme/DocThemesProvider.d.ts +15 -0
  390. package/types/src/theme/DocThemesProvider.d.ts.map +1 -0
  391. package/types/src/theme/ThemeState.d.ts +19 -0
  392. package/types/src/theme/ThemeState.d.ts.map +1 -0
  393. package/types/src/theme/buildDocThemeCSS.d.ts +16 -0
  394. package/types/src/theme/buildDocThemeCSS.d.ts.map +1 -0
  395. package/types/src/theme/buildOOXMLThemeCSS.d.ts +13 -0
  396. package/types/src/theme/buildOOXMLThemeCSS.d.ts.map +1 -0
  397. package/types/src/theme/createCSSSystemLookup.d.ts +51 -0
  398. package/types/src/theme/createCSSSystemLookup.d.ts.map +1 -0
  399. package/types/src/theme/index.d.ts +11 -0
  400. package/types/src/theme/index.d.ts.map +1 -0
  401. package/types/src/theme/useAppColorScheme.d.ts +15 -0
  402. package/types/src/theme/useAppColorScheme.d.ts.map +1 -0
  403. package/types/src/theme/useDocThemes.d.ts +3 -0
  404. package/types/src/theme/useDocThemes.d.ts.map +1 -0
  405. package/types/src/theme/useGridColorScheme.d.ts +20 -0
  406. package/types/src/theme/useGridColorScheme.d.ts.map +1 -0
  407. package/types/src/theme/useSystemColors.d.ts +44 -0
  408. package/types/src/theme/useSystemColors.d.ts.map +1 -0
  409. package/types/src/undo/UndoCommands.d.ts +28 -0
  410. package/types/src/undo/UndoCommands.d.ts.map +1 -0
  411. package/types/src/undo/UndoManagerContext.d.ts +14 -0
  412. package/types/src/undo/UndoManagerContext.d.ts.map +1 -0
  413. package/types/src/undo/index.d.ts +3 -0
  414. package/types/src/undo/index.d.ts.map +1 -0
  415. package/types/src/workbook/DefaultRenderers.d.ts +14 -0
  416. package/types/src/workbook/DefaultRenderers.d.ts.map +1 -0
  417. package/types/src/workbook/GlobalWorkbookElement.d.ts +10 -0
  418. package/types/src/workbook/GlobalWorkbookElement.d.ts.map +1 -0
  419. package/types/src/workbook/IWorkbookElement.d.ts +178 -0
  420. package/types/src/workbook/IWorkbookElement.d.ts.map +1 -0
  421. package/types/src/workbook/WindowChrome.d.ts +61 -0
  422. package/types/src/workbook/WindowChrome.d.ts.map +1 -0
  423. package/types/src/workbook/WorkbookCommandContributor.d.ts +24 -0
  424. package/types/src/workbook/WorkbookCommandContributor.d.ts.map +1 -0
  425. package/types/src/workbook/WorkbookCommands.d.ts +97 -0
  426. package/types/src/workbook/WorkbookCommands.d.ts.map +1 -0
  427. package/types/src/workbook/WorkbookElement.d.ts +9 -0
  428. package/types/src/workbook/WorkbookElement.d.ts.map +1 -0
  429. package/types/src/workbook/WorkbookStrip.d.ts +73 -0
  430. package/types/src/workbook/WorkbookStrip.d.ts.map +1 -0
  431. package/types/src/workbook/index.d.ts +17 -0
  432. package/types/src/workbook/index.d.ts.map +1 -0
  433. package/types/src/workbook/resolveWorkbookInput.d.ts +27 -0
  434. package/types/src/workbook/resolveWorkbookInput.d.ts.map +1 -0
  435. package/types/src/workbook/useResolvedWorkbook.d.ts +31 -0
  436. package/types/src/workbook/useResolvedWorkbook.d.ts.map +1 -0
  437. package/types/src/workbook/useWindowChrome.d.ts +24 -0
  438. package/types/src/workbook/useWindowChrome.d.ts.map +1 -0
  439. package/types/src/workbook/useWorkbookApp.d.ts +47 -0
  440. package/types/src/workbook/useWorkbookApp.d.ts.map +1 -0
  441. package/types/src/workbook/useWorkbookEncrypted.d.ts +15 -0
  442. package/types/src/workbook/useWorkbookEncrypted.d.ts.map +1 -0
  443. package/types/src/workbook/useWorkbookFormat.d.ts +18 -0
  444. package/types/src/workbook/useWorkbookFormat.d.ts.map +1 -0
  445. package/types/src/workbook/useWorkbookName.d.ts +13 -0
  446. package/types/src/workbook/useWorkbookName.d.ts.map +1 -0
  447. package/types/src/workbook/useWorkbookSaveState.d.ts +29 -0
  448. package/types/src/workbook/useWorkbookSaveState.d.ts.map +1 -0
  449. package/browser/cjs/Be13sRyTTTUvNIit.cjs +0 -161
  450. package/browser/cjs/KLgpeikeRSDp4tUK.cjs +0 -16
  451. package/browser/cjs/n4OQZCE7fVxRfX1r.cjs +0 -7
  452. package/browser/esm/ClLcB3xHul5RfTMr.mjs +0 -1377
  453. package/browser/esm/EUZRpu3SnHayUDBu.mjs +0 -3905
  454. package/browser/esm/Mz1Nj2KbO5FcE969.mjs +0 -394
  455. package/node/assets/style.css +0 -1
  456. package/node/esm/sKvpUJVdmYl8r9f6.mjs +0 -11
@@ -1,7 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.21
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */function _e(m,j){for(var O=0;O<j.length;O++){const o=j[O];if(typeof o!="string"&&!Array.isArray(o)){for(const a in o)if(a!=="default"&&!(a in m)){const s=Object.getOwnPropertyDescriptor(o,a);s&&Object.defineProperty(m,a,s.get?s:{enumerable:!0,get:()=>o[a]})}}}return Object.freeze(Object.defineProperty(m,Symbol.toStringTag,{value:"Module"}))}var K,W={},G={},E={},X={},$,U={};function me(){if($)return U;$=1;var m=U&&U.__awaiter||function(o,a,s,n){return new(s||(s=Promise))(function(e,u){function h(_){try{P(n.next(_))}catch(f){u(f)}}function d(_){try{P(n.throw(_))}catch(f){u(f)}}function P(_){var f;_.done?e(_.value):(f=_.value,f instanceof s?f:new s(function(r){r(f)})).then(h,d)}P((n=n.apply(o,a||[])).next())})},j=U&&U.__generator||function(o,a){var s,n,e,u,h={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return u={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function d(P){return function(_){return(function(f){if(s)throw new TypeError("Generator is already executing.");for(;h;)try{if(s=1,n&&(e=2&f[0]?n.return:f[0]?n.throw||((e=n.return)&&e.call(n),0):n.next)&&!(e=e.call(n,f[1])).done)return e;switch(n=0,e&&(f=[2&f[0],e.value]),f[0]){case 0:case 1:e=f;break;case 4:return h.label++,{value:f[1],done:!1};case 5:h.label++,n=f[1],f=[0];continue;case 7:f=h.ops.pop(),h.trys.pop();continue;default:if(e=h.trys,!((e=e.length>0&&e[e.length-1])||f[0]!==6&&f[0]!==2)){h=0;continue}if(f[0]===3&&(!e||f[1]>e[0]&&f[1]<e[3])){h.label=f[1];break}if(f[0]===6&&h.label<e[1]){h.label=e[1],e=f;break}if(e&&h.label<e[2]){h.label=e[2],h.ops.push(f);break}e[2]&&h.ops.pop(),h.trys.pop();continue}f=a.call(o,h)}catch(r){f=[6,r],n=0}finally{s=e=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}})([P,_])}}};Object.defineProperty(U,"__esModule",{value:!0}),U.JsDelivrSourceResolver=void 0;var O=(function(){function o(){}return o.prototype.resolvePackageJson=function(a,s,n){return m(this,void 0,void 0,function(){return j(this,function(e){switch(e.label){case 0:return[4,this.resolveFile("https://cdn.jsdelivr.net/npm/".concat(a).concat(s?"@".concat(s):"").concat(n?"/".concat(n):"","/package.json"))];case 1:return[2,e.sent()]}})})},o.prototype.resolveSourceFile=function(a,s,n){return m(this,void 0,void 0,function(){return j(this,function(e){switch(e.label){case 0:return[4,this.resolveFile("https://cdn.jsdelivr.net/npm/".concat(a).concat(s?"@".concat(s):"","/").concat(n))];case 1:return[2,e.sent()]}})})},o.prototype.resolveFile=function(a){return m(this,void 0,void 0,function(){var s;return j(this,function(n){switch(n.label){case 0:return[4,fetch(a,{method:"GET"})];case 1:return(s=n.sent()).ok?[4,s.text()]:[3,3];case 2:return[2,n.sent()];case 3:if(s.status===404)return[2,""];throw Error("Error other than 404 while fetching from Unpkg at ".concat(a));case 4:return[2]}})})},o})();return U.JsDelivrSourceResolver=O,U}var H,Q,Y,C={},F={};function q(){if(Q)return H;function m(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function j(o,a){for(var s,n="",e=0,u=-1,h=0,d=0;d<=o.length;++d){if(d<o.length)s=o.charCodeAt(d);else{if(s===47)break;s=47}if(s===47){if(!(u===d-1||h===1))if(u!==d-1&&h===2){if(n.length<2||e!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var P=n.lastIndexOf("/");if(P!==n.length-1){P===-1?(n="",e=0):e=(n=n.slice(0,P)).length-1-n.lastIndexOf("/"),u=d,h=0;continue}}else if(n.length===2||n.length===1){n="",e=0,u=d,h=0;continue}}a&&(n.length>0?n+="/..":n="..",e=2)}else n.length>0?n+="/"+o.slice(u+1,d):n=o.slice(u+1,d),e=d-u-1;u=d,h=0}else s===46&&h!==-1?++h:h=-1}return n}Q=1;var O={resolve:function(){for(var o,a="",s=!1,n=arguments.length-1;n>=-1&&!s;n--){var e;n>=0?e=arguments[n]:(o===void 0&&(o=process.cwd()),e=o),m(e),e.length!==0&&(a=e+"/"+a,s=e.charCodeAt(0)===47)}return a=j(a,!s),s?a.length>0?"/"+a:"/":a.length>0?a:"."},normalize:function(o){if(m(o),o.length===0)return".";var a=o.charCodeAt(0)===47,s=o.charCodeAt(o.length-1)===47;return(o=j(o,!a)).length!==0||a||(o="."),o.length>0&&s&&(o+="/"),a?"/"+o:o},isAbsolute:function(o){return m(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,a=0;a<arguments.length;++a){var s=arguments[a];m(s),s.length>0&&(o===void 0?o=s:o+="/"+s)}return o===void 0?".":O.normalize(o)},relative:function(o,a){if(m(o),m(a),o===a||(o=O.resolve(o))===(a=O.resolve(a)))return"";for(var s=1;s<o.length&&o.charCodeAt(s)===47;++s);for(var n=o.length,e=n-s,u=1;u<a.length&&a.charCodeAt(u)===47;++u);for(var h=a.length-u,d=e<h?e:h,P=-1,_=0;_<=d;++_){if(_===d){if(h>d){if(a.charCodeAt(u+_)===47)return a.slice(u+_+1);if(_===0)return a.slice(u+_)}else e>d&&(o.charCodeAt(s+_)===47?P=_:_===0&&(P=0));break}var f=o.charCodeAt(s+_);if(f!==a.charCodeAt(u+_))break;f===47&&(P=_)}var r="";for(_=s+P+1;_<=n;++_)_!==n&&o.charCodeAt(_)!==47||(r.length===0?r+="..":r+="/..");return r.length>0?r+a.slice(u+P):(u+=P,a.charCodeAt(u)===47&&++u,a.slice(u))},_makeLong:function(o){return o},dirname:function(o){if(m(o),o.length===0)return".";for(var a=o.charCodeAt(0),s=a===47,n=-1,e=!0,u=o.length-1;u>=1;--u)if((a=o.charCodeAt(u))===47){if(!e){n=u;break}}else e=!1;return n===-1?s?"/":".":s&&n===1?"//":o.slice(0,n)},basename:function(o,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');m(o);var s,n=0,e=-1,u=!0;if(a!==void 0&&a.length>0&&a.length<=o.length){if(a.length===o.length&&a===o)return"";var h=a.length-1,d=-1;for(s=o.length-1;s>=0;--s){var P=o.charCodeAt(s);if(P===47){if(!u){n=s+1;break}}else d===-1&&(u=!1,d=s+1),h>=0&&(P===a.charCodeAt(h)?--h===-1&&(e=s):(h=-1,e=d))}return n===e?e=d:e===-1&&(e=o.length),o.slice(n,e)}for(s=o.length-1;s>=0;--s)if(o.charCodeAt(s)===47){if(!u){n=s+1;break}}else e===-1&&(u=!1,e=s+1);return e===-1?"":o.slice(n,e)},extname:function(o){m(o);for(var a=-1,s=0,n=-1,e=!0,u=0,h=o.length-1;h>=0;--h){var d=o.charCodeAt(h);if(d!==47)n===-1&&(e=!1,n=h+1),d===46?a===-1?a=h:u!==1&&(u=1):a!==-1&&(u=-1);else if(!e){s=h+1;break}}return a===-1||n===-1||u===0||u===1&&a===n-1&&a===s+1?"":o.slice(a,n)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return(function(a,s){var n=s.dir||s.root,e=s.base||(s.name||"")+(s.ext||"");return n?n===s.root?n+e:n+a+e:e})("/",o)},parse:function(o){m(o);var a={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return a;var s,n=o.charCodeAt(0),e=n===47;e?(a.root="/",s=1):s=0;for(var u=-1,h=0,d=-1,P=!0,_=o.length-1,f=0;_>=s;--_)if((n=o.charCodeAt(_))!==47)d===-1&&(P=!1,d=_+1),n===46?u===-1?u=_:f!==1&&(f=1):u!==-1&&(f=-1);else if(!P){h=_+1;break}return u===-1||d===-1||f===0||f===1&&u===d-1&&u===h+1?d!==-1&&(a.base=a.name=h===0&&e?o.slice(1,d):o.slice(h,d)):(h===0&&e?(a.name=o.slice(1,u),a.base=o.slice(1,d)):(a.name=o.slice(h,u),a.base=o.slice(h,d)),a.ext=o.slice(u,d)),h>0?a.dir=o.slice(0,h-1):e&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return O.posix=O,H=O}var Z,J={};function be(){if(Z)return J;Z=1;var m=J&&J.__importDefault||function(O){return O&&O.__esModule?O:{default:O}};Object.defineProperty(J,"__esModule",{value:!0}),J.importResourcePathToString=void 0;var j=m(q());return J.importResourcePathToString=function(O){var o;switch(O.kind){case"package":return j.default.join(O.packageName,(o=O.importPath)!==null&&o!==void 0?o:"","package.json");case"relative":return j.default.join(O.sourcePath,O.importPath);case"relative-in-package":return j.default.join(O.packageName,O.sourcePath,O.importPath)}},J}var ee,B={};function ke(){return ee?B:(ee=1,Object.defineProperty(B,"__esModule",{value:!0}),B.invokeUpdate=void 0,B.invokeUpdate=function(m,j){var O,o="".concat(m.type,": ");switch(m.type){case"CodeChanged":case"ResolveNewImports":o+="";break;case"LookedUpTypeFile":o+='"'.concat(m.path,'" was ').concat(m.success?"sucessfully":"not sucessfully"," looked up");break;case"AttemptedLookUpFile":o+='"'.concat(m.path,'" was ').concat(m.success?"sucessfully":"not sucessfully"," attempted to looked up");break;case"LookedUpPackage":o+='package.json for package "'.concat(m.package,'" was ').concat(m.success?"sucessfully":"not sucessfully"," looked up").concat(m.definitelyTyped?" (found in definitely typed repo)":"");break;case"LoadedFromCache":o+='"'.concat(m.importPath,'" was loaded from cache');break;case"StoredToCache":o+='"'.concat(m.importPath,'" was stored to cache')}o.endsWith(": ")&&(o=o.slice(void 0,-2)),(O=j.onUpdate)===null||O===void 0||O.call(j,m,o)},B)}var te,re,ne,oe,z={};function we(){if(te)return z;te=1,Object.defineProperty(z,"__esModule",{value:!0}),z.RecursionDepth=void 0;var m=(function(){function j(O,o,a){o===void 0&&(o=0),a===void 0&&(a=0),this.options=O,this.fileRecursionDepth=o,this.packageRecursionDepth=a}return j.prototype.nextPackage=function(){return new j(this.options,this.fileRecursionDepth,this.packageRecursionDepth+1)},j.prototype.nextFile=function(){return new j(this.options,this.fileRecursionDepth+1,this.packageRecursionDepth)},j.prototype.same=function(){return new j(this.options,this.fileRecursionDepth,this.packageRecursionDepth)},j.prototype.shouldStop=function(){return this.options.fileRecursionDepth>0&&this.fileRecursionDepth>=this.options.fileRecursionDepth||this.options.packageRecursionDepth>0&&this.packageRecursionDepth>=this.options.packageRecursionDepth},j})();return z.RecursionDepth=m,z}function Pe(){if(re)return C;re=1;var m=C&&C.__assign||function(){return m=Object.assign||function(r){for(var t,c=1,l=arguments.length;c<l;c++)for(var i in t=arguments[c])Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i]);return r},m.apply(this,arguments)},j=C&&C.__createBinding||(Object.create?function(r,t,c,l){l===void 0&&(l=c);var i=Object.getOwnPropertyDescriptor(t,c);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[c]}}),Object.defineProperty(r,l,i)}:function(r,t,c,l){l===void 0&&(l=c),r[l]=t[c]}),O=C&&C.__setModuleDefault||(Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t}),o=C&&C.__importStar||function(r){if(r&&r.__esModule)return r;var t={};if(r!=null)for(var c in r)c!=="default"&&Object.prototype.hasOwnProperty.call(r,c)&&j(t,r,c);return O(t,r),t},a=C&&C.__awaiter||function(r,t,c,l){return new(c||(c=Promise))(function(i,g){function v(k){try{y(l.next(k))}catch(p){g(p)}}function b(k){try{y(l.throw(k))}catch(p){g(p)}}function y(k){var p;k.done?i(k.value):(p=k.value,p instanceof c?p:new c(function(w){w(p)})).then(v,b)}y((l=l.apply(r,t||[])).next())})},s=C&&C.__generator||function(r,t){var c,l,i,g,v={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return g={next:b(0),throw:b(1),return:b(2)},typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function b(y){return function(k){return(function(p){if(c)throw new TypeError("Generator is already executing.");for(;v;)try{if(c=1,l&&(i=2&p[0]?l.return:p[0]?l.throw||((i=l.return)&&i.call(l),0):l.next)&&!(i=i.call(l,p[1])).done)return i;switch(l=0,i&&(p=[2&p[0],i.value]),p[0]){case 0:case 1:i=p;break;case 4:return v.label++,{value:p[1],done:!1};case 5:v.label++,l=p[1],p=[0];continue;case 7:p=v.ops.pop(),v.trys.pop();continue;default:if(i=v.trys,!((i=i.length>0&&i[i.length-1])||p[0]!==6&&p[0]!==2)){v=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){v.label=p[1];break}if(p[0]===6&&v.label<i[1]){v.label=i[1],i=p;break}if(i&&v.label<i[2]){v.label=i[2],v.ops.push(p);break}i[2]&&v.ops.pop(),v.trys.pop();continue}p=t.call(r,v)}catch(w){p=[6,w],l=0}finally{c=i=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}})([y,k])}}},n=C&&C.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,c=t&&r[t],l=0;if(c)return c.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&l>=r.length&&(r=void 0),{value:r&&r[l++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},e=C&&C.__read||function(r,t){var c=typeof Symbol=="function"&&r[Symbol.iterator];if(!c)return r;var l,i,g=c.call(r),v=[];try{for(;(t===void 0||t-- >0)&&!(l=g.next()).done;)v.push(l.value)}catch(b){i={error:b}}finally{try{l&&!l.done&&(c=g.return)&&c.call(g)}finally{if(i)throw i.error}}return v};Object.defineProperty(C,"__esModule",{value:!0}),C.ImportResolver=void 0;var u=(function(){if(Y)return F;Y=1;var r=F&&F.__createBinding||(Object.create?function(b,y,k,p){p===void 0&&(p=k);var w=Object.getOwnPropertyDescriptor(y,k);w&&!("get"in w?!y.__esModule:w.writable||w.configurable)||(w={enumerable:!0,get:function(){return y[k]}}),Object.defineProperty(b,p,w)}:function(b,y,k,p){p===void 0&&(p=k),b[p]=y[k]}),t=F&&F.__setModuleDefault||(Object.create?function(b,y){Object.defineProperty(b,"default",{enumerable:!0,value:y})}:function(b,y){b.default=y}),c=F&&F.__importStar||function(b){if(b&&b.__esModule)return b;var y={};if(b!=null)for(var k in b)k!=="default"&&Object.prototype.hasOwnProperty.call(b,k)&&r(y,b,k);return t(y,b),y},l=F&&F.__read||function(b,y){var k=typeof Symbol=="function"&&b[Symbol.iterator];if(!k)return b;var p,w,S=k.call(b),A=[];try{for(;(y===void 0||y-- >0)&&!(p=S.next()).done;)A.push(p.value)}catch(x){w={error:x}}finally{try{p&&!p.done&&(k=S.return)&&k.call(S)}finally{if(w)throw w.error}}return A},i=F&&F.__spreadArray||function(b,y,k){if(k||arguments.length===2)for(var p,w=0,S=y.length;w<S;w++)!p&&w in y||(p||(p=Array.prototype.slice.call(y,0,w)),p[w]=y[w]);return b.concat(p||Array.prototype.slice.call(y))};Object.defineProperty(F,"__esModule",{value:!0}),F.DependencyParser=void 0;var g=c(q()),v=(function(){function b(){this.REGEX_CLEAN=/[\n|\r]/g,this.REGEX_DETECT_IMPORT=/(?:(?:(?:import)|(?:export))(?:.)*?from\s+["']([^"']+)["'])|(?:((?:require|import))(?:\s+)?\(["']([^"']+)["']\))|(?:\/+\s+<reference\s+path=["']([^"']+)["']\s+\/>)/g,this.REGEX_NODE_MODULE=/^node:([\w\W\/]+)$/}return b.prototype.parseDependencies=function(y,k){var p=this;return i([],l(y.matchAll(this.REGEX_DETECT_IMPORT)),!1).map(function(w){var S,A;return(A=(S=w[1])!==null&&S!==void 0?S:w[2])!==null&&A!==void 0?A:w[3]}).filter(function(w){return!!w}).map(function(w){return p.resolvePath(w,k)})},b.prototype.resolvePath=function(y,k){var p=y.match(this.REGEX_NODE_MODULE);if(p)return{kind:"relative-in-package",packageName:"@types/node",importPath:"".concat(p[1],".d.ts"),sourcePath:""};if(typeof k=="string"){if(y.startsWith("."))return{kind:"relative",importPath:y,sourcePath:k};if(y.startsWith("@")){var w=y.split("/");return{kind:"package",packageName:"".concat(w[0],"/").concat(w[1]),importPath:w.slice(2).join("/")}}return{kind:"package",packageName:(w=y.split("/"))[0],importPath:w.slice(1).join("/")}}switch(k.kind){case"package":throw Error("TODO?");case"relative":throw Error("TODO2?");case"relative-in-package":return y.startsWith(".")?{kind:"relative-in-package",packageName:k.packageName,sourcePath:g.join(k.sourcePath,k.importPath),importPath:y}:y.startsWith("@")?(w=y.split("/"),{kind:"package",packageName:"".concat(w[0],"/").concat(w[1]),importPath:w.slice(2).join("/")}):{kind:"package",packageName:(w=y.split("/"))[0],importPath:w.slice(1).join("/")}}},b})();return F.DependencyParser=v,F})(),h=be(),d=o(q()),P=ke(),_=we(),f=(function(){function r(t){var c,l;if(this.options=t,this.loadedFiles=[],this.dependencyParser=new u.DependencyParser,this.cache=t.sourceCache,this.sourceResolver=t.sourceResolver,this.newImportsResolved=!1,this.monaco=t.monaco,t.preloadPackages&&t.versions){this.versions=t.versions;try{for(var i=n(Object.entries(t.versions)),g=i.next();!g.done;g=i.next()){var v=e(g.value,2),b=v[0];v[1],this.resolveImport({kind:"package",packageName:b,importPath:""},new _.RecursionDepth(this.options)).catch(function(y){console.error(y)})}}catch(y){c={error:y}}finally{try{g&&!g.done&&(l=i.return)&&l.call(i)}finally{if(c)throw c.error}}}}return r.prototype.wereNewImportsResolved=function(){return this.newImportsResolved},r.prototype.resetNewImportsResolved=function(){this.newImportsResolved=!1},r.prototype.resolveImportsInFile=function(t,c,l){var i,g,v;return a(this,void 0,void 0,function(){var b,y,k,p,w,S,A,x;return s(this,function(R){switch(R.label){case 0:if(l.shouldStop())return[2];b=this.dependencyParser.parseDependencies(t,c),R.label=1;case 1:R.trys.push([1,8,9,10]),y=n(b),k=y.next(),R.label=2;case 2:if(k.done)return[3,7];p=k.value,R.label=3;case 3:return R.trys.push([3,5,,6]),[4,this.resolveImport(p,l)];case 4:return R.sent(),[3,6];case 5:return w=R.sent(),this.options.onError?(g=(i=this.options).onError)===null||g===void 0||g.call(i,(v=w.message)!==null&&v!==void 0?v:w):console.error(w),[3,6];case 6:return k=y.next(),[3,2];case 7:return[3,10];case 8:return S=R.sent(),A={error:S},[3,10];case 9:try{k&&!k.done&&(x=y.return)&&x.call(y)}finally{if(A)throw A.error}return[7];case 10:return[2]}})})},r.prototype.resolveImport=function(t,c){return a(this,void 0,void 0,function(){var l,i;return s(this,function(g){switch(g.label){case 0:if(l=this.hashImportResourcePath(t),this.loadedFiles.includes(l))return[2];switch(this.loadedFiles.push(l),t.kind){case"package":return[3,1];case"relative":return[3,5];case"relative-in-package":return[3,6]}return[3,8];case 1:return[4,this.resolveImportFromPackageRoot(t)];case 2:return(i=g.sent())?[4,this.resolveImportInPackage(i,c.nextPackage().nextFile())]:[3,4];case 3:case 7:return[2,g.sent()];case 4:return[3,8];case 5:throw Error("Not implemented yet");case 6:return[4,this.resolveImportInPackage(t,c.nextFile())];case 8:return[2]}})})},r.prototype.resolveImportInPackage=function(t,c){return a(this,void 0,void 0,function(){var l,i,g;return s(this,function(v){switch(v.label){case 0:return[4,this.loadSourceFileContents(t)];case 1:return(l=v.sent())?(i=l.source,g=l.at,this.createModel(i,this.monaco.Uri.parse(this.options.fileRootPath+d.join("node_modules/".concat(t.packageName),g))),[4,this.resolveImportsInFile(i,{kind:"relative-in-package",packageName:t.packageName,sourcePath:d.dirname(g),importPath:""},c)]):[3,3];case 2:v.sent(),v.label=3;case 3:return[2]}})})},r.prototype.resolveImportFromPackageRoot=function(t){var c,l,i,g,v,b,y,k,p;return a(this,void 0,void 0,function(){var w,S,A,x,R,N,V,D,T;return s(this,function(M){switch(M.label){case 0:return w={type:"LookedUpPackage",package:t.packageName,definitelyTyped:!1,success:!1},!this.options.onlySpecifiedPackages||!((c=this.versions)===null||c===void 0)&&c[t.packageName]||!((l=this.versions)===null||l===void 0)&&l["@types/"+t.packageName]?(S=(g=(i=t.importPath)===null||i===void 0?void 0:i.length)!==null&&g!==void 0&&g,A=S?"/".concat(t.importPath):"",[4,this.resolvePackageJson(t.packageName,(v=this.versions)===null||v===void 0?void 0:v[t.packageName],S?t.importPath:void 0)]):((0,P.invokeUpdate)(w,this.options),[2]);case 1:return(x=M.sent())||!S?[3,3]:[4,this.resolvePackageJson(t.packageName,(b=this.versions)===null||b===void 0?void 0:b[t.packageName])];case 2:x=M.sent(),A="",M.label=3;case 3:return x?(R=JSON.parse(x)).typings||R.types?(T=R.typings||R.types,this.createModel(x,this.monaco.Uri.parse("".concat(this.options.fileRootPath,"node_modules/").concat(t.packageName).concat(A,"/package.json"))),(0,P.invokeUpdate)({type:"LookedUpPackage",package:t.packageName,definitelyTyped:!1,success:!0},this.options),this.setVersion(t.packageName,R.version),[2,{kind:"relative-in-package",packageName:t.packageName,sourcePath:"",importPath:d.join((y=t.importPath)!==null&&y!==void 0?y:"",T.startsWith("./")?T.slice(2):T)}]):[3,4]:[3,7];case 4:return N="@types/".concat(t.packageName.startsWith("@")?t.packageName.slice(1).replace(/\//,"__"):t.packageName),[4,this.resolvePackageJson(N,(k=this.versions)===null||k===void 0?void 0:k[N])];case 5:if(V=M.sent()){if((D=JSON.parse(V)).typings||D.types)return T=D.typings||D.types,this.createModel(V,this.monaco.Uri.parse("".concat(this.options.fileRootPath,"node_modules/").concat(N,"/package.json"))),(0,P.invokeUpdate)({type:"LookedUpPackage",package:N,definitelyTyped:!0,success:!0},this.options),this.setVersion(N,D.version),[2,{kind:"relative-in-package",packageName:N,sourcePath:"",importPath:d.join((p=t.importPath)!==null&&p!==void 0?p:"",T.startsWith("./")?T.slice(2):T)}];(0,P.invokeUpdate)(w,this.options)}else(0,P.invokeUpdate)(w,this.options);M.label=6;case 6:return[3,8];case 7:(0,P.invokeUpdate)(w,this.options),M.label=8;case 8:return[2]}})})},r.prototype.loadSourceFileContents=function(t){return a(this,void 0,void 0,function(){var c,l,i,g,v,b,y,k,p,w,S,A,x,R,N,V;return s(this,function(D){switch(D.label){case 0:return c=d.join(t.packageName,t.sourcePath,t.importPath),l={type:"LookedUpTypeFile",path:c,definitelyTyped:!1,success:!1},i=t.packageName,g=this.getVersion(t.packageName),(v=[".d.ts","/index.d.ts",".ts",".tsx","/index.ts","/index.tsx"]).map(function(T){return t.importPath.endsWith(T)}).reduce(function(T,M){return T||M},!1)?[4,this.resolveSourceFile(i,g,d.join(t.sourcePath,t.importPath))]:[3,2];case 1:return(R=D.sent())?[2,{source:R,at:d.join(t.sourcePath,t.importPath)}]:[3,9];case 2:D.trys.push([2,7,8,9]),b=n(v),y=b.next(),D.label=3;case 3:return y.done?[3,6]:(k=y.value,p=d.join(t.sourcePath,t.importPath),x=(k===".d.ts"&&p.endsWith(".js")?p.slice(0,-3):p)+k,[4,this.resolveSourceFile(i,g,x)]);case 4:if(R=D.sent(),(0,P.invokeUpdate)({type:"AttemptedLookUpFile",path:d.join(i,x),success:!!R},this.options),R)return(0,P.invokeUpdate)({type:"LookedUpTypeFile",path:d.join(i,x),success:!0},this.options),[2,{source:R,at:x}];D.label=5;case 5:return y=b.next(),[3,3];case 6:return[3,9];case 7:return w=D.sent(),N={error:w},[3,9];case 8:try{y&&!y.done&&(V=b.return)&&V.call(b)}finally{if(N)throw N.error}return[7];case 9:return[4,this.resolvePackageJson(i,g,d.join(t.sourcePath,t.importPath))];case 10:return(S=D.sent())&&(A=JSON.parse(S).types)?(x=d.join(t.sourcePath,t.importPath,A),[4,this.resolveSourceFile(i,g,x)]):[3,12];case 11:if(R=D.sent())return(0,P.invokeUpdate)({type:"LookedUpTypeFile",path:d.join(i,x),success:!0},this.options),[2,{source:R,at:x}];D.label=12;case 12:return(0,P.invokeUpdate)(l,this.options),[2,null]}})})},r.prototype.getVersion=function(t){var c;return(c=this.versions)===null||c===void 0?void 0:c[t]},r.prototype.setVersions=function(t){var c,l;this.versions=t,(l=(c=this.options).onUpdateVersions)===null||l===void 0||l.call(c,t)},r.prototype.setVersion=function(t,c){var l;this.setVersions(m(m({},this.versions),((l={})[t]=c,l)))},r.prototype.createModel=function(t,c){c=c.with({path:c.path.replace("@types/","")}),this.monaco.editor.getModel(c)||(this.monaco.editor.createModel(t,"typescript",c),this.newImportsResolved=!0)},r.prototype.hashImportResourcePath=function(t){return(0,h.importResourcePathToString)(t)},r.prototype.resolvePackageJson=function(t,c,l){return a(this,void 0,void 0,function(){var i,g,v,b;return s(this,function(y){switch(y.label){case 0:return i=d.join(t+(c?"@".concat(c):""),l??"","package.json"),g=!1,v=void 0,this.cache.isFileAvailable?[4,this.cache.isFileAvailable(i)]:[3,2];case 1:return g=y.sent(),[3,4];case 2:return[4,this.cache.getFile(i)];case 3:v=y.sent(),g=v!==void 0,y.label=4;case 4:return g?v==null?[3,5]:(b=v,[3,7]):[3,8];case 5:return[4,this.cache.getFile(i)];case 6:b=y.sent(),y.label=7;case 7:return[2,b];case 8:return[4,this.sourceResolver.resolvePackageJson(t,c,l)];case 9:return(v=y.sent())&&this.cache.storeFile(i,v),[2,v]}})})},r.prototype.resolveSourceFile=function(t,c,l){return a(this,void 0,void 0,function(){var i,g,v,b;return s(this,function(y){switch(y.label){case 0:return i=d.join(t+(c?"@".concat(c):""),l),g=!1,v=void 0,this.cache.isFileAvailable?[4,this.cache.isFileAvailable(i)]:[3,2];case 1:return g=y.sent(),[3,4];case 2:return[4,this.cache.getFile(i)];case 3:v=y.sent(),g=v!==void 0,y.label=4;case 4:return g?((0,P.invokeUpdate)({type:"LoadedFromCache",importPath:i},this.options),v==null?[3,5]:(b=v,[3,7])):[3,8];case 5:return[4,this.cache.getFile(i)];case 6:b=y.sent(),y.label=7;case 7:return[2,b];case 8:return[4,this.sourceResolver.resolveSourceFile(t,c,l)];case 9:return(v=y.sent())&&((0,P.invokeUpdate)({type:"StoredToCache",importPath:i},this.options),this.cache.storeFile(i,v)),[2,v]}})})},r})();return C.ImportResolver=f,C}function Oe(){if(ne)return E;ne=1;var m=E&&E.__assign||function(){return m=Object.assign||function(r){for(var t,c=1,l=arguments.length;c<l;c++)for(var i in t=arguments[c])Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i]);return r},m.apply(this,arguments)},j=E&&E.__createBinding||(Object.create?function(r,t,c,l){l===void 0&&(l=c);var i=Object.getOwnPropertyDescriptor(t,c);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[c]}}),Object.defineProperty(r,l,i)}:function(r,t,c,l){l===void 0&&(l=c),r[l]=t[c]}),O=E&&E.__setModuleDefault||(Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t}),o=E&&E.__importStar||function(r){if(r&&r.__esModule)return r;var t={};if(r!=null)for(var c in r)c!=="default"&&Object.prototype.hasOwnProperty.call(r,c)&&j(t,r,c);return O(t,r),t},a=E&&E.__awaiter||function(r,t,c,l){return new(c||(c=Promise))(function(i,g){function v(k){try{y(l.next(k))}catch(p){g(p)}}function b(k){try{y(l.throw(k))}catch(p){g(p)}}function y(k){var p;k.done?i(k.value):(p=k.value,p instanceof c?p:new c(function(w){w(p)})).then(v,b)}y((l=l.apply(r,t||[])).next())})},s=E&&E.__generator||function(r,t){var c,l,i,g,v={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return g={next:b(0),throw:b(1),return:b(2)},typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function b(y){return function(k){return(function(p){if(c)throw new TypeError("Generator is already executing.");for(;v;)try{if(c=1,l&&(i=2&p[0]?l.return:p[0]?l.throw||((i=l.return)&&i.call(l),0):l.next)&&!(i=i.call(l,p[1])).done)return i;switch(l=0,i&&(p=[2&p[0],i.value]),p[0]){case 0:case 1:i=p;break;case 4:return v.label++,{value:p[1],done:!1};case 5:v.label++,l=p[1],p=[0];continue;case 7:p=v.ops.pop(),v.trys.pop();continue;default:if(i=v.trys,!((i=i.length>0&&i[i.length-1])||p[0]!==6&&p[0]!==2)){v=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){v.label=p[1];break}if(p[0]===6&&v.label<i[1]){v.label=i[1],i=p;break}if(i&&v.label<i[2]){v.label=i[2],v.ops.push(p);break}i[2]&&v.ops.pop(),v.trys.pop();continue}p=t.call(r,v)}catch(w){p=[6,w],l=0}finally{c=i=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}})([y,k])}}},n=E&&E.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,c=t&&r[t],l=0;if(c)return c.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&l>=r.length&&(r=void 0),{value:r&&r[l++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(E,"__esModule",{value:!0}),E.AutoTypingsCore=void 0;var e=(function(){if(K)return X;K=1,Object.defineProperty(X,"__esModule",{value:!0}),X.DummySourceCache=void 0;var r=(function(){function t(){}return t.prototype.getFile=function(c){return Promise.resolve(void 0)},t.prototype.isFileAvailable=function(c){return Promise.resolve(!1)},t.prototype.storeFile=function(c,l){return Promise.resolve(void 0)},t.prototype.clear=function(){return Promise.resolve(void 0)},t})();return X.DummySourceCache=r,X})(),u=me(),h=Pe(),d=o(q()),P=ke(),_=we(),f=(function(){function r(t,c){var l=this;this.editor=t,this.options=c,this.disposables=[],this.importResolver=new h.ImportResolver(c);var i=t.onDidChangeModelContent(function(g){l.debouncedResolveContents()});this.disposables.push(i),this.resolveContents(),c.dontAdaptEditorOptions||c.monaco.languages.typescript.typescriptDefaults.setCompilerOptions(m(m({},c.monaco.languages.typescript.typescriptDefaults.getCompilerOptions()),{moduleResolution:c.monaco.languages.typescript.ModuleResolutionKind.NodeJs,allowSyntheticDefaultImports:!0,rootDir:c.fileRootPath}))}return r.create=function(t,c){var l,i;return a(this,void 0,void 0,function(){var g;return s(this,function(v){if(c?.shareCache&&c.sourceCache&&!r.sharedCache&&(r.sharedCache=c.sourceCache),!(g=c?.monaco))throw new Error("monacoInstance not found, you can specify the monaco instance via options.monaco");return[2,new r(t,m(m({fileRootPath:"inmemory://model/",onlySpecifiedPackages:!1,preloadPackages:!1,shareCache:!1,dontAdaptEditorOptions:!1,dontRefreshModelValueAfterResolvement:!1,sourceCache:(l=r.sharedCache)!==null&&l!==void 0?l:new e.DummySourceCache,sourceResolver:(i=c?.sourceResolver)!==null&&i!==void 0?i:new u.JsDelivrSourceResolver,debounceDuration:4e3,fileRecursionDepth:10,packageRecursionDepth:3},c),{monaco:g}))]})})},r.prototype.dispose=function(){var t,c;try{for(var l=n(this.disposables),i=l.next();!i.done;i=l.next())i.value.dispose()}catch(g){t={error:g}}finally{try{i&&!i.done&&(c=l.return)&&c.call(l)}finally{if(t)throw t.error}}},r.prototype.setVersions=function(t){this.importResolver.setVersions(t),this.options.versions=t},r.prototype.clearCache=function(){return a(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return[4,this.options.sourceCache.clear()];case 1:return t.sent(),[2]}})})},r.prototype.debouncedResolveContents=function(){var t=this;this.isResolving||((0,P.invokeUpdate)({type:"CodeChanged"},this.options),this.options.debounceDuration<=0?this.resolveContents():(this.debounceTimer!==void 0&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(function(){return a(t,void 0,void 0,function(){return s(this,function(c){switch(c.label){case 0:return[4,this.resolveContents()];case 1:return c.sent(),this.debounceTimer=void 0,[2]}})})},this.options.debounceDuration)))},r.prototype.resolveContents=function(){var t;return a(this,void 0,void 0,function(){var c,l,i,g;return s(this,function(v){switch(v.label){case 0:if(this.isResolving=!0,(0,P.invokeUpdate)({type:"ResolveNewImports"},this.options),!(c=this.editor.getModel()))throw Error("No model");l=c.getLinesContent(),v.label=1;case 1:return v.trys.push([1,3,,4]),[4,this.importResolver.resolveImportsInFile(l.join(`
7
- `),d.dirname(c.uri.toString()),new _.RecursionDepth(this.options))];case 2:return v.sent(),[3,4];case 3:if(i=v.sent(),!this.options.onError)throw i;return this.options.onError((t=i.message)!==null&&t!==void 0?t:i),[3,4];case 4:return this.importResolver.wereNewImportsResolved()&&(this.options.dontRefreshModelValueAfterResolvement||(g=this.editor.getPosition(),c.setValue(c.getValue()),g&&this.editor.setPosition(g)),this.importResolver.resetNewImportsResolved()),this.isResolving=!1,[2]}})})},r})();return E.AutoTypingsCore=f,E}var ae,I={};function je(){if(ae)return I;ae=1;var m=I&&I.__awaiter||function(a,s,n,e){return new(n||(n=Promise))(function(u,h){function d(f){try{_(e.next(f))}catch(r){h(r)}}function P(f){try{_(e.throw(f))}catch(r){h(r)}}function _(f){var r;f.done?u(f.value):(r=f.value,r instanceof n?r:new n(function(t){t(r)})).then(d,P)}_((e=e.apply(a,s||[])).next())})},j=I&&I.__generator||function(a,s){var n,e,u,h,d={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return h={next:P(0),throw:P(1),return:P(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function P(_){return function(f){return(function(r){if(n)throw new TypeError("Generator is already executing.");for(;d;)try{if(n=1,e&&(u=2&r[0]?e.return:r[0]?e.throw||((u=e.return)&&u.call(e),0):e.next)&&!(u=u.call(e,r[1])).done)return u;switch(e=0,u&&(r=[2&r[0],u.value]),r[0]){case 0:case 1:u=r;break;case 4:return d.label++,{value:r[1],done:!1};case 5:d.label++,e=r[1],r=[0];continue;case 7:r=d.ops.pop(),d.trys.pop();continue;default:if(u=d.trys,!((u=u.length>0&&u[u.length-1])||r[0]!==6&&r[0]!==2)){d=0;continue}if(r[0]===3&&(!u||r[1]>u[0]&&r[1]<u[3])){d.label=r[1];break}if(r[0]===6&&d.label<u[1]){d.label=u[1],u=r;break}if(u&&d.label<u[2]){d.label=u[2],d.ops.push(r);break}u[2]&&d.ops.pop(),d.trys.pop();continue}r=s.call(a,d)}catch(t){r=[6,t],e=0}finally{n=u=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}})([_,f])}}},O=I&&I.__values||function(a){var s=typeof Symbol=="function"&&Symbol.iterator,n=s&&a[s],e=0;if(n)return n.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&e>=a.length&&(a=void 0),{value:a&&a[e++],done:!a}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(I,"__esModule",{value:!0}),I.LocalStorageCache=void 0;var o=(function(){function a(){this.localCache={}}return a.prototype.getFile=function(s){var n;return m(this,void 0,void 0,function(){return j(this,function(e){try{return[2,(n=localStorage.getItem(a.LOCALSTORAGE_PREFIX+s))!==null&&n!==void 0?n:void 0]}catch{return[2,this.localCache[s]]}return[2]})})},a.prototype.storeFile=function(s,n){return m(this,void 0,void 0,function(){return j(this,function(e){this.localCache[s]=n;try{localStorage.setItem(a.LOCALSTORAGE_PREFIX+s,n)}catch{}return[2]})})},a.prototype.clear=function(){return m(this,void 0,void 0,function(){var s,n,e,u,h,d,P;return j(this,function(_){for(this.localCache={},s=[],n=0;n<localStorage.length;n++)(h=localStorage.key(n))!=null&&h.startsWith(a.LOCALSTORAGE_PREFIX)&&s.push(h);try{for(e=O(s),u=e.next();!u.done;u=e.next())h=u.value,localStorage.removeItem(h)}catch(f){d={error:f}}finally{try{u&&!u.done&&(P=e.return)&&P.call(e)}finally{if(d)throw d.error}}return[2]})})},a.LOCALSTORAGE_PREFIX="__autotyper_cache_",a})();return I.LocalStorageCache=o,I}var ie,se={},ce,ue={},le,pe={},he,fe={},de,ve,ye,ge,L={};function Re(){if(de)return L;de=1;var m=L&&L.__awaiter||function(o,a,s,n){return new(s||(s=Promise))(function(e,u){function h(_){try{P(n.next(_))}catch(f){u(f)}}function d(_){try{P(n.throw(_))}catch(f){u(f)}}function P(_){var f;_.done?e(_.value):(f=_.value,f instanceof s?f:new s(function(r){r(f)})).then(h,d)}P((n=n.apply(o,a||[])).next())})},j=L&&L.__generator||function(o,a){var s,n,e,u,h={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return u={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function d(P){return function(_){return(function(f){if(s)throw new TypeError("Generator is already executing.");for(;h;)try{if(s=1,n&&(e=2&f[0]?n.return:f[0]?n.throw||((e=n.return)&&e.call(n),0):n.next)&&!(e=e.call(n,f[1])).done)return e;switch(n=0,e&&(f=[2&f[0],e.value]),f[0]){case 0:case 1:e=f;break;case 4:return h.label++,{value:f[1],done:!1};case 5:h.label++,n=f[1],f=[0];continue;case 7:f=h.ops.pop(),h.trys.pop();continue;default:if(e=h.trys,!((e=e.length>0&&e[e.length-1])||f[0]!==6&&f[0]!==2)){h=0;continue}if(f[0]===3&&(!e||f[1]>e[0]&&f[1]<e[3])){h.label=f[1];break}if(f[0]===6&&h.label<e[1]){h.label=e[1],e=f;break}if(e&&h.label<e[2]){h.label=e[2],h.ops.push(f);break}e[2]&&h.ops.pop(),h.trys.pop();continue}f=a.call(o,h)}catch(r){f=[6,r],n=0}finally{s=e=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}})([P,_])}}};Object.defineProperty(L,"__esModule",{value:!0}),L.UnpkgSourceResolver=void 0;var O=(function(){function o(){}return o.prototype.resolvePackageJson=function(a,s,n){return m(this,void 0,void 0,function(){return j(this,function(e){switch(e.label){case 0:return[4,this.resolveFile("https://unpkg.com/".concat(a).concat(s?"@".concat(s):"").concat(n?"/".concat(n):"","/package.json"))];case 1:return[2,e.sent()]}})})},o.prototype.resolveSourceFile=function(a,s,n){return m(this,void 0,void 0,function(){return j(this,function(e){switch(e.label){case 0:return[4,this.resolveFile("https://unpkg.com/".concat(a).concat(s?"@".concat(s):"","/").concat(n))];case 1:return[2,e.sent()]}})})},o.prototype.resolveFile=function(a){return m(this,void 0,void 0,function(){var s;return j(this,function(n){switch(n.label){case 0:return[4,fetch(a,{method:"GET"})];case 1:return(s=n.sent()).ok?[4,s.text()]:[3,3];case 2:return[2,n.sent()];case 3:if(s.status===404)return[2,""];throw Error("Error other than 404 while fetching from Unpkg at ".concat(a));case 4:return[2]}})})},o})();return L.UnpkgSourceResolver=O,L}function Ce(){return ve||(ve=1,(function(m){var j=W&&W.__createBinding||(Object.create?function(o,a,s,n){n===void 0&&(n=s);var e=Object.getOwnPropertyDescriptor(a,s);e&&!("get"in e?!a.__esModule:e.writable||e.configurable)||(e={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(o,n,e)}:function(o,a,s,n){n===void 0&&(n=s),o[n]=a[s]}),O=W&&W.__exportStar||function(o,a){for(var s in o)s==="default"||Object.prototype.hasOwnProperty.call(a,s)||j(a,o,s)};Object.defineProperty(m,"__esModule",{value:!0}),O((function(){if(oe)return G;oe=1;var o,a=G&&G.__extends||(o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(u[d]=h[d])},o(n,e)},function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function u(){this.constructor=n}o(n,e),n.prototype=e===null?Object.create(e):(u.prototype=e.prototype,new u)});Object.defineProperty(G,"__esModule",{value:!0}),G.AutoTypings=void 0;var s=(function(n){function e(u,h){return n.call(this,u,h)||this}return a(e,n),e})(Oe().AutoTypingsCore);return G.AutoTypings=s,G})(),m),O(be(),m),O(je(),m),O((ie||(ie=1,Object.defineProperty(se,"__esModule",{value:!0})),se),m),O((ce||(ce=1,Object.defineProperty(ue,"__esModule",{value:!0})),ue),m),O((le||(le=1,Object.defineProperty(pe,"__esModule",{value:!0})),pe),m),O((he||(he=1,Object.defineProperty(fe,"__esModule",{value:!0})),fe),m),O(Re(),m),O(me(),m)})(W)),W}const Se=_e({__proto__:null},[ge?ye:(ge=1,ye=Ce())]);exports.customEditor=Se;