@stackone/malachite 2.20.1 → 2.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (779) hide show
  1. package/COMPONENTS.md +1 -0
  2. package/dist/ShadowRootWrapper.js +83 -0
  3. package/dist/ShadowRootWrapper.js.map +1 -0
  4. package/dist/assets/icons/account.svg.js +6 -0
  5. package/dist/assets/icons/account.svg.js.map +1 -0
  6. package/dist/assets/icons/accounts.svg.js +6 -0
  7. package/dist/assets/icons/accounts.svg.js.map +1 -0
  8. package/dist/assets/icons/add.svg.js +6 -0
  9. package/dist/assets/icons/add.svg.js.map +1 -0
  10. package/dist/assets/icons/advanced_logs.svg.js +6 -0
  11. package/dist/assets/icons/advanced_logs.svg.js.map +1 -0
  12. package/dist/assets/icons/api_keys.svg.js +6 -0
  13. package/dist/assets/icons/api_keys.svg.js.map +1 -0
  14. package/dist/assets/icons/archive.svg.js +6 -0
  15. package/dist/assets/icons/archive.svg.js.map +1 -0
  16. package/dist/assets/icons/arrow_left.svg.js +6 -0
  17. package/dist/assets/icons/arrow_left.svg.js.map +1 -0
  18. package/dist/assets/icons/arrow_up.svg.js +6 -0
  19. package/dist/assets/icons/arrow_up.svg.js.map +1 -0
  20. package/dist/assets/icons/arrow_up_right.svg.js +6 -0
  21. package/dist/assets/icons/arrow_up_right.svg.js.map +1 -0
  22. package/dist/assets/icons/authentication.svg.js +6 -0
  23. package/dist/assets/icons/authentication.svg.js.map +1 -0
  24. package/dist/assets/icons/bell.svg.js +6 -0
  25. package/dist/assets/icons/bell.svg.js.map +1 -0
  26. package/dist/assets/icons/bell_slash.svg.js +6 -0
  27. package/dist/assets/icons/bell_slash.svg.js.map +1 -0
  28. package/dist/assets/icons/bi_directional_arrows.svg.js +6 -0
  29. package/dist/assets/icons/bi_directional_arrows.svg.js.map +1 -0
  30. package/dist/assets/icons/card.svg.js +6 -0
  31. package/dist/assets/icons/card.svg.js.map +1 -0
  32. package/dist/assets/icons/caret_down.svg.js +6 -0
  33. package/dist/assets/icons/caret_down.svg.js.map +1 -0
  34. package/dist/assets/icons/caret_left.svg.js +6 -0
  35. package/dist/assets/icons/caret_left.svg.js.map +1 -0
  36. package/dist/assets/icons/caret_right.svg.js +6 -0
  37. package/dist/assets/icons/caret_right.svg.js.map +1 -0
  38. package/dist/assets/icons/caret_up.svg.js +6 -0
  39. package/dist/assets/icons/caret_up.svg.js.map +1 -0
  40. package/dist/assets/icons/change_password.svg.js +6 -0
  41. package/dist/assets/icons/change_password.svg.js.map +1 -0
  42. package/dist/assets/icons/check.svg.js +6 -0
  43. package/dist/assets/icons/check.svg.js.map +1 -0
  44. package/dist/assets/icons/check_circle_filled.svg.js +6 -0
  45. package/dist/assets/icons/check_circle_filled.svg.js.map +1 -0
  46. package/dist/assets/icons/checkmark.svg.js +6 -0
  47. package/dist/assets/icons/checkmark.svg.js.map +1 -0
  48. package/dist/assets/icons/clear.svg.js +6 -0
  49. package/dist/assets/icons/clear.svg.js.map +1 -0
  50. package/dist/assets/icons/close.svg.js +6 -0
  51. package/dist/assets/icons/close.svg.js.map +1 -0
  52. package/dist/assets/icons/code.svg.js +6 -0
  53. package/dist/assets/icons/code.svg.js.map +1 -0
  54. package/dist/assets/icons/command_key.svg.js +6 -0
  55. package/dist/assets/icons/command_key.svg.js.map +1 -0
  56. package/dist/assets/icons/copy.svg.js +6 -0
  57. package/dist/assets/icons/copy.svg.js.map +1 -0
  58. package/dist/assets/icons/csv.svg.js +6 -0
  59. package/dist/assets/icons/csv.svg.js.map +1 -0
  60. package/dist/assets/icons/custom_field.svg.js +6 -0
  61. package/dist/assets/icons/custom_field.svg.js.map +1 -0
  62. package/dist/assets/icons/dashboard.svg.js +6 -0
  63. package/dist/assets/icons/dashboard.svg.js.map +1 -0
  64. package/dist/assets/icons/date.svg.js +6 -0
  65. package/dist/assets/icons/date.svg.js.map +1 -0
  66. package/dist/assets/icons/disable.svg.js +6 -0
  67. package/dist/assets/icons/disable.svg.js.map +1 -0
  68. package/dist/assets/icons/disabled.svg.js +6 -0
  69. package/dist/assets/icons/disabled.svg.js.map +1 -0
  70. package/dist/assets/icons/dismiss.svg.js +6 -0
  71. package/dist/assets/icons/dismiss.svg.js.map +1 -0
  72. package/dist/assets/icons/doc.svg.js +6 -0
  73. package/dist/assets/icons/doc.svg.js.map +1 -0
  74. package/dist/assets/icons/double_check.svg.js +6 -0
  75. package/dist/assets/icons/double_check.svg.js.map +1 -0
  76. package/dist/assets/icons/download.svg.js +6 -0
  77. package/dist/assets/icons/download.svg.js.map +1 -0
  78. package/dist/assets/icons/edit.svg.js +6 -0
  79. package/dist/assets/icons/edit.svg.js.map +1 -0
  80. package/dist/assets/icons/enable.svg.js +6 -0
  81. package/dist/assets/icons/enable.svg.js.map +1 -0
  82. package/dist/assets/icons/enum.svg.js +6 -0
  83. package/dist/assets/icons/enum.svg.js.map +1 -0
  84. package/dist/assets/icons/error_circle_filled.svg.js +6 -0
  85. package/dist/assets/icons/error_circle_filled.svg.js.map +1 -0
  86. package/dist/assets/icons/expand.svg.js +6 -0
  87. package/dist/assets/icons/expand.svg.js.map +1 -0
  88. package/dist/assets/icons/eye-closed.svg.js +6 -0
  89. package/dist/assets/icons/eye-closed.svg.js.map +1 -0
  90. package/dist/assets/icons/eye.svg.js +6 -0
  91. package/dist/assets/icons/eye.svg.js.map +1 -0
  92. package/dist/assets/icons/field_mapping.svg.js +6 -0
  93. package/dist/assets/icons/field_mapping.svg.js.map +1 -0
  94. package/dist/assets/icons/filled_caret_down.svg.js +6 -0
  95. package/dist/assets/icons/filled_caret_down.svg.js.map +1 -0
  96. package/dist/assets/icons/filled_caret_right.svg.js +6 -0
  97. package/dist/assets/icons/filled_caret_right.svg.js.map +1 -0
  98. package/dist/assets/icons/filter.svg.js +6 -0
  99. package/dist/assets/icons/filter.svg.js.map +1 -0
  100. package/dist/assets/icons/forbidden.svg.js +6 -0
  101. package/dist/assets/icons/forbidden.svg.js.map +1 -0
  102. package/dist/assets/icons/forward_arrow.svg.js +6 -0
  103. package/dist/assets/icons/forward_arrow.svg.js.map +1 -0
  104. package/dist/assets/icons/globe.svg.js +6 -0
  105. package/dist/assets/icons/globe.svg.js.map +1 -0
  106. package/dist/assets/icons/inbox.svg.js +6 -0
  107. package/dist/assets/icons/inbox.svg.js.map +1 -0
  108. package/dist/assets/icons/info.svg.js +6 -0
  109. package/dist/assets/icons/info.svg.js.map +1 -0
  110. package/dist/assets/icons/info_circle_filled.svg.js +6 -0
  111. package/dist/assets/icons/info_circle_filled.svg.js.map +1 -0
  112. package/dist/assets/icons/info_filled.svg.js +6 -0
  113. package/dist/assets/icons/info_filled.svg.js.map +1 -0
  114. package/dist/assets/icons/integrations.svg.js +6 -0
  115. package/dist/assets/icons/integrations.svg.js.map +1 -0
  116. package/dist/assets/icons/key.svg.js +6 -0
  117. package/dist/assets/icons/key.svg.js.map +1 -0
  118. package/dist/assets/icons/library.svg.js +6 -0
  119. package/dist/assets/icons/library.svg.js.map +1 -0
  120. package/dist/assets/icons/logs.svg.js +6 -0
  121. package/dist/assets/icons/logs.svg.js.map +1 -0
  122. package/dist/assets/icons/magic_wand.svg.js +6 -0
  123. package/dist/assets/icons/magic_wand.svg.js.map +1 -0
  124. package/dist/assets/icons/manage_team.svg.js +6 -0
  125. package/dist/assets/icons/manage_team.svg.js.map +1 -0
  126. package/dist/assets/icons/manual_native_webhook.svg.js +6 -0
  127. package/dist/assets/icons/manual_native_webhook.svg.js.map +1 -0
  128. package/dist/assets/icons/mark_read.svg.js +6 -0
  129. package/dist/assets/icons/mark_read.svg.js.map +1 -0
  130. package/dist/assets/icons/mark_unread.svg.js +6 -0
  131. package/dist/assets/icons/mark_unread.svg.js.map +1 -0
  132. package/dist/assets/icons/members.svg.js +6 -0
  133. package/dist/assets/icons/members.svg.js.map +1 -0
  134. package/dist/assets/icons/modal.svg.js +6 -0
  135. package/dist/assets/icons/modal.svg.js.map +1 -0
  136. package/dist/assets/icons/more_horizontal.svg.js +6 -0
  137. package/dist/assets/icons/more_horizontal.svg.js.map +1 -0
  138. package/dist/assets/icons/more_vertical.svg.js +6 -0
  139. package/dist/assets/icons/more_vertical.svg.js.map +1 -0
  140. package/dist/assets/icons/navbar_collapse.svg.js +6 -0
  141. package/dist/assets/icons/navbar_collapse.svg.js.map +1 -0
  142. package/dist/assets/icons/navbar_expand.svg.js +6 -0
  143. package/dist/assets/icons/navbar_expand.svg.js.map +1 -0
  144. package/dist/assets/icons/not_found.svg.js +6 -0
  145. package/dist/assets/icons/not_found.svg.js.map +1 -0
  146. package/dist/assets/icons/organization.svg.js +6 -0
  147. package/dist/assets/icons/organization.svg.js.map +1 -0
  148. package/dist/assets/icons/pin.svg.js +6 -0
  149. package/dist/assets/icons/pin.svg.js.map +1 -0
  150. package/dist/assets/icons/plus.svg.js +6 -0
  151. package/dist/assets/icons/plus.svg.js.map +1 -0
  152. package/dist/assets/icons/preview.svg.js +6 -0
  153. package/dist/assets/icons/preview.svg.js.map +1 -0
  154. package/dist/assets/icons/programmatic_native_webhook.svg.js +6 -0
  155. package/dist/assets/icons/programmatic_native_webhook.svg.js.map +1 -0
  156. package/dist/assets/icons/pulse.svg.js +6 -0
  157. package/dist/assets/icons/pulse.svg.js.map +1 -0
  158. package/dist/assets/icons/refresh.svg.js +6 -0
  159. package/dist/assets/icons/refresh.svg.js.map +1 -0
  160. package/dist/assets/icons/reject.svg.js +6 -0
  161. package/dist/assets/icons/reject.svg.js.map +1 -0
  162. package/dist/assets/icons/reload.svg.js +6 -0
  163. package/dist/assets/icons/reload.svg.js.map +1 -0
  164. package/dist/assets/icons/reply.svg.js +6 -0
  165. package/dist/assets/icons/reply.svg.js.map +1 -0
  166. package/dist/assets/icons/required_field_indicator.svg.js +6 -0
  167. package/dist/assets/icons/required_field_indicator.svg.js.map +1 -0
  168. package/dist/assets/icons/search.svg.js +6 -0
  169. package/dist/assets/icons/search.svg.js.map +1 -0
  170. package/dist/assets/icons/security.svg.js +6 -0
  171. package/dist/assets/icons/security.svg.js.map +1 -0
  172. package/dist/assets/icons/send.svg.js +6 -0
  173. package/dist/assets/icons/send.svg.js.map +1 -0
  174. package/dist/assets/icons/settings.svg.js +6 -0
  175. package/dist/assets/icons/settings.svg.js.map +1 -0
  176. package/dist/assets/icons/sign_out.svg.js +6 -0
  177. package/dist/assets/icons/sign_out.svg.js.map +1 -0
  178. package/dist/assets/icons/slider.svg.js +6 -0
  179. package/dist/assets/icons/slider.svg.js.map +1 -0
  180. package/dist/assets/icons/sort.svg.js +6 -0
  181. package/dist/assets/icons/sort.svg.js.map +1 -0
  182. package/dist/assets/icons/source.svg.js +6 -0
  183. package/dist/assets/icons/source.svg.js.map +1 -0
  184. package/dist/assets/icons/sparkle.svg.js +6 -0
  185. package/dist/assets/icons/sparkle.svg.js.map +1 -0
  186. package/dist/assets/icons/star.svg.js +6 -0
  187. package/dist/assets/icons/star.svg.js.map +1 -0
  188. package/dist/assets/icons/step_current.svg.js +6 -0
  189. package/dist/assets/icons/step_current.svg.js.map +1 -0
  190. package/dist/assets/icons/step_upcoming.svg.js +6 -0
  191. package/dist/assets/icons/step_upcoming.svg.js.map +1 -0
  192. package/dist/assets/icons/synthetic_webhook.svg.js +6 -0
  193. package/dist/assets/icons/synthetic_webhook.svg.js.map +1 -0
  194. package/dist/assets/icons/thumbs_down.svg.js +6 -0
  195. package/dist/assets/icons/thumbs_down.svg.js.map +1 -0
  196. package/dist/assets/icons/thumbs_up.svg.js +6 -0
  197. package/dist/assets/icons/thumbs_up.svg.js.map +1 -0
  198. package/dist/assets/icons/trash.svg.js +6 -0
  199. package/dist/assets/icons/trash.svg.js.map +1 -0
  200. package/dist/assets/icons/triangle_down.svg.js +6 -0
  201. package/dist/assets/icons/triangle_down.svg.js.map +1 -0
  202. package/dist/assets/icons/triangle_right.svg.js +6 -0
  203. package/dist/assets/icons/triangle_right.svg.js.map +1 -0
  204. package/dist/assets/icons/unarchive.svg.js +6 -0
  205. package/dist/assets/icons/unarchive.svg.js.map +1 -0
  206. package/dist/assets/icons/upload.svg.js +6 -0
  207. package/dist/assets/icons/upload.svg.js.map +1 -0
  208. package/dist/assets/icons/warning_circle_filled.svg.js +6 -0
  209. package/dist/assets/icons/warning_circle_filled.svg.js.map +1 -0
  210. package/dist/assets/icons/warning_triangle.svg.js +6 -0
  211. package/dist/assets/icons/warning_triangle.svg.js.map +1 -0
  212. package/dist/assets/icons/webhook-events.svg.js +6 -0
  213. package/dist/assets/icons/webhook-events.svg.js.map +1 -0
  214. package/dist/assets/icons/webhook.svg.js +6 -0
  215. package/dist/assets/icons/webhook.svg.js.map +1 -0
  216. package/dist/assets/icons/webhook_signing_secret.svg.js +6 -0
  217. package/dist/assets/icons/webhook_signing_secret.svg.js.map +1 -0
  218. package/dist/assets/logo-stackone-desaturated.png.js +5 -0
  219. package/dist/assets/logo-stackone-desaturated.png.js.map +1 -0
  220. package/dist/components/Accordion.js +105 -0
  221. package/dist/components/Accordion.js.map +1 -0
  222. package/dist/components/ActionBar.js +66 -0
  223. package/dist/components/ActionBar.js.map +1 -0
  224. package/dist/components/ActionMenu.js +174 -0
  225. package/dist/components/ActionMenu.js.map +1 -0
  226. package/dist/components/Alert.js +136 -0
  227. package/dist/components/Alert.js.map +1 -0
  228. package/dist/components/AppLogo.js +43 -0
  229. package/dist/components/AppLogo.js.map +1 -0
  230. package/dist/components/Avatar.js +61 -0
  231. package/dist/components/Avatar.js.map +1 -0
  232. package/dist/components/BaseFormComponent.js +91 -0
  233. package/dist/components/BaseFormComponent.js.map +1 -0
  234. package/dist/components/Breadcrumbs.js +106 -0
  235. package/dist/components/Breadcrumbs.js.map +1 -0
  236. package/dist/components/Button.js +227 -0
  237. package/dist/components/Button.js.map +1 -0
  238. package/dist/components/ButtonList.js +40 -0
  239. package/dist/components/ButtonList.js.map +1 -0
  240. package/dist/components/Card.js +109 -0
  241. package/dist/components/Card.js.map +1 -0
  242. package/dist/components/CardStrip.js +454 -0
  243. package/dist/components/CardStrip.js.map +1 -0
  244. package/dist/components/ChangeReview/ChangeReviewItem.js +129 -0
  245. package/dist/components/ChangeReview/ChangeReviewItem.js.map +1 -0
  246. package/dist/components/ChangeReview/ChangeReviewJump.js +27 -0
  247. package/dist/components/ChangeReview/ChangeReviewJump.js.map +1 -0
  248. package/dist/components/ChangeReview/ChangeReviewRemoved.js +37 -0
  249. package/dist/components/ChangeReview/ChangeReviewRemoved.js.map +1 -0
  250. package/dist/components/ChangeReview/ChangeReviewSummary.js +56 -0
  251. package/dist/components/ChangeReview/ChangeReviewSummary.js.map +1 -0
  252. package/dist/components/ChangeReview/index.js +15 -0
  253. package/dist/components/ChangeReview/index.js.map +1 -0
  254. package/dist/components/Chat/ChatComposer.js +100 -0
  255. package/dist/components/Chat/ChatComposer.js.map +1 -0
  256. package/dist/components/Chat/ChatComposerChip.js +28 -0
  257. package/dist/components/Chat/ChatComposerChip.js.map +1 -0
  258. package/dist/components/Chat/ChatContext.js +55 -0
  259. package/dist/components/Chat/ChatContext.js.map +1 -0
  260. package/dist/components/Chat/ChatContextMeter.js +30 -0
  261. package/dist/components/Chat/ChatContextMeter.js.map +1 -0
  262. package/dist/components/Chat/ChatHeader.js +44 -0
  263. package/dist/components/Chat/ChatHeader.js.map +1 -0
  264. package/dist/components/Chat/ChatMessage.js +127 -0
  265. package/dist/components/Chat/ChatMessage.js.map +1 -0
  266. package/dist/components/Chat/ChatModelPicker.js +207 -0
  267. package/dist/components/Chat/ChatModelPicker.js.map +1 -0
  268. package/dist/components/Chat/ChatRoot.js +6 -0
  269. package/dist/components/Chat/ChatRoot.js.map +1 -0
  270. package/dist/components/Chat/ChatSuggestion.js +22 -0
  271. package/dist/components/Chat/ChatSuggestion.js.map +1 -0
  272. package/dist/components/Chat/ChatThinking.js +20 -0
  273. package/dist/components/Chat/ChatThinking.js.map +1 -0
  274. package/dist/components/Chat/ChatThread.js +68 -0
  275. package/dist/components/Chat/ChatThread.js.map +1 -0
  276. package/dist/components/Chat/ChatToolCall.js +59 -0
  277. package/dist/components/Chat/ChatToolCall.js.map +1 -0
  278. package/dist/components/Chat/index.js +29 -0
  279. package/dist/components/Chat/index.js.map +1 -0
  280. package/dist/components/Chat/stickToBottom.js +29 -0
  281. package/dist/components/Chat/stickToBottom.js.map +1 -0
  282. package/dist/components/Chat/tokenText.js +6 -0
  283. package/dist/components/Chat/tokenText.js.map +1 -0
  284. package/dist/components/Checkbox.js +79 -0
  285. package/dist/components/Checkbox.js.map +1 -0
  286. package/dist/components/ClampText.js +30 -0
  287. package/dist/components/ClampText.js.map +1 -0
  288. package/dist/components/CodeBlock.js +223 -0
  289. package/dist/components/CodeBlock.js.map +1 -0
  290. package/dist/components/CodeBlockHighlighter.js +103 -0
  291. package/dist/components/CodeBlockHighlighter.js.map +1 -0
  292. package/dist/components/CollapsibleSection.js +40 -0
  293. package/dist/components/CollapsibleSection.js.map +1 -0
  294. package/dist/components/Confetti.js +56 -0
  295. package/dist/components/Confetti.js.map +1 -0
  296. package/dist/components/ConfirmationDialog.js +234 -0
  297. package/dist/components/ConfirmationDialog.js.map +1 -0
  298. package/dist/components/ConnectionHeader.js +47 -0
  299. package/dist/components/ConnectionHeader.js.map +1 -0
  300. package/dist/components/CustomIcons/AccountIcon.js +28 -0
  301. package/dist/components/CustomIcons/AccountIcon.js.map +1 -0
  302. package/dist/components/CustomIcons/AccountsIcon.js +28 -0
  303. package/dist/components/CustomIcons/AccountsIcon.js.map +1 -0
  304. package/dist/components/CustomIcons/AddIcon.js +28 -0
  305. package/dist/components/CustomIcons/AddIcon.js.map +1 -0
  306. package/dist/components/CustomIcons/AdvancedLogsIcon.js +21 -0
  307. package/dist/components/CustomIcons/AdvancedLogsIcon.js.map +1 -0
  308. package/dist/components/CustomIcons/ApiKeysIcon.js +16 -0
  309. package/dist/components/CustomIcons/ApiKeysIcon.js.map +1 -0
  310. package/dist/components/CustomIcons/ArchiveIcon.js +16 -0
  311. package/dist/components/CustomIcons/ArchiveIcon.js.map +1 -0
  312. package/dist/components/CustomIcons/ArrowLeftIcon.js +16 -0
  313. package/dist/components/CustomIcons/ArrowLeftIcon.js.map +1 -0
  314. package/dist/components/CustomIcons/ArrowUpIcon.js +28 -0
  315. package/dist/components/CustomIcons/ArrowUpIcon.js.map +1 -0
  316. package/dist/components/CustomIcons/ArrowUpRightIcon.js +20 -0
  317. package/dist/components/CustomIcons/ArrowUpRightIcon.js.map +1 -0
  318. package/dist/components/CustomIcons/AuthenticationIcon.js +28 -0
  319. package/dist/components/CustomIcons/AuthenticationIcon.js.map +1 -0
  320. package/dist/components/CustomIcons/BellIcon.js +16 -0
  321. package/dist/components/CustomIcons/BellIcon.js.map +1 -0
  322. package/dist/components/CustomIcons/BellSlashIcon.js +16 -0
  323. package/dist/components/CustomIcons/BellSlashIcon.js.map +1 -0
  324. package/dist/components/CustomIcons/BiDirectionalArrowsIcon.js +21 -0
  325. package/dist/components/CustomIcons/BiDirectionalArrowsIcon.js.map +1 -0
  326. package/dist/components/CustomIcons/CardIcon.js +16 -0
  327. package/dist/components/CustomIcons/CardIcon.js.map +1 -0
  328. package/dist/components/CustomIcons/CaretDownIcon.js +16 -0
  329. package/dist/components/CustomIcons/CaretDownIcon.js.map +1 -0
  330. package/dist/components/CustomIcons/CaretLeftIcon.js +16 -0
  331. package/dist/components/CustomIcons/CaretLeftIcon.js.map +1 -0
  332. package/dist/components/CustomIcons/CaretRightIcon.js +21 -0
  333. package/dist/components/CustomIcons/CaretRightIcon.js.map +1 -0
  334. package/dist/components/CustomIcons/CaretUpIcon.js +16 -0
  335. package/dist/components/CustomIcons/CaretUpIcon.js.map +1 -0
  336. package/dist/components/CustomIcons/ChangePasswordIcon.js +21 -0
  337. package/dist/components/CustomIcons/ChangePasswordIcon.js.map +1 -0
  338. package/dist/components/CustomIcons/CheckCircleFilled.js +21 -0
  339. package/dist/components/CustomIcons/CheckCircleFilled.js.map +1 -0
  340. package/dist/components/CustomIcons/CheckIcon.js +28 -0
  341. package/dist/components/CustomIcons/CheckIcon.js.map +1 -0
  342. package/dist/components/CustomIcons/CheckmarkIcon.js +16 -0
  343. package/dist/components/CustomIcons/CheckmarkIcon.js.map +1 -0
  344. package/dist/components/CustomIcons/ClearIcon.js +28 -0
  345. package/dist/components/CustomIcons/ClearIcon.js.map +1 -0
  346. package/dist/components/CustomIcons/CloseIcon.js +28 -0
  347. package/dist/components/CustomIcons/CloseIcon.js.map +1 -0
  348. package/dist/components/CustomIcons/CodeIcon.js +16 -0
  349. package/dist/components/CustomIcons/CodeIcon.js.map +1 -0
  350. package/dist/components/CustomIcons/CommandKeyIcon.js +21 -0
  351. package/dist/components/CustomIcons/CommandKeyIcon.js.map +1 -0
  352. package/dist/components/CustomIcons/CopyIcon.js +28 -0
  353. package/dist/components/CustomIcons/CopyIcon.js.map +1 -0
  354. package/dist/components/CustomIcons/CsvIcon.js +28 -0
  355. package/dist/components/CustomIcons/CsvIcon.js.map +1 -0
  356. package/dist/components/CustomIcons/CustomFieldIcon.js +21 -0
  357. package/dist/components/CustomIcons/CustomFieldIcon.js.map +1 -0
  358. package/dist/components/CustomIcons/DashboardIcon.js +28 -0
  359. package/dist/components/CustomIcons/DashboardIcon.js.map +1 -0
  360. package/dist/components/CustomIcons/DateIcon.js +28 -0
  361. package/dist/components/CustomIcons/DateIcon.js.map +1 -0
  362. package/dist/components/CustomIcons/DisableIcon.js +28 -0
  363. package/dist/components/CustomIcons/DisableIcon.js.map +1 -0
  364. package/dist/components/CustomIcons/DisabledIcon.js +28 -0
  365. package/dist/components/CustomIcons/DisabledIcon.js.map +1 -0
  366. package/dist/components/CustomIcons/DismissIcon.js +15 -0
  367. package/dist/components/CustomIcons/DismissIcon.js.map +1 -0
  368. package/dist/components/CustomIcons/DocIcon.js +28 -0
  369. package/dist/components/CustomIcons/DocIcon.js.map +1 -0
  370. package/dist/components/CustomIcons/DoubleCheckIcon.js +21 -0
  371. package/dist/components/CustomIcons/DoubleCheckIcon.js.map +1 -0
  372. package/dist/components/CustomIcons/DownloadIcon.js +28 -0
  373. package/dist/components/CustomIcons/DownloadIcon.js.map +1 -0
  374. package/dist/components/CustomIcons/EditIcon.js +28 -0
  375. package/dist/components/CustomIcons/EditIcon.js.map +1 -0
  376. package/dist/components/CustomIcons/EnableIcon.js +28 -0
  377. package/dist/components/CustomIcons/EnableIcon.js.map +1 -0
  378. package/dist/components/CustomIcons/EnumIcon.js +28 -0
  379. package/dist/components/CustomIcons/EnumIcon.js.map +1 -0
  380. package/dist/components/CustomIcons/ErrorCircleFilled.js +21 -0
  381. package/dist/components/CustomIcons/ErrorCircleFilled.js.map +1 -0
  382. package/dist/components/CustomIcons/ExpandIcon.js +28 -0
  383. package/dist/components/CustomIcons/ExpandIcon.js.map +1 -0
  384. package/dist/components/CustomIcons/EyeClosedIcon.js +16 -0
  385. package/dist/components/CustomIcons/EyeClosedIcon.js.map +1 -0
  386. package/dist/components/CustomIcons/EyeIcon.js +16 -0
  387. package/dist/components/CustomIcons/EyeIcon.js.map +1 -0
  388. package/dist/components/CustomIcons/FieldMappingIcon.js +21 -0
  389. package/dist/components/CustomIcons/FieldMappingIcon.js.map +1 -0
  390. package/dist/components/CustomIcons/FilledCaretDownIcon.js +21 -0
  391. package/dist/components/CustomIcons/FilledCaretDownIcon.js.map +1 -0
  392. package/dist/components/CustomIcons/FilledCaretRightIcon.js +21 -0
  393. package/dist/components/CustomIcons/FilledCaretRightIcon.js.map +1 -0
  394. package/dist/components/CustomIcons/FilterIcon.js +28 -0
  395. package/dist/components/CustomIcons/FilterIcon.js.map +1 -0
  396. package/dist/components/CustomIcons/ForbiddenIcon.js +28 -0
  397. package/dist/components/CustomIcons/ForbiddenIcon.js.map +1 -0
  398. package/dist/components/CustomIcons/ForwardArrowIcon.js +21 -0
  399. package/dist/components/CustomIcons/ForwardArrowIcon.js.map +1 -0
  400. package/dist/components/CustomIcons/GlobeIcon.js +16 -0
  401. package/dist/components/CustomIcons/GlobeIcon.js.map +1 -0
  402. package/dist/components/CustomIcons/InboxIcon.js +16 -0
  403. package/dist/components/CustomIcons/InboxIcon.js.map +1 -0
  404. package/dist/components/CustomIcons/InfoCircleFilled.js +21 -0
  405. package/dist/components/CustomIcons/InfoCircleFilled.js.map +1 -0
  406. package/dist/components/CustomIcons/InfoFilledIcon.js +21 -0
  407. package/dist/components/CustomIcons/InfoFilledIcon.js.map +1 -0
  408. package/dist/components/CustomIcons/InfoIcon.js +28 -0
  409. package/dist/components/CustomIcons/InfoIcon.js.map +1 -0
  410. package/dist/components/CustomIcons/IntegrationsIcon.js +28 -0
  411. package/dist/components/CustomIcons/IntegrationsIcon.js.map +1 -0
  412. package/dist/components/CustomIcons/KeyIcon.js +28 -0
  413. package/dist/components/CustomIcons/KeyIcon.js.map +1 -0
  414. package/dist/components/CustomIcons/LibraryIcon.js +16 -0
  415. package/dist/components/CustomIcons/LibraryIcon.js.map +1 -0
  416. package/dist/components/CustomIcons/LogsIcon.js +28 -0
  417. package/dist/components/CustomIcons/LogsIcon.js.map +1 -0
  418. package/dist/components/CustomIcons/MagicWandIcon.js +16 -0
  419. package/dist/components/CustomIcons/MagicWandIcon.js.map +1 -0
  420. package/dist/components/CustomIcons/ManageTeamIcon.js +21 -0
  421. package/dist/components/CustomIcons/ManageTeamIcon.js.map +1 -0
  422. package/dist/components/CustomIcons/ManualWebhookIcon.js +21 -0
  423. package/dist/components/CustomIcons/ManualWebhookIcon.js.map +1 -0
  424. package/dist/components/CustomIcons/MarkReadIcon.js +16 -0
  425. package/dist/components/CustomIcons/MarkReadIcon.js.map +1 -0
  426. package/dist/components/CustomIcons/MarkUnreadIcon.js +21 -0
  427. package/dist/components/CustomIcons/MarkUnreadIcon.js.map +1 -0
  428. package/dist/components/CustomIcons/MembersIcon.js +28 -0
  429. package/dist/components/CustomIcons/MembersIcon.js.map +1 -0
  430. package/dist/components/CustomIcons/ModalIcon.js +28 -0
  431. package/dist/components/CustomIcons/ModalIcon.js.map +1 -0
  432. package/dist/components/CustomIcons/MoreHorizontalIcon.js +21 -0
  433. package/dist/components/CustomIcons/MoreHorizontalIcon.js.map +1 -0
  434. package/dist/components/CustomIcons/MoreVerticalIcon.js +21 -0
  435. package/dist/components/CustomIcons/MoreVerticalIcon.js.map +1 -0
  436. package/dist/components/CustomIcons/NavbarCollapseIcon.js +21 -0
  437. package/dist/components/CustomIcons/NavbarCollapseIcon.js.map +1 -0
  438. package/dist/components/CustomIcons/NavbarExpandIcon.js +21 -0
  439. package/dist/components/CustomIcons/NavbarExpandIcon.js.map +1 -0
  440. package/dist/components/CustomIcons/NotFoundIcon.js +16 -0
  441. package/dist/components/CustomIcons/NotFoundIcon.js.map +1 -0
  442. package/dist/components/CustomIcons/OrganizationIcon.js +21 -0
  443. package/dist/components/CustomIcons/OrganizationIcon.js.map +1 -0
  444. package/dist/components/CustomIcons/PinIcon.js +16 -0
  445. package/dist/components/CustomIcons/PinIcon.js.map +1 -0
  446. package/dist/components/CustomIcons/PlusIcon.js +28 -0
  447. package/dist/components/CustomIcons/PlusIcon.js.map +1 -0
  448. package/dist/components/CustomIcons/PreviewIcon.js +28 -0
  449. package/dist/components/CustomIcons/PreviewIcon.js.map +1 -0
  450. package/dist/components/CustomIcons/ProgrammaticWebhookIcon.js +21 -0
  451. package/dist/components/CustomIcons/ProgrammaticWebhookIcon.js.map +1 -0
  452. package/dist/components/CustomIcons/PulseIcon.js +28 -0
  453. package/dist/components/CustomIcons/PulseIcon.js.map +1 -0
  454. package/dist/components/CustomIcons/RefreshIcon.js +28 -0
  455. package/dist/components/CustomIcons/RefreshIcon.js.map +1 -0
  456. package/dist/components/CustomIcons/RejectIcon.js +28 -0
  457. package/dist/components/CustomIcons/RejectIcon.js.map +1 -0
  458. package/dist/components/CustomIcons/ReloadIcon.js +28 -0
  459. package/dist/components/CustomIcons/ReloadIcon.js.map +1 -0
  460. package/dist/components/CustomIcons/ReplyIcon.js +16 -0
  461. package/dist/components/CustomIcons/ReplyIcon.js.map +1 -0
  462. package/dist/components/CustomIcons/RequiredFieldIndicatorIcon.js +21 -0
  463. package/dist/components/CustomIcons/RequiredFieldIndicatorIcon.js.map +1 -0
  464. package/dist/components/CustomIcons/SearchIcon.js +15 -0
  465. package/dist/components/CustomIcons/SearchIcon.js.map +1 -0
  466. package/dist/components/CustomIcons/SecurityIcon.js +28 -0
  467. package/dist/components/CustomIcons/SecurityIcon.js.map +1 -0
  468. package/dist/components/CustomIcons/SendIcon.js +16 -0
  469. package/dist/components/CustomIcons/SendIcon.js.map +1 -0
  470. package/dist/components/CustomIcons/SettingsIcon.js +28 -0
  471. package/dist/components/CustomIcons/SettingsIcon.js.map +1 -0
  472. package/dist/components/CustomIcons/SignOutIcon.js +16 -0
  473. package/dist/components/CustomIcons/SignOutIcon.js.map +1 -0
  474. package/dist/components/CustomIcons/SliderIcon.js +28 -0
  475. package/dist/components/CustomIcons/SliderIcon.js.map +1 -0
  476. package/dist/components/CustomIcons/SortIcon.js +28 -0
  477. package/dist/components/CustomIcons/SortIcon.js.map +1 -0
  478. package/dist/components/CustomIcons/SourceIcon.js +28 -0
  479. package/dist/components/CustomIcons/SourceIcon.js.map +1 -0
  480. package/dist/components/CustomIcons/SparkleIcon.js +16 -0
  481. package/dist/components/CustomIcons/SparkleIcon.js.map +1 -0
  482. package/dist/components/CustomIcons/StarIcon.js +16 -0
  483. package/dist/components/CustomIcons/StarIcon.js.map +1 -0
  484. package/dist/components/CustomIcons/StepCurrentIcon.js +21 -0
  485. package/dist/components/CustomIcons/StepCurrentIcon.js.map +1 -0
  486. package/dist/components/CustomIcons/StepUpcomingIcon.js +21 -0
  487. package/dist/components/CustomIcons/StepUpcomingIcon.js.map +1 -0
  488. package/dist/components/CustomIcons/SyntheticWebhookIcon.js +21 -0
  489. package/dist/components/CustomIcons/SyntheticWebhookIcon.js.map +1 -0
  490. package/dist/components/CustomIcons/ThumbsDownIcon.js +21 -0
  491. package/dist/components/CustomIcons/ThumbsDownIcon.js.map +1 -0
  492. package/dist/components/CustomIcons/ThumbsUpIcon.js +16 -0
  493. package/dist/components/CustomIcons/ThumbsUpIcon.js.map +1 -0
  494. package/dist/components/CustomIcons/TrashIcon.js +28 -0
  495. package/dist/components/CustomIcons/TrashIcon.js.map +1 -0
  496. package/dist/components/CustomIcons/TriangleDownIcon.js +21 -0
  497. package/dist/components/CustomIcons/TriangleDownIcon.js.map +1 -0
  498. package/dist/components/CustomIcons/TriangleRightIcon.js +21 -0
  499. package/dist/components/CustomIcons/TriangleRightIcon.js.map +1 -0
  500. package/dist/components/CustomIcons/UnarchiveIcon.js +16 -0
  501. package/dist/components/CustomIcons/UnarchiveIcon.js.map +1 -0
  502. package/dist/components/CustomIcons/UploadIcon.js +28 -0
  503. package/dist/components/CustomIcons/UploadIcon.js.map +1 -0
  504. package/dist/components/CustomIcons/WarningCircleFilled.js +21 -0
  505. package/dist/components/CustomIcons/WarningCircleFilled.js.map +1 -0
  506. package/dist/components/CustomIcons/WarningTriangleIcon.js +21 -0
  507. package/dist/components/CustomIcons/WarningTriangleIcon.js.map +1 -0
  508. package/dist/components/CustomIcons/WebhookEventsIcon.js +28 -0
  509. package/dist/components/CustomIcons/WebhookEventsIcon.js.map +1 -0
  510. package/dist/components/CustomIcons/WebhookIcon.js +28 -0
  511. package/dist/components/CustomIcons/WebhookIcon.js.map +1 -0
  512. package/dist/components/CustomIcons/WebhookSigningSecretIcon.js +21 -0
  513. package/dist/components/CustomIcons/WebhookSigningSecretIcon.js.map +1 -0
  514. package/dist/components/CustomIcons/index.js +328 -0
  515. package/dist/components/CustomIcons/index.js.map +1 -0
  516. package/dist/components/DefinitionRow.js +15 -0
  517. package/dist/components/DefinitionRow.js.map +1 -0
  518. package/dist/components/DisclosureArrow.js +20 -0
  519. package/dist/components/DisclosureArrow.js.map +1 -0
  520. package/dist/components/Divider.js +59 -0
  521. package/dist/components/Divider.js.map +1 -0
  522. package/dist/components/Dropdown.js +847 -0
  523. package/dist/components/Dropdown.js.map +1 -0
  524. package/dist/components/FieldBlock.js +25 -0
  525. package/dist/components/FieldBlock.js.map +1 -0
  526. package/dist/components/FieldGroup.js +23 -0
  527. package/dist/components/FieldGroup.js.map +1 -0
  528. package/dist/components/FieldMessage.js +15 -0
  529. package/dist/components/FieldMessage.js.map +1 -0
  530. package/dist/components/Flex.js +45 -0
  531. package/dist/components/Flex.js.map +1 -0
  532. package/dist/components/FooterLinks.js +88 -0
  533. package/dist/components/FooterLinks.js.map +1 -0
  534. package/dist/components/FooterNav.js +19 -0
  535. package/dist/components/FooterNav.js.map +1 -0
  536. package/dist/components/Form.js +26 -0
  537. package/dist/components/Form.js.map +1 -0
  538. package/dist/components/FormItem.js +32 -0
  539. package/dist/components/FormItem.js.map +1 -0
  540. package/dist/components/FormSectionHeading.js +20 -0
  541. package/dist/components/FormSectionHeading.js.map +1 -0
  542. package/dist/components/InlineConfirm.js +129 -0
  543. package/dist/components/InlineConfirm.js.map +1 -0
  544. package/dist/components/Input/Input.js +302 -0
  545. package/dist/components/Input/Input.js.map +1 -0
  546. package/dist/components/KeyValueList.js +26 -0
  547. package/dist/components/KeyValueList.js.map +1 -0
  548. package/dist/components/Link.js +47 -0
  549. package/dist/components/Link.js.map +1 -0
  550. package/dist/components/LoadingBar.js +85 -0
  551. package/dist/components/LoadingBar.js.map +1 -0
  552. package/dist/components/LoadingInput.js +29 -0
  553. package/dist/components/LoadingInput.js.map +1 -0
  554. package/dist/components/MalachiteContext.js +18 -0
  555. package/dist/components/MalachiteContext.js.map +1 -0
  556. package/dist/components/Modal.js +212 -0
  557. package/dist/components/Modal.js.map +1 -0
  558. package/dist/components/MultiSelect.js +643 -0
  559. package/dist/components/MultiSelect.js.map +1 -0
  560. package/dist/components/NumberTag.js +22 -0
  561. package/dist/components/NumberTag.js.map +1 -0
  562. package/dist/components/OverflowRow.js +153 -0
  563. package/dist/components/OverflowRow.js.map +1 -0
  564. package/dist/components/Padded.js +39 -0
  565. package/dist/components/Padded.js.map +1 -0
  566. package/dist/components/PageLayout/constants.js +12 -0
  567. package/dist/components/PageLayout/constants.js.map +1 -0
  568. package/dist/components/PageLayout/emptyLayout.js +61 -0
  569. package/dist/components/PageLayout/emptyLayout.js.map +1 -0
  570. package/dist/components/PageLayout/index.js +10 -0
  571. package/dist/components/PageLayout/index.js.map +1 -0
  572. package/dist/components/PageLayout/regularLayout.js +177 -0
  573. package/dist/components/PageLayout/regularLayout.js.map +1 -0
  574. package/dist/components/PillButton.js +70 -0
  575. package/dist/components/PillButton.js.map +1 -0
  576. package/dist/components/PreviewTree.js +49 -0
  577. package/dist/components/PreviewTree.js.map +1 -0
  578. package/dist/components/Progress.js +69 -0
  579. package/dist/components/Progress.js.map +1 -0
  580. package/dist/components/QueryInput.js +370 -0
  581. package/dist/components/QueryInput.js.map +1 -0
  582. package/dist/components/Radio.js +63 -0
  583. package/dist/components/Radio.js.map +1 -0
  584. package/dist/components/Search.js +54 -0
  585. package/dist/components/Search.js.map +1 -0
  586. package/dist/components/SegmentedControl.js +107 -0
  587. package/dist/components/SegmentedControl.js.map +1 -0
  588. package/dist/components/SelectableCard.js +364 -0
  589. package/dist/components/SelectableCard.js.map +1 -0
  590. package/dist/components/SelectionBar.js +103 -0
  591. package/dist/components/SelectionBar.js.map +1 -0
  592. package/dist/components/SettingRow.js +40 -0
  593. package/dist/components/SettingRow.js.map +1 -0
  594. package/dist/components/ShadowEscape.js +166 -0
  595. package/dist/components/ShadowEscape.js.map +1 -0
  596. package/dist/components/SidePanel.js +140 -0
  597. package/dist/components/SidePanel.js.map +1 -0
  598. package/dist/components/SidePanelNavFooter.js +46 -0
  599. package/dist/components/SidePanelNavFooter.js.map +1 -0
  600. package/dist/components/Skeleton.js +106 -0
  601. package/dist/components/Skeleton.js.map +1 -0
  602. package/dist/components/Spacer.js +63 -0
  603. package/dist/components/Spacer.js.map +1 -0
  604. package/dist/components/Spinner.js +86 -0
  605. package/dist/components/Spinner.js.map +1 -0
  606. package/dist/components/SplitScreenLayout.js +51 -0
  607. package/dist/components/SplitScreenLayout.js.map +1 -0
  608. package/dist/components/StatBadge.js +10 -0
  609. package/dist/components/StatBadge.js.map +1 -0
  610. package/dist/components/Statistic.js +48 -0
  611. package/dist/components/Statistic.js.map +1 -0
  612. package/dist/components/StatusBadge.js +56 -0
  613. package/dist/components/StatusBadge.js.map +1 -0
  614. package/dist/components/StepTabs.js +52 -0
  615. package/dist/components/StepTabs.js.map +1 -0
  616. package/dist/components/Stepper.js +40 -0
  617. package/dist/components/Stepper.js.map +1 -0
  618. package/dist/components/Surface.js +143 -0
  619. package/dist/components/Surface.js.map +1 -0
  620. package/dist/components/Swatch.js +44 -0
  621. package/dist/components/Swatch.js.map +1 -0
  622. package/dist/components/Table/Table.js +1007 -0
  623. package/dist/components/Table/Table.js.map +1 -0
  624. package/dist/components/Table/TablePagination.js +205 -0
  625. package/dist/components/Table/TablePagination.js.map +1 -0
  626. package/dist/components/Tabs.js +35 -0
  627. package/dist/components/Tabs.js.map +1 -0
  628. package/dist/components/Tag.js +154 -0
  629. package/dist/components/Tag.js.map +1 -0
  630. package/dist/components/TextArea/TextArea.js +289 -0
  631. package/dist/components/TextArea/TextArea.js.map +1 -0
  632. package/dist/components/ThemeScope.js +14 -0
  633. package/dist/components/ThemeScope.js.map +1 -0
  634. package/dist/components/Toggle.js +115 -0
  635. package/dist/components/Toggle.js.map +1 -0
  636. package/dist/components/Toolbar.js +25 -0
  637. package/dist/components/Toolbar.js.map +1 -0
  638. package/dist/components/Tooltip.js +181 -0
  639. package/dist/components/Tooltip.js.map +1 -0
  640. package/dist/components/TruncatedTooltip.js +38 -0
  641. package/dist/components/TruncatedTooltip.js.map +1 -0
  642. package/dist/components/Typography/CodeText.js +49 -0
  643. package/dist/components/Typography/CodeText.js.map +1 -0
  644. package/dist/components/Typography/EllipsisText.js +27 -0
  645. package/dist/components/Typography/EllipsisText.js.map +1 -0
  646. package/dist/components/Typography/FormSectionTitle.js +21 -0
  647. package/dist/components/Typography/FormSectionTitle.js.map +1 -0
  648. package/dist/components/Typography/LinkText.js +32 -0
  649. package/dist/components/Typography/LinkText.js.map +1 -0
  650. package/dist/components/Typography/MarkdownBlock.js +304 -0
  651. package/dist/components/Typography/MarkdownBlock.js.map +1 -0
  652. package/dist/components/Typography/PageTitle.js +21 -0
  653. package/dist/components/Typography/PageTitle.js.map +1 -0
  654. package/dist/components/Typography/SecondaryText.js +51 -0
  655. package/dist/components/Typography/SecondaryText.js.map +1 -0
  656. package/dist/components/Typography/SectionTitle.js +16 -0
  657. package/dist/components/Typography/SectionTitle.js.map +1 -0
  658. package/dist/components/Typography/StatisticLabel.js +22 -0
  659. package/dist/components/Typography/StatisticLabel.js.map +1 -0
  660. package/dist/components/Typography/StatisticValue.js +21 -0
  661. package/dist/components/Typography/StatisticValue.js.map +1 -0
  662. package/dist/components/Typography/TerminalText.js +45 -0
  663. package/dist/components/Typography/TerminalText.js.map +1 -0
  664. package/dist/components/Typography/Text.js +31 -0
  665. package/dist/components/Typography/Text.js.map +1 -0
  666. package/dist/components/Typography/index.js +31 -0
  667. package/dist/components/Typography/index.js.map +1 -0
  668. package/dist/components/Typography/textStyles.js +66 -0
  669. package/dist/components/Typography/textStyles.js.map +1 -0
  670. package/dist/components/WizardLayout.js +113 -0
  671. package/dist/components/WizardLayout.js.map +1 -0
  672. package/dist/components/actionBarMenuItems.js +16 -0
  673. package/dist/components/actionBarMenuItems.js.map +1 -0
  674. package/dist/components/activeElement.js +11 -0
  675. package/dist/components/activeElement.js.map +1 -0
  676. package/dist/components/breadcrumbsNav.js +5 -0
  677. package/dist/components/breadcrumbsNav.js.map +1 -0
  678. package/dist/components/cardStripSlot.js +9 -0
  679. package/dist/components/cardStripSlot.js.map +1 -0
  680. package/dist/components/codeBlockDiff.js +78 -0
  681. package/dist/components/codeBlockDiff.js.map +1 -0
  682. package/dist/components/codeBlockLine.js +90 -0
  683. package/dist/components/codeBlockLine.js.map +1 -0
  684. package/dist/components/codeBlockStyles.js +20 -0
  685. package/dist/components/codeBlockStyles.js.map +1 -0
  686. package/dist/components/confirmationDialogVariants.js +30 -0
  687. package/dist/components/confirmationDialogVariants.js.map +1 -0
  688. package/dist/components/controlTextSize.js +14 -0
  689. package/dist/components/controlTextSize.js.map +1 -0
  690. package/dist/components/devWarning.js +22 -0
  691. package/dist/components/devWarning.js.map +1 -0
  692. package/dist/components/dividerTypes.js +7 -0
  693. package/dist/components/dividerTypes.js.map +1 -0
  694. package/dist/components/dropdownPanelPosition.js +38 -0
  695. package/dist/components/dropdownPanelPosition.js.map +1 -0
  696. package/dist/components/dropdownTriggerStyle.js +36 -0
  697. package/dist/components/dropdownTriggerStyle.js.map +1 -0
  698. package/dist/components/escapeLayers.js +13 -0
  699. package/dist/components/escapeLayers.js.map +1 -0
  700. package/dist/components/flexTypes.js +8 -0
  701. package/dist/components/flexTypes.js.map +1 -0
  702. package/dist/components/focusRing.js +9 -0
  703. package/dist/components/focusRing.js.map +1 -0
  704. package/dist/components/formItemState.js +12 -0
  705. package/dist/components/formItemState.js.map +1 -0
  706. package/dist/components/glassSurface.js +10 -0
  707. package/dist/components/glassSurface.js.map +1 -0
  708. package/dist/components/injectStyleSheet.js +33 -0
  709. package/dist/components/injectStyleSheet.js.map +1 -0
  710. package/dist/components/inlineConfirmPosition.js +27 -0
  711. package/dist/components/inlineConfirmPosition.js.map +1 -0
  712. package/dist/components/keyboardActivation.js +14 -0
  713. package/dist/components/keyboardActivation.js.map +1 -0
  714. package/dist/components/modalTray.js +16 -0
  715. package/dist/components/modalTray.js.map +1 -0
  716. package/dist/components/optionRowStyles.js +27 -0
  717. package/dist/components/optionRowStyles.js.map +1 -0
  718. package/dist/components/overlayBehaviour.js +118 -0
  719. package/dist/components/overlayBehaviour.js.map +1 -0
  720. package/dist/components/portalOverlay.js +35 -0
  721. package/dist/components/portalOverlay.js.map +1 -0
  722. package/dist/components/prismCedar.js +27 -0
  723. package/dist/components/prismCedar.js.map +1 -0
  724. package/dist/components/queryInputGeometry.js +24 -0
  725. package/dist/components/queryInputGeometry.js.map +1 -0
  726. package/dist/components/renderableNode.js +6 -0
  727. package/dist/components/renderableNode.js.map +1 -0
  728. package/dist/components/safeHref.js +11 -0
  729. package/dist/components/safeHref.js.map +1 -0
  730. package/dist/components/scrollLock.js +19 -0
  731. package/dist/components/scrollLock.js.map +1 -0
  732. package/dist/components/selectedRow.js +14 -0
  733. package/dist/components/selectedRow.js.map +1 -0
  734. package/dist/components/selectionBarChrome.js +63 -0
  735. package/dist/components/selectionBarChrome.js.map +1 -0
  736. package/dist/components/topLayer.js +29 -0
  737. package/dist/components/topLayer.js.map +1 -0
  738. package/dist/components/useAdoptedStyleSheet.js +41 -0
  739. package/dist/components/useAdoptedStyleSheet.js.map +1 -0
  740. package/dist/geist-font.js +23 -0
  741. package/dist/geist-font.js.map +1 -0
  742. package/dist/index.d.ts +1089 -78
  743. package/dist/index.js +403 -103
  744. package/dist/index.js.map +1 -1
  745. package/dist/inter-font.js +35 -0
  746. package/dist/inter-font.js.map +1 -0
  747. package/dist/stack-sans-font.js +17 -0
  748. package/dist/stack-sans-font.js.map +1 -0
  749. package/dist/tailwind.css.js +5 -0
  750. package/dist/tailwind.css.js.map +1 -0
  751. package/dist/theme.js +1959 -0
  752. package/dist/theme.js.map +1 -0
  753. package/dist/vendor/@fontsource/geist-sans/files/geist-sans-latin-400-normal.woff2.js +5 -0
  754. package/dist/vendor/@fontsource/geist-sans/files/geist-sans-latin-400-normal.woff2.js.map +1 -0
  755. package/dist/vendor/@fontsource/geist-sans/files/geist-sans-latin-500-normal.woff2.js +5 -0
  756. package/dist/vendor/@fontsource/geist-sans/files/geist-sans-latin-500-normal.woff2.js.map +1 -0
  757. package/dist/vendor/@fontsource/inter/files/inter-latin-400-normal.woff2.js +5 -0
  758. package/dist/vendor/@fontsource/inter/files/inter-latin-400-normal.woff2.js.map +1 -0
  759. package/dist/vendor/@fontsource/inter/files/inter-latin-500-normal.woff2.js +5 -0
  760. package/dist/vendor/@fontsource/inter/files/inter-latin-500-normal.woff2.js.map +1 -0
  761. package/dist/vendor/@fontsource/inter/files/inter-latin-600-normal.woff2.js +5 -0
  762. package/dist/vendor/@fontsource/inter/files/inter-latin-600-normal.woff2.js.map +1 -0
  763. package/dist/vendor/@fontsource/inter/files/inter-latin-700-normal.woff2.js +5 -0
  764. package/dist/vendor/@fontsource/inter/files/inter-latin-700-normal.woff2.js.map +1 -0
  765. package/dist/vendor/@fontsource/inter/files/inter-latin-ext-400-normal.woff2.js +5 -0
  766. package/dist/vendor/@fontsource/inter/files/inter-latin-ext-400-normal.woff2.js.map +1 -0
  767. package/dist/vendor/@fontsource/inter/files/inter-latin-ext-500-normal.woff2.js +5 -0
  768. package/dist/vendor/@fontsource/inter/files/inter-latin-ext-500-normal.woff2.js.map +1 -0
  769. package/dist/vendor/@fontsource/inter/files/inter-latin-ext-600-normal.woff2.js +5 -0
  770. package/dist/vendor/@fontsource/inter/files/inter-latin-ext-600-normal.woff2.js.map +1 -0
  771. package/dist/vendor/@fontsource/inter/files/inter-latin-ext-700-normal.woff2.js +5 -0
  772. package/dist/vendor/@fontsource/inter/files/inter-latin-ext-700-normal.woff2.js.map +1 -0
  773. package/dist/vendor/@fontsource-variable/stack-sans-text/files/stack-sans-text-latin-wght-normal.woff2.js +5 -0
  774. package/dist/vendor/@fontsource-variable/stack-sans-text/files/stack-sans-text-latin-wght-normal.woff2.js.map +1 -0
  775. package/package.json +6 -1
  776. package/dist/CodeBlockHighlighter-LexFSPf6.js +0 -2791
  777. package/dist/CodeBlockHighlighter-LexFSPf6.js.map +0 -1
  778. package/dist/index-TymfOwWa.js +0 -19154
  779. package/dist/index-TymfOwWa.js.map +0 -1
