@tcn/ui 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (584) hide show
  1. package/README.md +2 -1
  2. package/dist/Color-ASIRERSW-B4GaVKuQ.js +990 -0
  3. package/dist/Color-ASIRERSW-B4GaVKuQ.js.map +1 -0
  4. package/dist/WithTooltip-IO6J4KBT-B1oq93K5.js +1485 -0
  5. package/dist/WithTooltip-IO6J4KBT-B1oq93K5.js.map +1 -0
  6. package/dist/actions/__docs__/components/gallery.d.ts +8 -0
  7. package/dist/actions/__docs__/components/gallery.d.ts.map +1 -0
  8. package/dist/actions/__docs__/components/gallery.js +20 -0
  9. package/dist/actions/__docs__/components/gallery.js.map +1 -0
  10. package/dist/actions/__docs__/components/showcase.d.ts +27 -0
  11. package/dist/actions/__docs__/components/showcase.d.ts.map +1 -0
  12. package/dist/actions/__docs__/components/showcase.js +15 -0
  13. package/dist/actions/__docs__/components/showcase.js.map +1 -0
  14. package/dist/actions/button/base_button/base_button.d.ts +2 -0
  15. package/dist/actions/button/base_button/base_button.d.ts.map +1 -1
  16. package/dist/actions/button/base_button/base_button.js +30 -28
  17. package/dist/actions/button/base_button/base_button.js.map +1 -1
  18. package/dist/actions/button/button/button.js +6 -6
  19. package/dist/actions/button/button_group/button_group.d.ts +1 -1
  20. package/dist/actions/button/button_group/button_group.d.ts.map +1 -1
  21. package/dist/actions/button/button_group/button_group.js +11 -8
  22. package/dist/actions/button/button_group/button_group.js.map +1 -1
  23. package/dist/actions/button/select_group/select_group.js +15 -15
  24. package/dist/actions/button/select_group/select_group.js.map +1 -1
  25. package/dist/actions/button/select_group/single_select_group.js +6 -6
  26. package/dist/actions/button/slim_button/slim_button.js +2 -2
  27. package/dist/actions/types.d.ts +2 -0
  28. package/dist/actions/types.d.ts.map +1 -0
  29. package/dist/badge.css +1 -1
  30. package/dist/base_button.css +1 -1
  31. package/dist/body_text.css +1 -1
  32. package/dist/bottom_resize_handle.css +1 -1
  33. package/dist/bubble.css +1 -1
  34. package/dist/button.css +1 -1
  35. package/dist/button_group.css +1 -1
  36. package/dist/callout.css +1 -1
  37. package/dist/caption.css +1 -1
  38. package/dist/checkbox.css +1 -1
  39. package/dist/chip.css +1 -1
  40. package/dist/circle.css +1 -1
  41. package/dist/collapsible_box.css +1 -1
  42. package/dist/color_input.css +1 -1
  43. package/dist/color_picker.css +1 -1
  44. package/dist/column.css +1 -1
  45. package/dist/confirm.css +1 -1
  46. package/dist/css/layers.css +1 -0
  47. package/dist/date_picker.css +1 -1
  48. package/dist/date_picker_date.css +1 -1
  49. package/dist/date_picker_day.css +1 -1
  50. package/dist/date_picker_header.css +1 -1
  51. package/dist/date_picker_input.css +1 -1
  52. package/dist/date_picker_time_selector.css +1 -1
  53. package/dist/date_picker_year_input.css +1 -1
  54. package/dist/date_picker_year_selector.css +1 -1
  55. package/dist/divider.css +1 -1
  56. package/dist/draggable.css +1 -1
  57. package/dist/drawer_bottom.css +1 -1
  58. package/dist/drawer_end.css +1 -1
  59. package/dist/drawer_start.css +1 -1
  60. package/dist/drawer_top.css +1 -1
  61. package/dist/end_resize_handle.css +1 -1
  62. package/dist/feedback/loading/loading.js +12 -12
  63. package/dist/feedback/loading/loading.js.map +1 -1
  64. package/dist/feedback/progress/progress_bar.d.ts.map +1 -1
  65. package/dist/feedback/progress/progress_bar.js +34 -26
  66. package/dist/feedback/progress/progress_bar.js.map +1 -1
  67. package/dist/field_control.css +1 -1
  68. package/dist/field_set.css +1 -1
  69. package/dist/footer.css +1 -1
  70. package/dist/footnote.css +1 -1
  71. package/dist/form/field/common/field_control/field_control.js +1 -1
  72. package/dist/form/field/common/field_control/field_control.js.map +1 -1
  73. package/dist/form/field/common/field_description.js +3 -3
  74. package/dist/form/field/common/field_description.js.map +1 -1
  75. package/dist/form/field/common/field_error.js +8 -7
  76. package/dist/form/field/common/field_error.js.map +1 -1
  77. package/dist/form/field/common/field_header.js +7 -7
  78. package/dist/form/field/common/field_header.js.map +1 -1
  79. package/dist/form/field/common/status_input/status_input.d.ts.map +1 -1
  80. package/dist/form/field/common/status_input/status_input.js +20 -14
  81. package/dist/form/field/common/status_input/status_input.js.map +1 -1
  82. package/dist/form/field/field.js +5 -5
  83. package/dist/form/field/h_field/h_field.js +11 -11
  84. package/dist/form/field/h_field/h_field.js.map +1 -1
  85. package/dist/form/field/v_field/v_field.js +8 -8
  86. package/dist/form/field/v_field/v_field.js.map +1 -1
  87. package/dist/form/field_set/field_set.d.ts.map +1 -1
  88. package/dist/form/field_set/field_set.js +19 -12
  89. package/dist/form/field_set/field_set.js.map +1 -1
  90. package/dist/formatter-QJ4M4OGQ-DaIl2Wi_.js +6 -0
  91. package/dist/formatter-QJ4M4OGQ-DaIl2Wi_.js.map +1 -0
  92. package/dist/frame.css +1 -1
  93. package/dist/gallery.css +1 -0
  94. package/dist/grid.css +1 -1
  95. package/dist/h_body.css +1 -1
  96. package/dist/h_field.css +1 -1
  97. package/dist/h_panel.css +1 -1
  98. package/dist/header.css +1 -1
  99. package/dist/headline.css +1 -1
  100. package/dist/input.css +1 -1
  101. package/dist/inputs/checkbox/checkbox.js +15 -15
  102. package/dist/inputs/checkbox/checkbox.js.map +1 -1
  103. package/dist/inputs/checkbox/checkbox_row.d.ts +1 -1
  104. package/dist/inputs/checkbox/checkbox_row.d.ts.map +1 -1
  105. package/dist/inputs/checkbox/checkbox_row.js +19 -8
  106. package/dist/inputs/checkbox/checkbox_row.js.map +1 -1
  107. package/dist/inputs/color_input/color_input.d.ts.map +1 -1
  108. package/dist/inputs/color_input/color_input.js +32 -28
  109. package/dist/inputs/color_input/color_input.js.map +1 -1
  110. package/dist/inputs/color_input/color_picker.js +14 -14
  111. package/dist/inputs/color_input/color_picker.js.map +1 -1
  112. package/dist/inputs/combo_box/combo_box.js +16 -16
  113. package/dist/inputs/combo_box/combo_box.js.map +1 -1
  114. package/dist/inputs/date_picker/date_picker.js +26 -26
  115. package/dist/inputs/date_picker/date_picker.js.map +1 -1
  116. package/dist/inputs/date_picker/date_picker_body.js +3 -3
  117. package/dist/inputs/date_picker/date_picker_body.js.map +1 -1
  118. package/dist/inputs/date_picker/date_picker_date.js +2 -2
  119. package/dist/inputs/date_picker/date_picker_date.js.map +1 -1
  120. package/dist/inputs/date_picker/date_picker_day.d.ts.map +1 -1
  121. package/dist/inputs/date_picker/date_picker_day.js +16 -8
  122. package/dist/inputs/date_picker/date_picker_day.js.map +1 -1
  123. package/dist/inputs/date_picker/date_picker_header.js +1 -1
  124. package/dist/inputs/date_picker/date_picker_header.js.map +1 -1
  125. package/dist/inputs/date_picker/date_picker_input.js +18 -18
  126. package/dist/inputs/date_picker/date_picker_input.js.map +1 -1
  127. package/dist/inputs/date_picker/date_picker_time_selector.d.ts.map +1 -1
  128. package/dist/inputs/date_picker/date_picker_time_selector.js +14 -11
  129. package/dist/inputs/date_picker/date_picker_time_selector.js.map +1 -1
  130. package/dist/inputs/date_picker/date_picker_year_input.js +4 -4
  131. package/dist/inputs/date_picker/date_picker_year_input.js.map +1 -1
  132. package/dist/inputs/date_picker/date_picker_year_selector.d.ts.map +1 -1
  133. package/dist/inputs/date_picker/date_picker_year_selector.js +13 -10
  134. package/dist/inputs/date_picker/date_picker_year_selector.js.map +1 -1
  135. package/dist/inputs/index.d.ts +0 -4
  136. package/dist/inputs/index.d.ts.map +1 -1
  137. package/dist/inputs/index.js +53 -61
  138. package/dist/inputs/index.js.map +1 -1
  139. package/dist/inputs/input/input.js +6 -6
  140. package/dist/inputs/input/input.js.map +1 -1
  141. package/dist/inputs/mask_input/key_capture_input.js +7 -7
  142. package/dist/inputs/mask_input/mask_input.js +4 -4
  143. package/dist/inputs/multi_combo_box/multi_combo_box.js +17 -17
  144. package/dist/inputs/multiselect/multiselect.d.ts.map +1 -1
  145. package/dist/inputs/multiselect/multiselect.js +23 -22
  146. package/dist/inputs/multiselect/multiselect.js.map +1 -1
  147. package/dist/inputs/multiselect/multiselect_inline_values.d.ts.map +1 -1
  148. package/dist/inputs/multiselect/multiselect_inline_values.js +18 -17
  149. package/dist/inputs/multiselect/multiselect_inline_values.js.map +1 -1
  150. package/dist/inputs/multiselect/multiselect_values.js +20 -20
  151. package/dist/inputs/multiselect/multiselect_values.js.map +1 -1
  152. package/dist/inputs/phone_number_input/phone_number_input.d.ts.map +1 -1
  153. package/dist/inputs/phone_number_input/phone_number_input.js +104 -91
  154. package/dist/inputs/phone_number_input/phone_number_input.js.map +1 -1
  155. package/dist/inputs/radio/radio.js +18 -18
  156. package/dist/inputs/radio/radio.js.map +1 -1
  157. package/dist/inputs/radio/radio_row.js +3 -3
  158. package/dist/inputs/select/select.d.ts.map +1 -1
  159. package/dist/inputs/select/select.js +40 -40
  160. package/dist/inputs/select/select.js.map +1 -1
  161. package/dist/inputs/slider/slider.js +9 -9
  162. package/dist/inputs/slider/slider.js.map +1 -1
  163. package/dist/inputs/suggestions/suggestion_item.js +9 -9
  164. package/dist/inputs/suggestions/suggestion_item.js.map +1 -1
  165. package/dist/inputs/suggestions/suggestion_list.d.ts.map +1 -1
  166. package/dist/inputs/suggestions/suggestion_list.js +29 -22
  167. package/dist/inputs/suggestions/suggestion_list.js.map +1 -1
  168. package/dist/inputs/switch/switch.js +16 -16
  169. package/dist/inputs/switch/switch.js.map +1 -1
  170. package/dist/inputs/textarea/textarea.js +4 -4
  171. package/dist/inputs/textarea/textarea.js.map +1 -1
  172. package/dist/inputs/unit_input/unit_input.js +12 -12
  173. package/dist/inputs/unit_input/unit_input.js.map +1 -1
  174. package/dist/layouts/body/h_body.js +7 -7
  175. package/dist/layouts/body/h_body.js.map +1 -1
  176. package/dist/layouts/body/v_body.js +6 -6
  177. package/dist/layouts/column/column.js +14 -14
  178. package/dist/layouts/column/column.js.map +1 -1
  179. package/dist/layouts/divider/divider.d.ts.map +1 -1
  180. package/dist/layouts/divider/divider.js +11 -12
  181. package/dist/layouts/divider/divider.js.map +1 -1
  182. package/dist/layouts/footer/footer.js +7 -7
  183. package/dist/layouts/grid/grid.d.ts.map +1 -1
  184. package/dist/layouts/grid/grid.js +40 -31
  185. package/dist/layouts/grid/grid.js.map +1 -1
  186. package/dist/layouts/header/header.js +5 -5
  187. package/dist/layouts/header/header.js.map +1 -1
  188. package/dist/layouts/list/item.js +2 -2
  189. package/dist/layouts/list/list.js +7 -7
  190. package/dist/layouts/list/section_header.d.ts.map +1 -1
  191. package/dist/layouts/list/section_header.js +17 -7
  192. package/dist/layouts/list/section_header.js.map +1 -1
  193. package/dist/layouts/scaffold/scaffold.js +16 -16
  194. package/dist/layouts/sidebar_end/sidebar_end.js +25 -25
  195. package/dist/layouts/sidebar_end/sidebar_end.js.map +1 -1
  196. package/dist/layouts/sidebar_start/sidebar_start.js +21 -21
  197. package/dist/layouts/sidebar_start/sidebar_start.js.map +1 -1
  198. package/dist/layouts/utility_bar/utility_bar.d.ts.map +1 -1
  199. package/dist/layouts/utility_bar/utility_bar.js +12 -17
  200. package/dist/layouts/utility_bar/utility_bar.js.map +1 -1
  201. package/dist/left_resize_handle.css +1 -1
  202. package/dist/loading.css +1 -1
  203. package/dist/menu.css +1 -1
  204. package/dist/modal.css +1 -1
  205. package/dist/multi_combo_box.css +1 -1
  206. package/dist/multiselect.css +1 -1
  207. package/dist/multiselect_values.css +1 -1
  208. package/dist/overlay/context_menu/context_menu.js +5 -5
  209. package/dist/overlay/context_menu/context_menu.js.map +1 -1
  210. package/dist/overlay/frame/frame.js +4 -4
  211. package/dist/overlay/menu/menu.js +35 -35
  212. package/dist/overlay/menu/menu.js.map +1 -1
  213. package/dist/overlay/popper/legacy/popper.d.ts.map +1 -1
  214. package/dist/overlay/popper/legacy/popper.js +12 -11
  215. package/dist/overlay/popper/legacy/popper.js.map +1 -1
  216. package/dist/overlay/popper/preview_popper.js +16 -16
  217. package/dist/overlay/popper/preview_popper.js.map +1 -1
  218. package/dist/overlay/portal/portal.css +1 -0
  219. package/dist/overlay/portal/portal_platform.d.ts.map +1 -1
  220. package/dist/overlay/portal/portal_platform.js +6 -5
  221. package/dist/overlay/portal/portal_platform.js.map +1 -1
  222. package/dist/overlay/portal/portal_platform_context.js +4 -4
  223. package/dist/page.css +1 -1
  224. package/dist/phone_number_input.css +1 -1
  225. package/dist/picture_placeholder.css +1 -1
  226. package/dist/popper.css +1 -1
  227. package/dist/progress_bar.css +1 -1
  228. package/dist/radio.css +1 -1
  229. package/dist/rect.css +1 -1
  230. package/dist/right_resize_handle.css +1 -1
  231. package/dist/scaffold.css +1 -1
  232. package/dist/select.css +1 -1
  233. package/dist/select_group.css +1 -1
  234. package/dist/showcase-WfP6kBEb.js +58401 -0
  235. package/dist/showcase-WfP6kBEb.js.map +1 -0
  236. package/dist/showcase.css +1 -0
  237. package/dist/sidebar_end.css +1 -1
  238. package/dist/sidebar_start.css +1 -1
  239. package/dist/slider.css +1 -1
  240. package/dist/slim_button.css +1 -1
  241. package/dist/stack.css +1 -1
  242. package/dist/stacks/box/bottom_resize_handle.js +1 -1
  243. package/dist/stacks/box/bottom_resize_handle.js.map +1 -1
  244. package/dist/stacks/box/box.js +24 -24
  245. package/dist/stacks/box/box.js.map +1 -1
  246. package/dist/stacks/box/end_resize_handle.js +1 -1
  247. package/dist/stacks/box/end_resize_handle.js.map +1 -1
  248. package/dist/stacks/box/left_resize_handle.js +7 -7
  249. package/dist/stacks/box/left_resize_handle.js.map +1 -1
  250. package/dist/stacks/box/right_resize_handle.js +3 -3
  251. package/dist/stacks/box/right_resize_handle.js.map +1 -1
  252. package/dist/stacks/box/start_resize_handle.js +6 -6
  253. package/dist/stacks/box/start_resize_handle.js.map +1 -1
  254. package/dist/stacks/box/top_resize_handle.js +1 -1
  255. package/dist/stacks/box/top_resize_handle.js.map +1 -1
  256. package/dist/stacks/h_collapsible_box.d.ts.map +1 -1
  257. package/dist/stacks/h_collapsible_box.js +10 -6
  258. package/dist/stacks/h_collapsible_box.js.map +1 -1
  259. package/dist/stacks/h_stack.js +45 -45
  260. package/dist/stacks/h_stack.js.map +1 -1
  261. package/dist/stacks/spacer.js +16 -16
  262. package/dist/stacks/spacer.js.map +1 -1
  263. package/dist/stacks/story_components/circle.js +9 -9
  264. package/dist/stacks/story_components/circle.js.map +1 -1
  265. package/dist/stacks/story_components/picture_placeholder.d.ts.map +1 -1
  266. package/dist/stacks/story_components/picture_placeholder.js +13 -9
  267. package/dist/stacks/story_components/picture_placeholder.js.map +1 -1
  268. package/dist/stacks/story_components/rect.js +5 -5
  269. package/dist/stacks/story_components/rect.js.map +1 -1
  270. package/dist/stacks/story_components/style_box.js +4 -4
  271. package/dist/stacks/utils/use_is_collapsed.js +6 -6
  272. package/dist/stacks/v_collapsible_box.d.ts.map +1 -1
  273. package/dist/stacks/v_collapsible_box.js +12 -8
  274. package/dist/stacks/v_collapsible_box.js.map +1 -1
  275. package/dist/stacks/v_stack.js +45 -45
  276. package/dist/stacks/v_stack.js.map +1 -1
  277. package/dist/stacks/z_stack.js +39 -39
  278. package/dist/stacks/z_stack.js.map +1 -1
  279. package/dist/start_resize_handle.css +1 -1
  280. package/dist/status_input.css +1 -1
  281. package/dist/subheadline.css +1 -1
  282. package/dist/suggestion_item.css +1 -1
  283. package/dist/suggestion_list.css +1 -1
  284. package/dist/surfaces/alert/alert.js +3 -3
  285. package/dist/surfaces/alert/alert.js.map +1 -1
  286. package/dist/surfaces/card/card.js +4 -4
  287. package/dist/surfaces/confirm/confirm.d.ts.map +1 -1
  288. package/dist/surfaces/confirm/confirm.js +27 -20
  289. package/dist/surfaces/confirm/confirm.js.map +1 -1
  290. package/dist/surfaces/drawers/drawer_bottom/drawer_bottom.js +3 -3
  291. package/dist/surfaces/drawers/drawer_bottom/drawer_bottom.js.map +1 -1
  292. package/dist/surfaces/drawers/drawer_end/drawer_end.js +4 -4
  293. package/dist/surfaces/drawers/drawer_end/drawer_end.js.map +1 -1
  294. package/dist/surfaces/drawers/drawer_start/drawer_start.js +3 -3
  295. package/dist/surfaces/drawers/drawer_start/drawer_start.js.map +1 -1
  296. package/dist/surfaces/drawers/drawer_top/drawer_top.js +3 -3
  297. package/dist/surfaces/drawers/drawer_top/drawer_top.js.map +1 -1
  298. package/dist/surfaces/modal/modal.js +5 -5
  299. package/dist/surfaces/page/h_page.js +7 -7
  300. package/dist/surfaces/page/h_page.js.map +1 -1
  301. package/dist/surfaces/page/v_page.js +7 -7
  302. package/dist/surfaces/page/v_page.js.map +1 -1
  303. package/dist/surfaces/panel/h_panel.js +14 -14
  304. package/dist/surfaces/panel/v_panel.js +9 -9
  305. package/dist/surfaces/pop_confirm/pop_confirm.js +6 -6
  306. package/dist/surfaces/popconfirm/pop_confirm.js +8 -8
  307. package/dist/surfaces/popover/popover.js +1 -1
  308. package/dist/surfaces/popover/popover.js.map +1 -1
  309. package/dist/surfaces/tooltip/tooltip.js +8 -8
  310. package/dist/surfaces/window/window.js +9 -9
  311. package/dist/switch.css +1 -1
  312. package/dist/syntaxhighlighter-IQDEPFLK-BX_eF8__.js +3777 -0
  313. package/dist/syntaxhighlighter-IQDEPFLK-BX_eF8__.js.map +1 -0
  314. package/dist/tethered.css +1 -1
  315. package/dist/textarea.css +1 -1
  316. package/dist/themes/stylesheets/reset.css +1 -0
  317. package/dist/themes/stylesheets/reset.js +133 -131
  318. package/dist/themes/stylesheets/reset.js.map +1 -1
  319. package/dist/themes/theme.d.ts.map +1 -1
  320. package/dist/themes/theme.js +15 -6
  321. package/dist/themes/theme.js.map +1 -1
  322. package/dist/themes/themes/ergo/ergo_theme.css +1 -0
  323. package/dist/themes/themes/ergo/ergo_theme.js +505 -515
  324. package/dist/themes/themes/ergo/ergo_theme.js.map +1 -1
  325. package/dist/themes/themes/windows_98/windows_98.css +1 -0
  326. package/dist/themes/themes/windows_98/windows_98_theme.js +1034 -1168
  327. package/dist/themes/themes/windows_98/windows_98_theme.js.map +1 -1
  328. package/dist/title.css +1 -1
  329. package/dist/tokens/badge/badge.js +13 -13
  330. package/dist/tokens/badge/badge.js.map +1 -1
  331. package/dist/tokens/bubble/bubble.js +6 -5
  332. package/dist/tokens/bubble/bubble.js.map +1 -1
  333. package/dist/tokens/chip/chip.js +4 -3
  334. package/dist/tokens/chip/chip.js.map +1 -1
  335. package/dist/tooltip.css +1 -1
  336. package/dist/top_resize_handle.css +1 -1
  337. package/dist/typography/body_text/body_text.js +9 -9
  338. package/dist/typography/body_text/body_text.js.map +1 -1
  339. package/dist/typography/callout/callout.js +9 -9
  340. package/dist/typography/callout/callout.js.map +1 -1
  341. package/dist/typography/caption/caption.js +5 -5
  342. package/dist/typography/caption/caption.js.map +1 -1
  343. package/dist/typography/footnote/footnote.js +9 -9
  344. package/dist/typography/footnote/footnote.js.map +1 -1
  345. package/dist/typography/headline/headline.js +13 -13
  346. package/dist/typography/headline/headline.js.map +1 -1
  347. package/dist/typography/subheadline/subheadline.js +10 -10
  348. package/dist/typography/subheadline/subheadline.js.map +1 -1
  349. package/dist/typography/title/title.js +6 -6
  350. package/dist/typography/title/title.js.map +1 -1
  351. package/dist/unit_input.css +1 -1
  352. package/dist/utility_bar.css +1 -1
  353. package/dist/utils/click_away_listener.js +10 -10
  354. package/dist/utils/click_away_listener.js.map +1 -1
  355. package/dist/utils/dnd/draggable/draggable.js +4 -4
  356. package/dist/utils/dnd/handle.js +8 -8
  357. package/dist/utils/focus_redirect.js +5 -5
  358. package/dist/utils/hooks/make_context_hook.js +4 -4
  359. package/dist/utils/hooks/use_media_query.js +2 -2
  360. package/dist/utils/hooks/use_media_query.js.map +1 -1
  361. package/dist/v_body.css +1 -1
  362. package/dist/window.css +1 -1
  363. package/package.json +3 -3
  364. package/src/actions/__docs__/actions.mdx +194 -0
  365. package/src/actions/__docs__/actions.stories.tsx +481 -0
  366. package/src/actions/__docs__/components/gallery.module.css +6 -0
  367. package/src/actions/__docs__/components/gallery.tsx +28 -0
  368. package/src/actions/__docs__/components/showcase.module.css +55 -0
  369. package/src/actions/__docs__/components/showcase.tsx +121 -0
  370. package/src/actions/button/__stories__/button_group.stories.tsx +63 -0
  371. package/src/actions/button/__stories__/select_group.stories.tsx +47 -4
  372. package/src/actions/button/base_button/base_button.module.css +15 -13
  373. package/src/actions/button/base_button/base_button.tsx +6 -1
  374. package/src/actions/button/button/button.module.css +52 -50
  375. package/src/actions/button/button_group/button_group.module.css +54 -52
  376. package/src/actions/button/button_group/button_group.tsx +9 -4
  377. package/src/actions/button/select_group/select_group.module.css +54 -52
  378. package/src/actions/button/select_group/select_group.tsx +2 -2
  379. package/src/actions/button/slim_button/slim_button.module.css +7 -5
  380. package/src/actions/types.ts +6 -0
  381. package/src/css/layers.css +1 -0
  382. package/src/feedback/loading/loading.module.css +17 -15
  383. package/src/feedback/progress/progress_bar.module.css +52 -50
  384. package/src/feedback/progress/progress_bar.tsx +6 -1
  385. package/src/form/field/common/field_control/field_control.module.css +17 -15
  386. package/src/form/field/common/field_control/field_control.tsx +1 -1
  387. package/src/form/field/common/field_description.tsx +1 -1
  388. package/src/form/field/common/field_error.tsx +1 -1
  389. package/src/form/field/common/field_header.tsx +1 -1
  390. package/src/form/field/common/status_input/status_input.module.css +10 -8
  391. package/src/form/field/common/status_input/status_input.tsx +8 -5
  392. package/src/form/field/h_field/h_field.module.css +7 -5
  393. package/src/form/field/h_field/h_field.tsx +1 -1
  394. package/src/form/field/v_field/v_field.tsx +1 -1
  395. package/src/form/field_set/field_set.module.css +16 -14
  396. package/src/form/field_set/field_set.tsx +7 -4
  397. package/src/inputs/checkbox/checkbox.module.css +45 -43
  398. package/src/inputs/checkbox/checkbox.tsx +1 -1
  399. package/src/inputs/checkbox/checkbox_row.tsx +9 -2
  400. package/src/inputs/color_input/color_input.module.css +58 -56
  401. package/src/inputs/color_input/color_input.tsx +8 -4
  402. package/src/inputs/color_input/color_picker.module.css +13 -11
  403. package/src/inputs/color_input/color_picker.tsx +2 -2
  404. package/src/inputs/combo_box/combo_box.tsx +1 -1
  405. package/src/inputs/date_picker/date_picker.module.css +19 -17
  406. package/src/inputs/date_picker/date_picker.tsx +2 -2
  407. package/src/inputs/date_picker/date_picker_body.tsx +1 -1
  408. package/src/inputs/date_picker/date_picker_date.module.css +71 -69
  409. package/src/inputs/date_picker/date_picker_date.tsx +2 -2
  410. package/src/inputs/date_picker/date_picker_day.module.css +5 -3
  411. package/src/inputs/date_picker/date_picker_day.tsx +7 -2
  412. package/src/inputs/date_picker/date_picker_header.module.css +4 -2
  413. package/src/inputs/date_picker/date_picker_header.tsx +1 -1
  414. package/src/inputs/date_picker/date_picker_input.module.css +55 -53
  415. package/src/inputs/date_picker/date_picker_input.tsx +3 -3
  416. package/src/inputs/date_picker/date_picker_time_selector.module.css +30 -28
  417. package/src/inputs/date_picker/date_picker_time_selector.tsx +7 -4
  418. package/src/inputs/date_picker/date_picker_year_input.module.css +46 -44
  419. package/src/inputs/date_picker/date_picker_year_input.tsx +1 -1
  420. package/src/inputs/date_picker/date_picker_year_selector.module.css +48 -46
  421. package/src/inputs/date_picker/date_picker_year_selector.tsx +5 -2
  422. package/src/inputs/index.ts +0 -4
  423. package/src/inputs/input/input.module.css +56 -79
  424. package/src/inputs/input/input.tsx +1 -1
  425. package/src/inputs/multi_combo_box/multi_combo_box.module.css +4 -2
  426. package/src/inputs/multiselect/multiselect.module.css +4 -2
  427. package/src/inputs/multiselect/multiselect.tsx +2 -1
  428. package/src/inputs/multiselect/multiselect_inline_values.tsx +3 -2
  429. package/src/inputs/multiselect/multiselect_values.module.css +28 -26
  430. package/src/inputs/multiselect/multiselect_values.tsx +3 -3
  431. package/src/inputs/phone_number_input/phone_number_input.module.css +54 -52
  432. package/src/inputs/phone_number_input/phone_number_input.tsx +15 -6
  433. package/src/inputs/radio/radio.module.css +48 -66
  434. package/src/inputs/radio/radio.tsx +2 -2
  435. package/src/inputs/select/select.module.css +57 -59
  436. package/src/inputs/select/select.tsx +4 -2
  437. package/src/inputs/slider/slider.module.css +151 -149
  438. package/src/inputs/slider/slider.tsx +1 -1
  439. package/src/inputs/suggestions/suggestion_item.module.css +35 -53
  440. package/src/inputs/suggestions/suggestion_item.tsx +1 -1
  441. package/src/inputs/suggestions/suggestion_list.module.css +29 -27
  442. package/src/inputs/suggestions/suggestion_list.tsx +6 -3
  443. package/src/inputs/switch/switch.module.css +111 -109
  444. package/src/inputs/switch/switch.tsx +3 -3
  445. package/src/inputs/textarea/textarea.module.css +47 -65
  446. package/src/inputs/textarea/textarea.tsx +1 -1
  447. package/src/inputs/unit_input/unit_input.module.css +20 -18
  448. package/src/inputs/unit_input/unit_input.tsx +3 -3
  449. package/src/layouts/body/h_body.module.css +7 -4
  450. package/src/layouts/body/h_body.tsx +1 -1
  451. package/src/layouts/body/v_body.module.css +6 -4
  452. package/src/layouts/column/column.module.css +30 -28
  453. package/src/layouts/column/column.tsx +2 -2
  454. package/src/layouts/divider/divider.module.css +103 -101
  455. package/src/layouts/divider/divider.tsx +1 -2
  456. package/src/layouts/footer/footer.module.css +24 -21
  457. package/src/layouts/grid/grid.module.css +20 -18
  458. package/src/layouts/grid/grid.tsx +6 -1
  459. package/src/layouts/header/header.module.css +7 -5
  460. package/src/layouts/header/header.tsx +1 -1
  461. package/src/layouts/list/section_header.module.css +16 -14
  462. package/src/layouts/list/section_header.tsx +7 -1
  463. package/src/layouts/scaffold/scaffold.module.css +6 -4
  464. package/src/layouts/sidebar_end/sidebar_end.module.css +28 -26
  465. package/src/layouts/sidebar_end/sidebar_end.tsx +2 -2
  466. package/src/layouts/sidebar_start/sidebar_start.module.css +28 -26
  467. package/src/layouts/sidebar_start/sidebar_start.tsx +2 -2
  468. package/src/layouts/utility_bar/utility_bar.module.css +5 -3
  469. package/src/layouts/utility_bar/utility_bar.tsx +1 -6
  470. package/src/overlay/context_menu/context_menu.tsx +1 -1
  471. package/src/overlay/frame/frame.module.css +6 -4
  472. package/src/overlay/frame/frame_stories.module.css +14 -12
  473. package/src/overlay/menu/menu.module.css +30 -28
  474. package/src/overlay/menu/menu.tsx +2 -2
  475. package/src/overlay/popper/legacy/popper.module.css +10 -8
  476. package/src/overlay/popper/legacy/popper.tsx +2 -1
  477. package/src/overlay/popper/preview_popper.tsx +1 -1
  478. package/src/overlay/portal/portal.css +33 -31
  479. package/src/overlay/portal/portal_platform.tsx +5 -5
  480. package/src/overlay/tethered/tethered.module.css +9 -7
  481. package/src/stacks/box/bottom_resize_handle.module.css +11 -9
  482. package/src/stacks/box/bottom_resize_handle.tsx +1 -1
  483. package/src/stacks/box/box.tsx +1 -1
  484. package/src/stacks/box/end_resize_handle.module.css +16 -14
  485. package/src/stacks/box/end_resize_handle.tsx +1 -1
  486. package/src/stacks/box/left_resize_handle.module.css +11 -9
  487. package/src/stacks/box/left_resize_handle.tsx +1 -1
  488. package/src/stacks/box/right_resize_handle.module.css +11 -9
  489. package/src/stacks/box/right_resize_handle.tsx +1 -1
  490. package/src/stacks/box/start_resize_handle.module.css +16 -14
  491. package/src/stacks/box/start_resize_handle.tsx +1 -1
  492. package/src/stacks/box/top_resize_handle.module.css +11 -9
  493. package/src/stacks/box/top_resize_handle.tsx +1 -1
  494. package/src/stacks/collapsible_box.module.css +45 -29
  495. package/src/stacks/demo.module.css +5 -3
  496. package/src/stacks/h_collapsible_box.tsx +5 -1
  497. package/src/stacks/h_stack.tsx +1 -1
  498. package/src/stacks/spacer.tsx +1 -1
  499. package/src/stacks/stack.module.css +400 -393
  500. package/src/stacks/story_components/circle.module.css +8 -6
  501. package/src/stacks/story_components/circle.tsx +1 -1
  502. package/src/stacks/story_components/picture_placeholder.module.css +4 -2
  503. package/src/stacks/story_components/picture_placeholder.tsx +5 -1
  504. package/src/stacks/story_components/rect.module.css +9 -7
  505. package/src/stacks/story_components/rect.tsx +1 -1
  506. package/src/stacks/v_collapsible_box.tsx +5 -1
  507. package/src/stacks/v_stack.tsx +1 -1
  508. package/src/stacks/z_stack.tsx +1 -1
  509. package/src/surfaces/alert/alert.tsx +1 -1
  510. package/src/surfaces/card/card_stories.module.css +13 -11
  511. package/src/surfaces/confirm/confirm.module.css +37 -35
  512. package/src/surfaces/confirm/confirm.tsx +7 -4
  513. package/src/surfaces/drawers/drawer_bottom/drawer_bottom.module.css +4 -2
  514. package/src/surfaces/drawers/drawer_bottom/drawer_bottom.tsx +1 -1
  515. package/src/surfaces/drawers/drawer_end/drawer_end.module.css +4 -2
  516. package/src/surfaces/drawers/drawer_end/drawer_end.tsx +1 -1
  517. package/src/surfaces/drawers/drawer_start/drawer_start.module.css +4 -2
  518. package/src/surfaces/drawers/drawer_start/drawer_start.tsx +1 -1
  519. package/src/surfaces/drawers/drawer_top/drawer_top.module.css +4 -2
  520. package/src/surfaces/drawers/drawer_top/drawer_top.tsx +1 -1
  521. package/src/surfaces/modal/modal.module.css +5 -3
  522. package/src/surfaces/page/h_page.tsx +1 -1
  523. package/src/surfaces/page/page.module.css +12 -10
  524. package/src/surfaces/page/v_page.tsx +1 -1
  525. package/src/surfaces/panel/panel.module.css +8 -7
  526. package/src/surfaces/popover/popover.tsx +1 -1
  527. package/src/surfaces/tooltip/tooltip.module.css +4 -2
  528. package/src/surfaces/window/window.module.css +6 -4
  529. package/src/themes/stylesheets/reset.css +133 -131
  530. package/src/themes/theme.tsx +17 -0
  531. package/src/themes/themes/ergo/ergo_theme.css +505 -515
  532. package/src/themes/themes/windows_98/windows_98.css +1030 -1164
  533. package/src/tokens/badge/badge.module.css +13 -11
  534. package/src/tokens/badge/badge.tsx +2 -2
  535. package/src/tokens/bubble/bubble.module.css +12 -10
  536. package/src/tokens/bubble/bubble.tsx +1 -1
  537. package/src/tokens/chip/chip.module.css +14 -12
  538. package/src/tokens/chip/chip.tsx +1 -1
  539. package/src/typography/body_text/body_text.module.css +61 -59
  540. package/src/typography/body_text/body_text.tsx +1 -1
  541. package/src/typography/callout/callout.module.css +56 -54
  542. package/src/typography/callout/callout.tsx +1 -1
  543. package/src/typography/caption/caption.module.css +56 -54
  544. package/src/typography/caption/caption.tsx +1 -1
  545. package/src/typography/footnote/footnote.module.css +56 -54
  546. package/src/typography/footnote/footnote.tsx +1 -1
  547. package/src/typography/headline/headline.module.css +57 -55
  548. package/src/typography/headline/headline.tsx +1 -1
  549. package/src/typography/subheadline/subheadline.module.css +57 -55
  550. package/src/typography/subheadline/subheadline.tsx +1 -1
  551. package/src/typography/title/title.module.css +54 -52
  552. package/src/typography/title/title.tsx +1 -1
  553. package/src/utils/dnd/draggable/draggable.module.css +8 -6
  554. package/dist/form/field/common/types.js +0 -2
  555. package/dist/form/field/common/types.js.map +0 -1
  556. package/dist/inputs/mask_input/mask_config.js +0 -2
  557. package/dist/inputs/mask_input/mask_config.js.map +0 -1
  558. package/dist/inputs/mask_input/mask_cursor.js +0 -2
  559. package/dist/inputs/mask_input/mask_cursor.js.map +0 -1
  560. package/dist/inputs/multiselect/multiselect_row.d.ts +0 -10
  561. package/dist/inputs/multiselect/multiselect_row.d.ts.map +0 -1
  562. package/dist/inputs/multiselect/multiselect_row.js +0 -35
  563. package/dist/inputs/multiselect/multiselect_row.js.map +0 -1
  564. package/dist/inputs/switch/switch_row.d.ts +0 -8
  565. package/dist/inputs/switch/switch_row.d.ts.map +0 -1
  566. package/dist/inputs/switch/switch_row.js +0 -16
  567. package/dist/inputs/switch/switch_row.js.map +0 -1
  568. package/dist/inputs/textarea/textarea_row.d.ts +0 -8
  569. package/dist/inputs/textarea/textarea_row.d.ts.map +0 -1
  570. package/dist/inputs/textarea/textarea_row.js +0 -12
  571. package/dist/inputs/textarea/textarea_row.js.map +0 -1
  572. package/dist/overlay/tethered/types.js +0 -2
  573. package/dist/overlay/tethered/types.js.map +0 -1
  574. package/dist/portal_platform.css +0 -1
  575. package/dist/stacks/box/handle_props.js +0 -2
  576. package/dist/stacks/box/handle_props.js.map +0 -1
  577. package/dist/utils/calendar/calendar_date.js +0 -2
  578. package/dist/utils/calendar/calendar_date.js.map +0 -1
  579. package/dist/utils/dnd/types.js +0 -2
  580. package/dist/utils/dnd/types.js.map +0 -1
  581. package/src/inputs/multiselect/multiselect_row.tsx +0 -57
  582. package/src/inputs/switch/TODO.md +0 -3
  583. package/src/inputs/switch/switch_row.tsx +0 -33
  584. package/src/inputs/textarea/textarea_row.tsx +0 -24
