@uva-glass/component-library 3.55.0 → 3.55.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 (923) hide show
  1. package/dist/Accordion-BpnBHYIx.js +69 -0
  2. package/dist/Accordion-BpnBHYIx.js.map +1 -0
  3. package/dist/AccordionCard-BXy-plB7.js +43 -0
  4. package/dist/AccordionCard-BXy-plB7.js.map +1 -0
  5. package/dist/ActionList-O9w1hqNg.js +95 -0
  6. package/dist/ActionList-O9w1hqNg.js.map +1 -0
  7. package/dist/AddCatalogueLinkForm-Cy6fPNvN.js +117 -0
  8. package/dist/AddCatalogueLinkForm-Cy6fPNvN.js.map +1 -0
  9. package/dist/AppStatusBar-Bca0KFDR.js +20 -0
  10. package/dist/AppStatusBar-Bca0KFDR.js.map +1 -0
  11. package/dist/Attention-Bq5UU9I8.js +13 -0
  12. package/dist/Attention-Bq5UU9I8.js.map +1 -0
  13. package/dist/Backdrop-D8AHeuBn.js +10 -0
  14. package/dist/Backdrop-D8AHeuBn.js.map +1 -0
  15. package/dist/Button.module-DJlNwQUj.js +16 -0
  16. package/dist/Button.module-DJlNwQUj.js.map +1 -0
  17. package/dist/ButtonGroup-DR80lTLz.js +21 -0
  18. package/dist/ButtonGroup-DR80lTLz.js.map +1 -0
  19. package/dist/Card-DMFyuTmy.js +32 -0
  20. package/dist/Card-DMFyuTmy.js.map +1 -0
  21. package/dist/Checkbox-D6-b_4dC.js +12 -0
  22. package/dist/Checkbox-D6-b_4dC.js.map +1 -0
  23. package/dist/CheckboxButtonBar-CalU0IYK.js +79 -0
  24. package/dist/CheckboxButtonBar-CalU0IYK.js.map +1 -0
  25. package/dist/Chip-DJHvFToV.js +22 -0
  26. package/dist/Chip-DJHvFToV.js.map +1 -0
  27. package/dist/ClipboardButton-geHjMl2J.js +43 -0
  28. package/dist/ClipboardButton-geHjMl2J.js.map +1 -0
  29. package/dist/Column-BwKEOOuL.js +84 -0
  30. package/dist/Column-BwKEOOuL.js.map +1 -0
  31. package/dist/Container-BLjtYDqq.js +31 -0
  32. package/dist/Container-BLjtYDqq.js.map +1 -0
  33. package/dist/ControlsButton-zemVxTlg.js +64 -0
  34. package/dist/ControlsButton-zemVxTlg.js.map +1 -0
  35. package/dist/CopyableText-DkyhZ6wk.js +57 -0
  36. package/dist/CopyableText-DkyhZ6wk.js.map +1 -0
  37. package/dist/Drawer-Ggofac6y.js +77 -0
  38. package/dist/Drawer-Ggofac6y.js.map +1 -0
  39. package/dist/EmptyStateDataDisplay-D0QiI8nE.js +46 -0
  40. package/dist/EmptyStateDataDisplay-D0QiI8nE.js.map +1 -0
  41. package/dist/ExpandableInfoPanel-CnBVVNlJ.js +58 -0
  42. package/dist/ExpandableInfoPanel-CnBVVNlJ.js.map +1 -0
  43. package/dist/FeedbackBar-ByKp32HE.js +43 -0
  44. package/dist/FeedbackBar-ByKp32HE.js.map +1 -0
  45. package/dist/FeedbackBox-Bu7uB9DP.js +29 -0
  46. package/dist/FeedbackBox-Bu7uB9DP.js.map +1 -0
  47. package/dist/FieldHint-D0HtbTnt.js +16 -0
  48. package/dist/FieldHint-D0HtbTnt.js.map +1 -0
  49. package/dist/Fieldset-CoNu_Owa.js +23 -0
  50. package/dist/Fieldset-CoNu_Owa.js.map +1 -0
  51. package/dist/Flyout-DEpzfZOC.js +18 -0
  52. package/dist/Flyout-DEpzfZOC.js.map +1 -0
  53. package/dist/FormField-BZSoQdp9.js +21 -0
  54. package/dist/FormField-BZSoQdp9.js.map +1 -0
  55. package/dist/HorizontalList-C22DaDz-.js +20 -0
  56. package/dist/HorizontalList-C22DaDz-.js.map +1 -0
  57. package/dist/IconButton-CWCMH9uf.js +24 -0
  58. package/dist/IconButton-CWCMH9uf.js.map +1 -0
  59. package/dist/InfoBanner-DyznQLGr.js +13 -0
  60. package/dist/InfoBanner-DyznQLGr.js.map +1 -0
  61. package/dist/InfoMessage-I-VlwxVc.js +19 -0
  62. package/dist/InfoMessage-I-VlwxVc.js.map +1 -0
  63. package/dist/Input-Bn-arMaC.js +25 -0
  64. package/dist/Input-Bn-arMaC.js.map +1 -0
  65. package/dist/InputField-BWAy19w9.js +51 -0
  66. package/dist/InputField-BWAy19w9.js.map +1 -0
  67. package/dist/Label-o0BcWTUS.js +21 -0
  68. package/dist/Label-o0BcWTUS.js.map +1 -0
  69. package/dist/Lexical.prod-DCGjHGxG.js +5235 -0
  70. package/dist/Lexical.prod-DCGjHGxG.js.map +1 -0
  71. package/dist/LexicalClipboard.prod-CGG14aoP.js +248 -0
  72. package/dist/LexicalClipboard.prod-CGG14aoP.js.map +1 -0
  73. package/dist/LexicalComposerContext.prod-Ca-YN_fj.js +22 -0
  74. package/dist/LexicalComposerContext.prod-Ca-YN_fj.js.map +1 -0
  75. package/dist/LexicalExtension.prod-DWt1IjPF.js +854 -0
  76. package/dist/LexicalExtension.prod-DWt1IjPF.js.map +1 -0
  77. package/dist/LexicalLink.prod-Dy1gE75H.js +665 -0
  78. package/dist/LexicalLink.prod-Dy1gE75H.js.map +1 -0
  79. package/dist/LexicalList.prod-D9R0L7cu.js +760 -0
  80. package/dist/LexicalList.prod-D9R0L7cu.js.map +1 -0
  81. package/dist/LexicalTable.prod-C2FP47Lm.js +1991 -0
  82. package/dist/LexicalTable.prod-C2FP47Lm.js.map +1 -0
  83. package/dist/LexicalUtils.prod-BzrjMu6t.js +242 -0
  84. package/dist/LexicalUtils.prod-BzrjMu6t.js.map +1 -0
  85. package/dist/LinkContextMenu-DZlKfbg1.js +101 -0
  86. package/dist/LinkContextMenu-DZlKfbg1.js.map +1 -0
  87. package/dist/MenuLink-Cm1yZO_5.js +21 -0
  88. package/dist/MenuLink-Cm1yZO_5.js.map +1 -0
  89. package/dist/MetaDataBar-C4QO9oBV.js +23 -0
  90. package/dist/MetaDataBar-C4QO9oBV.js.map +1 -0
  91. package/dist/MetaDataList-CAR1HTYs.js +24 -0
  92. package/dist/MetaDataList-CAR1HTYs.js.map +1 -0
  93. package/dist/ModalDialog-HUkDdAJ-.js +114 -0
  94. package/dist/ModalDialog-HUkDdAJ-.js.map +1 -0
  95. package/dist/MultiSelectBox-Cuh_o-A1.js +189 -0
  96. package/dist/MultiSelectBox-Cuh_o-A1.js.map +1 -0
  97. package/dist/MultiSelectItem-BF5xRjz5.js +36 -0
  98. package/dist/MultiSelectItem-BF5xRjz5.js.map +1 -0
  99. package/dist/Notification-CIhsHuF0.js +68 -0
  100. package/dist/Notification-CIhsHuF0.js.map +1 -0
  101. package/dist/OverlayCloseButton-rttFbAM_.js +22 -0
  102. package/dist/OverlayCloseButton-rttFbAM_.js.map +1 -0
  103. package/dist/OverlayStepBar-CjaoYdsh.js +45 -0
  104. package/dist/OverlayStepBar-CjaoYdsh.js.map +1 -0
  105. package/dist/PageOverlay-D_wG2oie.js +108 -0
  106. package/dist/PageOverlay-D_wG2oie.js.map +1 -0
  107. package/dist/PasteHandlerPlugin-DUdocSHB.js +235 -0
  108. package/dist/PasteHandlerPlugin-DUdocSHB.js.map +1 -0
  109. package/dist/Periods-BYETtB6R.js +40 -0
  110. package/dist/Periods-BYETtB6R.js.map +1 -0
  111. package/dist/ProgrammeCard-76gG7ksx.js +27 -0
  112. package/dist/ProgrammeCard-76gG7ksx.js.map +1 -0
  113. package/dist/RadioButton-Bto2p5B9.js +35 -0
  114. package/dist/RadioButton-Bto2p5B9.js.map +1 -0
  115. package/dist/RadioGroup-JeTjVp5B.js +50 -0
  116. package/dist/RadioGroup-JeTjVp5B.js.map +1 -0
  117. package/dist/Repeater-BhkTEUai.js +22 -0
  118. package/dist/Repeater-BhkTEUai.js.map +1 -0
  119. package/dist/RteEditor.module-Jk80F1FA.js +42 -0
  120. package/dist/RteEditor.module-Jk80F1FA.js.map +1 -0
  121. package/dist/SearchField.module-BgxjHaPG.js +19 -0
  122. package/dist/SearchField.module-BgxjHaPG.js.map +1 -0
  123. package/dist/SectionNotification-CQqwPTqP.js +14 -0
  124. package/dist/SectionNotification-CQqwPTqP.js.map +1 -0
  125. package/dist/SelectListbox.module-HaPs1CLD.js +30 -0
  126. package/dist/SelectListbox.module-HaPs1CLD.js.map +1 -0
  127. package/dist/Slider-BlLyrET9.js +102 -0
  128. package/dist/Slider-BlLyrET9.js.map +1 -0
  129. package/dist/Sortable.module-BTUOSbOU.js +27 -0
  130. package/dist/Sortable.module-BTUOSbOU.js.map +1 -0
  131. package/dist/SortableProvider-Dc7hwkb5.js +147 -0
  132. package/dist/SortableProvider-Dc7hwkb5.js.map +1 -0
  133. package/dist/Spinner-D8tWqg9j.js +31 -0
  134. package/dist/Spinner-D8tWqg9j.js.map +1 -0
  135. package/dist/StatusBage-DQDOF5-U.js +13 -0
  136. package/dist/StatusBage-DQDOF5-U.js.map +1 -0
  137. package/dist/StatusPill-DM7n3I4W.js +30 -0
  138. package/dist/StatusPill-DM7n3I4W.js.map +1 -0
  139. package/dist/TableCellContextMenu-D0IMQr3E.js +119 -0
  140. package/dist/TableCellContextMenu-D0IMQr3E.js.map +1 -0
  141. package/dist/TableCellResizerPlugin-BGolbi44.js +208 -0
  142. package/dist/TableCellResizerPlugin-BGolbi44.js.map +1 -0
  143. package/dist/TextArea-DqKIpOfT.js +68 -0
  144. package/dist/TextArea-DqKIpOfT.js.map +1 -0
  145. package/dist/ToggleSwitch-C7z7JVtx.js +51 -0
  146. package/dist/ToggleSwitch-C7z7JVtx.js.map +1 -0
  147. package/dist/Tooltip-BzB3jznk.js +80 -0
  148. package/dist/Tooltip-BzB3jznk.js.map +1 -0
  149. package/dist/VarIndicator-C-GueOZD.js +50 -0
  150. package/dist/VarIndicator-C-GueOZD.js.map +1 -0
  151. package/dist/WeekSelector.module-BLPrVYgn.js +18 -0
  152. package/dist/WeekSelector.module-BLPrVYgn.js.map +1 -0
  153. package/dist/__mocks__/svgrMock.js +12 -9
  154. package/dist/__mocks__/svgrMock.js.map +1 -1
  155. package/dist/assets/Accordion.css +1 -1
  156. package/dist/assets/AccordionCard.css +1 -1
  157. package/dist/assets/ActionList.css +1 -1
  158. package/dist/assets/AddCatalogueLinkForm.css +1 -1
  159. package/dist/assets/AppStatusBar.css +1 -1
  160. package/dist/assets/Attention.css +1 -1
  161. package/dist/assets/Backdrop.css +1 -1
  162. package/dist/assets/Backdrop2.css +1 -1
  163. package/dist/assets/Button.css +1 -1
  164. package/dist/assets/ButtonGroup.css +1 -1
  165. package/dist/assets/Card.css +1 -1
  166. package/dist/assets/Checkbox.css +1 -1
  167. package/dist/assets/CheckboxButtonBar.css +1 -1
  168. package/dist/assets/Chip.css +1 -1
  169. package/dist/assets/ClipboardButton.css +1 -1
  170. package/dist/assets/Column.css +1 -1
  171. package/dist/assets/Container.css +1 -1
  172. package/dist/assets/ControlsButton.css +1 -1
  173. package/dist/assets/CopyableText.css +1 -1
  174. package/dist/assets/Drawer.css +1 -1
  175. package/dist/assets/EmptyStateDataDisplay.css +1 -1
  176. package/dist/assets/ExpandableInfoPanel.css +1 -1
  177. package/dist/assets/FeedbackBar.css +1 -1
  178. package/dist/assets/FeedbackBox.css +1 -1
  179. package/dist/assets/Fieldset.css +1 -1
  180. package/dist/assets/Flyout.css +1 -1
  181. package/dist/assets/FormField.css +1 -1
  182. package/dist/assets/GridRow.css +1 -1
  183. package/dist/assets/HorizontalList.css +1 -1
  184. package/dist/assets/Icon.css +1 -1
  185. package/dist/assets/IconButton.css +1 -1
  186. package/dist/assets/InfoBanner.css +1 -1
  187. package/dist/assets/InfoMessage.css +1 -1
  188. package/dist/assets/Input.css +1 -1
  189. package/dist/assets/InputField.css +1 -1
  190. package/dist/assets/Label.css +1 -1
  191. package/dist/assets/LinkContextMenu.css +1 -1
  192. package/dist/assets/MenuLink.css +1 -1
  193. package/dist/assets/MenuLink2.css +1 -1
  194. package/dist/assets/MetaDataBar.css +1 -1
  195. package/dist/assets/MetaDataList.css +1 -1
  196. package/dist/assets/ModalDialog.css +1 -1
  197. package/dist/assets/MultiSelectBox.css +1 -1
  198. package/dist/assets/MultiSelectItem.css +1 -1
  199. package/dist/assets/Notification.css +1 -1
  200. package/dist/assets/OverlayCloseButton.css +1 -1
  201. package/dist/assets/OverlayStepBar.css +1 -1
  202. package/dist/assets/PageOverlay.css +1 -1
  203. package/dist/assets/Periods.css +1 -1
  204. package/dist/assets/ProgrammeCard.css +1 -1
  205. package/dist/assets/RadioButton.css +1 -1
  206. package/dist/assets/RadioButton2.css +1 -1
  207. package/dist/assets/RadioGroup.css +1 -1
  208. package/dist/assets/RteEditor.css +1 -1
  209. package/dist/assets/SearchField.css +1 -1
  210. package/dist/assets/SectionNotification.css +1 -1
  211. package/dist/assets/SelectListbox.css +1 -1
  212. package/dist/assets/Slider.css +1 -1
  213. package/dist/assets/Sortable.css +1 -1
  214. package/dist/assets/Spinner.css +1 -1
  215. package/dist/assets/StatusBage.css +1 -1
  216. package/dist/assets/StatusPill.css +1 -1
  217. package/dist/assets/TableCellContextMenu.css +1 -1
  218. package/dist/assets/TextArea.css +1 -1
  219. package/dist/assets/ToggleSwitch.css +1 -1
  220. package/dist/assets/Tooltip.css +1 -1
  221. package/dist/assets/VarIndicator.css +1 -1
  222. package/dist/assets/WeekSelector.css +1 -1
  223. package/dist/assets/components.css +1 -0
  224. package/dist/chunk-DeC0fbbY.js +23 -0
  225. package/dist/chunk-OPOZOKLO-CXKdjnjn.js +8448 -0
  226. package/dist/chunk-OPOZOKLO-CXKdjnjn.js.map +1 -0
  227. package/dist/client-C0JVBgoR.js +18953 -0
  228. package/dist/client-C0JVBgoR.js.map +1 -0
  229. package/dist/clsx-BD2qMUU1.js +18 -0
  230. package/dist/clsx-BD2qMUU1.js.map +1 -0
  231. package/dist/components/Accordion/Accordion.js +2 -94
  232. package/dist/components/Accordion/Accordion.stories.js +30 -32
  233. package/dist/components/Accordion/Accordion.stories.js.map +1 -1
  234. package/dist/components/Accordion/Accordion.test.js +49 -27
  235. package/dist/components/Accordion/Accordion.test.js.map +1 -1
  236. package/dist/components/Accordion/index.js +2 -5
  237. package/dist/components/AccordionCard/AccordionCard.js +2 -58
  238. package/dist/components/AccordionCard/AccordionCard.stories.js +31 -32
  239. package/dist/components/AccordionCard/AccordionCard.stories.js.map +1 -1
  240. package/dist/components/AccordionCard/AccordionCard.test.js +54 -31
  241. package/dist/components/AccordionCard/AccordionCard.test.js.map +1 -1
  242. package/dist/components/AccordionCard/index.js +2 -5
  243. package/dist/components/ActionList/ActionList.js +2 -83
  244. package/dist/components/ActionList/ActionList.stories.js +49 -38
  245. package/dist/components/ActionList/ActionList.stories.js.map +1 -1
  246. package/dist/components/ActionList/ActionList.test.js +97 -57
  247. package/dist/components/ActionList/ActionList.test.js.map +1 -1
  248. package/dist/components/ActionList/index.js +2 -5
  249. package/dist/components/AppStatusBar/AppStatusBar.js +2 -13
  250. package/dist/components/AppStatusBar/AppStatusBar.stories.js +25 -26
  251. package/dist/components/AppStatusBar/AppStatusBar.stories.js.map +1 -1
  252. package/dist/components/AppStatusBar/AppStatusBar.test.js +17 -8
  253. package/dist/components/AppStatusBar/AppStatusBar.test.js.map +1 -1
  254. package/dist/components/AppStatusBar/index.js +2 -5
  255. package/dist/components/Attention/Attention.js +2 -12
  256. package/dist/components/Attention/Attention.stories.js +18 -16
  257. package/dist/components/Attention/Attention.stories.js.map +1 -1
  258. package/dist/components/Attention/Attention.test.js +14 -8
  259. package/dist/components/Attention/Attention.test.js.map +1 -1
  260. package/dist/components/Attention/index.js +2 -5
  261. package/dist/components/Backdrop/Backdrop.js +2 -8
  262. package/dist/components/Backdrop/Backdrop.stories.js +32 -28
  263. package/dist/components/Backdrop/Backdrop.stories.js.map +1 -1
  264. package/dist/components/Backdrop/Backdrop.test.js +13 -7
  265. package/dist/components/Backdrop/Backdrop.test.js.map +1 -1
  266. package/dist/components/Backdrop/index.js +2 -5
  267. package/dist/components/ButtonGroup/ButtonGroup.js +2 -26
  268. package/dist/components/ButtonGroup/ButtonGroup.stories.js +29 -39
  269. package/dist/components/ButtonGroup/ButtonGroup.stories.js.map +1 -1
  270. package/dist/components/ButtonGroup/index.js +2 -5
  271. package/dist/components/Buttons/Button.js +16 -22
  272. package/dist/components/Buttons/Button.js.map +1 -1
  273. package/dist/components/Buttons/Button.stories.js +43 -56
  274. package/dist/components/Buttons/Button.stories.js.map +1 -1
  275. package/dist/components/Buttons/Button.test.js +60 -33
  276. package/dist/components/Buttons/Button.test.js.map +1 -1
  277. package/dist/components/Buttons/LinkButton.js +14 -11
  278. package/dist/components/Buttons/LinkButton.js.map +1 -1
  279. package/dist/components/Buttons/LinkButton.stories.js +41 -57
  280. package/dist/components/Buttons/LinkButton.stories.js.map +1 -1
  281. package/dist/components/Buttons/LinkButton.test.js +71 -65
  282. package/dist/components/Buttons/LinkButton.test.js.map +1 -1
  283. package/dist/components/Buttons/MenuButton.js +18 -15
  284. package/dist/components/Buttons/MenuButton.js.map +1 -1
  285. package/dist/components/Buttons/MenuButton.stories.js +45 -61
  286. package/dist/components/Buttons/MenuButton.stories.js.map +1 -1
  287. package/dist/components/Buttons/MenuButton.test.js +70 -64
  288. package/dist/components/Buttons/MenuButton.test.js.map +1 -1
  289. package/dist/components/Buttons/index.js +4 -9
  290. package/dist/components/Card/Card.js +2 -39
  291. package/dist/components/Card/Card.stories.js +42 -49
  292. package/dist/components/Card/Card.stories.js.map +1 -1
  293. package/dist/components/Card/Card.test.js +14 -8
  294. package/dist/components/Card/Card.test.js.map +1 -1
  295. package/dist/components/Card/index.js +2 -5
  296. package/dist/components/Checkbox/Checkbox.js +2 -9
  297. package/dist/components/Checkbox/Checkbox.stories.js +44 -41
  298. package/dist/components/Checkbox/Checkbox.stories.js.map +1 -1
  299. package/dist/components/Checkbox/Checkbox.test.js +21 -15
  300. package/dist/components/Checkbox/Checkbox.test.js.map +1 -1
  301. package/dist/components/Checkbox/index.js +2 -5
  302. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js +2 -114
  303. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +277 -310
  304. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js.map +1 -1
  305. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +71 -85
  306. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js.map +1 -1
  307. package/dist/components/CheckboxButtonBar/index.js +2 -5
  308. package/dist/components/CheckboxTree/CheckboxTree.js +3 -172
  309. package/dist/components/CheckboxTree/CheckboxTree.stories.js +89 -139
  310. package/dist/components/CheckboxTree/CheckboxTree.stories.js.map +1 -1
  311. package/dist/components/CheckboxTree/index.js +3 -5
  312. package/dist/components/Chip/Chip.js +2 -14
  313. package/dist/components/Chip/Chip.stories.js +24 -28
  314. package/dist/components/Chip/Chip.stories.js.map +1 -1
  315. package/dist/components/Chip/index.js +2 -5
  316. package/dist/components/ControlsButton/ControlsButton.js +2 -82
  317. package/dist/components/ControlsButton/ControlsButton.stories.js +98 -122
  318. package/dist/components/ControlsButton/ControlsButton.stories.js.map +1 -1
  319. package/dist/components/ControlsButton/index.js +2 -5
  320. package/dist/components/CopyableText/CopyableText.js +2 -64
  321. package/dist/components/CopyableText/CopyableText.stories.js +36 -35
  322. package/dist/components/CopyableText/CopyableText.stories.js.map +1 -1
  323. package/dist/components/CopyableText/index.js +2 -5
  324. package/dist/components/Drawer/Drawer.js +2 -62
  325. package/dist/components/Drawer/Drawer.stories.js +49 -68
  326. package/dist/components/Drawer/Drawer.stories.js.map +1 -1
  327. package/dist/components/Drawer/index.js +2 -5
  328. package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.js +2 -50
  329. package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.stories.js +17 -18
  330. package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.stories.js.map +1 -1
  331. package/dist/components/EmptyStateDataDisplay/index.js +2 -5
  332. package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.js +2 -57
  333. package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.stories.js +57 -50
  334. package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.stories.js.map +1 -1
  335. package/dist/components/ExpandableInfoPanel/index.js +2 -5
  336. package/dist/components/FeedbackBar/FeedbackBar.js +2 -30
  337. package/dist/components/FeedbackBar/FeedbackBar.stories.js +30 -33
  338. package/dist/components/FeedbackBar/FeedbackBar.stories.js.map +1 -1
  339. package/dist/components/FeedbackBar/FeedbackBar.test.js +18 -12
  340. package/dist/components/FeedbackBar/FeedbackBar.test.js.map +1 -1
  341. package/dist/components/FeedbackBar/index.js +2 -5
  342. package/dist/components/FeedbackBox/FeedbackBox.js +2 -31
  343. package/dist/components/FeedbackBox/FeedbackBox.stories.js +30 -34
  344. package/dist/components/FeedbackBox/FeedbackBox.stories.js.map +1 -1
  345. package/dist/components/FeedbackBox/index.js +2 -5
  346. package/dist/components/FieldHint/FieldHint.js +2 -15
  347. package/dist/components/FieldHint/FieldHint.stories.js +27 -35
  348. package/dist/components/FieldHint/FieldHint.stories.js.map +1 -1
  349. package/dist/components/FieldHint/index.js +2 -5
  350. package/dist/components/Fieldset/Fieldset.js +2 -32
  351. package/dist/components/Fieldset/Fieldset.stories.js +40 -46
  352. package/dist/components/Fieldset/Fieldset.stories.js.map +1 -1
  353. package/dist/components/Fieldset/index.js +2 -5
  354. package/dist/components/FormField/FormField.js +2 -23
  355. package/dist/components/FormField/FormField.stories.js +40 -45
  356. package/dist/components/FormField/FormField.stories.js.map +1 -1
  357. package/dist/components/FormField/index.js +2 -5
  358. package/dist/components/FormInput/FormInput.js +3 -79
  359. package/dist/components/FormInput/FormInput.stories.js +60 -40
  360. package/dist/components/FormInput/FormInput.stories.js.map +1 -1
  361. package/dist/components/FormInput/index.js +3 -5
  362. package/dist/components/GridRow/Column/Column.js +2 -7
  363. package/dist/components/GridRow/Column/index.js +2 -5
  364. package/dist/components/GridRow/GridRow.js +27 -38
  365. package/dist/components/GridRow/GridRow.js.map +1 -1
  366. package/dist/components/GridRow/GridRow.stories.js +198 -95
  367. package/dist/components/GridRow/GridRow.stories.js.map +1 -1
  368. package/dist/components/GridRow/index.js +2 -5
  369. package/dist/components/HorizontalList/HorizontalList.js +2 -13
  370. package/dist/components/HorizontalList/HorizontalList.stories.js +44 -46
  371. package/dist/components/HorizontalList/HorizontalList.stories.js.map +1 -1
  372. package/dist/components/HorizontalList/index.js +2 -5
  373. package/dist/components/Icon/Icon.js +16 -9
  374. package/dist/components/Icon/Icon.js.map +1 -1
  375. package/dist/components/Icon/Icon.stories.js +47 -50
  376. package/dist/components/Icon/Icon.stories.js.map +1 -1
  377. package/dist/components/Icon/icons/index.d.ts +24 -0
  378. package/dist/components/Icon/icons/index.js +2 -652
  379. package/dist/components/Icon/index.js +2 -5
  380. package/dist/components/IconButton/IconButton.js +2 -28
  381. package/dist/components/IconButton/IconButton.stories.js +55 -58
  382. package/dist/components/IconButton/IconButton.stories.js.map +1 -1
  383. package/dist/components/IconButton/index.js +2 -5
  384. package/dist/components/InfoBanner/InfoBanner.js +2 -12
  385. package/dist/components/InfoBanner/InfoBanner.stories.js +18 -22
  386. package/dist/components/InfoBanner/InfoBanner.stories.js.map +1 -1
  387. package/dist/components/InfoBanner/index.js +2 -5
  388. package/dist/components/InfoMessage/InfoMessage.js +2 -23
  389. package/dist/components/InfoMessage/InfoMessage.stories.js +21 -26
  390. package/dist/components/InfoMessage/InfoMessage.stories.js.map +1 -1
  391. package/dist/components/InfoMessage/index.js +2 -5
  392. package/dist/components/Input/Input.js +2 -28
  393. package/dist/components/Input/Input.stories.js +31 -50
  394. package/dist/components/Input/Input.stories.js.map +1 -1
  395. package/dist/components/Input/index.js +2 -5
  396. package/dist/components/InputField/InputField.js +2 -70
  397. package/dist/components/InputField/InputField.stories.js +81 -109
  398. package/dist/components/InputField/InputField.stories.js.map +1 -1
  399. package/dist/components/InputField/index.js +2 -5
  400. package/dist/components/Label/Label.js +2 -24
  401. package/dist/components/Label/Label.stories.js +26 -37
  402. package/dist/components/Label/Label.stories.js.map +1 -1
  403. package/dist/components/Label/Label.test.js +35 -20
  404. package/dist/components/Label/Label.test.js.map +1 -1
  405. package/dist/components/Label/index.js +2 -5
  406. package/dist/components/MenuLink/MenuLink.js +2 -25
  407. package/dist/components/MenuLink/MenuLink.stories.js +64 -27
  408. package/dist/components/MenuLink/MenuLink.stories.js.map +1 -1
  409. package/dist/components/MenuLink/index.js +2 -5
  410. package/dist/components/MetaDataBar/MetaDataBar.js +2 -13
  411. package/dist/components/MetaDataBar/MetaDataBar.stories.js +20 -20
  412. package/dist/components/MetaDataBar/MetaDataBar.stories.js.map +1 -1
  413. package/dist/components/MetaDataBar/MetaDataBar.test.js +26 -16
  414. package/dist/components/MetaDataBar/MetaDataBar.test.js.map +1 -1
  415. package/dist/components/MetaDataBar/index.js +2 -5
  416. package/dist/components/MetaDataList/MetaDataList.js +2 -14
  417. package/dist/components/MetaDataList/MetaDataList.stories.js +21 -23
  418. package/dist/components/MetaDataList/MetaDataList.stories.js.map +1 -1
  419. package/dist/components/MetaDataList/index.js +2 -5
  420. package/dist/components/ModalDialog/ModalDialog.js +2 -130
  421. package/dist/components/ModalDialog/ModalDialog.stories.js +80 -93
  422. package/dist/components/ModalDialog/ModalDialog.stories.js.map +1 -1
  423. package/dist/components/ModalDialog/index.js +2 -5
  424. package/dist/components/MultiSelect/MultiSelect.js +3 -8
  425. package/dist/components/MultiSelect/MultiSelect.stories.js +83 -93
  426. package/dist/components/MultiSelect/MultiSelect.stories.js.map +1 -1
  427. package/dist/components/MultiSelect/components/MultiSelectHeader.js +3 -34
  428. package/dist/components/MultiSelect/components/MultiSelectItem.js +2 -9
  429. package/dist/components/MultiSelect/index.js +3 -5
  430. package/dist/components/MultiSelectBox/MultiSelectBox.js +2 -207
  431. package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +101 -70
  432. package/dist/components/MultiSelectBox/MultiSelectBox.stories.js.map +1 -1
  433. package/dist/components/MultiSelectBox/MultiSelectBox.test.js +54 -29
  434. package/dist/components/MultiSelectBox/MultiSelectBox.test.js.map +1 -1
  435. package/dist/components/MultiSelectBox/index.js +2 -5
  436. package/dist/components/Notification/Notification.js +2 -58
  437. package/dist/components/Notification/Notification.stories.js +43 -40
  438. package/dist/components/Notification/Notification.stories.js.map +1 -1
  439. package/dist/components/Notification/Notification.test.js +24 -10
  440. package/dist/components/Notification/Notification.test.js.map +1 -1
  441. package/dist/components/Notification/index.js +2 -5
  442. package/dist/components/OverlayCloseButton/OverlayCloseButton.js +2 -25
  443. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +30 -29
  444. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js.map +1 -1
  445. package/dist/components/OverlayCloseButton/index.js +2 -5
  446. package/dist/components/OverlayStepBar/OverlayStepBar.js +2 -57
  447. package/dist/components/OverlayStepBar/OverlayStepBar.stories.js +44 -49
  448. package/dist/components/OverlayStepBar/OverlayStepBar.stories.js.map +1 -1
  449. package/dist/components/OverlayStepBar/index.js +2 -5
  450. package/dist/components/PageOverlay/PageOverlay.js +2 -114
  451. package/dist/components/PageOverlay/PageOverlay.stories.js +155 -163
  452. package/dist/components/PageOverlay/PageOverlay.stories.js.map +1 -1
  453. package/dist/components/PageOverlay/index.js +2 -5
  454. package/dist/components/PeriodSelector/PeriodSelector.js +3 -96
  455. package/dist/components/PeriodSelector/PeriodSelector.stories.js +27 -24
  456. package/dist/components/PeriodSelector/PeriodSelector.stories.js.map +1 -1
  457. package/dist/components/PeriodSelector/index.js +3 -5
  458. package/dist/components/Periods/Periods.d.ts +1 -1
  459. package/dist/components/Periods/Periods.js +2 -46
  460. package/dist/components/Periods/Periods.stories.js +53 -60
  461. package/dist/components/Periods/Periods.stories.js.map +1 -1
  462. package/dist/components/Periods/index.js +2 -5
  463. package/dist/components/ProgrammeCard/ProgrammeCard.js +2 -29
  464. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +71 -80
  465. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js.map +1 -1
  466. package/dist/components/ProgrammeCard/index.js +2 -5
  467. package/dist/components/RadioButton/RadioButton.js +2 -26
  468. package/dist/components/RadioButton/RadioButton.stories.js +30 -40
  469. package/dist/components/RadioButton/RadioButton.stories.js.map +1 -1
  470. package/dist/components/RadioButton/index.js +2 -5
  471. package/dist/components/RadioGroup/RadioGroup.js +2 -52
  472. package/dist/components/RadioGroup/RadioGroup.stories.js +39 -46
  473. package/dist/components/RadioGroup/RadioGroup.stories.js.map +1 -1
  474. package/dist/components/RadioGroup/Radiogroup.test.js +46 -22
  475. package/dist/components/RadioGroup/Radiogroup.test.js.map +1 -1
  476. package/dist/components/RadioGroup/index.js +2 -5
  477. package/dist/components/RadioTabSelector/RadioTabSelector.js +3 -94
  478. package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +76 -74
  479. package/dist/components/RadioTabSelector/RadioTabSelector.stories.js.map +1 -1
  480. package/dist/components/RadioTabSelector/index.js +3 -5
  481. package/dist/components/Repeater/Repeater.js +2 -19
  482. package/dist/components/Repeater/Repeater.stories.js +32 -42
  483. package/dist/components/Repeater/Repeater.stories.js.map +1 -1
  484. package/dist/components/Repeater/index.js +2 -5
  485. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +3 -43
  486. package/dist/components/RteEditor/EditorHeader/index.js +3 -5
  487. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +45 -47
  488. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js.map +1 -1
  489. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/index.js +2 -5
  490. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/AddCatalogueLinkForm.js +2 -108
  491. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/index.js +2 -5
  492. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js +150 -194
  493. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js.map +1 -1
  494. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/index.js +2 -5
  495. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +3 -81
  496. package/dist/components/RteEditor/Plugins/HistoryPlugin/index.js +3 -5
  497. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +3 -38
  498. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +2 -95
  499. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +3 -217
  500. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +2 -12
  501. package/dist/components/RteEditor/Plugins/LinkPlugin/index.js +3 -5
  502. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +75 -83
  503. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js.map +1 -1
  504. package/dist/components/RteEditor/Plugins/ListPlugin/index.js +2 -5
  505. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +2 -31
  506. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js +2 -5
  507. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +2 -14
  508. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +2 -5
  509. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +3 -36
  510. package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js +2 -133
  511. package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/index.js +2 -5
  512. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -42
  513. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +69 -92
  514. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js.map +1 -1
  515. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +4 -7
  516. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +3 -90
  517. package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js +3 -5
  518. package/dist/components/RteEditor/Plugins/index.js +7 -21
  519. package/dist/components/RteEditor/Providers/LanguageProvider.js +22 -17
  520. package/dist/components/RteEditor/Providers/LanguageProvider.js.map +1 -1
  521. package/dist/components/RteEditor/RteEditor.js +3 -871
  522. package/dist/components/RteEditor/RteEditor.stories.js +160 -207
  523. package/dist/components/RteEditor/RteEditor.stories.js.map +1 -1
  524. package/dist/components/RteEditor/UvaTheme/UvaTheme.js +41 -40
  525. package/dist/components/RteEditor/UvaTheme/UvaTheme.js.map +1 -1
  526. package/dist/components/RteEditor/UvaTheme/index.js +2 -5
  527. package/dist/components/RteEditor/helpers.js +33 -40
  528. package/dist/components/RteEditor/helpers.js.map +1 -1
  529. package/dist/components/RteEditor/hooks/components/Flyout.js +2 -11
  530. package/dist/components/RteEditor/hooks/useFlyout.js +35 -23
  531. package/dist/components/RteEditor/hooks/useFlyout.js.map +1 -1
  532. package/dist/components/RteEditor/hooks/useTranslation.js +9 -8
  533. package/dist/components/RteEditor/hooks/useTranslation.js.map +1 -1
  534. package/dist/components/RteEditor/index.js +3 -6
  535. package/dist/components/RteEditor/mockCatalogueSearchData.js +484 -484
  536. package/dist/components/RteEditor/mockCatalogueSearchData.js.map +1 -1
  537. package/dist/components/RteEditor/mockRteContent.js +6 -100
  538. package/dist/components/RteEditor/mockRteContent.js.map +1 -1
  539. package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +98 -122
  540. package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js.map +1 -1
  541. package/dist/components/RteEditor/nodes/CourseCatalogueNode/index.js +2 -11
  542. package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +58 -72
  543. package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js.map +1 -1
  544. package/dist/components/RteEditor/nodes/TableWrapperNode/index.js +2 -10
  545. package/dist/components/RteEditor/nodes/index.js +3 -18
  546. package/dist/components/RteEditor/translations.js +216 -215
  547. package/dist/components/RteEditor/translations.js.map +1 -1
  548. package/dist/components/SearchField/SearchField.js +104 -105
  549. package/dist/components/SearchField/SearchField.js.map +1 -1
  550. package/dist/components/SearchField/SearcheField.stories.js +89 -118
  551. package/dist/components/SearchField/SearcheField.stories.js.map +1 -1
  552. package/dist/components/SearchField/components/ResultOptionBox.js +19 -12
  553. package/dist/components/SearchField/components/ResultOptionBox.js.map +1 -1
  554. package/dist/components/SearchField/components/ResultsOption.js +50 -55
  555. package/dist/components/SearchField/components/ResultsOption.js.map +1 -1
  556. package/dist/components/SearchField/index.js +2 -5
  557. package/dist/components/SearchField/mockData.js +136 -135
  558. package/dist/components/SearchField/mockData.js.map +1 -1
  559. package/dist/components/SectionNotification/SectionNotification.js +2 -18
  560. package/dist/components/SectionNotification/SectionNotification.stories.js +21 -24
  561. package/dist/components/SectionNotification/SectionNotification.stories.js.map +1 -1
  562. package/dist/components/SectionNotification/index.js +2 -5
  563. package/dist/components/SelectListbox/SelectListBox.stories.js +3415 -248
  564. package/dist/components/SelectListbox/SelectListBox.stories.js.map +1 -1
  565. package/dist/components/SelectListbox/SelectListbox.js +45 -56
  566. package/dist/components/SelectListbox/SelectListbox.js.map +1 -1
  567. package/dist/components/SelectListbox/SelectProvider.js +42 -43
  568. package/dist/components/SelectListbox/SelectProvider.js.map +1 -1
  569. package/dist/components/SelectListbox/components/SelectButton.js +63 -77
  570. package/dist/components/SelectListbox/components/SelectButton.js.map +1 -1
  571. package/dist/components/SelectListbox/components/SelectContainer.js +22 -21
  572. package/dist/components/SelectListbox/components/SelectContainer.js.map +1 -1
  573. package/dist/components/SelectListbox/components/SelectOption.js +69 -66
  574. package/dist/components/SelectListbox/components/SelectOption.js.map +1 -1
  575. package/dist/components/SelectListbox/components/SelectOptionBox.js +28 -30
  576. package/dist/components/SelectListbox/components/SelectOptionBox.js.map +1 -1
  577. package/dist/components/SelectListbox/index.js +2 -5
  578. package/dist/components/Slider/Slider.js +2 -113
  579. package/dist/components/Slider/Slider.stories.js +59 -38
  580. package/dist/components/Slider/Slider.stories.js.map +1 -1
  581. package/dist/components/Slider/index.js +2 -5
  582. package/dist/components/Sortable/Sortable.js +25 -41
  583. package/dist/components/Sortable/Sortable.js.map +1 -1
  584. package/dist/components/Sortable/Sortable.stories.js +79 -59
  585. package/dist/components/Sortable/Sortable.stories.js.map +1 -1
  586. package/dist/components/Sortable/SortableProvider.js +2 -10
  587. package/dist/components/Sortable/actions.js +24 -32
  588. package/dist/components/Sortable/actions.js.map +1 -1
  589. package/dist/components/Sortable/components/SortableContainer.js +2 -9
  590. package/dist/components/Sortable/components/SortableHandle.js +13 -9
  591. package/dist/components/Sortable/components/SortableHandle.js.map +1 -1
  592. package/dist/components/Sortable/components/SortableItem.js +103 -113
  593. package/dist/components/Sortable/components/SortableItem.js.map +1 -1
  594. package/dist/components/Sortable/constants.js +6 -14
  595. package/dist/components/Sortable/constants.js.map +1 -1
  596. package/dist/components/Sortable/index.js +1 -4
  597. package/dist/components/Sortable/sortableReducer.js +76 -90
  598. package/dist/components/Sortable/sortableReducer.js.map +1 -1
  599. package/dist/components/Spinner/Spinner.js +2 -22
  600. package/dist/components/Spinner/Spinner.stories.js +21 -26
  601. package/dist/components/Spinner/Spinner.stories.js.map +1 -1
  602. package/dist/components/Spinner/index.js +2 -5
  603. package/dist/components/StatusBadge/StatusBadge.stories.js +18 -21
  604. package/dist/components/StatusBadge/StatusBadge.stories.js.map +1 -1
  605. package/dist/components/StatusBadge/StatusBadge.test.js +19 -10
  606. package/dist/components/StatusBadge/StatusBadge.test.js.map +1 -1
  607. package/dist/components/StatusBadge/StatusBage.js +2 -10
  608. package/dist/components/StatusBadge/index.js +2 -5
  609. package/dist/components/StatusPill/StatusPill.js +2 -35
  610. package/dist/components/StatusPill/StatusPill.stories.js +20 -20
  611. package/dist/components/StatusPill/StatusPill.stories.js.map +1 -1
  612. package/dist/components/StatusPill/index.js +2 -5
  613. package/dist/components/TextArea/TextArea.js +2 -65
  614. package/dist/components/TextArea/TextArea.stories.js +30 -31
  615. package/dist/components/TextArea/TextArea.stories.js.map +1 -1
  616. package/dist/components/TextArea/TextArea.test.js +38 -22
  617. package/dist/components/TextArea/TextArea.test.js.map +1 -1
  618. package/dist/components/TextArea/index.js +2 -5
  619. package/dist/components/ToggleSwitch/ToggleSwitch.js +2 -66
  620. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +20 -26
  621. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js.map +1 -1
  622. package/dist/components/ToggleSwitch/index.js +2 -5
  623. package/dist/components/Tooltip/Tooltip.js +2 -75
  624. package/dist/components/Tooltip/Tooltip.stories.js +27 -32
  625. package/dist/components/Tooltip/Tooltip.stories.js.map +1 -1
  626. package/dist/components/Tooltip/index.js +2 -5
  627. package/dist/components/VarIndicator/VarIndicator.js +2 -62
  628. package/dist/components/VarIndicator/VarIndicator.stories.js +31 -30
  629. package/dist/components/VarIndicator/VarIndicator.stories.js.map +1 -1
  630. package/dist/components/VarIndicator/VarIndicator.test.js +72 -54
  631. package/dist/components/VarIndicator/VarIndicator.test.js.map +1 -1
  632. package/dist/components/VarIndicator/index.js +2 -5
  633. package/dist/components/WeekSelector/WeekSelector.js +89 -97
  634. package/dist/components/WeekSelector/WeekSelector.js.map +1 -1
  635. package/dist/components/WeekSelector/WeekSelector.stories.js +146 -191
  636. package/dist/components/WeekSelector/WeekSelector.stories.js.map +1 -1
  637. package/dist/components/WeekSelector/components/WeekSelectorButton.js +20 -22
  638. package/dist/components/WeekSelector/components/WeekSelectorButton.js.map +1 -1
  639. package/dist/components/WeekSelector/components/WeekSelectorOption.js +72 -85
  640. package/dist/components/WeekSelector/components/WeekSelectorOption.js.map +1 -1
  641. package/dist/components/WeekSelector/components/WeekSelectorOptionContainer.js +30 -17
  642. package/dist/components/WeekSelector/components/WeekSelectorOptionContainer.js.map +1 -1
  643. package/dist/components/WeekSelector/index.js +2 -5
  644. package/dist/components/WeekSelector/mockdata.js +470 -469
  645. package/dist/components/WeekSelector/mockdata.js.map +1 -1
  646. package/dist/components/hooks/useDebounce.js +17 -16
  647. package/dist/components/hooks/useDebounce.js.map +1 -1
  648. package/dist/components/hooks/useOnClickOutside.js +15 -14
  649. package/dist/components/hooks/useOnClickOutside.js.map +1 -1
  650. package/dist/components/hooks/usePositionedFloaters.js +66 -71
  651. package/dist/components/hooks/usePositionedFloaters.js.map +1 -1
  652. package/dist/components/hooks/useResponsive.js +36 -32
  653. package/dist/components/hooks/useResponsive.js.map +1 -1
  654. package/dist/components/index.js +64 -139
  655. package/dist/components-DVUYdcHS.js +1992 -0
  656. package/dist/components-DVUYdcHS.js.map +1 -0
  657. package/dist/dist-D6qYwmKD.js +2005 -0
  658. package/dist/dist-D6qYwmKD.js.map +1 -0
  659. package/dist/esm-Cmy7DlsJ.js +2781 -0
  660. package/dist/esm-Cmy7DlsJ.js.map +1 -0
  661. package/dist/helpers-DcFTH1J1.js +34 -0
  662. package/dist/helpers-DcFTH1J1.js.map +1 -0
  663. package/dist/icons-TRhI-4V6.js +2681 -0
  664. package/dist/icons-TRhI-4V6.js.map +1 -0
  665. package/dist/index.js +64 -139
  666. package/dist/lib-6BbFZdI7.js +5595 -0
  667. package/dist/lib-6BbFZdI7.js.map +1 -0
  668. package/dist/react-18-PI4Gvl2f.js +43 -0
  669. package/dist/react-18-PI4Gvl2f.js.map +1 -0
  670. package/dist/react.esm-Cev8dB-E.js +3297 -0
  671. package/dist/react.esm-Cev8dB-E.js.map +1 -0
  672. package/dist/setupTests.js +1226 -36
  673. package/dist/setupTests.js.map +1 -1
  674. package/dist/storyComponents/ClipboardButton/ClipboardButton.js +2 -45
  675. package/dist/storyComponents/ClipboardButton/index.js +2 -5
  676. package/dist/storyComponents/Container/Container.js +2 -40
  677. package/dist/storyComponents/Container/index.js +2 -5
  678. package/dist/storybook__react.d.js +6939 -7524
  679. package/dist/storybook__react.d.js.map +1 -1
  680. package/dist/test-CPFNM-bL.js +21586 -0
  681. package/dist/test-CPFNM-bL.js.map +1 -0
  682. package/dist/test-utils-BSs0eZfL.js +21 -0
  683. package/dist/test-utils-BSs0eZfL.js.map +1 -0
  684. package/dist/types/UserInterface.js +0 -2
  685. package/dist/vite-env.d.js +0 -2
  686. package/package.json +22 -22
  687. package/dist/Button.module-S1-6tV9o.js +0 -16
  688. package/dist/Button.module-S1-6tV9o.js.map +0 -1
  689. package/dist/Column-BL3dsYxn.js +0 -101
  690. package/dist/Column-BL3dsYxn.js.map +0 -1
  691. package/dist/Lexical.prod-o6Eq_uLx.js +0 -5202
  692. package/dist/Lexical.prod-o6Eq_uLx.js.map +0 -1
  693. package/dist/LexicalClipboard.prod-CnUrf2_p.js +0 -265
  694. package/dist/LexicalClipboard.prod-CnUrf2_p.js.map +0 -1
  695. package/dist/LexicalComposerContext.prod-DOyoZx0P.js +0 -22
  696. package/dist/LexicalComposerContext.prod-DOyoZx0P.js.map +0 -1
  697. package/dist/LexicalExtension.prod-CanXuzFO.js +0 -551
  698. package/dist/LexicalExtension.prod-CanXuzFO.js.map +0 -1
  699. package/dist/LexicalLink.prod-DAVbKER8.js +0 -561
  700. package/dist/LexicalLink.prod-DAVbKER8.js.map +0 -1
  701. package/dist/LexicalList.prod-C6cknPBV.js +0 -632
  702. package/dist/LexicalList.prod-C6cknPBV.js.map +0 -1
  703. package/dist/LexicalSelection.prod-B8GGrzJ3.js +0 -116
  704. package/dist/LexicalSelection.prod-B8GGrzJ3.js.map +0 -1
  705. package/dist/LexicalTable.prod-upbwOtcE.js +0 -1892
  706. package/dist/LexicalTable.prod-upbwOtcE.js.map +0 -1
  707. package/dist/LexicalUtils.prod-CF7x-KWm.js +0 -134
  708. package/dist/LexicalUtils.prod-CF7x-KWm.js.map +0 -1
  709. package/dist/MultiSelectItem-BzBmsKof.js +0 -24
  710. package/dist/MultiSelectItem-BzBmsKof.js.map +0 -1
  711. package/dist/RteEditor.module-CoTOIw5i.js +0 -41
  712. package/dist/RteEditor.module-CoTOIw5i.js.map +0 -1
  713. package/dist/SearchField.module-CMUEgX7d.js +0 -17
  714. package/dist/SearchField.module-CMUEgX7d.js.map +0 -1
  715. package/dist/SelectListbox.module-CXqMuXRB.js +0 -29
  716. package/dist/SelectListbox.module-CXqMuXRB.js.map +0 -1
  717. package/dist/Sortable.module-DCVXxKnw.js +0 -26
  718. package/dist/Sortable.module-DCVXxKnw.js.map +0 -1
  719. package/dist/SortableProvider-BbwlEPIr.js +0 -160
  720. package/dist/SortableProvider-BbwlEPIr.js.map +0 -1
  721. package/dist/TableCellResizerPlugin-qMtSAoKT.js +0 -248
  722. package/dist/TableCellResizerPlugin-qMtSAoKT.js.map +0 -1
  723. package/dist/TablePlugin-BRZcXq73.js +0 -308
  724. package/dist/TablePlugin-BRZcXq73.js.map +0 -1
  725. package/dist/WeekSelector.module-Clco7jTs.js +0 -17
  726. package/dist/WeekSelector.module-Clco7jTs.js.map +0 -1
  727. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -9
  728. package/dist/_commonjsHelpers-DaMA6jEr.js.map +0 -1
  729. package/dist/assets/CheckboxTree.css +0 -1
  730. package/dist/assets/EditorHeader.css +0 -1
  731. package/dist/assets/FormInput.css +0 -1
  732. package/dist/assets/PeriodSelector.css +0 -1
  733. package/dist/assets/RadioTabSelector.css +0 -1
  734. package/dist/assets/TablePlugin.css +0 -1
  735. package/dist/chunk-OPOZOKLO-nJkI9rUN.js +0 -4508
  736. package/dist/chunk-OPOZOKLO-nJkI9rUN.js.map +0 -1
  737. package/dist/client-D5eE1v54.js +0 -27222
  738. package/dist/client-D5eE1v54.js.map +0 -1
  739. package/dist/clsx-OuTLNxxd.js +0 -17
  740. package/dist/clsx-OuTLNxxd.js.map +0 -1
  741. package/dist/components/Accordion/Accordion.js.map +0 -1
  742. package/dist/components/Accordion/index.js.map +0 -1
  743. package/dist/components/AccordionCard/AccordionCard.js.map +0 -1
  744. package/dist/components/AccordionCard/index.js.map +0 -1
  745. package/dist/components/ActionList/ActionList.js.map +0 -1
  746. package/dist/components/ActionList/index.js.map +0 -1
  747. package/dist/components/AppStatusBar/AppStatusBar.js.map +0 -1
  748. package/dist/components/AppStatusBar/index.js.map +0 -1
  749. package/dist/components/Attention/Attention.js.map +0 -1
  750. package/dist/components/Attention/index.js.map +0 -1
  751. package/dist/components/Backdrop/Backdrop.js.map +0 -1
  752. package/dist/components/Backdrop/index.js.map +0 -1
  753. package/dist/components/ButtonGroup/ButtonGroup.js.map +0 -1
  754. package/dist/components/ButtonGroup/index.js.map +0 -1
  755. package/dist/components/Buttons/index.js.map +0 -1
  756. package/dist/components/Card/Card.js.map +0 -1
  757. package/dist/components/Card/index.js.map +0 -1
  758. package/dist/components/Checkbox/Checkbox.js.map +0 -1
  759. package/dist/components/Checkbox/index.js.map +0 -1
  760. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js.map +0 -1
  761. package/dist/components/CheckboxButtonBar/index.js.map +0 -1
  762. package/dist/components/CheckboxTree/CheckboxTree.js.map +0 -1
  763. package/dist/components/CheckboxTree/index.js.map +0 -1
  764. package/dist/components/Chip/Chip.js.map +0 -1
  765. package/dist/components/Chip/index.js.map +0 -1
  766. package/dist/components/ControlsButton/ControlsButton.js.map +0 -1
  767. package/dist/components/ControlsButton/index.js.map +0 -1
  768. package/dist/components/CopyableText/CopyableText.js.map +0 -1
  769. package/dist/components/CopyableText/index.js.map +0 -1
  770. package/dist/components/Drawer/Drawer.js.map +0 -1
  771. package/dist/components/Drawer/index.js.map +0 -1
  772. package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.js.map +0 -1
  773. package/dist/components/EmptyStateDataDisplay/index.js.map +0 -1
  774. package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.js.map +0 -1
  775. package/dist/components/ExpandableInfoPanel/index.js.map +0 -1
  776. package/dist/components/FeedbackBar/FeedbackBar.js.map +0 -1
  777. package/dist/components/FeedbackBar/index.js.map +0 -1
  778. package/dist/components/FeedbackBox/FeedbackBox.js.map +0 -1
  779. package/dist/components/FeedbackBox/index.js.map +0 -1
  780. package/dist/components/FieldHint/FieldHint.js.map +0 -1
  781. package/dist/components/FieldHint/index.js.map +0 -1
  782. package/dist/components/Fieldset/Fieldset.js.map +0 -1
  783. package/dist/components/Fieldset/index.js.map +0 -1
  784. package/dist/components/FormField/FormField.js.map +0 -1
  785. package/dist/components/FormField/index.js.map +0 -1
  786. package/dist/components/FormInput/FormInput.js.map +0 -1
  787. package/dist/components/FormInput/index.js.map +0 -1
  788. package/dist/components/GridRow/Column/Column.js.map +0 -1
  789. package/dist/components/GridRow/Column/index.js.map +0 -1
  790. package/dist/components/GridRow/index.js.map +0 -1
  791. package/dist/components/HorizontalList/HorizontalList.js.map +0 -1
  792. package/dist/components/HorizontalList/index.js.map +0 -1
  793. package/dist/components/Icon/icons/index.js.map +0 -1
  794. package/dist/components/Icon/index.js.map +0 -1
  795. package/dist/components/IconButton/IconButton.js.map +0 -1
  796. package/dist/components/IconButton/index.js.map +0 -1
  797. package/dist/components/InfoBanner/InfoBanner.js.map +0 -1
  798. package/dist/components/InfoBanner/index.js.map +0 -1
  799. package/dist/components/InfoMessage/InfoMessage.js.map +0 -1
  800. package/dist/components/InfoMessage/index.js.map +0 -1
  801. package/dist/components/Input/Input.js.map +0 -1
  802. package/dist/components/Input/index.js.map +0 -1
  803. package/dist/components/InputField/InputField.js.map +0 -1
  804. package/dist/components/InputField/index.js.map +0 -1
  805. package/dist/components/Label/Label.js.map +0 -1
  806. package/dist/components/Label/index.js.map +0 -1
  807. package/dist/components/MenuLink/MenuLink.js.map +0 -1
  808. package/dist/components/MenuLink/index.js.map +0 -1
  809. package/dist/components/MetaDataBar/MetaDataBar.js.map +0 -1
  810. package/dist/components/MetaDataBar/index.js.map +0 -1
  811. package/dist/components/MetaDataList/MetaDataList.js.map +0 -1
  812. package/dist/components/MetaDataList/index.js.map +0 -1
  813. package/dist/components/ModalDialog/ModalDialog.js.map +0 -1
  814. package/dist/components/ModalDialog/index.js.map +0 -1
  815. package/dist/components/MultiSelect/MultiSelect.js.map +0 -1
  816. package/dist/components/MultiSelect/components/MultiSelectHeader.js.map +0 -1
  817. package/dist/components/MultiSelect/components/MultiSelectItem.js.map +0 -1
  818. package/dist/components/MultiSelect/index.js.map +0 -1
  819. package/dist/components/MultiSelectBox/MultiSelectBox.js.map +0 -1
  820. package/dist/components/MultiSelectBox/index.js.map +0 -1
  821. package/dist/components/Notification/Notification.js.map +0 -1
  822. package/dist/components/Notification/index.js.map +0 -1
  823. package/dist/components/OverlayCloseButton/OverlayCloseButton.js.map +0 -1
  824. package/dist/components/OverlayCloseButton/index.js.map +0 -1
  825. package/dist/components/OverlayStepBar/OverlayStepBar.js.map +0 -1
  826. package/dist/components/OverlayStepBar/index.js.map +0 -1
  827. package/dist/components/PageOverlay/PageOverlay.js.map +0 -1
  828. package/dist/components/PageOverlay/index.js.map +0 -1
  829. package/dist/components/PeriodSelector/PeriodSelector.js.map +0 -1
  830. package/dist/components/PeriodSelector/index.js.map +0 -1
  831. package/dist/components/Periods/Periods.js.map +0 -1
  832. package/dist/components/Periods/index.js.map +0 -1
  833. package/dist/components/ProgrammeCard/ProgrammeCard.js.map +0 -1
  834. package/dist/components/ProgrammeCard/index.js.map +0 -1
  835. package/dist/components/RadioButton/RadioButton.js.map +0 -1
  836. package/dist/components/RadioButton/index.js.map +0 -1
  837. package/dist/components/RadioGroup/RadioGroup.js.map +0 -1
  838. package/dist/components/RadioGroup/index.js.map +0 -1
  839. package/dist/components/RadioTabSelector/RadioTabSelector.js.map +0 -1
  840. package/dist/components/RadioTabSelector/index.js.map +0 -1
  841. package/dist/components/Repeater/Repeater.js.map +0 -1
  842. package/dist/components/Repeater/index.js.map +0 -1
  843. package/dist/components/RteEditor/EditorHeader/EditorHeader.js.map +0 -1
  844. package/dist/components/RteEditor/EditorHeader/index.js.map +0 -1
  845. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/index.js.map +0 -1
  846. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/AddCatalogueLinkForm.js.map +0 -1
  847. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/index.js.map +0 -1
  848. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/index.js.map +0 -1
  849. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js.map +0 -1
  850. package/dist/components/RteEditor/Plugins/HistoryPlugin/index.js.map +0 -1
  851. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js.map +0 -1
  852. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js.map +0 -1
  853. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js.map +0 -1
  854. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js.map +0 -1
  855. package/dist/components/RteEditor/Plugins/LinkPlugin/index.js.map +0 -1
  856. package/dist/components/RteEditor/Plugins/ListPlugin/index.js.map +0 -1
  857. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js.map +0 -1
  858. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js.map +0 -1
  859. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js.map +0 -1
  860. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js.map +0 -1
  861. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js.map +0 -1
  862. package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js.map +0 -1
  863. package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/index.js.map +0 -1
  864. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js.map +0 -1
  865. package/dist/components/RteEditor/Plugins/TablePlugin/index.js.map +0 -1
  866. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js.map +0 -1
  867. package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js.map +0 -1
  868. package/dist/components/RteEditor/Plugins/index.js.map +0 -1
  869. package/dist/components/RteEditor/RteEditor.js.map +0 -1
  870. package/dist/components/RteEditor/UvaTheme/index.js.map +0 -1
  871. package/dist/components/RteEditor/hooks/components/Flyout.js.map +0 -1
  872. package/dist/components/RteEditor/index.js.map +0 -1
  873. package/dist/components/RteEditor/nodes/CourseCatalogueNode/index.js.map +0 -1
  874. package/dist/components/RteEditor/nodes/TableWrapperNode/index.js.map +0 -1
  875. package/dist/components/RteEditor/nodes/index.js.map +0 -1
  876. package/dist/components/SearchField/index.js.map +0 -1
  877. package/dist/components/SectionNotification/SectionNotification.js.map +0 -1
  878. package/dist/components/SectionNotification/index.js.map +0 -1
  879. package/dist/components/SelectListbox/index.js.map +0 -1
  880. package/dist/components/Slider/Slider.js.map +0 -1
  881. package/dist/components/Slider/index.js.map +0 -1
  882. package/dist/components/Sortable/SortableProvider.js.map +0 -1
  883. package/dist/components/Sortable/components/SortableContainer.js.map +0 -1
  884. package/dist/components/Sortable/index.js.map +0 -1
  885. package/dist/components/Spinner/Spinner.js.map +0 -1
  886. package/dist/components/Spinner/index.js.map +0 -1
  887. package/dist/components/StatusBadge/StatusBage.js.map +0 -1
  888. package/dist/components/StatusBadge/index.js.map +0 -1
  889. package/dist/components/StatusPill/StatusPill.js.map +0 -1
  890. package/dist/components/StatusPill/index.js.map +0 -1
  891. package/dist/components/TextArea/TextArea.js.map +0 -1
  892. package/dist/components/TextArea/index.js.map +0 -1
  893. package/dist/components/ToggleSwitch/ToggleSwitch.js.map +0 -1
  894. package/dist/components/ToggleSwitch/index.js.map +0 -1
  895. package/dist/components/Tooltip/Tooltip.js.map +0 -1
  896. package/dist/components/Tooltip/index.js.map +0 -1
  897. package/dist/components/VarIndicator/VarIndicator.js.map +0 -1
  898. package/dist/components/VarIndicator/index.js.map +0 -1
  899. package/dist/components/WeekSelector/index.js.map +0 -1
  900. package/dist/components/index.js.map +0 -1
  901. package/dist/index-B_q_4aBT.js +0 -24946
  902. package/dist/index-B_q_4aBT.js.map +0 -1
  903. package/dist/index-CULNJwuI.js +0 -2355
  904. package/dist/index-CULNJwuI.js.map +0 -1
  905. package/dist/index-D6WVIfcJ.js +0 -6039
  906. package/dist/index-D6WVIfcJ.js.map +0 -1
  907. package/dist/index-YdDr6J97.js +0 -3099
  908. package/dist/index-YdDr6J97.js.map +0 -1
  909. package/dist/index-yEhaxKq-.js +0 -238
  910. package/dist/index-yEhaxKq-.js.map +0 -1
  911. package/dist/index.js.map +0 -1
  912. package/dist/react-18-CxCoNkIN.js +0 -41
  913. package/dist/react-18-CxCoNkIN.js.map +0 -1
  914. package/dist/react.esm-C68fQMAi.js +0 -4237
  915. package/dist/react.esm-C68fQMAi.js.map +0 -1
  916. package/dist/storyComponents/ClipboardButton/ClipboardButton.js.map +0 -1
  917. package/dist/storyComponents/ClipboardButton/index.js.map +0 -1
  918. package/dist/storyComponents/Container/Container.js.map +0 -1
  919. package/dist/storyComponents/Container/index.js.map +0 -1
  920. package/dist/test-utils-BcpWLsLH.js +0 -56
  921. package/dist/test-utils-BcpWLsLH.js.map +0 -1
  922. package/dist/types/UserInterface.js.map +0 -1
  923. package/dist/vite-env.d.js.map +0 -1
