@ebrains/components 0.0.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1089) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/arrow-diagonal-black-0eb8640e.js +5 -0
  3. package/dist/cjs/arrow-right-3e38e8a9.js +7 -0
  4. package/dist/cjs/bluesky-eb0d6051.js +16 -0
  5. package/dist/cjs/chevron-down-27344777.js +14 -0
  6. package/dist/cjs/chevron-left-6fc9c6ef.js +13 -0
  7. package/dist/cjs/chevron-right-6d95a117.js +7 -0
  8. package/dist/cjs/chevron-up-e37d7713.js +14 -0
  9. package/dist/cjs/close-51284af5.js +7 -0
  10. package/dist/cjs/color-ac51ccf7.js +342 -0
  11. package/dist/cjs/color-primary-palette.cjs.entry.js +43 -0
  12. package/dist/cjs/color-primary-palette_6.cjs.entry.js +327 -0
  13. package/dist/cjs/color-secondary-palette.cjs.entry.js +68 -0
  14. package/dist/cjs/color-support-palette.cjs.entry.js +59 -0
  15. package/dist/cjs/components.cjs.js +52 -0
  16. package/dist/cjs/copy-53102d0c.js +7 -0
  17. package/dist/cjs/correct-use-of-colors.cjs.entry.js +68 -0
  18. package/dist/cjs/eds-accordion.cjs.entry.js +92 -0
  19. package/dist/cjs/eds-accordion_23.cjs.entry.js +1886 -0
  20. package/dist/cjs/eds-alert.cjs.entry.js +95 -0
  21. package/dist/cjs/eds-avatar.cjs.entry.js +73 -0
  22. package/dist/cjs/eds-block-break.cjs.entry.js +20 -0
  23. package/dist/cjs/eds-breadcrumb.cjs.entry.js +152 -0
  24. package/dist/cjs/eds-button.cjs.entry.js +233 -0
  25. package/dist/cjs/eds-card-desc.cjs.entry.js +26 -0
  26. package/dist/cjs/eds-card-desc_3.cjs.entry.js +117 -0
  27. package/dist/cjs/eds-card-generic.cjs.entry.js +93 -0
  28. package/dist/cjs/eds-card-project.cjs.entry.js +67 -0
  29. package/dist/cjs/eds-card-section.cjs.entry.js +43 -0
  30. package/dist/cjs/eds-card-tags.cjs.entry.js +21 -0
  31. package/dist/cjs/eds-card-title.cjs.entry.js +56 -0
  32. package/dist/cjs/eds-card-tool.cjs.entry.js +79 -0
  33. package/dist/cjs/eds-card-wrapper.cjs.entry.js +32 -0
  34. package/dist/cjs/eds-code-block.cjs.entry.js +2472 -0
  35. package/dist/cjs/eds-components-section.cjs.entry.js +96 -0
  36. package/dist/cjs/eds-docs-palettes.cjs.entry.js +27 -0
  37. package/dist/cjs/eds-docs-tokens.cjs.entry.js +35 -0
  38. package/dist/cjs/eds-dropdown.cjs.entry.js +129 -0
  39. package/dist/cjs/eds-footer.cjs.entry.js +49 -0
  40. package/dist/cjs/eds-form.cjs.entry.js +249 -0
  41. package/dist/cjs/eds-frame.cjs.entry.js +91 -0
  42. package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +99 -0
  43. package/dist/cjs/eds-header.cjs.entry.js +96 -0
  44. package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +18 -0
  45. package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +18 -0
  46. package/dist/cjs/eds-icon-bluesky.cjs.entry.js +18 -0
  47. package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +18 -0
  48. package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +18 -0
  49. package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +18 -0
  50. package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +18 -0
  51. package/dist/cjs/eds-icon-close.cjs.entry.js +18 -0
  52. package/dist/cjs/eds-icon-copy.cjs.entry.js +18 -0
  53. package/dist/cjs/eds-icon-eu.cjs.entry.js +18 -0
  54. package/dist/cjs/eds-icon-facebook.cjs.entry.js +18 -0
  55. package/dist/cjs/eds-icon-gitlab.cjs.entry.js +18 -0
  56. package/dist/cjs/eds-icon-linkedin.cjs.entry.js +18 -0
  57. package/dist/cjs/eds-icon-loader.cjs.entry.js +18 -0
  58. package/dist/cjs/eds-icon-mastodon.cjs.entry.js +18 -0
  59. package/dist/cjs/eds-icon-menu.cjs.entry.js +18 -0
  60. package/dist/cjs/eds-icon-more.cjs.entry.js +18 -0
  61. package/dist/cjs/eds-icon-search.cjs.entry.js +18 -0
  62. package/dist/cjs/eds-icon-success.cjs.entry.js +18 -0
  63. package/dist/cjs/eds-icon-twitter.cjs.entry.js +18 -0
  64. package/dist/cjs/eds-icon-user.cjs.entry.js +18 -0
  65. package/dist/cjs/eds-icon-wrapper.cjs.entry.js +40 -0
  66. package/dist/cjs/eds-icon-youtube.cjs.entry.js +18 -0
  67. package/dist/cjs/eds-img.cjs.entry.js +57 -0
  68. package/dist/cjs/eds-input-field.cjs.entry.js +72 -0
  69. package/dist/cjs/eds-input-footer.cjs.entry.js +21 -0
  70. package/dist/cjs/eds-input-label.cjs.entry.js +20 -0
  71. package/dist/cjs/eds-input-range.cjs.entry.js +39 -0
  72. package/dist/cjs/eds-input-search.cjs.entry.js +41 -0
  73. package/dist/cjs/eds-input-select.cjs.entry.js +30 -0
  74. package/dist/cjs/eds-input.cjs.entry.js +68 -0
  75. package/dist/cjs/eds-link.cjs.entry.js +211 -0
  76. package/dist/cjs/eds-login.cjs.entry.js +72 -0
  77. package/dist/cjs/eds-logo.cjs.entry.js +76 -0
  78. package/dist/cjs/eds-matomo-notice.cjs.entry.js +109 -0
  79. package/dist/cjs/eds-modal.cjs.entry.js +46 -0
  80. package/dist/cjs/eds-navigator.cjs.entry.js +43 -0
  81. package/dist/cjs/eds-pagination.cjs.entry.js +211 -0
  82. package/dist/cjs/eds-progress-bar.cjs.entry.js +28 -0
  83. package/dist/cjs/eds-rating.cjs.entry.js +57 -0
  84. package/dist/cjs/eds-section-core.cjs.entry.js +23 -0
  85. package/dist/cjs/eds-section-core_2.cjs.entry.js +59 -0
  86. package/dist/cjs/eds-section-heading.cjs.entry.js +41 -0
  87. package/dist/cjs/eds-social-networks.cjs.entry.js +65 -0
  88. package/dist/cjs/eds-svg-repository.cjs.entry.js +32 -0
  89. package/dist/cjs/eds-tab.cjs.entry.js +40 -0
  90. package/dist/cjs/eds-table.cjs.entry.js +142 -0
  91. package/dist/cjs/eds-tabs-content.cjs.entry.js +133 -0
  92. package/dist/cjs/eds-tabs.cjs.entry.js +122 -0
  93. package/dist/cjs/eds-tag.cjs.entry.js +44 -0
  94. package/dist/cjs/eds-toast-manager.cjs.entry.js +45 -0
  95. package/dist/cjs/eds-toast.cjs.entry.js +53 -0
  96. package/dist/cjs/eds-tooltip.cjs.entry.js +99 -0
  97. package/dist/cjs/eds-user-modal.cjs.entry.js +47 -0
  98. package/dist/cjs/eds-user.cjs.entry.js +90 -0
  99. package/dist/cjs/eu-b9665157.js +32 -0
  100. package/dist/cjs/facebook-7aa65e57.js +16 -0
  101. package/dist/cjs/gradient-primary-palette.cjs.entry.js +45 -0
  102. package/dist/cjs/gradient-secondary-palette.cjs.entry.js +79 -0
  103. package/dist/cjs/gradient-support-palette.cjs.entry.js +63 -0
  104. package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +50 -0
  105. package/dist/cjs/index-1ff5f25c.js +48 -0
  106. package/dist/cjs/index-2cc3495f.js +2149 -0
  107. package/dist/cjs/index-383d2951.js +3449 -0
  108. package/dist/cjs/index-96a4261e.js +405 -0
  109. package/dist/cjs/index-ab9fbefe.js +48 -0
  110. package/dist/cjs/index-f62478aa.js +1837 -0
  111. package/dist/cjs/index.cjs.js +2 -0
  112. package/dist/cjs/keycloak-5aaa21af.js +1900 -0
  113. package/dist/cjs/keycloak-940b83c1.js +1910 -0
  114. package/dist/cjs/linkedin-46b0dd56.js +30 -0
  115. package/dist/cjs/loader-5efe2c21.js +35 -0
  116. package/dist/cjs/loader.cjs.js +15 -0
  117. package/dist/cjs/logo-color-6c787ac1.js +117 -0
  118. package/dist/cjs/logo-color-margins-b49c0f46.js +120 -0
  119. package/dist/cjs/logo-space.cjs.entry.js +20 -0
  120. package/dist/cjs/logo-variations-horizontal.cjs.entry.js +30 -0
  121. package/dist/cjs/logo-variations-vertical.cjs.entry.js +30 -0
  122. package/dist/cjs/logo-white-no-bg-4a0e0f4b.js +1039 -0
  123. package/dist/cjs/logo-wrong-usage.cjs.entry.js +20 -0
  124. package/dist/cjs/mastodon-20c5bb7d.js +16 -0
  125. package/dist/cjs/menu-7050a6d1.js +13 -0
  126. package/dist/cjs/mono-2f3cd653.js +13 -0
  127. package/dist/cjs/more-1d3dd8bc.js +15 -0
  128. package/dist/cjs/search-5533d877.js +14 -0
  129. package/dist/cjs/shadow-css-988e4292.js +334 -0
  130. package/dist/cjs/success-ef661a11.js +20 -0
  131. package/dist/cjs/toastManager-1fb1a402.js +33 -0
  132. package/dist/cjs/token-list.cjs.entry.js +253 -0
  133. package/dist/cjs/token-list_3.cjs.entry.js +300 -0
  134. package/dist/cjs/token-radii.cjs.entry.js +25 -0
  135. package/dist/cjs/token-ratios.cjs.entry.js +29 -0
  136. package/dist/cjs/token-shadows.cjs.entry.js +34 -0
  137. package/dist/cjs/token-spacing.cjs.entry.js +16 -0
  138. package/dist/cjs/token-typography.cjs.entry.js +230 -0
  139. package/dist/cjs/twitter-73956e9a.js +16 -0
  140. package/dist/cjs/user-a3c2230f.js +18 -0
  141. package/dist/cjs/youtube-c238a461.js +16 -0
  142. package/dist/collection/collection-manifest.json +107 -0
  143. package/dist/collection/components/eds-accordion/eds-accordion.css +258 -0
  144. package/dist/collection/components/eds-accordion/eds-accordion.js +246 -0
  145. package/dist/collection/components/eds-accordion/eds-accordion.stories.js +87 -0
  146. package/dist/collection/components/eds-alert/eds-alert.css +607 -0
  147. package/dist/collection/components/eds-alert/eds-alert.js +204 -0
  148. package/dist/collection/components/eds-alert/eds-alert.stories.js +52 -0
  149. package/dist/collection/components/eds-avatar/eds-avatar.css +149 -0
  150. package/dist/collection/components/eds-avatar/eds-avatar.js +210 -0
  151. package/dist/collection/components/eds-avatar/eds-avatar.stories.js +65 -0
  152. package/dist/collection/components/eds-block-break/eds-block-break.css +49 -0
  153. package/dist/collection/components/eds-block-break/eds-block-break.js +51 -0
  154. package/dist/collection/components/eds-breadcrump/eds-breadcrumb.css +111 -0
  155. package/dist/collection/components/eds-breadcrump/eds-breadcrumb.stories.js +32 -0
  156. package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +220 -0
  157. package/dist/collection/components/eds-button/eds-button.css +7140 -0
  158. package/dist/collection/components/eds-button/eds-button.js +487 -0
  159. package/dist/collection/components/eds-button/eds-button.stories.js +47 -0
  160. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.css +41 -0
  161. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +102 -0
  162. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.stories.js +31 -0
  163. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.css +9 -0
  164. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.js +63 -0
  165. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.css +92 -0
  166. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.js +169 -0
  167. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-wrapper/eds-card-wrapper.js +86 -0
  168. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.css +103 -0
  169. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +324 -0
  170. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.stories.js +124 -0
  171. package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +227 -0
  172. package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.css +103 -0
  173. package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.js +314 -0
  174. package/dist/collection/components/eds-code-block/eds-code-block.css +177 -0
  175. package/dist/collection/components/eds-code-block/eds-code-block.js +86 -0
  176. package/dist/collection/components/eds-dropdown/eds-dropdown.css +117 -0
  177. package/dist/collection/components/eds-dropdown/eds-dropdown.js +356 -0
  178. package/dist/collection/components/eds-form/eds-form.css +7143 -0
  179. package/dist/collection/components/eds-form/eds-form.js +482 -0
  180. package/dist/collection/components/eds-form/eds-form.stories.js +89 -0
  181. package/dist/collection/components/eds-frame/eds-frame.js +266 -0
  182. package/dist/collection/components/eds-frame/eds-frame.stories.js +67 -0
  183. package/dist/collection/components/eds-icon-wrapper/eds-icon-wrapper.js +92 -0
  184. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-down/eds-icon-chevron-down.js +36 -0
  185. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-left/eds-icon-chevron-left.js +36 -0
  186. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-right/eds-icon-chevron-right.js +36 -0
  187. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-up/eds-icon-chevron-up.js +36 -0
  188. package/dist/collection/components/eds-icons/eds-icon-arrow-diagonal/eds-icon-arrow-diagonal.js +36 -0
  189. package/dist/collection/components/eds-icons/eds-icon-arrow-right/eds-icon-arrow-right.js +36 -0
  190. package/dist/collection/components/eds-icons/eds-icon-close/eds-icon-close.js +36 -0
  191. package/dist/collection/components/eds-icons/eds-icon-copy/eds-icon-copy.js +36 -0
  192. package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +36 -0
  193. package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +36 -0
  194. package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +36 -0
  195. package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +36 -0
  196. package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +36 -0
  197. package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +36 -0
  198. package/dist/collection/components/eds-icons/eds-icon-success/eds-icon-success.js +36 -0
  199. package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +36 -0
  200. package/dist/collection/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.js +36 -0
  201. package/dist/collection/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.js +36 -0
  202. package/dist/collection/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.js +36 -0
  203. package/dist/collection/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.js +36 -0
  204. package/dist/collection/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.js +36 -0
  205. package/dist/collection/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.js +36 -0
  206. package/dist/collection/components/eds-img/eds-img.css +83 -0
  207. package/dist/collection/components/eds-img/eds-img.js +246 -0
  208. package/dist/collection/components/eds-img/eds-img.stories.js +101 -0
  209. package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +336 -0
  210. package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +105 -0
  211. package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +90 -0
  212. package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +197 -0
  213. package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +176 -0
  214. package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +203 -0
  215. package/dist/collection/components/eds-input-field/eds-input-field.css +7151 -0
  216. package/dist/collection/components/eds-input-field/eds-input-field.js +419 -0
  217. package/dist/collection/components/eds-input-field/eds-input-field.stories.js +205 -0
  218. package/dist/collection/components/eds-link/eds-link.css +7164 -0
  219. package/dist/collection/components/eds-link/eds-link.js +482 -0
  220. package/dist/collection/components/eds-link/eds-link.stories.js +86 -0
  221. package/dist/collection/components/eds-logo/eds-logo.css +47 -0
  222. package/dist/collection/components/eds-logo/eds-logo.js +150 -0
  223. package/dist/collection/components/eds-logo/eds-logo.stories.js +38 -0
  224. package/dist/collection/components/eds-modal/eds-modal.css +203 -0
  225. package/dist/collection/components/eds-modal/eds-modal.js +175 -0
  226. package/dist/collection/components/eds-modal/eds-modal.stories.js +64 -0
  227. package/dist/collection/components/eds-navigator/eds-navigator.js +147 -0
  228. package/dist/collection/components/eds-navigator/eds-navigator.stories.js +101 -0
  229. package/dist/collection/components/eds-pagination/eds-pagination.css +120 -0
  230. package/dist/collection/components/eds-pagination/eds-pagination.js +414 -0
  231. package/dist/collection/components/eds-pagination/eds-pagination.stories.js +141 -0
  232. package/dist/collection/components/eds-progress-bar/eds-progress-bar.css +62 -0
  233. package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +79 -0
  234. package/dist/collection/components/eds-progress-bar/eds-progress-bar.stories.js +25 -0
  235. package/dist/collection/components/eds-rating/eds-rating.css +74 -0
  236. package/dist/collection/components/eds-rating/eds-rating.js +138 -0
  237. package/dist/collection/components/eds-rating/eds-rating.stories.js +76 -0
  238. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.css +0 -0
  239. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +91 -0
  240. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.stories.js +74 -0
  241. package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +137 -0
  242. package/dist/collection/components/eds-tab/eds-tab.js +109 -0
  243. package/dist/collection/components/eds-table/eds-table.css +138 -0
  244. package/dist/collection/components/eds-table/eds-table.js +281 -0
  245. package/dist/collection/components/eds-table/eds-table.stories.js +173 -0
  246. package/dist/collection/components/eds-tag/eds-tag.css +56 -0
  247. package/dist/collection/components/eds-tag/eds-tag.js +94 -0
  248. package/dist/collection/components/eds-tag/eds-tag.stories.js +27 -0
  249. package/dist/collection/components/eds-toast/eds-toast.js +108 -0
  250. package/dist/collection/components/eds-toast/eds-toast.stories.js +38 -0
  251. package/dist/collection/components/eds-tooltip/eds-tooltip.css +94 -0
  252. package/dist/collection/components/eds-tooltip/eds-tooltip.js +170 -0
  253. package/dist/collection/components/eds-tooltip/eds-tooltip.stories.js +21 -0
  254. package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +39 -0
  255. package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +85 -0
  256. package/dist/collection/eds-docs-ui/colors/color-palette/support.js +55 -0
  257. package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +41 -0
  258. package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +75 -0
  259. package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +59 -0
  260. package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +66 -0
  261. package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +48 -0
  262. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +98 -0
  263. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.stories.js +44 -0
  264. package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +11 -0
  265. package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +15 -0
  266. package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +11 -0
  267. package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +10 -0
  268. package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +27 -0
  269. package/dist/collection/eds-docs-ui/eds-components-section/eds-components-section.js +58 -0
  270. package/dist/collection/eds-docs-ui/eds-docs-palettes/eds-docs-palettes.js +44 -0
  271. package/dist/collection/eds-docs-ui/eds-docs-tokens/eds-docs-tokens.js +52 -0
  272. package/dist/collection/eds-docs-ui/eds-svg-repository/eds-svg-repository.js +27 -0
  273. package/dist/collection/eds-docs-ui/functional/angular.js +2 -0
  274. package/dist/collection/eds-docs-ui/functional/installation.js +2 -0
  275. package/dist/collection/eds-docs-ui/functional/overview.js +2 -0
  276. package/dist/collection/eds-docs-ui/functional/react.js +2 -0
  277. package/dist/collection/eds-docs-ui/functional/usage.js +2 -0
  278. package/dist/collection/eds-docs-ui/functional/vue.js +2 -0
  279. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.css +53 -0
  280. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +22 -0
  281. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.css +60 -0
  282. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +73 -0
  283. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.css +64 -0
  284. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +73 -0
  285. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.css +206 -0
  286. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +22 -0
  287. package/dist/collection/index.js +1 -0
  288. package/dist/collection/shared-ui/eds-card-section/eds-card-section.css +153 -0
  289. package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +93 -0
  290. package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +74 -0
  291. package/dist/collection/shared-ui/eds-footer/eds-footer.css +0 -0
  292. package/dist/collection/shared-ui/eds-footer/eds-footer.js +214 -0
  293. package/dist/collection/shared-ui/eds-footer/eds-footer.stories.js +50 -0
  294. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.css +0 -0
  295. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +215 -0
  296. package/dist/collection/shared-ui/eds-header/eds-header.css +0 -0
  297. package/dist/collection/shared-ui/eds-header/eds-header.js +286 -0
  298. package/dist/collection/shared-ui/eds-header/eds-header.stories.js +70 -0
  299. package/dist/collection/shared-ui/eds-login/eds-login.js +154 -0
  300. package/dist/collection/shared-ui/eds-login/eds-login.stories.js +37 -0
  301. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.css +105 -0
  302. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +164 -0
  303. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.stories.js +34 -0
  304. package/dist/collection/shared-ui/eds-social-networks/eds-social-network.css +124 -0
  305. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +92 -0
  306. package/dist/collection/shared-ui/eds-tabs/eds-tabs.css +0 -0
  307. package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +213 -0
  308. package/dist/collection/shared-ui/eds-tabs/eds-tabs.stories.js +49 -0
  309. package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.js +194 -0
  310. package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.stories.js +112 -0
  311. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.css +37 -0
  312. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +50 -0
  313. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.stories.js +25 -0
  314. package/dist/collection/shared-ui/eds-user/eds-user.js +171 -0
  315. package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.css +0 -0
  316. package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.js +119 -0
  317. package/dist/collection/utils/keycloak.js +79 -0
  318. package/dist/collection/utils/toastManager.js +29 -0
  319. package/dist/components/analytics.js +43 -0
  320. package/dist/components/app-globals-0f993ce5.js +3 -0
  321. package/dist/components/arrow-diagonal-black.js +3 -0
  322. package/dist/components/arrow-right.js +5 -0
  323. package/dist/components/bluesky.js +14 -0
  324. package/dist/components/chevron-down.js +12 -0
  325. package/dist/components/chevron-left.js +11 -0
  326. package/dist/components/chevron-right.js +5 -0
  327. package/dist/components/chevron-up.js +12 -0
  328. package/dist/components/close.js +5 -0
  329. package/dist/components/color-primary-palette.d.ts +11 -0
  330. package/dist/components/color-primary-palette.entry.js +39 -0
  331. package/dist/components/color-primary-palette.js +6 -0
  332. package/dist/components/color-secondary-palette.d.ts +11 -0
  333. package/dist/components/color-secondary-palette.entry.js +64 -0
  334. package/dist/components/color-secondary-palette.js +6 -0
  335. package/dist/components/color-support-palette.d.ts +11 -0
  336. package/dist/components/color-support-palette.entry.js +55 -0
  337. package/dist/components/color-support-palette.js +6 -0
  338. package/dist/components/color.js +296 -0
  339. package/dist/components/components.css +7177 -0
  340. package/dist/components/components.esm.js +47 -0
  341. package/dist/components/copy.js +5 -0
  342. package/dist/components/correct-use-of-colors.d.ts +11 -0
  343. package/dist/components/correct-use-of-colors.entry.js +64 -0
  344. package/dist/components/correct-use-of-colors.js +93 -0
  345. package/dist/components/eds-accordion.d.ts +11 -0
  346. package/dist/components/eds-accordion.entry.js +88 -0
  347. package/dist/components/eds-accordion.js +6 -0
  348. package/dist/components/eds-accordion2.js +125 -0
  349. package/dist/components/eds-alert.d.ts +11 -0
  350. package/dist/components/eds-alert.entry.js +91 -0
  351. package/dist/components/eds-alert.js +6 -0
  352. package/dist/components/eds-alert2.js +125 -0
  353. package/dist/components/eds-avatar.d.ts +11 -0
  354. package/dist/components/eds-avatar.entry.js +69 -0
  355. package/dist/components/eds-avatar.js +6 -0
  356. package/dist/components/eds-avatar2.js +97 -0
  357. package/dist/components/eds-block-break.d.ts +11 -0
  358. package/dist/components/eds-block-break.entry.js +16 -0
  359. package/dist/components/eds-block-break.js +6 -0
  360. package/dist/components/eds-block-break2.js +33 -0
  361. package/dist/components/eds-breadcrumb.d.ts +11 -0
  362. package/dist/components/eds-breadcrumb.entry.js +148 -0
  363. package/dist/components/eds-breadcrumb.js +186 -0
  364. package/dist/components/eds-button.d.ts +11 -0
  365. package/dist/components/eds-button.entry.js +229 -0
  366. package/dist/components/eds-button.js +6 -0
  367. package/dist/components/eds-button2.js +264 -0
  368. package/dist/components/eds-card-desc.d.ts +11 -0
  369. package/dist/components/eds-card-desc.entry.js +22 -0
  370. package/dist/components/eds-card-desc.js +6 -0
  371. package/dist/components/eds-card-desc2.js +42 -0
  372. package/dist/components/eds-card-generic.d.ts +11 -0
  373. package/dist/components/eds-card-generic.entry.js +89 -0
  374. package/dist/components/eds-card-generic.js +6 -0
  375. package/dist/components/eds-card-generic2.js +147 -0
  376. package/dist/components/eds-card-project.d.ts +11 -0
  377. package/dist/components/eds-card-project.entry.js +63 -0
  378. package/dist/components/eds-card-project.js +108 -0
  379. package/dist/components/eds-card-section.d.ts +11 -0
  380. package/dist/components/eds-card-section.entry.js +39 -0
  381. package/dist/components/eds-card-section.js +96 -0
  382. package/dist/components/eds-card-tags.d.ts +11 -0
  383. package/dist/components/eds-card-tags.entry.js +17 -0
  384. package/dist/components/eds-card-tags.js +44 -0
  385. package/dist/components/eds-card-title.d.ts +11 -0
  386. package/dist/components/eds-card-title.entry.js +52 -0
  387. package/dist/components/eds-card-title.js +6 -0
  388. package/dist/components/eds-card-title2.js +74 -0
  389. package/dist/components/eds-card-tool.d.ts +11 -0
  390. package/dist/components/eds-card-tool.entry.js +75 -0
  391. package/dist/components/eds-card-tool.js +136 -0
  392. package/dist/components/eds-card-wrapper.d.ts +11 -0
  393. package/dist/components/eds-card-wrapper.entry.js +28 -0
  394. package/dist/components/eds-card-wrapper.js +49 -0
  395. package/dist/components/eds-code-block.d.ts +11 -0
  396. package/dist/components/eds-code-block.entry.js +2468 -0
  397. package/dist/components/eds-code-block.js +6 -0
  398. package/dist/components/eds-code-block2.js +2493 -0
  399. package/dist/components/eds-components-section.d.ts +11 -0
  400. package/dist/components/eds-components-section.entry.js +92 -0
  401. package/dist/components/eds-components-section.js +147 -0
  402. package/dist/components/eds-docs-palettes.d.ts +11 -0
  403. package/dist/components/eds-docs-palettes.entry.js +23 -0
  404. package/dist/components/eds-docs-palettes.js +96 -0
  405. package/dist/components/eds-docs-tokens.d.ts +11 -0
  406. package/dist/components/eds-docs-tokens.entry.js +31 -0
  407. package/dist/components/eds-docs-tokens.js +80 -0
  408. package/dist/components/eds-dropdown.d.ts +11 -0
  409. package/dist/components/eds-dropdown.entry.js +125 -0
  410. package/dist/components/eds-dropdown.js +6 -0
  411. package/dist/components/eds-dropdown2.js +163 -0
  412. package/dist/components/eds-footer.d.ts +11 -0
  413. package/dist/components/eds-footer.entry.js +45 -0
  414. package/dist/components/eds-footer.js +6 -0
  415. package/dist/components/eds-footer2.js +97 -0
  416. package/dist/components/eds-form.d.ts +11 -0
  417. package/dist/components/eds-form.entry.js +245 -0
  418. package/dist/components/eds-form.js +346 -0
  419. package/dist/components/eds-frame.d.ts +11 -0
  420. package/dist/components/eds-frame.entry.js +87 -0
  421. package/dist/components/eds-frame.js +127 -0
  422. package/dist/components/eds-fullscreen-menu.d.ts +11 -0
  423. package/dist/components/eds-fullscreen-menu.entry.js +95 -0
  424. package/dist/components/eds-fullscreen-menu.js +166 -0
  425. package/dist/components/eds-header.d.ts +11 -0
  426. package/dist/components/eds-header.entry.js +92 -0
  427. package/dist/components/eds-header.js +175 -0
  428. package/dist/components/eds-icon-arrow-diagonal.d.ts +11 -0
  429. package/dist/components/eds-icon-arrow-diagonal.entry.js +14 -0
  430. package/dist/components/eds-icon-arrow-diagonal.js +33 -0
  431. package/dist/components/eds-icon-arrow-right.d.ts +11 -0
  432. package/dist/components/eds-icon-arrow-right.entry.js +14 -0
  433. package/dist/components/eds-icon-arrow-right.js +33 -0
  434. package/dist/components/eds-icon-bluesky.d.ts +11 -0
  435. package/dist/components/eds-icon-bluesky.entry.js +14 -0
  436. package/dist/components/eds-icon-bluesky.js +33 -0
  437. package/dist/components/eds-icon-chevron-down.d.ts +11 -0
  438. package/dist/components/eds-icon-chevron-down.entry.js +14 -0
  439. package/dist/components/eds-icon-chevron-down.js +33 -0
  440. package/dist/components/eds-icon-chevron-left.d.ts +11 -0
  441. package/dist/components/eds-icon-chevron-left.entry.js +14 -0
  442. package/dist/components/eds-icon-chevron-left.js +33 -0
  443. package/dist/components/eds-icon-chevron-right.d.ts +11 -0
  444. package/dist/components/eds-icon-chevron-right.entry.js +14 -0
  445. package/dist/components/eds-icon-chevron-right.js +33 -0
  446. package/dist/components/eds-icon-chevron-up.d.ts +11 -0
  447. package/dist/components/eds-icon-chevron-up.entry.js +14 -0
  448. package/dist/components/eds-icon-chevron-up.js +33 -0
  449. package/dist/components/eds-icon-close.d.ts +11 -0
  450. package/dist/components/eds-icon-close.entry.js +14 -0
  451. package/dist/components/eds-icon-close.js +33 -0
  452. package/dist/components/eds-icon-copy.d.ts +11 -0
  453. package/dist/components/eds-icon-copy.entry.js +14 -0
  454. package/dist/components/eds-icon-copy.js +33 -0
  455. package/dist/components/eds-icon-eu.d.ts +11 -0
  456. package/dist/components/eds-icon-eu.entry.js +14 -0
  457. package/dist/components/eds-icon-eu.js +33 -0
  458. package/dist/components/eds-icon-facebook.d.ts +11 -0
  459. package/dist/components/eds-icon-facebook.entry.js +14 -0
  460. package/dist/components/eds-icon-facebook.js +33 -0
  461. package/dist/components/eds-icon-gitlab.d.ts +11 -0
  462. package/dist/components/eds-icon-gitlab.entry.js +14 -0
  463. package/dist/components/eds-icon-gitlab.js +33 -0
  464. package/dist/components/eds-icon-linkedin.d.ts +11 -0
  465. package/dist/components/eds-icon-linkedin.entry.js +14 -0
  466. package/dist/components/eds-icon-linkedin.js +33 -0
  467. package/dist/components/eds-icon-loader.d.ts +11 -0
  468. package/dist/components/eds-icon-loader.entry.js +14 -0
  469. package/dist/components/eds-icon-loader.js +33 -0
  470. package/dist/components/eds-icon-mastodon.d.ts +11 -0
  471. package/dist/components/eds-icon-mastodon.entry.js +14 -0
  472. package/dist/components/eds-icon-mastodon.js +33 -0
  473. package/dist/components/eds-icon-menu.d.ts +11 -0
  474. package/dist/components/eds-icon-menu.entry.js +14 -0
  475. package/dist/components/eds-icon-menu.js +33 -0
  476. package/dist/components/eds-icon-more.d.ts +11 -0
  477. package/dist/components/eds-icon-more.entry.js +14 -0
  478. package/dist/components/eds-icon-more.js +33 -0
  479. package/dist/components/eds-icon-search.d.ts +11 -0
  480. package/dist/components/eds-icon-search.entry.js +14 -0
  481. package/dist/components/eds-icon-search.js +33 -0
  482. package/dist/components/eds-icon-success.d.ts +11 -0
  483. package/dist/components/eds-icon-success.entry.js +14 -0
  484. package/dist/components/eds-icon-success.js +33 -0
  485. package/dist/components/eds-icon-twitter.d.ts +11 -0
  486. package/dist/components/eds-icon-twitter.entry.js +14 -0
  487. package/dist/components/eds-icon-twitter.js +33 -0
  488. package/dist/components/eds-icon-user.d.ts +11 -0
  489. package/dist/components/eds-icon-user.entry.js +14 -0
  490. package/dist/components/eds-icon-user.js +33 -0
  491. package/dist/components/eds-icon-wrapper.d.ts +11 -0
  492. package/dist/components/eds-icon-wrapper.entry.js +36 -0
  493. package/dist/components/eds-icon-wrapper.js +6 -0
  494. package/dist/components/eds-icon-wrapper2.js +56 -0
  495. package/dist/components/eds-icon-youtube.d.ts +11 -0
  496. package/dist/components/eds-icon-youtube.entry.js +14 -0
  497. package/dist/components/eds-icon-youtube.js +33 -0
  498. package/dist/components/eds-img.d.ts +11 -0
  499. package/dist/components/eds-img.entry.js +53 -0
  500. package/dist/components/eds-img.js +6 -0
  501. package/dist/components/eds-img2.js +80 -0
  502. package/dist/components/eds-input-field.d.ts +11 -0
  503. package/dist/components/eds-input-field.entry.js +68 -0
  504. package/dist/components/eds-input-field.js +6 -0
  505. package/dist/components/eds-input-field2.js +145 -0
  506. package/dist/components/eds-input-footer.d.ts +11 -0
  507. package/dist/components/eds-input-footer.entry.js +17 -0
  508. package/dist/components/eds-input-footer.js +6 -0
  509. package/dist/components/eds-input-footer2.js +43 -0
  510. package/dist/components/eds-input-label.d.ts +11 -0
  511. package/dist/components/eds-input-label.entry.js +16 -0
  512. package/dist/components/eds-input-label.js +6 -0
  513. package/dist/components/eds-input-label2.js +35 -0
  514. package/dist/components/eds-input-range.d.ts +11 -0
  515. package/dist/components/eds-input-range.entry.js +35 -0
  516. package/dist/components/eds-input-range.js +6 -0
  517. package/dist/components/eds-input-range2.js +59 -0
  518. package/dist/components/eds-input-search.d.ts +11 -0
  519. package/dist/components/eds-input-search.entry.js +37 -0
  520. package/dist/components/eds-input-search.js +6 -0
  521. package/dist/components/eds-input-search2.js +65 -0
  522. package/dist/components/eds-input-select.d.ts +11 -0
  523. package/dist/components/eds-input-select.entry.js +26 -0
  524. package/dist/components/eds-input-select.js +6 -0
  525. package/dist/components/eds-input-select2.js +56 -0
  526. package/dist/components/eds-input.d.ts +11 -0
  527. package/dist/components/eds-input.entry.js +64 -0
  528. package/dist/components/eds-input.js +6 -0
  529. package/dist/components/eds-input2.js +103 -0
  530. package/dist/components/eds-link.d.ts +11 -0
  531. package/dist/components/eds-link.entry.js +207 -0
  532. package/dist/components/eds-link.js +6 -0
  533. package/dist/components/eds-link2.js +243 -0
  534. package/dist/components/eds-login.d.ts +11 -0
  535. package/dist/components/eds-login.entry.js +68 -0
  536. package/dist/components/eds-login.js +103 -0
  537. package/dist/components/eds-logo.d.ts +11 -0
  538. package/dist/components/eds-logo.entry.js +72 -0
  539. package/dist/components/eds-logo.js +6 -0
  540. package/dist/components/eds-logo2.js +90 -0
  541. package/dist/components/eds-matomo-notice.d.ts +11 -0
  542. package/dist/components/eds-matomo-notice.entry.js +105 -0
  543. package/dist/components/eds-matomo-notice.js +144 -0
  544. package/dist/components/eds-modal.d.ts +11 -0
  545. package/dist/components/eds-modal.entry.js +42 -0
  546. package/dist/components/eds-modal.js +80 -0
  547. package/dist/components/eds-navigator.d.ts +11 -0
  548. package/dist/components/eds-navigator.entry.js +39 -0
  549. package/dist/components/eds-navigator.js +75 -0
  550. package/dist/components/eds-pagination.d.ts +11 -0
  551. package/dist/components/eds-pagination.entry.js +207 -0
  552. package/dist/components/eds-pagination.js +6 -0
  553. package/dist/components/eds-pagination2.js +249 -0
  554. package/dist/components/eds-progress-bar.d.ts +11 -0
  555. package/dist/components/eds-progress-bar.entry.js +24 -0
  556. package/dist/components/eds-progress-bar.js +45 -0
  557. package/dist/components/eds-rating.d.ts +11 -0
  558. package/dist/components/eds-rating.entry.js +53 -0
  559. package/dist/components/eds-rating.js +76 -0
  560. package/dist/components/eds-section-core.d.ts +11 -0
  561. package/dist/components/eds-section-core.entry.js +19 -0
  562. package/dist/components/eds-section-core.js +6 -0
  563. package/dist/components/eds-section-core2.js +43 -0
  564. package/dist/components/eds-section-heading.d.ts +11 -0
  565. package/dist/components/eds-section-heading.entry.js +37 -0
  566. package/dist/components/eds-section-heading.js +6 -0
  567. package/dist/components/eds-section-heading2.js +57 -0
  568. package/dist/components/eds-social-networks.d.ts +11 -0
  569. package/dist/components/eds-social-networks.entry.js +61 -0
  570. package/dist/components/eds-social-networks.js +6 -0
  571. package/dist/components/eds-social-networks2.js +90 -0
  572. package/dist/components/eds-svg-repository.d.ts +11 -0
  573. package/dist/components/eds-svg-repository.entry.js +28 -0
  574. package/dist/components/eds-svg-repository.js +112 -0
  575. package/dist/components/eds-tab.d.ts +11 -0
  576. package/dist/components/eds-tab.entry.js +36 -0
  577. package/dist/components/eds-tab.js +6 -0
  578. package/dist/components/eds-tab2.js +55 -0
  579. package/dist/components/eds-table.d.ts +11 -0
  580. package/dist/components/eds-table.entry.js +138 -0
  581. package/dist/components/eds-table.js +6 -0
  582. package/dist/components/eds-table2.js +229 -0
  583. package/dist/components/eds-tabs-content.d.ts +11 -0
  584. package/dist/components/eds-tabs-content.entry.js +129 -0
  585. package/dist/components/eds-tabs-content.js +159 -0
  586. package/dist/components/eds-tabs.d.ts +11 -0
  587. package/dist/components/eds-tabs.entry.js +118 -0
  588. package/dist/components/eds-tabs.js +149 -0
  589. package/dist/components/eds-tag.d.ts +11 -0
  590. package/dist/components/eds-tag.entry.js +40 -0
  591. package/dist/components/eds-tag.js +6 -0
  592. package/dist/components/eds-tag2.js +58 -0
  593. package/dist/components/eds-toast-manager.d.ts +11 -0
  594. package/dist/components/eds-toast-manager.entry.js +41 -0
  595. package/dist/components/eds-toast-manager.js +78 -0
  596. package/dist/components/eds-toast.d.ts +11 -0
  597. package/dist/components/eds-toast.entry.js +49 -0
  598. package/dist/components/eds-toast.js +6 -0
  599. package/dist/components/eds-toast2.js +80 -0
  600. package/dist/components/eds-tooltip.d.ts +11 -0
  601. package/dist/components/eds-tooltip.entry.js +95 -0
  602. package/dist/components/eds-tooltip.js +119 -0
  603. package/dist/components/eds-user-modal.d.ts +11 -0
  604. package/dist/components/eds-user-modal.entry.js +43 -0
  605. package/dist/components/eds-user-modal.js +6 -0
  606. package/dist/components/eds-user-modal2.js +90 -0
  607. package/dist/components/eds-user.d.ts +11 -0
  608. package/dist/components/eds-user.entry.js +86 -0
  609. package/dist/components/eds-user.js +6 -0
  610. package/dist/components/eds-user2.js +150 -0
  611. package/dist/components/eu.js +30 -0
  612. package/dist/components/facebook.js +14 -0
  613. package/dist/components/gradient-primary-palette.d.ts +11 -0
  614. package/dist/components/gradient-primary-palette.entry.js +41 -0
  615. package/dist/components/gradient-primary-palette.js +6 -0
  616. package/dist/components/gradient-secondary-palette.d.ts +11 -0
  617. package/dist/components/gradient-secondary-palette.entry.js +75 -0
  618. package/dist/components/gradient-secondary-palette.js +6 -0
  619. package/dist/components/gradient-support-palette.d.ts +11 -0
  620. package/dist/components/gradient-support-palette.entry.js +59 -0
  621. package/dist/components/gradient-support-palette.js +6 -0
  622. package/dist/components/incorrect-use-of-colors.d.ts +11 -0
  623. package/dist/components/incorrect-use-of-colors.entry.js +46 -0
  624. package/dist/components/incorrect-use-of-colors.js +63 -0
  625. package/dist/components/index-144c9ae8.js +46 -0
  626. package/dist/components/index-360dc790.js +401 -0
  627. package/dist/components/index-a9afa43f.js +1802 -0
  628. package/dist/components/index-b384416e.js +3023 -0
  629. package/dist/components/index.d.ts +33 -0
  630. package/dist/components/index.esm.js +1 -0
  631. package/dist/components/index.js +1 -0
  632. package/dist/components/index2.js +401 -0
  633. package/dist/components/index3.js +46 -0
  634. package/dist/components/index4.js +1802 -0
  635. package/dist/components/keycloak-b647d452.js +1903 -0
  636. package/dist/components/keycloak.js +1903 -0
  637. package/dist/components/linkedin.js +28 -0
  638. package/dist/components/loader.js +33 -0
  639. package/dist/components/logo-color-margins.js +118 -0
  640. package/dist/components/logo-color.js +115 -0
  641. package/dist/components/logo-space.d.ts +11 -0
  642. package/dist/components/logo-space.entry.js +16 -0
  643. package/dist/components/logo-space.js +34 -0
  644. package/dist/components/logo-variations-horizontal.d.ts +11 -0
  645. package/dist/components/logo-variations-horizontal.entry.js +26 -0
  646. package/dist/components/logo-variations-horizontal.js +53 -0
  647. package/dist/components/logo-variations-vertical.d.ts +11 -0
  648. package/dist/components/logo-variations-vertical.entry.js +26 -0
  649. package/dist/components/logo-variations-vertical.js +53 -0
  650. package/dist/components/logo-white-no-bg.js +1029 -0
  651. package/dist/components/logo-wrong-usage.d.ts +11 -0
  652. package/dist/components/logo-wrong-usage.entry.js +16 -0
  653. package/dist/components/logo-wrong-usage.js +34 -0
  654. package/dist/components/mastodon.js +14 -0
  655. package/dist/components/menu.js +11 -0
  656. package/dist/components/mono.js +11 -0
  657. package/dist/components/more.js +13 -0
  658. package/dist/components/p-0611bbac.entry.js +1 -0
  659. package/dist/components/p-0a195bfe.entry.js +1 -0
  660. package/dist/components/p-0a6262b7.entry.js +1 -0
  661. package/dist/components/p-0be28996.js +1 -0
  662. package/dist/components/p-0e6d43c5.js +1 -0
  663. package/dist/components/p-112122d6.js +1 -0
  664. package/dist/components/p-11a4ef34.entry.js +1 -0
  665. package/dist/components/p-145d8e4d.entry.js +1 -0
  666. package/dist/components/p-1a1b8e28.entry.js +1 -0
  667. package/dist/components/p-1d94d663.entry.js +1 -0
  668. package/dist/components/p-1ded61bd.js +1 -0
  669. package/dist/components/p-200ad980.entry.js +9 -0
  670. package/dist/components/p-2066b033.js +1 -0
  671. package/dist/components/p-219d9f68.entry.js +1 -0
  672. package/dist/components/p-22ee5374.entry.js +1 -0
  673. package/dist/components/p-25eb1801.entry.js +1 -0
  674. package/dist/components/p-2692f93d.js +1 -0
  675. package/dist/components/p-2728a189.entry.js +1 -0
  676. package/dist/components/p-29041952.js +1 -0
  677. package/dist/components/p-2b14f03a.entry.js +1 -0
  678. package/dist/components/p-3048bdec.entry.js +1 -0
  679. package/dist/components/p-32e6c4df.js +1 -0
  680. package/dist/components/p-36c0f3ee.entry.js +1 -0
  681. package/dist/components/p-373119b3.js +1 -0
  682. package/dist/components/p-378d371f.entry.js +1 -0
  683. package/dist/components/p-3dbf2ac9.entry.js +1 -0
  684. package/dist/components/p-42dfb426.entry.js +1 -0
  685. package/dist/components/p-4541cb5f.entry.js +1 -0
  686. package/dist/components/p-4587d0ef.js +1 -0
  687. package/dist/components/p-4687b64c.js +1 -0
  688. package/dist/components/p-46d0716d.js +1 -0
  689. package/dist/components/p-49a5eef5.entry.js +1 -0
  690. package/dist/components/p-50e27321.js +1 -0
  691. package/dist/components/p-513bf756.entry.js +1 -0
  692. package/dist/components/p-52a487ee.entry.js +1 -0
  693. package/dist/components/p-54b8f143.js +1 -0
  694. package/dist/components/p-55444767.entry.js +1 -0
  695. package/dist/components/p-5ab1d64a.js +1 -0
  696. package/dist/components/p-5b900a2c.entry.js +1 -0
  697. package/dist/components/p-5d046674.js +1 -0
  698. package/dist/components/p-5edc806a.entry.js +1 -0
  699. package/dist/components/p-606d8f86.entry.js +1 -0
  700. package/dist/components/p-64d4a6e0.entry.js +1 -0
  701. package/dist/components/p-677f60bc.entry.js +1 -0
  702. package/dist/components/p-6bc00fad.entry.js +1 -0
  703. package/dist/components/p-6cb8c52d.entry.js +1 -0
  704. package/dist/components/p-6f601454.entry.js +1 -0
  705. package/dist/components/p-763cbe2f.entry.js +1 -0
  706. package/dist/components/p-77a81dfa.entry.js +1 -0
  707. package/dist/components/p-7a2b35b4.entry.js +1 -0
  708. package/dist/components/p-81899237.js +1 -0
  709. package/dist/components/p-81d2a9be.entry.js +1 -0
  710. package/dist/components/p-82453a66.entry.js +1 -0
  711. package/dist/components/p-83ff4a95.js +1 -0
  712. package/dist/components/p-877403df.entry.js +1 -0
  713. package/dist/components/p-8983de37.js +1 -0
  714. package/dist/components/p-8c1be2b6.entry.js +1 -0
  715. package/dist/components/p-923e4d23.entry.js +1 -0
  716. package/dist/components/p-94b74ae8.entry.js +1 -0
  717. package/dist/components/p-9c05e349.entry.js +1 -0
  718. package/dist/components/p-9c5a453b.js +1 -0
  719. package/dist/components/p-9c74a5dd.entry.js +1 -0
  720. package/dist/components/p-abcdf35f.js +1 -0
  721. package/dist/components/p-ac083317.entry.js +1 -0
  722. package/dist/components/p-ad79cc3c.entry.js +1 -0
  723. package/dist/components/p-aefcb641.js +1 -0
  724. package/dist/components/p-b4055691.entry.js +1 -0
  725. package/dist/components/p-b544f216.entry.js +1 -0
  726. package/dist/components/p-b822abb7.js +1 -0
  727. package/dist/components/p-b94318f2.entry.js +1 -0
  728. package/dist/components/p-bad2a33a.entry.js +1 -0
  729. package/dist/components/p-bfd2fdf1.entry.js +1 -0
  730. package/dist/components/p-c0afe524.entry.js +1 -0
  731. package/dist/components/p-c11d93cf.entry.js +1 -0
  732. package/dist/components/p-c16b3c0c.entry.js +1 -0
  733. package/dist/components/p-c3c61db1.entry.js +1 -0
  734. package/dist/components/p-c8e7c854.js +1 -0
  735. package/dist/components/p-c9c417de.js +1 -0
  736. package/dist/components/p-caf2af08.entry.js +1 -0
  737. package/dist/components/p-d80de13e.entry.js +1 -0
  738. package/dist/components/p-ddd005a3.entry.js +1 -0
  739. package/dist/components/p-e04097a2.entry.js +1 -0
  740. package/dist/components/p-e1255160.js +1 -0
  741. package/dist/components/p-e2e715a2.entry.js +1 -0
  742. package/dist/components/p-e639818b.entry.js +1 -0
  743. package/dist/components/p-e69ff916.entry.js +1 -0
  744. package/dist/components/p-e80f4f24.js +1 -0
  745. package/dist/components/p-e9a1fb1e.js +2 -0
  746. package/dist/components/p-ec95188c.entry.js +1 -0
  747. package/dist/components/p-ecbb679f.js +1 -0
  748. package/dist/components/p-ece618b3.js +1 -0
  749. package/dist/components/p-f04946a5.entry.js +1 -0
  750. package/dist/components/p-fa1276cc.entry.js +1 -0
  751. package/dist/components/p-ff6b25a1.entry.js +1 -0
  752. package/dist/components/primary.js +65 -0
  753. package/dist/components/primary2.js +67 -0
  754. package/dist/components/search.js +12 -0
  755. package/dist/components/secondary.js +92 -0
  756. package/dist/components/secondary2.js +107 -0
  757. package/dist/components/shadow-css-423dab2c.js +332 -0
  758. package/dist/components/success.js +18 -0
  759. package/dist/components/support.js +81 -0
  760. package/dist/components/support2.js +85 -0
  761. package/dist/components/toastManager-b716afd8.js +31 -0
  762. package/dist/components/toastManager.js +31 -0
  763. package/dist/components/token-list.d.ts +11 -0
  764. package/dist/components/token-list.entry.js +249 -0
  765. package/dist/components/token-list.js +6 -0
  766. package/dist/components/token-list2.js +277 -0
  767. package/dist/components/token-radii.d.ts +11 -0
  768. package/dist/components/token-radii.entry.js +21 -0
  769. package/dist/components/token-radii.js +6 -0
  770. package/dist/components/token-radii2.js +47 -0
  771. package/dist/components/token-ratios.d.ts +11 -0
  772. package/dist/components/token-ratios.entry.js +25 -0
  773. package/dist/components/token-ratios.js +54 -0
  774. package/dist/components/token-shadows.d.ts +11 -0
  775. package/dist/components/token-shadows.entry.js +30 -0
  776. package/dist/components/token-shadows.js +6 -0
  777. package/dist/components/token-shadows2.js +56 -0
  778. package/dist/components/token-spacing.d.ts +11 -0
  779. package/dist/components/token-spacing.entry.js +12 -0
  780. package/dist/components/token-spacing.js +29 -0
  781. package/dist/components/token-typography.d.ts +11 -0
  782. package/dist/components/token-typography.entry.js +226 -0
  783. package/dist/components/token-typography.js +255 -0
  784. package/dist/components/twitter.js +14 -0
  785. package/dist/components/user.js +16 -0
  786. package/dist/components/youtube.js +14 -0
  787. package/dist/esm/app-globals-0f993ce5.js +3 -0
  788. package/dist/esm/arrow-diagonal-black-8f0494c3.js +3 -0
  789. package/dist/esm/arrow-right-9322ba8a.js +5 -0
  790. package/dist/esm/bluesky-cc5edd2d.js +14 -0
  791. package/dist/esm/chevron-down-6144c823.js +12 -0
  792. package/dist/esm/chevron-left-ca6c66e1.js +11 -0
  793. package/dist/esm/chevron-right-b88ed2d4.js +5 -0
  794. package/dist/esm/chevron-up-c66bd477.js +12 -0
  795. package/dist/esm/close-87fc0d63.js +5 -0
  796. package/dist/esm/color-49aa977d.js +338 -0
  797. package/dist/esm/color-primary-palette.entry.js +39 -0
  798. package/dist/esm/color-primary-palette_6.entry.js +318 -0
  799. package/dist/esm/color-secondary-palette.entry.js +64 -0
  800. package/dist/esm/color-support-palette.entry.js +55 -0
  801. package/dist/esm/components.js +47 -0
  802. package/dist/esm/copy-03b72cb6.js +5 -0
  803. package/dist/esm/correct-use-of-colors.entry.js +64 -0
  804. package/dist/esm/eds-accordion.entry.js +88 -0
  805. package/dist/esm/eds-accordion_23.entry.js +1860 -0
  806. package/dist/esm/eds-alert.entry.js +91 -0
  807. package/dist/esm/eds-avatar.entry.js +69 -0
  808. package/dist/esm/eds-block-break.entry.js +16 -0
  809. package/dist/esm/eds-breadcrumb.entry.js +148 -0
  810. package/dist/esm/eds-button.entry.js +229 -0
  811. package/dist/esm/eds-card-desc.entry.js +22 -0
  812. package/dist/esm/eds-card-desc_3.entry.js +111 -0
  813. package/dist/esm/eds-card-generic.entry.js +89 -0
  814. package/dist/esm/eds-card-project.entry.js +63 -0
  815. package/dist/esm/eds-card-section.entry.js +39 -0
  816. package/dist/esm/eds-card-tags.entry.js +17 -0
  817. package/dist/esm/eds-card-title.entry.js +52 -0
  818. package/dist/esm/eds-card-tool.entry.js +75 -0
  819. package/dist/esm/eds-card-wrapper.entry.js +28 -0
  820. package/dist/esm/eds-code-block.entry.js +2468 -0
  821. package/dist/esm/eds-components-section.entry.js +92 -0
  822. package/dist/esm/eds-docs-palettes.entry.js +23 -0
  823. package/dist/esm/eds-docs-tokens.entry.js +31 -0
  824. package/dist/esm/eds-dropdown.entry.js +125 -0
  825. package/dist/esm/eds-footer.entry.js +45 -0
  826. package/dist/esm/eds-form.entry.js +245 -0
  827. package/dist/esm/eds-frame.entry.js +87 -0
  828. package/dist/esm/eds-fullscreen-menu.entry.js +95 -0
  829. package/dist/esm/eds-header.entry.js +92 -0
  830. package/dist/esm/eds-icon-arrow-diagonal.entry.js +14 -0
  831. package/dist/esm/eds-icon-arrow-right.entry.js +14 -0
  832. package/dist/esm/eds-icon-bluesky.entry.js +14 -0
  833. package/dist/esm/eds-icon-chevron-down.entry.js +14 -0
  834. package/dist/esm/eds-icon-chevron-left.entry.js +14 -0
  835. package/dist/esm/eds-icon-chevron-right.entry.js +14 -0
  836. package/dist/esm/eds-icon-chevron-up.entry.js +14 -0
  837. package/dist/esm/eds-icon-close.entry.js +14 -0
  838. package/dist/esm/eds-icon-copy.entry.js +14 -0
  839. package/dist/esm/eds-icon-eu.entry.js +14 -0
  840. package/dist/esm/eds-icon-facebook.entry.js +14 -0
  841. package/dist/esm/eds-icon-gitlab.entry.js +14 -0
  842. package/dist/esm/eds-icon-linkedin.entry.js +14 -0
  843. package/dist/esm/eds-icon-loader.entry.js +14 -0
  844. package/dist/esm/eds-icon-mastodon.entry.js +14 -0
  845. package/dist/esm/eds-icon-menu.entry.js +14 -0
  846. package/dist/esm/eds-icon-more.entry.js +14 -0
  847. package/dist/esm/eds-icon-search.entry.js +14 -0
  848. package/dist/esm/eds-icon-success.entry.js +14 -0
  849. package/dist/esm/eds-icon-twitter.entry.js +14 -0
  850. package/dist/esm/eds-icon-user.entry.js +14 -0
  851. package/dist/esm/eds-icon-wrapper.entry.js +36 -0
  852. package/dist/esm/eds-icon-youtube.entry.js +14 -0
  853. package/dist/esm/eds-img.entry.js +53 -0
  854. package/dist/esm/eds-input-field.entry.js +68 -0
  855. package/dist/esm/eds-input-footer.entry.js +17 -0
  856. package/dist/esm/eds-input-label.entry.js +16 -0
  857. package/dist/esm/eds-input-range.entry.js +35 -0
  858. package/dist/esm/eds-input-search.entry.js +37 -0
  859. package/dist/esm/eds-input-select.entry.js +26 -0
  860. package/dist/esm/eds-input.entry.js +64 -0
  861. package/dist/esm/eds-link.entry.js +207 -0
  862. package/dist/esm/eds-login.entry.js +68 -0
  863. package/dist/esm/eds-logo.entry.js +72 -0
  864. package/dist/esm/eds-matomo-notice.entry.js +105 -0
  865. package/dist/esm/eds-modal.entry.js +42 -0
  866. package/dist/esm/eds-navigator.entry.js +39 -0
  867. package/dist/esm/eds-pagination.entry.js +207 -0
  868. package/dist/esm/eds-progress-bar.entry.js +24 -0
  869. package/dist/esm/eds-rating.entry.js +53 -0
  870. package/dist/esm/eds-section-core.entry.js +19 -0
  871. package/dist/esm/eds-section-core_2.entry.js +54 -0
  872. package/dist/esm/eds-section-heading.entry.js +37 -0
  873. package/dist/esm/eds-social-networks.entry.js +61 -0
  874. package/dist/esm/eds-svg-repository.entry.js +28 -0
  875. package/dist/esm/eds-tab.entry.js +36 -0
  876. package/dist/esm/eds-table.entry.js +138 -0
  877. package/dist/esm/eds-tabs-content.entry.js +129 -0
  878. package/dist/esm/eds-tabs.entry.js +118 -0
  879. package/dist/esm/eds-tag.entry.js +40 -0
  880. package/dist/esm/eds-toast-manager.entry.js +41 -0
  881. package/dist/esm/eds-toast.entry.js +49 -0
  882. package/dist/esm/eds-tooltip.entry.js +95 -0
  883. package/dist/esm/eds-user-modal.entry.js +43 -0
  884. package/dist/esm/eds-user.entry.js +86 -0
  885. package/dist/esm/eu-9ddde93a.js +30 -0
  886. package/dist/esm/facebook-9cb5c17f.js +14 -0
  887. package/dist/esm/gradient-primary-palette.entry.js +41 -0
  888. package/dist/esm/gradient-secondary-palette.entry.js +75 -0
  889. package/dist/esm/gradient-support-palette.entry.js +59 -0
  890. package/dist/esm/incorrect-use-of-colors.entry.js +46 -0
  891. package/dist/esm/index-144c9ae8.js +46 -0
  892. package/dist/esm/index-360dc790.js +401 -0
  893. package/dist/esm/index-39c58238.js +46 -0
  894. package/dist/esm/index-a9afa43f.js +1802 -0
  895. package/dist/esm/index-b384416e.js +3416 -0
  896. package/dist/esm/index-f1426055.js +2121 -0
  897. package/dist/esm/index.js +1 -0
  898. package/dist/esm/keycloak-13893af6.js +1893 -0
  899. package/dist/esm/keycloak-b647d452.js +1903 -0
  900. package/dist/esm/linkedin-e8650abb.js +28 -0
  901. package/dist/esm/loader-66341740.js +33 -0
  902. package/dist/esm/loader.js +11 -0
  903. package/dist/esm/logo-color-7f1fd803.js +115 -0
  904. package/dist/esm/logo-color-margins-ff8ce71b.js +118 -0
  905. package/dist/esm/logo-space.entry.js +16 -0
  906. package/dist/esm/logo-variations-horizontal.entry.js +26 -0
  907. package/dist/esm/logo-variations-vertical.entry.js +26 -0
  908. package/dist/esm/logo-white-no-bg-f382f86f.js +1029 -0
  909. package/dist/esm/logo-wrong-usage.entry.js +16 -0
  910. package/dist/esm/mastodon-3703ec61.js +14 -0
  911. package/dist/esm/menu-340ea948.js +11 -0
  912. package/dist/esm/mono-53f70232.js +11 -0
  913. package/dist/esm/more-4449d549.js +13 -0
  914. package/dist/esm/search-fbcd79c2.js +12 -0
  915. package/dist/esm/shadow-css-423dab2c.js +332 -0
  916. package/dist/esm/success-443809da.js +18 -0
  917. package/dist/esm/toastManager-b716afd8.js +31 -0
  918. package/dist/esm/token-list.entry.js +249 -0
  919. package/dist/esm/token-list_3.entry.js +294 -0
  920. package/dist/esm/token-radii.entry.js +21 -0
  921. package/dist/esm/token-ratios.entry.js +25 -0
  922. package/dist/esm/token-shadows.entry.js +30 -0
  923. package/dist/esm/token-spacing.entry.js +12 -0
  924. package/dist/esm/token-typography.entry.js +226 -0
  925. package/dist/esm/twitter-ac21b505.js +14 -0
  926. package/dist/esm/user-71ebdc15.js +16 -0
  927. package/dist/esm/youtube-efbfbdc4.js +14 -0
  928. package/dist/hydrate/index.d.ts +242 -0
  929. package/dist/hydrate/index.js +31353 -0
  930. package/dist/hydrate/index.mjs +31345 -0
  931. package/dist/hydrate/package.json +12 -0
  932. package/dist/index.cjs.js +1 -0
  933. package/dist/index.js +1 -0
  934. package/dist/stencil.config.js +64 -0
  935. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/components/stencil.config.d.ts +2 -0
  936. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/svgs/src/index.d.ts +1 -0
  937. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/svgs/src/lib/svgs.d.ts +46 -0
  938. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/index.d.ts +3 -0
  939. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib/analytics.d.ts +23 -0
  940. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib/color.d.ts +8 -0
  941. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib/keycloak.d.ts +30 -0
  942. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib/render.d.ts +8 -0
  943. package/dist/types/components/eds-accordion/eds-accordion.d.ts +81 -0
  944. package/dist/types/components/eds-accordion/eds-accordion.stories.d.ts +61 -0
  945. package/dist/types/components/eds-alert/eds-alert.d.ts +43 -0
  946. package/dist/types/components/eds-alert/eds-alert.stories.d.ts +46 -0
  947. package/dist/types/components/eds-avatar/eds-avatar.d.ts +57 -0
  948. package/dist/types/components/eds-avatar/eds-avatar.stories.d.ts +63 -0
  949. package/dist/types/components/eds-block-break/eds-block-break.d.ts +15 -0
  950. package/dist/types/components/eds-breadcrump/eds-breadcrumb.stories.d.ts +29 -0
  951. package/dist/types/components/eds-breadcrump/eds-breadcrump.d.ts +97 -0
  952. package/dist/types/components/eds-button/eds-button.d.ts +75 -0
  953. package/dist/types/components/eds-button/eds-button.stories.d.ts +62 -0
  954. package/dist/types/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.d.ts +23 -0
  955. package/dist/types/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.stories.d.ts +32 -0
  956. package/dist/types/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.d.ts +15 -0
  957. package/dist/types/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.d.ts +38 -0
  958. package/dist/types/components/eds-cards/eds-card-composer/eds-card-wrapper/eds-card-wrapper.d.ts +23 -0
  959. package/dist/types/components/eds-cards/eds-card-generic/eds-card-generic.d.ts +87 -0
  960. package/dist/types/components/eds-cards/eds-card-generic/eds-card-generic.stories.d.ts +94 -0
  961. package/dist/types/components/eds-cards/eds-card-project/eds-card-project.d.ts +54 -0
  962. package/dist/types/components/eds-cards/eds-card-tool/eds-card-tool.d.ts +79 -0
  963. package/dist/types/components/eds-code-block/eds-code-block.d.ts +15 -0
  964. package/dist/types/components/eds-dropdown/eds-dropdown.d.ts +120 -0
  965. package/dist/types/components/eds-form/eds-form.d.ts +112 -0
  966. package/dist/types/components/eds-form/eds-form.stories.d.ts +47 -0
  967. package/dist/types/components/eds-frame/eds-frame.d.ts +42 -0
  968. package/dist/types/components/eds-frame/eds-frame.stories.d.ts +45 -0
  969. package/dist/types/components/eds-icon-wrapper/eds-icon-wrapper.d.ts +28 -0
  970. package/dist/types/components/eds-icons/chevron/eds-icon-chevron-down/eds-icon-chevron-down.d.ts +10 -0
  971. package/dist/types/components/eds-icons/chevron/eds-icon-chevron-left/eds-icon-chevron-left.d.ts +10 -0
  972. package/dist/types/components/eds-icons/chevron/eds-icon-chevron-right/eds-icon-chevron-right.d.ts +10 -0
  973. package/dist/types/components/eds-icons/chevron/eds-icon-chevron-up/eds-icon-chevron-up.d.ts +10 -0
  974. package/dist/types/components/eds-icons/eds-icon-arrow-diagonal/eds-icon-arrow-diagonal.d.ts +10 -0
  975. package/dist/types/components/eds-icons/eds-icon-arrow-right/eds-icon-arrow-right.d.ts +10 -0
  976. package/dist/types/components/eds-icons/eds-icon-close/eds-icon-close.d.ts +10 -0
  977. package/dist/types/components/eds-icons/eds-icon-copy/eds-icon-copy.d.ts +10 -0
  978. package/dist/types/components/eds-icons/eds-icon-eu/eds-icon-eu.d.ts +10 -0
  979. package/dist/types/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.d.ts +10 -0
  980. package/dist/types/components/eds-icons/eds-icon-loader/eds-icon-loader.d.ts +10 -0
  981. package/dist/types/components/eds-icons/eds-icon-menu/eds-icon-menu.d.ts +10 -0
  982. package/dist/types/components/eds-icons/eds-icon-more/eds-icon-more.d.ts +10 -0
  983. package/dist/types/components/eds-icons/eds-icon-search/eds-icon-search.d.ts +10 -0
  984. package/dist/types/components/eds-icons/eds-icon-success/eds-icon-success.d.ts +10 -0
  985. package/dist/types/components/eds-icons/eds-icon-user/eds-icon-user.d.ts +10 -0
  986. package/dist/types/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.d.ts +10 -0
  987. package/dist/types/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.d.ts +10 -0
  988. package/dist/types/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.d.ts +10 -0
  989. package/dist/types/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.d.ts +10 -0
  990. package/dist/types/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.d.ts +10 -0
  991. package/dist/types/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.d.ts +10 -0
  992. package/dist/types/components/eds-img/eds-img.d.ts +70 -0
  993. package/dist/types/components/eds-img/eds-img.stories.d.ts +76 -0
  994. package/dist/types/components/eds-input-elements/eds-input/eds-input.d.ts +35 -0
  995. package/dist/types/components/eds-input-elements/eds-input-footer/eds-input-footer.d.ts +14 -0
  996. package/dist/types/components/eds-input-elements/eds-input-label/eds-input-label.d.ts +10 -0
  997. package/dist/types/components/eds-input-elements/eds-input-range/eds-input-range.d.ts +25 -0
  998. package/dist/types/components/eds-input-elements/eds-input-search/eds-input-search.d.ts +25 -0
  999. package/dist/types/components/eds-input-elements/eds-input-select/eds-input-select.d.ts +21 -0
  1000. package/dist/types/components/eds-input-field/eds-input-field.d.ts +98 -0
  1001. package/dist/types/components/eds-input-field/eds-input-field.stories.d.ts +92 -0
  1002. package/dist/types/components/eds-link/eds-link.d.ts +83 -0
  1003. package/dist/types/components/eds-link/eds-link.stories.d.ts +74 -0
  1004. package/dist/types/components/eds-logo/eds-logo.d.ts +54 -0
  1005. package/dist/types/components/eds-logo/eds-logo.stories.d.ts +25 -0
  1006. package/dist/types/components/eds-modal/eds-modal.d.ts +44 -0
  1007. package/dist/types/components/eds-modal/eds-modal.stories.d.ts +14 -0
  1008. package/dist/types/components/eds-navigator/eds-navigator.d.ts +42 -0
  1009. package/dist/types/components/eds-navigator/eds-navigator.stories.d.ts +46 -0
  1010. package/dist/types/components/eds-pagination/eds-pagination.d.ts +98 -0
  1011. package/dist/types/components/eds-pagination/eds-pagination.stories.d.ts +108 -0
  1012. package/dist/types/components/eds-progress-bar/eds-progress-bar.d.ts +12 -0
  1013. package/dist/types/components/eds-progress-bar/eds-progress-bar.stories.d.ts +24 -0
  1014. package/dist/types/components/eds-rating/eds-rating.d.ts +36 -0
  1015. package/dist/types/components/eds-rating/eds-rating.stories.d.ts +51 -0
  1016. package/dist/types/components/eds-section/eds-section-core/eds-section-core.d.ts +28 -0
  1017. package/dist/types/components/eds-section/eds-section-core/eds-section-core.stories.d.ts +26 -0
  1018. package/dist/types/components/eds-section/eds-section-heading/eds-section-heading.d.ts +38 -0
  1019. package/dist/types/components/eds-tab/eds-tab.d.ts +15 -0
  1020. package/dist/types/components/eds-table/eds-table.d.ts +66 -0
  1021. package/dist/types/components/eds-table/eds-table.stories.d.ts +147 -0
  1022. package/dist/types/components/eds-tag/eds-tag.d.ts +34 -0
  1023. package/dist/types/components/eds-tag/eds-tag.stories.d.ts +28 -0
  1024. package/dist/types/components/eds-toast/eds-toast.d.ts +28 -0
  1025. package/dist/types/components/eds-toast/eds-toast.stories.d.ts +33 -0
  1026. package/dist/types/components/eds-tooltip/eds-tooltip.d.ts +47 -0
  1027. package/dist/types/components/eds-tooltip/eds-tooltip.stories.d.ts +19 -0
  1028. package/dist/types/components.d.ts +4918 -0
  1029. package/dist/types/eds-docs-ui/colors/color-palette/primary.d.ts +7 -0
  1030. package/dist/types/eds-docs-ui/colors/color-palette/secondary.d.ts +8 -0
  1031. package/dist/types/eds-docs-ui/colors/color-palette/support.d.ts +7 -0
  1032. package/dist/types/eds-docs-ui/colors/gradient-palette/primary.d.ts +7 -0
  1033. package/dist/types/eds-docs-ui/colors/gradient-palette/secondary.d.ts +7 -0
  1034. package/dist/types/eds-docs-ui/colors/gradient-palette/support.d.ts +7 -0
  1035. package/dist/types/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.d.ts +10 -0
  1036. package/dist/types/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.d.ts +10 -0
  1037. package/dist/types/eds-docs-ui/design-tokens/token-list/token-list.d.ts +11 -0
  1038. package/dist/types/eds-docs-ui/design-tokens/token-list/token-list.stories.d.ts +25 -0
  1039. package/dist/types/eds-docs-ui/design-tokens/token-radii/token-radii.d.ts +6 -0
  1040. package/dist/types/eds-docs-ui/design-tokens/token-ratios/token-ratios.d.ts +6 -0
  1041. package/dist/types/eds-docs-ui/design-tokens/token-shadows/token-shadows.d.ts +6 -0
  1042. package/dist/types/eds-docs-ui/design-tokens/token-spacing/token-spacing.d.ts +6 -0
  1043. package/dist/types/eds-docs-ui/design-tokens/token-typography/token-typography.d.ts +6 -0
  1044. package/dist/types/eds-docs-ui/eds-components-section/eds-components-section.d.ts +9 -0
  1045. package/dist/types/eds-docs-ui/eds-docs-palettes/eds-docs-palettes.d.ts +9 -0
  1046. package/dist/types/eds-docs-ui/eds-docs-tokens/eds-docs-tokens.d.ts +9 -0
  1047. package/dist/types/eds-docs-ui/eds-svg-repository/eds-svg-repository.d.ts +7 -0
  1048. package/dist/types/eds-docs-ui/functional/angular.d.ts +2 -0
  1049. package/dist/types/eds-docs-ui/functional/installation.d.ts +2 -0
  1050. package/dist/types/eds-docs-ui/functional/overview.d.ts +2 -0
  1051. package/dist/types/eds-docs-ui/functional/react.d.ts +2 -0
  1052. package/dist/types/eds-docs-ui/functional/usage.d.ts +2 -0
  1053. package/dist/types/eds-docs-ui/functional/vue.d.ts +2 -0
  1054. package/dist/types/eds-docs-ui/logo/logo-space/logo-space.d.ts +6 -0
  1055. package/dist/types/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.d.ts +12 -0
  1056. package/dist/types/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.d.ts +12 -0
  1057. package/dist/types/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.d.ts +6 -0
  1058. package/dist/types/index.d.ts +1 -0
  1059. package/dist/types/shared-ui/eds-card-section/eds-card-section.d.ts +43 -0
  1060. package/dist/types/shared-ui/eds-card-section/eds-card-section.stories.d.ts +33 -0
  1061. package/dist/types/shared-ui/eds-footer/eds-footer.d.ts +74 -0
  1062. package/dist/types/shared-ui/eds-footer/eds-footer.stories.d.ts +43 -0
  1063. package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.d.ts +57 -0
  1064. package/dist/types/shared-ui/eds-header/eds-header.d.ts +98 -0
  1065. package/dist/types/shared-ui/eds-header/eds-header.stories.d.ts +53 -0
  1066. package/dist/types/shared-ui/eds-login/eds-login.d.ts +50 -0
  1067. package/dist/types/shared-ui/eds-login/eds-login.stories.d.ts +33 -0
  1068. package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.d.ts +77 -0
  1069. package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.stories.d.ts +30 -0
  1070. package/dist/types/shared-ui/eds-social-networks/eds-social-networks.d.ts +25 -0
  1071. package/dist/types/shared-ui/eds-tabs/eds-tabs.d.ts +43 -0
  1072. package/dist/types/shared-ui/eds-tabs/eds-tabs.stories.d.ts +14 -0
  1073. package/dist/types/shared-ui/eds-tabs-content/eds-tabs-content.d.ts +36 -0
  1074. package/dist/types/shared-ui/eds-tabs-content/eds-tabs-content.stories.d.ts +16 -0
  1075. package/dist/types/shared-ui/eds-toast-manager/eds-toast-manager.d.ts +19 -0
  1076. package/dist/types/shared-ui/eds-toast-manager/eds-toast-manager.stories.d.ts +12 -0
  1077. package/dist/types/shared-ui/eds-user/eds-user.d.ts +81 -0
  1078. package/dist/types/shared-ui/eds-user-modal/eds-user-modal.d.ts +47 -0
  1079. package/dist/types/stencil-public-runtime.d.ts +1678 -0
  1080. package/dist/types/types/global.d.ts +10 -0
  1081. package/dist/types/utils/keycloak.d.ts +31 -0
  1082. package/dist/types/utils/toastManager.d.ts +15 -0
  1083. package/loader/cdn.js +1 -0
  1084. package/loader/index.cjs.js +1 -0
  1085. package/loader/index.d.ts +24 -0
  1086. package/loader/index.es2017.js +1 -0
  1087. package/loader/index.js +2 -0
  1088. package/loader/package.json +11 -0
  1089. package/package.json +20 -0
