@solid-design-system/components 3.6.0 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/dist/components/es/option.js +1 -1
  2. package/dist/components/es/solid-components2.js +1 -1
  3. package/dist/components/umd/solid-components.js +2 -2
  4. package/dist/custom-elements.json +1 -1
  5. package/dist/package/components/accordion/accordion.d.ts +2 -1
  6. package/dist/package/components/carousel/carousel.d.ts +2 -1
  7. package/dist/package/components/dialog/dialog.d.ts +2 -1
  8. package/dist/package/components/drawer/drawer.d.ts +2 -1
  9. package/dist/package/components/dropdown/dropdown.d.ts +2 -1
  10. package/dist/package/components/input/input.d.ts +2 -1
  11. package/dist/package/components/notification/notification.d.ts +2 -1
  12. package/dist/package/components/option/option.d.ts +0 -1
  13. package/dist/package/components/option/option.js +0 -2
  14. package/dist/package/components/select/select.d.ts +2 -1
  15. package/dist/package/components/spinner/spinner.d.ts +2 -1
  16. package/dist/package/components/tab-group/tab-group.d.ts +2 -1
  17. package/dist/package/components/tooltip/tooltip.d.ts +2 -1
  18. package/dist/package/utilities/localize.d.ts +10 -0
  19. package/dist/package/utilities/localize.js +45 -0
  20. package/dist/versioned-components/es/accordion-group.js +1 -1
  21. package/dist/versioned-components/es/accordion.js +1 -1
  22. package/dist/versioned-components/es/badge.js +1 -1
  23. package/dist/versioned-components/es/brandshape.js +1 -1
  24. package/dist/versioned-components/es/button.js +1 -1
  25. package/dist/versioned-components/es/carousel-item.js +1 -1
  26. package/dist/versioned-components/es/carousel.js +3 -3
  27. package/dist/versioned-components/es/checkbox-group.js +1 -1
  28. package/dist/versioned-components/es/checkbox.js +1 -1
  29. package/dist/versioned-components/es/dialog.js +1 -1
  30. package/dist/versioned-components/es/divider.js +1 -1
  31. package/dist/versioned-components/es/drawer.js +1 -1
  32. package/dist/versioned-components/es/dropdown.js +1 -1
  33. package/dist/versioned-components/es/form.js +1 -1
  34. package/dist/versioned-components/es/header.js +1 -1
  35. package/dist/versioned-components/es/icon.js +1 -1
  36. package/dist/versioned-components/es/include.js +1 -1
  37. package/dist/versioned-components/es/input.js +1 -1
  38. package/dist/versioned-components/es/link.js +1 -1
  39. package/dist/versioned-components/es/map-marker.js +1 -1
  40. package/dist/versioned-components/es/navigation-item.js +1 -1
  41. package/dist/versioned-components/es/notification.js +1 -1
  42. package/dist/versioned-components/es/option.js +1 -1
  43. package/dist/versioned-components/es/popup.js +1 -1
  44. package/dist/versioned-components/es/radio-button.js +1 -1
  45. package/dist/versioned-components/es/radio-group.js +1 -1
  46. package/dist/versioned-components/es/radio.js +1 -1
  47. package/dist/versioned-components/es/scrollable.js +1 -1
  48. package/dist/versioned-components/es/select.js +3 -3
  49. package/dist/versioned-components/es/solid-components2.js +1 -1
  50. package/dist/versioned-components/es/spinner.js +1 -1
  51. package/dist/versioned-components/es/step-group.js +1 -1
  52. package/dist/versioned-components/es/step.js +1 -1
  53. package/dist/versioned-components/es/switch.js +1 -1
  54. package/dist/versioned-components/es/tab-group.js +1 -1
  55. package/dist/versioned-components/es/tab-panel.js +1 -1
  56. package/dist/versioned-components/es/tab.js +1 -1
  57. package/dist/versioned-components/es/tag.js +1 -1
  58. package/dist/versioned-components/es/teaser-media.js +1 -1
  59. package/dist/versioned-components/es/teaser.js +1 -1
  60. package/dist/versioned-components/es/textarea.js +1 -1
  61. package/dist/versioned-components/es/tooltip.js +2 -2
  62. package/dist/versioned-components/es/video.js +1 -1
  63. package/dist/versioned-package/_components/button-group/button-group.d.ts +1 -1
  64. package/dist/versioned-package/_components/button-group/button-group.js +11 -11
  65. package/dist/versioned-package/components/accordion/accordion.d.ts +3 -2
  66. package/dist/versioned-package/components/accordion/accordion.js +2 -2
  67. package/dist/versioned-package/components/accordion-group/accordion-group.d.ts +1 -1
  68. package/dist/versioned-package/components/accordion-group/accordion-group.js +3 -3
  69. package/dist/versioned-package/components/badge/badge.d.ts +1 -1
  70. package/dist/versioned-package/components/badge/badge.js +1 -1
  71. package/dist/versioned-package/components/brandshape/brandshape.d.ts +1 -1
  72. package/dist/versioned-package/components/brandshape/brandshape.js +1 -1
  73. package/dist/versioned-package/components/button/button.d.ts +1 -1
  74. package/dist/versioned-package/components/button/button.js +4 -4
  75. package/dist/versioned-package/components/carousel/carousel.d.ts +3 -2
  76. package/dist/versioned-package/components/carousel/carousel.js +6 -6
  77. package/dist/versioned-package/components/carousel-item/carousel-item.d.ts +1 -1
  78. package/dist/versioned-package/components/carousel-item/carousel-item.js +1 -1
  79. package/dist/versioned-package/components/checkbox/checkbox.d.ts +1 -1
  80. package/dist/versioned-package/components/checkbox/checkbox.js +3 -3
  81. package/dist/versioned-package/components/checkbox-group/checkbox-group.d.ts +1 -1
  82. package/dist/versioned-package/components/checkbox-group/checkbox-group.js +5 -5
  83. package/dist/versioned-package/components/dialog/dialog.d.ts +3 -2
  84. package/dist/versioned-package/components/dialog/dialog.js +2 -2
  85. package/dist/versioned-package/components/divider/divider.d.ts +1 -1
  86. package/dist/versioned-package/components/divider/divider.js +2 -2
  87. package/dist/versioned-package/components/drawer/drawer.d.ts +3 -2
  88. package/dist/versioned-package/components/drawer/drawer.js +2 -2
  89. package/dist/versioned-package/components/dropdown/dropdown.d.ts +3 -2
  90. package/dist/versioned-package/components/dropdown/dropdown.js +8 -8
  91. package/dist/versioned-package/components/header/header.d.ts +1 -1
  92. package/dist/versioned-package/components/header/header.js +4 -4
  93. package/dist/versioned-package/components/icon/icon.d.ts +1 -1
  94. package/dist/versioned-package/components/icon/icon.js +1 -1
  95. package/dist/versioned-package/components/include/include.d.ts +1 -1
  96. package/dist/versioned-package/components/include/include.js +1 -1
  97. package/dist/versioned-package/components/input/input.d.ts +3 -2
  98. package/dist/versioned-package/components/input/input.js +2 -2
  99. package/dist/versioned-package/components/link/link.d.ts +1 -1
  100. package/dist/versioned-package/components/link/link.js +2 -2
  101. package/dist/versioned-package/components/map-marker/map-marker.d.ts +1 -1
  102. package/dist/versioned-package/components/map-marker/map-marker.js +1 -1
  103. package/dist/versioned-package/components/navigation-item/navigation-item.d.ts +1 -1
  104. package/dist/versioned-package/components/navigation-item/navigation-item.js +3 -3
  105. package/dist/versioned-package/components/notification/notification.d.ts +3 -2
  106. package/dist/versioned-package/components/notification/notification.js +5 -5
  107. package/dist/versioned-package/components/option/option.d.ts +1 -2
  108. package/dist/versioned-package/components/option/option.js +2 -4
  109. package/dist/versioned-package/components/popup/popup.d.ts +1 -1
  110. package/dist/versioned-package/components/popup/popup.js +1 -1
  111. package/dist/versioned-package/components/radio/radio.d.ts +1 -1
  112. package/dist/versioned-package/components/radio/radio.js +2 -2
  113. package/dist/versioned-package/components/radio-button/radio-button.d.ts +1 -1
  114. package/dist/versioned-package/components/radio-button/radio-button.js +2 -2
  115. package/dist/versioned-package/components/radio-group/radio-group.d.ts +2 -2
  116. package/dist/versioned-package/components/radio-group/radio-group.js +13 -13
  117. package/dist/versioned-package/components/scrollable/scrollable.d.ts +1 -1
  118. package/dist/versioned-package/components/scrollable/scrollable.js +3 -3
  119. package/dist/versioned-package/components/select/select.d.ts +6 -5
  120. package/dist/versioned-package/components/select/select.js +25 -25
  121. package/dist/versioned-package/components/spinner/spinner.d.ts +3 -2
  122. package/dist/versioned-package/components/spinner/spinner.js +1 -1
  123. package/dist/versioned-package/components/step/step.d.ts +1 -1
  124. package/dist/versioned-package/components/step/step.js +5 -5
  125. package/dist/versioned-package/components/step-group/step-group.d.ts +1 -1
  126. package/dist/versioned-package/components/step-group/step-group.js +2 -2
  127. package/dist/versioned-package/components/switch/switch.d.ts +1 -1
  128. package/dist/versioned-package/components/switch/switch.js +1 -1
  129. package/dist/versioned-package/components/tab/tab.d.ts +1 -1
  130. package/dist/versioned-package/components/tab/tab.js +2 -2
  131. package/dist/versioned-package/components/tab-group/tab-group.d.ts +3 -2
  132. package/dist/versioned-package/components/tab-group/tab-group.js +13 -13
  133. package/dist/versioned-package/components/tab-panel/tab-panel.d.ts +1 -1
  134. package/dist/versioned-package/components/tab-panel/tab-panel.js +2 -2
  135. package/dist/versioned-package/components/tag/tag.d.ts +1 -1
  136. package/dist/versioned-package/components/tag/tag.js +2 -2
  137. package/dist/versioned-package/components/teaser/teaser.js +1 -1
  138. package/dist/versioned-package/components/teaser-media/teaser-media.js +1 -1
  139. package/dist/versioned-package/components/textarea/textarea.d.ts +1 -1
  140. package/dist/versioned-package/components/textarea/textarea.js +2 -2
  141. package/dist/versioned-package/components/tooltip/tooltip.d.ts +3 -2
  142. package/dist/versioned-package/components/tooltip/tooltip.js +5 -5
  143. package/dist/versioned-package/components/video/video.d.ts +1 -1
  144. package/dist/versioned-package/components/video/video.js +2 -2
  145. package/dist/versioned-package/internal/form.js +3 -3
  146. package/dist/versioned-package/styles/headline/headline.css.js +1 -1
  147. package/dist/versioned-package/utilities/autocomplete-config.js +4 -4
  148. package/dist/versioned-package/utilities/localize.d.ts +10 -0
  149. package/dist/versioned-package/utilities/localize.js +45 -0
  150. package/dist/versioned-styles/solid-styles.css +1 -1
  151. package/dist/vscode.html-custom-data.json +41 -41
  152. package/dist/web-types.json +42 -50
  153. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- var t,e;t=this,e=function(t){var e,i;const o={name:"default",resolver:t=>{const e=t.split("/");return("content"===e[0]||"system"===e[0])&&(t="union-investment/"+t),`https://fe-celum-icons-prod.azureedge.net/${t}.svg`},mutator:t=>{const e={currentColorFills:[],currentColorStrokes:[],greenFills:[],greenStrokes:[]};return e.currentColorFills=t.querySelectorAll('[fill="#00358e" i]'),e.currentColorStrokes=t.querySelectorAll('[stroke="#00358e" i]'),e.greenFills=t.querySelectorAll('[fill="#43b02a" i]'),e.greenStrokes=t.querySelectorAll('[stroke="#43b02a" i]'),e.currentColorFills.forEach((t=>{t.setAttribute("fill","currentColor")})),e.currentColorStrokes.forEach((t=>{t.setAttribute("stroke","currentColor")})),e.greenFills.forEach((t=>{t.setAttribute("fill","rgb(var(--sd-color-accent, 67 176 42) / var(--tw-bg-opacity, 1))")})),e.greenStrokes.forEach((t=>{t.setAttribute("stroke","rgb(var(--sd-color-accent, 67 176 42) / var(--tw-bg-opacity, 1))")})),t}},r=Object.freeze(Object.defineProperty({__proto__:null,default:o},Symbol.toStringTag,{value:"Module"})),s={calendar:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M21 2H3a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1ZM6 4v1.667a1 1 0 0 0 2 0V4h8v1.667a1 1 0 0 0 2 0V4h2v4H4V4h2ZM4 20V10h16v10H4Z"/>\n <path d="m7.603 13.263.597.81.31-.25c.31-.25.593-.49.733-.63h.017c-.017.333-.033 1.14-.033 1.647V18h1.223v-6.03H9.353l-1.75 1.293ZM14.667 11.867c-1.543 0-2.26 1-2.26 3.163 0 1.9.667 3.063 2.217 3.063s2.193-1.18 2.193-3.13c-.017-2.063-.743-3.097-2.15-3.097v.001Zm-.044 5.333c-.647 0-1-.76-1-2.28 0-1.44.353-2.173 1-2.173s1 .743 1 2.233c0 1.49-.387 2.227-1.017 2.227l.017-.007Z"/>\n </svg>\n ',"chevron-down":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M20.257 6.333l-8.257 9.173-8.257-9.173c-0.181-0.181-0.431-0.292-0.707-0.292-0.552 0-1 0.448-1 1 0 0.238 0.083 0.456 0.222 0.628l-0.001-0.002 9 10c0.184 0.204 0.449 0.331 0.743 0.331s0.56-0.127 0.743-0.33l0.001-0.001 9-10c0.137-0.17 0.22-0.388 0.22-0.626 0-0.552-0.448-1-1-1-0.276 0-0.526 0.112-0.707 0.293v0z"></path>\n </svg>\n ',"chevron-up":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12.743 6.333c-0.188-0.195-0.452-0.316-0.743-0.316s-0.555 0.121-0.743 0.315l-0 0-9 10c-0.137 0.17-0.22 0.388-0.22 0.626 0 0.552 0.448 1 1 1 0.276 0 0.526-0.112 0.707-0.293v0l8.257-9.173 8.257 9.173c0.181 0.181 0.431 0.292 0.707 0.292 0.552 0 1-0.448 1-1 0-0.238-0.083-0.456-0.222-0.628l0.001 0.002z"></path>\n </svg>\n ',clock:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M13 11.587V8a1 1 0 0 0-2 0v4c0 .07.007.138.021.203l-.001-.006a.855.855 0 0 0 .029.093l-.002-.006c0 .033 0 .067.03.1a.709.709 0 0 0 .055.103l-.002-.003.037.07c.04.057.081.107.127.153l2.827 2.83a1.002 1.002 0 0 0 1.417-1.417L13 11.587Z"/>\n <path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z"/>\n </svg>\n ',close:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M21.707 2.293a1 1 0 0 0-1.414 0L12 10.586 3.707 2.293a1 1 0 0 0-1.413 1.414l-.001-.001 8.293 8.293-8.293 8.293a1 1 0 0 0 0 1.414 1 1 0 0 0 1.414 0L12 13.413l8.293 8.293a1 1 0 0 0 1.414 0 1 1 0 0 0 0-1.414l-8.293-8.293 8.293-8.293a1 1 0 0 0 0-1.414z"/></svg>\n </svg>\n ',"closing-round":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z"/>\n <path d="M16.373 7.627a1 1 0 0 0-1.414 0l-2.96 2.96-2.96-2.96a1 1 0 0 0-1.413 1.414l-.001-.001 2.96 2.96-2.96 2.96a1 1 0 0 0 1.414 1.414l2.96-2.96 2.96 2.96a1 1 0 0 0 1.414-1.414L13.413 12l2.96-2.96a1 1 0 0 0 0-1.414v.001Z"/>\n </svg>',eye:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 18.96c-5.263 0-10-5.68-10-6.96 0-1.28 4.737-6.96 10-6.96S22 10.72 22 12c0 1.28-4.737 6.96-10 6.96ZM4.1 12c.76 1.197 4.07 4.96 7.9 4.96s7.14-3.767 7.9-4.96c-.76-1.197-4.07-4.96-7.9-4.96S4.86 10.807 4.1 12Z"/>\n <path d="M12 16.107A4.11 4.11 0 0 1 7.893 12 4.11 4.11 0 0 1 12 7.893 4.11 4.11 0 0 1 16.107 12 4.11 4.11 0 0 1 12 16.107Zm0-6.21a2.107 2.107 0 1 0 0 4.213 2.107 2.107 0 0 0 0-4.213Z"/>\n </svg>\n ',"eye-crossed-out":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 16.107A4.11 4.11 0 0 1 7.893 12 4.11 4.11 0 0 1 12 7.893 4.11 4.11 0 0 1 16.107 12 4.11 4.11 0 0 1 12 16.107Zm0-6.21a2.107 2.107 0 1 0 0 4.213 2.107 2.107 0 0 0 0-4.213Z"/>\n <path d="M12 18.96c-5.263 0-10-5.68-10-6.96 0-1.28 4.737-6.96 10-6.96S22 10.72 22 12c0 1.28-4.737 6.96-10 6.96ZM4.1 12c.76 1.197 4.07 4.96 7.9 4.96s7.14-3.767 7.9-4.96c-.76-1.197-4.07-4.96-7.9-4.96S4.86 10.807 4.1 12Z"/>\n <path d="M3 22a1 1 0 0 1-.707-1.707l18-18a1 1 0 0 1 1.414 1.414l-18 18A.991.991 0 0 1 3 22Z"/>\n </svg>\n ',"info-circle":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z"/><path d="M13.333 7.833a1.5 1.5 0 1 1-3.001-.001 1.5 1.5 0 0 1 3.001.001ZM13 11.667a1 1 0 0 0-1-1h-1a1 1 0 0 0 0 2v2.667h2v-3.667Z"/><path d="M11 16.333v-1h-1a1 1 0 0 0 0 2h2a1 1 0 0 1-1-1Zm3-1h-1v1a1 1 0 0 1-1 1h2a1 1 0 0 0 0-2Z"/><path d="M13 16.333v-1h-2v1a1 1 0 0 0 2 0Z"/></svg>',"status-check":'\n <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 12 13">\n <path fill="currentColor" d="m9.947 1.138-.005.008-.001.003-5.56 8.34-2.434-2.447-.004-.004a.648.648 0 0 0-1.093.475c0 .172.066.328.175.444l.003.004 3 2.999c.117.117.28.19.46.19h.065c.2-.021.37-.13.475-.286l.005-.008.001-.002 5.994-8.992a.65.65 0 0 0-.18-.902l-.007-.005-.002-.002a.65.65 0 0 0-.892.185Z"/>\n </svg>\n ',"status-minus":'\n <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none">\n <path d="M10 5.375H2C1.65496 5.375 1.375 5.65496 1.375 6C1.375 6.34504 1.65496 6.625 2 6.625H10C10.345 6.625 10.625 6.34504 10.625 6C10.625 5.65496 10.345 5.375 10 5.375Z" fill="currentColor"/>\n </svg>\n ',pause:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M9 22a.99997.99997 0 0 0 1-1V3a1.00003 1.00003 0 0 0-1-1H5a1.00003 1.00003 0 0 0-1 1v18a.99997.99997 0 0 0 1 1h4ZM6 4h2v16H6V4ZM19 22c.2652 0 .5196-.1054.7071-.2929A1.0001 1.0001 0 0 0 20 21V3a.99997.99997 0 0 0-1-1h-4a.99997.99997 0 0 0-1 1v18c0 .2652.1054.5196.2929.7071S14.7348 22 15 22h4ZM16 4h2v16h-2V4Z"/>\n </svg>\n ',risk:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12.893 2.553a1.002 1.002 0 0 0-1.784-.006L2.106 20.553A1 1 0 0 0 3 22h18a1 1 0 0 0 .891-1.452l.003.006-9.001-18.001ZM4.617 20 12 5.237 19.383 20H4.617Z"/>\n <path d="M11 10.667V15a1 1 0 0 0 2 0v-4.333a1 1 0 0 0-2 0ZM13 18a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"/>\n </svg>\n ',start:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">\n <path d="m57.44 29.76-37.333-24A2.667 2.667 0 0 0 16 8v48a2.668 2.668 0 0 0 2.667 2.666 2.672 2.672 0 0 0 1.45-.431l-.01.005 37.333-24a2.67 2.67 0 0 0 1.192-2.221c0-.923-.47-1.74-1.184-2.216l-.01-.006.002-.037ZM21.333 51.112V12.89l29.734 19.112-29.734 19.11Z"/>\n </svg>\n ',"confirm-circle":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z"/><path d="M15.843 7.473a.999.999 0 0 0-1.367.329l-.002.004-3.667 6.223-1.757-1.753a1 1 0 0 0-1.413 1.414l-.001-.001 2.667 2.667a.997.997 0 0 0 .695.31h.128c.314-.042.578-.223.731-.479l.003-.005 4.333-7.333a1 1 0 0 0-.345-1.374l-.005-.003v.001Z"/></svg>',warning:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12.893 2.55295C12.725 2.22395 12.388 2.00195 12 2.00195C11.612 2.00195 11.275 2.22295 11.109 2.54695L2.10598 20.553C2.03998 20.683 2.00098 20.837 2.00098 21C2.00098 21.552 2.44798 21.999 2.99998 22H21C21.552 21.999 21.999 21.552 21.999 21C21.999 20.837 21.96 20.683 21.891 20.548L21.894 20.554L12.893 2.55295ZM4.61698 20L12 5.23695L19.383 20H4.61698Z"/><path d="M11 10.667V15C11 15.552 11.448 16 12 16C12.552 16 13 15.552 13 15V10.667C13 10.115 12.552 9.66695 12 9.66695C11.448 9.66695 11 10.115 11 10.667Z"/><path d="M13 18C13 18.552 12.552 19 12 19C11.448 19 11 18.552 11 18C11 17.448 11.448 17 12 17C12.552 17 13 17.448 13 18Z"/></svg>',"exclamation-circle":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 17C13 17.552 12.552 18 12 18C11.448 18 11 17.552 11 17C11 16.448 11.448 16 12 16C12.552 16 13 16.448 13 17Z"/><path d="M12 6C11.448 6 11 6.448 11 7V13C11 13.552 11.448 14 12 14C12.552 14 13 13.552 13 13V7C13 6.448 12.552 6 12 6Z"/><path d="M12 2C6.477 2 2 6.477 2 12C2 17.523 6.477 22 12 22C17.523 22 22 17.523 22 12C22 6.477 17.523 2 12 2ZM12 20C7.582 20 4 16.418 4 12C4 7.582 7.582 4 12 4C16.418 4 20 7.582 20 12C20 16.418 16.418 20 12 20Z"/></svg>',"magnifying-glass":'\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M21.707 20.293l-6.967-6.96c-0.046-0.046-0.096-0.087-0.15-0.124l-0.004-0.002c0.882-1.162 1.413-2.632 1.413-4.227 0-3.881-3.146-7.027-7.027-7.027s-7.027 3.146-7.027 7.027c0 3.881 3.146 7.027 7.027 7.027 1.594 0 3.065-0.531 4.244-1.426l-0.017 0.013c0.039 0.057 0.081 0.107 0.127 0.153l6.967 6.967c0.181 0.181 0.431 0.292 0.707 0.292s0.526-0.112 0.707-0.292v0c0.183-0.181 0.296-0.432 0.296-0.71s-0.113-0.529-0.296-0.71l-0-0zM9 14c-2.761 0-5-2.239-5-5s2.239-5 5-5c2.761 0 5 2.239 5 5v0c0 2.761-2.239 5-5 5v0z"></path></svg>'},a={name:"system",resolver:t=>t in s?`data:image/svg+xml,${encodeURIComponent(s[t])}`:"",mutator:t=>t.setAttribute("fill","currentColor")},n=Object.freeze(Object.defineProperty({__proto__:null,default:a,icons:s},Symbol.toStringTag,{value:"Module"}));let l=[a,o],d=[];function h(t){d.push(t)}function c(t){d=d.filter((e=>e!==t))}function p(t){return l.find((e=>e.name===t))}function u(t,e){b(t),l.push({name:t,resolver:e.resolver,mutator:e.mutator}),d.forEach((e=>{e.library===t&&e.setIcon()}))}function b(t){l=l.filter((e=>e.name!==t))}const v=Object.freeze(Object.defineProperty({__proto__:null,getIconLibrary:p,registerIconLibrary:u,unregisterIconLibrary:b,unwatchIcon:c,watchIcon:h},Symbol.toStringTag,{value:"Module"})),g=new Set,m=new MutationObserver(C),y=new Map;let f,w=document.documentElement.dir||"ltr",x=document.documentElement.lang||navigator.language;function k(...t){t.map((t=>{const e=t.$code.toLowerCase();y.has(e)?y.set(e,Object.assign(Object.assign({},y.get(e)),t)):y.set(e,t),f||(f=t)})),C()}function C(){w=document.documentElement.dir||"ltr",x=document.documentElement.lang||navigator.language,[...g.keys()].map((t=>{"function"==typeof t.requestUpdate&&t.requestUpdate()}))}m.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]});let $=class{constructor(t){this.host=t,this.host.addController(this)}hostConnected(){g.add(this.host)}hostDisconnected(){g.delete(this.host)}dir(){return`${this.host.dir||w}`.toLowerCase()}lang(){return`${this.host.lang||x}`.toLowerCase()}getTranslationData(t){var e,i;const o=new Intl.Locale(t.replace(/_/g,"-")),r=null==o?void 0:o.language.toLowerCase(),s=null!==(i=null===(e=null==o?void 0:o.region)||void 0===e?void 0:e.toLowerCase())&&void 0!==i?i:"";return{locale:o,language:r,region:s,primary:y.get(`${r}-${s}`),secondary:y.get(r)}}exists(t,e){var i;const{primary:o,secondary:r}=this.getTranslationData(null!==(i=e.lang)&&void 0!==i?i:this.lang());return e=Object.assign({includeFallback:!1},e),!!(o&&o[t]||r&&r[t]||e.includeFallback&&f&&f[t])}term(t,...e){const{primary:i,secondary:o}=this.getTranslationData(this.lang());let r;if(i&&i[t])r=i[t];else if(o&&o[t])r=o[t];else{if(!f||!f[t])return console.error(`No translation found for: ${String(t)}`),String(t);r=f[t]}return"function"==typeof r?r(...e):r}date(t,e){return t=new Date(t),new Intl.DateTimeFormat(this.lang(),e).format(t)}number(t,e){return t=Number(t),isNaN(t)?"":new Intl.NumberFormat(this.lang(),e).format(t)}relativeTime(t,e,i){return new Intl.RelativeTimeFormat(this.lang(),i).format(t,e)}};k({$code:"de",$name:"Deutsch",$dir:"ltr",carousel:"Karussell",clearEntry:"Eingabe löschen",close:"Schließen",copy:"Kopieren",numOptionsSelected:t=>0===t?"":`Optionen ausgewählt (${t})`,previousSlide:"Vorherige Folie",currentValue:"Aktueller Wert",goToSlide:(t,e)=>`Zu Folie ${t} von ${e} gehen`,hidePassword:"Passwort verbergen",loading:"Wird geladen",nextSlide:"Nächste Folie",progress:"Fortschritt",remove:"Entfernen",resize:"Größe ändern",scrollToEnd:"Zum Ende scrollen",scrollToStart:"Zum Anfang scrollen",selectAColorFromTheScreen:"Farbe vom Bildschirm auswählen",selectDefaultPlaceholder:"Bitte auswählen",showPassword:"Passwort anzeigen",slideNum:t=>`Folie ${t}`,toggleColorFormat:"Farbformat umschalten"}),k({$code:"en",$name:"English",$dir:"ltr",clearEntry:"Clear entry",close:"Close",copy:"Copy",numOptionsSelected:t=>0===t?"":`Options Selected (${t})`,currentValue:"Current value",hidePassword:"Hide password",loading:"Loading",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",selectDefaultPlaceholder:"Please select",showPassword:"Show password",toggleColorFormat:"Toggle color format",carousel:"Carousel",nextSlide:"Next slide",previousSlide:"Previous slide",goToSlide:(t,e)=>`Go to slide ${t} of ${e}`,slideNum:t=>`Slide ${t}`});class S extends ${}const z=Object.assign({"./components/accordion-group/accordion-group.ts":()=>Promise.resolve().then((()=>Me)),"./components/accordion/accordion.ts":()=>Promise.resolve().then((()=>Pe)),"./components/badge/badge.ts":()=>Promise.resolve().then((()=>Fe)),"./components/brandshape/brandshape.ts":()=>Promise.resolve().then((()=>qe)),"./components/button/button.ts":()=>Promise.resolve().then((()=>mi)),"./components/carousel-item/carousel-item.ts":()=>Promise.resolve().then((()=>fi)),"./components/carousel/autoplay-controller.ts":()=>Promise.resolve().then((()=>xi)),"./components/carousel/carousel.ts":()=>Promise.resolve().then((()=>Li)),"./components/carousel/scroll-controller.ts":()=>Promise.resolve().then((()=>_i)),"./components/checkbox-group/checkbox-group.ts":()=>Promise.resolve().then((()=>ji)),"./components/checkbox/checkbox.ts":()=>Promise.resolve().then((()=>Ki)),"./components/dialog/dialog.ts":()=>Promise.resolve().then((()=>so)),"./components/divider/divider.ts":()=>Promise.resolve().then((()=>co)),"./components/drawer/drawer.ts":()=>Promise.resolve().then((()=>mo)),"./components/dropdown/dropdown.ts":()=>Promise.resolve().then((()=>Er)),"./components/header/header.ts":()=>Promise.resolve().then((()=>Dr)),"./components/icon/icon.ts":()=>Promise.resolve().then((()=>ue)),"./components/icon/library.default.ts":()=>Promise.resolve().then((()=>r)),"./components/icon/library.system.ts":()=>Promise.resolve().then((()=>n)),"./components/icon/library.ts":()=>Promise.resolve().then((()=>v)),"./components/icon/request.ts":()=>Promise.resolve().then((()=>Wt)),"./components/include/include.ts":()=>Promise.resolve().then((()=>Vr)),"./components/include/request.ts":()=>Promise.resolve().then((()=>qt)),"./components/input/input.ts":()=>Promise.resolve().then((()=>qr)),"./components/link/link.ts":()=>Promise.resolve().then((()=>Xr)),"./components/map-marker/map-marker.ts":()=>Promise.resolve().then((()=>es)),"./components/navigation-item/navigation-item.ts":()=>Promise.resolve().then((()=>as)),"./components/notification/notification.ts":()=>Promise.resolve().then((()=>us)),"./components/option/option.ts":()=>Promise.resolve().then((()=>ys)),"./components/popup/popup.ts":()=>Promise.resolve().then((()=>$r)),"./components/radio-button/radio-button.ts":()=>Promise.resolve().then((()=>Cs)),"./components/radio-group/radio-group.ts":()=>Promise.resolve().then((()=>Vs)),"./components/radio/radio.ts":()=>Promise.resolve().then((()=>Ds)),"./components/scrollable/scrollable.ts":()=>Promise.resolve().then((()=>Ns)),"./components/select/select.ts":()=>Promise.resolve().then((()=>ta)),"./components/spinner/spinner.ts":()=>Promise.resolve().then((()=>Xe)),"./components/step-group/step-group.ts":()=>Promise.resolve().then((()=>sa)),"./components/step/step.ts":()=>Promise.resolve().then((()=>ha)),"./components/switch/switch.ts":()=>Promise.resolve().then((()=>va)),"./components/tab-group/tab-group.ts":()=>Promise.resolve().then((()=>wa)),"./components/tab-panel/tab-panel.ts":()=>Promise.resolve().then((()=>za)),"./components/tab/tab.ts":()=>Promise.resolve().then((()=>Ta)),"./components/tag/tag.ts":()=>Promise.resolve().then((()=>Ys)),"./components/teaser-media/teaser-media.ts":()=>Promise.resolve().then((()=>Ia)),"./components/teaser/teaser.ts":()=>Promise.resolve().then((()=>Ra)),"./components/textarea/textarea.ts":()=>Promise.resolve().then((()=>Za)),"./components/tooltip/tooltip.ts":()=>Promise.resolve().then((()=>Ja)),"./components/video/video.ts":()=>Promise.resolve().then((()=>rn))});Object.keys(z).forEach((t=>{z[t]()}));
1
+ var t,e;t=this,e=function(t){var e,i;const o={name:"default",resolver:t=>{const e=t.split("/");return("content"===e[0]||"system"===e[0])&&(t="union-investment/"+t),`https://fe-celum-icons-prod.azureedge.net/${t}.svg`},mutator:t=>{const e={currentColorFills:[],currentColorStrokes:[],greenFills:[],greenStrokes:[]};return e.currentColorFills=t.querySelectorAll('[fill="#00358e" i]'),e.currentColorStrokes=t.querySelectorAll('[stroke="#00358e" i]'),e.greenFills=t.querySelectorAll('[fill="#43b02a" i]'),e.greenStrokes=t.querySelectorAll('[stroke="#43b02a" i]'),e.currentColorFills.forEach((t=>{t.setAttribute("fill","currentColor")})),e.currentColorStrokes.forEach((t=>{t.setAttribute("stroke","currentColor")})),e.greenFills.forEach((t=>{t.setAttribute("fill","rgb(var(--sd-color-accent, 67 176 42) / var(--tw-bg-opacity, 1))")})),e.greenStrokes.forEach((t=>{t.setAttribute("stroke","rgb(var(--sd-color-accent, 67 176 42) / var(--tw-bg-opacity, 1))")})),t}},r=Object.freeze(Object.defineProperty({__proto__:null,default:o},Symbol.toStringTag,{value:"Module"})),s={calendar:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M21 2H3a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1ZM6 4v1.667a1 1 0 0 0 2 0V4h8v1.667a1 1 0 0 0 2 0V4h2v4H4V4h2ZM4 20V10h16v10H4Z"/>\n <path d="m7.603 13.263.597.81.31-.25c.31-.25.593-.49.733-.63h.017c-.017.333-.033 1.14-.033 1.647V18h1.223v-6.03H9.353l-1.75 1.293ZM14.667 11.867c-1.543 0-2.26 1-2.26 3.163 0 1.9.667 3.063 2.217 3.063s2.193-1.18 2.193-3.13c-.017-2.063-.743-3.097-2.15-3.097v.001Zm-.044 5.333c-.647 0-1-.76-1-2.28 0-1.44.353-2.173 1-2.173s1 .743 1 2.233c0 1.49-.387 2.227-1.017 2.227l.017-.007Z"/>\n </svg>\n ',"chevron-down":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M20.257 6.333l-8.257 9.173-8.257-9.173c-0.181-0.181-0.431-0.292-0.707-0.292-0.552 0-1 0.448-1 1 0 0.238 0.083 0.456 0.222 0.628l-0.001-0.002 9 10c0.184 0.204 0.449 0.331 0.743 0.331s0.56-0.127 0.743-0.33l0.001-0.001 9-10c0.137-0.17 0.22-0.388 0.22-0.626 0-0.552-0.448-1-1-1-0.276 0-0.526 0.112-0.707 0.293v0z"></path>\n </svg>\n ',"chevron-up":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12.743 6.333c-0.188-0.195-0.452-0.316-0.743-0.316s-0.555 0.121-0.743 0.315l-0 0-9 10c-0.137 0.17-0.22 0.388-0.22 0.626 0 0.552 0.448 1 1 1 0.276 0 0.526-0.112 0.707-0.293v0l8.257-9.173 8.257 9.173c0.181 0.181 0.431 0.292 0.707 0.292 0.552 0 1-0.448 1-1 0-0.238-0.083-0.456-0.222-0.628l0.001 0.002z"></path>\n </svg>\n ',clock:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M13 11.587V8a1 1 0 0 0-2 0v4c0 .07.007.138.021.203l-.001-.006a.855.855 0 0 0 .029.093l-.002-.006c0 .033 0 .067.03.1a.709.709 0 0 0 .055.103l-.002-.003.037.07c.04.057.081.107.127.153l2.827 2.83a1.002 1.002 0 0 0 1.417-1.417L13 11.587Z"/>\n <path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z"/>\n </svg>\n ',close:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M21.707 2.293a1 1 0 0 0-1.414 0L12 10.586 3.707 2.293a1 1 0 0 0-1.413 1.414l-.001-.001 8.293 8.293-8.293 8.293a1 1 0 0 0 0 1.414 1 1 0 0 0 1.414 0L12 13.413l8.293 8.293a1 1 0 0 0 1.414 0 1 1 0 0 0 0-1.414l-8.293-8.293 8.293-8.293a1 1 0 0 0 0-1.414z"/></svg>\n </svg>\n ',"closing-round":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z"/>\n <path d="M16.373 7.627a1 1 0 0 0-1.414 0l-2.96 2.96-2.96-2.96a1 1 0 0 0-1.413 1.414l-.001-.001 2.96 2.96-2.96 2.96a1 1 0 0 0 1.414 1.414l2.96-2.96 2.96 2.96a1 1 0 0 0 1.414-1.414L13.413 12l2.96-2.96a1 1 0 0 0 0-1.414v.001Z"/>\n </svg>',eye:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 18.96c-5.263 0-10-5.68-10-6.96 0-1.28 4.737-6.96 10-6.96S22 10.72 22 12c0 1.28-4.737 6.96-10 6.96ZM4.1 12c.76 1.197 4.07 4.96 7.9 4.96s7.14-3.767 7.9-4.96c-.76-1.197-4.07-4.96-7.9-4.96S4.86 10.807 4.1 12Z"/>\n <path d="M12 16.107A4.11 4.11 0 0 1 7.893 12 4.11 4.11 0 0 1 12 7.893 4.11 4.11 0 0 1 16.107 12 4.11 4.11 0 0 1 12 16.107Zm0-6.21a2.107 2.107 0 1 0 0 4.213 2.107 2.107 0 0 0 0-4.213Z"/>\n </svg>\n ',"eye-crossed-out":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 16.107A4.11 4.11 0 0 1 7.893 12 4.11 4.11 0 0 1 12 7.893 4.11 4.11 0 0 1 16.107 12 4.11 4.11 0 0 1 12 16.107Zm0-6.21a2.107 2.107 0 1 0 0 4.213 2.107 2.107 0 0 0 0-4.213Z"/>\n <path d="M12 18.96c-5.263 0-10-5.68-10-6.96 0-1.28 4.737-6.96 10-6.96S22 10.72 22 12c0 1.28-4.737 6.96-10 6.96ZM4.1 12c.76 1.197 4.07 4.96 7.9 4.96s7.14-3.767 7.9-4.96c-.76-1.197-4.07-4.96-7.9-4.96S4.86 10.807 4.1 12Z"/>\n <path d="M3 22a1 1 0 0 1-.707-1.707l18-18a1 1 0 0 1 1.414 1.414l-18 18A.991.991 0 0 1 3 22Z"/>\n </svg>\n ',"info-circle":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z"/><path d="M13.333 7.833a1.5 1.5 0 1 1-3.001-.001 1.5 1.5 0 0 1 3.001.001ZM13 11.667a1 1 0 0 0-1-1h-1a1 1 0 0 0 0 2v2.667h2v-3.667Z"/><path d="M11 16.333v-1h-1a1 1 0 0 0 0 2h2a1 1 0 0 1-1-1Zm3-1h-1v1a1 1 0 0 1-1 1h2a1 1 0 0 0 0-2Z"/><path d="M13 16.333v-1h-2v1a1 1 0 0 0 2 0Z"/></svg>',"status-check":'\n <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 12 13">\n <path fill="currentColor" d="m9.947 1.138-.005.008-.001.003-5.56 8.34-2.434-2.447-.004-.004a.648.648 0 0 0-1.093.475c0 .172.066.328.175.444l.003.004 3 2.999c.117.117.28.19.46.19h.065c.2-.021.37-.13.475-.286l.005-.008.001-.002 5.994-8.992a.65.65 0 0 0-.18-.902l-.007-.005-.002-.002a.65.65 0 0 0-.892.185Z"/>\n </svg>\n ',"status-minus":'\n <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none">\n <path d="M10 5.375H2C1.65496 5.375 1.375 5.65496 1.375 6C1.375 6.34504 1.65496 6.625 2 6.625H10C10.345 6.625 10.625 6.34504 10.625 6C10.625 5.65496 10.345 5.375 10 5.375Z" fill="currentColor"/>\n </svg>\n ',pause:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M9 22a.99997.99997 0 0 0 1-1V3a1.00003 1.00003 0 0 0-1-1H5a1.00003 1.00003 0 0 0-1 1v18a.99997.99997 0 0 0 1 1h4ZM6 4h2v16H6V4ZM19 22c.2652 0 .5196-.1054.7071-.2929A1.0001 1.0001 0 0 0 20 21V3a.99997.99997 0 0 0-1-1h-4a.99997.99997 0 0 0-1 1v18c0 .2652.1054.5196.2929.7071S14.7348 22 15 22h4ZM16 4h2v16h-2V4Z"/>\n </svg>\n ',risk:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12.893 2.553a1.002 1.002 0 0 0-1.784-.006L2.106 20.553A1 1 0 0 0 3 22h18a1 1 0 0 0 .891-1.452l.003.006-9.001-18.001ZM4.617 20 12 5.237 19.383 20H4.617Z"/>\n <path d="M11 10.667V15a1 1 0 0 0 2 0v-4.333a1 1 0 0 0-2 0ZM13 18a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"/>\n </svg>\n ',start:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">\n <path d="m57.44 29.76-37.333-24A2.667 2.667 0 0 0 16 8v48a2.668 2.668 0 0 0 2.667 2.666 2.672 2.672 0 0 0 1.45-.431l-.01.005 37.333-24a2.67 2.67 0 0 0 1.192-2.221c0-.923-.47-1.74-1.184-2.216l-.01-.006.002-.037ZM21.333 51.112V12.89l29.734 19.112-29.734 19.11Z"/>\n </svg>\n ',"confirm-circle":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z"/><path d="M15.843 7.473a.999.999 0 0 0-1.367.329l-.002.004-3.667 6.223-1.757-1.753a1 1 0 0 0-1.413 1.414l-.001-.001 2.667 2.667a.997.997 0 0 0 .695.31h.128c.314-.042.578-.223.731-.479l.003-.005 4.333-7.333a1 1 0 0 0-.345-1.374l-.005-.003v.001Z"/></svg>',warning:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12.893 2.55295C12.725 2.22395 12.388 2.00195 12 2.00195C11.612 2.00195 11.275 2.22295 11.109 2.54695L2.10598 20.553C2.03998 20.683 2.00098 20.837 2.00098 21C2.00098 21.552 2.44798 21.999 2.99998 22H21C21.552 21.999 21.999 21.552 21.999 21C21.999 20.837 21.96 20.683 21.891 20.548L21.894 20.554L12.893 2.55295ZM4.61698 20L12 5.23695L19.383 20H4.61698Z"/><path d="M11 10.667V15C11 15.552 11.448 16 12 16C12.552 16 13 15.552 13 15V10.667C13 10.115 12.552 9.66695 12 9.66695C11.448 9.66695 11 10.115 11 10.667Z"/><path d="M13 18C13 18.552 12.552 19 12 19C11.448 19 11 18.552 11 18C11 17.448 11.448 17 12 17C12.552 17 13 17.448 13 18Z"/></svg>',"exclamation-circle":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 17C13 17.552 12.552 18 12 18C11.448 18 11 17.552 11 17C11 16.448 11.448 16 12 16C12.552 16 13 16.448 13 17Z"/><path d="M12 6C11.448 6 11 6.448 11 7V13C11 13.552 11.448 14 12 14C12.552 14 13 13.552 13 13V7C13 6.448 12.552 6 12 6Z"/><path d="M12 2C6.477 2 2 6.477 2 12C2 17.523 6.477 22 12 22C17.523 22 22 17.523 22 12C22 6.477 17.523 2 12 2ZM12 20C7.582 20 4 16.418 4 12C4 7.582 7.582 4 12 4C16.418 4 20 7.582 20 12C20 16.418 16.418 20 12 20Z"/></svg>',"magnifying-glass":'\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M21.707 20.293l-6.967-6.96c-0.046-0.046-0.096-0.087-0.15-0.124l-0.004-0.002c0.882-1.162 1.413-2.632 1.413-4.227 0-3.881-3.146-7.027-7.027-7.027s-7.027 3.146-7.027 7.027c0 3.881 3.146 7.027 7.027 7.027 1.594 0 3.065-0.531 4.244-1.426l-0.017 0.013c0.039 0.057 0.081 0.107 0.127 0.153l6.967 6.967c0.181 0.181 0.431 0.292 0.707 0.292s0.526-0.112 0.707-0.292v0c0.183-0.181 0.296-0.432 0.296-0.71s-0.113-0.529-0.296-0.71l-0-0zM9 14c-2.761 0-5-2.239-5-5s2.239-5 5-5c2.761 0 5 2.239 5 5v0c0 2.761-2.239 5-5 5v0z"></path></svg>'},a={name:"system",resolver:t=>t in s?`data:image/svg+xml,${encodeURIComponent(s[t])}`:"",mutator:t=>t.setAttribute("fill","currentColor")},n=Object.freeze(Object.defineProperty({__proto__:null,default:a,icons:s},Symbol.toStringTag,{value:"Module"}));let l=[a,o],d=[];function h(t){d.push(t)}function c(t){d=d.filter((e=>e!==t))}function p(t){return l.find((e=>e.name===t))}function u(t,e){b(t),l.push({name:t,resolver:e.resolver,mutator:e.mutator}),d.forEach((e=>{e.library===t&&e.setIcon()}))}function b(t){l=l.filter((e=>e.name!==t))}const v=Object.freeze(Object.defineProperty({__proto__:null,getIconLibrary:p,registerIconLibrary:u,unregisterIconLibrary:b,unwatchIcon:c,watchIcon:h},Symbol.toStringTag,{value:"Module"})),g=new Set,m=new MutationObserver(C),y=new Map;let f,w=document.documentElement.dir||"ltr",x=document.documentElement.lang||navigator.language;function k(...t){t.map((t=>{const e=t.$code.toLowerCase();y.has(e)?y.set(e,Object.assign(Object.assign({},y.get(e)),t)):y.set(e,t),f||(f=t)})),C()}function C(){w=document.documentElement.dir||"ltr",x=document.documentElement.lang||navigator.language,[...g.keys()].map((t=>{"function"==typeof t.requestUpdate&&t.requestUpdate()}))}m.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]});let $=class{constructor(t){this.host=t,this.host.addController(this)}hostConnected(){g.add(this.host)}hostDisconnected(){g.delete(this.host)}dir(){return`${this.host.dir||w}`.toLowerCase()}lang(){return`${this.host.lang||x}`.toLowerCase()}getTranslationData(t){var e,i;const o=new Intl.Locale(t.replace(/_/g,"-")),r=null==o?void 0:o.language.toLowerCase(),s=null!==(i=null===(e=null==o?void 0:o.region)||void 0===e?void 0:e.toLowerCase())&&void 0!==i?i:"";return{locale:o,language:r,region:s,primary:y.get(`${r}-${s}`),secondary:y.get(r)}}exists(t,e){var i;const{primary:o,secondary:r}=this.getTranslationData(null!==(i=e.lang)&&void 0!==i?i:this.lang());return e=Object.assign({includeFallback:!1},e),!!(o&&o[t]||r&&r[t]||e.includeFallback&&f&&f[t])}term(t,...e){const{primary:i,secondary:o}=this.getTranslationData(this.lang());let r;if(i&&i[t])r=i[t];else if(o&&o[t])r=o[t];else{if(!f||!f[t])return console.error(`No translation found for: ${String(t)}`),String(t);r=f[t]}return"function"==typeof r?r(...e):r}date(t,e){return t=new Date(t),new Intl.DateTimeFormat(this.lang(),e).format(t)}number(t,e){return t=Number(t),isNaN(t)?"":new Intl.NumberFormat(this.lang(),e).format(t)}relativeTime(t,e,i){return new Intl.RelativeTimeFormat(this.lang(),i).format(t,e)}};k({$code:"de",$name:"Deutsch",$dir:"ltr",carousel:"Karussell",clearEntry:"Eingabe löschen",close:"Schließen",copy:"Kopieren",numOptionsSelected:t=>0===t?"":`Optionen ausgewählt (${t})`,previousSlide:"Vorherige Folie",currentValue:"Aktueller Wert",goToSlide:(t,e)=>`Zu Folie ${t} von ${e} gehen`,hidePassword:"Passwort verbergen",loading:"Wird geladen",nextSlide:"Nächste Folie",progress:"Fortschritt",remove:"Entfernen",resize:"Größe ändern",scrollToEnd:"Zum Ende scrollen",scrollToStart:"Zum Anfang scrollen",selectAColorFromTheScreen:"Farbe vom Bildschirm auswählen",selectDefaultPlaceholder:"Bitte auswählen",showPassword:"Passwort anzeigen",slideNum:t=>`Folie ${t}`,toggleColorFormat:"Farbformat umschalten"}),k({$code:"en",$name:"English",$dir:"ltr",clearEntry:"Clear entry",close:"Close",copy:"Copy",numOptionsSelected:t=>0===t?"":`Options Selected (${t})`,currentValue:"Current value",hidePassword:"Hide password",loading:"Loading",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",selectDefaultPlaceholder:"Please select",showPassword:"Show password",toggleColorFormat:"Toggle color format",carousel:"Carousel",nextSlide:"Next slide",previousSlide:"Previous slide",goToSlide:(t,e)=>`Go to slide ${t} of ${e}`,slideNum:t=>`Slide ${t}`});class S extends ${constructor(t){super(t),this._instanceTranslations=null}get instanceTranslations(){return this._instanceTranslations}set instanceTranslations(t){this._instanceTranslations=t,this.host.requestUpdate()}hostConnected(){super.hostConnected(),this.setCustomLocalizationFromData(),new MutationObserver((()=>this.setCustomLocalizationFromData())).observe(this.host,{attributes:!0,attributeFilter:["data-custom-localization"]})}hostDisconnected(){super.hostDisconnected()}setCustomLocalizationFromData(){const t=this.host.dataset.customLocalization;if(t)try{this.setCustomLocalization(JSON.parse(t))}catch(t){console.error("Error parsing custom-localization attribute:",t)}}term(t,...e){const i=this.instanceTranslations&&this.instanceTranslations[t];return i?"function"==typeof i?i(...e):i:super.term(t,...e)}setCustomLocalization(t){this.instanceTranslations={...this.instanceTranslations,...t}}}const z=Object.assign({"./components/accordion-group/accordion-group.ts":()=>Promise.resolve().then((()=>Me)),"./components/accordion/accordion.ts":()=>Promise.resolve().then((()=>Pe)),"./components/badge/badge.ts":()=>Promise.resolve().then((()=>Fe)),"./components/brandshape/brandshape.ts":()=>Promise.resolve().then((()=>qe)),"./components/button/button.ts":()=>Promise.resolve().then((()=>mi)),"./components/carousel-item/carousel-item.ts":()=>Promise.resolve().then((()=>fi)),"./components/carousel/autoplay-controller.ts":()=>Promise.resolve().then((()=>xi)),"./components/carousel/carousel.ts":()=>Promise.resolve().then((()=>Li)),"./components/carousel/scroll-controller.ts":()=>Promise.resolve().then((()=>_i)),"./components/checkbox-group/checkbox-group.ts":()=>Promise.resolve().then((()=>ji)),"./components/checkbox/checkbox.ts":()=>Promise.resolve().then((()=>Ki)),"./components/dialog/dialog.ts":()=>Promise.resolve().then((()=>so)),"./components/divider/divider.ts":()=>Promise.resolve().then((()=>co)),"./components/drawer/drawer.ts":()=>Promise.resolve().then((()=>mo)),"./components/dropdown/dropdown.ts":()=>Promise.resolve().then((()=>Er)),"./components/header/header.ts":()=>Promise.resolve().then((()=>Dr)),"./components/icon/icon.ts":()=>Promise.resolve().then((()=>ue)),"./components/icon/library.default.ts":()=>Promise.resolve().then((()=>r)),"./components/icon/library.system.ts":()=>Promise.resolve().then((()=>n)),"./components/icon/library.ts":()=>Promise.resolve().then((()=>v)),"./components/icon/request.ts":()=>Promise.resolve().then((()=>Wt)),"./components/include/include.ts":()=>Promise.resolve().then((()=>Vr)),"./components/include/request.ts":()=>Promise.resolve().then((()=>qt)),"./components/input/input.ts":()=>Promise.resolve().then((()=>qr)),"./components/link/link.ts":()=>Promise.resolve().then((()=>Xr)),"./components/map-marker/map-marker.ts":()=>Promise.resolve().then((()=>es)),"./components/navigation-item/navigation-item.ts":()=>Promise.resolve().then((()=>as)),"./components/notification/notification.ts":()=>Promise.resolve().then((()=>us)),"./components/option/option.ts":()=>Promise.resolve().then((()=>ys)),"./components/popup/popup.ts":()=>Promise.resolve().then((()=>$r)),"./components/radio-button/radio-button.ts":()=>Promise.resolve().then((()=>Cs)),"./components/radio-group/radio-group.ts":()=>Promise.resolve().then((()=>Vs)),"./components/radio/radio.ts":()=>Promise.resolve().then((()=>Ds)),"./components/scrollable/scrollable.ts":()=>Promise.resolve().then((()=>Ns)),"./components/select/select.ts":()=>Promise.resolve().then((()=>ta)),"./components/spinner/spinner.ts":()=>Promise.resolve().then((()=>Xe)),"./components/step-group/step-group.ts":()=>Promise.resolve().then((()=>sa)),"./components/step/step.ts":()=>Promise.resolve().then((()=>ha)),"./components/switch/switch.ts":()=>Promise.resolve().then((()=>va)),"./components/tab-group/tab-group.ts":()=>Promise.resolve().then((()=>wa)),"./components/tab-panel/tab-panel.ts":()=>Promise.resolve().then((()=>za)),"./components/tab/tab.ts":()=>Promise.resolve().then((()=>Ta)),"./components/tag/tag.ts":()=>Promise.resolve().then((()=>Ys)),"./components/teaser-media/teaser-media.ts":()=>Promise.resolve().then((()=>Ia)),"./components/teaser/teaser.ts":()=>Promise.resolve().then((()=>Ra)),"./components/textarea/textarea.ts":()=>Promise.resolve().then((()=>Za)),"./components/tooltip/tooltip.ts":()=>Promise.resolve().then((()=>Ja)),"./components/video/video.ts":()=>Promise.resolve().then((()=>rn))});Object.keys(z).forEach((t=>{z[t]()}));
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2019 Google LLC
@@ -91,7 +91,7 @@ let Lt=class extends Y{constructor(){super(...arguments),this.renderOptions={hos
91
91
  * @license
92
92
  * Copyright 2020 Google LLC
93
93
  * SPDX-License-Identifier: BSD-3-Clause
94
- */})(t),e}});var Ri=Object.defineProperty,Hi=Object.getOwnPropertyDescriptor,Ni=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Hi(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ri(e,i,s),s};let qi=class extends ne{constructor(){super(...arguments),this.formControlController=new ei(this,{value:t=>t.checked?t.value||"on":void 0,defaultValue:t=>t.defaultChecked,setValue:(t,e)=>t.checked=e}),this.title="",this.name="",this.size="lg",this.disabled=!1,this.checked=!1,this.indeterminate=!1,this.defaultChecked=!1,this.form="",this.required=!1,this.showInvalidStyle=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,this.indeterminate=!1,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.disabled&&this.indeterminate?"disabledIndeterminate":this.disabled&&this.checked?"disabledChecked":this.disabled?"disabled":this.showInvalidStyle&&this.indeterminate?"invalidIndeterminate":this.showInvalidStyle?"invalid":this.checked||this.indeterminate?"filled":"default";return gt`<label part="base" class="${Se("sd-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",this.disabled&&"hover:cursor-not-allowed",{sm:"text-sm",lg:"text-base"}[this.size])}"><input class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" title="${this.title}" name="${this.name}" value="${pi(this.value)}" .indeterminate="${Ui(this.indeterminate)}" .checked="${Ui(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked?"true":"false"}" @click="${this.handleClick}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"> <span id="control" part="control ${this.checked?" control--checked":"control--unchecked"} ${this.indeterminate?" control--indeterminate":""}" class="${Se("relative flex flex-initial items-center justify-center border rounded-sm h-4 w-4\n peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2\n peer-focus-visible:outline-primary",{sm:"mt-[2px]",lg:"mt-[3px]"}[this.size],{disabledIndeterminate:"border-neutral-500 bg-neutral-500",disabledChecked:"border-neutral-500 bg-neutral-500",disabled:"border-neutral-500",invalidIndeterminate:"border-error bg-error group-hover:bg-error-400",invalid:"border-error group-hover:bg-neutral-200",filled:"border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",default:"border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[t])}">${this.checked?gt`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-icon>`:""} ${!this.checked&&this.indeterminate?gt`<sd-icon part="indeterminate-icon" class="text-white w-3 h-3" library="system" name="status-minus"></sd-icon>`:""} </span><span part="label" id="label" class="${Se("select-none inline-block ml-2",this.disabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};qi.styles=[ne.styles,L`:host{display:block}:host(:focus-visible){outline-width:0}:host([required]) #label::after{content:' *'}`],Ni([Ut('input[type="checkbox"]')],qi.prototype,"input",2),Ni([Ut("#invalid-message")],qi.prototype,"invalidMessage",2),Ni([jt()],qi.prototype,"title",2),Ni([jt()],qi.prototype,"name",2),Ni([jt()],qi.prototype,"value",2),Ni([jt({reflect:!0})],qi.prototype,"size",2),Ni([jt({type:Boolean,reflect:!0})],qi.prototype,"disabled",2),Ni([jt({type:Boolean,reflect:!0})],qi.prototype,"checked",2),Ni([jt({type:Boolean,reflect:!0})],qi.prototype,"indeterminate",2),Ni([Vi("checked")],qi.prototype,"defaultChecked",2),Ni([jt({reflect:!0})],qi.prototype,"form",2),Ni([jt({type:Boolean,reflect:!0})],qi.prototype,"required",2),Ni([Vt()],qi.prototype,"showInvalidStyle",2),Ni([ee("disabled",{waitUntilFirstUpdate:!0})],qi.prototype,"handleDisabledChange",1),Ni([ee(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],qi.prototype,"handleStateChange",1),qi=Ni([Mt("sd-checkbox")],qi);const Ki=Object.freeze(Object.defineProperty({__proto__:null,get default(){return qi}},Symbol.toStringTag,{value:"Module"})),Zi=new Set;function Wi(t){if(Zi.add(t),!document.body.classList.contains("sd-scroll-lock")){const t=function(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}();document.body.classList.add("sd-scroll-lock"),document.body.style.setProperty("--sd-scroll-lock-size",`${t}px`)}}function Yi(t){Zi.delete(t),0===Zi.size&&(document.body.classList.remove("sd-scroll-lock"),document.body.style.removeProperty("--sd-scrollbar-width"))}function Xi(t,e,i="vertical",o="smooth"){const r=function(t,e){return{top:Math.round(t.getBoundingClientRect().top-e.getBoundingClientRect().top),left:Math.round(t.getBoundingClientRect().left-e.getBoundingClientRect().left)}}(t,e),s=r.top+e.scrollTop,a=r.left+e.scrollLeft,n=e.scrollLeft,l=e.scrollLeft+e.offsetWidth,d=e.scrollTop,h=e.scrollTop+e.offsetHeight;("horizontal"===i||"both"===i)&&(a<n?e.scrollTo({left:a,behavior:o}):a+t.clientWidth>l&&e.scrollTo({left:a-e.offsetWidth+t.clientWidth,behavior:o})),("vertical"===i||"both"===i)&&(s<d?e.scrollTo({top:s,behavior:o}):s+t.clientHeight>h&&e.scrollTo({top:s-e.offsetHeight+t.clientHeight,behavior:o}))}function Gi(t){const e=t.tagName.toLowerCase();return!("-1"===t.getAttribute("tabindex")||t.hasAttribute("disabled")||t.hasAttribute("aria-disabled")&&"false"!==t.getAttribute("aria-disabled")||"input"===e&&"radio"===t.getAttribute("type")&&!t.hasAttribute("checked")||null===t.offsetParent||"hidden"===window.getComputedStyle(t).visibility)&&(!!(("audio"===e||"video"===e)&&t.hasAttribute("controls")||t.hasAttribute("tabindex")||t.hasAttribute("contenteditable")&&"false"!==t.getAttribute("contenteditable"))||["button","input","select","textarea","a","audio","video","summary"].includes(e))}function Ji(t){const e=[];return function t(i){i instanceof HTMLElement&&(e.push(i),null!==i.shadowRoot&&"open"===i.shadowRoot.mode&&t(i.shadowRoot)),[...i.children].forEach((e=>t(e)))}(t),{start:e.find((t=>Gi(t)))??null,end:e.reverse().find((t=>Gi(t)))??null}}let Qi=[];class to{constructor(t){this.tabDirection="forward",this.element=t,this.handleFocusIn=this.handleFocusIn.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this)}activate(){Qi.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){Qi=Qi.filter((t=>t!==this.element)),document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return Qi[Qi.length-1]===this.element}checkFocus(){if(this.isActive()&&!this.element.matches(":focus-within")){const{start:t,end:e}=Ji(this.element),i="forward"===this.tabDirection?t:e;"function"==typeof(null==i?void 0:i.focus)&&i.focus({preventScroll:!0})}}handleFocusIn(){this.checkFocus()}handleKeyDown(t){"Tab"===t.key&&t.shiftKey&&(this.tabDirection="backward",requestAnimationFrame((()=>this.checkFocus())))}handleKeyUp(){this.tabDirection="forward"}}var eo=Object.defineProperty,io=Object.getOwnPropertyDescriptor,oo=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?io(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&eo(e,i,s),s};let ro=class extends ne{constructor(){super(...arguments),this.hasSlotController=new si(this,"footer"),this.localize=new S(this),this.open=!1,this.headline="",this.noCloseButton=!1}connectedCallback(){super.connectedCallback(),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.modal=new to(this)}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),Wi(this))}disconnectedCallback(){super.disconnectedCallback(),Yi(this)}requestClose(t){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){const t=Ce(this,"dialog.denyClose",{dir:this.localize.dir()});be(this.panel,t.keyframes,t.options)}else this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}handleDocumentKeyDown(t){this.open&&"Escape"===t.key&&(t.stopPropagation(),this.requestClose("keyboard"))}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.modal.activate(),Wi(this);const t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([me(this.dialog),me(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame((()=>{this.emit("sd-initial-focus",{cancelable:!0}).defaultPrevented||(t?t.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),t&&t.setAttribute("autofocus","")}));const e=Ce(this,"dialog.show",{dir:this.localize.dir()}),i=Ce(this,"dialog.overlay.show",{dir:this.localize.dir()});await Promise.all([be(this.panel,e.keyframes,e.options),be(this.overlay,i.keyframes,i.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.modal.deactivate(),await Promise.all([me(this.dialog),me(this.overlay)]);const t=Ce(this,"dialog.hide",{dir:this.localize.dir()}),e=Ce(this,"dialog.overlay.hide",{dir:this.localize.dir()});await Promise.all([be(this.overlay,e.keyframes,e.options).then((()=>{this.overlay.hidden=!0})),be(this.panel,t.keyframes,t.options).then((()=>{this.panel.hidden=!0}))]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,Yi(this);const i=this.originalTrigger;"function"==typeof(null==i?void 0:i.focus)&&setTimeout((()=>i.focus())),this.emit("sd-after-hide")}}async show(){if(!this.open)return this.open=!0,$e(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,$e(this,"sd-after-hide")}render(){return gt`<div part="base" class="${Se("flex items-center justify-center fixed inset-0 z-dialog",this.hasSlotController.test("footer")&&"dialog--has-footer")}"><div part="overlay" class="fixed inset-0 bg-primary-800 opacity-90" @click="${()=>this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${Se("flex flex-col z-20 bg-white focus:outline-none py-4 sm:py-8 relative gap-6",this.open&&"flex opacity-100")}" role="dialog" aria-modal="true" aria-hidden="${this.open?"false":"true"}" aria-label="${this.headline}" aria-labelledby="title" tabindex="0"><header part="header" class="flex flex-grow-0 flex-shrink-0 basis-auto px-6 sm:px-10"><h2 part="title" class="flex-auto m-0" id="title">${this.headline.length>0?gt`<h4 class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</h4>`:gt`<slot name="headline"></slot>`}</h2>${this.noCloseButton?"":gt`<sd-button part="close-button" variant="tertiary" exportparts="base:close-button__base" class="${Se("absolute top-2 right-2")}" name="x-lg" @click="${()=>this.requestClose("close-button")}" type="button"><sd-icon name="close" library="system" color="currentColor"></sd-icon></sd-button>`}</header><main part="body" class="flex flex-auto overflow-auto w-full px-6 sm:px-10"><slot></slot></main><footer part="footer" class="flex flex-grow-0 flex-shrink-0 basis-auto ml-auto gap-4 px-6 sm:px-10"><slot name="footer"></slot></footer></div></div>`}};ro.styles=[ie,T(".sd-headline,.sd-prose :is(h1,h2,h3,h4,h5){display:flex;font-weight:700;--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity))}.sd-headline sd-icon,.sd-prose :is(h1,h2,h3,h4,h5) sd-icon{flex-shrink:0;font-size:3rem;--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity))}@media (min-width:640px){.sd-headline sd-icon,.sd-prose :is(h1,h2,h3,h4,h5) sd-icon{margin-top:var(--sd-spacing-2,.5rem)}}.sd-headline.sd-headline,.sd-headline:is(h1):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline){font-size:var(--sd-font-size-3xl,2rem);gap:var(--sd-spacing-4,1rem);line-height:var(--sd-line-height-tight,120%)}@media (min-width:640px){.sd-headline.sd-headline,.sd-headline:is(h1):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline){font-size:var(--sd-font-size-4xl,2.5rem)}}.sd-headline.sd-headline sd-icon,.sd-headline:is(h1):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline) sd-icon{margin-top:calc(var(--sd-spacing-1, .25rem)*-1)}@media (min-width:640px){.sd-headline.sd-headline sd-icon,.sd-headline:is(h1):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline) sd-icon{margin-top:var(--sd-spacing-0,0)}}.sd-headline.sd-headline--size-3xl,.sd-headline:is(h2):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline){font-size:var(--sd-font-size-2xl,1.75rem);gap:var(--sd-spacing-4,1rem);line-height:var(--sd-line-height-tight,120%)}@media (min-width:640px){.sd-headline.sd-headline--size-3xl,.sd-headline:is(h2):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline){font-size:var(--sd-font-size-3xl,2rem)}}.sd-headline.sd-headline--size-3xl sd-icon,.sd-headline:is(h2):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline) sd-icon{margin-top:calc(var(--sd-spacing-1, .25rem)*-1)}@media (min-width:640px){.sd-headline.sd-headline--size-3xl sd-icon,.sd-headline:is(h2):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline) sd-icon{margin-top:var(--sd-spacing-0,0)}}.sd-headline.sd-headline--size-base,.sd-headline.sd-headline--size-lg,.sd-headline.sd-headline--size-xl,.sd-headline:is(h3,h4,h5):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl,.sd-prose :is(h1,h2,h3,h4,h5):is(h3,h4,h5):not(.sd-headline){gap:var(--sd-spacing-2,.5rem);--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity))}.sd-headline.sd-headline--size-base sd-icon,.sd-headline.sd-headline--size-lg sd-icon,.sd-headline.sd-headline--size-xl sd-icon,.sd-headline:is(h3,h4,h5):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h3,h4,h5):not(.sd-headline) sd-icon{font-size:2rem}.sd-headline.sd-headline--size-xl,.sd-headline:is(h3):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl,.sd-prose :is(h1,h2,h3,h4,h5):is(h3):not(.sd-headline){font-size:var(--sd-font-size-xl,1.5rem)}.sd-headline.sd-headline--size-xl sd-icon,.sd-headline:is(h3):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h3):not(.sd-headline) sd-icon{margin-top:var(--sd-spacing-0-5,.125rem)}@media (min-width:640px){.sd-headline.sd-headline--size-xl sd-icon,.sd-headline:is(h3):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h3):not(.sd-headline) sd-icon{margin-top:var(--sd-spacing-0-5,.125rem)}}.sd-headline.sd-headline--size-base,.sd-headline.sd-headline--size-lg,.sd-headline:is(h4,h5):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg,.sd-prose :is(h1,h2,h3,h4,h5):is(h4,h5):not(.sd-headline){line-height:var(--sd-line-height-normal,150%)}.sd-headline.sd-headline--size-lg,.sd-headline:is(h4),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg,.sd-prose :is(h1,h2,h3,h4,h5):is(h4){font-size:var(--sd-font-size-lg,1.25rem)}.sd-headline.sd-headline--size-lg sd-icon,.sd-headline:is(h4) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h4) sd-icon{margin-top:var(--sd-spacing-0,0)}@media (min-width:640px){.sd-headline.sd-headline--size-lg sd-icon,.sd-headline:is(h4) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h4) sd-icon{margin-top:var(--sd-spacing-0,0)}}.sd-headline.sd-headline--size-base,.sd-headline:is(h5):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base,.sd-prose :is(h1,h2,h3,h4,h5):is(h5):not(.sd-headline){font-size:var(--sd-font-size-base,1rem)}.sd-headline.sd-headline--size-base sd-icon,.sd-headline:is(h5):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h5):not(.sd-headline) sd-icon{margin-top:calc(var(--sd-spacing-1, .25rem)*-1)}.sd-headline.sd-headline--size-base mark,.sd-headline:is(h5):not(.sd-headline) mark,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base mark,.sd-prose :is(h1,h2,h3,h4,h5):is(h5):not(.sd-headline) mark{color:inherit}.sd-headline--inline{display:inline-block}.sd-headline--inline sd-icon{margin-right:var(--sd-spacing-2,.5rem);margin-top:calc(var(--sd-spacing-1, .25rem)*-1);vertical-align:middle}.sd-headline--inline:is(.sd-headline--size-xl,.sd-headline--size-lg,.sd-headline--size-base) sd-icon{margin-right:var(--sd-spacing-0-5,.125rem)}.sd-headline--inverted:not(#\\\t),.sd-prose--inverted :is(h1,h2,h3,h4,h5):not(.sd-headline):not(#\\\t){--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity))}.sd-headline--inverted:not(#\\\t) sd-icon,.sd-prose--inverted :is(h1,h2,h3,h4,h5):not(.sd-headline):not(#\\\t) sd-icon{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity))}"),ne.styles,L`:host{--width:662px}[part=panel]{width:var(--width);max-height:80vh}[part=body]{-webkit-overflow-scrolling:touch}@media (max-width:414px){:host{--width:335px}[part=footer]{width:100%}}`],oo([Ut('[part="base"]')],ro.prototype,"dialog",2),oo([Ut('[part="panel"]')],ro.prototype,"panel",2),oo([Ut('[part="overlay"]')],ro.prototype,"overlay",2),oo([jt({type:Boolean,reflect:!0})],ro.prototype,"open",2),oo([jt({reflect:!0})],ro.prototype,"headline",2),oo([jt({attribute:"no-close-button",type:Boolean,reflect:!0})],ro.prototype,"noCloseButton",2),oo([ee("open",{waitUntilFirstUpdate:!0})],ro.prototype,"handleOpenChange",1),ro=oo([Mt("sd-dialog")],ro),ke("dialog.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),ke("dialog.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}}),ke("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}}),ke("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}}),ke("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});const so=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ro}},Symbol.toStringTag,{value:"Module"}));var ao=Object.defineProperty,no=Object.getOwnPropertyDescriptor,lo=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?no(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&ao(e,i,s),s};let ho=class extends ne{constructor(){super(...arguments),this.orientation="horizontal",this.inverted=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}render(){return gt`<hr part="main" class="${Se(this.inverted?"border-primary-400":"border-neutral-400","horizontal"===this.orientation?"border-t w-full":" border-l h-full")}">`}};ho.styles=[ie,ne.styles,L`:host{margin:var(--sd-spacing-0,0)}:host(sd-divider[orientation=horizontal]){display:block}:host(sd-divider[orientation=vertical]){display:inline-block}`],lo([jt({reflect:!0})],ho.prototype,"orientation",2),lo([jt({type:Boolean,reflect:!0})],ho.prototype,"inverted",2),ho=lo([Mt("sd-divider")],ho);const co=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ho}},Symbol.toStringTag,{value:"Module"}));function po(t){return t.charAt(0).toUpperCase()+t.slice(1)}var uo=Object.defineProperty,bo=Object.getOwnPropertyDescriptor,vo=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?bo(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&uo(e,i,s),s};let go=class extends ne{constructor(){super(...arguments),this.hasSlotController=new si(this,"footer"),this.localize=new S(this),this.modal=new to(this),this.open=!1,this.label="",this.placement="end",this.contained=!1,this.noHeader=!1,this.handleDocumentKeyDown=t=>{this.open&&"Escape"===t.key&&(t.stopPropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.drawer.hidden=!this.open,this.open&&(this.addOpenListeners(),this.contained||(this.modal.activate(),Wi(this)))}disconnectedCallback(){super.disconnectedCallback(),Yi(this)}requestClose(t){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){const t=Ce(this,"drawer.denyClose",{dir:this.localize.dir()});be(this.panel,t.keyframes,t.options)}else this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.contained||(this.modal.activate(),Wi(this));const t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([me(this.drawer),me(this.overlay)]),this.drawer.hidden=!1,requestAnimationFrame((()=>{this.emit("sd-initial-focus",{cancelable:!0}).defaultPrevented||(t?t.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),t&&t.setAttribute("autofocus","")}));const e=Ce(this,`drawer.show${po(this.placement)}`,{dir:this.localize.dir()}),i=Ce(this,"drawer.overlay.show",{dir:this.localize.dir()});await Promise.all([be(this.panel,e.keyframes,e.options),be(this.overlay,i.keyframes,i.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.contained||(this.modal.deactivate(),Yi(this)),await Promise.all([me(this.drawer),me(this.overlay)]);const t=Ce(this,`drawer.hide${po(this.placement)}`,{dir:this.localize.dir()}),e=Ce(this,"drawer.overlay.hide",{dir:this.localize.dir()});await Promise.all([be(this.overlay,e.keyframes,e.options).then((()=>{this.overlay.hidden=!0})),be(this.panel,t.keyframes,t.options).then((()=>{this.panel.hidden=!0}))]),this.drawer.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1;const i=this.originalTrigger;"function"==typeof(null==i?void 0:i.focus)&&setTimeout((()=>i.focus())),this.emit("sd-after-hide")}}handleNoModalChange(){this.open&&!this.contained&&(this.modal.activate(),Wi(this)),this.open&&this.contained&&(this.modal.deactivate(),Yi(this))}async show(){if(!this.open)return this.open=!0,$e(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,$e(this,"sd-after-hide")}render(){return gt`<div part="base" class="${Se("top-0 start-0 w-full h-full pointer-events-none overflow-hidden",this.contained?"absolute":"fixed")}"><div part="overlay" class="${Se("block top-0 left-0 right-0 bottom-0 bg-neutral-800/75 pointer-events-auto",this.contained?"absolute":"fixed")}" @click="${()=>this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${Se("absolute flex flex-col z-10 max-w-full max-h-full bg-white shadow-lg overflow-auto pointer-events-auto focus:outline-none",{end:"top-0 end-0 bottom-auto start-auto w-[--width] h-full",start:"top-0 end-auto bottom-auto start-0 w-[--width] h-full"}[this.placement])}" role="dialog" aria-modal="true" aria-hidden="${this.open?"false":"true"}" aria-label="${this.label}" aria-labelledby="${pi(this.noHeader?void 0:"title")}" tabindex="0">${this.noHeader?"":gt`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:56px"><div part="title"><slot name="header" part="title" class="flex-auto text-xl m-0" id="title"></slot></div><div class="shrink-0 flex flex-wrap justify-end gap-1 ml-4 absolute top-2 right-2"><sd-button variant="tertiary" size="lg" part="close-button" @click="${()=>this.requestClose("close-button")}"><sd-icon name="close" library="system"></sd-icon></sd-button></div></header>`}<div part="body" class="flex-auto block px-4"><slot></slot></div><footer part="footer" class="${Se(this.hasSlotController.test("footer")?"text-left p-4":"hidden")}"><slot name="footer"></slot></footer></div></div>`}};go.styles=[ne.styles,ie,L`:host{--width:25rem;display:contents}:host([contained]){z-index:initial}:host(:not([contained])){z-index:var(--sd-z-index-drawer,700)}[part=body]{-webkit-overflow-scrolling:touch;overflow-y:scroll;scrollbar-width:none}[part=body]::-webkit-scrollbar{height:var(--sd-spacing-0,0);width:var(--sd-spacing-0,0)}`],vo([Ut("[part=base]")],go.prototype,"drawer",2),vo([Ut("[part=panel]")],go.prototype,"panel",2),vo([Ut("[part=overlay]")],go.prototype,"overlay",2),vo([jt({type:Boolean,reflect:!0})],go.prototype,"open",2),vo([jt({attribute:"label",reflect:!0})],go.prototype,"label",2),vo([jt({reflect:!0})],go.prototype,"placement",2),vo([jt({type:Boolean,reflect:!0})],go.prototype,"contained",2),vo([jt({attribute:"no-header",type:Boolean})],go.prototype,"noHeader",2),vo([ee("open",{waitUntilFirstUpdate:!0})],go.prototype,"handleOpenChange",1),vo([ee("contained",{waitUntilFirstUpdate:!0})],go.prototype,"handleNoModalChange",1),go=vo([Mt("sd-drawer")],go),ke("drawer.showStart",{keyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}}),ke("drawer.hideStart",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],options:{duration:250,easing:"ease"}}),ke("drawer.showEnd",{keyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}}),ke("drawer.hideEnd",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],options:{duration:250,easing:"ease"}}),ke("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:250}}),ke("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}}),ke("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});const mo=Object.freeze(Object.defineProperty({__proto__:null,get default(){return go}},Symbol.toStringTag,{value:"Module"})),yo=Math.min,fo=Math.max,wo=Math.round,xo=Math.floor,ko=t=>({x:t,y:t}),Co={left:"right",right:"left",bottom:"top",top:"bottom"},$o={start:"end",end:"start"};function So(t,e,i){return fo(t,yo(e,i))}function zo(t,e){return"function"==typeof t?t(e):t}function _o(t){return t.split("-")[0]}function Oo(t){return t.split("-")[1]}function Eo(t){return"x"===t?"y":"x"}function Po(t){return"y"===t?"height":"width"}function Ao(t){return["top","bottom"].includes(_o(t))?"y":"x"}function To(t){return Eo(Ao(t))}function Lo(t){return t.replace(/start|end/g,(t=>$o[t]))}function Do(t){return t.replace(/left|right|bottom|top/g,(t=>Co[t]))}function Mo(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function Bo(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Io(t,e,i){let{reference:o,floating:r}=t;const s=Ao(e),a=To(e),n=Po(a),l=_o(e),d="y"===s,h=o.x+o.width/2-r.width/2,c=o.y+o.height/2-r.height/2,p=o[n]/2-r[n]/2;let u;switch(l){case"top":u={x:h,y:o.y-r.height};break;case"bottom":u={x:h,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:c};break;case"left":u={x:o.x-r.width,y:c};break;default:u={x:o.x,y:o.y}}switch(Oo(e)){case"start":u[a]-=p*(i&&d?-1:1);break;case"end":u[a]+=p*(i&&d?-1:1)}return u}async function jo(t,e){var i;void 0===e&&(e={});const{x:o,y:r,platform:s,rects:a,elements:n,strategy:l}=t,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:c="floating",altBoundary:p=!1,padding:u=0}=zo(e,t),b=Mo(u),v=n[p?"floating"===c?"reference":"floating":c],g=Bo(await s.getClippingRect({element:null==(i=await(null==s.isElement?void 0:s.isElement(v)))||i?v:v.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(n.floating)),boundary:d,rootBoundary:h,strategy:l})),m="floating"===c?{...a.floating,x:o,y:r}:a.reference,y=await(null==s.getOffsetParent?void 0:s.getOffsetParent(n.floating)),f=await(null==s.isElement?void 0:s.isElement(y))&&await(null==s.getScale?void 0:s.getScale(y))||{x:1,y:1},w=Bo(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:m,offsetParent:y,strategy:l}):m);return{top:(g.top-w.top+b.top)/f.y,bottom:(w.bottom-g.bottom+b.bottom)/f.y,left:(g.left-w.left+b.left)/f.x,right:(w.right-g.right+b.right)/f.x}}const Vo=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var i,o;const{x:r,y:s,placement:a,middlewareData:n}=e,l=await async function(t,e){const{placement:i,platform:o,elements:r}=t,s=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=_o(i),n=Oo(i),l="y"===Ao(i),d=["left","top"].includes(a)?-1:1,h=s&&l?-1:1,c=zo(e,t);let{mainAxis:p,crossAxis:u,alignmentAxis:b}="number"==typeof c?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return n&&"number"==typeof b&&(u="end"===n?-1*b:b),l?{x:u*h,y:p*d}:{x:p*d,y:u*h}}(e,t);return a===(null==(i=n.offset)?void 0:i.placement)&&null!=(o=n.arrow)&&o.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:a}}}}};function Fo(t){return Ho(t)?(t.nodeName||"").toLowerCase():"#document"}function Uo(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Ro(t){var e;return null==(e=(Ho(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Ho(t){return t instanceof Node||t instanceof Uo(t).Node}function No(t){return t instanceof Element||t instanceof Uo(t).Element}function qo(t){return t instanceof HTMLElement||t instanceof Uo(t).HTMLElement}function Ko(t){return!(typeof ShadowRoot>"u")&&(t instanceof ShadowRoot||t instanceof Uo(t).ShadowRoot)}function Zo(t){const{overflow:e,overflowX:i,overflowY:o,display:r}=Jo(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&!["inline","contents"].includes(r)}function Wo(t){return["table","td","th"].includes(Fo(t))}function Yo(t){const e=Xo(),i=Jo(t);return"none"!==i.transform||"none"!==i.perspective||!!i.containerType&&"normal"!==i.containerType||!e&&!!i.backdropFilter&&"none"!==i.backdropFilter||!e&&!!i.filter&&"none"!==i.filter||["transform","perspective","filter"].some((t=>(i.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(i.contain||"").includes(t)))}function Xo(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Go(t){return["html","body","#document"].includes(Fo(t))}function Jo(t){return Uo(t).getComputedStyle(t)}function Qo(t){return No(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function tr(t){if("html"===Fo(t))return t;const e=t.assignedSlot||t.parentNode||Ko(t)&&t.host||Ro(t);return Ko(e)?e.host:e}function er(t){const e=tr(t);return Go(e)?t.ownerDocument?t.ownerDocument.body:t.body:qo(e)&&Zo(e)?e:er(e)}function ir(t,e,i){var o;void 0===e&&(e=[]),void 0===i&&(i=!0);const r=er(t),s=r===(null==(o=t.ownerDocument)?void 0:o.body),a=Uo(r);return s?e.concat(a,a.visualViewport||[],Zo(r)?r:[],a.frameElement&&i?ir(a.frameElement):[]):e.concat(r,ir(r,[],i))}function or(t){const e=Jo(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=qo(t),s=r?t.offsetWidth:i,a=r?t.offsetHeight:o,n=wo(i)!==s||wo(o)!==a;return n&&(i=s,o=a),{width:i,height:o,$:n}}function rr(t){return No(t)?t:t.contextElement}function sr(t){const e=rr(t);if(!qo(e))return ko(1);const i=e.getBoundingClientRect(),{width:o,height:r,$:s}=or(e);let a=(s?wo(i.width):i.width)/o,n=(s?wo(i.height):i.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!n||!Number.isFinite(n))&&(n=1),{x:a,y:n}}const ar=ko(0);function nr(t){const e=Uo(t);return Xo()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:ar}function lr(t,e,i,o){void 0===e&&(e=!1),void 0===i&&(i=!1);const r=t.getBoundingClientRect(),s=rr(t);let a=ko(1);e&&(o?No(o)&&(a=sr(o)):a=sr(t));const n=function(t,e,i){return void 0===e&&(e=!1),!(!i||e&&i!==Uo(t))&&e}(s,i,o)?nr(s):ko(0);let l=(r.left+n.x)/a.x,d=(r.top+n.y)/a.y,h=r.width/a.x,c=r.height/a.y;if(s){const t=Uo(s),e=o&&No(o)?Uo(o):o;let i=t,r=i.frameElement;for(;r&&o&&e!==i;){const t=sr(r),e=r.getBoundingClientRect(),o=Jo(r),s=e.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,a=e.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;l*=t.x,d*=t.y,h*=t.x,c*=t.y,l+=s,d+=a,i=Uo(r),r=i.frameElement}}return Bo({width:h,height:c,x:l,y:d})}const dr=[":popover-open",":modal"];function hr(t){return dr.some((e=>{try{return t.matches(e)}catch{return!1}}))}function cr(t){return lr(Ro(t)).left+Qo(t).scrollLeft}function pr(t,e,i){let o;if("viewport"===e)o=function(t,e){const i=Uo(t),o=Ro(t),r=i.visualViewport;let s=o.clientWidth,a=o.clientHeight,n=0,l=0;if(r){s=r.width,a=r.height;const t=Xo();(!t||t&&"fixed"===e)&&(n=r.offsetLeft,l=r.offsetTop)}return{width:s,height:a,x:n,y:l}}(t,i);else if("document"===e)o=function(t){const e=Ro(t),i=Qo(t),o=t.ownerDocument.body,r=fo(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=fo(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-i.scrollLeft+cr(t);const n=-i.scrollTop;return"rtl"===Jo(o).direction&&(a+=fo(e.clientWidth,o.clientWidth)-r),{width:r,height:s,x:a,y:n}}(Ro(t));else if(No(e))o=function(t,e){const i=lr(t,!0,"fixed"===e),o=i.top+t.clientTop,r=i.left+t.clientLeft,s=qo(t)?sr(t):ko(1);return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:r*s.x,y:o*s.y}}(e,i);else{const i=nr(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return Bo(o)}function ur(t,e){const i=tr(t);return!(i===e||!No(i)||Go(i))&&("fixed"===Jo(i).position||ur(i,e))}function br(t,e){const i=e.get(t);if(i)return i;let o=ir(t,[],!1).filter((t=>No(t)&&"body"!==Fo(t))),r=null;const s="fixed"===Jo(t).position;let a=s?tr(t):t;for(;No(a)&&!Go(a);){const e=Jo(a),i=Yo(a);!i&&"fixed"===e.position&&(r=null),(s?!i&&!r:!i&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||Zo(a)&&!i&&ur(t,a))?o=o.filter((t=>t!==a)):r=e,a=tr(a)}return e.set(t,o),o}function vr(t,e,i){const o=qo(e),r=Ro(e),s="fixed"===i,a=lr(t,!0,s,e);let n={scrollLeft:0,scrollTop:0};const l=ko(0);if(o||!o&&!s)if(("body"!==Fo(e)||Zo(r))&&(n=Qo(e)),o){const t=lr(e,!0,s,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=cr(r));return{x:a.left+n.scrollLeft-l.x,y:a.top+n.scrollTop-l.y,width:a.width,height:a.height}}function gr(t,e){return qo(t)&&"fixed"!==Jo(t).position?e?e(t):t.offsetParent:null}function mr(t,e){const i=Uo(t);if(!qo(t)||hr(t))return i;let o=gr(t,e);for(;o&&Wo(o)&&"static"===Jo(o).position;)o=gr(o,e);return o&&("html"===Fo(o)||"body"===Fo(o)&&"static"===Jo(o).position&&!Yo(o))?i:o||function(t){let e=tr(t);for(;qo(e)&&!Go(e);){if(Yo(e))return e;e=tr(e)}return null}(t)||i}const yr={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:i,offsetParent:o,strategy:r}=t;const s="fixed"===r,a=Ro(o),n=!!e&&hr(e.floating);if(o===a||n&&s)return i;let l={scrollLeft:0,scrollTop:0},d=ko(1);const h=ko(0),c=qo(o);if((c||!c&&!s)&&(("body"!==Fo(o)||Zo(a))&&(l=Qo(o)),qo(o))){const t=lr(o);d=sr(o),h.x=t.x+o.clientLeft,h.y=t.y+o.clientTop}return{width:i.width*d.x,height:i.height*d.y,x:i.x*d.x-l.scrollLeft*d.x+h.x,y:i.y*d.y-l.scrollTop*d.y+h.y}},getDocumentElement:Ro,getClippingRect:function(t){let{element:e,boundary:i,rootBoundary:o,strategy:r}=t;const s=[..."clippingAncestors"===i?br(e,this._c):[].concat(i),o],a=s[0],n=s.reduce(((t,i)=>{const o=pr(e,i,r);return t.top=fo(o.top,t.top),t.right=yo(o.right,t.right),t.bottom=yo(o.bottom,t.bottom),t.left=fo(o.left,t.left),t}),pr(e,a,r));return{width:n.right-n.left,height:n.bottom-n.top,x:n.left,y:n.top}},getOffsetParent:mr,getElementRects:async function(t){const e=this.getOffsetParent||mr,i=this.getDimensions;return{reference:vr(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,...await i(t.floating)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:i}=or(t);return{width:e,height:i}},getScale:sr,isElement:No,isRTL:function(t){return"rtl"===Jo(t).direction}};const fr=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:i,rects:o,platform:r,elements:s}=e,{apply:a=(()=>{}),...n}=zo(t,e),l=await jo(e,n),d=_o(i),h=Oo(i),c="y"===Ao(i),{width:p,height:u}=o.floating;let b,v;"top"===d||"bottom"===d?(b=d,v=h===(await(null==r.isRTL?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,b="end"===h?"top":"bottom");const g=u-l[b],m=p-l[v],y=!e.middlewareData.shift;let f=g,w=m;if(c){const t=p-l.left-l.right;w=h||y?yo(m,t):t}else{const t=u-l.top-l.bottom;f=h||y?yo(g,t):t}if(y&&!h){const t=fo(l.left,0),e=fo(l.right,0),i=fo(l.top,0),o=fo(l.bottom,0);c?w=p-2*(0!==t||0!==e?t+e:fo(l.left,l.right)):f=u-2*(0!==i||0!==o?i+o:fo(l.top,l.bottom))}await a({...e,availableWidth:w,availableHeight:f});const x=await r.getDimensions(s.floating);return p!==x.width||u!==x.height?{reset:{rects:!0}}:{}}}};var wr=Object.defineProperty,xr=Object.getOwnPropertyDescriptor,kr=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?xr(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&wr(e,i,s),s};let Cr=class extends ne{constructor(){super(...arguments),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start(),this.setupMutationObserver()}disconnectedCallback(){this.stop(),this.mutationObserver&&this.mutationObserver.disconnect()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}setupMutationObserver(){this.mutationObserver=new MutationObserver((t=>this.handleCurrentPlacementChange(t))),this.mutationObserver.observe(this,{attributes:!0})}handleCurrentPlacementChange(t){return t.forEach((t=>{if("data-current-placement"===t.attributeName){const t=this.getAttribute("data-current-placement");this.emit("sd-current-placement",{detail:t})}}))}async handleAnchorChange(){if(await this.stop(),this.anchor&&"string"==typeof this.anchor){const t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof HTMLElement?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');if(this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),!this.anchorEl)throw new Error("Invalid anchor element: no anchor could be found using the anchor slot or the anchor attribute.");this.start()}start(){this.anchorEl&&(this.cleanup=function(t,e,i,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:n="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,d=rr(t),h=r||s?[...d?ir(d):[],...ir(e)]:[];h.forEach((t=>{r&&t.addEventListener("scroll",i,{passive:!0}),s&&t.addEventListener("resize",i)}));const c=d&&n?function(t,e){let i,o=null;const r=Ro(t);function s(){var t;clearTimeout(i),null==(t=o)||t.disconnect(),o=null}return function a(n,l){void 0===n&&(n=!1),void 0===l&&(l=1),s();const{left:d,top:h,width:c,height:p}=t.getBoundingClientRect();if(n||e(),!c||!p)return;const u={rootMargin:-xo(h)+"px "+-xo(r.clientWidth-(d+c))+"px "+-xo(r.clientHeight-(h+p))+"px "+-xo(d)+"px",threshold:fo(0,yo(1,l))||1};let b=!0;function v(t){const e=t[0].intersectionRatio;if(e!==l){if(!b)return a();e?a(!1,e):i=setTimeout((()=>{a(!1,1e-7)}),100)}b=!1}try{o=new IntersectionObserver(v,{...u,root:r.ownerDocument})}catch{o=new IntersectionObserver(v,u)}o.observe(t)}(!0),s}(d,i):null;let p=-1,u=null;a&&(u=new ResizeObserver((t=>{let[o]=t;o&&o.target===d&&u&&(u.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var t;null==(t=u)||t.observe(e)}))),i()})),d&&!l&&u.observe(d),u.observe(e));let b,v=l?lr(t):null;return l&&function e(){const o=lr(t);v&&(o.x!==v.x||o.y!==v.y||o.width!==v.width||o.height!==v.height)&&i(),v=o,b=requestAnimationFrame(e)}(),i(),()=>{var t;h.forEach((t=>{r&&t.removeEventListener("scroll",i),s&&t.removeEventListener("resize",i)})),null==c||c(),null==(t=u)||t.disconnect(),u=null,l&&cancelAnimationFrame(b)}}(this.anchorEl,this.popup,(()=>{this.reposition()})))}async stop(){return new Promise((t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame((()=>t()))):t()}))}reposition(){if(!this.active||!this.anchorEl)return;const t=[Vo({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(fr({apply:({rects:t})=>{const e="width"===this.sync||"both"===this.sync,i="height"===this.sync||"both"===this.sync;this.popup.style.width=e?`${t.reference.width}px`:"",this.popup.style.height=i?`${t.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var i,o;const{placement:r,middlewareData:s,rects:a,initialPlacement:n,platform:l,elements:d}=e,{mainAxis:h=!0,crossAxis:c=!0,fallbackPlacements:p,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...g}=zo(t,e);if(null!=(i=s.arrow)&&i.alignmentOffset)return{};const m=_o(r),y=_o(n)===n,f=await(null==l.isRTL?void 0:l.isRTL(d.floating)),w=p||(y||!v?[Do(n)]:function(t){const e=Do(t);return[Lo(t),e,Lo(e)]}(n));!p&&"none"!==b&&w.push(...function(t,e,i,o){const r=Oo(t);let s=function(t,e,i){const o=["left","right"],r=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return i?e?r:o:e?o:r;case"left":case"right":return e?s:a;default:return[]}}(_o(t),"start"===i,o);return r&&(s=s.map((t=>t+"-"+r)),e&&(s=s.concat(s.map(Lo)))),s}(n,v,b,f));const x=[n,...w],k=await jo(e,g),C=[];let $=(null==(o=s.flip)?void 0:o.overflows)||[];if(h&&C.push(k[m]),c){const t=function(t,e,i){void 0===i&&(i=!1);const o=Oo(t),r=To(t),s=Po(r);let a="x"===r?o===(i?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=Do(a)),[a,Do(a)]}(r,a,f);C.push(k[t[0]],k[t[1]])}if($=[...$,{placement:r,overflows:C}],!C.every((t=>t<=0))){var S,z;const t=((null==(S=s.flip)?void 0:S.index)||0)+1,e=x[t];if(e)return{data:{index:t,overflows:$},reset:{placement:e}};let i=null==(z=$.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:z.placement;if(!i)switch(u){case"bestFit":{var _;const t=null==(_=$.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:_[0];t&&(i=t);break}case"initialPlacement":i=n}if(r!==i)return{reset:{placement:i}}}return{}}}}({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:"best-fit"===this.flipFallbackStrategy?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:i,y:o,placement:r}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:n={fn:t=>{let{x:e,y:i}=t;return{x:e,y:i}}},...l}=zo(t,e),d={x:i,y:o},h=await jo(e,l),c=Ao(_o(r)),p=Eo(c);let u=d[p],b=d[c];if(s){const t="y"===p?"bottom":"right";u=So(u+h["y"===p?"top":"left"],u,u-h[t])}if(a){const t="y"===c?"bottom":"right";b=So(b+h["y"===c?"top":"left"],b,b-h[t])}const v=n.fn({...e,[p]:u,[c]:b});return{...v,data:{x:v.x-i,y:v.y-o}}}}}({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(fr({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:t,availableHeight:e})=>{"vertical"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-height",`${e}px`):this.style.removeProperty("--auto-size-available-height"),"horizontal"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-width",`${t}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push((t=>({name:"arrow",options:t,async fn(e){const{x:i,y:o,placement:r,rects:s,platform:a,elements:n,middlewareData:l}=e,{element:d,padding:h=0}=zo(t,e)||{};if(null==d)return{};const c=Mo(h),p={x:i,y:o},u=To(r),b=Po(u),v=await a.getDimensions(d),g="y"===u,m=g?"top":"left",y=g?"bottom":"right",f=g?"clientHeight":"clientWidth",w=s.reference[b]+s.reference[u]-p[u]-s.floating[b],x=p[u]-s.reference[u],k=await(null==a.getOffsetParent?void 0:a.getOffsetParent(d));let C=k?k[f]:0;(!C||!await(null==a.isElement?void 0:a.isElement(k)))&&(C=n.floating[f]||s.floating[b]);const $=w/2-x/2,S=C/2-v[b]/2-1,z=yo(c[m],S),_=yo(c[y],S),O=z,E=C-v[b]-_,P=C/2-v[b]/2+$,A=So(O,P,E),T=!l.arrow&&null!=Oo(r)&&P!==A&&s.reference[b]/2-(P<O?z:_)-v[b]/2<0,L=T?P<O?P-O:P-E:0;return{[u]:p[u]+L,data:{[u]:A,centerOffset:P-A-L,...T&&{alignmentOffset:L}},reset:T}}}))({element:this.arrowEl,padding:this.arrowPadding})),((t,e,i)=>{const o=new Map,r={platform:yr,...i},s={...r.platform,_c:o};return(async(t,e,i)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:a}=i,n=s.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let d=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:h,y:c}=Io(d,o,l),p=o,u={},b=0;for(let i=0;i<n.length;i++){const{name:s,fn:v}=n[i],{x:g,y:m,data:y,reset:f}=await v({x:h,y:c,initialPlacement:o,placement:p,strategy:r,middlewareData:u,rects:d,platform:a,elements:{reference:t,floating:e}});h=g??h,c=m??c,u={...u,[s]:{...u[s],...y}},f&&b<=50&&(b++,"object"==typeof f&&(f.placement&&(p=f.placement),f.rects&&(d=!0===f.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):f.rects),({x:h,y:c}=Io(d,p,l))),i=-1)}return{x:h,y:c,placement:p,strategy:r,middlewareData:u}})(t,e,{...r,platform:s})})(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy}).then((({x:t,y:e,middlewareData:i,placement:o})=>{const r="rtl"===getComputedStyle(this).direction,s={top:"bottom",right:"left",bottom:"top",left:"right"}[o.split("-")[0]];if(this.setAttribute("data-current-placement",o),Object.assign(this.popup.style,{left:`${t}px`,top:`${e}px`}),this.arrow){const t=i.arrow.x,e=i.arrow.y;let o="",a="",n="",l="";if("start"===this.arrowPlacement){const i="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";o="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",a=r?i:"",l=r?"":i}else if("end"===this.arrowPlacement){const i="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";a=r?"":i,l=r?i:"",n="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else"center"===this.arrowPlacement?(l="number"==typeof t?"calc(50% - var(--arrow-size-diagonal))":"",o="number"==typeof e?"calc(50% - var(--arrow-size-diagonal))":""):(l="number"==typeof t?`${t}px`:"",o="number"==typeof e?`${e}px`:"");Object.assign(this.arrowEl.style,{top:o,right:a,bottom:n,left:l,[s]:"calc(var(--arrow-size-diagonal) * -1)"})}})),this.emit("sd-reposition")}render(){return gt`<slot name="anchor" @slotchange="${this.handleAnchorChange}"></slot><div part="popup" class="${Se("isolate","fixed"!==this.strategy?"absolute":"fixed",!this.active&&"hidden")}"><slot></slot>${this.arrow?gt`<div part="arrow" class="absolute rotate-45 -z-10" role="presentation"></div>`:""}</div>`}};Cr.styles=[ne.styles,ie,L`:host{--arrow-color:var(--sd-color-neutral-1000);--arrow-size:6px;--arrow-size-diagonal:calc(var(--arrow-size) * 0.7071);--arrow-padding-offset:calc(var(--arrow-size-diagonal) - var(--arrow-size));display:contents}[part=popup]{max-width:var(--auto-size-available-width,none);max-height:var(--auto-size-available-height,none)}[part=arrow]{width:calc(var(--arrow-size-diagonal) * 2);height:calc(var(--arrow-size-diagonal) * 2);background:var(--arrow-color)}`],kr([Ut('[part="popup"]')],Cr.prototype,"popup",2),kr([Ut('[part="arrow"]')],Cr.prototype,"arrowEl",2),kr([jt()],Cr.prototype,"anchor",2),kr([jt({type:Boolean,reflect:!0})],Cr.prototype,"active",2),kr([jt({reflect:!0})],Cr.prototype,"placement",2),kr([jt({reflect:!0})],Cr.prototype,"strategy",2),kr([jt({type:Number})],Cr.prototype,"distance",2),kr([jt({type:Number})],Cr.prototype,"skidding",2),kr([jt({type:Boolean})],Cr.prototype,"arrow",2),kr([jt({attribute:"arrow-placement"})],Cr.prototype,"arrowPlacement",2),kr([jt({attribute:"arrow-padding",type:Number})],Cr.prototype,"arrowPadding",2),kr([jt({type:Boolean})],Cr.prototype,"flip",2),kr([jt({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map((t=>t.trim())).filter((t=>""!==t)),toAttribute:t=>t.join(" ")}})],Cr.prototype,"flipFallbackPlacements",2),kr([jt({attribute:"flip-fallback-strategy"})],Cr.prototype,"flipFallbackStrategy",2),kr([jt({type:Object})],Cr.prototype,"flipBoundary",2),kr([jt({attribute:"flip-padding",type:Number})],Cr.prototype,"flipPadding",2),kr([jt({type:Boolean})],Cr.prototype,"shift",2),kr([jt({type:Object})],Cr.prototype,"shiftBoundary",2),kr([jt({attribute:"shift-padding",type:Number})],Cr.prototype,"shiftPadding",2),kr([jt({attribute:"auto-size"})],Cr.prototype,"autoSize",2),kr([jt()],Cr.prototype,"sync",2),kr([jt({type:Object})],Cr.prototype,"autoSizeBoundary",2),kr([jt({attribute:"auto-size-padding",type:Number})],Cr.prototype,"autoSizePadding",2),Cr=kr([Mt("sd-popup")],Cr);const $r=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Cr}},Symbol.toStringTag,{value:"Module"}));var Sr=Object.defineProperty,zr=Object.getOwnPropertyDescriptor,_r=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?zr(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Sr(e,i,s),s};let Or=class extends ne{constructor(){super(...arguments),this.localize=new S(this),this.open=!1,this.rounded=!1,this.placement="bottom-start",this.disabled=!1,this.stayOpenOnSelect=!1,this.distance=0,this.skidding=0,this.noAutoSize=!1,this.noFlip=!1,this.hoist=!1}connectedCallback(){super.connectedCallback(),this.handleMenuItemActivate=this.handleMenuItemActivate.bind(this),this.handlePanelSelect=this.handlePanelSelect.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.handleDocumentMouseDown=this.handleDocumentMouseDown.bind(this),this.containingElement||(this.containingElement=this)}firstUpdated(){this.panel.hidden=!this.open,this.open&&(this.addOpenListeners(),this.popup.active=!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.hide()}focusOnTrigger(){const t=this.trigger.assignedElements({flatten:!0})[0];"function"==typeof(null==t?void 0:t.focus)&&t.focus()}getMenu(){return this.panel.assignedElements({flatten:!0}).find((t=>"sd-menu"===t.tagName.toLowerCase()))}handleKeyDown(t){this.open&&"Escape"===t.key&&(t.stopPropagation(),this.hide(),this.focusOnTrigger())}handleDocumentKeyDown(t){var e;if("Tab"===t.key){if(this.open&&"sd-menu-item"===(null==(e=document.activeElement)?void 0:e.tagName.toLowerCase()))return t.preventDefault(),this.hide(),void this.focusOnTrigger();setTimeout((()=>{var t,e,i,o,r,s,a,n,l,d,h,c;const p=(null==(r=null==(o=null==(i=null==(e=null==(t=document.activeElement)?void 0:t.shadowRoot)?void 0:e.activeElement)?void 0:i.shadowRoot)?void 0:o.activeElement)?void 0:r.getRootNode())instanceof ShadowRoot?null==(l=null==(n=null==(a=null==(s=document.activeElement)?void 0:s.shadowRoot)?void 0:a.activeElement)?void 0:n.shadowRoot)?void 0:l.activeElement:(null==(d=this.containingElement)?void 0:d.getRootNode())instanceof ShadowRoot?null==(c=null==(h=document.activeElement)?void 0:h.shadowRoot)?void 0:c.activeElement:document.activeElement;(!this.containingElement||(null==p?void 0:p.closest(this.containingElement.tagName.toLowerCase()))!==this.containingElement)&&this.hide()}))}}handleDocumentMouseDown(t){const e=t.composedPath();this.containingElement&&!e.includes(this.containingElement)&&this.hide()}handleMenuItemActivate(t){Xi(t.target,this.panel)}handlePanelSelect(t){const e=t.target;!this.stayOpenOnSelect&&"sd-menu"===e.tagName.toLowerCase()&&(this.hide(),this.focusOnTrigger())}handleTriggerClick(){this.open?this.hide():this.show()}handleTriggerKeyDown(t){if("Escape"===t.key&&this.open)return t.stopPropagation(),this.focusOnTrigger(),void this.hide();if([" ","Enter"].includes(t.key))return t.preventDefault(),void this.handleTriggerClick();const e=this.getMenu();if(e){const i=e.defaultSlot.assignedElements({flatten:!0}),o=i[0],r=i[i.length-1];["ArrowDown","ArrowUp","Home","End"].includes(t.key)&&(t.preventDefault(),this.open||this.show(),i.length>0&&requestAnimationFrame((()=>{("ArrowDown"===t.key||"Home"===t.key)&&(e.setCurrentItem(o),o.focus()),("ArrowUp"===t.key||"End"===t.key)&&(e.setCurrentItem(r),r.focus())})))}}handleTriggerKeyUp(t){" "===t.key&&t.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}updateAccessibleTrigger(){const t=this.trigger.assignedElements({flatten:!0}).find((t=>Ji(t).start));let e;if(t){switch(t.tagName.toLowerCase()){case"sd-button":case"sd-icon-button":e=t.button;break;default:e=t}e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded",this.open?"true":"false")}}async show(){if(!this.open)return this.open=!0,$e(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,$e(this,"sd-after-hide")}reposition(){this.popup.reposition()}addOpenListeners(){this.panel.addEventListener("sd-activate",this.handleMenuItemActivate),this.panel.addEventListener("sd-select",this.handlePanelSelect),this.panel.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){this.panel&&(this.panel.removeEventListener("sd-activate",this.handleMenuItemActivate),this.panel.removeEventListener("sd-select",this.handlePanelSelect),this.panel.removeEventListener("keydown",this.handleKeyDown)),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}async handleOpenChange(){if(this.disabled)this.open=!1;else if(this.updateAccessibleTrigger(),this.open){this.emit("sd-show"),this.addOpenListeners(),await me(this),this.panel.hidden=!1,this.popup.active=!0;const{keyframes:t,options:e}=Ce(this,"dropdown.show",{dir:this.localize.dir()});await be(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await me(this);const{keyframes:t,options:e}=Ce(this,"dropdown.hide",{dir:this.localize.dir()});await be(this.popup.popup,t,e),this.panel.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}render(){return gt`<sd-popup part="base" id="dropdown" placement="${this.placement}" distance="${this.rounded&&this.distance<1?1:this.distance}" skidding="${this.skidding}" strategy="${this.hoist?"fixed":"absolute"}" ?flip="${!this.noFlip}" shift auto-size="vertical" auto-size-padding="10" ?active="${this.open}"><slot name="trigger" slot="anchor" part="trigger" class="block" @click="${this.handleTriggerClick}" @keydown="${this.handleTriggerKeyDown}" @keyup="${this.handleTriggerKeyUp}" @slotchange="${this.handleTriggerSlotChange}"></slot><slot part="panel" class="${Se("shadow bg-white",this.open?"block pointer-events-auto":"pointer-events-none",this.rounded&&"rounded-md")}" aria-hidden="${this.open?"false":"true"}" aria-labelledby="dropdown"></slot></sd-popup>`}};Or.styles=[ne.styles,ie,L`:host{display:inline-block}#dropdown::part(popup){z-index:var(--sd-z-index-dropdown,900)}#dropdown[data-current-placement^=top]::part(popup){transform-origin:bottom}#dropdown[data-current-placement^=bottom]::part(popup){transform-origin:top}#dropdown[data-current-placement^=left]::part(popup){transform-origin:right}#dropdown[data-current-placement^=right]::part(popup){transform-origin:left}:host(:not([no-auto-size])) ::slotted(:not([slot=trigger])){overflow:auto;max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}`],_r([Ut("#dropdown")],Or.prototype,"popup",2),_r([Ut("[part=trigger]")],Or.prototype,"trigger",2),_r([Ut("[part=panel]")],Or.prototype,"panel",2),_r([jt({type:Boolean,reflect:!0})],Or.prototype,"open",2),_r([jt({type:Boolean,reflect:!0})],Or.prototype,"rounded",2),_r([jt({reflect:!0})],Or.prototype,"placement",2),_r([jt({type:Boolean,reflect:!0})],Or.prototype,"disabled",2),_r([jt({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],Or.prototype,"stayOpenOnSelect",2),_r([jt({attribute:!1})],Or.prototype,"containingElement",2),_r([jt({type:Number})],Or.prototype,"distance",2),_r([jt({type:Number})],Or.prototype,"skidding",2),_r([jt({type:Boolean,reflect:!0,attribute:"no-auto-size"})],Or.prototype,"noAutoSize",2),_r([jt({type:Boolean,reflect:!0,attribute:"no-flip"})],Or.prototype,"noFlip",2),_r([jt({type:Boolean})],Or.prototype,"hoist",2),_r([ee("open",{waitUntilFirstUpdate:!0})],Or.prototype,"handleOpenChange",1),Or=_r([Mt("sd-dropdown")],Or),ke("dropdown.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}}),ke("dropdown.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});const Er=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Or}},Symbol.toStringTag,{value:"Module"}));var Pr=Object.defineProperty,Ar=Object.getOwnPropertyDescriptor,Tr=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ar(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Pr(e,i,s),s};let Lr=class extends ne{constructor(){super(...arguments),this.fixed=!1}connectedCallback(){super.connectedCallback(),this.setCalculatedHeightProperty=this.setCalculatedHeightProperty.bind(this),this.addResizeObserver=this.addResizeObserver.bind(this)}firstUpdated(){this.toggleHeightCalculation()}toggleHeightCalculation(){var t;this.fixed?(this.setCalculatedHeightProperty(),this.addResizeObserver()):(this.setCalculatedHeightProperty(),null==(t=this.resizeObserver)||t.disconnect(),this.resizeObserver=void 0)}disconnectedCallback(){super.disconnectedCallback()}updated(t){super.updated(t),t.has("fixed")&&this.toggleHeightCalculation()}onResize(){this.fixed&&this.setCalculatedHeightProperty()}addResizeObserver(){this.resizeObserver=new ResizeObserver((()=>{this.onResize()})),this.refHeaderElement&&this.resizeObserver.observe(this.refHeaderElement)}setCalculatedHeightProperty(){this.fixed&&this.refHeaderElement?document.documentElement.style.setProperty("--sd-header-calculated-height",`${this.refHeaderElement.clientHeight}px`):document.documentElement.style.removeProperty("--sd-header-calculated-height")}render(){return gt`<header class="w-full bg-white relative" role="banner" @slotchange="${this.handleSlotChange}"><div part="main" class="relative mx-auto my-0 box-border"><slot></slot></div></header>`}handleSlotChange(t){t.target.assignedElements().length>0&&(this.refHeaderElement=t.currentTarget,this.setCalculatedHeightProperty())}};Lr.styles=[ne.styles,ie,L`:host{display:block}:host([fixed]){position:fixed;left:var(--sd-spacing-0,0);top:var(--sd-spacing-0,0);width:100%}:host([fixed]) header::after{content:'';position:absolute;left:var(--sd-spacing-0,0);right:var(--sd-spacing-0,0);top:100%;height:var(--sd-spacing-2,.5rem);background:var(--gradient-vertical-black-40-transparent,linear-gradient(0deg,#18181800 50%,#18181866 100%))}[part=main]{width:var(--sd-header-inner-width);max-width:var(--sd-header-inner-max-width);padding:var(--sd-header-padding,12px 16px)}`],Tr([jt({reflect:!0,type:Boolean})],Lr.prototype,"fixed",2),Tr([Ci(100)],Lr.prototype,"onResize",1),Lr=Tr([Mt("sd-header")],Lr);const Dr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Lr}},Symbol.toStringTag,{value:"Module"}));var Mr=Object.defineProperty,Br=Object.getOwnPropertyDescriptor,Ir=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Br(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Mr(e,i,s),s};let jr=class extends ne{constructor(){super(...arguments),this.mode="cors",this.allowScripts=!1}executeScript(t){const e=document.createElement("script");[...t.attributes].forEach((t=>e.setAttribute(t.name,t.value))),e.textContent=t.textContent,t.parentNode.replaceChild(e,t)}async handleSrcChange(){try{const t=this.src,e=await Nt(t,this.mode);if(t!==this.src)return;if(!e.ok)return void this.emit("sd-error",{detail:{status:e.status}});this.innerHTML=e.html,this.allowScripts&&[...this.querySelectorAll("script")].forEach((t=>this.executeScript(t))),this.emit("sd-load")}catch{this.emit("sd-error",{detail:{status:-1}})}}render(){return gt`<slot></slot>`}};jr.styles=[ie,L`:host{display:block}`],Ir([jt()],jr.prototype,"src",2),Ir([jt()],jr.prototype,"mode",2),Ir([jt({attribute:"allow-scripts",type:Boolean})],jr.prototype,"allowScripts",2),Ir([ee("src")],jr.prototype,"handleSrcChange",1),jr=Ir([Mt("sd-include")],jr);const Vr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return jr}},Symbol.toStringTag,{value:"Module"}));var Fr=Object.defineProperty,Ur=Object.getOwnPropertyDescriptor,Rr=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ur(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Fr(e,i,s),s};const Hr=!(null==(i=navigator.userAgentData)?void 0:i.brands.some((t=>t.brand.includes("Chromium"))))&&navigator.userAgent.includes("Firefox");let Nr=class extends ne{constructor(){super(...arguments),this.formControlController=new ei(this),this.hasSlotController=new si(this,"help-text","label","left","right","message","placeholder"),this.localize=new S(this),this.hasFocus=!1,this.showValidStyle=!1,this.showInvalidStyle=!1,this.type="text",this.size="lg",this.value="",this.defaultValue="",this.placeholder="",this.label="",this.helpText="",this.clearable=!1,this.disabled=!1,this.readonly=!1,this.passwordToggle=!1,this.passwordVisible=!1,this.noSpinButtons=!1,this.form="",this.name="",this.title="",this.required=!1,this.styleOnValid=!1,this.spellcheck=!0}get valueAsDate(){var t;return(null==(t=this.input)?void 0:t.valueAsDate)??null}set valueAsDate(t){const e=document.createElement("input");e.type="date",e.valueAsDate=t,this.value=e.value}get valueAsNumber(){var t;return(null==(t=this.input)?void 0:t.valueAsNumber)??parseFloat(this.value)}set valueAsNumber(t){const e=document.createElement("input");e.type="number",e.valueAsNumber=t,this.value=e.value}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.input.value,this.emit("sd-change")}handleClearClick(t){this.value="",this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change"),this.input.focus(),t.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){this.value=this.input.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleKeyDown(t){const e=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;"Enter"===t.key&&!e&&setTimeout((()=>{!t.defaultPrevented&&!t.isComposing&&this.formControlController.submit()}))}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(t,e,i="none"){this.input.setSelectionRange(t,e,i)}setRangeText(t,e,i,o){this.input.setRangeText(t,e,i,o),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){var t;return null==(t=this.input)?void 0:t.checkValidity()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=this.hasSlotController.test("help-text"),i=(this.hasSlotController.test("description"),this.hasSlotController.test("left")),o=this.hasSlotController.test("right"),r=!!this.label||!!t,s=!!this.helpText||!!e,a=this.clearable&&!this.readonly&&("number"==typeof this.value||this.value.length>0),n=this.disabled?"disabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",l="sm"===this.size?"text-sm":"text-base",d={disabled:"text-neutral-500",readonly:"text-black",activeInvalid:"text-error",activeValid:"text-success",active:"text-black",invalid:"text-error",valid:"text-success",default:"text-black"}[n],h={disabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[n],c=this.disabled?"text-neutral-500":"text-primary",p={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],u={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return gt`<div part="form-control" class="${Se(this.disabled&&"pointer-events-none")}"><label part="form-control-label" id="label" class="${Se("mb-2",r?"inline-block":"hidden",l)}" for="input" aria-hidden="${r?"false":"true"}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="relative w-full"><div part="border" class="${Se("absolute w-full h-full pointer-events-none border rounded-default",h)}"></div><div part="base" class="${Se("px-4 flex flex-row items-center rounded-default transition-all bg-white","lg"===this.size?"py-2":"py-1",this.disabled||this.readonly?"":"hover:bg-neutral-200",this.readonly&&"bg-neutral-100",d)}">${i?gt`<slot name="left" part="left" class="${Se("inline-flex","sm"===this.size?"mr-1":"mr-2",c,u)}"></slot>`:""} <input part="input" id="input" class="${Se("min-w-0 flex-grow focus:outline-none bg-transparent placeholder-neutral-700","sm"===this.size?"h-6":"h-8",l)}" type="${"password"===this.type&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${pi(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${pi(this.placeholder)}" minlength="${pi(this.minlength)}" maxlength="${pi(this.maxlength)}" min="${pi(this.min)}" max="${pi(this.max)}" step="${pi(this.step)}" .value="${Ui(this.value)}" autocapitalize="${pi("password"===this.type?"off":this.autocapitalize)}" autocomplete="${pi("password"===this.type?"off":this.autocomplete)}" autocorrect="${pi("password"===this.type?"off":this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${pi(this.pattern)}" enterkeyhint="${pi(this.enterkeyhint)}" inputmode="${pi(this.inputmode)}" aria-describedby="help-text" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${a?gt`<button part="clear-button" class="${Se("flex justify-center ",p)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${Se("text-neutral-500",u)}" library="system" name="closing-round"></sd-icon></slot></button>`:""} ${this.passwordToggle&&"password"===this.type?gt`<button aria-label="${this.localize.term(this.passwordVisible?"hidePassword":"showPassword")}" part="password-toggle-button" class="flex items-center" type="button" @click="${this.handlePasswordToggle}" tabindex="-1">${this.passwordVisible?gt`<slot name="show-password-icon"><sd-icon class="${Se(c,p,u)}" library="system" name="eye"></sd-icon></slot>`:gt`<slot name="hide-password-icon"><sd-icon class="${Se(c,p,u)}" library="system" name="eye-crossed-out"></sd-icon></slot>`}</button>`:""} ${"date"!==this.type&&"datetime-local"!==this.type||Hr?"":gt`<sd-icon class="${Se(c,p,u)}" library="system" name="calendar"></sd-icon>`} ${"time"===this.type?gt`<sd-icon class="${Se(c,p,u)}" library="system" name="clock"></sd-icon>`:""} ${"search"===this.type?gt`<button class="flex items-center" type="button" tabindex="-1"><sd-icon class="${Se(c,p,u)}" library="system" name="magnifying-glass"></sd-icon></button>`:""} ${this.showInvalidStyle?gt`<sd-icon part="invalid-icon" class="${Se("text-error",p,u)}" library="system" name="risk"></sd-icon>`:""} ${this.showValidStyle&&this.styleOnValid?gt`<sd-icon class="${Se("text-success flex-shrink-0",p,u)}" library="system" name="status-check" part="valid-icon"></sd-icon>`:""} ${o?gt`<slot name="right" part="right" class="${Se("inline-flex",c,p,u)}"></slot>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${Se("text-sm text-neutral-700",s?"block":"hidden")}" aria-hidden="${!s}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};Nr.styles=[ie,ne.styles,L`:host{position:relative;box-sizing:border-box;display:inline-block;width:100%;text-align:left}:host([vertical]){display:block}:host([required]) #label::after{content:' *'}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}`],Rr([Ut("#input")],Nr.prototype,"input",2),Rr([Ut("#invalid-message")],Nr.prototype,"invalidMessage",2),Rr([Vt()],Nr.prototype,"hasFocus",2),Rr([Vt()],Nr.prototype,"showValidStyle",2),Rr([Vt()],Nr.prototype,"showInvalidStyle",2),Rr([jt({reflect:!0})],Nr.prototype,"type",2),Rr([jt({reflect:!0})],Nr.prototype,"size",2),Rr([jt()],Nr.prototype,"inputmode",2),Rr([jt()],Nr.prototype,"value",2),Rr([Vi()],Nr.prototype,"defaultValue",2),Rr([jt()],Nr.prototype,"placeholder",2),Rr([jt()],Nr.prototype,"label",2),Rr([jt({attribute:"help-text"})],Nr.prototype,"helpText",2),Rr([jt({type:Boolean})],Nr.prototype,"clearable",2),Rr([jt({type:Boolean,reflect:!0})],Nr.prototype,"disabled",2),Rr([jt({type:Boolean,reflect:!0})],Nr.prototype,"readonly",2),Rr([jt({attribute:"password-toggle",type:Boolean})],Nr.prototype,"passwordToggle",2),Rr([jt({attribute:"password-visible",type:Boolean})],Nr.prototype,"passwordVisible",2),Rr([jt({attribute:"no-spin-buttons",type:Boolean})],Nr.prototype,"noSpinButtons",2),Rr([jt({type:Number})],Nr.prototype,"minlength",2),Rr([jt({type:Number})],Nr.prototype,"maxlength",2),Rr([jt({type:Number})],Nr.prototype,"min",2),Rr([jt({type:Number})],Nr.prototype,"max",2),Rr([jt({reflect:!0})],Nr.prototype,"form",2),Rr([jt()],Nr.prototype,"name",2),Rr([jt()],Nr.prototype,"title",2),Rr([jt({type:Boolean,reflect:!0})],Nr.prototype,"required",2),Rr([jt()],Nr.prototype,"pattern",2),Rr([jt()],Nr.prototype,"step",2),Rr([jt()],Nr.prototype,"autocapitalize",2),Rr([jt()],Nr.prototype,"autocorrect",2),Rr([jt()],Nr.prototype,"autocomplete",2),Rr([jt({type:Boolean})],Nr.prototype,"autofocus",2),Rr([jt()],Nr.prototype,"enterkeyhint",2),Rr([jt({type:Boolean,reflect:!0,attribute:"style-on-valid"})],Nr.prototype,"styleOnValid",2),Rr([jt({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],Nr.prototype,"spellcheck",2),Rr([ee("disabled",{waitUntilFirstUpdate:!0})],Nr.prototype,"handleDisabledChange",1),Rr([ee("step",{waitUntilFirstUpdate:!0})],Nr.prototype,"handleStepChange",1),Rr([ee("value",{waitUntilFirstUpdate:!0})],Nr.prototype,"handleValueChange",1),Nr=Rr([Mt("sd-input")],Nr);const qr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Nr}},Symbol.toStringTag,{value:"Module"}));var Kr=Object.defineProperty,Zr=Object.getOwnPropertyDescriptor,Wr=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Zr(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Kr(e,i,s),s};let Yr=class extends ne{constructor(){super(...arguments),this.hasSlotController=new si(this,"[default]","icon-left","icon-right"),this.size="inherit",this.inverted=!1,this.standalone=!1,this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}focus(t){this.button.focus(t)}blur(){this.button.blur()}render(){const t={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right")};return gt`<a part="base" class="${Se("inline",this.href?"cursor-pointer":"",{sm:"text-sm",lg:"text-base",inherit:""}[this.size],{disabled:this.inverted?"text-neutral-600":"text-neutral-500",enabled:this.inverted?"text-white hover:text-primary-200 active:text-primary-400 focus-visible:focus-outline-inverted":" text-primary hover:text-primary-500 active:text-primary-800 focus-visible:focus-outline"}[this.href?"enabled":"disabled"],this.standalone&&"flex items-start")}" href="${pi(this.href||void 0)}" target="${pi(this.target||void 0)}" download="${pi(this.download||void 0)}" rel="${pi(this.target?"noreferrer noopener":void 0)}" aria-disabled="${this.href?"false":"true"}" tabindex="${this.href?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"><slot name="icon-left" part="icon-left" class="${Se("inline",t["icon-left"]&&(this.standalone?{sm:"mr-1",lg:"mr-2",inherit:"mr-[0.5em]"}[this.size]:"mr-[0.25em]"))}"></slot><span part="label" class="inline underline underline-offset-2"><slot></slot></span><slot name="icon-right" part="icon-right" class="${Se("inline",t["icon-right"]&&(this.standalone?{sm:"ml-1",lg:"ml-2",inherit:"ml-[0.5em]"}[this.size]:"ml-[0.25em]"))}"></slot></a>`}};Yr.styles=[ne.styles,L`::slotted(sd-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-icon){font-size:var(--sd-font-size-base,1rem)}:host([size=lg][standalone]) ::slotted(sd-icon){font-size:var(--sd-font-size-xl,1.5rem)}`],Wr([Ut("a")],Yr.prototype,"button",2),Wr([jt({reflect:!0})],Yr.prototype,"size",2),Wr([jt({type:Boolean,reflect:!0})],Yr.prototype,"inverted",2),Wr([jt({type:Boolean,reflect:!0})],Yr.prototype,"standalone",2),Wr([jt()],Yr.prototype,"href",2),Wr([jt()],Yr.prototype,"target",2),Wr([jt()],Yr.prototype,"download",2),Yr=Wr([Mt("sd-link")],Yr);const Xr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Yr}},Symbol.toStringTag,{value:"Module"}));var Gr=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor,Qr=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Jr(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Gr(e,i,s),s};let ts=class extends ne{constructor(){super(...arguments),this.variant="main",this.state="default",this.animated=!1,this.marker={cluster:mt`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><circle cx="25" cy="25" opacity="1" r="20"/><circle cx="25" cy="25" opacity=".3" r="25"/></svg>`,main:mt`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 75"><path fill-rule="evenodd" d="M51 49A29 29 0 0 0 30 0 29 29 0 0 0 9 49l21 22 21-22ZM40 28a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z" clip-rule="evenodd"/></svg>`,place:mt`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 75"><path fill-rule="evenodd" d="M51 49A29 29 0 0 0 30 0 29 29 0 0 0 9 49l21 22 21-22Z" clip-rule="evenodd"/></svg>`}}render(){return gt`<div tabindex="0" class="${Se("flex justify-center w-[calc(theme(width.12)*var(--map-marker-scaling,1))] focus:outline-primary focus:outline-offset-2","cluster"===this.variant?"h-[calc(theme(height.12)*var(--map-marker-scaling,1))]":"h-[calc(theme(height.16)*var(--map-marker-scaling,1))]")}"><div class="${Se("inline-flex",this.animated&&("main"===this.variant||"place"===this.variant)&&"animate-bounce-once","cluster"===this.variant&&"hover"===this.state&&"scale-110 fill-primary-500","main"===this.variant&&"hover"===this.state&&"fill-accent-550","main"===this.variant&&"active"===this.state&&"fill-accent-700","place"===this.variant&&"default"===this.state&&"fill-white","place"===this.variant&&"hover"===this.state&&"fill-primary-100","place"===this.variant&&"active"===this.state&&"fill-primary-200",{cluster:"fill-primary transition-all duration-200 ease-in-out hover:scale-110 hover:fill-primary-500",main:"fill-accent *:drop-shadow-md hover:fill-accent-550 active:fill-accent-700",place:"hover:fill-primary-100 *:drop-shadow-md"}[this.variant])}">${this.marker[this.variant]}</div><div class="${Se("absolute self-center pointer-events-none",{cluster:"text-white text-[calc(theme(fontSize.sm)*var(--map-marker-scaling,1))]",main:"",place:"text-[calc(theme(fontSize.3xl)*var(--map-marker-scaling,1))]"}[this.variant])}"><slot></slot></div></div>`}};Qr([jt({reflect:!0})],ts.prototype,"variant",2),Qr([jt({reflect:!0})],ts.prototype,"state",2),Qr([jt({type:Boolean,reflect:!0})],ts.prototype,"animated",2),ts=Qr([Mt("sd-map-marker")],ts);const es=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ts}},Symbol.toStringTag,{value:"Module"}));var is=Object.defineProperty,os=Object.getOwnPropertyDescriptor,rs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?os(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&is(e,i,s),s};let ss=class extends ne{constructor(){super(...arguments),this.hasSlotController=new si(this,"[default]","description","children"),this.current=!1,this.disabled=!1,this.size="base",this.vertical=!1,this.chevron=!1,this.indented=!1,this.relaxed=!1,this.divider=!1,this.open=!1}isButton(){return!this.href&&!this.hasSlotController.test("children")}isLink(){return!!this.href}isAccordion(){return!this.href&&this.hasSlotController.test("children")}handleClickButton(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}handleClickSummary(t){t.preventDefault(),t.stopPropagation(),this.disabled||(this.open?this.hideDetails():this.showDetails())}hideDetails(){this.open=!1,this.emit("sd-hide",{cancelable:!0})}showDetails(){this.open=!0,this.emit("sd-show",{cancelable:!0})}calculatePaddingX(){return this.relaxed&&this.indented?"pl-8 pr-4":this.relaxed?"px-4":this.indented?"pl-4":""}render(){const t=this.isLink(),e=this.isButton(),i=this.isAccordion(),o=(this.hasSlotController.test("[default]"),this.hasSlotController.test("main"),this.hasSlotController.test("description")),r=this.hasSlotController.test("children"),s=t?li`a`:i?li`summary`:li`button`,a=this.vertical?"pb-3":"pb-2",n=hi`<${s} part="base" class="${Se("px-4 hover:bg-neutral-200 group transition-all min-h-[48px] cursor-pointer relative focus-visible:focus-outline",{base:"text-base",lg:"text-lg",sm:"text-[14px]"}[this.size],this.disabled?"text-neutral-500 pointer-events-none":"text-primary",i?"flex flex-col":"inline-block w-full",this.divider&&this.vertical&&"mt-[1px]")}" aria-controls="${pi(i?"navigation-item-details":void 0)}" aria-current="${pi(this.current?"page":void 0)}" aria-disabled="${this.disabled}" ?disabled="${pi(e?this.disabled:void 0)}" href="${pi(t?this.href:void 0)}" target="${pi(t?this.target:void 0)}" download="${pi(t?this.download:void 0)}" rel="${pi(t&&this.target?"noreferrer noopener":void 0)}" role="${t?"link":"button"}" tabindex="${this.disabled?"-1":"0"}" @click="${i?this.handleClickSummary:e?this.handleClickButton:void 0}"><div part="current-indicator" class="${Se("absolute left-0 pointer-events-none transition-all duration-150",this.vertical?"w-1 h-[calc(100%-16px)] top-2 group-hover:h-full group-hover:top-0":"h-1 w-full bottom-0",this.current?"bg-accent":"bg-transparent",this.disabled&&"bg-neutral-500")}"></div><span part="content-area" class="${Se("relative pt-3 inline-flex justify-between items-center",i?"grow":"w-full",o?"pb-1":a,this.calculatePaddingX())}">${this.divider&&this.vertical?hi`<sd-divider part="divider" class="${Se("w-full transition-all absolute -top-[1px] left-0",this.calculatePaddingX())}"></sd-divider>`:""} <span part="content-container" class="inline-flex items-center flex-auto"><slot part="content" class="inline"></slot></span>${(this.chevron||r)&&this.vertical?hi`<sd-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${Se("h-6 w-6 ml-2 transition-all",i?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon>`:""} </span>${o&&this.vertical?hi`<slot name="description" part="description" class="${Se("inline-block text-sm text-left text-black",i?"grow":"w-full",a,this.calculatePaddingX())}"></slot>`:""}</${s}>`;return i?hi`<details part="details" id="navigation-item-details" ?open="${this.open}" class="relative flex">${n}<slot name="children"></slot></details>`:hi`${n}`}};ss.styles=[ie,ne.styles,L`:host{position:relative;box-sizing:border-box;display:inline-block}:host([vertical]){display:block}details summary::-webkit-details-marker{display:none}`],rs([jt({reflect:!0})],ss.prototype,"href",2),rs([jt()],ss.prototype,"target",2),rs([jt()],ss.prototype,"download",2),rs([jt({type:Boolean,reflect:!0})],ss.prototype,"current",2),rs([jt({type:Boolean,reflect:!0})],ss.prototype,"disabled",2),rs([jt({reflect:!0})],ss.prototype,"size",2),rs([jt({type:Boolean,reflect:!0})],ss.prototype,"vertical",2),rs([jt({type:Boolean,reflect:!0})],ss.prototype,"chevron",2),rs([jt({type:Boolean,reflect:!0})],ss.prototype,"indented",2),rs([jt({type:Boolean,reflect:!0})],ss.prototype,"relaxed",2),rs([jt({type:Boolean,reflect:!0})],ss.prototype,"divider",2),rs([jt({type:Boolean,reflect:!0})],ss.prototype,"open",2),ss=rs([Mt("sd-navigation-item")],ss);const as=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ss}},Symbol.toStringTag,{value:"Module"}));var ns=Object.defineProperty,ls=Object.getOwnPropertyDescriptor,ds=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?ls(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&ns(e,i,s),s};const hs=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--top-right"}),cs=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--bottom-center"});let ps=class extends ne{constructor(){super(...arguments),this.localize=new S(this),this.open=!1,this.closable=!1,this.variant="info",this.toastStack="top-right",this.duration=1/0,this.durationIndicator=!1,this.remainingDuration=this.duration,this.startTime=Date.now()}firstUpdated(){this.base.hidden=!this.open}startAutoHide(){clearTimeout(this.autoHideTimeout),this.startTime=Date.now(),this.remainingDuration=this.duration,this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout((()=>this.hide()),this.duration))}onHover(){clearTimeout(this.autoHideTimeout),this.duration<1/0&&(this.remainingDuration-=Date.now()-this.startTime)}onHoverEnd(){this.startTime=Date.now(),clearTimeout(this.autoHideTimeout),this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout((()=>{this.hide()}),this.remainingDuration))}handleCloseClick(){this.hide()}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.duration<1/0&&this.startAutoHide(),await me(this.base),this.base.hidden=!1;const{keyframes:t,options:e}=Ce(this,"notification.show",{dir:this.localize.dir()});await be(this.base,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),clearTimeout(this.autoHideTimeout),await me(this.base);const{keyframes:t,options:e}=Ce(this,"notification.hide",{dir:this.localize.dir()});await be(this.base,t,e),this.base.hidden=!0,this.emit("sd-after-hide")}}handleDurationChange(){this.startAutoHide()}async show(){if(!this.open)return this.open=!0,$e(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,$e(this,"sd-after-hide")}async toast(){return new Promise((t=>{const e="bottom-center"===this.toastStack?cs:hs;null===e.parentElement&&document.body.append(e),e.appendChild(this),requestAnimationFrame((()=>{this.clientWidth,this.show()})),this.addEventListener("sd-after-hide",(()=>{e.removeChild(this),t(),null===e.querySelector("sd-notification")&&e.remove()}),{once:!0})}))}render(){return gt`<div part="base" class="${Se("w-full overflow-hidden flex items-stretch relative m-2")}" role="alert" id="notification" aria-hidden="${this.open?"false":"true"}" @mouseenter="${this.onHover}" @mouseleave="${this.onHoverEnd}"><slot name="icon" part="icon" class="${Se("min-w-min flex items-center px-3 justify-center",{info:"bg-info",success:"bg-success",warning:"bg-warning",error:"bg-error"}[this.variant])}"><sd-icon name="${{info:"info-circle",success:"confirm-circle",warning:"exclamation-circle",error:"warning"}[this.variant]||""}" library="system" class="h-6 w-6 text-white"></sd-icon></slot><div part="content" class="${Se("h-full w-full p-1 gap-2 flex items-center justify-stretch bg-white","border-solid border-[1px] border-l-0 border-neutral-400")}"><slot part="message" class="block w-full pl-3 py-2" aria-live="polite"></slot>${this.closable?gt`<sd-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" label="${this.localize.term("close")}" @click="${this.handleCloseClick}"><sd-icon name="close" library="system" color="currentColor"></sd-icon></sd-button>`:""}</div>${this.durationIndicator?gt`<div part="duration-indicator__elapsed" id="duration-indicator__elapsed" style="${`animation-duration: ${this.duration}ms`}" class="${Se("absolute w-0 h-[2px] bottom-0 bg-primary z-10 animate-grow")}"></div><div part="duration-indicator__total" class="w-full h-[2px] bottom-0 absolute bg-neutral-400"></div>`:""}</div>`}};ps.styles=[ie,ne.styles,L`:host{display:contents}#notification:hover #duration-indicator__elapsed{animation-play-state:paused!important}`],ds([Ut('[part~="base"]')],ps.prototype,"base",2),ds([jt({type:Boolean,reflect:!0})],ps.prototype,"open",2),ds([jt({type:Boolean,reflect:!0})],ps.prototype,"closable",2),ds([jt({reflect:!0})],ps.prototype,"variant",2),ds([jt({reflect:!0,attribute:"toast-stack"})],ps.prototype,"toastStack",2),ds([jt({type:Number})],ps.prototype,"duration",2),ds([jt({type:Boolean,reflect:!0,attribute:"duration-indicator"})],ps.prototype,"durationIndicator",2),ds([ee("open",{waitUntilFirstUpdate:!0})],ps.prototype,"handleOpenChange",1),ds([ee("duration")],ps.prototype,"handleDurationChange",1),ps=ds([Mt("sd-notification")],ps),ke("notification.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),ke("notification.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});const us=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ps}},Symbol.toStringTag,{value:"Module"}));var bs=Object.defineProperty,vs=Object.getOwnPropertyDescriptor,gs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?vs(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&bs(e,i,s),s};let ms=class extends ne{constructor(){super(...arguments),this.hasSlotController=new si(this,"default","left","right"),this.localize=new S(this),this.current=!1,this.selected=!1,this.hasHover=!1,this.size="lg",this.checkbox=!1,this.disabled=!1,this.value=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","option"),this.setAttribute("aria-selected","false")}handleDefaultSlotChange(){const t=this.getTextLabel();typeof this.cachedTextLabel>"u"?this.cachedTextLabel=t:t!==this.cachedTextLabel&&(this.cachedTextLabel=t,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute("aria-selected",this.selected?"true":"false")}handleValueChange(){this.value.includes(" ")&&(console.error("Option values cannot include a space. All spaces have been replaced with underscores.",this),this.value=this.value.replace(/ /g,"_"))}getTextLabel(){return(this.textContent??"").trim()}render(){this.hasSlotController.test("default");const t=this.hasSlotController.test("left"),e=this.hasSlotController.test("right");return gt`<div part="base" class="${Se("px-4 flex items-center w-full transition-all text-left text-base relative text-black",{sm:"text-sm py-1",md:"text-base py-2",lg:"text-base py-3"}[this.size],this.disabled?"text-neutral-500 cursor-not-allowed":"cursor-pointer",this.hasHover&&!this.disabled?"bg-neutral-200":"",this.current&&"bg-neutral-200")}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><span class="${Se("absolute w-full left-0 top-0 pointer-events-none transition-all duration-150 border-l-4 h-[calc(100%-8px)]",this.selected&&!this.checkbox?"border-accent":"border-transparent",this.disabled&&"border-neutral-500 top-1",!this.disabled&&this.hasHover?"h-full top-0":"top-1")}"></span> ${this.checkbox?gt`<span id="control" part="control ${this.selected?" control--checked":"control--unchecked"}" class="${Se("relative flex flex-initial items-center justify-center border rounded-sm h-4 w-4 mr-2",this.disabled?"border-neutral-500":this.selected?"bg-accent border-accent":"border-neutral-800")}">${this.selected?gt`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-icon>`:""}</span>`:""} ${t?gt`<slot name="left" part="left" class="inline-flex mr-2"></slot>`:""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${e?gt`<slot name="right" part="right" class="inline-flex ml-2"></slot>`:""}</div>`}};ms.styles=[ie,ne.styles,L`:host{position:relative;display:block;width:100%;outline:2px solid transparent!important;outline-offset:2px!important}`],gs([Ut('[part="base"]')],ms.prototype,"defaultSlot",2),gs([Vt()],ms.prototype,"current",2),gs([Vt()],ms.prototype,"selected",2),gs([Vt()],ms.prototype,"hasHover",2),gs([jt({reflect:!0})],ms.prototype,"size",2),gs([jt({type:Boolean,reflect:!0})],ms.prototype,"checkbox",2),gs([jt({type:Boolean,reflect:!0})],ms.prototype,"disabled",2),gs([jt({reflect:!0})],ms.prototype,"value",2),gs([ee("disabled")],ms.prototype,"handleDisabledChange",1),gs([ee("selected")],ms.prototype,"handleSelectedChange",1),gs([ee("value")],ms.prototype,"handleValueChange",1),ms=gs([Mt("sd-option")],ms);const ys=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ms}},Symbol.toStringTag,{value:"Module"}));var fs=Object.defineProperty,ws=Object.getOwnPropertyDescriptor,xs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?ws(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&fs(e,i,s),s};let ks=class extends ne{constructor(){super(...arguments),this.hasSlotController=new si(this,"[default]","icon"),this.hasFocus=!1,this.checked=!1,this.disabled=!1,this.size="lg"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","presentation")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(t){if(this.disabled)return t.preventDefault(),void t.stopPropagation();this.checked=!0}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}focus(t){this.input.focus(t)}blur(){this.input.blur()}render(){const t=this.hasSlotController.test("[default]"),e=this.hasSlotController.test("icon"),i=`${this.size}-${t?"label":"no-label"}`;return gt`<div part="base" role="presentation" class="relative"><button part="${"button"+(this.checked?" button--checked":"")}" role="radio" aria-checked="${this.checked}" class="${Se("relative text-center border rounded-default transition-all ease-in-out duration-100 items-center justify-center focus-visible:focus-outline","sm"===this.size?"text-sm":"text-base",this.checked&&!this.disabled?"bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500":this.disabled&&!this.checked?"border-neutral-500 text-neutral-500 hover:cursor-not-allowed":this.disabled&&this.checked?"bg-neutral-500 text-white hover:cursor-not-allowed":"bg-transparent text-primary border-primary hover:bg-primary-100 hover:border-primary-500 hover:text-primary-500 cursor-pointer",t&&"px-4",this.hasFocus&&"focused-class",t&&"button--has-label",e&&"button--has-icon flex gap-2",i)}" aria-disabled="${this.disabled}" type="button" value="${pi(this.value)}" tabindex="${this.checked?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @click="${this.handleClick}"><slot name="icon" part="icon" class="${Se(e&&"inline-flex relative items-center",{sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size])}" ?hidden="${!e}"></slot>${t?gt`<slot part="label" class="button__label inline-flex relative items-center whitespace-nowrap"></slot>`:null}</button></div>`}};ks.styles=[ne.styles,ie,L`:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;position:absolute;inset:var(--sd-spacing-0,0);z-index:-10;opacity:var(--sd-opacity-0,0);outline-style:dotted;outline-width:1px;outline-color:rgb(var(--sd-color-error,204 25 55) / 1)}.lg-label{height:var(--sd-spacing-12,3rem)}.lg-no-label{height:var(--sd-spacing-12,3rem);width:var(--sd-spacing-12,3rem)}.md-label{height:var(--sd-spacing-10,2.5rem)}.md-no-label{height:var(--sd-spacing-10,2.5rem);width:var(--sd-spacing-10,2.5rem)}.sm-label{height:var(--sd-spacing-8,2rem)}.sm-no-label{height:var(--sd-spacing-8,2rem);width:var(--sd-spacing-8,2rem)}:host(.sd-button-group__button--first:not(.sd-button-group__button--last)) button{border-top-right-radius:var(--sd-border-radius-none,0);border-bottom-right-radius:var(--sd-border-radius-none,0)}:host(.sd-button-group__button--inner) button{border-radius:var(--sd-border-radius-none,0)}:host(.sd-button-group__button--last:not(.sd-button-group__button--first)) button{border-top-left-radius:var(--sd-border-radius-none,0);border-bottom-left-radius:var(--sd-border-radius-none,0)}:host(.sd-button-group__button:not(.sd-button-group__button--first)){margin-inline-start:-1px}:host(.sd-button-group__button--hover){z-index:10}:host(.sd-button-group__button--focus),:host(.sd-button-group__button[checked]){z-index:20}`],xs([Ut(".button")],ks.prototype,"input",2),xs([Ut(".hidden-input")],ks.prototype,"hiddenInput",2),xs([Vt()],ks.prototype,"hasFocus",2),xs([jt({type:Boolean,reflect:!0})],ks.prototype,"checked",2),xs([jt()],ks.prototype,"value",2),xs([jt({type:Boolean,reflect:!0})],ks.prototype,"disabled",2),xs([jt({reflect:!0})],ks.prototype,"size",2),xs([ee("disabled",{waitUntilFirstUpdate:!0})],ks.prototype,"handleDisabledChange",1),ks=xs([Mt("sd-radio-button")],ks);const Cs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ks}},Symbol.toStringTag,{value:"Module"})),$s=L`${ie}:host{display:inline-block}.button-group{display:flex;flex-wrap:nowrap}`;var Ss=Object.defineProperty,zs=Object.getOwnPropertyDescriptor,_s=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?zs(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ss(e,i,s),s};let Os=class extends ne{constructor(){super(...arguments),this.disableRole=!1,this.label=""}handleFocus(t){const e=Es(t.target);null==e||e.classList.add("sd-button-group__button--focus")}handleBlur(t){const e=Es(t.target);null==e||e.classList.remove("sd-button-group__button--focus")}handleMouseOver(t){const e=Es(t.target);null==e||e.classList.add("sd-button-group__button--hover")}handleMouseOut(t){const e=Es(t.target);null==e||e.classList.remove("sd-button-group__button--hover")}handleSlotChange(){const t=[...this.defaultSlot.assignedElements({flatten:!0})];t.forEach((e=>{const i=t.indexOf(e),o=Es(e);null!==o&&(o.classList.add("sd-button-group__button"),o.classList.toggle("sd-button-group__button--first",0===i),o.classList.toggle("sd-button-group__button--inner",i>0&&i<t.length-1),o.classList.toggle("sd-button-group__button--last",i===t.length-1),o.classList.toggle("sd-button-group__button--radio","sd-radio-button"===o.tagName.toLowerCase()))}))}render(){return gt`<slot part="base" class="button-group" role="${this.disableRole?"presentation":"group"}" aria-label="${this.label}" @focusout="${this.handleBlur}" @focusin="${this.handleFocus}" @mouseover="${this.handleMouseOver}" @mouseout="${this.handleMouseOut}" @slotchange="${this.handleSlotChange}"></slot>`}};function Es(t){const e="sd-button, sd-radio-button";return t.closest(e)??t.querySelector(e)}Os.styles=$s,_s([Ut("slot")],Os.prototype,"defaultSlot",2),_s([Vt()],Os.prototype,"disableRole",2),_s([jt()],Os.prototype,"label",2),Os=_s([Mt("sd-button-group")],Os);var Ps=Object.defineProperty,As=Object.getOwnPropertyDescriptor,Ts=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?As(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ps(e,i,s),s};let Ls=class extends ne{constructor(){super(...arguments),this.checked=!1,this.hasFocus=!1,this.size="lg",this.invalid=!1,this.disabled=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.setInitialAttributes(),this.addEventListeners()}disconnectedCallback(){this.removeEventListeners()}addEventListeners(){this.addEventListener("blur",this.handleBlur),this.addEventListener("click",this.handleClick),this.addEventListener("focus",this.handleFocus)}removeEventListeners(){this.removeEventListener("blur",this.handleBlur),this.removeEventListener("click",this.handleClick),this.removeEventListener("focus",this.handleFocus)}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(){this.disabled||(this.checked=!0)}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}setInitialAttributes(){this.setAttribute("role","radio"),this.setAttribute("tabindex","-1"),this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleCheckedChange(){this.setAttribute("aria-checked",this.checked?"true":"false"),this.setAttribute("tabindex",this.checked?"0":"-1")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}render(){return gt`<span part="base" class="${Se("sd-radio group inline-flex items-start items-center text-base leading-normal text-black cursor-pointer align-middle",this.disabled&&"hover:cursor-not-allowed",{sm:"small-size text-sm",lg:"text-base"}[this.size])}"><span part="${this.checked?"control--checked":"control--unchecked"}" class="${Se("flex-initial shrink-0 relative inline-flex items-center justify-center border rounded-full bg-white h-4 w-4",this.disabled?"border-neutral-500":this.invalid?"border-error hover:border-error-400 group-hover:border-error-400":this.checked?"border-accent hover:border-accent-550 group-hover:border-accent-550":"border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200")}">${this.checked?gt`<span part="checked" class="${Se("rounded-full inline-flex text-white border bg-accent h-2.5 w-2.5",this.disabled?"bg-neutral-500":this.invalid?"bg-error hover:bg-error-400 group-hover:bg-error-400":this.checked?"bg-accent hover:bg-accent-550 group-hover:bg-accent-550":"bg-neutral-800")}"></span>`:""}</span><slot part="label" class="${Se("ml-2 select-none inline-block",this.disabled?"text-neutral-500":this.invalid?"text-error":"text-black")}"></slot></span>`}};Ls.styles=[ne.styles,L`:host{display:block}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host(:focus-visible) [part=control--checked],:host(:focus-visible) [part=control--unchecked]{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:rgb(var(--sd-color-primary,0 53 142) / 1)}`],Ts([Vt()],Ls.prototype,"checked",2),Ts([Vt()],Ls.prototype,"hasFocus",2),Ts([jt({reflect:!0})],Ls.prototype,"size",2),Ts([jt({type:Boolean,reflect:!0})],Ls.prototype,"invalid",2),Ts([jt({type:Boolean,reflect:!0})],Ls.prototype,"disabled",2),Ts([jt()],Ls.prototype,"value",2),Ts([ee("checked")],Ls.prototype,"handleCheckedChange",1),Ts([ee("disabled",{waitUntilFirstUpdate:!0})],Ls.prototype,"handleDisabledChange",1),Ls=Ts([Mt("sd-radio")],Ls);const Ds=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ls}},Symbol.toStringTag,{value:"Module"}));var Ms=Object.defineProperty,Bs=Object.getOwnPropertyDescriptor,Is=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Bs(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ms(e,i,s),s};let js=class extends ne{constructor(){super(...arguments),this.formControlController=new ei(this),this.hasSlotController=new si(this,"label","error-text"),this.customValidityMessage="",this.hasButtonGroup=!1,this.defaultValue="",this.showInvalidStyle=!1,this.label="",this.boldLabel=!1,this.name="option",this.value="",this.size="lg",this.form="",this.required=!1,this.orientation="vertical"}get validity(){const t=this.required&&!this.value;return""!==this.customValidityMessage?ri:t?oi:ii}get validationMessage(){const t=this.required&&!this.value;return""!==this.customValidityMessage?this.customValidityMessage:t?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll("sd-radio, sd-radio-button")]}handleRadioClick(t){const e=t.target.closest("sd-radio, sd-radio-button"),i=this.getAllRadios(),o=this.value;e.disabled||(this.value=e.value,i.forEach((t=>t.checked=t===e)),this.value!==o&&(this.emit("sd-change"),this.emit("sd-input")))}handleKeyDown(t){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;const e=this.getAllRadios().filter((t=>!t.disabled)),i=e.find((t=>t.checked))??e[0],o=" "===t.key?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,r=this.value;let s=e.indexOf(i)+o;s<0&&(s=e.length-1),s>e.length-1&&(s=0),this.getAllRadios().forEach((t=>{t.checked=!1,this.hasButtonGroup||(t.tabIndex=-1)})),this.value=e[s].value,e[s].checked=!0,this.hasButtonGroup?e[s].shadowRoot.querySelector("button").focus():(e[s].tabIndex=0,e[s].focus()),this.value!==r&&(this.emit("sd-change"),this.emit("sd-input")),t.preventDefault()}focus(){const t=this.getAllRadios(),e=t.find((t=>t.checked))||t[0];e&&e.focus()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}async syncRadioElements(){var t,e;const i=this.getAllRadios();if(await Promise.all(i.map((async t=>{await t.updateComplete,t.checked=t.value===this.value,t.size=this.size,t instanceof Ls&&(t.invalid=this.showInvalidStyle)}))),this.hasButtonGroup=i.some((t=>"sd-radio-button"===t.tagName.toLowerCase())),!i.some((t=>t.checked)))if(this.hasButtonGroup){const e=null==(t=i[0].shadowRoot)?void 0:t.querySelector("button");e&&(e.tabIndex=0)}else i[0].tabIndex=0;if(this.hasButtonGroup){const t=null==(e=this.shadowRoot)?void 0:e.querySelector("sd-button-group");t&&(t.disableRole=!0)}}syncRadios(){customElements.get("sd-radio")&&customElements.get("sd-radio-button")?this.syncRadioElements():(customElements.get("sd-radio")?this.syncRadioElements():customElements.whenDefined("sd-radio").then((()=>this.syncRadios())),customElements.get("sd-radio-button")?this.syncRadioElements():customElements.whenDefined("sd-radio-button").then((()=>this.syncRadios())))}updateCheckedRadio(){this.getAllRadios().forEach((t=>t.checked=t.value===this.value)),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleInvalidChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&(this.updateCheckedRadio(),this.reportValidity())}checkValidity(){const t=this.required&&!this.value,e=""!==this.customValidityMessage;return!t&&!e||(this.formControlController.emitInvalidEvent(),!1)}getForm(){return this.formControlController.getForm()}reportValidity(){const t=this.validity.valid;return this.formControlController.setValidity(t),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),this.formControlController.fakeUserInteraction(),t||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout((()=>this.validationInput.hidden=!0),1e4)),t}setCustomValidity(t=""){this.customValidityMessage=t,this.validationInput.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=!!this.label||!!t,i=gt`<slot @slotchange="${this.syncRadios}" @click="${this.handleRadioClick}" @keydown="${this.handleKeyDown}"></slot>`;return gt`<fieldset part="form-control" class="${Se("border-0 p-0 m-0 flex flex-col",{sm:"text-sm",lg:"text-base"}[this.size])}" role="radiogroup" aria-labelledby="label" aria-errormessage="error-text"><label part="form-control-label" id="label" class="${Se("mb-2 p-0 leading-normal text-black text-left",!e&&"hidden",this.boldLabel&&"font-bold")}" @click="${this.focus}" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="${Se("flex",{vertical:"flex-col",horizontal:"flex-row"}[this.orientation])}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup?gt`<sd-button-group part="button-group" exportparts="base:button-group__base" role="presentation">${i}</sd-button-group>`:i}</div></fieldset>${this.formControlController.renderInvalidMessage()}`}};js.dependencies={"sd-button-group":Os},js.styles=[ie,ne.styles,L`:host{display:block}:host([orientation=vertical]) ::slotted(sd-radio){margin-bottom:var(--sd-spacing-2,.5rem);display:flex}:host([orientation=vertical]) ::slotted(sd-radio:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-radio){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-radio){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([required]) #label::after{content:' *'}`],Is([Ut("slot:not([name])")],js.prototype,"defaultSlot",2),Is([Ut("#validation-input")],js.prototype,"validationInput",2),Is([Ut("#invalid-message")],js.prototype,"invalidMessage",2),Is([Vt()],js.prototype,"hasButtonGroup",2),Is([Vt()],js.prototype,"defaultValue",2),Is([Vt()],js.prototype,"showInvalidStyle",2),Is([jt()],js.prototype,"label",2),Is([jt({type:Boolean,reflect:!0})],js.prototype,"boldLabel",2),Is([jt()],js.prototype,"name",2),Is([jt({reflect:!0})],js.prototype,"value",2),Is([jt({reflect:!0})],js.prototype,"size",2),Is([jt({reflect:!0})],js.prototype,"form",2),Is([jt({type:Boolean,reflect:!0})],js.prototype,"required",2),Is([jt({reflect:!0})],js.prototype,"orientation",2),Is([ee("size",{waitUntilFirstUpdate:!0})],js.prototype,"handleSizeChange",1),Is([ee("showInvalidStyle",{waitUntilFirstUpdate:!0})],js.prototype,"handleInvalidChange",1),Is([ee("value")],js.prototype,"handleValueChange",1),js=Is([Mt("sd-radio-group")],js);const Vs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return js}},Symbol.toStringTag,{value:"Module"}));var Fs=Object.defineProperty,Us=Object.getOwnPropertyDescriptor,Rs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Us(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Fs(e,i,s),s};let Hs=class extends ne{constructor(){super(...arguments),this.orientation="horizontal",this.buttons=!1,this.step=150,this.scrollbars=!1,this.shadows=!1,this.inset=!1,this.canScroll={left:!1,right:!1,up:!1,down:!1},this.isScrollHorizontalEnabled=!1,this.isScrollVerticalEnabled=!1,this.scrollContainer=null}connectedCallback(){super.connectedCallback(),this.updateScrollEnabledFlags(),this.resizeObserver=new ResizeObserver((()=>{this.updateScrollIndicatorVisibility()})),this.updateComplete.then((()=>{this.scrollContainer=this.renderRoot.querySelector(".scroll-container"),this.scrollContainer&&this.resizeObserver.observe(this.scrollContainer)}))}disconnectedCallback(){super.disconnectedCallback(),this.scrollContainer&&this.resizeObserver.unobserve(this.scrollContainer)}updated(t){super.updated(t),(t.has("orientation")||t.has("buttons")||t.has("shadows"))&&(this.updateScrollEnabledFlags(),this.updateScrollIndicatorVisibility())}updateScrollEnabledFlags(){const t=this.orientation;this.isScrollHorizontalEnabled="horizontal"===t||"auto"===t,this.isScrollVerticalEnabled="vertical"===t||"auto"===t}get container(){return this.renderRoot.querySelector(".scroll-container")}updateScrollIndicatorVisibility(){const t=this.container;if(t){const e=this.isScrollHorizontalEnabled&&t.scrollLeft>0,i=this.isScrollHorizontalEnabled&&t.scrollLeft+t.clientWidth<t.scrollWidth-1,o=this.isScrollVerticalEnabled&&t.scrollTop>0,r=this.isScrollVerticalEnabled&&t.scrollTop+t.clientHeight<t.scrollHeight-1;this.canScroll={left:e,right:i,up:o,down:r},(e||o)&&this.dispatchEvent(new CustomEvent("start")),(i||r)&&this.dispatchEvent(new CustomEvent("end"))}}handleScroll(t){var e;const i="left"===t||"up"===t?-this.step:this.step,o={behavior:"smooth"};o["left"===t||"right"===t?"left":"top"]=i,null==(e=this.scrollContainer)||e.scrollBy(o);const r=`button-${t}`;this.dispatchEvent(new CustomEvent(r,{bubbles:!0,composed:!0}))}render(){const t="relative p-0 border-0 bg-transparent cursor-pointer w-5 h-5 flex items-center justify-center sd-interactive rounded-md flex text-lg",e="scroll-shadow absolute z-10 pointer-events-none";return gt`<div part="base" class="${Se("scroll-container flex overflow-hidden flex-1","horizontal"===this.orientation&&"scroll-horizontal flex-row whitespace-nowrap items-center overflow-x-scroll overflow-y-hidden","vertical"===this.orientation&&"scroll-vertical justify-items-center overflow-y-scroll overflow-x-hidden","auto"===this.orientation&&"scroll-auto overflow-auto",this.scrollbars?"show-scrollbars":"hide-scrollbars",this.inset?"p-4":"")}" @scroll="${this.updateScrollIndicatorVisibility}"><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons?gt`${this.isScrollHorizontalEnabled?gt`${this.canScroll.left?gt`<div part="button-left" class="absolute z-10 flex items-center justify-center top-0 left-0 h-full w-8"><button part="button-start" class="${Se(t)}" @click="${()=>this.handleScroll("left")}"><slot name="icon-start"><sd-icon library="system" name="chevron-up" class="rotate-[-90deg]"></sd-icon></slot></button></div>`:null} ${this.canScroll.right?gt`<div part="button-right" class="absolute z-10 flex items-center justify-center top-0 right-0 h-full w-8"><button part="button-end" class="${Se(t)}" @click="${()=>this.handleScroll("right")}"><slot name="icon-end"><sd-icon library="system" name="chevron-down" class="rotate-[-90deg]"></sd-icon></slot></button></div>`:null}`:null} ${this.isScrollVerticalEnabled?gt`${this.canScroll.up?gt`<div part="button-top" class="absolute z-10 flex items-center justify-center top-0 left-0 w-full h-8"><button part="button-start" class="${Se(t)}" @click="${()=>this.handleScroll("up")}"><slot name="icon-start"><sd-icon library="system" name="chevron-up"></sd-icon></slot></button></div>`:null} ${this.canScroll.down?gt`<div part="button-bottom" class="absolute z-10 flex items-center justify-center bottom-0 left-0 w-full h-8"><button part="button-end" class="${Se(t)}" @click="${()=>this.handleScroll("down")}"><slot name="icon-end"><sd-icon library="system" name="chevron-down"></sd-icon></slot></button></div>`:null}`:null}`:null} ${this.shadows?gt`${this.isScrollHorizontalEnabled?gt`${this.canScroll.left?gt`<div part="shadow-left" class="${e} left top-0 left-0 w-[6px] h-full"></div>`:null} ${this.canScroll.right?gt`<div part="shadow-right" class="${e} right top-0 right-0 w-[6px] h-full"></div>`:null}`:null} ${this.isScrollVerticalEnabled?gt`${this.canScroll.up?gt`<div part="shadow-top" class="${e} top top-0 left-0 w-full h-[6px]"></div>`:null} ${this.canScroll.down?gt`<div part="shadow-bottom" class="${e} bottom bottom-0 left-0 w-full h-[6px]"></div>`:null}`:null}`:null}`}};Hs.styles=[ne.styles,T(Oi),ie,L`:host{--gradient-color:rgba(255, 255, 255, 0);--gradient:var(--gradient-color) 0%,#fff 80%,#fff 100%;position:relative;display:flex;overflow:hidden}.hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbars::-webkit-scrollbar{display:none}.scroll-container::-webkit-scrollbar-thumb{background-color:transparent}.scroll-container:hover::-webkit-scrollbar-thumb{background:var(--background-neutral-400,#c3c3c3);border-radius:var(--sd-border-radius-sm,.125rem)}.scroll-container::-webkit-scrollbar{height:var(--sd-spacing-1,.25rem);width:var(--sd-spacing-1,.25rem)}.scroll-auto{overflow:auto}[part=button-left]{background:linear-gradient(270deg,var(--gradient))}[part=button-right]{background:linear-gradient(90deg,var(--gradient))}[part=button-top]{background:linear-gradient(0deg,var(--gradient))}[part=button-bottom]{background:linear-gradient(180deg,var(--gradient))}[part=shadow-left]{background:linear-gradient(270deg,rgba(24,24,24,0) 50%,rgba(24,24,24,.4) 100%)}[part=shadow-right]{background:linear-gradient(90deg,rgba(24,24,24,0) 50%,rgba(24,24,24,.4) 100%)}[part=shadow-top]{background:linear-gradient(0deg,rgba(24,24,24,0) 50%,rgba(24,24,24,.4) 100%)}[part=shadow-bottom]{background:linear-gradient(180deg,rgba(24,24,24,0) 50%,rgba(24,24,24,.4) 100%)}.sd-icon--top{align-self:flex-start}.sd-icon--down{align-self:flex-end}`],Rs([jt({type:String,reflect:!0})],Hs.prototype,"orientation",2),Rs([jt({type:Boolean,reflect:!0})],Hs.prototype,"buttons",2),Rs([jt({type:Number,reflect:!0})],Hs.prototype,"step",2),Rs([jt({type:Boolean,reflect:!0})],Hs.prototype,"scrollbars",2),Rs([jt({type:Boolean,reflect:!0})],Hs.prototype,"shadows",2),Rs([jt({type:Boolean,reflect:!0})],Hs.prototype,"inset",2),Rs([Vt()],Hs.prototype,"canScroll",2),Rs([Vt()],Hs.prototype,"isScrollHorizontalEnabled",2),Rs([Vt()],Hs.prototype,"isScrollVerticalEnabled",2),Hs=Rs([Mt("sd-scrollable")],Hs);const Ns=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Hs}},Symbol.toStringTag,{value:"Module"}));var qs=Object.defineProperty,Ks=Object.getOwnPropertyDescriptor,Zs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ks(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&qs(e,i,s),s};let Ws=class extends ne{constructor(){super(...arguments),this.size="lg",this.selected=!1,this.removable=!1,this.disabled=!1,this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleRemoveClick(){this.emit("sd-remove")}isLink(){return!!this.href}click(){this.tag.click()}focus(t){this.tag.focus(t)}blur(){this.tag.blur()}render(){const t=this.isLink(),e=t?li`a`:li`button`;return hi`<${e} part="base" type="${pi(t?void 0:"button")}" href="${pi(t?this.href:void 0)}" rel="${pi(t&&this.target?"noreferrer noopener":void 0)}" target="${pi(t?this.target:void 0)}" download="${pi(t?this.download:void 0)}" ?disabled="${pi(t?void 0:this.disabled)}" aria-disabled="${this.disabled?"true":"false"}" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${Se("inline-flex border box-border rounded-full items-center leading-none whitespace-nowrap focus-visible:focus-outline",{lg:"h-8 text-base gap-2",sm:"h-6 text-sm gap-1"}[this.size],{lg:this.removable?"pl-4 pr-3 py-2":"px-4 py-2",sm:this.removable?"pl-3 pr-2 py-2":"px-3 py-[5px]"}[this.size],this.selected?"bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500 disabled:bg-neutral-500 disabled:border-neutral-500":"border-primary text-primary hover:border-primary-500 hover:bg-neutral-100 hover:text-primary-500 disabled:border-neutral-500 disabled:text-neutral-500",this.disabled&&!t&&"cursor-not-allowed")}"><slot part="content"></slot>${this.removable?hi`<slot part="removable-indicator" name="removable-indicator" @click="${this.handleRemoveClick}" class="${Se({lg:"text-base",sm:"text-[12px]"}[this.size])}"><sd-icon library="system" name="close" label="remove"></sd-icon></slot>`:""}</${e}>`}};Ws.styles=[ne.styles,L`:host{display:inline-block}`],Zs([Ut("a, button")],Ws.prototype,"tag",2),Zs([jt({reflect:!0})],Ws.prototype,"size",2),Zs([jt({type:Boolean,reflect:!0})],Ws.prototype,"selected",2),Zs([jt({type:Boolean,reflect:!0})],Ws.prototype,"removable",2),Zs([jt({type:Boolean,reflect:!0})],Ws.prototype,"disabled",2),Zs([jt()],Ws.prototype,"href",2),Zs([jt()],Ws.prototype,"target",2),Zs([jt()],Ws.prototype,"download",2),Ws=Zs([Mt("sd-tag")],Ws);const Ys=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ws}},Symbol.toStringTag,{value:"Module"}));var Xs=Object.defineProperty,Gs=Object.getOwnPropertyDescriptor,Js=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Gs(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Xs(e,i,s),s};let Qs=class extends ne{constructor(){super(...arguments),this.formControlController=new ei(this,{assumeInteractionOn:["sd-blur","sd-input"]}),this.hasSlotController=new si(this,"help-text","label"),this.localize=new S(this),this.typeToSelectString="",this.hasHover=!1,this.displayLabel="",this.hasFocus=!1,this.selectedOptions=[],this.showValidStyle=!1,this.showInvalidStyle=!1,this.defaultValue="",this.open=!1,this.size="lg",this.label="",this.placeholder=this.localize.term("selectDefaultPlaceholder"),this.helpText="",this.placement="bottom",this.currentPlacement=this.placement,this.clearable=!1,this.disabled=!1,this.multiple=!1,this.useTags=!1,this.maxOptionsVisible=3,this.form="",this.name="",this.value="",this.required=!1,this.styleOnValid=!1,this.hoist=!1,this.getTag=t=>gt`<sd-tag ?disabled="${this.disabled}" part="tag" exportparts="
94
+ */})(t),e}});var Ri=Object.defineProperty,Hi=Object.getOwnPropertyDescriptor,Ni=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Hi(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ri(e,i,s),s};let qi=class extends ne{constructor(){super(...arguments),this.formControlController=new ei(this,{value:t=>t.checked?t.value||"on":void 0,defaultValue:t=>t.defaultChecked,setValue:(t,e)=>t.checked=e}),this.title="",this.name="",this.size="lg",this.disabled=!1,this.checked=!1,this.indeterminate=!1,this.defaultChecked=!1,this.form="",this.required=!1,this.showInvalidStyle=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,this.indeterminate=!1,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.disabled&&this.indeterminate?"disabledIndeterminate":this.disabled&&this.checked?"disabledChecked":this.disabled?"disabled":this.showInvalidStyle&&this.indeterminate?"invalidIndeterminate":this.showInvalidStyle?"invalid":this.checked||this.indeterminate?"filled":"default";return gt`<label part="base" class="${Se("sd-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",this.disabled&&"hover:cursor-not-allowed",{sm:"text-sm",lg:"text-base"}[this.size])}"><input class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" title="${this.title}" name="${this.name}" value="${pi(this.value)}" .indeterminate="${Ui(this.indeterminate)}" .checked="${Ui(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked?"true":"false"}" @click="${this.handleClick}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"> <span id="control" part="control ${this.checked?" control--checked":"control--unchecked"} ${this.indeterminate?" control--indeterminate":""}" class="${Se("relative flex flex-initial items-center justify-center border rounded-sm h-4 w-4\n peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2\n peer-focus-visible:outline-primary",{sm:"mt-[2px]",lg:"mt-[3px]"}[this.size],{disabledIndeterminate:"border-neutral-500 bg-neutral-500",disabledChecked:"border-neutral-500 bg-neutral-500",disabled:"border-neutral-500",invalidIndeterminate:"border-error bg-error group-hover:bg-error-400",invalid:"border-error group-hover:bg-neutral-200",filled:"border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",default:"border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[t])}">${this.checked?gt`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-icon>`:""} ${!this.checked&&this.indeterminate?gt`<sd-icon part="indeterminate-icon" class="text-white w-3 h-3" library="system" name="status-minus"></sd-icon>`:""} </span><span part="label" id="label" class="${Se("select-none inline-block ml-2",this.disabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};qi.styles=[ne.styles,L`:host{display:block}:host(:focus-visible){outline-width:0}:host([required]) #label::after{content:' *'}`],Ni([Ut('input[type="checkbox"]')],qi.prototype,"input",2),Ni([Ut("#invalid-message")],qi.prototype,"invalidMessage",2),Ni([jt()],qi.prototype,"title",2),Ni([jt()],qi.prototype,"name",2),Ni([jt()],qi.prototype,"value",2),Ni([jt({reflect:!0})],qi.prototype,"size",2),Ni([jt({type:Boolean,reflect:!0})],qi.prototype,"disabled",2),Ni([jt({type:Boolean,reflect:!0})],qi.prototype,"checked",2),Ni([jt({type:Boolean,reflect:!0})],qi.prototype,"indeterminate",2),Ni([Vi("checked")],qi.prototype,"defaultChecked",2),Ni([jt({reflect:!0})],qi.prototype,"form",2),Ni([jt({type:Boolean,reflect:!0})],qi.prototype,"required",2),Ni([Vt()],qi.prototype,"showInvalidStyle",2),Ni([ee("disabled",{waitUntilFirstUpdate:!0})],qi.prototype,"handleDisabledChange",1),Ni([ee(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],qi.prototype,"handleStateChange",1),qi=Ni([Mt("sd-checkbox")],qi);const Ki=Object.freeze(Object.defineProperty({__proto__:null,get default(){return qi}},Symbol.toStringTag,{value:"Module"})),Zi=new Set;function Wi(t){if(Zi.add(t),!document.body.classList.contains("sd-scroll-lock")){const t=function(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}();document.body.classList.add("sd-scroll-lock"),document.body.style.setProperty("--sd-scroll-lock-size",`${t}px`)}}function Yi(t){Zi.delete(t),0===Zi.size&&(document.body.classList.remove("sd-scroll-lock"),document.body.style.removeProperty("--sd-scrollbar-width"))}function Xi(t,e,i="vertical",o="smooth"){const r=function(t,e){return{top:Math.round(t.getBoundingClientRect().top-e.getBoundingClientRect().top),left:Math.round(t.getBoundingClientRect().left-e.getBoundingClientRect().left)}}(t,e),s=r.top+e.scrollTop,a=r.left+e.scrollLeft,n=e.scrollLeft,l=e.scrollLeft+e.offsetWidth,d=e.scrollTop,h=e.scrollTop+e.offsetHeight;("horizontal"===i||"both"===i)&&(a<n?e.scrollTo({left:a,behavior:o}):a+t.clientWidth>l&&e.scrollTo({left:a-e.offsetWidth+t.clientWidth,behavior:o})),("vertical"===i||"both"===i)&&(s<d?e.scrollTo({top:s,behavior:o}):s+t.clientHeight>h&&e.scrollTo({top:s-e.offsetHeight+t.clientHeight,behavior:o}))}function Gi(t){const e=t.tagName.toLowerCase();return!("-1"===t.getAttribute("tabindex")||t.hasAttribute("disabled")||t.hasAttribute("aria-disabled")&&"false"!==t.getAttribute("aria-disabled")||"input"===e&&"radio"===t.getAttribute("type")&&!t.hasAttribute("checked")||null===t.offsetParent||"hidden"===window.getComputedStyle(t).visibility)&&(!!(("audio"===e||"video"===e)&&t.hasAttribute("controls")||t.hasAttribute("tabindex")||t.hasAttribute("contenteditable")&&"false"!==t.getAttribute("contenteditable"))||["button","input","select","textarea","a","audio","video","summary"].includes(e))}function Ji(t){const e=[];return function t(i){i instanceof HTMLElement&&(e.push(i),null!==i.shadowRoot&&"open"===i.shadowRoot.mode&&t(i.shadowRoot)),[...i.children].forEach((e=>t(e)))}(t),{start:e.find((t=>Gi(t)))??null,end:e.reverse().find((t=>Gi(t)))??null}}let Qi=[];class to{constructor(t){this.tabDirection="forward",this.element=t,this.handleFocusIn=this.handleFocusIn.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this)}activate(){Qi.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){Qi=Qi.filter((t=>t!==this.element)),document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return Qi[Qi.length-1]===this.element}checkFocus(){if(this.isActive()&&!this.element.matches(":focus-within")){const{start:t,end:e}=Ji(this.element),i="forward"===this.tabDirection?t:e;"function"==typeof(null==i?void 0:i.focus)&&i.focus({preventScroll:!0})}}handleFocusIn(){this.checkFocus()}handleKeyDown(t){"Tab"===t.key&&t.shiftKey&&(this.tabDirection="backward",requestAnimationFrame((()=>this.checkFocus())))}handleKeyUp(){this.tabDirection="forward"}}var eo=Object.defineProperty,io=Object.getOwnPropertyDescriptor,oo=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?io(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&eo(e,i,s),s};let ro=class extends ne{constructor(){super(...arguments),this.hasSlotController=new si(this,"footer"),this.localize=new S(this),this.open=!1,this.headline="",this.noCloseButton=!1}connectedCallback(){super.connectedCallback(),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.modal=new to(this)}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),Wi(this))}disconnectedCallback(){super.disconnectedCallback(),Yi(this)}requestClose(t){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){const t=Ce(this,"dialog.denyClose",{dir:this.localize.dir()});be(this.panel,t.keyframes,t.options)}else this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}handleDocumentKeyDown(t){this.open&&"Escape"===t.key&&(t.stopPropagation(),this.requestClose("keyboard"))}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.modal.activate(),Wi(this);const t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([me(this.dialog),me(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame((()=>{this.emit("sd-initial-focus",{cancelable:!0}).defaultPrevented||(t?t.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),t&&t.setAttribute("autofocus","")}));const e=Ce(this,"dialog.show",{dir:this.localize.dir()}),i=Ce(this,"dialog.overlay.show",{dir:this.localize.dir()});await Promise.all([be(this.panel,e.keyframes,e.options),be(this.overlay,i.keyframes,i.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.modal.deactivate(),await Promise.all([me(this.dialog),me(this.overlay)]);const t=Ce(this,"dialog.hide",{dir:this.localize.dir()}),e=Ce(this,"dialog.overlay.hide",{dir:this.localize.dir()});await Promise.all([be(this.overlay,e.keyframes,e.options).then((()=>{this.overlay.hidden=!0})),be(this.panel,t.keyframes,t.options).then((()=>{this.panel.hidden=!0}))]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,Yi(this);const i=this.originalTrigger;"function"==typeof(null==i?void 0:i.focus)&&setTimeout((()=>i.focus())),this.emit("sd-after-hide")}}async show(){if(!this.open)return this.open=!0,$e(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,$e(this,"sd-after-hide")}render(){return gt`<div part="base" class="${Se("flex items-center justify-center fixed inset-0 z-dialog",this.hasSlotController.test("footer")&&"dialog--has-footer")}"><div part="overlay" class="fixed inset-0 bg-primary-800 opacity-90" @click="${()=>this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${Se("flex flex-col z-20 bg-white focus:outline-none py-4 sm:py-8 relative gap-6",this.open&&"flex opacity-100")}" role="dialog" aria-modal="true" aria-hidden="${this.open?"false":"true"}" aria-label="${this.headline}" aria-labelledby="title" tabindex="0"><header part="header" class="flex flex-grow-0 flex-shrink-0 basis-auto px-6 sm:px-10"><h2 part="title" class="flex-auto m-0" id="title">${this.headline.length>0?gt`<h4 class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</h4>`:gt`<slot name="headline"></slot>`}</h2>${this.noCloseButton?"":gt`<sd-button part="close-button" variant="tertiary" exportparts="base:close-button__base" class="${Se("absolute top-2 right-2")}" name="x-lg" @click="${()=>this.requestClose("close-button")}" type="button"><sd-icon name="close" library="system" color="currentColor"></sd-icon></sd-button>`}</header><main part="body" class="flex flex-auto overflow-auto w-full px-6 sm:px-10"><slot></slot></main><footer part="footer" class="flex flex-grow-0 flex-shrink-0 basis-auto ml-auto gap-4 px-6 sm:px-10"><slot name="footer"></slot></footer></div></div>`}};ro.styles=[ie,T(".sd-headline,.sd-prose :is(h1,h2,h3,h4,h5){display:flex;font-weight:700;--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity))}.sd-headline sd-icon,.sd-prose :is(h1,h2,h3,h4,h5) sd-icon{flex-shrink:0;font-size:3rem;--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity))}@media (min-width:640px){.sd-headline sd-icon,.sd-prose :is(h1,h2,h3,h4,h5) sd-icon{margin-top:var(--sd-spacing-2,.5rem)}}.sd-headline.sd-headline,.sd-headline:is(h1):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline){font-size:var(--sd-font-size-3xl,2rem);gap:var(--sd-spacing-4,1rem);line-height:var(--sd-line-height-tight,120%)}@media (min-width:640px){.sd-headline.sd-headline,.sd-headline:is(h1):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline){font-size:var(--sd-font-size-4xl,2.5rem)}}.sd-headline.sd-headline sd-icon,.sd-headline:is(h1):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline) sd-icon{margin-top:calc(var(--sd-spacing-1, .25rem)*-1)}@media (min-width:640px){.sd-headline.sd-headline sd-icon,.sd-headline:is(h1):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline) sd-icon{margin-top:var(--sd-spacing-0,0)}}.sd-headline.sd-headline--size-3xl,.sd-headline:is(h2):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline){font-size:var(--sd-font-size-2xl,1.75rem);gap:var(--sd-spacing-4,1rem);line-height:var(--sd-line-height-tight,120%)}@media (min-width:640px){.sd-headline.sd-headline--size-3xl,.sd-headline:is(h2):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline){font-size:var(--sd-font-size-3xl,2rem)}}.sd-headline.sd-headline--size-3xl sd-icon,.sd-headline:is(h2):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline) sd-icon{margin-top:calc(var(--sd-spacing-1, .25rem)*-1)}@media (min-width:640px){.sd-headline.sd-headline--size-3xl sd-icon,.sd-headline:is(h2):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline) sd-icon{margin-top:var(--sd-spacing-0,0)}}.sd-headline.sd-headline--size-base,.sd-headline.sd-headline--size-lg,.sd-headline.sd-headline--size-xl,.sd-headline:is(h3,h4,h5):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl,.sd-prose :is(h1,h2,h3,h4,h5):is(h3,h4,h5):not(.sd-headline){gap:var(--sd-spacing-2,.5rem);--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity))}.sd-headline.sd-headline--size-base sd-icon,.sd-headline.sd-headline--size-lg sd-icon,.sd-headline.sd-headline--size-xl sd-icon,.sd-headline:is(h3,h4,h5):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h3,h4,h5):not(.sd-headline) sd-icon{font-size:2rem}.sd-headline.sd-headline--size-xl,.sd-headline:is(h3):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl,.sd-prose :is(h1,h2,h3,h4,h5):is(h3):not(.sd-headline){font-size:var(--sd-font-size-xl,1.5rem)}.sd-headline.sd-headline--size-xl sd-icon,.sd-headline:is(h3):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h3):not(.sd-headline) sd-icon{margin-top:var(--sd-spacing-0-5,.125rem)}@media (min-width:640px){.sd-headline.sd-headline--size-xl sd-icon,.sd-headline:is(h3):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h3):not(.sd-headline) sd-icon{margin-top:var(--sd-spacing-0-5,.125rem)}}.sd-headline.sd-headline--size-base,.sd-headline.sd-headline--size-lg,.sd-headline:is(h4,h5):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg,.sd-prose :is(h1,h2,h3,h4,h5):is(h4,h5):not(.sd-headline){line-height:var(--sd-line-height-normal,150%)}.sd-headline.sd-headline--size-lg,.sd-headline:is(h4),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg,.sd-prose :is(h1,h2,h3,h4,h5):is(h4){font-size:var(--sd-font-size-lg,1.25rem)}.sd-headline.sd-headline--size-lg sd-icon,.sd-headline:is(h4) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h4) sd-icon{margin-top:var(--sd-spacing-0,0)}@media (min-width:640px){.sd-headline.sd-headline--size-lg sd-icon,.sd-headline:is(h4) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h4) sd-icon{margin-top:var(--sd-spacing-0,0)}}.sd-headline.sd-headline--size-base,.sd-headline:is(h5):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base,.sd-prose :is(h1,h2,h3,h4,h5):is(h5):not(.sd-headline){font-size:var(--sd-font-size-base,1rem)}.sd-headline.sd-headline--size-base sd-icon,.sd-headline:is(h5):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h5):not(.sd-headline) sd-icon{margin-top:calc(var(--sd-spacing-1, .25rem)*-1)}.sd-headline.sd-headline--size-base mark,.sd-headline:is(h5):not(.sd-headline) mark,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base mark,.sd-prose :is(h1,h2,h3,h4,h5):is(h5):not(.sd-headline) mark{color:inherit}.sd-headline--inline{display:inline-block}.sd-headline--inline sd-icon{margin-right:var(--sd-spacing-2,.5rem);margin-top:calc(var(--sd-spacing-1, .25rem)*-1);vertical-align:middle}.sd-headline--inline:is(.sd-headline--size-xl,.sd-headline--size-lg,.sd-headline--size-base) sd-icon{margin-right:var(--sd-spacing-0-5,.125rem)}.sd-headline--inverted:not(#\\\t),.sd-prose--inverted :is(h1,h2,h3,h4,h5):not(.sd-headline):not(#\\\t){--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity))}.sd-headline--inverted:not(#\\\t) sd-icon,.sd-prose--inverted :is(h1,h2,h3,h4,h5):not(.sd-headline):not(#\\\t) sd-icon{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity))}"),ne.styles,L`:host{--width:662px}[part=panel]{width:var(--width);max-height:80vh}[part=body]{-webkit-overflow-scrolling:touch}@media (max-width:414px){:host{--width:335px}[part=footer]{width:100%}}`],oo([Ut('[part="base"]')],ro.prototype,"dialog",2),oo([Ut('[part="panel"]')],ro.prototype,"panel",2),oo([Ut('[part="overlay"]')],ro.prototype,"overlay",2),oo([jt({type:Boolean,reflect:!0})],ro.prototype,"open",2),oo([jt({reflect:!0})],ro.prototype,"headline",2),oo([jt({attribute:"no-close-button",type:Boolean,reflect:!0})],ro.prototype,"noCloseButton",2),oo([ee("open",{waitUntilFirstUpdate:!0})],ro.prototype,"handleOpenChange",1),ro=oo([Mt("sd-dialog")],ro),ke("dialog.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),ke("dialog.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}}),ke("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}}),ke("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}}),ke("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});const so=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ro}},Symbol.toStringTag,{value:"Module"}));var ao=Object.defineProperty,no=Object.getOwnPropertyDescriptor,lo=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?no(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&ao(e,i,s),s};let ho=class extends ne{constructor(){super(...arguments),this.orientation="horizontal",this.inverted=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}render(){return gt`<hr part="main" class="${Se(this.inverted?"border-primary-400":"border-neutral-400","horizontal"===this.orientation?"border-t w-full":" border-l h-full")}">`}};ho.styles=[ie,ne.styles,L`:host{margin:var(--sd-spacing-0,0)}:host(sd-divider[orientation=horizontal]){display:block}:host(sd-divider[orientation=vertical]){display:inline-block}`],lo([jt({reflect:!0})],ho.prototype,"orientation",2),lo([jt({type:Boolean,reflect:!0})],ho.prototype,"inverted",2),ho=lo([Mt("sd-divider")],ho);const co=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ho}},Symbol.toStringTag,{value:"Module"}));function po(t){return t.charAt(0).toUpperCase()+t.slice(1)}var uo=Object.defineProperty,bo=Object.getOwnPropertyDescriptor,vo=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?bo(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&uo(e,i,s),s};let go=class extends ne{constructor(){super(...arguments),this.hasSlotController=new si(this,"footer"),this.localize=new S(this),this.modal=new to(this),this.open=!1,this.label="",this.placement="end",this.contained=!1,this.noHeader=!1,this.handleDocumentKeyDown=t=>{this.open&&"Escape"===t.key&&(t.stopPropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.drawer.hidden=!this.open,this.open&&(this.addOpenListeners(),this.contained||(this.modal.activate(),Wi(this)))}disconnectedCallback(){super.disconnectedCallback(),Yi(this)}requestClose(t){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){const t=Ce(this,"drawer.denyClose",{dir:this.localize.dir()});be(this.panel,t.keyframes,t.options)}else this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.contained||(this.modal.activate(),Wi(this));const t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([me(this.drawer),me(this.overlay)]),this.drawer.hidden=!1,requestAnimationFrame((()=>{this.emit("sd-initial-focus",{cancelable:!0}).defaultPrevented||(t?t.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),t&&t.setAttribute("autofocus","")}));const e=Ce(this,`drawer.show${po(this.placement)}`,{dir:this.localize.dir()}),i=Ce(this,"drawer.overlay.show",{dir:this.localize.dir()});await Promise.all([be(this.panel,e.keyframes,e.options),be(this.overlay,i.keyframes,i.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.contained||(this.modal.deactivate(),Yi(this)),await Promise.all([me(this.drawer),me(this.overlay)]);const t=Ce(this,`drawer.hide${po(this.placement)}`,{dir:this.localize.dir()}),e=Ce(this,"drawer.overlay.hide",{dir:this.localize.dir()});await Promise.all([be(this.overlay,e.keyframes,e.options).then((()=>{this.overlay.hidden=!0})),be(this.panel,t.keyframes,t.options).then((()=>{this.panel.hidden=!0}))]),this.drawer.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1;const i=this.originalTrigger;"function"==typeof(null==i?void 0:i.focus)&&setTimeout((()=>i.focus())),this.emit("sd-after-hide")}}handleNoModalChange(){this.open&&!this.contained&&(this.modal.activate(),Wi(this)),this.open&&this.contained&&(this.modal.deactivate(),Yi(this))}async show(){if(!this.open)return this.open=!0,$e(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,$e(this,"sd-after-hide")}render(){return gt`<div part="base" class="${Se("top-0 start-0 w-full h-full pointer-events-none overflow-hidden",this.contained?"absolute":"fixed")}"><div part="overlay" class="${Se("block top-0 left-0 right-0 bottom-0 bg-neutral-800/75 pointer-events-auto",this.contained?"absolute":"fixed")}" @click="${()=>this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${Se("absolute flex flex-col z-10 max-w-full max-h-full bg-white shadow-lg overflow-auto pointer-events-auto focus:outline-none",{end:"top-0 end-0 bottom-auto start-auto w-[--width] h-full",start:"top-0 end-auto bottom-auto start-0 w-[--width] h-full"}[this.placement])}" role="dialog" aria-modal="true" aria-hidden="${this.open?"false":"true"}" aria-label="${this.label}" aria-labelledby="${pi(this.noHeader?void 0:"title")}" tabindex="0">${this.noHeader?"":gt`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:56px"><div part="title"><slot name="header" part="title" class="flex-auto text-xl m-0" id="title"></slot></div><div class="shrink-0 flex flex-wrap justify-end gap-1 ml-4 absolute top-2 right-2"><sd-button variant="tertiary" size="lg" part="close-button" @click="${()=>this.requestClose("close-button")}"><sd-icon name="close" library="system"></sd-icon></sd-button></div></header>`}<div part="body" class="flex-auto block px-4"><slot></slot></div><footer part="footer" class="${Se(this.hasSlotController.test("footer")?"text-left p-4":"hidden")}"><slot name="footer"></slot></footer></div></div>`}};go.styles=[ne.styles,ie,L`:host{--width:25rem;display:contents}:host([contained]){z-index:initial}:host(:not([contained])){z-index:var(--sd-z-index-drawer,700)}[part=body]{-webkit-overflow-scrolling:touch;overflow-y:scroll;scrollbar-width:none}[part=body]::-webkit-scrollbar{height:var(--sd-spacing-0,0);width:var(--sd-spacing-0,0)}`],vo([Ut("[part=base]")],go.prototype,"drawer",2),vo([Ut("[part=panel]")],go.prototype,"panel",2),vo([Ut("[part=overlay]")],go.prototype,"overlay",2),vo([jt({type:Boolean,reflect:!0})],go.prototype,"open",2),vo([jt({attribute:"label",reflect:!0})],go.prototype,"label",2),vo([jt({reflect:!0})],go.prototype,"placement",2),vo([jt({type:Boolean,reflect:!0})],go.prototype,"contained",2),vo([jt({attribute:"no-header",type:Boolean})],go.prototype,"noHeader",2),vo([ee("open",{waitUntilFirstUpdate:!0})],go.prototype,"handleOpenChange",1),vo([ee("contained",{waitUntilFirstUpdate:!0})],go.prototype,"handleNoModalChange",1),go=vo([Mt("sd-drawer")],go),ke("drawer.showStart",{keyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}}),ke("drawer.hideStart",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],options:{duration:250,easing:"ease"}}),ke("drawer.showEnd",{keyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}}),ke("drawer.hideEnd",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],options:{duration:250,easing:"ease"}}),ke("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:250}}),ke("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}}),ke("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});const mo=Object.freeze(Object.defineProperty({__proto__:null,get default(){return go}},Symbol.toStringTag,{value:"Module"})),yo=Math.min,fo=Math.max,wo=Math.round,xo=Math.floor,ko=t=>({x:t,y:t}),Co={left:"right",right:"left",bottom:"top",top:"bottom"},$o={start:"end",end:"start"};function So(t,e,i){return fo(t,yo(e,i))}function zo(t,e){return"function"==typeof t?t(e):t}function _o(t){return t.split("-")[0]}function Oo(t){return t.split("-")[1]}function Eo(t){return"x"===t?"y":"x"}function Po(t){return"y"===t?"height":"width"}function Ao(t){return["top","bottom"].includes(_o(t))?"y":"x"}function To(t){return Eo(Ao(t))}function Lo(t){return t.replace(/start|end/g,(t=>$o[t]))}function Do(t){return t.replace(/left|right|bottom|top/g,(t=>Co[t]))}function Mo(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function Bo(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Io(t,e,i){let{reference:o,floating:r}=t;const s=Ao(e),a=To(e),n=Po(a),l=_o(e),d="y"===s,h=o.x+o.width/2-r.width/2,c=o.y+o.height/2-r.height/2,p=o[n]/2-r[n]/2;let u;switch(l){case"top":u={x:h,y:o.y-r.height};break;case"bottom":u={x:h,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:c};break;case"left":u={x:o.x-r.width,y:c};break;default:u={x:o.x,y:o.y}}switch(Oo(e)){case"start":u[a]-=p*(i&&d?-1:1);break;case"end":u[a]+=p*(i&&d?-1:1)}return u}async function jo(t,e){var i;void 0===e&&(e={});const{x:o,y:r,platform:s,rects:a,elements:n,strategy:l}=t,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:c="floating",altBoundary:p=!1,padding:u=0}=zo(e,t),b=Mo(u),v=n[p?"floating"===c?"reference":"floating":c],g=Bo(await s.getClippingRect({element:null==(i=await(null==s.isElement?void 0:s.isElement(v)))||i?v:v.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(n.floating)),boundary:d,rootBoundary:h,strategy:l})),m="floating"===c?{...a.floating,x:o,y:r}:a.reference,y=await(null==s.getOffsetParent?void 0:s.getOffsetParent(n.floating)),f=await(null==s.isElement?void 0:s.isElement(y))&&await(null==s.getScale?void 0:s.getScale(y))||{x:1,y:1},w=Bo(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:m,offsetParent:y,strategy:l}):m);return{top:(g.top-w.top+b.top)/f.y,bottom:(w.bottom-g.bottom+b.bottom)/f.y,left:(g.left-w.left+b.left)/f.x,right:(w.right-g.right+b.right)/f.x}}const Vo=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var i,o;const{x:r,y:s,placement:a,middlewareData:n}=e,l=await async function(t,e){const{placement:i,platform:o,elements:r}=t,s=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=_o(i),n=Oo(i),l="y"===Ao(i),d=["left","top"].includes(a)?-1:1,h=s&&l?-1:1,c=zo(e,t);let{mainAxis:p,crossAxis:u,alignmentAxis:b}="number"==typeof c?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return n&&"number"==typeof b&&(u="end"===n?-1*b:b),l?{x:u*h,y:p*d}:{x:p*d,y:u*h}}(e,t);return a===(null==(i=n.offset)?void 0:i.placement)&&null!=(o=n.arrow)&&o.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:a}}}}};function Fo(t){return Ho(t)?(t.nodeName||"").toLowerCase():"#document"}function Uo(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Ro(t){var e;return null==(e=(Ho(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Ho(t){return t instanceof Node||t instanceof Uo(t).Node}function No(t){return t instanceof Element||t instanceof Uo(t).Element}function qo(t){return t instanceof HTMLElement||t instanceof Uo(t).HTMLElement}function Ko(t){return!(typeof ShadowRoot>"u")&&(t instanceof ShadowRoot||t instanceof Uo(t).ShadowRoot)}function Zo(t){const{overflow:e,overflowX:i,overflowY:o,display:r}=Jo(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&!["inline","contents"].includes(r)}function Wo(t){return["table","td","th"].includes(Fo(t))}function Yo(t){const e=Xo(),i=Jo(t);return"none"!==i.transform||"none"!==i.perspective||!!i.containerType&&"normal"!==i.containerType||!e&&!!i.backdropFilter&&"none"!==i.backdropFilter||!e&&!!i.filter&&"none"!==i.filter||["transform","perspective","filter"].some((t=>(i.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(i.contain||"").includes(t)))}function Xo(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Go(t){return["html","body","#document"].includes(Fo(t))}function Jo(t){return Uo(t).getComputedStyle(t)}function Qo(t){return No(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function tr(t){if("html"===Fo(t))return t;const e=t.assignedSlot||t.parentNode||Ko(t)&&t.host||Ro(t);return Ko(e)?e.host:e}function er(t){const e=tr(t);return Go(e)?t.ownerDocument?t.ownerDocument.body:t.body:qo(e)&&Zo(e)?e:er(e)}function ir(t,e,i){var o;void 0===e&&(e=[]),void 0===i&&(i=!0);const r=er(t),s=r===(null==(o=t.ownerDocument)?void 0:o.body),a=Uo(r);return s?e.concat(a,a.visualViewport||[],Zo(r)?r:[],a.frameElement&&i?ir(a.frameElement):[]):e.concat(r,ir(r,[],i))}function or(t){const e=Jo(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=qo(t),s=r?t.offsetWidth:i,a=r?t.offsetHeight:o,n=wo(i)!==s||wo(o)!==a;return n&&(i=s,o=a),{width:i,height:o,$:n}}function rr(t){return No(t)?t:t.contextElement}function sr(t){const e=rr(t);if(!qo(e))return ko(1);const i=e.getBoundingClientRect(),{width:o,height:r,$:s}=or(e);let a=(s?wo(i.width):i.width)/o,n=(s?wo(i.height):i.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!n||!Number.isFinite(n))&&(n=1),{x:a,y:n}}const ar=ko(0);function nr(t){const e=Uo(t);return Xo()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:ar}function lr(t,e,i,o){void 0===e&&(e=!1),void 0===i&&(i=!1);const r=t.getBoundingClientRect(),s=rr(t);let a=ko(1);e&&(o?No(o)&&(a=sr(o)):a=sr(t));const n=function(t,e,i){return void 0===e&&(e=!1),!(!i||e&&i!==Uo(t))&&e}(s,i,o)?nr(s):ko(0);let l=(r.left+n.x)/a.x,d=(r.top+n.y)/a.y,h=r.width/a.x,c=r.height/a.y;if(s){const t=Uo(s),e=o&&No(o)?Uo(o):o;let i=t,r=i.frameElement;for(;r&&o&&e!==i;){const t=sr(r),e=r.getBoundingClientRect(),o=Jo(r),s=e.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,a=e.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;l*=t.x,d*=t.y,h*=t.x,c*=t.y,l+=s,d+=a,i=Uo(r),r=i.frameElement}}return Bo({width:h,height:c,x:l,y:d})}const dr=[":popover-open",":modal"];function hr(t){return dr.some((e=>{try{return t.matches(e)}catch{return!1}}))}function cr(t){return lr(Ro(t)).left+Qo(t).scrollLeft}function pr(t,e,i){let o;if("viewport"===e)o=function(t,e){const i=Uo(t),o=Ro(t),r=i.visualViewport;let s=o.clientWidth,a=o.clientHeight,n=0,l=0;if(r){s=r.width,a=r.height;const t=Xo();(!t||t&&"fixed"===e)&&(n=r.offsetLeft,l=r.offsetTop)}return{width:s,height:a,x:n,y:l}}(t,i);else if("document"===e)o=function(t){const e=Ro(t),i=Qo(t),o=t.ownerDocument.body,r=fo(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=fo(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-i.scrollLeft+cr(t);const n=-i.scrollTop;return"rtl"===Jo(o).direction&&(a+=fo(e.clientWidth,o.clientWidth)-r),{width:r,height:s,x:a,y:n}}(Ro(t));else if(No(e))o=function(t,e){const i=lr(t,!0,"fixed"===e),o=i.top+t.clientTop,r=i.left+t.clientLeft,s=qo(t)?sr(t):ko(1);return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:r*s.x,y:o*s.y}}(e,i);else{const i=nr(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return Bo(o)}function ur(t,e){const i=tr(t);return!(i===e||!No(i)||Go(i))&&("fixed"===Jo(i).position||ur(i,e))}function br(t,e){const i=e.get(t);if(i)return i;let o=ir(t,[],!1).filter((t=>No(t)&&"body"!==Fo(t))),r=null;const s="fixed"===Jo(t).position;let a=s?tr(t):t;for(;No(a)&&!Go(a);){const e=Jo(a),i=Yo(a);!i&&"fixed"===e.position&&(r=null),(s?!i&&!r:!i&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||Zo(a)&&!i&&ur(t,a))?o=o.filter((t=>t!==a)):r=e,a=tr(a)}return e.set(t,o),o}function vr(t,e,i){const o=qo(e),r=Ro(e),s="fixed"===i,a=lr(t,!0,s,e);let n={scrollLeft:0,scrollTop:0};const l=ko(0);if(o||!o&&!s)if(("body"!==Fo(e)||Zo(r))&&(n=Qo(e)),o){const t=lr(e,!0,s,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=cr(r));return{x:a.left+n.scrollLeft-l.x,y:a.top+n.scrollTop-l.y,width:a.width,height:a.height}}function gr(t,e){return qo(t)&&"fixed"!==Jo(t).position?e?e(t):t.offsetParent:null}function mr(t,e){const i=Uo(t);if(!qo(t)||hr(t))return i;let o=gr(t,e);for(;o&&Wo(o)&&"static"===Jo(o).position;)o=gr(o,e);return o&&("html"===Fo(o)||"body"===Fo(o)&&"static"===Jo(o).position&&!Yo(o))?i:o||function(t){let e=tr(t);for(;qo(e)&&!Go(e);){if(Yo(e))return e;e=tr(e)}return null}(t)||i}const yr={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:i,offsetParent:o,strategy:r}=t;const s="fixed"===r,a=Ro(o),n=!!e&&hr(e.floating);if(o===a||n&&s)return i;let l={scrollLeft:0,scrollTop:0},d=ko(1);const h=ko(0),c=qo(o);if((c||!c&&!s)&&(("body"!==Fo(o)||Zo(a))&&(l=Qo(o)),qo(o))){const t=lr(o);d=sr(o),h.x=t.x+o.clientLeft,h.y=t.y+o.clientTop}return{width:i.width*d.x,height:i.height*d.y,x:i.x*d.x-l.scrollLeft*d.x+h.x,y:i.y*d.y-l.scrollTop*d.y+h.y}},getDocumentElement:Ro,getClippingRect:function(t){let{element:e,boundary:i,rootBoundary:o,strategy:r}=t;const s=[..."clippingAncestors"===i?br(e,this._c):[].concat(i),o],a=s[0],n=s.reduce(((t,i)=>{const o=pr(e,i,r);return t.top=fo(o.top,t.top),t.right=yo(o.right,t.right),t.bottom=yo(o.bottom,t.bottom),t.left=fo(o.left,t.left),t}),pr(e,a,r));return{width:n.right-n.left,height:n.bottom-n.top,x:n.left,y:n.top}},getOffsetParent:mr,getElementRects:async function(t){const e=this.getOffsetParent||mr,i=this.getDimensions;return{reference:vr(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,...await i(t.floating)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:i}=or(t);return{width:e,height:i}},getScale:sr,isElement:No,isRTL:function(t){return"rtl"===Jo(t).direction}};const fr=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:i,rects:o,platform:r,elements:s}=e,{apply:a=(()=>{}),...n}=zo(t,e),l=await jo(e,n),d=_o(i),h=Oo(i),c="y"===Ao(i),{width:p,height:u}=o.floating;let b,v;"top"===d||"bottom"===d?(b=d,v=h===(await(null==r.isRTL?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,b="end"===h?"top":"bottom");const g=u-l[b],m=p-l[v],y=!e.middlewareData.shift;let f=g,w=m;if(c){const t=p-l.left-l.right;w=h||y?yo(m,t):t}else{const t=u-l.top-l.bottom;f=h||y?yo(g,t):t}if(y&&!h){const t=fo(l.left,0),e=fo(l.right,0),i=fo(l.top,0),o=fo(l.bottom,0);c?w=p-2*(0!==t||0!==e?t+e:fo(l.left,l.right)):f=u-2*(0!==i||0!==o?i+o:fo(l.top,l.bottom))}await a({...e,availableWidth:w,availableHeight:f});const x=await r.getDimensions(s.floating);return p!==x.width||u!==x.height?{reset:{rects:!0}}:{}}}};var wr=Object.defineProperty,xr=Object.getOwnPropertyDescriptor,kr=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?xr(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&wr(e,i,s),s};let Cr=class extends ne{constructor(){super(...arguments),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start(),this.setupMutationObserver()}disconnectedCallback(){this.stop(),this.mutationObserver&&this.mutationObserver.disconnect()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}setupMutationObserver(){this.mutationObserver=new MutationObserver((t=>this.handleCurrentPlacementChange(t))),this.mutationObserver.observe(this,{attributes:!0})}handleCurrentPlacementChange(t){return t.forEach((t=>{if("data-current-placement"===t.attributeName){const t=this.getAttribute("data-current-placement");this.emit("sd-current-placement",{detail:t})}}))}async handleAnchorChange(){if(await this.stop(),this.anchor&&"string"==typeof this.anchor){const t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof HTMLElement?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');if(this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),!this.anchorEl)throw new Error("Invalid anchor element: no anchor could be found using the anchor slot or the anchor attribute.");this.start()}start(){this.anchorEl&&(this.cleanup=function(t,e,i,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:n="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,d=rr(t),h=r||s?[...d?ir(d):[],...ir(e)]:[];h.forEach((t=>{r&&t.addEventListener("scroll",i,{passive:!0}),s&&t.addEventListener("resize",i)}));const c=d&&n?function(t,e){let i,o=null;const r=Ro(t);function s(){var t;clearTimeout(i),null==(t=o)||t.disconnect(),o=null}return function a(n,l){void 0===n&&(n=!1),void 0===l&&(l=1),s();const{left:d,top:h,width:c,height:p}=t.getBoundingClientRect();if(n||e(),!c||!p)return;const u={rootMargin:-xo(h)+"px "+-xo(r.clientWidth-(d+c))+"px "+-xo(r.clientHeight-(h+p))+"px "+-xo(d)+"px",threshold:fo(0,yo(1,l))||1};let b=!0;function v(t){const e=t[0].intersectionRatio;if(e!==l){if(!b)return a();e?a(!1,e):i=setTimeout((()=>{a(!1,1e-7)}),100)}b=!1}try{o=new IntersectionObserver(v,{...u,root:r.ownerDocument})}catch{o=new IntersectionObserver(v,u)}o.observe(t)}(!0),s}(d,i):null;let p=-1,u=null;a&&(u=new ResizeObserver((t=>{let[o]=t;o&&o.target===d&&u&&(u.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var t;null==(t=u)||t.observe(e)}))),i()})),d&&!l&&u.observe(d),u.observe(e));let b,v=l?lr(t):null;return l&&function e(){const o=lr(t);v&&(o.x!==v.x||o.y!==v.y||o.width!==v.width||o.height!==v.height)&&i(),v=o,b=requestAnimationFrame(e)}(),i(),()=>{var t;h.forEach((t=>{r&&t.removeEventListener("scroll",i),s&&t.removeEventListener("resize",i)})),null==c||c(),null==(t=u)||t.disconnect(),u=null,l&&cancelAnimationFrame(b)}}(this.anchorEl,this.popup,(()=>{this.reposition()})))}async stop(){return new Promise((t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame((()=>t()))):t()}))}reposition(){if(!this.active||!this.anchorEl)return;const t=[Vo({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(fr({apply:({rects:t})=>{const e="width"===this.sync||"both"===this.sync,i="height"===this.sync||"both"===this.sync;this.popup.style.width=e?`${t.reference.width}px`:"",this.popup.style.height=i?`${t.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var i,o;const{placement:r,middlewareData:s,rects:a,initialPlacement:n,platform:l,elements:d}=e,{mainAxis:h=!0,crossAxis:c=!0,fallbackPlacements:p,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...g}=zo(t,e);if(null!=(i=s.arrow)&&i.alignmentOffset)return{};const m=_o(r),y=_o(n)===n,f=await(null==l.isRTL?void 0:l.isRTL(d.floating)),w=p||(y||!v?[Do(n)]:function(t){const e=Do(t);return[Lo(t),e,Lo(e)]}(n));!p&&"none"!==b&&w.push(...function(t,e,i,o){const r=Oo(t);let s=function(t,e,i){const o=["left","right"],r=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return i?e?r:o:e?o:r;case"left":case"right":return e?s:a;default:return[]}}(_o(t),"start"===i,o);return r&&(s=s.map((t=>t+"-"+r)),e&&(s=s.concat(s.map(Lo)))),s}(n,v,b,f));const x=[n,...w],k=await jo(e,g),C=[];let $=(null==(o=s.flip)?void 0:o.overflows)||[];if(h&&C.push(k[m]),c){const t=function(t,e,i){void 0===i&&(i=!1);const o=Oo(t),r=To(t),s=Po(r);let a="x"===r?o===(i?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=Do(a)),[a,Do(a)]}(r,a,f);C.push(k[t[0]],k[t[1]])}if($=[...$,{placement:r,overflows:C}],!C.every((t=>t<=0))){var S,z;const t=((null==(S=s.flip)?void 0:S.index)||0)+1,e=x[t];if(e)return{data:{index:t,overflows:$},reset:{placement:e}};let i=null==(z=$.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:z.placement;if(!i)switch(u){case"bestFit":{var _;const t=null==(_=$.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:_[0];t&&(i=t);break}case"initialPlacement":i=n}if(r!==i)return{reset:{placement:i}}}return{}}}}({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:"best-fit"===this.flipFallbackStrategy?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:i,y:o,placement:r}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:n={fn:t=>{let{x:e,y:i}=t;return{x:e,y:i}}},...l}=zo(t,e),d={x:i,y:o},h=await jo(e,l),c=Ao(_o(r)),p=Eo(c);let u=d[p],b=d[c];if(s){const t="y"===p?"bottom":"right";u=So(u+h["y"===p?"top":"left"],u,u-h[t])}if(a){const t="y"===c?"bottom":"right";b=So(b+h["y"===c?"top":"left"],b,b-h[t])}const v=n.fn({...e,[p]:u,[c]:b});return{...v,data:{x:v.x-i,y:v.y-o}}}}}({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(fr({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:t,availableHeight:e})=>{"vertical"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-height",`${e}px`):this.style.removeProperty("--auto-size-available-height"),"horizontal"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-width",`${t}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push((t=>({name:"arrow",options:t,async fn(e){const{x:i,y:o,placement:r,rects:s,platform:a,elements:n,middlewareData:l}=e,{element:d,padding:h=0}=zo(t,e)||{};if(null==d)return{};const c=Mo(h),p={x:i,y:o},u=To(r),b=Po(u),v=await a.getDimensions(d),g="y"===u,m=g?"top":"left",y=g?"bottom":"right",f=g?"clientHeight":"clientWidth",w=s.reference[b]+s.reference[u]-p[u]-s.floating[b],x=p[u]-s.reference[u],k=await(null==a.getOffsetParent?void 0:a.getOffsetParent(d));let C=k?k[f]:0;(!C||!await(null==a.isElement?void 0:a.isElement(k)))&&(C=n.floating[f]||s.floating[b]);const $=w/2-x/2,S=C/2-v[b]/2-1,z=yo(c[m],S),_=yo(c[y],S),O=z,E=C-v[b]-_,P=C/2-v[b]/2+$,A=So(O,P,E),T=!l.arrow&&null!=Oo(r)&&P!==A&&s.reference[b]/2-(P<O?z:_)-v[b]/2<0,L=T?P<O?P-O:P-E:0;return{[u]:p[u]+L,data:{[u]:A,centerOffset:P-A-L,...T&&{alignmentOffset:L}},reset:T}}}))({element:this.arrowEl,padding:this.arrowPadding})),((t,e,i)=>{const o=new Map,r={platform:yr,...i},s={...r.platform,_c:o};return(async(t,e,i)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:a}=i,n=s.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let d=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:h,y:c}=Io(d,o,l),p=o,u={},b=0;for(let i=0;i<n.length;i++){const{name:s,fn:v}=n[i],{x:g,y:m,data:y,reset:f}=await v({x:h,y:c,initialPlacement:o,placement:p,strategy:r,middlewareData:u,rects:d,platform:a,elements:{reference:t,floating:e}});h=g??h,c=m??c,u={...u,[s]:{...u[s],...y}},f&&b<=50&&(b++,"object"==typeof f&&(f.placement&&(p=f.placement),f.rects&&(d=!0===f.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):f.rects),({x:h,y:c}=Io(d,p,l))),i=-1)}return{x:h,y:c,placement:p,strategy:r,middlewareData:u}})(t,e,{...r,platform:s})})(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy}).then((({x:t,y:e,middlewareData:i,placement:o})=>{const r="rtl"===getComputedStyle(this).direction,s={top:"bottom",right:"left",bottom:"top",left:"right"}[o.split("-")[0]];if(this.setAttribute("data-current-placement",o),Object.assign(this.popup.style,{left:`${t}px`,top:`${e}px`}),this.arrow){const t=i.arrow.x,e=i.arrow.y;let o="",a="",n="",l="";if("start"===this.arrowPlacement){const i="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";o="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",a=r?i:"",l=r?"":i}else if("end"===this.arrowPlacement){const i="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";a=r?"":i,l=r?i:"",n="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else"center"===this.arrowPlacement?(l="number"==typeof t?"calc(50% - var(--arrow-size-diagonal))":"",o="number"==typeof e?"calc(50% - var(--arrow-size-diagonal))":""):(l="number"==typeof t?`${t}px`:"",o="number"==typeof e?`${e}px`:"");Object.assign(this.arrowEl.style,{top:o,right:a,bottom:n,left:l,[s]:"calc(var(--arrow-size-diagonal) * -1)"})}})),this.emit("sd-reposition")}render(){return gt`<slot name="anchor" @slotchange="${this.handleAnchorChange}"></slot><div part="popup" class="${Se("isolate","fixed"!==this.strategy?"absolute":"fixed",!this.active&&"hidden")}"><slot></slot>${this.arrow?gt`<div part="arrow" class="absolute rotate-45 -z-10" role="presentation"></div>`:""}</div>`}};Cr.styles=[ne.styles,ie,L`:host{--arrow-color:var(--sd-color-neutral-1000);--arrow-size:6px;--arrow-size-diagonal:calc(var(--arrow-size) * 0.7071);--arrow-padding-offset:calc(var(--arrow-size-diagonal) - var(--arrow-size));display:contents}[part=popup]{max-width:var(--auto-size-available-width,none);max-height:var(--auto-size-available-height,none)}[part=arrow]{width:calc(var(--arrow-size-diagonal) * 2);height:calc(var(--arrow-size-diagonal) * 2);background:var(--arrow-color)}`],kr([Ut('[part="popup"]')],Cr.prototype,"popup",2),kr([Ut('[part="arrow"]')],Cr.prototype,"arrowEl",2),kr([jt()],Cr.prototype,"anchor",2),kr([jt({type:Boolean,reflect:!0})],Cr.prototype,"active",2),kr([jt({reflect:!0})],Cr.prototype,"placement",2),kr([jt({reflect:!0})],Cr.prototype,"strategy",2),kr([jt({type:Number})],Cr.prototype,"distance",2),kr([jt({type:Number})],Cr.prototype,"skidding",2),kr([jt({type:Boolean})],Cr.prototype,"arrow",2),kr([jt({attribute:"arrow-placement"})],Cr.prototype,"arrowPlacement",2),kr([jt({attribute:"arrow-padding",type:Number})],Cr.prototype,"arrowPadding",2),kr([jt({type:Boolean})],Cr.prototype,"flip",2),kr([jt({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map((t=>t.trim())).filter((t=>""!==t)),toAttribute:t=>t.join(" ")}})],Cr.prototype,"flipFallbackPlacements",2),kr([jt({attribute:"flip-fallback-strategy"})],Cr.prototype,"flipFallbackStrategy",2),kr([jt({type:Object})],Cr.prototype,"flipBoundary",2),kr([jt({attribute:"flip-padding",type:Number})],Cr.prototype,"flipPadding",2),kr([jt({type:Boolean})],Cr.prototype,"shift",2),kr([jt({type:Object})],Cr.prototype,"shiftBoundary",2),kr([jt({attribute:"shift-padding",type:Number})],Cr.prototype,"shiftPadding",2),kr([jt({attribute:"auto-size"})],Cr.prototype,"autoSize",2),kr([jt()],Cr.prototype,"sync",2),kr([jt({type:Object})],Cr.prototype,"autoSizeBoundary",2),kr([jt({attribute:"auto-size-padding",type:Number})],Cr.prototype,"autoSizePadding",2),Cr=kr([Mt("sd-popup")],Cr);const $r=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Cr}},Symbol.toStringTag,{value:"Module"}));var Sr=Object.defineProperty,zr=Object.getOwnPropertyDescriptor,_r=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?zr(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Sr(e,i,s),s};let Or=class extends ne{constructor(){super(...arguments),this.localize=new S(this),this.open=!1,this.rounded=!1,this.placement="bottom-start",this.disabled=!1,this.stayOpenOnSelect=!1,this.distance=0,this.skidding=0,this.noAutoSize=!1,this.noFlip=!1,this.hoist=!1}connectedCallback(){super.connectedCallback(),this.handleMenuItemActivate=this.handleMenuItemActivate.bind(this),this.handlePanelSelect=this.handlePanelSelect.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.handleDocumentMouseDown=this.handleDocumentMouseDown.bind(this),this.containingElement||(this.containingElement=this)}firstUpdated(){this.panel.hidden=!this.open,this.open&&(this.addOpenListeners(),this.popup.active=!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.hide()}focusOnTrigger(){const t=this.trigger.assignedElements({flatten:!0})[0];"function"==typeof(null==t?void 0:t.focus)&&t.focus()}getMenu(){return this.panel.assignedElements({flatten:!0}).find((t=>"sd-menu"===t.tagName.toLowerCase()))}handleKeyDown(t){this.open&&"Escape"===t.key&&(t.stopPropagation(),this.hide(),this.focusOnTrigger())}handleDocumentKeyDown(t){var e;if("Tab"===t.key){if(this.open&&"sd-menu-item"===(null==(e=document.activeElement)?void 0:e.tagName.toLowerCase()))return t.preventDefault(),this.hide(),void this.focusOnTrigger();setTimeout((()=>{var t,e,i,o,r,s,a,n,l,d,h,c;const p=(null==(r=null==(o=null==(i=null==(e=null==(t=document.activeElement)?void 0:t.shadowRoot)?void 0:e.activeElement)?void 0:i.shadowRoot)?void 0:o.activeElement)?void 0:r.getRootNode())instanceof ShadowRoot?null==(l=null==(n=null==(a=null==(s=document.activeElement)?void 0:s.shadowRoot)?void 0:a.activeElement)?void 0:n.shadowRoot)?void 0:l.activeElement:(null==(d=this.containingElement)?void 0:d.getRootNode())instanceof ShadowRoot?null==(c=null==(h=document.activeElement)?void 0:h.shadowRoot)?void 0:c.activeElement:document.activeElement;(!this.containingElement||(null==p?void 0:p.closest(this.containingElement.tagName.toLowerCase()))!==this.containingElement)&&this.hide()}))}}handleDocumentMouseDown(t){const e=t.composedPath();this.containingElement&&!e.includes(this.containingElement)&&this.hide()}handleMenuItemActivate(t){Xi(t.target,this.panel)}handlePanelSelect(t){const e=t.target;!this.stayOpenOnSelect&&"sd-menu"===e.tagName.toLowerCase()&&(this.hide(),this.focusOnTrigger())}handleTriggerClick(){this.open?this.hide():this.show()}handleTriggerKeyDown(t){if("Escape"===t.key&&this.open)return t.stopPropagation(),this.focusOnTrigger(),void this.hide();if([" ","Enter"].includes(t.key))return t.preventDefault(),void this.handleTriggerClick();const e=this.getMenu();if(e){const i=e.defaultSlot.assignedElements({flatten:!0}),o=i[0],r=i[i.length-1];["ArrowDown","ArrowUp","Home","End"].includes(t.key)&&(t.preventDefault(),this.open||this.show(),i.length>0&&requestAnimationFrame((()=>{("ArrowDown"===t.key||"Home"===t.key)&&(e.setCurrentItem(o),o.focus()),("ArrowUp"===t.key||"End"===t.key)&&(e.setCurrentItem(r),r.focus())})))}}handleTriggerKeyUp(t){" "===t.key&&t.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}updateAccessibleTrigger(){const t=this.trigger.assignedElements({flatten:!0}).find((t=>Ji(t).start));let e;if(t){switch(t.tagName.toLowerCase()){case"sd-button":case"sd-icon-button":e=t.button;break;default:e=t}e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded",this.open?"true":"false")}}async show(){if(!this.open)return this.open=!0,$e(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,$e(this,"sd-after-hide")}reposition(){this.popup.reposition()}addOpenListeners(){this.panel.addEventListener("sd-activate",this.handleMenuItemActivate),this.panel.addEventListener("sd-select",this.handlePanelSelect),this.panel.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){this.panel&&(this.panel.removeEventListener("sd-activate",this.handleMenuItemActivate),this.panel.removeEventListener("sd-select",this.handlePanelSelect),this.panel.removeEventListener("keydown",this.handleKeyDown)),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}async handleOpenChange(){if(this.disabled)this.open=!1;else if(this.updateAccessibleTrigger(),this.open){this.emit("sd-show"),this.addOpenListeners(),await me(this),this.panel.hidden=!1,this.popup.active=!0;const{keyframes:t,options:e}=Ce(this,"dropdown.show",{dir:this.localize.dir()});await be(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await me(this);const{keyframes:t,options:e}=Ce(this,"dropdown.hide",{dir:this.localize.dir()});await be(this.popup.popup,t,e),this.panel.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}render(){return gt`<sd-popup part="base" id="dropdown" placement="${this.placement}" distance="${this.rounded&&this.distance<1?1:this.distance}" skidding="${this.skidding}" strategy="${this.hoist?"fixed":"absolute"}" ?flip="${!this.noFlip}" shift auto-size="vertical" auto-size-padding="10" ?active="${this.open}"><slot name="trigger" slot="anchor" part="trigger" class="block" @click="${this.handleTriggerClick}" @keydown="${this.handleTriggerKeyDown}" @keyup="${this.handleTriggerKeyUp}" @slotchange="${this.handleTriggerSlotChange}"></slot><slot part="panel" class="${Se("shadow bg-white",this.open?"block pointer-events-auto":"pointer-events-none",this.rounded&&"rounded-md")}" aria-hidden="${this.open?"false":"true"}" aria-labelledby="dropdown"></slot></sd-popup>`}};Or.styles=[ne.styles,ie,L`:host{display:inline-block}#dropdown::part(popup){z-index:var(--sd-z-index-dropdown,900)}#dropdown[data-current-placement^=top]::part(popup){transform-origin:bottom}#dropdown[data-current-placement^=bottom]::part(popup){transform-origin:top}#dropdown[data-current-placement^=left]::part(popup){transform-origin:right}#dropdown[data-current-placement^=right]::part(popup){transform-origin:left}:host(:not([no-auto-size])) ::slotted(:not([slot=trigger])){overflow:auto;max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}`],_r([Ut("#dropdown")],Or.prototype,"popup",2),_r([Ut("[part=trigger]")],Or.prototype,"trigger",2),_r([Ut("[part=panel]")],Or.prototype,"panel",2),_r([jt({type:Boolean,reflect:!0})],Or.prototype,"open",2),_r([jt({type:Boolean,reflect:!0})],Or.prototype,"rounded",2),_r([jt({reflect:!0})],Or.prototype,"placement",2),_r([jt({type:Boolean,reflect:!0})],Or.prototype,"disabled",2),_r([jt({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],Or.prototype,"stayOpenOnSelect",2),_r([jt({attribute:!1})],Or.prototype,"containingElement",2),_r([jt({type:Number})],Or.prototype,"distance",2),_r([jt({type:Number})],Or.prototype,"skidding",2),_r([jt({type:Boolean,reflect:!0,attribute:"no-auto-size"})],Or.prototype,"noAutoSize",2),_r([jt({type:Boolean,reflect:!0,attribute:"no-flip"})],Or.prototype,"noFlip",2),_r([jt({type:Boolean})],Or.prototype,"hoist",2),_r([ee("open",{waitUntilFirstUpdate:!0})],Or.prototype,"handleOpenChange",1),Or=_r([Mt("sd-dropdown")],Or),ke("dropdown.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}}),ke("dropdown.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});const Er=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Or}},Symbol.toStringTag,{value:"Module"}));var Pr=Object.defineProperty,Ar=Object.getOwnPropertyDescriptor,Tr=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ar(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Pr(e,i,s),s};let Lr=class extends ne{constructor(){super(...arguments),this.fixed=!1}connectedCallback(){super.connectedCallback(),this.setCalculatedHeightProperty=this.setCalculatedHeightProperty.bind(this),this.addResizeObserver=this.addResizeObserver.bind(this)}firstUpdated(){this.toggleHeightCalculation()}toggleHeightCalculation(){var t;this.fixed?(this.setCalculatedHeightProperty(),this.addResizeObserver()):(this.setCalculatedHeightProperty(),null==(t=this.resizeObserver)||t.disconnect(),this.resizeObserver=void 0)}disconnectedCallback(){super.disconnectedCallback()}updated(t){super.updated(t),t.has("fixed")&&this.toggleHeightCalculation()}onResize(){this.fixed&&this.setCalculatedHeightProperty()}addResizeObserver(){this.resizeObserver=new ResizeObserver((()=>{this.onResize()})),this.refHeaderElement&&this.resizeObserver.observe(this.refHeaderElement)}setCalculatedHeightProperty(){this.fixed&&this.refHeaderElement?document.documentElement.style.setProperty("--sd-header-calculated-height",`${this.refHeaderElement.clientHeight}px`):document.documentElement.style.removeProperty("--sd-header-calculated-height")}render(){return gt`<header class="w-full bg-white relative" role="banner" @slotchange="${this.handleSlotChange}"><div part="main" class="relative mx-auto my-0 box-border"><slot></slot></div></header>`}handleSlotChange(t){t.target.assignedElements().length>0&&(this.refHeaderElement=t.currentTarget,this.setCalculatedHeightProperty())}};Lr.styles=[ne.styles,ie,L`:host{display:block}:host([fixed]){position:fixed;left:var(--sd-spacing-0,0);top:var(--sd-spacing-0,0);width:100%}:host([fixed]) header::after{content:'';position:absolute;left:var(--sd-spacing-0,0);right:var(--sd-spacing-0,0);top:100%;height:var(--sd-spacing-2,.5rem);background:var(--gradient-vertical-black-40-transparent,linear-gradient(0deg,#18181800 50%,#18181866 100%))}[part=main]{width:var(--sd-header-inner-width);max-width:var(--sd-header-inner-max-width);padding:var(--sd-header-padding,12px 16px)}`],Tr([jt({reflect:!0,type:Boolean})],Lr.prototype,"fixed",2),Tr([Ci(100)],Lr.prototype,"onResize",1),Lr=Tr([Mt("sd-header")],Lr);const Dr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Lr}},Symbol.toStringTag,{value:"Module"}));var Mr=Object.defineProperty,Br=Object.getOwnPropertyDescriptor,Ir=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Br(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Mr(e,i,s),s};let jr=class extends ne{constructor(){super(...arguments),this.mode="cors",this.allowScripts=!1}executeScript(t){const e=document.createElement("script");[...t.attributes].forEach((t=>e.setAttribute(t.name,t.value))),e.textContent=t.textContent,t.parentNode.replaceChild(e,t)}async handleSrcChange(){try{const t=this.src,e=await Nt(t,this.mode);if(t!==this.src)return;if(!e.ok)return void this.emit("sd-error",{detail:{status:e.status}});this.innerHTML=e.html,this.allowScripts&&[...this.querySelectorAll("script")].forEach((t=>this.executeScript(t))),this.emit("sd-load")}catch{this.emit("sd-error",{detail:{status:-1}})}}render(){return gt`<slot></slot>`}};jr.styles=[ie,L`:host{display:block}`],Ir([jt()],jr.prototype,"src",2),Ir([jt()],jr.prototype,"mode",2),Ir([jt({attribute:"allow-scripts",type:Boolean})],jr.prototype,"allowScripts",2),Ir([ee("src")],jr.prototype,"handleSrcChange",1),jr=Ir([Mt("sd-include")],jr);const Vr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return jr}},Symbol.toStringTag,{value:"Module"}));var Fr=Object.defineProperty,Ur=Object.getOwnPropertyDescriptor,Rr=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ur(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Fr(e,i,s),s};const Hr=!(null==(i=navigator.userAgentData)?void 0:i.brands.some((t=>t.brand.includes("Chromium"))))&&navigator.userAgent.includes("Firefox");let Nr=class extends ne{constructor(){super(...arguments),this.formControlController=new ei(this),this.hasSlotController=new si(this,"help-text","label","left","right","message","placeholder"),this.localize=new S(this),this.hasFocus=!1,this.showValidStyle=!1,this.showInvalidStyle=!1,this.type="text",this.size="lg",this.value="",this.defaultValue="",this.placeholder="",this.label="",this.helpText="",this.clearable=!1,this.disabled=!1,this.readonly=!1,this.passwordToggle=!1,this.passwordVisible=!1,this.noSpinButtons=!1,this.form="",this.name="",this.title="",this.required=!1,this.styleOnValid=!1,this.spellcheck=!0}get valueAsDate(){var t;return(null==(t=this.input)?void 0:t.valueAsDate)??null}set valueAsDate(t){const e=document.createElement("input");e.type="date",e.valueAsDate=t,this.value=e.value}get valueAsNumber(){var t;return(null==(t=this.input)?void 0:t.valueAsNumber)??parseFloat(this.value)}set valueAsNumber(t){const e=document.createElement("input");e.type="number",e.valueAsNumber=t,this.value=e.value}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.input.value,this.emit("sd-change")}handleClearClick(t){this.value="",this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change"),this.input.focus(),t.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){this.value=this.input.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleKeyDown(t){const e=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;"Enter"===t.key&&!e&&setTimeout((()=>{!t.defaultPrevented&&!t.isComposing&&this.formControlController.submit()}))}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(t,e,i="none"){this.input.setSelectionRange(t,e,i)}setRangeText(t,e,i,o){this.input.setRangeText(t,e,i,o),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){var t;return null==(t=this.input)?void 0:t.checkValidity()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=this.hasSlotController.test("help-text"),i=(this.hasSlotController.test("description"),this.hasSlotController.test("left")),o=this.hasSlotController.test("right"),r=!!this.label||!!t,s=!!this.helpText||!!e,a=this.clearable&&!this.readonly&&("number"==typeof this.value||this.value.length>0),n=this.disabled?"disabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",l="sm"===this.size?"text-sm":"text-base",d={disabled:"text-neutral-500",readonly:"text-black",activeInvalid:"text-error",activeValid:"text-success",active:"text-black",invalid:"text-error",valid:"text-success",default:"text-black"}[n],h={disabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[n],c=this.disabled?"text-neutral-500":"text-primary",p={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],u={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return gt`<div part="form-control" class="${Se(this.disabled&&"pointer-events-none")}"><label part="form-control-label" id="label" class="${Se("mb-2",r?"inline-block":"hidden",l)}" for="input" aria-hidden="${r?"false":"true"}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="relative w-full"><div part="border" class="${Se("absolute w-full h-full pointer-events-none border rounded-default",h)}"></div><div part="base" class="${Se("px-4 flex flex-row items-center rounded-default transition-all bg-white","lg"===this.size?"py-2":"py-1",this.disabled||this.readonly?"":"hover:bg-neutral-200",this.readonly&&"bg-neutral-100",d)}">${i?gt`<slot name="left" part="left" class="${Se("inline-flex","sm"===this.size?"mr-1":"mr-2",c,u)}"></slot>`:""} <input part="input" id="input" class="${Se("min-w-0 flex-grow focus:outline-none bg-transparent placeholder-neutral-700","sm"===this.size?"h-6":"h-8",l)}" type="${"password"===this.type&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${pi(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${pi(this.placeholder)}" minlength="${pi(this.minlength)}" maxlength="${pi(this.maxlength)}" min="${pi(this.min)}" max="${pi(this.max)}" step="${pi(this.step)}" .value="${Ui(this.value)}" autocapitalize="${pi("password"===this.type?"off":this.autocapitalize)}" autocomplete="${pi("password"===this.type?"off":this.autocomplete)}" autocorrect="${pi("password"===this.type?"off":this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${pi(this.pattern)}" enterkeyhint="${pi(this.enterkeyhint)}" inputmode="${pi(this.inputmode)}" aria-describedby="help-text" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${a?gt`<button part="clear-button" class="${Se("flex justify-center ",p)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${Se("text-neutral-500",u)}" library="system" name="closing-round"></sd-icon></slot></button>`:""} ${this.passwordToggle&&"password"===this.type?gt`<button aria-label="${this.localize.term(this.passwordVisible?"hidePassword":"showPassword")}" part="password-toggle-button" class="flex items-center" type="button" @click="${this.handlePasswordToggle}" tabindex="-1">${this.passwordVisible?gt`<slot name="show-password-icon"><sd-icon class="${Se(c,p,u)}" library="system" name="eye"></sd-icon></slot>`:gt`<slot name="hide-password-icon"><sd-icon class="${Se(c,p,u)}" library="system" name="eye-crossed-out"></sd-icon></slot>`}</button>`:""} ${"date"!==this.type&&"datetime-local"!==this.type||Hr?"":gt`<sd-icon class="${Se(c,p,u)}" library="system" name="calendar"></sd-icon>`} ${"time"===this.type?gt`<sd-icon class="${Se(c,p,u)}" library="system" name="clock"></sd-icon>`:""} ${"search"===this.type?gt`<button class="flex items-center" type="button" tabindex="-1"><sd-icon class="${Se(c,p,u)}" library="system" name="magnifying-glass"></sd-icon></button>`:""} ${this.showInvalidStyle?gt`<sd-icon part="invalid-icon" class="${Se("text-error",p,u)}" library="system" name="risk"></sd-icon>`:""} ${this.showValidStyle&&this.styleOnValid?gt`<sd-icon class="${Se("text-success flex-shrink-0",p,u)}" library="system" name="status-check" part="valid-icon"></sd-icon>`:""} ${o?gt`<slot name="right" part="right" class="${Se("inline-flex",c,p,u)}"></slot>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${Se("text-sm text-neutral-700",s?"block":"hidden")}" aria-hidden="${!s}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};Nr.styles=[ie,ne.styles,L`:host{position:relative;box-sizing:border-box;display:inline-block;width:100%;text-align:left}:host([vertical]){display:block}:host([required]) #label::after{content:' *'}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}`],Rr([Ut("#input")],Nr.prototype,"input",2),Rr([Ut("#invalid-message")],Nr.prototype,"invalidMessage",2),Rr([Vt()],Nr.prototype,"hasFocus",2),Rr([Vt()],Nr.prototype,"showValidStyle",2),Rr([Vt()],Nr.prototype,"showInvalidStyle",2),Rr([jt({reflect:!0})],Nr.prototype,"type",2),Rr([jt({reflect:!0})],Nr.prototype,"size",2),Rr([jt()],Nr.prototype,"inputmode",2),Rr([jt()],Nr.prototype,"value",2),Rr([Vi()],Nr.prototype,"defaultValue",2),Rr([jt()],Nr.prototype,"placeholder",2),Rr([jt()],Nr.prototype,"label",2),Rr([jt({attribute:"help-text"})],Nr.prototype,"helpText",2),Rr([jt({type:Boolean})],Nr.prototype,"clearable",2),Rr([jt({type:Boolean,reflect:!0})],Nr.prototype,"disabled",2),Rr([jt({type:Boolean,reflect:!0})],Nr.prototype,"readonly",2),Rr([jt({attribute:"password-toggle",type:Boolean})],Nr.prototype,"passwordToggle",2),Rr([jt({attribute:"password-visible",type:Boolean})],Nr.prototype,"passwordVisible",2),Rr([jt({attribute:"no-spin-buttons",type:Boolean})],Nr.prototype,"noSpinButtons",2),Rr([jt({type:Number})],Nr.prototype,"minlength",2),Rr([jt({type:Number})],Nr.prototype,"maxlength",2),Rr([jt({type:Number})],Nr.prototype,"min",2),Rr([jt({type:Number})],Nr.prototype,"max",2),Rr([jt({reflect:!0})],Nr.prototype,"form",2),Rr([jt()],Nr.prototype,"name",2),Rr([jt()],Nr.prototype,"title",2),Rr([jt({type:Boolean,reflect:!0})],Nr.prototype,"required",2),Rr([jt()],Nr.prototype,"pattern",2),Rr([jt()],Nr.prototype,"step",2),Rr([jt()],Nr.prototype,"autocapitalize",2),Rr([jt()],Nr.prototype,"autocorrect",2),Rr([jt()],Nr.prototype,"autocomplete",2),Rr([jt({type:Boolean})],Nr.prototype,"autofocus",2),Rr([jt()],Nr.prototype,"enterkeyhint",2),Rr([jt({type:Boolean,reflect:!0,attribute:"style-on-valid"})],Nr.prototype,"styleOnValid",2),Rr([jt({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],Nr.prototype,"spellcheck",2),Rr([ee("disabled",{waitUntilFirstUpdate:!0})],Nr.prototype,"handleDisabledChange",1),Rr([ee("step",{waitUntilFirstUpdate:!0})],Nr.prototype,"handleStepChange",1),Rr([ee("value",{waitUntilFirstUpdate:!0})],Nr.prototype,"handleValueChange",1),Nr=Rr([Mt("sd-input")],Nr);const qr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Nr}},Symbol.toStringTag,{value:"Module"}));var Kr=Object.defineProperty,Zr=Object.getOwnPropertyDescriptor,Wr=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Zr(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Kr(e,i,s),s};let Yr=class extends ne{constructor(){super(...arguments),this.hasSlotController=new si(this,"[default]","icon-left","icon-right"),this.size="inherit",this.inverted=!1,this.standalone=!1,this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}focus(t){this.button.focus(t)}blur(){this.button.blur()}render(){const t={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right")};return gt`<a part="base" class="${Se("inline",this.href?"cursor-pointer":"",{sm:"text-sm",lg:"text-base",inherit:""}[this.size],{disabled:this.inverted?"text-neutral-600":"text-neutral-500",enabled:this.inverted?"text-white hover:text-primary-200 active:text-primary-400 focus-visible:focus-outline-inverted":" text-primary hover:text-primary-500 active:text-primary-800 focus-visible:focus-outline"}[this.href?"enabled":"disabled"],this.standalone&&"flex items-start")}" href="${pi(this.href||void 0)}" target="${pi(this.target||void 0)}" download="${pi(this.download||void 0)}" rel="${pi(this.target?"noreferrer noopener":void 0)}" aria-disabled="${this.href?"false":"true"}" tabindex="${this.href?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"><slot name="icon-left" part="icon-left" class="${Se("inline",t["icon-left"]&&(this.standalone?{sm:"mr-1",lg:"mr-2",inherit:"mr-[0.5em]"}[this.size]:"mr-[0.25em]"))}"></slot><span part="label" class="inline underline underline-offset-2"><slot></slot></span><slot name="icon-right" part="icon-right" class="${Se("inline",t["icon-right"]&&(this.standalone?{sm:"ml-1",lg:"ml-2",inherit:"ml-[0.5em]"}[this.size]:"ml-[0.25em]"))}"></slot></a>`}};Yr.styles=[ne.styles,L`::slotted(sd-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-icon){font-size:var(--sd-font-size-base,1rem)}:host([size=lg][standalone]) ::slotted(sd-icon){font-size:var(--sd-font-size-xl,1.5rem)}`],Wr([Ut("a")],Yr.prototype,"button",2),Wr([jt({reflect:!0})],Yr.prototype,"size",2),Wr([jt({type:Boolean,reflect:!0})],Yr.prototype,"inverted",2),Wr([jt({type:Boolean,reflect:!0})],Yr.prototype,"standalone",2),Wr([jt()],Yr.prototype,"href",2),Wr([jt()],Yr.prototype,"target",2),Wr([jt()],Yr.prototype,"download",2),Yr=Wr([Mt("sd-link")],Yr);const Xr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Yr}},Symbol.toStringTag,{value:"Module"}));var Gr=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor,Qr=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Jr(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Gr(e,i,s),s};let ts=class extends ne{constructor(){super(...arguments),this.variant="main",this.state="default",this.animated=!1,this.marker={cluster:mt`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><circle cx="25" cy="25" opacity="1" r="20"/><circle cx="25" cy="25" opacity=".3" r="25"/></svg>`,main:mt`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 75"><path fill-rule="evenodd" d="M51 49A29 29 0 0 0 30 0 29 29 0 0 0 9 49l21 22 21-22ZM40 28a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z" clip-rule="evenodd"/></svg>`,place:mt`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 75"><path fill-rule="evenodd" d="M51 49A29 29 0 0 0 30 0 29 29 0 0 0 9 49l21 22 21-22Z" clip-rule="evenodd"/></svg>`}}render(){return gt`<div tabindex="0" class="${Se("flex justify-center w-[calc(theme(width.12)*var(--map-marker-scaling,1))] focus:outline-primary focus:outline-offset-2","cluster"===this.variant?"h-[calc(theme(height.12)*var(--map-marker-scaling,1))]":"h-[calc(theme(height.16)*var(--map-marker-scaling,1))]")}"><div class="${Se("inline-flex",this.animated&&("main"===this.variant||"place"===this.variant)&&"animate-bounce-once","cluster"===this.variant&&"hover"===this.state&&"scale-110 fill-primary-500","main"===this.variant&&"hover"===this.state&&"fill-accent-550","main"===this.variant&&"active"===this.state&&"fill-accent-700","place"===this.variant&&"default"===this.state&&"fill-white","place"===this.variant&&"hover"===this.state&&"fill-primary-100","place"===this.variant&&"active"===this.state&&"fill-primary-200",{cluster:"fill-primary transition-all duration-200 ease-in-out hover:scale-110 hover:fill-primary-500",main:"fill-accent *:drop-shadow-md hover:fill-accent-550 active:fill-accent-700",place:"hover:fill-primary-100 *:drop-shadow-md"}[this.variant])}">${this.marker[this.variant]}</div><div class="${Se("absolute self-center pointer-events-none",{cluster:"text-white text-[calc(theme(fontSize.sm)*var(--map-marker-scaling,1))]",main:"",place:"text-[calc(theme(fontSize.3xl)*var(--map-marker-scaling,1))]"}[this.variant])}"><slot></slot></div></div>`}};Qr([jt({reflect:!0})],ts.prototype,"variant",2),Qr([jt({reflect:!0})],ts.prototype,"state",2),Qr([jt({type:Boolean,reflect:!0})],ts.prototype,"animated",2),ts=Qr([Mt("sd-map-marker")],ts);const es=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ts}},Symbol.toStringTag,{value:"Module"}));var is=Object.defineProperty,os=Object.getOwnPropertyDescriptor,rs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?os(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&is(e,i,s),s};let ss=class extends ne{constructor(){super(...arguments),this.hasSlotController=new si(this,"[default]","description","children"),this.current=!1,this.disabled=!1,this.size="base",this.vertical=!1,this.chevron=!1,this.indented=!1,this.relaxed=!1,this.divider=!1,this.open=!1}isButton(){return!this.href&&!this.hasSlotController.test("children")}isLink(){return!!this.href}isAccordion(){return!this.href&&this.hasSlotController.test("children")}handleClickButton(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}handleClickSummary(t){t.preventDefault(),t.stopPropagation(),this.disabled||(this.open?this.hideDetails():this.showDetails())}hideDetails(){this.open=!1,this.emit("sd-hide",{cancelable:!0})}showDetails(){this.open=!0,this.emit("sd-show",{cancelable:!0})}calculatePaddingX(){return this.relaxed&&this.indented?"pl-8 pr-4":this.relaxed?"px-4":this.indented?"pl-4":""}render(){const t=this.isLink(),e=this.isButton(),i=this.isAccordion(),o=(this.hasSlotController.test("[default]"),this.hasSlotController.test("main"),this.hasSlotController.test("description")),r=this.hasSlotController.test("children"),s=t?li`a`:i?li`summary`:li`button`,a=this.vertical?"pb-3":"pb-2",n=hi`<${s} part="base" class="${Se("px-4 hover:bg-neutral-200 group transition-all min-h-[48px] cursor-pointer relative focus-visible:focus-outline",{base:"text-base",lg:"text-lg",sm:"text-[14px]"}[this.size],this.disabled?"text-neutral-500 pointer-events-none":"text-primary",i?"flex flex-col":"inline-block w-full",this.divider&&this.vertical&&"mt-[1px]")}" aria-controls="${pi(i?"navigation-item-details":void 0)}" aria-current="${pi(this.current?"page":void 0)}" aria-disabled="${this.disabled}" ?disabled="${pi(e?this.disabled:void 0)}" href="${pi(t?this.href:void 0)}" target="${pi(t?this.target:void 0)}" download="${pi(t?this.download:void 0)}" rel="${pi(t&&this.target?"noreferrer noopener":void 0)}" role="${t?"link":"button"}" tabindex="${this.disabled?"-1":"0"}" @click="${i?this.handleClickSummary:e?this.handleClickButton:void 0}"><div part="current-indicator" class="${Se("absolute left-0 pointer-events-none transition-all duration-150",this.vertical?"w-1 h-[calc(100%-16px)] top-2 group-hover:h-full group-hover:top-0":"h-1 w-full bottom-0",this.current?"bg-accent":"bg-transparent",this.disabled&&"bg-neutral-500")}"></div><span part="content-area" class="${Se("relative pt-3 inline-flex justify-between items-center",i?"grow":"w-full",o?"pb-1":a,this.calculatePaddingX())}">${this.divider&&this.vertical?hi`<sd-divider part="divider" class="${Se("w-full transition-all absolute -top-[1px] left-0",this.calculatePaddingX())}"></sd-divider>`:""} <span part="content-container" class="inline-flex items-center flex-auto"><slot part="content" class="inline"></slot></span>${(this.chevron||r)&&this.vertical?hi`<sd-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${Se("h-6 w-6 ml-2 transition-all",i?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon>`:""} </span>${o&&this.vertical?hi`<slot name="description" part="description" class="${Se("inline-block text-sm text-left text-black",i?"grow":"w-full",a,this.calculatePaddingX())}"></slot>`:""}</${s}>`;return i?hi`<details part="details" id="navigation-item-details" ?open="${this.open}" class="relative flex">${n}<slot name="children"></slot></details>`:hi`${n}`}};ss.styles=[ie,ne.styles,L`:host{position:relative;box-sizing:border-box;display:inline-block}:host([vertical]){display:block}details summary::-webkit-details-marker{display:none}`],rs([jt({reflect:!0})],ss.prototype,"href",2),rs([jt()],ss.prototype,"target",2),rs([jt()],ss.prototype,"download",2),rs([jt({type:Boolean,reflect:!0})],ss.prototype,"current",2),rs([jt({type:Boolean,reflect:!0})],ss.prototype,"disabled",2),rs([jt({reflect:!0})],ss.prototype,"size",2),rs([jt({type:Boolean,reflect:!0})],ss.prototype,"vertical",2),rs([jt({type:Boolean,reflect:!0})],ss.prototype,"chevron",2),rs([jt({type:Boolean,reflect:!0})],ss.prototype,"indented",2),rs([jt({type:Boolean,reflect:!0})],ss.prototype,"relaxed",2),rs([jt({type:Boolean,reflect:!0})],ss.prototype,"divider",2),rs([jt({type:Boolean,reflect:!0})],ss.prototype,"open",2),ss=rs([Mt("sd-navigation-item")],ss);const as=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ss}},Symbol.toStringTag,{value:"Module"}));var ns=Object.defineProperty,ls=Object.getOwnPropertyDescriptor,ds=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?ls(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&ns(e,i,s),s};const hs=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--top-right"}),cs=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--bottom-center"});let ps=class extends ne{constructor(){super(...arguments),this.localize=new S(this),this.open=!1,this.closable=!1,this.variant="info",this.toastStack="top-right",this.duration=1/0,this.durationIndicator=!1,this.remainingDuration=this.duration,this.startTime=Date.now()}firstUpdated(){this.base.hidden=!this.open}startAutoHide(){clearTimeout(this.autoHideTimeout),this.startTime=Date.now(),this.remainingDuration=this.duration,this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout((()=>this.hide()),this.duration))}onHover(){clearTimeout(this.autoHideTimeout),this.duration<1/0&&(this.remainingDuration-=Date.now()-this.startTime)}onHoverEnd(){this.startTime=Date.now(),clearTimeout(this.autoHideTimeout),this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout((()=>{this.hide()}),this.remainingDuration))}handleCloseClick(){this.hide()}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.duration<1/0&&this.startAutoHide(),await me(this.base),this.base.hidden=!1;const{keyframes:t,options:e}=Ce(this,"notification.show",{dir:this.localize.dir()});await be(this.base,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),clearTimeout(this.autoHideTimeout),await me(this.base);const{keyframes:t,options:e}=Ce(this,"notification.hide",{dir:this.localize.dir()});await be(this.base,t,e),this.base.hidden=!0,this.emit("sd-after-hide")}}handleDurationChange(){this.startAutoHide()}async show(){if(!this.open)return this.open=!0,$e(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,$e(this,"sd-after-hide")}async toast(){return new Promise((t=>{const e="bottom-center"===this.toastStack?cs:hs;null===e.parentElement&&document.body.append(e),e.appendChild(this),requestAnimationFrame((()=>{this.clientWidth,this.show()})),this.addEventListener("sd-after-hide",(()=>{e.removeChild(this),t(),null===e.querySelector("sd-notification")&&e.remove()}),{once:!0})}))}render(){return gt`<div part="base" class="${Se("w-full overflow-hidden flex items-stretch relative m-2")}" role="alert" id="notification" aria-hidden="${this.open?"false":"true"}" @mouseenter="${this.onHover}" @mouseleave="${this.onHoverEnd}"><slot name="icon" part="icon" class="${Se("min-w-min flex items-center px-3 justify-center",{info:"bg-info",success:"bg-success",warning:"bg-warning",error:"bg-error"}[this.variant])}"><sd-icon name="${{info:"info-circle",success:"confirm-circle",warning:"exclamation-circle",error:"warning"}[this.variant]||""}" library="system" class="h-6 w-6 text-white"></sd-icon></slot><div part="content" class="${Se("h-full w-full p-1 gap-2 flex items-center justify-stretch bg-white","border-solid border-[1px] border-l-0 border-neutral-400")}"><slot part="message" class="block w-full pl-3 py-2" aria-live="polite"></slot>${this.closable?gt`<sd-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" label="${this.localize.term("close")}" @click="${this.handleCloseClick}"><sd-icon name="close" library="system" color="currentColor"></sd-icon></sd-button>`:""}</div>${this.durationIndicator?gt`<div part="duration-indicator__elapsed" id="duration-indicator__elapsed" style="${`animation-duration: ${this.duration}ms`}" class="${Se("absolute w-0 h-[2px] bottom-0 bg-primary z-10 animate-grow")}"></div><div part="duration-indicator__total" class="w-full h-[2px] bottom-0 absolute bg-neutral-400"></div>`:""}</div>`}};ps.styles=[ie,ne.styles,L`:host{display:contents}#notification:hover #duration-indicator__elapsed{animation-play-state:paused!important}`],ds([Ut('[part~="base"]')],ps.prototype,"base",2),ds([jt({type:Boolean,reflect:!0})],ps.prototype,"open",2),ds([jt({type:Boolean,reflect:!0})],ps.prototype,"closable",2),ds([jt({reflect:!0})],ps.prototype,"variant",2),ds([jt({reflect:!0,attribute:"toast-stack"})],ps.prototype,"toastStack",2),ds([jt({type:Number})],ps.prototype,"duration",2),ds([jt({type:Boolean,reflect:!0,attribute:"duration-indicator"})],ps.prototype,"durationIndicator",2),ds([ee("open",{waitUntilFirstUpdate:!0})],ps.prototype,"handleOpenChange",1),ds([ee("duration")],ps.prototype,"handleDurationChange",1),ps=ds([Mt("sd-notification")],ps),ke("notification.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),ke("notification.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});const us=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ps}},Symbol.toStringTag,{value:"Module"}));var bs=Object.defineProperty,vs=Object.getOwnPropertyDescriptor,gs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?vs(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&bs(e,i,s),s};let ms=class extends ne{constructor(){super(...arguments),this.hasSlotController=new si(this,"default","left","right"),this.current=!1,this.selected=!1,this.hasHover=!1,this.size="lg",this.checkbox=!1,this.disabled=!1,this.value=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","option"),this.setAttribute("aria-selected","false")}handleDefaultSlotChange(){const t=this.getTextLabel();typeof this.cachedTextLabel>"u"?this.cachedTextLabel=t:t!==this.cachedTextLabel&&(this.cachedTextLabel=t,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute("aria-selected",this.selected?"true":"false")}handleValueChange(){this.value.includes(" ")&&(console.error("Option values cannot include a space. All spaces have been replaced with underscores.",this),this.value=this.value.replace(/ /g,"_"))}getTextLabel(){return(this.textContent??"").trim()}render(){this.hasSlotController.test("default");const t=this.hasSlotController.test("left"),e=this.hasSlotController.test("right");return gt`<div part="base" class="${Se("px-4 flex items-center w-full transition-all text-left text-base relative text-black",{sm:"text-sm py-1",md:"text-base py-2",lg:"text-base py-3"}[this.size],this.disabled?"text-neutral-500 cursor-not-allowed":"cursor-pointer",this.hasHover&&!this.disabled?"bg-neutral-200":"",this.current&&"bg-neutral-200")}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><span class="${Se("absolute w-full left-0 top-0 pointer-events-none transition-all duration-150 border-l-4 h-[calc(100%-8px)]",this.selected&&!this.checkbox?"border-accent":"border-transparent",this.disabled&&"border-neutral-500 top-1",!this.disabled&&this.hasHover?"h-full top-0":"top-1")}"></span> ${this.checkbox?gt`<span id="control" part="control ${this.selected?" control--checked":"control--unchecked"}" class="${Se("relative flex flex-initial items-center justify-center border rounded-sm h-4 w-4 mr-2",this.disabled?"border-neutral-500":this.selected?"bg-accent border-accent":"border-neutral-800")}">${this.selected?gt`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-icon>`:""}</span>`:""} ${t?gt`<slot name="left" part="left" class="inline-flex mr-2"></slot>`:""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${e?gt`<slot name="right" part="right" class="inline-flex ml-2"></slot>`:""}</div>`}};ms.styles=[ie,ne.styles,L`:host{position:relative;display:block;width:100%;outline:2px solid transparent!important;outline-offset:2px!important}`],gs([Ut('[part="base"]')],ms.prototype,"defaultSlot",2),gs([Vt()],ms.prototype,"current",2),gs([Vt()],ms.prototype,"selected",2),gs([Vt()],ms.prototype,"hasHover",2),gs([jt({reflect:!0})],ms.prototype,"size",2),gs([jt({type:Boolean,reflect:!0})],ms.prototype,"checkbox",2),gs([jt({type:Boolean,reflect:!0})],ms.prototype,"disabled",2),gs([jt({reflect:!0})],ms.prototype,"value",2),gs([ee("disabled")],ms.prototype,"handleDisabledChange",1),gs([ee("selected")],ms.prototype,"handleSelectedChange",1),gs([ee("value")],ms.prototype,"handleValueChange",1),ms=gs([Mt("sd-option")],ms);const ys=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ms}},Symbol.toStringTag,{value:"Module"}));var fs=Object.defineProperty,ws=Object.getOwnPropertyDescriptor,xs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?ws(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&fs(e,i,s),s};let ks=class extends ne{constructor(){super(...arguments),this.hasSlotController=new si(this,"[default]","icon"),this.hasFocus=!1,this.checked=!1,this.disabled=!1,this.size="lg"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","presentation")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(t){if(this.disabled)return t.preventDefault(),void t.stopPropagation();this.checked=!0}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}focus(t){this.input.focus(t)}blur(){this.input.blur()}render(){const t=this.hasSlotController.test("[default]"),e=this.hasSlotController.test("icon"),i=`${this.size}-${t?"label":"no-label"}`;return gt`<div part="base" role="presentation" class="relative"><button part="${"button"+(this.checked?" button--checked":"")}" role="radio" aria-checked="${this.checked}" class="${Se("relative text-center border rounded-default transition-all ease-in-out duration-100 items-center justify-center focus-visible:focus-outline","sm"===this.size?"text-sm":"text-base",this.checked&&!this.disabled?"bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500":this.disabled&&!this.checked?"border-neutral-500 text-neutral-500 hover:cursor-not-allowed":this.disabled&&this.checked?"bg-neutral-500 text-white hover:cursor-not-allowed":"bg-transparent text-primary border-primary hover:bg-primary-100 hover:border-primary-500 hover:text-primary-500 cursor-pointer",t&&"px-4",this.hasFocus&&"focused-class",t&&"button--has-label",e&&"button--has-icon flex gap-2",i)}" aria-disabled="${this.disabled}" type="button" value="${pi(this.value)}" tabindex="${this.checked?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @click="${this.handleClick}"><slot name="icon" part="icon" class="${Se(e&&"inline-flex relative items-center",{sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size])}" ?hidden="${!e}"></slot>${t?gt`<slot part="label" class="button__label inline-flex relative items-center whitespace-nowrap"></slot>`:null}</button></div>`}};ks.styles=[ne.styles,ie,L`:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;position:absolute;inset:var(--sd-spacing-0,0);z-index:-10;opacity:var(--sd-opacity-0,0);outline-style:dotted;outline-width:1px;outline-color:rgb(var(--sd-color-error,204 25 55) / 1)}.lg-label{height:var(--sd-spacing-12,3rem)}.lg-no-label{height:var(--sd-spacing-12,3rem);width:var(--sd-spacing-12,3rem)}.md-label{height:var(--sd-spacing-10,2.5rem)}.md-no-label{height:var(--sd-spacing-10,2.5rem);width:var(--sd-spacing-10,2.5rem)}.sm-label{height:var(--sd-spacing-8,2rem)}.sm-no-label{height:var(--sd-spacing-8,2rem);width:var(--sd-spacing-8,2rem)}:host(.sd-button-group__button--first:not(.sd-button-group__button--last)) button{border-top-right-radius:var(--sd-border-radius-none,0);border-bottom-right-radius:var(--sd-border-radius-none,0)}:host(.sd-button-group__button--inner) button{border-radius:var(--sd-border-radius-none,0)}:host(.sd-button-group__button--last:not(.sd-button-group__button--first)) button{border-top-left-radius:var(--sd-border-radius-none,0);border-bottom-left-radius:var(--sd-border-radius-none,0)}:host(.sd-button-group__button:not(.sd-button-group__button--first)){margin-inline-start:-1px}:host(.sd-button-group__button--hover){z-index:10}:host(.sd-button-group__button--focus),:host(.sd-button-group__button[checked]){z-index:20}`],xs([Ut(".button")],ks.prototype,"input",2),xs([Ut(".hidden-input")],ks.prototype,"hiddenInput",2),xs([Vt()],ks.prototype,"hasFocus",2),xs([jt({type:Boolean,reflect:!0})],ks.prototype,"checked",2),xs([jt()],ks.prototype,"value",2),xs([jt({type:Boolean,reflect:!0})],ks.prototype,"disabled",2),xs([jt({reflect:!0})],ks.prototype,"size",2),xs([ee("disabled",{waitUntilFirstUpdate:!0})],ks.prototype,"handleDisabledChange",1),ks=xs([Mt("sd-radio-button")],ks);const Cs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ks}},Symbol.toStringTag,{value:"Module"})),$s=L`${ie}:host{display:inline-block}.button-group{display:flex;flex-wrap:nowrap}`;var Ss=Object.defineProperty,zs=Object.getOwnPropertyDescriptor,_s=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?zs(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ss(e,i,s),s};let Os=class extends ne{constructor(){super(...arguments),this.disableRole=!1,this.label=""}handleFocus(t){const e=Es(t.target);null==e||e.classList.add("sd-button-group__button--focus")}handleBlur(t){const e=Es(t.target);null==e||e.classList.remove("sd-button-group__button--focus")}handleMouseOver(t){const e=Es(t.target);null==e||e.classList.add("sd-button-group__button--hover")}handleMouseOut(t){const e=Es(t.target);null==e||e.classList.remove("sd-button-group__button--hover")}handleSlotChange(){const t=[...this.defaultSlot.assignedElements({flatten:!0})];t.forEach((e=>{const i=t.indexOf(e),o=Es(e);null!==o&&(o.classList.add("sd-button-group__button"),o.classList.toggle("sd-button-group__button--first",0===i),o.classList.toggle("sd-button-group__button--inner",i>0&&i<t.length-1),o.classList.toggle("sd-button-group__button--last",i===t.length-1),o.classList.toggle("sd-button-group__button--radio","sd-radio-button"===o.tagName.toLowerCase()))}))}render(){return gt`<slot part="base" class="button-group" role="${this.disableRole?"presentation":"group"}" aria-label="${this.label}" @focusout="${this.handleBlur}" @focusin="${this.handleFocus}" @mouseover="${this.handleMouseOver}" @mouseout="${this.handleMouseOut}" @slotchange="${this.handleSlotChange}"></slot>`}};function Es(t){const e="sd-button, sd-radio-button";return t.closest(e)??t.querySelector(e)}Os.styles=$s,_s([Ut("slot")],Os.prototype,"defaultSlot",2),_s([Vt()],Os.prototype,"disableRole",2),_s([jt()],Os.prototype,"label",2),Os=_s([Mt("sd-button-group")],Os);var Ps=Object.defineProperty,As=Object.getOwnPropertyDescriptor,Ts=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?As(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ps(e,i,s),s};let Ls=class extends ne{constructor(){super(...arguments),this.checked=!1,this.hasFocus=!1,this.size="lg",this.invalid=!1,this.disabled=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.setInitialAttributes(),this.addEventListeners()}disconnectedCallback(){this.removeEventListeners()}addEventListeners(){this.addEventListener("blur",this.handleBlur),this.addEventListener("click",this.handleClick),this.addEventListener("focus",this.handleFocus)}removeEventListeners(){this.removeEventListener("blur",this.handleBlur),this.removeEventListener("click",this.handleClick),this.removeEventListener("focus",this.handleFocus)}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(){this.disabled||(this.checked=!0)}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}setInitialAttributes(){this.setAttribute("role","radio"),this.setAttribute("tabindex","-1"),this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleCheckedChange(){this.setAttribute("aria-checked",this.checked?"true":"false"),this.setAttribute("tabindex",this.checked?"0":"-1")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}render(){return gt`<span part="base" class="${Se("sd-radio group inline-flex items-start items-center text-base leading-normal text-black cursor-pointer align-middle",this.disabled&&"hover:cursor-not-allowed",{sm:"small-size text-sm",lg:"text-base"}[this.size])}"><span part="${this.checked?"control--checked":"control--unchecked"}" class="${Se("flex-initial shrink-0 relative inline-flex items-center justify-center border rounded-full bg-white h-4 w-4",this.disabled?"border-neutral-500":this.invalid?"border-error hover:border-error-400 group-hover:border-error-400":this.checked?"border-accent hover:border-accent-550 group-hover:border-accent-550":"border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200")}">${this.checked?gt`<span part="checked" class="${Se("rounded-full inline-flex text-white border bg-accent h-2.5 w-2.5",this.disabled?"bg-neutral-500":this.invalid?"bg-error hover:bg-error-400 group-hover:bg-error-400":this.checked?"bg-accent hover:bg-accent-550 group-hover:bg-accent-550":"bg-neutral-800")}"></span>`:""}</span><slot part="label" class="${Se("ml-2 select-none inline-block",this.disabled?"text-neutral-500":this.invalid?"text-error":"text-black")}"></slot></span>`}};Ls.styles=[ne.styles,L`:host{display:block}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host(:focus-visible) [part=control--checked],:host(:focus-visible) [part=control--unchecked]{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:rgb(var(--sd-color-primary,0 53 142) / 1)}`],Ts([Vt()],Ls.prototype,"checked",2),Ts([Vt()],Ls.prototype,"hasFocus",2),Ts([jt({reflect:!0})],Ls.prototype,"size",2),Ts([jt({type:Boolean,reflect:!0})],Ls.prototype,"invalid",2),Ts([jt({type:Boolean,reflect:!0})],Ls.prototype,"disabled",2),Ts([jt()],Ls.prototype,"value",2),Ts([ee("checked")],Ls.prototype,"handleCheckedChange",1),Ts([ee("disabled",{waitUntilFirstUpdate:!0})],Ls.prototype,"handleDisabledChange",1),Ls=Ts([Mt("sd-radio")],Ls);const Ds=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ls}},Symbol.toStringTag,{value:"Module"}));var Ms=Object.defineProperty,Bs=Object.getOwnPropertyDescriptor,Is=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Bs(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ms(e,i,s),s};let js=class extends ne{constructor(){super(...arguments),this.formControlController=new ei(this),this.hasSlotController=new si(this,"label","error-text"),this.customValidityMessage="",this.hasButtonGroup=!1,this.defaultValue="",this.showInvalidStyle=!1,this.label="",this.boldLabel=!1,this.name="option",this.value="",this.size="lg",this.form="",this.required=!1,this.orientation="vertical"}get validity(){const t=this.required&&!this.value;return""!==this.customValidityMessage?ri:t?oi:ii}get validationMessage(){const t=this.required&&!this.value;return""!==this.customValidityMessage?this.customValidityMessage:t?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll("sd-radio, sd-radio-button")]}handleRadioClick(t){const e=t.target.closest("sd-radio, sd-radio-button"),i=this.getAllRadios(),o=this.value;e.disabled||(this.value=e.value,i.forEach((t=>t.checked=t===e)),this.value!==o&&(this.emit("sd-change"),this.emit("sd-input")))}handleKeyDown(t){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;const e=this.getAllRadios().filter((t=>!t.disabled)),i=e.find((t=>t.checked))??e[0],o=" "===t.key?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,r=this.value;let s=e.indexOf(i)+o;s<0&&(s=e.length-1),s>e.length-1&&(s=0),this.getAllRadios().forEach((t=>{t.checked=!1,this.hasButtonGroup||(t.tabIndex=-1)})),this.value=e[s].value,e[s].checked=!0,this.hasButtonGroup?e[s].shadowRoot.querySelector("button").focus():(e[s].tabIndex=0,e[s].focus()),this.value!==r&&(this.emit("sd-change"),this.emit("sd-input")),t.preventDefault()}focus(){const t=this.getAllRadios(),e=t.find((t=>t.checked))||t[0];e&&e.focus()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}async syncRadioElements(){var t,e;const i=this.getAllRadios();if(await Promise.all(i.map((async t=>{await t.updateComplete,t.checked=t.value===this.value,t.size=this.size,t instanceof Ls&&(t.invalid=this.showInvalidStyle)}))),this.hasButtonGroup=i.some((t=>"sd-radio-button"===t.tagName.toLowerCase())),!i.some((t=>t.checked)))if(this.hasButtonGroup){const e=null==(t=i[0].shadowRoot)?void 0:t.querySelector("button");e&&(e.tabIndex=0)}else i[0].tabIndex=0;if(this.hasButtonGroup){const t=null==(e=this.shadowRoot)?void 0:e.querySelector("sd-button-group");t&&(t.disableRole=!0)}}syncRadios(){customElements.get("sd-radio")&&customElements.get("sd-radio-button")?this.syncRadioElements():(customElements.get("sd-radio")?this.syncRadioElements():customElements.whenDefined("sd-radio").then((()=>this.syncRadios())),customElements.get("sd-radio-button")?this.syncRadioElements():customElements.whenDefined("sd-radio-button").then((()=>this.syncRadios())))}updateCheckedRadio(){this.getAllRadios().forEach((t=>t.checked=t.value===this.value)),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleInvalidChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&(this.updateCheckedRadio(),this.reportValidity())}checkValidity(){const t=this.required&&!this.value,e=""!==this.customValidityMessage;return!t&&!e||(this.formControlController.emitInvalidEvent(),!1)}getForm(){return this.formControlController.getForm()}reportValidity(){const t=this.validity.valid;return this.formControlController.setValidity(t),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),this.formControlController.fakeUserInteraction(),t||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout((()=>this.validationInput.hidden=!0),1e4)),t}setCustomValidity(t=""){this.customValidityMessage=t,this.validationInput.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=!!this.label||!!t,i=gt`<slot @slotchange="${this.syncRadios}" @click="${this.handleRadioClick}" @keydown="${this.handleKeyDown}"></slot>`;return gt`<fieldset part="form-control" class="${Se("border-0 p-0 m-0 flex flex-col",{sm:"text-sm",lg:"text-base"}[this.size])}" role="radiogroup" aria-labelledby="label" aria-errormessage="error-text"><label part="form-control-label" id="label" class="${Se("mb-2 p-0 leading-normal text-black text-left",!e&&"hidden",this.boldLabel&&"font-bold")}" @click="${this.focus}" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="${Se("flex",{vertical:"flex-col",horizontal:"flex-row"}[this.orientation])}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup?gt`<sd-button-group part="button-group" exportparts="base:button-group__base" role="presentation">${i}</sd-button-group>`:i}</div></fieldset>${this.formControlController.renderInvalidMessage()}`}};js.dependencies={"sd-button-group":Os},js.styles=[ie,ne.styles,L`:host{display:block}:host([orientation=vertical]) ::slotted(sd-radio){margin-bottom:var(--sd-spacing-2,.5rem);display:flex}:host([orientation=vertical]) ::slotted(sd-radio:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-radio){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-radio){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([required]) #label::after{content:' *'}`],Is([Ut("slot:not([name])")],js.prototype,"defaultSlot",2),Is([Ut("#validation-input")],js.prototype,"validationInput",2),Is([Ut("#invalid-message")],js.prototype,"invalidMessage",2),Is([Vt()],js.prototype,"hasButtonGroup",2),Is([Vt()],js.prototype,"defaultValue",2),Is([Vt()],js.prototype,"showInvalidStyle",2),Is([jt()],js.prototype,"label",2),Is([jt({type:Boolean,reflect:!0})],js.prototype,"boldLabel",2),Is([jt()],js.prototype,"name",2),Is([jt({reflect:!0})],js.prototype,"value",2),Is([jt({reflect:!0})],js.prototype,"size",2),Is([jt({reflect:!0})],js.prototype,"form",2),Is([jt({type:Boolean,reflect:!0})],js.prototype,"required",2),Is([jt({reflect:!0})],js.prototype,"orientation",2),Is([ee("size",{waitUntilFirstUpdate:!0})],js.prototype,"handleSizeChange",1),Is([ee("showInvalidStyle",{waitUntilFirstUpdate:!0})],js.prototype,"handleInvalidChange",1),Is([ee("value")],js.prototype,"handleValueChange",1),js=Is([Mt("sd-radio-group")],js);const Vs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return js}},Symbol.toStringTag,{value:"Module"}));var Fs=Object.defineProperty,Us=Object.getOwnPropertyDescriptor,Rs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Us(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Fs(e,i,s),s};let Hs=class extends ne{constructor(){super(...arguments),this.orientation="horizontal",this.buttons=!1,this.step=150,this.scrollbars=!1,this.shadows=!1,this.inset=!1,this.canScroll={left:!1,right:!1,up:!1,down:!1},this.isScrollHorizontalEnabled=!1,this.isScrollVerticalEnabled=!1,this.scrollContainer=null}connectedCallback(){super.connectedCallback(),this.updateScrollEnabledFlags(),this.resizeObserver=new ResizeObserver((()=>{this.updateScrollIndicatorVisibility()})),this.updateComplete.then((()=>{this.scrollContainer=this.renderRoot.querySelector(".scroll-container"),this.scrollContainer&&this.resizeObserver.observe(this.scrollContainer)}))}disconnectedCallback(){super.disconnectedCallback(),this.scrollContainer&&this.resizeObserver.unobserve(this.scrollContainer)}updated(t){super.updated(t),(t.has("orientation")||t.has("buttons")||t.has("shadows"))&&(this.updateScrollEnabledFlags(),this.updateScrollIndicatorVisibility())}updateScrollEnabledFlags(){const t=this.orientation;this.isScrollHorizontalEnabled="horizontal"===t||"auto"===t,this.isScrollVerticalEnabled="vertical"===t||"auto"===t}get container(){return this.renderRoot.querySelector(".scroll-container")}updateScrollIndicatorVisibility(){const t=this.container;if(t){const e=this.isScrollHorizontalEnabled&&t.scrollLeft>0,i=this.isScrollHorizontalEnabled&&t.scrollLeft+t.clientWidth<t.scrollWidth-1,o=this.isScrollVerticalEnabled&&t.scrollTop>0,r=this.isScrollVerticalEnabled&&t.scrollTop+t.clientHeight<t.scrollHeight-1;this.canScroll={left:e,right:i,up:o,down:r},(e||o)&&this.dispatchEvent(new CustomEvent("start")),(i||r)&&this.dispatchEvent(new CustomEvent("end"))}}handleScroll(t){var e;const i="left"===t||"up"===t?-this.step:this.step,o={behavior:"smooth"};o["left"===t||"right"===t?"left":"top"]=i,null==(e=this.scrollContainer)||e.scrollBy(o);const r=`button-${t}`;this.dispatchEvent(new CustomEvent(r,{bubbles:!0,composed:!0}))}render(){const t="relative p-0 border-0 bg-transparent cursor-pointer w-5 h-5 flex items-center justify-center sd-interactive rounded-md flex text-lg",e="scroll-shadow absolute z-10 pointer-events-none";return gt`<div part="base" class="${Se("scroll-container flex overflow-hidden flex-1","horizontal"===this.orientation&&"scroll-horizontal flex-row whitespace-nowrap items-center overflow-x-scroll overflow-y-hidden","vertical"===this.orientation&&"scroll-vertical justify-items-center overflow-y-scroll overflow-x-hidden","auto"===this.orientation&&"scroll-auto overflow-auto",this.scrollbars?"show-scrollbars":"hide-scrollbars",this.inset?"p-4":"")}" @scroll="${this.updateScrollIndicatorVisibility}"><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons?gt`${this.isScrollHorizontalEnabled?gt`${this.canScroll.left?gt`<div part="button-left" class="absolute z-10 flex items-center justify-center top-0 left-0 h-full w-8"><button part="button-start" class="${Se(t)}" @click="${()=>this.handleScroll("left")}"><slot name="icon-start"><sd-icon library="system" name="chevron-up" class="rotate-[-90deg]"></sd-icon></slot></button></div>`:null} ${this.canScroll.right?gt`<div part="button-right" class="absolute z-10 flex items-center justify-center top-0 right-0 h-full w-8"><button part="button-end" class="${Se(t)}" @click="${()=>this.handleScroll("right")}"><slot name="icon-end"><sd-icon library="system" name="chevron-down" class="rotate-[-90deg]"></sd-icon></slot></button></div>`:null}`:null} ${this.isScrollVerticalEnabled?gt`${this.canScroll.up?gt`<div part="button-top" class="absolute z-10 flex items-center justify-center top-0 left-0 w-full h-8"><button part="button-start" class="${Se(t)}" @click="${()=>this.handleScroll("up")}"><slot name="icon-start"><sd-icon library="system" name="chevron-up"></sd-icon></slot></button></div>`:null} ${this.canScroll.down?gt`<div part="button-bottom" class="absolute z-10 flex items-center justify-center bottom-0 left-0 w-full h-8"><button part="button-end" class="${Se(t)}" @click="${()=>this.handleScroll("down")}"><slot name="icon-end"><sd-icon library="system" name="chevron-down"></sd-icon></slot></button></div>`:null}`:null}`:null} ${this.shadows?gt`${this.isScrollHorizontalEnabled?gt`${this.canScroll.left?gt`<div part="shadow-left" class="${e} left top-0 left-0 w-[6px] h-full"></div>`:null} ${this.canScroll.right?gt`<div part="shadow-right" class="${e} right top-0 right-0 w-[6px] h-full"></div>`:null}`:null} ${this.isScrollVerticalEnabled?gt`${this.canScroll.up?gt`<div part="shadow-top" class="${e} top top-0 left-0 w-full h-[6px]"></div>`:null} ${this.canScroll.down?gt`<div part="shadow-bottom" class="${e} bottom bottom-0 left-0 w-full h-[6px]"></div>`:null}`:null}`:null}`}};Hs.styles=[ne.styles,T(Oi),ie,L`:host{--gradient-color:rgba(255, 255, 255, 0);--gradient:var(--gradient-color) 0%,#fff 80%,#fff 100%;position:relative;display:flex;overflow:hidden}.hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbars::-webkit-scrollbar{display:none}.scroll-container::-webkit-scrollbar-thumb{background-color:transparent}.scroll-container:hover::-webkit-scrollbar-thumb{background:var(--background-neutral-400,#c3c3c3);border-radius:var(--sd-border-radius-sm,.125rem)}.scroll-container::-webkit-scrollbar{height:var(--sd-spacing-1,.25rem);width:var(--sd-spacing-1,.25rem)}.scroll-auto{overflow:auto}[part=button-left]{background:linear-gradient(270deg,var(--gradient))}[part=button-right]{background:linear-gradient(90deg,var(--gradient))}[part=button-top]{background:linear-gradient(0deg,var(--gradient))}[part=button-bottom]{background:linear-gradient(180deg,var(--gradient))}[part=shadow-left]{background:linear-gradient(270deg,rgba(24,24,24,0) 50%,rgba(24,24,24,.4) 100%)}[part=shadow-right]{background:linear-gradient(90deg,rgba(24,24,24,0) 50%,rgba(24,24,24,.4) 100%)}[part=shadow-top]{background:linear-gradient(0deg,rgba(24,24,24,0) 50%,rgba(24,24,24,.4) 100%)}[part=shadow-bottom]{background:linear-gradient(180deg,rgba(24,24,24,0) 50%,rgba(24,24,24,.4) 100%)}.sd-icon--top{align-self:flex-start}.sd-icon--down{align-self:flex-end}`],Rs([jt({type:String,reflect:!0})],Hs.prototype,"orientation",2),Rs([jt({type:Boolean,reflect:!0})],Hs.prototype,"buttons",2),Rs([jt({type:Number,reflect:!0})],Hs.prototype,"step",2),Rs([jt({type:Boolean,reflect:!0})],Hs.prototype,"scrollbars",2),Rs([jt({type:Boolean,reflect:!0})],Hs.prototype,"shadows",2),Rs([jt({type:Boolean,reflect:!0})],Hs.prototype,"inset",2),Rs([Vt()],Hs.prototype,"canScroll",2),Rs([Vt()],Hs.prototype,"isScrollHorizontalEnabled",2),Rs([Vt()],Hs.prototype,"isScrollVerticalEnabled",2),Hs=Rs([Mt("sd-scrollable")],Hs);const Ns=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Hs}},Symbol.toStringTag,{value:"Module"}));var qs=Object.defineProperty,Ks=Object.getOwnPropertyDescriptor,Zs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ks(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&qs(e,i,s),s};let Ws=class extends ne{constructor(){super(...arguments),this.size="lg",this.selected=!1,this.removable=!1,this.disabled=!1,this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleRemoveClick(){this.emit("sd-remove")}isLink(){return!!this.href}click(){this.tag.click()}focus(t){this.tag.focus(t)}blur(){this.tag.blur()}render(){const t=this.isLink(),e=t?li`a`:li`button`;return hi`<${e} part="base" type="${pi(t?void 0:"button")}" href="${pi(t?this.href:void 0)}" rel="${pi(t&&this.target?"noreferrer noopener":void 0)}" target="${pi(t?this.target:void 0)}" download="${pi(t?this.download:void 0)}" ?disabled="${pi(t?void 0:this.disabled)}" aria-disabled="${this.disabled?"true":"false"}" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${Se("inline-flex border box-border rounded-full items-center leading-none whitespace-nowrap focus-visible:focus-outline",{lg:"h-8 text-base gap-2",sm:"h-6 text-sm gap-1"}[this.size],{lg:this.removable?"pl-4 pr-3 py-2":"px-4 py-2",sm:this.removable?"pl-3 pr-2 py-2":"px-3 py-[5px]"}[this.size],this.selected?"bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500 disabled:bg-neutral-500 disabled:border-neutral-500":"border-primary text-primary hover:border-primary-500 hover:bg-neutral-100 hover:text-primary-500 disabled:border-neutral-500 disabled:text-neutral-500",this.disabled&&!t&&"cursor-not-allowed")}"><slot part="content"></slot>${this.removable?hi`<slot part="removable-indicator" name="removable-indicator" @click="${this.handleRemoveClick}" class="${Se({lg:"text-base",sm:"text-[12px]"}[this.size])}"><sd-icon library="system" name="close" label="remove"></sd-icon></slot>`:""}</${e}>`}};Ws.styles=[ne.styles,L`:host{display:inline-block}`],Zs([Ut("a, button")],Ws.prototype,"tag",2),Zs([jt({reflect:!0})],Ws.prototype,"size",2),Zs([jt({type:Boolean,reflect:!0})],Ws.prototype,"selected",2),Zs([jt({type:Boolean,reflect:!0})],Ws.prototype,"removable",2),Zs([jt({type:Boolean,reflect:!0})],Ws.prototype,"disabled",2),Zs([jt()],Ws.prototype,"href",2),Zs([jt()],Ws.prototype,"target",2),Zs([jt()],Ws.prototype,"download",2),Ws=Zs([Mt("sd-tag")],Ws);const Ys=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ws}},Symbol.toStringTag,{value:"Module"}));var Xs=Object.defineProperty,Gs=Object.getOwnPropertyDescriptor,Js=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Gs(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Xs(e,i,s),s};let Qs=class extends ne{constructor(){super(...arguments),this.formControlController=new ei(this,{assumeInteractionOn:["sd-blur","sd-input"]}),this.hasSlotController=new si(this,"help-text","label"),this.localize=new S(this),this.typeToSelectString="",this.hasHover=!1,this.displayLabel="",this.hasFocus=!1,this.selectedOptions=[],this.showValidStyle=!1,this.showInvalidStyle=!1,this.defaultValue="",this.open=!1,this.size="lg",this.label="",this.placeholder=this.localize.term("selectDefaultPlaceholder"),this.helpText="",this.placement="bottom",this.currentPlacement=this.placement,this.clearable=!1,this.disabled=!1,this.multiple=!1,this.useTags=!1,this.maxOptionsVisible=3,this.form="",this.name="",this.value="",this.required=!1,this.styleOnValid=!1,this.hoist=!1,this.getTag=t=>gt`<sd-tag ?disabled="${this.disabled}" part="tag" exportparts="
95
95
  base:tag__base,
96
96
  content:tag__content,
97
97
  removable-indicator:tag__removable-indicator,