@ebrains/components 0.9.2-beta → 0.9.3-beta

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