@@ -0,0 +1,2472 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-383d2951.js');
6
+
7
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
8
+
9
+ function getDefaultExportFromCjs (x) {
10
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
11
+ }
12
+
13
+ function getDefaultExportFromNamespaceIfPresent (n) {
14
+ return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
15
+ }
16
+
17
+ function getDefaultExportFromNamespaceIfNotNamed (n) {
18
+ return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
19
+ }
20
+
21
+ function getAugmentedNamespace(n) {
22
+ if (n.__esModule) return n;
23
+ var a = Object.defineProperty({}, '__esModule', {value: true});
24
+ Object.keys(n).forEach(function (k) {
25
+ var d = Object.getOwnPropertyDescriptor(n, k);
26
+ Object.defineProperty(a, k, d.get ? d : {
27
+ enumerable: true,
28
+ get: function () {
29
+ return n[k];
30
+ }
31
+ });
32
+ });
33
+ return a;
34
+ }
35
+
36
+ function commonjsRequire (path) {
37
+ throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
38
+ }
39
+
40
+ var prism = {exports: {}};
41
+
42
+ (function (module) {
43
+ /* **********************************************
44
+ Begin prism-core.js
45
+ ********************************************** */
46
+
47
+ /// <reference lib="WebWorker"/>
48
+
49
+ var _self = (typeof window !== 'undefined')
50
+ ? window // if in browser
51
+ : (
52
+ (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope)
53
+ ? self // if in worker
54
+ : {} // if in node js
55
+ );
56
+
57
+ /**
58
+ * Prism: Lightweight, robust, elegant syntax highlighting
59
+ *
60
+ * @license MIT <https://opensource.org/licenses/MIT>
61
+ * @author Lea Verou <https://lea.verou.me>
62
+ * @namespace
63
+ * @public
64
+ */
65
+ var Prism = (function (_self) {
66
+
67
+ // Private helper vars
68
+ var lang = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i;
69
+ var uniqueId = 0;
70
+
71
+ // The grammar object for plaintext
72
+ var plainTextGrammar = {};
73
+
74
+
75
+ var _ = {
76
+ /**
77
+ * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
78
+ * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
79
+ * additional languages or plugins yourself.
80
+ *
81
+ * By setting this value to `true`, Prism will not automatically highlight all code elements on the page.
82
+ *
83
+ * You obviously have to change this value before the automatic highlighting started. To do this, you can add an
84
+ * empty Prism object into the global scope before loading the Prism script like this:
85
+ *
86
+ * ```js
87
+ * window.Prism = window.Prism || {};
88
+ * Prism.manual = true;
89
+ * // add a new <script> to load Prism's script
90
+ * ```
91
+ *
92
+ * @default false
93
+ * @type {boolean}
94
+ * @memberof Prism
95
+ * @public
96
+ */
97
+ manual: _self.Prism && _self.Prism.manual,
98
+ /**
99
+ * By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses
100
+ * `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your
101
+ * own worker, you don't want it to do this.
102
+ *
103
+ * By setting this value to `true`, Prism will not add its own listeners to the worker.
104
+ *
105
+ * You obviously have to change this value before Prism executes. To do this, you can add an
106
+ * empty Prism object into the global scope before loading the Prism script like this:
107
+ *
108
+ * ```js
109
+ * window.Prism = window.Prism || {};
110
+ * Prism.disableWorkerMessageHandler = true;
111
+ * // Load Prism's script
112
+ * ```
113
+ *
114
+ * @default false
115
+ * @type {boolean}
116
+ * @memberof Prism
117
+ * @public
118
+ */
119
+ disableWorkerMessageHandler: _self.Prism && _self.Prism.disableWorkerMessageHandler,
120
+
121
+ /**
122
+ * A namespace for utility methods.
123
+ *
124
+ * All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may
125
+ * change or disappear at any time.
126
+ *
127
+ * @namespace
128
+ * @memberof Prism
129
+ */
130
+ util: {
131
+ encode: function encode(tokens) {
132
+ if (tokens instanceof Token) {
133
+ return new Token(tokens.type, encode(tokens.content), tokens.alias);
134
+ } else if (Array.isArray(tokens)) {
135
+ return tokens.map(encode);
136
+ } else {
137
+ return tokens.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/\u00a0/g, ' ');
138
+ }
139
+ },
140
+
141
+ /**
142
+ * Returns the name of the type of the given value.
143
+ *
144
+ * @param {any} o
145
+ * @returns {string}
146
+ * @example
147
+ * type(null) === 'Null'
148
+ * type(undefined) === 'Undefined'
149
+ * type(123) === 'Number'
150
+ * type('foo') === 'String'
151
+ * type(true) === 'Boolean'
152
+ * type([1, 2]) === 'Array'
153
+ * type({}) === 'Object'
154
+ * type(String) === 'Function'
155
+ * type(/abc+/) === 'RegExp'
156
+ */
157
+ type: function (o) {
158
+ return Object.prototype.toString.call(o).slice(8, -1);
159
+ },
160
+
161
+ /**
162
+ * Returns a unique number for the given object. Later calls will still return the same number.
163
+ *
164
+ * @param {Object} obj
165
+ * @returns {number}
166
+ */
167
+ objId: function (obj) {
168
+ if (!obj['__id']) {
169
+ Object.defineProperty(obj, '__id', { value: ++uniqueId });
170
+ }
171
+ return obj['__id'];
172
+ },
173
+
174
+ /**
175
+ * Creates a deep clone of the given object.
176
+ *
177
+ * The main intended use of this function is to clone language definitions.
178
+ *
179
+ * @param {T} o
180
+ * @param {Record<number, any>} [visited]
181
+ * @returns {T}
182
+ * @template T
183
+ */
184
+ clone: function deepClone(o, visited) {
185
+ visited = visited || {};
186
+
187
+ var clone; var id;
188
+ switch (_.util.type(o)) {
189
+ case 'Object':
190
+ id = _.util.objId(o);
191
+ if (visited[id]) {
192
+ return visited[id];
193
+ }
194
+ clone = /** @type {Record<string, any>} */ ({});
195
+ visited[id] = clone;
196
+
197
+ for (var key in o) {
198
+ if (o.hasOwnProperty(key)) {
199
+ clone[key] = deepClone(o[key], visited);
200
+ }
201
+ }
202
+
203
+ return /** @type {any} */ (clone);
204
+
205
+ case 'Array':
206
+ id = _.util.objId(o);
207
+ if (visited[id]) {
208
+ return visited[id];
209
+ }
210
+ clone = [];
211
+ visited[id] = clone;
212
+
213
+ (/** @type {Array} */(/** @type {any} */(o))).forEach(function (v, i) {
214
+ clone[i] = deepClone(v, visited);
215
+ });
216
+
217
+ return /** @type {any} */ (clone);
218
+
219
+ default:
220
+ return o;
221
+ }
222
+ },
223
+
224
+ /**
225
+ * Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class.
226
+ *
227
+ * If no language is set for the element or the element is `null` or `undefined`, `none` will be returned.
228
+ *
229
+ * @param {Element} element
230
+ * @returns {string}
231
+ */
232
+ getLanguage: function (element) {
233
+ while (element) {
234
+ var m = lang.exec(element.className);
235
+ if (m) {
236
+ return m[1].toLowerCase();
237
+ }
238
+ element = element.parentElement;
239
+ }
240
+ return 'none';
241
+ },
242
+
243
+ /**
244
+ * Sets the Prism `language-xxxx` class of the given element.
245
+ *
246
+ * @param {Element} element
247
+ * @param {string} language
248
+ * @returns {void}
249
+ */
250
+ setLanguage: function (element, language) {
251
+ // remove all `language-xxxx` classes
252
+ // (this might leave behind a leading space)
253
+ element.className = element.className.replace(RegExp(lang, 'gi'), '');
254
+
255
+ // add the new `language-xxxx` class
256
+ // (using `classList` will automatically clean up spaces for us)
257
+ element.classList.add('language-' + language);
258
+ },
259
+
260
+ /**
261
+ * Returns the script element that is currently executing.
262
+ *
263
+ * This does __not__ work for line script element.
264
+ *
265
+ * @returns {HTMLScriptElement | null}
266
+ */
267
+ currentScript: function () {
268
+ if (typeof document === 'undefined') {
269
+ return null;
270
+ }
271
+ if ('currentScript' in document && 1 < 2 /* hack to trip TS' flow analysis */) {
272
+ return /** @type {any} */ (document.currentScript);
273
+ }
274
+
275
+ // IE11 workaround
276
+ // we'll get the src of the current script by parsing IE11's error stack trace
277
+ // this will not work for inline scripts
278
+
279
+ try {
280
+ throw new Error();
281
+ } catch (err) {
282
+ // Get file src url from stack. Specifically works with the format of stack traces in IE.
283
+ // A stack will look like this:
284
+ //
285
+ // Error
286
+ // at _.util.currentScript (http://localhost/components/prism-core.js:119:5)
287
+ // at Global code (http://localhost/components/prism-core.js:606:1)
288
+
289
+ var src = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(err.stack) || [])[1];
290
+ if (src) {
291
+ var scripts = document.getElementsByTagName('script');
292
+ for (var i in scripts) {
293
+ if (scripts[i].src == src) {
294
+ return scripts[i];
295
+ }
296
+ }
297
+ }
298
+ return null;
299
+ }
300
+ },
301
+
302
+ /**
303
+ * Returns whether a given class is active for `element`.
304
+ *
305
+ * The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated
306
+ * if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the
307
+ * given class is just the given class with a `no-` prefix.
308
+ *
309
+ * Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is
310
+ * closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its
311
+ * ancestors have the given class or the negated version of it, then the default activation will be returned.
312
+ *
313
+ * In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated
314
+ * version of it, the class is considered active.
315
+ *
316
+ * @param {Element} element
317
+ * @param {string} className
318
+ * @param {boolean} [defaultActivation=false]
319
+ * @returns {boolean}
320
+ */
321
+ isActive: function (element, className, defaultActivation) {
322
+ var no = 'no-' + className;
323
+
324
+ while (element) {
325
+ var classList = element.classList;
326
+ if (classList.contains(className)) {
327
+ return true;
328
+ }
329
+ if (classList.contains(no)) {
330
+ return false;
331
+ }
332
+ element = element.parentElement;
333
+ }
334
+ return !!defaultActivation;
335
+ }
336
+ },
337
+
338
+ /**
339
+ * This namespace contains all currently loaded languages and the some helper functions to create and modify languages.
340
+ *
341
+ * @namespace
342
+ * @memberof Prism
343
+ * @public
344
+ */
345
+ languages: {
346
+ /**
347
+ * The grammar for plain, unformatted text.
348
+ */
349
+ plain: plainTextGrammar,
350
+ plaintext: plainTextGrammar,
351
+ text: plainTextGrammar,
352
+ txt: plainTextGrammar,
353
+
354
+ /**
355
+ * Creates a deep copy of the language with the given id and appends the given tokens.
356
+ *
357
+ * If a token in `redef` also appears in the copied language, then the existing token in the copied language
358
+ * will be overwritten at its original position.
359
+ *
360
+ * ## Best practices
361
+ *
362
+ * Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)
363
+ * doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to
364
+ * understand the language definition because, normally, the order of tokens matters in Prism grammars.
365
+ *
366
+ * Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.
367
+ * Furthermore, all non-overwriting tokens should be placed after the overwriting ones.
368
+ *
369
+ * @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.
370
+ * @param {Grammar} redef The new tokens to append.
371
+ * @returns {Grammar} The new language created.
372
+ * @public
373
+ * @example
374
+ * Prism.languages['css-with-colors'] = Prism.languages.extend('css', {
375
+ * // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token
376
+ * // at its original position
377
+ * 'comment': { ... },
378
+ * // CSS doesn't have a 'color' token, so this token will be appended
379
+ * 'color': /\b(?:red|green|blue)\b/
380
+ * });
381
+ */
382
+ extend: function (id, redef) {
383
+ var lang = _.util.clone(_.languages[id]);
384
+
385
+ for (var key in redef) {
386
+ lang[key] = redef[key];
387
+ }
388
+
389
+ return lang;
390
+ },
391
+
392
+ /**
393
+ * Inserts tokens _before_ another token in a language definition or any other grammar.
394
+ *
395
+ * ## Usage
396
+ *
397
+ * This helper method makes it easy to modify existing languages. For example, the CSS language definition
398
+ * not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded
399
+ * in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the
400
+ * appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do
401
+ * this:
402
+ *
403
+ * ```js
404
+ * Prism.languages.markup.style = {
405
+ * // token
406
+ * };
407
+ * ```
408
+ *
409
+ * then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens
410
+ * before existing tokens. For the CSS example above, you would use it like this:
411
+ *
412
+ * ```js
413
+ * Prism.languages.insertBefore('markup', 'cdata', {
414
+ * 'style': {
415
+ * // token
416
+ * }
417
+ * });
418
+ * ```
419
+ *
420
+ * ## Special cases
421
+ *
422
+ * If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar
423
+ * will be ignored.
424
+ *
425
+ * This behavior can be used to insert tokens after `before`:
426
+ *
427
+ * ```js
428
+ * Prism.languages.insertBefore('markup', 'comment', {
429
+ * 'comment': Prism.languages.markup.comment,
430
+ * // tokens after 'comment'
431
+ * });
432
+ * ```
433
+ *
434
+ * ## Limitations
435
+ *
436
+ * The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object
437
+ * properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave
438
+ * differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily
439
+ * deleting properties which is necessary to insert at arbitrary positions.
440
+ *
441
+ * To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.
442
+ * Instead, it will create a new object and replace all references to the target object with the new one. This
443
+ * can be done without temporarily deleting properties, so the iteration order is well-defined.
444
+ *
445
+ * However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if
446
+ * you hold the target object in a variable, then the value of the variable will not change.
447
+ *
448
+ * ```js
449
+ * var oldMarkup = Prism.languages.markup;
450
+ * var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });
451
+ *
452
+ * assert(oldMarkup !== Prism.languages.markup);
453
+ * assert(newMarkup === Prism.languages.markup);
454
+ * ```
455
+ *
456
+ * @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the
457
+ * object to be modified.
458
+ * @param {string} before The key to insert before.
459
+ * @param {Grammar} insert An object containing the key-value pairs to be inserted.
460
+ * @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the
461
+ * object to be modified.
462
+ *
463
+ * Defaults to `Prism.languages`.
464
+ * @returns {Grammar} The new grammar object.
465
+ * @public
466
+ */
467
+ insertBefore: function (inside, before, insert, root) {
468
+ root = root || /** @type {any} */ (_.languages);
469
+ var grammar = root[inside];
470
+ /** @type {Grammar} */
471
+ var ret = {};
472
+
473
+ for (var token in grammar) {
474
+ if (grammar.hasOwnProperty(token)) {
475
+
476
+ if (token == before) {
477
+ for (var newToken in insert) {
478
+ if (insert.hasOwnProperty(newToken)) {
479
+ ret[newToken] = insert[newToken];
480
+ }
481
+ }
482
+ }
483
+
484
+ // Do not insert token which also occur in insert. See #1525
485
+ if (!insert.hasOwnProperty(token)) {
486
+ ret[token] = grammar[token];
487
+ }
488
+ }
489
+ }
490
+
491
+ var old = root[inside];
492
+ root[inside] = ret;
493
+
494
+ // Update references in other language definitions
495
+ _.languages.DFS(_.languages, function (key, value) {
496
+ if (value === old && key != inside) {
497
+ this[key] = ret;
498
+ }
499
+ });
500
+
501
+ return ret;
502
+ },
503
+
504
+ // Traverse a language definition with Depth First Search
505
+ DFS: function DFS(o, callback, type, visited) {
506
+ visited = visited || {};
507
+
508
+ var objId = _.util.objId;
509
+
510
+ for (var i in o) {
511
+ if (o.hasOwnProperty(i)) {
512
+ callback.call(o, i, o[i], type || i);
513
+
514
+ var property = o[i];
515
+ var propertyType = _.util.type(property);
516
+
517
+ if (propertyType === 'Object' && !visited[objId(property)]) {
518
+ visited[objId(property)] = true;
519
+ DFS(property, callback, null, visited);
520
+ } else if (propertyType === 'Array' && !visited[objId(property)]) {
521
+ visited[objId(property)] = true;
522
+ DFS(property, callback, i, visited);
523
+ }
524
+ }
525
+ }
526
+ }
527
+ },
528
+
529
+ plugins: {},
530
+
531
+ /**
532
+ * This is the most high-level function in Prism’s API.
533
+ * It fetches all the elements that have a `.language-xxxx` class and then calls {@link Prism.highlightElement} on
534
+ * each one of them.
535
+ *
536
+ * This is equivalent to `Prism.highlightAllUnder(document, async, callback)`.
537
+ *
538
+ * @param {boolean} [async=false] Same as in {@link Prism.highlightAllUnder}.
539
+ * @param {HighlightCallback} [callback] Same as in {@link Prism.highlightAllUnder}.
540
+ * @memberof Prism
541
+ * @public
542
+ */
543
+ highlightAll: function (async, callback) {
544
+ _.highlightAllUnder(document, async, callback);
545
+ },
546
+
547
+ /**
548
+ * Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
549
+ * {@link Prism.highlightElement} on each one of them.
550
+ *
551
+ * The following hooks will be run:
552
+ * 1. `before-highlightall`
553
+ * 2. `before-all-elements-highlight`
554
+ * 3. All hooks of {@link Prism.highlightElement} for each element.
555
+ *
556
+ * @param {ParentNode} container The root element, whose descendants that have a `.language-xxxx` class will be highlighted.
557
+ * @param {boolean} [async=false] Whether each element is to be highlighted asynchronously using Web Workers.
558
+ * @param {HighlightCallback} [callback] An optional callback to be invoked on each element after its highlighting is done.
559
+ * @memberof Prism
560
+ * @public
561
+ */
562
+ highlightAllUnder: function (container, async, callback) {
563
+ var env = {
564
+ callback: callback,
565
+ container: container,
566
+ selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
567
+ };
568
+
569
+ _.hooks.run('before-highlightall', env);
570
+
571
+ env.elements = Array.prototype.slice.apply(env.container.querySelectorAll(env.selector));
572
+
573
+ _.hooks.run('before-all-elements-highlight', env);
574
+
575
+ for (var i = 0, element; (element = env.elements[i++]);) {
576
+ _.highlightElement(element, async === true, env.callback);
577
+ }
578
+ },
579
+
580
+ /**
581
+ * Highlights the code inside a single element.
582
+ *
583
+ * The following hooks will be run:
584
+ * 1. `before-sanity-check`
585
+ * 2. `before-highlight`
586
+ * 3. All hooks of {@link Prism.highlight}. These hooks will be run by an asynchronous worker if `async` is `true`.
587
+ * 4. `before-insert`
588
+ * 5. `after-highlight`
589
+ * 6. `complete`
590
+ *
591
+ * Some the above hooks will be skipped if the element doesn't contain any text or there is no grammar loaded for
592
+ * the element's language.
593
+ *
594
+ * @param {Element} element The element containing the code.
595
+ * It must have a class of `language-xxxx` to be processed, where `xxxx` is a valid language identifier.
596
+ * @param {boolean} [async=false] Whether the element is to be highlighted asynchronously using Web Workers
597
+ * to improve performance and avoid blocking the UI when highlighting very large chunks of code. This option is
598
+ * [disabled by default](https://prismjs.com/faq.html#why-is-asynchronous-highlighting-disabled-by-default).
599
+ *
600
+ * Note: All language definitions required to highlight the code must be included in the main `prism.js` file for
601
+ * asynchronous highlighting to work. You can build your own bundle on the
602
+ * [Download page](https://prismjs.com/download.html).
603
+ * @param {HighlightCallback} [callback] An optional callback to be invoked after the highlighting is done.
604
+ * Mostly useful when `async` is `true`, since in that case, the highlighting is done asynchronously.
605
+ * @memberof Prism
606
+ * @public
607
+ */
608
+ highlightElement: function (element, async, callback) {
609
+ // Find language
610
+ var language = _.util.getLanguage(element);
611
+ var grammar = _.languages[language];
612
+
613
+ // Set language on the element, if not present
614
+ _.util.setLanguage(element, language);
615
+
616
+ // Set language on the parent, for styling
617
+ var parent = element.parentElement;
618
+ if (parent && parent.nodeName.toLowerCase() === 'pre') {
619
+ _.util.setLanguage(parent, language);
620
+ }
621
+
622
+ var code = element.textContent;
623
+
624
+ var env = {
625
+ element: element,
626
+ language: language,
627
+ grammar: grammar,
628
+ code: code
629
+ };
630
+
631
+ function insertHighlightedCode(highlightedCode) {
632
+ env.highlightedCode = highlightedCode;
633
+
634
+ _.hooks.run('before-insert', env);
635
+
636
+ env.element.innerHTML = env.highlightedCode;
637
+
638
+ _.hooks.run('after-highlight', env);
639
+ _.hooks.run('complete', env);
640
+ callback && callback.call(env.element);
641
+ }
642
+
643
+ _.hooks.run('before-sanity-check', env);
644
+
645
+ // plugins may change/add the parent/element
646
+ parent = env.element.parentElement;
647
+ if (parent && parent.nodeName.toLowerCase() === 'pre' && !parent.hasAttribute('tabindex')) {
648
+ parent.setAttribute('tabindex', '0');
649
+ }
650
+
651
+ if (!env.code) {
652
+ _.hooks.run('complete', env);
653
+ callback && callback.call(env.element);
654
+ return;
655
+ }
656
+
657
+ _.hooks.run('before-highlight', env);
658
+
659
+ if (!env.grammar) {
660
+ insertHighlightedCode(_.util.encode(env.code));
661
+ return;
662
+ }
663
+
664
+ if (async && _self.Worker) {
665
+ var worker = new Worker(_.filename);
666
+
667
+ worker.onmessage = function (evt) {
668
+ insertHighlightedCode(evt.data);
669
+ };
670
+
671
+ worker.postMessage(JSON.stringify({
672
+ language: env.language,
673
+ code: env.code,
674
+ immediateClose: true
675
+ }));
676
+ } else {
677
+ insertHighlightedCode(_.highlight(env.code, env.grammar, env.language));
678
+ }
679
+ },
680
+
681
+ /**
682
+ * Low-level function, only use if you know what you’re doing. It accepts a string of text as input
683
+ * and the language definitions to use, and returns a string with the HTML produced.
684
+ *
685
+ * The following hooks will be run:
686
+ * 1. `before-tokenize`
687
+ * 2. `after-tokenize`
688
+ * 3. `wrap`: On each {@link Token}.
689
+ *
690
+ * @param {string} text A string with the code to be highlighted.
691
+ * @param {Grammar} grammar An object containing the tokens to use.
692
+ *
693
+ * Usually a language definition like `Prism.languages.markup`.
694
+ * @param {string} language The name of the language definition passed to `grammar`.
695
+ * @returns {string} The highlighted HTML.
696
+ * @memberof Prism
697
+ * @public
698
+ * @example
699
+ * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
700
+ */
701
+ highlight: function (text, grammar, language) {
702
+ var env = {
703
+ code: text,
704
+ grammar: grammar,
705
+ language: language
706
+ };
707
+ _.hooks.run('before-tokenize', env);
708
+ if (!env.grammar) {
709
+ throw new Error('The language "' + env.language + '" has no grammar.');
710
+ }
711
+ env.tokens = _.tokenize(env.code, env.grammar);
712
+ _.hooks.run('after-tokenize', env);
713
+ return Token.stringify(_.util.encode(env.tokens), env.language);
714
+ },
715
+
716
+ /**
717
+ * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
718
+ * and the language definitions to use, and returns an array with the tokenized code.
719
+ *
720
+ * When the language definition includes nested tokens, the function is called recursively on each of these tokens.
721
+ *
722
+ * This method could be useful in other contexts as well, as a very crude parser.
723
+ *
724
+ * @param {string} text A string with the code to be highlighted.
725
+ * @param {Grammar} grammar An object containing the tokens to use.
726
+ *
727
+ * Usually a language definition like `Prism.languages.markup`.
728
+ * @returns {TokenStream} An array of strings and tokens, a token stream.
729
+ * @memberof Prism
730
+ * @public
731
+ * @example
732
+ * let code = `var foo = 0;`;
733
+ * let tokens = Prism.tokenize(code, Prism.languages.javascript);
734
+ * tokens.forEach(token => {
735
+ * if (token instanceof Prism.Token && token.type === 'number') {
736
+ * console.log(`Found numeric literal: ${token.content}`);
737
+ * }
738
+ * });
739
+ */
740
+ tokenize: function (text, grammar) {
741
+ var rest = grammar.rest;
742
+ if (rest) {
743
+ for (var token in rest) {
744
+ grammar[token] = rest[token];
745
+ }
746
+
747
+ delete grammar.rest;
748
+ }
749
+
750
+ var tokenList = new LinkedList();
751
+ addAfter(tokenList, tokenList.head, text);
752
+
753
+ matchGrammar(text, tokenList, grammar, tokenList.head, 0);
754
+
755
+ return toArray(tokenList);
756
+ },
757
+
758
+ /**
759
+ * @namespace
760
+ * @memberof Prism
761
+ * @public
762
+ */
763
+ hooks: {
764
+ all: {},
765
+
766
+ /**
767
+ * Adds the given callback to the list of callbacks for the given hook.
768
+ *
769
+ * The callback will be invoked when the hook it is registered for is run.
770
+ * Hooks are usually directly run by a highlight function but you can also run hooks yourself.
771
+ *
772
+ * One callback function can be registered to multiple hooks and the same hook multiple times.
773
+ *
774
+ * @param {string} name The name of the hook.
775
+ * @param {HookCallback} callback The callback function which is given environment variables.
776
+ * @public
777
+ */
778
+ add: function (name, callback) {
779
+ var hooks = _.hooks.all;
780
+
781
+ hooks[name] = hooks[name] || [];
782
+
783
+ hooks[name].push(callback);
784
+ },
785
+
786
+ /**
787
+ * Runs a hook invoking all registered callbacks with the given environment variables.
788
+ *
789
+ * Callbacks will be invoked synchronously and in the order in which they were registered.
790
+ *
791
+ * @param {string} name The name of the hook.
792
+ * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
793
+ * @public
794
+ */
795
+ run: function (name, env) {
796
+ var callbacks = _.hooks.all[name];
797
+
798
+ if (!callbacks || !callbacks.length) {
799
+ return;
800
+ }
801
+
802
+ for (var i = 0, callback; (callback = callbacks[i++]);) {
803
+ callback(env);
804
+ }
805
+ }
806
+ },
807
+
808
+ Token: Token
809
+ };
810
+ _self.Prism = _;
811
+
812
+
813
+ // Typescript note:
814
+ // The following can be used to import the Token type in JSDoc:
815
+ //
816
+ // @typedef {InstanceType<import("./prism-core")["Token"]>} Token
817
+
818
+ /**
819
+ * Creates a new token.
820
+ *
821
+ * @param {string} type See {@link Token#type type}
822
+ * @param {string | TokenStream} content See {@link Token#content content}
823
+ * @param {string|string[]} [alias] The alias(es) of the token.
824
+ * @param {string} [matchedStr=""] A copy of the full string this token was created from.
825
+ * @class
826
+ * @global
827
+ * @public
828
+ */
829
+ function Token(type, content, alias, matchedStr) {
830
+ /**
831
+ * The type of the token.
832
+ *
833
+ * This is usually the key of a pattern in a {@link Grammar}.
834
+ *
835
+ * @type {string}
836
+ * @see GrammarToken
837
+ * @public
838
+ */
839
+ this.type = type;
840
+ /**
841
+ * The strings or tokens contained by this token.
842
+ *
843
+ * This will be a token stream if the pattern matched also defined an `inside` grammar.
844
+ *
845
+ * @type {string | TokenStream}
846
+ * @public
847
+ */
848
+ this.content = content;
849
+ /**
850
+ * The alias(es) of the token.
851
+ *
852
+ * @type {string|string[]}
853
+ * @see GrammarToken
854
+ * @public
855
+ */
856
+ this.alias = alias;
857
+ // Copy of the full string this token was created from
858
+ this.length = (matchedStr || '').length | 0;
859
+ }
860
+
861
+ /**
862
+ * A token stream is an array of strings and {@link Token Token} objects.
863
+ *
864
+ * Token streams have to fulfill a few properties that are assumed by most functions (mostly internal ones) that process
865
+ * them.
866
+ *
867
+ * 1. No adjacent strings.
868
+ * 2. No empty strings.
869
+ *
870
+ * The only exception here is the token stream that only contains the empty string and nothing else.
871
+ *
872
+ * @typedef {Array<string | Token>} TokenStream
873
+ * @global
874
+ * @public
875
+ */
876
+
877
+ /**
878
+ * Converts the given token or token stream to an HTML representation.
879
+ *
880
+ * The following hooks will be run:
881
+ * 1. `wrap`: On each {@link Token}.
882
+ *
883
+ * @param {string | Token | TokenStream} o The token or token stream to be converted.
884
+ * @param {string} language The name of current language.
885
+ * @returns {string} The HTML representation of the token or token stream.
886
+ * @memberof Token
887
+ * @static
888
+ */
889
+ Token.stringify = function stringify(o, language) {
890
+ if (typeof o == 'string') {
891
+ return o;
892
+ }
893
+ if (Array.isArray(o)) {
894
+ var s = '';
895
+ o.forEach(function (e) {
896
+ s += stringify(e, language);
897
+ });
898
+ return s;
899
+ }
900
+
901
+ var env = {
902
+ type: o.type,
903
+ content: stringify(o.content, language),
904
+ tag: 'span',
905
+ classes: ['token', o.type],
906
+ attributes: {},
907
+ language: language
908
+ };
909
+
910
+ var aliases = o.alias;
911
+ if (aliases) {
912
+ if (Array.isArray(aliases)) {
913
+ Array.prototype.push.apply(env.classes, aliases);
914
+ } else {
915
+ env.classes.push(aliases);
916
+ }
917
+ }
918
+
919
+ _.hooks.run('wrap', env);
920
+
921
+ var attributes = '';
922
+ for (var name in env.attributes) {
923
+ attributes += ' ' + name + '="' + (env.attributes[name] || '').replace(/"/g, '&quot;') + '"';
924
+ }
925
+
926
+ return '<' + env.tag + ' class="' + env.classes.join(' ') + '"' + attributes + '>' + env.content + '</' + env.tag + '>';
927
+ };
928
+
929
+ /**
930
+ * @param {RegExp} pattern
931
+ * @param {number} pos
932
+ * @param {string} text
933
+ * @param {boolean} lookbehind
934
+ * @returns {RegExpExecArray | null}
935
+ */
936
+ function matchPattern(pattern, pos, text, lookbehind) {
937
+ pattern.lastIndex = pos;
938
+ var match = pattern.exec(text);
939
+ if (match && lookbehind && match[1]) {
940
+ // change the match to remove the text matched by the Prism lookbehind group
941
+ var lookbehindLength = match[1].length;
942
+ match.index += lookbehindLength;
943
+ match[0] = match[0].slice(lookbehindLength);
944
+ }
945
+ return match;
946
+ }
947
+
948
+ /**
949
+ * @param {string} text
950
+ * @param {LinkedList<string | Token>} tokenList
951
+ * @param {any} grammar
952
+ * @param {LinkedListNode<string | Token>} startNode
953
+ * @param {number} startPos
954
+ * @param {RematchOptions} [rematch]
955
+ * @returns {void}
956
+ * @private
957
+ *
958
+ * @typedef RematchOptions
959
+ * @property {string} cause
960
+ * @property {number} reach
961
+ */
962
+ function matchGrammar(text, tokenList, grammar, startNode, startPos, rematch) {
963
+ for (var token in grammar) {
964
+ if (!grammar.hasOwnProperty(token) || !grammar[token]) {
965
+ continue;
966
+ }
967
+
968
+ var patterns = grammar[token];
969
+ patterns = Array.isArray(patterns) ? patterns : [patterns];
970
+
971
+ for (var j = 0; j < patterns.length; ++j) {
972
+ if (rematch && rematch.cause == token + ',' + j) {
973
+ return;
974
+ }
975
+
976
+ var patternObj = patterns[j];
977
+ var inside = patternObj.inside;
978
+ var lookbehind = !!patternObj.lookbehind;
979
+ var greedy = !!patternObj.greedy;
980
+ var alias = patternObj.alias;
981
+
982
+ if (greedy && !patternObj.pattern.global) {
983
+ // Without the global flag, lastIndex won't work
984
+ var flags = patternObj.pattern.toString().match(/[imsuy]*$/)[0];
985
+ patternObj.pattern = RegExp(patternObj.pattern.source, flags + 'g');
986
+ }
987
+
988
+ /** @type {RegExp} */
989
+ var pattern = patternObj.pattern || patternObj;
990
+
991
+ for ( // iterate the token list and keep track of the current token/string position
992
+ var currentNode = startNode.next, pos = startPos;
993
+ currentNode !== tokenList.tail;
994
+ pos += currentNode.value.length, currentNode = currentNode.next
995
+ ) {
996
+
997
+ if (rematch && pos >= rematch.reach) {
998
+ break;
999
+ }
1000
+
1001
+ var str = currentNode.value;
1002
+
1003
+ if (tokenList.length > text.length) {
1004
+ // Something went terribly wrong, ABORT, ABORT!
1005
+ return;
1006
+ }
1007
+
1008
+ if (str instanceof Token) {
1009
+ continue;
1010
+ }
1011
+
1012
+ var removeCount = 1; // this is the to parameter of removeBetween
1013
+ var match;
1014
+
1015
+ if (greedy) {
1016
+ match = matchPattern(pattern, pos, text, lookbehind);
1017
+ if (!match || match.index >= text.length) {
1018
+ break;
1019
+ }
1020
+
1021
+ var from = match.index;
1022
+ var to = match.index + match[0].length;
1023
+ var p = pos;
1024
+
1025
+ // find the node that contains the match
1026
+ p += currentNode.value.length;
1027
+ while (from >= p) {
1028
+ currentNode = currentNode.next;
1029
+ p += currentNode.value.length;
1030
+ }
1031
+ // adjust pos (and p)
1032
+ p -= currentNode.value.length;
1033
+ pos = p;
1034
+
1035
+ // the current node is a Token, then the match starts inside another Token, which is invalid
1036
+ if (currentNode.value instanceof Token) {
1037
+ continue;
1038
+ }
1039
+
1040
+ // find the last node which is affected by this match
1041
+ for (
1042
+ var k = currentNode;
1043
+ k !== tokenList.tail && (p < to || typeof k.value === 'string');
1044
+ k = k.next
1045
+ ) {
1046
+ removeCount++;
1047
+ p += k.value.length;
1048
+ }
1049
+ removeCount--;
1050
+
1051
+ // replace with the new match
1052
+ str = text.slice(pos, p);
1053
+ match.index -= pos;
1054
+ } else {
1055
+ match = matchPattern(pattern, 0, str, lookbehind);
1056
+ if (!match) {
1057
+ continue;
1058
+ }
1059
+ }
1060
+
1061
+ // eslint-disable-next-line no-redeclare
1062
+ var from = match.index;
1063
+ var matchStr = match[0];
1064
+ var before = str.slice(0, from);
1065
+ var after = str.slice(from + matchStr.length);
1066
+
1067
+ var reach = pos + str.length;
1068
+ if (rematch && reach > rematch.reach) {
1069
+ rematch.reach = reach;
1070
+ }
1071
+
1072
+ var removeFrom = currentNode.prev;
1073
+
1074
+ if (before) {
1075
+ removeFrom = addAfter(tokenList, removeFrom, before);
1076
+ pos += before.length;
1077
+ }
1078
+
1079
+ removeRange(tokenList, removeFrom, removeCount);
1080
+
1081
+ var wrapped = new Token(token, inside ? _.tokenize(matchStr, inside) : matchStr, alias, matchStr);
1082
+ currentNode = addAfter(tokenList, removeFrom, wrapped);
1083
+
1084
+ if (after) {
1085
+ addAfter(tokenList, currentNode, after);
1086
+ }
1087
+
1088
+ if (removeCount > 1) {
1089
+ // at least one Token object was removed, so we have to do some rematching
1090
+ // this can only happen if the current pattern is greedy
1091
+
1092
+ /** @type {RematchOptions} */
1093
+ var nestedRematch = {
1094
+ cause: token + ',' + j,
1095
+ reach: reach
1096
+ };
1097
+ matchGrammar(text, tokenList, grammar, currentNode.prev, pos, nestedRematch);
1098
+
1099
+ // the reach might have been extended because of the rematching
1100
+ if (rematch && nestedRematch.reach > rematch.reach) {
1101
+ rematch.reach = nestedRematch.reach;
1102
+ }
1103
+ }
1104
+ }
1105
+ }
1106
+ }
1107
+ }
1108
+
1109
+ /**
1110
+ * @typedef LinkedListNode
1111
+ * @property {T} value
1112
+ * @property {LinkedListNode<T> | null} prev The previous node.
1113
+ * @property {LinkedListNode<T> | null} next The next node.
1114
+ * @template T
1115
+ * @private
1116
+ */
1117
+
1118
+ /**
1119
+ * @template T
1120
+ * @private
1121
+ */
1122
+ function LinkedList() {
1123
+ /** @type {LinkedListNode<T>} */
1124
+ var head = { value: null, prev: null, next: null };
1125
+ /** @type {LinkedListNode<T>} */
1126
+ var tail = { value: null, prev: head, next: null };
1127
+ head.next = tail;
1128
+
1129
+ /** @type {LinkedListNode<T>} */
1130
+ this.head = head;
1131
+ /** @type {LinkedListNode<T>} */
1132
+ this.tail = tail;
1133
+ this.length = 0;
1134
+ }
1135
+
1136
+ /**
1137
+ * Adds a new node with the given value to the list.
1138
+ *
1139
+ * @param {LinkedList<T>} list
1140
+ * @param {LinkedListNode<T>} node
1141
+ * @param {T} value
1142
+ * @returns {LinkedListNode<T>} The added node.
1143
+ * @template T
1144
+ */
1145
+ function addAfter(list, node, value) {
1146
+ // assumes that node != list.tail && values.length >= 0
1147
+ var next = node.next;
1148
+
1149
+ var newNode = { value: value, prev: node, next: next };
1150
+ node.next = newNode;
1151
+ next.prev = newNode;
1152
+ list.length++;
1153
+
1154
+ return newNode;
1155
+ }
1156
+ /**
1157
+ * Removes `count` nodes after the given node. The given node will not be removed.
1158
+ *
1159
+ * @param {LinkedList<T>} list
1160
+ * @param {LinkedListNode<T>} node
1161
+ * @param {number} count
1162
+ * @template T
1163
+ */
1164
+ function removeRange(list, node, count) {
1165
+ var next = node.next;
1166
+ for (var i = 0; i < count && next !== list.tail; i++) {
1167
+ next = next.next;
1168
+ }
1169
+ node.next = next;
1170
+ next.prev = node;
1171
+ list.length -= i;
1172
+ }
1173
+ /**
1174
+ * @param {LinkedList<T>} list
1175
+ * @returns {T[]}
1176
+ * @template T
1177
+ */
1178
+ function toArray(list) {
1179
+ var array = [];
1180
+ var node = list.head.next;
1181
+ while (node !== list.tail) {
1182
+ array.push(node.value);
1183
+ node = node.next;
1184
+ }
1185
+ return array;
1186
+ }
1187
+
1188
+
1189
+ if (!_self.document) {
1190
+ if (!_self.addEventListener) {
1191
+ // in Node.js
1192
+ return _;
1193
+ }
1194
+
1195
+ if (!_.disableWorkerMessageHandler) {
1196
+ // In worker
1197
+ _self.addEventListener('message', function (evt) {
1198
+ var message = JSON.parse(evt.data);
1199
+ var lang = message.language;
1200
+ var code = message.code;
1201
+ var immediateClose = message.immediateClose;
1202
+
1203
+ _self.postMessage(_.highlight(code, _.languages[lang], lang));
1204
+ if (immediateClose) {
1205
+ _self.close();
1206
+ }
1207
+ }, false);
1208
+ }
1209
+
1210
+ return _;
1211
+ }
1212
+
1213
+ // Get current script and highlight
1214
+ var script = _.util.currentScript();
1215
+
1216
+ if (script) {
1217
+ _.filename = script.src;
1218
+
1219
+ if (script.hasAttribute('data-manual')) {
1220
+ _.manual = true;
1221
+ }
1222
+ }
1223
+
1224
+ function highlightAutomaticallyCallback() {
1225
+ if (!_.manual) {
1226
+ _.highlightAll();
1227
+ }
1228
+ }
1229
+
1230
+ if (!_.manual) {
1231
+ // If the document state is "loading", then we'll use DOMContentLoaded.
1232
+ // If the document state is "interactive" and the prism.js script is deferred, then we'll also use the
1233
+ // DOMContentLoaded event because there might be some plugins or languages which have also been deferred and they
1234
+ // might take longer one animation frame to execute which can create a race condition where only some plugins have
1235
+ // been loaded when Prism.highlightAll() is executed, depending on how fast resources are loaded.
1236
+ // See https://github.com/PrismJS/prism/issues/2102
1237
+ var readyState = document.readyState;
1238
+ if (readyState === 'loading' || readyState === 'interactive' && script && script.defer) {
1239
+ document.addEventListener('DOMContentLoaded', highlightAutomaticallyCallback);
1240
+ } else {
1241
+ if (window.requestAnimationFrame) {
1242
+ window.requestAnimationFrame(highlightAutomaticallyCallback);
1243
+ } else {
1244
+ window.setTimeout(highlightAutomaticallyCallback, 16);
1245
+ }
1246
+ }
1247
+ }
1248
+
1249
+ return _;
1250
+
1251
+ }(_self));
1252
+
1253
+ if ('object' !== 'undefined' && module.exports) {
1254
+ module.exports = Prism;
1255
+ }
1256
+
1257
+ // hack for components to work correctly in node.js
1258
+ if (typeof commonjsGlobal !== 'undefined') {
1259
+ commonjsGlobal.Prism = Prism;
1260
+ }
1261
+
1262
+ // some additional documentation/types
1263
+
1264
+ /**
1265
+ * The expansion of a simple `RegExp` literal to support additional properties.
1266
+ *
1267
+ * @typedef GrammarToken
1268
+ * @property {RegExp} pattern The regular expression of the token.
1269
+ * @property {boolean} [lookbehind=false] If `true`, then the first capturing group of `pattern` will (effectively)
1270
+ * behave as a lookbehind group meaning that the captured text will not be part of the matched text of the new token.
1271
+ * @property {boolean} [greedy=false] Whether the token is greedy.
1272
+ * @property {string|string[]} [alias] An optional alias or list of aliases.
1273
+ * @property {Grammar} [inside] The nested grammar of this token.
1274
+ *
1275
+ * The `inside` grammar will be used to tokenize the text value of each token of this kind.
1276
+ *
1277
+ * This can be used to make nested and even recursive language definitions.
1278
+ *
1279
+ * Note: This can cause infinite recursion. Be careful when you embed different languages or even the same language into
1280
+ * each another.
1281
+ * @global
1282
+ * @public
1283
+ */
1284
+
1285
+ /**
1286
+ * @typedef Grammar
1287
+ * @type {Object<string, RegExp | GrammarToken | Array<RegExp | GrammarToken>>}
1288
+ * @property {Grammar} [rest] An optional grammar object that will be appended to this grammar.
1289
+ * @global
1290
+ * @public
1291
+ */
1292
+
1293
+ /**
1294
+ * A function which will invoked after an element was successfully highlighted.
1295
+ *
1296
+ * @callback HighlightCallback
1297
+ * @param {Element} element The element successfully highlighted.
1298
+ * @returns {void}
1299
+ * @global
1300
+ * @public
1301
+ */
1302
+
1303
+ /**
1304
+ * @callback HookCallback
1305
+ * @param {Object<string, any>} env The environment variables of the hook.
1306
+ * @returns {void}
1307
+ * @global
1308
+ * @public
1309
+ */
1310
+
1311
+
1312
+ /* **********************************************
1313
+ Begin prism-markup.js
1314
+ ********************************************** */
1315
+
1316
+ Prism.languages.markup = {
1317
+ 'comment': {
1318
+ pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
1319
+ greedy: true
1320
+ },
1321
+ 'prolog': {
1322
+ pattern: /<\?[\s\S]+?\?>/,
1323
+ greedy: true
1324
+ },
1325
+ 'doctype': {
1326
+ // https://www.w3.org/TR/xml/#NT-doctypedecl
1327
+ pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
1328
+ greedy: true,
1329
+ inside: {
1330
+ 'internal-subset': {
1331
+ pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
1332
+ lookbehind: true,
1333
+ greedy: true,
1334
+ inside: null // see below
1335
+ },
1336
+ 'string': {
1337
+ pattern: /"[^"]*"|'[^']*'/,
1338
+ greedy: true
1339
+ },
1340
+ 'punctuation': /^<!|>$|[[\]]/,
1341
+ 'doctype-tag': /^DOCTYPE/i,
1342
+ 'name': /[^\s<>'"]+/
1343
+ }
1344
+ },
1345
+ 'cdata': {
1346
+ pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
1347
+ greedy: true
1348
+ },
1349
+ 'tag': {
1350
+ pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
1351
+ greedy: true,
1352
+ inside: {
1353
+ 'tag': {
1354
+ pattern: /^<\/?[^\s>\/]+/,
1355
+ inside: {
1356
+ 'punctuation': /^<\/?/,
1357
+ 'namespace': /^[^\s>\/:]+:/
1358
+ }
1359
+ },
1360
+ 'special-attr': [],
1361
+ 'attr-value': {
1362
+ pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
1363
+ inside: {
1364
+ 'punctuation': [
1365
+ {
1366
+ pattern: /^=/,
1367
+ alias: 'attr-equals'
1368
+ },
1369
+ {
1370
+ pattern: /^(\s*)["']|["']$/,
1371
+ lookbehind: true
1372
+ }
1373
+ ]
1374
+ }
1375
+ },
1376
+ 'punctuation': /\/?>/,
1377
+ 'attr-name': {
1378
+ pattern: /[^\s>\/]+/,
1379
+ inside: {
1380
+ 'namespace': /^[^\s>\/:]+:/
1381
+ }
1382
+ }
1383
+
1384
+ }
1385
+ },
1386
+ 'entity': [
1387
+ {
1388
+ pattern: /&[\da-z]{1,8};/i,
1389
+ alias: 'named-entity'
1390
+ },
1391
+ /&#x?[\da-f]{1,8};/i
1392
+ ]
1393
+ };
1394
+
1395
+ Prism.languages.markup['tag'].inside['attr-value'].inside['entity'] =
1396
+ Prism.languages.markup['entity'];
1397
+ Prism.languages.markup['doctype'].inside['internal-subset'].inside = Prism.languages.markup;
1398
+
1399
+ // Plugin to make entity title show the real entity, idea by Roman Komarov
1400
+ Prism.hooks.add('wrap', function (env) {
1401
+
1402
+ if (env.type === 'entity') {
1403
+ env.attributes['title'] = env.content.replace(/&amp;/, '&');
1404
+ }
1405
+ });
1406
+
1407
+ Object.defineProperty(Prism.languages.markup.tag, 'addInlined', {
1408
+ /**
1409
+ * Adds an inlined language to markup.
1410
+ *
1411
+ * An example of an inlined language is CSS with `<style>` tags.
1412
+ *
1413
+ * @param {string} tagName The name of the tag that contains the inlined language. This name will be treated as
1414
+ * case insensitive.
1415
+ * @param {string} lang The language key.
1416
+ * @example
1417
+ * addInlined('style', 'css');
1418
+ */
1419
+ value: function addInlined(tagName, lang) {
1420
+ var includedCdataInside = {};
1421
+ includedCdataInside['language-' + lang] = {
1422
+ pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
1423
+ lookbehind: true,
1424
+ inside: Prism.languages[lang]
1425
+ };
1426
+ includedCdataInside['cdata'] = /^<!\[CDATA\[|\]\]>$/i;
1427
+
1428
+ var inside = {
1429
+ 'included-cdata': {
1430
+ pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
1431
+ inside: includedCdataInside
1432
+ }
1433
+ };
1434
+ inside['language-' + lang] = {
1435
+ pattern: /[\s\S]+/,
1436
+ inside: Prism.languages[lang]
1437
+ };
1438
+
1439
+ var def = {};
1440
+ def[tagName] = {
1441
+ pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function () { return tagName; }), 'i'),
1442
+ lookbehind: true,
1443
+ greedy: true,
1444
+ inside: inside
1445
+ };
1446
+
1447
+ Prism.languages.insertBefore('markup', 'cdata', def);
1448
+ }
1449
+ });
1450
+ Object.defineProperty(Prism.languages.markup.tag, 'addAttribute', {
1451
+ /**
1452
+ * Adds an pattern to highlight languages embedded in HTML attributes.
1453
+ *
1454
+ * An example of an inlined language is CSS with `style` attributes.
1455
+ *
1456
+ * @param {string} attrName The name of the tag that contains the inlined language. This name will be treated as
1457
+ * case insensitive.
1458
+ * @param {string} lang The language key.
1459
+ * @example
1460
+ * addAttribute('style', 'css');
1461
+ */
1462
+ value: function (attrName, lang) {
1463
+ Prism.languages.markup.tag.inside['special-attr'].push({
1464
+ pattern: RegExp(
1465
+ /(^|["'\s])/.source + '(?:' + attrName + ')' + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
1466
+ 'i'
1467
+ ),
1468
+ lookbehind: true,
1469
+ inside: {
1470
+ 'attr-name': /^[^\s=]+/,
1471
+ 'attr-value': {
1472
+ pattern: /=[\s\S]+/,
1473
+ inside: {
1474
+ 'value': {
1475
+ pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
1476
+ lookbehind: true,
1477
+ alias: [lang, 'language-' + lang],
1478
+ inside: Prism.languages[lang]
1479
+ },
1480
+ 'punctuation': [
1481
+ {
1482
+ pattern: /^=/,
1483
+ alias: 'attr-equals'
1484
+ },
1485
+ /"|'/
1486
+ ]
1487
+ }
1488
+ }
1489
+ }
1490
+ });
1491
+ }
1492
+ });
1493
+
1494
+ Prism.languages.html = Prism.languages.markup;
1495
+ Prism.languages.mathml = Prism.languages.markup;
1496
+ Prism.languages.svg = Prism.languages.markup;
1497
+
1498
+ Prism.languages.xml = Prism.languages.extend('markup', {});
1499
+ Prism.languages.ssml = Prism.languages.xml;
1500
+ Prism.languages.atom = Prism.languages.xml;
1501
+ Prism.languages.rss = Prism.languages.xml;
1502
+
1503
+
1504
+ /* **********************************************
1505
+ Begin prism-css.js
1506
+ ********************************************** */
1507
+
1508
+ (function (Prism) {
1509
+
1510
+ var string = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
1511
+
1512
+ Prism.languages.css = {
1513
+ 'comment': /\/\*[\s\S]*?\*\//,
1514
+ 'atrule': {
1515
+ pattern: RegExp('@[\\w-](?:' + /[^;{\s"']|\s+(?!\s)/.source + '|' + string.source + ')*?' + /(?:;|(?=\s*\{))/.source),
1516
+ inside: {
1517
+ 'rule': /^@[\w-]+/,
1518
+ 'selector-function-argument': {
1519
+ pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
1520
+ lookbehind: true,
1521
+ alias: 'selector'
1522
+ },
1523
+ 'keyword': {
1524
+ pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
1525
+ lookbehind: true
1526
+ }
1527
+ // See rest below
1528
+ }
1529
+ },
1530
+ 'url': {
1531
+ // https://drafts.csswg.org/css-values-3/#urls
1532
+ pattern: RegExp('\\burl\\((?:' + string.source + '|' + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ')\\)', 'i'),
1533
+ greedy: true,
1534
+ inside: {
1535
+ 'function': /^url/i,
1536
+ 'punctuation': /^\(|\)$/,
1537
+ 'string': {
1538
+ pattern: RegExp('^' + string.source + '$'),
1539
+ alias: 'url'
1540
+ }
1541
+ }
1542
+ },
1543
+ 'selector': {
1544
+ pattern: RegExp('(^|[{}\\s])[^{}\\s](?:[^{};"\'\\s]|\\s+(?![\\s{])|' + string.source + ')*(?=\\s*\\{)'),
1545
+ lookbehind: true
1546
+ },
1547
+ 'string': {
1548
+ pattern: string,
1549
+ greedy: true
1550
+ },
1551
+ 'property': {
1552
+ pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
1553
+ lookbehind: true
1554
+ },
1555
+ 'important': /!important\b/i,
1556
+ 'function': {
1557
+ pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
1558
+ lookbehind: true
1559
+ },
1560
+ 'punctuation': /[(){};:,]/
1561
+ };
1562
+
1563
+ Prism.languages.css['atrule'].inside.rest = Prism.languages.css;
1564
+
1565
+ var markup = Prism.languages.markup;
1566
+ if (markup) {
1567
+ markup.tag.addInlined('style', 'css');
1568
+ markup.tag.addAttribute('style', 'css');
1569
+ }
1570
+
1571
+ }(Prism));
1572
+
1573
+
1574
+ /* **********************************************
1575
+ Begin prism-clike.js
1576
+ ********************************************** */
1577
+
1578
+ Prism.languages.clike = {
1579
+ 'comment': [
1580
+ {
1581
+ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
1582
+ lookbehind: true,
1583
+ greedy: true
1584
+ },
1585
+ {
1586
+ pattern: /(^|[^\\:])\/\/.*/,
1587
+ lookbehind: true,
1588
+ greedy: true
1589
+ }
1590
+ ],
1591
+ 'string': {
1592
+ pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
1593
+ greedy: true
1594
+ },
1595
+ 'class-name': {
1596
+ pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
1597
+ lookbehind: true,
1598
+ inside: {
1599
+ 'punctuation': /[.\\]/
1600
+ }
1601
+ },
1602
+ 'keyword': /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
1603
+ 'boolean': /\b(?:false|true)\b/,
1604
+ 'function': /\b\w+(?=\()/,
1605
+ 'number': /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
1606
+ 'operator': /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
1607
+ 'punctuation': /[{}[\];(),.:]/
1608
+ };
1609
+
1610
+
1611
+ /* **********************************************
1612
+ Begin prism-javascript.js
1613
+ ********************************************** */
1614
+
1615
+ Prism.languages.javascript = Prism.languages.extend('clike', {
1616
+ 'class-name': [
1617
+ Prism.languages.clike['class-name'],
1618
+ {
1619
+ pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
1620
+ lookbehind: true
1621
+ }
1622
+ ],
1623
+ 'keyword': [
1624
+ {
1625
+ pattern: /((?:^|\})\s*)catch\b/,
1626
+ lookbehind: true
1627
+ },
1628
+ {
1629
+ 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/,
1630
+ lookbehind: true
1631
+ },
1632
+ ],
1633
+ // Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)
1634
+ 'function': /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
1635
+ 'number': {
1636
+ pattern: RegExp(
1637
+ /(^|[^\w$])/.source +
1638
+ '(?:' +
1639
+ (
1640
+ // constant
1641
+ /NaN|Infinity/.source +
1642
+ '|' +
1643
+ // binary integer
1644
+ /0[bB][01]+(?:_[01]+)*n?/.source +
1645
+ '|' +
1646
+ // octal integer
1647
+ /0[oO][0-7]+(?:_[0-7]+)*n?/.source +
1648
+ '|' +
1649
+ // hexadecimal integer
1650
+ /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source +
1651
+ '|' +
1652
+ // decimal bigint
1653
+ /\d+(?:_\d+)*n/.source +
1654
+ '|' +
1655
+ // decimal number (integer or float) but no bigint
1656
+ /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source
1657
+ ) +
1658
+ ')' +
1659
+ /(?![\w$])/.source
1660
+ ),
1661
+ lookbehind: true
1662
+ },
1663
+ 'operator': /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
1664
+ });
1665
+
1666
+ Prism.languages.javascript['class-name'][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;
1667
+
1668
+ Prism.languages.insertBefore('javascript', 'keyword', {
1669
+ 'regex': {
1670
+ pattern: RegExp(
1671
+ // lookbehind
1672
+ // eslint-disable-next-line regexp/no-dupe-characters-character-class
1673
+ /((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source +
1674
+ // Regex pattern:
1675
+ // There are 2 regex patterns here. The RegExp set notation proposal added support for nested character
1676
+ // classes if the `v` flag is present. Unfortunately, nested CCs are both context-free and incompatible
1677
+ // with the only syntax, so we have to define 2 different regex patterns.
1678
+ /\//.source +
1679
+ '(?:' +
1680
+ /(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source +
1681
+ '|' +
1682
+ // `v` flag syntax. This supports 3 levels of nested character classes.
1683
+ /(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source +
1684
+ ')' +
1685
+ // lookahead
1686
+ /(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source
1687
+ ),
1688
+ lookbehind: true,
1689
+ greedy: true,
1690
+ inside: {
1691
+ 'regex-source': {
1692
+ pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
1693
+ lookbehind: true,
1694
+ alias: 'language-regex',
1695
+ inside: Prism.languages.regex
1696
+ },
1697
+ 'regex-delimiter': /^\/|\/$/,
1698
+ 'regex-flags': /^[a-z]+$/,
1699
+ }
1700
+ },
1701
+ // This must be declared before keyword because we use "function" inside the look-forward
1702
+ 'function-variable': {
1703
+ 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*=>))/,
1704
+ alias: 'function'
1705
+ },
1706
+ 'parameter': [
1707
+ {
1708
+ pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
1709
+ lookbehind: true,
1710
+ inside: Prism.languages.javascript
1711
+ },
1712
+ {
1713
+ pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
1714
+ lookbehind: true,
1715
+ inside: Prism.languages.javascript
1716
+ },
1717
+ {
1718
+ pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
1719
+ lookbehind: true,
1720
+ inside: Prism.languages.javascript
1721
+ },
1722
+ {
1723
+ 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*\{)/,
1724
+ lookbehind: true,
1725
+ inside: Prism.languages.javascript
1726
+ }
1727
+ ],
1728
+ 'constant': /\b[A-Z](?:[A-Z_]|\dx?)*\b/
1729
+ });
1730
+
1731
+ Prism.languages.insertBefore('javascript', 'string', {
1732
+ 'hashbang': {
1733
+ pattern: /^#!.*/,
1734
+ greedy: true,
1735
+ alias: 'comment'
1736
+ },
1737
+ 'template-string': {
1738
+ pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
1739
+ greedy: true,
1740
+ inside: {
1741
+ 'template-punctuation': {
1742
+ pattern: /^`|`$/,
1743
+ alias: 'string'
1744
+ },
1745
+ 'interpolation': {
1746
+ pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
1747
+ lookbehind: true,
1748
+ inside: {
1749
+ 'interpolation-punctuation': {
1750
+ pattern: /^\$\{|\}$/,
1751
+ alias: 'punctuation'
1752
+ },
1753
+ rest: Prism.languages.javascript
1754
+ }
1755
+ },
1756
+ 'string': /[\s\S]+/
1757
+ }
1758
+ },
1759
+ 'string-property': {
1760
+ pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,
1761
+ lookbehind: true,
1762
+ greedy: true,
1763
+ alias: 'property'
1764
+ }
1765
+ });
1766
+
1767
+ Prism.languages.insertBefore('javascript', 'operator', {
1768
+ 'literal-property': {
1769
+ pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
1770
+ lookbehind: true,
1771
+ alias: 'property'
1772
+ },
1773
+ });
1774
+
1775
+ if (Prism.languages.markup) {
1776
+ Prism.languages.markup.tag.addInlined('script', 'javascript');
1777
+
1778
+ // add attribute support for all DOM events.
1779
+ // https://developer.mozilla.org/en-US/docs/Web/Events#Standard_events
1780
+ Prism.languages.markup.tag.addAttribute(
1781
+ /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,
1782
+ 'javascript'
1783
+ );
1784
+ }
1785
+
1786
+ Prism.languages.js = Prism.languages.javascript;
1787
+
1788
+
1789
+ /* **********************************************
1790
+ Begin prism-file-highlight.js
1791
+ ********************************************** */
1792
+
1793
+ (function () {
1794
+
1795
+ if (typeof Prism === 'undefined' || typeof document === 'undefined') {
1796
+ return;
1797
+ }
1798
+
1799
+ // https://developer.mozilla.org/en-US/docs/Web/API/Element/matches#Polyfill
1800
+ if (!Element.prototype.matches) {
1801
+ Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
1802
+ }
1803
+
1804
+ var LOADING_MESSAGE = 'Loading…';
1805
+ var FAILURE_MESSAGE = function (status, message) {
1806
+ return '✖ Error ' + status + ' while fetching file: ' + message;
1807
+ };
1808
+ var FAILURE_EMPTY_MESSAGE = '✖ Error: File does not exist or is empty';
1809
+
1810
+ var EXTENSIONS = {
1811
+ 'js': 'javascript',
1812
+ 'py': 'python',
1813
+ 'rb': 'ruby',
1814
+ 'ps1': 'powershell',
1815
+ 'psm1': 'powershell',
1816
+ 'sh': 'bash',
1817
+ 'bat': 'batch',
1818
+ 'h': 'c',
1819
+ 'tex': 'latex'
1820
+ };
1821
+
1822
+ var STATUS_ATTR = 'data-src-status';
1823
+ var STATUS_LOADING = 'loading';
1824
+ var STATUS_LOADED = 'loaded';
1825
+ var STATUS_FAILED = 'failed';
1826
+
1827
+ var SELECTOR = 'pre[data-src]:not([' + STATUS_ATTR + '="' + STATUS_LOADED + '"])'
1828
+ + ':not([' + STATUS_ATTR + '="' + STATUS_LOADING + '"])';
1829
+
1830
+ /**
1831
+ * Loads the given file.
1832
+ *
1833
+ * @param {string} src The URL or path of the source file to load.
1834
+ * @param {(result: string) => void} success
1835
+ * @param {(reason: string) => void} error
1836
+ */
1837
+ function loadFile(src, success, error) {
1838
+ var xhr = new XMLHttpRequest();
1839
+ xhr.open('GET', src, true);
1840
+ xhr.onreadystatechange = function () {
1841
+ if (xhr.readyState == 4) {
1842
+ if (xhr.status < 400 && xhr.responseText) {
1843
+ success(xhr.responseText);
1844
+ } else {
1845
+ if (xhr.status >= 400) {
1846
+ error(FAILURE_MESSAGE(xhr.status, xhr.statusText));
1847
+ } else {
1848
+ error(FAILURE_EMPTY_MESSAGE);
1849
+ }
1850
+ }
1851
+ }
1852
+ };
1853
+ xhr.send(null);
1854
+ }
1855
+
1856
+ /**
1857
+ * Parses the given range.
1858
+ *
1859
+ * This returns a range with inclusive ends.
1860
+ *
1861
+ * @param {string | null | undefined} range
1862
+ * @returns {[number, number | undefined] | undefined}
1863
+ */
1864
+ function parseRange(range) {
1865
+ var m = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(range || '');
1866
+ if (m) {
1867
+ var start = Number(m[1]);
1868
+ var comma = m[2];
1869
+ var end = m[3];
1870
+
1871
+ if (!comma) {
1872
+ return [start, start];
1873
+ }
1874
+ if (!end) {
1875
+ return [start, undefined];
1876
+ }
1877
+ return [start, Number(end)];
1878
+ }
1879
+ return undefined;
1880
+ }
1881
+
1882
+ Prism.hooks.add('before-highlightall', function (env) {
1883
+ env.selector += ', ' + SELECTOR;
1884
+ });
1885
+
1886
+ Prism.hooks.add('before-sanity-check', function (env) {
1887
+ var pre = /** @type {HTMLPreElement} */ (env.element);
1888
+ if (pre.matches(SELECTOR)) {
1889
+ env.code = ''; // fast-path the whole thing and go to complete
1890
+
1891
+ pre.setAttribute(STATUS_ATTR, STATUS_LOADING); // mark as loading
1892
+
1893
+ // add code element with loading message
1894
+ var code = pre.appendChild(document.createElement('CODE'));
1895
+ code.textContent = LOADING_MESSAGE;
1896
+
1897
+ var src = pre.getAttribute('data-src');
1898
+
1899
+ var language = env.language;
1900
+ if (language === 'none') {
1901
+ // the language might be 'none' because there is no language set;
1902
+ // in this case, we want to use the extension as the language
1903
+ var extension = (/\.(\w+)$/.exec(src) || [, 'none'])[1];
1904
+ language = EXTENSIONS[extension] || extension;
1905
+ }
1906
+
1907
+ // set language classes
1908
+ Prism.util.setLanguage(code, language);
1909
+ Prism.util.setLanguage(pre, language);
1910
+
1911
+ // preload the language
1912
+ var autoloader = Prism.plugins.autoloader;
1913
+ if (autoloader) {
1914
+ autoloader.loadLanguages(language);
1915
+ }
1916
+
1917
+ // load file
1918
+ loadFile(
1919
+ src,
1920
+ function (text) {
1921
+ // mark as loaded
1922
+ pre.setAttribute(STATUS_ATTR, STATUS_LOADED);
1923
+
1924
+ // handle data-range
1925
+ var range = parseRange(pre.getAttribute('data-range'));
1926
+ if (range) {
1927
+ var lines = text.split(/\r\n?|\n/g);
1928
+
1929
+ // the range is one-based and inclusive on both ends
1930
+ var start = range[0];
1931
+ var end = range[1] == null ? lines.length : range[1];
1932
+
1933
+ if (start < 0) { start += lines.length; }
1934
+ start = Math.max(0, Math.min(start - 1, lines.length));
1935
+ if (end < 0) { end += lines.length; }
1936
+ end = Math.max(0, Math.min(end, lines.length));
1937
+
1938
+ text = lines.slice(start, end).join('\n');
1939
+
1940
+ // add data-start for line numbers
1941
+ if (!pre.hasAttribute('data-start')) {
1942
+ pre.setAttribute('data-start', String(start + 1));
1943
+ }
1944
+ }
1945
+
1946
+ // highlight code
1947
+ code.textContent = text;
1948
+ Prism.highlightElement(code);
1949
+ },
1950
+ function (error) {
1951
+ // mark as failed
1952
+ pre.setAttribute(STATUS_ATTR, STATUS_FAILED);
1953
+
1954
+ code.textContent = error;
1955
+ }
1956
+ );
1957
+ }
1958
+ });
1959
+
1960
+ Prism.plugins.fileHighlight = {
1961
+ /**
1962
+ * Executes the File Highlight plugin for all matching `pre` elements under the given container.
1963
+ *
1964
+ * Note: Elements which are already loaded or currently loading will not be touched by this method.
1965
+ *
1966
+ * @param {ParentNode} [container=document]
1967
+ */
1968
+ highlight: function highlight(container) {
1969
+ var elements = (container || document).querySelectorAll(SELECTOR);
1970
+
1971
+ for (var i = 0, element; (element = elements[i++]);) {
1972
+ Prism.highlightElement(element);
1973
+ }
1974
+ }
1975
+ };
1976
+
1977
+ var logged = false;
1978
+ /** @deprecated Use `Prism.plugins.fileHighlight.highlight` instead. */
1979
+ Prism.fileHighlight = function () {
1980
+ if (!logged) {
1981
+ console.warn('Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead.');
1982
+ logged = true;
1983
+ }
1984
+ Prism.plugins.fileHighlight.highlight.apply(this, arguments);
1985
+ };
1986
+
1987
+ }());
1988
+ }(prism));
1989
+
1990
+ const Prism$1 = prism.exports;
1991
+
1992
+ Prism.languages.python = {
1993
+ 'comment': {
1994
+ pattern: /(^|[^\\])#.*/,
1995
+ lookbehind: true,
1996
+ greedy: true
1997
+ },
1998
+ 'string-interpolation': {
1999
+ pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,
2000
+ greedy: true,
2001
+ inside: {
2002
+ 'interpolation': {
2003
+ // "{" <expression> <optional "!s", "!r", or "!a"> <optional ":" format specifier> "}"
2004
+ pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,
2005
+ lookbehind: true,
2006
+ inside: {
2007
+ 'format-spec': {
2008
+ pattern: /(:)[^:(){}]+(?=\}$)/,
2009
+ lookbehind: true
2010
+ },
2011
+ 'conversion-option': {
2012
+ pattern: /![sra](?=[:}]$)/,
2013
+ alias: 'punctuation'
2014
+ },
2015
+ rest: null
2016
+ }
2017
+ },
2018
+ 'string': /[\s\S]+/
2019
+ }
2020
+ },
2021
+ 'triple-quoted-string': {
2022
+ pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,
2023
+ greedy: true,
2024
+ alias: 'string'
2025
+ },
2026
+ 'string': {
2027
+ pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,
2028
+ greedy: true
2029
+ },
2030
+ 'function': {
2031
+ pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,
2032
+ lookbehind: true
2033
+ },
2034
+ 'class-name': {
2035
+ pattern: /(\bclass\s+)\w+/i,
2036
+ lookbehind: true
2037
+ },
2038
+ 'decorator': {
2039
+ pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m,
2040
+ lookbehind: true,
2041
+ alias: ['annotation', 'punctuation'],
2042
+ inside: {
2043
+ 'punctuation': /\./
2044
+ }
2045
+ },
2046
+ 'keyword': /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,
2047
+ 'builtin': /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,
2048
+ 'boolean': /\b(?:False|None|True)\b/,
2049
+ 'number': /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,
2050
+ 'operator': /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,
2051
+ 'punctuation': /[{}[\];(),.:]/
2052
+ };
2053
+
2054
+ Prism.languages.python['string-interpolation'].inside['interpolation'].inside.rest = Prism.languages.python;
2055
+
2056
+ Prism.languages.py = Prism.languages.python;
2057
+
2058
+ (function (Prism) {
2059
+ // $ set | grep '^[A-Z][^[:space:]]*=' | cut -d= -f1 | tr '\n' '|'
2060
+ // + LC_ALL, RANDOM, REPLY, SECONDS.
2061
+ // + make sure PS1..4 are here as they are not always set,
2062
+ // - some useless things.
2063
+ var envVars = '\\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';
2064
+
2065
+ var commandAfterHeredoc = {
2066
+ pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
2067
+ lookbehind: true,
2068
+ alias: 'punctuation', // this looks reasonably well in all themes
2069
+ inside: null // see below
2070
+ };
2071
+
2072
+ var insideString = {
2073
+ 'bash': commandAfterHeredoc,
2074
+ 'environment': {
2075
+ pattern: RegExp('\\$' + envVars),
2076
+ alias: 'constant'
2077
+ },
2078
+ 'variable': [
2079
+ // [0]: Arithmetic Environment
2080
+ {
2081
+ pattern: /\$?\(\([\s\S]+?\)\)/,
2082
+ greedy: true,
2083
+ inside: {
2084
+ // If there is a $ sign at the beginning highlight $(( and )) as variable
2085
+ 'variable': [
2086
+ {
2087
+ pattern: /(^\$\(\([\s\S]+)\)\)/,
2088
+ lookbehind: true
2089
+ },
2090
+ /^\$\(\(/
2091
+ ],
2092
+ 'number': /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,
2093
+ // Operators according to https://www.gnu.org/software/bash/manual/bashref.html#Shell-Arithmetic
2094
+ 'operator': /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,
2095
+ // If there is no $ sign at the beginning highlight (( and )) as punctuation
2096
+ 'punctuation': /\(\(?|\)\)?|,|;/
2097
+ }
2098
+ },
2099
+ // [1]: Command Substitution
2100
+ {
2101
+ pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,
2102
+ greedy: true,
2103
+ inside: {
2104
+ 'variable': /^\$\(|^`|\)$|`$/
2105
+ }
2106
+ },
2107
+ // [2]: Brace expansion
2108
+ {
2109
+ pattern: /\$\{[^}]+\}/,
2110
+ greedy: true,
2111
+ inside: {
2112
+ 'operator': /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
2113
+ 'punctuation': /[\[\]]/,
2114
+ 'environment': {
2115
+ pattern: RegExp('(\\{)' + envVars),
2116
+ lookbehind: true,
2117
+ alias: 'constant'
2118
+ }
2119
+ }
2120
+ },
2121
+ /\$(?:\w+|[#?*!@$])/
2122
+ ],
2123
+ // Escape sequences from echo and printf's manuals, and escaped quotes.
2124
+ '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})/
2125
+ };
2126
+
2127
+ Prism.languages.bash = {
2128
+ 'shebang': {
2129
+ pattern: /^#!\s*\/.*/,
2130
+ alias: 'important'
2131
+ },
2132
+ 'comment': {
2133
+ pattern: /(^|[^"{\\$])#.*/,
2134
+ lookbehind: true
2135
+ },
2136
+ 'function-name': [
2137
+ // a) function foo {
2138
+ // b) foo() {
2139
+ // c) function foo() {
2140
+ // but not “foo {”
2141
+ {
2142
+ // a) and c)
2143
+ pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,
2144
+ lookbehind: true,
2145
+ alias: 'function'
2146
+ },
2147
+ {
2148
+ // b)
2149
+ pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/,
2150
+ alias: 'function'
2151
+ }
2152
+ ],
2153
+ // Highlight variable names as variables in for and select beginnings.
2154
+ 'for-or-select': {
2155
+ pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/,
2156
+ alias: 'variable',
2157
+ lookbehind: true
2158
+ },
2159
+ // Highlight variable names as variables in the left-hand part
2160
+ // of assignments (“=” and “+=”).
2161
+ 'assign-left': {
2162
+ pattern: /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,
2163
+ inside: {
2164
+ 'environment': {
2165
+ pattern: RegExp('(^|[\\s;|&]|[<>]\\()' + envVars),
2166
+ lookbehind: true,
2167
+ alias: 'constant'
2168
+ }
2169
+ },
2170
+ alias: 'variable',
2171
+ lookbehind: true
2172
+ },
2173
+ // Highlight parameter names as variables
2174
+ 'parameter': {
2175
+ pattern: /(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,
2176
+ alias: 'variable',
2177
+ lookbehind: true
2178
+ },
2179
+ 'string': [
2180
+ // Support for Here-documents https://en.wikipedia.org/wiki/Here_document
2181
+ {
2182
+ pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
2183
+ lookbehind: true,
2184
+ greedy: true,
2185
+ inside: insideString
2186
+ },
2187
+ // Here-document with quotes around the tag
2188
+ // → No expansion (so no “inside”).
2189
+ {
2190
+ pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,
2191
+ lookbehind: true,
2192
+ greedy: true,
2193
+ inside: {
2194
+ 'bash': commandAfterHeredoc
2195
+ }
2196
+ },
2197
+ // “Normal” string
2198
+ {
2199
+ // https://www.gnu.org/software/bash/manual/html_node/Double-Quotes.html
2200
+ pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
2201
+ lookbehind: true,
2202
+ greedy: true,
2203
+ inside: insideString
2204
+ },
2205
+ {
2206
+ // https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
2207
+ pattern: /(^|[^$\\])'[^']*'/,
2208
+ lookbehind: true,
2209
+ greedy: true
2210
+ },
2211
+ {
2212
+ // https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html
2213
+ pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
2214
+ greedy: true,
2215
+ inside: {
2216
+ 'entity': insideString.entity
2217
+ }
2218
+ }
2219
+ ],
2220
+ 'environment': {
2221
+ pattern: RegExp('\\$?' + envVars),
2222
+ alias: 'constant'
2223
+ },
2224
+ 'variable': insideString.variable,
2225
+ 'function': {
2226
+ pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|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|java|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|sysctl|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;|&])/,
2227
+ lookbehind: true
2228
+ },
2229
+ 'keyword': {
2230
+ pattern: /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,
2231
+ lookbehind: true
2232
+ },
2233
+ // https://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html
2234
+ 'builtin': {
2235
+ 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;|&])/,
2236
+ lookbehind: true,
2237
+ // Alias added to make those easier to distinguish from strings.
2238
+ alias: 'class-name'
2239
+ },
2240
+ 'boolean': {
2241
+ pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,
2242
+ lookbehind: true
2243
+ },
2244
+ 'file-descriptor': {
2245
+ pattern: /\B&\d\b/,
2246
+ alias: 'important'
2247
+ },
2248
+ 'operator': {
2249
+ // Lots of redirections here, but not just that.
2250
+ pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,
2251
+ inside: {
2252
+ 'file-descriptor': {
2253
+ pattern: /^\d/,
2254
+ alias: 'important'
2255
+ }
2256
+ }
2257
+ },
2258
+ 'punctuation': /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,
2259
+ 'number': {
2260
+ pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
2261
+ lookbehind: true
2262
+ }
2263
+ };
2264
+
2265
+ commandAfterHeredoc.inside = Prism.languages.bash;
2266
+
2267
+ /* Patterns in command substitution. */
2268
+ var toBeCopied = [
2269
+ 'comment',
2270
+ 'function-name',
2271
+ 'for-or-select',
2272
+ 'assign-left',
2273
+ 'parameter',
2274
+ 'string',
2275
+ 'environment',
2276
+ 'function',
2277
+ 'keyword',
2278
+ 'builtin',
2279
+ 'boolean',
2280
+ 'file-descriptor',
2281
+ 'operator',
2282
+ 'punctuation',
2283
+ 'number'
2284
+ ];
2285
+ var inside = insideString.variable[1].inside;
2286
+ for (var i = 0; i < toBeCopied.length; i++) {
2287
+ inside[toBeCopied[i]] = Prism.languages.bash[toBeCopied[i]];
2288
+ }
2289
+
2290
+ Prism.languages.sh = Prism.languages.bash;
2291
+ Prism.languages.shell = Prism.languages.bash;
2292
+ }(Prism));
2293
+
2294
+ (function (Prism) {
2295
+
2296
+ // https://yaml.org/spec/1.2/spec.html#c-ns-anchor-property
2297
+ // https://yaml.org/spec/1.2/spec.html#c-ns-alias-node
2298
+ var anchorOrAlias = /[*&][^\s[\]{},]+/;
2299
+ // https://yaml.org/spec/1.2/spec.html#c-ns-tag-property
2300
+ var tag = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/;
2301
+ // https://yaml.org/spec/1.2/spec.html#c-ns-properties(n,c)
2302
+ var properties = '(?:' + tag.source + '(?:[ \t]+' + anchorOrAlias.source + ')?|'
2303
+ + anchorOrAlias.source + '(?:[ \t]+' + tag.source + ')?)';
2304
+ // https://yaml.org/spec/1.2/spec.html#ns-plain(n,c)
2305
+ // This is a simplified version that doesn't support "#" and multiline keys
2306
+ // All these long scarry character classes are simplified versions of YAML's characters
2307
+ var plainKey = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source
2308
+ .replace(/<PLAIN>/g, function () { return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source; });
2309
+ var string = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
2310
+
2311
+ /**
2312
+ *
2313
+ * @param {string} value
2314
+ * @param {string} [flags]
2315
+ * @returns {RegExp}
2316
+ */
2317
+ function createValuePattern(value, flags) {
2318
+ flags = (flags || '').replace(/m/g, '') + 'm'; // add m flag
2319
+ var pattern = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source
2320
+ .replace(/<<prop>>/g, function () { return properties; }).replace(/<<value>>/g, function () { return value; });
2321
+ return RegExp(pattern, flags);
2322
+ }
2323
+
2324
+ Prism.languages.yaml = {
2325
+ 'scalar': {
2326
+ pattern: RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source
2327
+ .replace(/<<prop>>/g, function () { return properties; })),
2328
+ lookbehind: true,
2329
+ alias: 'string'
2330
+ },
2331
+ 'comment': /#.*/,
2332
+ 'key': {
2333
+ pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source
2334
+ .replace(/<<prop>>/g, function () { return properties; })
2335
+ .replace(/<<key>>/g, function () { return '(?:' + plainKey + '|' + string + ')'; })),
2336
+ lookbehind: true,
2337
+ greedy: true,
2338
+ alias: 'atrule'
2339
+ },
2340
+ 'directive': {
2341
+ pattern: /(^[ \t]*)%.+/m,
2342
+ lookbehind: true,
2343
+ alias: 'important'
2344
+ },
2345
+ 'datetime': {
2346
+ pattern: createValuePattern(/\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),
2347
+ lookbehind: true,
2348
+ alias: 'number'
2349
+ },
2350
+ 'boolean': {
2351
+ pattern: createValuePattern(/false|true/.source, 'i'),
2352
+ lookbehind: true,
2353
+ alias: 'important'
2354
+ },
2355
+ 'null': {
2356
+ pattern: createValuePattern(/null|~/.source, 'i'),
2357
+ lookbehind: true,
2358
+ alias: 'important'
2359
+ },
2360
+ 'string': {
2361
+ pattern: createValuePattern(string),
2362
+ lookbehind: true,
2363
+ greedy: true
2364
+ },
2365
+ 'number': {
2366
+ pattern: createValuePattern(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, 'i'),
2367
+ lookbehind: true
2368
+ },
2369
+ 'tag': tag,
2370
+ 'important': anchorOrAlias,
2371
+ 'punctuation': /---|[:[\]{}\-,|>?]|\.\.\./
2372
+ };
2373
+
2374
+ Prism.languages.yml = Prism.languages.yaml;
2375
+
2376
+ }(Prism));
2377
+
2378
+ (function (Prism) {
2379
+
2380
+ var string = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
2381
+
2382
+ Prism.languages.css = {
2383
+ 'comment': /\/\*[\s\S]*?\*\//,
2384
+ 'atrule': {
2385
+ pattern: RegExp('@[\\w-](?:' + /[^;{\s"']|\s+(?!\s)/.source + '|' + string.source + ')*?' + /(?:;|(?=\s*\{))/.source),
2386
+ inside: {
2387
+ 'rule': /^@[\w-]+/,
2388
+ 'selector-function-argument': {
2389
+ pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
2390
+ lookbehind: true,
2391
+ alias: 'selector'
2392
+ },
2393
+ 'keyword': {
2394
+ pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
2395
+ lookbehind: true
2396
+ }
2397
+ // See rest below
2398
+ }
2399
+ },
2400
+ 'url': {
2401
+ // https://drafts.csswg.org/css-values-3/#urls
2402
+ pattern: RegExp('\\burl\\((?:' + string.source + '|' + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ')\\)', 'i'),
2403
+ greedy: true,
2404
+ inside: {
2405
+ 'function': /^url/i,
2406
+ 'punctuation': /^\(|\)$/,
2407
+ 'string': {
2408
+ pattern: RegExp('^' + string.source + '$'),
2409
+ alias: 'url'
2410
+ }
2411
+ }
2412
+ },
2413
+ 'selector': {
2414
+ pattern: RegExp('(^|[{}\\s])[^{}\\s](?:[^{};"\'\\s]|\\s+(?![\\s{])|' + string.source + ')*(?=\\s*\\{)'),
2415
+ lookbehind: true
2416
+ },
2417
+ 'string': {
2418
+ pattern: string,
2419
+ greedy: true
2420
+ },
2421
+ 'property': {
2422
+ pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
2423
+ lookbehind: true
2424
+ },
2425
+ 'important': /!important\b/i,
2426
+ 'function': {
2427
+ pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
2428
+ lookbehind: true
2429
+ },
2430
+ 'punctuation': /[(){};:,]/
2431
+ };
2432
+
2433
+ Prism.languages.css['atrule'].inside.rest = Prism.languages.css;
2434
+
2435
+ var markup = Prism.languages.markup;
2436
+ if (markup) {
2437
+ markup.tag.addInlined('style', 'css');
2438
+ markup.tag.addAttribute('style', 'css');
2439
+ }
2440
+
2441
+ }(Prism));
2442
+
2443
+ const edsCodeBlockCss = ":host{display:block;font-family:var(--font-family, 'Courier New', monospace)}pre[class*=\"language-\"]{white-space:pre-wrap;word-break:break-word;}.language{font-weight:bold;text-transform:uppercase}pre{margin:0;border-radius:8px;color:var(--purple-200);overflow:auto}code{font-family:'Courier New', monospace}.token.keyword{color:var(--purple-500)}.token.string{color:var(--green-500)}.token.function{color:var(--cyan-500)}.token.comment{color:var(--grey-700)}.relative{position:relative}.bg-stronger{background-color:var(--grey-900)}.rounded-sm{border-radius:8px}.rounded-xs{border-radius:4px}.text-inverse{color:var(--white)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.p-0{padding:0rem}.p-12{padding:0.75rem}.p-16{padding:1rem}.p-20{padding:1.25rem}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.pl-8{padding-left:0.5rem}.mb-10{margin-bottom:0.625rem}.mb-12{margin-bottom:0.75rem}.mb-28{margin-bottom:1.75rem}.pb-16{padding-bottom:1rem}.pb-20{padding-bottom:1.25rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.pb-8{padding-bottom:0.5rem}.mt-16{margin-top:1rem}.mt-2{margin-top:0.125rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.w-20{width:1.25rem}.h-20{height:1.25rem}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}";
2444
+
2445
+ const EdsCodeBlock = class {
2446
+ constructor(hostRef) {
2447
+ index.registerInstance(this, hostRef);
2448
+ this.code = undefined;
2449
+ this.language = undefined;
2450
+ this.copied = false;
2451
+ }
2452
+ copyToClipboard() {
2453
+ navigator.clipboard.writeText(this.code).then(() => {
2454
+ this.copied = true;
2455
+ setTimeout(() => (this.copied = false), 2000);
2456
+ });
2457
+ }
2458
+ getHighlightedCode() {
2459
+ if (this.language && Prism$1.languages[this.language]) {
2460
+ return Prism$1.highlight(this.code, Prism$1.languages[this.language], this.language);
2461
+ }
2462
+ // eslint-disable-next-line
2463
+ console.warn(`Unsupported or missing language: ${this.language}`);
2464
+ return this.code; // Fallback if language is not provided or unsupported
2465
+ }
2466
+ render() {
2467
+ return (index.h("div", { key: 'a99c0c8b9546b80bb3f9e21cd53c29540e8b6e06', class: "relative bg-stronger rounded-sm" }, index.h("div", { key: '5856f9d30bb52f791e0d8bb03a6438bc01247f66', class: "text-inverse flex justify-between items-center p-8" }, this.language ? (index.h("span", { class: "f-ui-03" }, this.language.toUpperCase())) : (index.h("pre", { class: "bg-stronger pl-8", role: "region", "aria-label": "Code block without language" }, index.h("code", { innerHTML: this.getHighlightedCode() }))), index.h("span", { key: 'dfb0f69dbbd1032ace5afb7fe98d899816f36610', "aria-hidden": "true", class: "w-20 h-20 mt-8" }, index.h("eds-icon-wrapper", { key: 'b399384638265f9fcc9a824c47fe73c75bcade33', icon: this.copied ? 'success' : 'copy', onClick: () => this.copyToClipboard() })), index.h("span", { key: '47c2d00b2cf86b99522dbc438726e0fc57fb6a44', class: "sr-only" }, "Copy Code")), this.language && (index.h("pre", { key: '038321e9d3d2a38963857ab8b719653f3e8385e3', class: `language-${this.language} bg-stronger pl-8 pb-8`, role: "region", "aria-label": `Code block in ${this.language}` }, index.h("code", { key: '72be161dd9781d9bc2f4d9495969175f34c19249', innerHTML: this.getHighlightedCode() })))));
2468
+ }
2469
+ };
2470
+ EdsCodeBlock.style = edsCodeBlockCss;
2471
+
2472
+ exports.eds_code_block = EdsCodeBlock;