@@ -1,2791 +0,0 @@
1
- import { jsx as Pn } from "react/jsx-runtime";
2
- import { _ as ue, a as se, C as cn, b as fe } from "./index-TymfOwWa.js";
3
- import H from "react";
4
- function de(n, e) {
5
- if (n == null) return {};
6
- var t, l, o = ue(n, e);
7
- if (Object.getOwnPropertySymbols) {
8
- var a = Object.getOwnPropertySymbols(n);
9
- for (l = 0; l < a.length; l++) t = a[l], e.indexOf(t) === -1 && {}.propertyIsEnumerable.call(n, t) && (o[t] = n[t]);
10
- }
11
- return o;
12
- }
13
- function dn(n, e) {
14
- (e == null || e > n.length) && (e = n.length);
15
- for (var t = 0, l = Array(e); t < e; t++) l[t] = n[t];
16
- return l;
17
- }
18
- function ge(n) {
19
- if (Array.isArray(n)) return dn(n);
20
- }
21
- function pe(n) {
22
- if (typeof Symbol < "u" && n[Symbol.iterator] != null || n["@@iterator"] != null) return Array.from(n);
23
- }
24
- function he(n, e) {
25
- if (n) {
26
- if (typeof n == "string") return dn(n, e);
27
- var t = {}.toString.call(n).slice(8, -1);
28
- return t === "Object" && n.constructor && (t = n.constructor.name), t === "Map" || t === "Set" ? Array.from(n) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? dn(n, e) : void 0;
29
- }
30
- }
31
- function me() {
32
- throw new TypeError(`Invalid attempt to spread non-iterable instance.
33
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
34
- }
35
- function gn(n) {
36
- return ge(n) || pe(n) || he(n) || me();
37
- }
38
- function Z(n) {
39
- "@babel/helpers - typeof";
40
- return Z = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
41
- return typeof e;
42
- } : function(e) {
43
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
44
- }, Z(n);
45
- }
46
- function ye(n, e) {
47
- if (Z(n) != "object" || !n) return n;
48
- var t = n[Symbol.toPrimitive];
49
- if (t !== void 0) {
50
- var l = t.call(n, e);
51
- if (Z(l) != "object") return l;
52
- throw new TypeError("@@toPrimitive must return a primitive value.");
53
- }
54
- return (e === "string" ? String : Number)(n);
55
- }
56
- function ve(n) {
57
- var e = ye(n, "string");
58
- return Z(e) == "symbol" ? e : e + "";
59
- }
60
- function $n(n, e, t) {
61
- return (e = ve(e)) in n ? Object.defineProperty(n, e, {
62
- value: t,
63
- enumerable: !0,
64
- configurable: !0,
65
- writable: !0
66
- }) : n[e] = t, n;
67
- }
68
- function Ln(n, e) {
69
- var t = Object.keys(n);
70
- if (Object.getOwnPropertySymbols) {
71
- var l = Object.getOwnPropertySymbols(n);
72
- e && (l = l.filter(function(o) {
73
- return Object.getOwnPropertyDescriptor(n, o).enumerable;
74
- })), t.push.apply(t, l);
75
- }
76
- return t;
77
- }
78
- function K(n) {
79
- for (var e = 1; e < arguments.length; e++) {
80
- var t = arguments[e] != null ? arguments[e] : {};
81
- e % 2 ? Ln(Object(t), !0).forEach(function(l) {
82
- $n(n, l, t[l]);
83
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : Ln(Object(t)).forEach(function(l) {
84
- Object.defineProperty(n, l, Object.getOwnPropertyDescriptor(t, l));
85
- });
86
- }
87
- return n;
88
- }
89
- function be(n) {
90
- var e = n.length;
91
- if (e === 0 || e === 1) return n;
92
- if (e === 2)
93
- return [n[0], n[1], "".concat(n[0], ".").concat(n[1]), "".concat(n[1], ".").concat(n[0])];
94
- if (e === 3)
95
- return [n[0], n[1], n[2], "".concat(n[0], ".").concat(n[1]), "".concat(n[0], ".").concat(n[2]), "".concat(n[1], ".").concat(n[0]), "".concat(n[1], ".").concat(n[2]), "".concat(n[2], ".").concat(n[0]), "".concat(n[2], ".").concat(n[1]), "".concat(n[0], ".").concat(n[1], ".").concat(n[2]), "".concat(n[0], ".").concat(n[2], ".").concat(n[1]), "".concat(n[1], ".").concat(n[0], ".").concat(n[2]), "".concat(n[1], ".").concat(n[2], ".").concat(n[0]), "".concat(n[2], ".").concat(n[0], ".").concat(n[1]), "".concat(n[2], ".").concat(n[1], ".").concat(n[0])];
96
- if (e >= 4)
97
- return [n[0], n[1], n[2], n[3], "".concat(n[0], ".").concat(n[1]), "".concat(n[0], ".").concat(n[2]), "".concat(n[0], ".").concat(n[3]), "".concat(n[1], ".").concat(n[0]), "".concat(n[1], ".").concat(n[2]), "".concat(n[1], ".").concat(n[3]), "".concat(n[2], ".").concat(n[0]), "".concat(n[2], ".").concat(n[1]), "".concat(n[2], ".").concat(n[3]), "".concat(n[3], ".").concat(n[0]), "".concat(n[3], ".").concat(n[1]), "".concat(n[3], ".").concat(n[2]), "".concat(n[0], ".").concat(n[1], ".").concat(n[2]), "".concat(n[0], ".").concat(n[1], ".").concat(n[3]), "".concat(n[0], ".").concat(n[2], ".").concat(n[1]), "".concat(n[0], ".").concat(n[2], ".").concat(n[3]), "".concat(n[0], ".").concat(n[3], ".").concat(n[1]), "".concat(n[0], ".").concat(n[3], ".").concat(n[2]), "".concat(n[1], ".").concat(n[0], ".").concat(n[2]), "".concat(n[1], ".").concat(n[0], ".").concat(n[3]), "".concat(n[1], ".").concat(n[2], ".").concat(n[0]), "".concat(n[1], ".").concat(n[2], ".").concat(n[3]), "".concat(n[1], ".").concat(n[3], ".").concat(n[0]), "".concat(n[1], ".").concat(n[3], ".").concat(n[2]), "".concat(n[2], ".").concat(n[0], ".").concat(n[1]), "".concat(n[2], ".").concat(n[0], ".").concat(n[3]), "".concat(n[2], ".").concat(n[1], ".").concat(n[0]), "".concat(n[2], ".").concat(n[1], ".").concat(n[3]), "".concat(n[2], ".").concat(n[3], ".").concat(n[0]), "".concat(n[2], ".").concat(n[3], ".").concat(n[1]), "".concat(n[3], ".").concat(n[0], ".").concat(n[1]), "".concat(n[3], ".").concat(n[0], ".").concat(n[2]), "".concat(n[3], ".").concat(n[1], ".").concat(n[0]), "".concat(n[3], ".").concat(n[1], ".").concat(n[2]), "".concat(n[3], ".").concat(n[2], ".").concat(n[0]), "".concat(n[3], ".").concat(n[2], ".").concat(n[1]), "".concat(n[0], ".").concat(n[1], ".").concat(n[2], ".").concat(n[3]), "".concat(n[0], ".").concat(n[1], ".").concat(n[3], ".").concat(n[2]), "".concat(n[0], ".").concat(n[2], ".").concat(n[1], ".").concat(n[3]), "".concat(n[0], ".").concat(n[2], ".").concat(n[3], ".").concat(n[1]), "".concat(n[0], ".").concat(n[3], ".").concat(n[1], ".").concat(n[2]), "".concat(n[0], ".").concat(n[3], ".").concat(n[2], ".").concat(n[1]), "".concat(n[1], ".").concat(n[0], ".").concat(n[2], ".").concat(n[3]), "".concat(n[1], ".").concat(n[0], ".").concat(n[3], ".").concat(n[2]), "".concat(n[1], ".").concat(n[2], ".").concat(n[0], ".").concat(n[3]), "".concat(n[1], ".").concat(n[2], ".").concat(n[3], ".").concat(n[0]), "".concat(n[1], ".").concat(n[3], ".").concat(n[0], ".").concat(n[2]), "".concat(n[1], ".").concat(n[3], ".").concat(n[2], ".").concat(n[0]), "".concat(n[2], ".").concat(n[0], ".").concat(n[1], ".").concat(n[3]), "".concat(n[2], ".").concat(n[0], ".").concat(n[3], ".").concat(n[1]), "".concat(n[2], ".").concat(n[1], ".").concat(n[0], ".").concat(n[3]), "".concat(n[2], ".").concat(n[1], ".").concat(n[3], ".").concat(n[0]), "".concat(n[2], ".").concat(n[3], ".").concat(n[0], ".").concat(n[1]), "".concat(n[2], ".").concat(n[3], ".").concat(n[1], ".").concat(n[0]), "".concat(n[3], ".").concat(n[0], ".").concat(n[1], ".").concat(n[2]), "".concat(n[3], ".").concat(n[0], ".").concat(n[2], ".").concat(n[1]), "".concat(n[3], ".").concat(n[1], ".").concat(n[0], ".").concat(n[2]), "".concat(n[3], ".").concat(n[1], ".").concat(n[2], ".").concat(n[0]), "".concat(n[3], ".").concat(n[2], ".").concat(n[0], ".").concat(n[1]), "".concat(n[3], ".").concat(n[2], ".").concat(n[1], ".").concat(n[0])];
98
- }
99
- var sn = {};
100
- function we(n) {
101
- if (n.length === 0 || n.length === 1) return n;
102
- var e = n.join(".");
103
- return sn[e] || (sn[e] = be(n)), sn[e];
104
- }
105
- function xe(n) {
106
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = arguments.length > 2 ? arguments[2] : void 0, l = n.filter(function(a) {
107
- return a !== "token";
108
- }), o = we(l);
109
- return o.reduce(function(a, r) {
110
- return K(K({}, a), t[r]);
111
- }, e);
112
- }
113
- function Nn(n) {
114
- return n.join(" ");
115
- }
116
- function ke(n, e) {
117
- var t = 0;
118
- return function(l) {
119
- return t += 1, l.map(function(o, a) {
120
- return vn({
121
- node: o,
122
- stylesheet: n,
123
- useInlineStyles: e,
124
- key: "code-segment-".concat(t, "-").concat(a)
125
- });
126
- });
127
- };
128
- }
129
- function vn(n) {
130
- var e = n.node, t = n.stylesheet, l = n.style, o = l === void 0 ? {} : l, a = n.useInlineStyles, r = n.key, c = e.properties, u = e.type, s = e.tagName, m = e.value;
131
- if (u === "text")
132
- return m;
133
- if (s) {
134
- var v = ke(t, a), b;
135
- if (!a)
136
- b = K(K({}, c), {}, {
137
- className: Nn(c.className)
138
- });
139
- else {
140
- var g = Object.keys(t).reduce(function(p, k) {
141
- return k.split(".").forEach(function(P) {
142
- p.includes(P) || p.push(P);
143
- }), p;
144
- }, []), O = c.className && c.className.includes("token") ? ["token"] : [], N = c.className && O.concat(c.className.filter(function(p) {
145
- return !g.includes(p);
146
- }));
147
- b = K(K({}, c), {}, {
148
- className: Nn(N) || void 0,
149
- style: xe(c.className, Object.assign({}, c.style, o), t)
150
- });
151
- }
152
- var w = v(e.children);
153
- return /* @__PURE__ */ H.createElement(s, se({
154
- key: r
155
- }, b), w);
156
- }
157
- }
158
- const Se = function(n, e) {
159
- var t = n.listLanguages();
160
- return t.indexOf(e) !== -1;
161
- };
162
- var Ce = ["language", "children", "style", "customStyle", "codeTagProps", "useInlineStyles", "showLineNumbers", "showInlineLineNumbers", "startingLineNumber", "lineNumberContainerStyle", "lineNumberStyle", "wrapLines", "wrapLongLines", "lineProps", "renderer", "PreTag", "CodeTag", "code", "astGenerator"];
163
- function An(n, e) {
164
- var t = Object.keys(n);
165
- if (Object.getOwnPropertySymbols) {
166
- var l = Object.getOwnPropertySymbols(n);
167
- e && (l = l.filter(function(o) {
168
- return Object.getOwnPropertyDescriptor(n, o).enumerable;
169
- })), t.push.apply(t, l);
170
- }
171
- return t;
172
- }
173
- function $(n) {
174
- for (var e = 1; e < arguments.length; e++) {
175
- var t = arguments[e] != null ? arguments[e] : {};
176
- e % 2 ? An(Object(t), !0).forEach(function(l) {
177
- $n(n, l, t[l]);
178
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : An(Object(t)).forEach(function(l) {
179
- Object.defineProperty(n, l, Object.getOwnPropertyDescriptor(t, l));
180
- });
181
- }
182
- return n;
183
- }
184
- var Oe = /\n/g;
185
- function Pe(n) {
186
- return n.match(Oe);
187
- }
188
- function Le(n) {
189
- var e = n.lines, t = n.startingLineNumber, l = n.style;
190
- return e.map(function(o, a) {
191
- var r = a + t;
192
- return /* @__PURE__ */ H.createElement("span", {
193
- key: "line-".concat(a),
194
- className: "react-syntax-highlighter-line-number",
195
- style: typeof l == "function" ? l(r) : l
196
- }, "".concat(r, `
197
- `));
198
- });
199
- }
200
- function Ne(n) {
201
- var e = n.codeString, t = n.codeStyle, l = n.containerStyle, o = l === void 0 ? {
202
- float: "left",
203
- paddingRight: "10px"
204
- } : l, a = n.numberStyle, r = a === void 0 ? {} : a, c = n.startingLineNumber;
205
- return /* @__PURE__ */ H.createElement("code", {
206
- style: Object.assign({}, t, o)
207
- }, Le({
208
- lines: e.replace(/\n$/, "").split(`
209
- `),
210
- style: r,
211
- startingLineNumber: c
212
- }));
213
- }
214
- function Ae(n) {
215
- return "".concat(n.toString().length, ".25em");
216
- }
217
- function Fn(n, e) {
218
- return {
219
- type: "element",
220
- tagName: "span",
221
- properties: {
222
- key: "line-number--".concat(n),
223
- className: ["comment", "linenumber", "react-syntax-highlighter-line-number"],
224
- style: e
225
- },
226
- children: [{
227
- type: "text",
228
- value: n
229
- }]
230
- };
231
- }
232
- function Wn(n, e, t) {
233
- var l = {
234
- display: "inline-block",
235
- minWidth: Ae(t),
236
- paddingRight: "1em",
237
- textAlign: "right",
238
- userSelect: "none"
239
- }, o = typeof n == "function" ? n(e) : n, a = $($({}, l), o);
240
- return a;
241
- }
242
- function an(n) {
243
- var e = n.children, t = n.lineNumber, l = n.lineNumberStyle, o = n.largestLineNumber, a = n.showInlineLineNumbers, r = n.lineProps, c = r === void 0 ? {} : r, u = n.className, s = u === void 0 ? [] : u, m = n.showLineNumbers, v = n.wrapLongLines, b = n.wrapLines, g = b === void 0 ? !1 : b, O = g ? $({}, typeof c == "function" ? c(t) : c) : {};
244
- if (O.className = O.className ? [].concat(gn(O.className.trim().split(/\s+/)), gn(s)) : s, t && a) {
245
- var N = Wn(l, t, o);
246
- e.unshift(Fn(t, N));
247
- }
248
- return v & m && (O.style = $({
249
- display: "flex"
250
- }, O.style)), {
251
- type: "element",
252
- tagName: "span",
253
- properties: O,
254
- children: e
255
- };
256
- }
257
- function Vn(n) {
258
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
259
- n.length === void 0 && (n = [n]);
260
- for (var l = 0; l < n.length; l++) {
261
- var o = n[l];
262
- if (o.type === "text")
263
- t.push(an({
264
- children: [o],
265
- className: gn(new Set(e))
266
- }));
267
- else if (o.children) {
268
- var a, r = e.concat(((a = o.properties) === null || a === void 0 ? void 0 : a.className) || []);
269
- Vn(o.children, r).forEach(function(c) {
270
- return t.push(c);
271
- });
272
- }
273
- }
274
- return t;
275
- }
276
- function Ee(n, e, t, l, o, a, r, c, u) {
277
- var s, m = Vn(n.value), v = [], b = -1, g = 0;
278
- function O(S, y) {
279
- var C = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
280
- return an({
281
- children: S,
282
- lineNumber: y,
283
- lineNumberStyle: c,
284
- largestLineNumber: r,
285
- showInlineLineNumbers: o,
286
- lineProps: t,
287
- className: C,
288
- showLineNumbers: l,
289
- wrapLongLines: u,
290
- wrapLines: e
291
- });
292
- }
293
- function N(S, y) {
294
- if (l && y && o) {
295
- var C = Wn(c, y, r);
296
- S.unshift(Fn(y, C));
297
- }
298
- return S;
299
- }
300
- function w(S, y) {
301
- var C = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
302
- return e || C.length > 0 ? O(S, y, C) : N(S, y);
303
- }
304
- for (var p = function() {
305
- var y = m[g], C = y.children[0].value, L = Pe(C);
306
- if (L) {
307
- var U = C.split(`
308
- `);
309
- U.forEach(function(R, E) {
310
- var D = l && v.length + a, d = {
311
- type: "text",
312
- value: "".concat(R, `
313
- `)
314
- };
315
- if (E === 0) {
316
- var j = m.slice(b + 1, g).concat(an({
317
- children: [d],
318
- className: y.properties.className
319
- })), B = w(j, D);
320
- v.push(B);
321
- } else if (E === U.length - 1) {
322
- var en = m[g + 1] && m[g + 1].children && m[g + 1].children[0], Y = {
323
- type: "text",
324
- value: "".concat(R)
325
- };
326
- if (en) {
327
- var tn = an({
328
- children: [Y],
329
- className: y.properties.className
330
- });
331
- m.splice(g + 1, 0, tn);
332
- } else {
333
- var ln = [Y], F = w(ln, D, y.properties.className);
334
- v.push(F);
335
- }
336
- } else {
337
- var W = [d], G = w(W, D, y.properties.className);
338
- v.push(G);
339
- }
340
- }), b = g;
341
- }
342
- g++;
343
- }; g < m.length; )
344
- p();
345
- if (b !== m.length - 1) {
346
- var k = m.slice(b + 1, m.length);
347
- if (k && k.length) {
348
- var P = l && v.length + a, h = w(k, P);
349
- v.push(h);
350
- }
351
- }
352
- return e ? v : (s = []).concat.apply(s, v);
353
- }
354
- function Te(n) {
355
- var e = n.rows, t = n.stylesheet, l = n.useInlineStyles;
356
- return e.map(function(o, a) {
357
- return vn({
358
- node: o,
359
- stylesheet: t,
360
- useInlineStyles: l,
361
- key: "code-segment-".concat(a)
362
- });
363
- });
364
- }
365
- function qn(n) {
366
- return n && typeof n.highlightAuto < "u";
367
- }
368
- function De(n) {
369
- var e = n.astGenerator, t = n.language, l = n.code, o = n.defaultCodeValue;
370
- if (qn(e)) {
371
- var a = Se(e, t);
372
- return t === "text" ? {
373
- value: o,
374
- language: "text"
375
- } : a ? e.highlight(t, l) : e.highlightAuto(l);
376
- }
377
- try {
378
- return t && t !== "text" ? {
379
- value: e.highlight(l, t)
380
- } : {
381
- value: o
382
- };
383
- } catch {
384
- return {
385
- value: o
386
- };
387
- }
388
- }
389
- function Me(n, e) {
390
- return function(l) {
391
- var o, a, r = l.language, c = l.children, u = l.style, s = u === void 0 ? e : u, m = l.customStyle, v = m === void 0 ? {} : m, b = l.codeTagProps, g = b === void 0 ? {
392
- className: r ? "language-".concat(r) : void 0,
393
- style: $($({}, s['code[class*="language-"]']), s['code[class*="language-'.concat(r, '"]')])
394
- } : b, O = l.useInlineStyles, N = O === void 0 ? !0 : O, w = l.showLineNumbers, p = w === void 0 ? !1 : w, k = l.showInlineLineNumbers, P = k === void 0 ? !0 : k, h = l.startingLineNumber, S = h === void 0 ? 1 : h, y = l.lineNumberContainerStyle, C = l.lineNumberStyle, L = C === void 0 ? {} : C, U = l.wrapLines, R = l.wrapLongLines, E = R === void 0 ? !1 : R, D = l.lineProps, d = D === void 0 ? {} : D, j = l.renderer, B = l.PreTag, en = B === void 0 ? "pre" : B, Y = l.CodeTag, tn = Y === void 0 ? "code" : Y, ln = l.code, F = ln === void 0 ? (Array.isArray(c) ? c[0] : c) || "" : ln, W = l.astGenerator, G = de(l, Ce);
395
- W = W || n;
396
- var kn = p ? /* @__PURE__ */ H.createElement(Ne, {
397
- containerStyle: y,
398
- codeStyle: g.style || {},
399
- numberStyle: L,
400
- startingLineNumber: S,
401
- codeString: F
402
- }) : null, ae = s.hljs || s['pre[class*="language-"]'] || {
403
- backgroundColor: "#fff"
404
- }, Sn = qn(W) ? "hljs" : "prismjs", Cn = N ? Object.assign({}, G, {
405
- style: Object.assign({}, ae, v)
406
- }) : Object.assign({}, G, {
407
- className: G.className ? "".concat(Sn, " ").concat(G.className) : Sn,
408
- style: Object.assign({}, v)
409
- });
410
- if (E ? g.style = $({
411
- whiteSpace: "pre-wrap"
412
- }, g.style) : g.style = $({
413
- whiteSpace: "pre"
414
- }, g.style), !W)
415
- return /* @__PURE__ */ H.createElement(en, Cn, kn, /* @__PURE__ */ H.createElement(tn, g, F));
416
- (U === void 0 && j || E) && (U = !0), j = j || Te;
417
- var On = [{
418
- type: "text",
419
- value: F
420
- }], un = De({
421
- astGenerator: W,
422
- language: r,
423
- code: F,
424
- defaultCodeValue: On
425
- });
426
- un.language === null && (un.value = On);
427
- var ie = (o = (a = F.match(/\n/g)) === null || a === void 0 ? void 0 : a.length) !== null && o !== void 0 ? o : 0, re = S + ie, ce = Ee(un, U, d, p, P, S, re, L, E);
428
- return /* @__PURE__ */ H.createElement(en, Cn, /* @__PURE__ */ H.createElement(tn, g, !P && kn, j({
429
- rows: ce,
430
- stylesheet: s,
431
- useInlineStyles: N
432
- })));
433
- };
434
- }
435
- class Q {
436
- /**
437
- * @param {SchemaType['property']} property
438
- * Property.
439
- * @param {SchemaType['normal']} normal
440
- * Normal.
441
- * @param {Space | undefined} [space]
442
- * Space.
443
- * @returns
444
- * Schema.
445
- */
446
- constructor(e, t, l) {
447
- this.normal = t, this.property = e, l && (this.space = l);
448
- }
449
- }
450
- Q.prototype.normal = {};
451
- Q.prototype.property = {};
452
- Q.prototype.space = void 0;
453
- function Gn(n, e) {
454
- const t = {}, l = {};
455
- for (const o of n)
456
- Object.assign(t, o.property), Object.assign(l, o.normal);
457
- return new Q(t, l, e);
458
- }
459
- function J(n) {
460
- return n.toLowerCase();
461
- }
462
- class I {
463
- /**
464
- * @param {string} property
465
- * Property.
466
- * @param {string} attribute
467
- * Attribute.
468
- * @returns
469
- * Info.
470
- */
471
- constructor(e, t) {
472
- this.attribute = t, this.property = e;
473
- }
474
- }
475
- I.prototype.attribute = "";
476
- I.prototype.booleanish = !1;
477
- I.prototype.boolean = !1;
478
- I.prototype.commaOrSpaceSeparated = !1;
479
- I.prototype.commaSeparated = !1;
480
- I.prototype.defined = !1;
481
- I.prototype.mustUseProperty = !1;
482
- I.prototype.number = !1;
483
- I.prototype.overloadedBoolean = !1;
484
- I.prototype.property = "";
485
- I.prototype.spaceSeparated = !1;
486
- I.prototype.space = void 0;
487
- let Re = 0;
488
- const f = q(), A = q(), pn = q(), i = q(), x = q(), V = q(), z = q();
489
- function q() {
490
- return 2 ** ++Re;
491
- }
492
- const hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
493
- __proto__: null,
494
- boolean: f,
495
- booleanish: A,
496
- commaOrSpaceSeparated: z,
497
- commaSeparated: V,
498
- number: i,
499
- overloadedBoolean: pn,
500
- spaceSeparated: x
501
- }, Symbol.toStringTag, { value: "Module" })), fn = (
502
- /** @type {ReadonlyArray<keyof typeof types>} */
503
- Object.keys(hn)
504
- );
505
- class bn extends I {
506
- /**
507
- * @constructor
508
- * @param {string} property
509
- * Property.
510
- * @param {string} attribute
511
- * Attribute.
512
- * @param {number | null | undefined} [mask]
513
- * Mask.
514
- * @param {Space | undefined} [space]
515
- * Space.
516
- * @returns
517
- * Info.
518
- */
519
- constructor(e, t, l, o) {
520
- let a = -1;
521
- if (super(e, t), En(this, "space", o), typeof l == "number")
522
- for (; ++a < fn.length; ) {
523
- const r = fn[a];
524
- En(this, fn[a], (l & hn[r]) === hn[r]);
525
- }
526
- }
527
- }
528
- bn.prototype.defined = !0;
529
- function En(n, e, t) {
530
- t && (n[e] = t);
531
- }
532
- function _(n) {
533
- const e = {}, t = {};
534
- for (const [l, o] of Object.entries(n.properties)) {
535
- const a = new bn(
536
- l,
537
- n.transform(n.attributes || {}, l),
538
- o,
539
- n.space
540
- );
541
- n.mustUseProperty && n.mustUseProperty.includes(l) && (a.mustUseProperty = !0), e[l] = a, t[J(l)] = l, t[J(a.attribute)] = l;
542
- }
543
- return new Q(e, t, n.space);
544
- }
545
- const Kn = _({
546
- properties: {
547
- ariaActiveDescendant: null,
548
- ariaAtomic: A,
549
- ariaAutoComplete: null,
550
- ariaBusy: A,
551
- ariaChecked: A,
552
- ariaColCount: i,
553
- ariaColIndex: i,
554
- ariaColSpan: i,
555
- ariaControls: x,
556
- ariaCurrent: null,
557
- ariaDescribedBy: x,
558
- ariaDetails: null,
559
- ariaDisabled: A,
560
- ariaDropEffect: x,
561
- ariaErrorMessage: null,
562
- ariaExpanded: A,
563
- ariaFlowTo: x,
564
- ariaGrabbed: A,
565
- ariaHasPopup: null,
566
- ariaHidden: A,
567
- ariaInvalid: null,
568
- ariaKeyShortcuts: null,
569
- ariaLabel: null,
570
- ariaLabelledBy: x,
571
- ariaLevel: i,
572
- ariaLive: null,
573
- ariaModal: A,
574
- ariaMultiLine: A,
575
- ariaMultiSelectable: A,
576
- ariaOrientation: null,
577
- ariaOwns: x,
578
- ariaPlaceholder: null,
579
- ariaPosInSet: i,
580
- ariaPressed: A,
581
- ariaReadOnly: A,
582
- ariaRelevant: null,
583
- ariaRequired: A,
584
- ariaRoleDescription: x,
585
- ariaRowCount: i,
586
- ariaRowIndex: i,
587
- ariaRowSpan: i,
588
- ariaSelected: A,
589
- ariaSetSize: i,
590
- ariaSort: null,
591
- ariaValueMax: i,
592
- ariaValueMin: i,
593
- ariaValueNow: i,
594
- ariaValueText: null,
595
- role: null
596
- },
597
- transform(n, e) {
598
- return e === "role" ? e : "aria-" + e.slice(4).toLowerCase();
599
- }
600
- });
601
- function _n(n, e) {
602
- return e in n ? n[e] : e;
603
- }
604
- function Yn(n, e) {
605
- return _n(n, e.toLowerCase());
606
- }
607
- const je = _({
608
- attributes: {
609
- acceptcharset: "accept-charset",
610
- classname: "class",
611
- htmlfor: "for",
612
- httpequiv: "http-equiv"
613
- },
614
- mustUseProperty: ["checked", "multiple", "muted", "selected"],
615
- properties: {
616
- // Standard Properties.
617
- abbr: null,
618
- accept: V,
619
- acceptCharset: x,
620
- accessKey: x,
621
- action: null,
622
- allow: null,
623
- allowFullScreen: f,
624
- allowPaymentRequest: f,
625
- allowUserMedia: f,
626
- alpha: f,
627
- alt: null,
628
- as: null,
629
- async: f,
630
- autoCapitalize: null,
631
- autoComplete: x,
632
- autoFocus: f,
633
- autoPlay: f,
634
- blocking: x,
635
- capture: null,
636
- charSet: null,
637
- checked: f,
638
- cite: null,
639
- className: x,
640
- closedBy: null,
641
- colorSpace: null,
642
- cols: i,
643
- colSpan: i,
644
- command: null,
645
- commandFor: null,
646
- content: null,
647
- contentEditable: A,
648
- controls: f,
649
- controlsList: x,
650
- coords: i | V,
651
- crossOrigin: null,
652
- data: null,
653
- dateTime: null,
654
- decoding: null,
655
- default: f,
656
- defer: f,
657
- dir: null,
658
- dirName: null,
659
- disabled: f,
660
- download: pn,
661
- draggable: A,
662
- encType: null,
663
- enterKeyHint: null,
664
- fetchPriority: null,
665
- form: null,
666
- formAction: null,
667
- formEncType: null,
668
- formMethod: null,
669
- formNoValidate: f,
670
- formTarget: null,
671
- headers: x,
672
- height: i,
673
- hidden: pn,
674
- high: i,
675
- href: null,
676
- hrefLang: null,
677
- htmlFor: x,
678
- httpEquiv: x,
679
- id: null,
680
- imageSizes: null,
681
- imageSrcSet: null,
682
- inert: f,
683
- inputMode: null,
684
- integrity: null,
685
- is: null,
686
- isMap: f,
687
- itemId: null,
688
- itemProp: x,
689
- itemRef: x,
690
- itemScope: f,
691
- itemType: x,
692
- kind: null,
693
- label: null,
694
- lang: null,
695
- language: null,
696
- list: null,
697
- loading: null,
698
- loop: f,
699
- low: i,
700
- manifest: null,
701
- max: null,
702
- maxLength: i,
703
- media: null,
704
- method: null,
705
- min: null,
706
- minLength: i,
707
- multiple: f,
708
- muted: f,
709
- name: null,
710
- nonce: null,
711
- noModule: f,
712
- noValidate: f,
713
- onAbort: null,
714
- onAfterPrint: null,
715
- onAuxClick: null,
716
- onBeforeMatch: null,
717
- onBeforePrint: null,
718
- onBeforeToggle: null,
719
- onBeforeUnload: null,
720
- onBlur: null,
721
- onCancel: null,
722
- onCanPlay: null,
723
- onCanPlayThrough: null,
724
- onChange: null,
725
- onClick: null,
726
- onClose: null,
727
- onContextLost: null,
728
- onContextMenu: null,
729
- onContextRestored: null,
730
- onCopy: null,
731
- onCueChange: null,
732
- onCut: null,
733
- onDblClick: null,
734
- onDrag: null,
735
- onDragEnd: null,
736
- onDragEnter: null,
737
- onDragExit: null,
738
- onDragLeave: null,
739
- onDragOver: null,
740
- onDragStart: null,
741
- onDrop: null,
742
- onDurationChange: null,
743
- onEmptied: null,
744
- onEnded: null,
745
- onError: null,
746
- onFocus: null,
747
- onFormData: null,
748
- onHashChange: null,
749
- onInput: null,
750
- onInvalid: null,
751
- onKeyDown: null,
752
- onKeyPress: null,
753
- onKeyUp: null,
754
- onLanguageChange: null,
755
- onLoad: null,
756
- onLoadedData: null,
757
- onLoadedMetadata: null,
758
- onLoadEnd: null,
759
- onLoadStart: null,
760
- onMessage: null,
761
- onMessageError: null,
762
- onMouseDown: null,
763
- onMouseEnter: null,
764
- onMouseLeave: null,
765
- onMouseMove: null,
766
- onMouseOut: null,
767
- onMouseOver: null,
768
- onMouseUp: null,
769
- onOffline: null,
770
- onOnline: null,
771
- onPageHide: null,
772
- onPageShow: null,
773
- onPaste: null,
774
- onPause: null,
775
- onPlay: null,
776
- onPlaying: null,
777
- onPopState: null,
778
- onProgress: null,
779
- onRateChange: null,
780
- onRejectionHandled: null,
781
- onReset: null,
782
- onResize: null,
783
- onScroll: null,
784
- onScrollEnd: null,
785
- onSecurityPolicyViolation: null,
786
- onSeeked: null,
787
- onSeeking: null,
788
- onSelect: null,
789
- onSlotChange: null,
790
- onStalled: null,
791
- onStorage: null,
792
- onSubmit: null,
793
- onSuspend: null,
794
- onTimeUpdate: null,
795
- onToggle: null,
796
- onUnhandledRejection: null,
797
- onUnload: null,
798
- onVolumeChange: null,
799
- onWaiting: null,
800
- onWheel: null,
801
- open: f,
802
- optimum: i,
803
- pattern: null,
804
- ping: x,
805
- placeholder: null,
806
- playsInline: f,
807
- popover: null,
808
- popoverTarget: null,
809
- popoverTargetAction: null,
810
- poster: null,
811
- preload: null,
812
- readOnly: f,
813
- referrerPolicy: null,
814
- rel: x,
815
- required: f,
816
- reversed: f,
817
- rows: i,
818
- rowSpan: i,
819
- sandbox: x,
820
- scope: null,
821
- scoped: f,
822
- seamless: f,
823
- selected: f,
824
- shadowRootClonable: f,
825
- shadowRootCustomElementRegistry: f,
826
- shadowRootDelegatesFocus: f,
827
- shadowRootMode: null,
828
- shadowRootSerializable: f,
829
- shape: null,
830
- size: i,
831
- sizes: null,
832
- slot: null,
833
- span: i,
834
- spellCheck: A,
835
- src: null,
836
- srcDoc: null,
837
- srcLang: null,
838
- srcSet: null,
839
- start: i,
840
- step: null,
841
- style: null,
842
- tabIndex: i,
843
- target: null,
844
- title: null,
845
- translate: null,
846
- type: null,
847
- typeMustMatch: f,
848
- useMap: null,
849
- value: A,
850
- width: i,
851
- wrap: null,
852
- writingSuggestions: null,
853
- // Legacy.
854
- // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
855
- align: null,
856
- // Several. Use CSS `text-align` instead,
857
- aLink: null,
858
- // `<body>`. Use CSS `a:active {color}` instead
859
- archive: x,
860
- // `<object>`. List of URIs to archives
861
- axis: null,
862
- // `<td>` and `<th>`. Use `scope` on `<th>`
863
- background: null,
864
- // `<body>`. Use CSS `background-image` instead
865
- bgColor: null,
866
- // `<body>` and table elements. Use CSS `background-color` instead
867
- border: i,
868
- // `<table>`. Use CSS `border-width` instead,
869
- borderColor: null,
870
- // `<table>`. Use CSS `border-color` instead,
871
- bottomMargin: i,
872
- // `<body>`
873
- cellPadding: null,
874
- // `<table>`
875
- cellSpacing: null,
876
- // `<table>`
877
- char: null,
878
- // Several table elements. When `align=char`, sets the character to align on
879
- charOff: null,
880
- // Several table elements. When `char`, offsets the alignment
881
- classId: null,
882
- // `<object>`
883
- clear: null,
884
- // `<br>`. Use CSS `clear` instead
885
- code: null,
886
- // `<object>`
887
- codeBase: null,
888
- // `<object>`
889
- codeType: null,
890
- // `<object>`
891
- color: null,
892
- // `<font>` and `<hr>`. Use CSS instead
893
- compact: f,
894
- // Lists. Use CSS to reduce space between items instead
895
- declare: f,
896
- // `<object>`
897
- event: null,
898
- // `<script>`
899
- face: null,
900
- // `<font>`. Use CSS instead
901
- frame: null,
902
- // `<table>`
903
- frameBorder: null,
904
- // `<iframe>`. Use CSS `border` instead
905
- hSpace: i,
906
- // `<img>` and `<object>`
907
- leftMargin: i,
908
- // `<body>`
909
- link: null,
910
- // `<body>`. Use CSS `a:link {color: *}` instead
911
- longDesc: null,
912
- // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
913
- lowSrc: null,
914
- // `<img>`. Use a `<picture>`
915
- marginHeight: i,
916
- // `<body>`
917
- marginWidth: i,
918
- // `<body>`
919
- noResize: f,
920
- // `<frame>`
921
- noHref: f,
922
- // `<area>`. Use no href instead of an explicit `nohref`
923
- noShade: f,
924
- // `<hr>`. Use background-color and height instead of borders
925
- noWrap: f,
926
- // `<td>` and `<th>`
927
- object: null,
928
- // `<applet>`
929
- profile: null,
930
- // `<head>`
931
- prompt: null,
932
- // `<isindex>`
933
- rev: null,
934
- // `<link>`
935
- rightMargin: i,
936
- // `<body>`
937
- rules: null,
938
- // `<table>`
939
- scheme: null,
940
- // `<meta>`
941
- scrolling: A,
942
- // `<frame>`. Use overflow in the child context
943
- standby: null,
944
- // `<object>`
945
- summary: null,
946
- // `<table>`
947
- text: null,
948
- // `<body>`. Use CSS `color` instead
949
- topMargin: i,
950
- // `<body>`
951
- valueType: null,
952
- // `<param>`
953
- version: null,
954
- // `<html>`. Use a doctype.
955
- vAlign: null,
956
- // Several. Use CSS `vertical-align` instead
957
- vLink: null,
958
- // `<body>`. Use CSS `a:visited {color}` instead
959
- vSpace: i,
960
- // `<img>` and `<object>`
961
- // Non-standard Properties.
962
- allowTransparency: null,
963
- autoCorrect: null,
964
- autoSave: null,
965
- credentialless: f,
966
- disablePictureInPicture: f,
967
- disableRemotePlayback: f,
968
- exportParts: V,
969
- part: x,
970
- prefix: null,
971
- property: null,
972
- results: i,
973
- security: null,
974
- unselectable: null
975
- },
976
- space: "html",
977
- transform: Yn
978
- }), Ie = _({
979
- attributes: {
980
- accentHeight: "accent-height",
981
- alignmentBaseline: "alignment-baseline",
982
- arabicForm: "arabic-form",
983
- baselineShift: "baseline-shift",
984
- capHeight: "cap-height",
985
- className: "class",
986
- clipPath: "clip-path",
987
- clipRule: "clip-rule",
988
- colorInterpolation: "color-interpolation",
989
- colorInterpolationFilters: "color-interpolation-filters",
990
- colorProfile: "color-profile",
991
- colorRendering: "color-rendering",
992
- crossOrigin: "crossorigin",
993
- dataType: "datatype",
994
- dominantBaseline: "dominant-baseline",
995
- enableBackground: "enable-background",
996
- fillOpacity: "fill-opacity",
997
- fillRule: "fill-rule",
998
- floodColor: "flood-color",
999
- floodOpacity: "flood-opacity",
1000
- fontFamily: "font-family",
1001
- fontSize: "font-size",
1002
- fontSizeAdjust: "font-size-adjust",
1003
- fontStretch: "font-stretch",
1004
- fontStyle: "font-style",
1005
- fontVariant: "font-variant",
1006
- fontWeight: "font-weight",
1007
- glyphName: "glyph-name",
1008
- glyphOrientationHorizontal: "glyph-orientation-horizontal",
1009
- glyphOrientationVertical: "glyph-orientation-vertical",
1010
- hrefLang: "hreflang",
1011
- horizAdvX: "horiz-adv-x",
1012
- horizOriginX: "horiz-origin-x",
1013
- horizOriginY: "horiz-origin-y",
1014
- imageRendering: "image-rendering",
1015
- letterSpacing: "letter-spacing",
1016
- lightingColor: "lighting-color",
1017
- markerEnd: "marker-end",
1018
- markerMid: "marker-mid",
1019
- markerStart: "marker-start",
1020
- maskType: "mask-type",
1021
- navDown: "nav-down",
1022
- navDownLeft: "nav-down-left",
1023
- navDownRight: "nav-down-right",
1024
- navLeft: "nav-left",
1025
- navNext: "nav-next",
1026
- navPrev: "nav-prev",
1027
- navRight: "nav-right",
1028
- navUp: "nav-up",
1029
- navUpLeft: "nav-up-left",
1030
- navUpRight: "nav-up-right",
1031
- onAbort: "onabort",
1032
- onActivate: "onactivate",
1033
- onAfterPrint: "onafterprint",
1034
- onBeforePrint: "onbeforeprint",
1035
- onBegin: "onbegin",
1036
- onCancel: "oncancel",
1037
- onCanPlay: "oncanplay",
1038
- onCanPlayThrough: "oncanplaythrough",
1039
- onChange: "onchange",
1040
- onClick: "onclick",
1041
- onClose: "onclose",
1042
- onCopy: "oncopy",
1043
- onCueChange: "oncuechange",
1044
- onCut: "oncut",
1045
- onDblClick: "ondblclick",
1046
- onDrag: "ondrag",
1047
- onDragEnd: "ondragend",
1048
- onDragEnter: "ondragenter",
1049
- onDragExit: "ondragexit",
1050
- onDragLeave: "ondragleave",
1051
- onDragOver: "ondragover",
1052
- onDragStart: "ondragstart",
1053
- onDrop: "ondrop",
1054
- onDurationChange: "ondurationchange",
1055
- onEmptied: "onemptied",
1056
- onEnd: "onend",
1057
- onEnded: "onended",
1058
- onError: "onerror",
1059
- onFocus: "onfocus",
1060
- onFocusIn: "onfocusin",
1061
- onFocusOut: "onfocusout",
1062
- onHashChange: "onhashchange",
1063
- onInput: "oninput",
1064
- onInvalid: "oninvalid",
1065
- onKeyDown: "onkeydown",
1066
- onKeyPress: "onkeypress",
1067
- onKeyUp: "onkeyup",
1068
- onLoad: "onload",
1069
- onLoadedData: "onloadeddata",
1070
- onLoadedMetadata: "onloadedmetadata",
1071
- onLoadStart: "onloadstart",
1072
- onMessage: "onmessage",
1073
- onMouseDown: "onmousedown",
1074
- onMouseEnter: "onmouseenter",
1075
- onMouseLeave: "onmouseleave",
1076
- onMouseMove: "onmousemove",
1077
- onMouseOut: "onmouseout",
1078
- onMouseOver: "onmouseover",
1079
- onMouseUp: "onmouseup",
1080
- onMouseWheel: "onmousewheel",
1081
- onOffline: "onoffline",
1082
- onOnline: "ononline",
1083
- onPageHide: "onpagehide",
1084
- onPageShow: "onpageshow",
1085
- onPaste: "onpaste",
1086
- onPause: "onpause",
1087
- onPlay: "onplay",
1088
- onPlaying: "onplaying",
1089
- onPopState: "onpopstate",
1090
- onProgress: "onprogress",
1091
- onRateChange: "onratechange",
1092
- onRepeat: "onrepeat",
1093
- onReset: "onreset",
1094
- onResize: "onresize",
1095
- onScroll: "onscroll",
1096
- onSeeked: "onseeked",
1097
- onSeeking: "onseeking",
1098
- onSelect: "onselect",
1099
- onShow: "onshow",
1100
- onStalled: "onstalled",
1101
- onStorage: "onstorage",
1102
- onSubmit: "onsubmit",
1103
- onSuspend: "onsuspend",
1104
- onTimeUpdate: "ontimeupdate",
1105
- onToggle: "ontoggle",
1106
- onUnload: "onunload",
1107
- onVolumeChange: "onvolumechange",
1108
- onWaiting: "onwaiting",
1109
- onZoom: "onzoom",
1110
- overlinePosition: "overline-position",
1111
- overlineThickness: "overline-thickness",
1112
- paintOrder: "paint-order",
1113
- panose1: "panose-1",
1114
- pointerEvents: "pointer-events",
1115
- referrerPolicy: "referrerpolicy",
1116
- renderingIntent: "rendering-intent",
1117
- shapeRendering: "shape-rendering",
1118
- stopColor: "stop-color",
1119
- stopOpacity: "stop-opacity",
1120
- strikethroughPosition: "strikethrough-position",
1121
- strikethroughThickness: "strikethrough-thickness",
1122
- strokeDashArray: "stroke-dasharray",
1123
- strokeDashOffset: "stroke-dashoffset",
1124
- strokeLineCap: "stroke-linecap",
1125
- strokeLineJoin: "stroke-linejoin",
1126
- strokeMiterLimit: "stroke-miterlimit",
1127
- strokeOpacity: "stroke-opacity",
1128
- strokeWidth: "stroke-width",
1129
- tabIndex: "tabindex",
1130
- textAnchor: "text-anchor",
1131
- textDecoration: "text-decoration",
1132
- textRendering: "text-rendering",
1133
- transformOrigin: "transform-origin",
1134
- typeOf: "typeof",
1135
- underlinePosition: "underline-position",
1136
- underlineThickness: "underline-thickness",
1137
- unicodeBidi: "unicode-bidi",
1138
- unicodeRange: "unicode-range",
1139
- unitsPerEm: "units-per-em",
1140
- vAlphabetic: "v-alphabetic",
1141
- vHanging: "v-hanging",
1142
- vIdeographic: "v-ideographic",
1143
- vMathematical: "v-mathematical",
1144
- vectorEffect: "vector-effect",
1145
- vertAdvY: "vert-adv-y",
1146
- vertOriginX: "vert-origin-x",
1147
- vertOriginY: "vert-origin-y",
1148
- wordSpacing: "word-spacing",
1149
- writingMode: "writing-mode",
1150
- xHeight: "x-height",
1151
- // These were camelcased in Tiny. Now lowercased in SVG 2
1152
- playbackOrder: "playbackorder",
1153
- timelineBegin: "timelinebegin"
1154
- },
1155
- properties: {
1156
- about: z,
1157
- accentHeight: i,
1158
- accumulate: null,
1159
- additive: null,
1160
- alignmentBaseline: null,
1161
- alphabetic: i,
1162
- amplitude: i,
1163
- arabicForm: null,
1164
- ascent: i,
1165
- attributeName: null,
1166
- attributeType: null,
1167
- azimuth: i,
1168
- bandwidth: null,
1169
- baselineShift: null,
1170
- baseFrequency: null,
1171
- baseProfile: null,
1172
- bbox: null,
1173
- begin: null,
1174
- bias: i,
1175
- by: null,
1176
- calcMode: null,
1177
- capHeight: i,
1178
- className: x,
1179
- clip: null,
1180
- clipPath: null,
1181
- clipPathUnits: null,
1182
- clipRule: null,
1183
- color: null,
1184
- colorInterpolation: null,
1185
- colorInterpolationFilters: null,
1186
- colorProfile: null,
1187
- colorRendering: null,
1188
- content: null,
1189
- contentScriptType: null,
1190
- contentStyleType: null,
1191
- crossOrigin: null,
1192
- cursor: null,
1193
- cx: null,
1194
- cy: null,
1195
- d: null,
1196
- dataType: null,
1197
- defaultAction: null,
1198
- descent: i,
1199
- diffuseConstant: i,
1200
- direction: null,
1201
- display: null,
1202
- dur: null,
1203
- divisor: i,
1204
- dominantBaseline: null,
1205
- download: f,
1206
- dx: null,
1207
- dy: null,
1208
- edgeMode: null,
1209
- editable: null,
1210
- elevation: i,
1211
- enableBackground: null,
1212
- end: null,
1213
- event: null,
1214
- exponent: i,
1215
- externalResourcesRequired: null,
1216
- fill: null,
1217
- fillOpacity: i,
1218
- fillRule: null,
1219
- filter: null,
1220
- filterRes: null,
1221
- filterUnits: null,
1222
- floodColor: null,
1223
- floodOpacity: null,
1224
- focusable: null,
1225
- focusHighlight: null,
1226
- fontFamily: null,
1227
- fontSize: null,
1228
- fontSizeAdjust: null,
1229
- fontStretch: null,
1230
- fontStyle: null,
1231
- fontVariant: null,
1232
- fontWeight: null,
1233
- format: null,
1234
- fr: null,
1235
- from: null,
1236
- fx: null,
1237
- fy: null,
1238
- g1: V,
1239
- g2: V,
1240
- glyphName: V,
1241
- glyphOrientationHorizontal: null,
1242
- glyphOrientationVertical: null,
1243
- glyphRef: null,
1244
- gradientTransform: null,
1245
- gradientUnits: null,
1246
- handler: null,
1247
- hanging: i,
1248
- hatchContentUnits: null,
1249
- hatchUnits: null,
1250
- height: null,
1251
- href: null,
1252
- hrefLang: null,
1253
- horizAdvX: i,
1254
- horizOriginX: i,
1255
- horizOriginY: i,
1256
- id: null,
1257
- ideographic: i,
1258
- imageRendering: null,
1259
- initialVisibility: null,
1260
- in: null,
1261
- in2: null,
1262
- intercept: i,
1263
- k: i,
1264
- k1: i,
1265
- k2: i,
1266
- k3: i,
1267
- k4: i,
1268
- kernelMatrix: z,
1269
- kernelUnitLength: null,
1270
- keyPoints: null,
1271
- // SEMI_COLON_SEPARATED
1272
- keySplines: null,
1273
- // SEMI_COLON_SEPARATED
1274
- keyTimes: null,
1275
- // SEMI_COLON_SEPARATED
1276
- kerning: null,
1277
- lang: null,
1278
- lengthAdjust: null,
1279
- letterSpacing: null,
1280
- lightingColor: null,
1281
- limitingConeAngle: i,
1282
- local: null,
1283
- markerEnd: null,
1284
- markerMid: null,
1285
- markerStart: null,
1286
- markerHeight: null,
1287
- markerUnits: null,
1288
- markerWidth: null,
1289
- mask: null,
1290
- maskContentUnits: null,
1291
- maskType: null,
1292
- maskUnits: null,
1293
- mathematical: null,
1294
- max: null,
1295
- media: null,
1296
- mediaCharacterEncoding: null,
1297
- mediaContentEncodings: null,
1298
- mediaSize: i,
1299
- mediaTime: null,
1300
- method: null,
1301
- min: null,
1302
- mode: null,
1303
- name: null,
1304
- navDown: null,
1305
- navDownLeft: null,
1306
- navDownRight: null,
1307
- navLeft: null,
1308
- navNext: null,
1309
- navPrev: null,
1310
- navRight: null,
1311
- navUp: null,
1312
- navUpLeft: null,
1313
- navUpRight: null,
1314
- numOctaves: null,
1315
- observer: null,
1316
- offset: null,
1317
- onAbort: null,
1318
- onActivate: null,
1319
- onAfterPrint: null,
1320
- onBeforePrint: null,
1321
- onBegin: null,
1322
- onCancel: null,
1323
- onCanPlay: null,
1324
- onCanPlayThrough: null,
1325
- onChange: null,
1326
- onClick: null,
1327
- onClose: null,
1328
- onCopy: null,
1329
- onCueChange: null,
1330
- onCut: null,
1331
- onDblClick: null,
1332
- onDrag: null,
1333
- onDragEnd: null,
1334
- onDragEnter: null,
1335
- onDragExit: null,
1336
- onDragLeave: null,
1337
- onDragOver: null,
1338
- onDragStart: null,
1339
- onDrop: null,
1340
- onDurationChange: null,
1341
- onEmptied: null,
1342
- onEnd: null,
1343
- onEnded: null,
1344
- onError: null,
1345
- onFocus: null,
1346
- onFocusIn: null,
1347
- onFocusOut: null,
1348
- onHashChange: null,
1349
- onInput: null,
1350
- onInvalid: null,
1351
- onKeyDown: null,
1352
- onKeyPress: null,
1353
- onKeyUp: null,
1354
- onLoad: null,
1355
- onLoadedData: null,
1356
- onLoadedMetadata: null,
1357
- onLoadStart: null,
1358
- onMessage: null,
1359
- onMouseDown: null,
1360
- onMouseEnter: null,
1361
- onMouseLeave: null,
1362
- onMouseMove: null,
1363
- onMouseOut: null,
1364
- onMouseOver: null,
1365
- onMouseUp: null,
1366
- onMouseWheel: null,
1367
- onOffline: null,
1368
- onOnline: null,
1369
- onPageHide: null,
1370
- onPageShow: null,
1371
- onPaste: null,
1372
- onPause: null,
1373
- onPlay: null,
1374
- onPlaying: null,
1375
- onPopState: null,
1376
- onProgress: null,
1377
- onRateChange: null,
1378
- onRepeat: null,
1379
- onReset: null,
1380
- onResize: null,
1381
- onScroll: null,
1382
- onSeeked: null,
1383
- onSeeking: null,
1384
- onSelect: null,
1385
- onShow: null,
1386
- onStalled: null,
1387
- onStorage: null,
1388
- onSubmit: null,
1389
- onSuspend: null,
1390
- onTimeUpdate: null,
1391
- onToggle: null,
1392
- onUnload: null,
1393
- onVolumeChange: null,
1394
- onWaiting: null,
1395
- onZoom: null,
1396
- opacity: null,
1397
- operator: null,
1398
- order: null,
1399
- orient: null,
1400
- orientation: null,
1401
- origin: null,
1402
- overflow: null,
1403
- overlay: null,
1404
- overlinePosition: i,
1405
- overlineThickness: i,
1406
- paintOrder: null,
1407
- panose1: null,
1408
- path: null,
1409
- pathLength: i,
1410
- patternContentUnits: null,
1411
- patternTransform: null,
1412
- patternUnits: null,
1413
- phase: null,
1414
- ping: x,
1415
- pitch: null,
1416
- playbackOrder: null,
1417
- pointerEvents: null,
1418
- points: null,
1419
- pointsAtX: i,
1420
- pointsAtY: i,
1421
- pointsAtZ: i,
1422
- preserveAlpha: null,
1423
- preserveAspectRatio: null,
1424
- primitiveUnits: null,
1425
- propagate: null,
1426
- property: z,
1427
- r: null,
1428
- radius: null,
1429
- referrerPolicy: null,
1430
- refX: null,
1431
- refY: null,
1432
- rel: z,
1433
- rev: z,
1434
- renderingIntent: null,
1435
- repeatCount: null,
1436
- repeatDur: null,
1437
- requiredExtensions: z,
1438
- requiredFeatures: z,
1439
- requiredFonts: z,
1440
- requiredFormats: z,
1441
- resource: null,
1442
- restart: null,
1443
- result: null,
1444
- rotate: null,
1445
- rx: null,
1446
- ry: null,
1447
- scale: null,
1448
- seed: null,
1449
- shapeRendering: null,
1450
- side: null,
1451
- slope: null,
1452
- snapshotTime: null,
1453
- specularConstant: i,
1454
- specularExponent: i,
1455
- spreadMethod: null,
1456
- spacing: null,
1457
- startOffset: null,
1458
- stdDeviation: null,
1459
- stemh: null,
1460
- stemv: null,
1461
- stitchTiles: null,
1462
- stopColor: null,
1463
- stopOpacity: null,
1464
- strikethroughPosition: i,
1465
- strikethroughThickness: i,
1466
- string: null,
1467
- stroke: null,
1468
- strokeDashArray: z,
1469
- strokeDashOffset: null,
1470
- strokeLineCap: null,
1471
- strokeLineJoin: null,
1472
- strokeMiterLimit: i,
1473
- strokeOpacity: i,
1474
- strokeWidth: null,
1475
- style: null,
1476
- surfaceScale: i,
1477
- syncBehavior: null,
1478
- syncBehaviorDefault: null,
1479
- syncMaster: null,
1480
- syncTolerance: null,
1481
- syncToleranceDefault: null,
1482
- systemLanguage: z,
1483
- tabIndex: i,
1484
- tableValues: null,
1485
- target: null,
1486
- targetX: i,
1487
- targetY: i,
1488
- textAnchor: null,
1489
- textDecoration: null,
1490
- textRendering: null,
1491
- textLength: null,
1492
- timelineBegin: null,
1493
- title: null,
1494
- transformBehavior: null,
1495
- type: null,
1496
- typeOf: z,
1497
- to: null,
1498
- transform: null,
1499
- transformOrigin: null,
1500
- u1: null,
1501
- u2: null,
1502
- underlinePosition: i,
1503
- underlineThickness: i,
1504
- unicode: null,
1505
- unicodeBidi: null,
1506
- unicodeRange: null,
1507
- unitsPerEm: i,
1508
- values: null,
1509
- vAlphabetic: i,
1510
- vMathematical: i,
1511
- vectorEffect: null,
1512
- vHanging: i,
1513
- vIdeographic: i,
1514
- version: null,
1515
- vertAdvY: i,
1516
- vertOriginX: i,
1517
- vertOriginY: i,
1518
- viewBox: null,
1519
- viewTarget: null,
1520
- visibility: null,
1521
- width: null,
1522
- widths: null,
1523
- wordSpacing: null,
1524
- writingMode: null,
1525
- x: null,
1526
- x1: null,
1527
- x2: null,
1528
- xChannelSelector: null,
1529
- xHeight: i,
1530
- y: null,
1531
- y1: null,
1532
- y2: null,
1533
- yChannelSelector: null,
1534
- z: null,
1535
- zoomAndPan: null
1536
- },
1537
- space: "svg",
1538
- transform: _n
1539
- }), Xn = _({
1540
- properties: {
1541
- xLinkActuate: null,
1542
- xLinkArcRole: null,
1543
- xLinkHref: null,
1544
- xLinkRole: null,
1545
- xLinkShow: null,
1546
- xLinkTitle: null,
1547
- xLinkType: null
1548
- },
1549
- space: "xlink",
1550
- transform(n, e) {
1551
- return "xlink:" + e.slice(5).toLowerCase();
1552
- }
1553
- }), Zn = _({
1554
- attributes: { xmlnsxlink: "xmlns:xlink" },
1555
- properties: { xmlnsXLink: null, xmlns: null },
1556
- space: "xmlns",
1557
- transform: Yn
1558
- }), Jn = _({
1559
- properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
1560
- space: "xml",
1561
- transform(n, e) {
1562
- return "xml:" + e.slice(3).toLowerCase();
1563
- }
1564
- }), Ue = /[A-Z]/g, Tn = /-[a-z]/g, ze = /^data[-\w.:]+$/i;
1565
- function Be(n, e) {
1566
- const t = J(e);
1567
- let l = e, o = I;
1568
- if (t in n.normal)
1569
- return n.property[n.normal[t]];
1570
- if (t.length > 4 && t.slice(0, 4) === "data" && ze.test(e)) {
1571
- if (e.charAt(4) === "-") {
1572
- const a = e.slice(5).replace(Tn, $e);
1573
- l = "data" + a.charAt(0).toUpperCase() + a.slice(1);
1574
- } else {
1575
- const a = e.slice(4);
1576
- if (!Tn.test(a)) {
1577
- let r = a.replace(Ue, He);
1578
- r.charAt(0) !== "-" && (r = "-" + r), e = "data" + r;
1579
- }
1580
- }
1581
- o = bn;
1582
- }
1583
- return new o(l, e);
1584
- }
1585
- function He(n) {
1586
- return "-" + n.toLowerCase();
1587
- }
1588
- function $e(n) {
1589
- return n.charAt(1).toUpperCase();
1590
- }
1591
- const Fe = Gn([Kn, je, Xn, Zn, Jn], "html"), We = Gn([Kn, Ie, Xn, Zn, Jn], "svg");
1592
- function Dn(n) {
1593
- const e = [], t = String(n || "");
1594
- let l = t.indexOf(","), o = 0, a = !1;
1595
- for (; !a; ) {
1596
- l === -1 && (l = t.length, a = !0);
1597
- const r = t.slice(o, l).trim();
1598
- (r || !a) && e.push(r), o = l + 1, l = t.indexOf(",", o);
1599
- }
1600
- return e;
1601
- }
1602
- const Mn = /[#.]/g;
1603
- function Ve(n, e) {
1604
- const t = n || "", l = {};
1605
- let o = 0, a, r;
1606
- for (; o < t.length; ) {
1607
- Mn.lastIndex = o;
1608
- const c = Mn.exec(t), u = t.slice(o, c ? c.index : t.length);
1609
- u && (a ? a === "#" ? l.id = u : Array.isArray(l.className) ? l.className.push(u) : l.className = [u] : r = u, o += u.length), c && (a = c[0], o++);
1610
- }
1611
- return {
1612
- type: "element",
1613
- // @ts-expect-error: tag name is parsed.
1614
- tagName: r || e || "div",
1615
- properties: l,
1616
- children: []
1617
- };
1618
- }
1619
- function Rn(n) {
1620
- const e = String(n || "").trim();
1621
- return e ? e.split(/[ \t\n\r\f]+/g) : [];
1622
- }
1623
- function Qn(n, e, t) {
1624
- const l = t ? _e(t) : void 0;
1625
- function o(a, r, ...c) {
1626
- let u;
1627
- if (a == null) {
1628
- u = { type: "root", children: [] };
1629
- const s = (
1630
- /** @type {Child} */
1631
- r
1632
- );
1633
- c.unshift(s);
1634
- } else {
1635
- u = Ve(a, e);
1636
- const s = u.tagName.toLowerCase(), m = l ? l.get(s) : void 0;
1637
- if (u.tagName = m || s, qe(r))
1638
- c.unshift(r);
1639
- else
1640
- for (const [v, b] of Object.entries(r))
1641
- Ge(n, u.properties, v, b);
1642
- }
1643
- for (const s of c)
1644
- mn(u.children, s);
1645
- return u.type === "element" && u.tagName === "template" && (u.content = { type: "root", children: u.children }, u.children = []), u;
1646
- }
1647
- return o;
1648
- }
1649
- function qe(n) {
1650
- if (n === null || typeof n != "object" || Array.isArray(n))
1651
- return !0;
1652
- if (typeof n.type != "string") return !1;
1653
- const e = (
1654
- /** @type {Record<string, unknown>} */
1655
- n
1656
- ), t = Object.keys(n);
1657
- for (const l of t) {
1658
- const o = e[l];
1659
- if (o && typeof o == "object") {
1660
- if (!Array.isArray(o)) return !0;
1661
- const a = (
1662
- /** @type {ReadonlyArray<unknown>} */
1663
- o
1664
- );
1665
- for (const r of a)
1666
- if (typeof r != "number" && typeof r != "string")
1667
- return !0;
1668
- }
1669
- }
1670
- return !!("children" in n && Array.isArray(n.children));
1671
- }
1672
- function Ge(n, e, t, l) {
1673
- const o = Be(n, t);
1674
- let a;
1675
- if (l != null) {
1676
- if (typeof l == "number") {
1677
- if (Number.isNaN(l)) return;
1678
- a = l;
1679
- } else typeof l == "boolean" ? a = l : typeof l == "string" ? o.spaceSeparated ? a = Rn(l) : o.commaSeparated ? a = Dn(l) : o.commaOrSpaceSeparated ? a = Rn(Dn(l).join(" ")) : a = jn(o, o.property, l) : Array.isArray(l) ? a = [...l] : a = o.property === "style" ? Ke(l) : String(l);
1680
- if (Array.isArray(a)) {
1681
- const r = [];
1682
- for (const c of a)
1683
- r.push(
1684
- /** @type {number | string} */
1685
- jn(o, o.property, c)
1686
- );
1687
- a = r;
1688
- }
1689
- o.property === "className" && Array.isArray(e.className) && (a = e.className.concat(
1690
- /** @type {Array<number | string> | number | string} */
1691
- a
1692
- )), e[o.property] = a;
1693
- }
1694
- }
1695
- function mn(n, e) {
1696
- if (e != null) if (typeof e == "number" || typeof e == "string")
1697
- n.push({ type: "text", value: String(e) });
1698
- else if (Array.isArray(e))
1699
- for (const t of e)
1700
- mn(n, t);
1701
- else if (typeof e == "object" && "type" in e)
1702
- e.type === "root" ? mn(n, e.children) : n.push(e);
1703
- else
1704
- throw new Error("Expected node, nodes, or string, got `" + e + "`");
1705
- }
1706
- function jn(n, e, t) {
1707
- if (typeof t == "string") {
1708
- if (n.number && t && !Number.isNaN(Number(t)))
1709
- return Number(t);
1710
- if ((n.boolean || n.overloadedBoolean) && (t === "" || J(t) === J(e)))
1711
- return !0;
1712
- }
1713
- return t;
1714
- }
1715
- function Ke(n) {
1716
- const e = [];
1717
- for (const [t, l] of Object.entries(n))
1718
- e.push([t, l].join(": "));
1719
- return e.join("; ");
1720
- }
1721
- function _e(n) {
1722
- const e = /* @__PURE__ */ new Map();
1723
- for (const t of n)
1724
- e.set(t.toLowerCase(), t);
1725
- return e;
1726
- }
1727
- const Ye = [
1728
- "altGlyph",
1729
- "altGlyphDef",
1730
- "altGlyphItem",
1731
- "animateColor",
1732
- "animateMotion",
1733
- "animateTransform",
1734
- "clipPath",
1735
- "feBlend",
1736
- "feColorMatrix",
1737
- "feComponentTransfer",
1738
- "feComposite",
1739
- "feConvolveMatrix",
1740
- "feDiffuseLighting",
1741
- "feDisplacementMap",
1742
- "feDistantLight",
1743
- "feDropShadow",
1744
- "feFlood",
1745
- "feFuncA",
1746
- "feFuncB",
1747
- "feFuncG",
1748
- "feFuncR",
1749
- "feGaussianBlur",
1750
- "feImage",
1751
- "feMerge",
1752
- "feMergeNode",
1753
- "feMorphology",
1754
- "feOffset",
1755
- "fePointLight",
1756
- "feSpecularLighting",
1757
- "feSpotLight",
1758
- "feTile",
1759
- "feTurbulence",
1760
- "foreignObject",
1761
- "glyphRef",
1762
- "linearGradient",
1763
- "radialGradient",
1764
- "solidColor",
1765
- "textArea",
1766
- "textPath"
1767
- ], Xe = Qn(Fe, "div");
1768
- Qn(We, "g", Ye);
1769
- const Ze = [
1770
- "AElig",
1771
- "AMP",
1772
- "Aacute",
1773
- "Acirc",
1774
- "Agrave",
1775
- "Aring",
1776
- "Atilde",
1777
- "Auml",
1778
- "COPY",
1779
- "Ccedil",
1780
- "ETH",
1781
- "Eacute",
1782
- "Ecirc",
1783
- "Egrave",
1784
- "Euml",
1785
- "GT",
1786
- "Iacute",
1787
- "Icirc",
1788
- "Igrave",
1789
- "Iuml",
1790
- "LT",
1791
- "Ntilde",
1792
- "Oacute",
1793
- "Ocirc",
1794
- "Ograve",
1795
- "Oslash",
1796
- "Otilde",
1797
- "Ouml",
1798
- "QUOT",
1799
- "REG",
1800
- "THORN",
1801
- "Uacute",
1802
- "Ucirc",
1803
- "Ugrave",
1804
- "Uuml",
1805
- "Yacute",
1806
- "aacute",
1807
- "acirc",
1808
- "acute",
1809
- "aelig",
1810
- "agrave",
1811
- "amp",
1812
- "aring",
1813
- "atilde",
1814
- "auml",
1815
- "brvbar",
1816
- "ccedil",
1817
- "cedil",
1818
- "cent",
1819
- "copy",
1820
- "curren",
1821
- "deg",
1822
- "divide",
1823
- "eacute",
1824
- "ecirc",
1825
- "egrave",
1826
- "eth",
1827
- "euml",
1828
- "frac12",
1829
- "frac14",
1830
- "frac34",
1831
- "gt",
1832
- "iacute",
1833
- "icirc",
1834
- "iexcl",
1835
- "igrave",
1836
- "iquest",
1837
- "iuml",
1838
- "laquo",
1839
- "lt",
1840
- "macr",
1841
- "micro",
1842
- "middot",
1843
- "nbsp",
1844
- "not",
1845
- "ntilde",
1846
- "oacute",
1847
- "ocirc",
1848
- "ograve",
1849
- "ordf",
1850
- "ordm",
1851
- "oslash",
1852
- "otilde",
1853
- "ouml",
1854
- "para",
1855
- "plusmn",
1856
- "pound",
1857
- "quot",
1858
- "raquo",
1859
- "reg",
1860
- "sect",
1861
- "shy",
1862
- "sup1",
1863
- "sup2",
1864
- "sup3",
1865
- "szlig",
1866
- "thorn",
1867
- "times",
1868
- "uacute",
1869
- "ucirc",
1870
- "ugrave",
1871
- "uml",
1872
- "uuml",
1873
- "yacute",
1874
- "yen",
1875
- "yuml"
1876
- ], In = {
1877
- 0: "�",
1878
- 128: "€",
1879
- 130: "‚",
1880
- 131: "ƒ",
1881
- 132: "„",
1882
- 133: "…",
1883
- 134: "†",
1884
- 135: "‡",
1885
- 136: "ˆ",
1886
- 137: "‰",
1887
- 138: "Š",
1888
- 139: "‹",
1889
- 140: "Œ",
1890
- 142: "Ž",
1891
- 145: "‘",
1892
- 146: "’",
1893
- 147: "“",
1894
- 148: "”",
1895
- 149: "•",
1896
- 150: "–",
1897
- 151: "—",
1898
- 152: "˜",
1899
- 153: "™",
1900
- 154: "š",
1901
- 155: "›",
1902
- 156: "œ",
1903
- 158: "ž",
1904
- 159: "Ÿ"
1905
- };
1906
- function ne(n) {
1907
- const e = typeof n == "string" ? n.charCodeAt(0) : n;
1908
- return e >= 48 && e <= 57;
1909
- }
1910
- function Je(n) {
1911
- const e = typeof n == "string" ? n.charCodeAt(0) : n;
1912
- return e >= 97 && e <= 102 || e >= 65 && e <= 70 || e >= 48 && e <= 57;
1913
- }
1914
- function Qe(n) {
1915
- const e = typeof n == "string" ? n.charCodeAt(0) : n;
1916
- return e >= 97 && e <= 122 || e >= 65 && e <= 90;
1917
- }
1918
- function Un(n) {
1919
- return Qe(n) || ne(n);
1920
- }
1921
- const zn = document.createElement("i");
1922
- function Bn(n) {
1923
- const e = "&" + n + ";";
1924
- zn.innerHTML = e;
1925
- const t = zn.textContent;
1926
- return t.charCodeAt(t.length - 1) === 59 && n !== "semi" || t === e ? !1 : t;
1927
- }
1928
- const nt = [
1929
- "",
1930
- /* 1: Non terminated (named) */
1931
- "Named character references must be terminated by a semicolon",
1932
- /* 2: Non terminated (numeric) */
1933
- "Numeric character references must be terminated by a semicolon",
1934
- /* 3: Empty (named) */
1935
- "Named character references cannot be empty",
1936
- /* 4: Empty (numeric) */
1937
- "Numeric character references cannot be empty",
1938
- /* 5: Unknown (named) */
1939
- "Named character references must be known",
1940
- /* 6: Disallowed (numeric) */
1941
- "Numeric character references cannot be disallowed",
1942
- /* 7: Prohibited (numeric) */
1943
- "Numeric character references cannot be outside the permissible Unicode range"
1944
- ];
1945
- function et(n, e) {
1946
- const t = {}, l = typeof t.additional == "string" ? t.additional.charCodeAt(0) : t.additional, o = [];
1947
- let a = 0, r = -1, c = "", u, s;
1948
- t.position && ("start" in t.position || "indent" in t.position ? (s = t.position.indent, u = t.position.start) : u = t.position);
1949
- let m = (u ? u.line : 0) || 1, v = (u ? u.column : 0) || 1, b = O(), g;
1950
- for (a--; ++a <= n.length; )
1951
- if (g === 10 && (v = (s ? s[r] : 0) || 1), g = n.charCodeAt(a), g === 38) {
1952
- const p = n.charCodeAt(a + 1);
1953
- if (p === 9 || p === 10 || p === 12 || p === 32 || p === 38 || p === 60 || Number.isNaN(p) || l && p === l) {
1954
- c += String.fromCharCode(g), v++;
1955
- continue;
1956
- }
1957
- const k = a + 1;
1958
- let P = k, h = k, S;
1959
- if (p === 35) {
1960
- h = ++P;
1961
- const d = n.charCodeAt(h);
1962
- d === 88 || d === 120 ? (S = "hexadecimal", h = ++P) : S = "decimal";
1963
- } else
1964
- S = "named";
1965
- let y = "", C = "", L = "";
1966
- const U = S === "named" ? Un : S === "decimal" ? ne : Je;
1967
- for (h--; ++h <= n.length; ) {
1968
- const d = n.charCodeAt(h);
1969
- if (!U(d))
1970
- break;
1971
- L += String.fromCharCode(d), S === "named" && Ze.includes(L) && (y = L, C = Bn(L));
1972
- }
1973
- let R = n.charCodeAt(h) === 59;
1974
- if (R) {
1975
- h++;
1976
- const d = S === "named" ? Bn(L) : !1;
1977
- d && (y = L, C = d);
1978
- }
1979
- let E = 1 + h - k, D = "";
1980
- if (!(!R && t.nonTerminated === !1)) if (!L)
1981
- S !== "named" && N(4, E);
1982
- else if (S === "named") {
1983
- if (R && !C)
1984
- N(5, 1);
1985
- else if (y !== L && (h = P + y.length, E = 1 + h - P, R = !1), !R) {
1986
- const d = y ? 1 : 3;
1987
- if (t.attribute) {
1988
- const j = n.charCodeAt(h);
1989
- j === 61 ? (N(d, E), C = "") : Un(j) ? C = "" : N(d, E);
1990
- } else
1991
- N(d, E);
1992
- }
1993
- D = C;
1994
- } else {
1995
- R || N(2, E);
1996
- let d = Number.parseInt(
1997
- L,
1998
- S === "hexadecimal" ? 16 : 10
1999
- );
2000
- if (tt(d))
2001
- N(7, E), D = "�";
2002
- else if (d in In)
2003
- N(6, E), D = In[d];
2004
- else {
2005
- let j = "";
2006
- lt(d) && N(6, E), d > 65535 && (d -= 65536, j += String.fromCharCode(
2007
- d >>> 10 | 55296
2008
- ), d = 56320 | d & 1023), D = j + String.fromCharCode(d);
2009
- }
2010
- }
2011
- if (D) {
2012
- w(), b = O(), a = h - 1, v += h - k + 1, o.push(D);
2013
- const d = O();
2014
- d.offset++, t.reference && t.reference.call(
2015
- t.referenceContext || void 0,
2016
- D,
2017
- { start: b, end: d },
2018
- n.slice(k - 1, h)
2019
- ), b = d;
2020
- } else
2021
- L = n.slice(k - 1, h), c += L, v += L.length, a = h - 1;
2022
- } else
2023
- g === 10 && (m++, r++, v = 0), Number.isNaN(g) ? w() : (c += String.fromCharCode(g), v++);
2024
- return o.join("");
2025
- function O() {
2026
- return {
2027
- line: m,
2028
- column: v,
2029
- offset: a + ((u ? u.offset : 0) || 0)
2030
- };
2031
- }
2032
- function N(p, k) {
2033
- let P;
2034
- t.warning && (P = O(), P.column += k, P.offset += k, t.warning.call(
2035
- t.warningContext || void 0,
2036
- nt[p],
2037
- P,
2038
- p
2039
- ));
2040
- }
2041
- function w() {
2042
- c && (o.push(c), t.text && t.text.call(t.textContext || void 0, c, {
2043
- start: b,
2044
- end: O()
2045
- }), c = "");
2046
- }
2047
- }
2048
- function tt(n) {
2049
- return n >= 55296 && n <= 57343 || n > 1114111;
2050
- }
2051
- function lt(n) {
2052
- return n >= 1 && n <= 8 || n === 11 || n >= 13 && n <= 31 || n >= 127 && n <= 159 || n >= 64976 && n <= 65007 || (n & 65535) === 65535 || (n & 65535) === 65534;
2053
- }
2054
- var ot = 0, on = {}, M = {
2055
- /**
2056
- * A namespace for utility methods.
2057
- *
2058
- * All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may
2059
- * change or disappear at any time.
2060
- *
2061
- * @namespace
2062
- * @memberof Prism
2063
- */
2064
- util: {
2065
- /**
2066
- * Returns the name of the type of the given value.
2067
- *
2068
- * @param {any} o
2069
- * @returns {string}
2070
- * @example
2071
- * type(null) === 'Null'
2072
- * type(undefined) === 'Undefined'
2073
- * type(123) === 'Number'
2074
- * type('foo') === 'String'
2075
- * type(true) === 'Boolean'
2076
- * type([1, 2]) === 'Array'
2077
- * type({}) === 'Object'
2078
- * type(String) === 'Function'
2079
- * type(/abc+/) === 'RegExp'
2080
- */
2081
- type: function(n) {
2082
- return Object.prototype.toString.call(n).slice(8, -1);
2083
- },
2084
- /**
2085
- * Returns a unique number for the given object. Later calls will still return the same number.
2086
- *
2087
- * @param {Object} obj
2088
- * @returns {number}
2089
- */
2090
- objId: function(n) {
2091
- return n.__id || Object.defineProperty(n, "__id", { value: ++ot }), n.__id;
2092
- },
2093
- /**
2094
- * Creates a deep clone of the given object.
2095
- *
2096
- * The main intended use of this function is to clone language definitions.
2097
- *
2098
- * @param {T} o
2099
- * @param {Record<number, any>} [visited]
2100
- * @returns {T}
2101
- * @template T
2102
- */
2103
- clone: function n(e, t) {
2104
- t = t || {};
2105
- var l, o;
2106
- switch (M.util.type(e)) {
2107
- case "Object":
2108
- if (o = M.util.objId(e), t[o])
2109
- return t[o];
2110
- l = /** @type {Record<string, any>} */
2111
- {}, t[o] = l;
2112
- for (var a in e)
2113
- e.hasOwnProperty(a) && (l[a] = n(e[a], t));
2114
- return (
2115
- /** @type {any} */
2116
- l
2117
- );
2118
- case "Array":
2119
- return o = M.util.objId(e), t[o] ? t[o] : (l = [], t[o] = l, /** @type {any} */
2120
- e.forEach(
2121
- function(r, c) {
2122
- l[c] = n(r, t);
2123
- }
2124
- ), /** @type {any} */
2125
- l);
2126
- default:
2127
- return e;
2128
- }
2129
- }
2130
- },
2131
- /**
2132
- * This namespace contains all currently loaded languages and the some helper functions to create and modify languages.
2133
- *
2134
- * @namespace
2135
- * @memberof Prism
2136
- * @public
2137
- */
2138
- languages: {
2139
- /**
2140
- * The grammar for plain, unformatted text.
2141
- */
2142
- plain: on,
2143
- plaintext: on,
2144
- text: on,
2145
- txt: on,
2146
- /**
2147
- * Creates a deep copy of the language with the given id and appends the given tokens.
2148
- *
2149
- * If a token in `redef` also appears in the copied language, then the existing token in the copied language
2150
- * will be overwritten at its original position.
2151
- *
2152
- * ## Best practices
2153
- *
2154
- * Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)
2155
- * doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to
2156
- * understand the language definition because, normally, the order of tokens matters in Prism grammars.
2157
- *
2158
- * Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.
2159
- * Furthermore, all non-overwriting tokens should be placed after the overwriting ones.
2160
- *
2161
- * @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.
2162
- * @param {Grammar} redef The new tokens to append.
2163
- * @returns {Grammar} The new language created.
2164
- * @public
2165
- * @example
2166
- * Prism.languages['css-with-colors'] = Prism.languages.extend('css', {
2167
- * // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token
2168
- * // at its original position
2169
- * 'comment': { ... },
2170
- * // CSS doesn't have a 'color' token, so this token will be appended
2171
- * 'color': /\b(?:red|green|blue)\b/
2172
- * });
2173
- */
2174
- extend: function(n, e) {
2175
- var t = M.util.clone(M.languages[n]);
2176
- for (var l in e)
2177
- t[l] = e[l];
2178
- return t;
2179
- },
2180
- /**
2181
- * Inserts tokens _before_ another token in a language definition or any other grammar.
2182
- *
2183
- * ## Usage
2184
- *
2185
- * This helper method makes it easy to modify existing languages. For example, the CSS language definition
2186
- * not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded
2187
- * in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the
2188
- * appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do
2189
- * this:
2190
- *
2191
- * ```js
2192
- * Prism.languages.markup.style = {
2193
- * // token
2194
- * };
2195
- * ```
2196
- *
2197
- * then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens
2198
- * before existing tokens. For the CSS example above, you would use it like this:
2199
- *
2200
- * ```js
2201
- * Prism.languages.insertBefore('markup', 'cdata', {
2202
- * 'style': {
2203
- * // token
2204
- * }
2205
- * });
2206
- * ```
2207
- *
2208
- * ## Special cases
2209
- *
2210
- * If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar
2211
- * will be ignored.
2212
- *
2213
- * This behavior can be used to insert tokens after `before`:
2214
- *
2215
- * ```js
2216
- * Prism.languages.insertBefore('markup', 'comment', {
2217
- * 'comment': Prism.languages.markup.comment,
2218
- * // tokens after 'comment'
2219
- * });
2220
- * ```
2221
- *
2222
- * ## Limitations
2223
- *
2224
- * The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object
2225
- * properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave
2226
- * differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily
2227
- * deleting properties which is necessary to insert at arbitrary positions.
2228
- *
2229
- * To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.
2230
- * Instead, it will create a new object and replace all references to the target object with the new one. This
2231
- * can be done without temporarily deleting properties, so the iteration order is well-defined.
2232
- *
2233
- * However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if
2234
- * you hold the target object in a variable, then the value of the variable will not change.
2235
- *
2236
- * ```js
2237
- * var oldMarkup = Prism.languages.markup;
2238
- * var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });
2239
- *
2240
- * assert(oldMarkup !== Prism.languages.markup);
2241
- * assert(newMarkup === Prism.languages.markup);
2242
- * ```
2243
- *
2244
- * @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the
2245
- * object to be modified.
2246
- * @param {string} before The key to insert before.
2247
- * @param {Grammar} insert An object containing the key-value pairs to be inserted.
2248
- * @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the
2249
- * object to be modified.
2250
- *
2251
- * Defaults to `Prism.languages`.
2252
- * @returns {Grammar} The new grammar object.
2253
- * @public
2254
- */
2255
- insertBefore: function(n, e, t, l) {
2256
- l = l || /** @type {any} */
2257
- M.languages;
2258
- var o = l[n], a = {};
2259
- for (var r in o)
2260
- if (o.hasOwnProperty(r)) {
2261
- if (r == e)
2262
- for (var c in t)
2263
- t.hasOwnProperty(c) && (a[c] = t[c]);
2264
- t.hasOwnProperty(r) || (a[r] = o[r]);
2265
- }
2266
- var u = l[n];
2267
- return l[n] = a, M.languages.DFS(M.languages, function(s, m) {
2268
- m === u && s != n && (this[s] = a);
2269
- }), a;
2270
- },
2271
- // Traverse a language definition with Depth First Search
2272
- DFS: function n(e, t, l, o) {
2273
- o = o || {};
2274
- var a = M.util.objId;
2275
- for (var r in e)
2276
- if (e.hasOwnProperty(r)) {
2277
- t.call(e, r, e[r], l || r);
2278
- var c = e[r], u = M.util.type(c);
2279
- u === "Object" && !o[a(c)] ? (o[a(c)] = !0, n(c, t, null, o)) : u === "Array" && !o[a(c)] && (o[a(c)] = !0, n(c, t, r, o));
2280
- }
2281
- }
2282
- },
2283
- plugins: {},
2284
- /**
2285
- * Low-level function, only use if you know what you’re doing. It accepts a string of text as input
2286
- * and the language definitions to use, and returns a string with the HTML produced.
2287
- *
2288
- * The following hooks will be run:
2289
- * 1. `before-tokenize`
2290
- * 2. `after-tokenize`
2291
- * 3. `wrap`: On each {@link Token}.
2292
- *
2293
- * @param {string} text A string with the code to be highlighted.
2294
- * @param {Grammar} grammar An object containing the tokens to use.
2295
- *
2296
- * Usually a language definition like `Prism.languages.markup`.
2297
- * @param {string} language The name of the language definition passed to `grammar`.
2298
- * @returns {string} The highlighted HTML.
2299
- * @memberof Prism
2300
- * @public
2301
- * @example
2302
- * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
2303
- */
2304
- highlight: function(n, e, t) {
2305
- var l = {
2306
- code: n,
2307
- grammar: e,
2308
- language: t
2309
- };
2310
- if (M.hooks.run("before-tokenize", l), !l.grammar)
2311
- throw new Error('The language "' + l.language + '" has no grammar.');
2312
- return l.tokens = M.tokenize(l.code, l.grammar), M.hooks.run("after-tokenize", l), X.stringify(M.util.encode(l.tokens), l.language);
2313
- },
2314
- /**
2315
- * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
2316
- * and the language definitions to use, and returns an array with the tokenized code.
2317
- *
2318
- * When the language definition includes nested tokens, the function is called recursively on each of these tokens.
2319
- *
2320
- * This method could be useful in other contexts as well, as a very crude parser.
2321
- *
2322
- * @param {string} text A string with the code to be highlighted.
2323
- * @param {Grammar} grammar An object containing the tokens to use.
2324
- *
2325
- * Usually a language definition like `Prism.languages.markup`.
2326
- * @returns {TokenStream} An array of strings and tokens, a token stream.
2327
- * @memberof Prism
2328
- * @public
2329
- * @example
2330
- * let code = `var foo = 0;`;
2331
- * let tokens = Prism.tokenize(code, Prism.languages.javascript);
2332
- * tokens.forEach(token => {
2333
- * if (token instanceof Prism.Token && token.type === 'number') {
2334
- * console.log(`Found numeric literal: ${token.content}`);
2335
- * }
2336
- * });
2337
- */
2338
- tokenize: function(n, e) {
2339
- var t = e.rest;
2340
- if (t) {
2341
- for (var l in t)
2342
- e[l] = t[l];
2343
- delete e.rest;
2344
- }
2345
- var o = new at();
2346
- return rn(o, o.head, n), ee(n, o, e, o.head, 0), rt(o);
2347
- },
2348
- /**
2349
- * @namespace
2350
- * @memberof Prism
2351
- * @public
2352
- */
2353
- hooks: {
2354
- all: {},
2355
- /**
2356
- * Adds the given callback to the list of callbacks for the given hook.
2357
- *
2358
- * The callback will be invoked when the hook it is registered for is run.
2359
- * Hooks are usually directly run by a highlight function but you can also run hooks yourself.
2360
- *
2361
- * One callback function can be registered to multiple hooks and the same hook multiple times.
2362
- *
2363
- * @param {string} name The name of the hook.
2364
- * @param {HookCallback} callback The callback function which is given environment variables.
2365
- * @public
2366
- */
2367
- add: function(n, e) {
2368
- var t = M.hooks.all;
2369
- t[n] = t[n] || [], t[n].push(e);
2370
- },
2371
- /**
2372
- * Runs a hook invoking all registered callbacks with the given environment variables.
2373
- *
2374
- * Callbacks will be invoked synchronously and in the order in which they were registered.
2375
- *
2376
- * @param {string} name The name of the hook.
2377
- * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
2378
- * @public
2379
- */
2380
- run: function(n, e) {
2381
- var t = M.hooks.all[n];
2382
- if (!(!t || !t.length))
2383
- for (var l = 0, o; o = t[l++]; )
2384
- o(e);
2385
- }
2386
- },
2387
- Token: X
2388
- };
2389
- function X(n, e, t, l) {
2390
- this.type = n, this.content = e, this.alias = t, this.length = (l || "").length | 0;
2391
- }
2392
- function Hn(n, e, t, l) {
2393
- n.lastIndex = e;
2394
- var o = n.exec(t);
2395
- if (o && l && o[1]) {
2396
- var a = o[1].length;
2397
- o.index += a, o[0] = o[0].slice(a);
2398
- }
2399
- return o;
2400
- }
2401
- function ee(n, e, t, l, o, a) {
2402
- for (var r in t)
2403
- if (!(!t.hasOwnProperty(r) || !t[r])) {
2404
- var c = t[r];
2405
- c = Array.isArray(c) ? c : [c];
2406
- for (var u = 0; u < c.length; ++u) {
2407
- if (a && a.cause == r + "," + u)
2408
- return;
2409
- var s = c[u], m = s.inside, v = !!s.lookbehind, b = !!s.greedy, g = s.alias;
2410
- if (b && !s.pattern.global) {
2411
- var O = s.pattern.toString().match(/[imsuy]*$/)[0];
2412
- s.pattern = RegExp(s.pattern.source, O + "g");
2413
- }
2414
- for (var N = s.pattern || s, w = l.next, p = o; w !== e.tail && !(a && p >= a.reach); p += w.value.length, w = w.next) {
2415
- var k = w.value;
2416
- if (e.length > n.length)
2417
- return;
2418
- if (!(k instanceof X)) {
2419
- var P = 1, h;
2420
- if (b) {
2421
- if (h = Hn(N, p, n, v), !h || h.index >= n.length)
2422
- break;
2423
- var L = h.index, S = h.index + h[0].length, y = p;
2424
- for (y += w.value.length; L >= y; )
2425
- w = w.next, y += w.value.length;
2426
- if (y -= w.value.length, p = y, w.value instanceof X)
2427
- continue;
2428
- for (var C = w; C !== e.tail && (y < S || typeof C.value == "string"); C = C.next)
2429
- P++, y += C.value.length;
2430
- P--, k = n.slice(p, y), h.index -= p;
2431
- } else if (h = Hn(N, 0, k, v), !h)
2432
- continue;
2433
- var L = h.index, U = h[0], R = k.slice(0, L), E = k.slice(L + U.length), D = p + k.length;
2434
- a && D > a.reach && (a.reach = D);
2435
- var d = w.prev;
2436
- R && (d = rn(e, d, R), p += R.length), it(e, d, P);
2437
- var j = new X(
2438
- r,
2439
- m ? M.tokenize(U, m) : U,
2440
- g,
2441
- U
2442
- );
2443
- if (w = rn(e, d, j), E && rn(e, w, E), P > 1) {
2444
- var B = {
2445
- cause: r + "," + u,
2446
- reach: D
2447
- };
2448
- ee(
2449
- n,
2450
- e,
2451
- t,
2452
- w.prev,
2453
- p,
2454
- B
2455
- ), a && B.reach > a.reach && (a.reach = B.reach);
2456
- }
2457
- }
2458
- }
2459
- }
2460
- }
2461
- }
2462
- function at() {
2463
- var n = { value: null, prev: null, next: null }, e = { value: null, prev: n, next: null };
2464
- n.next = e, this.head = n, this.tail = e, this.length = 0;
2465
- }
2466
- function rn(n, e, t) {
2467
- var l = e.next, o = { value: t, prev: e, next: l };
2468
- return e.next = o, l.prev = o, n.length++, o;
2469
- }
2470
- function it(n, e, t) {
2471
- for (var l = e.next, o = 0; o < t && l !== n.tail; o++)
2472
- l = l.next;
2473
- e.next = l, l.prev = e, n.length -= o;
2474
- }
2475
- function rt(n) {
2476
- for (var e = [], t = n.head.next; t !== n.tail; )
2477
- e.push(t.value), t = t.next;
2478
- return e;
2479
- }
2480
- const te = M;
2481
- function le() {
2482
- }
2483
- le.prototype = te;
2484
- const T = new le();
2485
- T.highlight = ct;
2486
- T.register = ut;
2487
- T.alias = st;
2488
- T.registered = ft;
2489
- T.listLanguages = dt;
2490
- T.util.encode = gt;
2491
- T.Token.stringify = yn;
2492
- function ct(n, e) {
2493
- if (typeof n != "string")
2494
- throw new TypeError("Expected `string` for `value`, got `" + n + "`");
2495
- let t, l;
2496
- if (e && typeof e == "object")
2497
- t = e;
2498
- else {
2499
- if (l = e, typeof l != "string")
2500
- throw new TypeError("Expected `string` for `name`, got `" + l + "`");
2501
- if (Object.hasOwn(T.languages, l))
2502
- t = T.languages[l];
2503
- else
2504
- throw new Error("Unknown language: `" + l + "` is not registered");
2505
- }
2506
- return {
2507
- type: "root",
2508
- // @ts-expect-error: we hacked Prism to accept and return the things we want.
2509
- children: te.highlight.call(T, n, t, l)
2510
- };
2511
- }
2512
- function ut(n) {
2513
- if (typeof n != "function" || !n.displayName)
2514
- throw new Error("Expected `function` for `syntax`, got `" + n + "`");
2515
- Object.hasOwn(T.languages, n.displayName) || n(T);
2516
- }
2517
- function st(n, e) {
2518
- const t = T.languages;
2519
- let l = {};
2520
- typeof n == "string" ? e && (l[n] = e) : l = n;
2521
- let o;
2522
- for (o in l)
2523
- if (Object.hasOwn(l, o)) {
2524
- const a = l[o], r = typeof a == "string" ? [a] : a;
2525
- let c = -1;
2526
- for (; ++c < r.length; )
2527
- t[r[c]] = t[o];
2528
- }
2529
- }
2530
- function ft(n) {
2531
- if (typeof n != "string")
2532
- throw new TypeError(
2533
- "Expected `string` for `aliasOrLanguage`, got `" + n + "`"
2534
- );
2535
- return Object.hasOwn(T.languages, n);
2536
- }
2537
- function dt() {
2538
- const n = T.languages, e = [];
2539
- let t;
2540
- for (t in n)
2541
- Object.hasOwn(n, t) && typeof n[t] == "object" && e.push(t);
2542
- return e;
2543
- }
2544
- function yn(n, e) {
2545
- if (typeof n == "string")
2546
- return { type: "text", value: n };
2547
- if (Array.isArray(n)) {
2548
- const l = [];
2549
- let o = -1;
2550
- for (; ++o < n.length; )
2551
- n[o] !== null && n[o] !== void 0 && n[o] !== "" && l.push(
2552
- /** @type {Element | Text} */
2553
- yn(n[o], e)
2554
- );
2555
- return l;
2556
- }
2557
- const t = {
2558
- attributes: {},
2559
- classes: ["token", n.type],
2560
- content: yn(n.content, e),
2561
- language: e,
2562
- tag: "span",
2563
- type: n.type
2564
- };
2565
- return n.alias && t.classes.push(
2566
- ...typeof n.alias == "string" ? [n.alias] : n.alias
2567
- ), T.hooks.run("wrap", t), Xe(
2568
- t.tag + "." + t.classes.join("."),
2569
- pt(t.attributes),
2570
- t.content
2571
- );
2572
- }
2573
- function gt(n) {
2574
- return n;
2575
- }
2576
- function pt(n) {
2577
- let e;
2578
- for (e in n)
2579
- Object.hasOwn(n, e) && (n[e] = et(n[e]));
2580
- return n;
2581
- }
2582
- var nn = Me(T, {});
2583
- nn.registerLanguage = function(n, e) {
2584
- return T.register(e);
2585
- };
2586
- nn.alias = function(n, e) {
2587
- return T.alias(n, e);
2588
- };
2589
- wn.displayName = "yaml";
2590
- wn.aliases = ["yml"];
2591
- function wn(n) {
2592
- (function(e) {
2593
- var t = /[*&][^\s[\]{},]+/, l = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, o = "(?:" + l.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + l.source + ")?)", a = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(
2594
- /<PLAIN>/g,
2595
- function() {
2596
- return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
2597
- }
2598
- ), r = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
2599
- function c(u, s) {
2600
- s = (s || "").replace(/m/g, "") + "m";
2601
- var m = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
2602
- return o;
2603
- }).replace(/<<value>>/g, function() {
2604
- return u;
2605
- });
2606
- return RegExp(m, s);
2607
- }
2608
- e.languages.yaml = {
2609
- scalar: {
2610
- pattern: RegExp(
2611
- /([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(
2612
- /<<prop>>/g,
2613
- function() {
2614
- return o;
2615
- }
2616
- )
2617
- ),
2618
- lookbehind: !0,
2619
- alias: "string"
2620
- },
2621
- comment: /#.*/,
2622
- key: {
2623
- pattern: RegExp(
2624
- /((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
2625
- return o;
2626
- }).replace(/<<key>>/g, function() {
2627
- return "(?:" + a + "|" + r + ")";
2628
- })
2629
- ),
2630
- lookbehind: !0,
2631
- greedy: !0,
2632
- alias: "atrule"
2633
- },
2634
- directive: {
2635
- pattern: /(^[ \t]*)%.+/m,
2636
- lookbehind: !0,
2637
- alias: "important"
2638
- },
2639
- datetime: {
2640
- pattern: c(
2641
- /\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source
2642
- ),
2643
- lookbehind: !0,
2644
- alias: "number"
2645
- },
2646
- boolean: {
2647
- pattern: c(/false|true/.source, "i"),
2648
- lookbehind: !0,
2649
- alias: "important"
2650
- },
2651
- null: {
2652
- pattern: c(/null|~/.source, "i"),
2653
- lookbehind: !0,
2654
- alias: "important"
2655
- },
2656
- string: {
2657
- pattern: c(r),
2658
- lookbehind: !0,
2659
- greedy: !0
2660
- },
2661
- number: {
2662
- pattern: c(
2663
- /[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,
2664
- "i"
2665
- ),
2666
- lookbehind: !0
2667
- },
2668
- tag: l,
2669
- important: t,
2670
- punctuation: /---|[:[\]{}\-,|>?]|\.\.\./
2671
- }, e.languages.yml = e.languages.yaml;
2672
- })(n);
2673
- }
2674
- const xn = (n) => {
2675
- n.languages.cedar = {
2676
- comment: /\/\/.*/,
2677
- // Greedy so an operator or keyword inside a quoted id, `"like-this"`, stays string.
2678
- string: {
2679
- pattern: /"(?:\\.|[^"\\\r\n])*"/,
2680
- greedy: !0
2681
- },
2682
- // Each segment of an entity path: the `StackOne` and `Action` of
2683
- // `StackOne::Action::"invokeTool"`. Matching per segment rather than the whole path
2684
- // keeps the pattern readable, and `::` falls through to punctuation.
2685
- "class-name": /\b[A-Za-z_]\w*(?=\s*::)/,
2686
- keyword: /\b(?:permit|forbid|when|unless|if|then|else|in|like|has|is)\b/,
2687
- // The four scope variables read as language, not as identifiers a policy author chose.
2688
- builtin: /\b(?:principal|action|resource|context)\b/,
2689
- boolean: /\b(?:true|false)\b/,
2690
- number: /\b\d+\b/,
2691
- operator: /&&|\|\||[=!<>]=|[<>!]|[+\-*]/,
2692
- punctuation: /[{}[\]();,.:]/
2693
- };
2694
- };
2695
- xn.displayName = "cedar";
2696
- xn.aliases = [];
2697
- nn.registerLanguage("yaml", wn);
2698
- nn.registerLanguage("cedar", xn);
2699
- const ht = {
2700
- 'code[class*="language-"]': cn,
2701
- 'pre[class*="language-"]': cn,
2702
- comment: { color: "var(--malachite-codeblock-comment)" },
2703
- prolog: { color: "var(--malachite-codeblock-comment)" },
2704
- cdata: { color: "var(--malachite-codeblock-comment)" },
2705
- punctuation: { color: "var(--malachite-codeblock-foreground)" },
2706
- key: { color: "var(--malachite-codeblock-keyword)" },
2707
- atrule: { color: "var(--malachite-codeblock-keyword)" },
2708
- "attr-name": { color: "var(--malachite-codeblock-keyword)" },
2709
- directive: { color: "var(--malachite-codeblock-keyword)" },
2710
- keyword: { color: "var(--malachite-codeblock-keyword)" },
2711
- property: { color: "var(--malachite-codeblock-keyword)" },
2712
- boolean: { color: "var(--malachite-codeblock-keyword)" },
2713
- important: { color: "var(--malachite-codeblock-keyword)" },
2714
- null: { color: "var(--malachite-codeblock-keyword)" },
2715
- tag: { color: "var(--malachite-codeblock-keyword)" },
2716
- anchor: { color: "var(--malachite-codeblock-keyword)" },
2717
- alias: { color: "var(--malachite-codeblock-keyword)" },
2718
- // Cedar's entity paths (`StackOne::Action`) are types, which is what this token is for.
2719
- "class-name": { color: "var(--malachite-codeblock-type)" },
2720
- // The scope variables. Given the one remaining distinct hue so they read as language
2721
- // rather than as another blue keyword.
2722
- builtin: { color: "var(--malachite-codeblock-number)" },
2723
- operator: { color: "var(--malachite-codeblock-line-number)" },
2724
- string: { color: "var(--malachite-codeblock-string)" },
2725
- scalar: { color: "var(--malachite-codeblock-string)" },
2726
- char: { color: "var(--malachite-codeblock-string)" },
2727
- url: { color: "var(--malachite-codeblock-string)" },
2728
- number: { color: "var(--malachite-codeblock-number)" },
2729
- datetime: { color: "var(--malachite-codeblock-number)" }
2730
- }, oe = (n) => {
2731
- if (n.type === "text")
2732
- return typeof n.value == "string" && n.value.endsWith(`
2733
- `) ? { ...n, value: n.value.slice(0, -1) } : n;
2734
- const e = n.children;
2735
- if (!(e != null && e.length))
2736
- return n;
2737
- const t = e[e.length - 1], l = oe(t);
2738
- return l === t ? n : { ...n, children: [...e.slice(0, -1), l] };
2739
- }, bt = ({
2740
- code: n,
2741
- language: e,
2742
- showLineNumbers: t = !0,
2743
- wrapLines: l = !1,
2744
- copyClearance: o = !1,
2745
- decorate: a
2746
- }) => {
2747
- const r = n.split(`
2748
- `);
2749
- return /* @__PURE__ */ Pn(
2750
- nn,
2751
- {
2752
- language: e,
2753
- style: ht,
2754
- wrapLines: !0,
2755
- renderer: ({ rows: u, stylesheet: s, useInlineStyles: m }) => u.map((v, b) => {
2756
- const g = a == null ? void 0 : a(b), O = (g == null ? void 0 : g.lineNumber) ?? (t ? b + 1 : void 0);
2757
- return /* @__PURE__ */ Pn(
2758
- fe,
2759
- {
2760
- line: r[b] ?? "",
2761
- lineNumber: O,
2762
- wrap: l,
2763
- decoration: g,
2764
- children: vn({
2765
- node: oe(v),
2766
- stylesheet: s,
2767
- useInlineStyles: m,
2768
- key: `code-line-${b}`
2769
- })
2770
- },
2771
- b
2772
- );
2773
- }),
2774
- customStyle: {
2775
- ...cn,
2776
- margin: 0,
2777
- padding: "16px",
2778
- paddingRight: o ? "44px" : "16px",
2779
- overflow: "auto"
2780
- },
2781
- codeTagProps: {
2782
- style: { ...cn, display: "block", width: "max-content", minWidth: "100%" }
2783
- },
2784
- children: n
2785
- }
2786
- );
2787
- };
2788
- export {
2789
- bt as default
2790
- };
2791
- //# sourceMappingURL=CodeBlockHighlighter-LexFSPf6.js.map