@@ -1,4508 +0,0 @@
1
- import { _ as $, d as He, a as Ae, b as qe, s as re, l as ke } from "./index-B_q_4aBT.js";
2
- var lt = $({
3
- "../../node_modules/picoquery/lib/string-util.js"(t) {
4
- Object.defineProperty(t, "__esModule", { value: !0 }), t.encodeString = o;
5
- var u = Array.from({ length: 256 }, (s, i) => "%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase()), n = new Int8Array([
6
- 0,
7
- 0,
8
- 0,
9
- 0,
10
- 0,
11
- 0,
12
- 0,
13
- 0,
14
- 0,
15
- 0,
16
- 0,
17
- 0,
18
- 0,
19
- 0,
20
- 0,
21
- 0,
22
- 0,
23
- 0,
24
- 0,
25
- 0,
26
- 0,
27
- 0,
28
- 0,
29
- 0,
30
- 0,
31
- 0,
32
- 0,
33
- 0,
34
- 0,
35
- 0,
36
- 0,
37
- 0,
38
- 0,
39
- 1,
40
- 0,
41
- 0,
42
- 0,
43
- 0,
44
- 0,
45
- 1,
46
- 1,
47
- 1,
48
- 1,
49
- 0,
50
- 0,
51
- 1,
52
- 1,
53
- 0,
54
- 1,
55
- 1,
56
- 1,
57
- 1,
58
- 1,
59
- 1,
60
- 1,
61
- 1,
62
- 1,
63
- 1,
64
- 0,
65
- 0,
66
- 0,
67
- 0,
68
- 0,
69
- 0,
70
- 0,
71
- 1,
72
- 1,
73
- 1,
74
- 1,
75
- 1,
76
- 1,
77
- 1,
78
- 1,
79
- 1,
80
- 1,
81
- 1,
82
- 1,
83
- 1,
84
- 1,
85
- 1,
86
- 1,
87
- 1,
88
- 1,
89
- 1,
90
- 1,
91
- 1,
92
- 1,
93
- 1,
94
- 1,
95
- 1,
96
- 1,
97
- 0,
98
- 0,
99
- 0,
100
- 0,
101
- 1,
102
- 0,
103
- 1,
104
- 1,
105
- 1,
106
- 1,
107
- 1,
108
- 1,
109
- 1,
110
- 1,
111
- 1,
112
- 1,
113
- 1,
114
- 1,
115
- 1,
116
- 1,
117
- 1,
118
- 1,
119
- 1,
120
- 1,
121
- 1,
122
- 1,
123
- 1,
124
- 1,
125
- 1,
126
- 1,
127
- 1,
128
- 1,
129
- 0,
130
- 0,
131
- 0,
132
- 1,
133
- 0
134
- ]);
135
- function o(s) {
136
- let i = s.length;
137
- if (i === 0)
138
- return "";
139
- let c = "", d = 0, m = 0;
140
- e: for (; m < i; m++) {
141
- let f = s.charCodeAt(m);
142
- for (; f < 128; ) {
143
- if (n[f] !== 1 && (d < m && (c += s.slice(d, m)), d = m + 1, c += u[f]), ++m === i)
144
- break e;
145
- f = s.charCodeAt(m);
146
- }
147
- if (d < m && (c += s.slice(d, m)), f < 2048) {
148
- d = m + 1, c += u[192 | f >> 6] + u[128 | f & 63];
149
- continue;
150
- }
151
- if (f < 55296 || f >= 57344) {
152
- d = m + 1, c += u[224 | f >> 12] + u[128 | f >> 6 & 63] + u[128 | f & 63];
153
- continue;
154
- }
155
- if (++m, m >= i)
156
- throw new Error("URI malformed");
157
- let b = s.charCodeAt(m) & 1023;
158
- d = m + 1, f = 65536 + ((f & 1023) << 10 | b), c += u[240 | f >> 18] + u[128 | f >> 12 & 63] + u[128 | f >> 6 & 63] + u[128 | f & 63];
159
- }
160
- return d === 0 ? s : d < i ? c + s.slice(d) : c;
161
- }
162
- }
163
- }), Ke = $({
164
- "../../node_modules/picoquery/lib/shared.js"(t) {
165
- Object.defineProperty(t, "__esModule", { value: !0 }), t.defaultOptions = t.defaultShouldSerializeObject = t.defaultValueSerializer = void 0;
166
- var u = lt(), n = (i) => {
167
- switch (typeof i) {
168
- case "string":
169
- return (0, u.encodeString)(i);
170
- case "bigint":
171
- case "boolean":
172
- return "" + i;
173
- case "number":
174
- if (Number.isFinite(i))
175
- return i < 1e21 ? "" + i : (0, u.encodeString)("" + i);
176
- break;
177
- }
178
- return i instanceof Date ? (0, u.encodeString)(i.toISOString()) : "";
179
- };
180
- t.defaultValueSerializer = n;
181
- var o = (i) => i instanceof Date;
182
- t.defaultShouldSerializeObject = o;
183
- var s = (i) => i;
184
- t.defaultOptions = {
185
- nesting: !0,
186
- nestingSyntax: "dot",
187
- arrayRepeat: !1,
188
- arrayRepeatSyntax: "repeat",
189
- delimiter: 38,
190
- valueDeserializer: s,
191
- valueSerializer: t.defaultValueSerializer,
192
- keyDeserializer: s,
193
- shouldSerializeObject: t.defaultShouldSerializeObject
194
- };
195
- }
196
- }), ct = $({
197
- "../../node_modules/picoquery/lib/object-util.js"(t) {
198
- Object.defineProperty(t, "__esModule", { value: !0 }), t.getDeepObject = s, t.stringifyObject = b;
199
- var u = Ke(), n = lt();
200
- function o(D) {
201
- return D === "__proto__" || D === "constructor" || D === "prototype";
202
- }
203
- function s(D, v, C, F, w) {
204
- if (o(v))
205
- return D;
206
- let L = D[v];
207
- return typeof L == "object" && L !== null ? L : !F && (w || typeof C == "number" || typeof C == "string" && C * 0 === 0 && C.indexOf(".") === -1) ? D[v] = [] : D[v] = {};
208
- }
209
- var i = 20, c = "[]", d = "[", m = "]", f = ".";
210
- function b(D, v, C = 0, F, w) {
211
- let { nestingSyntax: L = u.defaultOptions.nestingSyntax, arrayRepeat: O = u.defaultOptions.arrayRepeat, arrayRepeatSyntax: x = u.defaultOptions.arrayRepeatSyntax, nesting: P = u.defaultOptions.nesting, delimiter: N = u.defaultOptions.delimiter, valueSerializer: Y = u.defaultOptions.valueSerializer, shouldSerializeObject: S = u.defaultOptions.shouldSerializeObject } = v, U = typeof N == "number" ? String.fromCharCode(N) : N, R = w === !0 && O, q = L === "dot" || L === "js" && !w;
212
- if (C > i)
213
- return "";
214
- let _ = "", V = !0, H = !1;
215
- for (let T in D) {
216
- let p = D[T];
217
- if (p === void 0)
218
- continue;
219
- let y;
220
- F ? (y = F, R ? x === "bracket" && (y += c) : q ? (y += f, y += T) : (y += d, y += T, y += m)) : y = T, V || (_ += U), typeof p == "object" && p !== null && !S(p) ? (H = p.pop !== void 0, (P || O && H) && (_ += b(p, v, C + 1, y, H))) : (_ += (0, n.encodeString)(y), _ += "=", _ += Y(p, T)), V && (V = !1);
221
- }
222
- return _;
223
- }
224
- }
225
- }), sr = $({
226
- "../../node_modules/picoquery/lib/decode-uri-component.js"(t) {
227
- Object.defineProperty(t, "__esModule", { value: !0 }), t.decodeURIComponent = s;
228
- var u = 12, n = 0, o = [
229
- // The first part of the table maps bytes to character to a transition.
230
- 0,
231
- 0,
232
- 0,
233
- 0,
234
- 0,
235
- 0,
236
- 0,
237
- 0,
238
- 0,
239
- 0,
240
- 0,
241
- 0,
242
- 0,
243
- 0,
244
- 0,
245
- 0,
246
- 0,
247
- 0,
248
- 0,
249
- 0,
250
- 0,
251
- 0,
252
- 0,
253
- 0,
254
- 0,
255
- 0,
256
- 0,
257
- 0,
258
- 0,
259
- 0,
260
- 0,
261
- 0,
262
- 0,
263
- 0,
264
- 0,
265
- 0,
266
- 0,
267
- 0,
268
- 0,
269
- 0,
270
- 0,
271
- 0,
272
- 0,
273
- 0,
274
- 0,
275
- 0,
276
- 0,
277
- 0,
278
- 0,
279
- 0,
280
- 0,
281
- 0,
282
- 0,
283
- 0,
284
- 0,
285
- 0,
286
- 0,
287
- 0,
288
- 0,
289
- 0,
290
- 0,
291
- 0,
292
- 0,
293
- 0,
294
- 0,
295
- 0,
296
- 0,
297
- 0,
298
- 0,
299
- 0,
300
- 0,
301
- 0,
302
- 0,
303
- 0,
304
- 0,
305
- 0,
306
- 0,
307
- 0,
308
- 0,
309
- 0,
310
- 0,
311
- 0,
312
- 0,
313
- 0,
314
- 0,
315
- 0,
316
- 0,
317
- 0,
318
- 0,
319
- 0,
320
- 0,
321
- 0,
322
- 0,
323
- 0,
324
- 0,
325
- 0,
326
- 0,
327
- 0,
328
- 0,
329
- 0,
330
- 0,
331
- 0,
332
- 0,
333
- 0,
334
- 0,
335
- 0,
336
- 0,
337
- 0,
338
- 0,
339
- 0,
340
- 0,
341
- 0,
342
- 0,
343
- 0,
344
- 0,
345
- 0,
346
- 0,
347
- 0,
348
- 0,
349
- 0,
350
- 0,
351
- 0,
352
- 0,
353
- 0,
354
- 0,
355
- 0,
356
- 0,
357
- 0,
358
- 1,
359
- 1,
360
- 1,
361
- 1,
362
- 1,
363
- 1,
364
- 1,
365
- 1,
366
- 1,
367
- 1,
368
- 1,
369
- 1,
370
- 1,
371
- 1,
372
- 1,
373
- 1,
374
- 2,
375
- 2,
376
- 2,
377
- 2,
378
- 2,
379
- 2,
380
- 2,
381
- 2,
382
- 2,
383
- 2,
384
- 2,
385
- 2,
386
- 2,
387
- 2,
388
- 2,
389
- 2,
390
- 3,
391
- 3,
392
- 3,
393
- 3,
394
- 3,
395
- 3,
396
- 3,
397
- 3,
398
- 3,
399
- 3,
400
- 3,
401
- 3,
402
- 3,
403
- 3,
404
- 3,
405
- 3,
406
- 3,
407
- 3,
408
- 3,
409
- 3,
410
- 3,
411
- 3,
412
- 3,
413
- 3,
414
- 3,
415
- 3,
416
- 3,
417
- 3,
418
- 3,
419
- 3,
420
- 3,
421
- 3,
422
- 4,
423
- 4,
424
- 5,
425
- 5,
426
- 5,
427
- 5,
428
- 5,
429
- 5,
430
- 5,
431
- 5,
432
- 5,
433
- 5,
434
- 5,
435
- 5,
436
- 5,
437
- 5,
438
- 5,
439
- 5,
440
- 5,
441
- 5,
442
- 5,
443
- 5,
444
- 5,
445
- 5,
446
- 5,
447
- 5,
448
- 5,
449
- 5,
450
- 5,
451
- 5,
452
- 5,
453
- 5,
454
- 6,
455
- 7,
456
- 7,
457
- 7,
458
- 7,
459
- 7,
460
- 7,
461
- 7,
462
- 7,
463
- 7,
464
- 7,
465
- 7,
466
- 7,
467
- 8,
468
- 7,
469
- 7,
470
- 10,
471
- 9,
472
- 9,
473
- 9,
474
- 11,
475
- 4,
476
- 4,
477
- 4,
478
- 4,
479
- 4,
480
- 4,
481
- 4,
482
- 4,
483
- 4,
484
- 4,
485
- 4,
486
- // The second part of the table maps a state to a new state when adding a
487
- // transition.
488
- 0,
489
- 0,
490
- 0,
491
- 0,
492
- 0,
493
- 0,
494
- 0,
495
- 0,
496
- 0,
497
- 0,
498
- 0,
499
- 0,
500
- 12,
501
- 0,
502
- 0,
503
- 0,
504
- 0,
505
- 24,
506
- 36,
507
- 48,
508
- 60,
509
- 72,
510
- 84,
511
- 96,
512
- 0,
513
- 12,
514
- 12,
515
- 12,
516
- 0,
517
- 0,
518
- 0,
519
- 0,
520
- 0,
521
- 0,
522
- 0,
523
- 0,
524
- 0,
525
- 0,
526
- 0,
527
- 24,
528
- 0,
529
- 0,
530
- 0,
531
- 0,
532
- 0,
533
- 0,
534
- 0,
535
- 0,
536
- 0,
537
- 24,
538
- 24,
539
- 24,
540
- 0,
541
- 0,
542
- 0,
543
- 0,
544
- 0,
545
- 0,
546
- 0,
547
- 0,
548
- 0,
549
- 24,
550
- 24,
551
- 0,
552
- 0,
553
- 0,
554
- 0,
555
- 0,
556
- 0,
557
- 0,
558
- 0,
559
- 0,
560
- 0,
561
- 48,
562
- 48,
563
- 48,
564
- 0,
565
- 0,
566
- 0,
567
- 0,
568
- 0,
569
- 0,
570
- 0,
571
- 0,
572
- 0,
573
- 0,
574
- 48,
575
- 48,
576
- 0,
577
- 0,
578
- 0,
579
- 0,
580
- 0,
581
- 0,
582
- 0,
583
- 0,
584
- 0,
585
- 48,
586
- 0,
587
- 0,
588
- 0,
589
- 0,
590
- 0,
591
- 0,
592
- 0,
593
- 0,
594
- 0,
595
- 0,
596
- // The third part maps the current transition to a mask that needs to apply
597
- // to the byte.
598
- 127,
599
- 63,
600
- 63,
601
- 63,
602
- 0,
603
- 31,
604
- 15,
605
- 15,
606
- 15,
607
- 7,
608
- 7,
609
- 7
610
- ];
611
- function s(d) {
612
- let m = d.indexOf("%");
613
- if (m === -1)
614
- return d;
615
- let f = d.length, b = "", D = 0, v = 0, C = m, F = u;
616
- for (; m > -1 && m < f; ) {
617
- let w = c(d[m + 1], 4), L = c(d[m + 2], 0), O = w | L, x = o[O];
618
- if (F = o[256 + F + x], v = v << 6 | O & o[364 + x], F === u)
619
- b += d.slice(D, C), b += v <= 65535 ? String.fromCharCode(v) : String.fromCharCode(55232 + (v >> 10), 56320 + (v & 1023)), v = 0, D = m + 3, m = C = d.indexOf("%", D);
620
- else {
621
- if (F === n)
622
- return null;
623
- if (m += 3, m < f && d.charCodeAt(m) === 37)
624
- continue;
625
- return null;
626
- }
627
- }
628
- return b + d.slice(D);
629
- }
630
- var i = {
631
- 0: 0,
632
- 1: 1,
633
- 2: 2,
634
- 3: 3,
635
- 4: 4,
636
- 5: 5,
637
- 6: 6,
638
- 7: 7,
639
- 8: 8,
640
- 9: 9,
641
- a: 10,
642
- A: 10,
643
- b: 11,
644
- B: 11,
645
- c: 12,
646
- C: 12,
647
- d: 13,
648
- D: 13,
649
- e: 14,
650
- E: 14,
651
- f: 15,
652
- F: 15
653
- };
654
- function c(d, m) {
655
- let f = i[d];
656
- return f === void 0 ? 255 : f << m;
657
- }
658
- }
659
- }), lr = $({
660
- "../../node_modules/picoquery/lib/parse.js"(t) {
661
- Object.defineProperty(t, "__esModule", { value: !0 }), t.numberValueDeserializer = t.numberKeyDeserializer = void 0, t.parse = f;
662
- var u = ct(), n = Ke(), o = sr(), s = (b) => {
663
- let D = Number(b);
664
- return Number.isNaN(D) ? b : D;
665
- };
666
- t.numberKeyDeserializer = s;
667
- var i = (b) => {
668
- let D = Number(b);
669
- return Number.isNaN(D) ? b : D;
670
- };
671
- t.numberValueDeserializer = i;
672
- var c = /\+/g, d = function() {
673
- };
674
- d.prototype = /* @__PURE__ */ Object.create(null);
675
- function m(b, D, v, C, F) {
676
- let w = b.substring(D, v);
677
- return C && (w = w.replace(c, " ")), F && (w = (0, o.decodeURIComponent)(w) || w), w;
678
- }
679
- function f(b, D) {
680
- let { valueDeserializer: v = n.defaultOptions.valueDeserializer, keyDeserializer: C = n.defaultOptions.keyDeserializer, arrayRepeatSyntax: F = n.defaultOptions.arrayRepeatSyntax, nesting: w = n.defaultOptions.nesting, arrayRepeat: L = n.defaultOptions.arrayRepeat, nestingSyntax: O = n.defaultOptions.nestingSyntax, delimiter: x = n.defaultOptions.delimiter } = D ?? {}, P = typeof x == "string" ? x.charCodeAt(0) : x, N = O === "js", Y = new d();
681
- if (typeof b != "string")
682
- return Y;
683
- let S = b.length, U = "", R = -1, q = -1, _ = -1, V = Y, H, T = "", p = "", y = !1, h = !1, A = !1, J = !1, k = !1, X = !1, I = 0, G = -1, ie = -1, Te = -1;
684
- for (let z = 0; z < S + 1; z++) {
685
- if (I = z !== S ? b.charCodeAt(z) : P, I === P) {
686
- if (X = q > R, X || (q = z), _ !== q - 1 && (p = m(b, _ + 1, G > -1 ? G : q, A, y), T = C(p), H !== void 0 && (V = (0, u.getDeepObject)(V, H, T, N && k, void 0))), X || T !== "") {
687
- X && (U = b.slice(q + 1, z), J && (U = U.replace(c, " ")), h && (U = (0, o.decodeURIComponent)(U) || U));
688
- let te = v(U, T);
689
- if (L) {
690
- let ue = V[T];
691
- ue === void 0 ? G > -1 ? V[T] = [te] : V[T] = te : ue.pop ? ue.push(te) : V[T] = [ue, te];
692
- } else
693
- V[T] = te;
694
- }
695
- U = "", R = z, q = z, y = !1, h = !1, A = !1, J = !1, k = !1, G = -1, _ = z, V = Y, H = void 0, T = "";
696
- } else I === 93 ? (L && F === "bracket" && Te === 91 && (G = ie), w && (O === "index" || N) && q <= R && (_ !== ie && (p = m(b, _ + 1, z, A, y), T = C(p), H !== void 0 && (V = (0, u.getDeepObject)(V, H, T, void 0, void 0)), H = T, A = !1, y = !1), _ = z, k = !1)) : I === 46 ? w && (O === "dot" || N) && q <= R && (_ !== ie && (p = m(b, _ + 1, z, A, y), T = C(p), H !== void 0 && (V = (0, u.getDeepObject)(V, H, T, N)), H = T, A = !1, y = !1), k = !0, _ = z) : I === 91 ? w && (O === "index" || N) && q <= R && (_ !== ie && (p = m(b, _ + 1, z, A, y), T = C(p), N && H !== void 0 && (V = (0, u.getDeepObject)(V, H, T, N)), H = T, A = !1, y = !1, k = !1), _ = z) : I === 61 ? q <= R ? q = z : h = !0 : I === 43 ? q > R ? J = !0 : A = !0 : I === 37 && (q > R ? h = !0 : y = !0);
697
- ie = z, Te = I;
698
- }
699
- return Y;
700
- }
701
- }
702
- }), cr = $({
703
- "../../node_modules/picoquery/lib/stringify.js"(t) {
704
- Object.defineProperty(t, "__esModule", { value: !0 }), t.stringify = n;
705
- var u = ct();
706
- function n(o, s) {
707
- if (o === null || typeof o != "object")
708
- return "";
709
- let i = s ?? {};
710
- return (0, u.stringifyObject)(o, i);
711
- }
712
- }
713
- }), Ge = $({
714
- "../../node_modules/picoquery/lib/main.js"(t) {
715
- var u = t && t.__createBinding || (Object.create ? (function(i, c, d, m) {
716
- m === void 0 && (m = d);
717
- var f = Object.getOwnPropertyDescriptor(c, d);
718
- (!f || ("get" in f ? !c.__esModule : f.writable || f.configurable)) && (f = { enumerable: !0, get: function() {
719
- return c[d];
720
- } }), Object.defineProperty(i, m, f);
721
- }) : (function(i, c, d, m) {
722
- m === void 0 && (m = d), i[m] = c[d];
723
- })), n = t && t.__exportStar || function(i, c) {
724
- for (var d in i) d !== "default" && !Object.prototype.hasOwnProperty.call(c, d) && u(c, i, d);
725
- };
726
- Object.defineProperty(t, "__esModule", { value: !0 }), t.stringify = t.parse = void 0;
727
- var o = lr();
728
- Object.defineProperty(t, "parse", { enumerable: !0, get: function() {
729
- return o.parse;
730
- } });
731
- var s = cr();
732
- Object.defineProperty(t, "stringify", { enumerable: !0, get: function() {
733
- return s.stringify;
734
- } }), n(Ke(), t);
735
- }
736
- });
737
- function Me(t) {
738
- if (!t || typeof t != "object")
739
- return !1;
740
- let u = Object.getPrototypeOf(t);
741
- return u === null || u === Object.prototype || Object.getPrototypeOf(u) === null ? Object.prototype.toString.call(t) === "[object Object]" : !1;
742
- }
743
- function pr(t, u) {
744
- let n = {}, o = Object.keys(t);
745
- for (let s = 0; s < o.length; s++) {
746
- let i = o[s], c = t[i];
747
- n[i] = u(c, i, t);
748
- }
749
- return n;
750
- }
751
- function nt({
752
- code: t,
753
- category: u
754
- }) {
755
- let n = String(t).padStart(4, "0");
756
- return `SB_${u}_${n}`;
757
- }
758
- function at(t) {
759
- if (/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(t))
760
- return t;
761
- try {
762
- let u = new URL(t);
763
- return u.searchParams.set("ref", "error"), u.toString();
764
- } catch {
765
- return t;
766
- }
767
- }
768
- var pt = class dt extends Error {
769
- constructor(u) {
770
- super(dt.getFullMessage(u)), this.data = {}, this.fromStorybook = !0, this.isHandledError = !1, this.subErrors = [], this.category = u.category, this.documentation = u.documentation ?? !1, this.code = u.code, this.isHandledError = u.isHandledError ?? !1, this.name = u.name, this.subErrors = u.subErrors ?? [];
771
- }
772
- get fullErrorCode() {
773
- return nt({ code: this.code, category: this.category });
774
- }
775
- /** Overrides the default `Error.name` property in the format: SB_<CATEGORY>_<CODE>. */
776
- get name() {
777
- let u = this._name || this.constructor.name;
778
- return `${this.fullErrorCode} (${u})`;
779
- }
780
- set name(u) {
781
- this._name = u;
782
- }
783
- /** Generates the error message along with additional documentation link (if applicable). */
784
- static getFullMessage({
785
- documentation: u,
786
- code: n,
787
- category: o,
788
- message: s
789
- }) {
790
- let i;
791
- return u === !0 ? i = `https://storybook.js.org/error/${nt({ code: n, category: o })}?ref=error` : typeof u == "string" ? i = at(u) : Array.isArray(u) && (i = `
792
- ${u.map((c) => ` - ${at(c)}`).join(`
793
- `)}`), `${s}${i != null ? `
794
-
795
- More info: ${i}
796
- ` : ""}`;
797
- }
798
- }, tn = class extends pt {
799
- constructor(t) {
800
- super({
801
- name: "ImplicitActionsDuringRendering",
802
- category: "PREVIEW_API",
803
- code: 2,
804
- documentation: "https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function",
805
- message: He`
806
- We detected that you use an implicit action arg while ${t.phase} of your story.
807
- ${t.deprecated ? `
808
- This is deprecated and won't work in Storybook 8 anymore.
809
- ` : ""}
810
- Please provide an explicit spy to your args like this:
811
- import { fn } from 'storybook/test';
812
- ...
813
- args: {
814
- ${t.name}: fn()
815
- }`
816
- }), this.data = t;
817
- }
818
- }, yt = class extends pt {
819
- constructor(t) {
820
- super({
821
- name: "UnknownArgTypesError",
822
- category: "DOCS-TOOLS",
823
- code: 1,
824
- documentation: "https://github.com/storybookjs/storybook/issues/26606",
825
- message: He`
826
- There was a failure when generating detailed ArgTypes in ${t.language} for:
827
- ${JSON.stringify(t.type, null, 2)}
828
-
829
- Storybook will fall back to use a generic type description instead.
830
-
831
- This type is either not supported or it is a bug in the docgen generation in Storybook.
832
- If you think this is a bug, please detail it as much as possible in the Github issue.
833
- `
834
- }), this.data = t;
835
- }
836
- }, dr = $({
837
- "../../node_modules/jsdoc-type-pratt-parser/dist/index.js"(t, u) {
838
- (function(n, o) {
839
- typeof t == "object" && typeof u < "u" ? o(t) : typeof define == "function" && define.amd ? define(["exports"], o) : (n = typeof globalThis < "u" ? globalThis : n || self, o(n.jtpp = {}));
840
- })(t, (function(n) {
841
- function o(e) {
842
- return e.text !== void 0 && e.text !== "" ? `'${e.type}' with value '${e.text}'` : `'${e.type}'`;
843
- }
844
- class s extends Error {
845
- constructor(r) {
846
- super(`No parslet found for token: ${o(r)}`), this.token = r, Object.setPrototypeOf(this, s.prototype);
847
- }
848
- getToken() {
849
- return this.token;
850
- }
851
- }
852
- class i extends Error {
853
- constructor(r) {
854
- super(`The parsing ended early. The next token was: ${o(r)}`), this.token = r, Object.setPrototypeOf(this, i.prototype);
855
- }
856
- getToken() {
857
- return this.token;
858
- }
859
- }
860
- class c extends Error {
861
- constructor(r, a) {
862
- let l = `Unexpected type: '${r.type}'.`;
863
- a !== void 0 && (l += ` Message: ${a}`), super(l), Object.setPrototypeOf(this, c.prototype);
864
- }
865
- }
866
- function d(e) {
867
- return (r) => r.startsWith(e) ? { type: e, text: e } : null;
868
- }
869
- function m(e) {
870
- let r = 0, a, l = e[0], g = !1;
871
- if (l !== "'" && l !== '"')
872
- return null;
873
- for (; r < e.length; ) {
874
- if (r++, a = e[r], !g && a === l) {
875
- r++;
876
- break;
877
- }
878
- g = !g && a === "\\";
879
- }
880
- if (a !== l)
881
- throw new Error("Unterminated String");
882
- return e.slice(0, r);
883
- }
884
- let f = new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}", "u"), b = new RegExp("[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}", "u");
885
- function D(e) {
886
- let r = e[0];
887
- if (!f.test(r))
888
- return null;
889
- let a = 1;
890
- do {
891
- if (r = e[a], !b.test(r))
892
- break;
893
- a++;
894
- } while (a < e.length);
895
- return e.slice(0, a);
896
- }
897
- let v = /^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;
898
- function C(e) {
899
- var r, a;
900
- return (a = (r = v.exec(e)) === null || r === void 0 ? void 0 : r[0]) !== null && a !== void 0 ? a : null;
901
- }
902
- let F = (e) => {
903
- let r = D(e);
904
- return r == null ? null : {
905
- type: "Identifier",
906
- text: r
907
- };
908
- };
909
- function w(e) {
910
- return (r) => {
911
- if (!r.startsWith(e))
912
- return null;
913
- let a = r[e.length];
914
- return a !== void 0 && b.test(a) ? null : {
915
- type: e,
916
- text: e
917
- };
918
- };
919
- }
920
- let L = (e) => {
921
- let r = m(e);
922
- return r == null ? null : {
923
- type: "StringValue",
924
- text: r
925
- };
926
- }, O = (e) => e.length > 0 ? null : {
927
- type: "EOF",
928
- text: ""
929
- }, x = (e) => {
930
- let r = C(e);
931
- return r === null ? null : {
932
- type: "Number",
933
- text: r
934
- };
935
- }, P = [
936
- O,
937
- d("=>"),
938
- d("("),
939
- d(")"),
940
- d("{"),
941
- d("}"),
942
- d("["),
943
- d("]"),
944
- d("|"),
945
- d("&"),
946
- d("<"),
947
- d(">"),
948
- d(","),
949
- d(";"),
950
- d("*"),
951
- d("?"),
952
- d("!"),
953
- d("="),
954
- d(":"),
955
- d("..."),
956
- d("."),
957
- d("#"),
958
- d("~"),
959
- d("/"),
960
- d("@"),
961
- w("undefined"),
962
- w("null"),
963
- w("function"),
964
- w("this"),
965
- w("new"),
966
- w("module"),
967
- w("event"),
968
- w("extends"),
969
- w("external"),
970
- w("infer"),
971
- w("typeof"),
972
- w("keyof"),
973
- w("readonly"),
974
- w("import"),
975
- w("is"),
976
- w("in"),
977
- w("asserts"),
978
- x,
979
- F,
980
- L
981
- ], N = /^\s*\n\s*/;
982
- class Y {
983
- static create(r) {
984
- let a = this.read(r);
985
- r = a.text;
986
- let l = this.read(r);
987
- return r = l.text, new Y(r, void 0, a.token, l.token);
988
- }
989
- constructor(r, a, l, g) {
990
- this.text = "", this.text = r, this.previous = a, this.current = l, this.next = g;
991
- }
992
- static read(r, a = !1) {
993
- a = a || N.test(r), r = r.trim();
994
- for (let l of P) {
995
- let g = l(r);
996
- if (g !== null) {
997
- let E = Object.assign(Object.assign({}, g), { startOfLine: a });
998
- return r = r.slice(E.text.length), { text: r, token: E };
999
- }
1000
- }
1001
- throw new Error("Unexpected Token " + r);
1002
- }
1003
- advance() {
1004
- let r = Y.read(this.text);
1005
- return new Y(r.text, this.current, this.next, r.token);
1006
- }
1007
- }
1008
- function S(e) {
1009
- if (e === void 0)
1010
- throw new Error("Unexpected undefined");
1011
- if (e.type === "JsdocTypeKeyValue" || e.type === "JsdocTypeParameterList" || e.type === "JsdocTypeProperty" || e.type === "JsdocTypeReadonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsdocObjectField" || e.type === "JsdocTypeIndexSignature" || e.type === "JsdocTypeMappedType" || e.type === "JsdocTypeTypeParameter")
1012
- throw new c(e);
1013
- return e;
1014
- }
1015
- function U(e) {
1016
- return e.type === "JsdocTypeKeyValue" ? q(e) : S(e);
1017
- }
1018
- function R(e) {
1019
- return e.type === "JsdocTypeName" ? e : q(e);
1020
- }
1021
- function q(e) {
1022
- if (e.type !== "JsdocTypeKeyValue")
1023
- throw new c(e);
1024
- return e;
1025
- }
1026
- function _(e) {
1027
- var r;
1028
- if (e.type === "JsdocTypeVariadic") {
1029
- if (((r = e.element) === null || r === void 0 ? void 0 : r.type) === "JsdocTypeName")
1030
- return e;
1031
- throw new c(e);
1032
- }
1033
- if (e.type !== "JsdocTypeNumber" && e.type !== "JsdocTypeName")
1034
- throw new c(e);
1035
- return e;
1036
- }
1037
- function V(e) {
1038
- if (e.type === "JsdocTypeTuple" || e.type === "JsdocTypeGeneric" && e.meta.brackets === "square")
1039
- return e;
1040
- throw new c(e);
1041
- }
1042
- function H(e) {
1043
- return e.type === "JsdocTypeIndexSignature" || e.type === "JsdocTypeMappedType";
1044
- }
1045
- var T;
1046
- (function(e) {
1047
- e[e.ALL = 0] = "ALL", e[e.PARAMETER_LIST = 1] = "PARAMETER_LIST", e[e.OBJECT = 2] = "OBJECT", e[e.KEY_VALUE = 3] = "KEY_VALUE", e[e.INDEX_BRACKETS = 4] = "INDEX_BRACKETS", e[e.UNION = 5] = "UNION", e[e.INTERSECTION = 6] = "INTERSECTION", e[e.PREFIX = 7] = "PREFIX", e[e.INFIX = 8] = "INFIX", e[e.TUPLE = 9] = "TUPLE", e[e.SYMBOL = 10] = "SYMBOL", e[e.OPTIONAL = 11] = "OPTIONAL", e[e.NULLABLE = 12] = "NULLABLE", e[e.KEY_OF_TYPE_OF = 13] = "KEY_OF_TYPE_OF", e[e.FUNCTION = 14] = "FUNCTION", e[e.ARROW = 15] = "ARROW", e[e.ARRAY_BRACKETS = 16] = "ARRAY_BRACKETS", e[e.GENERIC = 17] = "GENERIC", e[e.NAME_PATH = 18] = "NAME_PATH", e[e.PARENTHESIS = 19] = "PARENTHESIS", e[e.SPECIAL_TYPES = 20] = "SPECIAL_TYPES";
1048
- })(T || (T = {}));
1049
- class p {
1050
- constructor(r, a, l) {
1051
- this.grammar = r, typeof a == "string" ? this._lexer = Y.create(a) : this._lexer = a, this.baseParser = l;
1052
- }
1053
- get lexer() {
1054
- return this._lexer;
1055
- }
1056
- /**
1057
- * Parses a given string and throws an error if the parse ended before the end of the string.
1058
- */
1059
- parse() {
1060
- let r = this.parseType(T.ALL);
1061
- if (this.lexer.current.type !== "EOF")
1062
- throw new i(this.lexer.current);
1063
- return r;
1064
- }
1065
- /**
1066
- * Parses with the current lexer and asserts that the result is a {@link RootResult}.
1067
- */
1068
- parseType(r) {
1069
- return S(this.parseIntermediateType(r));
1070
- }
1071
- /**
1072
- * The main parsing function. First it tries to parse the current state in the prefix step, and then it continues
1073
- * to parse the state in the infix step.
1074
- */
1075
- parseIntermediateType(r) {
1076
- let a = this.tryParslets(null, r);
1077
- if (a === null)
1078
- throw new s(this.lexer.current);
1079
- return this.parseInfixIntermediateType(a, r);
1080
- }
1081
- /**
1082
- * In the infix parsing step the parser continues to parse the current state with all parslets until none returns
1083
- * a result.
1084
- */
1085
- parseInfixIntermediateType(r, a) {
1086
- let l = this.tryParslets(r, a);
1087
- for (; l !== null; )
1088
- r = l, l = this.tryParslets(r, a);
1089
- return r;
1090
- }
1091
- /**
1092
- * Tries to parse the current state with all parslets in the grammar and returns the first non null result.
1093
- */
1094
- tryParslets(r, a) {
1095
- for (let l of this.grammar) {
1096
- let g = l(this, a, r);
1097
- if (g !== null)
1098
- return g;
1099
- }
1100
- return null;
1101
- }
1102
- /**
1103
- * If the given type equals the current type of the {@link Lexer} advance the lexer. Return true if the lexer was
1104
- * advanced.
1105
- */
1106
- consume(r) {
1107
- return Array.isArray(r) || (r = [r]), r.includes(this.lexer.current.type) ? (this._lexer = this.lexer.advance(), !0) : !1;
1108
- }
1109
- acceptLexerState(r) {
1110
- this._lexer = r.lexer;
1111
- }
1112
- }
1113
- function y(e) {
1114
- return e === "}" || e === "EOF" || e === "|" || e === "," || e === ")" || e === ">";
1115
- }
1116
- let h = (e, r, a) => {
1117
- let l = e.lexer.current.type, g = e.lexer.next.type;
1118
- return a == null && l === "?" && !y(g) || a != null && l === "?" ? (e.consume("?"), a == null ? {
1119
- type: "JsdocTypeNullable",
1120
- element: e.parseType(T.NULLABLE),
1121
- meta: {
1122
- position: "prefix"
1123
- }
1124
- } : {
1125
- type: "JsdocTypeNullable",
1126
- element: S(a),
1127
- meta: {
1128
- position: "suffix"
1129
- }
1130
- }) : null;
1131
- };
1132
- function A(e) {
1133
- let r = (a, l, g) => {
1134
- let E = a.lexer.current.type, B = a.lexer.next.type;
1135
- if (g === null) {
1136
- if ("parsePrefix" in e && e.accept(E, B))
1137
- return e.parsePrefix(a);
1138
- } else if ("parseInfix" in e && e.precedence > l && e.accept(E, B))
1139
- return e.parseInfix(a, g);
1140
- return null;
1141
- };
1142
- return Object.defineProperty(r, "name", {
1143
- value: e.name
1144
- }), r;
1145
- }
1146
- let J = A({
1147
- name: "optionalParslet",
1148
- accept: (e) => e === "=",
1149
- precedence: T.OPTIONAL,
1150
- parsePrefix: (e) => (e.consume("="), {
1151
- type: "JsdocTypeOptional",
1152
- element: e.parseType(T.OPTIONAL),
1153
- meta: {
1154
- position: "prefix"
1155
- }
1156
- }),
1157
- parseInfix: (e, r) => (e.consume("="), {
1158
- type: "JsdocTypeOptional",
1159
- element: S(r),
1160
- meta: {
1161
- position: "suffix"
1162
- }
1163
- })
1164
- }), k = A({
1165
- name: "numberParslet",
1166
- accept: (e) => e === "Number",
1167
- parsePrefix: (e) => {
1168
- let r = parseFloat(e.lexer.current.text);
1169
- return e.consume("Number"), {
1170
- type: "JsdocTypeNumber",
1171
- value: r
1172
- };
1173
- }
1174
- }), X = A({
1175
- name: "parenthesisParslet",
1176
- accept: (e) => e === "(",
1177
- parsePrefix: (e) => {
1178
- if (e.consume("("), e.consume(")"))
1179
- return {
1180
- type: "JsdocTypeParameterList",
1181
- elements: []
1182
- };
1183
- let r = e.parseIntermediateType(T.ALL);
1184
- if (!e.consume(")"))
1185
- throw new Error("Unterminated parenthesis");
1186
- return r.type === "JsdocTypeParameterList" ? r : r.type === "JsdocTypeKeyValue" ? {
1187
- type: "JsdocTypeParameterList",
1188
- elements: [r]
1189
- } : {
1190
- type: "JsdocTypeParenthesis",
1191
- element: S(r)
1192
- };
1193
- }
1194
- }), I = A({
1195
- name: "specialTypesParslet",
1196
- accept: (e, r) => e === "?" && y(r) || e === "null" || e === "undefined" || e === "*",
1197
- parsePrefix: (e) => {
1198
- if (e.consume("null"))
1199
- return {
1200
- type: "JsdocTypeNull"
1201
- };
1202
- if (e.consume("undefined"))
1203
- return {
1204
- type: "JsdocTypeUndefined"
1205
- };
1206
- if (e.consume("*"))
1207
- return {
1208
- type: "JsdocTypeAny"
1209
- };
1210
- if (e.consume("?"))
1211
- return {
1212
- type: "JsdocTypeUnknown"
1213
- };
1214
- throw new Error("Unacceptable token: " + e.lexer.current.text);
1215
- }
1216
- }), G = A({
1217
- name: "notNullableParslet",
1218
- accept: (e) => e === "!",
1219
- precedence: T.NULLABLE,
1220
- parsePrefix: (e) => (e.consume("!"), {
1221
- type: "JsdocTypeNotNullable",
1222
- element: e.parseType(T.NULLABLE),
1223
- meta: {
1224
- position: "prefix"
1225
- }
1226
- }),
1227
- parseInfix: (e, r) => (e.consume("!"), {
1228
- type: "JsdocTypeNotNullable",
1229
- element: S(r),
1230
- meta: {
1231
- position: "suffix"
1232
- }
1233
- })
1234
- });
1235
- function ie({ allowTrailingComma: e }) {
1236
- return A({
1237
- name: "parameterListParslet",
1238
- accept: (r) => r === ",",
1239
- precedence: T.PARAMETER_LIST,
1240
- parseInfix: (r, a) => {
1241
- let l = [
1242
- U(a)
1243
- ];
1244
- r.consume(",");
1245
- do
1246
- try {
1247
- let g = r.parseIntermediateType(T.PARAMETER_LIST);
1248
- l.push(U(g));
1249
- } catch (g) {
1250
- if (g instanceof s)
1251
- break;
1252
- throw g;
1253
- }
1254
- while (r.consume(","));
1255
- if (l.length > 0 && l.slice(0, -1).some((g) => g.type === "JsdocTypeVariadic"))
1256
- throw new Error("Only the last parameter may be a rest parameter");
1257
- return {
1258
- type: "JsdocTypeParameterList",
1259
- elements: l
1260
- };
1261
- }
1262
- });
1263
- }
1264
- let Te = A({
1265
- name: "genericParslet",
1266
- accept: (e, r) => e === "<" || e === "." && r === "<",
1267
- precedence: T.GENERIC,
1268
- parseInfix: (e, r) => {
1269
- let a = e.consume(".");
1270
- e.consume("<");
1271
- let l = [], g = !1;
1272
- if (e.consume("infer")) {
1273
- g = !0;
1274
- let E = e.parseIntermediateType(T.SYMBOL);
1275
- if (E.type !== "JsdocTypeName")
1276
- throw new c(E, "A typescript asserts always has to have a name on the left side.");
1277
- l.push(E);
1278
- } else
1279
- do
1280
- l.push(e.parseType(T.PARAMETER_LIST));
1281
- while (e.consume(","));
1282
- if (!e.consume(">"))
1283
- throw new Error("Unterminated generic parameter list");
1284
- return Object.assign(Object.assign({ type: "JsdocTypeGeneric", left: S(r), elements: l }, g ? { infer: !0 } : {}), { meta: {
1285
- brackets: "angle",
1286
- dot: a
1287
- } });
1288
- }
1289
- }), z = A({
1290
- name: "unionParslet",
1291
- accept: (e) => e === "|",
1292
- precedence: T.UNION,
1293
- parseInfix: (e, r) => {
1294
- e.consume("|");
1295
- let a = [];
1296
- do
1297
- a.push(e.parseType(T.UNION));
1298
- while (e.consume("|"));
1299
- return {
1300
- type: "JsdocTypeUnion",
1301
- elements: [S(r), ...a]
1302
- };
1303
- }
1304
- }), te = [
1305
- h,
1306
- J,
1307
- k,
1308
- X,
1309
- I,
1310
- G,
1311
- ie({
1312
- allowTrailingComma: !0
1313
- }),
1314
- Te,
1315
- z,
1316
- J
1317
- ];
1318
- function ue({ allowSquareBracketsOnAnyType: e, allowJsdocNamePaths: r, pathGrammar: a }) {
1319
- return function(l, g, E) {
1320
- if (E == null || g >= T.NAME_PATH)
1321
- return null;
1322
- let B = l.lexer.current.type, M = l.lexer.next.type;
1323
- if (!(B === "." && M !== "<" || B === "[" && (e || E.type === "JsdocTypeName") || r && (B === "~" || B === "#")))
1324
- return null;
1325
- let K, Q = !1;
1326
- l.consume(".") ? K = "property" : l.consume("[") ? (K = "property-brackets", Q = !0) : l.consume("~") ? K = "inner" : (l.consume("#"), K = "instance");
1327
- let le = a !== null ? new p(a, l.lexer, l) : l, ae = le.parseIntermediateType(T.NAME_PATH);
1328
- l.acceptLexerState(le);
1329
- let Fe;
1330
- switch (ae.type) {
1331
- case "JsdocTypeName":
1332
- Fe = {
1333
- type: "JsdocTypeProperty",
1334
- value: ae.value,
1335
- meta: {
1336
- quote: void 0
1337
- }
1338
- };
1339
- break;
1340
- case "JsdocTypeNumber":
1341
- Fe = {
1342
- type: "JsdocTypeProperty",
1343
- value: ae.value.toString(10),
1344
- meta: {
1345
- quote: void 0
1346
- }
1347
- };
1348
- break;
1349
- case "JsdocTypeStringValue":
1350
- Fe = {
1351
- type: "JsdocTypeProperty",
1352
- value: ae.value,
1353
- meta: {
1354
- quote: ae.meta.quote
1355
- }
1356
- };
1357
- break;
1358
- case "JsdocTypeSpecialNamePath":
1359
- if (ae.specialType === "event")
1360
- Fe = ae;
1361
- else
1362
- throw new c(ae, "Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");
1363
- break;
1364
- default:
1365
- throw new c(ae, "Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'");
1366
- }
1367
- if (Q && !l.consume("]")) {
1368
- let ut = l.lexer.current;
1369
- throw new Error(`Unterminated square brackets. Next token is '${ut.type}' with text '${ut.text}'`);
1370
- }
1371
- return {
1372
- type: "JsdocTypeNamePath",
1373
- left: S(E),
1374
- right: Fe,
1375
- pathType: K
1376
- };
1377
- };
1378
- }
1379
- function ne({ allowedAdditionalTokens: e }) {
1380
- return A({
1381
- name: "nameParslet",
1382
- accept: (r) => r === "Identifier" || r === "this" || r === "new" || e.includes(r),
1383
- parsePrefix: (r) => {
1384
- let { type: a, text: l } = r.lexer.current;
1385
- return r.consume(a), {
1386
- type: "JsdocTypeName",
1387
- value: l
1388
- };
1389
- }
1390
- });
1391
- }
1392
- let fe = A({
1393
- name: "stringValueParslet",
1394
- accept: (e) => e === "StringValue",
1395
- parsePrefix: (e) => {
1396
- let r = e.lexer.current.text;
1397
- return e.consume("StringValue"), {
1398
- type: "JsdocTypeStringValue",
1399
- value: r.slice(1, -1),
1400
- meta: {
1401
- quote: r[0] === "'" ? "single" : "double"
1402
- }
1403
- };
1404
- }
1405
- });
1406
- function oe({ pathGrammar: e, allowedTypes: r }) {
1407
- return A({
1408
- name: "specialNamePathParslet",
1409
- accept: (a) => r.includes(a),
1410
- parsePrefix: (a) => {
1411
- let l = a.lexer.current.type;
1412
- if (a.consume(l), !a.consume(":"))
1413
- return {
1414
- type: "JsdocTypeName",
1415
- value: l
1416
- };
1417
- let g, E = a.lexer.current;
1418
- if (a.consume("StringValue"))
1419
- g = {
1420
- type: "JsdocTypeSpecialNamePath",
1421
- value: E.text.slice(1, -1),
1422
- specialType: l,
1423
- meta: {
1424
- quote: E.text[0] === "'" ? "single" : "double"
1425
- }
1426
- };
1427
- else {
1428
- let K = "", Q = ["Identifier", "@", "/"];
1429
- for (; Q.some((le) => a.consume(le)); )
1430
- K += E.text, E = a.lexer.current;
1431
- g = {
1432
- type: "JsdocTypeSpecialNamePath",
1433
- value: K,
1434
- specialType: l,
1435
- meta: {
1436
- quote: void 0
1437
- }
1438
- };
1439
- }
1440
- let B = new p(e, a.lexer, a), M = B.parseInfixIntermediateType(g, T.ALL);
1441
- return a.acceptLexerState(B), S(M);
1442
- }
1443
- });
1444
- }
1445
- let be = [
1446
- ne({
1447
- allowedAdditionalTokens: ["external", "module"]
1448
- }),
1449
- fe,
1450
- k,
1451
- ue({
1452
- allowSquareBracketsOnAnyType: !1,
1453
- allowJsdocNamePaths: !0,
1454
- pathGrammar: null
1455
- })
1456
- ], se = [
1457
- ...be,
1458
- oe({
1459
- allowedTypes: ["event"],
1460
- pathGrammar: be
1461
- })
1462
- ];
1463
- function Ee(e) {
1464
- let r;
1465
- if (e.type === "JsdocTypeParameterList")
1466
- r = e.elements;
1467
- else if (e.type === "JsdocTypeParenthesis")
1468
- r = [e.element];
1469
- else
1470
- throw new c(e);
1471
- return r.map((a) => U(a));
1472
- }
1473
- function Re(e) {
1474
- let r = Ee(e);
1475
- if (r.some((a) => a.type === "JsdocTypeKeyValue"))
1476
- throw new Error("No parameter should be named");
1477
- return r;
1478
- }
1479
- function Z({ allowNamedParameters: e, allowNoReturnType: r, allowWithoutParenthesis: a, allowNewAsFunctionKeyword: l }) {
1480
- return A({
1481
- name: "functionParslet",
1482
- accept: (g, E) => g === "function" || l && g === "new" && E === "(",
1483
- parsePrefix: (g) => {
1484
- let E = g.consume("new");
1485
- g.consume("function");
1486
- let B = g.lexer.current.type === "(";
1487
- if (!B) {
1488
- if (!a)
1489
- throw new Error("function is missing parameter list");
1490
- return {
1491
- type: "JsdocTypeName",
1492
- value: "function"
1493
- };
1494
- }
1495
- let M = {
1496
- type: "JsdocTypeFunction",
1497
- parameters: [],
1498
- arrow: !1,
1499
- constructor: E,
1500
- parenthesis: B
1501
- }, K = g.parseIntermediateType(T.FUNCTION);
1502
- if (e === void 0)
1503
- M.parameters = Re(K);
1504
- else {
1505
- if (E && K.type === "JsdocTypeFunction" && K.arrow)
1506
- return M = K, M.constructor = !0, M;
1507
- M.parameters = Ee(K);
1508
- for (let Q of M.parameters)
1509
- if (Q.type === "JsdocTypeKeyValue" && !e.includes(Q.key))
1510
- throw new Error(`only allowed named parameters are ${e.join(", ")} but got ${Q.type}`);
1511
- }
1512
- if (g.consume(":"))
1513
- M.returnType = g.parseType(T.PREFIX);
1514
- else if (!r)
1515
- throw new Error("function is missing return type");
1516
- return M;
1517
- }
1518
- });
1519
- }
1520
- function ee({ allowPostfix: e, allowEnclosingBrackets: r }) {
1521
- return A({
1522
- name: "variadicParslet",
1523
- accept: (a) => a === "...",
1524
- precedence: T.PREFIX,
1525
- parsePrefix: (a) => {
1526
- a.consume("...");
1527
- let l = r && a.consume("[");
1528
- try {
1529
- let g = a.parseType(T.PREFIX);
1530
- if (l && !a.consume("]"))
1531
- throw new Error("Unterminated variadic type. Missing ']'");
1532
- return {
1533
- type: "JsdocTypeVariadic",
1534
- element: S(g),
1535
- meta: {
1536
- position: "prefix",
1537
- squareBrackets: l
1538
- }
1539
- };
1540
- } catch (g) {
1541
- if (g instanceof s) {
1542
- if (l)
1543
- throw new Error("Empty square brackets for variadic are not allowed.");
1544
- return {
1545
- type: "JsdocTypeVariadic",
1546
- meta: {
1547
- position: void 0,
1548
- squareBrackets: !1
1549
- }
1550
- };
1551
- } else
1552
- throw g;
1553
- }
1554
- },
1555
- parseInfix: e ? (a, l) => (a.consume("..."), {
1556
- type: "JsdocTypeVariadic",
1557
- element: S(l),
1558
- meta: {
1559
- position: "suffix",
1560
- squareBrackets: !1
1561
- }
1562
- }) : void 0
1563
- });
1564
- }
1565
- let he = A({
1566
- name: "symbolParslet",
1567
- accept: (e) => e === "(",
1568
- precedence: T.SYMBOL,
1569
- parseInfix: (e, r) => {
1570
- if (r.type !== "JsdocTypeName")
1571
- throw new Error("Symbol expects a name on the left side. (Reacting on '(')");
1572
- e.consume("(");
1573
- let a = {
1574
- type: "JsdocTypeSymbol",
1575
- value: r.value
1576
- };
1577
- if (!e.consume(")")) {
1578
- let l = e.parseIntermediateType(T.SYMBOL);
1579
- if (a.element = _(l), !e.consume(")"))
1580
- throw new Error("Symbol does not end after value");
1581
- }
1582
- return a;
1583
- }
1584
- }), ve = A({
1585
- name: "arrayBracketsParslet",
1586
- precedence: T.ARRAY_BRACKETS,
1587
- accept: (e, r) => e === "[" && r === "]",
1588
- parseInfix: (e, r) => (e.consume("["), e.consume("]"), {
1589
- type: "JsdocTypeGeneric",
1590
- left: {
1591
- type: "JsdocTypeName",
1592
- value: "Array"
1593
- },
1594
- elements: [
1595
- S(r)
1596
- ],
1597
- meta: {
1598
- brackets: "square",
1599
- dot: !1
1600
- }
1601
- })
1602
- });
1603
- function we({ objectFieldGrammar: e, allowKeyTypes: r }) {
1604
- return A({
1605
- name: "objectParslet",
1606
- accept: (a) => a === "{",
1607
- parsePrefix: (a) => {
1608
- a.consume("{");
1609
- let l = {
1610
- type: "JsdocTypeObject",
1611
- meta: {
1612
- separator: "comma"
1613
- },
1614
- elements: []
1615
- };
1616
- if (!a.consume("}")) {
1617
- let g, E = new p(e, a.lexer, a);
1618
- for (; ; ) {
1619
- E.acceptLexerState(a);
1620
- let B = E.parseIntermediateType(T.OBJECT);
1621
- a.acceptLexerState(E), B === void 0 && r && (B = a.parseIntermediateType(T.OBJECT));
1622
- let M = !1;
1623
- if (B.type === "JsdocTypeNullable" && (M = !0, B = B.element), B.type === "JsdocTypeNumber" || B.type === "JsdocTypeName" || B.type === "JsdocTypeStringValue") {
1624
- let K;
1625
- B.type === "JsdocTypeStringValue" && (K = B.meta.quote), l.elements.push({
1626
- type: "JsdocTypeObjectField",
1627
- key: B.value.toString(),
1628
- right: void 0,
1629
- optional: M,
1630
- readonly: !1,
1631
- meta: {
1632
- quote: K
1633
- }
1634
- });
1635
- } else if (B.type === "JsdocTypeObjectField" || B.type === "JsdocTypeJsdocObjectField")
1636
- l.elements.push(B);
1637
- else
1638
- throw new c(B);
1639
- if (a.lexer.current.startOfLine)
1640
- g = "linebreak", a.consume(",") || a.consume(";");
1641
- else if (a.consume(","))
1642
- g = "comma";
1643
- else if (a.consume(";"))
1644
- g = "semicolon";
1645
- else
1646
- break;
1647
- if (a.lexer.current.type === "}")
1648
- break;
1649
- }
1650
- if (l.meta.separator = g ?? "comma", g === "linebreak" && (l.meta.propertyIndent = " "), !a.consume("}"))
1651
- throw new Error("Unterminated record type. Missing '}'");
1652
- }
1653
- return l;
1654
- }
1655
- });
1656
- }
1657
- function Ce({ allowSquaredProperties: e, allowKeyTypes: r, allowReadonly: a, allowOptional: l }) {
1658
- return A({
1659
- name: "objectFieldParslet",
1660
- precedence: T.KEY_VALUE,
1661
- accept: (g) => g === ":",
1662
- parseInfix: (g, E) => {
1663
- var B;
1664
- let M = !1, K = !1;
1665
- l && E.type === "JsdocTypeNullable" && (M = !0, E = E.element), a && E.type === "JsdocTypeReadonlyProperty" && (K = !0, E = E.element);
1666
- let Q = (B = g.baseParser) !== null && B !== void 0 ? B : g;
1667
- if (Q.acceptLexerState(g), E.type === "JsdocTypeNumber" || E.type === "JsdocTypeName" || E.type === "JsdocTypeStringValue" || H(E)) {
1668
- if (H(E) && !e)
1669
- throw new c(E);
1670
- Q.consume(":");
1671
- let le;
1672
- E.type === "JsdocTypeStringValue" && (le = E.meta.quote);
1673
- let ae = Q.parseType(T.KEY_VALUE);
1674
- return g.acceptLexerState(Q), {
1675
- type: "JsdocTypeObjectField",
1676
- key: H(E) ? E : E.value.toString(),
1677
- right: ae,
1678
- optional: M,
1679
- readonly: K,
1680
- meta: {
1681
- quote: le
1682
- }
1683
- };
1684
- } else {
1685
- if (!r)
1686
- throw new c(E);
1687
- Q.consume(":");
1688
- let le = Q.parseType(T.KEY_VALUE);
1689
- return g.acceptLexerState(Q), {
1690
- type: "JsdocTypeJsdocObjectField",
1691
- left: S(E),
1692
- right: le
1693
- };
1694
- }
1695
- }
1696
- });
1697
- }
1698
- function Ie({ allowOptional: e, allowVariadic: r }) {
1699
- return A({
1700
- name: "keyValueParslet",
1701
- precedence: T.KEY_VALUE,
1702
- accept: (a) => a === ":",
1703
- parseInfix: (a, l) => {
1704
- let g = !1, E = !1;
1705
- if (e && l.type === "JsdocTypeNullable" && (g = !0, l = l.element), r && l.type === "JsdocTypeVariadic" && l.element !== void 0 && (E = !0, l = l.element), l.type !== "JsdocTypeName")
1706
- throw new c(l);
1707
- a.consume(":");
1708
- let B = a.parseType(T.KEY_VALUE);
1709
- return {
1710
- type: "JsdocTypeKeyValue",
1711
- key: l.value,
1712
- right: B,
1713
- optional: g,
1714
- variadic: E
1715
- };
1716
- }
1717
- });
1718
- }
1719
- let $e = [
1720
- ...te,
1721
- Z({
1722
- allowWithoutParenthesis: !0,
1723
- allowNamedParameters: ["this", "new"],
1724
- allowNoReturnType: !0,
1725
- allowNewAsFunctionKeyword: !1
1726
- }),
1727
- fe,
1728
- oe({
1729
- allowedTypes: ["module", "external", "event"],
1730
- pathGrammar: se
1731
- }),
1732
- ee({
1733
- allowEnclosingBrackets: !0,
1734
- allowPostfix: !0
1735
- }),
1736
- ne({
1737
- allowedAdditionalTokens: ["keyof"]
1738
- }),
1739
- he,
1740
- ve,
1741
- ue({
1742
- allowSquareBracketsOnAnyType: !1,
1743
- allowJsdocNamePaths: !0,
1744
- pathGrammar: se
1745
- })
1746
- ], qt = [
1747
- ...$e,
1748
- we({
1749
- // jsdoc syntax allows full types as keys, so we need to pull in the full grammar here
1750
- // we leave out the object type deliberately
1751
- objectFieldGrammar: [
1752
- ne({
1753
- allowedAdditionalTokens: ["typeof", "module", "in"]
1754
- }),
1755
- Ce({
1756
- allowSquaredProperties: !1,
1757
- allowKeyTypes: !0,
1758
- allowOptional: !1,
1759
- allowReadonly: !1
1760
- }),
1761
- ...$e
1762
- ],
1763
- allowKeyTypes: !0
1764
- }),
1765
- Ie({
1766
- allowOptional: !0,
1767
- allowVariadic: !0
1768
- })
1769
- ], Qe = A({
1770
- name: "typeOfParslet",
1771
- accept: (e) => e === "typeof",
1772
- parsePrefix: (e) => (e.consume("typeof"), {
1773
- type: "JsdocTypeTypeof",
1774
- element: e.parseType(T.KEY_OF_TYPE_OF)
1775
- })
1776
- }), kt = [
1777
- ne({
1778
- allowedAdditionalTokens: ["typeof", "module", "keyof", "event", "external", "in"]
1779
- }),
1780
- h,
1781
- J,
1782
- fe,
1783
- k,
1784
- Ce({
1785
- allowSquaredProperties: !1,
1786
- allowKeyTypes: !1,
1787
- allowOptional: !1,
1788
- allowReadonly: !1
1789
- })
1790
- ], _t = [
1791
- ...te,
1792
- we({
1793
- allowKeyTypes: !1,
1794
- objectFieldGrammar: kt
1795
- }),
1796
- ne({
1797
- allowedAdditionalTokens: ["event", "external", "in"]
1798
- }),
1799
- Qe,
1800
- Z({
1801
- allowWithoutParenthesis: !1,
1802
- allowNamedParameters: ["this", "new"],
1803
- allowNoReturnType: !0,
1804
- allowNewAsFunctionKeyword: !1
1805
- }),
1806
- ee({
1807
- allowEnclosingBrackets: !1,
1808
- allowPostfix: !1
1809
- }),
1810
- // additional name parslet is needed for some special cases
1811
- ne({
1812
- allowedAdditionalTokens: ["keyof"]
1813
- }),
1814
- oe({
1815
- allowedTypes: ["module"],
1816
- pathGrammar: se
1817
- }),
1818
- ue({
1819
- allowSquareBracketsOnAnyType: !1,
1820
- allowJsdocNamePaths: !0,
1821
- pathGrammar: se
1822
- }),
1823
- Ie({
1824
- allowOptional: !1,
1825
- allowVariadic: !1
1826
- }),
1827
- he
1828
- ], Lt = A({
1829
- name: "assertsParslet",
1830
- accept: (e) => e === "asserts",
1831
- parsePrefix: (e) => {
1832
- e.consume("asserts");
1833
- let r = e.parseIntermediateType(T.SYMBOL);
1834
- if (r.type !== "JsdocTypeName")
1835
- throw new c(r, "A typescript asserts always has to have a name on the left side.");
1836
- return e.consume("is") ? {
1837
- type: "JsdocTypeAsserts",
1838
- left: r,
1839
- right: S(e.parseIntermediateType(T.INFIX))
1840
- } : {
1841
- type: "JsdocTypeAssertsPlain",
1842
- element: r
1843
- };
1844
- }
1845
- });
1846
- function Rt({ allowQuestionMark: e }) {
1847
- return A({
1848
- name: "tupleParslet",
1849
- accept: (r) => r === "[",
1850
- parsePrefix: (r) => {
1851
- r.consume("[");
1852
- let a = {
1853
- type: "JsdocTypeTuple",
1854
- elements: []
1855
- };
1856
- if (r.consume("]"))
1857
- return a;
1858
- let l = r.parseIntermediateType(T.ALL);
1859
- if (l.type === "JsdocTypeParameterList" ? l.elements[0].type === "JsdocTypeKeyValue" ? a.elements = l.elements.map(q) : a.elements = l.elements.map(S) : l.type === "JsdocTypeKeyValue" ? a.elements = [q(l)] : a.elements = [S(l)], !r.consume("]"))
1860
- throw new Error("Unterminated '['");
1861
- if (a.elements.some((g) => g.type === "JsdocTypeUnknown"))
1862
- throw new Error("Question mark in tuple not allowed");
1863
- return a;
1864
- }
1865
- });
1866
- }
1867
- let It = A({
1868
- name: "keyOfParslet",
1869
- accept: (e) => e === "keyof",
1870
- parsePrefix: (e) => (e.consume("keyof"), {
1871
- type: "JsdocTypeKeyof",
1872
- element: S(e.parseType(T.KEY_OF_TYPE_OF))
1873
- })
1874
- }), jt = A({
1875
- name: "importParslet",
1876
- accept: (e) => e === "import",
1877
- parsePrefix: (e) => {
1878
- if (e.consume("import"), !e.consume("("))
1879
- throw new Error("Missing parenthesis after import keyword");
1880
- let r = e.parseType(T.PREFIX);
1881
- if (r.type !== "JsdocTypeStringValue")
1882
- throw new Error("Only string values are allowed as paths for imports");
1883
- if (!e.consume(")"))
1884
- throw new Error("Missing closing parenthesis after import keyword");
1885
- return {
1886
- type: "JsdocTypeImport",
1887
- element: r
1888
- };
1889
- }
1890
- }), Ut = A({
1891
- name: "readonlyPropertyParslet",
1892
- accept: (e) => e === "readonly",
1893
- parsePrefix: (e) => (e.consume("readonly"), {
1894
- type: "JsdocTypeReadonlyProperty",
1895
- element: e.parseIntermediateType(T.KEY_VALUE)
1896
- })
1897
- }), Mt = A({
1898
- name: "arrowFunctionParslet",
1899
- precedence: T.ARROW,
1900
- accept: (e) => e === "=>",
1901
- parseInfix: (e, r) => (e.consume("=>"), {
1902
- type: "JsdocTypeFunction",
1903
- parameters: Ee(r).map(R),
1904
- arrow: !0,
1905
- constructor: !1,
1906
- parenthesis: !0,
1907
- returnType: e.parseType(T.OBJECT)
1908
- })
1909
- }), Vt = A({
1910
- name: "genericArrowFunctionParslet",
1911
- accept: (e) => e === "<",
1912
- parsePrefix: (e) => {
1913
- let r = [];
1914
- e.consume("<");
1915
- do {
1916
- let l, g = e.parseIntermediateType(T.SYMBOL);
1917
- if (g.type === "JsdocTypeOptional" && (g = g.element, l = e.parseType(T.SYMBOL)), g.type !== "JsdocTypeName")
1918
- throw new c(g);
1919
- let E;
1920
- e.consume("extends") && (E = e.parseType(T.SYMBOL), E.type === "JsdocTypeOptional" && (E = E.element, l = e.parseType(T.SYMBOL)));
1921
- let B = {
1922
- type: "JsdocTypeTypeParameter",
1923
- name: g
1924
- };
1925
- if (E !== void 0 && (B.constraint = E), l !== void 0 && (B.defaultValue = l), r.push(B), e.consume(">"))
1926
- break;
1927
- } while (e.consume(","));
1928
- let a = e.parseIntermediateType(T.SYMBOL);
1929
- return a.typeParameters = r, a;
1930
- }
1931
- }), Ht = A({
1932
- name: "intersectionParslet",
1933
- accept: (e) => e === "&",
1934
- precedence: T.INTERSECTION,
1935
- parseInfix: (e, r) => {
1936
- e.consume("&");
1937
- let a = [];
1938
- do
1939
- a.push(e.parseType(T.INTERSECTION));
1940
- while (e.consume("&"));
1941
- return {
1942
- type: "JsdocTypeIntersection",
1943
- elements: [S(r), ...a]
1944
- };
1945
- }
1946
- }), Kt = A({
1947
- name: "predicateParslet",
1948
- precedence: T.INFIX,
1949
- accept: (e) => e === "is",
1950
- parseInfix: (e, r) => {
1951
- if (r.type !== "JsdocTypeName")
1952
- throw new c(r, "A typescript predicate always has to have a name on the left side.");
1953
- return e.consume("is"), {
1954
- type: "JsdocTypePredicate",
1955
- left: r,
1956
- right: S(e.parseIntermediateType(T.INFIX))
1957
- };
1958
- }
1959
- }), Gt = A({
1960
- name: "objectSquareBracketPropertyParslet",
1961
- accept: (e) => e === "[",
1962
- parsePrefix: (e) => {
1963
- if (e.baseParser === void 0)
1964
- throw new Error("Only allowed inside object grammar");
1965
- e.consume("[");
1966
- let r = e.lexer.current.text;
1967
- e.consume("Identifier");
1968
- let a;
1969
- if (e.consume(":")) {
1970
- let l = e.baseParser;
1971
- l.acceptLexerState(e), a = {
1972
- type: "JsdocTypeIndexSignature",
1973
- key: r,
1974
- right: l.parseType(T.INDEX_BRACKETS)
1975
- }, e.acceptLexerState(l);
1976
- } else if (e.consume("in")) {
1977
- let l = e.baseParser;
1978
- l.acceptLexerState(e), a = {
1979
- type: "JsdocTypeMappedType",
1980
- key: r,
1981
- right: l.parseType(T.ARRAY_BRACKETS)
1982
- }, e.acceptLexerState(l);
1983
- } else
1984
- throw new Error("Missing ':' or 'in' inside square bracketed property.");
1985
- if (!e.consume("]"))
1986
- throw new Error("Unterminated square brackets");
1987
- return a;
1988
- }
1989
- }), zt = A({
1990
- name: "readonlyArrayParslet",
1991
- accept: (e) => e === "readonly",
1992
- parsePrefix: (e) => (e.consume("readonly"), {
1993
- type: "JsdocTypeReadonlyArray",
1994
- element: V(e.parseIntermediateType(T.ALL))
1995
- })
1996
- }), Yt = A({
1997
- name: "conditionalParslet",
1998
- precedence: T.INFIX,
1999
- accept: (e) => e === "extends",
2000
- parseInfix: (e, r) => {
2001
- e.consume("extends");
2002
- let a = e.parseType(T.KEY_OF_TYPE_OF).element, l = e.parseType(T.INFIX);
2003
- return e.consume(":"), {
2004
- type: "JsdocTypeConditional",
2005
- checksType: S(r),
2006
- extendsType: a,
2007
- trueType: l,
2008
- falseType: e.parseType(T.INFIX)
2009
- };
2010
- }
2011
- }), Xt = [
2012
- Ut,
2013
- ne({
2014
- allowedAdditionalTokens: ["typeof", "module", "keyof", "event", "external", "in"]
2015
- }),
2016
- h,
2017
- J,
2018
- fe,
2019
- k,
2020
- Ce({
2021
- allowSquaredProperties: !0,
2022
- allowKeyTypes: !1,
2023
- allowOptional: !0,
2024
- allowReadonly: !0
2025
- }),
2026
- Gt
2027
- ], Wt = [
2028
- ...te,
2029
- we({
2030
- allowKeyTypes: !1,
2031
- objectFieldGrammar: Xt
2032
- }),
2033
- zt,
2034
- Qe,
2035
- It,
2036
- jt,
2037
- fe,
2038
- Z({
2039
- allowWithoutParenthesis: !0,
2040
- allowNoReturnType: !1,
2041
- allowNamedParameters: ["this", "new", "args"],
2042
- allowNewAsFunctionKeyword: !0
2043
- }),
2044
- Rt({
2045
- allowQuestionMark: !1
2046
- }),
2047
- ee({
2048
- allowEnclosingBrackets: !1,
2049
- allowPostfix: !1
2050
- }),
2051
- Lt,
2052
- Yt,
2053
- ne({
2054
- allowedAdditionalTokens: ["event", "external", "in"]
2055
- }),
2056
- oe({
2057
- allowedTypes: ["module"],
2058
- pathGrammar: se
2059
- }),
2060
- ve,
2061
- Mt,
2062
- Vt,
2063
- ue({
2064
- allowSquareBracketsOnAnyType: !0,
2065
- allowJsdocNamePaths: !1,
2066
- pathGrammar: se
2067
- }),
2068
- Ht,
2069
- Kt,
2070
- Ie({
2071
- allowVariadic: !0,
2072
- allowOptional: !0
2073
- })
2074
- ];
2075
- function Ze(e, r) {
2076
- switch (r) {
2077
- case "closure":
2078
- return new p(_t, e).parse();
2079
- case "jsdoc":
2080
- return new p(qt, e).parse();
2081
- case "typescript":
2082
- return new p(Wt, e).parse();
2083
- }
2084
- }
2085
- function $t(e, r = ["typescript", "closure", "jsdoc"]) {
2086
- let a;
2087
- for (let l of r)
2088
- try {
2089
- return Ze(e, l);
2090
- } catch (g) {
2091
- a = g;
2092
- }
2093
- throw a;
2094
- }
2095
- function xe(e, r) {
2096
- let a = e[r.type];
2097
- if (a === void 0)
2098
- throw new Error(`In this set of transform rules exists no rule for type ${r.type}.`);
2099
- return a(r, (l) => xe(e, l));
2100
- }
2101
- function j(e) {
2102
- throw new Error("This transform is not available. Are you trying the correct parsing mode?");
2103
- }
2104
- function et(e) {
2105
- let r = {
2106
- params: []
2107
- };
2108
- for (let a of e.parameters)
2109
- a.type === "JsdocTypeKeyValue" ? a.key === "this" ? r.this = a.right : a.key === "new" ? r.new = a.right : r.params.push(a) : r.params.push(a);
2110
- return r;
2111
- }
2112
- function Pe(e, r, a) {
2113
- return e === "prefix" ? a + r : r + a;
2114
- }
2115
- function ce(e, r) {
2116
- switch (r) {
2117
- case "double":
2118
- return `"${e}"`;
2119
- case "single":
2120
- return `'${e}'`;
2121
- case void 0:
2122
- return e;
2123
- }
2124
- }
2125
- function tt() {
2126
- return {
2127
- JsdocTypeParenthesis: (e, r) => `(${e.element !== void 0 ? r(e.element) : ""})`,
2128
- JsdocTypeKeyof: (e, r) => `keyof ${r(e.element)}`,
2129
- JsdocTypeFunction: (e, r) => {
2130
- var a;
2131
- if (e.arrow) {
2132
- if (e.returnType === void 0)
2133
- throw new Error("Arrow function needs a return type.");
2134
- let l = `${e.typeParameters !== void 0 ? `<${(a = e.typeParameters.map(r).join(", ")) !== null && a !== void 0 ? a : ""}>` : ""}(${e.parameters.map(r).join(", ")}) => ${r(e.returnType)}`;
2135
- return e.constructor && (l = "new " + l), l;
2136
- } else {
2137
- let l = e.constructor ? "new" : "function";
2138
- return e.parenthesis && (l += `(${e.parameters.map(r).join(", ")})`, e.returnType !== void 0 && (l += `: ${r(e.returnType)}`)), l;
2139
- }
2140
- },
2141
- JsdocTypeName: (e) => e.value,
2142
- JsdocTypeTuple: (e, r) => `[${e.elements.map(r).join(", ")}]`,
2143
- JsdocTypeVariadic: (e, r) => e.meta.position === void 0 ? "..." : Pe(e.meta.position, r(e.element), "..."),
2144
- JsdocTypeNamePath: (e, r) => {
2145
- let a = r(e.left), l = r(e.right);
2146
- switch (e.pathType) {
2147
- case "inner":
2148
- return `${a}~${l}`;
2149
- case "instance":
2150
- return `${a}#${l}`;
2151
- case "property":
2152
- return `${a}.${l}`;
2153
- case "property-brackets":
2154
- return `${a}[${l}]`;
2155
- }
2156
- },
2157
- JsdocTypeStringValue: (e) => ce(e.value, e.meta.quote),
2158
- JsdocTypeAny: () => "*",
2159
- JsdocTypeGeneric: (e, r) => {
2160
- if (e.meta.brackets === "square") {
2161
- let a = e.elements[0], l = r(a);
2162
- return a.type === "JsdocTypeUnion" || a.type === "JsdocTypeIntersection" ? `(${l})[]` : `${l}[]`;
2163
- } else
2164
- return `${r(e.left)}${e.meta.dot ? "." : ""}<${e.infer === !0 ? "infer " : ""}${e.elements.map(r).join(", ")}>`;
2165
- },
2166
- JsdocTypeImport: (e, r) => `import(${r(e.element)})`,
2167
- JsdocTypeObjectField: (e, r) => {
2168
- let a = "";
2169
- return e.readonly && (a += "readonly "), typeof e.key == "string" ? a += ce(e.key, e.meta.quote) : a += r(e.key), e.optional && (a += "?"), e.right === void 0 ? a : a + `: ${r(e.right)}`;
2170
- },
2171
- JsdocTypeJsdocObjectField: (e, r) => `${r(e.left)}: ${r(e.right)}`,
2172
- JsdocTypeKeyValue: (e, r) => {
2173
- let a = e.key;
2174
- return e.optional && (a += "?"), e.variadic && (a = "..." + a), e.right === void 0 ? a : a + `: ${r(e.right)}`;
2175
- },
2176
- JsdocTypeSpecialNamePath: (e) => `${e.specialType}:${ce(e.value, e.meta.quote)}`,
2177
- JsdocTypeNotNullable: (e, r) => Pe(e.meta.position, r(e.element), "!"),
2178
- JsdocTypeNull: () => "null",
2179
- JsdocTypeNullable: (e, r) => Pe(e.meta.position, r(e.element), "?"),
2180
- JsdocTypeNumber: (e) => e.value.toString(),
2181
- JsdocTypeObject: (e, r) => {
2182
- var a, l;
2183
- return `{${(e.meta.separator === "linebreak" && e.elements.length > 1 ? `
2184
- ` + ((a = e.meta.propertyIndent) !== null && a !== void 0 ? a : "") : "") + e.elements.map(r).join(e.meta.separator === "comma" ? ", " : e.meta.separator === "linebreak" ? `
2185
- ` + ((l = e.meta.propertyIndent) !== null && l !== void 0 ? l : "") : "; ") + (e.meta.separator === "linebreak" && e.elements.length > 1 ? `
2186
- ` : "")}}`;
2187
- },
2188
- JsdocTypeOptional: (e, r) => Pe(e.meta.position, r(e.element), "="),
2189
- JsdocTypeSymbol: (e, r) => `${e.value}(${e.element !== void 0 ? r(e.element) : ""})`,
2190
- JsdocTypeTypeof: (e, r) => `typeof ${r(e.element)}`,
2191
- JsdocTypeUndefined: () => "undefined",
2192
- JsdocTypeUnion: (e, r) => e.elements.map(r).join(" | "),
2193
- JsdocTypeUnknown: () => "?",
2194
- JsdocTypeIntersection: (e, r) => e.elements.map(r).join(" & "),
2195
- JsdocTypeProperty: (e) => ce(e.value, e.meta.quote),
2196
- JsdocTypePredicate: (e, r) => `${r(e.left)} is ${r(e.right)}`,
2197
- JsdocTypeIndexSignature: (e, r) => `[${e.key}: ${r(e.right)}]`,
2198
- JsdocTypeMappedType: (e, r) => `[${e.key} in ${r(e.right)}]`,
2199
- JsdocTypeAsserts: (e, r) => `asserts ${r(e.left)} is ${r(e.right)}`,
2200
- JsdocTypeReadonlyArray: (e, r) => `readonly ${r(e.element)}`,
2201
- JsdocTypeAssertsPlain: (e, r) => `asserts ${r(e.element)}`,
2202
- JsdocTypeConditional: (e, r) => `${r(e.checksType)} extends ${r(e.extendsType)} ? ${r(e.trueType)} : ${r(e.falseType)}`,
2203
- JsdocTypeTypeParameter: (e, r) => `${r(e.name)}${e.constraint !== void 0 ? ` extends ${r(e.constraint)}` : ""}${e.defaultValue !== void 0 ? ` = ${r(e.defaultValue)}` : ""}`
2204
- };
2205
- }
2206
- let Qt = tt();
2207
- function Zt(e) {
2208
- return xe(Qt, e);
2209
- }
2210
- let er = [
2211
- "null",
2212
- "true",
2213
- "false",
2214
- "break",
2215
- "case",
2216
- "catch",
2217
- "class",
2218
- "const",
2219
- "continue",
2220
- "debugger",
2221
- "default",
2222
- "delete",
2223
- "do",
2224
- "else",
2225
- "export",
2226
- "extends",
2227
- "finally",
2228
- "for",
2229
- "function",
2230
- "if",
2231
- "import",
2232
- "in",
2233
- "instanceof",
2234
- "new",
2235
- "return",
2236
- "super",
2237
- "switch",
2238
- "this",
2239
- "throw",
2240
- "try",
2241
- "typeof",
2242
- "var",
2243
- "void",
2244
- "while",
2245
- "with",
2246
- "yield"
2247
- ];
2248
- function pe(e) {
2249
- let r = {
2250
- type: "NameExpression",
2251
- name: e
2252
- };
2253
- return er.includes(e) && (r.reservedWord = !0), r;
2254
- }
2255
- let tr = {
2256
- JsdocTypeOptional: (e, r) => {
2257
- let a = r(e.element);
2258
- return a.optional = !0, a;
2259
- },
2260
- JsdocTypeNullable: (e, r) => {
2261
- let a = r(e.element);
2262
- return a.nullable = !0, a;
2263
- },
2264
- JsdocTypeNotNullable: (e, r) => {
2265
- let a = r(e.element);
2266
- return a.nullable = !1, a;
2267
- },
2268
- JsdocTypeVariadic: (e, r) => {
2269
- if (e.element === void 0)
2270
- throw new Error("dots without value are not allowed in catharsis mode");
2271
- let a = r(e.element);
2272
- return a.repeatable = !0, a;
2273
- },
2274
- JsdocTypeAny: () => ({
2275
- type: "AllLiteral"
2276
- }),
2277
- JsdocTypeNull: () => ({
2278
- type: "NullLiteral"
2279
- }),
2280
- JsdocTypeStringValue: (e) => pe(ce(e.value, e.meta.quote)),
2281
- JsdocTypeUndefined: () => ({
2282
- type: "UndefinedLiteral"
2283
- }),
2284
- JsdocTypeUnknown: () => ({
2285
- type: "UnknownLiteral"
2286
- }),
2287
- JsdocTypeFunction: (e, r) => {
2288
- let a = et(e), l = {
2289
- type: "FunctionType",
2290
- params: a.params.map(r)
2291
- };
2292
- return a.this !== void 0 && (l.this = r(a.this)), a.new !== void 0 && (l.new = r(a.new)), e.returnType !== void 0 && (l.result = r(e.returnType)), l;
2293
- },
2294
- JsdocTypeGeneric: (e, r) => ({
2295
- type: "TypeApplication",
2296
- applications: e.elements.map((a) => r(a)),
2297
- expression: r(e.left)
2298
- }),
2299
- JsdocTypeSpecialNamePath: (e) => pe(e.specialType + ":" + ce(e.value, e.meta.quote)),
2300
- JsdocTypeName: (e) => e.value !== "function" ? pe(e.value) : {
2301
- type: "FunctionType",
2302
- params: []
2303
- },
2304
- JsdocTypeNumber: (e) => pe(e.value.toString()),
2305
- JsdocTypeObject: (e, r) => {
2306
- let a = {
2307
- type: "RecordType",
2308
- fields: []
2309
- };
2310
- for (let l of e.elements)
2311
- l.type !== "JsdocTypeObjectField" && l.type !== "JsdocTypeJsdocObjectField" ? a.fields.push({
2312
- type: "FieldType",
2313
- key: r(l),
2314
- value: void 0
2315
- }) : a.fields.push(r(l));
2316
- return a;
2317
- },
2318
- JsdocTypeObjectField: (e, r) => {
2319
- if (typeof e.key != "string")
2320
- throw new Error("Index signatures and mapped types are not supported");
2321
- return {
2322
- type: "FieldType",
2323
- key: pe(ce(e.key, e.meta.quote)),
2324
- value: e.right === void 0 ? void 0 : r(e.right)
2325
- };
2326
- },
2327
- JsdocTypeJsdocObjectField: (e, r) => ({
2328
- type: "FieldType",
2329
- key: r(e.left),
2330
- value: r(e.right)
2331
- }),
2332
- JsdocTypeUnion: (e, r) => ({
2333
- type: "TypeUnion",
2334
- elements: e.elements.map((a) => r(a))
2335
- }),
2336
- JsdocTypeKeyValue: (e, r) => ({
2337
- type: "FieldType",
2338
- key: pe(e.key),
2339
- value: e.right === void 0 ? void 0 : r(e.right)
2340
- }),
2341
- JsdocTypeNamePath: (e, r) => {
2342
- let a = r(e.left), l;
2343
- e.right.type === "JsdocTypeSpecialNamePath" ? l = r(e.right).name : l = ce(e.right.value, e.right.meta.quote);
2344
- let g = e.pathType === "inner" ? "~" : e.pathType === "instance" ? "#" : ".";
2345
- return pe(`${a.name}${g}${l}`);
2346
- },
2347
- JsdocTypeSymbol: (e) => {
2348
- let r = "", a = e.element, l = !1;
2349
- return a?.type === "JsdocTypeVariadic" && (a.meta.position === "prefix" ? r = "..." : l = !0, a = a.element), a?.type === "JsdocTypeName" ? r += a.value : a?.type === "JsdocTypeNumber" && (r += a.value.toString()), l && (r += "..."), pe(`${e.value}(${r})`);
2350
- },
2351
- JsdocTypeParenthesis: (e, r) => r(S(e.element)),
2352
- JsdocTypeMappedType: j,
2353
- JsdocTypeIndexSignature: j,
2354
- JsdocTypeImport: j,
2355
- JsdocTypeKeyof: j,
2356
- JsdocTypeTuple: j,
2357
- JsdocTypeTypeof: j,
2358
- JsdocTypeIntersection: j,
2359
- JsdocTypeProperty: j,
2360
- JsdocTypePredicate: j,
2361
- JsdocTypeAsserts: j,
2362
- JsdocTypeReadonlyArray: j,
2363
- JsdocTypeAssertsPlain: j,
2364
- JsdocTypeConditional: j,
2365
- JsdocTypeTypeParameter: j
2366
- };
2367
- function rr(e) {
2368
- return xe(tr, e);
2369
- }
2370
- function ge(e) {
2371
- switch (e) {
2372
- case void 0:
2373
- return "none";
2374
- case "single":
2375
- return "single";
2376
- case "double":
2377
- return "double";
2378
- }
2379
- }
2380
- function ur(e) {
2381
- switch (e) {
2382
- case "inner":
2383
- return "INNER_MEMBER";
2384
- case "instance":
2385
- return "INSTANCE_MEMBER";
2386
- case "property":
2387
- return "MEMBER";
2388
- case "property-brackets":
2389
- return "MEMBER";
2390
- }
2391
- }
2392
- function je(e, r) {
2393
- return r.length === 2 ? {
2394
- type: e,
2395
- left: r[0],
2396
- right: r[1]
2397
- } : {
2398
- type: e,
2399
- left: r[0],
2400
- right: je(e, r.slice(1))
2401
- };
2402
- }
2403
- let nr = {
2404
- JsdocTypeOptional: (e, r) => ({
2405
- type: "OPTIONAL",
2406
- value: r(e.element),
2407
- meta: {
2408
- syntax: e.meta.position === "prefix" ? "PREFIX_EQUAL_SIGN" : "SUFFIX_EQUALS_SIGN"
2409
- }
2410
- }),
2411
- JsdocTypeNullable: (e, r) => ({
2412
- type: "NULLABLE",
2413
- value: r(e.element),
2414
- meta: {
2415
- syntax: e.meta.position === "prefix" ? "PREFIX_QUESTION_MARK" : "SUFFIX_QUESTION_MARK"
2416
- }
2417
- }),
2418
- JsdocTypeNotNullable: (e, r) => ({
2419
- type: "NOT_NULLABLE",
2420
- value: r(e.element),
2421
- meta: {
2422
- syntax: e.meta.position === "prefix" ? "PREFIX_BANG" : "SUFFIX_BANG"
2423
- }
2424
- }),
2425
- JsdocTypeVariadic: (e, r) => {
2426
- let a = {
2427
- type: "VARIADIC",
2428
- meta: {
2429
- syntax: e.meta.position === "prefix" ? "PREFIX_DOTS" : e.meta.position === "suffix" ? "SUFFIX_DOTS" : "ONLY_DOTS"
2430
- }
2431
- };
2432
- return e.element !== void 0 && (a.value = r(e.element)), a;
2433
- },
2434
- JsdocTypeName: (e) => ({
2435
- type: "NAME",
2436
- name: e.value
2437
- }),
2438
- JsdocTypeTypeof: (e, r) => ({
2439
- type: "TYPE_QUERY",
2440
- name: r(e.element)
2441
- }),
2442
- JsdocTypeTuple: (e, r) => ({
2443
- type: "TUPLE",
2444
- entries: e.elements.map(r)
2445
- }),
2446
- JsdocTypeKeyof: (e, r) => ({
2447
- type: "KEY_QUERY",
2448
- value: r(e.element)
2449
- }),
2450
- JsdocTypeImport: (e) => ({
2451
- type: "IMPORT",
2452
- path: {
2453
- type: "STRING_VALUE",
2454
- quoteStyle: ge(e.element.meta.quote),
2455
- string: e.element.value
2456
- }
2457
- }),
2458
- JsdocTypeUndefined: () => ({
2459
- type: "NAME",
2460
- name: "undefined"
2461
- }),
2462
- JsdocTypeAny: () => ({
2463
- type: "ANY"
2464
- }),
2465
- JsdocTypeFunction: (e, r) => {
2466
- let a = et(e), l = {
2467
- type: e.arrow ? "ARROW" : "FUNCTION",
2468
- params: a.params.map((g) => {
2469
- if (g.type === "JsdocTypeKeyValue") {
2470
- if (g.right === void 0)
2471
- throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");
2472
- return {
2473
- type: "NAMED_PARAMETER",
2474
- name: g.key,
2475
- typeName: r(g.right)
2476
- };
2477
- } else
2478
- return r(g);
2479
- }),
2480
- new: null,
2481
- returns: null
2482
- };
2483
- return a.this !== void 0 ? l.this = r(a.this) : e.arrow || (l.this = null), a.new !== void 0 && (l.new = r(a.new)), e.returnType !== void 0 && (l.returns = r(e.returnType)), l;
2484
- },
2485
- JsdocTypeGeneric: (e, r) => {
2486
- let a = {
2487
- type: "GENERIC",
2488
- subject: r(e.left),
2489
- objects: e.elements.map(r),
2490
- meta: {
2491
- syntax: e.meta.brackets === "square" ? "SQUARE_BRACKET" : e.meta.dot ? "ANGLE_BRACKET_WITH_DOT" : "ANGLE_BRACKET"
2492
- }
2493
- };
2494
- return e.meta.brackets === "square" && e.elements[0].type === "JsdocTypeFunction" && !e.elements[0].parenthesis && (a.objects[0] = {
2495
- type: "NAME",
2496
- name: "function"
2497
- }), a;
2498
- },
2499
- JsdocTypeObjectField: (e, r) => {
2500
- if (typeof e.key != "string")
2501
- throw new Error("Index signatures and mapped types are not supported");
2502
- if (e.right === void 0)
2503
- return {
2504
- type: "RECORD_ENTRY",
2505
- key: e.key,
2506
- quoteStyle: ge(e.meta.quote),
2507
- value: null,
2508
- readonly: !1
2509
- };
2510
- let a = r(e.right);
2511
- return e.optional && (a = {
2512
- type: "OPTIONAL",
2513
- value: a,
2514
- meta: {
2515
- syntax: "SUFFIX_KEY_QUESTION_MARK"
2516
- }
2517
- }), {
2518
- type: "RECORD_ENTRY",
2519
- key: e.key.toString(),
2520
- quoteStyle: ge(e.meta.quote),
2521
- value: a,
2522
- readonly: !1
2523
- };
2524
- },
2525
- JsdocTypeJsdocObjectField: () => {
2526
- throw new Error("Keys may not be typed in jsdoctypeparser.");
2527
- },
2528
- JsdocTypeKeyValue: (e, r) => {
2529
- if (e.right === void 0)
2530
- return {
2531
- type: "RECORD_ENTRY",
2532
- key: e.key,
2533
- quoteStyle: "none",
2534
- value: null,
2535
- readonly: !1
2536
- };
2537
- let a = r(e.right);
2538
- return e.optional && (a = {
2539
- type: "OPTIONAL",
2540
- value: a,
2541
- meta: {
2542
- syntax: "SUFFIX_KEY_QUESTION_MARK"
2543
- }
2544
- }), {
2545
- type: "RECORD_ENTRY",
2546
- key: e.key,
2547
- quoteStyle: "none",
2548
- value: a,
2549
- readonly: !1
2550
- };
2551
- },
2552
- JsdocTypeObject: (e, r) => {
2553
- let a = [];
2554
- for (let l of e.elements)
2555
- (l.type === "JsdocTypeObjectField" || l.type === "JsdocTypeJsdocObjectField") && a.push(r(l));
2556
- return {
2557
- type: "RECORD",
2558
- entries: a
2559
- };
2560
- },
2561
- JsdocTypeSpecialNamePath: (e) => {
2562
- if (e.specialType !== "module")
2563
- throw new Error(`jsdoctypeparser does not support type ${e.specialType} at this point.`);
2564
- return {
2565
- type: "MODULE",
2566
- value: {
2567
- type: "FILE_PATH",
2568
- quoteStyle: ge(e.meta.quote),
2569
- path: e.value
2570
- }
2571
- };
2572
- },
2573
- JsdocTypeNamePath: (e, r) => {
2574
- let a = !1, l, g;
2575
- e.right.type === "JsdocTypeSpecialNamePath" && e.right.specialType === "event" ? (a = !0, l = e.right.value, g = ge(e.right.meta.quote)) : (l = e.right.value, g = ge(e.right.meta.quote));
2576
- let E = {
2577
- type: ur(e.pathType),
2578
- owner: r(e.left),
2579
- name: l,
2580
- quoteStyle: g,
2581
- hasEventPrefix: a
2582
- };
2583
- if (E.owner.type === "MODULE") {
2584
- let B = E.owner;
2585
- return E.owner = E.owner.value, B.value = E, B;
2586
- } else
2587
- return E;
2588
- },
2589
- JsdocTypeUnion: (e, r) => je("UNION", e.elements.map(r)),
2590
- JsdocTypeParenthesis: (e, r) => ({
2591
- type: "PARENTHESIS",
2592
- value: r(S(e.element))
2593
- }),
2594
- JsdocTypeNull: () => ({
2595
- type: "NAME",
2596
- name: "null"
2597
- }),
2598
- JsdocTypeUnknown: () => ({
2599
- type: "UNKNOWN"
2600
- }),
2601
- JsdocTypeStringValue: (e) => ({
2602
- type: "STRING_VALUE",
2603
- quoteStyle: ge(e.meta.quote),
2604
- string: e.value
2605
- }),
2606
- JsdocTypeIntersection: (e, r) => je("INTERSECTION", e.elements.map(r)),
2607
- JsdocTypeNumber: (e) => ({
2608
- type: "NUMBER_VALUE",
2609
- number: e.value.toString()
2610
- }),
2611
- JsdocTypeSymbol: j,
2612
- JsdocTypeProperty: j,
2613
- JsdocTypePredicate: j,
2614
- JsdocTypeMappedType: j,
2615
- JsdocTypeIndexSignature: j,
2616
- JsdocTypeAsserts: j,
2617
- JsdocTypeReadonlyArray: j,
2618
- JsdocTypeAssertsPlain: j,
2619
- JsdocTypeConditional: j,
2620
- JsdocTypeTypeParameter: j
2621
- };
2622
- function ar(e) {
2623
- return xe(nr, e);
2624
- }
2625
- function or() {
2626
- return {
2627
- JsdocTypeIntersection: (e, r) => ({
2628
- type: "JsdocTypeIntersection",
2629
- elements: e.elements.map(r)
2630
- }),
2631
- JsdocTypeGeneric: (e, r) => ({
2632
- type: "JsdocTypeGeneric",
2633
- left: r(e.left),
2634
- elements: e.elements.map(r),
2635
- meta: {
2636
- dot: e.meta.dot,
2637
- brackets: e.meta.brackets
2638
- }
2639
- }),
2640
- JsdocTypeNullable: (e) => e,
2641
- JsdocTypeUnion: (e, r) => ({
2642
- type: "JsdocTypeUnion",
2643
- elements: e.elements.map(r)
2644
- }),
2645
- JsdocTypeUnknown: (e) => e,
2646
- JsdocTypeUndefined: (e) => e,
2647
- JsdocTypeTypeof: (e, r) => ({
2648
- type: "JsdocTypeTypeof",
2649
- element: r(e.element)
2650
- }),
2651
- JsdocTypeSymbol: (e, r) => {
2652
- let a = {
2653
- type: "JsdocTypeSymbol",
2654
- value: e.value
2655
- };
2656
- return e.element !== void 0 && (a.element = r(e.element)), a;
2657
- },
2658
- JsdocTypeOptional: (e, r) => ({
2659
- type: "JsdocTypeOptional",
2660
- element: r(e.element),
2661
- meta: {
2662
- position: e.meta.position
2663
- }
2664
- }),
2665
- JsdocTypeObject: (e, r) => ({
2666
- type: "JsdocTypeObject",
2667
- meta: {
2668
- separator: "comma"
2669
- },
2670
- elements: e.elements.map(r)
2671
- }),
2672
- JsdocTypeNumber: (e) => e,
2673
- JsdocTypeNull: (e) => e,
2674
- JsdocTypeNotNullable: (e, r) => ({
2675
- type: "JsdocTypeNotNullable",
2676
- element: r(e.element),
2677
- meta: {
2678
- position: e.meta.position
2679
- }
2680
- }),
2681
- JsdocTypeSpecialNamePath: (e) => e,
2682
- JsdocTypeObjectField: (e, r) => ({
2683
- type: "JsdocTypeObjectField",
2684
- key: e.key,
2685
- right: e.right === void 0 ? void 0 : r(e.right),
2686
- optional: e.optional,
2687
- readonly: e.readonly,
2688
- meta: e.meta
2689
- }),
2690
- JsdocTypeJsdocObjectField: (e, r) => ({
2691
- type: "JsdocTypeJsdocObjectField",
2692
- left: r(e.left),
2693
- right: r(e.right)
2694
- }),
2695
- JsdocTypeKeyValue: (e, r) => ({
2696
- type: "JsdocTypeKeyValue",
2697
- key: e.key,
2698
- right: e.right === void 0 ? void 0 : r(e.right),
2699
- optional: e.optional,
2700
- variadic: e.variadic
2701
- }),
2702
- JsdocTypeImport: (e, r) => ({
2703
- type: "JsdocTypeImport",
2704
- element: r(e.element)
2705
- }),
2706
- JsdocTypeAny: (e) => e,
2707
- JsdocTypeStringValue: (e) => e,
2708
- JsdocTypeNamePath: (e) => e,
2709
- JsdocTypeVariadic: (e, r) => {
2710
- let a = {
2711
- type: "JsdocTypeVariadic",
2712
- meta: {
2713
- position: e.meta.position,
2714
- squareBrackets: e.meta.squareBrackets
2715
- }
2716
- };
2717
- return e.element !== void 0 && (a.element = r(e.element)), a;
2718
- },
2719
- JsdocTypeTuple: (e, r) => ({
2720
- type: "JsdocTypeTuple",
2721
- elements: e.elements.map(r)
2722
- }),
2723
- JsdocTypeName: (e) => e,
2724
- JsdocTypeFunction: (e, r) => {
2725
- let a = {
2726
- type: "JsdocTypeFunction",
2727
- arrow: e.arrow,
2728
- parameters: e.parameters.map(r),
2729
- constructor: e.constructor,
2730
- parenthesis: e.parenthesis
2731
- };
2732
- return e.returnType !== void 0 && (a.returnType = r(e.returnType)), a;
2733
- },
2734
- JsdocTypeKeyof: (e, r) => ({
2735
- type: "JsdocTypeKeyof",
2736
- element: r(e.element)
2737
- }),
2738
- JsdocTypeParenthesis: (e, r) => ({
2739
- type: "JsdocTypeParenthesis",
2740
- element: r(e.element)
2741
- }),
2742
- JsdocTypeProperty: (e) => e,
2743
- JsdocTypePredicate: (e, r) => ({
2744
- type: "JsdocTypePredicate",
2745
- left: r(e.left),
2746
- right: r(e.right)
2747
- }),
2748
- JsdocTypeIndexSignature: (e, r) => ({
2749
- type: "JsdocTypeIndexSignature",
2750
- key: e.key,
2751
- right: r(e.right)
2752
- }),
2753
- JsdocTypeMappedType: (e, r) => ({
2754
- type: "JsdocTypeMappedType",
2755
- key: e.key,
2756
- right: r(e.right)
2757
- }),
2758
- JsdocTypeAsserts: (e, r) => ({
2759
- type: "JsdocTypeAsserts",
2760
- left: r(e.left),
2761
- right: r(e.right)
2762
- }),
2763
- JsdocTypeReadonlyArray: (e, r) => ({
2764
- type: "JsdocTypeReadonlyArray",
2765
- element: r(e.element)
2766
- }),
2767
- JsdocTypeAssertsPlain: (e, r) => ({
2768
- type: "JsdocTypeAssertsPlain",
2769
- element: r(e.element)
2770
- }),
2771
- JsdocTypeConditional: (e, r) => ({
2772
- type: "JsdocTypeConditional",
2773
- checksType: r(e.checksType),
2774
- extendsType: r(e.extendsType),
2775
- trueType: r(e.trueType),
2776
- falseType: r(e.falseType)
2777
- }),
2778
- JsdocTypeTypeParameter: (e, r) => ({
2779
- type: "JsdocTypeTypeParameter",
2780
- name: r(e.name),
2781
- constraint: e.constraint !== void 0 ? r(e.constraint) : void 0,
2782
- defaultValue: e.defaultValue !== void 0 ? r(e.defaultValue) : void 0
2783
- })
2784
- };
2785
- }
2786
- let rt = {
2787
- JsdocTypeAny: [],
2788
- JsdocTypeFunction: ["parameters", "returnType"],
2789
- JsdocTypeGeneric: ["left", "elements"],
2790
- JsdocTypeImport: [],
2791
- JsdocTypeIndexSignature: ["right"],
2792
- JsdocTypeIntersection: ["elements"],
2793
- JsdocTypeKeyof: ["element"],
2794
- JsdocTypeKeyValue: ["right"],
2795
- JsdocTypeMappedType: ["right"],
2796
- JsdocTypeName: [],
2797
- JsdocTypeNamePath: ["left", "right"],
2798
- JsdocTypeNotNullable: ["element"],
2799
- JsdocTypeNull: [],
2800
- JsdocTypeNullable: ["element"],
2801
- JsdocTypeNumber: [],
2802
- JsdocTypeObject: ["elements"],
2803
- JsdocTypeObjectField: ["right"],
2804
- JsdocTypeJsdocObjectField: ["left", "right"],
2805
- JsdocTypeOptional: ["element"],
2806
- JsdocTypeParenthesis: ["element"],
2807
- JsdocTypeSpecialNamePath: [],
2808
- JsdocTypeStringValue: [],
2809
- JsdocTypeSymbol: ["element"],
2810
- JsdocTypeTuple: ["elements"],
2811
- JsdocTypeTypeof: ["element"],
2812
- JsdocTypeUndefined: [],
2813
- JsdocTypeUnion: ["elements"],
2814
- JsdocTypeUnknown: [],
2815
- JsdocTypeVariadic: ["element"],
2816
- JsdocTypeProperty: [],
2817
- JsdocTypePredicate: ["left", "right"],
2818
- JsdocTypeAsserts: ["left", "right"],
2819
- JsdocTypeReadonlyArray: ["element"],
2820
- JsdocTypeAssertsPlain: ["element"],
2821
- JsdocTypeConditional: ["checksType", "extendsType", "trueType", "falseType"],
2822
- JsdocTypeTypeParameter: ["name", "constraint", "defaultValue"]
2823
- };
2824
- function Ue(e, r, a, l, g) {
2825
- l?.(e, r, a);
2826
- let E = rt[e.type];
2827
- for (let B of E) {
2828
- let M = e[B];
2829
- if (M !== void 0)
2830
- if (Array.isArray(M))
2831
- for (let K of M)
2832
- Ue(K, e, B, l, g);
2833
- else
2834
- Ue(M, e, B, l, g);
2835
- }
2836
- g?.(e, r, a);
2837
- }
2838
- function ir(e, r, a) {
2839
- Ue(e, void 0, void 0, r, a);
2840
- }
2841
- n.catharsisTransform = rr, n.identityTransformRules = or, n.jtpTransform = ar, n.parse = Ze, n.stringify = Zt, n.stringifyRules = tt, n.transform = xe, n.traverse = ir, n.tryParse = $t, n.visitorKeys = rt;
2842
- }));
2843
- }
2844
- }), yr = (t) => t.name === "literal", mr = (t) => t.value.replace(/['|"]/g, ""), fr = (t) => {
2845
- switch (t.type) {
2846
- case "function":
2847
- return { name: "function" };
2848
- case "object":
2849
- let u = {};
2850
- return t.signature.properties.forEach((n) => {
2851
- u[n.key] = Je(n.value);
2852
- }), {
2853
- name: "object",
2854
- value: u
2855
- };
2856
- default:
2857
- throw new yt({ type: t, language: "Flow" });
2858
- }
2859
- }, Je = (t) => {
2860
- let { name: u, raw: n } = t, o = {};
2861
- switch (typeof n < "u" && (o.raw = n), t.name) {
2862
- case "literal":
2863
- return { ...o, name: "other", value: t.value };
2864
- case "string":
2865
- case "number":
2866
- case "symbol":
2867
- case "boolean":
2868
- return { ...o, name: u };
2869
- case "Array":
2870
- return { ...o, name: "array", value: t.elements.map(Je) };
2871
- case "signature":
2872
- return { ...o, ...fr(t) };
2873
- case "union":
2874
- return t.elements?.every(yr) ? { ...o, name: "enum", value: t.elements?.map(mr) } : { ...o, name: u, value: t.elements?.map(Je) };
2875
- case "intersection":
2876
- return { ...o, name: u, value: t.elements?.map(Je) };
2877
- default:
2878
- return { ...o, name: "other", value: u };
2879
- }
2880
- }, mt = /^['"]|['"]$/g, hr = (t) => t.replace(mt, ""), gr = (t) => mt.test(t), ft = (t) => {
2881
- let u = hr(t);
2882
- return gr(t) || Number.isNaN(Number(u)) ? u : Number(u);
2883
- }, Ar = /^\(.*\) => /, Se = (t) => {
2884
- let { name: u, raw: n, computed: o, value: s } = t, i = {};
2885
- switch (typeof n < "u" && (i.raw = n), u) {
2886
- case "enum": {
2887
- let d = o ? s : s.map((m) => ft(m.value));
2888
- return { ...i, name: u, value: d };
2889
- }
2890
- case "string":
2891
- case "number":
2892
- case "symbol":
2893
- return { ...i, name: u };
2894
- case "func":
2895
- return { ...i, name: "function" };
2896
- case "bool":
2897
- case "boolean":
2898
- return { ...i, name: "boolean" };
2899
- case "arrayOf":
2900
- case "array":
2901
- return { ...i, name: "array", value: s && Se(s) };
2902
- case "object":
2903
- return { ...i, name: u };
2904
- case "objectOf":
2905
- return { ...i, name: u, value: Se(s) };
2906
- case "shape":
2907
- case "exact":
2908
- let c = pr(s, (d) => Se(d));
2909
- return { ...i, name: "object", value: c };
2910
- case "union":
2911
- return { ...i, name: "union", value: s.map((d) => Se(d)) };
2912
- default: {
2913
- if (u?.indexOf("|") > 0)
2914
- try {
2915
- let f = u.split("|").map((b) => JSON.parse(b));
2916
- return { ...i, name: "enum", value: f };
2917
- } catch {
2918
- }
2919
- let d = s ? `${u}(${s})` : u, m = Ar.test(u) ? "function" : "other";
2920
- return { ...i, name: m, value: d };
2921
- }
2922
- }
2923
- }, ot = (t) => t.name === "literal", Tr = (t) => t.name === "undefined", br = (t) => {
2924
- switch (t.type) {
2925
- case "function":
2926
- return { name: "function" };
2927
- case "object":
2928
- let u = {};
2929
- return t.signature.properties.forEach((n) => {
2930
- u[n.key] = Ne(n.value);
2931
- }), {
2932
- name: "object",
2933
- value: u
2934
- };
2935
- default:
2936
- throw new yt({ type: t, language: "Typescript" });
2937
- }
2938
- }, Ne = (t) => {
2939
- let { name: u, raw: n } = t, o = {};
2940
- switch (typeof n < "u" && (o.raw = n), t.name) {
2941
- case "string":
2942
- case "number":
2943
- case "symbol":
2944
- case "boolean":
2945
- return { ...o, name: u };
2946
- case "Array":
2947
- return { ...o, name: "array", value: t.elements.map(Ne) };
2948
- case "signature":
2949
- return { ...o, ...br(t) };
2950
- case "union": {
2951
- let s = t.elements.filter((i) => !Tr(i));
2952
- if (s.length > 0 && s.every(ot)) {
2953
- let i = s.filter(ot);
2954
- return {
2955
- ...o,
2956
- name: "enum",
2957
- value: i.map((c) => ft(c.value))
2958
- };
2959
- }
2960
- return { ...o, name: u, value: t.elements.map(Ne) };
2961
- }
2962
- case "intersection":
2963
- return { ...o, name: u, value: t.elements.map(Ne) };
2964
- default:
2965
- return { ...o, name: "other", value: u };
2966
- }
2967
- }, ze = (t) => {
2968
- let { type: u, tsType: n, flowType: o } = t;
2969
- try {
2970
- if (u != null)
2971
- return Se(u);
2972
- if (n != null)
2973
- return Ne(n);
2974
- if (o != null)
2975
- return Je(o);
2976
- } catch (s) {
2977
- console.error(s);
2978
- }
2979
- return null;
2980
- }, Dr = /* @__PURE__ */ ((t) => (t.JAVASCRIPT = "JavaScript", t.FLOW = "Flow", t.TYPESCRIPT = "TypeScript", t.UNKNOWN = "Unknown", t))(Dr || {}), Er = ["null", "undefined"];
2981
- function Ye(t) {
2982
- return Er.some((u) => u === t);
2983
- }
2984
- var vr = (t) => {
2985
- if (!t)
2986
- return "";
2987
- if (typeof t == "string")
2988
- return t;
2989
- throw new Error(`Description: expected string, got: ${JSON.stringify(t)}`);
2990
- };
2991
- function ht(t) {
2992
- return !!t.__docgenInfo;
2993
- }
2994
- function wr(t) {
2995
- return t != null && Object.keys(t).length > 0;
2996
- }
2997
- function Cr(t, u) {
2998
- return ht(t) ? t.__docgenInfo[u] : null;
2999
- }
3000
- function xr(t) {
3001
- return ht(t) ? vr(t.__docgenInfo.description) : "";
3002
- }
3003
- var ye;
3004
- (function(t) {
3005
- t.start = "/**", t.nostart = "/***", t.delim = "*", t.end = "*/";
3006
- })(ye = ye || (ye = {}));
3007
- function Fr(t) {
3008
- return /^\s+$/.test(t);
3009
- }
3010
- function Br(t) {
3011
- let u = t.match(/\r+$/);
3012
- return u == null ? ["", t] : [t.slice(-u[0].length), t.slice(0, -u[0].length)];
3013
- }
3014
- function De(t) {
3015
- let u = t.match(/^\s+/);
3016
- return u == null ? ["", t] : [t.slice(0, u[0].length), t.slice(u[0].length)];
3017
- }
3018
- function Sr(t) {
3019
- return t.split(/\n/);
3020
- }
3021
- function Jr(t = {}) {
3022
- return Object.assign({ tag: "", name: "", type: "", optional: !1, description: "", problems: [], source: [] }, t);
3023
- }
3024
- function Nr(t = {}) {
3025
- return Object.assign({ start: "", delimiter: "", postDelimiter: "", tag: "", postTag: "", name: "", postName: "", type: "", postType: "", description: "", end: "", lineEnd: "" }, t);
3026
- }
3027
- var Or = /^@\S+/;
3028
- function Pr({ fence: t = "```" } = {}) {
3029
- let u = qr(t), n = (o, s) => u(o) ? !s : s;
3030
- return function(o) {
3031
- let s = [[]], i = !1;
3032
- for (let c of o)
3033
- Or.test(c.tokens.description) && !i ? s.push([c]) : s[s.length - 1].push(c), i = n(c.tokens.description, i);
3034
- return s;
3035
- };
3036
- }
3037
- function qr(t) {
3038
- return typeof t == "string" ? (u) => u.split(t).length % 2 === 0 : t;
3039
- }
3040
- function kr({ startLine: t = 0, markers: u = ye } = {}) {
3041
- let n = null, o = t;
3042
- return function(s) {
3043
- let i = s, c = Nr();
3044
- if ([c.lineEnd, i] = Br(i), [c.start, i] = De(i), n === null && i.startsWith(u.start) && !i.startsWith(u.nostart) && (n = [], c.delimiter = i.slice(0, u.start.length), i = i.slice(u.start.length), [c.postDelimiter, i] = De(i)), n === null)
3045
- return o++, null;
3046
- let d = i.trimRight().endsWith(u.end);
3047
- if (c.delimiter === "" && i.startsWith(u.delim) && !i.startsWith(u.end) && (c.delimiter = u.delim, i = i.slice(u.delim.length), [c.postDelimiter, i] = De(i)), d) {
3048
- let m = i.trimRight();
3049
- c.end = i.slice(m.length - u.end.length), i = m.slice(0, -u.end.length);
3050
- }
3051
- if (c.description = i, n.push({ number: o, source: s, tokens: c }), o++, d) {
3052
- let m = n.slice();
3053
- return n = null, m;
3054
- }
3055
- return null;
3056
- };
3057
- }
3058
- function _r({ tokenizers: t }) {
3059
- return function(u) {
3060
- var n;
3061
- let o = Jr({ source: u });
3062
- for (let s of t)
3063
- if (o = s(o), !((n = o.problems[o.problems.length - 1]) === null || n === void 0) && n.critical)
3064
- break;
3065
- return o;
3066
- };
3067
- }
3068
- function Lr() {
3069
- return (t) => {
3070
- let { tokens: u } = t.source[0], n = u.description.match(/\s*(@(\S+))(\s*)/);
3071
- return n === null ? (t.problems.push({
3072
- code: "spec:tag:prefix",
3073
- message: 'tag should start with "@" symbol',
3074
- line: t.source[0].number,
3075
- critical: !0
3076
- }), t) : (u.tag = n[1], u.postTag = n[3], u.description = u.description.slice(n[0].length), t.tag = n[2], t);
3077
- };
3078
- }
3079
- function Rr(t = "compact") {
3080
- let u = jr(t);
3081
- return (n) => {
3082
- let o = 0, s = [];
3083
- for (let [d, { tokens: m }] of n.source.entries()) {
3084
- let f = "";
3085
- if (d === 0 && m.description[0] !== "{")
3086
- return n;
3087
- for (let b of m.description)
3088
- if (b === "{" && o++, b === "}" && o--, f += b, o === 0)
3089
- break;
3090
- if (s.push([m, f]), o === 0)
3091
- break;
3092
- }
3093
- if (o !== 0)
3094
- return n.problems.push({
3095
- code: "spec:type:unpaired-curlies",
3096
- message: "unpaired curlies",
3097
- line: n.source[0].number,
3098
- critical: !0
3099
- }), n;
3100
- let i = [], c = s[0][0].postDelimiter.length;
3101
- for (let [d, [m, f]] of s.entries())
3102
- m.type = f, d > 0 && (m.type = m.postDelimiter.slice(c) + f, m.postDelimiter = m.postDelimiter.slice(0, c)), [m.postType, m.description] = De(m.description.slice(f.length)), i.push(m.type);
3103
- return i[0] = i[0].slice(1), i[i.length - 1] = i[i.length - 1].slice(0, -1), n.type = u(i), n;
3104
- };
3105
- }
3106
- var Ir = (t) => t.trim();
3107
- function jr(t) {
3108
- return t === "compact" ? (u) => u.map(Ir).join("") : t === "preserve" ? (u) => u.join(`
3109
- `) : t;
3110
- }
3111
- var Ur = (t) => t && t.startsWith('"') && t.endsWith('"');
3112
- function Mr() {
3113
- let t = (u, { tokens: n }, o) => n.type === "" ? u : o;
3114
- return (u) => {
3115
- let { tokens: n } = u.source[u.source.reduce(t, 0)], o = n.description.trimLeft(), s = o.split('"');
3116
- if (s.length > 1 && s[0] === "" && s.length % 2 === 1)
3117
- return u.name = s[1], n.name = `"${s[1]}"`, [n.postName, n.description] = De(o.slice(n.name.length)), u;
3118
- let i = 0, c = "", d = !1, m;
3119
- for (let b of o) {
3120
- if (i === 0 && Fr(b))
3121
- break;
3122
- b === "[" && i++, b === "]" && i--, c += b;
3123
- }
3124
- if (i !== 0)
3125
- return u.problems.push({
3126
- code: "spec:name:unpaired-brackets",
3127
- message: "unpaired brackets",
3128
- line: u.source[0].number,
3129
- critical: !0
3130
- }), u;
3131
- let f = c;
3132
- if (c[0] === "[" && c[c.length - 1] === "]") {
3133
- d = !0, c = c.slice(1, -1);
3134
- let b = c.split("=");
3135
- if (c = b[0].trim(), b[1] !== void 0 && (m = b.slice(1).join("=").trim()), c === "")
3136
- return u.problems.push({
3137
- code: "spec:name:empty-name",
3138
- message: "empty name",
3139
- line: u.source[0].number,
3140
- critical: !0
3141
- }), u;
3142
- if (m === "")
3143
- return u.problems.push({
3144
- code: "spec:name:empty-default",
3145
- message: "empty default value",
3146
- line: u.source[0].number,
3147
- critical: !0
3148
- }), u;
3149
- if (!Ur(m) && /=(?!>)/.test(m))
3150
- return u.problems.push({
3151
- code: "spec:name:invalid-default",
3152
- message: "invalid default value syntax",
3153
- line: u.source[0].number,
3154
- critical: !0
3155
- }), u;
3156
- }
3157
- return u.optional = d, u.name = c, n.name = f, m !== void 0 && (u.default = m), [n.postName, n.description] = De(o.slice(n.name.length)), u;
3158
- };
3159
- }
3160
- function Vr(t = "compact", u = ye) {
3161
- let n = gt(t);
3162
- return (o) => (o.description = n(o.source, u), o);
3163
- }
3164
- function gt(t) {
3165
- return t === "compact" ? Hr : t === "preserve" ? zr : t;
3166
- }
3167
- function Hr(t, u = ye) {
3168
- return t.map(({ tokens: { description: n } }) => n.trim()).filter((n) => n !== "").join(" ");
3169
- }
3170
- var Kr = (t, { tokens: u }, n) => u.type === "" ? t : n, Gr = ({ tokens: t }) => (t.delimiter === "" ? t.start : t.postDelimiter.slice(1)) + t.description;
3171
- function zr(t, u = ye) {
3172
- if (t.length === 0)
3173
- return "";
3174
- t[0].tokens.description === "" && t[0].tokens.delimiter === u.start && (t = t.slice(1));
3175
- let n = t[t.length - 1];
3176
- return n !== void 0 && n.tokens.description === "" && n.tokens.end.endsWith(u.end) && (t = t.slice(0, -1)), t = t.slice(t.reduce(Kr, 0)), t.map(Gr).join(`
3177
- `);
3178
- }
3179
- function Yr({ startLine: t = 0, fence: u = "```", spacing: n = "compact", markers: o = ye, tokenizers: s = [
3180
- Lr(),
3181
- Rr(n),
3182
- Mr(),
3183
- Vr(n)
3184
- ] } = {}) {
3185
- if (t < 0 || t % 1 > 0)
3186
- throw new Error("Invalid startLine");
3187
- let i = kr({ startLine: t, markers: o }), c = Pr({ fence: u }), d = _r({ tokenizers: s }), m = gt(n);
3188
- return function(f) {
3189
- let b = [];
3190
- for (let D of Sr(f)) {
3191
- let v = i(D);
3192
- if (v === null)
3193
- continue;
3194
- let C = c(v), F = C.slice(1).map(d);
3195
- b.push({
3196
- description: m(C[0], o),
3197
- tags: F,
3198
- source: v,
3199
- problems: F.reduce((w, L) => w.concat(L.problems), [])
3200
- });
3201
- }
3202
- return b;
3203
- };
3204
- }
3205
- function Xr(t, u = {}) {
3206
- return Yr(u)(t);
3207
- }
3208
- var Xe = Ae(dr(), 1);
3209
- function Wr(t) {
3210
- return t != null && t.includes("@");
3211
- }
3212
- function $r(t) {
3213
- let u = `/**
3214
- ` + (t ?? "").split(`
3215
- `).map((o) => ` * ${o}`).join(`
3216
- `) + `
3217
- */`, n = Xr(u, {
3218
- spacing: "preserve"
3219
- });
3220
- if (!n || n.length === 0)
3221
- throw new Error("Cannot parse JSDoc tags.");
3222
- return n[0];
3223
- }
3224
- var Qr = {
3225
- tags: ["param", "arg", "argument", "returns", "ignore", "deprecated"]
3226
- }, Zr = (t, u = Qr) => {
3227
- if (!Wr(t))
3228
- return {
3229
- includesJsDoc: !1,
3230
- ignore: !1
3231
- };
3232
- let n = $r(t), o = eu(n, u.tags);
3233
- return o.ignore ? {
3234
- includesJsDoc: !0,
3235
- ignore: !0
3236
- } : {
3237
- includesJsDoc: !0,
3238
- ignore: !1,
3239
- // Always use the parsed description to ensure JSDoc is removed from the description.
3240
- description: n.description.trim(),
3241
- extractedTags: o
3242
- };
3243
- };
3244
- function eu(t, u) {
3245
- let n = {
3246
- params: null,
3247
- deprecated: null,
3248
- returns: null,
3249
- ignore: !1
3250
- };
3251
- for (let o of t.tags)
3252
- if (!(u !== void 0 && !u.includes(o.tag)))
3253
- if (o.tag === "ignore") {
3254
- n.ignore = !0;
3255
- break;
3256
- } else
3257
- switch (o.tag) {
3258
- // arg & argument are aliases for param.
3259
- case "param":
3260
- case "arg":
3261
- case "argument": {
3262
- let s = ru(o);
3263
- s != null && (n.params == null && (n.params = []), n.params.push(s));
3264
- break;
3265
- }
3266
- case "deprecated": {
3267
- let s = uu(o);
3268
- s != null && (n.deprecated = s);
3269
- break;
3270
- }
3271
- case "returns": {
3272
- let s = nu(o);
3273
- s != null && (n.returns = s);
3274
- break;
3275
- }
3276
- }
3277
- return n;
3278
- }
3279
- function tu(t) {
3280
- return t.replace(/[\.-]$/, "");
3281
- }
3282
- function ru(t) {
3283
- if (!t.name || t.name === "-")
3284
- return null;
3285
- let u = bt(t.type);
3286
- return {
3287
- name: t.name,
3288
- type: u,
3289
- description: Tt(t.description),
3290
- getPrettyName: () => tu(t.name),
3291
- getTypeName: () => u ? Dt(u) : null
3292
- };
3293
- }
3294
- function uu(t) {
3295
- return t.name ? At(t.name, t.description) : null;
3296
- }
3297
- function At(t, u) {
3298
- let n = t === "" ? u : `${t} ${u}`;
3299
- return Tt(n);
3300
- }
3301
- function Tt(t) {
3302
- let u = t.replace(/^- /g, "").trim();
3303
- return u === "" ? null : u;
3304
- }
3305
- function nu(t) {
3306
- let u = bt(t.type);
3307
- return u ? {
3308
- type: u,
3309
- description: At(t.name, t.description),
3310
- getTypeName: () => Dt(u)
3311
- } : null;
3312
- }
3313
- var me = (0, Xe.stringifyRules)(), au = me.JsdocTypeObject;
3314
- me.JsdocTypeAny = () => "any";
3315
- me.JsdocTypeObject = (t, u) => `(${au(t, u)})`;
3316
- me.JsdocTypeOptional = (t, u) => u(t.element);
3317
- me.JsdocTypeNullable = (t, u) => u(t.element);
3318
- me.JsdocTypeNotNullable = (t, u) => u(t.element);
3319
- me.JsdocTypeUnion = (t, u) => t.elements.map(u).join("|");
3320
- function bt(t) {
3321
- try {
3322
- return (0, Xe.parse)(t, "typescript");
3323
- } catch {
3324
- return null;
3325
- }
3326
- }
3327
- function Dt(t) {
3328
- return (0, Xe.transform)(me, t);
3329
- }
3330
- function Et(t) {
3331
- return t.length > 90;
3332
- }
3333
- function ou(t) {
3334
- return t.length > 50;
3335
- }
3336
- function W(t, u) {
3337
- return t === u ? { summary: t } : { summary: t, detail: u };
3338
- }
3339
- function iu(t, u) {
3340
- if (t != null) {
3341
- let { value: n } = t;
3342
- if (!Ye(n))
3343
- return ou(n) ? W(u?.name, n) : W(n);
3344
- }
3345
- return null;
3346
- }
3347
- function vt({ name: t, value: u, elements: n, raw: o }) {
3348
- return u ?? (n != null ? n.map(vt).join(" | ") : o ?? t);
3349
- }
3350
- function su({ name: t, raw: u, elements: n }) {
3351
- return n != null ? W(n.map(vt).join(" | ")) : u != null ? W(u.replace(/^\|\s*/, "")) : W(t);
3352
- }
3353
- function lu({ type: t, raw: u }) {
3354
- return u != null ? W(u) : W(t);
3355
- }
3356
- function cu({ type: t, raw: u }) {
3357
- return u != null ? Et(u) ? W(t, u) : W(u) : W(t);
3358
- }
3359
- function pu(t) {
3360
- let { type: u } = t;
3361
- return u === "object" ? cu(t) : lu(t);
3362
- }
3363
- function du({ name: t, raw: u }) {
3364
- return u != null ? Et(u) ? W(t, u) : W(u) : W(t);
3365
- }
3366
- function yu(t) {
3367
- if (t == null)
3368
- return null;
3369
- switch (t.name) {
3370
- case "union":
3371
- return su(t);
3372
- case "signature":
3373
- return pu(t);
3374
- default:
3375
- return du(t);
3376
- }
3377
- }
3378
- var mu = (t, u) => {
3379
- let { flowType: n, description: o, required: s, defaultValue: i } = u;
3380
- return {
3381
- name: t,
3382
- type: yu(n),
3383
- required: s,
3384
- description: o,
3385
- defaultValue: iu(i ?? null, n ?? null)
3386
- };
3387
- };
3388
- function fu({ defaultValue: t }) {
3389
- if (t != null) {
3390
- let { value: u } = t;
3391
- if (!Ye(u))
3392
- return W(u);
3393
- }
3394
- return null;
3395
- }
3396
- function hu({ tsType: t, required: u }) {
3397
- if (t == null)
3398
- return null;
3399
- let n = t.name;
3400
- return u || (n = n.replace(" | undefined", "")), W(
3401
- ["Array", "Record", "signature"].includes(t.name) ? t.raw : n
3402
- );
3403
- }
3404
- var gu = (t, u) => {
3405
- let { description: n, required: o } = u;
3406
- return {
3407
- name: t,
3408
- type: hu(u),
3409
- required: o,
3410
- description: n,
3411
- defaultValue: fu(u)
3412
- };
3413
- };
3414
- function Au(t) {
3415
- return t != null ? W(t.name) : null;
3416
- }
3417
- function Tu(t) {
3418
- let { computed: u, func: n } = t;
3419
- return typeof u > "u" && typeof n > "u";
3420
- }
3421
- function bu(t) {
3422
- return t ? t.name === "string" ? !0 : t.name === "enum" ? Array.isArray(t.value) && t.value.every(
3423
- ({ value: u }) => typeof u == "string" && u[0] === '"' && u[u.length - 1] === '"'
3424
- ) : !1 : !1;
3425
- }
3426
- function Du(t, u) {
3427
- if (t != null) {
3428
- let { value: n } = t;
3429
- if (!Ye(n))
3430
- return Tu(t) && bu(u) ? W(JSON.stringify(n)) : W(n);
3431
- }
3432
- return null;
3433
- }
3434
- function wt(t, u, n) {
3435
- let { description: o, required: s, defaultValue: i } = n;
3436
- return {
3437
- name: t,
3438
- type: Au(u),
3439
- required: s,
3440
- description: o,
3441
- defaultValue: Du(i, u)
3442
- };
3443
- }
3444
- function Le(t, u) {
3445
- if (u?.includesJsDoc) {
3446
- let { description: n, extractedTags: o } = u;
3447
- n != null && (t.description = u.description);
3448
- let s = {
3449
- ...o,
3450
- params: o?.params?.map(
3451
- (i) => ({
3452
- name: i.getPrettyName(),
3453
- description: i.description
3454
- })
3455
- )
3456
- };
3457
- Object.values(s).filter(Boolean).length > 0 && (t.jsDocTags = s);
3458
- }
3459
- return t;
3460
- }
3461
- var Eu = (t, u, n) => {
3462
- let o = wt(t, u.type, u);
3463
- return o.sbType = ze(u), Le(o, n);
3464
- }, vu = (t, u, n) => {
3465
- let o = gu(t, u);
3466
- return o.sbType = ze(u), Le(o, n);
3467
- }, wu = (t, u, n) => {
3468
- let o = mu(t, u);
3469
- return o.sbType = ze(u), Le(o, n);
3470
- }, Cu = (t, u, n) => {
3471
- let o = wt(t, { name: "unknown" }, u);
3472
- return Le(o, n);
3473
- }, Ct = (t) => {
3474
- switch (t) {
3475
- case "JavaScript":
3476
- return Eu;
3477
- case "TypeScript":
3478
- return vu;
3479
- case "Flow":
3480
- return wu;
3481
- default:
3482
- return Cu;
3483
- }
3484
- }, xt = (t) => t.type != null ? "JavaScript" : t.flowType != null ? "Flow" : t.tsType != null ? "TypeScript" : "Unknown", xu = (t) => {
3485
- let u = xt(t[0]), n = Ct(u);
3486
- return t.map((o) => {
3487
- let s = o;
3488
- return o.type?.elements && (s = {
3489
- ...o,
3490
- type: {
3491
- ...o.type,
3492
- value: o.type.elements
3493
- }
3494
- }), Ft(s.name, s, u, n);
3495
- });
3496
- }, Fu = (t) => {
3497
- let u = Object.keys(t), n = xt(t[u[0]]), o = Ct(n);
3498
- return u.map((s) => {
3499
- let i = t[s];
3500
- return i != null ? Ft(s, i, n, o) : null;
3501
- }).filter(Boolean);
3502
- }, rn = (t, u) => {
3503
- let n = Cr(t, u);
3504
- return wr(n) ? Array.isArray(n) ? xu(n) : Fu(n) : [];
3505
- };
3506
- function Ft(t, u, n, o) {
3507
- let s = Zr(u.description);
3508
- return s.includesJsDoc && s.ignore ? null : {
3509
- propDef: o(t, u, s),
3510
- jsDocTags: s.extractedTags,
3511
- docgenInfo: u,
3512
- typeSystem: n
3513
- };
3514
- }
3515
- function un(t) {
3516
- return t != null ? xr(t) : "";
3517
- }
3518
- var We = (...t) => {
3519
- let u = {}, n = t.filter(Boolean), o = n.reduce((s, i) => (Object.entries(i).forEach(([c, d]) => {
3520
- let m = s[c];
3521
- Array.isArray(d) || typeof m > "u" ? s[c] = d : Me(d) && Me(m) ? u[c] = !0 : typeof d < "u" && (s[c] = d);
3522
- }), s), {});
3523
- return Object.keys(u).forEach((s) => {
3524
- let i = n.filter(Boolean).map((c) => c[s]).filter((c) => typeof c < "u");
3525
- i.every((c) => Me(c)) ? o[s] = We(...i) : o[s] = i[i.length - 1];
3526
- }), o;
3527
- }, nn = (t) => {
3528
- let {
3529
- component: u,
3530
- argTypes: n,
3531
- parameters: { docs: o = {} }
3532
- } = t, { extractArgTypes: s } = o;
3533
- if (!s || !u)
3534
- return n;
3535
- let i = s(u);
3536
- return i ? We(i, n) : n;
3537
- }, Bu = "storybook/docs", Su = `${Bu}/snippet-rendered`, Ju = /* @__PURE__ */ ((t) => (t.AUTO = "auto", t.CODE = "code", t.DYNAMIC = "dynamic", t))(Ju || {}), Bt = $({
3538
- "../../node_modules/entities/lib/maps/entities.json"(t, u) {
3539
- u.exports = { Aacute: "Á", aacute: "á", Abreve: "Ă", abreve: "ă", ac: "∾", acd: "∿", acE: "∾̳", Acirc: "Â", acirc: "â", acute: "´", Acy: "А", acy: "а", AElig: "Æ", aelig: "æ", af: "⁡", Afr: "𝔄", afr: "𝔞", Agrave: "À", agrave: "à", alefsym: "ℵ", aleph: "ℵ", Alpha: "Α", alpha: "α", Amacr: "Ā", amacr: "ā", amalg: "⨿", amp: "&", AMP: "&", andand: "⩕", And: "⩓", and: "∧", andd: "⩜", andslope: "⩘", andv: "⩚", ang: "∠", ange: "⦤", angle: "∠", angmsdaa: "⦨", angmsdab: "⦩", angmsdac: "⦪", angmsdad: "⦫", angmsdae: "⦬", angmsdaf: "⦭", angmsdag: "⦮", angmsdah: "⦯", angmsd: "∡", angrt: "∟", angrtvb: "⊾", angrtvbd: "⦝", angsph: "∢", angst: "Å", angzarr: "⍼", Aogon: "Ą", aogon: "ą", Aopf: "𝔸", aopf: "𝕒", apacir: "⩯", ap: "≈", apE: "⩰", ape: "≊", apid: "≋", apos: "'", ApplyFunction: "⁡", approx: "≈", approxeq: "≊", Aring: "Å", aring: "å", Ascr: "𝒜", ascr: "𝒶", Assign: "≔", ast: "*", asymp: "≈", asympeq: "≍", Atilde: "Ã", atilde: "ã", Auml: "Ä", auml: "ä", awconint: "∳", awint: "⨑", backcong: "≌", backepsilon: "϶", backprime: "‵", backsim: "∽", backsimeq: "⋍", Backslash: "∖", Barv: "⫧", barvee: "⊽", barwed: "⌅", Barwed: "⌆", barwedge: "⌅", bbrk: "⎵", bbrktbrk: "⎶", bcong: "≌", Bcy: "Б", bcy: "б", bdquo: "„", becaus: "∵", because: "∵", Because: "∵", bemptyv: "⦰", bepsi: "϶", bernou: "ℬ", Bernoullis: "ℬ", Beta: "Β", beta: "β", beth: "ℶ", between: "≬", Bfr: "𝔅", bfr: "𝔟", bigcap: "⋂", bigcirc: "◯", bigcup: "⋃", bigodot: "⨀", bigoplus: "⨁", bigotimes: "⨂", bigsqcup: "⨆", bigstar: "★", bigtriangledown: "▽", bigtriangleup: "△", biguplus: "⨄", bigvee: "⋁", bigwedge: "⋀", bkarow: "⤍", blacklozenge: "⧫", blacksquare: "▪", blacktriangle: "▴", blacktriangledown: "▾", blacktriangleleft: "◂", blacktriangleright: "▸", blank: "␣", blk12: "▒", blk14: "░", blk34: "▓", block: "█", bne: "=⃥", bnequiv: "≡⃥", bNot: "⫭", bnot: "⌐", Bopf: "𝔹", bopf: "𝕓", bot: "⊥", bottom: "⊥", bowtie: "⋈", boxbox: "⧉", boxdl: "┐", boxdL: "╕", boxDl: "╖", boxDL: "╗", boxdr: "┌", boxdR: "╒", boxDr: "╓", boxDR: "╔", boxh: "─", boxH: "═", boxhd: "┬", boxHd: "╤", boxhD: "╥", boxHD: "╦", boxhu: "┴", boxHu: "╧", boxhU: "╨", boxHU: "╩", boxminus: "⊟", boxplus: "⊞", boxtimes: "⊠", boxul: "┘", boxuL: "╛", boxUl: "╜", boxUL: "╝", boxur: "└", boxuR: "╘", boxUr: "╙", boxUR: "╚", boxv: "│", boxV: "║", boxvh: "┼", boxvH: "╪", boxVh: "╫", boxVH: "╬", boxvl: "┤", boxvL: "╡", boxVl: "╢", boxVL: "╣", boxvr: "├", boxvR: "╞", boxVr: "╟", boxVR: "╠", bprime: "‵", breve: "˘", Breve: "˘", brvbar: "¦", bscr: "𝒷", Bscr: "ℬ", bsemi: "⁏", bsim: "∽", bsime: "⋍", bsolb: "⧅", bsol: "\\", bsolhsub: "⟈", bull: "•", bullet: "•", bump: "≎", bumpE: "⪮", bumpe: "≏", Bumpeq: "≎", bumpeq: "≏", Cacute: "Ć", cacute: "ć", capand: "⩄", capbrcup: "⩉", capcap: "⩋", cap: "∩", Cap: "⋒", capcup: "⩇", capdot: "⩀", CapitalDifferentialD: "ⅅ", caps: "∩︀", caret: "⁁", caron: "ˇ", Cayleys: "ℭ", ccaps: "⩍", Ccaron: "Č", ccaron: "č", Ccedil: "Ç", ccedil: "ç", Ccirc: "Ĉ", ccirc: "ĉ", Cconint: "∰", ccups: "⩌", ccupssm: "⩐", Cdot: "Ċ", cdot: "ċ", cedil: "¸", Cedilla: "¸", cemptyv: "⦲", cent: "¢", centerdot: "·", CenterDot: "·", cfr: "𝔠", Cfr: "ℭ", CHcy: "Ч", chcy: "ч", check: "✓", checkmark: "✓", Chi: "Χ", chi: "χ", circ: "ˆ", circeq: "≗", circlearrowleft: "↺", circlearrowright: "↻", circledast: "⊛", circledcirc: "⊚", circleddash: "⊝", CircleDot: "⊙", circledR: "®", circledS: "Ⓢ", CircleMinus: "⊖", CirclePlus: "⊕", CircleTimes: "⊗", cir: "○", cirE: "⧃", cire: "≗", cirfnint: "⨐", cirmid: "⫯", cirscir: "⧂", ClockwiseContourIntegral: "∲", CloseCurlyDoubleQuote: "”", CloseCurlyQuote: "’", clubs: "♣", clubsuit: "♣", colon: ":", Colon: "∷", Colone: "⩴", colone: "≔", coloneq: "≔", comma: ",", commat: "@", comp: "∁", compfn: "∘", complement: "∁", complexes: "ℂ", cong: "≅", congdot: "⩭", Congruent: "≡", conint: "∮", Conint: "∯", ContourIntegral: "∮", copf: "𝕔", Copf: "ℂ", coprod: "∐", Coproduct: "∐", copy: "©", COPY: "©", copysr: "℗", CounterClockwiseContourIntegral: "∳", crarr: "↵", cross: "✗", Cross: "⨯", Cscr: "𝒞", cscr: "𝒸", csub: "⫏", csube: "⫑", csup: "⫐", csupe: "⫒", ctdot: "⋯", cudarrl: "⤸", cudarrr: "⤵", cuepr: "⋞", cuesc: "⋟", cularr: "↶", cularrp: "⤽", cupbrcap: "⩈", cupcap: "⩆", CupCap: "≍", cup: "∪", Cup: "⋓", cupcup: "⩊", cupdot: "⊍", cupor: "⩅", cups: "∪︀", curarr: "↷", curarrm: "⤼", curlyeqprec: "⋞", curlyeqsucc: "⋟", curlyvee: "⋎", curlywedge: "⋏", curren: "¤", curvearrowleft: "↶", curvearrowright: "↷", cuvee: "⋎", cuwed: "⋏", cwconint: "∲", cwint: "∱", cylcty: "⌭", dagger: "†", Dagger: "‡", daleth: "ℸ", darr: "↓", Darr: "↡", dArr: "⇓", dash: "‐", Dashv: "⫤", dashv: "⊣", dbkarow: "⤏", dblac: "˝", Dcaron: "Ď", dcaron: "ď", Dcy: "Д", dcy: "д", ddagger: "‡", ddarr: "⇊", DD: "ⅅ", dd: "ⅆ", DDotrahd: "⤑", ddotseq: "⩷", deg: "°", Del: "∇", Delta: "Δ", delta: "δ", demptyv: "⦱", dfisht: "⥿", Dfr: "𝔇", dfr: "𝔡", dHar: "⥥", dharl: "⇃", dharr: "⇂", DiacriticalAcute: "´", DiacriticalDot: "˙", DiacriticalDoubleAcute: "˝", DiacriticalGrave: "`", DiacriticalTilde: "˜", diam: "⋄", diamond: "⋄", Diamond: "⋄", diamondsuit: "♦", diams: "♦", die: "¨", DifferentialD: "ⅆ", digamma: "ϝ", disin: "⋲", div: "÷", divide: "÷", divideontimes: "⋇", divonx: "⋇", DJcy: "Ђ", djcy: "ђ", dlcorn: "⌞", dlcrop: "⌍", dollar: "$", Dopf: "𝔻", dopf: "𝕕", Dot: "¨", dot: "˙", DotDot: "⃜", doteq: "≐", doteqdot: "≑", DotEqual: "≐", dotminus: "∸", dotplus: "∔", dotsquare: "⊡", doublebarwedge: "⌆", DoubleContourIntegral: "∯", DoubleDot: "¨", DoubleDownArrow: "⇓", DoubleLeftArrow: "⇐", DoubleLeftRightArrow: "⇔", DoubleLeftTee: "⫤", DoubleLongLeftArrow: "⟸", DoubleLongLeftRightArrow: "⟺", DoubleLongRightArrow: "⟹", DoubleRightArrow: "⇒", DoubleRightTee: "⊨", DoubleUpArrow: "⇑", DoubleUpDownArrow: "⇕", DoubleVerticalBar: "∥", DownArrowBar: "⤓", downarrow: "↓", DownArrow: "↓", Downarrow: "⇓", DownArrowUpArrow: "⇵", DownBreve: "̑", downdownarrows: "⇊", downharpoonleft: "⇃", downharpoonright: "⇂", DownLeftRightVector: "⥐", DownLeftTeeVector: "⥞", DownLeftVectorBar: "⥖", DownLeftVector: "↽", DownRightTeeVector: "⥟", DownRightVectorBar: "⥗", DownRightVector: "⇁", DownTeeArrow: "↧", DownTee: "⊤", drbkarow: "⤐", drcorn: "⌟", drcrop: "⌌", Dscr: "𝒟", dscr: "𝒹", DScy: "Ѕ", dscy: "ѕ", dsol: "⧶", Dstrok: "Đ", dstrok: "đ", dtdot: "⋱", dtri: "▿", dtrif: "▾", duarr: "⇵", duhar: "⥯", dwangle: "⦦", DZcy: "Џ", dzcy: "џ", dzigrarr: "⟿", Eacute: "É", eacute: "é", easter: "⩮", Ecaron: "Ě", ecaron: "ě", Ecirc: "Ê", ecirc: "ê", ecir: "≖", ecolon: "≕", Ecy: "Э", ecy: "э", eDDot: "⩷", Edot: "Ė", edot: "ė", eDot: "≑", ee: "ⅇ", efDot: "≒", Efr: "𝔈", efr: "𝔢", eg: "⪚", Egrave: "È", egrave: "è", egs: "⪖", egsdot: "⪘", el: "⪙", Element: "∈", elinters: "⏧", ell: "ℓ", els: "⪕", elsdot: "⪗", Emacr: "Ē", emacr: "ē", empty: "∅", emptyset: "∅", EmptySmallSquare: "◻", emptyv: "∅", EmptyVerySmallSquare: "▫", emsp13: " ", emsp14: " ", emsp: " ", ENG: "Ŋ", eng: "ŋ", ensp: " ", Eogon: "Ę", eogon: "ę", Eopf: "𝔼", eopf: "𝕖", epar: "⋕", eparsl: "⧣", eplus: "⩱", epsi: "ε", Epsilon: "Ε", epsilon: "ε", epsiv: "ϵ", eqcirc: "≖", eqcolon: "≕", eqsim: "≂", eqslantgtr: "⪖", eqslantless: "⪕", Equal: "⩵", equals: "=", EqualTilde: "≂", equest: "≟", Equilibrium: "⇌", equiv: "≡", equivDD: "⩸", eqvparsl: "⧥", erarr: "⥱", erDot: "≓", escr: "ℯ", Escr: "ℰ", esdot: "≐", Esim: "⩳", esim: "≂", Eta: "Η", eta: "η", ETH: "Ð", eth: "ð", Euml: "Ë", euml: "ë", euro: "€", excl: "!", exist: "∃", Exists: "∃", expectation: "ℰ", exponentiale: "ⅇ", ExponentialE: "ⅇ", fallingdotseq: "≒", Fcy: "Ф", fcy: "ф", female: "♀", ffilig: "ffi", fflig: "ff", ffllig: "ffl", Ffr: "𝔉", ffr: "𝔣", filig: "fi", FilledSmallSquare: "◼", FilledVerySmallSquare: "▪", fjlig: "fj", flat: "♭", fllig: "fl", fltns: "▱", fnof: "ƒ", Fopf: "𝔽", fopf: "𝕗", forall: "∀", ForAll: "∀", fork: "⋔", forkv: "⫙", Fouriertrf: "ℱ", fpartint: "⨍", frac12: "½", frac13: "⅓", frac14: "¼", frac15: "⅕", frac16: "⅙", frac18: "⅛", frac23: "⅔", frac25: "⅖", frac34: "¾", frac35: "⅗", frac38: "⅜", frac45: "⅘", frac56: "⅚", frac58: "⅝", frac78: "⅞", frasl: "⁄", frown: "⌢", fscr: "𝒻", Fscr: "ℱ", gacute: "ǵ", Gamma: "Γ", gamma: "γ", Gammad: "Ϝ", gammad: "ϝ", gap: "⪆", Gbreve: "Ğ", gbreve: "ğ", Gcedil: "Ģ", Gcirc: "Ĝ", gcirc: "ĝ", Gcy: "Г", gcy: "г", Gdot: "Ġ", gdot: "ġ", ge: "≥", gE: "≧", gEl: "⪌", gel: "⋛", geq: "≥", geqq: "≧", geqslant: "⩾", gescc: "⪩", ges: "⩾", gesdot: "⪀", gesdoto: "⪂", gesdotol: "⪄", gesl: "⋛︀", gesles: "⪔", Gfr: "𝔊", gfr: "𝔤", gg: "≫", Gg: "⋙", ggg: "⋙", gimel: "ℷ", GJcy: "Ѓ", gjcy: "ѓ", gla: "⪥", gl: "≷", glE: "⪒", glj: "⪤", gnap: "⪊", gnapprox: "⪊", gne: "⪈", gnE: "≩", gneq: "⪈", gneqq: "≩", gnsim: "⋧", Gopf: "𝔾", gopf: "𝕘", grave: "`", GreaterEqual: "≥", GreaterEqualLess: "⋛", GreaterFullEqual: "≧", GreaterGreater: "⪢", GreaterLess: "≷", GreaterSlantEqual: "⩾", GreaterTilde: "≳", Gscr: "𝒢", gscr: "ℊ", gsim: "≳", gsime: "⪎", gsiml: "⪐", gtcc: "⪧", gtcir: "⩺", gt: ">", GT: ">", Gt: "≫", gtdot: "⋗", gtlPar: "⦕", gtquest: "⩼", gtrapprox: "⪆", gtrarr: "⥸", gtrdot: "⋗", gtreqless: "⋛", gtreqqless: "⪌", gtrless: "≷", gtrsim: "≳", gvertneqq: "≩︀", gvnE: "≩︀", Hacek: "ˇ", hairsp: " ", half: "½", hamilt: "ℋ", HARDcy: "Ъ", hardcy: "ъ", harrcir: "⥈", harr: "↔", hArr: "⇔", harrw: "↭", Hat: "^", hbar: "ℏ", Hcirc: "Ĥ", hcirc: "ĥ", hearts: "♥", heartsuit: "♥", hellip: "…", hercon: "⊹", hfr: "𝔥", Hfr: "ℌ", HilbertSpace: "ℋ", hksearow: "⤥", hkswarow: "⤦", hoarr: "⇿", homtht: "∻", hookleftarrow: "↩", hookrightarrow: "↪", hopf: "𝕙", Hopf: "ℍ", horbar: "―", HorizontalLine: "─", hscr: "𝒽", Hscr: "ℋ", hslash: "ℏ", Hstrok: "Ħ", hstrok: "ħ", HumpDownHump: "≎", HumpEqual: "≏", hybull: "⁃", hyphen: "‐", Iacute: "Í", iacute: "í", ic: "⁣", Icirc: "Î", icirc: "î", Icy: "И", icy: "и", Idot: "İ", IEcy: "Е", iecy: "е", iexcl: "¡", iff: "⇔", ifr: "𝔦", Ifr: "ℑ", Igrave: "Ì", igrave: "ì", ii: "ⅈ", iiiint: "⨌", iiint: "∭", iinfin: "⧜", iiota: "℩", IJlig: "IJ", ijlig: "ij", Imacr: "Ī", imacr: "ī", image: "ℑ", ImaginaryI: "ⅈ", imagline: "ℐ", imagpart: "ℑ", imath: "ı", Im: "ℑ", imof: "⊷", imped: "Ƶ", Implies: "⇒", incare: "℅", in: "∈", infin: "∞", infintie: "⧝", inodot: "ı", intcal: "⊺", int: "∫", Int: "∬", integers: "ℤ", Integral: "∫", intercal: "⊺", Intersection: "⋂", intlarhk: "⨗", intprod: "⨼", InvisibleComma: "⁣", InvisibleTimes: "⁢", IOcy: "Ё", iocy: "ё", Iogon: "Į", iogon: "į", Iopf: "𝕀", iopf: "𝕚", Iota: "Ι", iota: "ι", iprod: "⨼", iquest: "¿", iscr: "𝒾", Iscr: "ℐ", isin: "∈", isindot: "⋵", isinE: "⋹", isins: "⋴", isinsv: "⋳", isinv: "∈", it: "⁢", Itilde: "Ĩ", itilde: "ĩ", Iukcy: "І", iukcy: "і", Iuml: "Ï", iuml: "ï", Jcirc: "Ĵ", jcirc: "ĵ", Jcy: "Й", jcy: "й", Jfr: "𝔍", jfr: "𝔧", jmath: "ȷ", Jopf: "𝕁", jopf: "𝕛", Jscr: "𝒥", jscr: "𝒿", Jsercy: "Ј", jsercy: "ј", Jukcy: "Є", jukcy: "є", Kappa: "Κ", kappa: "κ", kappav: "ϰ", Kcedil: "Ķ", kcedil: "ķ", Kcy: "К", kcy: "к", Kfr: "𝔎", kfr: "𝔨", kgreen: "ĸ", KHcy: "Х", khcy: "х", KJcy: "Ќ", kjcy: "ќ", Kopf: "𝕂", kopf: "𝕜", Kscr: "𝒦", kscr: "𝓀", lAarr: "⇚", Lacute: "Ĺ", lacute: "ĺ", laemptyv: "⦴", lagran: "ℒ", Lambda: "Λ", lambda: "λ", lang: "⟨", Lang: "⟪", langd: "⦑", langle: "⟨", lap: "⪅", Laplacetrf: "ℒ", laquo: "«", larrb: "⇤", larrbfs: "⤟", larr: "←", Larr: "↞", lArr: "⇐", larrfs: "⤝", larrhk: "↩", larrlp: "↫", larrpl: "⤹", larrsim: "⥳", larrtl: "↢", latail: "⤙", lAtail: "⤛", lat: "⪫", late: "⪭", lates: "⪭︀", lbarr: "⤌", lBarr: "⤎", lbbrk: "❲", lbrace: "{", lbrack: "[", lbrke: "⦋", lbrksld: "⦏", lbrkslu: "⦍", Lcaron: "Ľ", lcaron: "ľ", Lcedil: "Ļ", lcedil: "ļ", lceil: "⌈", lcub: "{", Lcy: "Л", lcy: "л", ldca: "⤶", ldquo: "“", ldquor: "„", ldrdhar: "⥧", ldrushar: "⥋", ldsh: "↲", le: "≤", lE: "≦", LeftAngleBracket: "⟨", LeftArrowBar: "⇤", leftarrow: "←", LeftArrow: "←", Leftarrow: "⇐", LeftArrowRightArrow: "⇆", leftarrowtail: "↢", LeftCeiling: "⌈", LeftDoubleBracket: "⟦", LeftDownTeeVector: "⥡", LeftDownVectorBar: "⥙", LeftDownVector: "⇃", LeftFloor: "⌊", leftharpoondown: "↽", leftharpoonup: "↼", leftleftarrows: "⇇", leftrightarrow: "↔", LeftRightArrow: "↔", Leftrightarrow: "⇔", leftrightarrows: "⇆", leftrightharpoons: "⇋", leftrightsquigarrow: "↭", LeftRightVector: "⥎", LeftTeeArrow: "↤", LeftTee: "⊣", LeftTeeVector: "⥚", leftthreetimes: "⋋", LeftTriangleBar: "⧏", LeftTriangle: "⊲", LeftTriangleEqual: "⊴", LeftUpDownVector: "⥑", LeftUpTeeVector: "⥠", LeftUpVectorBar: "⥘", LeftUpVector: "↿", LeftVectorBar: "⥒", LeftVector: "↼", lEg: "⪋", leg: "⋚", leq: "≤", leqq: "≦", leqslant: "⩽", lescc: "⪨", les: "⩽", lesdot: "⩿", lesdoto: "⪁", lesdotor: "⪃", lesg: "⋚︀", lesges: "⪓", lessapprox: "⪅", lessdot: "⋖", lesseqgtr: "⋚", lesseqqgtr: "⪋", LessEqualGreater: "⋚", LessFullEqual: "≦", LessGreater: "≶", lessgtr: "≶", LessLess: "⪡", lesssim: "≲", LessSlantEqual: "⩽", LessTilde: "≲", lfisht: "⥼", lfloor: "⌊", Lfr: "𝔏", lfr: "𝔩", lg: "≶", lgE: "⪑", lHar: "⥢", lhard: "↽", lharu: "↼", lharul: "⥪", lhblk: "▄", LJcy: "Љ", ljcy: "љ", llarr: "⇇", ll: "≪", Ll: "⋘", llcorner: "⌞", Lleftarrow: "⇚", llhard: "⥫", lltri: "◺", Lmidot: "Ŀ", lmidot: "ŀ", lmoustache: "⎰", lmoust: "⎰", lnap: "⪉", lnapprox: "⪉", lne: "⪇", lnE: "≨", lneq: "⪇", lneqq: "≨", lnsim: "⋦", loang: "⟬", loarr: "⇽", lobrk: "⟦", longleftarrow: "⟵", LongLeftArrow: "⟵", Longleftarrow: "⟸", longleftrightarrow: "⟷", LongLeftRightArrow: "⟷", Longleftrightarrow: "⟺", longmapsto: "⟼", longrightarrow: "⟶", LongRightArrow: "⟶", Longrightarrow: "⟹", looparrowleft: "↫", looparrowright: "↬", lopar: "⦅", Lopf: "𝕃", lopf: "𝕝", loplus: "⨭", lotimes: "⨴", lowast: "∗", lowbar: "_", LowerLeftArrow: "↙", LowerRightArrow: "↘", loz: "◊", lozenge: "◊", lozf: "⧫", lpar: "(", lparlt: "⦓", lrarr: "⇆", lrcorner: "⌟", lrhar: "⇋", lrhard: "⥭", lrm: "‎", lrtri: "⊿", lsaquo: "‹", lscr: "𝓁", Lscr: "ℒ", lsh: "↰", Lsh: "↰", lsim: "≲", lsime: "⪍", lsimg: "⪏", lsqb: "[", lsquo: "‘", lsquor: "‚", Lstrok: "Ł", lstrok: "ł", ltcc: "⪦", ltcir: "⩹", lt: "<", LT: "<", Lt: "≪", ltdot: "⋖", lthree: "⋋", ltimes: "⋉", ltlarr: "⥶", ltquest: "⩻", ltri: "◃", ltrie: "⊴", ltrif: "◂", ltrPar: "⦖", lurdshar: "⥊", luruhar: "⥦", lvertneqq: "≨︀", lvnE: "≨︀", macr: "¯", male: "♂", malt: "✠", maltese: "✠", Map: "⤅", map: "↦", mapsto: "↦", mapstodown: "↧", mapstoleft: "↤", mapstoup: "↥", marker: "▮", mcomma: "⨩", Mcy: "М", mcy: "м", mdash: "—", mDDot: "∺", measuredangle: "∡", MediumSpace: " ", Mellintrf: "ℳ", Mfr: "𝔐", mfr: "𝔪", mho: "℧", micro: "µ", midast: "*", midcir: "⫰", mid: "∣", middot: "·", minusb: "⊟", minus: "−", minusd: "∸", minusdu: "⨪", MinusPlus: "∓", mlcp: "⫛", mldr: "…", mnplus: "∓", models: "⊧", Mopf: "𝕄", mopf: "𝕞", mp: "∓", mscr: "𝓂", Mscr: "ℳ", mstpos: "∾", Mu: "Μ", mu: "μ", multimap: "⊸", mumap: "⊸", nabla: "∇", Nacute: "Ń", nacute: "ń", nang: "∠⃒", nap: "≉", napE: "⩰̸", napid: "≋̸", napos: "ʼn", napprox: "≉", natural: "♮", naturals: "ℕ", natur: "♮", nbsp: " ", nbump: "≎̸", nbumpe: "≏̸", ncap: "⩃", Ncaron: "Ň", ncaron: "ň", Ncedil: "Ņ", ncedil: "ņ", ncong: "≇", ncongdot: "⩭̸", ncup: "⩂", Ncy: "Н", ncy: "н", ndash: "–", nearhk: "⤤", nearr: "↗", neArr: "⇗", nearrow: "↗", ne: "≠", nedot: "≐̸", NegativeMediumSpace: "​", NegativeThickSpace: "​", NegativeThinSpace: "​", NegativeVeryThinSpace: "​", nequiv: "≢", nesear: "⤨", nesim: "≂̸", NestedGreaterGreater: "≫", NestedLessLess: "≪", NewLine: `
3540
- `, nexist: "∄", nexists: "∄", Nfr: "𝔑", nfr: "𝔫", ngE: "≧̸", nge: "≱", ngeq: "≱", ngeqq: "≧̸", ngeqslant: "⩾̸", nges: "⩾̸", nGg: "⋙̸", ngsim: "≵", nGt: "≫⃒", ngt: "≯", ngtr: "≯", nGtv: "≫̸", nharr: "↮", nhArr: "⇎", nhpar: "⫲", ni: "∋", nis: "⋼", nisd: "⋺", niv: "∋", NJcy: "Њ", njcy: "њ", nlarr: "↚", nlArr: "⇍", nldr: "‥", nlE: "≦̸", nle: "≰", nleftarrow: "↚", nLeftarrow: "⇍", nleftrightarrow: "↮", nLeftrightarrow: "⇎", nleq: "≰", nleqq: "≦̸", nleqslant: "⩽̸", nles: "⩽̸", nless: "≮", nLl: "⋘̸", nlsim: "≴", nLt: "≪⃒", nlt: "≮", nltri: "⋪", nltrie: "⋬", nLtv: "≪̸", nmid: "∤", NoBreak: "⁠", NonBreakingSpace: " ", nopf: "𝕟", Nopf: "ℕ", Not: "⫬", not: "¬", NotCongruent: "≢", NotCupCap: "≭", NotDoubleVerticalBar: "∦", NotElement: "∉", NotEqual: "≠", NotEqualTilde: "≂̸", NotExists: "∄", NotGreater: "≯", NotGreaterEqual: "≱", NotGreaterFullEqual: "≧̸", NotGreaterGreater: "≫̸", NotGreaterLess: "≹", NotGreaterSlantEqual: "⩾̸", NotGreaterTilde: "≵", NotHumpDownHump: "≎̸", NotHumpEqual: "≏̸", notin: "∉", notindot: "⋵̸", notinE: "⋹̸", notinva: "∉", notinvb: "⋷", notinvc: "⋶", NotLeftTriangleBar: "⧏̸", NotLeftTriangle: "⋪", NotLeftTriangleEqual: "⋬", NotLess: "≮", NotLessEqual: "≰", NotLessGreater: "≸", NotLessLess: "≪̸", NotLessSlantEqual: "⩽̸", NotLessTilde: "≴", NotNestedGreaterGreater: "⪢̸", NotNestedLessLess: "⪡̸", notni: "∌", notniva: "∌", notnivb: "⋾", notnivc: "⋽", NotPrecedes: "⊀", NotPrecedesEqual: "⪯̸", NotPrecedesSlantEqual: "⋠", NotReverseElement: "∌", NotRightTriangleBar: "⧐̸", NotRightTriangle: "⋫", NotRightTriangleEqual: "⋭", NotSquareSubset: "⊏̸", NotSquareSubsetEqual: "⋢", NotSquareSuperset: "⊐̸", NotSquareSupersetEqual: "⋣", NotSubset: "⊂⃒", NotSubsetEqual: "⊈", NotSucceeds: "⊁", NotSucceedsEqual: "⪰̸", NotSucceedsSlantEqual: "⋡", NotSucceedsTilde: "≿̸", NotSuperset: "⊃⃒", NotSupersetEqual: "⊉", NotTilde: "≁", NotTildeEqual: "≄", NotTildeFullEqual: "≇", NotTildeTilde: "≉", NotVerticalBar: "∤", nparallel: "∦", npar: "∦", nparsl: "⫽⃥", npart: "∂̸", npolint: "⨔", npr: "⊀", nprcue: "⋠", nprec: "⊀", npreceq: "⪯̸", npre: "⪯̸", nrarrc: "⤳̸", nrarr: "↛", nrArr: "⇏", nrarrw: "↝̸", nrightarrow: "↛", nRightarrow: "⇏", nrtri: "⋫", nrtrie: "⋭", nsc: "⊁", nsccue: "⋡", nsce: "⪰̸", Nscr: "𝒩", nscr: "𝓃", nshortmid: "∤", nshortparallel: "∦", nsim: "≁", nsime: "≄", nsimeq: "≄", nsmid: "∤", nspar: "∦", nsqsube: "⋢", nsqsupe: "⋣", nsub: "⊄", nsubE: "⫅̸", nsube: "⊈", nsubset: "⊂⃒", nsubseteq: "⊈", nsubseteqq: "⫅̸", nsucc: "⊁", nsucceq: "⪰̸", nsup: "⊅", nsupE: "⫆̸", nsupe: "⊉", nsupset: "⊃⃒", nsupseteq: "⊉", nsupseteqq: "⫆̸", ntgl: "≹", Ntilde: "Ñ", ntilde: "ñ", ntlg: "≸", ntriangleleft: "⋪", ntrianglelefteq: "⋬", ntriangleright: "⋫", ntrianglerighteq: "⋭", Nu: "Ν", nu: "ν", num: "#", numero: "№", numsp: " ", nvap: "≍⃒", nvdash: "⊬", nvDash: "⊭", nVdash: "⊮", nVDash: "⊯", nvge: "≥⃒", nvgt: ">⃒", nvHarr: "⤄", nvinfin: "⧞", nvlArr: "⤂", nvle: "≤⃒", nvlt: "<⃒", nvltrie: "⊴⃒", nvrArr: "⤃", nvrtrie: "⊵⃒", nvsim: "∼⃒", nwarhk: "⤣", nwarr: "↖", nwArr: "⇖", nwarrow: "↖", nwnear: "⤧", Oacute: "Ó", oacute: "ó", oast: "⊛", Ocirc: "Ô", ocirc: "ô", ocir: "⊚", Ocy: "О", ocy: "о", odash: "⊝", Odblac: "Ő", odblac: "ő", odiv: "⨸", odot: "⊙", odsold: "⦼", OElig: "Œ", oelig: "œ", ofcir: "⦿", Ofr: "𝔒", ofr: "𝔬", ogon: "˛", Ograve: "Ò", ograve: "ò", ogt: "⧁", ohbar: "⦵", ohm: "Ω", oint: "∮", olarr: "↺", olcir: "⦾", olcross: "⦻", oline: "‾", olt: "⧀", Omacr: "Ō", omacr: "ō", Omega: "Ω", omega: "ω", Omicron: "Ο", omicron: "ο", omid: "⦶", ominus: "⊖", Oopf: "𝕆", oopf: "𝕠", opar: "⦷", OpenCurlyDoubleQuote: "“", OpenCurlyQuote: "‘", operp: "⦹", oplus: "⊕", orarr: "↻", Or: "⩔", or: "∨", ord: "⩝", order: "ℴ", orderof: "ℴ", ordf: "ª", ordm: "º", origof: "⊶", oror: "⩖", orslope: "⩗", orv: "⩛", oS: "Ⓢ", Oscr: "𝒪", oscr: "ℴ", Oslash: "Ø", oslash: "ø", osol: "⊘", Otilde: "Õ", otilde: "õ", otimesas: "⨶", Otimes: "⨷", otimes: "⊗", Ouml: "Ö", ouml: "ö", ovbar: "⌽", OverBar: "‾", OverBrace: "⏞", OverBracket: "⎴", OverParenthesis: "⏜", para: "¶", parallel: "∥", par: "∥", parsim: "⫳", parsl: "⫽", part: "∂", PartialD: "∂", Pcy: "П", pcy: "п", percnt: "%", period: ".", permil: "‰", perp: "⊥", pertenk: "‱", Pfr: "𝔓", pfr: "𝔭", Phi: "Φ", phi: "φ", phiv: "ϕ", phmmat: "ℳ", phone: "☎", Pi: "Π", pi: "π", pitchfork: "⋔", piv: "ϖ", planck: "ℏ", planckh: "ℎ", plankv: "ℏ", plusacir: "⨣", plusb: "⊞", pluscir: "⨢", plus: "+", plusdo: "∔", plusdu: "⨥", pluse: "⩲", PlusMinus: "±", plusmn: "±", plussim: "⨦", plustwo: "⨧", pm: "±", Poincareplane: "ℌ", pointint: "⨕", popf: "𝕡", Popf: "ℙ", pound: "£", prap: "⪷", Pr: "⪻", pr: "≺", prcue: "≼", precapprox: "⪷", prec: "≺", preccurlyeq: "≼", Precedes: "≺", PrecedesEqual: "⪯", PrecedesSlantEqual: "≼", PrecedesTilde: "≾", preceq: "⪯", precnapprox: "⪹", precneqq: "⪵", precnsim: "⋨", pre: "⪯", prE: "⪳", precsim: "≾", prime: "′", Prime: "″", primes: "ℙ", prnap: "⪹", prnE: "⪵", prnsim: "⋨", prod: "∏", Product: "∏", profalar: "⌮", profline: "⌒", profsurf: "⌓", prop: "∝", Proportional: "∝", Proportion: "∷", propto: "∝", prsim: "≾", prurel: "⊰", Pscr: "𝒫", pscr: "𝓅", Psi: "Ψ", psi: "ψ", puncsp: " ", Qfr: "𝔔", qfr: "𝔮", qint: "⨌", qopf: "𝕢", Qopf: "ℚ", qprime: "⁗", Qscr: "𝒬", qscr: "𝓆", quaternions: "ℍ", quatint: "⨖", quest: "?", questeq: "≟", quot: '"', QUOT: '"', rAarr: "⇛", race: "∽̱", Racute: "Ŕ", racute: "ŕ", radic: "√", raemptyv: "⦳", rang: "⟩", Rang: "⟫", rangd: "⦒", range: "⦥", rangle: "⟩", raquo: "»", rarrap: "⥵", rarrb: "⇥", rarrbfs: "⤠", rarrc: "⤳", rarr: "→", Rarr: "↠", rArr: "⇒", rarrfs: "⤞", rarrhk: "↪", rarrlp: "↬", rarrpl: "⥅", rarrsim: "⥴", Rarrtl: "⤖", rarrtl: "↣", rarrw: "↝", ratail: "⤚", rAtail: "⤜", ratio: "∶", rationals: "ℚ", rbarr: "⤍", rBarr: "⤏", RBarr: "⤐", rbbrk: "❳", rbrace: "}", rbrack: "]", rbrke: "⦌", rbrksld: "⦎", rbrkslu: "⦐", Rcaron: "Ř", rcaron: "ř", Rcedil: "Ŗ", rcedil: "ŗ", rceil: "⌉", rcub: "}", Rcy: "Р", rcy: "р", rdca: "⤷", rdldhar: "⥩", rdquo: "”", rdquor: "”", rdsh: "↳", real: "ℜ", realine: "ℛ", realpart: "ℜ", reals: "ℝ", Re: "ℜ", rect: "▭", reg: "®", REG: "®", ReverseElement: "∋", ReverseEquilibrium: "⇋", ReverseUpEquilibrium: "⥯", rfisht: "⥽", rfloor: "⌋", rfr: "𝔯", Rfr: "ℜ", rHar: "⥤", rhard: "⇁", rharu: "⇀", rharul: "⥬", Rho: "Ρ", rho: "ρ", rhov: "ϱ", RightAngleBracket: "⟩", RightArrowBar: "⇥", rightarrow: "→", RightArrow: "→", Rightarrow: "⇒", RightArrowLeftArrow: "⇄", rightarrowtail: "↣", RightCeiling: "⌉", RightDoubleBracket: "⟧", RightDownTeeVector: "⥝", RightDownVectorBar: "⥕", RightDownVector: "⇂", RightFloor: "⌋", rightharpoondown: "⇁", rightharpoonup: "⇀", rightleftarrows: "⇄", rightleftharpoons: "⇌", rightrightarrows: "⇉", rightsquigarrow: "↝", RightTeeArrow: "↦", RightTee: "⊢", RightTeeVector: "⥛", rightthreetimes: "⋌", RightTriangleBar: "⧐", RightTriangle: "⊳", RightTriangleEqual: "⊵", RightUpDownVector: "⥏", RightUpTeeVector: "⥜", RightUpVectorBar: "⥔", RightUpVector: "↾", RightVectorBar: "⥓", RightVector: "⇀", ring: "˚", risingdotseq: "≓", rlarr: "⇄", rlhar: "⇌", rlm: "‏", rmoustache: "⎱", rmoust: "⎱", rnmid: "⫮", roang: "⟭", roarr: "⇾", robrk: "⟧", ropar: "⦆", ropf: "𝕣", Ropf: "ℝ", roplus: "⨮", rotimes: "⨵", RoundImplies: "⥰", rpar: ")", rpargt: "⦔", rppolint: "⨒", rrarr: "⇉", Rrightarrow: "⇛", rsaquo: "›", rscr: "𝓇", Rscr: "ℛ", rsh: "↱", Rsh: "↱", rsqb: "]", rsquo: "’", rsquor: "’", rthree: "⋌", rtimes: "⋊", rtri: "▹", rtrie: "⊵", rtrif: "▸", rtriltri: "⧎", RuleDelayed: "⧴", ruluhar: "⥨", rx: "℞", Sacute: "Ś", sacute: "ś", sbquo: "‚", scap: "⪸", Scaron: "Š", scaron: "š", Sc: "⪼", sc: "≻", sccue: "≽", sce: "⪰", scE: "⪴", Scedil: "Ş", scedil: "ş", Scirc: "Ŝ", scirc: "ŝ", scnap: "⪺", scnE: "⪶", scnsim: "⋩", scpolint: "⨓", scsim: "≿", Scy: "С", scy: "с", sdotb: "⊡", sdot: "⋅", sdote: "⩦", searhk: "⤥", searr: "↘", seArr: "⇘", searrow: "↘", sect: "§", semi: ";", seswar: "⤩", setminus: "∖", setmn: "∖", sext: "✶", Sfr: "𝔖", sfr: "𝔰", sfrown: "⌢", sharp: "♯", SHCHcy: "Щ", shchcy: "щ", SHcy: "Ш", shcy: "ш", ShortDownArrow: "↓", ShortLeftArrow: "←", shortmid: "∣", shortparallel: "∥", ShortRightArrow: "→", ShortUpArrow: "↑", shy: "­", Sigma: "Σ", sigma: "σ", sigmaf: "ς", sigmav: "ς", sim: "∼", simdot: "⩪", sime: "≃", simeq: "≃", simg: "⪞", simgE: "⪠", siml: "⪝", simlE: "⪟", simne: "≆", simplus: "⨤", simrarr: "⥲", slarr: "←", SmallCircle: "∘", smallsetminus: "∖", smashp: "⨳", smeparsl: "⧤", smid: "∣", smile: "⌣", smt: "⪪", smte: "⪬", smtes: "⪬︀", SOFTcy: "Ь", softcy: "ь", solbar: "⌿", solb: "⧄", sol: "/", Sopf: "𝕊", sopf: "𝕤", spades: "♠", spadesuit: "♠", spar: "∥", sqcap: "⊓", sqcaps: "⊓︀", sqcup: "⊔", sqcups: "⊔︀", Sqrt: "√", sqsub: "⊏", sqsube: "⊑", sqsubset: "⊏", sqsubseteq: "⊑", sqsup: "⊐", sqsupe: "⊒", sqsupset: "⊐", sqsupseteq: "⊒", square: "□", Square: "□", SquareIntersection: "⊓", SquareSubset: "⊏", SquareSubsetEqual: "⊑", SquareSuperset: "⊐", SquareSupersetEqual: "⊒", SquareUnion: "⊔", squarf: "▪", squ: "□", squf: "▪", srarr: "→", Sscr: "𝒮", sscr: "𝓈", ssetmn: "∖", ssmile: "⌣", sstarf: "⋆", Star: "⋆", star: "☆", starf: "★", straightepsilon: "ϵ", straightphi: "ϕ", strns: "¯", sub: "⊂", Sub: "⋐", subdot: "⪽", subE: "⫅", sube: "⊆", subedot: "⫃", submult: "⫁", subnE: "⫋", subne: "⊊", subplus: "⪿", subrarr: "⥹", subset: "⊂", Subset: "⋐", subseteq: "⊆", subseteqq: "⫅", SubsetEqual: "⊆", subsetneq: "⊊", subsetneqq: "⫋", subsim: "⫇", subsub: "⫕", subsup: "⫓", succapprox: "⪸", succ: "≻", succcurlyeq: "≽", Succeeds: "≻", SucceedsEqual: "⪰", SucceedsSlantEqual: "≽", SucceedsTilde: "≿", succeq: "⪰", succnapprox: "⪺", succneqq: "⪶", succnsim: "⋩", succsim: "≿", SuchThat: "∋", sum: "∑", Sum: "∑", sung: "♪", sup1: "¹", sup2: "²", sup3: "³", sup: "⊃", Sup: "⋑", supdot: "⪾", supdsub: "⫘", supE: "⫆", supe: "⊇", supedot: "⫄", Superset: "⊃", SupersetEqual: "⊇", suphsol: "⟉", suphsub: "⫗", suplarr: "⥻", supmult: "⫂", supnE: "⫌", supne: "⊋", supplus: "⫀", supset: "⊃", Supset: "⋑", supseteq: "⊇", supseteqq: "⫆", supsetneq: "⊋", supsetneqq: "⫌", supsim: "⫈", supsub: "⫔", supsup: "⫖", swarhk: "⤦", swarr: "↙", swArr: "⇙", swarrow: "↙", swnwar: "⤪", szlig: "ß", Tab: " ", target: "⌖", Tau: "Τ", tau: "τ", tbrk: "⎴", Tcaron: "Ť", tcaron: "ť", Tcedil: "Ţ", tcedil: "ţ", Tcy: "Т", tcy: "т", tdot: "⃛", telrec: "⌕", Tfr: "𝔗", tfr: "𝔱", there4: "∴", therefore: "∴", Therefore: "∴", Theta: "Θ", theta: "θ", thetasym: "ϑ", thetav: "ϑ", thickapprox: "≈", thicksim: "∼", ThickSpace: "  ", ThinSpace: " ", thinsp: " ", thkap: "≈", thksim: "∼", THORN: "Þ", thorn: "þ", tilde: "˜", Tilde: "∼", TildeEqual: "≃", TildeFullEqual: "≅", TildeTilde: "≈", timesbar: "⨱", timesb: "⊠", times: "×", timesd: "⨰", tint: "∭", toea: "⤨", topbot: "⌶", topcir: "⫱", top: "⊤", Topf: "𝕋", topf: "𝕥", topfork: "⫚", tosa: "⤩", tprime: "‴", trade: "™", TRADE: "™", triangle: "▵", triangledown: "▿", triangleleft: "◃", trianglelefteq: "⊴", triangleq: "≜", triangleright: "▹", trianglerighteq: "⊵", tridot: "◬", trie: "≜", triminus: "⨺", TripleDot: "⃛", triplus: "⨹", trisb: "⧍", tritime: "⨻", trpezium: "⏢", Tscr: "𝒯", tscr: "𝓉", TScy: "Ц", tscy: "ц", TSHcy: "Ћ", tshcy: "ћ", Tstrok: "Ŧ", tstrok: "ŧ", twixt: "≬", twoheadleftarrow: "↞", twoheadrightarrow: "↠", Uacute: "Ú", uacute: "ú", uarr: "↑", Uarr: "↟", uArr: "⇑", Uarrocir: "⥉", Ubrcy: "Ў", ubrcy: "ў", Ubreve: "Ŭ", ubreve: "ŭ", Ucirc: "Û", ucirc: "û", Ucy: "У", ucy: "у", udarr: "⇅", Udblac: "Ű", udblac: "ű", udhar: "⥮", ufisht: "⥾", Ufr: "𝔘", ufr: "𝔲", Ugrave: "Ù", ugrave: "ù", uHar: "⥣", uharl: "↿", uharr: "↾", uhblk: "▀", ulcorn: "⌜", ulcorner: "⌜", ulcrop: "⌏", ultri: "◸", Umacr: "Ū", umacr: "ū", uml: "¨", UnderBar: "_", UnderBrace: "⏟", UnderBracket: "⎵", UnderParenthesis: "⏝", Union: "⋃", UnionPlus: "⊎", Uogon: "Ų", uogon: "ų", Uopf: "𝕌", uopf: "𝕦", UpArrowBar: "⤒", uparrow: "↑", UpArrow: "↑", Uparrow: "⇑", UpArrowDownArrow: "⇅", updownarrow: "↕", UpDownArrow: "↕", Updownarrow: "⇕", UpEquilibrium: "⥮", upharpoonleft: "↿", upharpoonright: "↾", uplus: "⊎", UpperLeftArrow: "↖", UpperRightArrow: "↗", upsi: "υ", Upsi: "ϒ", upsih: "ϒ", Upsilon: "Υ", upsilon: "υ", UpTeeArrow: "↥", UpTee: "⊥", upuparrows: "⇈", urcorn: "⌝", urcorner: "⌝", urcrop: "⌎", Uring: "Ů", uring: "ů", urtri: "◹", Uscr: "𝒰", uscr: "𝓊", utdot: "⋰", Utilde: "Ũ", utilde: "ũ", utri: "▵", utrif: "▴", uuarr: "⇈", Uuml: "Ü", uuml: "ü", uwangle: "⦧", vangrt: "⦜", varepsilon: "ϵ", varkappa: "ϰ", varnothing: "∅", varphi: "ϕ", varpi: "ϖ", varpropto: "∝", varr: "↕", vArr: "⇕", varrho: "ϱ", varsigma: "ς", varsubsetneq: "⊊︀", varsubsetneqq: "⫋︀", varsupsetneq: "⊋︀", varsupsetneqq: "⫌︀", vartheta: "ϑ", vartriangleleft: "⊲", vartriangleright: "⊳", vBar: "⫨", Vbar: "⫫", vBarv: "⫩", Vcy: "В", vcy: "в", vdash: "⊢", vDash: "⊨", Vdash: "⊩", VDash: "⊫", Vdashl: "⫦", veebar: "⊻", vee: "∨", Vee: "⋁", veeeq: "≚", vellip: "⋮", verbar: "|", Verbar: "‖", vert: "|", Vert: "‖", VerticalBar: "∣", VerticalLine: "|", VerticalSeparator: "❘", VerticalTilde: "≀", VeryThinSpace: " ", Vfr: "𝔙", vfr: "𝔳", vltri: "⊲", vnsub: "⊂⃒", vnsup: "⊃⃒", Vopf: "𝕍", vopf: "𝕧", vprop: "∝", vrtri: "⊳", Vscr: "𝒱", vscr: "𝓋", vsubnE: "⫋︀", vsubne: "⊊︀", vsupnE: "⫌︀", vsupne: "⊋︀", Vvdash: "⊪", vzigzag: "⦚", Wcirc: "Ŵ", wcirc: "ŵ", wedbar: "⩟", wedge: "∧", Wedge: "⋀", wedgeq: "≙", weierp: "℘", Wfr: "𝔚", wfr: "𝔴", Wopf: "𝕎", wopf: "𝕨", wp: "℘", wr: "≀", wreath: "≀", Wscr: "𝒲", wscr: "𝓌", xcap: "⋂", xcirc: "◯", xcup: "⋃", xdtri: "▽", Xfr: "𝔛", xfr: "𝔵", xharr: "⟷", xhArr: "⟺", Xi: "Ξ", xi: "ξ", xlarr: "⟵", xlArr: "⟸", xmap: "⟼", xnis: "⋻", xodot: "⨀", Xopf: "𝕏", xopf: "𝕩", xoplus: "⨁", xotime: "⨂", xrarr: "⟶", xrArr: "⟹", Xscr: "𝒳", xscr: "𝓍", xsqcup: "⨆", xuplus: "⨄", xutri: "△", xvee: "⋁", xwedge: "⋀", Yacute: "Ý", yacute: "ý", YAcy: "Я", yacy: "я", Ycirc: "Ŷ", ycirc: "ŷ", Ycy: "Ы", ycy: "ы", yen: "¥", Yfr: "𝔜", yfr: "𝔶", YIcy: "Ї", yicy: "ї", Yopf: "𝕐", yopf: "𝕪", Yscr: "𝒴", yscr: "𝓎", YUcy: "Ю", yucy: "ю", yuml: "ÿ", Yuml: "Ÿ", Zacute: "Ź", zacute: "ź", Zcaron: "Ž", zcaron: "ž", Zcy: "З", zcy: "з", Zdot: "Ż", zdot: "ż", zeetrf: "ℨ", ZeroWidthSpace: "​", Zeta: "Ζ", zeta: "ζ", zfr: "𝔷", Zfr: "ℨ", ZHcy: "Ж", zhcy: "ж", zigrarr: "⇝", zopf: "𝕫", Zopf: "ℤ", Zscr: "𝒵", zscr: "𝓏", zwj: "‍", zwnj: "‌" };
3541
- }
3542
- }), Nu = $({
3543
- "../../node_modules/entities/lib/maps/legacy.json"(t, u) {
3544
- u.exports = { Aacute: "Á", aacute: "á", Acirc: "Â", acirc: "â", acute: "´", AElig: "Æ", aelig: "æ", Agrave: "À", agrave: "à", amp: "&", AMP: "&", Aring: "Å", aring: "å", Atilde: "Ã", atilde: "ã", Auml: "Ä", auml: "ä", brvbar: "¦", Ccedil: "Ç", ccedil: "ç", cedil: "¸", cent: "¢", copy: "©", COPY: "©", curren: "¤", deg: "°", divide: "÷", Eacute: "É", eacute: "é", Ecirc: "Ê", ecirc: "ê", Egrave: "È", egrave: "è", ETH: "Ð", eth: "ð", Euml: "Ë", euml: "ë", frac12: "½", frac14: "¼", frac34: "¾", gt: ">", GT: ">", Iacute: "Í", iacute: "í", Icirc: "Î", icirc: "î", iexcl: "¡", Igrave: "Ì", igrave: "ì", iquest: "¿", Iuml: "Ï", iuml: "ï", laquo: "«", lt: "<", LT: "<", macr: "¯", micro: "µ", middot: "·", nbsp: " ", not: "¬", Ntilde: "Ñ", ntilde: "ñ", Oacute: "Ó", oacute: "ó", Ocirc: "Ô", ocirc: "ô", Ograve: "Ò", ograve: "ò", ordf: "ª", ordm: "º", Oslash: "Ø", oslash: "ø", Otilde: "Õ", otilde: "õ", Ouml: "Ö", ouml: "ö", para: "¶", plusmn: "±", pound: "£", quot: '"', QUOT: '"', raquo: "»", reg: "®", REG: "®", sect: "§", shy: "­", sup1: "¹", sup2: "²", sup3: "³", szlig: "ß", THORN: "Þ", thorn: "þ", times: "×", Uacute: "Ú", uacute: "ú", Ucirc: "Û", ucirc: "û", Ugrave: "Ù", ugrave: "ù", uml: "¨", Uuml: "Ü", uuml: "ü", Yacute: "Ý", yacute: "ý", yen: "¥", yuml: "ÿ" };
3545
- }
3546
- }), St = $({
3547
- "../../node_modules/entities/lib/maps/xml.json"(t, u) {
3548
- u.exports = { amp: "&", apos: "'", gt: ">", lt: "<", quot: '"' };
3549
- }
3550
- }), Ou = $({
3551
- "../../node_modules/entities/lib/maps/decode.json"(t, u) {
3552
- u.exports = { 0: 65533, 128: 8364, 130: 8218, 131: 402, 132: 8222, 133: 8230, 134: 8224, 135: 8225, 136: 710, 137: 8240, 138: 352, 139: 8249, 140: 338, 142: 381, 145: 8216, 146: 8217, 147: 8220, 148: 8221, 149: 8226, 150: 8211, 151: 8212, 152: 732, 153: 8482, 154: 353, 155: 8250, 156: 339, 158: 382, 159: 376 };
3553
- }
3554
- }), Pu = $({
3555
- "../../node_modules/entities/lib/decode_codepoint.js"(t) {
3556
- var u = t && t.__importDefault || function(i) {
3557
- return i && i.__esModule ? i : { default: i };
3558
- };
3559
- Object.defineProperty(t, "__esModule", { value: !0 });
3560
- var n = u(Ou()), o = (
3561
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
3562
- String.fromCodePoint || function(i) {
3563
- var c = "";
3564
- return i > 65535 && (i -= 65536, c += String.fromCharCode(i >>> 10 & 1023 | 55296), i = 56320 | i & 1023), c += String.fromCharCode(i), c;
3565
- }
3566
- );
3567
- function s(i) {
3568
- return i >= 55296 && i <= 57343 || i > 1114111 ? "�" : (i in n.default && (i = n.default[i]), o(i));
3569
- }
3570
- t.default = s;
3571
- }
3572
- }), it = $({
3573
- "../../node_modules/entities/lib/decode.js"(t) {
3574
- var u = t && t.__importDefault || function(b) {
3575
- return b && b.__esModule ? b : { default: b };
3576
- };
3577
- Object.defineProperty(t, "__esModule", { value: !0 }), t.decodeHTML = t.decodeHTMLStrict = t.decodeXML = void 0;
3578
- var n = u(Bt()), o = u(Nu()), s = u(St()), i = u(Pu()), c = /&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;
3579
- t.decodeXML = d(s.default), t.decodeHTMLStrict = d(n.default);
3580
- function d(b) {
3581
- var D = f(b);
3582
- return function(v) {
3583
- return String(v).replace(c, D);
3584
- };
3585
- }
3586
- var m = function(b, D) {
3587
- return b < D ? 1 : -1;
3588
- };
3589
- t.decodeHTML = (function() {
3590
- for (var b = Object.keys(o.default).sort(m), D = Object.keys(n.default).sort(m), v = 0, C = 0; v < D.length; v++)
3591
- b[C] === D[v] ? (D[v] += ";?", C++) : D[v] += ";";
3592
- var F = new RegExp("&(?:" + D.join("|") + "|#[xX][\\da-fA-F]+;?|#\\d+;?)", "g"), w = f(n.default);
3593
- function L(O) {
3594
- return O.substr(-1) !== ";" && (O += ";"), w(O);
3595
- }
3596
- return function(O) {
3597
- return String(O).replace(F, L);
3598
- };
3599
- })();
3600
- function f(b) {
3601
- return function(D) {
3602
- if (D.charAt(1) === "#") {
3603
- var v = D.charAt(2);
3604
- return v === "X" || v === "x" ? i.default(parseInt(D.substr(3), 16)) : i.default(parseInt(D.substr(2), 10));
3605
- }
3606
- return b[D.slice(1, -1)] || D;
3607
- };
3608
- }
3609
- }
3610
- }), st = $({
3611
- "../../node_modules/entities/lib/encode.js"(t) {
3612
- var u = t && t.__importDefault || function(x) {
3613
- return x && x.__esModule ? x : { default: x };
3614
- };
3615
- Object.defineProperty(t, "__esModule", { value: !0 }), t.escapeUTF8 = t.escape = t.encodeNonAsciiHTML = t.encodeHTML = t.encodeXML = void 0;
3616
- var n = u(St()), o = m(n.default), s = f(o);
3617
- t.encodeXML = O(o);
3618
- var i = u(Bt()), c = m(i.default), d = f(c);
3619
- t.encodeHTML = C(c, d), t.encodeNonAsciiHTML = O(c);
3620
- function m(x) {
3621
- return Object.keys(x).sort().reduce(function(P, N) {
3622
- return P[x[N]] = "&" + N + ";", P;
3623
- }, {});
3624
- }
3625
- function f(x) {
3626
- for (var P = [], N = [], Y = 0, S = Object.keys(x); Y < S.length; Y++) {
3627
- var U = S[Y];
3628
- U.length === 1 ? P.push("\\" + U) : N.push(U);
3629
- }
3630
- P.sort();
3631
- for (var R = 0; R < P.length - 1; R++) {
3632
- for (var q = R; q < P.length - 1 && P[q].charCodeAt(1) + 1 === P[q + 1].charCodeAt(1); )
3633
- q += 1;
3634
- var _ = 1 + q - R;
3635
- _ < 3 || P.splice(R, _, P[R] + "-" + P[q]);
3636
- }
3637
- return N.unshift("[" + P.join("") + "]"), new RegExp(N.join("|"), "g");
3638
- }
3639
- var b = /(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g, D = (
3640
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
3641
- String.prototype.codePointAt != null ? (
3642
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3643
- (function(x) {
3644
- return x.codePointAt(0);
3645
- })
3646
- ) : (
3647
- // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
3648
- (function(x) {
3649
- return (x.charCodeAt(0) - 55296) * 1024 + x.charCodeAt(1) - 56320 + 65536;
3650
- })
3651
- )
3652
- );
3653
- function v(x) {
3654
- return "&#x" + (x.length > 1 ? D(x) : x.charCodeAt(0)).toString(16).toUpperCase() + ";";
3655
- }
3656
- function C(x, P) {
3657
- return function(N) {
3658
- return N.replace(P, function(Y) {
3659
- return x[Y];
3660
- }).replace(b, v);
3661
- };
3662
- }
3663
- var F = new RegExp(s.source + "|" + b.source, "g");
3664
- function w(x) {
3665
- return x.replace(F, v);
3666
- }
3667
- t.escape = w;
3668
- function L(x) {
3669
- return x.replace(s, v);
3670
- }
3671
- t.escapeUTF8 = L;
3672
- function O(x) {
3673
- return function(P) {
3674
- return P.replace(F, function(N) {
3675
- return x[N] || v(N);
3676
- });
3677
- };
3678
- }
3679
- }
3680
- }), qu = $({
3681
- "../../node_modules/entities/lib/index.js"(t) {
3682
- Object.defineProperty(t, "__esModule", { value: !0 }), t.decodeXMLStrict = t.decodeHTML5Strict = t.decodeHTML4Strict = t.decodeHTML5 = t.decodeHTML4 = t.decodeHTMLStrict = t.decodeHTML = t.decodeXML = t.encodeHTML5 = t.encodeHTML4 = t.escapeUTF8 = t.escape = t.encodeNonAsciiHTML = t.encodeHTML = t.encodeXML = t.encode = t.decodeStrict = t.decode = void 0;
3683
- var u = it(), n = st();
3684
- function o(m, f) {
3685
- return (!f || f <= 0 ? u.decodeXML : u.decodeHTML)(m);
3686
- }
3687
- t.decode = o;
3688
- function s(m, f) {
3689
- return (!f || f <= 0 ? u.decodeXML : u.decodeHTMLStrict)(m);
3690
- }
3691
- t.decodeStrict = s;
3692
- function i(m, f) {
3693
- return (!f || f <= 0 ? n.encodeXML : n.encodeHTML)(m);
3694
- }
3695
- t.encode = i;
3696
- var c = st();
3697
- Object.defineProperty(t, "encodeXML", { enumerable: !0, get: function() {
3698
- return c.encodeXML;
3699
- } }), Object.defineProperty(t, "encodeHTML", { enumerable: !0, get: function() {
3700
- return c.encodeHTML;
3701
- } }), Object.defineProperty(t, "encodeNonAsciiHTML", { enumerable: !0, get: function() {
3702
- return c.encodeNonAsciiHTML;
3703
- } }), Object.defineProperty(t, "escape", { enumerable: !0, get: function() {
3704
- return c.escape;
3705
- } }), Object.defineProperty(t, "escapeUTF8", { enumerable: !0, get: function() {
3706
- return c.escapeUTF8;
3707
- } }), Object.defineProperty(t, "encodeHTML4", { enumerable: !0, get: function() {
3708
- return c.encodeHTML;
3709
- } }), Object.defineProperty(t, "encodeHTML5", { enumerable: !0, get: function() {
3710
- return c.encodeHTML;
3711
- } });
3712
- var d = it();
3713
- Object.defineProperty(t, "decodeXML", { enumerable: !0, get: function() {
3714
- return d.decodeXML;
3715
- } }), Object.defineProperty(t, "decodeHTML", { enumerable: !0, get: function() {
3716
- return d.decodeHTML;
3717
- } }), Object.defineProperty(t, "decodeHTMLStrict", { enumerable: !0, get: function() {
3718
- return d.decodeHTMLStrict;
3719
- } }), Object.defineProperty(t, "decodeHTML4", { enumerable: !0, get: function() {
3720
- return d.decodeHTML;
3721
- } }), Object.defineProperty(t, "decodeHTML5", { enumerable: !0, get: function() {
3722
- return d.decodeHTML;
3723
- } }), Object.defineProperty(t, "decodeHTML4Strict", { enumerable: !0, get: function() {
3724
- return d.decodeHTMLStrict;
3725
- } }), Object.defineProperty(t, "decodeHTML5Strict", { enumerable: !0, get: function() {
3726
- return d.decodeHTMLStrict;
3727
- } }), Object.defineProperty(t, "decodeXMLStrict", { enumerable: !0, get: function() {
3728
- return d.decodeXML;
3729
- } });
3730
- }
3731
- }), ku = $({
3732
- "../../node_modules/ansi-to-html/lib/ansi_to_html.js"(t, u) {
3733
- function n(p, y) {
3734
- if (!(p instanceof y))
3735
- throw new TypeError("Cannot call a class as a function");
3736
- }
3737
- function o(p, y) {
3738
- for (var h = 0; h < y.length; h++) {
3739
- var A = y[h];
3740
- A.enumerable = A.enumerable || !1, A.configurable = !0, "value" in A && (A.writable = !0), Object.defineProperty(p, A.key, A);
3741
- }
3742
- }
3743
- function s(p, y, h) {
3744
- return y && o(p.prototype, y), p;
3745
- }
3746
- function i(p, y) {
3747
- var h = typeof Symbol < "u" && p[Symbol.iterator] || p["@@iterator"];
3748
- if (!h) {
3749
- if (Array.isArray(p) || (h = c(p)) || y) {
3750
- h && (p = h);
3751
- var A = 0, J = function() {
3752
- };
3753
- return { s: J, n: function() {
3754
- return A >= p.length ? { done: !0 } : { done: !1, value: p[A++] };
3755
- }, e: function(G) {
3756
- throw G;
3757
- }, f: J };
3758
- }
3759
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3760
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
3761
- }
3762
- var k = !0, X = !1, I;
3763
- return { s: function() {
3764
- h = h.call(p);
3765
- }, n: function() {
3766
- var G = h.next();
3767
- return k = G.done, G;
3768
- }, e: function(G) {
3769
- X = !0, I = G;
3770
- }, f: function() {
3771
- try {
3772
- !k && h.return != null && h.return();
3773
- } finally {
3774
- if (X) throw I;
3775
- }
3776
- } };
3777
- }
3778
- function c(p, y) {
3779
- if (p) {
3780
- if (typeof p == "string") return d(p, y);
3781
- var h = Object.prototype.toString.call(p).slice(8, -1);
3782
- if (h === "Object" && p.constructor && (h = p.constructor.name), h === "Map" || h === "Set") return Array.from(p);
3783
- if (h === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)) return d(p, y);
3784
- }
3785
- }
3786
- function d(p, y) {
3787
- (y == null || y > p.length) && (y = p.length);
3788
- for (var h = 0, A = new Array(y); h < y; h++)
3789
- A[h] = p[h];
3790
- return A;
3791
- }
3792
- var m = qu(), f = {
3793
- fg: "#FFF",
3794
- bg: "#000",
3795
- newline: !1,
3796
- escapeXML: !1,
3797
- stream: !1,
3798
- colors: b()
3799
- };
3800
- function b() {
3801
- var p = {
3802
- 0: "#000",
3803
- 1: "#A00",
3804
- 2: "#0A0",
3805
- 3: "#A50",
3806
- 4: "#00A",
3807
- 5: "#A0A",
3808
- 6: "#0AA",
3809
- 7: "#AAA",
3810
- 8: "#555",
3811
- 9: "#F55",
3812
- 10: "#5F5",
3813
- 11: "#FF5",
3814
- 12: "#55F",
3815
- 13: "#F5F",
3816
- 14: "#5FF",
3817
- 15: "#FFF"
3818
- };
3819
- return x(0, 5).forEach(function(y) {
3820
- x(0, 5).forEach(function(h) {
3821
- x(0, 5).forEach(function(A) {
3822
- return D(y, h, A, p);
3823
- });
3824
- });
3825
- }), x(0, 23).forEach(function(y) {
3826
- var h = y + 232, A = v(y * 10 + 8);
3827
- p[h] = "#" + A + A + A;
3828
- }), p;
3829
- }
3830
- function D(p, y, h, A) {
3831
- var J = 16 + p * 36 + y * 6 + h, k = p > 0 ? p * 40 + 55 : 0, X = y > 0 ? y * 40 + 55 : 0, I = h > 0 ? h * 40 + 55 : 0;
3832
- A[J] = C([k, X, I]);
3833
- }
3834
- function v(p) {
3835
- for (var y = p.toString(16); y.length < 2; )
3836
- y = "0" + y;
3837
- return y;
3838
- }
3839
- function C(p) {
3840
- var y = [], h = i(p), A;
3841
- try {
3842
- for (h.s(); !(A = h.n()).done; ) {
3843
- var J = A.value;
3844
- y.push(v(J));
3845
- }
3846
- } catch (k) {
3847
- h.e(k);
3848
- } finally {
3849
- h.f();
3850
- }
3851
- return "#" + y.join("");
3852
- }
3853
- function F(p, y, h, A) {
3854
- var J;
3855
- return y === "text" ? J = Y(h, A) : y === "display" ? J = L(p, h, A) : y === "xterm256Foreground" ? J = R(p, A.colors[h]) : y === "xterm256Background" ? J = q(p, A.colors[h]) : y === "rgb" && (J = w(p, h)), J;
3856
- }
3857
- function w(p, y) {
3858
- y = y.substring(2).slice(0, -1);
3859
- var h = +y.substr(0, 2), A = y.substring(5).split(";"), J = A.map(function(k) {
3860
- return ("0" + Number(k).toString(16)).substr(-2);
3861
- }).join("");
3862
- return U(p, (h === 38 ? "color:#" : "background-color:#") + J);
3863
- }
3864
- function L(p, y, h) {
3865
- y = parseInt(y, 10);
3866
- var A = {
3867
- "-1": function() {
3868
- return "<br/>";
3869
- },
3870
- 0: function() {
3871
- return p.length && O(p);
3872
- },
3873
- 1: function() {
3874
- return S(p, "b");
3875
- },
3876
- 3: function() {
3877
- return S(p, "i");
3878
- },
3879
- 4: function() {
3880
- return S(p, "u");
3881
- },
3882
- 8: function() {
3883
- return U(p, "display:none");
3884
- },
3885
- 9: function() {
3886
- return S(p, "strike");
3887
- },
3888
- 22: function() {
3889
- return U(p, "font-weight:normal;text-decoration:none;font-style:normal");
3890
- },
3891
- 23: function() {
3892
- return _(p, "i");
3893
- },
3894
- 24: function() {
3895
- return _(p, "u");
3896
- },
3897
- 39: function() {
3898
- return R(p, h.fg);
3899
- },
3900
- 49: function() {
3901
- return q(p, h.bg);
3902
- },
3903
- 53: function() {
3904
- return U(p, "text-decoration:overline");
3905
- }
3906
- }, J;
3907
- return A[y] ? J = A[y]() : 4 < y && y < 7 ? J = S(p, "blink") : 29 < y && y < 38 ? J = R(p, h.colors[y - 30]) : 39 < y && y < 48 ? J = q(p, h.colors[y - 40]) : 89 < y && y < 98 ? J = R(p, h.colors[8 + (y - 90)]) : 99 < y && y < 108 && (J = q(p, h.colors[8 + (y - 100)])), J;
3908
- }
3909
- function O(p) {
3910
- var y = p.slice(0);
3911
- return p.length = 0, y.reverse().map(function(h) {
3912
- return "</" + h + ">";
3913
- }).join("");
3914
- }
3915
- function x(p, y) {
3916
- for (var h = [], A = p; A <= y; A++)
3917
- h.push(A);
3918
- return h;
3919
- }
3920
- function P(p) {
3921
- return function(y) {
3922
- return (p === null || y.category !== p) && p !== "all";
3923
- };
3924
- }
3925
- function N(p) {
3926
- p = parseInt(p, 10);
3927
- var y = null;
3928
- return p === 0 ? y = "all" : p === 1 ? y = "bold" : 2 < p && p < 5 ? y = "underline" : 4 < p && p < 7 ? y = "blink" : p === 8 ? y = "hide" : p === 9 ? y = "strike" : 29 < p && p < 38 || p === 39 || 89 < p && p < 98 ? y = "foreground-color" : (39 < p && p < 48 || p === 49 || 99 < p && p < 108) && (y = "background-color"), y;
3929
- }
3930
- function Y(p, y) {
3931
- return y.escapeXML ? m.encodeXML(p) : p;
3932
- }
3933
- function S(p, y, h) {
3934
- return h || (h = ""), p.push(y), "<".concat(y).concat(h ? ' style="'.concat(h, '"') : "", ">");
3935
- }
3936
- function U(p, y) {
3937
- return S(p, "span", y);
3938
- }
3939
- function R(p, y) {
3940
- return S(p, "span", "color:" + y);
3941
- }
3942
- function q(p, y) {
3943
- return S(p, "span", "background-color:" + y);
3944
- }
3945
- function _(p, y) {
3946
- var h;
3947
- if (p.slice(-1)[0] === y && (h = p.pop()), h)
3948
- return "</" + y + ">";
3949
- }
3950
- function V(p, y, h) {
3951
- var A = !1, J = 3;
3952
- function k() {
3953
- return "";
3954
- }
3955
- function X(Z, ee) {
3956
- return h("xterm256Foreground", ee), "";
3957
- }
3958
- function I(Z, ee) {
3959
- return h("xterm256Background", ee), "";
3960
- }
3961
- function G(Z) {
3962
- return y.newline ? h("display", -1) : h("text", Z), "";
3963
- }
3964
- function ie(Z, ee) {
3965
- A = !0, ee.trim().length === 0 && (ee = "0"), ee = ee.trimRight(";").split(";");
3966
- var he = i(ee), ve;
3967
- try {
3968
- for (he.s(); !(ve = he.n()).done; ) {
3969
- var we = ve.value;
3970
- h("display", we);
3971
- }
3972
- } catch (Ce) {
3973
- he.e(Ce);
3974
- } finally {
3975
- he.f();
3976
- }
3977
- return "";
3978
- }
3979
- function Te(Z) {
3980
- return h("text", Z), "";
3981
- }
3982
- function z(Z) {
3983
- return h("rgb", Z), "";
3984
- }
3985
- var te = [{
3986
- pattern: /^\x08+/,
3987
- sub: k
3988
- }, {
3989
- pattern: /^\x1b\[[012]?K/,
3990
- sub: k
3991
- }, {
3992
- pattern: /^\x1b\[\(B/,
3993
- sub: k
3994
- }, {
3995
- pattern: /^\x1b\[[34]8;2;\d+;\d+;\d+m/,
3996
- sub: z
3997
- }, {
3998
- pattern: /^\x1b\[38;5;(\d+)m/,
3999
- sub: X
4000
- }, {
4001
- pattern: /^\x1b\[48;5;(\d+)m/,
4002
- sub: I
4003
- }, {
4004
- pattern: /^\n/,
4005
- sub: G
4006
- }, {
4007
- pattern: /^\r+\n/,
4008
- sub: G
4009
- }, {
4010
- pattern: /^\r/,
4011
- sub: G
4012
- }, {
4013
- pattern: /^\x1b\[((?:\d{1,3};?)+|)m/,
4014
- sub: ie
4015
- }, {
4016
- // CSI n J
4017
- // ED - Erase in Display Clears part of the screen.
4018
- // If n is 0 (or missing), clear from cursor to end of screen.
4019
- // If n is 1, clear from cursor to beginning of the screen.
4020
- // If n is 2, clear entire screen (and moves cursor to upper left on DOS ANSI.SYS).
4021
- // If n is 3, clear entire screen and delete all lines saved in the scrollback buffer
4022
- // (this feature was added for xterm and is supported by other terminal applications).
4023
- pattern: /^\x1b\[\d?J/,
4024
- sub: k
4025
- }, {
4026
- // CSI n ; m f
4027
- // HVP - Horizontal Vertical Position Same as CUP
4028
- pattern: /^\x1b\[\d{0,3};\d{0,3}f/,
4029
- sub: k
4030
- }, {
4031
- // catch-all for CSI sequences?
4032
- pattern: /^\x1b\[?[\d;]{0,3}/,
4033
- sub: k
4034
- }, {
4035
- /**
4036
- * extracts real text - not containing:
4037
- * - `\x1b' - ESC - escape (Ascii 27)
4038
- * - '\x08' - BS - backspace (Ascii 8)
4039
- * - `\n` - Newline - linefeed (LF) (ascii 10)
4040
- * - `\r` - Windows Carriage Return (CR)
4041
- */
4042
- pattern: /^(([^\x1b\x08\r\n])+)/,
4043
- sub: Te
4044
- }];
4045
- function ue(Z, ee) {
4046
- ee > J && A || (A = !1, p = p.replace(Z.pattern, Z.sub));
4047
- }
4048
- var ne = [], fe = p, oe = fe.length;
4049
- e: for (; oe > 0; ) {
4050
- for (var be = 0, se = 0, Ee = te.length; se < Ee; be = ++se) {
4051
- var Re = te[be];
4052
- if (ue(Re, be), p.length !== oe) {
4053
- oe = p.length;
4054
- continue e;
4055
- }
4056
- }
4057
- if (p.length === oe)
4058
- break;
4059
- ne.push(0), oe = p.length;
4060
- }
4061
- return ne;
4062
- }
4063
- function H(p, y, h) {
4064
- return y !== "text" && (p = p.filter(P(N(h))), p.push({
4065
- token: y,
4066
- data: h,
4067
- category: N(h)
4068
- })), p;
4069
- }
4070
- var T = (function() {
4071
- function p(y) {
4072
- n(this, p), y = y || {}, y.colors && (y.colors = Object.assign({}, f.colors, y.colors)), this.options = Object.assign({}, f, y), this.stack = [], this.stickyStack = [];
4073
- }
4074
- return s(p, [{
4075
- key: "toHtml",
4076
- value: function(y) {
4077
- var h = this;
4078
- y = typeof y == "string" ? [y] : y;
4079
- var A = this.stack, J = this.options, k = [];
4080
- return this.stickyStack.forEach(function(X) {
4081
- var I = F(A, X.token, X.data, J);
4082
- I && k.push(I);
4083
- }), V(y.join(""), J, function(X, I) {
4084
- var G = F(A, X, I, J);
4085
- G && k.push(G), J.stream && (h.stickyStack = H(h.stickyStack, X, I));
4086
- }), A.length && k.push(O(A)), k.join("");
4087
- }
4088
- }]), p;
4089
- })();
4090
- u.exports = T;
4091
- }
4092
- }), Jt = $({
4093
- "../../node_modules/memoizerific/memoizerific.js"(t, u) {
4094
- (function(n) {
4095
- if (typeof t == "object" && typeof u < "u")
4096
- u.exports = n();
4097
- else if (typeof define == "function" && define.amd)
4098
- define([], n);
4099
- else {
4100
- var o;
4101
- typeof window < "u" ? o = window : typeof global < "u" ? o = global : typeof self < "u" ? o = self : o = this, o.memoizerific = n();
4102
- }
4103
- })(function() {
4104
- return (function n(o, s, i) {
4105
- function c(f, b) {
4106
- if (!s[f]) {
4107
- if (!o[f]) {
4108
- var D = typeof qe == "function" && qe;
4109
- if (!b && D) return D(f, !0);
4110
- if (d) return d(f, !0);
4111
- var v = new Error("Cannot find module '" + f + "'");
4112
- throw v.code = "MODULE_NOT_FOUND", v;
4113
- }
4114
- var C = s[f] = { exports: {} };
4115
- o[f][0].call(C.exports, function(F) {
4116
- var w = o[f][1][F];
4117
- return c(w || F);
4118
- }, C, C.exports, n, o, s, i);
4119
- }
4120
- return s[f].exports;
4121
- }
4122
- for (var d = typeof qe == "function" && qe, m = 0; m < i.length; m++) c(i[m]);
4123
- return c;
4124
- })({ 1: [function(n, o, s) {
4125
- o.exports = function(i) {
4126
- if (typeof Map != "function" || i) {
4127
- var c = n("./similar");
4128
- return new c();
4129
- } else
4130
- return /* @__PURE__ */ new Map();
4131
- };
4132
- }, { "./similar": 2 }], 2: [function(n, o, s) {
4133
- function i() {
4134
- return this.list = [], this.lastItem = void 0, this.size = 0, this;
4135
- }
4136
- i.prototype.get = function(c) {
4137
- var d;
4138
- if (this.lastItem && this.isEqual(this.lastItem.key, c))
4139
- return this.lastItem.val;
4140
- if (d = this.indexOf(c), d >= 0)
4141
- return this.lastItem = this.list[d], this.list[d].val;
4142
- }, i.prototype.set = function(c, d) {
4143
- var m;
4144
- return this.lastItem && this.isEqual(this.lastItem.key, c) ? (this.lastItem.val = d, this) : (m = this.indexOf(c), m >= 0 ? (this.lastItem = this.list[m], this.list[m].val = d, this) : (this.lastItem = { key: c, val: d }, this.list.push(this.lastItem), this.size++, this));
4145
- }, i.prototype.delete = function(c) {
4146
- var d;
4147
- if (this.lastItem && this.isEqual(this.lastItem.key, c) && (this.lastItem = void 0), d = this.indexOf(c), d >= 0)
4148
- return this.size--, this.list.splice(d, 1)[0];
4149
- }, i.prototype.has = function(c) {
4150
- var d;
4151
- return this.lastItem && this.isEqual(this.lastItem.key, c) ? !0 : (d = this.indexOf(c), d >= 0 ? (this.lastItem = this.list[d], !0) : !1);
4152
- }, i.prototype.forEach = function(c, d) {
4153
- var m;
4154
- for (m = 0; m < this.size; m++)
4155
- c.call(d || this, this.list[m].val, this.list[m].key, this);
4156
- }, i.prototype.indexOf = function(c) {
4157
- var d;
4158
- for (d = 0; d < this.size; d++)
4159
- if (this.isEqual(this.list[d].key, c))
4160
- return d;
4161
- return -1;
4162
- }, i.prototype.isEqual = function(c, d) {
4163
- return c === d || c !== c && d !== d;
4164
- }, o.exports = i;
4165
- }, {}], 3: [function(n, o, s) {
4166
- var i = n("map-or-similar");
4167
- o.exports = function(f) {
4168
- var b = new i(!1), D = [];
4169
- return function(v) {
4170
- var C = function() {
4171
- var F = b, w, L, O = arguments.length - 1, x = Array(O + 1), P = !0, N;
4172
- if ((C.numArgs || C.numArgs === 0) && C.numArgs !== O + 1)
4173
- throw new Error("Memoizerific functions should always be called with the same number of arguments");
4174
- for (N = 0; N < O; N++) {
4175
- if (x[N] = {
4176
- cacheItem: F,
4177
- arg: arguments[N]
4178
- }, F.has(arguments[N])) {
4179
- F = F.get(arguments[N]);
4180
- continue;
4181
- }
4182
- P = !1, w = new i(!1), F.set(arguments[N], w), F = w;
4183
- }
4184
- return P && (F.has(arguments[O]) ? L = F.get(arguments[O]) : P = !1), P || (L = v.apply(null, arguments), F.set(arguments[O], L)), f > 0 && (x[O] = {
4185
- cacheItem: F,
4186
- arg: arguments[O]
4187
- }, P ? c(D, x) : D.push(x), D.length > f && d(D.shift())), C.wasMemoized = P, C.numArgs = O + 1, L;
4188
- };
4189
- return C.limit = f, C.wasMemoized = !1, C.cache = b, C.lru = D, C;
4190
- };
4191
- };
4192
- function c(f, b) {
4193
- var D = f.length, v = b.length, C, F, w;
4194
- for (F = 0; F < D; F++) {
4195
- for (C = !0, w = 0; w < v; w++)
4196
- if (!m(f[F][w].arg, b[w].arg)) {
4197
- C = !1;
4198
- break;
4199
- }
4200
- if (C)
4201
- break;
4202
- }
4203
- f.push(f.splice(F, 1)[0]);
4204
- }
4205
- function d(f) {
4206
- var b = f.length, D = f[b - 1], v, C;
4207
- for (D.cacheItem.delete(D.arg), C = b - 2; C >= 0 && (D = f[C], v = D.cacheItem.get(D.arg), !v || !v.size); C--)
4208
- D.cacheItem.delete(D.arg);
4209
- }
4210
- function m(f, b) {
4211
- return f === b || f !== f && b !== b;
4212
- }
4213
- }, { "map-or-similar": 1 }] }, {}, [3])(3);
4214
- });
4215
- }
4216
- }), _u = (t) => t.transports !== void 0, Lu = () => Math.random().toString(16).slice(2), Ru = class {
4217
- constructor(t = {}) {
4218
- this.sender = Lu(), this.events = {}, this.data = {}, this.transports = [], this.isAsync = t.async || !1, _u(t) ? (this.transports = t.transports || [], this.transports.forEach((u) => {
4219
- u.setHandler((n) => this.handleEvent(n));
4220
- })) : this.transports = t.transport ? [t.transport] : [], this.transports.forEach((u) => {
4221
- u.setHandler((n) => this.handleEvent(n));
4222
- });
4223
- }
4224
- get hasTransport() {
4225
- return this.transports.length > 0;
4226
- }
4227
- addListener(t, u) {
4228
- this.events[t] = this.events[t] || [], this.events[t].push(u);
4229
- }
4230
- emit(t, ...u) {
4231
- let n = { type: t, args: u, from: this.sender }, o = {};
4232
- u.length >= 1 && u[0] && u[0].options && (o = u[0].options);
4233
- let s = () => {
4234
- this.transports.forEach((i) => {
4235
- i.send(n, o);
4236
- }), this.handleEvent(n);
4237
- };
4238
- this.isAsync ? setImmediate(s) : s();
4239
- }
4240
- last(t) {
4241
- return this.data[t];
4242
- }
4243
- eventNames() {
4244
- return Object.keys(this.events);
4245
- }
4246
- listenerCount(t) {
4247
- let u = this.listeners(t);
4248
- return u ? u.length : 0;
4249
- }
4250
- listeners(t) {
4251
- return this.events[t] || void 0;
4252
- }
4253
- once(t, u) {
4254
- let n = this.onceListener(t, u);
4255
- this.addListener(t, n);
4256
- }
4257
- removeAllListeners(t) {
4258
- t ? this.events[t] && delete this.events[t] : this.events = {};
4259
- }
4260
- removeListener(t, u) {
4261
- let n = this.listeners(t);
4262
- n && (this.events[t] = n.filter((o) => o !== u));
4263
- }
4264
- on(t, u) {
4265
- this.addListener(t, u);
4266
- }
4267
- off(t, u) {
4268
- this.removeListener(t, u);
4269
- }
4270
- handleEvent(t) {
4271
- let u = this.listeners(t.type);
4272
- u && u.length && u.forEach((n) => {
4273
- n.apply(t, t.args);
4274
- }), this.data[t.type] = t.args;
4275
- }
4276
- onceListener(t, u) {
4277
- let n = (...o) => (this.removeListener(t, n), u(...o));
4278
- return n;
4279
- }
4280
- }, { document: an, location: on } = re, { WebSocket: sn } = re, { CHANNEL_OPTIONS: ln, CONFIG_TYPE: cn } = re;
4281
- function Iu() {
4282
- let t = {
4283
- setHandler: () => {
4284
- },
4285
- send: () => {
4286
- }
4287
- };
4288
- return new Ru({ transport: t });
4289
- }
4290
- var ju = class {
4291
- constructor() {
4292
- this.getChannel = () => {
4293
- if (!this.channel) {
4294
- let t = Iu();
4295
- return this.setChannel(t), t;
4296
- }
4297
- return this.channel;
4298
- }, this.ready = () => this.promise, this.hasChannel = () => !!this.channel, this.setChannel = (t) => {
4299
- this.channel = t, this.resolve();
4300
- }, this.promise = new Promise((t) => {
4301
- this.resolve = () => t(this.getChannel());
4302
- });
4303
- }
4304
- }, Ve = "__STORYBOOK_ADDONS_PREVIEW";
4305
- function Uu() {
4306
- return re[Ve] || (re[Ve] = new ju()), re[Ve];
4307
- }
4308
- var Mu = Uu(), Vu = (t, u) => t.length === u.length && t.every((n, o) => n === u[o]), Nt = () => new Error("Storybook preview hooks can only be called inside decorators and story functions.");
4309
- function Hu() {
4310
- return re.STORYBOOK_HOOKS_CONTEXT || null;
4311
- }
4312
- function Ot() {
4313
- let t = Hu();
4314
- if (t == null)
4315
- throw Nt();
4316
- return t;
4317
- }
4318
- function Ku(t, u, n) {
4319
- let o = Ot();
4320
- if (o.currentPhase === "MOUNT") {
4321
- n != null && !Array.isArray(n) && ke.warn(
4322
- `${t} received a final argument that is not an array (instead, received ${n}). When specified, the final argument must be an array.`
4323
- );
4324
- let s = { name: t, deps: n };
4325
- return o.currentHooks.push(s), u(s), s;
4326
- }
4327
- if (o.currentPhase === "UPDATE") {
4328
- let s = o.getNextHook();
4329
- if (s == null)
4330
- throw new Error("Rendered more hooks than during the previous render.");
4331
- return s.name !== t && ke.warn(
4332
- `Storybook has detected a change in the order of Hooks${o.currentDecoratorName ? ` called by ${o.currentDecoratorName}` : ""}. This will lead to bugs and errors if not fixed.`
4333
- ), n != null && s.deps == null && ke.warn(
4334
- `${t} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`
4335
- ), n != null && s.deps != null && n.length !== s.deps.length && ke.warn(`The final argument passed to ${t} changed size between renders. The order and size of this array must remain constant.
4336
- Previous: ${s.deps}
4337
- Incoming: ${n}`), (n == null || s.deps == null || !Vu(n, s.deps)) && (u(s), s.deps = n), s;
4338
- }
4339
- throw Nt();
4340
- }
4341
- function Pt(t, u, n) {
4342
- let { memoizedState: o } = Ku(
4343
- t,
4344
- (s) => {
4345
- s.memoizedState = u();
4346
- },
4347
- n
4348
- );
4349
- return o;
4350
- }
4351
- function Gu(t, u) {
4352
- return Pt(t, () => ({ current: u }), []);
4353
- }
4354
- function pn(t) {
4355
- return Gu("useRef", t);
4356
- }
4357
- function dn(t, u) {
4358
- let n = Ot(), o = Pt("useEffect", () => ({ create: t }), u);
4359
- n.currentEffects.includes(o) || n.currentEffects.push(o);
4360
- }
4361
- Ae(Jt(), 1);
4362
- var zu = Ae(Jt(), 1);
4363
- (0, zu.default)(1)(
4364
- (t) => Object.values(t).reduce(
4365
- (u, n) => (u[n.importPath] = u[n.importPath] || n, u),
4366
- {}
4367
- )
4368
- );
4369
- var Yu = (t) => Array.isArray(t) ? t : t ? [t] : [];
4370
- He`
4371
- CSF .story annotations deprecated; annotate story functions directly:
4372
- - StoryFn.story.name => StoryFn.storyName
4373
- - StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
4374
- See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
4375
- `;
4376
- function Xu(t, u, n) {
4377
- let o = n(t);
4378
- return (s) => u(o, s);
4379
- }
4380
- function Wu({
4381
- componentId: t,
4382
- title: u,
4383
- kind: n,
4384
- id: o,
4385
- name: s,
4386
- story: i,
4387
- parameters: c,
4388
- initialArgs: d,
4389
- argTypes: m,
4390
- ...f
4391
- } = {}) {
4392
- return f;
4393
- }
4394
- function yn(t, u) {
4395
- let n = {}, o = (i) => (c) => {
4396
- if (!n.value)
4397
- throw new Error("Decorated function called without init");
4398
- return n.value = {
4399
- ...n.value,
4400
- ...Wu(c)
4401
- }, i(n.value);
4402
- }, s = u.reduce(
4403
- (i, c) => Xu(i, c, o),
4404
- t
4405
- );
4406
- return (i) => (n.value = i, s(i));
4407
- }
4408
- var $u = (t) => async () => {
4409
- let u = [];
4410
- for (let n of t) {
4411
- let o = await n();
4412
- o && u.unshift(o);
4413
- }
4414
- return async () => {
4415
- for (let n of u)
4416
- await n();
4417
- };
4418
- };
4419
- function Qu(t) {
4420
- return async (u, n, o) => {
4421
- await t.reduceRight(
4422
- (s, i) => async () => i(u, s, o),
4423
- async () => n(o)
4424
- )();
4425
- };
4426
- }
4427
- function Oe(t, u) {
4428
- return t.map((n) => n.default?.[u] ?? n[u]).filter(Boolean);
4429
- }
4430
- function de(t, u, n = {}) {
4431
- return Oe(t, u).reduce((o, s) => {
4432
- let i = Yu(s);
4433
- return n.reverseFileOrder ? [...i, ...o] : [...o, ...i];
4434
- }, []);
4435
- }
4436
- function _e(t, u) {
4437
- return Object.assign({}, ...Oe(t, u));
4438
- }
4439
- function Be(t, u) {
4440
- return Oe(t, u).pop();
4441
- }
4442
- function mn(t) {
4443
- let u = de(t, "argTypesEnhancers"), n = Oe(t, "runStep"), o = de(t, "beforeAll");
4444
- return {
4445
- parameters: We(...Oe(t, "parameters")),
4446
- decorators: de(t, "decorators", {
4447
- reverseFileOrder: !(re.FEATURES?.legacyDecoratorFileOrder ?? !1)
4448
- }),
4449
- args: _e(t, "args"),
4450
- argsEnhancers: de(t, "argsEnhancers"),
4451
- argTypes: _e(t, "argTypes"),
4452
- argTypesEnhancers: [
4453
- ...u.filter((s) => !s.secondPass),
4454
- ...u.filter((s) => s.secondPass)
4455
- ],
4456
- initialGlobals: _e(t, "initialGlobals"),
4457
- globalTypes: _e(t, "globalTypes"),
4458
- loaders: de(t, "loaders"),
4459
- beforeAll: $u(o),
4460
- beforeEach: de(t, "beforeEach"),
4461
- afterEach: de(t, "afterEach"),
4462
- render: Be(t, "render"),
4463
- renderToCanvas: Be(t, "renderToCanvas"),
4464
- applyDecorators: Be(t, "applyDecorators"),
4465
- runStep: Qu(n),
4466
- tags: de(t, "tags"),
4467
- mount: Be(t, "mount"),
4468
- testingLibraryRender: Be(t, "testingLibraryRender")
4469
- };
4470
- }
4471
- var { fetch: fn } = re;
4472
- Ae(Ge(), 1);
4473
- Ae(Ge(), 1);
4474
- var { history: hn, document: gn } = re, Zu = Ae(ku(), 1);
4475
- Ae(Ge(), 1);
4476
- var { document: An } = re;
4477
- new Zu.default({
4478
- escapeXML: !0
4479
- });
4480
- var { document: Tn } = re;
4481
- async function bn(t, u) {
4482
- let n = u.parameters?.docs?.source?.transform, { id: o, unmappedArgs: s } = u, i = n && t ? n?.(t, u) : t, c = i ? await i : void 0;
4483
- Mu.getChannel().emit(Su, {
4484
- id: o,
4485
- source: c,
4486
- args: s
4487
- });
4488
- }
4489
- export {
4490
- tn as I,
4491
- Ju as S,
4492
- Dr as T,
4493
- Mu as a,
4494
- nn as b,
4495
- W as c,
4496
- yn as d,
4497
- un as e,
4498
- rn as f,
4499
- Et as g,
4500
- ht as h,
4501
- ou as i,
4502
- dn as j,
4503
- bn as k,
4504
- Cr as l,
4505
- mn as m,
4506
- pn as u
4507
- };
4508
- //# sourceMappingURL=chunk-OPOZOKLO-nJkI9rUN.js.map