@@ -0,0 +1,3777 @@
1
+ import { c as mt, _ as Z, i as ht, s as yt, j as bt, e as Ae, A as xt, f as F, b as vt, S as St, r as wt } from "./showcase-WfP6kBEb.js";
2
+ import G, { useState as We, useEffect as _t, useCallback as At } from "react";
3
+ function xe(e) {
4
+ "@babel/helpers - typeof";
5
+ return xe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
6
+ return typeof r;
7
+ } : function(r) {
8
+ return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
9
+ }, xe(e);
10
+ }
11
+ function Et(e, r) {
12
+ if (xe(e) != "object" || !e) return e;
13
+ var t = e[Symbol.toPrimitive];
14
+ if (t !== void 0) {
15
+ var a = t.call(e, r);
16
+ if (xe(a) != "object") return a;
17
+ throw new TypeError("@@toPrimitive must return a primitive value.");
18
+ }
19
+ return (r === "string" ? String : Number)(e);
20
+ }
21
+ function kt(e) {
22
+ var r = Et(e, "string");
23
+ return xe(r) == "symbol" ? r : r + "";
24
+ }
25
+ function Ye(e, r, t) {
26
+ return (r = kt(r)) in e ? Object.defineProperty(e, r, {
27
+ value: t,
28
+ enumerable: !0,
29
+ configurable: !0,
30
+ writable: !0
31
+ }) : e[r] = t, e;
32
+ }
33
+ function Ct(e, r) {
34
+ if (e == null) return {};
35
+ var t, a, n = mt(e, r);
36
+ if (Object.getOwnPropertySymbols) {
37
+ var o = Object.getOwnPropertySymbols(e);
38
+ for (a = 0; a < o.length; a++) t = o[a], r.indexOf(t) === -1 && {}.propertyIsEnumerable.call(e, t) && (n[t] = e[t]);
39
+ }
40
+ return n;
41
+ }
42
+ var Ft = F({
43
+ "../node_modules/refractor/lang/bash.js"(e, r) {
44
+ r.exports = t, t.displayName = "bash", t.aliases = ["shell"];
45
+ function t(a) {
46
+ (function(n) {
47
+ var o = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", u = {
48
+ pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
49
+ lookbehind: !0,
50
+ alias: "punctuation",
51
+ // this looks reasonably well in all themes
52
+ inside: null
53
+ // see below
54
+ }, d = {
55
+ bash: u,
56
+ environment: {
57
+ pattern: RegExp("\\$" + o),
58
+ alias: "constant"
59
+ },
60
+ variable: [
61
+ // [0]: Arithmetic Environment
62
+ {
63
+ pattern: /\$?\(\([\s\S]+?\)\)/,
64
+ greedy: !0,
65
+ inside: {
66
+ // If there is a $ sign at the beginning highlight $(( and )) as variable
67
+ variable: [
68
+ {
69
+ pattern: /(^\$\(\([\s\S]+)\)\)/,
70
+ lookbehind: !0
71
+ },
72
+ /^\$\(\(/
73
+ ],
74
+ number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,
75
+ // Operators according to https://www.gnu.org/software/bash/manual/bashref.html#Shell-Arithmetic
76
+ operator: /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,
77
+ // If there is no $ sign at the beginning highlight (( and )) as punctuation
78
+ punctuation: /\(\(?|\)\)?|,|;/
79
+ }
80
+ },
81
+ // [1]: Command Substitution
82
+ {
83
+ pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,
84
+ greedy: !0,
85
+ inside: {
86
+ variable: /^\$\(|^`|\)$|`$/
87
+ }
88
+ },
89
+ // [2]: Brace expansion
90
+ {
91
+ pattern: /\$\{[^}]+\}/,
92
+ greedy: !0,
93
+ inside: {
94
+ operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
95
+ punctuation: /[\[\]]/,
96
+ environment: {
97
+ pattern: RegExp("(\\{)" + o),
98
+ lookbehind: !0,
99
+ alias: "constant"
100
+ }
101
+ }
102
+ },
103
+ /\$(?:\w+|[#?*!@$])/
104
+ ],
105
+ // Escape sequences from echo and printf's manuals, and escaped quotes.
106
+ entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
107
+ };
108
+ n.languages.bash = {
109
+ shebang: {
110
+ pattern: /^#!\s*\/.*/,
111
+ alias: "important"
112
+ },
113
+ comment: {
114
+ pattern: /(^|[^"{\\$])#.*/,
115
+ lookbehind: !0
116
+ },
117
+ "function-name": [
118
+ // a) function foo {
119
+ // b) foo() {
120
+ // c) function foo() {
121
+ // but not “foo {”
122
+ {
123
+ // a) and c)
124
+ pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,
125
+ lookbehind: !0,
126
+ alias: "function"
127
+ },
128
+ {
129
+ // b)
130
+ pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/,
131
+ alias: "function"
132
+ }
133
+ ],
134
+ // Highlight variable names as variables in for and select beginnings.
135
+ "for-or-select": {
136
+ pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/,
137
+ alias: "variable",
138
+ lookbehind: !0
139
+ },
140
+ // Highlight variable names as variables in the left-hand part
141
+ // of assignments (“=” and “+=”).
142
+ "assign-left": {
143
+ pattern: /(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,
144
+ inside: {
145
+ environment: {
146
+ pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + o),
147
+ lookbehind: !0,
148
+ alias: "constant"
149
+ }
150
+ },
151
+ alias: "variable",
152
+ lookbehind: !0
153
+ },
154
+ string: [
155
+ // Support for Here-documents https://en.wikipedia.org/wiki/Here_document
156
+ {
157
+ pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
158
+ lookbehind: !0,
159
+ greedy: !0,
160
+ inside: d
161
+ },
162
+ // Here-document with quotes around the tag
163
+ // → No expansion (so no “inside”).
164
+ {
165
+ pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,
166
+ lookbehind: !0,
167
+ greedy: !0,
168
+ inside: {
169
+ bash: u
170
+ }
171
+ },
172
+ // “Normal” string
173
+ {
174
+ // https://www.gnu.org/software/bash/manual/html_node/Double-Quotes.html
175
+ pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
176
+ lookbehind: !0,
177
+ greedy: !0,
178
+ inside: d
179
+ },
180
+ {
181
+ // https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
182
+ pattern: /(^|[^$\\])'[^']*'/,
183
+ lookbehind: !0,
184
+ greedy: !0
185
+ },
186
+ {
187
+ // https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html
188
+ pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
189
+ greedy: !0,
190
+ inside: {
191
+ entity: d.entity
192
+ }
193
+ }
194
+ ],
195
+ environment: {
196
+ pattern: RegExp("\\$?" + o),
197
+ alias: "constant"
198
+ },
199
+ variable: d.variable,
200
+ function: {
201
+ pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
202
+ lookbehind: !0
203
+ },
204
+ keyword: {
205
+ pattern: /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,
206
+ lookbehind: !0
207
+ },
208
+ // https://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html
209
+ builtin: {
210
+ pattern: /(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,
211
+ lookbehind: !0,
212
+ // Alias added to make those easier to distinguish from strings.
213
+ alias: "class-name"
214
+ },
215
+ boolean: {
216
+ pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,
217
+ lookbehind: !0
218
+ },
219
+ "file-descriptor": {
220
+ pattern: /\B&\d\b/,
221
+ alias: "important"
222
+ },
223
+ operator: {
224
+ // Lots of redirections here, but not just that.
225
+ pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,
226
+ inside: {
227
+ "file-descriptor": {
228
+ pattern: /^\d/,
229
+ alias: "important"
230
+ }
231
+ }
232
+ },
233
+ punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,
234
+ number: {
235
+ pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
236
+ lookbehind: !0
237
+ }
238
+ }, u.inside = n.languages.bash;
239
+ for (var l = [
240
+ "comment",
241
+ "function-name",
242
+ "for-or-select",
243
+ "assign-left",
244
+ "string",
245
+ "environment",
246
+ "function",
247
+ "keyword",
248
+ "builtin",
249
+ "boolean",
250
+ "file-descriptor",
251
+ "operator",
252
+ "punctuation",
253
+ "number"
254
+ ], f = d.variable[1].inside, h = 0; h < l.length; h++)
255
+ f[l[h]] = n.languages.bash[l[h]];
256
+ n.languages.shell = n.languages.bash;
257
+ })(a);
258
+ }
259
+ }
260
+ }), Je = F({
261
+ "../node_modules/refractor/lang/css.js"(e, r) {
262
+ r.exports = t, t.displayName = "css", t.aliases = [];
263
+ function t(a) {
264
+ (function(n) {
265
+ var o = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
266
+ n.languages.css = {
267
+ comment: /\/\*[\s\S]*?\*\//,
268
+ atrule: {
269
+ pattern: /@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,
270
+ inside: {
271
+ rule: /^@[\w-]+/,
272
+ "selector-function-argument": {
273
+ pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
274
+ lookbehind: !0,
275
+ alias: "selector"
276
+ },
277
+ keyword: {
278
+ pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
279
+ lookbehind: !0
280
+ }
281
+ // See rest below
282
+ }
283
+ },
284
+ url: {
285
+ // https://drafts.csswg.org/css-values-3/#urls
286
+ pattern: RegExp(
287
+ "\\burl\\((?:" + o.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)",
288
+ "i"
289
+ ),
290
+ greedy: !0,
291
+ inside: {
292
+ function: /^url/i,
293
+ punctuation: /^\(|\)$/,
294
+ string: {
295
+ pattern: RegExp("^" + o.source + "$"),
296
+ alias: "url"
297
+ }
298
+ }
299
+ },
300
+ selector: {
301
+ pattern: RegExp(
302
+ `(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + o.source + ")*(?=\\s*\\{)"
303
+ ),
304
+ lookbehind: !0
305
+ },
306
+ string: {
307
+ pattern: o,
308
+ greedy: !0
309
+ },
310
+ property: {
311
+ pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
312
+ lookbehind: !0
313
+ },
314
+ important: /!important\b/i,
315
+ function: {
316
+ pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
317
+ lookbehind: !0
318
+ },
319
+ punctuation: /[(){};:,]/
320
+ }, n.languages.css.atrule.inside.rest = n.languages.css;
321
+ var u = n.languages.markup;
322
+ u && (u.tag.addInlined("style", "css"), u.tag.addAttribute("style", "css"));
323
+ })(a);
324
+ }
325
+ }
326
+ }), jt = F({
327
+ "../node_modules/refractor/lang/graphql.js"(e, r) {
328
+ r.exports = t, t.displayName = "graphql", t.aliases = [];
329
+ function t(a) {
330
+ a.languages.graphql = {
331
+ comment: /#.*/,
332
+ description: {
333
+ pattern: /(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,
334
+ greedy: !0,
335
+ alias: "string",
336
+ inside: {
337
+ "language-markdown": {
338
+ pattern: /(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,
339
+ lookbehind: !0,
340
+ inside: a.languages.markdown
341
+ }
342
+ }
343
+ },
344
+ string: {
345
+ pattern: /"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,
346
+ greedy: !0
347
+ },
348
+ number: /(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
349
+ boolean: /\b(?:false|true)\b/,
350
+ variable: /\$[a-z_]\w*/i,
351
+ directive: {
352
+ pattern: /@[a-z_]\w*/i,
353
+ alias: "function"
354
+ },
355
+ "attr-name": {
356
+ pattern: /\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,
357
+ greedy: !0
358
+ },
359
+ "atom-input": {
360
+ pattern: /\b[A-Z]\w*Input\b/,
361
+ alias: "class-name"
362
+ },
363
+ scalar: /\b(?:Boolean|Float|ID|Int|String)\b/,
364
+ constant: /\b[A-Z][A-Z_\d]*\b/,
365
+ "class-name": {
366
+ pattern: /(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,
367
+ lookbehind: !0
368
+ },
369
+ fragment: {
370
+ pattern: /(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,
371
+ lookbehind: !0,
372
+ alias: "function"
373
+ },
374
+ "definition-mutation": {
375
+ pattern: /(\bmutation\s+)[a-zA-Z_]\w*/,
376
+ lookbehind: !0,
377
+ alias: "function"
378
+ },
379
+ "definition-query": {
380
+ pattern: /(\bquery\s+)[a-zA-Z_]\w*/,
381
+ lookbehind: !0,
382
+ alias: "function"
383
+ },
384
+ keyword: /\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,
385
+ operator: /[!=|&]|\.{3}/,
386
+ "property-query": /\w+(?=\s*\()/,
387
+ object: /\w+(?=\s*\{)/,
388
+ punctuation: /[!(){}\[\]:=,]/,
389
+ property: /\w+/
390
+ }, a.hooks.add("after-tokenize", function(n) {
391
+ if (n.language !== "graphql")
392
+ return;
393
+ var o = n.tokens.filter(function(A) {
394
+ return typeof A != "string" && A.type !== "comment" && A.type !== "scalar";
395
+ }), u = 0;
396
+ function d(A) {
397
+ return o[u + A];
398
+ }
399
+ function l(A, i) {
400
+ i = i || 0;
401
+ for (var s = 0; s < A.length; s++) {
402
+ var p = d(s + i);
403
+ if (!p || p.type !== A[s])
404
+ return !1;
405
+ }
406
+ return !0;
407
+ }
408
+ function f(A, i) {
409
+ for (var s = 1, p = u; p < o.length; p++) {
410
+ var g = o[p], m = g.content;
411
+ if (g.type === "punctuation" && typeof m == "string") {
412
+ if (A.test(m))
413
+ s++;
414
+ else if (i.test(m) && (s--, s === 0))
415
+ return p;
416
+ }
417
+ }
418
+ return -1;
419
+ }
420
+ function h(A, i) {
421
+ var s = A.alias;
422
+ s ? Array.isArray(s) || (A.alias = s = [s]) : A.alias = s = [], s.push(i);
423
+ }
424
+ for (; u < o.length; ) {
425
+ var C = o[u++];
426
+ if (C.type === "keyword" && C.content === "mutation") {
427
+ var x = [];
428
+ if (l(["definition-mutation", "punctuation"]) && d(1).content === "(") {
429
+ u += 2;
430
+ var b = f(/^\($/, /^\)$/);
431
+ if (b === -1)
432
+ continue;
433
+ for (; u < b; u++) {
434
+ var y = d(0);
435
+ y.type === "variable" && (h(y, "variable-input"), x.push(y.content));
436
+ }
437
+ u = b + 1;
438
+ }
439
+ if (l(["punctuation", "property-query"]) && d(0).content === "{" && (u++, h(d(0), "property-mutation"), x.length > 0)) {
440
+ var S = f(/^\{$/, /^\}$/);
441
+ if (S === -1)
442
+ continue;
443
+ for (var E = u; E < S; E++) {
444
+ var w = o[E];
445
+ w.type === "variable" && x.indexOf(w.content) >= 0 && h(w, "variable-input");
446
+ }
447
+ }
448
+ }
449
+ }
450
+ });
451
+ }
452
+ }
453
+ }), Nt = F({
454
+ "../node_modules/refractor/lang/js-extras.js"(e, r) {
455
+ r.exports = t, t.displayName = "jsExtras", t.aliases = [];
456
+ function t(a) {
457
+ (function(n) {
458
+ n.languages.insertBefore("javascript", "function-variable", {
459
+ "method-variable": {
460
+ pattern: RegExp(
461
+ "(\\.\\s*)" + n.languages.javascript["function-variable"].pattern.source
462
+ ),
463
+ lookbehind: !0,
464
+ alias: ["function-variable", "method", "function", "property-access"]
465
+ }
466
+ }), n.languages.insertBefore("javascript", "function", {
467
+ method: {
468
+ pattern: RegExp(
469
+ "(\\.\\s*)" + n.languages.javascript.function.source
470
+ ),
471
+ lookbehind: !0,
472
+ alias: ["function", "property-access"]
473
+ }
474
+ }), n.languages.insertBefore("javascript", "constant", {
475
+ "known-class-name": [
476
+ {
477
+ // standard built-ins
478
+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects
479
+ pattern: /\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,
480
+ alias: "class-name"
481
+ },
482
+ {
483
+ // errors
484
+ pattern: /\b(?:[A-Z]\w*)Error\b/,
485
+ alias: "class-name"
486
+ }
487
+ ]
488
+ });
489
+ function o(C, x) {
490
+ return RegExp(
491
+ C.replace(/<ID>/g, function() {
492
+ return /(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source;
493
+ }),
494
+ x
495
+ );
496
+ }
497
+ n.languages.insertBefore("javascript", "keyword", {
498
+ imports: {
499
+ // https://tc39.es/ecma262/#sec-imports
500
+ pattern: o(
501
+ /(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source
502
+ ),
503
+ lookbehind: !0,
504
+ inside: n.languages.javascript
505
+ },
506
+ exports: {
507
+ // https://tc39.es/ecma262/#sec-exports
508
+ pattern: o(
509
+ /(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source
510
+ ),
511
+ lookbehind: !0,
512
+ inside: n.languages.javascript
513
+ }
514
+ }), n.languages.javascript.keyword.unshift(
515
+ {
516
+ pattern: /\b(?:as|default|export|from|import)\b/,
517
+ alias: "module"
518
+ },
519
+ {
520
+ pattern: /\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,
521
+ alias: "control-flow"
522
+ },
523
+ {
524
+ pattern: /\bnull\b/,
525
+ alias: ["null", "nil"]
526
+ },
527
+ {
528
+ pattern: /\bundefined\b/,
529
+ alias: "nil"
530
+ }
531
+ ), n.languages.insertBefore("javascript", "operator", {
532
+ spread: {
533
+ pattern: /\.{3}/,
534
+ alias: "operator"
535
+ },
536
+ arrow: {
537
+ pattern: /=>/,
538
+ alias: "operator"
539
+ }
540
+ }), n.languages.insertBefore("javascript", "punctuation", {
541
+ "property-access": {
542
+ pattern: o(/(\.\s*)#?<ID>/.source),
543
+ lookbehind: !0
544
+ },
545
+ "maybe-class-name": {
546
+ pattern: /(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,
547
+ lookbehind: !0
548
+ },
549
+ dom: {
550
+ // this contains only a few commonly used DOM variables
551
+ pattern: /\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,
552
+ alias: "variable"
553
+ },
554
+ console: {
555
+ pattern: /\bconsole(?=\s*\.)/,
556
+ alias: "class-name"
557
+ }
558
+ });
559
+ for (var u = [
560
+ "function",
561
+ "function-variable",
562
+ "method",
563
+ "method-variable",
564
+ "property-access"
565
+ ], d = 0; d < u.length; d++) {
566
+ var l = u[d], f = n.languages.javascript[l];
567
+ n.util.type(f) === "RegExp" && (f = n.languages.javascript[l] = {
568
+ pattern: f
569
+ });
570
+ var h = f.inside || {};
571
+ f.inside = h, h["maybe-class-name"] = /^[A-Z][\s\S]*/;
572
+ }
573
+ })(a);
574
+ }
575
+ }
576
+ }), $t = F({
577
+ "../node_modules/refractor/lang/json.js"(e, r) {
578
+ r.exports = t, t.displayName = "json", t.aliases = ["webmanifest"];
579
+ function t(a) {
580
+ a.languages.json = {
581
+ property: {
582
+ pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,
583
+ lookbehind: !0,
584
+ greedy: !0
585
+ },
586
+ string: {
587
+ pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,
588
+ lookbehind: !0,
589
+ greedy: !0
590
+ },
591
+ comment: {
592
+ pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,
593
+ greedy: !0
594
+ },
595
+ number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
596
+ punctuation: /[{}[\],]/,
597
+ operator: /:/,
598
+ boolean: /\b(?:false|true)\b/,
599
+ null: {
600
+ pattern: /\bnull\b/,
601
+ alias: "keyword"
602
+ }
603
+ }, a.languages.webmanifest = a.languages.json;
604
+ }
605
+ }
606
+ }), Qe = F({
607
+ "../node_modules/refractor/lang/jsx.js"(e, r) {
608
+ r.exports = t, t.displayName = "jsx", t.aliases = [];
609
+ function t(a) {
610
+ (function(n) {
611
+ var o = n.util.clone(n.languages.javascript), u = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, d = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, l = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
612
+ function f(x, b) {
613
+ return x = x.replace(/<S>/g, function() {
614
+ return u;
615
+ }).replace(/<BRACES>/g, function() {
616
+ return d;
617
+ }).replace(/<SPREAD>/g, function() {
618
+ return l;
619
+ }), RegExp(x, b);
620
+ }
621
+ l = f(l).source, n.languages.jsx = n.languages.extend("markup", o), n.languages.jsx.tag.pattern = f(
622
+ /<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source
623
+ ), n.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/, n.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/, n.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, n.languages.jsx.tag.inside.comment = o.comment, n.languages.insertBefore(
624
+ "inside",
625
+ "attr-name",
626
+ {
627
+ spread: {
628
+ pattern: f(/<SPREAD>/.source),
629
+ inside: n.languages.jsx
630
+ }
631
+ },
632
+ n.languages.jsx.tag
633
+ ), n.languages.insertBefore(
634
+ "inside",
635
+ "special-attr",
636
+ {
637
+ script: {
638
+ // Allow for two levels of nesting
639
+ pattern: f(/=<BRACES>/.source),
640
+ alias: "language-javascript",
641
+ inside: {
642
+ "script-punctuation": {
643
+ pattern: /^=(?=\{)/,
644
+ alias: "punctuation"
645
+ },
646
+ rest: n.languages.jsx
647
+ }
648
+ }
649
+ },
650
+ n.languages.jsx.tag
651
+ );
652
+ var h = function(x) {
653
+ return x ? typeof x == "string" ? x : typeof x.content == "string" ? x.content : x.content.map(h).join("") : "";
654
+ }, C = function(x) {
655
+ for (var b = [], y = 0; y < x.length; y++) {
656
+ var S = x[y], E = !1;
657
+ if (typeof S != "string" && (S.type === "tag" && S.content[0] && S.content[0].type === "tag" ? S.content[0].content[0].content === "</" ? b.length > 0 && b[b.length - 1].tagName === h(S.content[0].content[1]) && b.pop() : S.content[S.content.length - 1].content === "/>" || b.push({
658
+ tagName: h(S.content[0].content[1]),
659
+ openedBraces: 0
660
+ }) : b.length > 0 && S.type === "punctuation" && S.content === "{" ? b[b.length - 1].openedBraces++ : b.length > 0 && b[b.length - 1].openedBraces > 0 && S.type === "punctuation" && S.content === "}" ? b[b.length - 1].openedBraces-- : E = !0), (E || typeof S == "string") && b.length > 0 && b[b.length - 1].openedBraces === 0) {
661
+ var w = h(S);
662
+ y < x.length - 1 && (typeof x[y + 1] == "string" || x[y + 1].type === "plain-text") && (w += h(x[y + 1]), x.splice(y + 1, 1)), y > 0 && (typeof x[y - 1] == "string" || x[y - 1].type === "plain-text") && (w = h(x[y - 1]) + w, x.splice(y - 1, 1), y--), x[y] = new n.Token(
663
+ "plain-text",
664
+ w,
665
+ null,
666
+ w
667
+ );
668
+ }
669
+ S.content && typeof S.content != "string" && C(S.content);
670
+ }
671
+ };
672
+ n.hooks.add("after-tokenize", function(x) {
673
+ x.language !== "jsx" && x.language !== "tsx" || C(x.tokens);
674
+ });
675
+ })(a);
676
+ }
677
+ }
678
+ }), Ot = F({
679
+ "../node_modules/refractor/lang/markdown.js"(e, r) {
680
+ r.exports = t, t.displayName = "markdown", t.aliases = ["md"];
681
+ function t(a) {
682
+ (function(n) {
683
+ var o = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
684
+ function u(y) {
685
+ return y = y.replace(/<inner>/g, function() {
686
+ return o;
687
+ }), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + y + ")");
688
+ }
689
+ var d = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, l = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(
690
+ /__/g,
691
+ function() {
692
+ return d;
693
+ }
694
+ ), f = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;
695
+ n.languages.markdown = n.languages.extend("markup", {}), n.languages.insertBefore("markdown", "prolog", {
696
+ "front-matter-block": {
697
+ pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,
698
+ lookbehind: !0,
699
+ greedy: !0,
700
+ inside: {
701
+ punctuation: /^---|---$/,
702
+ "front-matter": {
703
+ pattern: /\S+(?:\s+\S+)*/,
704
+ alias: ["yaml", "language-yaml"],
705
+ inside: n.languages.yaml
706
+ }
707
+ }
708
+ },
709
+ blockquote: {
710
+ // > ...
711
+ pattern: /^>(?:[\t ]*>)*/m,
712
+ alias: "punctuation"
713
+ },
714
+ table: {
715
+ pattern: RegExp(
716
+ "^" + l + f + "(?:" + l + ")*",
717
+ "m"
718
+ ),
719
+ inside: {
720
+ "table-data-rows": {
721
+ pattern: RegExp(
722
+ "^(" + l + f + ")(?:" + l + ")*$"
723
+ ),
724
+ lookbehind: !0,
725
+ inside: {
726
+ "table-data": {
727
+ pattern: RegExp(d),
728
+ inside: n.languages.markdown
729
+ },
730
+ punctuation: /\|/
731
+ }
732
+ },
733
+ "table-line": {
734
+ pattern: RegExp("^(" + l + ")" + f + "$"),
735
+ lookbehind: !0,
736
+ inside: {
737
+ punctuation: /\||:?-{3,}:?/
738
+ }
739
+ },
740
+ "table-header-row": {
741
+ pattern: RegExp("^" + l + "$"),
742
+ inside: {
743
+ "table-header": {
744
+ pattern: RegExp(d),
745
+ alias: "important",
746
+ inside: n.languages.markdown
747
+ },
748
+ punctuation: /\|/
749
+ }
750
+ }
751
+ }
752
+ },
753
+ code: [
754
+ {
755
+ // Prefixed by 4 spaces or 1 tab and preceded by an empty line
756
+ pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,
757
+ lookbehind: !0,
758
+ alias: "keyword"
759
+ },
760
+ {
761
+ // ```optional language
762
+ // code block
763
+ // ```
764
+ pattern: /^```[\s\S]*?^```$/m,
765
+ greedy: !0,
766
+ inside: {
767
+ "code-block": {
768
+ pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,
769
+ lookbehind: !0
770
+ },
771
+ "code-language": {
772
+ pattern: /^(```).+/,
773
+ lookbehind: !0
774
+ },
775
+ punctuation: /```/
776
+ }
777
+ }
778
+ ],
779
+ title: [
780
+ {
781
+ // title 1
782
+ // =======
783
+ // title 2
784
+ // -------
785
+ pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,
786
+ alias: "important",
787
+ inside: {
788
+ punctuation: /==+$|--+$/
789
+ }
790
+ },
791
+ {
792
+ // # title 1
793
+ // ###### title 6
794
+ pattern: /(^\s*)#.+/m,
795
+ lookbehind: !0,
796
+ alias: "important",
797
+ inside: {
798
+ punctuation: /^#+|#+$/
799
+ }
800
+ }
801
+ ],
802
+ hr: {
803
+ // ***
804
+ // ---
805
+ // * * *
806
+ // -----------
807
+ pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,
808
+ lookbehind: !0,
809
+ alias: "punctuation"
810
+ },
811
+ list: {
812
+ // * item
813
+ // + item
814
+ // - item
815
+ // 1. item
816
+ pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,
817
+ lookbehind: !0,
818
+ alias: "punctuation"
819
+ },
820
+ "url-reference": {
821
+ // [id]: http://example.com "Optional title"
822
+ // [id]: http://example.com 'Optional title'
823
+ // [id]: http://example.com (Optional title)
824
+ // [id]: <http://example.com> "Optional title"
825
+ pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,
826
+ inside: {
827
+ variable: {
828
+ pattern: /^(!?\[)[^\]]+/,
829
+ lookbehind: !0
830
+ },
831
+ string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,
832
+ punctuation: /^[\[\]!:]|[<>]/
833
+ },
834
+ alias: "url"
835
+ },
836
+ bold: {
837
+ // **strong**
838
+ // __strong__
839
+ // allow one nested instance of italic text using the same delimiter
840
+ pattern: u(
841
+ /\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source
842
+ ),
843
+ lookbehind: !0,
844
+ greedy: !0,
845
+ inside: {
846
+ content: {
847
+ pattern: /(^..)[\s\S]+(?=..$)/,
848
+ lookbehind: !0,
849
+ inside: {}
850
+ // see below
851
+ },
852
+ punctuation: /\*\*|__/
853
+ }
854
+ },
855
+ italic: {
856
+ // *em*
857
+ // _em_
858
+ // allow one nested instance of bold text using the same delimiter
859
+ pattern: u(
860
+ /\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source
861
+ ),
862
+ lookbehind: !0,
863
+ greedy: !0,
864
+ inside: {
865
+ content: {
866
+ pattern: /(^.)[\s\S]+(?=.$)/,
867
+ lookbehind: !0,
868
+ inside: {}
869
+ // see below
870
+ },
871
+ punctuation: /[*_]/
872
+ }
873
+ },
874
+ strike: {
875
+ // ~~strike through~~
876
+ // ~strike~
877
+ // eslint-disable-next-line regexp/strict
878
+ pattern: u(/(~~?)(?:(?!~)<inner>)+\2/.source),
879
+ lookbehind: !0,
880
+ greedy: !0,
881
+ inside: {
882
+ content: {
883
+ pattern: /(^~~?)[\s\S]+(?=\1$)/,
884
+ lookbehind: !0,
885
+ inside: {}
886
+ // see below
887
+ },
888
+ punctuation: /~~?/
889
+ }
890
+ },
891
+ "code-snippet": {
892
+ // `code`
893
+ // ``code``
894
+ pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,
895
+ lookbehind: !0,
896
+ greedy: !0,
897
+ alias: ["code", "keyword"]
898
+ },
899
+ url: {
900
+ // [example](http://example.com "Optional title")
901
+ // [example][id]
902
+ // [example] [id]
903
+ pattern: u(
904
+ /!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source
905
+ ),
906
+ lookbehind: !0,
907
+ greedy: !0,
908
+ inside: {
909
+ operator: /^!/,
910
+ content: {
911
+ pattern: /(^\[)[^\]]+(?=\])/,
912
+ lookbehind: !0,
913
+ inside: {}
914
+ // see below
915
+ },
916
+ variable: {
917
+ pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/,
918
+ lookbehind: !0
919
+ },
920
+ url: {
921
+ pattern: /(^\]\()[^\s)]+/,
922
+ lookbehind: !0
923
+ },
924
+ string: {
925
+ pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,
926
+ lookbehind: !0
927
+ }
928
+ }
929
+ }
930
+ }), ["url", "bold", "italic", "strike"].forEach(function(y) {
931
+ ["url", "bold", "italic", "strike", "code-snippet"].forEach(function(S) {
932
+ y !== S && (n.languages.markdown[y].inside.content.inside[S] = n.languages.markdown[S]);
933
+ });
934
+ }), n.hooks.add("after-tokenize", function(y) {
935
+ if (y.language !== "markdown" && y.language !== "md")
936
+ return;
937
+ function S(E) {
938
+ if (!(!E || typeof E == "string"))
939
+ for (var w = 0, A = E.length; w < A; w++) {
940
+ var i = E[w];
941
+ if (i.type !== "code") {
942
+ S(i.content);
943
+ continue;
944
+ }
945
+ var s = i.content[1], p = i.content[3];
946
+ if (s && p && s.type === "code-language" && p.type === "code-block" && typeof s.content == "string") {
947
+ var g = s.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
948
+ g = (/[a-z][\w-]*/i.exec(g) || [""])[0].toLowerCase();
949
+ var m = "language-" + g;
950
+ p.alias ? typeof p.alias == "string" ? p.alias = [p.alias, m] : p.alias.push(m) : p.alias = [m];
951
+ }
952
+ }
953
+ }
954
+ S(y.tokens);
955
+ }), n.hooks.add("wrap", function(y) {
956
+ if (y.type === "code-block") {
957
+ for (var S = "", E = 0, w = y.classes.length; E < w; E++) {
958
+ var A = y.classes[E], i = /language-(.+)/.exec(A);
959
+ if (i) {
960
+ S = i[1];
961
+ break;
962
+ }
963
+ }
964
+ var s = n.languages[S];
965
+ if (s)
966
+ y.content = n.highlight(
967
+ b(y.content.value),
968
+ s,
969
+ S
970
+ );
971
+ else if (S && S !== "none" && n.plugins.autoloader) {
972
+ var p = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(Math.random() * 1e16);
973
+ y.attributes.id = p, n.plugins.autoloader.loadLanguages(S, function() {
974
+ var g = document.getElementById(p);
975
+ g && (g.innerHTML = n.highlight(
976
+ g.textContent,
977
+ n.languages[S],
978
+ S
979
+ ));
980
+ });
981
+ }
982
+ }
983
+ });
984
+ var h = RegExp(n.languages.markup.tag.pattern.source, "gi"), C = {
985
+ amp: "&",
986
+ lt: "<",
987
+ gt: ">",
988
+ quot: '"'
989
+ }, x = String.fromCodePoint || String.fromCharCode;
990
+ function b(y) {
991
+ var S = y.replace(h, "");
992
+ return S = S.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(E, w) {
993
+ if (w = w.toLowerCase(), w[0] === "#") {
994
+ var A;
995
+ return w[1] === "x" ? A = parseInt(w.slice(2), 16) : A = Number(w.slice(1)), x(A);
996
+ } else {
997
+ var i = C[w];
998
+ return i || E;
999
+ }
1000
+ }), S;
1001
+ }
1002
+ n.languages.md = n.languages.markdown;
1003
+ })(a);
1004
+ }
1005
+ }
1006
+ }), et = F({
1007
+ "../node_modules/refractor/lang/markup.js"(e, r) {
1008
+ r.exports = t, t.displayName = "markup", t.aliases = ["html", "mathml", "svg", "xml", "ssml", "atom", "rss"];
1009
+ function t(a) {
1010
+ a.languages.markup = {
1011
+ comment: {
1012
+ pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
1013
+ greedy: !0
1014
+ },
1015
+ prolog: {
1016
+ pattern: /<\?[\s\S]+?\?>/,
1017
+ greedy: !0
1018
+ },
1019
+ doctype: {
1020
+ // https://www.w3.org/TR/xml/#NT-doctypedecl
1021
+ pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
1022
+ greedy: !0,
1023
+ inside: {
1024
+ "internal-subset": {
1025
+ pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
1026
+ lookbehind: !0,
1027
+ greedy: !0,
1028
+ inside: null
1029
+ // see below
1030
+ },
1031
+ string: {
1032
+ pattern: /"[^"]*"|'[^']*'/,
1033
+ greedy: !0
1034
+ },
1035
+ punctuation: /^<!|>$|[[\]]/,
1036
+ "doctype-tag": /^DOCTYPE/i,
1037
+ name: /[^\s<>'"]+/
1038
+ }
1039
+ },
1040
+ cdata: {
1041
+ pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
1042
+ greedy: !0
1043
+ },
1044
+ tag: {
1045
+ pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
1046
+ greedy: !0,
1047
+ inside: {
1048
+ tag: {
1049
+ pattern: /^<\/?[^\s>\/]+/,
1050
+ inside: {
1051
+ punctuation: /^<\/?/,
1052
+ namespace: /^[^\s>\/:]+:/
1053
+ }
1054
+ },
1055
+ "special-attr": [],
1056
+ "attr-value": {
1057
+ pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
1058
+ inside: {
1059
+ punctuation: [
1060
+ {
1061
+ pattern: /^=/,
1062
+ alias: "attr-equals"
1063
+ },
1064
+ /"|'/
1065
+ ]
1066
+ }
1067
+ },
1068
+ punctuation: /\/?>/,
1069
+ "attr-name": {
1070
+ pattern: /[^\s>\/]+/,
1071
+ inside: {
1072
+ namespace: /^[^\s>\/:]+:/
1073
+ }
1074
+ }
1075
+ }
1076
+ },
1077
+ entity: [
1078
+ {
1079
+ pattern: /&[\da-z]{1,8};/i,
1080
+ alias: "named-entity"
1081
+ },
1082
+ /&#x?[\da-f]{1,8};/i
1083
+ ]
1084
+ }, a.languages.markup.tag.inside["attr-value"].inside.entity = a.languages.markup.entity, a.languages.markup.doctype.inside["internal-subset"].inside = a.languages.markup, a.hooks.add("wrap", function(n) {
1085
+ n.type === "entity" && (n.attributes.title = n.content.value.replace(/&amp;/, "&"));
1086
+ }), Object.defineProperty(a.languages.markup.tag, "addInlined", {
1087
+ /**
1088
+ * Adds an inlined language to markup.
1089
+ *
1090
+ * An example of an inlined language is CSS with `<style>` tags.
1091
+ *
1092
+ * @param {string} tagName The name of the tag that contains the inlined language. This name will be treated as
1093
+ * case insensitive.
1094
+ * @param {string} lang The language key.
1095
+ * @example
1096
+ * addInlined('style', 'css');
1097
+ */
1098
+ value: function(n, o) {
1099
+ var u = {};
1100
+ u["language-" + o] = {
1101
+ pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
1102
+ lookbehind: !0,
1103
+ inside: a.languages[o]
1104
+ }, u.cdata = /^<!\[CDATA\[|\]\]>$/i;
1105
+ var d = {
1106
+ "included-cdata": {
1107
+ pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
1108
+ inside: u
1109
+ }
1110
+ };
1111
+ d["language-" + o] = {
1112
+ pattern: /[\s\S]+/,
1113
+ inside: a.languages[o]
1114
+ };
1115
+ var l = {};
1116
+ l[n] = {
1117
+ pattern: RegExp(
1118
+ /(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(
1119
+ /__/g,
1120
+ function() {
1121
+ return n;
1122
+ }
1123
+ ),
1124
+ "i"
1125
+ ),
1126
+ lookbehind: !0,
1127
+ greedy: !0,
1128
+ inside: d
1129
+ }, a.languages.insertBefore("markup", "cdata", l);
1130
+ }
1131
+ }), Object.defineProperty(a.languages.markup.tag, "addAttribute", {
1132
+ /**
1133
+ * Adds an pattern to highlight languages embedded in HTML attributes.
1134
+ *
1135
+ * An example of an inlined language is CSS with `style` attributes.
1136
+ *
1137
+ * @param {string} attrName The name of the tag that contains the inlined language. This name will be treated as
1138
+ * case insensitive.
1139
+ * @param {string} lang The language key.
1140
+ * @example
1141
+ * addAttribute('style', 'css');
1142
+ */
1143
+ value: function(n, o) {
1144
+ a.languages.markup.tag.inside["special-attr"].push({
1145
+ pattern: RegExp(
1146
+ /(^|["'\s])/.source + "(?:" + n + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
1147
+ "i"
1148
+ ),
1149
+ lookbehind: !0,
1150
+ inside: {
1151
+ "attr-name": /^[^\s=]+/,
1152
+ "attr-value": {
1153
+ pattern: /=[\s\S]+/,
1154
+ inside: {
1155
+ value: {
1156
+ pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
1157
+ lookbehind: !0,
1158
+ alias: [o, "language-" + o],
1159
+ inside: a.languages[o]
1160
+ },
1161
+ punctuation: [
1162
+ {
1163
+ pattern: /^=/,
1164
+ alias: "attr-equals"
1165
+ },
1166
+ /"|'/
1167
+ ]
1168
+ }
1169
+ }
1170
+ }
1171
+ });
1172
+ }
1173
+ }), a.languages.html = a.languages.markup, a.languages.mathml = a.languages.markup, a.languages.svg = a.languages.markup, a.languages.xml = a.languages.extend("markup", {}), a.languages.ssml = a.languages.xml, a.languages.atom = a.languages.xml, a.languages.rss = a.languages.xml;
1174
+ }
1175
+ }
1176
+ }), tt = F({
1177
+ "../node_modules/refractor/lang/typescript.js"(e, r) {
1178
+ r.exports = t, t.displayName = "typescript", t.aliases = ["ts"];
1179
+ function t(a) {
1180
+ (function(n) {
1181
+ n.languages.typescript = n.languages.extend("javascript", {
1182
+ "class-name": {
1183
+ pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,
1184
+ lookbehind: !0,
1185
+ greedy: !0,
1186
+ inside: null
1187
+ // see below
1188
+ },
1189
+ builtin: /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/
1190
+ }), n.languages.typescript.keyword.push(
1191
+ /\b(?:abstract|declare|is|keyof|readonly|require)\b/,
1192
+ // keywords that have to be followed by an identifier
1193
+ /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,
1194
+ // This is for `import type *, {}`
1195
+ /\btype\b(?=\s*(?:[\{*]|$))/
1196
+ ), delete n.languages.typescript.parameter, delete n.languages.typescript["literal-property"];
1197
+ var o = n.languages.extend("typescript", {});
1198
+ delete o["class-name"], n.languages.typescript["class-name"].inside = o, n.languages.insertBefore("typescript", "function", {
1199
+ decorator: {
1200
+ pattern: /@[$\w\xA0-\uFFFF]+/,
1201
+ inside: {
1202
+ at: {
1203
+ pattern: /^@/,
1204
+ alias: "operator"
1205
+ },
1206
+ function: /^[\s\S]+/
1207
+ }
1208
+ },
1209
+ "generic-function": {
1210
+ // e.g. foo<T extends "bar" | "baz">( ...
1211
+ pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,
1212
+ greedy: !0,
1213
+ inside: {
1214
+ function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,
1215
+ generic: {
1216
+ pattern: /<[\s\S]+/,
1217
+ // everything after the first <
1218
+ alias: "class-name",
1219
+ inside: o
1220
+ }
1221
+ }
1222
+ }
1223
+ }), n.languages.ts = n.languages.typescript;
1224
+ })(a);
1225
+ }
1226
+ }
1227
+ }), Lt = F({
1228
+ "../node_modules/refractor/lang/tsx.js"(e, r) {
1229
+ var t = Qe(), a = tt();
1230
+ r.exports = n, n.displayName = "tsx", n.aliases = [];
1231
+ function n(o) {
1232
+ o.register(t), o.register(a), (function(u) {
1233
+ var d = u.util.clone(u.languages.typescript);
1234
+ u.languages.tsx = u.languages.extend("jsx", d), delete u.languages.tsx.parameter, delete u.languages.tsx["literal-property"];
1235
+ var l = u.languages.tsx.tag;
1236
+ l.pattern = RegExp(
1237
+ /(^|[^\w$]|(?=<\/))/.source + "(?:" + l.pattern.source + ")",
1238
+ l.pattern.flags
1239
+ ), l.lookbehind = !0;
1240
+ })(o);
1241
+ }
1242
+ }
1243
+ }), It = F({
1244
+ "../node_modules/refractor/lang/yaml.js"(e, r) {
1245
+ r.exports = t, t.displayName = "yaml", t.aliases = ["yml"];
1246
+ function t(a) {
1247
+ (function(n) {
1248
+ var o = /[*&][^\s[\]{},]+/, u = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, d = "(?:" + u.source + "(?:[ ]+" + o.source + ")?|" + o.source + "(?:[ ]+" + u.source + ")?)", l = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(
1249
+ /<PLAIN>/g,
1250
+ function() {
1251
+ return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
1252
+ }
1253
+ ), f = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
1254
+ function h(C, x) {
1255
+ x = (x || "").replace(/m/g, "") + "m";
1256
+ var b = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
1257
+ return d;
1258
+ }).replace(/<<value>>/g, function() {
1259
+ return C;
1260
+ });
1261
+ return RegExp(b, x);
1262
+ }
1263
+ n.languages.yaml = {
1264
+ scalar: {
1265
+ pattern: RegExp(
1266
+ /([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(
1267
+ /<<prop>>/g,
1268
+ function() {
1269
+ return d;
1270
+ }
1271
+ )
1272
+ ),
1273
+ lookbehind: !0,
1274
+ alias: "string"
1275
+ },
1276
+ comment: /#.*/,
1277
+ key: {
1278
+ pattern: RegExp(
1279
+ /((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
1280
+ return d;
1281
+ }).replace(/<<key>>/g, function() {
1282
+ return "(?:" + l + "|" + f + ")";
1283
+ })
1284
+ ),
1285
+ lookbehind: !0,
1286
+ greedy: !0,
1287
+ alias: "atrule"
1288
+ },
1289
+ directive: {
1290
+ pattern: /(^[ \t]*)%.+/m,
1291
+ lookbehind: !0,
1292
+ alias: "important"
1293
+ },
1294
+ datetime: {
1295
+ pattern: h(
1296
+ /\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
1297
+ ),
1298
+ lookbehind: !0,
1299
+ alias: "number"
1300
+ },
1301
+ boolean: {
1302
+ pattern: h(/false|true/.source, "i"),
1303
+ lookbehind: !0,
1304
+ alias: "important"
1305
+ },
1306
+ null: {
1307
+ pattern: h(/null|~/.source, "i"),
1308
+ lookbehind: !0,
1309
+ alias: "important"
1310
+ },
1311
+ string: {
1312
+ pattern: h(f),
1313
+ lookbehind: !0,
1314
+ greedy: !0
1315
+ },
1316
+ number: {
1317
+ pattern: h(
1318
+ /[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,
1319
+ "i"
1320
+ ),
1321
+ lookbehind: !0
1322
+ },
1323
+ tag: u,
1324
+ important: o,
1325
+ punctuation: /---|[:[\]{}\-,|>?]|\.\.\./
1326
+ }, n.languages.yml = n.languages.yaml;
1327
+ })(a);
1328
+ }
1329
+ }
1330
+ }), Tt = F({
1331
+ "../node_modules/xtend/immutable.js"(e, r) {
1332
+ r.exports = a;
1333
+ var t = Object.prototype.hasOwnProperty;
1334
+ function a() {
1335
+ for (var n = {}, o = 0; o < arguments.length; o++) {
1336
+ var u = arguments[o];
1337
+ for (var d in u)
1338
+ t.call(u, d) && (n[d] = u[d]);
1339
+ }
1340
+ return n;
1341
+ }
1342
+ }
1343
+ }), nt = F({
1344
+ "../node_modules/hastscript/node_modules/property-information/lib/util/schema.js"(e, r) {
1345
+ r.exports = a;
1346
+ var t = a.prototype;
1347
+ t.space = null, t.normal = {}, t.property = {};
1348
+ function a(n, o, u) {
1349
+ this.property = n, this.normal = o, u && (this.space = u);
1350
+ }
1351
+ }
1352
+ }), Dt = F({
1353
+ "../node_modules/hastscript/node_modules/property-information/lib/util/merge.js"(e, r) {
1354
+ var t = Tt(), a = nt();
1355
+ r.exports = n;
1356
+ function n(o) {
1357
+ for (var u = o.length, d = [], l = [], f = -1, h, C; ++f < u; )
1358
+ h = o[f], d.push(h.property), l.push(h.normal), C = h.space;
1359
+ return new a(
1360
+ t.apply(null, d),
1361
+ t.apply(null, l),
1362
+ C
1363
+ );
1364
+ }
1365
+ }
1366
+ }), Te = F({
1367
+ "../node_modules/hastscript/node_modules/property-information/normalize.js"(e, r) {
1368
+ r.exports = t;
1369
+ function t(a) {
1370
+ return a.toLowerCase();
1371
+ }
1372
+ }
1373
+ }), at = F({
1374
+ "../node_modules/hastscript/node_modules/property-information/lib/util/info.js"(e, r) {
1375
+ r.exports = a;
1376
+ var t = a.prototype;
1377
+ t.space = null, t.attribute = null, t.property = null, t.boolean = !1, t.booleanish = !1, t.overloadedBoolean = !1, t.number = !1, t.commaSeparated = !1, t.spaceSeparated = !1, t.commaOrSpaceSeparated = !1, t.mustUseProperty = !1, t.defined = !1;
1378
+ function a(n, o) {
1379
+ this.property = n, this.attribute = o;
1380
+ }
1381
+ }
1382
+ }), De = F({
1383
+ "../node_modules/hastscript/node_modules/property-information/lib/util/types.js"(e) {
1384
+ var r = 0;
1385
+ e.boolean = t(), e.booleanish = t(), e.overloadedBoolean = t(), e.number = t(), e.spaceSeparated = t(), e.commaSeparated = t(), e.commaOrSpaceSeparated = t();
1386
+ function t() {
1387
+ return Math.pow(2, ++r);
1388
+ }
1389
+ }
1390
+ }), rt = F({
1391
+ "../node_modules/hastscript/node_modules/property-information/lib/util/defined-info.js"(e, r) {
1392
+ var t = at(), a = De();
1393
+ r.exports = u, u.prototype = new t(), u.prototype.defined = !0;
1394
+ var n = [
1395
+ "boolean",
1396
+ "booleanish",
1397
+ "overloadedBoolean",
1398
+ "number",
1399
+ "commaSeparated",
1400
+ "spaceSeparated",
1401
+ "commaOrSpaceSeparated"
1402
+ ], o = n.length;
1403
+ function u(l, f, h, C) {
1404
+ var x = -1, b;
1405
+ for (d(this, "space", C), t.call(this, l, f); ++x < o; )
1406
+ b = n[x], d(this, b, (h & a[b]) === a[b]);
1407
+ }
1408
+ function d(l, f, h) {
1409
+ h && (l[f] = h);
1410
+ }
1411
+ }
1412
+ }), ve = F({
1413
+ "../node_modules/hastscript/node_modules/property-information/lib/util/create.js"(e, r) {
1414
+ var t = Te(), a = nt(), n = rt();
1415
+ r.exports = o;
1416
+ function o(u) {
1417
+ var d = u.space, l = u.mustUseProperty || [], f = u.attributes || {}, h = u.properties, C = u.transform, x = {}, b = {}, y, S;
1418
+ for (y in h)
1419
+ S = new n(
1420
+ y,
1421
+ C(f, y),
1422
+ h[y],
1423
+ d
1424
+ ), l.indexOf(y) !== -1 && (S.mustUseProperty = !0), x[y] = S, b[t(y)] = y, b[t(S.attribute)] = y;
1425
+ return new a(x, b, d);
1426
+ }
1427
+ }
1428
+ }), Rt = F({
1429
+ "../node_modules/hastscript/node_modules/property-information/lib/xlink.js"(e, r) {
1430
+ var t = ve();
1431
+ r.exports = t({
1432
+ space: "xlink",
1433
+ transform: a,
1434
+ properties: {
1435
+ xLinkActuate: null,
1436
+ xLinkArcRole: null,
1437
+ xLinkHref: null,
1438
+ xLinkRole: null,
1439
+ xLinkShow: null,
1440
+ xLinkTitle: null,
1441
+ xLinkType: null
1442
+ }
1443
+ });
1444
+ function a(n, o) {
1445
+ return "xlink:" + o.slice(5).toLowerCase();
1446
+ }
1447
+ }
1448
+ }), qt = F({
1449
+ "../node_modules/hastscript/node_modules/property-information/lib/xml.js"(e, r) {
1450
+ var t = ve();
1451
+ r.exports = t({
1452
+ space: "xml",
1453
+ transform: a,
1454
+ properties: {
1455
+ xmlLang: null,
1456
+ xmlBase: null,
1457
+ xmlSpace: null
1458
+ }
1459
+ });
1460
+ function a(n, o) {
1461
+ return "xml:" + o.slice(3).toLowerCase();
1462
+ }
1463
+ }
1464
+ }), Bt = F({
1465
+ "../node_modules/hastscript/node_modules/property-information/lib/util/case-sensitive-transform.js"(e, r) {
1466
+ r.exports = t;
1467
+ function t(a, n) {
1468
+ return n in a ? a[n] : n;
1469
+ }
1470
+ }
1471
+ }), ot = F({
1472
+ "../node_modules/hastscript/node_modules/property-information/lib/util/case-insensitive-transform.js"(e, r) {
1473
+ var t = Bt();
1474
+ r.exports = a;
1475
+ function a(n, o) {
1476
+ return t(n, o.toLowerCase());
1477
+ }
1478
+ }
1479
+ }), Mt = F({
1480
+ "../node_modules/hastscript/node_modules/property-information/lib/xmlns.js"(e, r) {
1481
+ var t = ve(), a = ot();
1482
+ r.exports = t({
1483
+ space: "xmlns",
1484
+ attributes: {
1485
+ xmlnsxlink: "xmlns:xlink"
1486
+ },
1487
+ transform: a,
1488
+ properties: {
1489
+ xmlns: null,
1490
+ xmlnsXLink: null
1491
+ }
1492
+ });
1493
+ }
1494
+ }), zt = F({
1495
+ "../node_modules/hastscript/node_modules/property-information/lib/aria.js"(e, r) {
1496
+ var t = De(), a = ve(), n = t.booleanish, o = t.number, u = t.spaceSeparated;
1497
+ r.exports = a({
1498
+ transform: d,
1499
+ properties: {
1500
+ ariaActiveDescendant: null,
1501
+ ariaAtomic: n,
1502
+ ariaAutoComplete: null,
1503
+ ariaBusy: n,
1504
+ ariaChecked: n,
1505
+ ariaColCount: o,
1506
+ ariaColIndex: o,
1507
+ ariaColSpan: o,
1508
+ ariaControls: u,
1509
+ ariaCurrent: null,
1510
+ ariaDescribedBy: u,
1511
+ ariaDetails: null,
1512
+ ariaDisabled: n,
1513
+ ariaDropEffect: u,
1514
+ ariaErrorMessage: null,
1515
+ ariaExpanded: n,
1516
+ ariaFlowTo: u,
1517
+ ariaGrabbed: n,
1518
+ ariaHasPopup: null,
1519
+ ariaHidden: n,
1520
+ ariaInvalid: null,
1521
+ ariaKeyShortcuts: null,
1522
+ ariaLabel: null,
1523
+ ariaLabelledBy: u,
1524
+ ariaLevel: o,
1525
+ ariaLive: null,
1526
+ ariaModal: n,
1527
+ ariaMultiLine: n,
1528
+ ariaMultiSelectable: n,
1529
+ ariaOrientation: null,
1530
+ ariaOwns: u,
1531
+ ariaPlaceholder: null,
1532
+ ariaPosInSet: o,
1533
+ ariaPressed: n,
1534
+ ariaReadOnly: n,
1535
+ ariaRelevant: null,
1536
+ ariaRequired: n,
1537
+ ariaRoleDescription: u,
1538
+ ariaRowCount: o,
1539
+ ariaRowIndex: o,
1540
+ ariaRowSpan: o,
1541
+ ariaSelected: n,
1542
+ ariaSetSize: o,
1543
+ ariaSort: null,
1544
+ ariaValueMax: o,
1545
+ ariaValueMin: o,
1546
+ ariaValueNow: o,
1547
+ ariaValueText: null,
1548
+ role: null
1549
+ }
1550
+ });
1551
+ function d(l, f) {
1552
+ return f === "role" ? f : "aria-" + f.slice(4).toLowerCase();
1553
+ }
1554
+ }
1555
+ }), Ht = F({
1556
+ "../node_modules/hastscript/node_modules/property-information/lib/html.js"(e, r) {
1557
+ var t = De(), a = ve(), n = ot(), o = t.boolean, u = t.overloadedBoolean, d = t.booleanish, l = t.number, f = t.spaceSeparated, h = t.commaSeparated;
1558
+ r.exports = a({
1559
+ space: "html",
1560
+ attributes: {
1561
+ acceptcharset: "accept-charset",
1562
+ classname: "class",
1563
+ htmlfor: "for",
1564
+ httpequiv: "http-equiv"
1565
+ },
1566
+ transform: n,
1567
+ mustUseProperty: ["checked", "multiple", "muted", "selected"],
1568
+ properties: {
1569
+ // Standard Properties.
1570
+ abbr: null,
1571
+ accept: h,
1572
+ acceptCharset: f,
1573
+ accessKey: f,
1574
+ action: null,
1575
+ allow: null,
1576
+ allowFullScreen: o,
1577
+ allowPaymentRequest: o,
1578
+ allowUserMedia: o,
1579
+ alt: null,
1580
+ as: null,
1581
+ async: o,
1582
+ autoCapitalize: null,
1583
+ autoComplete: f,
1584
+ autoFocus: o,
1585
+ autoPlay: o,
1586
+ capture: o,
1587
+ charSet: null,
1588
+ checked: o,
1589
+ cite: null,
1590
+ className: f,
1591
+ cols: l,
1592
+ colSpan: null,
1593
+ content: null,
1594
+ contentEditable: d,
1595
+ controls: o,
1596
+ controlsList: f,
1597
+ coords: l | h,
1598
+ crossOrigin: null,
1599
+ data: null,
1600
+ dateTime: null,
1601
+ decoding: null,
1602
+ default: o,
1603
+ defer: o,
1604
+ dir: null,
1605
+ dirName: null,
1606
+ disabled: o,
1607
+ download: u,
1608
+ draggable: d,
1609
+ encType: null,
1610
+ enterKeyHint: null,
1611
+ form: null,
1612
+ formAction: null,
1613
+ formEncType: null,
1614
+ formMethod: null,
1615
+ formNoValidate: o,
1616
+ formTarget: null,
1617
+ headers: f,
1618
+ height: l,
1619
+ hidden: o,
1620
+ high: l,
1621
+ href: null,
1622
+ hrefLang: null,
1623
+ htmlFor: f,
1624
+ httpEquiv: f,
1625
+ id: null,
1626
+ imageSizes: null,
1627
+ imageSrcSet: h,
1628
+ inputMode: null,
1629
+ integrity: null,
1630
+ is: null,
1631
+ isMap: o,
1632
+ itemId: null,
1633
+ itemProp: f,
1634
+ itemRef: f,
1635
+ itemScope: o,
1636
+ itemType: f,
1637
+ kind: null,
1638
+ label: null,
1639
+ lang: null,
1640
+ language: null,
1641
+ list: null,
1642
+ loading: null,
1643
+ loop: o,
1644
+ low: l,
1645
+ manifest: null,
1646
+ max: null,
1647
+ maxLength: l,
1648
+ media: null,
1649
+ method: null,
1650
+ min: null,
1651
+ minLength: l,
1652
+ multiple: o,
1653
+ muted: o,
1654
+ name: null,
1655
+ nonce: null,
1656
+ noModule: o,
1657
+ noValidate: o,
1658
+ onAbort: null,
1659
+ onAfterPrint: null,
1660
+ onAuxClick: null,
1661
+ onBeforePrint: null,
1662
+ onBeforeUnload: null,
1663
+ onBlur: null,
1664
+ onCancel: null,
1665
+ onCanPlay: null,
1666
+ onCanPlayThrough: null,
1667
+ onChange: null,
1668
+ onClick: null,
1669
+ onClose: null,
1670
+ onContextMenu: null,
1671
+ onCopy: null,
1672
+ onCueChange: null,
1673
+ onCut: null,
1674
+ onDblClick: null,
1675
+ onDrag: null,
1676
+ onDragEnd: null,
1677
+ onDragEnter: null,
1678
+ onDragExit: null,
1679
+ onDragLeave: null,
1680
+ onDragOver: null,
1681
+ onDragStart: null,
1682
+ onDrop: null,
1683
+ onDurationChange: null,
1684
+ onEmptied: null,
1685
+ onEnded: null,
1686
+ onError: null,
1687
+ onFocus: null,
1688
+ onFormData: null,
1689
+ onHashChange: null,
1690
+ onInput: null,
1691
+ onInvalid: null,
1692
+ onKeyDown: null,
1693
+ onKeyPress: null,
1694
+ onKeyUp: null,
1695
+ onLanguageChange: null,
1696
+ onLoad: null,
1697
+ onLoadedData: null,
1698
+ onLoadedMetadata: null,
1699
+ onLoadEnd: null,
1700
+ onLoadStart: null,
1701
+ onMessage: null,
1702
+ onMessageError: null,
1703
+ onMouseDown: null,
1704
+ onMouseEnter: null,
1705
+ onMouseLeave: null,
1706
+ onMouseMove: null,
1707
+ onMouseOut: null,
1708
+ onMouseOver: null,
1709
+ onMouseUp: null,
1710
+ onOffline: null,
1711
+ onOnline: null,
1712
+ onPageHide: null,
1713
+ onPageShow: null,
1714
+ onPaste: null,
1715
+ onPause: null,
1716
+ onPlay: null,
1717
+ onPlaying: null,
1718
+ onPopState: null,
1719
+ onProgress: null,
1720
+ onRateChange: null,
1721
+ onRejectionHandled: null,
1722
+ onReset: null,
1723
+ onResize: null,
1724
+ onScroll: null,
1725
+ onSecurityPolicyViolation: null,
1726
+ onSeeked: null,
1727
+ onSeeking: null,
1728
+ onSelect: null,
1729
+ onSlotChange: null,
1730
+ onStalled: null,
1731
+ onStorage: null,
1732
+ onSubmit: null,
1733
+ onSuspend: null,
1734
+ onTimeUpdate: null,
1735
+ onToggle: null,
1736
+ onUnhandledRejection: null,
1737
+ onUnload: null,
1738
+ onVolumeChange: null,
1739
+ onWaiting: null,
1740
+ onWheel: null,
1741
+ open: o,
1742
+ optimum: l,
1743
+ pattern: null,
1744
+ ping: f,
1745
+ placeholder: null,
1746
+ playsInline: o,
1747
+ poster: null,
1748
+ preload: null,
1749
+ readOnly: o,
1750
+ referrerPolicy: null,
1751
+ rel: f,
1752
+ required: o,
1753
+ reversed: o,
1754
+ rows: l,
1755
+ rowSpan: l,
1756
+ sandbox: f,
1757
+ scope: null,
1758
+ scoped: o,
1759
+ seamless: o,
1760
+ selected: o,
1761
+ shape: null,
1762
+ size: l,
1763
+ sizes: null,
1764
+ slot: null,
1765
+ span: l,
1766
+ spellCheck: d,
1767
+ src: null,
1768
+ srcDoc: null,
1769
+ srcLang: null,
1770
+ srcSet: h,
1771
+ start: l,
1772
+ step: null,
1773
+ style: null,
1774
+ tabIndex: l,
1775
+ target: null,
1776
+ title: null,
1777
+ translate: null,
1778
+ type: null,
1779
+ typeMustMatch: o,
1780
+ useMap: null,
1781
+ value: d,
1782
+ width: l,
1783
+ wrap: null,
1784
+ // Legacy.
1785
+ // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
1786
+ align: null,
1787
+ // Several. Use CSS `text-align` instead,
1788
+ aLink: null,
1789
+ // `<body>`. Use CSS `a:active {color}` instead
1790
+ archive: f,
1791
+ // `<object>`. List of URIs to archives
1792
+ axis: null,
1793
+ // `<td>` and `<th>`. Use `scope` on `<th>`
1794
+ background: null,
1795
+ // `<body>`. Use CSS `background-image` instead
1796
+ bgColor: null,
1797
+ // `<body>` and table elements. Use CSS `background-color` instead
1798
+ border: l,
1799
+ // `<table>`. Use CSS `border-width` instead,
1800
+ borderColor: null,
1801
+ // `<table>`. Use CSS `border-color` instead,
1802
+ bottomMargin: l,
1803
+ // `<body>`
1804
+ cellPadding: null,
1805
+ // `<table>`
1806
+ cellSpacing: null,
1807
+ // `<table>`
1808
+ char: null,
1809
+ // Several table elements. When `align=char`, sets the character to align on
1810
+ charOff: null,
1811
+ // Several table elements. When `char`, offsets the alignment
1812
+ classId: null,
1813
+ // `<object>`
1814
+ clear: null,
1815
+ // `<br>`. Use CSS `clear` instead
1816
+ code: null,
1817
+ // `<object>`
1818
+ codeBase: null,
1819
+ // `<object>`
1820
+ codeType: null,
1821
+ // `<object>`
1822
+ color: null,
1823
+ // `<font>` and `<hr>`. Use CSS instead
1824
+ compact: o,
1825
+ // Lists. Use CSS to reduce space between items instead
1826
+ declare: o,
1827
+ // `<object>`
1828
+ event: null,
1829
+ // `<script>`
1830
+ face: null,
1831
+ // `<font>`. Use CSS instead
1832
+ frame: null,
1833
+ // `<table>`
1834
+ frameBorder: null,
1835
+ // `<iframe>`. Use CSS `border` instead
1836
+ hSpace: l,
1837
+ // `<img>` and `<object>`
1838
+ leftMargin: l,
1839
+ // `<body>`
1840
+ link: null,
1841
+ // `<body>`. Use CSS `a:link {color: *}` instead
1842
+ longDesc: null,
1843
+ // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
1844
+ lowSrc: null,
1845
+ // `<img>`. Use a `<picture>`
1846
+ marginHeight: l,
1847
+ // `<body>`
1848
+ marginWidth: l,
1849
+ // `<body>`
1850
+ noResize: o,
1851
+ // `<frame>`
1852
+ noHref: o,
1853
+ // `<area>`. Use no href instead of an explicit `nohref`
1854
+ noShade: o,
1855
+ // `<hr>`. Use background-color and height instead of borders
1856
+ noWrap: o,
1857
+ // `<td>` and `<th>`
1858
+ object: null,
1859
+ // `<applet>`
1860
+ profile: null,
1861
+ // `<head>`
1862
+ prompt: null,
1863
+ // `<isindex>`
1864
+ rev: null,
1865
+ // `<link>`
1866
+ rightMargin: l,
1867
+ // `<body>`
1868
+ rules: null,
1869
+ // `<table>`
1870
+ scheme: null,
1871
+ // `<meta>`
1872
+ scrolling: d,
1873
+ // `<frame>`. Use overflow in the child context
1874
+ standby: null,
1875
+ // `<object>`
1876
+ summary: null,
1877
+ // `<table>`
1878
+ text: null,
1879
+ // `<body>`. Use CSS `color` instead
1880
+ topMargin: l,
1881
+ // `<body>`
1882
+ valueType: null,
1883
+ // `<param>`
1884
+ version: null,
1885
+ // `<html>`. Use a doctype.
1886
+ vAlign: null,
1887
+ // Several. Use CSS `vertical-align` instead
1888
+ vLink: null,
1889
+ // `<body>`. Use CSS `a:visited {color}` instead
1890
+ vSpace: l,
1891
+ // `<img>` and `<object>`
1892
+ // Non-standard Properties.
1893
+ allowTransparency: null,
1894
+ autoCorrect: null,
1895
+ autoSave: null,
1896
+ disablePictureInPicture: o,
1897
+ disableRemotePlayback: o,
1898
+ prefix: null,
1899
+ property: null,
1900
+ results: l,
1901
+ security: null,
1902
+ unselectable: null
1903
+ }
1904
+ });
1905
+ }
1906
+ }), Pt = F({
1907
+ "../node_modules/hastscript/node_modules/property-information/html.js"(e, r) {
1908
+ var t = Dt(), a = Rt(), n = qt(), o = Mt(), u = zt(), d = Ht();
1909
+ r.exports = t([n, a, o, u, d]);
1910
+ }
1911
+ }), Ut = F({
1912
+ "../node_modules/hastscript/node_modules/property-information/find.js"(e, r) {
1913
+ var t = Te(), a = rt(), n = at(), o = "data";
1914
+ r.exports = f;
1915
+ var u = /^data[-\w.:]+$/i, d = /-[a-z]/g, l = /[A-Z]/g;
1916
+ function f(y, S) {
1917
+ var E = t(S), w = S, A = n;
1918
+ return E in y.normal ? y.property[y.normal[E]] : (E.length > 4 && E.slice(0, 4) === o && u.test(S) && (S.charAt(4) === "-" ? w = h(S) : S = C(S), A = a), new A(w, S));
1919
+ }
1920
+ function h(y) {
1921
+ var S = y.slice(5).replace(d, b);
1922
+ return o + S.charAt(0).toUpperCase() + S.slice(1);
1923
+ }
1924
+ function C(y) {
1925
+ var S = y.slice(4);
1926
+ return d.test(S) ? y : (S = S.replace(l, x), S.charAt(0) !== "-" && (S = "-" + S), o + S);
1927
+ }
1928
+ function x(y) {
1929
+ return "-" + y.toLowerCase();
1930
+ }
1931
+ function b(y) {
1932
+ return y.charAt(1).toUpperCase();
1933
+ }
1934
+ }
1935
+ }), Gt = F({
1936
+ "../node_modules/hast-util-parse-selector/index.js"(e, r) {
1937
+ r.exports = a;
1938
+ var t = /[#.]/g;
1939
+ function a(n, o) {
1940
+ for (var u = n || "", d = o || "div", l = {}, f = 0, h, C, x; f < u.length; )
1941
+ t.lastIndex = f, x = t.exec(u), h = u.slice(f, x ? x.index : u.length), h && (C ? C === "#" ? l.id = h : l.className ? l.className.push(h) : l.className = [h] : d = h, f += h.length), x && (C = x[0], f++);
1942
+ return { type: "element", tagName: d, properties: l, children: [] };
1943
+ }
1944
+ }
1945
+ }), Zt = F({
1946
+ "../node_modules/hastscript/node_modules/space-separated-tokens/index.js"(e) {
1947
+ e.parse = n, e.stringify = o;
1948
+ var r = "", t = " ", a = /[ \t\n\r\f]+/g;
1949
+ function n(u) {
1950
+ var d = String(u || r).trim();
1951
+ return d === r ? [] : d.split(a);
1952
+ }
1953
+ function o(u) {
1954
+ return u.join(t).trim();
1955
+ }
1956
+ }
1957
+ }), Wt = F({
1958
+ "../node_modules/hastscript/node_modules/comma-separated-tokens/index.js"(e) {
1959
+ e.parse = n, e.stringify = o;
1960
+ var r = ",", t = " ", a = "";
1961
+ function n(u) {
1962
+ for (var d = [], l = String(u || a), f = l.indexOf(r), h = 0, C = !1, x; !C; )
1963
+ f === -1 && (f = l.length, C = !0), x = l.slice(h, f).trim(), (x || !C) && d.push(x), h = f + 1, f = l.indexOf(r, h);
1964
+ return d;
1965
+ }
1966
+ function o(u, d) {
1967
+ var l = d || {}, f = l.padLeft === !1 ? a : t, h = l.padRight ? t : a;
1968
+ return u[u.length - 1] === a && (u = u.concat(a)), u.join(h + r + f).trim();
1969
+ }
1970
+ }
1971
+ }), Kt = F({
1972
+ "../node_modules/hastscript/factory.js"(e, r) {
1973
+ var t = Ut(), a = Te(), n = Gt(), o = Zt().parse, u = Wt().parse;
1974
+ r.exports = l;
1975
+ var d = {}.hasOwnProperty;
1976
+ function l(E, w, A) {
1977
+ var i = A ? S(A) : null;
1978
+ return s;
1979
+ function s(g, m) {
1980
+ var c = n(g, w), _ = Array.prototype.slice.call(arguments, 2), v = c.tagName.toLowerCase(), k;
1981
+ if (c.tagName = i && d.call(i, v) ? i[v] : v, m && f(m, c) && (_.unshift(m), m = null), m)
1982
+ for (k in m)
1983
+ p(c.properties, k, m[k]);
1984
+ return C(c.children, _), c.tagName === "template" && (c.content = { type: "root", children: c.children }, c.children = []), c;
1985
+ }
1986
+ function p(g, m, c) {
1987
+ var _, v, k;
1988
+ c == null || c !== c || (_ = t(E, m), v = _.property, k = c, typeof k == "string" && (_.spaceSeparated ? k = o(k) : _.commaSeparated ? k = u(k) : _.commaOrSpaceSeparated && (k = o(u(k).join(" ")))), v === "style" && typeof c != "string" && (k = y(k)), v === "className" && g.className && (k = g.className.concat(k)), g[v] = x(_, v, k));
1989
+ }
1990
+ }
1991
+ function f(E, w) {
1992
+ return typeof E == "string" || "length" in E || h(w.tagName, E);
1993
+ }
1994
+ function h(E, w) {
1995
+ var A = w.type;
1996
+ return E === "input" || !A || typeof A != "string" ? !1 : typeof w.children == "object" && "length" in w.children ? !0 : (A = A.toLowerCase(), E === "button" ? A !== "menu" && A !== "submit" && A !== "reset" && A !== "button" : "value" in w);
1997
+ }
1998
+ function C(E, w) {
1999
+ var A, i;
2000
+ if (typeof w == "string" || typeof w == "number") {
2001
+ E.push({ type: "text", value: String(w) });
2002
+ return;
2003
+ }
2004
+ if (typeof w == "object" && "length" in w) {
2005
+ for (A = -1, i = w.length; ++A < i; )
2006
+ C(E, w[A]);
2007
+ return;
2008
+ }
2009
+ if (typeof w != "object" || !("type" in w))
2010
+ throw new Error("Expected node, nodes, or string, got `" + w + "`");
2011
+ E.push(w);
2012
+ }
2013
+ function x(E, w, A) {
2014
+ var i, s, p;
2015
+ if (typeof A != "object" || !("length" in A))
2016
+ return b(E, w, A);
2017
+ for (s = A.length, i = -1, p = []; ++i < s; )
2018
+ p[i] = b(E, w, A[i]);
2019
+ return p;
2020
+ }
2021
+ function b(E, w, A) {
2022
+ var i = A;
2023
+ return E.number || E.positiveNumber ? !isNaN(i) && i !== "" && (i = Number(i)) : (E.boolean || E.overloadedBoolean) && typeof i == "string" && (i === "" || a(A) === a(w)) && (i = !0), i;
2024
+ }
2025
+ function y(E) {
2026
+ var w = [], A;
2027
+ for (A in E)
2028
+ w.push([A, E[A]].join(": "));
2029
+ return w.join("; ");
2030
+ }
2031
+ function S(E) {
2032
+ for (var w = E.length, A = -1, i = {}, s; ++A < w; )
2033
+ s = E[A], i[s.toLowerCase()] = s;
2034
+ return i;
2035
+ }
2036
+ }
2037
+ }), Xt = F({
2038
+ "../node_modules/hastscript/html.js"(e, r) {
2039
+ var t = Pt(), a = Kt(), n = a(t, "div");
2040
+ n.displayName = "html", r.exports = n;
2041
+ }
2042
+ }), Vt = F({
2043
+ "../node_modules/hastscript/index.js"(e, r) {
2044
+ r.exports = Xt();
2045
+ }
2046
+ }), Yt = F({
2047
+ "../node_modules/refractor/node_modules/character-entities-legacy/index.json"(e, r) {
2048
+ r.exports = {
2049
+ AElig: "Æ",
2050
+ AMP: "&",
2051
+ Aacute: "Á",
2052
+ Acirc: "Â",
2053
+ Agrave: "À",
2054
+ Aring: "Å",
2055
+ Atilde: "Ã",
2056
+ Auml: "Ä",
2057
+ COPY: "©",
2058
+ Ccedil: "Ç",
2059
+ ETH: "Ð",
2060
+ Eacute: "É",
2061
+ Ecirc: "Ê",
2062
+ Egrave: "È",
2063
+ Euml: "Ë",
2064
+ GT: ">",
2065
+ Iacute: "Í",
2066
+ Icirc: "Î",
2067
+ Igrave: "Ì",
2068
+ Iuml: "Ï",
2069
+ LT: "<",
2070
+ Ntilde: "Ñ",
2071
+ Oacute: "Ó",
2072
+ Ocirc: "Ô",
2073
+ Ograve: "Ò",
2074
+ Oslash: "Ø",
2075
+ Otilde: "Õ",
2076
+ Ouml: "Ö",
2077
+ QUOT: '"',
2078
+ REG: "®",
2079
+ THORN: "Þ",
2080
+ Uacute: "Ú",
2081
+ Ucirc: "Û",
2082
+ Ugrave: "Ù",
2083
+ Uuml: "Ü",
2084
+ Yacute: "Ý",
2085
+ aacute: "á",
2086
+ acirc: "â",
2087
+ acute: "´",
2088
+ aelig: "æ",
2089
+ agrave: "à",
2090
+ amp: "&",
2091
+ aring: "å",
2092
+ atilde: "ã",
2093
+ auml: "ä",
2094
+ brvbar: "¦",
2095
+ ccedil: "ç",
2096
+ cedil: "¸",
2097
+ cent: "¢",
2098
+ copy: "©",
2099
+ curren: "¤",
2100
+ deg: "°",
2101
+ divide: "÷",
2102
+ eacute: "é",
2103
+ ecirc: "ê",
2104
+ egrave: "è",
2105
+ eth: "ð",
2106
+ euml: "ë",
2107
+ frac12: "½",
2108
+ frac14: "¼",
2109
+ frac34: "¾",
2110
+ gt: ">",
2111
+ iacute: "í",
2112
+ icirc: "î",
2113
+ iexcl: "¡",
2114
+ igrave: "ì",
2115
+ iquest: "¿",
2116
+ iuml: "ï",
2117
+ laquo: "«",
2118
+ lt: "<",
2119
+ macr: "¯",
2120
+ micro: "µ",
2121
+ middot: "·",
2122
+ nbsp: " ",
2123
+ not: "¬",
2124
+ ntilde: "ñ",
2125
+ oacute: "ó",
2126
+ ocirc: "ô",
2127
+ ograve: "ò",
2128
+ ordf: "ª",
2129
+ ordm: "º",
2130
+ oslash: "ø",
2131
+ otilde: "õ",
2132
+ ouml: "ö",
2133
+ para: "¶",
2134
+ plusmn: "±",
2135
+ pound: "£",
2136
+ quot: '"',
2137
+ raquo: "»",
2138
+ reg: "®",
2139
+ sect: "§",
2140
+ shy: "­",
2141
+ sup1: "¹",
2142
+ sup2: "²",
2143
+ sup3: "³",
2144
+ szlig: "ß",
2145
+ thorn: "þ",
2146
+ times: "×",
2147
+ uacute: "ú",
2148
+ ucirc: "û",
2149
+ ugrave: "ù",
2150
+ uml: "¨",
2151
+ uuml: "ü",
2152
+ yacute: "ý",
2153
+ yen: "¥",
2154
+ yuml: "ÿ"
2155
+ };
2156
+ }
2157
+ }), Jt = F({
2158
+ "../node_modules/refractor/node_modules/character-reference-invalid/index.json"(e, r) {
2159
+ r.exports = {
2160
+ 0: "�",
2161
+ 128: "€",
2162
+ 130: "‚",
2163
+ 131: "ƒ",
2164
+ 132: "„",
2165
+ 133: "…",
2166
+ 134: "†",
2167
+ 135: "‡",
2168
+ 136: "ˆ",
2169
+ 137: "‰",
2170
+ 138: "Š",
2171
+ 139: "‹",
2172
+ 140: "Œ",
2173
+ 142: "Ž",
2174
+ 145: "‘",
2175
+ 146: "’",
2176
+ 147: "“",
2177
+ 148: "”",
2178
+ 149: "•",
2179
+ 150: "–",
2180
+ 151: "—",
2181
+ 152: "˜",
2182
+ 153: "™",
2183
+ 154: "š",
2184
+ 155: "›",
2185
+ 156: "œ",
2186
+ 158: "ž",
2187
+ 159: "Ÿ"
2188
+ };
2189
+ }
2190
+ }), lt = F({
2191
+ "../node_modules/refractor/node_modules/is-decimal/index.js"(e, r) {
2192
+ r.exports = t;
2193
+ function t(a) {
2194
+ var n = typeof a == "string" ? a.charCodeAt(0) : a;
2195
+ return n >= 48 && n <= 57;
2196
+ }
2197
+ }
2198
+ }), Qt = F({
2199
+ "../node_modules/refractor/node_modules/is-hexadecimal/index.js"(e, r) {
2200
+ r.exports = t;
2201
+ function t(a) {
2202
+ var n = typeof a == "string" ? a.charCodeAt(0) : a;
2203
+ return n >= 97 && n <= 102 || n >= 65 && n <= 70 || n >= 48 && n <= 57;
2204
+ }
2205
+ }
2206
+ }), en = F({
2207
+ "../node_modules/refractor/node_modules/is-alphabetical/index.js"(e, r) {
2208
+ r.exports = t;
2209
+ function t(a) {
2210
+ var n = typeof a == "string" ? a.charCodeAt(0) : a;
2211
+ return n >= 97 && n <= 122 || n >= 65 && n <= 90;
2212
+ }
2213
+ }
2214
+ }), tn = F({
2215
+ "../node_modules/refractor/node_modules/is-alphanumerical/index.js"(e, r) {
2216
+ var t = en(), a = lt();
2217
+ r.exports = n;
2218
+ function n(o) {
2219
+ return t(o) || a(o);
2220
+ }
2221
+ }
2222
+ }), nn = F({
2223
+ "../node_modules/refractor/node_modules/parse-entities/decode-entity.browser.js"(e, r) {
2224
+ var t, a = 59;
2225
+ r.exports = n;
2226
+ function n(o) {
2227
+ var u = "&" + o + ";", d;
2228
+ return t = t || document.createElement("i"), t.innerHTML = u, d = t.textContent, d.charCodeAt(d.length - 1) === a && o !== "semi" || d === u ? !1 : d;
2229
+ }
2230
+ }
2231
+ }), an = F({
2232
+ "../node_modules/refractor/node_modules/parse-entities/index.js"(e, r) {
2233
+ var t = Yt(), a = Jt(), n = lt(), o = Qt(), u = tn(), d = nn();
2234
+ r.exports = B;
2235
+ var l = {}.hasOwnProperty, f = String.fromCharCode, h = Function.prototype, C = {
2236
+ warning: null,
2237
+ reference: null,
2238
+ text: null,
2239
+ warningContext: null,
2240
+ referenceContext: null,
2241
+ textContext: null,
2242
+ position: {},
2243
+ additional: null,
2244
+ attribute: !1,
2245
+ nonTerminated: !0
2246
+ }, x = 9, b = 10, y = 12, S = 32, E = 38, w = 59, A = 60, i = 61, s = 35, p = 88, g = 120, m = 65533, c = "named", _ = "hexadecimal", v = "decimal", k = {};
2247
+ k[_] = 16, k[v] = 10;
2248
+ var N = {};
2249
+ N[c] = u, N[v] = n, N[_] = o;
2250
+ var $ = 1, H = 2, z = 3, X = 4, J = 5, W = 6, O = 7, L = {};
2251
+ L[$] = "Named character references must be terminated by a semicolon", L[H] = "Numeric character references must be terminated by a semicolon", L[z] = "Named character references cannot be empty", L[X] = "Numeric character references cannot be empty", L[J] = "Named character references must be known", L[W] = "Numeric character references cannot be disallowed", L[O] = "Numeric character references cannot be outside the permissible Unicode range";
2252
+ function B(j, I) {
2253
+ var T = {}, K, P;
2254
+ I || (I = {});
2255
+ for (P in C)
2256
+ K = I[P], T[P] = K ?? C[P];
2257
+ return (T.position.indent || T.position.start) && (T.indent = T.position.indent || [], T.position = T.position.start), Q(j, T);
2258
+ }
2259
+ function Q(j, I) {
2260
+ var T = I.additional, K = I.nonTerminated, P = I.text, re = I.reference, pe = I.warning, de = I.textContext, Ee = I.referenceContext, me = I.warningContext, ke = I.position, gt = I.indent || [], Ce = j.length, te = 0, ze = -1, oe = ke.column || 1, He = ke.line || 1, le = "", Fe = [], ge, je, ie, U, ne, R, D, V, Se, Ne, se, he, ue, ee, Pe, ye, we, Y, q;
2261
+ for (typeof T == "string" && (T = T.charCodeAt(0)), ye = be(), V = pe ? ft : h, te--, Ce++; ++te < Ce; )
2262
+ if (ne === b && (oe = gt[ze] || 1), ne = j.charCodeAt(te), ne === E) {
2263
+ if (D = j.charCodeAt(te + 1), D === x || D === b || D === y || D === S || D === E || D === A || D !== D || T && D === T) {
2264
+ le += f(ne), oe++;
2265
+ continue;
2266
+ }
2267
+ for (ue = te + 1, he = ue, q = ue, D === s ? (q = ++he, D = j.charCodeAt(q), D === p || D === g ? (ee = _, q = ++he) : ee = v) : ee = c, ge = "", se = "", U = "", Pe = N[ee], q--; ++q < Ce && (D = j.charCodeAt(q), !!Pe(D)); )
2268
+ U += f(D), ee === c && l.call(t, U) && (ge = U, se = t[U]);
2269
+ ie = j.charCodeAt(q) === w, ie && (q++, je = ee === c ? d(U) : !1, je && (ge = U, se = je)), Y = 1 + q - ue, !ie && !K || (U ? ee === c ? (ie && !se ? V(J, 1) : (ge !== U && (q = he + ge.length, Y = 1 + q - he, ie = !1), ie || (Se = ge ? $ : z, I.attribute ? (D = j.charCodeAt(q), D === i ? (V(Se, Y), se = null) : u(D) ? se = null : V(Se, Y)) : V(Se, Y))), R = se) : (ie || V(H, Y), R = parseInt(U, k[ee]), M(R) ? (V(O, Y), R = f(m)) : R in a ? (V(W, Y), R = a[R]) : (Ne = "", ce(R) && V(W, Y), R > 65535 && (R -= 65536, Ne += f(R >>> 10 | 55296), R = 56320 | R & 1023), R = Ne + f(R))) : ee !== c && V(X, Y)), R ? (Ue(), ye = be(), te = q - 1, oe += q - ue + 1, Fe.push(R), we = be(), we.offset++, re && re.call(
2270
+ Ee,
2271
+ R,
2272
+ { start: ye, end: we },
2273
+ j.slice(ue - 1, q)
2274
+ ), ye = we) : (U = j.slice(ue - 1, q), le += U, oe += U.length, te = q - 1);
2275
+ } else
2276
+ ne === 10 && (He++, ze++, oe = 0), ne === ne ? (le += f(ne), oe++) : Ue();
2277
+ return Fe.join("");
2278
+ function be() {
2279
+ return {
2280
+ line: He,
2281
+ column: oe,
2282
+ offset: te + (ke.offset || 0)
2283
+ };
2284
+ }
2285
+ function ft(Ge, Ze) {
2286
+ var $e = be();
2287
+ $e.column += Ze, $e.offset += Ze, pe.call(me, L[Ge], $e, Ge);
2288
+ }
2289
+ function Ue() {
2290
+ le && (Fe.push(le), P && P.call(de, le, { start: ye, end: be() }), le = "");
2291
+ }
2292
+ }
2293
+ function M(j) {
2294
+ return j >= 55296 && j <= 57343 || j > 1114111;
2295
+ }
2296
+ function ce(j) {
2297
+ return j >= 1 && j <= 8 || j === 11 || j >= 13 && j <= 31 || j >= 127 && j <= 159 || j >= 64976 && j <= 65007 || (j & 65535) === 65535 || (j & 65535) === 65534;
2298
+ }
2299
+ }
2300
+ }), rn = F({
2301
+ "../node_modules/refractor/node_modules/prismjs/components/prism-core.js"(e, r) {
2302
+ var t = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {}, a = (function(n) {
2303
+ var o = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, u = 0, d = {}, l = {
2304
+ /**
2305
+ * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
2306
+ * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
2307
+ * additional languages or plugins yourself.
2308
+ *
2309
+ * By setting this value to `true`, Prism will not automatically highlight all code elements on the page.
2310
+ *
2311
+ * You obviously have to change this value before the automatic highlighting started. To do this, you can add an
2312
+ * empty Prism object into the global scope before loading the Prism script like this:
2313
+ *
2314
+ * ```js
2315
+ * window.Prism = window.Prism || {};
2316
+ * Prism.manual = true;
2317
+ * // add a new <script> to load Prism's script
2318
+ * ```
2319
+ *
2320
+ * @default false
2321
+ * @type {boolean}
2322
+ * @memberof Prism
2323
+ * @public
2324
+ */
2325
+ manual: n.Prism && n.Prism.manual,
2326
+ /**
2327
+ * By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses
2328
+ * `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your
2329
+ * own worker, you don't want it to do this.
2330
+ *
2331
+ * By setting this value to `true`, Prism will not add its own listeners to the worker.
2332
+ *
2333
+ * You obviously have to change this value before Prism executes. To do this, you can add an
2334
+ * empty Prism object into the global scope before loading the Prism script like this:
2335
+ *
2336
+ * ```js
2337
+ * window.Prism = window.Prism || {};
2338
+ * Prism.disableWorkerMessageHandler = true;
2339
+ * // Load Prism's script
2340
+ * ```
2341
+ *
2342
+ * @default false
2343
+ * @type {boolean}
2344
+ * @memberof Prism
2345
+ * @public
2346
+ */
2347
+ disableWorkerMessageHandler: n.Prism && n.Prism.disableWorkerMessageHandler,
2348
+ /**
2349
+ * A namespace for utility methods.
2350
+ *
2351
+ * All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may
2352
+ * change or disappear at any time.
2353
+ *
2354
+ * @namespace
2355
+ * @memberof Prism
2356
+ */
2357
+ util: {
2358
+ encode: function i(s) {
2359
+ return s instanceof f ? new f(s.type, i(s.content), s.alias) : Array.isArray(s) ? s.map(i) : s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
2360
+ },
2361
+ /**
2362
+ * Returns the name of the type of the given value.
2363
+ *
2364
+ * @param {any} o
2365
+ * @returns {string}
2366
+ * @example
2367
+ * type(null) === 'Null'
2368
+ * type(undefined) === 'Undefined'
2369
+ * type(123) === 'Number'
2370
+ * type('foo') === 'String'
2371
+ * type(true) === 'Boolean'
2372
+ * type([1, 2]) === 'Array'
2373
+ * type({}) === 'Object'
2374
+ * type(String) === 'Function'
2375
+ * type(/abc+/) === 'RegExp'
2376
+ */
2377
+ type: function(i) {
2378
+ return Object.prototype.toString.call(i).slice(8, -1);
2379
+ },
2380
+ /**
2381
+ * Returns a unique number for the given object. Later calls will still return the same number.
2382
+ *
2383
+ * @param {Object} obj
2384
+ * @returns {number}
2385
+ */
2386
+ objId: function(i) {
2387
+ return i.__id || Object.defineProperty(i, "__id", { value: ++u }), i.__id;
2388
+ },
2389
+ /**
2390
+ * Creates a deep clone of the given object.
2391
+ *
2392
+ * The main intended use of this function is to clone language definitions.
2393
+ *
2394
+ * @param {T} o
2395
+ * @param {Record<number, any>} [visited]
2396
+ * @returns {T}
2397
+ * @template T
2398
+ */
2399
+ clone: function i(s, p) {
2400
+ p = p || {};
2401
+ var g, m;
2402
+ switch (l.util.type(s)) {
2403
+ case "Object":
2404
+ if (m = l.util.objId(s), p[m])
2405
+ return p[m];
2406
+ g = /** @type {Record<string, any>} */
2407
+ {}, p[m] = g;
2408
+ for (var c in s)
2409
+ s.hasOwnProperty(c) && (g[c] = i(s[c], p));
2410
+ return (
2411
+ /** @type {any} */
2412
+ g
2413
+ );
2414
+ case "Array":
2415
+ return m = l.util.objId(s), p[m] ? p[m] : (g = [], p[m] = g, /** @type {Array} */
2416
+ /** @type {any} */
2417
+ s.forEach(function(_, v) {
2418
+ g[v] = i(_, p);
2419
+ }), /** @type {any} */
2420
+ g);
2421
+ default:
2422
+ return s;
2423
+ }
2424
+ },
2425
+ /**
2426
+ * Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class.
2427
+ *
2428
+ * If no language is set for the element or the element is `null` or `undefined`, `none` will be returned.
2429
+ *
2430
+ * @param {Element} element
2431
+ * @returns {string}
2432
+ */
2433
+ getLanguage: function(i) {
2434
+ for (; i; ) {
2435
+ var s = o.exec(i.className);
2436
+ if (s)
2437
+ return s[1].toLowerCase();
2438
+ i = i.parentElement;
2439
+ }
2440
+ return "none";
2441
+ },
2442
+ /**
2443
+ * Sets the Prism `language-xxxx` class of the given element.
2444
+ *
2445
+ * @param {Element} element
2446
+ * @param {string} language
2447
+ * @returns {void}
2448
+ */
2449
+ setLanguage: function(i, s) {
2450
+ i.className = i.className.replace(RegExp(o, "gi"), ""), i.classList.add("language-" + s);
2451
+ },
2452
+ /**
2453
+ * Returns the script element that is currently executing.
2454
+ *
2455
+ * This does __not__ work for line script element.
2456
+ *
2457
+ * @returns {HTMLScriptElement | null}
2458
+ */
2459
+ currentScript: function() {
2460
+ if (typeof document > "u")
2461
+ return null;
2462
+ if ("currentScript" in document)
2463
+ return (
2464
+ /** @type {any} */
2465
+ document.currentScript
2466
+ );
2467
+ try {
2468
+ throw new Error();
2469
+ } catch (g) {
2470
+ var i = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(g.stack) || [])[1];
2471
+ if (i) {
2472
+ var s = document.getElementsByTagName("script");
2473
+ for (var p in s)
2474
+ if (s[p].src == i)
2475
+ return s[p];
2476
+ }
2477
+ return null;
2478
+ }
2479
+ },
2480
+ /**
2481
+ * Returns whether a given class is active for `element`.
2482
+ *
2483
+ * The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated
2484
+ * if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the
2485
+ * given class is just the given class with a `no-` prefix.
2486
+ *
2487
+ * Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is
2488
+ * closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its
2489
+ * ancestors have the given class or the negated version of it, then the default activation will be returned.
2490
+ *
2491
+ * In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated
2492
+ * version of it, the class is considered active.
2493
+ *
2494
+ * @param {Element} element
2495
+ * @param {string} className
2496
+ * @param {boolean} [defaultActivation=false]
2497
+ * @returns {boolean}
2498
+ */
2499
+ isActive: function(i, s, p) {
2500
+ for (var g = "no-" + s; i; ) {
2501
+ var m = i.classList;
2502
+ if (m.contains(s))
2503
+ return !0;
2504
+ if (m.contains(g))
2505
+ return !1;
2506
+ i = i.parentElement;
2507
+ }
2508
+ return !!p;
2509
+ }
2510
+ },
2511
+ /**
2512
+ * This namespace contains all currently loaded languages and the some helper functions to create and modify languages.
2513
+ *
2514
+ * @namespace
2515
+ * @memberof Prism
2516
+ * @public
2517
+ */
2518
+ languages: {
2519
+ /**
2520
+ * The grammar for plain, unformatted text.
2521
+ */
2522
+ plain: d,
2523
+ plaintext: d,
2524
+ text: d,
2525
+ txt: d,
2526
+ /**
2527
+ * Creates a deep copy of the language with the given id and appends the given tokens.
2528
+ *
2529
+ * If a token in `redef` also appears in the copied language, then the existing token in the copied language
2530
+ * will be overwritten at its original position.
2531
+ *
2532
+ * ## Best practices
2533
+ *
2534
+ * Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)
2535
+ * doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to
2536
+ * understand the language definition because, normally, the order of tokens matters in Prism grammars.
2537
+ *
2538
+ * Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.
2539
+ * Furthermore, all non-overwriting tokens should be placed after the overwriting ones.
2540
+ *
2541
+ * @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.
2542
+ * @param {Grammar} redef The new tokens to append.
2543
+ * @returns {Grammar} The new language created.
2544
+ * @public
2545
+ * @example
2546
+ * Prism.languages['css-with-colors'] = Prism.languages.extend('css', {
2547
+ * // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token
2548
+ * // at its original position
2549
+ * 'comment': { ... },
2550
+ * // CSS doesn't have a 'color' token, so this token will be appended
2551
+ * 'color': /\b(?:red|green|blue)\b/
2552
+ * });
2553
+ */
2554
+ extend: function(i, s) {
2555
+ var p = l.util.clone(l.languages[i]);
2556
+ for (var g in s)
2557
+ p[g] = s[g];
2558
+ return p;
2559
+ },
2560
+ /**
2561
+ * Inserts tokens _before_ another token in a language definition or any other grammar.
2562
+ *
2563
+ * ## Usage
2564
+ *
2565
+ * This helper method makes it easy to modify existing languages. For example, the CSS language definition
2566
+ * not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded
2567
+ * in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the
2568
+ * appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do
2569
+ * this:
2570
+ *
2571
+ * ```js
2572
+ * Prism.languages.markup.style = {
2573
+ * // token
2574
+ * };
2575
+ * ```
2576
+ *
2577
+ * then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens
2578
+ * before existing tokens. For the CSS example above, you would use it like this:
2579
+ *
2580
+ * ```js
2581
+ * Prism.languages.insertBefore('markup', 'cdata', {
2582
+ * 'style': {
2583
+ * // token
2584
+ * }
2585
+ * });
2586
+ * ```
2587
+ *
2588
+ * ## Special cases
2589
+ *
2590
+ * If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar
2591
+ * will be ignored.
2592
+ *
2593
+ * This behavior can be used to insert tokens after `before`:
2594
+ *
2595
+ * ```js
2596
+ * Prism.languages.insertBefore('markup', 'comment', {
2597
+ * 'comment': Prism.languages.markup.comment,
2598
+ * // tokens after 'comment'
2599
+ * });
2600
+ * ```
2601
+ *
2602
+ * ## Limitations
2603
+ *
2604
+ * The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object
2605
+ * properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave
2606
+ * differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily
2607
+ * deleting properties which is necessary to insert at arbitrary positions.
2608
+ *
2609
+ * To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.
2610
+ * Instead, it will create a new object and replace all references to the target object with the new one. This
2611
+ * can be done without temporarily deleting properties, so the iteration order is well-defined.
2612
+ *
2613
+ * However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if
2614
+ * you hold the target object in a variable, then the value of the variable will not change.
2615
+ *
2616
+ * ```js
2617
+ * var oldMarkup = Prism.languages.markup;
2618
+ * var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });
2619
+ *
2620
+ * assert(oldMarkup !== Prism.languages.markup);
2621
+ * assert(newMarkup === Prism.languages.markup);
2622
+ * ```
2623
+ *
2624
+ * @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the
2625
+ * object to be modified.
2626
+ * @param {string} before The key to insert before.
2627
+ * @param {Grammar} insert An object containing the key-value pairs to be inserted.
2628
+ * @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the
2629
+ * object to be modified.
2630
+ *
2631
+ * Defaults to `Prism.languages`.
2632
+ * @returns {Grammar} The new grammar object.
2633
+ * @public
2634
+ */
2635
+ insertBefore: function(i, s, p, g) {
2636
+ g = g || /** @type {any} */
2637
+ l.languages;
2638
+ var m = g[i], c = {};
2639
+ for (var _ in m)
2640
+ if (m.hasOwnProperty(_)) {
2641
+ if (_ == s)
2642
+ for (var v in p)
2643
+ p.hasOwnProperty(v) && (c[v] = p[v]);
2644
+ p.hasOwnProperty(_) || (c[_] = m[_]);
2645
+ }
2646
+ var k = g[i];
2647
+ return g[i] = c, l.languages.DFS(l.languages, function(N, $) {
2648
+ $ === k && N != i && (this[N] = c);
2649
+ }), c;
2650
+ },
2651
+ // Traverse a language definition with Depth First Search
2652
+ DFS: function i(s, p, g, m) {
2653
+ m = m || {};
2654
+ var c = l.util.objId;
2655
+ for (var _ in s)
2656
+ if (s.hasOwnProperty(_)) {
2657
+ p.call(s, _, s[_], g || _);
2658
+ var v = s[_], k = l.util.type(v);
2659
+ k === "Object" && !m[c(v)] ? (m[c(v)] = !0, i(v, p, null, m)) : k === "Array" && !m[c(v)] && (m[c(v)] = !0, i(v, p, _, m));
2660
+ }
2661
+ }
2662
+ },
2663
+ plugins: {},
2664
+ /**
2665
+ * This is the most high-level function in Prism’s API.
2666
+ * It fetches all the elements that have a `.language-xxxx` class and then calls {@link Prism.highlightElement} on
2667
+ * each one of them.
2668
+ *
2669
+ * This is equivalent to `Prism.highlightAllUnder(document, async, callback)`.
2670
+ *
2671
+ * @param {boolean} [async=false] Same as in {@link Prism.highlightAllUnder}.
2672
+ * @param {HighlightCallback} [callback] Same as in {@link Prism.highlightAllUnder}.
2673
+ * @memberof Prism
2674
+ * @public
2675
+ */
2676
+ highlightAll: function(i, s) {
2677
+ l.highlightAllUnder(document, i, s);
2678
+ },
2679
+ /**
2680
+ * Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
2681
+ * {@link Prism.highlightElement} on each one of them.
2682
+ *
2683
+ * The following hooks will be run:
2684
+ * 1. `before-highlightall`
2685
+ * 2. `before-all-elements-highlight`
2686
+ * 3. All hooks of {@link Prism.highlightElement} for each element.
2687
+ *
2688
+ * @param {ParentNode} container The root element, whose descendants that have a `.language-xxxx` class will be highlighted.
2689
+ * @param {boolean} [async=false] Whether each element is to be highlighted asynchronously using Web Workers.
2690
+ * @param {HighlightCallback} [callback] An optional callback to be invoked on each element after its highlighting is done.
2691
+ * @memberof Prism
2692
+ * @public
2693
+ */
2694
+ highlightAllUnder: function(i, s, p) {
2695
+ var g = {
2696
+ callback: p,
2697
+ container: i,
2698
+ selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
2699
+ };
2700
+ l.hooks.run("before-highlightall", g), g.elements = Array.prototype.slice.apply(g.container.querySelectorAll(g.selector)), l.hooks.run("before-all-elements-highlight", g);
2701
+ for (var m = 0, c; c = g.elements[m++]; )
2702
+ l.highlightElement(c, s === !0, g.callback);
2703
+ },
2704
+ /**
2705
+ * Highlights the code inside a single element.
2706
+ *
2707
+ * The following hooks will be run:
2708
+ * 1. `before-sanity-check`
2709
+ * 2. `before-highlight`
2710
+ * 3. All hooks of {@link Prism.highlight}. These hooks will be run by an asynchronous worker if `async` is `true`.
2711
+ * 4. `before-insert`
2712
+ * 5. `after-highlight`
2713
+ * 6. `complete`
2714
+ *
2715
+ * Some the above hooks will be skipped if the element doesn't contain any text or there is no grammar loaded for
2716
+ * the element's language.
2717
+ *
2718
+ * @param {Element} element The element containing the code.
2719
+ * It must have a class of `language-xxxx` to be processed, where `xxxx` is a valid language identifier.
2720
+ * @param {boolean} [async=false] Whether the element is to be highlighted asynchronously using Web Workers
2721
+ * to improve performance and avoid blocking the UI when highlighting very large chunks of code. This option is
2722
+ * [disabled by default](https://prismjs.com/faq.html#why-is-asynchronous-highlighting-disabled-by-default).
2723
+ *
2724
+ * Note: All language definitions required to highlight the code must be included in the main `prism.js` file for
2725
+ * asynchronous highlighting to work. You can build your own bundle on the
2726
+ * [Download page](https://prismjs.com/download.html).
2727
+ * @param {HighlightCallback} [callback] An optional callback to be invoked after the highlighting is done.
2728
+ * Mostly useful when `async` is `true`, since in that case, the highlighting is done asynchronously.
2729
+ * @memberof Prism
2730
+ * @public
2731
+ */
2732
+ highlightElement: function(i, s, p) {
2733
+ var g = l.util.getLanguage(i), m = l.languages[g];
2734
+ l.util.setLanguage(i, g);
2735
+ var c = i.parentElement;
2736
+ c && c.nodeName.toLowerCase() === "pre" && l.util.setLanguage(c, g);
2737
+ var _ = i.textContent, v = {
2738
+ element: i,
2739
+ language: g,
2740
+ grammar: m,
2741
+ code: _
2742
+ };
2743
+ function k($) {
2744
+ v.highlightedCode = $, l.hooks.run("before-insert", v), v.element.innerHTML = v.highlightedCode, l.hooks.run("after-highlight", v), l.hooks.run("complete", v), p && p.call(v.element);
2745
+ }
2746
+ if (l.hooks.run("before-sanity-check", v), c = v.element.parentElement, c && c.nodeName.toLowerCase() === "pre" && !c.hasAttribute("tabindex") && c.setAttribute("tabindex", "0"), !v.code) {
2747
+ l.hooks.run("complete", v), p && p.call(v.element);
2748
+ return;
2749
+ }
2750
+ if (l.hooks.run("before-highlight", v), !v.grammar) {
2751
+ k(l.util.encode(v.code));
2752
+ return;
2753
+ }
2754
+ if (s && n.Worker) {
2755
+ var N = new Worker(l.filename);
2756
+ N.onmessage = function($) {
2757
+ k($.data);
2758
+ }, N.postMessage(JSON.stringify({
2759
+ language: v.language,
2760
+ code: v.code,
2761
+ immediateClose: !0
2762
+ }));
2763
+ } else
2764
+ k(l.highlight(v.code, v.grammar, v.language));
2765
+ },
2766
+ /**
2767
+ * Low-level function, only use if you know what you’re doing. It accepts a string of text as input
2768
+ * and the language definitions to use, and returns a string with the HTML produced.
2769
+ *
2770
+ * The following hooks will be run:
2771
+ * 1. `before-tokenize`
2772
+ * 2. `after-tokenize`
2773
+ * 3. `wrap`: On each {@link Token}.
2774
+ *
2775
+ * @param {string} text A string with the code to be highlighted.
2776
+ * @param {Grammar} grammar An object containing the tokens to use.
2777
+ *
2778
+ * Usually a language definition like `Prism.languages.markup`.
2779
+ * @param {string} language The name of the language definition passed to `grammar`.
2780
+ * @returns {string} The highlighted HTML.
2781
+ * @memberof Prism
2782
+ * @public
2783
+ * @example
2784
+ * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
2785
+ */
2786
+ highlight: function(i, s, p) {
2787
+ var g = {
2788
+ code: i,
2789
+ grammar: s,
2790
+ language: p
2791
+ };
2792
+ if (l.hooks.run("before-tokenize", g), !g.grammar)
2793
+ throw new Error('The language "' + g.language + '" has no grammar.');
2794
+ return g.tokens = l.tokenize(g.code, g.grammar), l.hooks.run("after-tokenize", g), f.stringify(l.util.encode(g.tokens), g.language);
2795
+ },
2796
+ /**
2797
+ * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
2798
+ * and the language definitions to use, and returns an array with the tokenized code.
2799
+ *
2800
+ * When the language definition includes nested tokens, the function is called recursively on each of these tokens.
2801
+ *
2802
+ * This method could be useful in other contexts as well, as a very crude parser.
2803
+ *
2804
+ * @param {string} text A string with the code to be highlighted.
2805
+ * @param {Grammar} grammar An object containing the tokens to use.
2806
+ *
2807
+ * Usually a language definition like `Prism.languages.markup`.
2808
+ * @returns {TokenStream} An array of strings and tokens, a token stream.
2809
+ * @memberof Prism
2810
+ * @public
2811
+ * @example
2812
+ * let code = `var foo = 0;`;
2813
+ * let tokens = Prism.tokenize(code, Prism.languages.javascript);
2814
+ * tokens.forEach(token => {
2815
+ * if (token instanceof Prism.Token && token.type === 'number') {
2816
+ * console.log(`Found numeric literal: ${token.content}`);
2817
+ * }
2818
+ * });
2819
+ */
2820
+ tokenize: function(i, s) {
2821
+ var p = s.rest;
2822
+ if (p) {
2823
+ for (var g in p)
2824
+ s[g] = p[g];
2825
+ delete s.rest;
2826
+ }
2827
+ var m = new x();
2828
+ return b(m, m.head, i), C(i, m, s, m.head, 0), S(m);
2829
+ },
2830
+ /**
2831
+ * @namespace
2832
+ * @memberof Prism
2833
+ * @public
2834
+ */
2835
+ hooks: {
2836
+ all: {},
2837
+ /**
2838
+ * Adds the given callback to the list of callbacks for the given hook.
2839
+ *
2840
+ * The callback will be invoked when the hook it is registered for is run.
2841
+ * Hooks are usually directly run by a highlight function but you can also run hooks yourself.
2842
+ *
2843
+ * One callback function can be registered to multiple hooks and the same hook multiple times.
2844
+ *
2845
+ * @param {string} name The name of the hook.
2846
+ * @param {HookCallback} callback The callback function which is given environment variables.
2847
+ * @public
2848
+ */
2849
+ add: function(i, s) {
2850
+ var p = l.hooks.all;
2851
+ p[i] = p[i] || [], p[i].push(s);
2852
+ },
2853
+ /**
2854
+ * Runs a hook invoking all registered callbacks with the given environment variables.
2855
+ *
2856
+ * Callbacks will be invoked synchronously and in the order in which they were registered.
2857
+ *
2858
+ * @param {string} name The name of the hook.
2859
+ * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
2860
+ * @public
2861
+ */
2862
+ run: function(i, s) {
2863
+ var p = l.hooks.all[i];
2864
+ if (!(!p || !p.length))
2865
+ for (var g = 0, m; m = p[g++]; )
2866
+ m(s);
2867
+ }
2868
+ },
2869
+ Token: f
2870
+ };
2871
+ n.Prism = l;
2872
+ function f(i, s, p, g) {
2873
+ this.type = i, this.content = s, this.alias = p, this.length = (g || "").length | 0;
2874
+ }
2875
+ f.stringify = function i(s, p) {
2876
+ if (typeof s == "string")
2877
+ return s;
2878
+ if (Array.isArray(s)) {
2879
+ var g = "";
2880
+ return s.forEach(function(k) {
2881
+ g += i(k, p);
2882
+ }), g;
2883
+ }
2884
+ var m = {
2885
+ type: s.type,
2886
+ content: i(s.content, p),
2887
+ tag: "span",
2888
+ classes: ["token", s.type],
2889
+ attributes: {},
2890
+ language: p
2891
+ }, c = s.alias;
2892
+ c && (Array.isArray(c) ? Array.prototype.push.apply(m.classes, c) : m.classes.push(c)), l.hooks.run("wrap", m);
2893
+ var _ = "";
2894
+ for (var v in m.attributes)
2895
+ _ += " " + v + '="' + (m.attributes[v] || "").replace(/"/g, "&quot;") + '"';
2896
+ return "<" + m.tag + ' class="' + m.classes.join(" ") + '"' + _ + ">" + m.content + "</" + m.tag + ">";
2897
+ };
2898
+ function h(i, s, p, g) {
2899
+ i.lastIndex = s;
2900
+ var m = i.exec(p);
2901
+ if (m && g && m[1]) {
2902
+ var c = m[1].length;
2903
+ m.index += c, m[0] = m[0].slice(c);
2904
+ }
2905
+ return m;
2906
+ }
2907
+ function C(i, s, p, g, m, c) {
2908
+ for (var _ in p)
2909
+ if (!(!p.hasOwnProperty(_) || !p[_])) {
2910
+ var v = p[_];
2911
+ v = Array.isArray(v) ? v : [v];
2912
+ for (var k = 0; k < v.length; ++k) {
2913
+ if (c && c.cause == _ + "," + k)
2914
+ return;
2915
+ var N = v[k], $ = N.inside, H = !!N.lookbehind, z = !!N.greedy, X = N.alias;
2916
+ if (z && !N.pattern.global) {
2917
+ var J = N.pattern.toString().match(/[imsuy]*$/)[0];
2918
+ N.pattern = RegExp(N.pattern.source, J + "g");
2919
+ }
2920
+ for (var W = N.pattern || N, O = g.next, L = m; O !== s.tail && !(c && L >= c.reach); L += O.value.length, O = O.next) {
2921
+ var B = O.value;
2922
+ if (s.length > i.length)
2923
+ return;
2924
+ if (!(B instanceof f)) {
2925
+ var Q = 1, M;
2926
+ if (z) {
2927
+ if (M = h(W, L, i, H), !M || M.index >= i.length)
2928
+ break;
2929
+ var T = M.index, ce = M.index + M[0].length, j = L;
2930
+ for (j += O.value.length; T >= j; )
2931
+ O = O.next, j += O.value.length;
2932
+ if (j -= O.value.length, L = j, O.value instanceof f)
2933
+ continue;
2934
+ for (var I = O; I !== s.tail && (j < ce || typeof I.value == "string"); I = I.next)
2935
+ Q++, j += I.value.length;
2936
+ Q--, B = i.slice(L, j), M.index -= L;
2937
+ } else if (M = h(W, 0, B, H), !M)
2938
+ continue;
2939
+ var T = M.index, K = M[0], P = B.slice(0, T), re = B.slice(T + K.length), pe = L + B.length;
2940
+ c && pe > c.reach && (c.reach = pe);
2941
+ var de = O.prev;
2942
+ P && (de = b(s, de, P), L += P.length), y(s, de, Q);
2943
+ var Ee = new f(_, $ ? l.tokenize(K, $) : K, X, K);
2944
+ if (O = b(s, de, Ee), re && b(s, O, re), Q > 1) {
2945
+ var me = {
2946
+ cause: _ + "," + k,
2947
+ reach: pe
2948
+ };
2949
+ C(i, s, p, O.prev, L, me), c && me.reach > c.reach && (c.reach = me.reach);
2950
+ }
2951
+ }
2952
+ }
2953
+ }
2954
+ }
2955
+ }
2956
+ function x() {
2957
+ var i = { value: null, prev: null, next: null }, s = { value: null, prev: i, next: null };
2958
+ i.next = s, this.head = i, this.tail = s, this.length = 0;
2959
+ }
2960
+ function b(i, s, p) {
2961
+ var g = s.next, m = { value: p, prev: s, next: g };
2962
+ return s.next = m, g.prev = m, i.length++, m;
2963
+ }
2964
+ function y(i, s, p) {
2965
+ for (var g = s.next, m = 0; m < p && g !== i.tail; m++)
2966
+ g = g.next;
2967
+ s.next = g, g.prev = s, i.length -= m;
2968
+ }
2969
+ function S(i) {
2970
+ for (var s = [], p = i.head.next; p !== i.tail; )
2971
+ s.push(p.value), p = p.next;
2972
+ return s;
2973
+ }
2974
+ if (!n.document)
2975
+ return n.addEventListener && (l.disableWorkerMessageHandler || n.addEventListener("message", function(i) {
2976
+ var s = JSON.parse(i.data), p = s.language, g = s.code, m = s.immediateClose;
2977
+ n.postMessage(l.highlight(g, l.languages[p], p)), m && n.close();
2978
+ }, !1)), l;
2979
+ var E = l.util.currentScript();
2980
+ E && (l.filename = E.src, E.hasAttribute("data-manual") && (l.manual = !0));
2981
+ function w() {
2982
+ l.manual || l.highlightAll();
2983
+ }
2984
+ if (!l.manual) {
2985
+ var A = document.readyState;
2986
+ A === "loading" || A === "interactive" && E && E.defer ? document.addEventListener("DOMContentLoaded", w) : window.requestAnimationFrame ? window.requestAnimationFrame(w) : window.setTimeout(w, 16);
2987
+ }
2988
+ return l;
2989
+ })(t);
2990
+ typeof r < "u" && r.exports && (r.exports = a), typeof global < "u" && (global.Prism = a);
2991
+ }
2992
+ }), on = F({
2993
+ "../node_modules/refractor/lang/clike.js"(e, r) {
2994
+ r.exports = t, t.displayName = "clike", t.aliases = [];
2995
+ function t(a) {
2996
+ a.languages.clike = {
2997
+ comment: [
2998
+ {
2999
+ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
3000
+ lookbehind: !0,
3001
+ greedy: !0
3002
+ },
3003
+ {
3004
+ pattern: /(^|[^\\:])\/\/.*/,
3005
+ lookbehind: !0,
3006
+ greedy: !0
3007
+ }
3008
+ ],
3009
+ string: {
3010
+ pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
3011
+ greedy: !0
3012
+ },
3013
+ "class-name": {
3014
+ pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
3015
+ lookbehind: !0,
3016
+ inside: {
3017
+ punctuation: /[.\\]/
3018
+ }
3019
+ },
3020
+ keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
3021
+ boolean: /\b(?:false|true)\b/,
3022
+ function: /\b\w+(?=\()/,
3023
+ number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
3024
+ operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
3025
+ punctuation: /[{}[\];(),.:]/
3026
+ };
3027
+ }
3028
+ }
3029
+ }), ln = F({
3030
+ "../node_modules/refractor/lang/javascript.js"(e, r) {
3031
+ r.exports = t, t.displayName = "javascript", t.aliases = ["js"];
3032
+ function t(a) {
3033
+ a.languages.javascript = a.languages.extend("clike", {
3034
+ "class-name": [
3035
+ a.languages.clike["class-name"],
3036
+ {
3037
+ pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
3038
+ lookbehind: !0
3039
+ }
3040
+ ],
3041
+ keyword: [
3042
+ {
3043
+ pattern: /((?:^|\})\s*)catch\b/,
3044
+ lookbehind: !0
3045
+ },
3046
+ {
3047
+ pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
3048
+ lookbehind: !0
3049
+ }
3050
+ ],
3051
+ // Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)
3052
+ function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
3053
+ number: {
3054
+ pattern: RegExp(
3055
+ /(^|[^\w$])/.source + "(?:" + // constant
3056
+ (/NaN|Infinity/.source + "|" + // binary integer
3057
+ /0[bB][01]+(?:_[01]+)*n?/.source + "|" + // octal integer
3058
+ /0[oO][0-7]+(?:_[0-7]+)*n?/.source + "|" + // hexadecimal integer
3059
+ /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source + "|" + // decimal bigint
3060
+ /\d+(?:_\d+)*n/.source + "|" + // decimal number (integer or float) but no bigint
3061
+ /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source) + ")" + /(?![\w$])/.source
3062
+ ),
3063
+ lookbehind: !0
3064
+ },
3065
+ operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
3066
+ }), a.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, a.languages.insertBefore("javascript", "keyword", {
3067
+ regex: {
3068
+ // eslint-disable-next-line regexp/no-dupe-characters-character-class
3069
+ pattern: /((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,
3070
+ lookbehind: !0,
3071
+ greedy: !0,
3072
+ inside: {
3073
+ "regex-source": {
3074
+ pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
3075
+ lookbehind: !0,
3076
+ alias: "language-regex",
3077
+ inside: a.languages.regex
3078
+ },
3079
+ "regex-delimiter": /^\/|\/$/,
3080
+ "regex-flags": /^[a-z]+$/
3081
+ }
3082
+ },
3083
+ // This must be declared before keyword because we use "function" inside the look-forward
3084
+ "function-variable": {
3085
+ pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
3086
+ alias: "function"
3087
+ },
3088
+ parameter: [
3089
+ {
3090
+ pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
3091
+ lookbehind: !0,
3092
+ inside: a.languages.javascript
3093
+ },
3094
+ {
3095
+ pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
3096
+ lookbehind: !0,
3097
+ inside: a.languages.javascript
3098
+ },
3099
+ {
3100
+ pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
3101
+ lookbehind: !0,
3102
+ inside: a.languages.javascript
3103
+ },
3104
+ {
3105
+ pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
3106
+ lookbehind: !0,
3107
+ inside: a.languages.javascript
3108
+ }
3109
+ ],
3110
+ constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/
3111
+ }), a.languages.insertBefore("javascript", "string", {
3112
+ hashbang: {
3113
+ pattern: /^#!.*/,
3114
+ greedy: !0,
3115
+ alias: "comment"
3116
+ },
3117
+ "template-string": {
3118
+ pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
3119
+ greedy: !0,
3120
+ inside: {
3121
+ "template-punctuation": {
3122
+ pattern: /^`|`$/,
3123
+ alias: "string"
3124
+ },
3125
+ interpolation: {
3126
+ pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
3127
+ lookbehind: !0,
3128
+ inside: {
3129
+ "interpolation-punctuation": {
3130
+ pattern: /^\$\{|\}$/,
3131
+ alias: "punctuation"
3132
+ },
3133
+ rest: a.languages.javascript
3134
+ }
3135
+ },
3136
+ string: /[\s\S]+/
3137
+ }
3138
+ },
3139
+ "string-property": {
3140
+ pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,
3141
+ lookbehind: !0,
3142
+ greedy: !0,
3143
+ alias: "property"
3144
+ }
3145
+ }), a.languages.insertBefore("javascript", "operator", {
3146
+ "literal-property": {
3147
+ pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
3148
+ lookbehind: !0,
3149
+ alias: "property"
3150
+ }
3151
+ }), a.languages.markup && (a.languages.markup.tag.addInlined("script", "javascript"), a.languages.markup.tag.addAttribute(
3152
+ /on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,
3153
+ "javascript"
3154
+ )), a.languages.js = a.languages.javascript;
3155
+ }
3156
+ }
3157
+ }), sn = F({
3158
+ "../node_modules/refractor/core.js"(e, r) {
3159
+ var t = typeof globalThis == "object" ? globalThis : typeof self == "object" ? self : typeof window == "object" ? window : typeof global == "object" ? global : {}, a = m();
3160
+ t.Prism = { manual: !0, disableWorkerMessageHandler: !0 };
3161
+ var n = Vt(), o = an(), u = rn(), d = et(), l = Je(), f = on(), h = ln();
3162
+ a();
3163
+ var C = {}.hasOwnProperty;
3164
+ function x() {
3165
+ }
3166
+ x.prototype = u;
3167
+ var b = new x();
3168
+ r.exports = b, b.highlight = E, b.register = y, b.alias = S, b.registered = w, b.listLanguages = A, y(d), y(l), y(f), y(h), b.util.encode = p, b.Token.stringify = i;
3169
+ function y(c) {
3170
+ if (typeof c != "function" || !c.displayName)
3171
+ throw new Error("Expected `function` for `grammar`, got `" + c + "`");
3172
+ b.languages[c.displayName] === void 0 && c(b);
3173
+ }
3174
+ function S(c, _) {
3175
+ var v = b.languages, k = c, N, $, H, z;
3176
+ _ && (k = {}, k[c] = _);
3177
+ for (N in k)
3178
+ for ($ = k[N], $ = typeof $ == "string" ? [$] : $, H = $.length, z = -1; ++z < H; )
3179
+ v[$[z]] = v[N];
3180
+ }
3181
+ function E(c, _) {
3182
+ var v = u.highlight, k;
3183
+ if (typeof c != "string")
3184
+ throw new Error("Expected `string` for `value`, got `" + c + "`");
3185
+ if (b.util.type(_) === "Object")
3186
+ k = _, _ = null;
3187
+ else {
3188
+ if (typeof _ != "string")
3189
+ throw new Error("Expected `string` for `name`, got `" + _ + "`");
3190
+ if (C.call(b.languages, _))
3191
+ k = b.languages[_];
3192
+ else
3193
+ throw new Error("Unknown language: `" + _ + "` is not registered");
3194
+ }
3195
+ return v.call(this, c, k, _);
3196
+ }
3197
+ function w(c) {
3198
+ if (typeof c != "string")
3199
+ throw new Error("Expected `string` for `language`, got `" + c + "`");
3200
+ return C.call(b.languages, c);
3201
+ }
3202
+ function A() {
3203
+ var c = b.languages, _ = [], v;
3204
+ for (v in c)
3205
+ C.call(c, v) && typeof c[v] == "object" && _.push(v);
3206
+ return _;
3207
+ }
3208
+ function i(c, _, v) {
3209
+ var k;
3210
+ return typeof c == "string" ? { type: "text", value: c } : b.util.type(c) === "Array" ? s(c, _) : (k = {
3211
+ type: c.type,
3212
+ content: b.Token.stringify(c.content, _, v),
3213
+ tag: "span",
3214
+ classes: ["token", c.type],
3215
+ attributes: {},
3216
+ language: _,
3217
+ parent: v
3218
+ }, c.alias && (k.classes = k.classes.concat(c.alias)), b.hooks.run("wrap", k), n(
3219
+ k.tag + "." + k.classes.join("."),
3220
+ g(k.attributes),
3221
+ k.content
3222
+ ));
3223
+ }
3224
+ function s(c, _) {
3225
+ for (var v = [], k = c.length, N = -1, $; ++N < k; )
3226
+ $ = c[N], $ !== "" && $ !== null && $ !== void 0 && v.push($);
3227
+ for (N = -1, k = v.length; ++N < k; )
3228
+ $ = v[N], v[N] = b.Token.stringify($, _, v);
3229
+ return v;
3230
+ }
3231
+ function p(c) {
3232
+ return c;
3233
+ }
3234
+ function g(c) {
3235
+ var _;
3236
+ for (_ in c)
3237
+ c[_] = o(c[_]);
3238
+ return c;
3239
+ }
3240
+ function m() {
3241
+ var c = "Prism" in t, _ = c ? t.Prism : void 0;
3242
+ return v;
3243
+ function v() {
3244
+ c ? t.Prism = _ : delete t.Prism, c = void 0, _ = void 0;
3245
+ }
3246
+ }
3247
+ }
3248
+ }), un = Z(wt(), 1);
3249
+ function Ke(e, r) {
3250
+ var t = Object.keys(e);
3251
+ if (Object.getOwnPropertySymbols) {
3252
+ var a = Object.getOwnPropertySymbols(e);
3253
+ r && (a = a.filter(function(n) {
3254
+ return Object.getOwnPropertyDescriptor(e, n).enumerable;
3255
+ })), t.push.apply(t, a);
3256
+ }
3257
+ return t;
3258
+ }
3259
+ function fe(e) {
3260
+ for (var r = 1; r < arguments.length; r++) {
3261
+ var t = arguments[r] != null ? arguments[r] : {};
3262
+ r % 2 ? Ke(Object(t), !0).forEach(function(a) {
3263
+ Ye(e, a, t[a]);
3264
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Ke(Object(t)).forEach(function(a) {
3265
+ Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(t, a));
3266
+ });
3267
+ }
3268
+ return e;
3269
+ }
3270
+ function cn(e) {
3271
+ var r = e.length;
3272
+ if (r === 0 || r === 1) return e;
3273
+ if (r === 2)
3274
+ return [e[0], e[1], "".concat(e[0], ".").concat(e[1]), "".concat(e[1], ".").concat(e[0])];
3275
+ if (r === 3)
3276
+ return [e[0], e[1], e[2], "".concat(e[0], ".").concat(e[1]), "".concat(e[0], ".").concat(e[2]), "".concat(e[1], ".").concat(e[0]), "".concat(e[1], ".").concat(e[2]), "".concat(e[2], ".").concat(e[0]), "".concat(e[2], ".").concat(e[1]), "".concat(e[0], ".").concat(e[1], ".").concat(e[2]), "".concat(e[0], ".").concat(e[2], ".").concat(e[1]), "".concat(e[1], ".").concat(e[0], ".").concat(e[2]), "".concat(e[1], ".").concat(e[2], ".").concat(e[0]), "".concat(e[2], ".").concat(e[0], ".").concat(e[1]), "".concat(e[2], ".").concat(e[1], ".").concat(e[0])];
3277
+ if (r >= 4)
3278
+ return [e[0], e[1], e[2], e[3], "".concat(e[0], ".").concat(e[1]), "".concat(e[0], ".").concat(e[2]), "".concat(e[0], ".").concat(e[3]), "".concat(e[1], ".").concat(e[0]), "".concat(e[1], ".").concat(e[2]), "".concat(e[1], ".").concat(e[3]), "".concat(e[2], ".").concat(e[0]), "".concat(e[2], ".").concat(e[1]), "".concat(e[2], ".").concat(e[3]), "".concat(e[3], ".").concat(e[0]), "".concat(e[3], ".").concat(e[1]), "".concat(e[3], ".").concat(e[2]), "".concat(e[0], ".").concat(e[1], ".").concat(e[2]), "".concat(e[0], ".").concat(e[1], ".").concat(e[3]), "".concat(e[0], ".").concat(e[2], ".").concat(e[1]), "".concat(e[0], ".").concat(e[2], ".").concat(e[3]), "".concat(e[0], ".").concat(e[3], ".").concat(e[1]), "".concat(e[0], ".").concat(e[3], ".").concat(e[2]), "".concat(e[1], ".").concat(e[0], ".").concat(e[2]), "".concat(e[1], ".").concat(e[0], ".").concat(e[3]), "".concat(e[1], ".").concat(e[2], ".").concat(e[0]), "".concat(e[1], ".").concat(e[2], ".").concat(e[3]), "".concat(e[1], ".").concat(e[3], ".").concat(e[0]), "".concat(e[1], ".").concat(e[3], ".").concat(e[2]), "".concat(e[2], ".").concat(e[0], ".").concat(e[1]), "".concat(e[2], ".").concat(e[0], ".").concat(e[3]), "".concat(e[2], ".").concat(e[1], ".").concat(e[0]), "".concat(e[2], ".").concat(e[1], ".").concat(e[3]), "".concat(e[2], ".").concat(e[3], ".").concat(e[0]), "".concat(e[2], ".").concat(e[3], ".").concat(e[1]), "".concat(e[3], ".").concat(e[0], ".").concat(e[1]), "".concat(e[3], ".").concat(e[0], ".").concat(e[2]), "".concat(e[3], ".").concat(e[1], ".").concat(e[0]), "".concat(e[3], ".").concat(e[1], ".").concat(e[2]), "".concat(e[3], ".").concat(e[2], ".").concat(e[0]), "".concat(e[3], ".").concat(e[2], ".").concat(e[1]), "".concat(e[0], ".").concat(e[1], ".").concat(e[2], ".").concat(e[3]), "".concat(e[0], ".").concat(e[1], ".").concat(e[3], ".").concat(e[2]), "".concat(e[0], ".").concat(e[2], ".").concat(e[1], ".").concat(e[3]), "".concat(e[0], ".").concat(e[2], ".").concat(e[3], ".").concat(e[1]), "".concat(e[0], ".").concat(e[3], ".").concat(e[1], ".").concat(e[2]), "".concat(e[0], ".").concat(e[3], ".").concat(e[2], ".").concat(e[1]), "".concat(e[1], ".").concat(e[0], ".").concat(e[2], ".").concat(e[3]), "".concat(e[1], ".").concat(e[0], ".").concat(e[3], ".").concat(e[2]), "".concat(e[1], ".").concat(e[2], ".").concat(e[0], ".").concat(e[3]), "".concat(e[1], ".").concat(e[2], ".").concat(e[3], ".").concat(e[0]), "".concat(e[1], ".").concat(e[3], ".").concat(e[0], ".").concat(e[2]), "".concat(e[1], ".").concat(e[3], ".").concat(e[2], ".").concat(e[0]), "".concat(e[2], ".").concat(e[0], ".").concat(e[1], ".").concat(e[3]), "".concat(e[2], ".").concat(e[0], ".").concat(e[3], ".").concat(e[1]), "".concat(e[2], ".").concat(e[1], ".").concat(e[0], ".").concat(e[3]), "".concat(e[2], ".").concat(e[1], ".").concat(e[3], ".").concat(e[0]), "".concat(e[2], ".").concat(e[3], ".").concat(e[0], ".").concat(e[1]), "".concat(e[2], ".").concat(e[3], ".").concat(e[1], ".").concat(e[0]), "".concat(e[3], ".").concat(e[0], ".").concat(e[1], ".").concat(e[2]), "".concat(e[3], ".").concat(e[0], ".").concat(e[2], ".").concat(e[1]), "".concat(e[3], ".").concat(e[1], ".").concat(e[0], ".").concat(e[2]), "".concat(e[3], ".").concat(e[1], ".").concat(e[2], ".").concat(e[0]), "".concat(e[3], ".").concat(e[2], ".").concat(e[0], ".").concat(e[1]), "".concat(e[3], ".").concat(e[2], ".").concat(e[1], ".").concat(e[0])];
3279
+ }
3280
+ var Oe = {};
3281
+ function pn(e) {
3282
+ if (e.length === 0 || e.length === 1) return e;
3283
+ var r = e.join(".");
3284
+ return Oe[r] || (Oe[r] = cn(e)), Oe[r];
3285
+ }
3286
+ function dn(e) {
3287
+ var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = arguments.length > 2 ? arguments[2] : void 0, a = e.filter(function(o) {
3288
+ return o !== "token";
3289
+ }), n = pn(a);
3290
+ return n.reduce(function(o, u) {
3291
+ return fe(fe({}, o), t[u]);
3292
+ }, r);
3293
+ }
3294
+ function Xe(e) {
3295
+ return e.join(" ");
3296
+ }
3297
+ function gn(e, r) {
3298
+ var t = 0;
3299
+ return function(a) {
3300
+ return t += 1, a.map(function(n, o) {
3301
+ return Re({
3302
+ node: n,
3303
+ stylesheet: e,
3304
+ useInlineStyles: r,
3305
+ key: "code-segment-".concat(t, "-").concat(o)
3306
+ });
3307
+ });
3308
+ };
3309
+ }
3310
+ function Re(e) {
3311
+ var r = e.node, t = e.stylesheet, a = e.style, n = a === void 0 ? {} : a, o = e.useInlineStyles, u = e.key, d = r.properties, l = r.type, f = r.tagName, h = r.value;
3312
+ if (l === "text")
3313
+ return h;
3314
+ if (f) {
3315
+ var C = gn(t, o), x;
3316
+ if (!o)
3317
+ x = fe(fe({}, d), {}, {
3318
+ className: Xe(d.className)
3319
+ });
3320
+ else {
3321
+ var b = Object.keys(t).reduce(function(w, A) {
3322
+ return A.split(".").forEach(function(i) {
3323
+ w.includes(i) || w.push(i);
3324
+ }), w;
3325
+ }, []), y = d.className && d.className.includes("token") ? ["token"] : [], S = d.className && y.concat(d.className.filter(function(w) {
3326
+ return !b.includes(w);
3327
+ }));
3328
+ x = fe(fe({}, d), {}, {
3329
+ className: Xe(S) || void 0,
3330
+ style: dn(d.className, Object.assign({}, d.style, n), t)
3331
+ });
3332
+ }
3333
+ var E = C(r.children);
3334
+ return G.createElement(f, vt({
3335
+ key: u
3336
+ }, x), E);
3337
+ }
3338
+ }
3339
+ var fn = Z(Ft()), mn = fn.default, hn = Z(Je()), yn = hn.default, bn = Z(jt()), xn = bn.default, vn = Z(Nt()), Sn = vn.default, wn = Z($t()), _n = wn.default, An = Z(Qe()), En = An.default, kn = Z(Ot()), Cn = kn.default, Fn = Z(et()), jn = Fn.default, Nn = Z(Lt()), $n = Nn.default, On = Z(tt()), Ln = On.default, In = Z(It()), Tn = In.default;
3340
+ function Le(e, r) {
3341
+ (r == null || r > e.length) && (r = e.length);
3342
+ for (var t = 0, a = Array(r); t < r; t++) a[t] = e[t];
3343
+ return a;
3344
+ }
3345
+ function Dn(e) {
3346
+ if (Array.isArray(e)) return Le(e);
3347
+ }
3348
+ function Rn(e) {
3349
+ if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
3350
+ }
3351
+ function qn(e, r) {
3352
+ if (e) {
3353
+ if (typeof e == "string") return Le(e, r);
3354
+ var t = {}.toString.call(e).slice(8, -1);
3355
+ return t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set" ? Array.from(e) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Le(e, r) : void 0;
3356
+ }
3357
+ }
3358
+ function Bn() {
3359
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
3360
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
3361
+ }
3362
+ function Ie(e) {
3363
+ return Dn(e) || Rn(e) || qn(e) || Bn();
3364
+ }
3365
+ var Mn = (function(e, r) {
3366
+ var t = e.listLanguages();
3367
+ return t.indexOf(r) !== -1;
3368
+ }), zn = ["language", "children", "style", "customStyle", "codeTagProps", "useInlineStyles", "showLineNumbers", "showInlineLineNumbers", "startingLineNumber", "lineNumberContainerStyle", "lineNumberStyle", "wrapLines", "wrapLongLines", "lineProps", "renderer", "PreTag", "CodeTag", "code", "astGenerator"];
3369
+ function Ve(e, r) {
3370
+ var t = Object.keys(e);
3371
+ if (Object.getOwnPropertySymbols) {
3372
+ var a = Object.getOwnPropertySymbols(e);
3373
+ r && (a = a.filter(function(n) {
3374
+ return Object.getOwnPropertyDescriptor(e, n).enumerable;
3375
+ })), t.push.apply(t, a);
3376
+ }
3377
+ return t;
3378
+ }
3379
+ function ae(e) {
3380
+ for (var r = 1; r < arguments.length; r++) {
3381
+ var t = arguments[r] != null ? arguments[r] : {};
3382
+ r % 2 ? Ve(Object(t), !0).forEach(function(a) {
3383
+ Ye(e, a, t[a]);
3384
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Ve(Object(t)).forEach(function(a) {
3385
+ Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(t, a));
3386
+ });
3387
+ }
3388
+ return e;
3389
+ }
3390
+ var Hn = /\n/g;
3391
+ function Pn(e) {
3392
+ return e.match(Hn);
3393
+ }
3394
+ function Un(e) {
3395
+ var r = e.lines, t = e.startingLineNumber, a = e.style;
3396
+ return r.map(function(n, o) {
3397
+ var u = o + t;
3398
+ return G.createElement("span", {
3399
+ key: "line-".concat(o),
3400
+ className: "react-syntax-highlighter-line-number",
3401
+ style: typeof a == "function" ? a(u) : a
3402
+ }, "".concat(u, `
3403
+ `));
3404
+ });
3405
+ }
3406
+ function Gn(e) {
3407
+ var r = e.codeString, t = e.codeStyle, a = e.containerStyle, n = a === void 0 ? {
3408
+ float: "left",
3409
+ paddingRight: "10px"
3410
+ } : a, o = e.numberStyle, u = o === void 0 ? {} : o, d = e.startingLineNumber;
3411
+ return G.createElement("code", {
3412
+ style: Object.assign({}, t, n)
3413
+ }, Un({
3414
+ lines: r.replace(/\n$/, "").split(`
3415
+ `),
3416
+ style: u,
3417
+ startingLineNumber: d
3418
+ }));
3419
+ }
3420
+ function Zn(e) {
3421
+ return "".concat(e.toString().length, ".25em");
3422
+ }
3423
+ function it(e, r) {
3424
+ return {
3425
+ type: "element",
3426
+ tagName: "span",
3427
+ properties: {
3428
+ key: "line-number--".concat(e),
3429
+ className: ["comment", "linenumber", "react-syntax-highlighter-line-number"],
3430
+ style: r
3431
+ },
3432
+ children: [{
3433
+ type: "text",
3434
+ value: e
3435
+ }]
3436
+ };
3437
+ }
3438
+ function st(e, r, t) {
3439
+ var a = {
3440
+ display: "inline-block",
3441
+ minWidth: Zn(t),
3442
+ paddingRight: "1em",
3443
+ textAlign: "right",
3444
+ userSelect: "none"
3445
+ }, n = typeof e == "function" ? e(r) : e, o = ae(ae({}, a), n);
3446
+ return o;
3447
+ }
3448
+ function _e(e) {
3449
+ var r = e.children, t = e.lineNumber, a = e.lineNumberStyle, n = e.largestLineNumber, o = e.showInlineLineNumbers, u = e.lineProps, d = u === void 0 ? {} : u, l = e.className, f = l === void 0 ? [] : l, h = e.showLineNumbers, C = e.wrapLongLines, x = e.wrapLines, b = x === void 0 ? !1 : x, y = b ? ae({}, typeof d == "function" ? d(t) : d) : {};
3450
+ if (y.className = y.className ? [].concat(Ie(y.className.trim().split(/\s+/)), Ie(f)) : f, t && o) {
3451
+ var S = st(a, t, n);
3452
+ r.unshift(it(t, S));
3453
+ }
3454
+ return C & h && (y.style = ae({
3455
+ display: "flex"
3456
+ }, y.style)), {
3457
+ type: "element",
3458
+ tagName: "span",
3459
+ properties: y,
3460
+ children: r
3461
+ };
3462
+ }
3463
+ function ut(e) {
3464
+ for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [], a = 0; a < e.length; a++) {
3465
+ var n = e[a];
3466
+ if (n.type === "text")
3467
+ t.push(_e({
3468
+ children: [n],
3469
+ className: Ie(new Set(r))
3470
+ }));
3471
+ else if (n.children) {
3472
+ var o = r.concat(n.properties.className);
3473
+ ut(n.children, o).forEach(function(u) {
3474
+ return t.push(u);
3475
+ });
3476
+ }
3477
+ }
3478
+ return t;
3479
+ }
3480
+ function Wn(e, r, t, a, n, o, u, d, l) {
3481
+ var f, h = ut(e.value), C = [], x = -1, b = 0;
3482
+ function y(p, g) {
3483
+ var m = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
3484
+ return _e({
3485
+ children: p,
3486
+ lineNumber: g,
3487
+ lineNumberStyle: d,
3488
+ largestLineNumber: u,
3489
+ showInlineLineNumbers: n,
3490
+ lineProps: t,
3491
+ className: m,
3492
+ showLineNumbers: a,
3493
+ wrapLongLines: l,
3494
+ wrapLines: r
3495
+ });
3496
+ }
3497
+ function S(p, g) {
3498
+ if (a && g && n) {
3499
+ var m = st(d, g, u);
3500
+ p.unshift(it(g, m));
3501
+ }
3502
+ return p;
3503
+ }
3504
+ function E(p, g) {
3505
+ var m = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
3506
+ return r || m.length > 0 ? y(p, g, m) : S(p, g);
3507
+ }
3508
+ for (var w = function() {
3509
+ var p = h[b], g = p.children[0].value, m = Pn(g);
3510
+ if (m) {
3511
+ var c = g.split(`
3512
+ `);
3513
+ c.forEach(function(_, v) {
3514
+ var k = a && C.length + o, N = {
3515
+ type: "text",
3516
+ value: "".concat(_, `
3517
+ `)
3518
+ };
3519
+ if (v === 0) {
3520
+ var $ = h.slice(x + 1, b).concat(_e({
3521
+ children: [N],
3522
+ className: p.properties.className
3523
+ })), H = E($, k);
3524
+ C.push(H);
3525
+ } else if (v === c.length - 1) {
3526
+ var z = h[b + 1] && h[b + 1].children && h[b + 1].children[0], X = {
3527
+ type: "text",
3528
+ value: "".concat(_)
3529
+ };
3530
+ if (z) {
3531
+ var J = _e({
3532
+ children: [X],
3533
+ className: p.properties.className
3534
+ });
3535
+ h.splice(b + 1, 0, J);
3536
+ } else {
3537
+ var W = [X], O = E(W, k, p.properties.className);
3538
+ C.push(O);
3539
+ }
3540
+ } else {
3541
+ var L = [N], B = E(L, k, p.properties.className);
3542
+ C.push(B);
3543
+ }
3544
+ }), x = b;
3545
+ }
3546
+ b++;
3547
+ }; b < h.length; )
3548
+ w();
3549
+ if (x !== h.length - 1) {
3550
+ var A = h.slice(x + 1, h.length);
3551
+ if (A && A.length) {
3552
+ var i = a && C.length + o, s = E(A, i);
3553
+ C.push(s);
3554
+ }
3555
+ }
3556
+ return r ? C : (f = []).concat.apply(f, C);
3557
+ }
3558
+ function Kn(e) {
3559
+ var r = e.rows, t = e.stylesheet, a = e.useInlineStyles;
3560
+ return r.map(function(n, o) {
3561
+ return Re({
3562
+ node: n,
3563
+ stylesheet: t,
3564
+ useInlineStyles: a,
3565
+ key: "code-segment-".concat(o)
3566
+ });
3567
+ });
3568
+ }
3569
+ function ct(e) {
3570
+ return e && typeof e.highlightAuto < "u";
3571
+ }
3572
+ function Xn(e) {
3573
+ var r = e.astGenerator, t = e.language, a = e.code, n = e.defaultCodeValue;
3574
+ if (ct(r)) {
3575
+ var o = Mn(r, t);
3576
+ return t === "text" ? {
3577
+ value: n,
3578
+ language: "text"
3579
+ } : o ? r.highlight(t, a) : r.highlightAuto(a);
3580
+ }
3581
+ try {
3582
+ return t && t !== "text" ? {
3583
+ value: r.highlight(a, t)
3584
+ } : {
3585
+ value: n
3586
+ };
3587
+ } catch {
3588
+ return {
3589
+ value: n
3590
+ };
3591
+ }
3592
+ }
3593
+ function Vn(e, r) {
3594
+ return function(t) {
3595
+ var a, n, o = t.language, u = t.children, d = t.style, l = d === void 0 ? r : d, f = t.customStyle, h = f === void 0 ? {} : f, C = t.codeTagProps, x = C === void 0 ? {
3596
+ className: o ? "language-".concat(o) : void 0,
3597
+ style: ae(ae({}, l['code[class*="language-"]']), l['code[class*="language-'.concat(o, '"]')])
3598
+ } : C, b = t.useInlineStyles, y = b === void 0 ? !0 : b, S = t.showLineNumbers, E = S === void 0 ? !1 : S, w = t.showInlineLineNumbers, A = w === void 0 ? !0 : w, i = t.startingLineNumber, s = i === void 0 ? 1 : i, p = t.lineNumberContainerStyle, g = t.lineNumberStyle, m = g === void 0 ? {} : g, c = t.wrapLines, _ = t.wrapLongLines, v = _ === void 0 ? !1 : _, k = t.lineProps, N = k === void 0 ? {} : k, $ = t.renderer, H = t.PreTag, z = H === void 0 ? "pre" : H, X = t.CodeTag, J = X === void 0 ? "code" : X, W = t.code, O = W === void 0 ? (Array.isArray(u) ? u[0] : u) || "" : W, L = t.astGenerator, B = Ct(t, zn);
3599
+ L = L || e;
3600
+ var Q = E ? G.createElement(Gn, {
3601
+ containerStyle: p,
3602
+ codeStyle: x.style || {},
3603
+ numberStyle: m,
3604
+ startingLineNumber: s,
3605
+ codeString: O
3606
+ }) : null, M = l.hljs || l['pre[class*="language-"]'] || {
3607
+ backgroundColor: "#fff"
3608
+ }, ce = ct(L) ? "hljs" : "prismjs", j = y ? Object.assign({}, B, {
3609
+ style: Object.assign({}, M, h)
3610
+ }) : Object.assign({}, B, {
3611
+ className: B.className ? "".concat(ce, " ").concat(B.className) : ce,
3612
+ style: Object.assign({}, h)
3613
+ });
3614
+ if (v ? x.style = ae({
3615
+ whiteSpace: "pre-wrap"
3616
+ }, x.style) : x.style = ae({
3617
+ whiteSpace: "pre"
3618
+ }, x.style), !L)
3619
+ return G.createElement(z, j, Q, G.createElement(J, x, O));
3620
+ (c === void 0 && $ || v) && (c = !0), $ = $ || Kn;
3621
+ var I = [{
3622
+ type: "text",
3623
+ value: O
3624
+ }], T = Xn({
3625
+ astGenerator: L,
3626
+ language: o,
3627
+ code: O,
3628
+ defaultCodeValue: I
3629
+ });
3630
+ T.language === null && (T.value = I);
3631
+ var K = (a = (n = O.match(/\n/g)) === null || n === void 0 ? void 0 : n.length) !== null && a !== void 0 ? a : 0, P = s + K, re = Wn(T, c, N, E, A, s, P, m, v);
3632
+ return G.createElement(z, j, G.createElement(J, x, !A && Q, $({
3633
+ rows: re,
3634
+ stylesheet: l,
3635
+ useInlineStyles: y
3636
+ })));
3637
+ };
3638
+ }
3639
+ var qe = Z(sn()), Be = Vn(qe.default, {});
3640
+ Be.registerLanguage = function(e, r) {
3641
+ return qe.default.register(r);
3642
+ };
3643
+ Be.alias = function(e, r) {
3644
+ return qe.default.alias(e, r);
3645
+ };
3646
+ var Me = Be, { window: Yn } = yt, Jn = {
3647
+ jsextra: Sn,
3648
+ jsx: En,
3649
+ json: _n,
3650
+ yml: Tn,
3651
+ md: Cn,
3652
+ bash: mn,
3653
+ css: yn,
3654
+ html: jn,
3655
+ tsx: $n,
3656
+ typescript: Ln,
3657
+ graphql: xn
3658
+ };
3659
+ Object.entries(Jn).forEach(([e, r]) => {
3660
+ Me.registerLanguage(e, r);
3661
+ });
3662
+ var Qn = (0, un.default)(2)(
3663
+ (e) => Object.entries(e.code || {}).reduce((r, [t, a]) => ({ ...r, [`* .${t}`]: a }), {})
3664
+ ), ea = ht(), ta = Ae.div(
3665
+ ({ theme: e }) => ({
3666
+ position: "relative",
3667
+ overflow: "hidden",
3668
+ color: e.color.defaultText
3669
+ }),
3670
+ ({ theme: e, bordered: r }) => r ? {
3671
+ border: `1px solid ${e.appBorderColor}`,
3672
+ borderRadius: e.borderRadius,
3673
+ background: e.background.content
3674
+ } : {},
3675
+ ({ showLineNumbers: e }) => e ? {
3676
+ // use the before pseudo element to display line numbers
3677
+ ".react-syntax-highlighter-line-number::before": {
3678
+ content: "attr(data-line-number)"
3679
+ }
3680
+ } : {}
3681
+ ), na = ({ children: e, className: r }) => G.createElement(St, { horizontal: !0, vertical: !0, className: r }, e), aa = Ae(na)(
3682
+ {
3683
+ position: "relative"
3684
+ },
3685
+ ({ theme: e }) => Qn(e)
3686
+ ), ra = Ae.pre(({ theme: e, padded: r }) => ({
3687
+ display: "flex",
3688
+ justifyContent: "flex-start",
3689
+ margin: 0,
3690
+ padding: r ? e.layoutMargin : 0
3691
+ })), oa = Ae.div(({ theme: e }) => ({
3692
+ flex: 1,
3693
+ paddingLeft: 2,
3694
+ // TODO: To match theming/global.ts for now
3695
+ paddingRight: e.layoutMargin,
3696
+ opacity: 1,
3697
+ fontFamily: e.typography.fonts.mono
3698
+ })), pt = (e) => {
3699
+ let r = [...e.children], t = r[0], a = t.children[0].value, n = {
3700
+ ...t,
3701
+ // empty the line-number element
3702
+ children: [],
3703
+ properties: {
3704
+ ...t.properties,
3705
+ // add a data-line-number attribute to line-number element, so we can access the line number with `content: attr(data-line-number)`
3706
+ "data-line-number": a,
3707
+ // remove the 'userSelect: none' style, which will produce extra empty lines when copy-pasting in firefox
3708
+ style: { ...t.properties.style, userSelect: "auto" }
3709
+ }
3710
+ };
3711
+ return r[0] = n, { ...e, children: r };
3712
+ }, la = ({ rows: e, stylesheet: r, useInlineStyles: t }) => e.map((a, n) => Re({
3713
+ node: pt(a),
3714
+ stylesheet: r,
3715
+ useInlineStyles: t,
3716
+ key: `code-segement${n}`
3717
+ })), ia = (e, r) => r ? e ? ({ rows: t, ...a }) => e({ rows: t.map((n) => pt(n)), ...a }) : la : e, dt = ({
3718
+ children: e,
3719
+ language: r = "jsx",
3720
+ copyable: t = !1,
3721
+ bordered: a = !1,
3722
+ padded: n = !1,
3723
+ format: o = !0,
3724
+ formatter: u = void 0,
3725
+ className: d = void 0,
3726
+ showLineNumbers: l = !1,
3727
+ ...f
3728
+ }) => {
3729
+ if (typeof e != "string" || !e.trim())
3730
+ return null;
3731
+ let [h, C] = We("");
3732
+ _t(() => {
3733
+ u ? u(o, e).then(C) : C(e.trim());
3734
+ }, [e, o, u]);
3735
+ let [x, b] = We(!1), y = At(
3736
+ (E) => {
3737
+ E.preventDefault(), ea(h).then(() => {
3738
+ b(!0), Yn.setTimeout(() => b(!1), 1500);
3739
+ }).catch(bt.error);
3740
+ },
3741
+ [h]
3742
+ ), S = ia(f.renderer, l);
3743
+ return G.createElement(
3744
+ ta,
3745
+ {
3746
+ bordered: a,
3747
+ padded: n,
3748
+ showLineNumbers: l,
3749
+ className: d
3750
+ },
3751
+ G.createElement(aa, null, G.createElement(
3752
+ Me,
3753
+ {
3754
+ padded: n || a,
3755
+ language: r,
3756
+ showLineNumbers: l,
3757
+ showInlineLineNumbers: l,
3758
+ useInlineStyles: !1,
3759
+ PreTag: ra,
3760
+ CodeTag: oa,
3761
+ lineNumberContainerStyle: {},
3762
+ ...f,
3763
+ renderer: S
3764
+ },
3765
+ h
3766
+ )),
3767
+ t ? G.createElement(xt, { actionItems: [{ title: x ? "Copied" : "Copy", onClick: y }] }) : null
3768
+ );
3769
+ };
3770
+ dt.registerLanguage = (...e) => Me.registerLanguage(...e);
3771
+ var ca = dt;
3772
+ export {
3773
+ dt as SyntaxHighlighter,
3774
+ ca as default,
3775
+ Jn as supportedLanguages
3776
+ };
3777
+ //# sourceMappingURL=syntaxhighlighter-IQDEPFLK-BX_eF8__.js.map